diff --git a/relayer/chains/penumbra/cnidarium/v1alpha1/cnidarium.pb.go b/relayer/chains/penumbra/cnidarium/v1/cnidarium.pb.go similarity index 88% rename from relayer/chains/penumbra/cnidarium/v1alpha1/cnidarium.pb.go rename to relayer/chains/penumbra/cnidarium/v1/cnidarium.pb.go index f7ac25a32..c4218d741 100644 --- a/relayer/chains/penumbra/cnidarium/v1alpha1/cnidarium.pb.go +++ b/relayer/chains/penumbra/cnidarium/v1/cnidarium.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: penumbra/cnidarium/v1alpha1/cnidarium.proto +// source: penumbra/cnidarium/v1/cnidarium.proto -package cnidariumv1alpha1 +package cnidariumv1 import ( context "context" @@ -32,8 +32,6 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package // // Proofs are only supported by key. type KeyValueRequest struct { - // The expected chain id (empty string if no expectation). - ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` // If set, the key to fetch from storage. Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` // whether to return a proof @@ -44,7 +42,7 @@ func (m *KeyValueRequest) Reset() { *m = KeyValueRequest{} } func (m *KeyValueRequest) String() string { return proto.CompactTextString(m) } func (*KeyValueRequest) ProtoMessage() {} func (*KeyValueRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a6006139f070ea05, []int{0} + return fileDescriptor_c16e20a97a348b2e, []int{0} } func (m *KeyValueRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -73,13 +71,6 @@ func (m *KeyValueRequest) XXX_DiscardUnknown() { var xxx_messageInfo_KeyValueRequest proto.InternalMessageInfo -func (m *KeyValueRequest) GetChainId() string { - if m != nil { - return m.ChainId - } - return "" -} - func (m *KeyValueRequest) GetKey() string { if m != nil { return m.Key @@ -105,7 +96,7 @@ func (m *KeyValueResponse) Reset() { *m = KeyValueResponse{} } func (m *KeyValueResponse) String() string { return proto.CompactTextString(m) } func (*KeyValueResponse) ProtoMessage() {} func (*KeyValueResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a6006139f070ea05, []int{1} + return fileDescriptor_c16e20a97a348b2e, []int{1} } func (m *KeyValueResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -156,7 +147,7 @@ func (m *KeyValueResponse_Value) Reset() { *m = KeyValueResponse_Value{} func (m *KeyValueResponse_Value) String() string { return proto.CompactTextString(m) } func (*KeyValueResponse_Value) ProtoMessage() {} func (*KeyValueResponse_Value) Descriptor() ([]byte, []int) { - return fileDescriptor_a6006139f070ea05, []int{1, 0} + return fileDescriptor_c16e20a97a348b2e, []int{1, 0} } func (m *KeyValueResponse_Value) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -194,8 +185,6 @@ func (m *KeyValueResponse_Value) GetValue() []byte { // Performs a prefixed key-value query, by string prefix. type PrefixValueRequest struct { - // The expected chain id (empty string if no expectation). - ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` // The prefix to fetch subkeys from storage. Prefix string `protobuf:"bytes,2,opt,name=prefix,proto3" json:"prefix,omitempty"` } @@ -204,7 +193,7 @@ func (m *PrefixValueRequest) Reset() { *m = PrefixValueRequest{} } func (m *PrefixValueRequest) String() string { return proto.CompactTextString(m) } func (*PrefixValueRequest) ProtoMessage() {} func (*PrefixValueRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a6006139f070ea05, []int{2} + return fileDescriptor_c16e20a97a348b2e, []int{2} } func (m *PrefixValueRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -233,13 +222,6 @@ func (m *PrefixValueRequest) XXX_DiscardUnknown() { var xxx_messageInfo_PrefixValueRequest proto.InternalMessageInfo -func (m *PrefixValueRequest) GetChainId() string { - if m != nil { - return m.ChainId - } - return "" -} - func (m *PrefixValueRequest) GetPrefix() string { if m != nil { return m.Prefix @@ -256,7 +238,7 @@ func (m *PrefixValueResponse) Reset() { *m = PrefixValueResponse{} } func (m *PrefixValueResponse) String() string { return proto.CompactTextString(m) } func (*PrefixValueResponse) ProtoMessage() {} func (*PrefixValueResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a6006139f070ea05, []int{3} + return fileDescriptor_c16e20a97a348b2e, []int{3} } func (m *PrefixValueResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -319,7 +301,7 @@ func (m *WatchRequest) Reset() { *m = WatchRequest{} } func (m *WatchRequest) String() string { return proto.CompactTextString(m) } func (*WatchRequest) ProtoMessage() {} func (*WatchRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a6006139f070ea05, []int{4} + return fileDescriptor_c16e20a97a348b2e, []int{4} } func (m *WatchRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -378,7 +360,7 @@ func (m *WatchResponse) Reset() { *m = WatchResponse{} } func (m *WatchResponse) String() string { return proto.CompactTextString(m) } func (*WatchResponse) ProtoMessage() {} func (*WatchResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a6006139f070ea05, []int{5} + return fileDescriptor_c16e20a97a348b2e, []int{5} } func (m *WatchResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -472,7 +454,7 @@ func (m *WatchResponse_KeyValue) Reset() { *m = WatchResponse_KeyValue{} func (m *WatchResponse_KeyValue) String() string { return proto.CompactTextString(m) } func (*WatchResponse_KeyValue) ProtoMessage() {} func (*WatchResponse_KeyValue) Descriptor() ([]byte, []int) { - return fileDescriptor_a6006139f070ea05, []int{5, 0} + return fileDescriptor_c16e20a97a348b2e, []int{5, 0} } func (m *WatchResponse_KeyValue) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -535,7 +517,7 @@ func (m *WatchResponse_NvKeyValue) Reset() { *m = WatchResponse_NvKeyVal func (m *WatchResponse_NvKeyValue) String() string { return proto.CompactTextString(m) } func (*WatchResponse_NvKeyValue) ProtoMessage() {} func (*WatchResponse_NvKeyValue) Descriptor() ([]byte, []int) { - return fileDescriptor_a6006139f070ea05, []int{5, 1} + return fileDescriptor_c16e20a97a348b2e, []int{5, 1} } func (m *WatchResponse_NvKeyValue) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -586,64 +568,63 @@ func (m *WatchResponse_NvKeyValue) GetDeleted() bool { } func init() { - proto.RegisterType((*KeyValueRequest)(nil), "penumbra.cnidarium.v1alpha1.KeyValueRequest") - proto.RegisterType((*KeyValueResponse)(nil), "penumbra.cnidarium.v1alpha1.KeyValueResponse") - proto.RegisterType((*KeyValueResponse_Value)(nil), "penumbra.cnidarium.v1alpha1.KeyValueResponse.Value") - proto.RegisterType((*PrefixValueRequest)(nil), "penumbra.cnidarium.v1alpha1.PrefixValueRequest") - proto.RegisterType((*PrefixValueResponse)(nil), "penumbra.cnidarium.v1alpha1.PrefixValueResponse") - proto.RegisterType((*WatchRequest)(nil), "penumbra.cnidarium.v1alpha1.WatchRequest") - proto.RegisterType((*WatchResponse)(nil), "penumbra.cnidarium.v1alpha1.WatchResponse") - proto.RegisterType((*WatchResponse_KeyValue)(nil), "penumbra.cnidarium.v1alpha1.WatchResponse.KeyValue") - proto.RegisterType((*WatchResponse_NvKeyValue)(nil), "penumbra.cnidarium.v1alpha1.WatchResponse.NvKeyValue") + proto.RegisterType((*KeyValueRequest)(nil), "penumbra.cnidarium.v1.KeyValueRequest") + proto.RegisterType((*KeyValueResponse)(nil), "penumbra.cnidarium.v1.KeyValueResponse") + proto.RegisterType((*KeyValueResponse_Value)(nil), "penumbra.cnidarium.v1.KeyValueResponse.Value") + proto.RegisterType((*PrefixValueRequest)(nil), "penumbra.cnidarium.v1.PrefixValueRequest") + proto.RegisterType((*PrefixValueResponse)(nil), "penumbra.cnidarium.v1.PrefixValueResponse") + proto.RegisterType((*WatchRequest)(nil), "penumbra.cnidarium.v1.WatchRequest") + proto.RegisterType((*WatchResponse)(nil), "penumbra.cnidarium.v1.WatchResponse") + proto.RegisterType((*WatchResponse_KeyValue)(nil), "penumbra.cnidarium.v1.WatchResponse.KeyValue") + proto.RegisterType((*WatchResponse_NvKeyValue)(nil), "penumbra.cnidarium.v1.WatchResponse.NvKeyValue") } func init() { - proto.RegisterFile("penumbra/cnidarium/v1alpha1/cnidarium.proto", fileDescriptor_a6006139f070ea05) -} - -var fileDescriptor_a6006139f070ea05 = []byte{ - // 655 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x94, 0xcb, 0x6e, 0xd3, 0x4c, - 0x14, 0xc7, 0x63, 0xb7, 0x6e, 0xd3, 0xd3, 0x7c, 0x1f, 0xd5, 0x80, 0x50, 0x48, 0xd5, 0x50, 0x85, - 0x45, 0xcb, 0xcd, 0x6e, 0x5a, 0xb1, 0x20, 0x88, 0x4d, 0x2a, 0x54, 0xaa, 0x5e, 0x64, 0x02, 0x2a, - 0x17, 0x55, 0x2a, 0x8e, 0x73, 0xda, 0x58, 0x89, 0xed, 0x30, 0x76, 0x46, 0xf5, 0x5b, 0xf0, 0x0c, - 0x2c, 0x59, 0xb2, 0xe1, 0x15, 0x10, 0x12, 0x52, 0x97, 0x2c, 0x51, 0x2a, 0x36, 0x3c, 0x05, 0xf2, - 0x78, 0x26, 0x76, 0x41, 0x8a, 0x5c, 0x76, 0x3e, 0x97, 0xf9, 0x9d, 0xff, 0x9c, 0x73, 0x3c, 0x70, - 0x77, 0x80, 0xde, 0xd0, 0x6d, 0x53, 0xcb, 0xb0, 0x3d, 0xa7, 0x63, 0x51, 0x67, 0xe8, 0x1a, 0xac, - 0x6e, 0xf5, 0x07, 0x5d, 0xab, 0x9e, 0xba, 0xf4, 0x01, 0xf5, 0x43, 0x9f, 0x2c, 0xca, 0x64, 0x3d, - 0x8d, 0xc8, 0xe4, 0xca, 0x8a, 0xd3, 0xb6, 0x0d, 0xdb, 0xa7, 0x68, 0xd8, 0xbe, 0xeb, 0x3a, 0xa1, - 0x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 0xe6, 0x27, 0xf5, - 0xcb, 0xa8, 0xaa, 0x9c, 0x8d, 0xaa, 0xca, 0x8f, 0x51, 0x55, 0x79, 0x7f, 0x5e, 0x2d, 0x9c, 0x9d, - 0x57, 0x0b, 0xdf, 0xcf, 0xab, 0x05, 0xb8, 0x69, 0xfb, 0xee, 0x24, 0x56, 0xf3, 0xff, 0x4d, 0xe9, - 0x33, 0xe3, 0xa7, 0xce, 0x54, 0xde, 0xbc, 0x3e, 0x71, 0xc2, 0xee, 0xb0, 0x1d, 0x3f, 0x12, 0x86, - 0xed, 0x07, 0xae, 0x1f, 0x18, 0x14, 0xfb, 0x56, 0x84, 0xd4, 0x60, 0xeb, 0xe3, 0x4f, 0xfe, 0x67, - 0x07, 0xc6, 0x84, 0xb7, 0xf8, 0xd1, 0xd8, 0x25, 0x3d, 0x1f, 0xd4, 0x29, 0x73, 0xf3, 0xd5, 0x47, - 0x75, 0xd1, 0x94, 0x82, 0xc6, 0xc5, 0xf5, 0x03, 0x91, 0xf3, 0x35, 0x8d, 0x1e, 0x8e, 0xa3, 0x87, - 0x32, 0x3a, 0x52, 0x57, 0x26, 0x44, 0x0f, 0xb7, 0xcc, 0xe6, 0x1e, 0x86, 0x56, 0xc7, 0x0a, 0xad, - 0x5f, 0xea, 0x92, 0xcc, 0x6c, 0x34, 0xc6, 0xa9, 0x8d, 0x86, 0xcc, 0x6d, 0xcf, 0xf0, 0xa7, 0x7d, - 0xe3, 0x77, 0x00, 0x00, 0x00, 0xff, 0xff, 0x11, 0xdf, 0xd8, 0x86, 0x4f, 0x06, 0x00, 0x00, + proto.RegisterFile("penumbra/cnidarium/v1/cnidarium.proto", fileDescriptor_c16e20a97a348b2e) +} + +var fileDescriptor_c16e20a97a348b2e = []byte{ + // 629 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0xcd, 0x6e, 0xd3, 0x40, + 0x10, 0xce,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b4, 0xed, 0x57, 0x9f, 0xe8, 0x8a, 0x96, 0xc8, 0xa7, 0x82, 0x72, 0x53, 0xfd, + 0x9a, 0xc5, 0xf7, 0xd2, 0xf8, 0x5e, 0x53, 0x1d, 0xd0, 0x6b, 0x13, 0xe3, 0x7b, 0x8f, 0xb5, 0x5a, + 0x1d, 0x3d, 0xbd, 0xad, 0x7b, 0xfa, 0x4f, 0x7a, 0x29, 0xc9, 0xa9, 0x56, 0xd3, 0xa4, 0x6a, 0xb5, + 0xa9, 0xb6, 0xe6, 0xc2, 0x47, 0xf4, 0xde, 0xaf, 0x00, 0x00, 0x00, 0xff, 0xff, 0xe6, 0x73, 0xfd, + 0xf7, 0xad, 0x05, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -678,7 +659,7 @@ func NewQueryServiceClient(cc grpc1.ClientConn) QueryServiceClient { func (c *queryServiceClient) KeyValue(ctx context.Context, in *KeyValueRequest, opts ...grpc.CallOption) (*KeyValueResponse, error) { out := new(KeyValueResponse) - err := c.cc.Invoke(ctx, "/penumbra.cnidarium.v1alpha1.QueryService/KeyValue", in, out, opts...) + err := c.cc.Invoke(ctx, "/penumbra.cnidarium.v1.QueryService/KeyValue", in, out, opts...) if err != nil { return nil, err } @@ -686,7 +667,7 @@ func (c *queryServiceClient) KeyValue(ctx context.Context, in *KeyValueRequest, } func (c *queryServiceClient) PrefixValue(ctx context.Context, in *PrefixValueRequest, opts ...grpc.CallOption) (QueryService_PrefixValueClient, error) { - stream, err := c.cc.NewStream(ctx, &_QueryService_serviceDesc.Streams[0], "/penumbra.cnidarium.v1alpha1.QueryService/PrefixValue", opts...) + stream, err := c.cc.NewStream(ctx, &_QueryService_serviceDesc.Streams[0], "/penumbra.cnidarium.v1.QueryService/PrefixValue", opts...) if err != nil { return nil, err } @@ -718,7 +699,7 @@ func (x *queryServicePrefixValueClient) Recv() (*PrefixValueResponse, error) { } func (c *queryServiceClient) Watch(ctx context.Context, in *WatchRequest, opts ...grpc.CallOption) (QueryService_WatchClient, error) { - stream, err := c.cc.NewStream(ctx, &_QueryService_serviceDesc.Streams[1], "/penumbra.cnidarium.v1alpha1.QueryService/Watch", opts...) + stream, err := c.cc.NewStream(ctx, &_QueryService_serviceDesc.Streams[1], "/penumbra.cnidarium.v1.QueryService/Watch", opts...) if err != nil { return nil, err } @@ -789,7 +770,7 @@ func _QueryService_KeyValue_Handler(srv interface{}, ctx context.Context, dec fu } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/penumbra.cnidarium.v1alpha1.QueryService/KeyValue", + FullMethod: "/penumbra.cnidarium.v1.QueryService/KeyValue", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServiceServer).KeyValue(ctx, req.(*KeyValueRequest)) @@ -840,7 +821,7 @@ func (x *queryServiceWatchServer) Send(m *WatchResponse) error { } var _QueryService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "penumbra.cnidarium.v1alpha1.QueryService", + ServiceName: "penumbra.cnidarium.v1.QueryService", HandlerType: (*QueryServiceServer)(nil), Methods: []grpc.MethodDesc{ { @@ -860,7 +841,7 @@ var _QueryService_serviceDesc = grpc.ServiceDesc{ ServerStreams: true, }, }, - Metadata: "penumbra/cnidarium/v1alpha1/cnidarium.proto", + Metadata: "penumbra/cnidarium/v1/cnidarium.proto", } func (m *KeyValueRequest) Marshal() (dAtA []byte, err error) { @@ -900,13 +881,6 @@ func (m *KeyValueRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x12 } - if len(m.ChainId) > 0 { - i -= len(m.ChainId) - copy(dAtA[i:], m.ChainId) - i = encodeVarintCnidarium(dAtA, i, uint64(len(m.ChainId))) - i-- - dAtA[i] = 0xa - } return len(dAtA) - i, nil } @@ -1014,13 +988,6 @@ func (m *PrefixValueRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x12 } - if len(m.ChainId) > 0 { - i -= len(m.ChainId) - copy(dAtA[i:], m.ChainId) - i = encodeVarintCnidarium(dAtA, i, uint64(len(m.ChainId))) - i-- - dAtA[i] = 0xa - } return len(dAtA) - i, nil } @@ -1288,10 +1255,6 @@ func (m *KeyValueRequest) Size() (n int) { } var l int _ = l - l = len(m.ChainId) - if l > 0 { - n += 1 + l + sovCnidarium(uint64(l)) - } l = len(m.Key) if l > 0 { n += 1 + l + sovCnidarium(uint64(l)) @@ -1338,10 +1301,6 @@ func (m *PrefixValueRequest) Size() (n int) { } var l int _ = l - l = len(m.ChainId) - if l > 0 { - n += 1 + l + sovCnidarium(uint64(l)) - } l = len(m.Prefix) if l > 0 { n += 1 + l + sovCnidarium(uint64(l)) @@ -1497,38 +1456,6 @@ func (m *KeyValueRequest) Unmarshal(dAtA []byte) error { return fmt.Errorf("proto: KeyValueRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCnidarium - } - 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 ErrInvalidLengthCnidarium - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthCnidarium - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ChainId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) @@ -1837,38 +1764,6 @@ func (m *PrefixValueRequest) Unmarshal(dAtA []byte) error { return fmt.Errorf("proto: PrefixValueRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCnidarium - } - 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 ErrInvalidLengthCnidarium - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthCnidarium - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ChainId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Prefix", wireType) diff --git a/relayer/chains/penumbra/core/asset/v1alpha1/asset.pb.go b/relayer/chains/penumbra/core/asset/v1/asset.pb.go similarity index 53% rename from relayer/chains/penumbra/core/asset/v1alpha1/asset.pb.go rename to relayer/chains/penumbra/core/asset/v1/asset.pb.go index 6f5890373..9e13be113 100644 --- a/relayer/chains/penumbra/core/asset/v1alpha1/asset.pb.go +++ b/relayer/chains/penumbra/core/asset/v1/asset.pb.go @@ -1,12 +1,14 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: penumbra/core/asset/v1alpha1/asset.proto +// source: penumbra/core/asset/v1/asset.proto -package assetv1alpha1 +package assetv1 import ( + encoding_binary "encoding/binary" fmt "fmt" + types "github.com/cosmos/cosmos-sdk/codec/types" proto "github.com/cosmos/gogoproto/proto" - v1alpha1 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/num/v1alpha1" + v1 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/num/v1" io "io" math "math" math_bits "math/bits" @@ -31,7 +33,7 @@ func (m *BalanceCommitment) Reset() { *m = BalanceCommitment{} } func (m *BalanceCommitment) String() string { return proto.CompactTextString(m) } func (*BalanceCommitment) ProtoMessage() {} func (*BalanceCommitment) Descriptor() ([]byte, []int) { - return fileDescriptor_dbd1fa7252b11f51, []int{0} + return fileDescriptor_c2e6e948c9ed8f1e, []int{0} } func (m *BalanceCommitment) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -92,7 +94,7 @@ func (m *AssetId) Reset() { *m = AssetId{} } func (m *AssetId) String() string { return proto.CompactTextString(m) } func (*AssetId) ProtoMessage() {} func (*AssetId) Descriptor() ([]byte, []int) { - return fileDescriptor_dbd1fa7252b11f51, []int{1} + return fileDescriptor_c2e6e948c9ed8f1e, []int{1} } func (m *AssetId) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -150,7 +152,7 @@ func (m *Denom) Reset() { *m = Denom{} } func (m *Denom) String() string { return proto.CompactTextString(m) } func (*Denom) ProtoMessage() {} func (*Denom) Descriptor() ([]byte, []int) { - return fileDescriptor_dbd1fa7252b11f51, []int{2} + return fileDescriptor_c2e6e948c9ed8f1e, []int{2} } func (m *Denom) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -186,8 +188,8 @@ func (m *Denom) GetDenom() string { return "" } -// DenomMetadata represents a struct that describes a basic token. -type DenomMetadata struct { +// Describes metadata about a given asset. +type Metadata struct { Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"` // denom_units represents the list of DenomUnit's for a given coin DenomUnits []*DenomUnit `protobuf:"bytes,2,rep,name=denom_units,json=denomUnits,proto3" json:"denom_units,omitempty"` @@ -201,27 +203,23 @@ type DenomMetadata struct { // symbol is the token symbol usually shown on exchanges (eg: ATOM). This can // be the same as the display. Symbol string `protobuf:"bytes,6,opt,name=symbol,proto3" json:"symbol,omitempty"` - // URI to a document (on or off-chain) that contains additional information. Optional. - Uri string `protobuf:"bytes,7,opt,name=uri,proto3" json:"uri,omitempty"` - // URIHash is a sha256 hash of a document pointed by URI. It's used to verify that - // the document didn't change. Optional. - UriHash string `protobuf:"bytes,8,opt,name=uri_hash,json=uriHash,proto3" json:"uri_hash,omitempty"` // the asset ID on Penumbra for this denomination. - PenumbraAssetId *AssetId `protobuf:"bytes,1984,opt,name=penumbra_asset_id,json=penumbraAssetId,proto3" json:"penumbra_asset_id,omitempty"` + PenumbraAssetId *AssetId `protobuf:"bytes,1984,opt,name=penumbra_asset_id,json=penumbraAssetId,proto3" json:"penumbra_asset_id,omitempty"` + Images []*AssetImage `protobuf:"bytes,1985,rep,name=images,proto3" json:"images,omitempty"` } -func (m *DenomMetadata) Reset() { *m = DenomMetadata{} } -func (m *DenomMetadata) String() string { return proto.CompactTextString(m) } -func (*DenomMetadata) ProtoMessage() {} -func (*DenomMetadata) Descriptor() ([]byte, []int) { - return fileDescriptor_dbd1fa7252b11f51, []int{3} +func (m *Metadata) Reset() { *m = Metadata{} } +func (m *Metadata) String() string { return proto.CompactTextString(m) } +func (*Metadata) ProtoMessage() {} +func (*Metadata) Descriptor() ([]byte, []int) { + return fileDescriptor_c2e6e948c9ed8f1e, []int{3} } -func (m *DenomMetadata) XXX_Unmarshal(b []byte) error { +func (m *Metadata) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *DenomMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *Metadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_DenomMetadata.Marshal(b, m, deterministic) + return xxx_messageInfo_Metadata.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -231,77 +229,70 @@ func (m *DenomMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error return b[:n], nil } } -func (m *DenomMetadata) XXX_Merge(src proto.Message) { - xxx_messageInfo_DenomMetadata.Merge(m, src) +func (m *Metadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_Metadata.Merge(m, src) } -func (m *DenomMetadata) XXX_Size() int { +func (m *Metadata) XXX_Size() int { return m.Size() } -func (m *DenomMetadata) XXX_DiscardUnknown() { - xxx_messageInfo_DenomMetadata.DiscardUnknown(m) +func (m *Metadata) XXX_DiscardUnknown() { + xxx_messageInfo_Metadata.DiscardUnknown(m) } -var xxx_messageInfo_DenomMetadata proto.InternalMessageInfo +var xxx_messageInfo_Metadata proto.InternalMessageInfo -func (m *DenomMetadata) GetDescription() string { +func (m *Metadata) GetDescription() string { if m != nil { return m.Description } return "" } -func (m *DenomMetadata) GetDenomUnits() []*DenomUnit { +func (m *Metadata) GetDenomUnits() []*DenomUnit { if m != nil { return m.DenomUnits } return nil } -func (m *DenomMetadata) GetBase() string { +func (m *Metadata) GetBase() string { if m != nil { return m.Base } return "" } -func (m *DenomMetadata) GetDisplay() string { +func (m *Metadata) GetDisplay() string { if m != nil { return m.Display } return "" } -func (m *DenomMetadata) GetName() string { +func (m *Metadata) GetName() string { if m != nil { return m.Name } return "" } -func (m *DenomMetadata) GetSymbol() string { +func (m *Metadata) GetSymbol() string { if m != nil { return m.Symbol } return "" } -func (m *DenomMetadata) GetUri() string { +func (m *Metadata) GetPenumbraAssetId() *AssetId { if m != nil { - return m.Uri - } - return "" -} - -func (m *DenomMetadata) GetUriHash() string { - if m != nil { - return m.UriHash + return m.PenumbraAssetId } - return "" + return nil } -func (m *DenomMetadata) GetPenumbraAssetId() *AssetId { +func (m *Metadata) GetImages() []*AssetImage { if m != nil { - return m.PenumbraAssetId + return m.Images } return nil } @@ -324,7 +315,7 @@ func (m *DenomUnit) Reset() { *m = DenomUnit{} } func (m *DenomUnit) String() string { return proto.CompactTextString(m) } func (*DenomUnit) ProtoMessage() {} func (*DenomUnit) Descriptor() ([]byte, []int) { - return fileDescriptor_dbd1fa7252b11f51, []int{4} + return fileDescriptor_c2e6e948c9ed8f1e, []int{4} } func (m *DenomUnit) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -375,15 +366,15 @@ func (m *DenomUnit) GetAliases() []string { } type Value struct { - Amount *v1alpha1.Amount `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"` - AssetId *AssetId `protobuf:"bytes,2,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"` + Amount *v1.Amount `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"` + AssetId *AssetId `protobuf:"bytes,2,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"` } func (m *Value) Reset() { *m = Value{} } func (m *Value) String() string { return proto.CompactTextString(m) } func (*Value) ProtoMessage() {} func (*Value) Descriptor() ([]byte, []int) { - return fileDescriptor_dbd1fa7252b11f51, []int{5} + return fileDescriptor_c2e6e948c9ed8f1e, []int{5} } func (m *Value) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -412,7 +403,7 @@ func (m *Value) XXX_DiscardUnknown() { var xxx_messageInfo_Value proto.InternalMessageInfo -func (m *Value) GetAmount() *v1alpha1.Amount { +func (m *Value) GetAmount() *v1.Amount { if m != nil { return m.Amount } @@ -427,19 +418,11 @@ func (m *Value) GetAssetId() *AssetId { } // Represents a value of a known or unknown denomination. -// -// Note: unlike some other View types, we don't just store the underlying -// `Value` message together with an additional `Denom`. Instead, we record -// either an `Amount` and `Denom` (only) or an `Amount` and `AssetId`. This is -// because we don't want to allow a situation where the supplied `Denom` doesn't -// match the `AssetId`, and a consumer of the API that doesn't check is tricked. -// This way, the `Denom` will always match, because the consumer is forced to -// recompute it themselves if they want it. type ValueView struct { // Types that are valid to be assigned to ValueView: // - // *ValueView_KnownDenom_ - // *ValueView_UnknownDenom_ + // *ValueView_KnownAssetId_ + // *ValueView_UnknownAssetId_ ValueView isValueView_ValueView `protobuf_oneof:"value_view"` } @@ -447,7 +430,7 @@ func (m *ValueView) Reset() { *m = ValueView{} } func (m *ValueView) String() string { return proto.CompactTextString(m) } func (*ValueView) ProtoMessage() {} func (*ValueView) Descriptor() ([]byte, []int) { - return fileDescriptor_dbd1fa7252b11f51, []int{6} + return fileDescriptor_c2e6e948c9ed8f1e, []int{6} } func (m *ValueView) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -482,15 +465,15 @@ type isValueView_ValueView interface { Size() int } -type ValueView_KnownDenom_ struct { - KnownDenom *ValueView_KnownDenom `protobuf:"bytes,1,opt,name=known_denom,json=knownDenom,proto3,oneof" json:"known_denom,omitempty"` +type ValueView_KnownAssetId_ struct { + KnownAssetId *ValueView_KnownAssetId `protobuf:"bytes,1,opt,name=known_asset_id,json=knownAssetId,proto3,oneof" json:"known_asset_id,omitempty"` } -type ValueView_UnknownDenom_ struct { - UnknownDenom *ValueView_UnknownDenom `protobuf:"bytes,2,opt,name=unknown_denom,json=unknownDenom,proto3,oneof" json:"unknown_denom,omitempty"` +type ValueView_UnknownAssetId_ struct { + UnknownAssetId *ValueView_UnknownAssetId `protobuf:"bytes,2,opt,name=unknown_asset_id,json=unknownAssetId,proto3,oneof" json:"unknown_asset_id,omitempty"` } -func (*ValueView_KnownDenom_) isValueView_ValueView() {} -func (*ValueView_UnknownDenom_) isValueView_ValueView() {} +func (*ValueView_KnownAssetId_) isValueView_ValueView() {} +func (*ValueView_UnknownAssetId_) isValueView_ValueView() {} func (m *ValueView) GetValueView() isValueView_ValueView { if m != nil { @@ -499,16 +482,16 @@ func (m *ValueView) GetValueView() isValueView_ValueView { return nil } -func (m *ValueView) GetKnownDenom() *ValueView_KnownDenom { - if x, ok := m.GetValueView().(*ValueView_KnownDenom_); ok { - return x.KnownDenom +func (m *ValueView) GetKnownAssetId() *ValueView_KnownAssetId { + if x, ok := m.GetValueView().(*ValueView_KnownAssetId_); ok { + return x.KnownAssetId } return nil } -func (m *ValueView) GetUnknownDenom() *ValueView_UnknownDenom { - if x, ok := m.GetValueView().(*ValueView_UnknownDenom_); ok { - return x.UnknownDenom +func (m *ValueView) GetUnknownAssetId() *ValueView_UnknownAssetId { + if x, ok := m.GetValueView().(*ValueView_UnknownAssetId_); ok { + return x.UnknownAssetId } return nil } @@ -516,29 +499,110 @@ func (m *ValueView) GetUnknownDenom() *ValueView_UnknownDenom { // XXX_OneofWrappers is for the internal use of the proto package. func (*ValueView) XXX_OneofWrappers() []interface{} { return []interface{}{ - (*ValueView_KnownDenom_)(nil), - (*ValueView_UnknownDenom_)(nil), + (*ValueView_KnownAssetId_)(nil), + (*ValueView_UnknownAssetId_)(nil), + } +} + +// A value whose asset ID is known and has metadata. +type ValueView_KnownAssetId struct { + // The amount of the value. + Amount *v1.Amount `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"` + // The asset metadata describing the asset of the value. + Metadata *Metadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` + // Optionally, a list of equivalent values in other numeraires. + EquivalentValues []*EquivalentValue `protobuf:"bytes,3,rep,name=equivalent_values,json=equivalentValues,proto3" json:"equivalent_values,omitempty"` + // Optionally, extended, dynamically-typed metadata about the object this + // token represents. + // + // This is left flexible to allow future extensions. For instance, a view + // server could augment an LPNFT with a message describing the current state + // of the position and its reserves, allowing a frontend to render LPNFTs + // with their position information (trading pair, etc). However, because + // this is in an extension, a frontend that does not have special handling + // logic would fall back on the ordinary asset metadata. + ExtendedMetadata *types.Any `protobuf:"bytes,4,opt,name=extended_metadata,json=extendedMetadata,proto3" json:"extended_metadata,omitempty"` +} + +func (m *ValueView_KnownAssetId) Reset() { *m = ValueView_KnownAssetId{} } +func (m *ValueView_KnownAssetId) String() string { return proto.CompactTextString(m) } +func (*ValueView_KnownAssetId) ProtoMessage() {} +func (*ValueView_KnownAssetId) Descriptor() ([]byte, []int) { + return fileDescriptor_c2e6e948c9ed8f1e, []int{6, 0} +} +func (m *ValueView_KnownAssetId) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ValueView_KnownAssetId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ValueView_KnownAssetId.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 *ValueView_KnownAssetId) XXX_Merge(src proto.Message) { + xxx_messageInfo_ValueView_KnownAssetId.Merge(m, src) +} +func (m *ValueView_KnownAssetId) XXX_Size() int { + return m.Size() +} +func (m *ValueView_KnownAssetId) XXX_DiscardUnknown() { + xxx_messageInfo_ValueView_KnownAssetId.DiscardUnknown(m) +} + +var xxx_messageInfo_ValueView_KnownAssetId proto.InternalMessageInfo + +func (m *ValueView_KnownAssetId) GetAmount() *v1.Amount { + if m != nil { + return m.Amount + } + return nil +} + +func (m *ValueView_KnownAssetId) GetMetadata() *Metadata { + if m != nil { + return m.Metadata + } + return nil +} + +func (m *ValueView_KnownAssetId) GetEquivalentValues() []*EquivalentValue { + if m != nil { + return m.EquivalentValues + } + return nil +} + +func (m *ValueView_KnownAssetId) GetExtendedMetadata() *types.Any { + if m != nil { + return m.ExtendedMetadata } + return nil } -// A value whose asset ID has a known denomination. -type ValueView_KnownDenom struct { - Amount *v1alpha1.Amount `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"` - Denom *DenomMetadata `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"` +// A value whose asset ID is unknown, with no metadata. +type ValueView_UnknownAssetId struct { + Amount *v1.Amount `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"` + AssetId *AssetId `protobuf:"bytes,2,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"` } -func (m *ValueView_KnownDenom) Reset() { *m = ValueView_KnownDenom{} } -func (m *ValueView_KnownDenom) String() string { return proto.CompactTextString(m) } -func (*ValueView_KnownDenom) ProtoMessage() {} -func (*ValueView_KnownDenom) Descriptor() ([]byte, []int) { - return fileDescriptor_dbd1fa7252b11f51, []int{6, 0} +func (m *ValueView_UnknownAssetId) Reset() { *m = ValueView_UnknownAssetId{} } +func (m *ValueView_UnknownAssetId) String() string { return proto.CompactTextString(m) } +func (*ValueView_UnknownAssetId) ProtoMessage() {} +func (*ValueView_UnknownAssetId) Descriptor() ([]byte, []int) { + return fileDescriptor_c2e6e948c9ed8f1e, []int{6, 1} } -func (m *ValueView_KnownDenom) XXX_Unmarshal(b []byte) error { +func (m *ValueView_UnknownAssetId) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *ValueView_KnownDenom) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *ValueView_UnknownAssetId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_ValueView_KnownDenom.Marshal(b, m, deterministic) + return xxx_messageInfo_ValueView_UnknownAssetId.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -548,49 +612,53 @@ func (m *ValueView_KnownDenom) XXX_Marshal(b []byte, deterministic bool) ([]byte return b[:n], nil } } -func (m *ValueView_KnownDenom) XXX_Merge(src proto.Message) { - xxx_messageInfo_ValueView_KnownDenom.Merge(m, src) +func (m *ValueView_UnknownAssetId) XXX_Merge(src proto.Message) { + xxx_messageInfo_ValueView_UnknownAssetId.Merge(m, src) } -func (m *ValueView_KnownDenom) XXX_Size() int { +func (m *ValueView_UnknownAssetId) XXX_Size() int { return m.Size() } -func (m *ValueView_KnownDenom) XXX_DiscardUnknown() { - xxx_messageInfo_ValueView_KnownDenom.DiscardUnknown(m) +func (m *ValueView_UnknownAssetId) XXX_DiscardUnknown() { + xxx_messageInfo_ValueView_UnknownAssetId.DiscardUnknown(m) } -var xxx_messageInfo_ValueView_KnownDenom proto.InternalMessageInfo +var xxx_messageInfo_ValueView_UnknownAssetId proto.InternalMessageInfo -func (m *ValueView_KnownDenom) GetAmount() *v1alpha1.Amount { +func (m *ValueView_UnknownAssetId) GetAmount() *v1.Amount { if m != nil { return m.Amount } return nil } -func (m *ValueView_KnownDenom) GetDenom() *DenomMetadata { +func (m *ValueView_UnknownAssetId) GetAssetId() *AssetId { if m != nil { - return m.Denom + return m.AssetId } return nil } -type ValueView_UnknownDenom struct { - Amount *v1alpha1.Amount `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"` - AssetId *AssetId `protobuf:"bytes,2,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"` +// An image related to an asset. +type AssetImage struct { + // The URI of the image in PNG format. + Png string `protobuf:"bytes,1,opt,name=png,proto3" json:"png,omitempty"` + // The URI of the image in SVG format. + Svg string `protobuf:"bytes,2,opt,name=svg,proto3" json:"svg,omitempty"` + Theme *AssetImage_Theme `protobuf:"bytes,3,opt,name=theme,proto3" json:"theme,omitempty"` } -func (m *ValueView_UnknownDenom) Reset() { *m = ValueView_UnknownDenom{} } -func (m *ValueView_UnknownDenom) String() string { return proto.CompactTextString(m) } -func (*ValueView_UnknownDenom) ProtoMessage() {} -func (*ValueView_UnknownDenom) Descriptor() ([]byte, []int) { - return fileDescriptor_dbd1fa7252b11f51, []int{6, 1} +func (m *AssetImage) Reset() { *m = AssetImage{} } +func (m *AssetImage) String() string { return proto.CompactTextString(m) } +func (*AssetImage) ProtoMessage() {} +func (*AssetImage) Descriptor() ([]byte, []int) { + return fileDescriptor_c2e6e948c9ed8f1e, []int{7} } -func (m *ValueView_UnknownDenom) XXX_Unmarshal(b []byte) error { +func (m *AssetImage) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *ValueView_UnknownDenom) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *AssetImage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_ValueView_UnknownDenom.Marshal(b, m, deterministic) + return xxx_messageInfo_AssetImage.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -600,95 +668,332 @@ func (m *ValueView_UnknownDenom) XXX_Marshal(b []byte, deterministic bool) ([]by return b[:n], nil } } -func (m *ValueView_UnknownDenom) XXX_Merge(src proto.Message) { - xxx_messageInfo_ValueView_UnknownDenom.Merge(m, src) +func (m *AssetImage) XXX_Merge(src proto.Message) { + xxx_messageInfo_AssetImage.Merge(m, src) } -func (m *ValueView_UnknownDenom) XXX_Size() int { +func (m *AssetImage) XXX_Size() int { return m.Size() } -func (m *ValueView_UnknownDenom) XXX_DiscardUnknown() { - xxx_messageInfo_ValueView_UnknownDenom.DiscardUnknown(m) +func (m *AssetImage) XXX_DiscardUnknown() { + xxx_messageInfo_AssetImage.DiscardUnknown(m) } -var xxx_messageInfo_ValueView_UnknownDenom proto.InternalMessageInfo +var xxx_messageInfo_AssetImage proto.InternalMessageInfo -func (m *ValueView_UnknownDenom) GetAmount() *v1alpha1.Amount { +func (m *AssetImage) GetPng() string { if m != nil { - return m.Amount + return m.Png + } + return "" +} + +func (m *AssetImage) GetSvg() string { + if m != nil { + return m.Svg + } + return "" +} + +func (m *AssetImage) GetTheme() *AssetImage_Theme { + if m != nil { + return m.Theme + } + return nil +} + +type AssetImage_Theme struct { + // Should be in hex format, `^#[0-9a-fA-F]{6}$`. + PrimaryColorHex string `protobuf:"bytes,1,opt,name=primary_color_hex,json=primaryColorHex,proto3" json:"primary_color_hex,omitempty"` + Circle bool `protobuf:"varint,2,opt,name=circle,proto3" json:"circle,omitempty"` + DarkMode bool `protobuf:"varint,3,opt,name=dark_mode,json=darkMode,proto3" json:"dark_mode,omitempty"` +} + +func (m *AssetImage_Theme) Reset() { *m = AssetImage_Theme{} } +func (m *AssetImage_Theme) String() string { return proto.CompactTextString(m) } +func (*AssetImage_Theme) ProtoMessage() {} +func (*AssetImage_Theme) Descriptor() ([]byte, []int) { + return fileDescriptor_c2e6e948c9ed8f1e, []int{7, 0} +} +func (m *AssetImage_Theme) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AssetImage_Theme) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AssetImage_Theme.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 *AssetImage_Theme) XXX_Merge(src proto.Message) { + xxx_messageInfo_AssetImage_Theme.Merge(m, src) +} +func (m *AssetImage_Theme) XXX_Size() int { + return m.Size() +} +func (m *AssetImage_Theme) XXX_DiscardUnknown() { + xxx_messageInfo_AssetImage_Theme.DiscardUnknown(m) +} + +var xxx_messageInfo_AssetImage_Theme proto.InternalMessageInfo + +func (m *AssetImage_Theme) GetPrimaryColorHex() string { + if m != nil { + return m.PrimaryColorHex + } + return "" +} + +func (m *AssetImage_Theme) GetCircle() bool { + if m != nil { + return m.Circle + } + return false +} + +func (m *AssetImage_Theme) GetDarkMode() bool { + if m != nil { + return m.DarkMode + } + return false +} + +// The estimated price of one asset in terms of a numeraire. +// +// This is used for generating "equivalent values" in ValueViews. +type EstimatedPrice struct { + PricedAsset *AssetId `protobuf:"bytes,1,opt,name=priced_asset,json=pricedAsset,proto3" json:"priced_asset,omitempty"` + Numeraire *AssetId `protobuf:"bytes,2,opt,name=numeraire,proto3" json:"numeraire,omitempty"` + // Multiply units of the priced asset by this value to get the value in the numeraire. + // + // This is a floating-point number since the price is approximate. + NumerairePerUnit float64 `protobuf:"fixed64,3,opt,name=numeraire_per_unit,json=numerairePerUnit,proto3" json:"numeraire_per_unit,omitempty"` + // If set, gives some idea of when the price was estimated. + AsOfHeight uint64 `protobuf:"varint,4,opt,name=as_of_height,json=asOfHeight,proto3" json:"as_of_height,omitempty"` +} + +func (m *EstimatedPrice) Reset() { *m = EstimatedPrice{} } +func (m *EstimatedPrice) String() string { return proto.CompactTextString(m) } +func (*EstimatedPrice) ProtoMessage() {} +func (*EstimatedPrice) Descriptor() ([]byte, []int) { + return fileDescriptor_c2e6e948c9ed8f1e, []int{8} +} +func (m *EstimatedPrice) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EstimatedPrice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EstimatedPrice.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 *EstimatedPrice) XXX_Merge(src proto.Message) { + xxx_messageInfo_EstimatedPrice.Merge(m, src) +} +func (m *EstimatedPrice) XXX_Size() int { + return m.Size() +} +func (m *EstimatedPrice) XXX_DiscardUnknown() { + xxx_messageInfo_EstimatedPrice.DiscardUnknown(m) +} + +var xxx_messageInfo_EstimatedPrice proto.InternalMessageInfo + +func (m *EstimatedPrice) GetPricedAsset() *AssetId { + if m != nil { + return m.PricedAsset } return nil } -func (m *ValueView_UnknownDenom) GetAssetId() *AssetId { +func (m *EstimatedPrice) GetNumeraire() *AssetId { if m != nil { - return m.AssetId + return m.Numeraire + } + return nil +} + +func (m *EstimatedPrice) GetNumerairePerUnit() float64 { + if m != nil { + return m.NumerairePerUnit + } + return 0 +} + +func (m *EstimatedPrice) GetAsOfHeight() uint64 { + if m != nil { + return m.AsOfHeight + } + return 0 +} + +// An "equivalent" value to a given value, in terms of a numeraire. +// +// For instance, this can provide a USD-equivalent value relative to a +// stablecoin, or an amount of the staking token, etc. A view server can +// optionally include this information to assist a frontend in displaying +// information about the value in a user-friendly way. +type EquivalentValue struct { + // The equivalent amount of the parent Value in terms of the numeraire. + EquivalentAmount *v1.Amount `protobuf:"bytes,1,opt,name=equivalent_amount,json=equivalentAmount,proto3" json:"equivalent_amount,omitempty"` + // Metadata describing the numeraire. + Numeraire *Metadata `protobuf:"bytes,2,opt,name=numeraire,proto3" json:"numeraire,omitempty"` + // If set, gives some idea of when the price/equivalence was estimated. + AsOfHeight uint64 `protobuf:"varint,3,opt,name=as_of_height,json=asOfHeight,proto3" json:"as_of_height,omitempty"` +} + +func (m *EquivalentValue) Reset() { *m = EquivalentValue{} } +func (m *EquivalentValue) String() string { return proto.CompactTextString(m) } +func (*EquivalentValue) ProtoMessage() {} +func (*EquivalentValue) Descriptor() ([]byte, []int) { + return fileDescriptor_c2e6e948c9ed8f1e, []int{9} +} +func (m *EquivalentValue) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EquivalentValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EquivalentValue.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 *EquivalentValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_EquivalentValue.Merge(m, src) +} +func (m *EquivalentValue) XXX_Size() int { + return m.Size() +} +func (m *EquivalentValue) XXX_DiscardUnknown() { + xxx_messageInfo_EquivalentValue.DiscardUnknown(m) +} + +var xxx_messageInfo_EquivalentValue proto.InternalMessageInfo + +func (m *EquivalentValue) GetEquivalentAmount() *v1.Amount { + if m != nil { + return m.EquivalentAmount } return nil } +func (m *EquivalentValue) GetNumeraire() *Metadata { + if m != nil { + return m.Numeraire + } + return nil +} + +func (m *EquivalentValue) GetAsOfHeight() uint64 { + if m != nil { + return m.AsOfHeight + } + return 0 +} + func init() { - proto.RegisterType((*BalanceCommitment)(nil), "penumbra.core.asset.v1alpha1.BalanceCommitment") - proto.RegisterType((*AssetId)(nil), "penumbra.core.asset.v1alpha1.AssetId") - proto.RegisterType((*Denom)(nil), "penumbra.core.asset.v1alpha1.Denom") - proto.RegisterType((*DenomMetadata)(nil), "penumbra.core.asset.v1alpha1.DenomMetadata") - proto.RegisterType((*DenomUnit)(nil), "penumbra.core.asset.v1alpha1.DenomUnit") - proto.RegisterType((*Value)(nil), "penumbra.core.asset.v1alpha1.Value") - proto.RegisterType((*ValueView)(nil), "penumbra.core.asset.v1alpha1.ValueView") - proto.RegisterType((*ValueView_KnownDenom)(nil), "penumbra.core.asset.v1alpha1.ValueView.KnownDenom") - proto.RegisterType((*ValueView_UnknownDenom)(nil), "penumbra.core.asset.v1alpha1.ValueView.UnknownDenom") + proto.RegisterType((*BalanceCommitment)(nil), "penumbra.core.asset.v1.BalanceCommitment") + proto.RegisterType((*AssetId)(nil), "penumbra.core.asset.v1.AssetId") + proto.RegisterType((*Denom)(nil), "penumbra.core.asset.v1.Denom") + proto.RegisterType((*Metadata)(nil), "penumbra.core.asset.v1.Metadata") + proto.RegisterType((*DenomUnit)(nil), "penumbra.core.asset.v1.DenomUnit") + proto.RegisterType((*Value)(nil), "penumbra.core.asset.v1.Value") + proto.RegisterType((*ValueView)(nil), "penumbra.core.asset.v1.ValueView") + proto.RegisterType((*ValueView_KnownAssetId)(nil), "penumbra.core.asset.v1.ValueView.KnownAssetId") + proto.RegisterType((*ValueView_UnknownAssetId)(nil), "penumbra.core.asset.v1.ValueView.UnknownAssetId") + proto.RegisterType((*AssetImage)(nil), "penumbra.core.asset.v1.AssetImage") + proto.RegisterType((*AssetImage_Theme)(nil), "penumbra.core.asset.v1.AssetImage.Theme") + proto.RegisterType((*EstimatedPrice)(nil), "penumbra.core.asset.v1.EstimatedPrice") + proto.RegisterType((*EquivalentValue)(nil), "penumbra.core.asset.v1.EquivalentValue") } func init() { - proto.RegisterFile("penumbra/core/asset/v1alpha1/asset.proto", fileDescriptor_dbd1fa7252b11f51) -} - -var fileDescriptor_dbd1fa7252b11f51 = []byte{ - // 717 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x55, 0xcd, 0x6e, 0xd3, 0x4a, - 0x14, 0x8e, 0x9d, 0xe6, 0xa7, 0x27, 0xe9, 0xed, 0xed, 0xe8, 0xea, 0xca, 0x37, 0xea, 0x4d, 0xa3, - 0xa8, 0x88, 0x20, 0x24, 0x47, 0x4d, 0x59, 0x85, 0x0d, 0x4d, 0x91, 0x28, 0x42, 0x48, 0x91, 0xa5, - 0x06, 0x09, 0x22, 0x59, 0x13, 0x67, 0xc0, 0xa3, 0x7a, 0x66, 0x22, 0x8f, 0x9d, 0xd2, 0x07, 0x60, - 0x05, 0x0b, 0x9e, 0x81, 0x25, 0x3b, 0xde, 0x80, 0x25, 0x62, 0xd5, 0x15, 0x62, 0x89, 0xd2, 0x5d, - 0x9f, 0x02, 0xcd, 0xd8, 0x4e, 0x02, 0xaa, 0xa2, 0x22, 0x16, 0xec, 0xce, 0x77, 0xce, 0x37, 0xdf, - 0x7c, 0xe7, 0x1c, 0xff, 0x40, 0x6b, 0x42, 0x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xed, 0x7e, 0x66, 0xe5, - 0x50, 0x59, 0xd1, 0x57, 0xdb, 0x83, 0x94, 0xf4, 0x79, 0x51, 0x1e, 0xaa, 0xf2, 0x50, 0x97, 0x87, - 0x59, 0x79, 0x66, 0xb6, 0x56, 0x95, 0x87, 0x0f, 0xfa, 0xbd, 0x6c, 0x6b, 0x97, 0xe6, 0x4e, 0x46, - 0xed, 0x76, 0x15, 0xb7, 0xdb, 0xd5, 0xe4, 0x6e, 0x37, 0x63, 0x8f, 0x8a, 0xfa, 0x9f, 0xb0, 0xff, - 0x3d, 0x00, 0x00, 0xff, 0xff, 0x80, 0x24, 0x64, 0x6d, 0x83, 0x06, 0x00, 0x00, + proto.RegisterFile("penumbra/core/asset/v1/asset.proto", fileDescriptor_c2e6e948c9ed8f1e) +} + +var fileDescriptor_c2e6e948c9ed8f1e = []byte{ + // 1048 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x56, 0x4f, 0x6f, 0xe3, 0x44, + 0x14, 0xaf, 0xf3, 0xa7, 0x75, 0x5e, 0x42, 0x9b, 0x8e, 0x56, 0x55, 0x36, 0x40, 0x36, 0x58, 0x48, + 0x14, 0x84, 0x1c, 0x92, 0xe5, 0x94, 0x85, 0x95, 0x9a, 0xb2, 0xa2, 0x2d, 0xac, 0x88, 0xac, 0x6d, + 0x90, 0x50, 0x25, 0x6b, 0x62, 0x4f, 0xe3, 0x51, 0x3d, 0x33, 0xc1, 0x63, 0xa7, 0xcd, 0x95, 0x0b, + 0x57, 0xee, 0xdc, 0x38, 0xf2, 0x21, 0x10, 0xdc, 0x10, 0xa7, 0x3d, 0x22, 0x4e, 0xa8, 0xbd, 0x71, + 0xe4, 0x03, 0x20, 0x34, 0x63, 0x3b, 0x6d, 0x4a, 0x4b, 0x17, 0x0e, 0x7b, 0x7b, 0x7f, 0x7e, 0xef, + 0xbd, 0xdf, 0x7b, 0x7e, 0x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, 0x38, 0xc8, 0x47, 0xf3, 0x47, 0xe1, 0x7e, 0x0e, 0xea, 0xf7, 0x15, 0xaa, 0xdf, 0xd7, + 0xb0, 0x7e, 0x7f, 0xd4, 0x1d, 0xaf, 0xea, 0x07, 0xe4, 0xe1, 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, + 0xad, 0x5c, 0xe1, 0xd0, 0x89, 0x09, 0x00, 0x00, } func (m *BalanceCommitment) Marshal() (dAtA []byte, err error) { @@ -795,7 +1100,7 @@ func (m *Denom) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *DenomMetadata) Marshal() (dAtA []byte, err error) { +func (m *Metadata) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -805,16 +1110,32 @@ func (m *DenomMetadata) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *DenomMetadata) MarshalTo(dAtA []byte) (int, error) { +func (m *Metadata) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *DenomMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *Metadata) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l + if len(m.Images) > 0 { + for iNdEx := len(m.Images) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Images[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAsset(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x7c + i-- + dAtA[i] = 0x8a + } + } if m.PenumbraAssetId != nil { { size, err := m.PenumbraAssetId.MarshalToSizedBuffer(dAtA[:i]) @@ -829,20 +1150,6 @@ func (m *DenomMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x82 } - if len(m.UriHash) > 0 { - i -= len(m.UriHash) - copy(dAtA[i:], m.UriHash) - i = encodeVarintAsset(dAtA, i, uint64(len(m.UriHash))) - i-- - dAtA[i] = 0x42 - } - if len(m.Uri) > 0 { - i -= len(m.Uri) - copy(dAtA[i:], m.Uri) - i = encodeVarintAsset(dAtA, i, uint64(len(m.Uri))) - i-- - dAtA[i] = 0x3a - } if len(m.Symbol) > 0 { i -= len(m.Symbol) copy(dAtA[i:], m.Symbol) @@ -1018,16 +1325,16 @@ func (m *ValueView) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *ValueView_KnownDenom_) MarshalTo(dAtA []byte) (int, error) { +func (m *ValueView_KnownAssetId_) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *ValueView_KnownDenom_) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ValueView_KnownAssetId_) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) - if m.KnownDenom != nil { + if m.KnownAssetId != nil { { - size, err := m.KnownDenom.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.KnownAssetId.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -1039,16 +1346,16 @@ func (m *ValueView_KnownDenom_) MarshalToSizedBuffer(dAtA []byte) (int, error) { } return len(dAtA) - i, nil } -func (m *ValueView_UnknownDenom_) MarshalTo(dAtA []byte) (int, error) { +func (m *ValueView_UnknownAssetId_) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *ValueView_UnknownDenom_) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ValueView_UnknownAssetId_) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) - if m.UnknownDenom != nil { + if m.UnknownAssetId != nil { { - size, err := m.UnknownDenom.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.UnknownAssetId.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -1060,7 +1367,7 @@ func (m *ValueView_UnknownDenom_) MarshalToSizedBuffer(dAtA []byte) (int, error) } return len(dAtA) - i, nil } -func (m *ValueView_KnownDenom) Marshal() (dAtA []byte, err error) { +func (m *ValueView_KnownAssetId) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1070,19 +1377,45 @@ func (m *ValueView_KnownDenom) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *ValueView_KnownDenom) MarshalTo(dAtA []byte) (int, error) { +func (m *ValueView_KnownAssetId) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *ValueView_KnownDenom) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ValueView_KnownAssetId) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.Denom != nil { + if m.ExtendedMetadata != nil { + { + size, err := m.ExtendedMetadata.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAsset(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + if len(m.EquivalentValues) > 0 { + for iNdEx := len(m.EquivalentValues) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.EquivalentValues[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAsset(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if m.Metadata != nil { { - size, err := m.Denom.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Metadata.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -1107,7 +1440,7 @@ func (m *ValueView_KnownDenom) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *ValueView_UnknownDenom) Marshal() (dAtA []byte, err error) { +func (m *ValueView_UnknownAssetId) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1117,12 +1450,12 @@ func (m *ValueView_UnknownDenom) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *ValueView_UnknownDenom) MarshalTo(dAtA []byte) (int, error) { +func (m *ValueView_UnknownAssetId) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *ValueView_UnknownDenom) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ValueView_UnknownAssetId) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1154,43 +1487,252 @@ func (m *ValueView_UnknownDenom) MarshalToSizedBuffer(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func encodeVarintAsset(dAtA []byte, offset int, v uint64) int { - offset -= sovAsset(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ +func (m *AssetImage) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - dAtA[offset] = uint8(v) - return base + return dAtA[:n], nil } -func (m *BalanceCommitment) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Inner) - if l > 0 { - n += 1 + l + sovAsset(uint64(l)) - } - return n + +func (m *AssetImage) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *AssetId) Size() (n int) { - if m == nil { - return 0 - } +func (m *AssetImage) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - l = len(m.Inner) - if l > 0 { - n += 1 + l + sovAsset(uint64(l)) + if m.Theme != nil { + { + size, err := m.Theme.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAsset(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a } - l = len(m.AltBech32M) - if l > 0 { - n += 1 + l + sovAsset(uint64(l)) + if len(m.Svg) > 0 { + i -= len(m.Svg) + copy(dAtA[i:], m.Svg) + i = encodeVarintAsset(dAtA, i, uint64(len(m.Svg))) + i-- + dAtA[i] = 0x12 + } + if len(m.Png) > 0 { + i -= len(m.Png) + copy(dAtA[i:], m.Png) + i = encodeVarintAsset(dAtA, i, uint64(len(m.Png))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *AssetImage_Theme) 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 *AssetImage_Theme) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AssetImage_Theme) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.DarkMode { + i-- + if m.DarkMode { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + } + if m.Circle { + i-- + if m.Circle { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x10 + } + if len(m.PrimaryColorHex) > 0 { + i -= len(m.PrimaryColorHex) + copy(dAtA[i:], m.PrimaryColorHex) + i = encodeVarintAsset(dAtA, i, uint64(len(m.PrimaryColorHex))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *EstimatedPrice) 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 *EstimatedPrice) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EstimatedPrice) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.AsOfHeight != 0 { + i = encodeVarintAsset(dAtA, i, uint64(m.AsOfHeight)) + i-- + dAtA[i] = 0x20 + } + if m.NumerairePerUnit != 0 { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.NumerairePerUnit)))) + i-- + dAtA[i] = 0x19 + } + if m.Numeraire != nil { + { + size, err := m.Numeraire.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAsset(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.PricedAsset != nil { + { + size, err := m.PricedAsset.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAsset(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *EquivalentValue) 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 *EquivalentValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EquivalentValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.AsOfHeight != 0 { + i = encodeVarintAsset(dAtA, i, uint64(m.AsOfHeight)) + i-- + dAtA[i] = 0x18 + } + if m.Numeraire != nil { + { + size, err := m.Numeraire.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAsset(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.EquivalentAmount != nil { + { + size, err := m.EquivalentAmount.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAsset(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintAsset(dAtA []byte, offset int, v uint64) int { + offset -= sovAsset(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *BalanceCommitment) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Inner) + if l > 0 { + n += 1 + l + sovAsset(uint64(l)) + } + return n +} + +func (m *AssetId) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Inner) + if l > 0 { + n += 1 + l + sovAsset(uint64(l)) + } + l = len(m.AltBech32M) + if l > 0 { + n += 1 + l + sovAsset(uint64(l)) } l = len(m.AltBaseDenom) if l > 0 { @@ -1212,7 +1754,7 @@ func (m *Denom) Size() (n int) { return n } -func (m *DenomMetadata) Size() (n int) { +func (m *Metadata) Size() (n int) { if m == nil { return 0 } @@ -1244,18 +1786,16 @@ func (m *DenomMetadata) Size() (n int) { if l > 0 { n += 1 + l + sovAsset(uint64(l)) } - l = len(m.Uri) - if l > 0 { - n += 1 + l + sovAsset(uint64(l)) - } - l = len(m.UriHash) - if l > 0 { - n += 1 + l + sovAsset(uint64(l)) - } if m.PenumbraAssetId != nil { l = m.PenumbraAssetId.Size() n += 2 + l + sovAsset(uint64(l)) } + if len(m.Images) > 0 { + for _, e := range m.Images { + l = e.Size() + n += 2 + l + sovAsset(uint64(l)) + } + } return n } @@ -1310,31 +1850,31 @@ func (m *ValueView) Size() (n int) { return n } -func (m *ValueView_KnownDenom_) Size() (n int) { +func (m *ValueView_KnownAssetId_) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.KnownDenom != nil { - l = m.KnownDenom.Size() + if m.KnownAssetId != nil { + l = m.KnownAssetId.Size() n += 1 + l + sovAsset(uint64(l)) } return n } -func (m *ValueView_UnknownDenom_) Size() (n int) { +func (m *ValueView_UnknownAssetId_) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.UnknownDenom != nil { - l = m.UnknownDenom.Size() + if m.UnknownAssetId != nil { + l = m.UnknownAssetId.Size() n += 1 + l + sovAsset(uint64(l)) } return n } -func (m *ValueView_KnownDenom) Size() (n int) { +func (m *ValueView_KnownAssetId) Size() (n int) { if m == nil { return 0 } @@ -1344,14 +1884,24 @@ func (m *ValueView_KnownDenom) Size() (n int) { l = m.Amount.Size() n += 1 + l + sovAsset(uint64(l)) } - if m.Denom != nil { - l = m.Denom.Size() + if m.Metadata != nil { + l = m.Metadata.Size() + n += 1 + l + sovAsset(uint64(l)) + } + if len(m.EquivalentValues) > 0 { + for _, e := range m.EquivalentValues { + l = e.Size() + n += 1 + l + sovAsset(uint64(l)) + } + } + if m.ExtendedMetadata != nil { + l = m.ExtendedMetadata.Size() n += 1 + l + sovAsset(uint64(l)) } return n } -func (m *ValueView_UnknownDenom) Size() (n int) { +func (m *ValueView_UnknownAssetId) Size() (n int) { if m == nil { return 0 } @@ -1368,6 +1918,89 @@ func (m *ValueView_UnknownDenom) Size() (n int) { return n } +func (m *AssetImage) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Png) + if l > 0 { + n += 1 + l + sovAsset(uint64(l)) + } + l = len(m.Svg) + if l > 0 { + n += 1 + l + sovAsset(uint64(l)) + } + if m.Theme != nil { + l = m.Theme.Size() + n += 1 + l + sovAsset(uint64(l)) + } + return n +} + +func (m *AssetImage_Theme) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.PrimaryColorHex) + if l > 0 { + n += 1 + l + sovAsset(uint64(l)) + } + if m.Circle { + n += 2 + } + if m.DarkMode { + n += 2 + } + return n +} + +func (m *EstimatedPrice) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PricedAsset != nil { + l = m.PricedAsset.Size() + n += 1 + l + sovAsset(uint64(l)) + } + if m.Numeraire != nil { + l = m.Numeraire.Size() + n += 1 + l + sovAsset(uint64(l)) + } + if m.NumerairePerUnit != 0 { + n += 9 + } + if m.AsOfHeight != 0 { + n += 1 + sovAsset(uint64(m.AsOfHeight)) + } + return n +} + +func (m *EquivalentValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.EquivalentAmount != nil { + l = m.EquivalentAmount.Size() + n += 1 + l + sovAsset(uint64(l)) + } + if m.Numeraire != nil { + l = m.Numeraire.Size() + n += 1 + l + sovAsset(uint64(l)) + } + if m.AsOfHeight != 0 { + n += 1 + sovAsset(uint64(m.AsOfHeight)) + } + return n +} + func sovAsset(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } @@ -1688,7 +2321,7 @@ func (m *Denom) Unmarshal(dAtA []byte) error { } return nil } -func (m *DenomMetadata) Unmarshal(dAtA []byte) error { +func (m *Metadata) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -1711,10 +2344,10 @@ func (m *DenomMetadata) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: DenomMetadata: wiretype end group for non-group") + return fmt.Errorf("proto: Metadata: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: DenomMetadata: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Metadata: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -1911,11 +2544,11 @@ func (m *DenomMetadata) Unmarshal(dAtA []byte) error { } m.Symbol = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 7: + case 1984: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Uri", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field PenumbraAssetId", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowAsset @@ -1925,29 +2558,33 @@ func (m *DenomMetadata) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthAsset } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthAsset } if postIndex > l { return io.ErrUnexpectedEOF } - m.Uri = string(dAtA[iNdEx:postIndex]) + if m.PenumbraAssetId == nil { + m.PenumbraAssetId = &AssetId{} + } + if err := m.PenumbraAssetId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex - case 8: + case 1985: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UriHash", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Images", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowAsset @@ -1957,39 +2594,7 @@ func (m *DenomMetadata) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthAsset - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthAsset - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.UriHash = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 1984: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PenumbraAssetId", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAsset - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2004,10 +2609,8 @@ func (m *DenomMetadata) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.PenumbraAssetId == nil { - m.PenumbraAssetId = &AssetId{} - } - if err := m.PenumbraAssetId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.Images = append(m.Images, &AssetImage{}) + if err := m.Images[len(m.Images)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -2224,7 +2827,7 @@ func (m *Value) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Amount == nil { - m.Amount = &v1alpha1.Amount{} + m.Amount = &v1.Amount{} } if err := m.Amount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -2318,7 +2921,7 @@ func (m *ValueView) Unmarshal(dAtA []byte) error { switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field KnownDenom", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field KnownAssetId", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -2345,15 +2948,15 @@ func (m *ValueView) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &ValueView_KnownDenom{} + v := &ValueView_KnownAssetId{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.ValueView = &ValueView_KnownDenom_{v} + m.ValueView = &ValueView_KnownAssetId_{v} iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UnknownDenom", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field UnknownAssetId", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -2380,11 +2983,11 @@ func (m *ValueView) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &ValueView_UnknownDenom{} + v := &ValueView_UnknownAssetId{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.ValueView = &ValueView_UnknownDenom_{v} + m.ValueView = &ValueView_UnknownAssetId_{v} iNdEx = postIndex default: iNdEx = preIndex @@ -2407,7 +3010,7 @@ func (m *ValueView) Unmarshal(dAtA []byte) error { } return nil } -func (m *ValueView_KnownDenom) Unmarshal(dAtA []byte) error { +func (m *ValueView_KnownAssetId) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2430,10 +3033,10 @@ func (m *ValueView_KnownDenom) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: KnownDenom: wiretype end group for non-group") + return fmt.Errorf("proto: KnownAssetId: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: KnownDenom: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: KnownAssetId: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -2466,7 +3069,7 @@ func (m *ValueView_KnownDenom) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Amount == nil { - m.Amount = &v1alpha1.Amount{} + m.Amount = &v1.Amount{} } if err := m.Amount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -2474,7 +3077,77 @@ func (m *ValueView_KnownDenom) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Denom", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAsset + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAsset + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAsset + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Metadata == nil { + m.Metadata = &Metadata{} + } + if err := m.Metadata.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EquivalentValues", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAsset + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAsset + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAsset + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.EquivalentValues = append(m.EquivalentValues, &EquivalentValue{}) + if err := m.EquivalentValues[len(m.EquivalentValues)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExtendedMetadata", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -2501,10 +3174,10 @@ func (m *ValueView_KnownDenom) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Denom == nil { - m.Denom = &DenomMetadata{} + if m.ExtendedMetadata == nil { + m.ExtendedMetadata = &types.Any{} } - if err := m.Denom.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.ExtendedMetadata.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -2529,7 +3202,7 @@ func (m *ValueView_KnownDenom) Unmarshal(dAtA []byte) error { } return nil } -func (m *ValueView_UnknownDenom) Unmarshal(dAtA []byte) error { +func (m *ValueView_UnknownAssetId) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2552,10 +3225,10 @@ func (m *ValueView_UnknownDenom) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: UnknownDenom: wiretype end group for non-group") + return fmt.Errorf("proto: UnknownAssetId: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: UnknownDenom: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: UnknownAssetId: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -2588,7 +3261,7 @@ func (m *ValueView_UnknownDenom) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Amount == nil { - m.Amount = &v1alpha1.Amount{} + m.Amount = &v1.Amount{} } if err := m.Amount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -2651,6 +3324,571 @@ func (m *ValueView_UnknownDenom) Unmarshal(dAtA []byte) error { } return nil } +func (m *AssetImage) 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 ErrIntOverflowAsset + } + 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: AssetImage: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AssetImage: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Png", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAsset + } + 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 ErrInvalidLengthAsset + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAsset + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Png = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Svg", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAsset + } + 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 ErrInvalidLengthAsset + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAsset + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Svg = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Theme", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAsset + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAsset + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAsset + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Theme == nil { + m.Theme = &AssetImage_Theme{} + } + if err := m.Theme.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAsset(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthAsset + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AssetImage_Theme) 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 ErrIntOverflowAsset + } + 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: Theme: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Theme: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PrimaryColorHex", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAsset + } + 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 ErrInvalidLengthAsset + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAsset + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PrimaryColorHex = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Circle", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAsset + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Circle = bool(v != 0) + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DarkMode", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAsset + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DarkMode = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipAsset(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthAsset + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *EstimatedPrice) 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 ErrIntOverflowAsset + } + 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: EstimatedPrice: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EstimatedPrice: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PricedAsset", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAsset + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAsset + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAsset + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.PricedAsset == nil { + m.PricedAsset = &AssetId{} + } + if err := m.PricedAsset.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Numeraire", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAsset + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAsset + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAsset + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Numeraire == nil { + m.Numeraire = &AssetId{} + } + if err := m.Numeraire.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field NumerairePerUnit", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + m.NumerairePerUnit = float64(math.Float64frombits(v)) + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AsOfHeight", wireType) + } + m.AsOfHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAsset + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.AsOfHeight |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipAsset(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthAsset + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *EquivalentValue) 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 ErrIntOverflowAsset + } + 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: EquivalentValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EquivalentValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EquivalentAmount", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAsset + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAsset + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAsset + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.EquivalentAmount == nil { + m.EquivalentAmount = &v1.Amount{} + } + if err := m.EquivalentAmount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Numeraire", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAsset + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAsset + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAsset + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Numeraire == nil { + m.Numeraire = &Metadata{} + } + if err := m.Numeraire.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AsOfHeight", wireType) + } + m.AsOfHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAsset + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.AsOfHeight |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipAsset(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthAsset + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func skipAsset(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 diff --git a/relayer/chains/penumbra/core/component/chain/v1alpha1/chain.pb.go b/relayer/chains/penumbra/core/component/chain/v1alpha1/chain.pb.go deleted file mode 100644 index 8c4d79f83..000000000 --- a/relayer/chains/penumbra/core/component/chain/v1alpha1/chain.pb.go +++ /dev/null @@ -1,1553 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: penumbra/core/component/chain/v1alpha1/chain.proto - -package chainv1alpha1 - -import ( - context "context" - fmt "fmt" - grpc1 "github.com/cosmos/gogoproto/grpc" - proto "github.com/cosmos/gogoproto/proto" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - io "io" - math "math" - math_bits "math/bits" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package - -// Global chain configuration data, such as chain ID, epoch duration, etc. -type ChainParameters struct { - // The identifier of the chain. - ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` - // The duration of each epoch, in number of blocks. - EpochDuration uint64 `protobuf:"varint,2,opt,name=epoch_duration,json=epochDuration,proto3" json:"epoch_duration,omitempty"` -} - -func (m *ChainParameters) Reset() { *m = ChainParameters{} } -func (m *ChainParameters) String() string { return proto.CompactTextString(m) } -func (*ChainParameters) ProtoMessage() {} -func (*ChainParameters) Descriptor() ([]byte, []int) { - return fileDescriptor_aca0b6fc4499b003, []int{0} -} -func (m *ChainParameters) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ChainParameters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ChainParameters.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 *ChainParameters) XXX_Merge(src proto.Message) { - xxx_messageInfo_ChainParameters.Merge(m, src) -} -func (m *ChainParameters) XXX_Size() int { - return m.Size() -} -func (m *ChainParameters) XXX_DiscardUnknown() { - xxx_messageInfo_ChainParameters.DiscardUnknown(m) -} - -var xxx_messageInfo_ChainParameters proto.InternalMessageInfo - -func (m *ChainParameters) GetChainId() string { - if m != nil { - return m.ChainId - } - return "" -} - -func (m *ChainParameters) GetEpochDuration() uint64 { - if m != nil { - return m.EpochDuration - } - return 0 -} - -// The ratio between two numbers, used in governance to describe vote thresholds and quorums. -type Ratio struct { - // The numerator. - Numerator uint64 `protobuf:"varint,1,opt,name=numerator,proto3" json:"numerator,omitempty"` - // The denominator. - Denominator uint64 `protobuf:"varint,2,opt,name=denominator,proto3" json:"denominator,omitempty"` -} - -func (m *Ratio) Reset() { *m = Ratio{} } -func (m *Ratio) String() string { return proto.CompactTextString(m) } -func (*Ratio) ProtoMessage() {} -func (*Ratio) Descriptor() ([]byte, []int) { - return fileDescriptor_aca0b6fc4499b003, []int{1} -} -func (m *Ratio) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Ratio) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Ratio.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 *Ratio) XXX_Merge(src proto.Message) { - xxx_messageInfo_Ratio.Merge(m, src) -} -func (m *Ratio) XXX_Size() int { - return m.Size() -} -func (m *Ratio) XXX_DiscardUnknown() { - xxx_messageInfo_Ratio.DiscardUnknown(m) -} - -var xxx_messageInfo_Ratio proto.InternalMessageInfo - -func (m *Ratio) GetNumerator() uint64 { - if m != nil { - return m.Numerator - } - return 0 -} - -func (m *Ratio) GetDenominator() uint64 { - if m != nil { - return m.Denominator - } - return 0 -} - -// Parameters for Fuzzy Message Detection -type FmdParameters struct { - PrecisionBits uint32 `protobuf:"varint,1,opt,name=precision_bits,json=precisionBits,proto3" json:"precision_bits,omitempty"` - AsOfBlockHeight uint64 `protobuf:"varint,2,opt,name=as_of_block_height,json=asOfBlockHeight,proto3" json:"as_of_block_height,omitempty"` -} - -func (m *FmdParameters) Reset() { *m = FmdParameters{} } -func (m *FmdParameters) String() string { return proto.CompactTextString(m) } -func (*FmdParameters) ProtoMessage() {} -func (*FmdParameters) Descriptor() ([]byte, []int) { - return fileDescriptor_aca0b6fc4499b003, []int{2} -} -func (m *FmdParameters) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *FmdParameters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_FmdParameters.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 *FmdParameters) XXX_Merge(src proto.Message) { - xxx_messageInfo_FmdParameters.Merge(m, src) -} -func (m *FmdParameters) XXX_Size() int { - return m.Size() -} -func (m *FmdParameters) XXX_DiscardUnknown() { - xxx_messageInfo_FmdParameters.DiscardUnknown(m) -} - -var xxx_messageInfo_FmdParameters proto.InternalMessageInfo - -func (m *FmdParameters) GetPrecisionBits() uint32 { - if m != nil { - return m.PrecisionBits - } - return 0 -} - -func (m *FmdParameters) GetAsOfBlockHeight() uint64 { - if m != nil { - return m.AsOfBlockHeight - } - return 0 -} - -// Chain-specific genesis content. -type GenesisContent struct { - // The ChainParameters present at genesis. - ChainParams *ChainParameters `protobuf:"bytes,1,opt,name=chain_params,json=chainParams,proto3" json:"chain_params,omitempty"` -} - -func (m *GenesisContent) Reset() { *m = GenesisContent{} } -func (m *GenesisContent) String() string { return proto.CompactTextString(m) } -func (*GenesisContent) ProtoMessage() {} -func (*GenesisContent) Descriptor() ([]byte, []int) { - return fileDescriptor_aca0b6fc4499b003, []int{3} -} -func (m *GenesisContent) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GenesisContent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GenesisContent.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 *GenesisContent) XXX_Merge(src proto.Message) { - xxx_messageInfo_GenesisContent.Merge(m, src) -} -func (m *GenesisContent) XXX_Size() int { - return m.Size() -} -func (m *GenesisContent) XXX_DiscardUnknown() { - xxx_messageInfo_GenesisContent.DiscardUnknown(m) -} - -var xxx_messageInfo_GenesisContent proto.InternalMessageInfo - -func (m *GenesisContent) GetChainParams() *ChainParameters { - if m != nil { - return m.ChainParams - } - return nil -} - -type Epoch struct { - Index uint64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` - StartHeight uint64 `protobuf:"varint,2,opt,name=start_height,json=startHeight,proto3" json:"start_height,omitempty"` -} - -func (m *Epoch) Reset() { *m = Epoch{} } -func (m *Epoch) String() string { return proto.CompactTextString(m) } -func (*Epoch) ProtoMessage() {} -func (*Epoch) Descriptor() ([]byte, []int) { - return fileDescriptor_aca0b6fc4499b003, []int{4} -} -func (m *Epoch) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Epoch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Epoch.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 *Epoch) XXX_Merge(src proto.Message) { - xxx_messageInfo_Epoch.Merge(m, src) -} -func (m *Epoch) XXX_Size() int { - return m.Size() -} -func (m *Epoch) XXX_DiscardUnknown() { - xxx_messageInfo_Epoch.DiscardUnknown(m) -} - -var xxx_messageInfo_Epoch proto.InternalMessageInfo - -func (m *Epoch) GetIndex() uint64 { - if m != nil { - return m.Index - } - return 0 -} - -func (m *Epoch) GetStartHeight() uint64 { - if m != nil { - return m.StartHeight - } - return 0 -} - -type EpochByHeightRequest struct { - Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` -} - -func (m *EpochByHeightRequest) Reset() { *m = EpochByHeightRequest{} } -func (m *EpochByHeightRequest) String() string { return proto.CompactTextString(m) } -func (*EpochByHeightRequest) ProtoMessage() {} -func (*EpochByHeightRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_aca0b6fc4499b003, []int{5} -} -func (m *EpochByHeightRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *EpochByHeightRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_EpochByHeightRequest.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 *EpochByHeightRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_EpochByHeightRequest.Merge(m, src) -} -func (m *EpochByHeightRequest) XXX_Size() int { - return m.Size() -} -func (m *EpochByHeightRequest) XXX_DiscardUnknown() { - xxx_messageInfo_EpochByHeightRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_EpochByHeightRequest proto.InternalMessageInfo - -func (m *EpochByHeightRequest) GetHeight() uint64 { - if m != nil { - return m.Height - } - return 0 -} - -type EpochByHeightResponse struct { - Epoch *Epoch `protobuf:"bytes,1,opt,name=epoch,proto3" json:"epoch,omitempty"` -} - -func (m *EpochByHeightResponse) Reset() { *m = EpochByHeightResponse{} } -func (m *EpochByHeightResponse) String() string { return proto.CompactTextString(m) } -func (*EpochByHeightResponse) ProtoMessage() {} -func (*EpochByHeightResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_aca0b6fc4499b003, []int{6} -} -func (m *EpochByHeightResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *EpochByHeightResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_EpochByHeightResponse.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 *EpochByHeightResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_EpochByHeightResponse.Merge(m, src) -} -func (m *EpochByHeightResponse) XXX_Size() int { - return m.Size() -} -func (m *EpochByHeightResponse) XXX_DiscardUnknown() { - xxx_messageInfo_EpochByHeightResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_EpochByHeightResponse proto.InternalMessageInfo - -func (m *EpochByHeightResponse) GetEpoch() *Epoch { - if m != nil { - return m.Epoch - } - return nil -} - -func init() { - proto.RegisterType((*ChainParameters)(nil), "penumbra.core.component.chain.v1alpha1.ChainParameters") - proto.RegisterType((*Ratio)(nil), "penumbra.core.component.chain.v1alpha1.Ratio") - proto.RegisterType((*FmdParameters)(nil), "penumbra.core.component.chain.v1alpha1.FmdParameters") - proto.RegisterType((*GenesisContent)(nil), "penumbra.core.component.chain.v1alpha1.GenesisContent") - proto.RegisterType((*Epoch)(nil), "penumbra.core.component.chain.v1alpha1.Epoch") - proto.RegisterType((*EpochByHeightRequest)(nil), "penumbra.core.component.chain.v1alpha1.EpochByHeightRequest") - proto.RegisterType((*EpochByHeightResponse)(nil), "penumbra.core.component.chain.v1alpha1.EpochByHeightResponse") -} - -func init() { - proto.RegisterFile("penumbra/core/component/chain/v1alpha1/chain.proto", fileDescriptor_aca0b6fc4499b003) -} - -var fileDescriptor_aca0b6fc4499b003 = []byte{ - // 581 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0x4f, 0x6b, 0xd4, 0x4e, - 0x18, 0x6e, 0x42, 0xb7, 0xbf, 0x5f, 0x67, 0xbb, 0x2d, 0x0c, 0x55, 0xaa, 0x48, 0xa8, 0x81, 0x96, - 0x52, 0x31, 0xa1, 0xeb, 0x41, 0x88, 0x0a, 0x92, 0xa8, 0xab, 0x07, 0x71, 0x4d, 0xc1, 0x43, 0x09, - 0xc4, 0xd9, 0x64, 0xda, 0x0c, 0x6e, 0x66, 0xe2, 0xcc, 0x64, 0x71, 0xbf, 0x83, 0x07, 0xbf, 0x80, - 0x17, 0x8f, 0x7e, 0x12, 0xf1, 0xd4, 0xa3, 0x47, 0xd9, 0xbd, 0x79, 0xf1, 0x2b, 0xc8, 0x4c, 0xfe, - 0xb4, 0xdd, 0xd3, 0xea, 0x65, 0x99, 0xf7, 0xd9, 0xe7, 0x79, 0xde, 0xe7, 0x7d, 0x87, 0x09, 0xe8, - 0x17, 0x98, 0x96, 0xf9, 0x88, 0x23, 0x37, 0x61, 0x1c, 0xbb, 0x09, 0xcb, 0x0b, 0x46, 0x31, 0x95, - 0x6e, 0x92, 0x21, 0x42, 0xdd, 0xc9, 0x11, 0x1a, 0x17, 0x19, 0x3a, 0xaa, 0x4a, 0xa7, 0xe0, 0x4c, - 0x32, 0xb8, 0xdf, 0x68, 0x1c, 0xa5, 0x71, 0x5a, 0x8d, 0x53, 0x91, 0x1a, 0x8d, 0x7d, 0x0c, 0xb6, - 0x02, 0x85, 0x0c, 0x11, 0x47, 0x39, 0x96, 0x98, 0x0b, 0x78, 0x03, 0xfc, 0xaf, 0x49, 0x31, 0x49, - 0x77, 0x8c, 0x5d, 0xe3, 0x60, 0x3d, 0xfc, 0x4f, 0xd7, 0x2f, 0x52, 0xb8, 0x07, 0x36, 0x71, 0xc1, - 0x92, 0x2c, 0x4e, 0x4b, 0x8e, 0x24, 0x61, 0x74, 0xc7, 0xdc, 0x35, 0x0e, 0x56, 0xc3, 0x9e, 0x46, - 0x9f, 0xd4, 0xa0, 0x3d, 0x00, 0x9d, 0x50, 0x9d, 0xe0, 0x2d, 0xb0, 0x4e, 0xcb, 0x1c, 0x73, 0x24, - 0x19, 0xd7, 0x5e, 0xab, 0xe1, 0x05, 0x00, 0x77, 0x41, 0x37, 0xc5, 0x94, 0xe5, 0x84, 0xea, 0xff, - 0x2b, 0xab, 0xcb, 0x90, 0x9d, 0x80, 0xde, 0xb3, 0x3c, 0xbd, 0x94, 0x6d, 0x0f, 0x6c, 0x16, 0x1c, - 0x27, 0x44, 0x10, 0x46, 0xe3, 0x11, 0x91, 0x42, 0xbb, 0xf6, 0xc2, 0x5e, 0x8b, 0xfa, 0x44, 0x0a, - 0x78, 0x07, 0x40, 0x24, 0x62, 0x76, 0x1a, 0x8f, 0xc6, 0x2c, 0x79, 0x17, 0x67, 0x98, 0x9c, 0x65, - 0xb2, 0x6e, 0xb0, 0x85, 0xc4, 0xab, 0x53, 0x5f, 0xe1, 0xcf, 0x35, 0x6c, 0x8f, 0xc1, 0xe6, 0x00, - 0x53, 0x2c, 0x88, 0x08, 0x18, 0x95, 0x98, 0x4a, 0x78, 0x02, 0x36, 0xaa, 0x0d, 0x14, 0xaa, 0x73, - 0xd5, 0xa3, 0xdb, 0xbf, 0xef, 0x2c, 0xb7, 0x53, 0x67, 0x61, 0xa1, 0x61, 0x37, 0x69, 0x01, 0x61, - 0x3f, 0x06, 0x9d, 0xa7, 0x6a, 0x59, 0x70, 0x1b, 0x74, 0x08, 0x4d, 0xf1, 0x87, 0x7a, 0x2f, 0x55, - 0x01, 0x6f, 0x83, 0x0d, 0x21, 0x11, 0x97, 0x57, 0x33, 0x77, 0x35, 0x56, 0xe7, 0x75, 0xc0, 0xb6, - 0x76, 0xf0, 0xa7, 0x15, 0x10, 0xe2, 0xf7, 0x25, 0x16, 0x12, 0x5e, 0x07, 0x6b, 0xb5, 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36, 0x22, 0xcf, 0x53, 0x2a, 0xf5, 0x5b, 0xcb, 0x3c, 0x4f, 0xeb, 0x3c, 0xaf, - 0x11, 0x8e, 0xd6, 0xf4, 0x17, 0xe8, 0xde, 0x9f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xb6, 0xbd, 0x1b, - 0x4f, 0xb7, 0x04, 0x00, 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// QueryServiceClient is the client API for QueryService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type QueryServiceClient interface { - // TODO: move to SCT cf sct/src/component/view.rs:9 "make epoch management the responsibility of this component" - EpochByHeight(ctx context.Context, in *EpochByHeightRequest, opts ...grpc.CallOption) (*EpochByHeightResponse, error) -} - -type queryServiceClient struct { - cc grpc1.ClientConn -} - -func NewQueryServiceClient(cc grpc1.ClientConn) QueryServiceClient { - return &queryServiceClient{cc} -} - -func (c *queryServiceClient) EpochByHeight(ctx context.Context, in *EpochByHeightRequest, opts ...grpc.CallOption) (*EpochByHeightResponse, error) { - out := new(EpochByHeightResponse) - err := c.cc.Invoke(ctx, "/penumbra.core.component.chain.v1alpha1.QueryService/EpochByHeight", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// QueryServiceServer is the server API for QueryService service. -type QueryServiceServer interface { - // TODO: move to SCT cf sct/src/component/view.rs:9 "make epoch management the responsibility of this component" - EpochByHeight(context.Context, *EpochByHeightRequest) (*EpochByHeightResponse, error) -} - -// UnimplementedQueryServiceServer can be embedded to have forward compatible implementations. -type UnimplementedQueryServiceServer struct { -} - -func (*UnimplementedQueryServiceServer) EpochByHeight(ctx context.Context, req *EpochByHeightRequest) (*EpochByHeightResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method EpochByHeight not implemented") -} - -func RegisterQueryServiceServer(s grpc1.Server, srv QueryServiceServer) { - s.RegisterService(&_QueryService_serviceDesc, srv) -} - -func _QueryService_EpochByHeight_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(EpochByHeightRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServiceServer).EpochByHeight(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/penumbra.core.component.chain.v1alpha1.QueryService/EpochByHeight", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServiceServer).EpochByHeight(ctx, req.(*EpochByHeightRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _QueryService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "penumbra.core.component.chain.v1alpha1.QueryService", - HandlerType: (*QueryServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "EpochByHeight", - Handler: _QueryService_EpochByHeight_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "penumbra/core/component/chain/v1alpha1/chain.proto", -} - -func (m *ChainParameters) 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 *ChainParameters) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ChainParameters) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.EpochDuration != 0 { - i = encodeVarintChain(dAtA, i, uint64(m.EpochDuration)) - i-- - dAtA[i] = 0x10 - } - if len(m.ChainId) > 0 { - i -= len(m.ChainId) - copy(dAtA[i:], m.ChainId) - i = encodeVarintChain(dAtA, i, uint64(len(m.ChainId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *Ratio) 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 *Ratio) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Ratio) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Denominator != 0 { - i = encodeVarintChain(dAtA, i, uint64(m.Denominator)) - i-- - dAtA[i] = 0x10 - } - if m.Numerator != 0 { - i = encodeVarintChain(dAtA, i, uint64(m.Numerator)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *FmdParameters) 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 *FmdParameters) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *FmdParameters) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.AsOfBlockHeight != 0 { - i = encodeVarintChain(dAtA, i, uint64(m.AsOfBlockHeight)) - i-- - dAtA[i] = 0x10 - } - if m.PrecisionBits != 0 { - i = encodeVarintChain(dAtA, i, uint64(m.PrecisionBits)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *GenesisContent) 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 *GenesisContent) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GenesisContent) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.ChainParams != nil { - { - size, err := m.ChainParams.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintChain(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *Epoch) 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 *Epoch) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Epoch) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.StartHeight != 0 { - i = encodeVarintChain(dAtA, i, uint64(m.StartHeight)) - i-- - dAtA[i] = 0x10 - } - if m.Index != 0 { - i = encodeVarintChain(dAtA, i, uint64(m.Index)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *EpochByHeightRequest) 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 *EpochByHeightRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EpochByHeightRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Height != 0 { - i = encodeVarintChain(dAtA, i, uint64(m.Height)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *EpochByHeightResponse) 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 *EpochByHeightResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EpochByHeightResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Epoch != nil { - { - size, err := m.Epoch.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintChain(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func encodeVarintChain(dAtA []byte, offset int, v uint64) int { - offset -= sovChain(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *ChainParameters) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ChainId) - if l > 0 { - n += 1 + l + sovChain(uint64(l)) - } - if m.EpochDuration != 0 { - n += 1 + sovChain(uint64(m.EpochDuration)) - } - return n -} - -func (m *Ratio) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Numerator != 0 { - n += 1 + sovChain(uint64(m.Numerator)) - } - if m.Denominator != 0 { - n += 1 + sovChain(uint64(m.Denominator)) - } - return n -} - -func (m *FmdParameters) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.PrecisionBits != 0 { - n += 1 + sovChain(uint64(m.PrecisionBits)) - } - if m.AsOfBlockHeight != 0 { - n += 1 + sovChain(uint64(m.AsOfBlockHeight)) - } - return n -} - -func (m *GenesisContent) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ChainParams != nil { - l = m.ChainParams.Size() - n += 1 + l + sovChain(uint64(l)) - } - return n -} - -func (m *Epoch) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Index != 0 { - n += 1 + sovChain(uint64(m.Index)) - } - if m.StartHeight != 0 { - n += 1 + sovChain(uint64(m.StartHeight)) - } - return n -} - -func (m *EpochByHeightRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Height != 0 { - n += 1 + sovChain(uint64(m.Height)) - } - return n -} - -func (m *EpochByHeightResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Epoch != nil { - l = m.Epoch.Size() - n += 1 + l + sovChain(uint64(l)) - } - return n -} - -func sovChain(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozChain(x uint64) (n int) { - return sovChain(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *ChainParameters) 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 ErrIntOverflowChain - } - 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: ChainParameters: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ChainParameters: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowChain - } - 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 ErrInvalidLengthChain - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthChain - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ChainId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field EpochDuration", wireType) - } - m.EpochDuration = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowChain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.EpochDuration |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipChain(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthChain - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Ratio) 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 ErrIntOverflowChain - } - 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: Ratio: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Ratio: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Numerator", wireType) - } - m.Numerator = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowChain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Numerator |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Denominator", wireType) - } - m.Denominator = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowChain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Denominator |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipChain(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthChain - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *FmdParameters) 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 ErrIntOverflowChain - } - 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: FmdParameters: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: FmdParameters: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field PrecisionBits", wireType) - } - m.PrecisionBits = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowChain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.PrecisionBits |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AsOfBlockHeight", wireType) - } - m.AsOfBlockHeight = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowChain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.AsOfBlockHeight |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipChain(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthChain - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GenesisContent) 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 ErrIntOverflowChain - } - 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: GenesisContent: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GenesisContent: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ChainParams", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowChain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthChain - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthChain - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ChainParams == nil { - m.ChainParams = &ChainParameters{} - } - if err := m.ChainParams.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipChain(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthChain - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Epoch) 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 ErrIntOverflowChain - } - 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: Epoch: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Epoch: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType) - } - m.Index = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowChain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Index |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StartHeight", wireType) - } - m.StartHeight = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowChain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.StartHeight |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipChain(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthChain - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *EpochByHeightRequest) 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 ErrIntOverflowChain - } - 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: EpochByHeightRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: EpochByHeightRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) - } - m.Height = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowChain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Height |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipChain(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthChain - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *EpochByHeightResponse) 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 ErrIntOverflowChain - } - 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: EpochByHeightResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: EpochByHeightResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Epoch", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowChain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthChain - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthChain - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Epoch == nil { - m.Epoch = &Epoch{} - } - if err := m.Epoch.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipChain(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthChain - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipChain(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowChain - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowChain - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowChain - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthChain - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupChain - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthChain - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthChain = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowChain = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupChain = fmt.Errorf("proto: unexpected end of group") -) diff --git a/relayer/chains/penumbra/core/component/community_pool/v1alpha1/community_pool.pb.go b/relayer/chains/penumbra/core/component/community_pool/v1/community_pool.pb.go similarity index 79% rename from relayer/chains/penumbra/core/component/community_pool/v1alpha1/community_pool.pb.go rename to relayer/chains/penumbra/core/component/community_pool/v1/community_pool.pb.go index d370f4a26..0225252dd 100644 --- a/relayer/chains/penumbra/core/component/community_pool/v1alpha1/community_pool.pb.go +++ b/relayer/chains/penumbra/core/component/community_pool/v1/community_pool.pb.go @@ -1,14 +1,14 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: penumbra/core/component/community_pool/v1alpha1/community_pool.proto +// source: penumbra/core/component/community_pool/v1/community_pool.proto -package community_poolv1alpha1 +package community_poolv1 import ( context "context" fmt "fmt" grpc1 "github.com/cosmos/gogoproto/grpc" proto "github.com/cosmos/gogoproto/proto" - v1alpha1 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/asset/v1alpha1" + v1 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/asset/v1" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -38,7 +38,7 @@ func (m *CommunityPoolParameters) Reset() { *m = CommunityPoolParameters func (m *CommunityPoolParameters) String() string { return proto.CompactTextString(m) } func (*CommunityPoolParameters) ProtoMessage() {} func (*CommunityPoolParameters) Descriptor() ([]byte, []int) { - return fileDescriptor_cbd96600126596ed, []int{0} + return fileDescriptor_1c6b5a43fb54145e, []int{0} } func (m *CommunityPoolParameters) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -84,7 +84,7 @@ func (m *GenesisContent) Reset() { *m = GenesisContent{} } func (m *GenesisContent) String() string { return proto.CompactTextString(m) } func (*GenesisContent) ProtoMessage() {} func (*GenesisContent) Descriptor() ([]byte, []int) { - return fileDescriptor_cbd96600126596ed, []int{1} + return fileDescriptor_1c6b5a43fb54145e, []int{1} } func (m *GenesisContent) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -122,17 +122,15 @@ func (m *GenesisContent) GetCommunityPoolParams() *CommunityPoolParameters { // Requests the list of all asset balances associated with the Community Pool. type CommunityPoolAssetBalancesRequest struct { - // The expected chain id (empty string if no expectation). - ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` // (Optional): The specific asset balances to retrieve, if excluded all will be returned. - AssetIds []*v1alpha1.AssetId `protobuf:"bytes,2,rep,name=asset_ids,json=assetIds,proto3" json:"asset_ids,omitempty"` + AssetIds []*v1.AssetId `protobuf:"bytes,2,rep,name=asset_ids,json=assetIds,proto3" json:"asset_ids,omitempty"` } func (m *CommunityPoolAssetBalancesRequest) Reset() { *m = CommunityPoolAssetBalancesRequest{} } func (m *CommunityPoolAssetBalancesRequest) String() string { return proto.CompactTextString(m) } func (*CommunityPoolAssetBalancesRequest) ProtoMessage() {} func (*CommunityPoolAssetBalancesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_cbd96600126596ed, []int{2} + return fileDescriptor_1c6b5a43fb54145e, []int{2} } func (m *CommunityPoolAssetBalancesRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -161,14 +159,7 @@ func (m *CommunityPoolAssetBalancesRequest) XXX_DiscardUnknown() { var xxx_messageInfo_CommunityPoolAssetBalancesRequest proto.InternalMessageInfo -func (m *CommunityPoolAssetBalancesRequest) GetChainId() string { - if m != nil { - return m.ChainId - } - return "" -} - -func (m *CommunityPoolAssetBalancesRequest) GetAssetIds() []*v1alpha1.AssetId { +func (m *CommunityPoolAssetBalancesRequest) GetAssetIds() []*v1.AssetId { if m != nil { return m.AssetIds } @@ -178,14 +169,14 @@ func (m *CommunityPoolAssetBalancesRequest) GetAssetIds() []*v1alpha1.AssetId { // The Community Pool's balance of a single asset. type CommunityPoolAssetBalancesResponse struct { // The balance for a single asset. - Balance *v1alpha1.Value `protobuf:"bytes,1,opt,name=balance,proto3" json:"balance,omitempty"` + Balance *v1.Value `protobuf:"bytes,1,opt,name=balance,proto3" json:"balance,omitempty"` } func (m *CommunityPoolAssetBalancesResponse) Reset() { *m = CommunityPoolAssetBalancesResponse{} } func (m *CommunityPoolAssetBalancesResponse) String() string { return proto.CompactTextString(m) } func (*CommunityPoolAssetBalancesResponse) ProtoMessage() {} func (*CommunityPoolAssetBalancesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_cbd96600126596ed, []int{3} + return fileDescriptor_1c6b5a43fb54145e, []int{3} } func (m *CommunityPoolAssetBalancesResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -214,7 +205,7 @@ func (m *CommunityPoolAssetBalancesResponse) XXX_DiscardUnknown() { var xxx_messageInfo_CommunityPoolAssetBalancesResponse proto.InternalMessageInfo -func (m *CommunityPoolAssetBalancesResponse) GetBalance() *v1alpha1.Value { +func (m *CommunityPoolAssetBalancesResponse) GetBalance() *v1.Value { if m != nil { return m.Balance } @@ -222,52 +213,50 @@ func (m *CommunityPoolAssetBalancesResponse) GetBalance() *v1alpha1.Value { } func init() { - proto.RegisterType((*CommunityPoolParameters)(nil), "penumbra.core.component.community_pool.v1alpha1.CommunityPoolParameters") - proto.RegisterType((*GenesisContent)(nil), "penumbra.core.component.community_pool.v1alpha1.GenesisContent") - proto.RegisterType((*CommunityPoolAssetBalancesRequest)(nil), "penumbra.core.component.community_pool.v1alpha1.CommunityPoolAssetBalancesRequest") - proto.RegisterType((*CommunityPoolAssetBalancesResponse)(nil), "penumbra.core.component.community_pool.v1alpha1.CommunityPoolAssetBalancesResponse") + proto.RegisterType((*CommunityPoolParameters)(nil), "penumbra.core.component.community_pool.v1.CommunityPoolParameters") + proto.RegisterType((*GenesisContent)(nil), "penumbra.core.component.community_pool.v1.GenesisContent") + proto.RegisterType((*CommunityPoolAssetBalancesRequest)(nil), "penumbra.core.component.community_pool.v1.CommunityPoolAssetBalancesRequest") + proto.RegisterType((*CommunityPoolAssetBalancesResponse)(nil), "penumbra.core.component.community_pool.v1.CommunityPoolAssetBalancesResponse") } func init() { - proto.RegisterFile("penumbra/core/component/community_pool/v1alpha1/community_pool.proto", fileDescriptor_cbd96600126596ed) -} - -var fileDescriptor_cbd96600126596ed = []byte{ - // 531 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x94, 0x41, 0x8b, 0xd3, 0x40, - 0x14, 0xc7, 0x3b, 0x5d, 0x71, 0xbb, 0xb3, 0xe2, 0x21, 0x22, 0xae, 0x3d, 0x84, 0x35, 0xa2, 0xf4, - 0x94, 0xb8, 0xdd, 0x5b, 0xc5, 0x83, 0x8d, 0xb2, 0xee, 0x41, 0x88, 0x29, 0xec, 0x41, 0x0a, 0x61, - 0x9a, 0x3c, 0x6c, 0x20, 0x99, 0x19, 0x67, 0x26, 0x85, 0x82, 0x27, 0x3f, 0x80, 0xf8, 0x19, 0x3c, - 0x7a, 0xf4, 0x4b, 0x28, 0x9e, 0xf6, 0xb8, 0x47, 0x69, 0x6f, 0x7e, 0x0a, 0x99, 0xa4, 0x93, 0x9a, - 0xea, 0x2e, 0x14, 0xbd, 0x94, 0x37, 0xaf, 0xef, 0xf7, 0x7f, 0xef, 0xfd, 0x99, 0x09, 0x7e, 0xc6, - 0x81, 0x16, 0xf9, 0x44, 0x10, 0x2f, 0x66, 0x02, 0xbc, 0x98, 0xe5, 0x9c, 0x51, 0xa0, 0x4a, 0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e3, 0x06, 0x30, 0x36, - 0xc0, 0xa2, 0x3d, 0xd8, 0x0e, 0x18, 0x9f, 0x04, 0xc3, 0x97, 0xa0, 0x48, 0x42, 0x14, 0xf9, 0xd9, - 0xee, 0x1b, 0x78, 0x30, 0xd0, 0xb4, 0xfe, 0x5d, 0xe1, 0x65, 0xb8, 0xe6, 0x07, 0x03, 0x23, 0x30, - 0xb9, 0x5e, 0x7e, 0x80, 0x8e, 0x7f, 0x05, 0x00, 0x00, 0xff, 0xff, 0xea, 0x31, 0xe6, 0x39, 0x23, - 0x05, 0x00, 0x00, + proto.RegisterFile("penumbra/core/component/community_pool/v1/community_pool.proto", fileDescriptor_1c6b5a43fb54145e) +} + +var fileDescriptor_1c6b5a43fb54145e = []byte{ + // 510 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x94, 0x41, 0x8a, 0xd4, 0x40, + 0x14, 0x86, 0xbb, 0x32, 0xa2, 0x63, 0x8d, 0xb8, 0x88, 0x88, 0x43, 0x83, 0x71, 0xcc, 0x42, 0x5a, + 0xd0, 0xc4, 0xb4, 0x82, 0xd0, 0x8a, 0x60, 0x82, 0x0c, 0x82, 0x03, 0x31, 0x03, 0xbd, 0x90, 0x48, + 0xa8, 0x24, 0x4f, 0x27, 0x90, 0x54, 0xc5, 0xaa, 0x4a, 0xa0, 0x6f, 0x30, 0x4b, 0xcf, 0xe0, 0xd2, + 0x2b, 0x78, 0x01, 0x11, 0x17, 0xb3, 0x74, 0x29, 0xdd, 0x3b, 0x4f, 0x21, 0x95, 0x4c, 0x7a, 0x4c, + 0x6b, 0x4b, 0x23, 0x6e, 0xc2, 0xa3, 0xf2, 0xfd, 0xff, 0x7b, 0xef, 0xa7, 0x12, 0xfc, 0xa4, 0x04, + 0x5a, 0x15, 0x31, 0x27, 0x76, 0xc2, 0x38, 0xd8, 0x09, 0x2b, 0x4a, 0x46, 0x81, 0x4a, 0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 0xb4, 0x3b, 0x9d, 0x6c, 0x32, 0x51, 0x3a, + 0xf5, 0x3c, 0x15, 0x36, 0xe5, 0x99, 0x72, 0x32, 0x99, 0x3a, 0xf1, 0xf9, 0xe6, 0xe7, 0x70, 0xff, + 0x67, 0x00, 0x00, 0x00, 0xff, 0xff, 0x0e, 0xcb, 0x4c, 0x16, 0xad, 0x04, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -294,7 +283,7 @@ func NewQueryServiceClient(cc grpc1.ClientConn) QueryServiceClient { } func (c *queryServiceClient) CommunityPoolAssetBalances(ctx context.Context, in *CommunityPoolAssetBalancesRequest, opts ...grpc.CallOption) (QueryService_CommunityPoolAssetBalancesClient, error) { - stream, err := c.cc.NewStream(ctx, &_QueryService_serviceDesc.Streams[0], "/penumbra.core.component.community_pool.v1alpha1.QueryService/CommunityPoolAssetBalances", opts...) + stream, err := c.cc.NewStream(ctx, &_QueryService_serviceDesc.Streams[0], "/penumbra.core.component.community_pool.v1.QueryService/CommunityPoolAssetBalances", opts...) if err != nil { return nil, err } @@ -364,7 +353,7 @@ func (x *queryServiceCommunityPoolAssetBalancesServer) Send(m *CommunityPoolAsse } var _QueryService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "penumbra.core.component.community_pool.v1alpha1.QueryService", + ServiceName: "penumbra.core.component.community_pool.v1.QueryService", HandlerType: (*QueryServiceServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ @@ -374,7 +363,7 @@ var _QueryService_serviceDesc = grpc.ServiceDesc{ ServerStreams: true, }, }, - Metadata: "penumbra/core/component/community_pool/v1alpha1/community_pool.proto", + Metadata: "penumbra/core/component/community_pool/v1/community_pool.proto", } func (m *CommunityPoolParameters) Marshal() (dAtA []byte, err error) { @@ -479,13 +468,6 @@ func (m *CommunityPoolAssetBalancesRequest) MarshalToSizedBuffer(dAtA []byte) (i dAtA[i] = 0x12 } } - if len(m.ChainId) > 0 { - i -= len(m.ChainId) - copy(dAtA[i:], m.ChainId) - i = encodeVarintCommunityPool(dAtA, i, uint64(len(m.ChainId))) - i-- - dAtA[i] = 0xa - } return len(dAtA) - i, nil } @@ -566,10 +548,6 @@ func (m *CommunityPoolAssetBalancesRequest) Size() (n int) { } var l int _ = l - l = len(m.ChainId) - if l > 0 { - n += 1 + l + sovCommunityPool(uint64(l)) - } if len(m.AssetIds) > 0 { for _, e := range m.AssetIds { l = e.Size() @@ -783,38 +761,6 @@ func (m *CommunityPoolAssetBalancesRequest) Unmarshal(dAtA []byte) error { return fmt.Errorf("proto: CommunityPoolAssetBalancesRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCommunityPool - } - 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 ErrInvalidLengthCommunityPool - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthCommunityPool - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ChainId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field AssetIds", wireType) @@ -844,7 +790,7 @@ func (m *CommunityPoolAssetBalancesRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.AssetIds = append(m.AssetIds, &v1alpha1.AssetId{}) + m.AssetIds = append(m.AssetIds, &v1.AssetId{}) if err := m.AssetIds[len(m.AssetIds)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -929,7 +875,7 @@ func (m *CommunityPoolAssetBalancesResponse) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Balance == nil { - m.Balance = &v1alpha1.Value{} + m.Balance = &v1.Value{} } if err := m.Balance.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err diff --git a/relayer/chains/penumbra/core/component/compact_block/v1alpha1/compact_block.pb.go b/relayer/chains/penumbra/core/component/compact_block/v1/compact_block.pb.go similarity index 72% rename from relayer/chains/penumbra/core/component/compact_block/v1alpha1/compact_block.pb.go rename to relayer/chains/penumbra/core/component/compact_block/v1/compact_block.pb.go index d2cc727c2..d0c34ba7e 100644 --- a/relayer/chains/penumbra/core/component/compact_block/v1alpha1/compact_block.pb.go +++ b/relayer/chains/penumbra/core/component/compact_block/v1/compact_block.pb.go @@ -1,19 +1,18 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: penumbra/core/component/compact_block/v1alpha1/compact_block.proto +// source: penumbra/core/component/compact_block/v1/compact_block.proto -package compact_blockv1alpha1 +package compact_blockv1 import ( context "context" fmt "fmt" grpc1 "github.com/cosmos/gogoproto/grpc" proto "github.com/cosmos/gogoproto/proto" - v1alpha12 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/component/chain/v1alpha1" - v1alpha13 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/component/dex/v1alpha1" - v1alpha14 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/component/fee/v1alpha1" - v1alpha1 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/component/sct/v1alpha1" - v1alpha15 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/component/shielded_pool/v1alpha1" - v1alpha11 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/crypto/tct/v1alpha1" + v13 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/component/dex/v1" + v14 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/component/fee/v1" + v1 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/component/sct/v1" + v12 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/component/shielded_pool/v1" + v11 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/crypto/tct/v1" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -39,28 +38,30 @@ type CompactBlock struct { // State payloads describing new state fragments. StatePayloads []*StatePayload `protobuf:"bytes,2,rep,name=state_payloads,json=statePayloads,proto3" json:"state_payloads,omitempty"` // Nullifiers identifying spent notes. - Nullifiers []*v1alpha1.Nullifier `protobuf:"bytes,3,rep,name=nullifiers,proto3" json:"nullifiers,omitempty"` + Nullifiers []*v1.Nullifier `protobuf:"bytes,3,rep,name=nullifiers,proto3" json:"nullifiers,omitempty"` // The block root of this block. - BlockRoot *v1alpha11.MerkleRoot `protobuf:"bytes,4,opt,name=block_root,json=blockRoot,proto3" json:"block_root,omitempty"` + BlockRoot *v11.MerkleRoot `protobuf:"bytes,4,opt,name=block_root,json=blockRoot,proto3" json:"block_root,omitempty"` // The epoch root of this epoch (only present when the block is the last in an epoch). - EpochRoot *v1alpha11.MerkleRoot `protobuf:"bytes,17,opt,name=epoch_root,json=epochRoot,proto3" json:"epoch_root,omitempty"` + EpochRoot *v11.MerkleRoot `protobuf:"bytes,5,opt,name=epoch_root,json=epochRoot,proto3" json:"epoch_root,omitempty"` // If a proposal started voting in this block, this is set to `true`. - ProposalStarted bool `protobuf:"varint,20,opt,name=proposal_started,json=proposalStarted,proto3" json:"proposal_started,omitempty"` + ProposalStarted bool `protobuf:"varint,6,opt,name=proposal_started,json=proposalStarted,proto3" json:"proposal_started,omitempty"` // Latest Fuzzy Message Detection parameters. - FmdParameters *v1alpha12.FmdParameters `protobuf:"bytes,100,opt,name=fmd_parameters,json=fmdParameters,proto3" json:"fmd_parameters,omitempty"` + FmdParameters *v12.FmdParameters `protobuf:"bytes,7,opt,name=fmd_parameters,json=fmdParameters,proto3" json:"fmd_parameters,omitempty"` // Price data for swaps executed in this block. - SwapOutputs []*v1alpha13.BatchSwapOutputData `protobuf:"bytes,5,rep,name=swap_outputs,json=swapOutputs,proto3" json:"swap_outputs,omitempty"` + SwapOutputs []*v13.BatchSwapOutputData `protobuf:"bytes,8,rep,name=swap_outputs,json=swapOutputs,proto3" json:"swap_outputs,omitempty"` // Indicates updated app parameters. - AppParametersUpdated bool `protobuf:"varint,6,opt,name=app_parameters_updated,json=appParametersUpdated,proto3" json:"app_parameters_updated,omitempty"` + AppParametersUpdated bool `protobuf:"varint,9,opt,name=app_parameters_updated,json=appParametersUpdated,proto3" json:"app_parameters_updated,omitempty"` // Updated gas prices, if they have changed. - GasPrices *v1alpha14.GasPrices `protobuf:"bytes,7,opt,name=gas_prices,json=gasPrices,proto3" json:"gas_prices,omitempty"` + GasPrices *v14.GasPrices `protobuf:"bytes,10,opt,name=gas_prices,json=gasPrices,proto3" json:"gas_prices,omitempty"` + // The epoch index + EpochIndex uint64 `protobuf:"varint,11,opt,name=epoch_index,json=epochIndex,proto3" json:"epoch_index,omitempty"` } func (m *CompactBlock) Reset() { *m = CompactBlock{} } func (m *CompactBlock) String() string { return proto.CompactTextString(m) } func (*CompactBlock) ProtoMessage() {} func (*CompactBlock) Descriptor() ([]byte, []int) { - return fileDescriptor_7db33c115ee8eed4, []int{0} + return fileDescriptor_5be1c543aaa156af, []int{0} } func (m *CompactBlock) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -103,21 +104,21 @@ func (m *CompactBlock) GetStatePayloads() []*StatePayload { return nil } -func (m *CompactBlock) GetNullifiers() []*v1alpha1.Nullifier { +func (m *CompactBlock) GetNullifiers() []*v1.Nullifier { if m != nil { return m.Nullifiers } return nil } -func (m *CompactBlock) GetBlockRoot() *v1alpha11.MerkleRoot { +func (m *CompactBlock) GetBlockRoot() *v11.MerkleRoot { if m != nil { return m.BlockRoot } return nil } -func (m *CompactBlock) GetEpochRoot() *v1alpha11.MerkleRoot { +func (m *CompactBlock) GetEpochRoot() *v11.MerkleRoot { if m != nil { return m.EpochRoot } @@ -131,14 +132,14 @@ func (m *CompactBlock) GetProposalStarted() bool { return false } -func (m *CompactBlock) GetFmdParameters() *v1alpha12.FmdParameters { +func (m *CompactBlock) GetFmdParameters() *v12.FmdParameters { if m != nil { return m.FmdParameters } return nil } -func (m *CompactBlock) GetSwapOutputs() []*v1alpha13.BatchSwapOutputData { +func (m *CompactBlock) GetSwapOutputs() []*v13.BatchSwapOutputData { if m != nil { return m.SwapOutputs } @@ -152,17 +153,24 @@ func (m *CompactBlock) GetAppParametersUpdated() bool { return false } -func (m *CompactBlock) GetGasPrices() *v1alpha14.GasPrices { +func (m *CompactBlock) GetGasPrices() *v14.GasPrices { if m != nil { return m.GasPrices } return nil } +func (m *CompactBlock) GetEpochIndex() uint64 { + if m != nil { + return m.EpochIndex + } + return 0 +} + // An encrypted payload, corresponding to a single commitment in the state commitment tree. type StatePayload struct { // The source of the payload, if known. - Source *v1alpha1.CommitmentSource `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"` + Source *v1.CommitmentSource `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"` // The state payload itself. // // Types that are valid to be assigned to StatePayload: @@ -176,7 +184,7 @@ func (m *StatePayload) Reset() { *m = StatePayload{} } func (m *StatePayload) String() string { return proto.CompactTextString(m) } func (*StatePayload) ProtoMessage() {} func (*StatePayload) Descriptor() ([]byte, []int) { - return fileDescriptor_7db33c115ee8eed4, []int{1} + return fileDescriptor_5be1c543aaa156af, []int{1} } func (m *StatePayload) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -232,7 +240,7 @@ func (m *StatePayload) GetStatePayload() isStatePayload_StatePayload { return nil } -func (m *StatePayload) GetSource() *v1alpha1.CommitmentSource { +func (m *StatePayload) GetSource() *v1.CommitmentSource { if m != nil { return m.Source } @@ -270,14 +278,14 @@ func (*StatePayload) XXX_OneofWrappers() []interface{} { } type StatePayload_RolledUp struct { - Commitment *v1alpha11.StateCommitment `protobuf:"bytes,1,opt,name=commitment,proto3" json:"commitment,omitempty"` + Commitment *v11.StateCommitment `protobuf:"bytes,1,opt,name=commitment,proto3" json:"commitment,omitempty"` } func (m *StatePayload_RolledUp) Reset() { *m = StatePayload_RolledUp{} } func (m *StatePayload_RolledUp) String() string { return proto.CompactTextString(m) } func (*StatePayload_RolledUp) ProtoMessage() {} func (*StatePayload_RolledUp) Descriptor() ([]byte, []int) { - return fileDescriptor_7db33c115ee8eed4, []int{1, 0} + return fileDescriptor_5be1c543aaa156af, []int{1, 0} } func (m *StatePayload_RolledUp) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -306,7 +314,7 @@ func (m *StatePayload_RolledUp) XXX_DiscardUnknown() { var xxx_messageInfo_StatePayload_RolledUp proto.InternalMessageInfo -func (m *StatePayload_RolledUp) GetCommitment() *v1alpha11.StateCommitment { +func (m *StatePayload_RolledUp) GetCommitment() *v11.StateCommitment { if m != nil { return m.Commitment } @@ -314,14 +322,14 @@ func (m *StatePayload_RolledUp) GetCommitment() *v1alpha11.StateCommitment { } type StatePayload_Note struct { - Note *v1alpha15.NotePayload `protobuf:"bytes,2,opt,name=note,proto3" json:"note,omitempty"` + Note *v12.NotePayload `protobuf:"bytes,2,opt,name=note,proto3" json:"note,omitempty"` } func (m *StatePayload_Note) Reset() { *m = StatePayload_Note{} } func (m *StatePayload_Note) String() string { return proto.CompactTextString(m) } func (*StatePayload_Note) ProtoMessage() {} func (*StatePayload_Note) Descriptor() ([]byte, []int) { - return fileDescriptor_7db33c115ee8eed4, []int{1, 1} + return fileDescriptor_5be1c543aaa156af, []int{1, 1} } func (m *StatePayload_Note) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -350,7 +358,7 @@ func (m *StatePayload_Note) XXX_DiscardUnknown() { var xxx_messageInfo_StatePayload_Note proto.InternalMessageInfo -func (m *StatePayload_Note) GetNote() *v1alpha15.NotePayload { +func (m *StatePayload_Note) GetNote() *v12.NotePayload { if m != nil { return m.Note } @@ -358,14 +366,14 @@ func (m *StatePayload_Note) GetNote() *v1alpha15.NotePayload { } type StatePayload_Swap struct { - Swap *v1alpha13.SwapPayload `protobuf:"bytes,2,opt,name=swap,proto3" json:"swap,omitempty"` + Swap *v13.SwapPayload `protobuf:"bytes,2,opt,name=swap,proto3" json:"swap,omitempty"` } func (m *StatePayload_Swap) Reset() { *m = StatePayload_Swap{} } func (m *StatePayload_Swap) String() string { return proto.CompactTextString(m) } func (*StatePayload_Swap) ProtoMessage() {} func (*StatePayload_Swap) Descriptor() ([]byte, []int) { - return fileDescriptor_7db33c115ee8eed4, []int{1, 2} + return fileDescriptor_5be1c543aaa156af, []int{1, 2} } func (m *StatePayload_Swap) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -394,7 +402,7 @@ func (m *StatePayload_Swap) XXX_DiscardUnknown() { var xxx_messageInfo_StatePayload_Swap proto.InternalMessageInfo -func (m *StatePayload_Swap) GetSwap() *v1alpha13.SwapPayload { +func (m *StatePayload_Swap) GetSwap() *v13.SwapPayload { if m != nil { return m.Swap } @@ -403,8 +411,6 @@ func (m *StatePayload_Swap) GetSwap() *v1alpha13.SwapPayload { // Requests a range of compact block data. type CompactBlockRangeRequest struct { - // The expected chain id (empty string if no expectation). - ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` // The start height of the range. StartHeight uint64 `protobuf:"varint,2,opt,name=start_height,json=startHeight,proto3" json:"start_height,omitempty"` // The end height of the range, defaults to the latest block height. @@ -418,7 +424,7 @@ func (m *CompactBlockRangeRequest) Reset() { *m = CompactBlockRangeReque func (m *CompactBlockRangeRequest) String() string { return proto.CompactTextString(m) } func (*CompactBlockRangeRequest) ProtoMessage() {} func (*CompactBlockRangeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_7db33c115ee8eed4, []int{2} + return fileDescriptor_5be1c543aaa156af, []int{2} } func (m *CompactBlockRangeRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -447,13 +453,6 @@ func (m *CompactBlockRangeRequest) XXX_DiscardUnknown() { var xxx_messageInfo_CompactBlockRangeRequest proto.InternalMessageInfo -func (m *CompactBlockRangeRequest) GetChainId() string { - if m != nil { - return m.ChainId - } - return "" -} - func (m *CompactBlockRangeRequest) GetStartHeight() uint64 { if m != nil { return m.StartHeight @@ -483,7 +482,7 @@ func (m *CompactBlockRangeResponse) Reset() { *m = CompactBlockRangeResp func (m *CompactBlockRangeResponse) String() string { return proto.CompactTextString(m) } func (*CompactBlockRangeResponse) ProtoMessage() {} func (*CompactBlockRangeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_7db33c115ee8eed4, []int{3} + return fileDescriptor_5be1c543aaa156af, []int{3} } func (m *CompactBlockRangeResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -519,84 +518,175 @@ func (m *CompactBlockRangeResponse) GetCompactBlock() *CompactBlock { return nil } +type CompactBlockRequest struct { + Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` +} + +func (m *CompactBlockRequest) Reset() { *m = CompactBlockRequest{} } +func (m *CompactBlockRequest) String() string { return proto.CompactTextString(m) } +func (*CompactBlockRequest) ProtoMessage() {} +func (*CompactBlockRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_5be1c543aaa156af, []int{4} +} +func (m *CompactBlockRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CompactBlockRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CompactBlockRequest.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 *CompactBlockRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CompactBlockRequest.Merge(m, src) +} +func (m *CompactBlockRequest) XXX_Size() int { + return m.Size() +} +func (m *CompactBlockRequest) XXX_DiscardUnknown() { + xxx_messageInfo_CompactBlockRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_CompactBlockRequest proto.InternalMessageInfo + +func (m *CompactBlockRequest) GetHeight() uint64 { + if m != nil { + return m.Height + } + return 0 +} + +type CompactBlockResponse struct { + CompactBlock *CompactBlock `protobuf:"bytes,1,opt,name=compact_block,json=compactBlock,proto3" json:"compact_block,omitempty"` +} + +func (m *CompactBlockResponse) Reset() { *m = CompactBlockResponse{} } +func (m *CompactBlockResponse) String() string { return proto.CompactTextString(m) } +func (*CompactBlockResponse) ProtoMessage() {} +func (*CompactBlockResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_5be1c543aaa156af, []int{5} +} +func (m *CompactBlockResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CompactBlockResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CompactBlockResponse.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 *CompactBlockResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_CompactBlockResponse.Merge(m, src) +} +func (m *CompactBlockResponse) XXX_Size() int { + return m.Size() +} +func (m *CompactBlockResponse) XXX_DiscardUnknown() { + xxx_messageInfo_CompactBlockResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_CompactBlockResponse proto.InternalMessageInfo + +func (m *CompactBlockResponse) GetCompactBlock() *CompactBlock { + if m != nil { + return m.CompactBlock + } + return nil +} + func init() { - proto.RegisterType((*CompactBlock)(nil), "penumbra.core.component.compact_block.v1alpha1.CompactBlock") - proto.RegisterType((*StatePayload)(nil), "penumbra.core.component.compact_block.v1alpha1.StatePayload") - proto.RegisterType((*StatePayload_RolledUp)(nil), "penumbra.core.component.compact_block.v1alpha1.StatePayload.RolledUp") - proto.RegisterType((*StatePayload_Note)(nil), "penumbra.core.component.compact_block.v1alpha1.StatePayload.Note") - proto.RegisterType((*StatePayload_Swap)(nil), "penumbra.core.component.compact_block.v1alpha1.StatePayload.Swap") - proto.RegisterType((*CompactBlockRangeRequest)(nil), "penumbra.core.component.compact_block.v1alpha1.CompactBlockRangeRequest") - proto.RegisterType((*CompactBlockRangeResponse)(nil), "penumbra.core.component.compact_block.v1alpha1.CompactBlockRangeResponse") + proto.RegisterType((*CompactBlock)(nil), "penumbra.core.component.compact_block.v1.CompactBlock") + proto.RegisterType((*StatePayload)(nil), "penumbra.core.component.compact_block.v1.StatePayload") + proto.RegisterType((*StatePayload_RolledUp)(nil), "penumbra.core.component.compact_block.v1.StatePayload.RolledUp") + proto.RegisterType((*StatePayload_Note)(nil), "penumbra.core.component.compact_block.v1.StatePayload.Note") + proto.RegisterType((*StatePayload_Swap)(nil), "penumbra.core.component.compact_block.v1.StatePayload.Swap") + proto.RegisterType((*CompactBlockRangeRequest)(nil), "penumbra.core.component.compact_block.v1.CompactBlockRangeRequest") + proto.RegisterType((*CompactBlockRangeResponse)(nil), "penumbra.core.component.compact_block.v1.CompactBlockRangeResponse") + proto.RegisterType((*CompactBlockRequest)(nil), "penumbra.core.component.compact_block.v1.CompactBlockRequest") + proto.RegisterType((*CompactBlockResponse)(nil), "penumbra.core.component.compact_block.v1.CompactBlockResponse") } func init() { - proto.RegisterFile("penumbra/core/component/compact_block/v1alpha1/compact_block.proto", fileDescriptor_7db33c115ee8eed4) -} - -var fileDescriptor_7db33c115ee8eed4 = []byte{ - // 977 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x96, 0x4d, 0x6f, 0xdb, 0x36, - 0x18, 0xc7, 0x23, 0xdb, 0x49, 0x6d, 0xda, 0x69, 0x57, 0xa2, 0x28, 0x54, 0x03, 0x33, 0xb2, 0x1c, - 0x06, 0xef, 0x50, 0x69, 0xf1, 0x5e, 0x80, 0xa6, 0xbb, 0xd4, 0x5e, 0x97, 0xf4, 0x90, 0xc4, 0x93, - 0xd1, 0x15, 0x1b, 0x0c, 0x08, 0x8c, 0xf4, 0xd8, 0x16, 0x22, 0x89, 0x1c, 0x49, 0xa5, 0x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 0xc8, 0x9b, 0x0a, 0x00, - 0x00, + proto.RegisterFile("penumbra/core/component/compact_block/v1/compact_block.proto", fileDescriptor_5be1c543aaa156af) +} + +var fileDescriptor_5be1c543aaa156af = []byte{ + // 999 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x96, 0x4d, 0x8f, 0xdb, 0x44, + 0x18, 0xc7, 0xd7, 0xd9, 0x74, 0xd9, 0x4c, 0xb2, 0x2d, 0x0c, 0x55, 0x65, 0x56, 0x22, 0x2c, 0xb9, + 0x34, 0x55, 0xc1, 0xa9, 0x53, 0x5e, 0xa4, 0x2d, 0x50, 0x35, 0x41, 0x6c, 0xf6, 0xd0, 0x92, 0x75, + 0xd4, 0x3d, 0x40, 0xa8, 0x35, 0x6b, 0x3f, 0x49, 0xac, 0xb5, 0x3d, 0x83, 0x67, 0xec, 0xee, 0x8a, + 0x0b, 0x5f, 0x00, 0x89, 0x4f, 0xc0, 0x81, 0x23, 0x5f, 0x82, 0x2b, 0xe2, 0xd4, 0x23, 0xe2, 0x54, + 0xed, 0xde, 0xf8, 0x14, 0x68, 0xc6, 0x76, 0x62, 0x03, 0xd1, 0x86, 0x20, 0x71, 0x89, 0x66, 0x1e, + 0x3f, 0xff, 0xdf, 0x3c, 0x2f, 0x33, 0x93, 0x41, 0x1f, 0x31, 0x08, 0xe3, 0xe0, 0x24, 0x22, 0x1d, + 0x87, 0x46, 0xd0, 0x71, 0x68, 0xc0, 0x68, 0x08, 0xa1, 0x50, 0x23, 0xe2, 0x08, 0xfb, 0xc4, 0xa7, + 0xce, 0x69, 0x27, 0x31, 0xcb, 0x06, 0x83, 0x45, 0x54, 0x50, 0xdc, 0xce, 0xd5, 0x86, 0x54, 0x1b, + 0x73, 0xb5, 0x51, 0x76, 0x4e, 0xcc, 0xdd, 0xf6, 0xb2, 0x75, 0x5c, 0x38, 0x93, 0x74, 0x17, 0xce, + 0x52, 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, 0x93, 0x73, 0x88, 0x3a, 0x49, 0x77, 0x3e, + 0x74, 0x66, 0xc4, 0x0b, 0x79, 0x67, 0xd5, 0xc7, 0xde, 0x83, 0x92, 0x21, 0x31, 0x7f, 0xac, 0x54, + 0x87, 0xfd, 0x7e, 0xff, 0xa7, 0xca, 0xed, 0x61, 0x1e, 0x6c, 0x5f, 0x06, 0xdb, 0x9f, 0x07, 0x5b, + 0x0c, 0xcd, 0x38, 0x36, 0x7f, 0x5d, 0x78, 0x8e, 0xa5, 0xe7, 0x78, 0xee, 0x39, 0x2e, 0x7a, 0x8e, + 0x8f, 0xcd, 0x8b, 0xca, 0xfd, 0x15, 0x3d, 0xc7, 0x07, 0xc3, 0xde, 0x63, 0x10, 0xc4, 0x25, 0x82, + 0xfc, 0x51, 0xb9, 0x9b, 0xab, 0xf6, 0xf7, 0xa5, 0x4c, 0xfe, 0x66, 0xba, 0x74, 0x98, 0x0b, 0xf7, + 0xf7, 0x8f, 0xcd, 0x93, 0x2d, 0xf5, 0x4c, 0xbb, 0xff, 0x67, 0x00, 0x00, 0x00, 0xff, 0xff, 0xbe, + 0xa3, 0xa4, 0x6d, 0xee, 0x0a, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -611,8 +701,12 @@ const _ = grpc.SupportPackageIsVersion4 // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type QueryServiceClient interface { - // Returns a stream of `CompactBlockRangeResponse`s. + // Returns a stream of compact blocks, optionally keeping the stream alive for push notifications. CompactBlockRange(ctx context.Context, in *CompactBlockRangeRequest, opts ...grpc.CallOption) (QueryService_CompactBlockRangeClient, error) + // Returns a single compact block at a specific height. + // + // Clients requesting multiple compact blocks should generally use the streaming RPC. + CompactBlock(ctx context.Context, in *CompactBlockRequest, opts ...grpc.CallOption) (*CompactBlockResponse, error) } type queryServiceClient struct { @@ -624,7 +718,7 @@ func NewQueryServiceClient(cc grpc1.ClientConn) QueryServiceClient { } func (c *queryServiceClient) CompactBlockRange(ctx context.Context, in *CompactBlockRangeRequest, opts ...grpc.CallOption) (QueryService_CompactBlockRangeClient, error) { - stream, err := c.cc.NewStream(ctx, &_QueryService_serviceDesc.Streams[0], "/penumbra.core.component.compact_block.v1alpha1.QueryService/CompactBlockRange", opts...) + stream, err := c.cc.NewStream(ctx, &_QueryService_serviceDesc.Streams[0], "/penumbra.core.component.compact_block.v1.QueryService/CompactBlockRange", opts...) if err != nil { return nil, err } @@ -655,10 +749,23 @@ func (x *queryServiceCompactBlockRangeClient) Recv() (*CompactBlockRangeResponse return m, nil } +func (c *queryServiceClient) CompactBlock(ctx context.Context, in *CompactBlockRequest, opts ...grpc.CallOption) (*CompactBlockResponse, error) { + out := new(CompactBlockResponse) + err := c.cc.Invoke(ctx, "/penumbra.core.component.compact_block.v1.QueryService/CompactBlock", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // QueryServiceServer is the server API for QueryService service. type QueryServiceServer interface { - // Returns a stream of `CompactBlockRangeResponse`s. + // Returns a stream of compact blocks, optionally keeping the stream alive for push notifications. CompactBlockRange(*CompactBlockRangeRequest, QueryService_CompactBlockRangeServer) error + // Returns a single compact block at a specific height. + // + // Clients requesting multiple compact blocks should generally use the streaming RPC. + CompactBlock(context.Context, *CompactBlockRequest) (*CompactBlockResponse, error) } // UnimplementedQueryServiceServer can be embedded to have forward compatible implementations. @@ -668,6 +775,9 @@ type UnimplementedQueryServiceServer struct { func (*UnimplementedQueryServiceServer) CompactBlockRange(req *CompactBlockRangeRequest, srv QueryService_CompactBlockRangeServer) error { return status.Errorf(codes.Unimplemented, "method CompactBlockRange not implemented") } +func (*UnimplementedQueryServiceServer) CompactBlock(ctx context.Context, req *CompactBlockRequest) (*CompactBlockResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CompactBlock not implemented") +} func RegisterQueryServiceServer(s grpc1.Server, srv QueryServiceServer) { s.RegisterService(&_QueryService_serviceDesc, srv) @@ -694,10 +804,33 @@ func (x *queryServiceCompactBlockRangeServer) Send(m *CompactBlockRangeResponse) return x.ServerStream.SendMsg(m) } +func _QueryService_CompactBlock_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CompactBlockRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServiceServer).CompactBlock(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/penumbra.core.component.compact_block.v1.QueryService/CompactBlock", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServiceServer).CompactBlock(ctx, req.(*CompactBlockRequest)) + } + return interceptor(ctx, in, info, handler) +} + var _QueryService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "penumbra.core.component.compact_block.v1alpha1.QueryService", + ServiceName: "penumbra.core.component.compact_block.v1.QueryService", HandlerType: (*QueryServiceServer)(nil), - Methods: []grpc.MethodDesc{}, + Methods: []grpc.MethodDesc{ + { + MethodName: "CompactBlock", + Handler: _QueryService_CompactBlock_Handler, + }, + }, Streams: []grpc.StreamDesc{ { StreamName: "CompactBlockRange", @@ -705,7 +838,7 @@ var _QueryService_serviceDesc = grpc.ServiceDesc{ ServerStreams: true, }, }, - Metadata: "penumbra/core/component/compact_block/v1alpha1/compact_block.proto", + Metadata: "penumbra/core/component/compact_block/v1/compact_block.proto", } func (m *CompactBlock) Marshal() (dAtA []byte, err error) { @@ -728,9 +861,14 @@ func (m *CompactBlock) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - if m.FmdParameters != nil { + if m.EpochIndex != 0 { + i = encodeVarintCompactBlock(dAtA, i, uint64(m.EpochIndex)) + i-- + dAtA[i] = 0x58 + } + if m.GasPrices != nil { { - size, err := m.FmdParameters.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.GasPrices.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -738,39 +876,35 @@ func (m *CompactBlock) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintCompactBlock(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x6 - i-- - dAtA[i] = 0xa2 + dAtA[i] = 0x52 } - if m.ProposalStarted { + if m.AppParametersUpdated { i-- - if m.ProposalStarted { + if m.AppParametersUpdated { dAtA[i] = 1 } else { dAtA[i] = 0 } i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xa0 + dAtA[i] = 0x48 } - if m.EpochRoot != nil { - { - size, err := m.EpochRoot.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err + if len(m.SwapOutputs) > 0 { + for iNdEx := len(m.SwapOutputs) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.SwapOutputs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCompactBlock(dAtA, i, uint64(size)) } - i -= size - i = encodeVarintCompactBlock(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x42 } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x8a } - if m.GasPrices != nil { + if m.FmdParameters != nil { { - size, err := m.GasPrices.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.FmdParameters.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -780,9 +914,9 @@ func (m *CompactBlock) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x3a } - if m.AppParametersUpdated { + if m.ProposalStarted { i-- - if m.AppParametersUpdated { + if m.ProposalStarted { dAtA[i] = 1 } else { dAtA[i] = 0 @@ -790,19 +924,17 @@ func (m *CompactBlock) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x30 } - if len(m.SwapOutputs) > 0 { - for iNdEx := len(m.SwapOutputs) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.SwapOutputs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCompactBlock(dAtA, i, uint64(size)) + if m.EpochRoot != nil { + { + size, err := m.EpochRoot.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x2a + i -= size + i = encodeVarintCompactBlock(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0x2a } if m.BlockRoot != nil { { @@ -1104,13 +1236,6 @@ func (m *CompactBlockRangeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error i-- dAtA[i] = 0x10 } - if len(m.ChainId) > 0 { - i -= len(m.ChainId) - copy(dAtA[i:], m.ChainId) - i = encodeVarintCompactBlock(dAtA, i, uint64(len(m.ChainId))) - i-- - dAtA[i] = 0xa - } return len(dAtA) - i, nil } @@ -1149,6 +1274,69 @@ func (m *CompactBlockRangeResponse) MarshalToSizedBuffer(dAtA []byte) (int, erro return len(dAtA) - i, nil } +func (m *CompactBlockRequest) 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 *CompactBlockRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CompactBlockRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Height != 0 { + i = encodeVarintCompactBlock(dAtA, i, uint64(m.Height)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *CompactBlockResponse) 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 *CompactBlockResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CompactBlockResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.CompactBlock != nil { + { + size, err := m.CompactBlock.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCompactBlock(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + func encodeVarintCompactBlock(dAtA []byte, offset int, v uint64) int { offset -= sovCompactBlock(v) base := offset @@ -1185,6 +1373,17 @@ func (m *CompactBlock) Size() (n int) { l = m.BlockRoot.Size() n += 1 + l + sovCompactBlock(uint64(l)) } + if m.EpochRoot != nil { + l = m.EpochRoot.Size() + n += 1 + l + sovCompactBlock(uint64(l)) + } + if m.ProposalStarted { + n += 2 + } + if m.FmdParameters != nil { + l = m.FmdParameters.Size() + n += 1 + l + sovCompactBlock(uint64(l)) + } if len(m.SwapOutputs) > 0 { for _, e := range m.SwapOutputs { l = e.Size() @@ -1198,16 +1397,8 @@ func (m *CompactBlock) Size() (n int) { l = m.GasPrices.Size() n += 1 + l + sovCompactBlock(uint64(l)) } - if m.EpochRoot != nil { - l = m.EpochRoot.Size() - n += 2 + l + sovCompactBlock(uint64(l)) - } - if m.ProposalStarted { - n += 3 - } - if m.FmdParameters != nil { - l = m.FmdParameters.Size() - n += 2 + l + sovCompactBlock(uint64(l)) + if m.EpochIndex != 0 { + n += 1 + sovCompactBlock(uint64(m.EpochIndex)) } return n } @@ -1309,10 +1500,6 @@ func (m *CompactBlockRangeRequest) Size() (n int) { } var l int _ = l - l = len(m.ChainId) - if l > 0 { - n += 1 + l + sovCompactBlock(uint64(l)) - } if m.StartHeight != 0 { n += 1 + sovCompactBlock(uint64(m.StartHeight)) } @@ -1338,6 +1525,31 @@ func (m *CompactBlockRangeResponse) Size() (n int) { return n } +func (m *CompactBlockRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Height != 0 { + n += 1 + sovCompactBlock(uint64(m.Height)) + } + return n +} + +func (m *CompactBlockResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.CompactBlock != nil { + l = m.CompactBlock.Size() + n += 1 + l + sovCompactBlock(uint64(l)) + } + return n +} + func sovCompactBlock(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } @@ -1455,7 +1667,7 @@ func (m *CompactBlock) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Nullifiers = append(m.Nullifiers, &v1alpha1.Nullifier{}) + m.Nullifiers = append(m.Nullifiers, &v1.Nullifier{}) if err := m.Nullifiers[len(m.Nullifiers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -1490,7 +1702,7 @@ func (m *CompactBlock) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.BlockRoot == nil { - m.BlockRoot = &v1alpha11.MerkleRoot{} + m.BlockRoot = &v11.MerkleRoot{} } if err := m.BlockRoot.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -1498,7 +1710,7 @@ func (m *CompactBlock) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 5: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SwapOutputs", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field EpochRoot", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -1525,14 +1737,16 @@ func (m *CompactBlock) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.SwapOutputs = append(m.SwapOutputs, &v1alpha13.BatchSwapOutputData{}) - if err := m.SwapOutputs[len(m.SwapOutputs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if m.EpochRoot == nil { + m.EpochRoot = &v11.MerkleRoot{} + } + if err := m.EpochRoot.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 6: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AppParametersUpdated", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ProposalStarted", wireType) } var v int for shift := uint(0); ; shift += 7 { @@ -1549,10 +1763,10 @@ func (m *CompactBlock) Unmarshal(dAtA []byte) error { break } } - m.AppParametersUpdated = bool(v != 0) + m.ProposalStarted = bool(v != 0) case 7: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GasPrices", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field FmdParameters", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -1579,16 +1793,16 @@ func (m *CompactBlock) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.GasPrices == nil { - m.GasPrices = &v1alpha14.GasPrices{} + if m.FmdParameters == nil { + m.FmdParameters = &v12.FmdParameters{} } - if err := m.GasPrices.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.FmdParameters.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 17: + case 8: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EpochRoot", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field SwapOutputs", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -1615,16 +1829,14 @@ func (m *CompactBlock) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.EpochRoot == nil { - m.EpochRoot = &v1alpha11.MerkleRoot{} - } - if err := m.EpochRoot.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.SwapOutputs = append(m.SwapOutputs, &v13.BatchSwapOutputData{}) + if err := m.SwapOutputs[len(m.SwapOutputs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 20: + case 9: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ProposalStarted", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AppParametersUpdated", wireType) } var v int for shift := uint(0); ; shift += 7 { @@ -1641,10 +1853,10 @@ func (m *CompactBlock) Unmarshal(dAtA []byte) error { break } } - m.ProposalStarted = bool(v != 0) - case 100: + m.AppParametersUpdated = bool(v != 0) + case 10: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FmdParameters", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field GasPrices", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -1671,13 +1883,32 @@ func (m *CompactBlock) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.FmdParameters == nil { - m.FmdParameters = &v1alpha12.FmdParameters{} + if m.GasPrices == nil { + m.GasPrices = &v14.GasPrices{} } - if err := m.FmdParameters.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.GasPrices.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex + case 11: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EpochIndex", wireType) + } + m.EpochIndex = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCompactBlock + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.EpochIndex |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipCompactBlock(dAtA[iNdEx:]) @@ -1758,7 +1989,7 @@ func (m *StatePayload) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Source == nil { - m.Source = &v1alpha1.CommitmentSource{} + m.Source = &v1.CommitmentSource{} } if err := m.Source.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -1949,7 +2180,7 @@ func (m *StatePayload_RolledUp) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Commitment == nil { - m.Commitment = &v1alpha11.StateCommitment{} + m.Commitment = &v11.StateCommitment{} } if err := m.Commitment.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -2035,7 +2266,7 @@ func (m *StatePayload_Note) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Note == nil { - m.Note = &v1alpha15.NotePayload{} + m.Note = &v12.NotePayload{} } if err := m.Note.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -2121,7 +2352,7 @@ func (m *StatePayload_Swap) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Swap == nil { - m.Swap = &v1alpha13.SwapPayload{} + m.Swap = &v13.SwapPayload{} } if err := m.Swap.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -2177,38 +2408,6 @@ func (m *CompactBlockRangeRequest) Unmarshal(dAtA []byte) error { return fmt.Errorf("proto: CompactBlockRangeRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCompactBlock - } - 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 ErrInvalidLengthCompactBlock - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthCompactBlock - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ChainId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex case 2: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field StartHeight", wireType) @@ -2374,6 +2573,161 @@ func (m *CompactBlockRangeResponse) Unmarshal(dAtA []byte) error { } return nil } +func (m *CompactBlockRequest) 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 ErrIntOverflowCompactBlock + } + 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: CompactBlockRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CompactBlockRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) + } + m.Height = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCompactBlock + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Height |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipCompactBlock(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCompactBlock + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CompactBlockResponse) 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 ErrIntOverflowCompactBlock + } + 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: CompactBlockResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CompactBlockResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CompactBlock", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCompactBlock + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCompactBlock + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCompactBlock + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.CompactBlock == nil { + m.CompactBlock = &CompactBlock{} + } + if err := m.CompactBlock.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCompactBlock(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCompactBlock + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func skipCompactBlock(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 diff --git a/relayer/chains/penumbra/core/component/dao/v1alpha1/dao.pb.go b/relayer/chains/penumbra/core/component/dao/v1alpha1/dao.pb.go deleted file mode 100644 index dcd66bfc2..000000000 --- a/relayer/chains/penumbra/core/component/dao/v1alpha1/dao.pb.go +++ /dev/null @@ -1,1040 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: penumbra/core/component/dao/v1alpha1/dao.proto - -package daov1alpha1 - -import ( - context "context" - fmt "fmt" - grpc1 "github.com/cosmos/gogoproto/grpc" - proto "github.com/cosmos/gogoproto/proto" - v1alpha1 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/asset/v1alpha1" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - io "io" - math "math" - math_bits "math/bits" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package - -// Dao parameter data. -type DaoParameters struct { - // Whether DAO spend proposals are enabled. - DaoSpendProposalsEnabled bool `protobuf:"varint,1,opt,name=dao_spend_proposals_enabled,json=daoSpendProposalsEnabled,proto3" json:"dao_spend_proposals_enabled,omitempty"` -} - -func (m *DaoParameters) Reset() { *m = DaoParameters{} } -func (m *DaoParameters) String() string { return proto.CompactTextString(m) } -func (*DaoParameters) ProtoMessage() {} -func (*DaoParameters) Descriptor() ([]byte, []int) { - return fileDescriptor_a2476c8b34dca79f, []int{0} -} -func (m *DaoParameters) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DaoParameters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DaoParameters.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 *DaoParameters) XXX_Merge(src proto.Message) { - xxx_messageInfo_DaoParameters.Merge(m, src) -} -func (m *DaoParameters) XXX_Size() int { - return m.Size() -} -func (m *DaoParameters) XXX_DiscardUnknown() { - xxx_messageInfo_DaoParameters.DiscardUnknown(m) -} - -var xxx_messageInfo_DaoParameters proto.InternalMessageInfo - -func (m *DaoParameters) GetDaoSpendProposalsEnabled() bool { - if m != nil { - return m.DaoSpendProposalsEnabled - } - return false -} - -// Dao genesis state. -type GenesisContent struct { - // Dao parameters. - DaoParams *DaoParameters `protobuf:"bytes,1,opt,name=dao_params,json=daoParams,proto3" json:"dao_params,omitempty"` -} - -func (m *GenesisContent) Reset() { *m = GenesisContent{} } -func (m *GenesisContent) String() string { return proto.CompactTextString(m) } -func (*GenesisContent) ProtoMessage() {} -func (*GenesisContent) Descriptor() ([]byte, []int) { - return fileDescriptor_a2476c8b34dca79f, []int{1} -} -func (m *GenesisContent) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GenesisContent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GenesisContent.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 *GenesisContent) XXX_Merge(src proto.Message) { - xxx_messageInfo_GenesisContent.Merge(m, src) -} -func (m *GenesisContent) XXX_Size() int { - return m.Size() -} -func (m *GenesisContent) XXX_DiscardUnknown() { - xxx_messageInfo_GenesisContent.DiscardUnknown(m) -} - -var xxx_messageInfo_GenesisContent proto.InternalMessageInfo - -func (m *GenesisContent) GetDaoParams() *DaoParameters { - if m != nil { - return m.DaoParams - } - return nil -} - -// Requests the list of all asset balances associated with the DAO. -type DaoAssetBalancesRequest struct { - // The expected chain id (empty string if no expectation). - ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` - // (Optional): The specific asset balances to retrieve, if excluded all will be returned. - AssetIds []*v1alpha1.AssetId `protobuf:"bytes,2,rep,name=asset_ids,json=assetIds,proto3" json:"asset_ids,omitempty"` -} - -func (m *DaoAssetBalancesRequest) Reset() { *m = DaoAssetBalancesRequest{} } -func (m *DaoAssetBalancesRequest) String() string { return proto.CompactTextString(m) } -func (*DaoAssetBalancesRequest) ProtoMessage() {} -func (*DaoAssetBalancesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a2476c8b34dca79f, []int{2} -} -func (m *DaoAssetBalancesRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DaoAssetBalancesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DaoAssetBalancesRequest.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 *DaoAssetBalancesRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_DaoAssetBalancesRequest.Merge(m, src) -} -func (m *DaoAssetBalancesRequest) XXX_Size() int { - return m.Size() -} -func (m *DaoAssetBalancesRequest) XXX_DiscardUnknown() { - xxx_messageInfo_DaoAssetBalancesRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_DaoAssetBalancesRequest proto.InternalMessageInfo - -func (m *DaoAssetBalancesRequest) GetChainId() string { - if m != nil { - return m.ChainId - } - return "" -} - -func (m *DaoAssetBalancesRequest) GetAssetIds() []*v1alpha1.AssetId { - if m != nil { - return m.AssetIds - } - return nil -} - -// The DAO's balance of a single asset. -type DaoAssetBalancesResponse struct { - // The balance for a single asset. - Balance *v1alpha1.Value `protobuf:"bytes,1,opt,name=balance,proto3" json:"balance,omitempty"` -} - -func (m *DaoAssetBalancesResponse) Reset() { *m = DaoAssetBalancesResponse{} } -func (m *DaoAssetBalancesResponse) String() string { return proto.CompactTextString(m) } -func (*DaoAssetBalancesResponse) ProtoMessage() {} -func (*DaoAssetBalancesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a2476c8b34dca79f, []int{3} -} -func (m *DaoAssetBalancesResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DaoAssetBalancesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DaoAssetBalancesResponse.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 *DaoAssetBalancesResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_DaoAssetBalancesResponse.Merge(m, src) -} -func (m *DaoAssetBalancesResponse) XXX_Size() int { - return m.Size() -} -func (m *DaoAssetBalancesResponse) XXX_DiscardUnknown() { - xxx_messageInfo_DaoAssetBalancesResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_DaoAssetBalancesResponse proto.InternalMessageInfo - -func (m *DaoAssetBalancesResponse) GetBalance() *v1alpha1.Value { - if m != nil { - return m.Balance - } - return nil -} - -func init() { - proto.RegisterType((*DaoParameters)(nil), "penumbra.core.component.dao.v1alpha1.DaoParameters") - proto.RegisterType((*GenesisContent)(nil), "penumbra.core.component.dao.v1alpha1.GenesisContent") - proto.RegisterType((*DaoAssetBalancesRequest)(nil), "penumbra.core.component.dao.v1alpha1.DaoAssetBalancesRequest") - proto.RegisterType((*DaoAssetBalancesResponse)(nil), "penumbra.core.component.dao.v1alpha1.DaoAssetBalancesResponse") -} - -func init() { - proto.RegisterFile("penumbra/core/component/dao/v1alpha1/dao.proto", fileDescriptor_a2476c8b34dca79f) -} - -var fileDescriptor_a2476c8b34dca79f = []byte{ - // 510 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x93, 0x41, 0x8b, 0xd3, 0x40, - 0x14, 0xc7, 0x37, 0x51, 0xdc, 0x76, 0x56, 0x45, 0x72, 0xb1, 0xae, 0x10, 0x96, 0xba, 0x42, 0x4f, - 0xc9, 0x6e, 0xf7, 0x16, 0xa9, 0x60, 0x1b, 0x59, 0xf6, 0xa0, 0xc4, 0x2c, 0x2c, 0x28, 0x81, 0xf2, - 0x9a, 0x79, 0xd8, 0x40, 0x3a, 0x2f, 0xce, 0x4c, 0x8b, 0xfb, 0x2d, 0x04, 0xbf, 0x81, 0x78, 0xf2, - 0x93, 0x88, 0xa7, 0x3d, 0x7a, 0x53, 0xda, 0x9b, 0x9f, 0x42, 0x26, 0x69, 0xba, 0xec, 0x2a, 0x12, - 0xbc, 0x84, 0x79, 0xc9, 0xef, 0xff, 0x7f, 0xff, 0x37, 0x93, 0x61, 0x5e, 0x81, 0x62, 0x3e, 0x9b, - 0x48, 0xf0, 0x53, 0x92, 0xe8, 0xa7, 0x34, 0x2b, 0x48, 0xa0, 0xd0, 0x3e, 0x07, 0xf2, 0x17, 0x87, - 0x90, 0x17, 0x53, 0x38, 0x34, 0x85, 0x57, 0x48, 0xd2, 0xe4, 0xec, 0xd7, 0xbc, 0x67, 0x78, 0x6f, - 0xc3, 0x7b, 0x06, 0xa9, 0xf9, 0xdd, 0xde, 0x55, 0x57, 0x50, 0x0a, 0xf5, 0xa5, 0x5b, 0x59, 0x56, - 0x7e, 0xdd, 0x97, 0xec, 0x4e, 0x08, 0x14, 0x81, 0x84, 0x19, 0x6a, 0x94, 0xca, 0x19, 0xb0, 0x87, - 0x1c, 0x68, 0xac, 0x0a, 0x14, 0x7c, 0x5c, 0x48, 0x2a, 0x48, 0x41, 0xae, 0xc6, 0x28, 0x60, 0x92, - 0x23, 0xef, 0x58, 0x7b, 0x56, 0xaf, 0x15, 0x77, 0x38, 0xd0, 0xa9, 0x21, 0xa2, 0x1a, 0x78, 0x5e, - 0x7d, 0xef, 0x72, 0x76, 0xf7, 0x18, 0x05, 0xaa, 0x4c, 0x8d, 0x48, 0x68, 0x14, 0xda, 0x89, 0x19, - 0x33, 0x86, 0x85, 0x69, 0xa1, 0x4a, 0xfd, 0x4e, 0xff, 0xc8, 0x6b, 0x32, 0x86, 0x77, 0x25, 0x59, - 0xdc, 0xe6, 0xeb, 0x52, 0x75, 0xdf, 0xb3, 0xfb, 0x21, 0xd0, 0x33, 0x33, 0xc7, 0x10, 0x72, 0x10, - 0x29, 0xaa, 0x18, 0xdf, 0xcd, 0x51, 0x69, 0xe7, 0x01, 0x6b, 0xa5, 0x53, 0xc8, 0xc4, 0x38, 0xab, - 0xc2, 0xb6, 0xe3, 0xed, 0xb2, 0x3e, 0xe1, 0xce, 0x90, 0xb5, 0xcb, 0xd1, 0xc7, 0x19, 0x57, 0x1d, - 0x7b, 0xef, 0x46, 0x6f, 0xa7, 0xff, 0xf8, 0x5a, 0x90, 0x6a, 0x6b, 0x36, 0x01, 0xca, 0x0e, 0x27, - 0x3c, 0x6e, 0x41, 0xb5, 0x50, 0xdd, 0xd7, 0xac, 0xf3, 0x67, 0x67, 0x55, 0x90, 0x50, 0xe8, 0x0c, - 0xd8, 0xf6, 0xa4, 0x7a, 0xb7, 0x1e, 0xf3, 0xd1, 0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xab, 0x79, - 0xf4, 0x3b, 0x00, 0x00, 0xff, 0xff, 0x34, 0x72, 0x78, 0x24, 0x1c, 0x04, 0x00, 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// QueryServiceClient is the client API for QueryService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type QueryServiceClient interface { - DaoAssetBalances(ctx context.Context, in *DaoAssetBalancesRequest, opts ...grpc.CallOption) (QueryService_DaoAssetBalancesClient, error) -} - -type queryServiceClient struct { - cc grpc1.ClientConn -} - -func NewQueryServiceClient(cc grpc1.ClientConn) QueryServiceClient { - return &queryServiceClient{cc} -} - -func (c *queryServiceClient) DaoAssetBalances(ctx context.Context, in *DaoAssetBalancesRequest, opts ...grpc.CallOption) (QueryService_DaoAssetBalancesClient, error) { - stream, err := c.cc.NewStream(ctx, &_QueryService_serviceDesc.Streams[0], "/penumbra.core.component.dao.v1alpha1.QueryService/DaoAssetBalances", opts...) - if err != nil { - return nil, err - } - x := &queryServiceDaoAssetBalancesClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type QueryService_DaoAssetBalancesClient interface { - Recv() (*DaoAssetBalancesResponse, error) - grpc.ClientStream -} - -type queryServiceDaoAssetBalancesClient struct { - grpc.ClientStream -} - -func (x *queryServiceDaoAssetBalancesClient) Recv() (*DaoAssetBalancesResponse, error) { - m := new(DaoAssetBalancesResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -// QueryServiceServer is the server API for QueryService service. -type QueryServiceServer interface { - DaoAssetBalances(*DaoAssetBalancesRequest, QueryService_DaoAssetBalancesServer) error -} - -// UnimplementedQueryServiceServer can be embedded to have forward compatible implementations. -type UnimplementedQueryServiceServer struct { -} - -func (*UnimplementedQueryServiceServer) DaoAssetBalances(req *DaoAssetBalancesRequest, srv QueryService_DaoAssetBalancesServer) error { - return status.Errorf(codes.Unimplemented, "method DaoAssetBalances not implemented") -} - -func RegisterQueryServiceServer(s grpc1.Server, srv QueryServiceServer) { - s.RegisterService(&_QueryService_serviceDesc, srv) -} - -func _QueryService_DaoAssetBalances_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(DaoAssetBalancesRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(QueryServiceServer).DaoAssetBalances(m, &queryServiceDaoAssetBalancesServer{stream}) -} - -type QueryService_DaoAssetBalancesServer interface { - Send(*DaoAssetBalancesResponse) error - grpc.ServerStream -} - -type queryServiceDaoAssetBalancesServer struct { - grpc.ServerStream -} - -func (x *queryServiceDaoAssetBalancesServer) Send(m *DaoAssetBalancesResponse) error { - return x.ServerStream.SendMsg(m) -} - -var _QueryService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "penumbra.core.component.dao.v1alpha1.QueryService", - HandlerType: (*QueryServiceServer)(nil), - Methods: []grpc.MethodDesc{}, - Streams: []grpc.StreamDesc{ - { - StreamName: "DaoAssetBalances", - Handler: _QueryService_DaoAssetBalances_Handler, - ServerStreams: true, - }, - }, - Metadata: "penumbra/core/component/dao/v1alpha1/dao.proto", -} - -func (m *DaoParameters) 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 *DaoParameters) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DaoParameters) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.DaoSpendProposalsEnabled { - i-- - if m.DaoSpendProposalsEnabled { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *GenesisContent) 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 *GenesisContent) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GenesisContent) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.DaoParams != nil { - { - size, err := m.DaoParams.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDao(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *DaoAssetBalancesRequest) 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 *DaoAssetBalancesRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DaoAssetBalancesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.AssetIds) > 0 { - for iNdEx := len(m.AssetIds) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.AssetIds[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDao(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - if len(m.ChainId) > 0 { - i -= len(m.ChainId) - copy(dAtA[i:], m.ChainId) - i = encodeVarintDao(dAtA, i, uint64(len(m.ChainId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *DaoAssetBalancesResponse) 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 *DaoAssetBalancesResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DaoAssetBalancesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Balance != nil { - { - size, err := m.Balance.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDao(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func encodeVarintDao(dAtA []byte, offset int, v uint64) int { - offset -= sovDao(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *DaoParameters) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.DaoSpendProposalsEnabled { - n += 2 - } - return n -} - -func (m *GenesisContent) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.DaoParams != nil { - l = m.DaoParams.Size() - n += 1 + l + sovDao(uint64(l)) - } - return n -} - -func (m *DaoAssetBalancesRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ChainId) - if l > 0 { - n += 1 + l + sovDao(uint64(l)) - } - if len(m.AssetIds) > 0 { - for _, e := range m.AssetIds { - l = e.Size() - n += 1 + l + sovDao(uint64(l)) - } - } - return n -} - -func (m *DaoAssetBalancesResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Balance != nil { - l = m.Balance.Size() - n += 1 + l + sovDao(uint64(l)) - } - return n -} - -func sovDao(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozDao(x uint64) (n int) { - return sovDao(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *DaoParameters) 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 ErrIntOverflowDao - } - 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: DaoParameters: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DaoParameters: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DaoSpendProposalsEnabled", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDao - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.DaoSpendProposalsEnabled = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipDao(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthDao - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GenesisContent) 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 ErrIntOverflowDao - } - 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: GenesisContent: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GenesisContent: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DaoParams", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDao - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthDao - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDao - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.DaoParams == nil { - m.DaoParams = &DaoParameters{} - } - if err := m.DaoParams.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipDao(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthDao - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DaoAssetBalancesRequest) 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 ErrIntOverflowDao - } - 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: DaoAssetBalancesRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DaoAssetBalancesRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDao - } - 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 ErrInvalidLengthDao - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthDao - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ChainId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AssetIds", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDao - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthDao - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDao - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AssetIds = append(m.AssetIds, &v1alpha1.AssetId{}) - if err := m.AssetIds[len(m.AssetIds)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipDao(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthDao - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DaoAssetBalancesResponse) 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 ErrIntOverflowDao - } - 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: DaoAssetBalancesResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DaoAssetBalancesResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Balance", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDao - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthDao - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDao - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Balance == nil { - m.Balance = &v1alpha1.Value{} - } - if err := m.Balance.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipDao(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthDao - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipDao(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowDao - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowDao - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowDao - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthDao - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupDao - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthDao - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthDao = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowDao = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupDao = fmt.Errorf("proto: unexpected end of group") -) diff --git a/relayer/chains/penumbra/core/component/dex/v1alpha1/dex.pb.go b/relayer/chains/penumbra/core/component/dex/v1/dex.pb.go similarity index 79% rename from relayer/chains/penumbra/core/component/dex/v1alpha1/dex.pb.go rename to relayer/chains/penumbra/core/component/dex/v1/dex.pb.go index 1fd677763..d0e1a90e3 100644 --- a/relayer/chains/penumbra/core/component/dex/v1alpha1/dex.pb.go +++ b/relayer/chains/penumbra/core/component/dex/v1/dex.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: penumbra/core/component/dex/v1alpha1/dex.proto +// source: penumbra/core/component/dex/v1/dex.proto -package dexv1alpha1 +package dexv1 import ( context "context" @@ -9,13 +9,14 @@ import ( fmt "fmt" grpc1 "github.com/cosmos/gogoproto/grpc" proto "github.com/cosmos/gogoproto/proto" - v1alpha14 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/asset/v1alpha1" - v1alpha11 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/component/fee/v1alpha1" - v1alpha1 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/component/sct/v1alpha1" - v1alpha16 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/component/shielded_pool/v1alpha1" - v1alpha15 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/keys/v1alpha1" - v1alpha13 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/num/v1alpha1" - v1alpha12 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/crypto/tct/v1alpha1" + v14 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/asset/v1" + v11 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/component/fee/v1" + v1 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/component/sct/v1" + v17 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/component/shielded_pool/v1" + v15 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/keys/v1" + v13 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/num/v1" + v16 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/txhash/v1" + v12 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/crypto/tct/v1" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -47,10 +48,12 @@ const ( PositionState_POSITION_STATE_ENUM_CLOSED PositionState_PositionStateEnum = 2 // The final reserves and accumulated fees have been withdrawn, leaving an // empty, inactive position awaiting (possible) retroactive rewards. + // + // Positions can be withdrawn from multiple times, incrementing a sequence + // number each time. PositionState_POSITION_STATE_ENUM_WITHDRAWN PositionState_PositionStateEnum = 3 - // Any retroactive rewards have been claimed. The position is now an inert, - // historical artefact. - PositionState_POSITION_STATE_ENUM_CLAIMED PositionState_PositionStateEnum = 4 + // Deprecated. + PositionState_POSITION_STATE_ENUM_CLAIMED PositionState_PositionStateEnum = 4 // Deprecated: Do not use. ) var PositionState_PositionStateEnum_name = map[int32]string{ @@ -74,7 +77,7 @@ func (x PositionState_PositionStateEnum) String() string { } func (PositionState_PositionStateEnum) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_259f31b405eaa9a9, []int{20, 0} + return fileDescriptor_ec17dcdac15b4004, []int{20, 0} } // A Penumbra ZK swap proof. @@ -86,7 +89,7 @@ func (m *ZKSwapProof) Reset() { *m = ZKSwapProof{} } func (m *ZKSwapProof) String() string { return proto.CompactTextString(m) } func (*ZKSwapProof) ProtoMessage() {} func (*ZKSwapProof) Descriptor() ([]byte, []int) { - return fileDescriptor_259f31b405eaa9a9, []int{0} + return fileDescriptor_ec17dcdac15b4004, []int{0} } func (m *ZKSwapProof) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -131,7 +134,7 @@ func (m *ZKSwapClaimProof) Reset() { *m = ZKSwapClaimProof{} } func (m *ZKSwapClaimProof) String() string { return proto.CompactTextString(m) } func (*ZKSwapClaimProof) ProtoMessage() {} func (*ZKSwapClaimProof) Descriptor() ([]byte, []int) { - return fileDescriptor_259f31b405eaa9a9, []int{1} + return fileDescriptor_ec17dcdac15b4004, []int{1} } func (m *ZKSwapClaimProof) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -179,7 +182,7 @@ func (m *Swap) Reset() { *m = Swap{} } func (m *Swap) String() string { return proto.CompactTextString(m) } func (*Swap) ProtoMessage() {} func (*Swap) Descriptor() ([]byte, []int) { - return fileDescriptor_259f31b405eaa9a9, []int{2} + return fileDescriptor_ec17dcdac15b4004, []int{2} } func (m *Swap) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -239,7 +242,7 @@ func (m *SwapClaim) Reset() { *m = SwapClaim{} } func (m *SwapClaim) String() string { return proto.CompactTextString(m) } func (*SwapClaim) ProtoMessage() {} func (*SwapClaim) Descriptor() ([]byte, []int) { - return fileDescriptor_259f31b405eaa9a9, []int{3} + return fileDescriptor_ec17dcdac15b4004, []int{3} } func (m *SwapClaim) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -292,13 +295,13 @@ func (m *SwapClaim) GetEpochDuration() uint64 { // Encapsulates the authorized fields of the SwapClaim action, used in signing. type SwapClaimBody struct { // The nullifier for the Swap commitment to be consumed. - Nullifier *v1alpha1.Nullifier `protobuf:"bytes,1,opt,name=nullifier,proto3" json:"nullifier,omitempty"` + Nullifier *v1.Nullifier `protobuf:"bytes,1,opt,name=nullifier,proto3" json:"nullifier,omitempty"` // The fee allows `SwapClaim` without an additional `Spend`. - Fee *v1alpha11.Fee `protobuf:"bytes,2,opt,name=fee,proto3" json:"fee,omitempty"` + Fee *v11.Fee `protobuf:"bytes,2,opt,name=fee,proto3" json:"fee,omitempty"` // Note output for asset 1. - Output_1Commitment *v1alpha12.StateCommitment `protobuf:"bytes,3,opt,name=output_1_commitment,json=output1Commitment,proto3" json:"output_1_commitment,omitempty"` + Output_1Commitment *v12.StateCommitment `protobuf:"bytes,3,opt,name=output_1_commitment,json=output1Commitment,proto3" json:"output_1_commitment,omitempty"` // Note output for asset 2. - Output_2Commitment *v1alpha12.StateCommitment `protobuf:"bytes,4,opt,name=output_2_commitment,json=output2Commitment,proto3" json:"output_2_commitment,omitempty"` + Output_2Commitment *v12.StateCommitment `protobuf:"bytes,4,opt,name=output_2_commitment,json=output2Commitment,proto3" json:"output_2_commitment,omitempty"` // Input and output amounts, and asset IDs for the assets in the swap. OutputData *BatchSwapOutputData `protobuf:"bytes,6,opt,name=output_data,json=outputData,proto3" json:"output_data,omitempty"` } @@ -307,7 +310,7 @@ func (m *SwapClaimBody) Reset() { *m = SwapClaimBody{} } func (m *SwapClaimBody) String() string { return proto.CompactTextString(m) } func (*SwapClaimBody) ProtoMessage() {} func (*SwapClaimBody) Descriptor() ([]byte, []int) { - return fileDescriptor_259f31b405eaa9a9, []int{4} + return fileDescriptor_ec17dcdac15b4004, []int{4} } func (m *SwapClaimBody) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -336,28 +339,28 @@ func (m *SwapClaimBody) XXX_DiscardUnknown() { var xxx_messageInfo_SwapClaimBody proto.InternalMessageInfo -func (m *SwapClaimBody) GetNullifier() *v1alpha1.Nullifier { +func (m *SwapClaimBody) GetNullifier() *v1.Nullifier { if m != nil { return m.Nullifier } return nil } -func (m *SwapClaimBody) GetFee() *v1alpha11.Fee { +func (m *SwapClaimBody) GetFee() *v11.Fee { if m != nil { return m.Fee } return nil } -func (m *SwapClaimBody) GetOutput_1Commitment() *v1alpha12.StateCommitment { +func (m *SwapClaimBody) GetOutput_1Commitment() *v12.StateCommitment { if m != nil { return m.Output_1Commitment } return nil } -func (m *SwapClaimBody) GetOutput_2Commitment() *v1alpha12.StateCommitment { +func (m *SwapClaimBody) GetOutput_2Commitment() *v12.StateCommitment { if m != nil { return m.Output_2Commitment } @@ -376,14 +379,14 @@ type SwapBody struct { // The trading pair to swap. TradingPair *TradingPair `protobuf:"bytes,1,opt,name=trading_pair,json=tradingPair,proto3" json:"trading_pair,omitempty"` // The amount for asset 1. - Delta_1I *v1alpha13.Amount `protobuf:"bytes,2,opt,name=delta_1_i,json=delta1I,proto3" json:"delta_1_i,omitempty"` + Delta_1I *v13.Amount `protobuf:"bytes,2,opt,name=delta_1_i,json=delta1I,proto3" json:"delta_1_i,omitempty"` // The amount for asset 2. - Delta_2I *v1alpha13.Amount `protobuf:"bytes,3,opt,name=delta_2_i,json=delta2I,proto3" json:"delta_2_i,omitempty"` + Delta_2I *v13.Amount `protobuf:"bytes,3,opt,name=delta_2_i,json=delta2I,proto3" json:"delta_2_i,omitempty"` // A commitment to a prepaid fee for the future SwapClaim. // This is recorded separately from delta_j_i because it's shielded; // in the future we'll want separate commitments to each delta_j_i // anyways in order to prove consistency with flow encryption. - FeeCommitment *v1alpha14.BalanceCommitment `protobuf:"bytes,4,opt,name=fee_commitment,json=feeCommitment,proto3" json:"fee_commitment,omitempty"` + FeeCommitment *v14.BalanceCommitment `protobuf:"bytes,4,opt,name=fee_commitment,json=feeCommitment,proto3" json:"fee_commitment,omitempty"` // The swap commitment and encryption of the swap data. Payload *SwapPayload `protobuf:"bytes,5,opt,name=payload,proto3" json:"payload,omitempty"` } @@ -392,7 +395,7 @@ func (m *SwapBody) Reset() { *m = SwapBody{} } func (m *SwapBody) String() string { return proto.CompactTextString(m) } func (*SwapBody) ProtoMessage() {} func (*SwapBody) Descriptor() ([]byte, []int) { - return fileDescriptor_259f31b405eaa9a9, []int{5} + return fileDescriptor_ec17dcdac15b4004, []int{5} } func (m *SwapBody) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -428,21 +431,21 @@ func (m *SwapBody) GetTradingPair() *TradingPair { return nil } -func (m *SwapBody) GetDelta_1I() *v1alpha13.Amount { +func (m *SwapBody) GetDelta_1I() *v13.Amount { if m != nil { return m.Delta_1I } return nil } -func (m *SwapBody) GetDelta_2I() *v1alpha13.Amount { +func (m *SwapBody) GetDelta_2I() *v13.Amount { if m != nil { return m.Delta_2I } return nil } -func (m *SwapBody) GetFeeCommitment() *v1alpha14.BalanceCommitment { +func (m *SwapBody) GetFeeCommitment() *v14.BalanceCommitment { if m != nil { return m.FeeCommitment } @@ -457,15 +460,15 @@ func (m *SwapBody) GetPayload() *SwapPayload { } type SwapPayload struct { - Commitment *v1alpha12.StateCommitment `protobuf:"bytes,1,opt,name=commitment,proto3" json:"commitment,omitempty"` - EncryptedSwap []byte `protobuf:"bytes,2,opt,name=encrypted_swap,json=encryptedSwap,proto3" json:"encrypted_swap,omitempty"` + Commitment *v12.StateCommitment `protobuf:"bytes,1,opt,name=commitment,proto3" json:"commitment,omitempty"` + EncryptedSwap []byte `protobuf:"bytes,2,opt,name=encrypted_swap,json=encryptedSwap,proto3" json:"encrypted_swap,omitempty"` } func (m *SwapPayload) Reset() { *m = SwapPayload{} } func (m *SwapPayload) String() string { return proto.CompactTextString(m) } func (*SwapPayload) ProtoMessage() {} func (*SwapPayload) Descriptor() ([]byte, []int) { - return fileDescriptor_259f31b405eaa9a9, []int{6} + return fileDescriptor_ec17dcdac15b4004, []int{6} } func (m *SwapPayload) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -494,7 +497,7 @@ func (m *SwapPayload) XXX_DiscardUnknown() { var xxx_messageInfo_SwapPayload proto.InternalMessageInfo -func (m *SwapPayload) GetCommitment() *v1alpha12.StateCommitment { +func (m *SwapPayload) GetCommitment() *v12.StateCommitment { if m != nil { return m.Commitment } @@ -512,13 +515,13 @@ type SwapPlaintext struct { // The trading pair to swap. TradingPair *TradingPair `protobuf:"bytes,1,opt,name=trading_pair,json=tradingPair,proto3" json:"trading_pair,omitempty"` // Input amount of asset 1 - Delta_1I *v1alpha13.Amount `protobuf:"bytes,2,opt,name=delta_1_i,json=delta1I,proto3" json:"delta_1_i,omitempty"` + Delta_1I *v13.Amount `protobuf:"bytes,2,opt,name=delta_1_i,json=delta1I,proto3" json:"delta_1_i,omitempty"` // Input amount of asset 2 - Delta_2I *v1alpha13.Amount `protobuf:"bytes,3,opt,name=delta_2_i,json=delta2I,proto3" json:"delta_2_i,omitempty"` + Delta_2I *v13.Amount `protobuf:"bytes,3,opt,name=delta_2_i,json=delta2I,proto3" json:"delta_2_i,omitempty"` // Pre-paid fee to claim the swap - ClaimFee *v1alpha11.Fee `protobuf:"bytes,4,opt,name=claim_fee,json=claimFee,proto3" json:"claim_fee,omitempty"` + ClaimFee *v11.Fee `protobuf:"bytes,4,opt,name=claim_fee,json=claimFee,proto3" json:"claim_fee,omitempty"` // Address that will claim the swap outputs via SwapClaim. - ClaimAddress *v1alpha15.Address `protobuf:"bytes,5,opt,name=claim_address,json=claimAddress,proto3" json:"claim_address,omitempty"` + ClaimAddress *v15.Address `protobuf:"bytes,5,opt,name=claim_address,json=claimAddress,proto3" json:"claim_address,omitempty"` // Swap rseed (blinding factors are derived from this) Rseed []byte `protobuf:"bytes,6,opt,name=rseed,proto3" json:"rseed,omitempty"` } @@ -527,7 +530,7 @@ func (m *SwapPlaintext) Reset() { *m = SwapPlaintext{} } func (m *SwapPlaintext) String() string { return proto.CompactTextString(m) } func (*SwapPlaintext) ProtoMessage() {} func (*SwapPlaintext) Descriptor() ([]byte, []int) { - return fileDescriptor_259f31b405eaa9a9, []int{7} + return fileDescriptor_ec17dcdac15b4004, []int{7} } func (m *SwapPlaintext) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -563,28 +566,28 @@ func (m *SwapPlaintext) GetTradingPair() *TradingPair { return nil } -func (m *SwapPlaintext) GetDelta_1I() *v1alpha13.Amount { +func (m *SwapPlaintext) GetDelta_1I() *v13.Amount { if m != nil { return m.Delta_1I } return nil } -func (m *SwapPlaintext) GetDelta_2I() *v1alpha13.Amount { +func (m *SwapPlaintext) GetDelta_2I() *v13.Amount { if m != nil { return m.Delta_2I } return nil } -func (m *SwapPlaintext) GetClaimFee() *v1alpha11.Fee { +func (m *SwapPlaintext) GetClaimFee() *v11.Fee { if m != nil { return m.ClaimFee } return nil } -func (m *SwapPlaintext) GetClaimAddress() *v1alpha15.Address { +func (m *SwapPlaintext) GetClaimAddress() *v15.Address { if m != nil { return m.ClaimAddress } @@ -613,7 +616,7 @@ func (m *SwapPlan) Reset() { *m = SwapPlan{} } func (m *SwapPlan) String() string { return proto.CompactTextString(m) } func (*SwapPlan) ProtoMessage() {} func (*SwapPlan) Descriptor() ([]byte, []int) { - return fileDescriptor_259f31b405eaa9a9, []int{8} + return fileDescriptor_ec17dcdac15b4004, []int{8} } func (m *SwapPlan) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -689,7 +692,7 @@ func (m *SwapClaimPlan) Reset() { *m = SwapClaimPlan{} } func (m *SwapClaimPlan) String() string { return proto.CompactTextString(m) } func (*SwapClaimPlan) ProtoMessage() {} func (*SwapClaimPlan) Descriptor() ([]byte, []int) { - return fileDescriptor_259f31b405eaa9a9, []int{9} + return fileDescriptor_ec17dcdac15b4004, []int{9} } func (m *SwapClaimPlan) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -772,7 +775,7 @@ func (m *SwapView) Reset() { *m = SwapView{} } func (m *SwapView) String() string { return proto.CompactTextString(m) } func (*SwapView) ProtoMessage() {} func (*SwapView) Descriptor() ([]byte, []int) { - return fileDescriptor_259f31b405eaa9a9, []int{10} + return fileDescriptor_ec17dcdac15b4004, []int{10} } func (m *SwapView) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -847,15 +850,45 @@ func (*SwapView) XXX_OneofWrappers() []interface{} { } type SwapView_Visible struct { - Swap *Swap `protobuf:"bytes,1,opt,name=swap,proto3" json:"swap,omitempty"` + // The underlying Swap action being viewed. + Swap *Swap `protobuf:"bytes,1,opt,name=swap,proto3" json:"swap,omitempty"` + // The plaintext of the encrypted swap. SwapPlaintext *SwapPlaintext `protobuf:"bytes,3,opt,name=swap_plaintext,json=swapPlaintext,proto3" json:"swap_plaintext,omitempty"` + // Optionally, a transaction hash for the transaction that claimed this + // swap. + // + // Presence of this field signals that the swap outputs have been claimed + // and that the claim transaction is known to the view server. Absence of + // this field does not indicate anything about the state of the swap. + // + // This field allows frontends to more easily crossreference the sequence of + // Swap/SwapClaim actions. + ClaimTx *v16.TransactionId `protobuf:"bytes,4,opt,name=claim_tx,json=claimTx,proto3" json:"claim_tx,omitempty"` + // Optionally, if the swap has been confirmed, the batch price it received. + // + // As soon as the swap is detected, the view server can in principle record + // the relevant BSOD and provide it as part of the view. This allows providing + // info about the execution of the swap. + BatchSwapOutputData *BatchSwapOutputData `protobuf:"bytes,20,opt,name=batch_swap_output_data,json=batchSwapOutputData,proto3" json:"batch_swap_output_data,omitempty"` + // Optionally, if the swap has been confirmed, the output note of asset 1. + // + // This is the note that will be minted by the SwapClaim action. + Output_1 *v17.NoteView `protobuf:"bytes,30,opt,name=output_1,json=output1,proto3" json:"output_1,omitempty"` + // Optionally, if the swap has been confirmed, the output note of asset 2. + // + // This is the note that will be minted by the SwapClaim action. + Output_2 *v17.NoteView `protobuf:"bytes,31,opt,name=output_2,json=output2,proto3" json:"output_2,omitempty"` + // Optionally, metadata about asset 1 in the `swap`'s trading pair. + Asset_1Metadata *v14.Metadata `protobuf:"bytes,40,opt,name=asset_1_metadata,json=asset1Metadata,proto3" json:"asset_1_metadata,omitempty"` + // Optionally, metadata about asset 2 in the `swap`'s trading pair. + Asset_2Metadata *v14.Metadata `protobuf:"bytes,41,opt,name=asset_2_metadata,json=asset2Metadata,proto3" json:"asset_2_metadata,omitempty"` } func (m *SwapView_Visible) Reset() { *m = SwapView_Visible{} } func (m *SwapView_Visible) String() string { return proto.CompactTextString(m) } func (*SwapView_Visible) ProtoMessage() {} func (*SwapView_Visible) Descriptor() ([]byte, []int) { - return fileDescriptor_259f31b405eaa9a9, []int{10, 0} + return fileDescriptor_ec17dcdac15b4004, []int{10, 0} } func (m *SwapView_Visible) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -898,6 +931,48 @@ func (m *SwapView_Visible) GetSwapPlaintext() *SwapPlaintext { return nil } +func (m *SwapView_Visible) GetClaimTx() *v16.TransactionId { + if m != nil { + return m.ClaimTx + } + return nil +} + +func (m *SwapView_Visible) GetBatchSwapOutputData() *BatchSwapOutputData { + if m != nil { + return m.BatchSwapOutputData + } + return nil +} + +func (m *SwapView_Visible) GetOutput_1() *v17.NoteView { + if m != nil { + return m.Output_1 + } + return nil +} + +func (m *SwapView_Visible) GetOutput_2() *v17.NoteView { + if m != nil { + return m.Output_2 + } + return nil +} + +func (m *SwapView_Visible) GetAsset_1Metadata() *v14.Metadata { + if m != nil { + return m.Asset_1Metadata + } + return nil +} + +func (m *SwapView_Visible) GetAsset_2Metadata() *v14.Metadata { + if m != nil { + return m.Asset_2Metadata + } + return nil +} + type SwapView_Opaque struct { Swap *Swap `protobuf:"bytes,1,opt,name=swap,proto3" json:"swap,omitempty"` } @@ -906,7 +981,7 @@ func (m *SwapView_Opaque) Reset() { *m = SwapView_Opaque{} } func (m *SwapView_Opaque) String() string { return proto.CompactTextString(m) } func (*SwapView_Opaque) ProtoMessage() {} func (*SwapView_Opaque) Descriptor() ([]byte, []int) { - return fileDescriptor_259f31b405eaa9a9, []int{10, 1} + return fileDescriptor_ec17dcdac15b4004, []int{10, 1} } func (m *SwapView_Opaque) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -954,7 +1029,7 @@ func (m *SwapClaimView) Reset() { *m = SwapClaimView{} } func (m *SwapClaimView) String() string { return proto.CompactTextString(m) } func (*SwapClaimView) ProtoMessage() {} func (*SwapClaimView) Descriptor() ([]byte, []int) { - return fileDescriptor_259f31b405eaa9a9, []int{11} + return fileDescriptor_ec17dcdac15b4004, []int{11} } func (m *SwapClaimView) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1029,16 +1104,22 @@ func (*SwapClaimView) XXX_OneofWrappers() []interface{} { } type SwapClaimView_Visible struct { - SwapClaim *SwapClaim `protobuf:"bytes,1,opt,name=swap_claim,json=swapClaim,proto3" json:"swap_claim,omitempty"` - Output_1 *v1alpha16.NoteView `protobuf:"bytes,2,opt,name=output_1,json=output1,proto3" json:"output_1,omitempty"` - Output_2 *v1alpha16.NoteView `protobuf:"bytes,3,opt,name=output_2,json=output2,proto3" json:"output_2,omitempty"` + SwapClaim *SwapClaim `protobuf:"bytes,1,opt,name=swap_claim,json=swapClaim,proto3" json:"swap_claim,omitempty"` + Output_1 *v17.NoteView `protobuf:"bytes,2,opt,name=output_1,json=output1,proto3" json:"output_1,omitempty"` + Output_2 *v17.NoteView `protobuf:"bytes,3,opt,name=output_2,json=output2,proto3" json:"output_2,omitempty"` + // Optionally, a transaction hash for the transaction that created the swap + // this action claims. + // + // This field allows frontends to more easily crossreference the sequence of + // Swap/SwapClaim actions. + SwapTx *v16.TransactionId `protobuf:"bytes,4,opt,name=swap_tx,json=swapTx,proto3" json:"swap_tx,omitempty"` } func (m *SwapClaimView_Visible) Reset() { *m = SwapClaimView_Visible{} } func (m *SwapClaimView_Visible) String() string { return proto.CompactTextString(m) } func (*SwapClaimView_Visible) ProtoMessage() {} func (*SwapClaimView_Visible) Descriptor() ([]byte, []int) { - return fileDescriptor_259f31b405eaa9a9, []int{11, 0} + return fileDescriptor_ec17dcdac15b4004, []int{11, 0} } func (m *SwapClaimView_Visible) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1074,20 +1155,27 @@ func (m *SwapClaimView_Visible) GetSwapClaim() *SwapClaim { return nil } -func (m *SwapClaimView_Visible) GetOutput_1() *v1alpha16.NoteView { +func (m *SwapClaimView_Visible) GetOutput_1() *v17.NoteView { if m != nil { return m.Output_1 } return nil } -func (m *SwapClaimView_Visible) GetOutput_2() *v1alpha16.NoteView { +func (m *SwapClaimView_Visible) GetOutput_2() *v17.NoteView { if m != nil { return m.Output_2 } return nil } +func (m *SwapClaimView_Visible) GetSwapTx() *v16.TransactionId { + if m != nil { + return m.SwapTx + } + return nil +} + type SwapClaimView_Opaque struct { SwapClaim *SwapClaim `protobuf:"bytes,1,opt,name=swap_claim,json=swapClaim,proto3" json:"swap_claim,omitempty"` } @@ -1096,7 +1184,7 @@ func (m *SwapClaimView_Opaque) Reset() { *m = SwapClaimView_Opaque{} } func (m *SwapClaimView_Opaque) String() string { return proto.CompactTextString(m) } func (*SwapClaimView_Opaque) ProtoMessage() {} func (*SwapClaimView_Opaque) Descriptor() ([]byte, []int) { - return fileDescriptor_259f31b405eaa9a9, []int{11, 1} + return fileDescriptor_ec17dcdac15b4004, []int{11, 1} } func (m *SwapClaimView_Opaque) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1137,16 +1225,16 @@ func (m *SwapClaimView_Opaque) GetSwapClaim() *SwapClaim { // representation of an unordered pair. type TradingPair struct { // The first asset of the pair. - Asset_1 *v1alpha14.AssetId `protobuf:"bytes,1,opt,name=asset_1,json=asset1,proto3" json:"asset_1,omitempty"` + Asset_1 *v14.AssetId `protobuf:"bytes,1,opt,name=asset_1,json=asset1,proto3" json:"asset_1,omitempty"` // The second asset of the pair. - Asset_2 *v1alpha14.AssetId `protobuf:"bytes,2,opt,name=asset_2,json=asset2,proto3" json:"asset_2,omitempty"` + Asset_2 *v14.AssetId `protobuf:"bytes,2,opt,name=asset_2,json=asset2,proto3" json:"asset_2,omitempty"` } func (m *TradingPair) Reset() { *m = TradingPair{} } func (m *TradingPair) String() string { return proto.CompactTextString(m) } func (*TradingPair) ProtoMessage() {} func (*TradingPair) Descriptor() ([]byte, []int) { - return fileDescriptor_259f31b405eaa9a9, []int{12} + return fileDescriptor_ec17dcdac15b4004, []int{12} } func (m *TradingPair) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1175,14 +1263,14 @@ func (m *TradingPair) XXX_DiscardUnknown() { var xxx_messageInfo_TradingPair proto.InternalMessageInfo -func (m *TradingPair) GetAsset_1() *v1alpha14.AssetId { +func (m *TradingPair) GetAsset_1() *v14.AssetId { if m != nil { return m.Asset_1 } return nil } -func (m *TradingPair) GetAsset_2() *v1alpha14.AssetId { +func (m *TradingPair) GetAsset_2() *v14.AssetId { if m != nil { return m.Asset_2 } @@ -1193,16 +1281,16 @@ func (m *TradingPair) GetAsset_2() *v1alpha14.AssetId { // and ending on asset `end`. type DirectedTradingPair struct { // The start asset of the pair. - Start *v1alpha14.AssetId `protobuf:"bytes,1,opt,name=start,proto3" json:"start,omitempty"` + Start *v14.AssetId `protobuf:"bytes,1,opt,name=start,proto3" json:"start,omitempty"` // The end asset of the pair. - End *v1alpha14.AssetId `protobuf:"bytes,2,opt,name=end,proto3" json:"end,omitempty"` + End *v14.AssetId `protobuf:"bytes,2,opt,name=end,proto3" json:"end,omitempty"` } func (m *DirectedTradingPair) Reset() { *m = DirectedTradingPair{} } func (m *DirectedTradingPair) String() string { return proto.CompactTextString(m) } func (*DirectedTradingPair) ProtoMessage() {} func (*DirectedTradingPair) Descriptor() ([]byte, []int) { - return fileDescriptor_259f31b405eaa9a9, []int{13} + return fileDescriptor_ec17dcdac15b4004, []int{13} } func (m *DirectedTradingPair) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1231,14 +1319,14 @@ func (m *DirectedTradingPair) XXX_DiscardUnknown() { var xxx_messageInfo_DirectedTradingPair proto.InternalMessageInfo -func (m *DirectedTradingPair) GetStart() *v1alpha14.AssetId { +func (m *DirectedTradingPair) GetStart() *v14.AssetId { if m != nil { return m.Start } return nil } -func (m *DirectedTradingPair) GetEnd() *v1alpha14.AssetId { +func (m *DirectedTradingPair) GetEnd() *v14.AssetId { if m != nil { return m.End } @@ -1251,17 +1339,17 @@ func (m *DirectedTradingPair) GetEnd() *v1alpha14.AssetId { // clearing price for the batch. type BatchSwapOutputData struct { // The total amount of asset 1 that was input to the batch swap. - Delta_1 *v1alpha13.Amount `protobuf:"bytes,1,opt,name=delta_1,json=delta1,proto3" json:"delta_1,omitempty"` + Delta_1 *v13.Amount `protobuf:"bytes,1,opt,name=delta_1,json=delta1,proto3" json:"delta_1,omitempty"` // The total amount of asset 2 that was input to the batch swap. - Delta_2 *v1alpha13.Amount `protobuf:"bytes,2,opt,name=delta_2,json=delta2,proto3" json:"delta_2,omitempty"` + Delta_2 *v13.Amount `protobuf:"bytes,2,opt,name=delta_2,json=delta2,proto3" json:"delta_2,omitempty"` // The total amount of asset 1 that was output from the batch swap for 2=>1 trades. - Lambda_1 *v1alpha13.Amount `protobuf:"bytes,3,opt,name=lambda_1,json=lambda1,proto3" json:"lambda_1,omitempty"` + Lambda_1 *v13.Amount `protobuf:"bytes,3,opt,name=lambda_1,json=lambda1,proto3" json:"lambda_1,omitempty"` // The total amount of asset 2 that was output from the batch swap for 1=>2 trades. - Lambda_2 *v1alpha13.Amount `protobuf:"bytes,4,opt,name=lambda_2,json=lambda2,proto3" json:"lambda_2,omitempty"` + Lambda_2 *v13.Amount `protobuf:"bytes,4,opt,name=lambda_2,json=lambda2,proto3" json:"lambda_2,omitempty"` // The total amount of asset 1 that was returned unfilled from the batch swap for 1=>2 trades. - Unfilled_1 *v1alpha13.Amount `protobuf:"bytes,5,opt,name=unfilled_1,json=unfilled1,proto3" json:"unfilled_1,omitempty"` + Unfilled_1 *v13.Amount `protobuf:"bytes,5,opt,name=unfilled_1,json=unfilled1,proto3" json:"unfilled_1,omitempty"` // The total amount of asset 2 that was returned unfilled from the batch swap for 2=>1 trades. - Unfilled_2 *v1alpha13.Amount `protobuf:"bytes,6,opt,name=unfilled_2,json=unfilled2,proto3" json:"unfilled_2,omitempty"` + Unfilled_2 *v13.Amount `protobuf:"bytes,6,opt,name=unfilled_2,json=unfilled2,proto3" json:"unfilled_2,omitempty"` // The height for which the batch swap data is valid. Height uint64 `protobuf:"varint,7,opt,name=height,proto3" json:"height,omitempty"` // The trading pair associated with the batch swap. @@ -1274,7 +1362,7 @@ func (m *BatchSwapOutputData) Reset() { *m = BatchSwapOutputData{} } func (m *BatchSwapOutputData) String() string { return proto.CompactTextString(m) } func (*BatchSwapOutputData) ProtoMessage() {} func (*BatchSwapOutputData) Descriptor() ([]byte, []int) { - return fileDescriptor_259f31b405eaa9a9, []int{14} + return fileDescriptor_ec17dcdac15b4004, []int{14} } func (m *BatchSwapOutputData) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1303,42 +1391,42 @@ func (m *BatchSwapOutputData) XXX_DiscardUnknown() { var xxx_messageInfo_BatchSwapOutputData proto.InternalMessageInfo -func (m *BatchSwapOutputData) GetDelta_1() *v1alpha13.Amount { +func (m *BatchSwapOutputData) GetDelta_1() *v13.Amount { if m != nil { return m.Delta_1 } return nil } -func (m *BatchSwapOutputData) GetDelta_2() *v1alpha13.Amount { +func (m *BatchSwapOutputData) GetDelta_2() *v13.Amount { if m != nil { return m.Delta_2 } return nil } -func (m *BatchSwapOutputData) GetLambda_1() *v1alpha13.Amount { +func (m *BatchSwapOutputData) GetLambda_1() *v13.Amount { if m != nil { return m.Lambda_1 } return nil } -func (m *BatchSwapOutputData) GetLambda_2() *v1alpha13.Amount { +func (m *BatchSwapOutputData) GetLambda_2() *v13.Amount { if m != nil { return m.Lambda_2 } return nil } -func (m *BatchSwapOutputData) GetUnfilled_1() *v1alpha13.Amount { +func (m *BatchSwapOutputData) GetUnfilled_1() *v13.Amount { if m != nil { return m.Unfilled_1 } return nil } -func (m *BatchSwapOutputData) GetUnfilled_2() *v1alpha13.Amount { +func (m *BatchSwapOutputData) GetUnfilled_2() *v13.Amount { if m != nil { return m.Unfilled_2 } @@ -1379,7 +1467,7 @@ func (m *TradingFunction) Reset() { *m = TradingFunction{} } func (m *TradingFunction) String() string { return proto.CompactTextString(m) } func (*TradingFunction) ProtoMessage() {} func (*TradingFunction) Descriptor() ([]byte, []int) { - return fileDescriptor_259f31b405eaa9a9, []int{15} + return fileDescriptor_ec17dcdac15b4004, []int{15} } func (m *TradingFunction) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1430,16 +1518,16 @@ func (m *TradingFunction) GetPair() *TradingPair { type BareTradingFunction struct { Fee uint32 `protobuf:"varint,1,opt,name=fee,proto3" json:"fee,omitempty"` // This is not actually an amount, it's an integer the same width as an amount - P *v1alpha13.Amount `protobuf:"bytes,2,opt,name=p,proto3" json:"p,omitempty"` + P *v13.Amount `protobuf:"bytes,2,opt,name=p,proto3" json:"p,omitempty"` // This is not actually an amount, it's an integer the same width as an amount - Q *v1alpha13.Amount `protobuf:"bytes,3,opt,name=q,proto3" json:"q,omitempty"` + Q *v13.Amount `protobuf:"bytes,3,opt,name=q,proto3" json:"q,omitempty"` } func (m *BareTradingFunction) Reset() { *m = BareTradingFunction{} } func (m *BareTradingFunction) String() string { return proto.CompactTextString(m) } func (*BareTradingFunction) ProtoMessage() {} func (*BareTradingFunction) Descriptor() ([]byte, []int) { - return fileDescriptor_259f31b405eaa9a9, []int{16} + return fileDescriptor_ec17dcdac15b4004, []int{16} } func (m *BareTradingFunction) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1475,14 +1563,14 @@ func (m *BareTradingFunction) GetFee() uint32 { return 0 } -func (m *BareTradingFunction) GetP() *v1alpha13.Amount { +func (m *BareTradingFunction) GetP() *v13.Amount { if m != nil { return m.P } return nil } -func (m *BareTradingFunction) GetQ() *v1alpha13.Amount { +func (m *BareTradingFunction) GetQ() *v13.Amount { if m != nil { return m.Q } @@ -1496,15 +1584,15 @@ func (m *BareTradingFunction) GetQ() *v1alpha13.Amount { // duplicating data (each asset ID alone is four times the size of the // reserves). type Reserves struct { - R1 *v1alpha13.Amount `protobuf:"bytes,1,opt,name=r1,proto3" json:"r1,omitempty"` - R2 *v1alpha13.Amount `protobuf:"bytes,2,opt,name=r2,proto3" json:"r2,omitempty"` + R1 *v13.Amount `protobuf:"bytes,1,opt,name=r1,proto3" json:"r1,omitempty"` + R2 *v13.Amount `protobuf:"bytes,2,opt,name=r2,proto3" json:"r2,omitempty"` } func (m *Reserves) Reset() { *m = Reserves{} } func (m *Reserves) String() string { return proto.CompactTextString(m) } func (*Reserves) ProtoMessage() {} func (*Reserves) Descriptor() ([]byte, []int) { - return fileDescriptor_259f31b405eaa9a9, []int{17} + return fileDescriptor_ec17dcdac15b4004, []int{17} } func (m *Reserves) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1533,14 +1621,14 @@ func (m *Reserves) XXX_DiscardUnknown() { var xxx_messageInfo_Reserves proto.InternalMessageInfo -func (m *Reserves) GetR1() *v1alpha13.Amount { +func (m *Reserves) GetR1() *v13.Amount { if m != nil { return m.R1 } return nil } -func (m *Reserves) GetR2() *v1alpha13.Amount { +func (m *Reserves) GetR2() *v13.Amount { if m != nil { return m.R2 } @@ -1567,7 +1655,7 @@ func (m *Position) Reset() { *m = Position{} } func (m *Position) String() string { return proto.CompactTextString(m) } func (*Position) ProtoMessage() {} func (*Position) Descriptor() ([]byte, []int) { - return fileDescriptor_259f31b405eaa9a9, []int{18} + return fileDescriptor_ec17dcdac15b4004, []int{18} } func (m *Position) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1649,7 +1737,7 @@ func (m *PositionId) Reset() { *m = PositionId{} } func (m *PositionId) String() string { return proto.CompactTextString(m) } func (*PositionId) ProtoMessage() {} func (*PositionId) Descriptor() ([]byte, []int) { - return fileDescriptor_259f31b405eaa9a9, []int{19} + return fileDescriptor_ec17dcdac15b4004, []int{19} } func (m *PositionId) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1694,14 +1782,18 @@ func (m *PositionId) GetAltBech32M() string { // The state of a position. type PositionState struct { - State PositionState_PositionStateEnum `protobuf:"varint,1,opt,name=state,proto3,enum=penumbra.core.component.dex.v1alpha1.PositionState_PositionStateEnum" json:"state,omitempty"` + State PositionState_PositionStateEnum `protobuf:"varint,1,opt,name=state,proto3,enum=penumbra.core.component.dex.v1.PositionState_PositionStateEnum" json:"state,omitempty"` + // Only meaningful if `state` is `POSITION_STATE_ENUM_WITHDRAWN`. + // + // The sequence number allows multiple withdrawals from the same position. + Sequence uint64 `protobuf:"varint,2,opt,name=sequence,proto3" json:"sequence,omitempty"` } func (m *PositionState) Reset() { *m = PositionState{} } func (m *PositionState) String() string { return proto.CompactTextString(m) } func (*PositionState) ProtoMessage() {} func (*PositionState) Descriptor() ([]byte, []int) { - return fileDescriptor_259f31b405eaa9a9, []int{20} + return fileDescriptor_ec17dcdac15b4004, []int{20} } func (m *PositionState) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1737,6 +1829,13 @@ func (m *PositionState) GetState() PositionState_PositionStateEnum { return PositionState_POSITION_STATE_ENUM_UNSPECIFIED } +func (m *PositionState) GetSequence() uint64 { + if m != nil { + return m.Sequence + } + return 0 +} + // An LPNFT tracking both ownership and state of a position. // // Tracking the state as part of the LPNFT means that all LP-related actions can @@ -1761,7 +1860,7 @@ func (m *LpNft) Reset() { *m = LpNft{} } func (m *LpNft) String() string { return proto.CompactTextString(m) } func (*LpNft) ProtoMessage() {} func (*LpNft) Descriptor() ([]byte, []int) { - return fileDescriptor_259f31b405eaa9a9, []int{21} + return fileDescriptor_ec17dcdac15b4004, []int{21} } func (m *LpNft) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1820,7 +1919,7 @@ func (m *PositionOpen) Reset() { *m = PositionOpen{} } func (m *PositionOpen) String() string { return proto.CompactTextString(m) } func (*PositionOpen) ProtoMessage() {} func (*PositionOpen) Descriptor() ([]byte, []int) { - return fileDescriptor_259f31b405eaa9a9, []int{22} + return fileDescriptor_ec17dcdac15b4004, []int{22} } func (m *PositionOpen) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1873,7 +1972,7 @@ func (m *PositionClose) Reset() { *m = PositionClose{} } func (m *PositionClose) String() string { return proto.CompactTextString(m) } func (*PositionClose) ProtoMessage() {} func (*PositionClose) Descriptor() ([]byte, []int) { - return fileDescriptor_259f31b405eaa9a9, []int{23} + return fileDescriptor_ec17dcdac15b4004, []int{23} } func (m *PositionClose) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1919,14 +2018,18 @@ type PositionWithdraw struct { // A transparent (zero blinding factor) commitment to the position's final reserves and fees. // // The chain will check this commitment by recomputing it with the on-chain state. - ReservesCommitment *v1alpha14.BalanceCommitment `protobuf:"bytes,2,opt,name=reserves_commitment,json=reservesCommitment,proto3" json:"reserves_commitment,omitempty"` + ReservesCommitment *v14.BalanceCommitment `protobuf:"bytes,2,opt,name=reserves_commitment,json=reservesCommitment,proto3" json:"reserves_commitment,omitempty"` + // The sequence number of the withdrawal. + // + // This allows multiple withdrawals from the same position, rather than a single reward claim. + Sequence uint64 `protobuf:"varint,3,opt,name=sequence,proto3" json:"sequence,omitempty"` } func (m *PositionWithdraw) Reset() { *m = PositionWithdraw{} } func (m *PositionWithdraw) String() string { return proto.CompactTextString(m) } func (*PositionWithdraw) ProtoMessage() {} func (*PositionWithdraw) Descriptor() ([]byte, []int) { - return fileDescriptor_259f31b405eaa9a9, []int{24} + return fileDescriptor_ec17dcdac15b4004, []int{24} } func (m *PositionWithdraw) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1962,31 +2065,31 @@ func (m *PositionWithdraw) GetPositionId() *PositionId { return nil } -func (m *PositionWithdraw) GetReservesCommitment() *v1alpha14.BalanceCommitment { +func (m *PositionWithdraw) GetReservesCommitment() *v14.BalanceCommitment { if m != nil { return m.ReservesCommitment } return nil } -// A transaction action that claims retroactive rewards for a historical -// position. -// -// This action's contribution to the transaction's value balance is to consume a -// withdrawn position NFT and contribute its reward balance. +func (m *PositionWithdraw) GetSequence() uint64 { + if m != nil { + return m.Sequence + } + return 0 +} + +// Deprecated. type PositionRewardClaim struct { - PositionId *PositionId `protobuf:"bytes,1,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty"` - // A transparent (zero blinding factor) commitment to the position's accumulated rewards. - // - // The chain will check this commitment by recomputing it with the on-chain state. - RewardsCommitment *v1alpha14.BalanceCommitment `protobuf:"bytes,2,opt,name=rewards_commitment,json=rewardsCommitment,proto3" json:"rewards_commitment,omitempty"` + PositionId *PositionId `protobuf:"bytes,1,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty"` + RewardsCommitment *v14.BalanceCommitment `protobuf:"bytes,2,opt,name=rewards_commitment,json=rewardsCommitment,proto3" json:"rewards_commitment,omitempty"` } func (m *PositionRewardClaim) Reset() { *m = PositionRewardClaim{} } func (m *PositionRewardClaim) String() string { return proto.CompactTextString(m) } func (*PositionRewardClaim) ProtoMessage() {} func (*PositionRewardClaim) Descriptor() ([]byte, []int) { - return fileDescriptor_259f31b405eaa9a9, []int{25} + return fileDescriptor_ec17dcdac15b4004, []int{25} } func (m *PositionRewardClaim) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2022,7 +2125,7 @@ func (m *PositionRewardClaim) GetPositionId() *PositionId { return nil } -func (m *PositionRewardClaim) GetRewardsCommitment() *v1alpha14.BalanceCommitment { +func (m *PositionRewardClaim) GetRewardsCommitment() *v14.BalanceCommitment { if m != nil { return m.RewardsCommitment } @@ -2033,16 +2136,16 @@ func (m *PositionRewardClaim) GetRewardsCommitment() *v1alpha14.BalanceCommitmen type SwapExecution struct { Traces []*SwapExecution_Trace `protobuf:"bytes,1,rep,name=traces,proto3" json:"traces,omitempty"` // The total input amount for this execution. - Input *v1alpha14.Value `protobuf:"bytes,2,opt,name=input,proto3" json:"input,omitempty"` + Input *v14.Value `protobuf:"bytes,2,opt,name=input,proto3" json:"input,omitempty"` // The total output amount for this execution. - Output *v1alpha14.Value `protobuf:"bytes,3,opt,name=output,proto3" json:"output,omitempty"` + Output *v14.Value `protobuf:"bytes,3,opt,name=output,proto3" json:"output,omitempty"` } func (m *SwapExecution) Reset() { *m = SwapExecution{} } func (m *SwapExecution) String() string { return proto.CompactTextString(m) } func (*SwapExecution) ProtoMessage() {} func (*SwapExecution) Descriptor() ([]byte, []int) { - return fileDescriptor_259f31b405eaa9a9, []int{26} + return fileDescriptor_ec17dcdac15b4004, []int{26} } func (m *SwapExecution) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2078,14 +2181,14 @@ func (m *SwapExecution) GetTraces() []*SwapExecution_Trace { return nil } -func (m *SwapExecution) GetInput() *v1alpha14.Value { +func (m *SwapExecution) GetInput() *v14.Value { if m != nil { return m.Input } return nil } -func (m *SwapExecution) GetOutput() *v1alpha14.Value { +func (m *SwapExecution) GetOutput() *v14.Value { if m != nil { return m.Output } @@ -2095,14 +2198,14 @@ func (m *SwapExecution) GetOutput() *v1alpha14.Value { // Contains all individual steps consisting of a trade trace. type SwapExecution_Trace struct { // Each step in the trade trace. - Value []*v1alpha14.Value `protobuf:"bytes,1,rep,name=value,proto3" json:"value,omitempty"` + Value []*v14.Value `protobuf:"bytes,1,rep,name=value,proto3" json:"value,omitempty"` } func (m *SwapExecution_Trace) Reset() { *m = SwapExecution_Trace{} } func (m *SwapExecution_Trace) String() string { return proto.CompactTextString(m) } func (*SwapExecution_Trace) ProtoMessage() {} func (*SwapExecution_Trace) Descriptor() ([]byte, []int) { - return fileDescriptor_259f31b405eaa9a9, []int{26, 0} + return fileDescriptor_ec17dcdac15b4004, []int{26, 0} } func (m *SwapExecution_Trace) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2131,7 +2234,7 @@ func (m *SwapExecution_Trace) XXX_DiscardUnknown() { var xxx_messageInfo_SwapExecution_Trace proto.InternalMessageInfo -func (m *SwapExecution_Trace) GetValue() []*v1alpha14.Value { +func (m *SwapExecution_Trace) GetValue() []*v14.Value { if m != nil { return m.Value } @@ -2143,13 +2246,17 @@ type PositionWithdrawPlan struct { Reserves *Reserves `protobuf:"bytes,1,opt,name=reserves,proto3" json:"reserves,omitempty"` PositionId *PositionId `protobuf:"bytes,2,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty"` Pair *TradingPair `protobuf:"bytes,3,opt,name=pair,proto3" json:"pair,omitempty"` + // The sequence number of the withdrawal. + Sequence uint64 `protobuf:"varint,4,opt,name=sequence,proto3" json:"sequence,omitempty"` + // Any accumulated rewards assigned to this position. + Rewards []*v14.Value `protobuf:"bytes,5,rep,name=rewards,proto3" json:"rewards,omitempty"` } func (m *PositionWithdrawPlan) Reset() { *m = PositionWithdrawPlan{} } func (m *PositionWithdrawPlan) String() string { return proto.CompactTextString(m) } func (*PositionWithdrawPlan) ProtoMessage() {} func (*PositionWithdrawPlan) Descriptor() ([]byte, []int) { - return fileDescriptor_259f31b405eaa9a9, []int{27} + return fileDescriptor_ec17dcdac15b4004, []int{27} } func (m *PositionWithdrawPlan) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2199,7 +2306,21 @@ func (m *PositionWithdrawPlan) GetPair() *TradingPair { return nil } -// Contains private and public data for claiming rewards from a position. +func (m *PositionWithdrawPlan) GetSequence() uint64 { + if m != nil { + return m.Sequence + } + return 0 +} + +func (m *PositionWithdrawPlan) GetRewards() []*v14.Value { + if m != nil { + return m.Rewards + } + return nil +} + +// Deprecated. type PositionRewardClaimPlan struct { Reserves *Reserves `protobuf:"bytes,1,opt,name=reserves,proto3" json:"reserves,omitempty"` } @@ -2208,7 +2329,7 @@ func (m *PositionRewardClaimPlan) Reset() { *m = PositionRewardClaimPlan func (m *PositionRewardClaimPlan) String() string { return proto.CompactTextString(m) } func (*PositionRewardClaimPlan) ProtoMessage() {} func (*PositionRewardClaimPlan) Descriptor() ([]byte, []int) { - return fileDescriptor_259f31b405eaa9a9, []int{28} + return fileDescriptor_ec17dcdac15b4004, []int{28} } func (m *PositionRewardClaimPlan) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2246,8 +2367,6 @@ func (m *PositionRewardClaimPlan) GetReserves() *Reserves { // Requests batch swap data associated with a given height and trading pair from the view service. type BatchSwapOutputDataRequest struct { - // The expected chain id (empty string if no expectation). - ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` Height uint64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` TradingPair *TradingPair `protobuf:"bytes,3,opt,name=trading_pair,json=tradingPair,proto3" json:"trading_pair,omitempty"` } @@ -2256,7 +2375,7 @@ func (m *BatchSwapOutputDataRequest) Reset() { *m = BatchSwapOutputDataR func (m *BatchSwapOutputDataRequest) String() string { return proto.CompactTextString(m) } func (*BatchSwapOutputDataRequest) ProtoMessage() {} func (*BatchSwapOutputDataRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_259f31b405eaa9a9, []int{29} + return fileDescriptor_ec17dcdac15b4004, []int{29} } func (m *BatchSwapOutputDataRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2285,13 +2404,6 @@ func (m *BatchSwapOutputDataRequest) XXX_DiscardUnknown() { var xxx_messageInfo_BatchSwapOutputDataRequest proto.InternalMessageInfo -func (m *BatchSwapOutputDataRequest) GetChainId() string { - if m != nil { - return m.ChainId - } - return "" -} - func (m *BatchSwapOutputDataRequest) GetHeight() uint64 { if m != nil { return m.Height @@ -2314,7 +2426,7 @@ func (m *BatchSwapOutputDataResponse) Reset() { *m = BatchSwapOutputData func (m *BatchSwapOutputDataResponse) String() string { return proto.CompactTextString(m) } func (*BatchSwapOutputDataResponse) ProtoMessage() {} func (*BatchSwapOutputDataResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_259f31b405eaa9a9, []int{30} + return fileDescriptor_ec17dcdac15b4004, []int{30} } func (m *BatchSwapOutputDataResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2351,8 +2463,6 @@ func (m *BatchSwapOutputDataResponse) GetData() *BatchSwapOutputData { } type SwapExecutionRequest struct { - // The expected chain id (empty string if no expectation). - ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` Height uint64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` TradingPair *DirectedTradingPair `protobuf:"bytes,3,opt,name=trading_pair,json=tradingPair,proto3" json:"trading_pair,omitempty"` } @@ -2361,7 +2471,7 @@ func (m *SwapExecutionRequest) Reset() { *m = SwapExecutionRequest{} } func (m *SwapExecutionRequest) String() string { return proto.CompactTextString(m) } func (*SwapExecutionRequest) ProtoMessage() {} func (*SwapExecutionRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_259f31b405eaa9a9, []int{31} + return fileDescriptor_ec17dcdac15b4004, []int{31} } func (m *SwapExecutionRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2390,13 +2500,6 @@ func (m *SwapExecutionRequest) XXX_DiscardUnknown() { var xxx_messageInfo_SwapExecutionRequest proto.InternalMessageInfo -func (m *SwapExecutionRequest) GetChainId() string { - if m != nil { - return m.ChainId - } - return "" -} - func (m *SwapExecutionRequest) GetHeight() uint64 { if m != nil { return m.Height @@ -2419,7 +2522,7 @@ func (m *SwapExecutionResponse) Reset() { *m = SwapExecutionResponse{} } func (m *SwapExecutionResponse) String() string { return proto.CompactTextString(m) } func (*SwapExecutionResponse) ProtoMessage() {} func (*SwapExecutionResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_259f31b405eaa9a9, []int{32} + return fileDescriptor_ec17dcdac15b4004, []int{32} } func (m *SwapExecutionResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2456,16 +2559,14 @@ func (m *SwapExecutionResponse) GetSwapExecution() *SwapExecution { } type ArbExecutionRequest struct { - // The expected chain id (empty string if no expectation). - ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` - Height uint64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` + Height uint64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` } func (m *ArbExecutionRequest) Reset() { *m = ArbExecutionRequest{} } func (m *ArbExecutionRequest) String() string { return proto.CompactTextString(m) } func (*ArbExecutionRequest) ProtoMessage() {} func (*ArbExecutionRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_259f31b405eaa9a9, []int{33} + return fileDescriptor_ec17dcdac15b4004, []int{33} } func (m *ArbExecutionRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2494,13 +2595,6 @@ func (m *ArbExecutionRequest) XXX_DiscardUnknown() { var xxx_messageInfo_ArbExecutionRequest proto.InternalMessageInfo -func (m *ArbExecutionRequest) GetChainId() string { - if m != nil { - return m.ChainId - } - return "" -} - func (m *ArbExecutionRequest) GetHeight() uint64 { if m != nil { return m.Height @@ -2517,7 +2611,7 @@ func (m *ArbExecutionResponse) Reset() { *m = ArbExecutionResponse{} } func (m *ArbExecutionResponse) String() string { return proto.CompactTextString(m) } func (*ArbExecutionResponse) ProtoMessage() {} func (*ArbExecutionResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_259f31b405eaa9a9, []int{34} + return fileDescriptor_ec17dcdac15b4004, []int{34} } func (m *ArbExecutionResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2561,8 +2655,6 @@ func (m *ArbExecutionResponse) GetHeight() uint64 { } type SwapExecutionsRequest struct { - // The expected chain id (empty string if no expectation). - ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` // If present, only return swap executions occurring after the given height. StartHeight uint64 `protobuf:"varint,2,opt,name=start_height,json=startHeight,proto3" json:"start_height,omitempty"` // If present, only return swap executions occurring before the given height. @@ -2575,7 +2667,7 @@ func (m *SwapExecutionsRequest) Reset() { *m = SwapExecutionsRequest{} } func (m *SwapExecutionsRequest) String() string { return proto.CompactTextString(m) } func (*SwapExecutionsRequest) ProtoMessage() {} func (*SwapExecutionsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_259f31b405eaa9a9, []int{35} + return fileDescriptor_ec17dcdac15b4004, []int{35} } func (m *SwapExecutionsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2604,13 +2696,6 @@ func (m *SwapExecutionsRequest) XXX_DiscardUnknown() { var xxx_messageInfo_SwapExecutionsRequest proto.InternalMessageInfo -func (m *SwapExecutionsRequest) GetChainId() string { - if m != nil { - return m.ChainId - } - return "" -} - func (m *SwapExecutionsRequest) GetStartHeight() uint64 { if m != nil { return m.StartHeight @@ -2642,7 +2727,7 @@ func (m *SwapExecutionsResponse) Reset() { *m = SwapExecutionsResponse{} func (m *SwapExecutionsResponse) String() string { return proto.CompactTextString(m) } func (*SwapExecutionsResponse) ProtoMessage() {} func (*SwapExecutionsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_259f31b405eaa9a9, []int{36} + return fileDescriptor_ec17dcdac15b4004, []int{36} } func (m *SwapExecutionsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2693,8 +2778,6 @@ func (m *SwapExecutionsResponse) GetTradingPair() *DirectedTradingPair { } type ArbExecutionsRequest struct { - // The expected chain id (empty string if no expectation). - ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` // If present, only return arb executions occurring after the given height. StartHeight uint64 `protobuf:"varint,2,opt,name=start_height,json=startHeight,proto3" json:"start_height,omitempty"` // If present, only return arb executions occurring before the given height. @@ -2705,7 +2788,7 @@ func (m *ArbExecutionsRequest) Reset() { *m = ArbExecutionsRequest{} } func (m *ArbExecutionsRequest) String() string { return proto.CompactTextString(m) } func (*ArbExecutionsRequest) ProtoMessage() {} func (*ArbExecutionsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_259f31b405eaa9a9, []int{37} + return fileDescriptor_ec17dcdac15b4004, []int{37} } func (m *ArbExecutionsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2734,13 +2817,6 @@ func (m *ArbExecutionsRequest) XXX_DiscardUnknown() { var xxx_messageInfo_ArbExecutionsRequest proto.InternalMessageInfo -func (m *ArbExecutionsRequest) GetChainId() string { - if m != nil { - return m.ChainId - } - return "" -} - func (m *ArbExecutionsRequest) GetStartHeight() uint64 { if m != nil { return m.StartHeight @@ -2764,7 +2840,7 @@ func (m *ArbExecutionsResponse) Reset() { *m = ArbExecutionsResponse{} } func (m *ArbExecutionsResponse) String() string { return proto.CompactTextString(m) } func (*ArbExecutionsResponse) ProtoMessage() {} func (*ArbExecutionsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_259f31b405eaa9a9, []int{38} + return fileDescriptor_ec17dcdac15b4004, []int{38} } func (m *ArbExecutionsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2808,8 +2884,6 @@ func (m *ArbExecutionsResponse) GetHeight() uint64 { } type LiquidityPositionsRequest struct { - // The expected chain id (empty string if no expectation). - ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` // If true, include closed and withdrawn positions. IncludeClosed bool `protobuf:"varint,4,opt,name=include_closed,json=includeClosed,proto3" json:"include_closed,omitempty"` } @@ -2818,7 +2892,7 @@ func (m *LiquidityPositionsRequest) Reset() { *m = LiquidityPositionsReq func (m *LiquidityPositionsRequest) String() string { return proto.CompactTextString(m) } func (*LiquidityPositionsRequest) ProtoMessage() {} func (*LiquidityPositionsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_259f31b405eaa9a9, []int{39} + return fileDescriptor_ec17dcdac15b4004, []int{39} } func (m *LiquidityPositionsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2847,13 +2921,6 @@ func (m *LiquidityPositionsRequest) XXX_DiscardUnknown() { var xxx_messageInfo_LiquidityPositionsRequest proto.InternalMessageInfo -func (m *LiquidityPositionsRequest) GetChainId() string { - if m != nil { - return m.ChainId - } - return "" -} - func (m *LiquidityPositionsRequest) GetIncludeClosed() bool { if m != nil { return m.IncludeClosed @@ -2869,7 +2936,7 @@ func (m *LiquidityPositionsResponse) Reset() { *m = LiquidityPositionsRe func (m *LiquidityPositionsResponse) String() string { return proto.CompactTextString(m) } func (*LiquidityPositionsResponse) ProtoMessage() {} func (*LiquidityPositionsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_259f31b405eaa9a9, []int{40} + return fileDescriptor_ec17dcdac15b4004, []int{40} } func (m *LiquidityPositionsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2906,8 +2973,6 @@ func (m *LiquidityPositionsResponse) GetData() *Position { } type LiquidityPositionByIdRequest struct { - // The expected chain id (empty string if no expectation). - ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` PositionId *PositionId `protobuf:"bytes,2,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty"` } @@ -2915,7 +2980,7 @@ func (m *LiquidityPositionByIdRequest) Reset() { *m = LiquidityPositionB func (m *LiquidityPositionByIdRequest) String() string { return proto.CompactTextString(m) } func (*LiquidityPositionByIdRequest) ProtoMessage() {} func (*LiquidityPositionByIdRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_259f31b405eaa9a9, []int{41} + return fileDescriptor_ec17dcdac15b4004, []int{41} } func (m *LiquidityPositionByIdRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2944,13 +3009,6 @@ func (m *LiquidityPositionByIdRequest) XXX_DiscardUnknown() { var xxx_messageInfo_LiquidityPositionByIdRequest proto.InternalMessageInfo -func (m *LiquidityPositionByIdRequest) GetChainId() string { - if m != nil { - return m.ChainId - } - return "" -} - func (m *LiquidityPositionByIdRequest) GetPositionId() *PositionId { if m != nil { return m.PositionId @@ -2966,7 +3024,7 @@ func (m *LiquidityPositionByIdResponse) Reset() { *m = LiquidityPosition func (m *LiquidityPositionByIdResponse) String() string { return proto.CompactTextString(m) } func (*LiquidityPositionByIdResponse) ProtoMessage() {} func (*LiquidityPositionByIdResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_259f31b405eaa9a9, []int{42} + return fileDescriptor_ec17dcdac15b4004, []int{42} } func (m *LiquidityPositionByIdResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3003,8 +3061,6 @@ func (m *LiquidityPositionByIdResponse) GetData() *Position { } type LiquidityPositionsByIdRequest struct { - // The expected chain id (empty string if no expectation). - ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` PositionId []*PositionId `protobuf:"bytes,2,rep,name=position_id,json=positionId,proto3" json:"position_id,omitempty"` } @@ -3012,7 +3068,7 @@ func (m *LiquidityPositionsByIdRequest) Reset() { *m = LiquidityPosition func (m *LiquidityPositionsByIdRequest) String() string { return proto.CompactTextString(m) } func (*LiquidityPositionsByIdRequest) ProtoMessage() {} func (*LiquidityPositionsByIdRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_259f31b405eaa9a9, []int{43} + return fileDescriptor_ec17dcdac15b4004, []int{43} } func (m *LiquidityPositionsByIdRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3041,13 +3097,6 @@ func (m *LiquidityPositionsByIdRequest) XXX_DiscardUnknown() { var xxx_messageInfo_LiquidityPositionsByIdRequest proto.InternalMessageInfo -func (m *LiquidityPositionsByIdRequest) GetChainId() string { - if m != nil { - return m.ChainId - } - return "" -} - func (m *LiquidityPositionsByIdRequest) GetPositionId() []*PositionId { if m != nil { return m.PositionId @@ -3063,7 +3112,7 @@ func (m *LiquidityPositionsByIdResponse) Reset() { *m = LiquidityPositio func (m *LiquidityPositionsByIdResponse) String() string { return proto.CompactTextString(m) } func (*LiquidityPositionsByIdResponse) ProtoMessage() {} func (*LiquidityPositionsByIdResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_259f31b405eaa9a9, []int{44} + return fileDescriptor_ec17dcdac15b4004, []int{44} } func (m *LiquidityPositionsByIdResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3100,8 +3149,6 @@ func (m *LiquidityPositionsByIdResponse) GetData() *Position { } type LiquidityPositionsByPriceRequest struct { - // The expected chain id (empty string if no expectation). - ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` // The directed trading pair to request positions for TradingPair *DirectedTradingPair `protobuf:"bytes,2,opt,name=trading_pair,json=tradingPair,proto3" json:"trading_pair,omitempty"` // The maximum number of positions to return. @@ -3112,7 +3159,7 @@ func (m *LiquidityPositionsByPriceRequest) Reset() { *m = LiquidityPosit func (m *LiquidityPositionsByPriceRequest) String() string { return proto.CompactTextString(m) } func (*LiquidityPositionsByPriceRequest) ProtoMessage() {} func (*LiquidityPositionsByPriceRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_259f31b405eaa9a9, []int{45} + return fileDescriptor_ec17dcdac15b4004, []int{45} } func (m *LiquidityPositionsByPriceRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3141,13 +3188,6 @@ func (m *LiquidityPositionsByPriceRequest) XXX_DiscardUnknown() { var xxx_messageInfo_LiquidityPositionsByPriceRequest proto.InternalMessageInfo -func (m *LiquidityPositionsByPriceRequest) GetChainId() string { - if m != nil { - return m.ChainId - } - return "" -} - func (m *LiquidityPositionsByPriceRequest) GetTradingPair() *DirectedTradingPair { if m != nil { return m.TradingPair @@ -3170,7 +3210,7 @@ func (m *LiquidityPositionsByPriceResponse) Reset() { *m = LiquidityPosi func (m *LiquidityPositionsByPriceResponse) String() string { return proto.CompactTextString(m) } func (*LiquidityPositionsByPriceResponse) ProtoMessage() {} func (*LiquidityPositionsByPriceResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_259f31b405eaa9a9, []int{46} + return fileDescriptor_ec17dcdac15b4004, []int{46} } func (m *LiquidityPositionsByPriceResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3207,8 +3247,6 @@ func (m *LiquidityPositionsByPriceResponse) GetData() *Position { } type SpreadRequest struct { - // The expected chain id (empty string if no expectation). - ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` TradingPair *TradingPair `protobuf:"bytes,2,opt,name=trading_pair,json=tradingPair,proto3" json:"trading_pair,omitempty"` } @@ -3216,7 +3254,7 @@ func (m *SpreadRequest) Reset() { *m = SpreadRequest{} } func (m *SpreadRequest) String() string { return proto.CompactTextString(m) } func (*SpreadRequest) ProtoMessage() {} func (*SpreadRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_259f31b405eaa9a9, []int{47} + return fileDescriptor_ec17dcdac15b4004, []int{47} } func (m *SpreadRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3245,13 +3283,6 @@ func (m *SpreadRequest) XXX_DiscardUnknown() { var xxx_messageInfo_SpreadRequest proto.InternalMessageInfo -func (m *SpreadRequest) GetChainId() string { - if m != nil { - return m.ChainId - } - return "" -} - func (m *SpreadRequest) GetTradingPair() *TradingPair { if m != nil { return m.TradingPair @@ -3274,7 +3305,7 @@ func (m *SpreadResponse) Reset() { *m = SpreadResponse{} } func (m *SpreadResponse) String() string { return proto.CompactTextString(m) } func (*SpreadResponse) ProtoMessage() {} func (*SpreadResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_259f31b405eaa9a9, []int{48} + return fileDescriptor_ec17dcdac15b4004, []int{48} } func (m *SpreadResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3332,8 +3363,8 @@ func (m *SpreadResponse) GetApproxEffectivePrice_2To_1() float64 { } type SimulateTradeRequest struct { - Input *v1alpha14.Value `protobuf:"bytes,1,opt,name=input,proto3" json:"input,omitempty"` - Output *v1alpha14.AssetId `protobuf:"bytes,2,opt,name=output,proto3" json:"output,omitempty"` + Input *v14.Value `protobuf:"bytes,1,opt,name=input,proto3" json:"input,omitempty"` + Output *v14.AssetId `protobuf:"bytes,2,opt,name=output,proto3" json:"output,omitempty"` Routing *SimulateTradeRequest_Routing `protobuf:"bytes,3,opt,name=routing,proto3" json:"routing,omitempty"` } @@ -3341,7 +3372,7 @@ func (m *SimulateTradeRequest) Reset() { *m = SimulateTradeRequest{} } func (m *SimulateTradeRequest) String() string { return proto.CompactTextString(m) } func (*SimulateTradeRequest) ProtoMessage() {} func (*SimulateTradeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_259f31b405eaa9a9, []int{49} + return fileDescriptor_ec17dcdac15b4004, []int{49} } func (m *SimulateTradeRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3370,14 +3401,14 @@ func (m *SimulateTradeRequest) XXX_DiscardUnknown() { var xxx_messageInfo_SimulateTradeRequest proto.InternalMessageInfo -func (m *SimulateTradeRequest) GetInput() *v1alpha14.Value { +func (m *SimulateTradeRequest) GetInput() *v14.Value { if m != nil { return m.Input } return nil } -func (m *SimulateTradeRequest) GetOutput() *v1alpha14.AssetId { +func (m *SimulateTradeRequest) GetOutput() *v14.AssetId { if m != nil { return m.Output } @@ -3403,7 +3434,7 @@ func (m *SimulateTradeRequest_Routing) Reset() { *m = SimulateTradeReque func (m *SimulateTradeRequest_Routing) String() string { return proto.CompactTextString(m) } func (*SimulateTradeRequest_Routing) ProtoMessage() {} func (*SimulateTradeRequest_Routing) Descriptor() ([]byte, []int) { - return fileDescriptor_259f31b405eaa9a9, []int{49, 0} + return fileDescriptor_ec17dcdac15b4004, []int{49, 0} } func (m *SimulateTradeRequest_Routing) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3486,7 +3517,7 @@ func (m *SimulateTradeRequest_Routing_SingleHop) Reset() { func (m *SimulateTradeRequest_Routing_SingleHop) String() string { return proto.CompactTextString(m) } func (*SimulateTradeRequest_Routing_SingleHop) ProtoMessage() {} func (*SimulateTradeRequest_Routing_SingleHop) Descriptor() ([]byte, []int) { - return fileDescriptor_259f31b405eaa9a9, []int{49, 0, 0} + return fileDescriptor_ec17dcdac15b4004, []int{49, 0, 0} } func (m *SimulateTradeRequest_Routing_SingleHop) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3522,7 +3553,7 @@ func (m *SimulateTradeRequest_Routing_Default) Reset() { *m = SimulateTr func (m *SimulateTradeRequest_Routing_Default) String() string { return proto.CompactTextString(m) } func (*SimulateTradeRequest_Routing_Default) ProtoMessage() {} func (*SimulateTradeRequest_Routing_Default) Descriptor() ([]byte, []int) { - return fileDescriptor_259f31b405eaa9a9, []int{49, 0, 1} + return fileDescriptor_ec17dcdac15b4004, []int{49, 0, 1} } func (m *SimulateTradeRequest_Routing_Default) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3553,13 +3584,15 @@ var xxx_messageInfo_SimulateTradeRequest_Routing_Default proto.InternalMessageIn type SimulateTradeResponse struct { Output *SwapExecution `protobuf:"bytes,1,opt,name=output,proto3" json:"output,omitempty"` + // Estimated input amount that will not be swapped due to liquidity + Unfilled *v14.Value `protobuf:"bytes,2,opt,name=unfilled,proto3" json:"unfilled,omitempty"` } func (m *SimulateTradeResponse) Reset() { *m = SimulateTradeResponse{} } func (m *SimulateTradeResponse) String() string { return proto.CompactTextString(m) } func (*SimulateTradeResponse) ProtoMessage() {} func (*SimulateTradeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_259f31b405eaa9a9, []int{50} + return fileDescriptor_ec17dcdac15b4004, []int{50} } func (m *SimulateTradeResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3595,22 +3628,29 @@ func (m *SimulateTradeResponse) GetOutput() *SwapExecution { return nil } +func (m *SimulateTradeResponse) GetUnfilled() *v14.Value { + if m != nil { + return m.Unfilled + } + return nil +} + type EventSwap struct { // The trading pair to swap. TradingPair *TradingPair `protobuf:"bytes,1,opt,name=trading_pair,json=tradingPair,proto3" json:"trading_pair,omitempty"` // The amount for asset 1. - Delta_1I *v1alpha13.Amount `protobuf:"bytes,2,opt,name=delta_1_i,json=delta1I,proto3" json:"delta_1_i,omitempty"` + Delta_1I *v13.Amount `protobuf:"bytes,2,opt,name=delta_1_i,json=delta1I,proto3" json:"delta_1_i,omitempty"` // The amount for asset 2. - Delta_2I *v1alpha13.Amount `protobuf:"bytes,3,opt,name=delta_2_i,json=delta2I,proto3" json:"delta_2_i,omitempty"` + Delta_2I *v13.Amount `protobuf:"bytes,3,opt,name=delta_2_i,json=delta2I,proto3" json:"delta_2_i,omitempty"` // The swap commitment. - SwapCommitment *v1alpha12.StateCommitment `protobuf:"bytes,4,opt,name=swap_commitment,json=swapCommitment,proto3" json:"swap_commitment,omitempty"` + SwapCommitment *v12.StateCommitment `protobuf:"bytes,4,opt,name=swap_commitment,json=swapCommitment,proto3" json:"swap_commitment,omitempty"` } func (m *EventSwap) Reset() { *m = EventSwap{} } func (m *EventSwap) String() string { return proto.CompactTextString(m) } func (*EventSwap) ProtoMessage() {} func (*EventSwap) Descriptor() ([]byte, []int) { - return fileDescriptor_259f31b405eaa9a9, []int{51} + return fileDescriptor_ec17dcdac15b4004, []int{51} } func (m *EventSwap) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3646,21 +3686,21 @@ func (m *EventSwap) GetTradingPair() *TradingPair { return nil } -func (m *EventSwap) GetDelta_1I() *v1alpha13.Amount { +func (m *EventSwap) GetDelta_1I() *v13.Amount { if m != nil { return m.Delta_1I } return nil } -func (m *EventSwap) GetDelta_2I() *v1alpha13.Amount { +func (m *EventSwap) GetDelta_2I() *v13.Amount { if m != nil { return m.Delta_2I } return nil } -func (m *EventSwap) GetSwapCommitment() *v1alpha12.StateCommitment { +func (m *EventSwap) GetSwapCommitment() *v12.StateCommitment { if m != nil { return m.SwapCommitment } @@ -3671,18 +3711,18 @@ type EventSwapClaim struct { // The trading pair that is subject of the swap claim. TradingPair *TradingPair `protobuf:"bytes,1,opt,name=trading_pair,json=tradingPair,proto3" json:"trading_pair,omitempty"` // Note commitment for the first asset. - Output_1Commitment *v1alpha12.StateCommitment `protobuf:"bytes,2,opt,name=output_1_commitment,json=output1Commitment,proto3" json:"output_1_commitment,omitempty"` + Output_1Commitment *v12.StateCommitment `protobuf:"bytes,2,opt,name=output_1_commitment,json=output1Commitment,proto3" json:"output_1_commitment,omitempty"` // Note commitment for the second asset. - Output_2Commitment *v1alpha12.StateCommitment `protobuf:"bytes,3,opt,name=output_2_commitment,json=output2Commitment,proto3" json:"output_2_commitment,omitempty"` + Output_2Commitment *v12.StateCommitment `protobuf:"bytes,3,opt,name=output_2_commitment,json=output2Commitment,proto3" json:"output_2_commitment,omitempty"` // The nullifier for the swap commitment. - Nullifier *v1alpha1.Nullifier `protobuf:"bytes,4,opt,name=nullifier,proto3" json:"nullifier,omitempty"` + Nullifier *v1.Nullifier `protobuf:"bytes,4,opt,name=nullifier,proto3" json:"nullifier,omitempty"` } func (m *EventSwapClaim) Reset() { *m = EventSwapClaim{} } func (m *EventSwapClaim) String() string { return proto.CompactTextString(m) } func (*EventSwapClaim) ProtoMessage() {} func (*EventSwapClaim) Descriptor() ([]byte, []int) { - return fileDescriptor_259f31b405eaa9a9, []int{52} + return fileDescriptor_ec17dcdac15b4004, []int{52} } func (m *EventSwapClaim) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3718,21 +3758,21 @@ func (m *EventSwapClaim) GetTradingPair() *TradingPair { return nil } -func (m *EventSwapClaim) GetOutput_1Commitment() *v1alpha12.StateCommitment { +func (m *EventSwapClaim) GetOutput_1Commitment() *v12.StateCommitment { if m != nil { return m.Output_1Commitment } return nil } -func (m *EventSwapClaim) GetOutput_2Commitment() *v1alpha12.StateCommitment { +func (m *EventSwapClaim) GetOutput_2Commitment() *v12.StateCommitment { if m != nil { return m.Output_2Commitment } return nil } -func (m *EventSwapClaim) GetNullifier() *v1alpha1.Nullifier { +func (m *EventSwapClaim) GetNullifier() *v1.Nullifier { if m != nil { return m.Nullifier } @@ -3745,9 +3785,9 @@ type EventPositionOpen struct { // The trading pair to open. TradingPair *TradingPair `protobuf:"bytes,2,opt,name=trading_pair,json=tradingPair,proto3" json:"trading_pair,omitempty"` // The amount for asset 1. - Reserves_1 *v1alpha13.Amount `protobuf:"bytes,3,opt,name=reserves_1,json=reserves1,proto3" json:"reserves_1,omitempty"` + Reserves_1 *v13.Amount `protobuf:"bytes,3,opt,name=reserves_1,json=reserves1,proto3" json:"reserves_1,omitempty"` // The amount for asset 2. - Reserves_2 *v1alpha13.Amount `protobuf:"bytes,4,opt,name=reserves_2,json=reserves2,proto3" json:"reserves_2,omitempty"` + Reserves_2 *v13.Amount `protobuf:"bytes,4,opt,name=reserves_2,json=reserves2,proto3" json:"reserves_2,omitempty"` // The trading fee for the position, expressed in basis points. // e.g. 2% fee is expressed as 200, 100% fee is expressed as 10000; TradingFee uint32 `protobuf:"varint,5,opt,name=trading_fee,json=tradingFee,proto3" json:"trading_fee,omitempty"` @@ -3757,7 +3797,7 @@ func (m *EventPositionOpen) Reset() { *m = EventPositionOpen{} } func (m *EventPositionOpen) String() string { return proto.CompactTextString(m) } func (*EventPositionOpen) ProtoMessage() {} func (*EventPositionOpen) Descriptor() ([]byte, []int) { - return fileDescriptor_259f31b405eaa9a9, []int{53} + return fileDescriptor_ec17dcdac15b4004, []int{53} } func (m *EventPositionOpen) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3800,14 +3840,14 @@ func (m *EventPositionOpen) GetTradingPair() *TradingPair { return nil } -func (m *EventPositionOpen) GetReserves_1() *v1alpha13.Amount { +func (m *EventPositionOpen) GetReserves_1() *v13.Amount { if m != nil { return m.Reserves_1 } return nil } -func (m *EventPositionOpen) GetReserves_2() *v1alpha13.Amount { +func (m *EventPositionOpen) GetReserves_2() *v13.Amount { if m != nil { return m.Reserves_2 } @@ -3830,7 +3870,7 @@ func (m *EventPositionClose) Reset() { *m = EventPositionClose{} } func (m *EventPositionClose) String() string { return proto.CompactTextString(m) } func (*EventPositionClose) ProtoMessage() {} func (*EventPositionClose) Descriptor() ([]byte, []int) { - return fileDescriptor_259f31b405eaa9a9, []int{54} + return fileDescriptor_ec17dcdac15b4004, []int{54} } func (m *EventPositionClose) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3872,16 +3912,18 @@ type EventPositionWithdraw struct { // The trading pair of the withdrawn position. TradingPair *TradingPair `protobuf:"bytes,2,opt,name=trading_pair,json=tradingPair,proto3" json:"trading_pair,omitempty"` // The reserves of asset 1 of the withdrawn position. - Reserves_1 *v1alpha13.Amount `protobuf:"bytes,3,opt,name=reserves_1,json=reserves1,proto3" json:"reserves_1,omitempty"` + Reserves_1 *v13.Amount `protobuf:"bytes,3,opt,name=reserves_1,json=reserves1,proto3" json:"reserves_1,omitempty"` // The reserves of asset 2 of the withdrawn position. - Reserves_2 *v1alpha13.Amount `protobuf:"bytes,4,opt,name=reserves_2,json=reserves2,proto3" json:"reserves_2,omitempty"` + Reserves_2 *v13.Amount `protobuf:"bytes,4,opt,name=reserves_2,json=reserves2,proto3" json:"reserves_2,omitempty"` + // The sequence number of the withdrawal. + Sequence uint64 `protobuf:"varint,5,opt,name=sequence,proto3" json:"sequence,omitempty"` } func (m *EventPositionWithdraw) Reset() { *m = EventPositionWithdraw{} } func (m *EventPositionWithdraw) String() string { return proto.CompactTextString(m) } func (*EventPositionWithdraw) ProtoMessage() {} func (*EventPositionWithdraw) Descriptor() ([]byte, []int) { - return fileDescriptor_259f31b405eaa9a9, []int{55} + return fileDescriptor_ec17dcdac15b4004, []int{55} } func (m *EventPositionWithdraw) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3924,1581 +3966,1419 @@ func (m *EventPositionWithdraw) GetTradingPair() *TradingPair { return nil } -func (m *EventPositionWithdraw) GetReserves_1() *v1alpha13.Amount { +func (m *EventPositionWithdraw) GetReserves_1() *v13.Amount { if m != nil { return m.Reserves_1 } return nil } -func (m *EventPositionWithdraw) GetReserves_2() *v1alpha13.Amount { +func (m *EventPositionWithdraw) GetReserves_2() *v13.Amount { if m != nil { return m.Reserves_2 } return nil } -func init() { - proto.RegisterEnum("penumbra.core.component.dex.v1alpha1.PositionState_PositionStateEnum", PositionState_PositionStateEnum_name, PositionState_PositionStateEnum_value) - proto.RegisterType((*ZKSwapProof)(nil), "penumbra.core.component.dex.v1alpha1.ZKSwapProof") - proto.RegisterType((*ZKSwapClaimProof)(nil), "penumbra.core.component.dex.v1alpha1.ZKSwapClaimProof") - proto.RegisterType((*Swap)(nil), "penumbra.core.component.dex.v1alpha1.Swap") - proto.RegisterType((*SwapClaim)(nil), "penumbra.core.component.dex.v1alpha1.SwapClaim") - proto.RegisterType((*SwapClaimBody)(nil), "penumbra.core.component.dex.v1alpha1.SwapClaimBody") - proto.RegisterType((*SwapBody)(nil), "penumbra.core.component.dex.v1alpha1.SwapBody") - proto.RegisterType((*SwapPayload)(nil), "penumbra.core.component.dex.v1alpha1.SwapPayload") - proto.RegisterType((*SwapPlaintext)(nil), "penumbra.core.component.dex.v1alpha1.SwapPlaintext") - proto.RegisterType((*SwapPlan)(nil), "penumbra.core.component.dex.v1alpha1.SwapPlan") - proto.RegisterType((*SwapClaimPlan)(nil), "penumbra.core.component.dex.v1alpha1.SwapClaimPlan") - proto.RegisterType((*SwapView)(nil), "penumbra.core.component.dex.v1alpha1.SwapView") - proto.RegisterType((*SwapView_Visible)(nil), "penumbra.core.component.dex.v1alpha1.SwapView.Visible") - proto.RegisterType((*SwapView_Opaque)(nil), "penumbra.core.component.dex.v1alpha1.SwapView.Opaque") - proto.RegisterType((*SwapClaimView)(nil), "penumbra.core.component.dex.v1alpha1.SwapClaimView") - proto.RegisterType((*SwapClaimView_Visible)(nil), "penumbra.core.component.dex.v1alpha1.SwapClaimView.Visible") - proto.RegisterType((*SwapClaimView_Opaque)(nil), "penumbra.core.component.dex.v1alpha1.SwapClaimView.Opaque") - proto.RegisterType((*TradingPair)(nil), "penumbra.core.component.dex.v1alpha1.TradingPair") - proto.RegisterType((*DirectedTradingPair)(nil), "penumbra.core.component.dex.v1alpha1.DirectedTradingPair") - proto.RegisterType((*BatchSwapOutputData)(nil), "penumbra.core.component.dex.v1alpha1.BatchSwapOutputData") - proto.RegisterType((*TradingFunction)(nil), "penumbra.core.component.dex.v1alpha1.TradingFunction") - proto.RegisterType((*BareTradingFunction)(nil), "penumbra.core.component.dex.v1alpha1.BareTradingFunction") - proto.RegisterType((*Reserves)(nil), "penumbra.core.component.dex.v1alpha1.Reserves") - proto.RegisterType((*Position)(nil), "penumbra.core.component.dex.v1alpha1.Position") - proto.RegisterType((*PositionId)(nil), "penumbra.core.component.dex.v1alpha1.PositionId") - proto.RegisterType((*PositionState)(nil), "penumbra.core.component.dex.v1alpha1.PositionState") - proto.RegisterType((*LpNft)(nil), "penumbra.core.component.dex.v1alpha1.LpNft") - proto.RegisterType((*PositionOpen)(nil), "penumbra.core.component.dex.v1alpha1.PositionOpen") - proto.RegisterType((*PositionClose)(nil), "penumbra.core.component.dex.v1alpha1.PositionClose") - proto.RegisterType((*PositionWithdraw)(nil), "penumbra.core.component.dex.v1alpha1.PositionWithdraw") - proto.RegisterType((*PositionRewardClaim)(nil), "penumbra.core.component.dex.v1alpha1.PositionRewardClaim") - proto.RegisterType((*SwapExecution)(nil), "penumbra.core.component.dex.v1alpha1.SwapExecution") - proto.RegisterType((*SwapExecution_Trace)(nil), "penumbra.core.component.dex.v1alpha1.SwapExecution.Trace") - proto.RegisterType((*PositionWithdrawPlan)(nil), "penumbra.core.component.dex.v1alpha1.PositionWithdrawPlan") - proto.RegisterType((*PositionRewardClaimPlan)(nil), "penumbra.core.component.dex.v1alpha1.PositionRewardClaimPlan") - proto.RegisterType((*BatchSwapOutputDataRequest)(nil), "penumbra.core.component.dex.v1alpha1.BatchSwapOutputDataRequest") - proto.RegisterType((*BatchSwapOutputDataResponse)(nil), "penumbra.core.component.dex.v1alpha1.BatchSwapOutputDataResponse") - proto.RegisterType((*SwapExecutionRequest)(nil), "penumbra.core.component.dex.v1alpha1.SwapExecutionRequest") - proto.RegisterType((*SwapExecutionResponse)(nil), "penumbra.core.component.dex.v1alpha1.SwapExecutionResponse") - proto.RegisterType((*ArbExecutionRequest)(nil), "penumbra.core.component.dex.v1alpha1.ArbExecutionRequest") - proto.RegisterType((*ArbExecutionResponse)(nil), "penumbra.core.component.dex.v1alpha1.ArbExecutionResponse") - proto.RegisterType((*SwapExecutionsRequest)(nil), "penumbra.core.component.dex.v1alpha1.SwapExecutionsRequest") - proto.RegisterType((*SwapExecutionsResponse)(nil), "penumbra.core.component.dex.v1alpha1.SwapExecutionsResponse") - proto.RegisterType((*ArbExecutionsRequest)(nil), "penumbra.core.component.dex.v1alpha1.ArbExecutionsRequest") - proto.RegisterType((*ArbExecutionsResponse)(nil), "penumbra.core.component.dex.v1alpha1.ArbExecutionsResponse") - proto.RegisterType((*LiquidityPositionsRequest)(nil), "penumbra.core.component.dex.v1alpha1.LiquidityPositionsRequest") - proto.RegisterType((*LiquidityPositionsResponse)(nil), "penumbra.core.component.dex.v1alpha1.LiquidityPositionsResponse") - proto.RegisterType((*LiquidityPositionByIdRequest)(nil), "penumbra.core.component.dex.v1alpha1.LiquidityPositionByIdRequest") - proto.RegisterType((*LiquidityPositionByIdResponse)(nil), "penumbra.core.component.dex.v1alpha1.LiquidityPositionByIdResponse") - proto.RegisterType((*LiquidityPositionsByIdRequest)(nil), "penumbra.core.component.dex.v1alpha1.LiquidityPositionsByIdRequest") - proto.RegisterType((*LiquidityPositionsByIdResponse)(nil), "penumbra.core.component.dex.v1alpha1.LiquidityPositionsByIdResponse") - proto.RegisterType((*LiquidityPositionsByPriceRequest)(nil), "penumbra.core.component.dex.v1alpha1.LiquidityPositionsByPriceRequest") - proto.RegisterType((*LiquidityPositionsByPriceResponse)(nil), "penumbra.core.component.dex.v1alpha1.LiquidityPositionsByPriceResponse") - proto.RegisterType((*SpreadRequest)(nil), "penumbra.core.component.dex.v1alpha1.SpreadRequest") - proto.RegisterType((*SpreadResponse)(nil), "penumbra.core.component.dex.v1alpha1.SpreadResponse") - proto.RegisterType((*SimulateTradeRequest)(nil), "penumbra.core.component.dex.v1alpha1.SimulateTradeRequest") - proto.RegisterType((*SimulateTradeRequest_Routing)(nil), "penumbra.core.component.dex.v1alpha1.SimulateTradeRequest.Routing") - proto.RegisterType((*SimulateTradeRequest_Routing_SingleHop)(nil), "penumbra.core.component.dex.v1alpha1.SimulateTradeRequest.Routing.SingleHop") - proto.RegisterType((*SimulateTradeRequest_Routing_Default)(nil), "penumbra.core.component.dex.v1alpha1.SimulateTradeRequest.Routing.Default") - proto.RegisterType((*SimulateTradeResponse)(nil), "penumbra.core.component.dex.v1alpha1.SimulateTradeResponse") - proto.RegisterType((*EventSwap)(nil), "penumbra.core.component.dex.v1alpha1.EventSwap") - proto.RegisterType((*EventSwapClaim)(nil), "penumbra.core.component.dex.v1alpha1.EventSwapClaim") - proto.RegisterType((*EventPositionOpen)(nil), "penumbra.core.component.dex.v1alpha1.EventPositionOpen") - proto.RegisterType((*EventPositionClose)(nil), "penumbra.core.component.dex.v1alpha1.EventPositionClose") - proto.RegisterType((*EventPositionWithdraw)(nil), "penumbra.core.component.dex.v1alpha1.EventPositionWithdraw") +func (m *EventPositionWithdraw) GetSequence() uint64 { + if m != nil { + return m.Sequence + } + return 0 } -func init() { - proto.RegisterFile("penumbra/core/component/dex/v1alpha1/dex.proto", fileDescriptor_259f31b405eaa9a9) -} - -var fileDescriptor_259f31b405eaa9a9 = []byte{ - // 2906 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x5b, 0x4f, 0x6c, 0xe3, 0xc6, - 0xd5, 0xf7, 0x50, 0xb2, 0x2d, 0x3d, 0xd9, 0x8e, 0x77, 0xec, 0xcd, 0xe7, 0x28, 0xdf, 0x7a, 0x77, - 0x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0x15, 0x67, 0xe9, - 0x6c, 0x95, 0x4d, 0xf2, 0x1f, 0x65, 0x60, 0x36, 0xc2, 0x8e, 0x6f, 0x41, 0x5e, 0xef, 0x6a, 0x9a, - 0xda, 0x56, 0x99, 0x35, 0x0a, 0xc2, 0xea, 0x40, 0x31, 0x5c, 0x9f, 0x0d, 0xc4, 0xd8, 0xf1, 0xd9, - 0xc4, 0x1e, 0x02, 0x5e, 0x87, 0x4c, 0x9b, 0x10, 0xb6, 0x9f, 0xff, 0x1f, 0x08, 0xe4, 0x1e, 0x96, - 0x00, 0x68, 0x8b, 0x10, 0xd1, 0xe5, 0xc2, 0xaf, 0xc3, 0x82, 0xd1, 0x75, 0xcc, 0xae, 0x23, 0x95, - 0xa5, 0x96, 0xd1, 0xe9, 0xa8, 0x4e, 0x87, 0xe8, 0xce, 0x52, 0x86, 0x82, 0x7d, 0x35, 0x04, 0x46, - 0x9d, 0xb2, 0xe4, 0x84, 0xa5, 0x69, 0x3a, 0xb2, 0x43, 0x36, 0x03, 0x26, 0xf1, 0x82, 0x87, 0x54, - 0xee, 0x4d, 0x85, 0xe0, 0x85, 0x30, 0x7c, 0x76, 0x04, 0x78, 0x21, 0x04, 0x7f, 0x17, 0x0a, 0x0c, - 0x5e, 0x91, 0x1d, 0x79, 0x69, 0x8a, 0xc2, 0x3e, 0x97, 0xcc, 0xa4, 0x15, 0xd9, 0x69, 0x1d, 0xb9, - 0x86, 0xd9, 0xa5, 0x08, 0x55, 0xd9, 0x91, 0x45, 0x30, 0x82, 0xdf, 0xfc, 0xdb, 0x19, 0xc8, 0xf9, - 0x6e, 0x89, 0xf7, 0x60, 0xc6, 0xb1, 0x64, 0x45, 0xd5, 0x0f, 0x25, 0x53, 0x56, 0xad, 0x74, 0x87, - 0x64, 0xcf, 0xe3, 0x6c, 0xc8, 0xaa, 0x25, 0x16, 0x9c, 0xde, 0x00, 0xbf, 0x00, 0x79, 0x85, 0x68, - 0x8e, 0x2c, 0x95, 0x25, 0x95, 0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, 0xc9, 0x3a, 0xbe, - 0x0b, 0x73, 0xae, 0xe9, 0x24, 0xd3, 0xb7, 0x0e, 0xb3, 0x46, 0x8a, 0xe8, 0x1e, 0x18, 0x56, 0x9c, - 0xb5, 0x23, 0x76, 0xbe, 0x0a, 0x33, 0xee, 0x21, 0x39, 0xd0, 0x54, 0xdd, 0xb5, 0x12, 0x73, 0x8f, - 0x42, 0x9b, 0x90, 0x0a, 0x9b, 0xc2, 0x2b, 0x30, 0x4f, 0xef, 0x96, 0x80, 0x48, 0xb2, 0xa8, 0xee, - 0x67, 0xc4, 0x39, 0x3a, 0xef, 0x13, 0x8a, 0x31, 0x94, 0x36, 0xd5, 0x72, 0x3f, 0x65, 0x93, 0xff, - 0x2b, 0x17, 0xba, 0x36, 0xce, 0x7d, 0x93, 0x45, 0xc8, 0x99, 0x86, 0xad, 0xd2, 0x5b, 0x8c, 0xa3, - 0xb7, 0x58, 0x30, 0xee, 0x0f, 0xb2, 0x99, 0x31, 0x06, 0xd9, 0x98, 0x3b, 0x34, 0x1b, 0x73, 0x87, - 0xc6, 0x2a, 0x78, 0x32, 0xb1, 0x82, 0xa7, 0x62, 0x15, 0xfc, 0x01, 0x8b, 0xef, 0xb7, 0x55, 0x72, - 0x1f, 0x8b, 0x30, 0x7d, 0xac, 0xda, 0xea, 0x81, 0x46, 0xd2, 0x25, 0x19, 0x3e, 0x40, 0xe9, 0xb6, - 0xc7, 0xbd, 0x3d, 0x21, 0xfa, 0x40, 0x78, 0x17, 0xa6, 0x0c, 0x53, 0xbe, 0xd7, 0xf5, 0xaf, 0xe6, - 0x67, 0x53, 0x42, 0xee, 0x52, 0xe6, 0xed, 0x09, 0x91, 0xc1, 0x14, 0xdf, 0x47, 0x30, 0xcd, 0xd6, - 0xc1, 0x2f, 0x40, 0x96, 0x06, 0x2b, 0x4f, 0xda, 0xaf, 0x24, 0x87, 0x16, 0x29, 0x5f, 0x8c, 0x33, - 0x65, 0xc6, 0xe5, 0x4c, 0xc5, 0x6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, 0x17, 0x7b, 0x7f, 0x88, 0xe0, 0x7f, 0xcf, 0x2c, 0x51, - 0x39, 0xad, 0x2b, 0x09, 0x36, 0x31, 0xfe, 0xeb, 0x9c, 0x6f, 0xc1, 0xa5, 0x01, 0xd2, 0x8c, 0x71, - 0xcf, 0xef, 0xa2, 0x98, 0x55, 0xec, 0x61, 0x37, 0x9d, 0x19, 0x79, 0xd3, 0x0a, 0x2c, 0x0f, 0x12, - 0x67, 0x8c, 0xbb, 0xfe, 0x10, 0xc1, 0x95, 0xb8, 0x65, 0x1a, 0x96, 0xda, 0x22, 0x09, 0x36, 0xde, - 0x1f, 0x4b, 0xb8, 0x71, 0xc6, 0x12, 0xbc, 0x08, 0x93, 0x9a, 0xda, 0x51, 0x1d, 0xda, 0x2c, 0xc8, - 0x8a, 0xde, 0x80, 0x3f, 0x84, 0xab, 0x8f, 0x10, 0x79, 0x8c, 0xca, 0xf9, 0x1e, 0x82, 0xd9, 0xa6, - 0x69, 0x11, 0x39, 0x89, 0x0b, 0xec, 0xc5, 0x6a, 0x62, 0xd4, 0x9c, 0xeb, 0x53, 0x0e, 0xe6, 0x7c, - 0x11, 0xd8, 0xce, 0xde, 0x80, 0xc5, 0x03, 0x62, 0x3b, 0x52, 0x59, 0x72, 0x0c, 0x49, 0x90, 0x46, - 0x2c, 0x83, 0xe7, 0x5d, 0xac, 0xf2, 0x9e, 0x21, 0x04, 0xfd, 0x29, 0x1f, 0x5f, 0x70, 0xf1, 0xcb, - 0x52, 0xe4, 0xe5, 0xe4, 0x90, 0xf8, 0xc2, 0x9e, 0x51, 0x0e, 0xf0, 0x5f, 0x84, 0x4b, 0xb2, 0x69, - 0x5a, 0xc6, 0x89, 0x44, 0xda, 0x6d, 0xd2, 0x72, 0xd4, 0x63, 0x22, 0x99, 0xae, 0xed, 0xd8, 0x8e, - 0x68, 0x74, 0x47, 0xe2, 0x92, 0x47, 0x54, 0xf3, 0x69, 0xa8, 0x79, 0x5d, 0x41, 0x1f, 0x01, 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 0x03, 0xdd, 0xdd, 0x3f, 0x54, 0x9d, 0xa3, 0xee, 0x81, 0x4b, 0xba, 0xda, 0x32, 0xec, - 0x8e, 0x61, 0xaf, 0x5a, 0x44, 0x93, 0x4f, 0x89, 0xb5, 0x7a, 0x2c, 0x04, 0x3f, 0x69, 0x73, 0xc3, - 0x5e, 0x4d, 0xf2, 0x2f, 0x69, 0xeb, 0x0a, 0x39, 0xf1, 0x7f, 0xff, 0x82, 0xcb, 0x36, 0x36, 0x37, - 0xab, 0xbf, 0xe6, 0xae, 0x35, 0x7c, 0xb9, 0x36, 0x5d, 0xb9, 0x36, 0x03, 0xb9, 0xaa, 0xe4, 0xa4, - 0x74, 0x9b, 0x51, 0xff, 0xa9, 0x47, 0xb6, 0xef, 0x92, 0xed, 0x07, 0x64, 0xfb, 0x55, 0x72, 0xb2, - 0xef, 0x93, 0x3d, 0xe0, 0xae, 0x27, 0x21, 0xdb, 0xbf, 0xd1, 0xa8, 0xdc, 0x22, 0x8e, 0xac, 0xc8, - 0x8e, 0xfc, 0x19, 0xb7, 0xe2, 0xb3, 0xac, 0xad, 0xb9, 0x3c, 0xee, 0x5f, 0xc6, 0xb4, 0xb6, 0x56, - 0x25, 0x27, 0x6b, 0x6b, 0x3e, 0xdb, 0xc1, 0x14, 0xfd, 0x27, 0xaf, 0x67, 0xfe, 0x13, 0x00, 0x00, - 0xff, 0xff, 0xd4, 0xd2, 0x25, 0x55, 0x80, 0x37, 0x00, 0x00, +type EventPositionExecution struct { + // The ID of the position executed against. + PositionId *PositionId `protobuf:"bytes,1,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty"` + // The trading pair of the position executed against. + TradingPair *TradingPair `protobuf:"bytes,2,opt,name=trading_pair,json=tradingPair,proto3" json:"trading_pair,omitempty"` + // The reserves of asset 1 of the position after execution. + Reserves_1 *v13.Amount `protobuf:"bytes,3,opt,name=reserves_1,json=reserves1,proto3" json:"reserves_1,omitempty"` + // The reserves of asset 2 of the position after execution. + Reserves_2 *v13.Amount `protobuf:"bytes,4,opt,name=reserves_2,json=reserves2,proto3" json:"reserves_2,omitempty"` + // The reserves of asset 1 of the position before execution. + PrevReserves_1 *v13.Amount `protobuf:"bytes,5,opt,name=prev_reserves_1,json=prevReserves1,proto3" json:"prev_reserves_1,omitempty"` + // The reserves of asset 2 of the position before execution. + PrevReserves_2 *v13.Amount `protobuf:"bytes,6,opt,name=prev_reserves_2,json=prevReserves2,proto3" json:"prev_reserves_2,omitempty"` + // Context: the end-to-end route that was being traversed during execution. + Context *DirectedTradingPair `protobuf:"bytes,7,opt,name=context,proto3" json:"context,omitempty"` +} + +func (m *EventPositionExecution) Reset() { *m = EventPositionExecution{} } +func (m *EventPositionExecution) String() string { return proto.CompactTextString(m) } +func (*EventPositionExecution) ProtoMessage() {} +func (*EventPositionExecution) Descriptor() ([]byte, []int) { + return fileDescriptor_ec17dcdac15b4004, []int{56} +} +func (m *EventPositionExecution) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EventPositionExecution) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EventPositionExecution.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 *EventPositionExecution) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventPositionExecution.Merge(m, src) +} +func (m *EventPositionExecution) XXX_Size() int { + return m.Size() +} +func (m *EventPositionExecution) XXX_DiscardUnknown() { + xxx_messageInfo_EventPositionExecution.DiscardUnknown(m) } -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 +var xxx_messageInfo_EventPositionExecution proto.InternalMessageInfo -// QueryServiceClient is the client API for QueryService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type QueryServiceClient interface { - // Get the batch clearing prices for a specific block height and trading pair. - BatchSwapOutputData(ctx context.Context, in *BatchSwapOutputDataRequest, opts ...grpc.CallOption) (*BatchSwapOutputDataResponse, error) - // Get the precise swap execution used for a specific batch swap. - SwapExecution(ctx context.Context, in *SwapExecutionRequest, opts ...grpc.CallOption) (*SwapExecutionResponse, error) - // Get the precise execution used to perform on-chain arbitrage. - ArbExecution(ctx context.Context, in *ArbExecutionRequest, opts ...grpc.CallOption) (*ArbExecutionResponse, error) - // Stream all swap executions over a range of heights, optionally subscribing to future executions. - SwapExecutions(ctx context.Context, in *SwapExecutionsRequest, opts ...grpc.CallOption) (QueryService_SwapExecutionsClient, error) - // Stream all arbitrage executions over a range of heights, optionally subscribing to future executions. - ArbExecutions(ctx context.Context, in *ArbExecutionsRequest, opts ...grpc.CallOption) (QueryService_ArbExecutionsClient, error) - // Query all liquidity positions on the DEX. - LiquidityPositions(ctx context.Context, in *LiquidityPositionsRequest, opts ...grpc.CallOption) (QueryService_LiquidityPositionsClient, error) - // Query liquidity positions by ID. - // - // To get multiple positions, use `LiquidityPositionsById`. - LiquidityPositionById(ctx context.Context, in *LiquidityPositionByIdRequest, opts ...grpc.CallOption) (*LiquidityPositionByIdResponse, error) - // Query multiple liquidity positions by ID. - LiquidityPositionsById(ctx context.Context, in *LiquidityPositionsByIdRequest, opts ...grpc.CallOption) (QueryService_LiquidityPositionsByIdClient, error) - // Query liquidity positions on a specific pair, sorted by effective price. - LiquidityPositionsByPrice(ctx context.Context, in *LiquidityPositionsByPriceRequest, opts ...grpc.CallOption) (QueryService_LiquidityPositionsByPriceClient, error) - // Get the current (direct) spread on a trading pair. - // - // This method doesn't do simulation, so actually executing might result in a - // better price (if the chain takes a different route to the target asset). - Spread(ctx context.Context, in *SpreadRequest, opts ...grpc.CallOption) (*SpreadResponse, error) +func (m *EventPositionExecution) GetPositionId() *PositionId { + if m != nil { + return m.PositionId + } + return nil } -type queryServiceClient struct { - cc grpc1.ClientConn +func (m *EventPositionExecution) GetTradingPair() *TradingPair { + if m != nil { + return m.TradingPair + } + return nil } -func NewQueryServiceClient(cc grpc1.ClientConn) QueryServiceClient { - return &queryServiceClient{cc} +func (m *EventPositionExecution) GetReserves_1() *v13.Amount { + if m != nil { + return m.Reserves_1 + } + return nil } -func (c *queryServiceClient) BatchSwapOutputData(ctx context.Context, in *BatchSwapOutputDataRequest, opts ...grpc.CallOption) (*BatchSwapOutputDataResponse, error) { - out := new(BatchSwapOutputDataResponse) - err := c.cc.Invoke(ctx, "/penumbra.core.component.dex.v1alpha1.QueryService/BatchSwapOutputData", in, out, opts...) - if err != nil { - return nil, err +func (m *EventPositionExecution) GetReserves_2() *v13.Amount { + if m != nil { + return m.Reserves_2 } - return out, nil + return nil } -func (c *queryServiceClient) SwapExecution(ctx context.Context, in *SwapExecutionRequest, opts ...grpc.CallOption) (*SwapExecutionResponse, error) { - out := new(SwapExecutionResponse) - err := c.cc.Invoke(ctx, "/penumbra.core.component.dex.v1alpha1.QueryService/SwapExecution", in, out, opts...) - if err != nil { - return nil, err +func (m *EventPositionExecution) GetPrevReserves_1() *v13.Amount { + if m != nil { + return m.PrevReserves_1 } - return out, nil + return nil } -func (c *queryServiceClient) ArbExecution(ctx context.Context, in *ArbExecutionRequest, opts ...grpc.CallOption) (*ArbExecutionResponse, error) { - out := new(ArbExecutionResponse) - err := c.cc.Invoke(ctx, "/penumbra.core.component.dex.v1alpha1.QueryService/ArbExecution", in, out, opts...) - if err != nil { - return nil, err +func (m *EventPositionExecution) GetPrevReserves_2() *v13.Amount { + if m != nil { + return m.PrevReserves_2 } - return out, nil + return nil } -func (c *queryServiceClient) SwapExecutions(ctx context.Context, in *SwapExecutionsRequest, opts ...grpc.CallOption) (QueryService_SwapExecutionsClient, error) { - stream, err := c.cc.NewStream(ctx, &_QueryService_serviceDesc.Streams[0], "/penumbra.core.component.dex.v1alpha1.QueryService/SwapExecutions", opts...) - if err != nil { - return nil, err - } - x := &queryServiceSwapExecutionsClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err +func (m *EventPositionExecution) GetContext() *DirectedTradingPair { + if m != nil { + return m.Context } - return x, nil + return nil } -type QueryService_SwapExecutionsClient interface { - Recv() (*SwapExecutionsResponse, error) - grpc.ClientStream +type EventBatchSwap struct { + // The BatchSwapOutputData containing the results of the batch swap. + BatchSwapOutputData *BatchSwapOutputData `protobuf:"bytes,1,opt,name=batch_swap_output_data,json=batchSwapOutputData,proto3" json:"batch_swap_output_data,omitempty"` + // The record of execution for the batch swap in the 1 -> 2 direction. + SwapExecution_1For_2 *SwapExecution `protobuf:"bytes,2,opt,name=swap_execution_1_for_2,json=swapExecution1For2,proto3" json:"swap_execution_1_for_2,omitempty"` + // The record of execution for the batch swap in the 2 -> 1 direction. + SwapExecution_2For_1 *SwapExecution `protobuf:"bytes,3,opt,name=swap_execution_2_for_1,json=swapExecution2For1,proto3" json:"swap_execution_2_for_1,omitempty"` } -type queryServiceSwapExecutionsClient struct { - grpc.ClientStream +func (m *EventBatchSwap) Reset() { *m = EventBatchSwap{} } +func (m *EventBatchSwap) String() string { return proto.CompactTextString(m) } +func (*EventBatchSwap) ProtoMessage() {} +func (*EventBatchSwap) Descriptor() ([]byte, []int) { + return fileDescriptor_ec17dcdac15b4004, []int{57} } - -func (x *queryServiceSwapExecutionsClient) Recv() (*SwapExecutionsResponse, error) { - m := new(SwapExecutionsResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil +func (m *EventBatchSwap) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) } - -func (c *queryServiceClient) ArbExecutions(ctx context.Context, in *ArbExecutionsRequest, opts ...grpc.CallOption) (QueryService_ArbExecutionsClient, error) { - stream, err := c.cc.NewStream(ctx, &_QueryService_serviceDesc.Streams[1], "/penumbra.core.component.dex.v1alpha1.QueryService/ArbExecutions", opts...) - if err != nil { - return nil, err - } - x := &queryServiceArbExecutionsClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err +func (m *EventBatchSwap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EventBatchSwap.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return x, nil } - -type QueryService_ArbExecutionsClient interface { - Recv() (*ArbExecutionsResponse, error) - grpc.ClientStream +func (m *EventBatchSwap) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventBatchSwap.Merge(m, src) } - -type queryServiceArbExecutionsClient struct { - grpc.ClientStream +func (m *EventBatchSwap) XXX_Size() int { + return m.Size() +} +func (m *EventBatchSwap) XXX_DiscardUnknown() { + xxx_messageInfo_EventBatchSwap.DiscardUnknown(m) } -func (x *queryServiceArbExecutionsClient) Recv() (*ArbExecutionsResponse, error) { - m := new(ArbExecutionsResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err +var xxx_messageInfo_EventBatchSwap proto.InternalMessageInfo + +func (m *EventBatchSwap) GetBatchSwapOutputData() *BatchSwapOutputData { + if m != nil { + return m.BatchSwapOutputData } - return m, nil + return nil } -func (c *queryServiceClient) LiquidityPositions(ctx context.Context, in *LiquidityPositionsRequest, opts ...grpc.CallOption) (QueryService_LiquidityPositionsClient, error) { - stream, err := c.cc.NewStream(ctx, &_QueryService_serviceDesc.Streams[2], "/penumbra.core.component.dex.v1alpha1.QueryService/LiquidityPositions", opts...) - if err != nil { - return nil, err - } - x := &queryServiceLiquidityPositionsClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err +func (m *EventBatchSwap) GetSwapExecution_1For_2() *SwapExecution { + if m != nil { + return m.SwapExecution_1For_2 } - return x, nil + return nil } -type QueryService_LiquidityPositionsClient interface { - Recv() (*LiquidityPositionsResponse, error) - grpc.ClientStream +func (m *EventBatchSwap) GetSwapExecution_2For_1() *SwapExecution { + if m != nil { + return m.SwapExecution_2For_1 + } + return nil } -type queryServiceLiquidityPositionsClient struct { - grpc.ClientStream +type EventArbExecution struct { + // The height at which the arb execution occurred. + Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` + // The record of execution for the arb execution. + SwapExecution *SwapExecution `protobuf:"bytes,2,opt,name=swap_execution,json=swapExecution,proto3" json:"swap_execution,omitempty"` } -func (x *queryServiceLiquidityPositionsClient) Recv() (*LiquidityPositionsResponse, error) { - m := new(LiquidityPositionsResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err +func (m *EventArbExecution) Reset() { *m = EventArbExecution{} } +func (m *EventArbExecution) String() string { return proto.CompactTextString(m) } +func (*EventArbExecution) ProtoMessage() {} +func (*EventArbExecution) Descriptor() ([]byte, []int) { + return fileDescriptor_ec17dcdac15b4004, []int{58} +} +func (m *EventArbExecution) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EventArbExecution) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EventArbExecution.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return m, nil +} +func (m *EventArbExecution) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventArbExecution.Merge(m, src) +} +func (m *EventArbExecution) XXX_Size() int { + return m.Size() +} +func (m *EventArbExecution) XXX_DiscardUnknown() { + xxx_messageInfo_EventArbExecution.DiscardUnknown(m) } -func (c *queryServiceClient) LiquidityPositionById(ctx context.Context, in *LiquidityPositionByIdRequest, opts ...grpc.CallOption) (*LiquidityPositionByIdResponse, error) { - out := new(LiquidityPositionByIdResponse) - err := c.cc.Invoke(ctx, "/penumbra.core.component.dex.v1alpha1.QueryService/LiquidityPositionById", in, out, opts...) - if err != nil { - return nil, err +var xxx_messageInfo_EventArbExecution proto.InternalMessageInfo + +func (m *EventArbExecution) GetHeight() uint64 { + if m != nil { + return m.Height } - return out, nil + return 0 } -func (c *queryServiceClient) LiquidityPositionsById(ctx context.Context, in *LiquidityPositionsByIdRequest, opts ...grpc.CallOption) (QueryService_LiquidityPositionsByIdClient, error) { - stream, err := c.cc.NewStream(ctx, &_QueryService_serviceDesc.Streams[3], "/penumbra.core.component.dex.v1alpha1.QueryService/LiquidityPositionsById", opts...) - if err != nil { - return nil, err - } - x := &queryServiceLiquidityPositionsByIdClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err +func (m *EventArbExecution) GetSwapExecution() *SwapExecution { + if m != nil { + return m.SwapExecution } - return x, nil + return nil } -type QueryService_LiquidityPositionsByIdClient interface { - Recv() (*LiquidityPositionsByIdResponse, error) - grpc.ClientStream +// Indicates that value was added to the DEX. +type EventValueCircuitBreakerCredit struct { + // The asset ID being deposited into the DEX. + AssetId *v14.AssetId `protobuf:"bytes,1,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"` + // The previous balance of the asset in the DEX. + PreviousBalance *v13.Amount `protobuf:"bytes,2,opt,name=previous_balance,json=previousBalance,proto3" json:"previous_balance,omitempty"` + // The new balance of the asset in the DEX. + NewBalance *v13.Amount `protobuf:"bytes,3,opt,name=new_balance,json=newBalance,proto3" json:"new_balance,omitempty"` } -type queryServiceLiquidityPositionsByIdClient struct { - grpc.ClientStream +func (m *EventValueCircuitBreakerCredit) Reset() { *m = EventValueCircuitBreakerCredit{} } +func (m *EventValueCircuitBreakerCredit) String() string { return proto.CompactTextString(m) } +func (*EventValueCircuitBreakerCredit) ProtoMessage() {} +func (*EventValueCircuitBreakerCredit) Descriptor() ([]byte, []int) { + return fileDescriptor_ec17dcdac15b4004, []int{59} } - -func (x *queryServiceLiquidityPositionsByIdClient) Recv() (*LiquidityPositionsByIdResponse, error) { - m := new(LiquidityPositionsByIdResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err +func (m *EventValueCircuitBreakerCredit) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EventValueCircuitBreakerCredit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EventValueCircuitBreakerCredit.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return m, nil +} +func (m *EventValueCircuitBreakerCredit) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventValueCircuitBreakerCredit.Merge(m, src) +} +func (m *EventValueCircuitBreakerCredit) XXX_Size() int { + return m.Size() +} +func (m *EventValueCircuitBreakerCredit) XXX_DiscardUnknown() { + xxx_messageInfo_EventValueCircuitBreakerCredit.DiscardUnknown(m) } -func (c *queryServiceClient) LiquidityPositionsByPrice(ctx context.Context, in *LiquidityPositionsByPriceRequest, opts ...grpc.CallOption) (QueryService_LiquidityPositionsByPriceClient, error) { - stream, err := c.cc.NewStream(ctx, &_QueryService_serviceDesc.Streams[4], "/penumbra.core.component.dex.v1alpha1.QueryService/LiquidityPositionsByPrice", opts...) - if err != nil { - return nil, err - } - x := &queryServiceLiquidityPositionsByPriceClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err +var xxx_messageInfo_EventValueCircuitBreakerCredit proto.InternalMessageInfo + +func (m *EventValueCircuitBreakerCredit) GetAssetId() *v14.AssetId { + if m != nil { + return m.AssetId } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err + return nil +} + +func (m *EventValueCircuitBreakerCredit) GetPreviousBalance() *v13.Amount { + if m != nil { + return m.PreviousBalance } - return x, nil + return nil } -type QueryService_LiquidityPositionsByPriceClient interface { - Recv() (*LiquidityPositionsByPriceResponse, error) - grpc.ClientStream +func (m *EventValueCircuitBreakerCredit) GetNewBalance() *v13.Amount { + if m != nil { + return m.NewBalance + } + return nil } -type queryServiceLiquidityPositionsByPriceClient struct { - grpc.ClientStream +// Indicates that value is leaving the DEX. +type EventValueCircuitBreakerDebit struct { + // The asset ID being deposited into the DEX. + AssetId *v14.AssetId `protobuf:"bytes,1,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"` + // The previous balance of the asset in the DEX. + PreviousBalance *v13.Amount `protobuf:"bytes,2,opt,name=previous_balance,json=previousBalance,proto3" json:"previous_balance,omitempty"` + // The new balance of the asset in the DEX. + NewBalance *v13.Amount `protobuf:"bytes,3,opt,name=new_balance,json=newBalance,proto3" json:"new_balance,omitempty"` } -func (x *queryServiceLiquidityPositionsByPriceClient) Recv() (*LiquidityPositionsByPriceResponse, error) { - m := new(LiquidityPositionsByPriceResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err +func (m *EventValueCircuitBreakerDebit) Reset() { *m = EventValueCircuitBreakerDebit{} } +func (m *EventValueCircuitBreakerDebit) String() string { return proto.CompactTextString(m) } +func (*EventValueCircuitBreakerDebit) ProtoMessage() {} +func (*EventValueCircuitBreakerDebit) Descriptor() ([]byte, []int) { + return fileDescriptor_ec17dcdac15b4004, []int{60} +} +func (m *EventValueCircuitBreakerDebit) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EventValueCircuitBreakerDebit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EventValueCircuitBreakerDebit.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return m, nil +} +func (m *EventValueCircuitBreakerDebit) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventValueCircuitBreakerDebit.Merge(m, src) +} +func (m *EventValueCircuitBreakerDebit) XXX_Size() int { + return m.Size() +} +func (m *EventValueCircuitBreakerDebit) XXX_DiscardUnknown() { + xxx_messageInfo_EventValueCircuitBreakerDebit.DiscardUnknown(m) } -func (c *queryServiceClient) Spread(ctx context.Context, in *SpreadRequest, opts ...grpc.CallOption) (*SpreadResponse, error) { - out := new(SpreadResponse) - err := c.cc.Invoke(ctx, "/penumbra.core.component.dex.v1alpha1.QueryService/Spread", in, out, opts...) - if err != nil { - return nil, err +var xxx_messageInfo_EventValueCircuitBreakerDebit proto.InternalMessageInfo + +func (m *EventValueCircuitBreakerDebit) GetAssetId() *v14.AssetId { + if m != nil { + return m.AssetId } - return out, nil + return nil } -// QueryServiceServer is the server API for QueryService service. -type QueryServiceServer interface { - // Get the batch clearing prices for a specific block height and trading pair. - BatchSwapOutputData(context.Context, *BatchSwapOutputDataRequest) (*BatchSwapOutputDataResponse, error) - // Get the precise swap execution used for a specific batch swap. - SwapExecution(context.Context, *SwapExecutionRequest) (*SwapExecutionResponse, error) - // Get the precise execution used to perform on-chain arbitrage. - ArbExecution(context.Context, *ArbExecutionRequest) (*ArbExecutionResponse, error) - // Stream all swap executions over a range of heights, optionally subscribing to future executions. - SwapExecutions(*SwapExecutionsRequest, QueryService_SwapExecutionsServer) error - // Stream all arbitrage executions over a range of heights, optionally subscribing to future executions. - ArbExecutions(*ArbExecutionsRequest, QueryService_ArbExecutionsServer) error - // Query all liquidity positions on the DEX. - LiquidityPositions(*LiquidityPositionsRequest, QueryService_LiquidityPositionsServer) error - // Query liquidity positions by ID. - // - // To get multiple positions, use `LiquidityPositionsById`. - LiquidityPositionById(context.Context, *LiquidityPositionByIdRequest) (*LiquidityPositionByIdResponse, error) - // Query multiple liquidity positions by ID. - LiquidityPositionsById(*LiquidityPositionsByIdRequest, QueryService_LiquidityPositionsByIdServer) error - // Query liquidity positions on a specific pair, sorted by effective price. - LiquidityPositionsByPrice(*LiquidityPositionsByPriceRequest, QueryService_LiquidityPositionsByPriceServer) error - // Get the current (direct) spread on a trading pair. - // - // This method doesn't do simulation, so actually executing might result in a - // better price (if the chain takes a different route to the target asset). - Spread(context.Context, *SpreadRequest) (*SpreadResponse, error) +func (m *EventValueCircuitBreakerDebit) GetPreviousBalance() *v13.Amount { + if m != nil { + return m.PreviousBalance + } + return nil } -// UnimplementedQueryServiceServer can be embedded to have forward compatible implementations. -type UnimplementedQueryServiceServer struct { +func (m *EventValueCircuitBreakerDebit) GetNewBalance() *v13.Amount { + if m != nil { + return m.NewBalance + } + return nil } -func (*UnimplementedQueryServiceServer) BatchSwapOutputData(ctx context.Context, req *BatchSwapOutputDataRequest) (*BatchSwapOutputDataResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method BatchSwapOutputData not implemented") +type DexParameters struct { + // Whether or not the DEX is enabled. + IsEnabled bool `protobuf:"varint,1,opt,name=is_enabled,json=isEnabled,proto3" json:"is_enabled,omitempty"` + // The list of fixed candidates for routing. + FixedCandidates []*v14.AssetId `protobuf:"bytes,2,rep,name=fixed_candidates,json=fixedCandidates,proto3" json:"fixed_candidates,omitempty"` + // The number of hops to traverse while routing from A to B. + MaxHops uint32 `protobuf:"varint,3,opt,name=max_hops,json=maxHops,proto3" json:"max_hops,omitempty"` } -func (*UnimplementedQueryServiceServer) SwapExecution(ctx context.Context, req *SwapExecutionRequest) (*SwapExecutionResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SwapExecution not implemented") + +func (m *DexParameters) Reset() { *m = DexParameters{} } +func (m *DexParameters) String() string { return proto.CompactTextString(m) } +func (*DexParameters) ProtoMessage() {} +func (*DexParameters) Descriptor() ([]byte, []int) { + return fileDescriptor_ec17dcdac15b4004, []int{61} } -func (*UnimplementedQueryServiceServer) ArbExecution(ctx context.Context, req *ArbExecutionRequest) (*ArbExecutionResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ArbExecution not implemented") +func (m *DexParameters) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) } -func (*UnimplementedQueryServiceServer) SwapExecutions(req *SwapExecutionsRequest, srv QueryService_SwapExecutionsServer) error { - return status.Errorf(codes.Unimplemented, "method SwapExecutions not implemented") +func (m *DexParameters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DexParameters.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 (*UnimplementedQueryServiceServer) ArbExecutions(req *ArbExecutionsRequest, srv QueryService_ArbExecutionsServer) error { - return status.Errorf(codes.Unimplemented, "method ArbExecutions not implemented") +func (m *DexParameters) XXX_Merge(src proto.Message) { + xxx_messageInfo_DexParameters.Merge(m, src) } -func (*UnimplementedQueryServiceServer) LiquidityPositions(req *LiquidityPositionsRequest, srv QueryService_LiquidityPositionsServer) error { - return status.Errorf(codes.Unimplemented, "method LiquidityPositions not implemented") +func (m *DexParameters) XXX_Size() int { + return m.Size() } -func (*UnimplementedQueryServiceServer) LiquidityPositionById(ctx context.Context, req *LiquidityPositionByIdRequest) (*LiquidityPositionByIdResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method LiquidityPositionById not implemented") +func (m *DexParameters) XXX_DiscardUnknown() { + xxx_messageInfo_DexParameters.DiscardUnknown(m) } -func (*UnimplementedQueryServiceServer) LiquidityPositionsById(req *LiquidityPositionsByIdRequest, srv QueryService_LiquidityPositionsByIdServer) error { - return status.Errorf(codes.Unimplemented, "method LiquidityPositionsById not implemented") + +var xxx_messageInfo_DexParameters proto.InternalMessageInfo + +func (m *DexParameters) GetIsEnabled() bool { + if m != nil { + return m.IsEnabled + } + return false } -func (*UnimplementedQueryServiceServer) LiquidityPositionsByPrice(req *LiquidityPositionsByPriceRequest, srv QueryService_LiquidityPositionsByPriceServer) error { - return status.Errorf(codes.Unimplemented, "method LiquidityPositionsByPrice not implemented") + +func (m *DexParameters) GetFixedCandidates() []*v14.AssetId { + if m != nil { + return m.FixedCandidates + } + return nil } -func (*UnimplementedQueryServiceServer) Spread(ctx context.Context, req *SpreadRequest) (*SpreadResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Spread not implemented") + +func (m *DexParameters) GetMaxHops() uint32 { + if m != nil { + return m.MaxHops + } + return 0 } -func RegisterQueryServiceServer(s grpc1.Server, srv QueryServiceServer) { - s.RegisterService(&_QueryService_serviceDesc, srv) +type GenesisContent struct { + // The initial parameters for the DEX. + DexParams *DexParameters `protobuf:"bytes,1,opt,name=dex_params,json=dexParams,proto3" json:"dex_params,omitempty"` } -func _QueryService_BatchSwapOutputData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(BatchSwapOutputDataRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServiceServer).BatchSwapOutputData(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/penumbra.core.component.dex.v1alpha1.QueryService/BatchSwapOutputData", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServiceServer).BatchSwapOutputData(ctx, req.(*BatchSwapOutputDataRequest)) - } - return interceptor(ctx, in, info, handler) +func (m *GenesisContent) Reset() { *m = GenesisContent{} } +func (m *GenesisContent) String() string { return proto.CompactTextString(m) } +func (*GenesisContent) ProtoMessage() {} +func (*GenesisContent) Descriptor() ([]byte, []int) { + return fileDescriptor_ec17dcdac15b4004, []int{62} } - -func _QueryService_SwapExecution_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SwapExecutionRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServiceServer).SwapExecution(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/penumbra.core.component.dex.v1alpha1.QueryService/SwapExecution", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServiceServer).SwapExecution(ctx, req.(*SwapExecutionRequest)) - } - return interceptor(ctx, in, info, handler) +func (m *GenesisContent) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) } - -func _QueryService_ArbExecution_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ArbExecutionRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServiceServer).ArbExecution(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/penumbra.core.component.dex.v1alpha1.QueryService/ArbExecution", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServiceServer).ArbExecution(ctx, req.(*ArbExecutionRequest)) +func (m *GenesisContent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GenesisContent.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return interceptor(ctx, in, info, handler) } - -func _QueryService_SwapExecutions_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(SwapExecutionsRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(QueryServiceServer).SwapExecutions(m, &queryServiceSwapExecutionsServer{stream}) +func (m *GenesisContent) XXX_Merge(src proto.Message) { + xxx_messageInfo_GenesisContent.Merge(m, src) } - -type QueryService_SwapExecutionsServer interface { - Send(*SwapExecutionsResponse) error - grpc.ServerStream +func (m *GenesisContent) XXX_Size() int { + return m.Size() } - -type queryServiceSwapExecutionsServer struct { - grpc.ServerStream +func (m *GenesisContent) XXX_DiscardUnknown() { + xxx_messageInfo_GenesisContent.DiscardUnknown(m) } -func (x *queryServiceSwapExecutionsServer) Send(m *SwapExecutionsResponse) error { - return x.ServerStream.SendMsg(m) -} +var xxx_messageInfo_GenesisContent proto.InternalMessageInfo -func _QueryService_ArbExecutions_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(ArbExecutionsRequest) - if err := stream.RecvMsg(m); err != nil { - return err +func (m *GenesisContent) GetDexParams() *DexParameters { + if m != nil { + return m.DexParams } - return srv.(QueryServiceServer).ArbExecutions(m, &queryServiceArbExecutionsServer{stream}) + return nil } -type QueryService_ArbExecutionsServer interface { - Send(*ArbExecutionsResponse) error - grpc.ServerStream +func init() { + proto.RegisterEnum("penumbra.core.component.dex.v1.PositionState_PositionStateEnum", PositionState_PositionStateEnum_name, PositionState_PositionStateEnum_value) + proto.RegisterType((*ZKSwapProof)(nil), "penumbra.core.component.dex.v1.ZKSwapProof") + proto.RegisterType((*ZKSwapClaimProof)(nil), "penumbra.core.component.dex.v1.ZKSwapClaimProof") + proto.RegisterType((*Swap)(nil), "penumbra.core.component.dex.v1.Swap") + proto.RegisterType((*SwapClaim)(nil), "penumbra.core.component.dex.v1.SwapClaim") + proto.RegisterType((*SwapClaimBody)(nil), "penumbra.core.component.dex.v1.SwapClaimBody") + proto.RegisterType((*SwapBody)(nil), "penumbra.core.component.dex.v1.SwapBody") + proto.RegisterType((*SwapPayload)(nil), "penumbra.core.component.dex.v1.SwapPayload") + proto.RegisterType((*SwapPlaintext)(nil), "penumbra.core.component.dex.v1.SwapPlaintext") + proto.RegisterType((*SwapPlan)(nil), "penumbra.core.component.dex.v1.SwapPlan") + proto.RegisterType((*SwapClaimPlan)(nil), "penumbra.core.component.dex.v1.SwapClaimPlan") + proto.RegisterType((*SwapView)(nil), "penumbra.core.component.dex.v1.SwapView") + proto.RegisterType((*SwapView_Visible)(nil), "penumbra.core.component.dex.v1.SwapView.Visible") + proto.RegisterType((*SwapView_Opaque)(nil), "penumbra.core.component.dex.v1.SwapView.Opaque") + proto.RegisterType((*SwapClaimView)(nil), "penumbra.core.component.dex.v1.SwapClaimView") + proto.RegisterType((*SwapClaimView_Visible)(nil), "penumbra.core.component.dex.v1.SwapClaimView.Visible") + proto.RegisterType((*SwapClaimView_Opaque)(nil), "penumbra.core.component.dex.v1.SwapClaimView.Opaque") + proto.RegisterType((*TradingPair)(nil), "penumbra.core.component.dex.v1.TradingPair") + proto.RegisterType((*DirectedTradingPair)(nil), "penumbra.core.component.dex.v1.DirectedTradingPair") + proto.RegisterType((*BatchSwapOutputData)(nil), "penumbra.core.component.dex.v1.BatchSwapOutputData") + proto.RegisterType((*TradingFunction)(nil), "penumbra.core.component.dex.v1.TradingFunction") + proto.RegisterType((*BareTradingFunction)(nil), "penumbra.core.component.dex.v1.BareTradingFunction") + proto.RegisterType((*Reserves)(nil), "penumbra.core.component.dex.v1.Reserves") + proto.RegisterType((*Position)(nil), "penumbra.core.component.dex.v1.Position") + proto.RegisterType((*PositionId)(nil), "penumbra.core.component.dex.v1.PositionId") + proto.RegisterType((*PositionState)(nil), "penumbra.core.component.dex.v1.PositionState") + proto.RegisterType((*LpNft)(nil), "penumbra.core.component.dex.v1.LpNft") + proto.RegisterType((*PositionOpen)(nil), "penumbra.core.component.dex.v1.PositionOpen") + proto.RegisterType((*PositionClose)(nil), "penumbra.core.component.dex.v1.PositionClose") + proto.RegisterType((*PositionWithdraw)(nil), "penumbra.core.component.dex.v1.PositionWithdraw") + proto.RegisterType((*PositionRewardClaim)(nil), "penumbra.core.component.dex.v1.PositionRewardClaim") + proto.RegisterType((*SwapExecution)(nil), "penumbra.core.component.dex.v1.SwapExecution") + proto.RegisterType((*SwapExecution_Trace)(nil), "penumbra.core.component.dex.v1.SwapExecution.Trace") + proto.RegisterType((*PositionWithdrawPlan)(nil), "penumbra.core.component.dex.v1.PositionWithdrawPlan") + proto.RegisterType((*PositionRewardClaimPlan)(nil), "penumbra.core.component.dex.v1.PositionRewardClaimPlan") + proto.RegisterType((*BatchSwapOutputDataRequest)(nil), "penumbra.core.component.dex.v1.BatchSwapOutputDataRequest") + proto.RegisterType((*BatchSwapOutputDataResponse)(nil), "penumbra.core.component.dex.v1.BatchSwapOutputDataResponse") + proto.RegisterType((*SwapExecutionRequest)(nil), "penumbra.core.component.dex.v1.SwapExecutionRequest") + proto.RegisterType((*SwapExecutionResponse)(nil), "penumbra.core.component.dex.v1.SwapExecutionResponse") + proto.RegisterType((*ArbExecutionRequest)(nil), "penumbra.core.component.dex.v1.ArbExecutionRequest") + proto.RegisterType((*ArbExecutionResponse)(nil), "penumbra.core.component.dex.v1.ArbExecutionResponse") + proto.RegisterType((*SwapExecutionsRequest)(nil), "penumbra.core.component.dex.v1.SwapExecutionsRequest") + proto.RegisterType((*SwapExecutionsResponse)(nil), "penumbra.core.component.dex.v1.SwapExecutionsResponse") + proto.RegisterType((*ArbExecutionsRequest)(nil), "penumbra.core.component.dex.v1.ArbExecutionsRequest") + proto.RegisterType((*ArbExecutionsResponse)(nil), "penumbra.core.component.dex.v1.ArbExecutionsResponse") + proto.RegisterType((*LiquidityPositionsRequest)(nil), "penumbra.core.component.dex.v1.LiquidityPositionsRequest") + proto.RegisterType((*LiquidityPositionsResponse)(nil), "penumbra.core.component.dex.v1.LiquidityPositionsResponse") + proto.RegisterType((*LiquidityPositionByIdRequest)(nil), "penumbra.core.component.dex.v1.LiquidityPositionByIdRequest") + proto.RegisterType((*LiquidityPositionByIdResponse)(nil), "penumbra.core.component.dex.v1.LiquidityPositionByIdResponse") + proto.RegisterType((*LiquidityPositionsByIdRequest)(nil), "penumbra.core.component.dex.v1.LiquidityPositionsByIdRequest") + proto.RegisterType((*LiquidityPositionsByIdResponse)(nil), "penumbra.core.component.dex.v1.LiquidityPositionsByIdResponse") + proto.RegisterType((*LiquidityPositionsByPriceRequest)(nil), "penumbra.core.component.dex.v1.LiquidityPositionsByPriceRequest") + proto.RegisterType((*LiquidityPositionsByPriceResponse)(nil), "penumbra.core.component.dex.v1.LiquidityPositionsByPriceResponse") + proto.RegisterType((*SpreadRequest)(nil), "penumbra.core.component.dex.v1.SpreadRequest") + proto.RegisterType((*SpreadResponse)(nil), "penumbra.core.component.dex.v1.SpreadResponse") + proto.RegisterType((*SimulateTradeRequest)(nil), "penumbra.core.component.dex.v1.SimulateTradeRequest") + proto.RegisterType((*SimulateTradeRequest_Routing)(nil), "penumbra.core.component.dex.v1.SimulateTradeRequest.Routing") + proto.RegisterType((*SimulateTradeRequest_Routing_SingleHop)(nil), "penumbra.core.component.dex.v1.SimulateTradeRequest.Routing.SingleHop") + proto.RegisterType((*SimulateTradeRequest_Routing_Default)(nil), "penumbra.core.component.dex.v1.SimulateTradeRequest.Routing.Default") + proto.RegisterType((*SimulateTradeResponse)(nil), "penumbra.core.component.dex.v1.SimulateTradeResponse") + proto.RegisterType((*EventSwap)(nil), "penumbra.core.component.dex.v1.EventSwap") + proto.RegisterType((*EventSwapClaim)(nil), "penumbra.core.component.dex.v1.EventSwapClaim") + proto.RegisterType((*EventPositionOpen)(nil), "penumbra.core.component.dex.v1.EventPositionOpen") + proto.RegisterType((*EventPositionClose)(nil), "penumbra.core.component.dex.v1.EventPositionClose") + proto.RegisterType((*EventPositionWithdraw)(nil), "penumbra.core.component.dex.v1.EventPositionWithdraw") + proto.RegisterType((*EventPositionExecution)(nil), "penumbra.core.component.dex.v1.EventPositionExecution") + proto.RegisterType((*EventBatchSwap)(nil), "penumbra.core.component.dex.v1.EventBatchSwap") + proto.RegisterType((*EventArbExecution)(nil), "penumbra.core.component.dex.v1.EventArbExecution") + proto.RegisterType((*EventValueCircuitBreakerCredit)(nil), "penumbra.core.component.dex.v1.EventValueCircuitBreakerCredit") + proto.RegisterType((*EventValueCircuitBreakerDebit)(nil), "penumbra.core.component.dex.v1.EventValueCircuitBreakerDebit") + proto.RegisterType((*DexParameters)(nil), "penumbra.core.component.dex.v1.DexParameters") + proto.RegisterType((*GenesisContent)(nil), "penumbra.core.component.dex.v1.GenesisContent") } -type queryServiceArbExecutionsServer struct { - grpc.ServerStream +func init() { + proto.RegisterFile("penumbra/core/component/dex/v1/dex.proto", fileDescriptor_ec17dcdac15b4004) +} + +var fileDescriptor_ec17dcdac15b4004 = []byte{ + // 3392 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x5b, 0x6f, 0x6c, 0xdb, 0xd6, + 0xb5, 0x37, 0x29, 0xd9, 0x92, 0x8e, 0x6c, 0xc7, 0xb9, 0x4e, 0xf2, 0x5c, 0xb5,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0x15, 0x0c, 0x3d, 0x03, 0xb3, 0xd8, 0x34, + 0x6a, 0x7b, 0xb2, 0xda, 0xb2, 0x14, 0x47, 0x33, 0xf4, 0x85, 0xd4, 0x79, 0xee, 0x52, 0x52, 0x9a, + 0xa1, 0xa3, 0x25, 0x36, 0x28, 0x7c, 0x2b, 0x01, 0x33, 0x21, 0x76, 0x74, 0x03, 0x32, 0x7a, 0xab, + 0xd1, 0xd0, 0xea, 0x1a, 0xb3, 0x7a, 0x56, 0x7c, 0xb6, 0xaf, 0x00, 0xc4, 0x53, 0xdb, 0x85, 0xfc, + 0xa6, 0xc7, 0x20, 0x75, 0x79, 0xd1, 0x15, 0x48, 0xd4, 0x31, 0x66, 0x3a, 0x5c, 0xec, 0x0b, 0x41, + 0xc2, 0xa2, 0x5d, 0xc8, 0xaf, 0x61, 0x2c, 0x11, 0x7a, 0x74, 0x1b, 0xe6, 0x8d, 0x96, 0x63, 0xb6, + 0x1c, 0xb9, 0x20, 0xd7, 0x8c, 0x66, 0x53, 0x73, 0x9a, 0x58, 0x77, 0x16, 0x12, 0x14, 0xe6, 0x5f, + 0x02, 0x30, 0xd4, 0xd5, 0xf2, 0x8e, 0x2b, 0xc1, 0xb6, 0xa3, 0x38, 0xb8, 0xe8, 0x93, 0x4b, 0x27, + 0x5d, 0x8c, 0x42, 0x77, 0x28, 0x00, 0x2c, 0x06, 0x81, 0x93, 0x23, 0x01, 0x8b, 0x01, 0xe0, 0x1d, + 0xc8, 0x32, 0x60, 0x55, 0x71, 0x94, 0x85, 0x29, 0x0a, 0x78, 0x79, 0xd0, 0xa2, 0xad, 0x2a, 0x4e, + 0x6d, 0x8f, 0x98, 0x7e, 0x8b, 0xf2, 0x96, 0x14, 0x47, 0x91, 0xc0, 0xf0, 0x7f, 0x0b, 0x7f, 0xe0, + 0x21, 0xed, 0x39, 0x1b, 0xda, 0x84, 0x69, 0xc7, 0x52, 0x54, 0x4d, 0xbf, 0x27, 0x9b, 0x8a, 0x66, + 0xc5,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 0x3e, 0xe2, 0x93, 0x95, 0x62, 0xb1, 0xf4, 0x5d, 0x7e, 0xb1, 0xe2, + 0x49, 0x51, 0x24, 0x52, 0x14, 0x7d, 0x29, 0x4a, 0xb8, 0x93, 0xdf, 0x2d, 0x7c, 0xd2, 0x25, 0xb8, + 0x4b, 0x08, 0xee, 0xfa, 0x04, 0x77, 0x4b, 0xb8, 0x73, 0x77, 0xb7, 0xf0, 0x80, 0x7f, 0xee, 0x68, + 0x82, 0xbb, 0x37, 0x2a, 0xab, 0xde, 0x7d, 0xf8, 0x3f, 0xf2, 0x82, 0x47, 0xbc, 0xbc, 0x4c, 0xa8, + 0xc9, 0xbf, 0x8c, 0x7c, 0x79, 0xb9, 0x84, 0x3b, 0xcb, 0xcb, 0xbb, 0x85, 0xea, 0x14, 0xfd, 0xf3, + 0xd8, 0xcb, 0x7f, 0x0f, 0x00, 0x00, 0xff, 0xff, 0xe1, 0x5a, 0x64, 0xb3, 0xaa, 0x3c, 0x00, 0x00, } -func (x *queryServiceArbExecutionsServer) Send(m *ArbExecutionsResponse) error { - return x.ServerStream.SendMsg(m) -} +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn -func _QueryService_LiquidityPositions_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(LiquidityPositionsRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(QueryServiceServer).LiquidityPositions(m, &queryServiceLiquidityPositionsServer{stream}) -} +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 -type QueryService_LiquidityPositionsServer interface { - Send(*LiquidityPositionsResponse) error - grpc.ServerStream +// QueryServiceClient is the client API for QueryService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type QueryServiceClient interface { + // Get the batch clearing prices for a specific block height and trading pair. + BatchSwapOutputData(ctx context.Context, in *BatchSwapOutputDataRequest, opts ...grpc.CallOption) (*BatchSwapOutputDataResponse, error) + // Get the precise swap execution used for a specific batch swap. + SwapExecution(ctx context.Context, in *SwapExecutionRequest, opts ...grpc.CallOption) (*SwapExecutionResponse, error) + // Get the precise execution used to perform on-chain arbitrage. + ArbExecution(ctx context.Context, in *ArbExecutionRequest, opts ...grpc.CallOption) (*ArbExecutionResponse, error) + // Stream all swap executions over a range of heights, optionally subscribing to future executions. + SwapExecutions(ctx context.Context, in *SwapExecutionsRequest, opts ...grpc.CallOption) (QueryService_SwapExecutionsClient, error) + // Stream all arbitrage executions over a range of heights, optionally subscribing to future executions. + ArbExecutions(ctx context.Context, in *ArbExecutionsRequest, opts ...grpc.CallOption) (QueryService_ArbExecutionsClient, error) + // Query all liquidity positions on the DEX. + LiquidityPositions(ctx context.Context, in *LiquidityPositionsRequest, opts ...grpc.CallOption) (QueryService_LiquidityPositionsClient, error) + // Query liquidity positions by ID. + // + // To get multiple positions, use `LiquidityPositionsById`. + LiquidityPositionById(ctx context.Context, in *LiquidityPositionByIdRequest, opts ...grpc.CallOption) (*LiquidityPositionByIdResponse, error) + // Query multiple liquidity positions by ID. + LiquidityPositionsById(ctx context.Context, in *LiquidityPositionsByIdRequest, opts ...grpc.CallOption) (QueryService_LiquidityPositionsByIdClient, error) + // Query liquidity positions on a specific pair, sorted by effective price. + LiquidityPositionsByPrice(ctx context.Context, in *LiquidityPositionsByPriceRequest, opts ...grpc.CallOption) (QueryService_LiquidityPositionsByPriceClient, error) + // Get the current (direct) spread on a trading pair. + // + // This method doesn't do simulation, so actually executing might result in a + // better price (if the chain takes a different route to the target asset). + Spread(ctx context.Context, in *SpreadRequest, opts ...grpc.CallOption) (*SpreadResponse, error) } -type queryServiceLiquidityPositionsServer struct { - grpc.ServerStream +type queryServiceClient struct { + cc grpc1.ClientConn } -func (x *queryServiceLiquidityPositionsServer) Send(m *LiquidityPositionsResponse) error { - return x.ServerStream.SendMsg(m) +func NewQueryServiceClient(cc grpc1.ClientConn) QueryServiceClient { + return &queryServiceClient{cc} } -func _QueryService_LiquidityPositionById_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(LiquidityPositionByIdRequest) - if err := dec(in); err != nil { +func (c *queryServiceClient) BatchSwapOutputData(ctx context.Context, in *BatchSwapOutputDataRequest, opts ...grpc.CallOption) (*BatchSwapOutputDataResponse, error) { + out := new(BatchSwapOutputDataResponse) + err := c.cc.Invoke(ctx, "/penumbra.core.component.dex.v1.QueryService/BatchSwapOutputData", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(QueryServiceServer).LiquidityPositionById(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/penumbra.core.component.dex.v1alpha1.QueryService/LiquidityPositionById", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServiceServer).LiquidityPositionById(ctx, req.(*LiquidityPositionByIdRequest)) + return out, nil +} + +func (c *queryServiceClient) SwapExecution(ctx context.Context, in *SwapExecutionRequest, opts ...grpc.CallOption) (*SwapExecutionResponse, error) { + out := new(SwapExecutionResponse) + err := c.cc.Invoke(ctx, "/penumbra.core.component.dex.v1.QueryService/SwapExecution", in, out, opts...) + if err != nil { + return nil, err } - return interceptor(ctx, in, info, handler) + return out, nil } -func _QueryService_LiquidityPositionsById_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(LiquidityPositionsByIdRequest) - if err := stream.RecvMsg(m); err != nil { - return err +func (c *queryServiceClient) ArbExecution(ctx context.Context, in *ArbExecutionRequest, opts ...grpc.CallOption) (*ArbExecutionResponse, error) { + out := new(ArbExecutionResponse) + err := c.cc.Invoke(ctx, "/penumbra.core.component.dex.v1.QueryService/ArbExecution", in, out, opts...) + if err != nil { + return nil, err } - return srv.(QueryServiceServer).LiquidityPositionsById(m, &queryServiceLiquidityPositionsByIdServer{stream}) + return out, nil } -type QueryService_LiquidityPositionsByIdServer interface { - Send(*LiquidityPositionsByIdResponse) error - grpc.ServerStream +func (c *queryServiceClient) SwapExecutions(ctx context.Context, in *SwapExecutionsRequest, opts ...grpc.CallOption) (QueryService_SwapExecutionsClient, error) { + stream, err := c.cc.NewStream(ctx, &_QueryService_serviceDesc.Streams[0], "/penumbra.core.component.dex.v1.QueryService/SwapExecutions", opts...) + if err != nil { + return nil, err + } + x := &queryServiceSwapExecutionsClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil } -type queryServiceLiquidityPositionsByIdServer struct { - grpc.ServerStream +type QueryService_SwapExecutionsClient interface { + Recv() (*SwapExecutionsResponse, error) + grpc.ClientStream } -func (x *queryServiceLiquidityPositionsByIdServer) Send(m *LiquidityPositionsByIdResponse) error { - return x.ServerStream.SendMsg(m) +type queryServiceSwapExecutionsClient struct { + grpc.ClientStream } -func _QueryService_LiquidityPositionsByPrice_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(LiquidityPositionsByPriceRequest) - if err := stream.RecvMsg(m); err != nil { - return err +func (x *queryServiceSwapExecutionsClient) Recv() (*SwapExecutionsResponse, error) { + m := new(SwapExecutionsResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err } - return srv.(QueryServiceServer).LiquidityPositionsByPrice(m, &queryServiceLiquidityPositionsByPriceServer{stream}) + return m, nil } -type QueryService_LiquidityPositionsByPriceServer interface { - Send(*LiquidityPositionsByPriceResponse) error - grpc.ServerStream +func (c *queryServiceClient) ArbExecutions(ctx context.Context, in *ArbExecutionsRequest, opts ...grpc.CallOption) (QueryService_ArbExecutionsClient, error) { + stream, err := c.cc.NewStream(ctx, &_QueryService_serviceDesc.Streams[1], "/penumbra.core.component.dex.v1.QueryService/ArbExecutions", opts...) + if err != nil { + return nil, err + } + x := &queryServiceArbExecutionsClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil } -type queryServiceLiquidityPositionsByPriceServer struct { - grpc.ServerStream +type QueryService_ArbExecutionsClient interface { + Recv() (*ArbExecutionsResponse, error) + grpc.ClientStream } -func (x *queryServiceLiquidityPositionsByPriceServer) Send(m *LiquidityPositionsByPriceResponse) error { - return x.ServerStream.SendMsg(m) +type queryServiceArbExecutionsClient struct { + grpc.ClientStream } -func _QueryService_Spread_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SpreadRequest) - if err := dec(in); err != nil { +func (x *queryServiceArbExecutionsClient) Recv() (*ArbExecutionsResponse, error) { + m := new(ArbExecutionsResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { return nil, err } - if interceptor == nil { - return srv.(QueryServiceServer).Spread(ctx, in) + return m, nil +} + +func (c *queryServiceClient) LiquidityPositions(ctx context.Context, in *LiquidityPositionsRequest, opts ...grpc.CallOption) (QueryService_LiquidityPositionsClient, error) { + stream, err := c.cc.NewStream(ctx, &_QueryService_serviceDesc.Streams[2], "/penumbra.core.component.dex.v1.QueryService/LiquidityPositions", opts...) + if err != nil { + return nil, err } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/penumbra.core.component.dex.v1alpha1.QueryService/Spread", + x := &queryServiceLiquidityPositionsClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServiceServer).Spread(ctx, req.(*SpreadRequest)) + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err } - return interceptor(ctx, in, info, handler) -} - -var _QueryService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "penumbra.core.component.dex.v1alpha1.QueryService", - HandlerType: (*QueryServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "BatchSwapOutputData", - Handler: _QueryService_BatchSwapOutputData_Handler, - }, - { - MethodName: "SwapExecution", - Handler: _QueryService_SwapExecution_Handler, - }, - { - MethodName: "ArbExecution", - Handler: _QueryService_ArbExecution_Handler, - }, - { - MethodName: "LiquidityPositionById", - Handler: _QueryService_LiquidityPositionById_Handler, - }, - { - MethodName: "Spread", - Handler: _QueryService_Spread_Handler, - }, - }, - Streams: []grpc.StreamDesc{ - { - StreamName: "SwapExecutions", - Handler: _QueryService_SwapExecutions_Handler, - ServerStreams: true, - }, - { - StreamName: "ArbExecutions", - Handler: _QueryService_ArbExecutions_Handler, - ServerStreams: true, - }, - { - StreamName: "LiquidityPositions", - Handler: _QueryService_LiquidityPositions_Handler, - ServerStreams: true, - }, - { - StreamName: "LiquidityPositionsById", - Handler: _QueryService_LiquidityPositionsById_Handler, - ServerStreams: true, - }, - { - StreamName: "LiquidityPositionsByPrice", - Handler: _QueryService_LiquidityPositionsByPrice_Handler, - ServerStreams: true, - }, - }, - Metadata: "penumbra/core/component/dex/v1alpha1/dex.proto", + return x, nil } -// SimulationServiceClient is the client API for SimulationService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type SimulationServiceClient interface { - // Simulate routing and trade execution. - SimulateTrade(ctx context.Context, in *SimulateTradeRequest, opts ...grpc.CallOption) (*SimulateTradeResponse, error) +type QueryService_LiquidityPositionsClient interface { + Recv() (*LiquidityPositionsResponse, error) + grpc.ClientStream } -type simulationServiceClient struct { - cc grpc1.ClientConn +type queryServiceLiquidityPositionsClient struct { + grpc.ClientStream } -func NewSimulationServiceClient(cc grpc1.ClientConn) SimulationServiceClient { - return &simulationServiceClient{cc} +func (x *queryServiceLiquidityPositionsClient) Recv() (*LiquidityPositionsResponse, error) { + m := new(LiquidityPositionsResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil } -func (c *simulationServiceClient) SimulateTrade(ctx context.Context, in *SimulateTradeRequest, opts ...grpc.CallOption) (*SimulateTradeResponse, error) { - out := new(SimulateTradeResponse) - err := c.cc.Invoke(ctx, "/penumbra.core.component.dex.v1alpha1.SimulationService/SimulateTrade", in, out, opts...) +func (c *queryServiceClient) LiquidityPositionById(ctx context.Context, in *LiquidityPositionByIdRequest, opts ...grpc.CallOption) (*LiquidityPositionByIdResponse, error) { + out := new(LiquidityPositionByIdResponse) + err := c.cc.Invoke(ctx, "/penumbra.core.component.dex.v1.QueryService/LiquidityPositionById", in, out, opts...) if err != nil { return nil, err } return out, nil } -// SimulationServiceServer is the server API for SimulationService service. -type SimulationServiceServer interface { - // Simulate routing and trade execution. - SimulateTrade(context.Context, *SimulateTradeRequest) (*SimulateTradeResponse, error) +func (c *queryServiceClient) LiquidityPositionsById(ctx context.Context, in *LiquidityPositionsByIdRequest, opts ...grpc.CallOption) (QueryService_LiquidityPositionsByIdClient, error) { + stream, err := c.cc.NewStream(ctx, &_QueryService_serviceDesc.Streams[3], "/penumbra.core.component.dex.v1.QueryService/LiquidityPositionsById", opts...) + if err != nil { + return nil, err + } + x := &queryServiceLiquidityPositionsByIdClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil } -// UnimplementedSimulationServiceServer can be embedded to have forward compatible implementations. -type UnimplementedSimulationServiceServer struct { +type QueryService_LiquidityPositionsByIdClient interface { + Recv() (*LiquidityPositionsByIdResponse, error) + grpc.ClientStream } -func (*UnimplementedSimulationServiceServer) SimulateTrade(ctx context.Context, req *SimulateTradeRequest) (*SimulateTradeResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SimulateTrade not implemented") +type queryServiceLiquidityPositionsByIdClient struct { + grpc.ClientStream } -func RegisterSimulationServiceServer(s grpc1.Server, srv SimulationServiceServer) { - s.RegisterService(&_SimulationService_serviceDesc, srv) +func (x *queryServiceLiquidityPositionsByIdClient) Recv() (*LiquidityPositionsByIdResponse, error) { + m := new(LiquidityPositionsByIdResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil } -func _SimulationService_SimulateTrade_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SimulateTradeRequest) - if err := dec(in); err != nil { +func (c *queryServiceClient) LiquidityPositionsByPrice(ctx context.Context, in *LiquidityPositionsByPriceRequest, opts ...grpc.CallOption) (QueryService_LiquidityPositionsByPriceClient, error) { + stream, err := c.cc.NewStream(ctx, &_QueryService_serviceDesc.Streams[4], "/penumbra.core.component.dex.v1.QueryService/LiquidityPositionsByPrice", opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(SimulationServiceServer).SimulateTrade(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/penumbra.core.component.dex.v1alpha1.SimulationService/SimulateTrade", + x := &queryServiceLiquidityPositionsByPriceClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(SimulationServiceServer).SimulateTrade(ctx, req.(*SimulateTradeRequest)) + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err } - return interceptor(ctx, in, info, handler) -} - -var _SimulationService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "penumbra.core.component.dex.v1alpha1.SimulationService", - HandlerType: (*SimulationServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "SimulateTrade", - Handler: _SimulationService_SimulateTrade_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "penumbra/core/component/dex/v1alpha1/dex.proto", + return x, nil } -func (m *ZKSwapProof) 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 +type QueryService_LiquidityPositionsByPriceClient interface { + Recv() (*LiquidityPositionsByPriceResponse, error) + grpc.ClientStream } -func (m *ZKSwapProof) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +type queryServiceLiquidityPositionsByPriceClient struct { + grpc.ClientStream } -func (m *ZKSwapProof) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Inner) > 0 { - i -= len(m.Inner) - copy(dAtA[i:], m.Inner) - i = encodeVarintDex(dAtA, i, uint64(len(m.Inner))) - i-- - dAtA[i] = 0xa +func (x *queryServiceLiquidityPositionsByPriceClient) Recv() (*LiquidityPositionsByPriceResponse, error) { + m := new(LiquidityPositionsByPriceResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err } - return len(dAtA) - i, nil + return m, nil } -func (m *ZKSwapClaimProof) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) +func (c *queryServiceClient) Spread(ctx context.Context, in *SpreadRequest, opts ...grpc.CallOption) (*SpreadResponse, error) { + out := new(SpreadResponse) + err := c.cc.Invoke(ctx, "/penumbra.core.component.dex.v1.QueryService/Spread", in, out, opts...) if err != nil { return nil, err } - return dAtA[:n], nil + return out, nil } -func (m *ZKSwapClaimProof) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +// QueryServiceServer is the server API for QueryService service. +type QueryServiceServer interface { + // Get the batch clearing prices for a specific block height and trading pair. + BatchSwapOutputData(context.Context, *BatchSwapOutputDataRequest) (*BatchSwapOutputDataResponse, error) + // Get the precise swap execution used for a specific batch swap. + SwapExecution(context.Context, *SwapExecutionRequest) (*SwapExecutionResponse, error) + // Get the precise execution used to perform on-chain arbitrage. + ArbExecution(context.Context, *ArbExecutionRequest) (*ArbExecutionResponse, error) + // Stream all swap executions over a range of heights, optionally subscribing to future executions. + SwapExecutions(*SwapExecutionsRequest, QueryService_SwapExecutionsServer) error + // Stream all arbitrage executions over a range of heights, optionally subscribing to future executions. + ArbExecutions(*ArbExecutionsRequest, QueryService_ArbExecutionsServer) error + // Query all liquidity positions on the DEX. + LiquidityPositions(*LiquidityPositionsRequest, QueryService_LiquidityPositionsServer) error + // Query liquidity positions by ID. + // + // To get multiple positions, use `LiquidityPositionsById`. + LiquidityPositionById(context.Context, *LiquidityPositionByIdRequest) (*LiquidityPositionByIdResponse, error) + // Query multiple liquidity positions by ID. + LiquidityPositionsById(*LiquidityPositionsByIdRequest, QueryService_LiquidityPositionsByIdServer) error + // Query liquidity positions on a specific pair, sorted by effective price. + LiquidityPositionsByPrice(*LiquidityPositionsByPriceRequest, QueryService_LiquidityPositionsByPriceServer) error + // Get the current (direct) spread on a trading pair. + // + // This method doesn't do simulation, so actually executing might result in a + // better price (if the chain takes a different route to the target asset). + Spread(context.Context, *SpreadRequest) (*SpreadResponse, error) } -func (m *ZKSwapClaimProof) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Inner) > 0 { - i -= len(m.Inner) - copy(dAtA[i:], m.Inner) - i = encodeVarintDex(dAtA, i, uint64(len(m.Inner))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil +// UnimplementedQueryServiceServer can be embedded to have forward compatible implementations. +type UnimplementedQueryServiceServer struct { } -func (m *Swap) 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 (*UnimplementedQueryServiceServer) BatchSwapOutputData(ctx context.Context, req *BatchSwapOutputDataRequest) (*BatchSwapOutputDataResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method BatchSwapOutputData not implemented") } - -func (m *Swap) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (*UnimplementedQueryServiceServer) SwapExecution(ctx context.Context, req *SwapExecutionRequest) (*SwapExecutionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SwapExecution not implemented") } - -func (m *Swap) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Body != nil { - { - size, err := m.Body.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDex(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if m.Proof != nil { - { - size, err := m.Proof.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDex(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil +func (*UnimplementedQueryServiceServer) ArbExecution(ctx context.Context, req *ArbExecutionRequest) (*ArbExecutionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ArbExecution not implemented") } - -func (m *SwapClaim) 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 (*UnimplementedQueryServiceServer) SwapExecutions(req *SwapExecutionsRequest, srv QueryService_SwapExecutionsServer) error { + return status.Errorf(codes.Unimplemented, "method SwapExecutions not implemented") +} +func (*UnimplementedQueryServiceServer) ArbExecutions(req *ArbExecutionsRequest, srv QueryService_ArbExecutionsServer) error { + return status.Errorf(codes.Unimplemented, "method ArbExecutions not implemented") +} +func (*UnimplementedQueryServiceServer) LiquidityPositions(req *LiquidityPositionsRequest, srv QueryService_LiquidityPositionsServer) error { + return status.Errorf(codes.Unimplemented, "method LiquidityPositions not implemented") +} +func (*UnimplementedQueryServiceServer) LiquidityPositionById(ctx context.Context, req *LiquidityPositionByIdRequest) (*LiquidityPositionByIdResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method LiquidityPositionById not implemented") +} +func (*UnimplementedQueryServiceServer) LiquidityPositionsById(req *LiquidityPositionsByIdRequest, srv QueryService_LiquidityPositionsByIdServer) error { + return status.Errorf(codes.Unimplemented, "method LiquidityPositionsById not implemented") +} +func (*UnimplementedQueryServiceServer) LiquidityPositionsByPrice(req *LiquidityPositionsByPriceRequest, srv QueryService_LiquidityPositionsByPriceServer) error { + return status.Errorf(codes.Unimplemented, "method LiquidityPositionsByPrice not implemented") +} +func (*UnimplementedQueryServiceServer) Spread(ctx context.Context, req *SpreadRequest) (*SpreadResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Spread not implemented") } -func (m *SwapClaim) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func RegisterQueryServiceServer(s grpc1.Server, srv QueryServiceServer) { + s.RegisterService(&_QueryService_serviceDesc, srv) } -func (m *SwapClaim) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.EpochDuration != 0 { - i = encodeVarintDex(dAtA, i, uint64(m.EpochDuration)) - i-- - dAtA[i] = 0x38 +func _QueryService_BatchSwapOutputData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(BatchSwapOutputDataRequest) + if err := dec(in); err != nil { + return nil, err } - if m.Body != nil { - { - size, err := m.Body.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDex(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 + if interceptor == nil { + return srv.(QueryServiceServer).BatchSwapOutputData(ctx, in) } - if m.Proof != nil { - { - size, err := m.Proof.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDex(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/penumbra.core.component.dex.v1.QueryService/BatchSwapOutputData", } - return len(dAtA) - i, nil + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServiceServer).BatchSwapOutputData(ctx, req.(*BatchSwapOutputDataRequest)) + } + return interceptor(ctx, in, info, handler) } -func (m *SwapClaimBody) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { +func _QueryService_SwapExecution_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SwapExecutionRequest) + if err := dec(in); err != nil { return nil, err } - return dAtA[:n], nil -} - -func (m *SwapClaimBody) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + if interceptor == nil { + return srv.(QueryServiceServer).SwapExecution(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/penumbra.core.component.dex.v1.QueryService/SwapExecution", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServiceServer).SwapExecution(ctx, req.(*SwapExecutionRequest)) + } + return interceptor(ctx, in, info, handler) } -func (m *SwapClaimBody) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.OutputData != nil { - { - size, err := m.OutputData.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDex(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - } - if m.Output_2Commitment != nil { - { - size, err := m.Output_2Commitment.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDex(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 +func _QueryService_ArbExecution_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ArbExecutionRequest) + if err := dec(in); err != nil { + return nil, err } - if m.Output_1Commitment != nil { - { - size, err := m.Output_1Commitment.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDex(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a + if interceptor == nil { + return srv.(QueryServiceServer).ArbExecution(ctx, in) } - if m.Fee != nil { - { - size, err := m.Fee.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDex(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/penumbra.core.component.dex.v1.QueryService/ArbExecution", } - if m.Nullifier != nil { - { - size, err := m.Nullifier.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDex(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServiceServer).ArbExecution(ctx, req.(*ArbExecutionRequest)) } - return len(dAtA) - i, nil + return interceptor(ctx, in, info, handler) } -func (m *SwapBody) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func _QueryService_SwapExecutions_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(SwapExecutionsRequest) + if err := stream.RecvMsg(m); err != nil { + return err } - return dAtA[:n], nil + return srv.(QueryServiceServer).SwapExecutions(m, &queryServiceSwapExecutionsServer{stream}) } -func (m *SwapBody) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +type QueryService_SwapExecutionsServer interface { + Send(*SwapExecutionsResponse) error + grpc.ServerStream } -func (m *SwapBody) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Payload != nil { - { - size, err := m.Payload.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDex(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - if m.FeeCommitment != nil { - { - size, err := m.FeeCommitment.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDex(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 +type queryServiceSwapExecutionsServer struct { + grpc.ServerStream +} + +func (x *queryServiceSwapExecutionsServer) Send(m *SwapExecutionsResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _QueryService_ArbExecutions_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(ArbExecutionsRequest) + if err := stream.RecvMsg(m); err != nil { + return err } - if m.Delta_2I != nil { - { - size, err := m.Delta_2I.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDex(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.Delta_1I != nil { - { - size, err := m.Delta_1I.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDex(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.TradingPair != nil { - { - size, err := m.TradingPair.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDex(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return srv.(QueryServiceServer).ArbExecutions(m, &queryServiceArbExecutionsServer{stream}) } -func (m *SwapPayload) 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 +type QueryService_ArbExecutionsServer interface { + Send(*ArbExecutionsResponse) error + grpc.ServerStream } -func (m *SwapPayload) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +type queryServiceArbExecutionsServer struct { + grpc.ServerStream } -func (m *SwapPayload) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.EncryptedSwap) > 0 { - i -= len(m.EncryptedSwap) - copy(dAtA[i:], m.EncryptedSwap) - i = encodeVarintDex(dAtA, i, uint64(len(m.EncryptedSwap))) - i-- - dAtA[i] = 0x12 - } - if m.Commitment != nil { - { - size, err := m.Commitment.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDex(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil +func (x *queryServiceArbExecutionsServer) Send(m *ArbExecutionsResponse) error { + return x.ServerStream.SendMsg(m) } -func (m *SwapPlaintext) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func _QueryService_LiquidityPositions_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(LiquidityPositionsRequest) + if err := stream.RecvMsg(m); err != nil { + return err } - return dAtA[:n], nil -} - -func (m *SwapPlaintext) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + return srv.(QueryServiceServer).LiquidityPositions(m, &queryServiceLiquidityPositionsServer{stream}) } -func (m *SwapPlaintext) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Rseed) > 0 { - i -= len(m.Rseed) - copy(dAtA[i:], m.Rseed) - i = encodeVarintDex(dAtA, i, uint64(len(m.Rseed))) - i-- - dAtA[i] = 0x32 - } - if m.ClaimAddress != nil { - { - size, err := m.ClaimAddress.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDex(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - if m.ClaimFee != nil { - { - size, err := m.ClaimFee.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDex(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if m.Delta_2I != nil { - { - size, err := m.Delta_2I.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDex(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.Delta_1I != nil { - { - size, err := m.Delta_1I.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDex(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.TradingPair != nil { - { - size, err := m.TradingPair.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDex(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil +type QueryService_LiquidityPositionsServer interface { + Send(*LiquidityPositionsResponse) error + grpc.ServerStream } -func (m *SwapPlan) 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 +type queryServiceLiquidityPositionsServer struct { + grpc.ServerStream } -func (m *SwapPlan) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (x *queryServiceLiquidityPositionsServer) Send(m *LiquidityPositionsResponse) error { + return x.ServerStream.SendMsg(m) } -func (m *SwapPlan) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.ProofBlindingS) > 0 { - i -= len(m.ProofBlindingS) - copy(dAtA[i:], m.ProofBlindingS) - i = encodeVarintDex(dAtA, i, uint64(len(m.ProofBlindingS))) - i-- - dAtA[i] = 0x22 +func _QueryService_LiquidityPositionById_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(LiquidityPositionByIdRequest) + if err := dec(in); err != nil { + return nil, err } - if len(m.ProofBlindingR) > 0 { - i -= len(m.ProofBlindingR) - copy(dAtA[i:], m.ProofBlindingR) - i = encodeVarintDex(dAtA, i, uint64(len(m.ProofBlindingR))) - i-- - dAtA[i] = 0x1a + if interceptor == nil { + return srv.(QueryServiceServer).LiquidityPositionById(ctx, in) } - if len(m.FeeBlinding) > 0 { - i -= len(m.FeeBlinding) - copy(dAtA[i:], m.FeeBlinding) - i = encodeVarintDex(dAtA, i, uint64(len(m.FeeBlinding))) - i-- - dAtA[i] = 0x12 + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/penumbra.core.component.dex.v1.QueryService/LiquidityPositionById", } - if m.SwapPlaintext != nil { - { - size, err := m.SwapPlaintext.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDex(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServiceServer).LiquidityPositionById(ctx, req.(*LiquidityPositionByIdRequest)) } - return len(dAtA) - i, nil + return interceptor(ctx, in, info, handler) } -func (m *SwapClaimPlan) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func _QueryService_LiquidityPositionsById_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(LiquidityPositionsByIdRequest) + if err := stream.RecvMsg(m); err != nil { + return err } - return dAtA[:n], nil + return srv.(QueryServiceServer).LiquidityPositionsById(m, &queryServiceLiquidityPositionsByIdServer{stream}) } -func (m *SwapClaimPlan) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +type QueryService_LiquidityPositionsByIdServer interface { + Send(*LiquidityPositionsByIdResponse) error + grpc.ServerStream } -func (m *SwapClaimPlan) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.ProofBlindingS) > 0 { - i -= len(m.ProofBlindingS) - copy(dAtA[i:], m.ProofBlindingS) - i = encodeVarintDex(dAtA, i, uint64(len(m.ProofBlindingS))) - i-- - dAtA[i] = 0x32 +type queryServiceLiquidityPositionsByIdServer struct { + grpc.ServerStream +} + +func (x *queryServiceLiquidityPositionsByIdServer) Send(m *LiquidityPositionsByIdResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _QueryService_LiquidityPositionsByPrice_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(LiquidityPositionsByPriceRequest) + if err := stream.RecvMsg(m); err != nil { + return err } - if len(m.ProofBlindingR) > 0 { - i -= len(m.ProofBlindingR) - copy(dAtA[i:], m.ProofBlindingR) - i = encodeVarintDex(dAtA, i, uint64(len(m.ProofBlindingR))) - i-- - dAtA[i] = 0x2a + return srv.(QueryServiceServer).LiquidityPositionsByPrice(m, &queryServiceLiquidityPositionsByPriceServer{stream}) +} + +type QueryService_LiquidityPositionsByPriceServer interface { + Send(*LiquidityPositionsByPriceResponse) error + grpc.ServerStream +} + +type queryServiceLiquidityPositionsByPriceServer struct { + grpc.ServerStream +} + +func (x *queryServiceLiquidityPositionsByPriceServer) Send(m *LiquidityPositionsByPriceResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _QueryService_Spread_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SpreadRequest) + if err := dec(in); err != nil { + return nil, err } - if m.EpochDuration != 0 { - i = encodeVarintDex(dAtA, i, uint64(m.EpochDuration)) - i-- - dAtA[i] = 0x20 + if interceptor == nil { + return srv.(QueryServiceServer).Spread(ctx, in) } - if m.OutputData != nil { - { - size, err := m.OutputData.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDex(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/penumbra.core.component.dex.v1.QueryService/Spread", } - if m.Position != 0 { - i = encodeVarintDex(dAtA, i, uint64(m.Position)) - i-- - dAtA[i] = 0x10 + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServiceServer).Spread(ctx, req.(*SpreadRequest)) } - if m.SwapPlaintext != nil { + return interceptor(ctx, in, info, handler) +} + +var _QueryService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "penumbra.core.component.dex.v1.QueryService", + HandlerType: (*QueryServiceServer)(nil), + Methods: []grpc.MethodDesc{ { - size, err := m.SwapPlaintext.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDex(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + MethodName: "BatchSwapOutputData", + Handler: _QueryService_BatchSwapOutputData_Handler, + }, + { + MethodName: "SwapExecution", + Handler: _QueryService_SwapExecution_Handler, + }, + { + MethodName: "ArbExecution", + Handler: _QueryService_ArbExecution_Handler, + }, + { + MethodName: "LiquidityPositionById", + Handler: _QueryService_LiquidityPositionById_Handler, + }, + { + MethodName: "Spread", + Handler: _QueryService_Spread_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "SwapExecutions", + Handler: _QueryService_SwapExecutions_Handler, + ServerStreams: true, + }, + { + StreamName: "ArbExecutions", + Handler: _QueryService_ArbExecutions_Handler, + ServerStreams: true, + }, + { + StreamName: "LiquidityPositions", + Handler: _QueryService_LiquidityPositions_Handler, + ServerStreams: true, + }, + { + StreamName: "LiquidityPositionsById", + Handler: _QueryService_LiquidityPositionsById_Handler, + ServerStreams: true, + }, + { + StreamName: "LiquidityPositionsByPrice", + Handler: _QueryService_LiquidityPositionsByPrice_Handler, + ServerStreams: true, + }, + }, + Metadata: "penumbra/core/component/dex/v1/dex.proto", } -func (m *SwapView) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) +// SimulationServiceClient is the client API for SimulationService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type SimulationServiceClient interface { + // Simulate routing and trade execution. + SimulateTrade(ctx context.Context, in *SimulateTradeRequest, opts ...grpc.CallOption) (*SimulateTradeResponse, error) +} + +type simulationServiceClient struct { + cc grpc1.ClientConn +} + +func NewSimulationServiceClient(cc grpc1.ClientConn) SimulationServiceClient { + return &simulationServiceClient{cc} +} + +func (c *simulationServiceClient) SimulateTrade(ctx context.Context, in *SimulateTradeRequest, opts ...grpc.CallOption) (*SimulateTradeResponse, error) { + out := new(SimulateTradeResponse) + err := c.cc.Invoke(ctx, "/penumbra.core.component.dex.v1.SimulationService/SimulateTrade", in, out, opts...) if err != nil { return nil, err } - return dAtA[:n], nil + return out, nil } -func (m *SwapView) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +// SimulationServiceServer is the server API for SimulationService service. +type SimulationServiceServer interface { + // Simulate routing and trade execution. + SimulateTrade(context.Context, *SimulateTradeRequest) (*SimulateTradeResponse, error) } -func (m *SwapView) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.SwapView != nil { - { - size := m.SwapView.Size() - i -= size - if _, err := m.SwapView.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - } - } - return len(dAtA) - i, nil +// UnimplementedSimulationServiceServer can be embedded to have forward compatible implementations. +type UnimplementedSimulationServiceServer struct { } -func (m *SwapView_Visible_) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (*UnimplementedSimulationServiceServer) SimulateTrade(ctx context.Context, req *SimulateTradeRequest) (*SimulateTradeResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SimulateTrade not implemented") } -func (m *SwapView_Visible_) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.Visible != nil { - { - size, err := m.Visible.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDex(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil +func RegisterSimulationServiceServer(s grpc1.Server, srv SimulationServiceServer) { + s.RegisterService(&_SimulationService_serviceDesc, srv) } -func (m *SwapView_Opaque_) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + +func _SimulationService_SimulateTrade_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SimulateTradeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SimulationServiceServer).SimulateTrade(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/penumbra.core.component.dex.v1.SimulationService/SimulateTrade", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SimulationServiceServer).SimulateTrade(ctx, req.(*SimulateTradeRequest)) + } + return interceptor(ctx, in, info, handler) } -func (m *SwapView_Opaque_) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.Opaque != nil { +var _SimulationService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "penumbra.core.component.dex.v1.SimulationService", + HandlerType: (*SimulationServiceServer)(nil), + Methods: []grpc.MethodDesc{ { - size, err := m.Opaque.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDex(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - return len(dAtA) - i, nil + MethodName: "SimulateTrade", + Handler: _SimulationService_SimulateTrade_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "penumbra/core/component/dex/v1/dex.proto", } -func (m *SwapView_Visible) Marshal() (dAtA []byte, err error) { + +func (m *ZKSwapProof) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5508,44 +5388,27 @@ func (m *SwapView_Visible) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *SwapView_Visible) MarshalTo(dAtA []byte) (int, error) { +func (m *ZKSwapProof) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *SwapView_Visible) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ZKSwapProof) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.SwapPlaintext != nil { - { - size, err := m.SwapPlaintext.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDex(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.Swap != nil { - { - size, err := m.Swap.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDex(dAtA, i, uint64(size)) - } + if len(m.Inner) > 0 { + i -= len(m.Inner) + copy(dAtA[i:], m.Inner) + i = encodeVarintDex(dAtA, i, uint64(len(m.Inner))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *SwapView_Opaque) Marshal() (dAtA []byte, err error) { +func (m *ZKSwapClaimProof) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5555,32 +5418,27 @@ func (m *SwapView_Opaque) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *SwapView_Opaque) MarshalTo(dAtA []byte) (int, error) { +func (m *ZKSwapClaimProof) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *SwapView_Opaque) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ZKSwapClaimProof) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.Swap != nil { - { - size, err := m.Swap.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDex(dAtA, i, uint64(size)) - } + if len(m.Inner) > 0 { + i -= len(m.Inner) + copy(dAtA[i:], m.Inner) + i = encodeVarintDex(dAtA, i, uint64(len(m.Inner))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *SwapClaimView) Marshal() (dAtA []byte, err error) { +func (m *Swap) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5590,38 +5448,19 @@ func (m *SwapClaimView) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *SwapClaimView) MarshalTo(dAtA []byte) (int, error) { +func (m *Swap) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *SwapClaimView) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *Swap) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.SwapClaimView != nil { - { - size := m.SwapClaimView.Size() - i -= size - if _, err := m.SwapClaimView.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - } - } - return len(dAtA) - i, nil -} - -func (m *SwapClaimView_Visible_) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SwapClaimView_Visible_) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.Visible != nil { + if m.Body != nil { { - size, err := m.Visible.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Body.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -5629,20 +5468,11 @@ func (m *SwapClaimView_Visible_) MarshalToSizedBuffer(dAtA []byte) (int, error) i = encodeVarintDex(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0xa + dAtA[i] = 0x22 } - return len(dAtA) - i, nil -} -func (m *SwapClaimView_Opaque_) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SwapClaimView_Opaque_) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.Opaque != nil { + if m.Proof != nil { { - size, err := m.Opaque.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Proof.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -5650,11 +5480,12 @@ func (m *SwapClaimView_Opaque_) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintDex(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x12 + dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *SwapClaimView_Visible) Marshal() (dAtA []byte, err error) { + +func (m *SwapClaim) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5664,31 +5495,24 @@ func (m *SwapClaimView_Visible) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *SwapClaimView_Visible) MarshalTo(dAtA []byte) (int, error) { +func (m *SwapClaim) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *SwapClaimView_Visible) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *SwapClaim) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.Output_2 != nil { - { - size, err := m.Output_2.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDex(dAtA, i, uint64(size)) - } + if m.EpochDuration != 0 { + i = encodeVarintDex(dAtA, i, uint64(m.EpochDuration)) i-- - dAtA[i] = 0x1a + dAtA[i] = 0x38 } - if m.Output_1 != nil { + if m.Body != nil { { - size, err := m.Output_1.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Body.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -5698,9 +5522,9 @@ func (m *SwapClaimView_Visible) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x12 } - if m.SwapClaim != nil { + if m.Proof != nil { { - size, err := m.SwapClaim.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Proof.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -5713,7 +5537,7 @@ func (m *SwapClaimView_Visible) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *SwapClaimView_Opaque) Marshal() (dAtA []byte, err error) { +func (m *SwapClaimBody) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5723,19 +5547,19 @@ func (m *SwapClaimView_Opaque) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *SwapClaimView_Opaque) MarshalTo(dAtA []byte) (int, error) { +func (m *SwapClaimBody) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *SwapClaimView_Opaque) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *SwapClaimBody) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.SwapClaim != nil { + if m.OutputData != nil { { - size, err := m.SwapClaim.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.OutputData.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -5743,34 +5567,11 @@ func (m *SwapClaimView_Opaque) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintDex(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *TradingPair) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err + dAtA[i] = 0x32 } - return dAtA[:n], nil -} - -func (m *TradingPair) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TradingPair) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Asset_2 != nil { + if m.Output_2Commitment != nil { { - size, err := m.Asset_2.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Output_2Commitment.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -5778,11 +5579,11 @@ func (m *TradingPair) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintDex(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x12 + dAtA[i] = 0x22 } - if m.Asset_1 != nil { + if m.Output_1Commitment != nil { { - size, err := m.Asset_1.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Output_1Commitment.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -5790,34 +5591,11 @@ func (m *TradingPair) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintDex(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *DirectedTradingPair) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err + dAtA[i] = 0x1a } - return dAtA[:n], nil -} - -func (m *DirectedTradingPair) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DirectedTradingPair) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.End != nil { + if m.Fee != nil { { - size, err := m.End.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Fee.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -5827,9 +5605,9 @@ func (m *DirectedTradingPair) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x12 } - if m.Start != nil { + if m.Nullifier != nil { { - size, err := m.Start.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Nullifier.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -5842,7 +5620,7 @@ func (m *DirectedTradingPair) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *BatchSwapOutputData) Marshal() (dAtA []byte, err error) { +func (m *SwapBody) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5852,53 +5630,19 @@ func (m *BatchSwapOutputData) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *BatchSwapOutputData) MarshalTo(dAtA []byte) (int, error) { +func (m *SwapBody) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *BatchSwapOutputData) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *SwapBody) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.EpochStartingHeight != 0 { - i = encodeVarintDex(dAtA, i, uint64(m.EpochStartingHeight)) - i-- - dAtA[i] = 0x48 - } - if m.TradingPair != nil { - { - size, err := m.TradingPair.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDex(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x42 - } - if m.Height != 0 { - i = encodeVarintDex(dAtA, i, uint64(m.Height)) - i-- - dAtA[i] = 0x38 - } - if m.Unfilled_2 != nil { - { - size, err := m.Unfilled_2.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDex(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - } - if m.Unfilled_1 != nil { + if m.Payload != nil { { - size, err := m.Unfilled_1.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Payload.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -5908,9 +5652,9 @@ func (m *BatchSwapOutputData) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x2a } - if m.Lambda_2 != nil { + if m.FeeCommitment != nil { { - size, err := m.Lambda_2.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.FeeCommitment.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -5920,9 +5664,9 @@ func (m *BatchSwapOutputData) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x22 } - if m.Lambda_1 != nil { + if m.Delta_2I != nil { { - size, err := m.Lambda_1.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Delta_2I.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -5932,9 +5676,9 @@ func (m *BatchSwapOutputData) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x1a } - if m.Delta_2 != nil { + if m.Delta_1I != nil { { - size, err := m.Delta_2.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Delta_1I.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -5944,9 +5688,9 @@ func (m *BatchSwapOutputData) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x12 } - if m.Delta_1 != nil { + if m.TradingPair != nil { { - size, err := m.Delta_1.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.TradingPair.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -5959,7 +5703,7 @@ func (m *BatchSwapOutputData) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *TradingFunction) Marshal() (dAtA []byte, err error) { +func (m *SwapPayload) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5969,31 +5713,26 @@ func (m *TradingFunction) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *TradingFunction) MarshalTo(dAtA []byte) (int, error) { +func (m *SwapPayload) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *TradingFunction) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *SwapPayload) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.Pair != nil { - { - size, err := m.Pair.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDex(dAtA, i, uint64(size)) - } + if len(m.EncryptedSwap) > 0 { + i -= len(m.EncryptedSwap) + copy(dAtA[i:], m.EncryptedSwap) + i = encodeVarintDex(dAtA, i, uint64(len(m.EncryptedSwap))) i-- dAtA[i] = 0x12 } - if m.Component != nil { + if m.Commitment != nil { { - size, err := m.Component.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Commitment.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -6006,7 +5745,7 @@ func (m *TradingFunction) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *BareTradingFunction) Marshal() (dAtA []byte, err error) { +func (m *SwapPlaintext) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -6016,19 +5755,50 @@ func (m *BareTradingFunction) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *BareTradingFunction) MarshalTo(dAtA []byte) (int, error) { +func (m *SwapPlaintext) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *BareTradingFunction) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *SwapPlaintext) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.Q != nil { + if len(m.Rseed) > 0 { + i -= len(m.Rseed) + copy(dAtA[i:], m.Rseed) + i = encodeVarintDex(dAtA, i, uint64(len(m.Rseed))) + i-- + dAtA[i] = 0x32 + } + if m.ClaimAddress != nil { { - size, err := m.Q.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.ClaimAddress.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDex(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + if m.ClaimFee != nil { + { + size, err := m.ClaimFee.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDex(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + if m.Delta_2I != nil { + { + size, err := m.Delta_2I.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -6038,9 +5808,9 @@ func (m *BareTradingFunction) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x1a } - if m.P != nil { + if m.Delta_1I != nil { { - size, err := m.P.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Delta_1I.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -6050,15 +5820,22 @@ func (m *BareTradingFunction) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x12 } - if m.Fee != 0 { - i = encodeVarintDex(dAtA, i, uint64(m.Fee)) + if m.TradingPair != nil { + { + size, err := m.TradingPair.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDex(dAtA, i, uint64(size)) + } i-- - dAtA[i] = 0x8 + dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *Reserves) Marshal() (dAtA []byte, err error) { +func (m *SwapPlan) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -6068,31 +5845,40 @@ func (m *Reserves) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Reserves) MarshalTo(dAtA []byte) (int, error) { +func (m *SwapPlan) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Reserves) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *SwapPlan) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.R2 != nil { - { - size, err := m.R2.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDex(dAtA, i, uint64(size)) - } + if len(m.ProofBlindingS) > 0 { + i -= len(m.ProofBlindingS) + copy(dAtA[i:], m.ProofBlindingS) + i = encodeVarintDex(dAtA, i, uint64(len(m.ProofBlindingS))) + i-- + dAtA[i] = 0x22 + } + if len(m.ProofBlindingR) > 0 { + i -= len(m.ProofBlindingR) + copy(dAtA[i:], m.ProofBlindingR) + i = encodeVarintDex(dAtA, i, uint64(len(m.ProofBlindingR))) + i-- + dAtA[i] = 0x1a + } + if len(m.FeeBlinding) > 0 { + i -= len(m.FeeBlinding) + copy(dAtA[i:], m.FeeBlinding) + i = encodeVarintDex(dAtA, i, uint64(len(m.FeeBlinding))) i-- dAtA[i] = 0x12 } - if m.R1 != nil { + if m.SwapPlaintext != nil { { - size, err := m.R1.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.SwapPlaintext.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -6105,7 +5891,7 @@ func (m *Reserves) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Position) Marshal() (dAtA []byte, err error) { +func (m *SwapClaimPlan) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -6115,41 +5901,38 @@ func (m *Position) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Position) MarshalTo(dAtA []byte) (int, error) { +func (m *SwapClaimPlan) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Position) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *SwapClaimPlan) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.CloseOnFill { + if len(m.ProofBlindingS) > 0 { + i -= len(m.ProofBlindingS) + copy(dAtA[i:], m.ProofBlindingS) + i = encodeVarintDex(dAtA, i, uint64(len(m.ProofBlindingS))) i-- - if m.CloseOnFill { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } + dAtA[i] = 0x32 + } + if len(m.ProofBlindingR) > 0 { + i -= len(m.ProofBlindingR) + copy(dAtA[i:], m.ProofBlindingR) + i = encodeVarintDex(dAtA, i, uint64(len(m.ProofBlindingR))) i-- - dAtA[i] = 0x28 + dAtA[i] = 0x2a } - if m.Reserves != nil { - { - size, err := m.Reserves.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDex(dAtA, i, uint64(size)) - } + if m.EpochDuration != 0 { + i = encodeVarintDex(dAtA, i, uint64(m.EpochDuration)) i-- - dAtA[i] = 0x22 + dAtA[i] = 0x20 } - if m.State != nil { + if m.OutputData != nil { { - size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.OutputData.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -6159,16 +5942,14 @@ func (m *Position) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x1a } - if len(m.Nonce) > 0 { - i -= len(m.Nonce) - copy(dAtA[i:], m.Nonce) - i = encodeVarintDex(dAtA, i, uint64(len(m.Nonce))) + if m.Position != 0 { + i = encodeVarintDex(dAtA, i, uint64(m.Position)) i-- - dAtA[i] = 0x12 + dAtA[i] = 0x10 } - if m.Phi != nil { + if m.SwapPlaintext != nil { { - size, err := m.Phi.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.SwapPlaintext.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -6181,7 +5962,7 @@ func (m *Position) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *PositionId) Marshal() (dAtA []byte, err error) { +func (m *SwapView) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -6191,62 +5972,71 @@ func (m *PositionId) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *PositionId) MarshalTo(dAtA []byte) (int, error) { +func (m *SwapView) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *PositionId) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *SwapView) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.AltBech32M) > 0 { - i -= len(m.AltBech32M) - copy(dAtA[i:], m.AltBech32M) - i = encodeVarintDex(dAtA, i, uint64(len(m.AltBech32M))) - i-- - dAtA[i] = 0x12 - } - if len(m.Inner) > 0 { - i -= len(m.Inner) - copy(dAtA[i:], m.Inner) - i = encodeVarintDex(dAtA, i, uint64(len(m.Inner))) - i-- - dAtA[i] = 0xa + if m.SwapView != nil { + { + size := m.SwapView.Size() + i -= size + if _, err := m.SwapView.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } } return len(dAtA) - i, nil } -func (m *PositionState) Marshal() (dAtA []byte, err error) { +func (m *SwapView_Visible_) MarshalTo(dAtA []byte) (int, error) { size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *PositionState) MarshalTo(dAtA []byte) (int, error) { +func (m *SwapView_Visible_) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Visible != nil { + { + size, err := m.Visible.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDex(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} +func (m *SwapView_Opaque_) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *PositionState) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *SwapView_Opaque_) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) - _ = i - var l int - _ = l - if m.State != 0 { - i = encodeVarintDex(dAtA, i, uint64(m.State)) + if m.Opaque != nil { + { + size, err := m.Opaque.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDex(dAtA, i, uint64(size)) + } i-- - dAtA[i] = 0x8 + dAtA[i] = 0x12 } return len(dAtA) - i, nil } - -func (m *LpNft) Marshal() (dAtA []byte, err error) { +func (m *SwapView_Visible) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -6256,19 +6046,19 @@ func (m *LpNft) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *LpNft) MarshalTo(dAtA []byte) (int, error) { +func (m *SwapView_Visible) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *LpNft) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *SwapView_Visible) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.State != nil { + if m.Asset_2Metadata != nil { { - size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Asset_2Metadata.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -6276,11 +6066,13 @@ func (m *LpNft) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintDex(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x12 + dAtA[i] = 0x2 + i-- + dAtA[i] = 0xca } - if m.PositionId != nil { + if m.Asset_1Metadata != nil { { - size, err := m.PositionId.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Asset_1Metadata.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -6288,34 +6080,79 @@ func (m *LpNft) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintDex(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0xa + dAtA[i] = 0x2 + i-- + dAtA[i] = 0xc2 } - return len(dAtA) - i, nil -} - -func (m *PositionOpen) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err + if m.Output_2 != nil { + { + size, err := m.Output_2.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDex(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xfa } - return dAtA[:n], nil -} - -func (m *PositionOpen) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PositionOpen) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Position != nil { + if m.Output_1 != nil { { - size, err := m.Position.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Output_1.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDex(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xf2 + } + if m.BatchSwapOutputData != nil { + { + size, err := m.BatchSwapOutputData.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDex(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xa2 + } + if m.ClaimTx != nil { + { + size, err := m.ClaimTx.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDex(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + if m.SwapPlaintext != nil { + { + size, err := m.SwapPlaintext.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDex(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if m.Swap != nil { + { + size, err := m.Swap.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -6328,7 +6165,7 @@ func (m *PositionOpen) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *PositionClose) Marshal() (dAtA []byte, err error) { +func (m *SwapView_Opaque) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -6338,19 +6175,19 @@ func (m *PositionClose) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *PositionClose) MarshalTo(dAtA []byte) (int, error) { +func (m *SwapView_Opaque) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *PositionClose) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *SwapView_Opaque) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.PositionId != nil { + if m.Swap != nil { { - size, err := m.PositionId.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Swap.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -6363,7 +6200,7 @@ func (m *PositionClose) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *PositionWithdraw) Marshal() (dAtA []byte, err error) { +func (m *SwapClaimView) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -6373,66 +6210,38 @@ func (m *PositionWithdraw) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *PositionWithdraw) MarshalTo(dAtA []byte) (int, error) { +func (m *SwapClaimView) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *PositionWithdraw) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *SwapClaimView) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.ReservesCommitment != nil { + if m.SwapClaimView != nil { { - size, err := m.ReservesCommitment.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } + size := m.SwapClaimView.Size() i -= size - i = encodeVarintDex(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.PositionId != nil { - { - size, err := m.PositionId.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { + if _, err := m.SwapClaimView.MarshalTo(dAtA[i:]); err != nil { return 0, err } - i -= size - i = encodeVarintDex(dAtA, i, uint64(size)) } - i-- - dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *PositionRewardClaim) 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 *PositionRewardClaim) MarshalTo(dAtA []byte) (int, error) { +func (m *SwapClaimView_Visible_) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *PositionRewardClaim) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *SwapClaimView_Visible_) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) - _ = i - var l int - _ = l - if m.RewardsCommitment != nil { + if m.Visible != nil { { - size, err := m.RewardsCommitment.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Visible.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -6440,11 +6249,20 @@ func (m *PositionRewardClaim) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintDex(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x12 + dAtA[i] = 0xa } - if m.PositionId != nil { + return len(dAtA) - i, nil +} +func (m *SwapClaimView_Opaque_) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SwapClaimView_Opaque_) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Opaque != nil { { - size, err := m.PositionId.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Opaque.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -6452,12 +6270,11 @@ func (m *PositionRewardClaim) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintDex(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0xa + dAtA[i] = 0x12 } return len(dAtA) - i, nil } - -func (m *SwapExecution) Marshal() (dAtA []byte, err error) { +func (m *SwapClaimView_Visible) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -6467,19 +6284,31 @@ func (m *SwapExecution) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *SwapExecution) MarshalTo(dAtA []byte) (int, error) { +func (m *SwapClaimView_Visible) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *SwapExecution) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *SwapClaimView_Visible) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.Output != nil { + if m.SwapTx != nil { { - size, err := m.Output.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.SwapTx.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDex(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + if m.Output_2 != nil { + { + size, err := m.Output_2.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -6489,9 +6318,9 @@ func (m *SwapExecution) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x1a } - if m.Input != nil { + if m.Output_1 != nil { { - size, err := m.Input.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Output_1.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -6501,24 +6330,22 @@ func (m *SwapExecution) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x12 } - if len(m.Traces) > 0 { - for iNdEx := len(m.Traces) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Traces[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDex(dAtA, i, uint64(size)) + if m.SwapClaim != nil { + { + size, err := m.SwapClaim.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i -= size + i = encodeVarintDex(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *SwapExecution_Trace) Marshal() (dAtA []byte, err error) { +func (m *SwapClaimView_Opaque) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -6528,34 +6355,32 @@ func (m *SwapExecution_Trace) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *SwapExecution_Trace) MarshalTo(dAtA []byte) (int, error) { +func (m *SwapClaimView_Opaque) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *SwapExecution_Trace) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *SwapClaimView_Opaque) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.Value) > 0 { - for iNdEx := len(m.Value) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Value[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDex(dAtA, i, uint64(size)) + if m.SwapClaim != nil { + { + size, err := m.SwapClaim.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i -= size + i = encodeVarintDex(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *PositionWithdrawPlan) Marshal() (dAtA []byte, err error) { +func (m *TradingPair) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -6565,31 +6390,19 @@ func (m *PositionWithdrawPlan) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *PositionWithdrawPlan) MarshalTo(dAtA []byte) (int, error) { +func (m *TradingPair) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *PositionWithdrawPlan) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *TradingPair) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.Pair != nil { - { - size, err := m.Pair.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDex(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.PositionId != nil { + if m.Asset_2 != nil { { - size, err := m.PositionId.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Asset_2.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -6599,9 +6412,9 @@ func (m *PositionWithdrawPlan) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x12 } - if m.Reserves != nil { + if m.Asset_1 != nil { { - size, err := m.Reserves.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Asset_1.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -6614,7 +6427,7 @@ func (m *PositionWithdrawPlan) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *PositionRewardClaimPlan) Marshal() (dAtA []byte, err error) { +func (m *DirectedTradingPair) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -6624,19 +6437,31 @@ func (m *PositionRewardClaimPlan) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *PositionRewardClaimPlan) MarshalTo(dAtA []byte) (int, error) { +func (m *DirectedTradingPair) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *PositionRewardClaimPlan) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *DirectedTradingPair) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.Reserves != nil { + if m.End != nil { { - size, err := m.Reserves.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.End.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDex(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.Start != nil { + { + size, err := m.Start.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -6649,7 +6474,7 @@ func (m *PositionRewardClaimPlan) MarshalToSizedBuffer(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *BatchSwapOutputDataRequest) Marshal() (dAtA []byte, err error) { +func (m *BatchSwapOutputData) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -6659,16 +6484,21 @@ func (m *BatchSwapOutputDataRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *BatchSwapOutputDataRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *BatchSwapOutputData) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *BatchSwapOutputDataRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *BatchSwapOutputData) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l + if m.EpochStartingHeight != 0 { + i = encodeVarintDex(dAtA, i, uint64(m.EpochStartingHeight)) + i-- + dAtA[i] = 0x48 + } if m.TradingPair != nil { { size, err := m.TradingPair.MarshalToSizedBuffer(dAtA[:i]) @@ -6679,24 +6509,89 @@ func (m *BatchSwapOutputDataRequest) MarshalToSizedBuffer(dAtA []byte) (int, err i = encodeVarintDex(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x1a + dAtA[i] = 0x42 } if m.Height != 0 { i = encodeVarintDex(dAtA, i, uint64(m.Height)) i-- - dAtA[i] = 0x10 + dAtA[i] = 0x38 + } + if m.Unfilled_2 != nil { + { + size, err := m.Unfilled_2.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDex(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + if m.Unfilled_1 != nil { + { + size, err := m.Unfilled_1.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDex(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + if m.Lambda_2 != nil { + { + size, err := m.Lambda_2.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDex(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + if m.Lambda_1 != nil { + { + size, err := m.Lambda_1.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDex(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a } - if len(m.ChainId) > 0 { - i -= len(m.ChainId) - copy(dAtA[i:], m.ChainId) - i = encodeVarintDex(dAtA, i, uint64(len(m.ChainId))) + if m.Delta_2 != nil { + { + size, err := m.Delta_2.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDex(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.Delta_1 != nil { + { + size, err := m.Delta_1.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDex(dAtA, i, uint64(size)) + } i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *BatchSwapOutputDataResponse) Marshal() (dAtA []byte, err error) { +func (m *TradingFunction) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -6706,19 +6601,31 @@ func (m *BatchSwapOutputDataResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *BatchSwapOutputDataResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *TradingFunction) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *BatchSwapOutputDataResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *TradingFunction) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.Data != nil { + if m.Pair != nil { { - size, err := m.Data.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Pair.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDex(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.Component != nil { + { + size, err := m.Component.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -6731,7 +6638,7 @@ func (m *BatchSwapOutputDataResponse) MarshalToSizedBuffer(dAtA []byte) (int, er return len(dAtA) - i, nil } -func (m *SwapExecutionRequest) Marshal() (dAtA []byte, err error) { +func (m *BareTradingFunction) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -6741,19 +6648,19 @@ func (m *SwapExecutionRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *SwapExecutionRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *BareTradingFunction) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *SwapExecutionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *BareTradingFunction) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.TradingPair != nil { + if m.Q != nil { { - size, err := m.TradingPair.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Q.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -6763,22 +6670,27 @@ func (m *SwapExecutionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x1a } - if m.Height != 0 { - i = encodeVarintDex(dAtA, i, uint64(m.Height)) + if m.P != nil { + { + size, err := m.P.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDex(dAtA, i, uint64(size)) + } i-- - dAtA[i] = 0x10 + dAtA[i] = 0x12 } - if len(m.ChainId) > 0 { - i -= len(m.ChainId) - copy(dAtA[i:], m.ChainId) - i = encodeVarintDex(dAtA, i, uint64(len(m.ChainId))) + if m.Fee != 0 { + i = encodeVarintDex(dAtA, i, uint64(m.Fee)) i-- - dAtA[i] = 0xa + dAtA[i] = 0x8 } return len(dAtA) - i, nil } -func (m *SwapExecutionResponse) Marshal() (dAtA []byte, err error) { +func (m *Reserves) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -6788,19 +6700,31 @@ func (m *SwapExecutionResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *SwapExecutionResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *Reserves) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *SwapExecutionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *Reserves) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.SwapExecution != nil { + if m.R2 != nil { { - size, err := m.SwapExecution.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.R2.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDex(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.R1 != nil { + { + size, err := m.R1.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -6813,7 +6737,7 @@ func (m *SwapExecutionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *ArbExecutionRequest) Marshal() (dAtA []byte, err error) { +func (m *Position) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -6823,59 +6747,60 @@ func (m *ArbExecutionRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *ArbExecutionRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *Position) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *ArbExecutionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *Position) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.Height != 0 { - i = encodeVarintDex(dAtA, i, uint64(m.Height)) + if m.CloseOnFill { i-- - dAtA[i] = 0x10 + if m.CloseOnFill { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x28 } - if len(m.ChainId) > 0 { - i -= len(m.ChainId) - copy(dAtA[i:], m.ChainId) - i = encodeVarintDex(dAtA, i, uint64(len(m.ChainId))) + if m.Reserves != nil { + { + size, err := m.Reserves.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDex(dAtA, i, uint64(size)) + } i-- - dAtA[i] = 0xa + dAtA[i] = 0x22 } - return len(dAtA) - i, nil -} - -func (m *ArbExecutionResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDex(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a } - return dAtA[:n], nil -} - -func (m *ArbExecutionResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ArbExecutionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Height != 0 { - i = encodeVarintDex(dAtA, i, uint64(m.Height)) + if len(m.Nonce) > 0 { + i -= len(m.Nonce) + copy(dAtA[i:], m.Nonce) + i = encodeVarintDex(dAtA, i, uint64(len(m.Nonce))) i-- - dAtA[i] = 0x10 + dAtA[i] = 0x12 } - if m.SwapExecution != nil { + if m.Phi != nil { { - size, err := m.SwapExecution.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Phi.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -6888,7 +6813,7 @@ func (m *ArbExecutionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *SwapExecutionsRequest) Marshal() (dAtA []byte, err error) { +func (m *PositionId) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -6898,49 +6823,34 @@ func (m *SwapExecutionsRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *SwapExecutionsRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *PositionId) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *SwapExecutionsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *PositionId) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.TradingPair != nil { - { - size, err := m.TradingPair.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDex(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if m.EndHeight != 0 { - i = encodeVarintDex(dAtA, i, uint64(m.EndHeight)) - i-- - dAtA[i] = 0x18 - } - if m.StartHeight != 0 { - i = encodeVarintDex(dAtA, i, uint64(m.StartHeight)) + if len(m.AltBech32M) > 0 { + i -= len(m.AltBech32M) + copy(dAtA[i:], m.AltBech32M) + i = encodeVarintDex(dAtA, i, uint64(len(m.AltBech32M))) i-- - dAtA[i] = 0x10 + dAtA[i] = 0x12 } - if len(m.ChainId) > 0 { - i -= len(m.ChainId) - copy(dAtA[i:], m.ChainId) - i = encodeVarintDex(dAtA, i, uint64(len(m.ChainId))) + if len(m.Inner) > 0 { + i -= len(m.Inner) + copy(dAtA[i:], m.Inner) + i = encodeVarintDex(dAtA, i, uint64(len(m.Inner))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *SwapExecutionsResponse) Marshal() (dAtA []byte, err error) { +func (m *PositionState) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -6950,49 +6860,30 @@ func (m *SwapExecutionsResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *SwapExecutionsResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *PositionState) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *SwapExecutionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *PositionState) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.TradingPair != nil { - { - size, err := m.TradingPair.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDex(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.Height != 0 { - i = encodeVarintDex(dAtA, i, uint64(m.Height)) + if m.Sequence != 0 { + i = encodeVarintDex(dAtA, i, uint64(m.Sequence)) i-- dAtA[i] = 0x10 } - if m.SwapExecution != nil { - { - size, err := m.SwapExecution.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDex(dAtA, i, uint64(size)) - } + if m.State != 0 { + i = encodeVarintDex(dAtA, i, uint64(m.State)) i-- - dAtA[i] = 0xa + dAtA[i] = 0x8 } return len(dAtA) - i, nil } -func (m *ArbExecutionsRequest) Marshal() (dAtA []byte, err error) { +func (m *LpNft) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -7002,37 +6893,44 @@ func (m *ArbExecutionsRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *ArbExecutionsRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *LpNft) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *ArbExecutionsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *LpNft) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.EndHeight != 0 { - i = encodeVarintDex(dAtA, i, uint64(m.EndHeight)) - i-- - dAtA[i] = 0x18 - } - if m.StartHeight != 0 { - i = encodeVarintDex(dAtA, i, uint64(m.StartHeight)) + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDex(dAtA, i, uint64(size)) + } i-- - dAtA[i] = 0x10 + dAtA[i] = 0x12 } - if len(m.ChainId) > 0 { - i -= len(m.ChainId) - copy(dAtA[i:], m.ChainId) - i = encodeVarintDex(dAtA, i, uint64(len(m.ChainId))) + if m.PositionId != nil { + { + size, err := m.PositionId.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDex(dAtA, i, uint64(size)) + } i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *ArbExecutionsResponse) Marshal() (dAtA []byte, err error) { +func (m *PositionOpen) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -7042,24 +6940,19 @@ func (m *ArbExecutionsResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *ArbExecutionsResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *PositionOpen) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *ArbExecutionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *PositionOpen) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.Height != 0 { - i = encodeVarintDex(dAtA, i, uint64(m.Height)) - i-- - dAtA[i] = 0x10 - } - if m.SwapExecution != nil { + if m.Position != nil { { - size, err := m.SwapExecution.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Position.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -7072,7 +6965,7 @@ func (m *ArbExecutionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *LiquidityPositionsRequest) Marshal() (dAtA []byte, err error) { +func (m *PositionClose) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -7082,37 +6975,32 @@ func (m *LiquidityPositionsRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *LiquidityPositionsRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *PositionClose) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *LiquidityPositionsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *PositionClose) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.IncludeClosed { - i-- - if m.IncludeClosed { - dAtA[i] = 1 - } else { - dAtA[i] = 0 + if m.PositionId != nil { + { + size, err := m.PositionId.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDex(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x20 - } - if len(m.ChainId) > 0 { - i -= len(m.ChainId) - copy(dAtA[i:], m.ChainId) - i = encodeVarintDex(dAtA, i, uint64(len(m.ChainId))) - i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *LiquidityPositionsResponse) Marshal() (dAtA []byte, err error) { +func (m *PositionWithdraw) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -7122,19 +7010,36 @@ func (m *LiquidityPositionsResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *LiquidityPositionsResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *PositionWithdraw) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *LiquidityPositionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *PositionWithdraw) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.Data != nil { + if m.Sequence != 0 { + i = encodeVarintDex(dAtA, i, uint64(m.Sequence)) + i-- + dAtA[i] = 0x18 + } + if m.ReservesCommitment != nil { { - size, err := m.Data.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.ReservesCommitment.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDex(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.PositionId != nil { + { + size, err := m.PositionId.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -7147,7 +7052,7 @@ func (m *LiquidityPositionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, err return len(dAtA) - i, nil } -func (m *LiquidityPositionByIdRequest) Marshal() (dAtA []byte, err error) { +func (m *PositionRewardClaim) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -7157,19 +7062,19 @@ func (m *LiquidityPositionByIdRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *LiquidityPositionByIdRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *PositionRewardClaim) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *LiquidityPositionByIdRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *PositionRewardClaim) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.PositionId != nil { + if m.RewardsCommitment != nil { { - size, err := m.PositionId.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.RewardsCommitment.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -7179,17 +7084,22 @@ func (m *LiquidityPositionByIdRequest) MarshalToSizedBuffer(dAtA []byte) (int, e i-- dAtA[i] = 0x12 } - if len(m.ChainId) > 0 { - i -= len(m.ChainId) - copy(dAtA[i:], m.ChainId) - i = encodeVarintDex(dAtA, i, uint64(len(m.ChainId))) + if m.PositionId != nil { + { + size, err := m.PositionId.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDex(dAtA, i, uint64(size)) + } i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *LiquidityPositionByIdResponse) Marshal() (dAtA []byte, err error) { +func (m *SwapExecution) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -7199,19 +7109,19 @@ func (m *LiquidityPositionByIdResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *LiquidityPositionByIdResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *SwapExecution) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *LiquidityPositionByIdResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *SwapExecution) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.Data != nil { + if m.Output != nil { { - size, err := m.Data.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Output.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -7219,12 +7129,38 @@ func (m *LiquidityPositionByIdResponse) MarshalToSizedBuffer(dAtA []byte) (int, i = encodeVarintDex(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0xa + dAtA[i] = 0x1a + } + if m.Input != nil { + { + size, err := m.Input.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDex(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if len(m.Traces) > 0 { + for iNdEx := len(m.Traces) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Traces[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDex(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } } return len(dAtA) - i, nil } -func (m *LiquidityPositionsByIdRequest) Marshal() (dAtA []byte, err error) { +func (m *SwapExecution_Trace) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -7234,20 +7170,20 @@ func (m *LiquidityPositionsByIdRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *LiquidityPositionsByIdRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *SwapExecution_Trace) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *LiquidityPositionsByIdRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *SwapExecution_Trace) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.PositionId) > 0 { - for iNdEx := len(m.PositionId) - 1; iNdEx >= 0; iNdEx-- { + if len(m.Value) > 0 { + for iNdEx := len(m.Value) - 1; iNdEx >= 0; iNdEx-- { { - size, err := m.PositionId[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Value[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -7255,20 +7191,13 @@ func (m *LiquidityPositionsByIdRequest) MarshalToSizedBuffer(dAtA []byte) (int, i = encodeVarintDex(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x12 + dAtA[i] = 0xa } } - if len(m.ChainId) > 0 { - i -= len(m.ChainId) - copy(dAtA[i:], m.ChainId) - i = encodeVarintDex(dAtA, i, uint64(len(m.ChainId))) - i-- - dAtA[i] = 0xa - } return len(dAtA) - i, nil } -func (m *LiquidityPositionsByIdResponse) Marshal() (dAtA []byte, err error) { +func (m *PositionWithdrawPlan) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -7278,19 +7207,38 @@ func (m *LiquidityPositionsByIdResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *LiquidityPositionsByIdResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *PositionWithdrawPlan) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *LiquidityPositionsByIdResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *PositionWithdrawPlan) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.Data != nil { + if len(m.Rewards) > 0 { + for iNdEx := len(m.Rewards) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Rewards[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDex(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + } + if m.Sequence != 0 { + i = encodeVarintDex(dAtA, i, uint64(m.Sequence)) + i-- + dAtA[i] = 0x20 + } + if m.Pair != nil { { - size, err := m.Data.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Pair.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -7298,39 +7246,11 @@ func (m *LiquidityPositionsByIdResponse) MarshalToSizedBuffer(dAtA []byte) (int, i = encodeVarintDex(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0xa + dAtA[i] = 0x1a } - return len(dAtA) - i, nil -} - -func (m *LiquidityPositionsByPriceRequest) 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 *LiquidityPositionsByPriceRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *LiquidityPositionsByPriceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Limit != 0 { - i = encodeVarintDex(dAtA, i, uint64(m.Limit)) - i-- - dAtA[i] = 0x28 - } - if m.TradingPair != nil { + if m.PositionId != nil { { - size, err := m.TradingPair.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.PositionId.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -7340,17 +7260,22 @@ func (m *LiquidityPositionsByPriceRequest) MarshalToSizedBuffer(dAtA []byte) (in i-- dAtA[i] = 0x12 } - if len(m.ChainId) > 0 { - i -= len(m.ChainId) - copy(dAtA[i:], m.ChainId) - i = encodeVarintDex(dAtA, i, uint64(len(m.ChainId))) + if m.Reserves != nil { + { + size, err := m.Reserves.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDex(dAtA, i, uint64(size)) + } i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *LiquidityPositionsByPriceResponse) Marshal() (dAtA []byte, err error) { +func (m *PositionRewardClaimPlan) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -7360,19 +7285,19 @@ func (m *LiquidityPositionsByPriceResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *LiquidityPositionsByPriceResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *PositionRewardClaimPlan) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *LiquidityPositionsByPriceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *PositionRewardClaimPlan) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.Data != nil { + if m.Reserves != nil { { - size, err := m.Data.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Reserves.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -7385,7 +7310,7 @@ func (m *LiquidityPositionsByPriceResponse) MarshalToSizedBuffer(dAtA []byte) (i return len(dAtA) - i, nil } -func (m *SpreadRequest) Marshal() (dAtA []byte, err error) { +func (m *BatchSwapOutputDataRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -7395,12 +7320,12 @@ func (m *SpreadRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *SpreadRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *BatchSwapOutputDataRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *SpreadRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *BatchSwapOutputDataRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -7415,19 +7340,17 @@ func (m *SpreadRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintDex(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x12 + dAtA[i] = 0x1a } - if len(m.ChainId) > 0 { - i -= len(m.ChainId) - copy(dAtA[i:], m.ChainId) - i = encodeVarintDex(dAtA, i, uint64(len(m.ChainId))) + if m.Height != 0 { + i = encodeVarintDex(dAtA, i, uint64(m.Height)) i-- - dAtA[i] = 0xa + dAtA[i] = 0x10 } return len(dAtA) - i, nil } -func (m *SpreadResponse) Marshal() (dAtA []byte, err error) { +func (m *BatchSwapOutputDataResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -7437,43 +7360,19 @@ func (m *SpreadResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *SpreadResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *BatchSwapOutputDataResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *SpreadResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *BatchSwapOutputDataResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.ApproxEffectivePrice_2To_1 != 0 { - i -= 8 - encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.ApproxEffectivePrice_2To_1)))) - i-- - dAtA[i] = 0x21 - } - if m.ApproxEffectivePrice_1To_2 != 0 { - i -= 8 - encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.ApproxEffectivePrice_1To_2)))) - i-- - dAtA[i] = 0x19 - } - if m.Best_2To_1Position != nil { - { - size, err := m.Best_2To_1Position.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDex(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.Best_1To_2Position != nil { + if m.Data != nil { { - size, err := m.Best_1To_2Position.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Data.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -7486,7 +7385,7 @@ func (m *SpreadResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *SimulateTradeRequest) Marshal() (dAtA []byte, err error) { +func (m *SwapExecutionRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -7496,19 +7395,19 @@ func (m *SimulateTradeRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *SimulateTradeRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *SwapExecutionRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *SimulateTradeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *SwapExecutionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.Routing != nil { + if m.TradingPair != nil { { - size, err := m.Routing.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.TradingPair.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -7518,34 +7417,15 @@ func (m *SimulateTradeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x1a } - if m.Output != nil { - { - size, err := m.Output.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDex(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.Input != nil { - { - size, err := m.Input.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDex(dAtA, i, uint64(size)) - } + if m.Height != 0 { + i = encodeVarintDex(dAtA, i, uint64(m.Height)) i-- - dAtA[i] = 0xa + dAtA[i] = 0x10 } return len(dAtA) - i, nil } -func (m *SimulateTradeRequest_Routing) Marshal() (dAtA []byte, err error) { +func (m *SwapExecutionResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -7555,38 +7435,19 @@ func (m *SimulateTradeRequest_Routing) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *SimulateTradeRequest_Routing) MarshalTo(dAtA []byte) (int, error) { +func (m *SwapExecutionResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *SimulateTradeRequest_Routing) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *SwapExecutionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.Setting != nil { - { - size := m.Setting.Size() - i -= size - if _, err := m.Setting.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - } - } - return len(dAtA) - i, nil -} - -func (m *SimulateTradeRequest_Routing_Default_) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SimulateTradeRequest_Routing_Default_) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.Default != nil { + if m.SwapExecution != nil { { - size, err := m.Default.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.SwapExecution.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -7598,28 +7459,8 @@ func (m *SimulateTradeRequest_Routing_Default_) MarshalToSizedBuffer(dAtA []byte } return len(dAtA) - i, nil } -func (m *SimulateTradeRequest_Routing_SingleHop_) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} -func (m *SimulateTradeRequest_Routing_SingleHop_) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.SingleHop != nil { - { - size, err := m.SingleHop.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDex(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - return len(dAtA) - i, nil -} -func (m *SimulateTradeRequest_Routing_SingleHop) Marshal() (dAtA []byte, err error) { +func (m *ArbExecutionRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -7629,20 +7470,25 @@ func (m *SimulateTradeRequest_Routing_SingleHop) Marshal() (dAtA []byte, err err return dAtA[:n], nil } -func (m *SimulateTradeRequest_Routing_SingleHop) MarshalTo(dAtA []byte) (int, error) { +func (m *ArbExecutionRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *SimulateTradeRequest_Routing_SingleHop) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ArbExecutionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l + if m.Height != 0 { + i = encodeVarintDex(dAtA, i, uint64(m.Height)) + i-- + dAtA[i] = 0x10 + } return len(dAtA) - i, nil } -func (m *SimulateTradeRequest_Routing_Default) Marshal() (dAtA []byte, err error) { +func (m *ArbExecutionResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -7652,20 +7498,37 @@ func (m *SimulateTradeRequest_Routing_Default) Marshal() (dAtA []byte, err error return dAtA[:n], nil } -func (m *SimulateTradeRequest_Routing_Default) MarshalTo(dAtA []byte) (int, error) { +func (m *ArbExecutionResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *SimulateTradeRequest_Routing_Default) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ArbExecutionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l + if m.Height != 0 { + i = encodeVarintDex(dAtA, i, uint64(m.Height)) + i-- + dAtA[i] = 0x10 + } + if m.SwapExecution != nil { + { + size, err := m.SwapExecution.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDex(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } return len(dAtA) - i, nil } -func (m *SimulateTradeResponse) Marshal() (dAtA []byte, err error) { +func (m *SwapExecutionsRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -7675,19 +7538,19 @@ func (m *SimulateTradeResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *SimulateTradeResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *SwapExecutionsRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *SimulateTradeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *SwapExecutionsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.Output != nil { + if m.TradingPair != nil { { - size, err := m.Output.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.TradingPair.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -7695,12 +7558,22 @@ func (m *SimulateTradeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintDex(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0xa + dAtA[i] = 0x22 + } + if m.EndHeight != 0 { + i = encodeVarintDex(dAtA, i, uint64(m.EndHeight)) + i-- + dAtA[i] = 0x18 + } + if m.StartHeight != 0 { + i = encodeVarintDex(dAtA, i, uint64(m.StartHeight)) + i-- + dAtA[i] = 0x10 } return len(dAtA) - i, nil } -func (m *EventSwap) Marshal() (dAtA []byte, err error) { +func (m *SwapExecutionsResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -7710,19 +7583,19 @@ func (m *EventSwap) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *EventSwap) MarshalTo(dAtA []byte) (int, error) { +func (m *SwapExecutionsResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *EventSwap) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *SwapExecutionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.SwapCommitment != nil { + if m.TradingPair != nil { { - size, err := m.SwapCommitment.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.TradingPair.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -7730,11 +7603,16 @@ func (m *EventSwap) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintDex(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x22 + dAtA[i] = 0x1a } - if m.Delta_2I != nil { + if m.Height != 0 { + i = encodeVarintDex(dAtA, i, uint64(m.Height)) + i-- + dAtA[i] = 0x10 + } + if m.SwapExecution != nil { { - size, err := m.Delta_2I.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.SwapExecution.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -7742,36 +7620,12 @@ func (m *EventSwap) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintDex(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x1a - } - if m.Delta_1I != nil { - { - size, err := m.Delta_1I.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDex(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.TradingPair != nil { - { - size, err := m.TradingPair.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDex(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *EventSwapClaim) Marshal() (dAtA []byte, err error) { +func (m *ArbExecutionsRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -7781,55 +7635,57 @@ func (m *EventSwapClaim) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *EventSwapClaim) MarshalTo(dAtA []byte) (int, error) { +func (m *ArbExecutionsRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *EventSwapClaim) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ArbExecutionsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.Nullifier != nil { - { - size, err := m.Nullifier.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDex(dAtA, i, uint64(size)) - } + if m.EndHeight != 0 { + i = encodeVarintDex(dAtA, i, uint64(m.EndHeight)) i-- - dAtA[i] = 0x22 + dAtA[i] = 0x18 } - if m.Output_2Commitment != nil { - { - size, err := m.Output_2Commitment.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDex(dAtA, i, uint64(size)) - } + if m.StartHeight != 0 { + i = encodeVarintDex(dAtA, i, uint64(m.StartHeight)) i-- - dAtA[i] = 0x1a + dAtA[i] = 0x10 } - if m.Output_1Commitment != nil { - { - size, err := m.Output_1Commitment.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDex(dAtA, i, uint64(size)) - } + return len(dAtA) - i, nil +} + +func (m *ArbExecutionsResponse) 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 *ArbExecutionsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ArbExecutionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Height != 0 { + i = encodeVarintDex(dAtA, i, uint64(m.Height)) i-- - dAtA[i] = 0x12 + dAtA[i] = 0x10 } - if m.TradingPair != nil { + if m.SwapExecution != nil { { - size, err := m.TradingPair.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.SwapExecution.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -7842,7 +7698,7 @@ func (m *EventSwapClaim) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *EventPositionOpen) Marshal() (dAtA []byte, err error) { +func (m *LiquidityPositionsRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -7852,48 +7708,52 @@ func (m *EventPositionOpen) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *EventPositionOpen) MarshalTo(dAtA []byte) (int, error) { +func (m *LiquidityPositionsRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *EventPositionOpen) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *LiquidityPositionsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.TradingFee != 0 { - i = encodeVarintDex(dAtA, i, uint64(m.TradingFee)) + if m.IncludeClosed { i-- - dAtA[i] = 0x28 - } - if m.Reserves_2 != nil { - { - size, err := m.Reserves_2.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDex(dAtA, i, uint64(size)) + if m.IncludeClosed { + dAtA[i] = 1 + } else { + dAtA[i] = 0 } i-- - dAtA[i] = 0x22 + dAtA[i] = 0x20 } - if m.Reserves_1 != nil { - { - size, err := m.Reserves_1.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintDex(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a + return len(dAtA) - i, nil +} + +func (m *LiquidityPositionsResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - if m.TradingPair != nil { + return dAtA[:n], nil +} + +func (m *LiquidityPositionsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LiquidityPositionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Data != nil { { - size, err := m.TradingPair.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Data.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -7901,8 +7761,31 @@ func (m *EventPositionOpen) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintDex(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x12 + dAtA[i] = 0xa } + return len(dAtA) - i, nil +} + +func (m *LiquidityPositionByIdRequest) 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 *LiquidityPositionByIdRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LiquidityPositionByIdRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l if m.PositionId != nil { { size, err := m.PositionId.MarshalToSizedBuffer(dAtA[:i]) @@ -7913,12 +7796,12 @@ func (m *EventPositionOpen) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintDex(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0xa + dAtA[i] = 0x12 } return len(dAtA) - i, nil } -func (m *EventPositionClose) Marshal() (dAtA []byte, err error) { +func (m *LiquidityPositionByIdResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -7928,19 +7811,19 @@ func (m *EventPositionClose) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *EventPositionClose) MarshalTo(dAtA []byte) (int, error) { +func (m *LiquidityPositionByIdResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *EventPositionClose) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *LiquidityPositionByIdResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.PositionId != nil { + if m.Data != nil { { - size, err := m.PositionId.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Data.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -7953,7 +7836,7 @@ func (m *EventPositionClose) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *EventPositionWithdraw) Marshal() (dAtA []byte, err error) { +func (m *LiquidityPositionsByIdRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -7963,31 +7846,56 @@ func (m *EventPositionWithdraw) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *EventPositionWithdraw) MarshalTo(dAtA []byte) (int, error) { +func (m *LiquidityPositionsByIdRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *EventPositionWithdraw) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *LiquidityPositionsByIdRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.Reserves_2 != nil { - { - size, err := m.Reserves_2.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err + if len(m.PositionId) > 0 { + for iNdEx := len(m.PositionId) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.PositionId[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDex(dAtA, i, uint64(size)) } - i -= size - i = encodeVarintDex(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 } - i-- - dAtA[i] = 0x22 } - if m.Reserves_1 != nil { + return len(dAtA) - i, nil +} + +func (m *LiquidityPositionsByIdResponse) 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 *LiquidityPositionsByIdResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LiquidityPositionsByIdResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Data != nil { { - size, err := m.Reserves_1.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Data.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -7995,23 +7903,74 @@ func (m *EventPositionWithdraw) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintDex(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x1a + dAtA[i] = 0xa } - if m.TradingPair != nil { - { - size, err := m.TradingPair.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } + return len(dAtA) - i, nil +} + +func (m *LiquidityPositionsByPriceRequest) 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 *LiquidityPositionsByPriceRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LiquidityPositionsByPriceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Limit != 0 { + i = encodeVarintDex(dAtA, i, uint64(m.Limit)) + i-- + dAtA[i] = 0x28 + } + if m.TradingPair != nil { + { + size, err := m.TradingPair.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } i -= size i = encodeVarintDex(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 } - if m.PositionId != nil { + return len(dAtA) - i, nil +} + +func (m *LiquidityPositionsByPriceResponse) 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 *LiquidityPositionsByPriceResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LiquidityPositionsByPriceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Data != nil { { - size, err := m.PositionId.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Data.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -8024,1196 +7983,1660 @@ func (m *EventPositionWithdraw) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func encodeVarintDex(dAtA []byte, offset int, v uint64) int { - offset -= sovDex(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ +func (m *SpreadRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - dAtA[offset] = uint8(v) - return base + return dAtA[:n], nil } -func (m *ZKSwapProof) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Inner) - if l > 0 { - n += 1 + l + sovDex(uint64(l)) - } - return n + +func (m *SpreadRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *ZKSwapClaimProof) Size() (n int) { - if m == nil { - return 0 - } +func (m *SpreadRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - l = len(m.Inner) - if l > 0 { - n += 1 + l + sovDex(uint64(l)) + if m.TradingPair != nil { + { + size, err := m.TradingPair.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDex(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 } - return n + return len(dAtA) - i, nil } -func (m *Swap) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Proof != nil { - l = m.Proof.Size() - n += 1 + l + sovDex(uint64(l)) - } - if m.Body != nil { - l = m.Body.Size() - n += 1 + l + sovDex(uint64(l)) +func (m *SpreadResponse) 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 n + return dAtA[:n], nil } -func (m *SwapClaim) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Proof != nil { - l = m.Proof.Size() - n += 1 + l + sovDex(uint64(l)) - } - if m.Body != nil { - l = m.Body.Size() - n += 1 + l + sovDex(uint64(l)) - } - if m.EpochDuration != 0 { - n += 1 + sovDex(uint64(m.EpochDuration)) - } - return n +func (m *SpreadResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *SwapClaimBody) Size() (n int) { - if m == nil { - return 0 - } +func (m *SpreadResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.Nullifier != nil { - l = m.Nullifier.Size() - n += 1 + l + sovDex(uint64(l)) - } - if m.Fee != nil { - l = m.Fee.Size() - n += 1 + l + sovDex(uint64(l)) + if m.ApproxEffectivePrice_2To_1 != 0 { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.ApproxEffectivePrice_2To_1)))) + i-- + dAtA[i] = 0x21 } - if m.Output_1Commitment != nil { - l = m.Output_1Commitment.Size() - n += 1 + l + sovDex(uint64(l)) + if m.ApproxEffectivePrice_1To_2 != 0 { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.ApproxEffectivePrice_1To_2)))) + i-- + dAtA[i] = 0x19 } - if m.Output_2Commitment != nil { - l = m.Output_2Commitment.Size() - n += 1 + l + sovDex(uint64(l)) + if m.Best_2To_1Position != nil { + { + size, err := m.Best_2To_1Position.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDex(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 } - if m.OutputData != nil { - l = m.OutputData.Size() - n += 1 + l + sovDex(uint64(l)) + if m.Best_1To_2Position != nil { + { + size, err := m.Best_1To_2Position.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDex(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *SwapBody) Size() (n int) { - if m == nil { - return 0 +func (m *SimulateTradeRequest) 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 *SimulateTradeRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SimulateTradeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.TradingPair != nil { - l = m.TradingPair.Size() - n += 1 + l + sovDex(uint64(l)) - } - if m.Delta_1I != nil { - l = m.Delta_1I.Size() - n += 1 + l + sovDex(uint64(l)) - } - if m.Delta_2I != nil { - l = m.Delta_2I.Size() - n += 1 + l + sovDex(uint64(l)) + if m.Routing != nil { + { + size, err := m.Routing.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDex(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a } - if m.FeeCommitment != nil { - l = m.FeeCommitment.Size() - n += 1 + l + sovDex(uint64(l)) + if m.Output != nil { + { + size, err := m.Output.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDex(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 } - if m.Payload != nil { - l = m.Payload.Size() - n += 1 + l + sovDex(uint64(l)) + if m.Input != nil { + { + size, err := m.Input.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDex(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *SwapPayload) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Commitment != nil { - l = m.Commitment.Size() - n += 1 + l + sovDex(uint64(l)) - } - l = len(m.EncryptedSwap) - if l > 0 { - n += 1 + l + sovDex(uint64(l)) +func (m *SimulateTradeRequest_Routing) 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 n + return dAtA[:n], nil } -func (m *SwapPlaintext) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.TradingPair != nil { - l = m.TradingPair.Size() - n += 1 + l + sovDex(uint64(l)) - } - if m.Delta_1I != nil { - l = m.Delta_1I.Size() - n += 1 + l + sovDex(uint64(l)) - } - if m.Delta_2I != nil { - l = m.Delta_2I.Size() - n += 1 + l + sovDex(uint64(l)) - } - if m.ClaimFee != nil { - l = m.ClaimFee.Size() - n += 1 + l + sovDex(uint64(l)) - } - if m.ClaimAddress != nil { - l = m.ClaimAddress.Size() - n += 1 + l + sovDex(uint64(l)) - } - l = len(m.Rseed) - if l > 0 { - n += 1 + l + sovDex(uint64(l)) - } - return n +func (m *SimulateTradeRequest_Routing) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *SwapPlan) Size() (n int) { - if m == nil { - return 0 - } +func (m *SimulateTradeRequest_Routing) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.SwapPlaintext != nil { - l = m.SwapPlaintext.Size() - n += 1 + l + sovDex(uint64(l)) - } - l = len(m.FeeBlinding) - if l > 0 { - n += 1 + l + sovDex(uint64(l)) - } - l = len(m.ProofBlindingR) - if l > 0 { - n += 1 + l + sovDex(uint64(l)) - } - l = len(m.ProofBlindingS) - if l > 0 { - n += 1 + l + sovDex(uint64(l)) + if m.Setting != nil { + { + size := m.Setting.Size() + i -= size + if _, err := m.Setting.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } } - return n + return len(dAtA) - i, nil } -func (m *SwapClaimPlan) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.SwapPlaintext != nil { - l = m.SwapPlaintext.Size() - n += 1 + l + sovDex(uint64(l)) - } - if m.Position != 0 { - n += 1 + sovDex(uint64(m.Position)) - } - if m.OutputData != nil { - l = m.OutputData.Size() - n += 1 + l + sovDex(uint64(l)) - } - if m.EpochDuration != 0 { - n += 1 + sovDex(uint64(m.EpochDuration)) +func (m *SimulateTradeRequest_Routing_Default_) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SimulateTradeRequest_Routing_Default_) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Default != nil { + { + size, err := m.Default.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDex(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - l = len(m.ProofBlindingR) - if l > 0 { - n += 1 + l + sovDex(uint64(l)) + return len(dAtA) - i, nil +} +func (m *SimulateTradeRequest_Routing_SingleHop_) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SimulateTradeRequest_Routing_SingleHop_) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.SingleHop != nil { + { + size, err := m.SingleHop.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDex(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 } - l = len(m.ProofBlindingS) - if l > 0 { - n += 1 + l + sovDex(uint64(l)) + return len(dAtA) - i, nil +} +func (m *SimulateTradeRequest_Routing_SingleHop) 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 n + return dAtA[:n], nil } -func (m *SwapView) Size() (n int) { - if m == nil { - return 0 - } +func (m *SimulateTradeRequest_Routing_SingleHop) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SimulateTradeRequest_Routing_SingleHop) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.SwapView != nil { - n += m.SwapView.Size() - } - return n + return len(dAtA) - i, nil } -func (m *SwapView_Visible_) Size() (n int) { - if m == nil { - return 0 +func (m *SimulateTradeRequest_Routing_Default) 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 *SimulateTradeRequest_Routing_Default) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SimulateTradeRequest_Routing_Default) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.Visible != nil { - l = m.Visible.Size() - n += 1 + l + sovDex(uint64(l)) - } - return n + return len(dAtA) - i, nil } -func (m *SwapView_Opaque_) Size() (n int) { - if m == nil { - return 0 + +func (m *SimulateTradeResponse) 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 *SimulateTradeResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SimulateTradeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.Opaque != nil { - l = m.Opaque.Size() - n += 1 + l + sovDex(uint64(l)) - } - return n -} -func (m *SwapView_Visible) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Swap != nil { - l = m.Swap.Size() - n += 1 + l + sovDex(uint64(l)) + if m.Unfilled != nil { + { + size, err := m.Unfilled.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDex(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 } - if m.SwapPlaintext != nil { - l = m.SwapPlaintext.Size() - n += 1 + l + sovDex(uint64(l)) + if m.Output != nil { + { + size, err := m.Output.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDex(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *SwapView_Opaque) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Swap != nil { - l = m.Swap.Size() - n += 1 + l + sovDex(uint64(l)) +func (m *EventSwap) 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 n + return dAtA[:n], nil } -func (m *SwapClaimView) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.SwapClaimView != nil { - n += m.SwapClaimView.Size() - } - return n +func (m *EventSwap) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *SwapClaimView_Visible_) Size() (n int) { - if m == nil { - return 0 - } +func (m *EventSwap) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.Visible != nil { - l = m.Visible.Size() - n += 1 + l + sovDex(uint64(l)) + if m.SwapCommitment != nil { + { + size, err := m.SwapCommitment.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDex(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 } - return n -} -func (m *SwapClaimView_Opaque_) Size() (n int) { - if m == nil { - return 0 + if m.Delta_2I != nil { + { + size, err := m.Delta_2I.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDex(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a } - var l int - _ = l - if m.Opaque != nil { - l = m.Opaque.Size() - n += 1 + l + sovDex(uint64(l)) + if m.Delta_1I != nil { + { + size, err := m.Delta_1I.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDex(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 } - return n + if m.TradingPair != nil { + { + size, err := m.TradingPair.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDex(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } -func (m *SwapClaimView_Visible) Size() (n int) { - if m == nil { - return 0 + +func (m *EventSwapClaim) 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 *EventSwapClaim) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EventSwapClaim) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.SwapClaim != nil { - l = m.SwapClaim.Size() - n += 1 + l + sovDex(uint64(l)) + if m.Nullifier != nil { + { + size, err := m.Nullifier.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDex(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 } - if m.Output_1 != nil { - l = m.Output_1.Size() - n += 1 + l + sovDex(uint64(l)) + if m.Output_2Commitment != nil { + { + size, err := m.Output_2Commitment.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDex(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a } - if m.Output_2 != nil { - l = m.Output_2.Size() - n += 1 + l + sovDex(uint64(l)) + if m.Output_1Commitment != nil { + { + size, err := m.Output_1Commitment.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDex(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 } - return n + if m.TradingPair != nil { + { + size, err := m.TradingPair.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDex(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } -func (m *SwapClaimView_Opaque) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.SwapClaim != nil { - l = m.SwapClaim.Size() - n += 1 + l + sovDex(uint64(l)) +func (m *EventPositionOpen) 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 n + return dAtA[:n], nil } -func (m *TradingPair) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Asset_1 != nil { - l = m.Asset_1.Size() - n += 1 + l + sovDex(uint64(l)) - } - if m.Asset_2 != nil { - l = m.Asset_2.Size() - n += 1 + l + sovDex(uint64(l)) - } - return n +func (m *EventPositionOpen) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *DirectedTradingPair) Size() (n int) { - if m == nil { - return 0 - } +func (m *EventPositionOpen) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.Start != nil { - l = m.Start.Size() - n += 1 + l + sovDex(uint64(l)) - } - if m.End != nil { - l = m.End.Size() - n += 1 + l + sovDex(uint64(l)) - } - return n -} - -func (m *BatchSwapOutputData) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Delta_1 != nil { - l = m.Delta_1.Size() - n += 1 + l + sovDex(uint64(l)) - } - if m.Delta_2 != nil { - l = m.Delta_2.Size() - n += 1 + l + sovDex(uint64(l)) - } - if m.Lambda_1 != nil { - l = m.Lambda_1.Size() - n += 1 + l + sovDex(uint64(l)) - } - if m.Lambda_2 != nil { - l = m.Lambda_2.Size() - n += 1 + l + sovDex(uint64(l)) - } - if m.Unfilled_1 != nil { - l = m.Unfilled_1.Size() - n += 1 + l + sovDex(uint64(l)) + if m.TradingFee != 0 { + i = encodeVarintDex(dAtA, i, uint64(m.TradingFee)) + i-- + dAtA[i] = 0x28 } - if m.Unfilled_2 != nil { - l = m.Unfilled_2.Size() - n += 1 + l + sovDex(uint64(l)) + if m.Reserves_2 != nil { + { + size, err := m.Reserves_2.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDex(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 } - if m.Height != 0 { - n += 1 + sovDex(uint64(m.Height)) + if m.Reserves_1 != nil { + { + size, err := m.Reserves_1.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDex(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a } if m.TradingPair != nil { - l = m.TradingPair.Size() - n += 1 + l + sovDex(uint64(l)) + { + size, err := m.TradingPair.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDex(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 } - if m.EpochStartingHeight != 0 { - n += 1 + sovDex(uint64(m.EpochStartingHeight)) + if m.PositionId != nil { + { + size, err := m.PositionId.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDex(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *TradingFunction) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Component != nil { - l = m.Component.Size() - n += 1 + l + sovDex(uint64(l)) - } - if m.Pair != nil { - l = m.Pair.Size() - n += 1 + l + sovDex(uint64(l)) +func (m *EventPositionClose) 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 n + return dAtA[:n], nil } -func (m *BareTradingFunction) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Fee != 0 { - n += 1 + sovDex(uint64(m.Fee)) - } - if m.P != nil { - l = m.P.Size() - n += 1 + l + sovDex(uint64(l)) - } - if m.Q != nil { - l = m.Q.Size() - n += 1 + l + sovDex(uint64(l)) - } - return n +func (m *EventPositionClose) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Reserves) Size() (n int) { - if m == nil { - return 0 - } +func (m *EventPositionClose) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.R1 != nil { - l = m.R1.Size() - n += 1 + l + sovDex(uint64(l)) - } - if m.R2 != nil { - l = m.R2.Size() - n += 1 + l + sovDex(uint64(l)) + if m.PositionId != nil { + { + size, err := m.PositionId.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDex(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *Position) Size() (n int) { - if m == nil { - return 0 +func (m *EventPositionWithdraw) 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 *EventPositionWithdraw) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EventPositionWithdraw) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.Phi != nil { - l = m.Phi.Size() - n += 1 + l + sovDex(uint64(l)) + if m.Sequence != 0 { + i = encodeVarintDex(dAtA, i, uint64(m.Sequence)) + i-- + dAtA[i] = 0x28 } - l = len(m.Nonce) - if l > 0 { - n += 1 + l + sovDex(uint64(l)) + if m.Reserves_2 != nil { + { + size, err := m.Reserves_2.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDex(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 } - if m.State != nil { - l = m.State.Size() - n += 1 + l + sovDex(uint64(l)) + if m.Reserves_1 != nil { + { + size, err := m.Reserves_1.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDex(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a } - if m.Reserves != nil { - l = m.Reserves.Size() - n += 1 + l + sovDex(uint64(l)) + if m.TradingPair != nil { + { + size, err := m.TradingPair.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDex(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 } - if m.CloseOnFill { - n += 2 + if m.PositionId != nil { + { + size, err := m.PositionId.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDex(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *PositionId) Size() (n int) { - if m == nil { - return 0 +func (m *EventPositionExecution) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - var l int - _ = l - l = len(m.Inner) - if l > 0 { - n += 1 + l + sovDex(uint64(l)) - } - l = len(m.AltBech32M) - if l > 0 { - n += 1 + l + sovDex(uint64(l)) - } - return n + return dAtA[:n], nil } -func (m *PositionState) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.State != 0 { - n += 1 + sovDex(uint64(m.State)) - } - return n +func (m *EventPositionExecution) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *LpNft) Size() (n int) { - if m == nil { - return 0 - } +func (m *EventPositionExecution) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.PositionId != nil { - l = m.PositionId.Size() - n += 1 + l + sovDex(uint64(l)) + if m.Context != nil { + { + size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDex(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a } - if m.State != nil { - l = m.State.Size() - n += 1 + l + sovDex(uint64(l)) + if m.PrevReserves_2 != nil { + { + size, err := m.PrevReserves_2.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDex(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 } - return n -} - -func (m *PositionOpen) Size() (n int) { - if m == nil { - return 0 + if m.PrevReserves_1 != nil { + { + size, err := m.PrevReserves_1.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDex(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a } - var l int - _ = l - if m.Position != nil { - l = m.Position.Size() - n += 1 + l + sovDex(uint64(l)) + if m.Reserves_2 != nil { + { + size, err := m.Reserves_2.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDex(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 } - return n -} - -func (m *PositionClose) Size() (n int) { - if m == nil { - return 0 + if m.Reserves_1 != nil { + { + size, err := m.Reserves_1.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDex(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if m.TradingPair != nil { + { + size, err := m.TradingPair.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDex(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 } - var l int - _ = l if m.PositionId != nil { - l = m.PositionId.Size() - n += 1 + l + sovDex(uint64(l)) + { + size, err := m.PositionId.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDex(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *PositionWithdraw) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.PositionId != nil { - l = m.PositionId.Size() - n += 1 + l + sovDex(uint64(l)) - } - if m.ReservesCommitment != nil { - l = m.ReservesCommitment.Size() - n += 1 + l + sovDex(uint64(l)) +func (m *EventBatchSwap) 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 n + return dAtA[:n], nil } -func (m *PositionRewardClaim) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.PositionId != nil { - l = m.PositionId.Size() - n += 1 + l + sovDex(uint64(l)) - } - if m.RewardsCommitment != nil { - l = m.RewardsCommitment.Size() - n += 1 + l + sovDex(uint64(l)) - } - return n +func (m *EventBatchSwap) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *SwapExecution) Size() (n int) { - if m == nil { - return 0 - } +func (m *EventBatchSwap) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if len(m.Traces) > 0 { - for _, e := range m.Traces { - l = e.Size() - n += 1 + l + sovDex(uint64(l)) + if m.SwapExecution_2For_1 != nil { + { + size, err := m.SwapExecution_2For_1.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDex(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0x1a } - if m.Input != nil { - l = m.Input.Size() - n += 1 + l + sovDex(uint64(l)) + if m.SwapExecution_1For_2 != nil { + { + size, err := m.SwapExecution_1For_2.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDex(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 } - if m.Output != nil { - l = m.Output.Size() - n += 1 + l + sovDex(uint64(l)) + if m.BatchSwapOutputData != nil { + { + size, err := m.BatchSwapOutputData.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDex(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *SwapExecution_Trace) Size() (n int) { - if m == nil { - return 0 +func (m *EventArbExecution) 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 *EventArbExecution) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EventArbExecution) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if len(m.Value) > 0 { - for _, e := range m.Value { - l = e.Size() - n += 1 + l + sovDex(uint64(l)) + if m.SwapExecution != nil { + { + size, err := m.SwapExecution.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDex(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0x12 } - return n + if m.Height != 0 { + i = encodeVarintDex(dAtA, i, uint64(m.Height)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil } -func (m *PositionWithdrawPlan) Size() (n int) { - if m == nil { - return 0 +func (m *EventValueCircuitBreakerCredit) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - var l int - _ = l - if m.Reserves != nil { - l = m.Reserves.Size() - n += 1 + l + sovDex(uint64(l)) + return dAtA[:n], nil +} + +func (m *EventValueCircuitBreakerCredit) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EventValueCircuitBreakerCredit) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.NewBalance != nil { + { + size, err := m.NewBalance.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDex(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a } - if m.PositionId != nil { - l = m.PositionId.Size() - n += 1 + l + sovDex(uint64(l)) + if m.PreviousBalance != nil { + { + size, err := m.PreviousBalance.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDex(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 } - if m.Pair != nil { - l = m.Pair.Size() - n += 1 + l + sovDex(uint64(l)) + if m.AssetId != nil { + { + size, err := m.AssetId.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDex(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *PositionRewardClaimPlan) Size() (n int) { - if m == nil { - return 0 +func (m *EventValueCircuitBreakerDebit) 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 *EventValueCircuitBreakerDebit) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EventValueCircuitBreakerDebit) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.Reserves != nil { - l = m.Reserves.Size() - n += 1 + l + sovDex(uint64(l)) + if m.NewBalance != nil { + { + size, err := m.NewBalance.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDex(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a } - return n + if m.PreviousBalance != nil { + { + size, err := m.PreviousBalance.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDex(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.AssetId != nil { + { + size, err := m.AssetId.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDex(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } -func (m *BatchSwapOutputDataRequest) Size() (n int) { - if m == nil { - return 0 +func (m *DexParameters) 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 *DexParameters) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DexParameters) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - l = len(m.ChainId) - if l > 0 { - n += 1 + l + sovDex(uint64(l)) + if m.MaxHops != 0 { + i = encodeVarintDex(dAtA, i, uint64(m.MaxHops)) + i-- + dAtA[i] = 0x18 } - if m.Height != 0 { - n += 1 + sovDex(uint64(m.Height)) + if len(m.FixedCandidates) > 0 { + for iNdEx := len(m.FixedCandidates) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.FixedCandidates[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDex(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } } - if m.TradingPair != nil { - l = m.TradingPair.Size() - n += 1 + l + sovDex(uint64(l)) + if m.IsEnabled { + i-- + if m.IsEnabled { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x8 } - return n + return len(dAtA) - i, nil } -func (m *BatchSwapOutputDataResponse) Size() (n int) { - if m == nil { - return 0 +func (m *GenesisContent) 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 *GenesisContent) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GenesisContent) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.Data != nil { - l = m.Data.Size() - n += 1 + l + sovDex(uint64(l)) + if m.DexParams != nil { + { + size, err := m.DexParams.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDex(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *SwapExecutionRequest) Size() (n int) { +func encodeVarintDex(dAtA []byte, offset int, v uint64) int { + offset -= sovDex(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *ZKSwapProof) Size() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.ChainId) + l = len(m.Inner) if l > 0 { n += 1 + l + sovDex(uint64(l)) } - if m.Height != 0 { - n += 1 + sovDex(uint64(m.Height)) - } - if m.TradingPair != nil { - l = m.TradingPair.Size() - n += 1 + l + sovDex(uint64(l)) - } return n } -func (m *SwapExecutionResponse) Size() (n int) { +func (m *ZKSwapClaimProof) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.SwapExecution != nil { - l = m.SwapExecution.Size() + l = len(m.Inner) + if l > 0 { n += 1 + l + sovDex(uint64(l)) } return n } -func (m *ArbExecutionRequest) Size() (n int) { +func (m *Swap) Size() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.ChainId) - if l > 0 { + if m.Proof != nil { + l = m.Proof.Size() n += 1 + l + sovDex(uint64(l)) } - if m.Height != 0 { - n += 1 + sovDex(uint64(m.Height)) + if m.Body != nil { + l = m.Body.Size() + n += 1 + l + sovDex(uint64(l)) } return n } -func (m *ArbExecutionResponse) Size() (n int) { +func (m *SwapClaim) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.SwapExecution != nil { - l = m.SwapExecution.Size() + if m.Proof != nil { + l = m.Proof.Size() n += 1 + l + sovDex(uint64(l)) } - if m.Height != 0 { - n += 1 + sovDex(uint64(m.Height)) + if m.Body != nil { + l = m.Body.Size() + n += 1 + l + sovDex(uint64(l)) + } + if m.EpochDuration != 0 { + n += 1 + sovDex(uint64(m.EpochDuration)) } return n } -func (m *SwapExecutionsRequest) Size() (n int) { +func (m *SwapClaimBody) Size() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.ChainId) - if l > 0 { + if m.Nullifier != nil { + l = m.Nullifier.Size() n += 1 + l + sovDex(uint64(l)) } - if m.StartHeight != 0 { - n += 1 + sovDex(uint64(m.StartHeight)) + if m.Fee != nil { + l = m.Fee.Size() + n += 1 + l + sovDex(uint64(l)) } - if m.EndHeight != 0 { - n += 1 + sovDex(uint64(m.EndHeight)) + if m.Output_1Commitment != nil { + l = m.Output_1Commitment.Size() + n += 1 + l + sovDex(uint64(l)) } - if m.TradingPair != nil { - l = m.TradingPair.Size() + if m.Output_2Commitment != nil { + l = m.Output_2Commitment.Size() + n += 1 + l + sovDex(uint64(l)) + } + if m.OutputData != nil { + l = m.OutputData.Size() n += 1 + l + sovDex(uint64(l)) } return n } -func (m *SwapExecutionsResponse) Size() (n int) { +func (m *SwapBody) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.SwapExecution != nil { - l = m.SwapExecution.Size() - n += 1 + l + sovDex(uint64(l)) - } - if m.Height != 0 { - n += 1 + sovDex(uint64(m.Height)) - } if m.TradingPair != nil { l = m.TradingPair.Size() n += 1 + l + sovDex(uint64(l)) } - return n -} - -func (m *ArbExecutionsRequest) Size() (n int) { - if m == nil { - return 0 + if m.Delta_1I != nil { + l = m.Delta_1I.Size() + n += 1 + l + sovDex(uint64(l)) } - var l int - _ = l - l = len(m.ChainId) - if l > 0 { + if m.Delta_2I != nil { + l = m.Delta_2I.Size() n += 1 + l + sovDex(uint64(l)) } - if m.StartHeight != 0 { - n += 1 + sovDex(uint64(m.StartHeight)) + if m.FeeCommitment != nil { + l = m.FeeCommitment.Size() + n += 1 + l + sovDex(uint64(l)) } - if m.EndHeight != 0 { - n += 1 + sovDex(uint64(m.EndHeight)) + if m.Payload != nil { + l = m.Payload.Size() + n += 1 + l + sovDex(uint64(l)) } return n } -func (m *ArbExecutionsResponse) Size() (n int) { +func (m *SwapPayload) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.SwapExecution != nil { - l = m.SwapExecution.Size() + if m.Commitment != nil { + l = m.Commitment.Size() n += 1 + l + sovDex(uint64(l)) } - if m.Height != 0 { - n += 1 + sovDex(uint64(m.Height)) + l = len(m.EncryptedSwap) + if l > 0 { + n += 1 + l + sovDex(uint64(l)) } return n } -func (m *LiquidityPositionsRequest) Size() (n int) { +func (m *SwapPlaintext) Size() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.ChainId) - if l > 0 { + if m.TradingPair != nil { + l = m.TradingPair.Size() n += 1 + l + sovDex(uint64(l)) } - if m.IncludeClosed { - n += 2 + if m.Delta_1I != nil { + l = m.Delta_1I.Size() + n += 1 + l + sovDex(uint64(l)) } - return n -} - -func (m *LiquidityPositionsResponse) Size() (n int) { - if m == nil { - return 0 + if m.Delta_2I != nil { + l = m.Delta_2I.Size() + n += 1 + l + sovDex(uint64(l)) } - var l int - _ = l - if m.Data != nil { - l = m.Data.Size() + if m.ClaimFee != nil { + l = m.ClaimFee.Size() + n += 1 + l + sovDex(uint64(l)) + } + if m.ClaimAddress != nil { + l = m.ClaimAddress.Size() + n += 1 + l + sovDex(uint64(l)) + } + l = len(m.Rseed) + if l > 0 { n += 1 + l + sovDex(uint64(l)) } return n } -func (m *LiquidityPositionByIdRequest) Size() (n int) { +func (m *SwapPlan) Size() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.ChainId) + if m.SwapPlaintext != nil { + l = m.SwapPlaintext.Size() + n += 1 + l + sovDex(uint64(l)) + } + l = len(m.FeeBlinding) if l > 0 { n += 1 + l + sovDex(uint64(l)) } - if m.PositionId != nil { - l = m.PositionId.Size() + l = len(m.ProofBlindingR) + if l > 0 { + n += 1 + l + sovDex(uint64(l)) + } + l = len(m.ProofBlindingS) + if l > 0 { n += 1 + l + sovDex(uint64(l)) } return n } -func (m *LiquidityPositionByIdResponse) Size() (n int) { +func (m *SwapClaimPlan) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.Data != nil { - l = m.Data.Size() + if m.SwapPlaintext != nil { + l = m.SwapPlaintext.Size() n += 1 + l + sovDex(uint64(l)) } - return n -} - -func (m *LiquidityPositionsByIdRequest) Size() (n int) { - if m == nil { - return 0 + if m.Position != 0 { + n += 1 + sovDex(uint64(m.Position)) } - var l int - _ = l - l = len(m.ChainId) + if m.OutputData != nil { + l = m.OutputData.Size() + n += 1 + l + sovDex(uint64(l)) + } + if m.EpochDuration != 0 { + n += 1 + sovDex(uint64(m.EpochDuration)) + } + l = len(m.ProofBlindingR) if l > 0 { n += 1 + l + sovDex(uint64(l)) } - if len(m.PositionId) > 0 { - for _, e := range m.PositionId { - l = e.Size() - n += 1 + l + sovDex(uint64(l)) - } + l = len(m.ProofBlindingS) + if l > 0 { + n += 1 + l + sovDex(uint64(l)) } return n } -func (m *LiquidityPositionsByIdResponse) Size() (n int) { +func (m *SwapView) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.Data != nil { - l = m.Data.Size() - n += 1 + l + sovDex(uint64(l)) + if m.SwapView != nil { + n += m.SwapView.Size() } return n } -func (m *LiquidityPositionsByPriceRequest) Size() (n int) { +func (m *SwapView_Visible_) Size() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.ChainId) - if l > 0 { - n += 1 + l + sovDex(uint64(l)) - } - if m.TradingPair != nil { - l = m.TradingPair.Size() + if m.Visible != nil { + l = m.Visible.Size() n += 1 + l + sovDex(uint64(l)) } - if m.Limit != 0 { - n += 1 + sovDex(uint64(m.Limit)) - } return n } - -func (m *LiquidityPositionsByPriceResponse) Size() (n int) { +func (m *SwapView_Opaque_) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.Data != nil { - l = m.Data.Size() + if m.Opaque != nil { + l = m.Opaque.Size() n += 1 + l + sovDex(uint64(l)) } return n } - -func (m *SpreadRequest) Size() (n int) { +func (m *SwapView_Visible) Size() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.ChainId) - if l > 0 { + if m.Swap != nil { + l = m.Swap.Size() n += 1 + l + sovDex(uint64(l)) } - if m.TradingPair != nil { - l = m.TradingPair.Size() + if m.SwapPlaintext != nil { + l = m.SwapPlaintext.Size() n += 1 + l + sovDex(uint64(l)) } - return n -} - -func (m *SpreadResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Best_1To_2Position != nil { - l = m.Best_1To_2Position.Size() + if m.ClaimTx != nil { + l = m.ClaimTx.Size() n += 1 + l + sovDex(uint64(l)) } - if m.Best_2To_1Position != nil { - l = m.Best_2To_1Position.Size() - n += 1 + l + sovDex(uint64(l)) + if m.BatchSwapOutputData != nil { + l = m.BatchSwapOutputData.Size() + n += 2 + l + sovDex(uint64(l)) } - if m.ApproxEffectivePrice_1To_2 != 0 { - n += 9 + if m.Output_1 != nil { + l = m.Output_1.Size() + n += 2 + l + sovDex(uint64(l)) } - if m.ApproxEffectivePrice_2To_1 != 0 { - n += 9 + if m.Output_2 != nil { + l = m.Output_2.Size() + n += 2 + l + sovDex(uint64(l)) + } + if m.Asset_1Metadata != nil { + l = m.Asset_1Metadata.Size() + n += 2 + l + sovDex(uint64(l)) + } + if m.Asset_2Metadata != nil { + l = m.Asset_2Metadata.Size() + n += 2 + l + sovDex(uint64(l)) } return n } -func (m *SimulateTradeRequest) Size() (n int) { +func (m *SwapView_Opaque) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.Input != nil { - l = m.Input.Size() - n += 1 + l + sovDex(uint64(l)) - } - if m.Output != nil { - l = m.Output.Size() - n += 1 + l + sovDex(uint64(l)) - } - if m.Routing != nil { - l = m.Routing.Size() + if m.Swap != nil { + l = m.Swap.Size() n += 1 + l + sovDex(uint64(l)) } return n } -func (m *SimulateTradeRequest_Routing) Size() (n int) { +func (m *SwapClaimView) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.Setting != nil { - n += m.Setting.Size() + if m.SwapClaimView != nil { + n += m.SwapClaimView.Size() } return n } -func (m *SimulateTradeRequest_Routing_Default_) Size() (n int) { +func (m *SwapClaimView_Visible_) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.Default != nil { - l = m.Default.Size() + if m.Visible != nil { + l = m.Visible.Size() n += 1 + l + sovDex(uint64(l)) } return n } -func (m *SimulateTradeRequest_Routing_SingleHop_) Size() (n int) { +func (m *SwapClaimView_Opaque_) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.SingleHop != nil { - l = m.SingleHop.Size() + if m.Opaque != nil { + l = m.Opaque.Size() n += 1 + l + sovDex(uint64(l)) } return n } -func (m *SimulateTradeRequest_Routing_SingleHop) Size() (n int) { +func (m *SwapClaimView_Visible) Size() (n int) { if m == nil { return 0 } var l int _ = l - return n -} - -func (m *SimulateTradeRequest_Routing_Default) Size() (n int) { - if m == nil { - return 0 + if m.SwapClaim != nil { + l = m.SwapClaim.Size() + n += 1 + l + sovDex(uint64(l)) + } + if m.Output_1 != nil { + l = m.Output_1.Size() + n += 1 + l + sovDex(uint64(l)) + } + if m.Output_2 != nil { + l = m.Output_2.Size() + n += 1 + l + sovDex(uint64(l)) + } + if m.SwapTx != nil { + l = m.SwapTx.Size() + n += 1 + l + sovDex(uint64(l)) } - var l int - _ = l return n } -func (m *SimulateTradeResponse) Size() (n int) { +func (m *SwapClaimView_Opaque) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.Output != nil { - l = m.Output.Size() + if m.SwapClaim != nil { + l = m.SwapClaim.Size() n += 1 + l + sovDex(uint64(l)) } return n } -func (m *EventSwap) Size() (n int) { +func (m *TradingPair) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.TradingPair != nil { - l = m.TradingPair.Size() - n += 1 + l + sovDex(uint64(l)) - } - if m.Delta_1I != nil { - l = m.Delta_1I.Size() - n += 1 + l + sovDex(uint64(l)) - } - if m.Delta_2I != nil { - l = m.Delta_2I.Size() + if m.Asset_1 != nil { + l = m.Asset_1.Size() n += 1 + l + sovDex(uint64(l)) } - if m.SwapCommitment != nil { - l = m.SwapCommitment.Size() + if m.Asset_2 != nil { + l = m.Asset_2.Size() n += 1 + l + sovDex(uint64(l)) } return n } -func (m *EventSwapClaim) Size() (n int) { +func (m *DirectedTradingPair) Size() (n int) { if m == nil { return 0 } var l int _ = l + if m.Start != nil { + l = m.Start.Size() + n += 1 + l + sovDex(uint64(l)) + } + if m.End != nil { + l = m.End.Size() + n += 1 + l + sovDex(uint64(l)) + } + return n +} + +func (m *BatchSwapOutputData) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Delta_1 != nil { + l = m.Delta_1.Size() + n += 1 + l + sovDex(uint64(l)) + } + if m.Delta_2 != nil { + l = m.Delta_2.Size() + n += 1 + l + sovDex(uint64(l)) + } + if m.Lambda_1 != nil { + l = m.Lambda_1.Size() + n += 1 + l + sovDex(uint64(l)) + } + if m.Lambda_2 != nil { + l = m.Lambda_2.Size() + n += 1 + l + sovDex(uint64(l)) + } + if m.Unfilled_1 != nil { + l = m.Unfilled_1.Size() + n += 1 + l + sovDex(uint64(l)) + } + if m.Unfilled_2 != nil { + l = m.Unfilled_2.Size() + n += 1 + l + sovDex(uint64(l)) + } + if m.Height != 0 { + n += 1 + sovDex(uint64(m.Height)) + } if m.TradingPair != nil { l = m.TradingPair.Size() n += 1 + l + sovDex(uint64(l)) } - if m.Output_1Commitment != nil { - l = m.Output_1Commitment.Size() + if m.EpochStartingHeight != 0 { + n += 1 + sovDex(uint64(m.EpochStartingHeight)) + } + return n +} + +func (m *TradingFunction) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Component != nil { + l = m.Component.Size() n += 1 + l + sovDex(uint64(l)) } - if m.Output_2Commitment != nil { - l = m.Output_2Commitment.Size() + if m.Pair != nil { + l = m.Pair.Size() n += 1 + l + sovDex(uint64(l)) } - if m.Nullifier != nil { - l = m.Nullifier.Size() + return n +} + +func (m *BareTradingFunction) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Fee != 0 { + n += 1 + sovDex(uint64(m.Fee)) + } + if m.P != nil { + l = m.P.Size() + n += 1 + l + sovDex(uint64(l)) + } + if m.Q != nil { + l = m.Q.Size() n += 1 + l + sovDex(uint64(l)) } return n } -func (m *EventPositionOpen) Size() (n int) { +func (m *Reserves) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.R1 != nil { + l = m.R1.Size() + n += 1 + l + sovDex(uint64(l)) + } + if m.R2 != nil { + l = m.R2.Size() + n += 1 + l + sovDex(uint64(l)) + } + return n +} + +func (m *Position) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Phi != nil { + l = m.Phi.Size() + n += 1 + l + sovDex(uint64(l)) + } + l = len(m.Nonce) + if l > 0 { + n += 1 + l + sovDex(uint64(l)) + } + if m.State != nil { + l = m.State.Size() + n += 1 + l + sovDex(uint64(l)) + } + if m.Reserves != nil { + l = m.Reserves.Size() + n += 1 + l + sovDex(uint64(l)) + } + if m.CloseOnFill { + n += 2 + } + return n +} + +func (m *PositionId) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Inner) + if l > 0 { + n += 1 + l + sovDex(uint64(l)) + } + l = len(m.AltBech32M) + if l > 0 { + n += 1 + l + sovDex(uint64(l)) + } + return n +} + +func (m *PositionState) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != 0 { + n += 1 + sovDex(uint64(m.State)) + } + if m.Sequence != 0 { + n += 1 + sovDex(uint64(m.Sequence)) + } + return n +} + +func (m *LpNft) Size() (n int) { if m == nil { return 0 } @@ -9223,25 +9646,60 @@ func (m *EventPositionOpen) Size() (n int) { l = m.PositionId.Size() n += 1 + l + sovDex(uint64(l)) } - if m.TradingPair != nil { - l = m.TradingPair.Size() + if m.State != nil { + l = m.State.Size() n += 1 + l + sovDex(uint64(l)) } - if m.Reserves_1 != nil { - l = m.Reserves_1.Size() + return n +} + +func (m *PositionOpen) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Position != nil { + l = m.Position.Size() n += 1 + l + sovDex(uint64(l)) } - if m.Reserves_2 != nil { - l = m.Reserves_2.Size() + return n +} + +func (m *PositionClose) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PositionId != nil { + l = m.PositionId.Size() n += 1 + l + sovDex(uint64(l)) } - if m.TradingFee != 0 { - n += 1 + sovDex(uint64(m.TradingFee)) + return n +} + +func (m *PositionWithdraw) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PositionId != nil { + l = m.PositionId.Size() + n += 1 + l + sovDex(uint64(l)) + } + if m.ReservesCommitment != nil { + l = m.ReservesCommitment.Size() + n += 1 + l + sovDex(uint64(l)) + } + if m.Sequence != 0 { + n += 1 + sovDex(uint64(m.Sequence)) } return n } -func (m *EventPositionClose) Size() (n int) { +func (m *PositionRewardClaim) Size() (n int) { if m == nil { return 0 } @@ -9251,41 +9709,1773 @@ func (m *EventPositionClose) Size() (n int) { l = m.PositionId.Size() n += 1 + l + sovDex(uint64(l)) } - return n -} + if m.RewardsCommitment != nil { + l = m.RewardsCommitment.Size() + n += 1 + l + sovDex(uint64(l)) + } + return n +} + +func (m *SwapExecution) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Traces) > 0 { + for _, e := range m.Traces { + l = e.Size() + n += 1 + l + sovDex(uint64(l)) + } + } + if m.Input != nil { + l = m.Input.Size() + n += 1 + l + sovDex(uint64(l)) + } + if m.Output != nil { + l = m.Output.Size() + n += 1 + l + sovDex(uint64(l)) + } + return n +} + +func (m *SwapExecution_Trace) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Value) > 0 { + for _, e := range m.Value { + l = e.Size() + n += 1 + l + sovDex(uint64(l)) + } + } + return n +} + +func (m *PositionWithdrawPlan) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Reserves != nil { + l = m.Reserves.Size() + n += 1 + l + sovDex(uint64(l)) + } + if m.PositionId != nil { + l = m.PositionId.Size() + n += 1 + l + sovDex(uint64(l)) + } + if m.Pair != nil { + l = m.Pair.Size() + n += 1 + l + sovDex(uint64(l)) + } + if m.Sequence != 0 { + n += 1 + sovDex(uint64(m.Sequence)) + } + if len(m.Rewards) > 0 { + for _, e := range m.Rewards { + l = e.Size() + n += 1 + l + sovDex(uint64(l)) + } + } + return n +} + +func (m *PositionRewardClaimPlan) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Reserves != nil { + l = m.Reserves.Size() + n += 1 + l + sovDex(uint64(l)) + } + return n +} + +func (m *BatchSwapOutputDataRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Height != 0 { + n += 1 + sovDex(uint64(m.Height)) + } + if m.TradingPair != nil { + l = m.TradingPair.Size() + n += 1 + l + sovDex(uint64(l)) + } + return n +} + +func (m *BatchSwapOutputDataResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Data != nil { + l = m.Data.Size() + n += 1 + l + sovDex(uint64(l)) + } + return n +} + +func (m *SwapExecutionRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Height != 0 { + n += 1 + sovDex(uint64(m.Height)) + } + if m.TradingPair != nil { + l = m.TradingPair.Size() + n += 1 + l + sovDex(uint64(l)) + } + return n +} + +func (m *SwapExecutionResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.SwapExecution != nil { + l = m.SwapExecution.Size() + n += 1 + l + sovDex(uint64(l)) + } + return n +} + +func (m *ArbExecutionRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Height != 0 { + n += 1 + sovDex(uint64(m.Height)) + } + return n +} + +func (m *ArbExecutionResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.SwapExecution != nil { + l = m.SwapExecution.Size() + n += 1 + l + sovDex(uint64(l)) + } + if m.Height != 0 { + n += 1 + sovDex(uint64(m.Height)) + } + return n +} + +func (m *SwapExecutionsRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.StartHeight != 0 { + n += 1 + sovDex(uint64(m.StartHeight)) + } + if m.EndHeight != 0 { + n += 1 + sovDex(uint64(m.EndHeight)) + } + if m.TradingPair != nil { + l = m.TradingPair.Size() + n += 1 + l + sovDex(uint64(l)) + } + return n +} + +func (m *SwapExecutionsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.SwapExecution != nil { + l = m.SwapExecution.Size() + n += 1 + l + sovDex(uint64(l)) + } + if m.Height != 0 { + n += 1 + sovDex(uint64(m.Height)) + } + if m.TradingPair != nil { + l = m.TradingPair.Size() + n += 1 + l + sovDex(uint64(l)) + } + return n +} + +func (m *ArbExecutionsRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.StartHeight != 0 { + n += 1 + sovDex(uint64(m.StartHeight)) + } + if m.EndHeight != 0 { + n += 1 + sovDex(uint64(m.EndHeight)) + } + return n +} + +func (m *ArbExecutionsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.SwapExecution != nil { + l = m.SwapExecution.Size() + n += 1 + l + sovDex(uint64(l)) + } + if m.Height != 0 { + n += 1 + sovDex(uint64(m.Height)) + } + return n +} + +func (m *LiquidityPositionsRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.IncludeClosed { + n += 2 + } + return n +} + +func (m *LiquidityPositionsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Data != nil { + l = m.Data.Size() + n += 1 + l + sovDex(uint64(l)) + } + return n +} + +func (m *LiquidityPositionByIdRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PositionId != nil { + l = m.PositionId.Size() + n += 1 + l + sovDex(uint64(l)) + } + return n +} + +func (m *LiquidityPositionByIdResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Data != nil { + l = m.Data.Size() + n += 1 + l + sovDex(uint64(l)) + } + return n +} + +func (m *LiquidityPositionsByIdRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.PositionId) > 0 { + for _, e := range m.PositionId { + l = e.Size() + n += 1 + l + sovDex(uint64(l)) + } + } + return n +} + +func (m *LiquidityPositionsByIdResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Data != nil { + l = m.Data.Size() + n += 1 + l + sovDex(uint64(l)) + } + return n +} + +func (m *LiquidityPositionsByPriceRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.TradingPair != nil { + l = m.TradingPair.Size() + n += 1 + l + sovDex(uint64(l)) + } + if m.Limit != 0 { + n += 1 + sovDex(uint64(m.Limit)) + } + return n +} + +func (m *LiquidityPositionsByPriceResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Data != nil { + l = m.Data.Size() + n += 1 + l + sovDex(uint64(l)) + } + return n +} + +func (m *SpreadRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.TradingPair != nil { + l = m.TradingPair.Size() + n += 1 + l + sovDex(uint64(l)) + } + return n +} + +func (m *SpreadResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Best_1To_2Position != nil { + l = m.Best_1To_2Position.Size() + n += 1 + l + sovDex(uint64(l)) + } + if m.Best_2To_1Position != nil { + l = m.Best_2To_1Position.Size() + n += 1 + l + sovDex(uint64(l)) + } + if m.ApproxEffectivePrice_1To_2 != 0 { + n += 9 + } + if m.ApproxEffectivePrice_2To_1 != 0 { + n += 9 + } + return n +} + +func (m *SimulateTradeRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Input != nil { + l = m.Input.Size() + n += 1 + l + sovDex(uint64(l)) + } + if m.Output != nil { + l = m.Output.Size() + n += 1 + l + sovDex(uint64(l)) + } + if m.Routing != nil { + l = m.Routing.Size() + n += 1 + l + sovDex(uint64(l)) + } + return n +} + +func (m *SimulateTradeRequest_Routing) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Setting != nil { + n += m.Setting.Size() + } + return n +} + +func (m *SimulateTradeRequest_Routing_Default_) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Default != nil { + l = m.Default.Size() + n += 1 + l + sovDex(uint64(l)) + } + return n +} +func (m *SimulateTradeRequest_Routing_SingleHop_) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.SingleHop != nil { + l = m.SingleHop.Size() + n += 1 + l + sovDex(uint64(l)) + } + return n +} +func (m *SimulateTradeRequest_Routing_SingleHop) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *SimulateTradeRequest_Routing_Default) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *SimulateTradeResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Output != nil { + l = m.Output.Size() + n += 1 + l + sovDex(uint64(l)) + } + if m.Unfilled != nil { + l = m.Unfilled.Size() + n += 1 + l + sovDex(uint64(l)) + } + return n +} + +func (m *EventSwap) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.TradingPair != nil { + l = m.TradingPair.Size() + n += 1 + l + sovDex(uint64(l)) + } + if m.Delta_1I != nil { + l = m.Delta_1I.Size() + n += 1 + l + sovDex(uint64(l)) + } + if m.Delta_2I != nil { + l = m.Delta_2I.Size() + n += 1 + l + sovDex(uint64(l)) + } + if m.SwapCommitment != nil { + l = m.SwapCommitment.Size() + n += 1 + l + sovDex(uint64(l)) + } + return n +} + +func (m *EventSwapClaim) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.TradingPair != nil { + l = m.TradingPair.Size() + n += 1 + l + sovDex(uint64(l)) + } + if m.Output_1Commitment != nil { + l = m.Output_1Commitment.Size() + n += 1 + l + sovDex(uint64(l)) + } + if m.Output_2Commitment != nil { + l = m.Output_2Commitment.Size() + n += 1 + l + sovDex(uint64(l)) + } + if m.Nullifier != nil { + l = m.Nullifier.Size() + n += 1 + l + sovDex(uint64(l)) + } + return n +} + +func (m *EventPositionOpen) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PositionId != nil { + l = m.PositionId.Size() + n += 1 + l + sovDex(uint64(l)) + } + if m.TradingPair != nil { + l = m.TradingPair.Size() + n += 1 + l + sovDex(uint64(l)) + } + if m.Reserves_1 != nil { + l = m.Reserves_1.Size() + n += 1 + l + sovDex(uint64(l)) + } + if m.Reserves_2 != nil { + l = m.Reserves_2.Size() + n += 1 + l + sovDex(uint64(l)) + } + if m.TradingFee != 0 { + n += 1 + sovDex(uint64(m.TradingFee)) + } + return n +} + +func (m *EventPositionClose) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PositionId != nil { + l = m.PositionId.Size() + n += 1 + l + sovDex(uint64(l)) + } + return n +} + +func (m *EventPositionWithdraw) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PositionId != nil { + l = m.PositionId.Size() + n += 1 + l + sovDex(uint64(l)) + } + if m.TradingPair != nil { + l = m.TradingPair.Size() + n += 1 + l + sovDex(uint64(l)) + } + if m.Reserves_1 != nil { + l = m.Reserves_1.Size() + n += 1 + l + sovDex(uint64(l)) + } + if m.Reserves_2 != nil { + l = m.Reserves_2.Size() + n += 1 + l + sovDex(uint64(l)) + } + if m.Sequence != 0 { + n += 1 + sovDex(uint64(m.Sequence)) + } + return n +} + +func (m *EventPositionExecution) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PositionId != nil { + l = m.PositionId.Size() + n += 1 + l + sovDex(uint64(l)) + } + if m.TradingPair != nil { + l = m.TradingPair.Size() + n += 1 + l + sovDex(uint64(l)) + } + if m.Reserves_1 != nil { + l = m.Reserves_1.Size() + n += 1 + l + sovDex(uint64(l)) + } + if m.Reserves_2 != nil { + l = m.Reserves_2.Size() + n += 1 + l + sovDex(uint64(l)) + } + if m.PrevReserves_1 != nil { + l = m.PrevReserves_1.Size() + n += 1 + l + sovDex(uint64(l)) + } + if m.PrevReserves_2 != nil { + l = m.PrevReserves_2.Size() + n += 1 + l + sovDex(uint64(l)) + } + if m.Context != nil { + l = m.Context.Size() + n += 1 + l + sovDex(uint64(l)) + } + return n +} + +func (m *EventBatchSwap) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.BatchSwapOutputData != nil { + l = m.BatchSwapOutputData.Size() + n += 1 + l + sovDex(uint64(l)) + } + if m.SwapExecution_1For_2 != nil { + l = m.SwapExecution_1For_2.Size() + n += 1 + l + sovDex(uint64(l)) + } + if m.SwapExecution_2For_1 != nil { + l = m.SwapExecution_2For_1.Size() + n += 1 + l + sovDex(uint64(l)) + } + return n +} + +func (m *EventArbExecution) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Height != 0 { + n += 1 + sovDex(uint64(m.Height)) + } + if m.SwapExecution != nil { + l = m.SwapExecution.Size() + n += 1 + l + sovDex(uint64(l)) + } + return n +} + +func (m *EventValueCircuitBreakerCredit) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.AssetId != nil { + l = m.AssetId.Size() + n += 1 + l + sovDex(uint64(l)) + } + if m.PreviousBalance != nil { + l = m.PreviousBalance.Size() + n += 1 + l + sovDex(uint64(l)) + } + if m.NewBalance != nil { + l = m.NewBalance.Size() + n += 1 + l + sovDex(uint64(l)) + } + return n +} + +func (m *EventValueCircuitBreakerDebit) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.AssetId != nil { + l = m.AssetId.Size() + n += 1 + l + sovDex(uint64(l)) + } + if m.PreviousBalance != nil { + l = m.PreviousBalance.Size() + n += 1 + l + sovDex(uint64(l)) + } + if m.NewBalance != nil { + l = m.NewBalance.Size() + n += 1 + l + sovDex(uint64(l)) + } + return n +} + +func (m *DexParameters) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.IsEnabled { + n += 2 + } + if len(m.FixedCandidates) > 0 { + for _, e := range m.FixedCandidates { + l = e.Size() + n += 1 + l + sovDex(uint64(l)) + } + } + if m.MaxHops != 0 { + n += 1 + sovDex(uint64(m.MaxHops)) + } + return n +} + +func (m *GenesisContent) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.DexParams != nil { + l = m.DexParams.Size() + n += 1 + l + sovDex(uint64(l)) + } + return n +} + +func sovDex(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozDex(x uint64) (n int) { + return sovDex(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *ZKSwapProof) 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 ErrIntOverflowDex + } + 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: ZKSwapProof: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ZKSwapProof: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Inner", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDex + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthDex + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthDex + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Inner = append(m.Inner[:0], dAtA[iNdEx:postIndex]...) + if m.Inner == nil { + m.Inner = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipDex(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthDex + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ZKSwapClaimProof) 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 ErrIntOverflowDex + } + 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: ZKSwapClaimProof: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ZKSwapClaimProof: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Inner", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDex + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthDex + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthDex + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Inner = append(m.Inner[:0], dAtA[iNdEx:postIndex]...) + if m.Inner == nil { + m.Inner = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipDex(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthDex + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Swap) 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 ErrIntOverflowDex + } + 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: Swap: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Swap: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Proof", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDex + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthDex + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDex + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Proof == nil { + m.Proof = &ZKSwapProof{} + } + if err := m.Proof.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Body", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDex + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthDex + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDex + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Body == nil { + m.Body = &SwapBody{} + } + if err := m.Body.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipDex(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthDex + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SwapClaim) 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 ErrIntOverflowDex + } + 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: SwapClaim: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SwapClaim: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Proof", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDex + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthDex + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDex + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Proof == nil { + m.Proof = &ZKSwapClaimProof{} + } + if err := m.Proof.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Body", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDex + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthDex + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDex + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Body == nil { + m.Body = &SwapClaimBody{} + } + if err := m.Body.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EpochDuration", wireType) + } + m.EpochDuration = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDex + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.EpochDuration |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipDex(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthDex + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SwapClaimBody) 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 ErrIntOverflowDex + } + 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: SwapClaimBody: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SwapClaimBody: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Nullifier", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDex + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthDex + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDex + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Nullifier == nil { + m.Nullifier = &v1.Nullifier{} + } + if err := m.Nullifier.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Fee", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDex + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthDex + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDex + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Fee == nil { + m.Fee = &v11.Fee{} + } + if err := m.Fee.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Output_1Commitment", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDex + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthDex + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDex + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Output_1Commitment == nil { + m.Output_1Commitment = &v12.StateCommitment{} + } + if err := m.Output_1Commitment.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Output_2Commitment", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDex + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthDex + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDex + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Output_2Commitment == nil { + m.Output_2Commitment = &v12.StateCommitment{} + } + if err := m.Output_2Commitment.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OutputData", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDex + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthDex + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDex + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.OutputData == nil { + m.OutputData = &BatchSwapOutputData{} + } + if err := m.OutputData.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipDex(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthDex + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SwapBody) 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 ErrIntOverflowDex + } + 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: SwapBody: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SwapBody: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TradingPair", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDex + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthDex + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDex + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.TradingPair == nil { + m.TradingPair = &TradingPair{} + } + if err := m.TradingPair.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Delta_1I", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDex + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthDex + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDex + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Delta_1I == nil { + m.Delta_1I = &v13.Amount{} + } + if err := m.Delta_1I.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Delta_2I", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDex + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthDex + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDex + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Delta_2I == nil { + m.Delta_2I = &v13.Amount{} + } + if err := m.Delta_2I.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FeeCommitment", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDex + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthDex + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDex + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.FeeCommitment == nil { + m.FeeCommitment = &v14.BalanceCommitment{} + } + if err := m.FeeCommitment.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Payload", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDex + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthDex + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDex + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Payload == nil { + m.Payload = &SwapPayload{} + } + if err := m.Payload.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipDex(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthDex + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SwapPayload) 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 ErrIntOverflowDex + } + 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: SwapPayload: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SwapPayload: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Commitment", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDex + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthDex + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDex + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Commitment == nil { + m.Commitment = &v12.StateCommitment{} + } + if err := m.Commitment.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EncryptedSwap", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDex + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthDex + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthDex + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.EncryptedSwap = append(m.EncryptedSwap[:0], dAtA[iNdEx:postIndex]...) + if m.EncryptedSwap == nil { + m.EncryptedSwap = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipDex(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthDex + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } -func (m *EventPositionWithdraw) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.PositionId != nil { - l = m.PositionId.Size() - n += 1 + l + sovDex(uint64(l)) - } - if m.TradingPair != nil { - l = m.TradingPair.Size() - n += 1 + l + sovDex(uint64(l)) - } - if m.Reserves_1 != nil { - l = m.Reserves_1.Size() - n += 1 + l + sovDex(uint64(l)) - } - if m.Reserves_2 != nil { - l = m.Reserves_2.Size() - n += 1 + l + sovDex(uint64(l)) + if iNdEx > l { + return io.ErrUnexpectedEOF } - return n -} - -func sovDex(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozDex(x uint64) (n int) { - return sovDex(uint64((x << 1) ^ uint64((int64(x) >> 63)))) + return nil } -func (m *ZKSwapProof) Unmarshal(dAtA []byte) error { +func (m *SwapPlaintext) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -9308,15 +11498,195 @@ func (m *ZKSwapProof) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ZKSwapProof: wiretype end group for non-group") + return fmt.Errorf("proto: SwapPlaintext: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ZKSwapProof: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: SwapPlaintext: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Inner", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TradingPair", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDex + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthDex + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDex + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.TradingPair == nil { + m.TradingPair = &TradingPair{} + } + if err := m.TradingPair.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Delta_1I", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDex + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthDex + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDex + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Delta_1I == nil { + m.Delta_1I = &v13.Amount{} + } + if err := m.Delta_1I.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Delta_2I", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDex + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthDex + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDex + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Delta_2I == nil { + m.Delta_2I = &v13.Amount{} + } + if err := m.Delta_2I.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClaimFee", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDex + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthDex + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDex + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ClaimFee == nil { + m.ClaimFee = &v11.Fee{} + } + if err := m.ClaimFee.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClaimAddress", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDex + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthDex + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDex + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ClaimAddress == nil { + m.ClaimAddress = &v15.Address{} + } + if err := m.ClaimAddress.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Rseed", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { @@ -9343,9 +11713,9 @@ func (m *ZKSwapProof) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Inner = append(m.Inner[:0], dAtA[iNdEx:postIndex]...) - if m.Inner == nil { - m.Inner = []byte{} + m.Rseed = append(m.Rseed[:0], dAtA[iNdEx:postIndex]...) + if m.Rseed == nil { + m.Rseed = []byte{} } iNdEx = postIndex default: @@ -9369,7 +11739,7 @@ func (m *ZKSwapProof) Unmarshal(dAtA []byte) error { } return nil } -func (m *ZKSwapClaimProof) Unmarshal(dAtA []byte) error { +func (m *SwapPlan) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -9392,15 +11762,51 @@ func (m *ZKSwapClaimProof) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ZKSwapClaimProof: wiretype end group for non-group") + return fmt.Errorf("proto: SwapPlan: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ZKSwapClaimProof: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: SwapPlan: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Inner", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field SwapPlaintext", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDex + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthDex + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDex + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SwapPlaintext == nil { + m.SwapPlaintext = &SwapPlaintext{} + } + if err := m.SwapPlaintext.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FeeBlinding", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { @@ -9427,9 +11833,77 @@ func (m *ZKSwapClaimProof) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Inner = append(m.Inner[:0], dAtA[iNdEx:postIndex]...) - if m.Inner == nil { - m.Inner = []byte{} + m.FeeBlinding = append(m.FeeBlinding[:0], dAtA[iNdEx:postIndex]...) + if m.FeeBlinding == nil { + m.FeeBlinding = []byte{} + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ProofBlindingR", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDex + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthDex + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthDex + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ProofBlindingR = append(m.ProofBlindingR[:0], dAtA[iNdEx:postIndex]...) + if m.ProofBlindingR == nil { + m.ProofBlindingR = []byte{} + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ProofBlindingS", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDex + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthDex + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthDex + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ProofBlindingS = append(m.ProofBlindingS[:0], dAtA[iNdEx:postIndex]...) + if m.ProofBlindingS == nil { + m.ProofBlindingS = []byte{} } iNdEx = postIndex default: @@ -9453,7 +11927,7 @@ func (m *ZKSwapClaimProof) Unmarshal(dAtA []byte) error { } return nil } -func (m *Swap) Unmarshal(dAtA []byte) error { +func (m *SwapClaimPlan) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -9476,15 +11950,70 @@ func (m *Swap) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Swap: wiretype end group for non-group") + return fmt.Errorf("proto: SwapClaimPlan: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Swap: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: SwapClaimPlan: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Proof", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field SwapPlaintext", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDex + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthDex + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDex + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SwapPlaintext == nil { + m.SwapPlaintext = &SwapPlaintext{} + } + if err := m.SwapPlaintext.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Position", wireType) + } + m.Position = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDex + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Position |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OutputData", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -9511,18 +12040,71 @@ func (m *Swap) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Proof == nil { - m.Proof = &ZKSwapProof{} - } - if err := m.Proof.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + if m.OutputData == nil { + m.OutputData = &BatchSwapOutputData{} + } + if err := m.OutputData.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EpochDuration", wireType) + } + m.EpochDuration = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDex + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.EpochDuration |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ProofBlindingR", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDex + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthDex + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthDex + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ProofBlindingR = append(m.ProofBlindingR[:0], dAtA[iNdEx:postIndex]...) + if m.ProofBlindingR == nil { + m.ProofBlindingR = []byte{} } iNdEx = postIndex - case 4: + case 6: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Body", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ProofBlindingS", wireType) } - var msglen int + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowDex @@ -9532,26 +12114,24 @@ func (m *Swap) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + if byteLen < 0 { return ErrInvalidLengthDex } - postIndex := iNdEx + msglen + postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthDex } if postIndex > l { return io.ErrUnexpectedEOF } - if m.Body == nil { - m.Body = &SwapBody{} - } - if err := m.Body.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + m.ProofBlindingS = append(m.ProofBlindingS[:0], dAtA[iNdEx:postIndex]...) + if m.ProofBlindingS == nil { + m.ProofBlindingS = []byte{} } iNdEx = postIndex default: @@ -9575,7 +12155,7 @@ func (m *Swap) Unmarshal(dAtA []byte) error { } return nil } -func (m *SwapClaim) Unmarshal(dAtA []byte) error { +func (m *SwapView) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -9598,15 +12178,15 @@ func (m *SwapClaim) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: SwapClaim: wiretype end group for non-group") + return fmt.Errorf("proto: SwapView: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: SwapClaim: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: SwapView: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Proof", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Visible", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -9633,16 +12213,15 @@ func (m *SwapClaim) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Proof == nil { - m.Proof = &ZKSwapClaimProof{} - } - if err := m.Proof.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + v := &SwapView_Visible{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } + m.SwapView = &SwapView_Visible_{v} iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Body", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Opaque", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -9669,32 +12248,12 @@ func (m *SwapClaim) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Body == nil { - m.Body = &SwapClaimBody{} - } - if err := m.Body.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + v := &SwapView_Opaque{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } + m.SwapView = &SwapView_Opaque_{v} iNdEx = postIndex - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field EpochDuration", wireType) - } - m.EpochDuration = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDex - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.EpochDuration |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } default: iNdEx = preIndex skippy, err := skipDex(dAtA[iNdEx:]) @@ -9716,7 +12275,7 @@ func (m *SwapClaim) Unmarshal(dAtA []byte) error { } return nil } -func (m *SwapClaimBody) Unmarshal(dAtA []byte) error { +func (m *SwapView_Visible) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -9739,15 +12298,15 @@ func (m *SwapClaimBody) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: SwapClaimBody: wiretype end group for non-group") + return fmt.Errorf("proto: Visible: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: SwapClaimBody: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Visible: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Nullifier", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Swap", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -9774,16 +12333,16 @@ func (m *SwapClaimBody) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Nullifier == nil { - m.Nullifier = &v1alpha1.Nullifier{} + if m.Swap == nil { + m.Swap = &Swap{} } - if err := m.Nullifier.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Swap.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 2: + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Fee", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field SwapPlaintext", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -9810,16 +12369,16 @@ func (m *SwapClaimBody) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Fee == nil { - m.Fee = &v1alpha11.Fee{} + if m.SwapPlaintext == nil { + m.SwapPlaintext = &SwapPlaintext{} } - if err := m.Fee.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.SwapPlaintext.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 3: + case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Output_1Commitment", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ClaimTx", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -9846,16 +12405,16 @@ func (m *SwapClaimBody) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Output_1Commitment == nil { - m.Output_1Commitment = &v1alpha12.StateCommitment{} + if m.ClaimTx == nil { + m.ClaimTx = &v16.TransactionId{} } - if err := m.Output_1Commitment.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.ClaimTx.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 4: + case 20: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Output_2Commitment", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field BatchSwapOutputData", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -9882,16 +12441,16 @@ func (m *SwapClaimBody) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Output_2Commitment == nil { - m.Output_2Commitment = &v1alpha12.StateCommitment{} + if m.BatchSwapOutputData == nil { + m.BatchSwapOutputData = &BatchSwapOutputData{} } - if err := m.Output_2Commitment.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.BatchSwapOutputData.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 6: + case 30: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field OutputData", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Output_1", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -9918,66 +12477,16 @@ func (m *SwapClaimBody) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.OutputData == nil { - m.OutputData = &BatchSwapOutputData{} + if m.Output_1 == nil { + m.Output_1 = &v17.NoteView{} } - if err := m.OutputData.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Output_1.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipDex(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthDex - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SwapBody) 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 ErrIntOverflowDex - } - 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: SwapBody: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SwapBody: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + case 31: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TradingPair", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Output_2", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -10004,16 +12513,16 @@ func (m *SwapBody) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.TradingPair == nil { - m.TradingPair = &TradingPair{} + if m.Output_2 == nil { + m.Output_2 = &v17.NoteView{} } - if err := m.TradingPair.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Output_2.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 2: + case 40: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Delta_1I", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Asset_1Metadata", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -10040,16 +12549,16 @@ func (m *SwapBody) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Delta_1I == nil { - m.Delta_1I = &v1alpha13.Amount{} + if m.Asset_1Metadata == nil { + m.Asset_1Metadata = &v14.Metadata{} } - if err := m.Delta_1I.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Asset_1Metadata.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 3: + case 41: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Delta_2I", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Asset_2Metadata", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -10076,52 +12585,66 @@ func (m *SwapBody) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Delta_2I == nil { - m.Delta_2I = &v1alpha13.Amount{} + if m.Asset_2Metadata == nil { + m.Asset_2Metadata = &v14.Metadata{} } - if err := m.Delta_2I.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Asset_2Metadata.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FeeCommitment", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDex - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthDex + default: + iNdEx = preIndex + skippy, err := skipDex(dAtA[iNdEx:]) + if err != nil { + return err } - postIndex := iNdEx + msglen - if postIndex < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthDex } - if postIndex > l { + if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - if m.FeeCommitment == nil { - m.FeeCommitment = &v1alpha14.BalanceCommitment{} + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SwapView_Opaque) 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 ErrIntOverflowDex } - if err := m.FeeCommitment.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + if iNdEx >= l { + return io.ErrUnexpectedEOF } - iNdEx = postIndex - case 5: + 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: Opaque: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Opaque: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Payload", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Swap", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -10148,10 +12671,10 @@ func (m *SwapBody) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Payload == nil { - m.Payload = &SwapPayload{} + if m.Swap == nil { + m.Swap = &Swap{} } - if err := m.Payload.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Swap.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -10176,7 +12699,7 @@ func (m *SwapBody) Unmarshal(dAtA []byte) error { } return nil } -func (m *SwapPayload) Unmarshal(dAtA []byte) error { +func (m *SwapClaimView) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -10199,15 +12722,15 @@ func (m *SwapPayload) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: SwapPayload: wiretype end group for non-group") + return fmt.Errorf("proto: SwapClaimView: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: SwapPayload: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: SwapClaimView: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Commitment", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Visible", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -10234,18 +12757,17 @@ func (m *SwapPayload) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Commitment == nil { - m.Commitment = &v1alpha12.StateCommitment{} - } - if err := m.Commitment.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + v := &SwapClaimView_Visible{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } + m.SwapClaimView = &SwapClaimView_Visible_{v} iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EncryptedSwap", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Opaque", wireType) } - var byteLen int + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowDex @@ -10255,25 +12777,26 @@ func (m *SwapPayload) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { + if msglen < 0 { return ErrInvalidLengthDex } - postIndex := iNdEx + byteLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthDex } if postIndex > l { return io.ErrUnexpectedEOF } - m.EncryptedSwap = append(m.EncryptedSwap[:0], dAtA[iNdEx:postIndex]...) - if m.EncryptedSwap == nil { - m.EncryptedSwap = []byte{} + v := &SwapClaimView_Opaque{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } + m.SwapClaimView = &SwapClaimView_Opaque_{v} iNdEx = postIndex default: iNdEx = preIndex @@ -10296,7 +12819,7 @@ func (m *SwapPayload) Unmarshal(dAtA []byte) error { } return nil } -func (m *SwapPlaintext) Unmarshal(dAtA []byte) error { +func (m *SwapClaimView_Visible) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -10319,15 +12842,15 @@ func (m *SwapPlaintext) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: SwapPlaintext: wiretype end group for non-group") + return fmt.Errorf("proto: Visible: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: SwapPlaintext: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Visible: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TradingPair", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field SwapClaim", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -10354,16 +12877,16 @@ func (m *SwapPlaintext) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.TradingPair == nil { - m.TradingPair = &TradingPair{} + if m.SwapClaim == nil { + m.SwapClaim = &SwapClaim{} } - if err := m.TradingPair.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.SwapClaim.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Delta_1I", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Output_1", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -10390,16 +12913,16 @@ func (m *SwapPlaintext) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Delta_1I == nil { - m.Delta_1I = &v1alpha13.Amount{} + if m.Output_1 == nil { + m.Output_1 = &v17.NoteView{} } - if err := m.Delta_1I.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Output_1.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Delta_2I", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Output_2", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -10426,16 +12949,16 @@ func (m *SwapPlaintext) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Delta_2I == nil { - m.Delta_2I = &v1alpha13.Amount{} + if m.Output_2 == nil { + m.Output_2 = &v17.NoteView{} } - if err := m.Delta_2I.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Output_2.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClaimFee", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field SwapTx", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -10462,54 +12985,68 @@ func (m *SwapPlaintext) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.ClaimFee == nil { - m.ClaimFee = &v1alpha11.Fee{} + if m.SwapTx == nil { + m.SwapTx = &v16.TransactionId{} } - if err := m.ClaimFee.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.SwapTx.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClaimAddress", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDex - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthDex + default: + iNdEx = preIndex + skippy, err := skipDex(dAtA[iNdEx:]) + if err != nil { + return err } - postIndex := iNdEx + msglen - if postIndex < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthDex } - if postIndex > l { + if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - if m.ClaimAddress == nil { - m.ClaimAddress = &v1alpha15.Address{} + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SwapClaimView_Opaque) 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 ErrIntOverflowDex } - if err := m.ClaimAddress.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + if iNdEx >= l { + return io.ErrUnexpectedEOF } - iNdEx = postIndex - case 6: + 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: Opaque: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Opaque: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Rseed", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field SwapClaim", wireType) } - var byteLen int + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowDex @@ -10519,24 +13056,26 @@ func (m *SwapPlaintext) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { + if msglen < 0 { return ErrInvalidLengthDex } - postIndex := iNdEx + byteLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthDex } if postIndex > l { return io.ErrUnexpectedEOF } - m.Rseed = append(m.Rseed[:0], dAtA[iNdEx:postIndex]...) - if m.Rseed == nil { - m.Rseed = []byte{} + if m.SwapClaim == nil { + m.SwapClaim = &SwapClaim{} + } + if err := m.SwapClaim.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } iNdEx = postIndex default: @@ -10560,7 +13099,7 @@ func (m *SwapPlaintext) Unmarshal(dAtA []byte) error { } return nil } -func (m *SwapPlan) Unmarshal(dAtA []byte) error { +func (m *TradingPair) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -10583,15 +13122,15 @@ func (m *SwapPlan) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: SwapPlan: wiretype end group for non-group") + return fmt.Errorf("proto: TradingPair: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: SwapPlan: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: TradingPair: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SwapPlaintext", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Asset_1", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -10618,18 +13157,18 @@ func (m *SwapPlan) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.SwapPlaintext == nil { - m.SwapPlaintext = &SwapPlaintext{} + if m.Asset_1 == nil { + m.Asset_1 = &v14.AssetId{} } - if err := m.SwapPlaintext.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Asset_1.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FeeBlinding", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Asset_2", wireType) } - var byteLen int + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowDex @@ -10639,31 +13178,83 @@ func (m *SwapPlan) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { + if msglen < 0 { return ErrInvalidLengthDex } - postIndex := iNdEx + byteLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthDex } if postIndex > l { return io.ErrUnexpectedEOF } - m.FeeBlinding = append(m.FeeBlinding[:0], dAtA[iNdEx:postIndex]...) - if m.FeeBlinding == nil { - m.FeeBlinding = []byte{} + if m.Asset_2 == nil { + m.Asset_2 = &v14.AssetId{} + } + if err := m.Asset_2.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } iNdEx = postIndex - case 3: + default: + iNdEx = preIndex + skippy, err := skipDex(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthDex + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DirectedTradingPair) 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 ErrIntOverflowDex + } + 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: DirectedTradingPair: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DirectedTradingPair: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ProofBlindingR", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Start", wireType) } - var byteLen int + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowDex @@ -10673,31 +13264,33 @@ func (m *SwapPlan) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { + if msglen < 0 { return ErrInvalidLengthDex } - postIndex := iNdEx + byteLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthDex } if postIndex > l { return io.ErrUnexpectedEOF } - m.ProofBlindingR = append(m.ProofBlindingR[:0], dAtA[iNdEx:postIndex]...) - if m.ProofBlindingR == nil { - m.ProofBlindingR = []byte{} + if m.Start == nil { + m.Start = &v14.AssetId{} + } + if err := m.Start.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } iNdEx = postIndex - case 4: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ProofBlindingS", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field End", wireType) } - var byteLen int + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowDex @@ -10707,24 +13300,26 @@ func (m *SwapPlan) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { + if msglen < 0 { return ErrInvalidLengthDex } - postIndex := iNdEx + byteLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthDex } if postIndex > l { return io.ErrUnexpectedEOF } - m.ProofBlindingS = append(m.ProofBlindingS[:0], dAtA[iNdEx:postIndex]...) - if m.ProofBlindingS == nil { - m.ProofBlindingS = []byte{} + if m.End == nil { + m.End = &v14.AssetId{} + } + if err := m.End.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } iNdEx = postIndex default: @@ -10748,7 +13343,7 @@ func (m *SwapPlan) Unmarshal(dAtA []byte) error { } return nil } -func (m *SwapClaimPlan) Unmarshal(dAtA []byte) error { +func (m *BatchSwapOutputData) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -10771,15 +13366,15 @@ func (m *SwapClaimPlan) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: SwapClaimPlan: wiretype end group for non-group") + return fmt.Errorf("proto: BatchSwapOutputData: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: SwapClaimPlan: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: BatchSwapOutputData: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SwapPlaintext", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Delta_1", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -10806,35 +13401,16 @@ func (m *SwapClaimPlan) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.SwapPlaintext == nil { - m.SwapPlaintext = &SwapPlaintext{} + if m.Delta_1 == nil { + m.Delta_1 = &v13.Amount{} } - if err := m.SwapPlaintext.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Delta_1.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Position", wireType) - } - m.Position = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDex - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Position |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field OutputData", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Delta_2", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -10861,37 +13437,18 @@ func (m *SwapClaimPlan) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.OutputData == nil { - m.OutputData = &BatchSwapOutputData{} + if m.Delta_2 == nil { + m.Delta_2 = &v13.Amount{} } - if err := m.OutputData.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Delta_2.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field EpochDuration", wireType) - } - m.EpochDuration = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDex - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.EpochDuration |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ProofBlindingR", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Lambda_1", wireType) } - var byteLen int + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowDex @@ -10901,31 +13458,33 @@ func (m *SwapClaimPlan) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { + if msglen < 0 { return ErrInvalidLengthDex } - postIndex := iNdEx + byteLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthDex } if postIndex > l { return io.ErrUnexpectedEOF } - m.ProofBlindingR = append(m.ProofBlindingR[:0], dAtA[iNdEx:postIndex]...) - if m.ProofBlindingR == nil { - m.ProofBlindingR = []byte{} + if m.Lambda_1 == nil { + m.Lambda_1 = &v13.Amount{} + } + if err := m.Lambda_1.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } iNdEx = postIndex - case 6: + case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ProofBlindingS", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Lambda_2", wireType) } - var byteLen int + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowDex @@ -10935,79 +13494,31 @@ func (m *SwapClaimPlan) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { + if msglen < 0 { return ErrInvalidLengthDex } - postIndex := iNdEx + byteLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthDex } if postIndex > l { return io.ErrUnexpectedEOF } - m.ProofBlindingS = append(m.ProofBlindingS[:0], dAtA[iNdEx:postIndex]...) - if m.ProofBlindingS == nil { - m.ProofBlindingS = []byte{} + if m.Lambda_2 == nil { + m.Lambda_2 = &v13.Amount{} } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipDex(dAtA[iNdEx:]) - if err != nil { + if err := m.Lambda_2.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthDex - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SwapView) 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 ErrIntOverflowDex - } - 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: SwapView: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SwapView: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + iNdEx = postIndex + case 5: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Visible", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Unfilled_1", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -11034,15 +13545,16 @@ func (m *SwapView) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &SwapView_Visible{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if m.Unfilled_1 == nil { + m.Unfilled_1 = &v13.Amount{} + } + if err := m.Unfilled_1.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.SwapView = &SwapView_Visible_{v} iNdEx = postIndex - case 2: + case 6: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Opaque", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Unfilled_2", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -11069,65 +13581,35 @@ func (m *SwapView) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &SwapView_Opaque{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + if m.Unfilled_2 == nil { + m.Unfilled_2 = &v13.Amount{} } - m.SwapView = &SwapView_Opaque_{v} - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipDex(dAtA[iNdEx:]) - if err != nil { + if err := m.Unfilled_2.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthDex - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SwapView_Visible) 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 ErrIntOverflowDex - } - if iNdEx >= l { - return io.ErrUnexpectedEOF + iNdEx = postIndex + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + m.Height = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDex + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Height |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Visible: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Visible: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + case 8: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Swap", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TradingPair", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -11154,18 +13636,18 @@ func (m *SwapView_Visible) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Swap == nil { - m.Swap = &Swap{} + if m.TradingPair == nil { + m.TradingPair = &TradingPair{} } - if err := m.Swap.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.TradingPair.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SwapPlaintext", wireType) + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EpochStartingHeight", wireType) } - var msglen int + m.EpochStartingHeight = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowDex @@ -11175,28 +13657,11 @@ func (m *SwapView_Visible) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + m.EpochStartingHeight |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return ErrInvalidLengthDex - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDex - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.SwapPlaintext == nil { - m.SwapPlaintext = &SwapPlaintext{} - } - if err := m.SwapPlaintext.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipDex(dAtA[iNdEx:]) @@ -11218,7 +13683,7 @@ func (m *SwapView_Visible) Unmarshal(dAtA []byte) error { } return nil } -func (m *SwapView_Opaque) Unmarshal(dAtA []byte) error { +func (m *TradingFunction) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -11241,15 +13706,15 @@ func (m *SwapView_Opaque) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Opaque: wiretype end group for non-group") + return fmt.Errorf("proto: TradingFunction: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Opaque: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: TradingFunction: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Swap", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Component", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -11276,10 +13741,46 @@ func (m *SwapView_Opaque) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Swap == nil { - m.Swap = &Swap{} + if m.Component == nil { + m.Component = &BareTradingFunction{} } - if err := m.Swap.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Component.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pair", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDex + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthDex + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDex + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pair == nil { + m.Pair = &TradingPair{} + } + if err := m.Pair.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -11304,7 +13805,7 @@ func (m *SwapView_Opaque) Unmarshal(dAtA []byte) error { } return nil } -func (m *SwapClaimView) Unmarshal(dAtA []byte) error { +func (m *BareTradingFunction) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -11327,15 +13828,34 @@ func (m *SwapClaimView) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: SwapClaimView: wiretype end group for non-group") + return fmt.Errorf("proto: BareTradingFunction: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: SwapClaimView: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: BareTradingFunction: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Fee", wireType) + } + m.Fee = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDex + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Fee |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Visible", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field P", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -11362,15 +13882,16 @@ func (m *SwapClaimView) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &SwapClaimView_Visible{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if m.P == nil { + m.P = &v13.Amount{} + } + if err := m.P.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.SwapClaimView = &SwapClaimView_Visible_{v} iNdEx = postIndex - case 2: + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Opaque", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Q", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -11397,11 +13918,12 @@ func (m *SwapClaimView) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &SwapClaimView_Opaque{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if m.Q == nil { + m.Q = &v13.Amount{} + } + if err := m.Q.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.SwapClaimView = &SwapClaimView_Opaque_{v} iNdEx = postIndex default: iNdEx = preIndex @@ -11424,7 +13946,7 @@ func (m *SwapClaimView) Unmarshal(dAtA []byte) error { } return nil } -func (m *SwapClaimView_Visible) Unmarshal(dAtA []byte) error { +func (m *Reserves) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -11447,15 +13969,15 @@ func (m *SwapClaimView_Visible) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Visible: wiretype end group for non-group") + return fmt.Errorf("proto: Reserves: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Visible: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Reserves: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SwapClaim", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field R1", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -11482,52 +14004,16 @@ func (m *SwapClaimView_Visible) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.SwapClaim == nil { - m.SwapClaim = &SwapClaim{} + if m.R1 == nil { + m.R1 = &v13.Amount{} } - if err := m.SwapClaim.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.R1.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Output_1", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDex - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthDex - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDex - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Output_1 == nil { - m.Output_1 = &v1alpha16.NoteView{} - } - if err := m.Output_1.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Output_2", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field R2", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -11554,10 +14040,10 @@ func (m *SwapClaimView_Visible) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Output_2 == nil { - m.Output_2 = &v1alpha16.NoteView{} + if m.R2 == nil { + m.R2 = &v13.Amount{} } - if err := m.Output_2.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.R2.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -11582,7 +14068,7 @@ func (m *SwapClaimView_Visible) Unmarshal(dAtA []byte) error { } return nil } -func (m *SwapClaimView_Opaque) Unmarshal(dAtA []byte) error { +func (m *Position) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -11605,15 +14091,15 @@ func (m *SwapClaimView_Opaque) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Opaque: wiretype end group for non-group") + return fmt.Errorf("proto: Position: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Opaque: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Position: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SwapClaim", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Phi", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -11640,66 +14126,50 @@ func (m *SwapClaimView_Opaque) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.SwapClaim == nil { - m.SwapClaim = &SwapClaim{} + if m.Phi == nil { + m.Phi = &TradingFunction{} } - if err := m.SwapClaim.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Phi.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipDex(dAtA[iNdEx:]) - if err != nil { - return err + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Nonce", wireType) } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthDex + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDex + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF + if byteLen < 0 { + return ErrInvalidLengthDex } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *TradingPair) 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 ErrIntOverflowDex + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthDex } - if iNdEx >= l { + if postIndex > l { return io.ErrUnexpectedEOF } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + m.Nonce = append(m.Nonce[:0], dAtA[iNdEx:postIndex]...) + if m.Nonce == nil { + m.Nonce = []byte{} } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: TradingPair: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TradingPair: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + iNdEx = postIndex + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Asset_1", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -11726,16 +14196,16 @@ func (m *TradingPair) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Asset_1 == nil { - m.Asset_1 = &v1alpha14.AssetId{} + if m.State == nil { + m.State = &PositionState{} } - if err := m.Asset_1.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 2: + case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Asset_2", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Reserves", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -11762,13 +14232,33 @@ func (m *TradingPair) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Asset_2 == nil { - m.Asset_2 = &v1alpha14.AssetId{} + if m.Reserves == nil { + m.Reserves = &Reserves{} } - if err := m.Asset_2.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Reserves.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CloseOnFill", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDex + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.CloseOnFill = bool(v != 0) default: iNdEx = preIndex skippy, err := skipDex(dAtA[iNdEx:]) @@ -11790,7 +14280,7 @@ func (m *TradingPair) Unmarshal(dAtA []byte) error { } return nil } -func (m *DirectedTradingPair) Unmarshal(dAtA []byte) error { +func (m *PositionId) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -11813,17 +14303,17 @@ func (m *DirectedTradingPair) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: DirectedTradingPair: wiretype end group for non-group") + return fmt.Errorf("proto: PositionId: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: DirectedTradingPair: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: PositionId: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Start", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Inner", wireType) } - var msglen int + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowDex @@ -11833,33 +14323,31 @@ func (m *DirectedTradingPair) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + if byteLen < 0 { return ErrInvalidLengthDex } - postIndex := iNdEx + msglen + postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthDex } if postIndex > l { return io.ErrUnexpectedEOF } - if m.Start == nil { - m.Start = &v1alpha14.AssetId{} - } - if err := m.Start.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + m.Inner = append(m.Inner[:0], dAtA[iNdEx:postIndex]...) + if m.Inner == nil { + m.Inner = []byte{} } iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field End", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AltBech32M", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowDex @@ -11869,27 +14357,23 @@ func (m *DirectedTradingPair) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthDex } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthDex } if postIndex > l { return io.ErrUnexpectedEOF } - if m.End == nil { - m.End = &v1alpha14.AssetId{} - } - if err := m.End.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.AltBech32M = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -11912,7 +14396,7 @@ func (m *DirectedTradingPair) Unmarshal(dAtA []byte) error { } return nil } -func (m *BatchSwapOutputData) Unmarshal(dAtA []byte) error { +func (m *PositionState) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -11935,17 +14419,17 @@ func (m *BatchSwapOutputData) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: BatchSwapOutputData: wiretype end group for non-group") + return fmt.Errorf("proto: PositionState: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: BatchSwapOutputData: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: PositionState: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Delta_1", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) } - var msglen int + m.State = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowDex @@ -11955,69 +14439,16 @@ func (m *BatchSwapOutputData) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + m.State |= PositionState_PositionStateEnum(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return ErrInvalidLengthDex - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDex - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Delta_1 == nil { - m.Delta_1 = &v1alpha13.Amount{} - } - if err := m.Delta_1.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Delta_2", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDex - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthDex - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDex - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Delta_2 == nil { - m.Delta_2 = &v1alpha13.Amount{} - } - if err := m.Delta_2.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Lambda_1", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Sequence", wireType) } - var msglen int + m.Sequence = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowDex @@ -12027,103 +14458,64 @@ func (m *BatchSwapOutputData) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + m.Sequence |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return ErrInvalidLengthDex - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDex - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Lambda_1 == nil { - m.Lambda_1 = &v1alpha13.Amount{} - } - if err := m.Lambda_1.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + default: + iNdEx = preIndex + skippy, err := skipDex(dAtA[iNdEx:]) + if err != nil { return err } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Lambda_2", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDex - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthDex - } - postIndex := iNdEx + msglen - if postIndex < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthDex } - if postIndex > l { + if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - if m.Lambda_2 == nil { - m.Lambda_2 = &v1alpha13.Amount{} - } - if err := m.Lambda_2.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Unfilled_1", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDex - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthDex - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDex + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *LpNft) 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 ErrIntOverflowDex } - if postIndex > l { + if iNdEx >= l { return io.ErrUnexpectedEOF } - if m.Unfilled_1 == nil { - m.Unfilled_1 = &v1alpha13.Amount{} - } - if err := m.Unfilled_1.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break } - iNdEx = postIndex - case 6: + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: LpNft: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: LpNft: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Unfilled_2", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field PositionId", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -12150,35 +14542,16 @@ func (m *BatchSwapOutputData) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Unfilled_2 == nil { - m.Unfilled_2 = &v1alpha13.Amount{} + if m.PositionId == nil { + m.PositionId = &PositionId{} } - if err := m.Unfilled_2.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.PositionId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) - } - m.Height = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDex - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Height |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 8: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TradingPair", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -12205,32 +14578,13 @@ func (m *BatchSwapOutputData) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.TradingPair == nil { - m.TradingPair = &TradingPair{} + if m.State == nil { + m.State = &PositionState{} } - if err := m.TradingPair.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 9: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field EpochStartingHeight", wireType) - } - m.EpochStartingHeight = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDex - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.EpochStartingHeight |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } default: iNdEx = preIndex skippy, err := skipDex(dAtA[iNdEx:]) @@ -12252,7 +14606,7 @@ func (m *BatchSwapOutputData) Unmarshal(dAtA []byte) error { } return nil } -func (m *TradingFunction) Unmarshal(dAtA []byte) error { +func (m *PositionOpen) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -12275,15 +14629,15 @@ func (m *TradingFunction) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: TradingFunction: wiretype end group for non-group") + return fmt.Errorf("proto: PositionOpen: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: TradingFunction: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: PositionOpen: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Component", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Position", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -12310,16 +14664,66 @@ func (m *TradingFunction) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Component == nil { - m.Component = &BareTradingFunction{} + if m.Position == nil { + m.Position = &Position{} } - if err := m.Component.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Position.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 2: + default: + iNdEx = preIndex + skippy, err := skipDex(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthDex + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *PositionClose) 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 ErrIntOverflowDex + } + 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: PositionClose: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PositionClose: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Pair", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field PositionId", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -12346,10 +14750,10 @@ func (m *TradingFunction) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Pair == nil { - m.Pair = &TradingPair{} + if m.PositionId == nil { + m.PositionId = &PositionId{} } - if err := m.Pair.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.PositionId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -12374,7 +14778,7 @@ func (m *TradingFunction) Unmarshal(dAtA []byte) error { } return nil } -func (m *BareTradingFunction) Unmarshal(dAtA []byte) error { +func (m *PositionWithdraw) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -12397,34 +14801,15 @@ func (m *BareTradingFunction) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: BareTradingFunction: wiretype end group for non-group") + return fmt.Errorf("proto: PositionWithdraw: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: BareTradingFunction: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: PositionWithdraw: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Fee", wireType) - } - m.Fee = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDex - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Fee |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field P", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field PositionId", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -12451,16 +14836,16 @@ func (m *BareTradingFunction) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.P == nil { - m.P = &v1alpha13.Amount{} + if m.PositionId == nil { + m.PositionId = &PositionId{} } - if err := m.P.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.PositionId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 3: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Q", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ReservesCommitment", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -12487,13 +14872,32 @@ func (m *BareTradingFunction) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Q == nil { - m.Q = &v1alpha13.Amount{} + if m.ReservesCommitment == nil { + m.ReservesCommitment = &v14.BalanceCommitment{} } - if err := m.Q.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.ReservesCommitment.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Sequence", wireType) + } + m.Sequence = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDex + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Sequence |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipDex(dAtA[iNdEx:]) @@ -12515,7 +14919,7 @@ func (m *BareTradingFunction) Unmarshal(dAtA []byte) error { } return nil } -func (m *Reserves) Unmarshal(dAtA []byte) error { +func (m *PositionRewardClaim) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -12538,15 +14942,15 @@ func (m *Reserves) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Reserves: wiretype end group for non-group") + return fmt.Errorf("proto: PositionRewardClaim: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Reserves: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: PositionRewardClaim: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field R1", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field PositionId", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -12573,16 +14977,16 @@ func (m *Reserves) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.R1 == nil { - m.R1 = &v1alpha13.Amount{} + if m.PositionId == nil { + m.PositionId = &PositionId{} } - if err := m.R1.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.PositionId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field R2", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field RewardsCommitment", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -12609,10 +15013,10 @@ func (m *Reserves) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.R2 == nil { - m.R2 = &v1alpha13.Amount{} + if m.RewardsCommitment == nil { + m.RewardsCommitment = &v14.BalanceCommitment{} } - if err := m.R2.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.RewardsCommitment.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -12637,7 +15041,7 @@ func (m *Reserves) Unmarshal(dAtA []byte) error { } return nil } -func (m *Position) Unmarshal(dAtA []byte) error { +func (m *SwapExecution) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -12660,53 +15064,17 @@ func (m *Position) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Position: wiretype end group for non-group") + return fmt.Errorf("proto: SwapExecution: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Position: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: SwapExecution: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Phi", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDex - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthDex - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDex - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Phi == nil { - m.Phi = &TradingFunction{} - } - if err := m.Phi.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Nonce", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Traces", wireType) } - var byteLen int + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowDex @@ -12716,29 +15084,29 @@ func (m *Position) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { + if msglen < 0 { return ErrInvalidLengthDex } - postIndex := iNdEx + byteLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthDex } if postIndex > l { return io.ErrUnexpectedEOF } - m.Nonce = append(m.Nonce[:0], dAtA[iNdEx:postIndex]...) - if m.Nonce == nil { - m.Nonce = []byte{} + m.Traces = append(m.Traces, &SwapExecution_Trace{}) + if err := m.Traces[len(m.Traces)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } iNdEx = postIndex - case 3: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Input", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -12765,16 +15133,16 @@ func (m *Position) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.State == nil { - m.State = &PositionState{} + if m.Input == nil { + m.Input = &v14.Value{} } - if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Input.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 4: + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reserves", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Output", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -12801,33 +15169,13 @@ func (m *Position) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Reserves == nil { - m.Reserves = &Reserves{} + if m.Output == nil { + m.Output = &v14.Value{} } - if err := m.Reserves.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Output.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CloseOnFill", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDex - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.CloseOnFill = bool(v != 0) default: iNdEx = preIndex skippy, err := skipDex(dAtA[iNdEx:]) @@ -12849,7 +15197,7 @@ func (m *Position) Unmarshal(dAtA []byte) error { } return nil } -func (m *PositionId) Unmarshal(dAtA []byte) error { +func (m *SwapExecution_Trace) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -12872,17 +15220,17 @@ func (m *PositionId) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: PositionId: wiretype end group for non-group") + return fmt.Errorf("proto: Trace: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: PositionId: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Trace: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Inner", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) } - var byteLen int + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowDex @@ -12892,57 +15240,25 @@ func (m *PositionId) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { + if msglen < 0 { return ErrInvalidLengthDex } - postIndex := iNdEx + byteLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthDex } if postIndex > l { return io.ErrUnexpectedEOF } - m.Inner = append(m.Inner[:0], dAtA[iNdEx:postIndex]...) - if m.Inner == nil { - m.Inner = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AltBech32M", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDex - } - 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 ErrInvalidLengthDex - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthDex - } - if postIndex > l { - return io.ErrUnexpectedEOF + m.Value = append(m.Value, &v14.Value{}) + if err := m.Value[len(m.Value)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } - m.AltBech32M = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -12965,7 +15281,7 @@ func (m *PositionId) Unmarshal(dAtA []byte) error { } return nil } -func (m *PositionState) Unmarshal(dAtA []byte) error { +func (m *PositionWithdrawPlan) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -12988,17 +15304,125 @@ func (m *PositionState) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: PositionState: wiretype end group for non-group") + return fmt.Errorf("proto: PositionWithdrawPlan: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: PositionState: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: PositionWithdrawPlan: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Reserves", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDex + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthDex + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDex + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Reserves == nil { + m.Reserves = &Reserves{} + } + if err := m.Reserves.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PositionId", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDex + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthDex + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDex + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.PositionId == nil { + m.PositionId = &PositionId{} + } + if err := m.PositionId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pair", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDex + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthDex + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDex + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pair == nil { + m.Pair = &TradingPair{} + } + if err := m.Pair.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Sequence", wireType) } - m.State = 0 + m.Sequence = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowDex @@ -13008,11 +15432,45 @@ func (m *PositionState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.State |= PositionState_PositionStateEnum(b&0x7F) << shift + m.Sequence |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Rewards", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDex + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } + if msglen < 0 { + return ErrInvalidLengthDex + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDex + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Rewards = append(m.Rewards, &v14.Value{}) + if err := m.Rewards[len(m.Rewards)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipDex(dAtA[iNdEx:]) @@ -13034,7 +15492,7 @@ func (m *PositionState) Unmarshal(dAtA []byte) error { } return nil } -func (m *LpNft) Unmarshal(dAtA []byte) error { +func (m *PositionRewardClaimPlan) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -13057,51 +15515,15 @@ func (m *LpNft) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: LpNft: wiretype end group for non-group") + return fmt.Errorf("proto: PositionRewardClaimPlan: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: LpNft: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: PositionRewardClaimPlan: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PositionId", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDex - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthDex - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDex - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.PositionId == nil { - m.PositionId = &PositionId{} - } - if err := m.PositionId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Reserves", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -13128,10 +15550,10 @@ func (m *LpNft) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.State == nil { - m.State = &PositionState{} + if m.Reserves == nil { + m.Reserves = &Reserves{} } - if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Reserves.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -13156,7 +15578,7 @@ func (m *LpNft) Unmarshal(dAtA []byte) error { } return nil } -func (m *PositionOpen) Unmarshal(dAtA []byte) error { +func (m *BatchSwapOutputDataRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -13179,15 +15601,34 @@ func (m *PositionOpen) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: PositionOpen: wiretype end group for non-group") + return fmt.Errorf("proto: BatchSwapOutputDataRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: PositionOpen: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: BatchSwapOutputDataRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) + } + m.Height = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDex + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Height |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Position", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TradingPair", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -13214,10 +15655,10 @@ func (m *PositionOpen) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Position == nil { - m.Position = &Position{} + if m.TradingPair == nil { + m.TradingPair = &TradingPair{} } - if err := m.Position.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.TradingPair.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -13242,7 +15683,7 @@ func (m *PositionOpen) Unmarshal(dAtA []byte) error { } return nil } -func (m *PositionClose) Unmarshal(dAtA []byte) error { +func (m *BatchSwapOutputDataResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -13265,15 +15706,15 @@ func (m *PositionClose) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: PositionClose: wiretype end group for non-group") + return fmt.Errorf("proto: BatchSwapOutputDataResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: PositionClose: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: BatchSwapOutputDataResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PositionId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -13300,10 +15741,10 @@ func (m *PositionClose) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.PositionId == nil { - m.PositionId = &PositionId{} + if m.Data == nil { + m.Data = &BatchSwapOutputData{} } - if err := m.PositionId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Data.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -13328,7 +15769,7 @@ func (m *PositionClose) Unmarshal(dAtA []byte) error { } return nil } -func (m *PositionWithdraw) Unmarshal(dAtA []byte) error { +func (m *SwapExecutionRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -13351,17 +15792,17 @@ func (m *PositionWithdraw) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: PositionWithdraw: wiretype end group for non-group") + return fmt.Errorf("proto: SwapExecutionRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: PositionWithdraw: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: SwapExecutionRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PositionId", wireType) + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) } - var msglen int + m.Height = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowDex @@ -13371,31 +15812,14 @@ func (m *PositionWithdraw) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + m.Height |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return ErrInvalidLengthDex - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDex - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.PositionId == nil { - m.PositionId = &PositionId{} - } - if err := m.PositionId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ReservesCommitment", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TradingPair", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -13422,10 +15846,10 @@ func (m *PositionWithdraw) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.ReservesCommitment == nil { - m.ReservesCommitment = &v1alpha14.BalanceCommitment{} + if m.TradingPair == nil { + m.TradingPair = &DirectedTradingPair{} } - if err := m.ReservesCommitment.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.TradingPair.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -13450,7 +15874,7 @@ func (m *PositionWithdraw) Unmarshal(dAtA []byte) error { } return nil } -func (m *PositionRewardClaim) Unmarshal(dAtA []byte) error { +func (m *SwapExecutionResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -13473,51 +15897,15 @@ func (m *PositionRewardClaim) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: PositionRewardClaim: wiretype end group for non-group") + return fmt.Errorf("proto: SwapExecutionResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: PositionRewardClaim: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: SwapExecutionResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PositionId", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDex - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthDex - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDex - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.PositionId == nil { - m.PositionId = &PositionId{} - } - if err := m.PositionId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RewardsCommitment", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field SwapExecution", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -13544,10 +15932,10 @@ func (m *PositionRewardClaim) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.RewardsCommitment == nil { - m.RewardsCommitment = &v1alpha14.BalanceCommitment{} + if m.SwapExecution == nil { + m.SwapExecution = &SwapExecution{} } - if err := m.RewardsCommitment.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.SwapExecution.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -13572,7 +15960,7 @@ func (m *PositionRewardClaim) Unmarshal(dAtA []byte) error { } return nil } -func (m *SwapExecution) Unmarshal(dAtA []byte) error { +func (m *ArbExecutionRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -13595,17 +15983,17 @@ func (m *SwapExecution) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: SwapExecution: wiretype end group for non-group") + return fmt.Errorf("proto: ArbExecutionRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: SwapExecution: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ArbExecutionRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Traces", wireType) + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) } - var msglen int + m.Height = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowDex @@ -13615,29 +16003,64 @@ func (m *SwapExecution) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + m.Height |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return ErrInvalidLengthDex + default: + iNdEx = preIndex + skippy, err := skipDex(dAtA[iNdEx:]) + if err != nil { + return err } - postIndex := iNdEx + msglen - if postIndex < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthDex } - if postIndex > l { + if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.Traces = append(m.Traces, &SwapExecution_Trace{}) - if err := m.Traces[len(m.Traces)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ArbExecutionResponse) 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 ErrIntOverflowDex } - iNdEx = postIndex - case 2: + 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: ArbExecutionResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ArbExecutionResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Input", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field SwapExecution", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -13664,18 +16087,18 @@ func (m *SwapExecution) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Input == nil { - m.Input = &v1alpha14.Value{} + if m.SwapExecution == nil { + m.SwapExecution = &SwapExecution{} } - if err := m.Input.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.SwapExecution.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Output", wireType) + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) } - var msglen int + m.Height = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowDex @@ -13685,28 +16108,11 @@ func (m *SwapExecution) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + m.Height |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return ErrInvalidLengthDex - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDex - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Output == nil { - m.Output = &v1alpha14.Value{} - } - if err := m.Output.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipDex(dAtA[iNdEx:]) @@ -13728,7 +16134,7 @@ func (m *SwapExecution) Unmarshal(dAtA []byte) error { } return nil } -func (m *SwapExecution_Trace) Unmarshal(dAtA []byte) error { +func (m *SwapExecutionsRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -13751,15 +16157,53 @@ func (m *SwapExecution_Trace) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Trace: wiretype end group for non-group") + return fmt.Errorf("proto: SwapExecutionsRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Trace: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: SwapExecutionsRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field StartHeight", wireType) + } + m.StartHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDex + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.StartHeight |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EndHeight", wireType) + } + m.EndHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDex + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.EndHeight |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TradingPair", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -13786,8 +16230,10 @@ func (m *SwapExecution_Trace) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Value = append(m.Value, &v1alpha14.Value{}) - if err := m.Value[len(m.Value)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if m.TradingPair == nil { + m.TradingPair = &DirectedTradingPair{} + } + if err := m.TradingPair.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -13812,7 +16258,7 @@ func (m *SwapExecution_Trace) Unmarshal(dAtA []byte) error { } return nil } -func (m *PositionWithdrawPlan) Unmarshal(dAtA []byte) error { +func (m *SwapExecutionsResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -13835,15 +16281,15 @@ func (m *PositionWithdrawPlan) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: PositionWithdrawPlan: wiretype end group for non-group") + return fmt.Errorf("proto: SwapExecutionsResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: PositionWithdrawPlan: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: SwapExecutionsResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reserves", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field SwapExecution", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -13870,18 +16316,18 @@ func (m *PositionWithdrawPlan) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Reserves == nil { - m.Reserves = &Reserves{} + if m.SwapExecution == nil { + m.SwapExecution = &SwapExecution{} } - if err := m.Reserves.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.SwapExecution.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PositionId", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) } - var msglen int + m.Height = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowDex @@ -13891,31 +16337,14 @@ func (m *PositionWithdrawPlan) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + m.Height |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return ErrInvalidLengthDex - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDex - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.PositionId == nil { - m.PositionId = &PositionId{} - } - if err := m.PositionId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Pair", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TradingPair", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -13942,10 +16371,10 @@ func (m *PositionWithdrawPlan) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Pair == nil { - m.Pair = &TradingPair{} + if m.TradingPair == nil { + m.TradingPair = &DirectedTradingPair{} } - if err := m.Pair.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.TradingPair.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -13970,7 +16399,7 @@ func (m *PositionWithdrawPlan) Unmarshal(dAtA []byte) error { } return nil } -func (m *PositionRewardClaimPlan) Unmarshal(dAtA []byte) error { +func (m *ArbExecutionsRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -13993,17 +16422,17 @@ func (m *PositionRewardClaimPlan) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: PositionRewardClaimPlan: wiretype end group for non-group") + return fmt.Errorf("proto: ArbExecutionsRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: PositionRewardClaimPlan: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ArbExecutionsRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reserves", wireType) + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field StartHeight", wireType) } - var msglen int + m.StartHeight = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowDex @@ -14013,28 +16442,30 @@ func (m *PositionRewardClaimPlan) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + m.StartHeight |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return ErrInvalidLengthDex - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDex - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Reserves == nil { - m.Reserves = &Reserves{} + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EndHeight", wireType) } - if err := m.Reserves.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + m.EndHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDex + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.EndHeight |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } } - iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipDex(dAtA[iNdEx:]) @@ -14056,7 +16487,7 @@ func (m *PositionRewardClaimPlan) Unmarshal(dAtA []byte) error { } return nil } -func (m *BatchSwapOutputDataRequest) Unmarshal(dAtA []byte) error { +func (m *ArbExecutionsResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -14079,17 +16510,17 @@ func (m *BatchSwapOutputDataRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: BatchSwapOutputDataRequest: wiretype end group for non-group") + return fmt.Errorf("proto: ArbExecutionsResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: BatchSwapOutputDataRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ArbExecutionsResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field SwapExecution", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowDex @@ -14099,23 +16530,27 @@ func (m *BatchSwapOutputDataRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthDex } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthDex } if postIndex > l { return io.ErrUnexpectedEOF } - m.ChainId = string(dAtA[iNdEx:postIndex]) + if m.SwapExecution == nil { + m.SwapExecution = &SwapExecution{} + } + if err := m.SwapExecution.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex case 2: if wireType != 0 { @@ -14136,42 +16571,6 @@ func (m *BatchSwapOutputDataRequest) Unmarshal(dAtA []byte) error { break } } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TradingPair", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDex - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthDex - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDex - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.TradingPair == nil { - m.TradingPair = &TradingPair{} - } - if err := m.TradingPair.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipDex(dAtA[iNdEx:]) @@ -14193,7 +16592,7 @@ func (m *BatchSwapOutputDataRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *BatchSwapOutputDataResponse) Unmarshal(dAtA []byte) error { +func (m *LiquidityPositionsRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -14216,17 +16615,17 @@ func (m *BatchSwapOutputDataResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: BatchSwapOutputDataResponse: wiretype end group for non-group") + return fmt.Errorf("proto: LiquidityPositionsRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: BatchSwapOutputDataResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: LiquidityPositionsRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IncludeClosed", wireType) } - var msglen int + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowDex @@ -14236,28 +16635,12 @@ func (m *BatchSwapOutputDataResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return ErrInvalidLengthDex - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDex - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Data == nil { - m.Data = &BatchSwapOutputData{} - } - if err := m.Data.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex + m.IncludeClosed = bool(v != 0) default: iNdEx = preIndex skippy, err := skipDex(dAtA[iNdEx:]) @@ -14279,7 +16662,7 @@ func (m *BatchSwapOutputDataResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *SwapExecutionRequest) Unmarshal(dAtA []byte) error { +func (m *LiquidityPositionsResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -14302,66 +16685,15 @@ func (m *SwapExecutionRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: SwapExecutionRequest: wiretype end group for non-group") + return fmt.Errorf("proto: LiquidityPositionsResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: SwapExecutionRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: LiquidityPositionsResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDex - } - 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 ErrInvalidLengthDex - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthDex - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ChainId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) - } - m.Height = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDex - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Height |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TradingPair", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -14388,10 +16720,10 @@ func (m *SwapExecutionRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.TradingPair == nil { - m.TradingPair = &DirectedTradingPair{} + if m.Data == nil { + m.Data = &Position{} } - if err := m.TradingPair.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Data.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -14416,7 +16748,7 @@ func (m *SwapExecutionRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *SwapExecutionResponse) Unmarshal(dAtA []byte) error { +func (m *LiquidityPositionByIdRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -14439,15 +16771,15 @@ func (m *SwapExecutionResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: SwapExecutionResponse: wiretype end group for non-group") + return fmt.Errorf("proto: LiquidityPositionByIdRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: SwapExecutionResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: LiquidityPositionByIdRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SwapExecution", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field PositionId", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -14474,10 +16806,10 @@ func (m *SwapExecutionResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.SwapExecution == nil { - m.SwapExecution = &SwapExecution{} + if m.PositionId == nil { + m.PositionId = &PositionId{} } - if err := m.SwapExecution.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.PositionId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -14502,7 +16834,7 @@ func (m *SwapExecutionResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *ArbExecutionRequest) Unmarshal(dAtA []byte) error { +func (m *LiquidityPositionByIdResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -14525,17 +16857,17 @@ func (m *ArbExecutionRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ArbExecutionRequest: wiretype end group for non-group") + return fmt.Errorf("proto: LiquidityPositionByIdResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ArbExecutionRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: LiquidityPositionByIdResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowDex @@ -14545,43 +16877,28 @@ func (m *ArbExecutionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthDex } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthDex } if postIndex > l { return io.ErrUnexpectedEOF } - m.ChainId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) + if m.Data == nil { + m.Data = &Position{} } - m.Height = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDex - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Height |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } + if err := m.Data.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipDex(dAtA[iNdEx:]) @@ -14603,7 +16920,7 @@ func (m *ArbExecutionRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *ArbExecutionResponse) Unmarshal(dAtA []byte) error { +func (m *LiquidityPositionsByIdRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -14626,15 +16943,15 @@ func (m *ArbExecutionResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ArbExecutionResponse: wiretype end group for non-group") + return fmt.Errorf("proto: LiquidityPositionsByIdRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ArbExecutionResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: LiquidityPositionsByIdRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SwapExecution", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field PositionId", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -14661,32 +16978,11 @@ func (m *ArbExecutionResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.SwapExecution == nil { - m.SwapExecution = &SwapExecution{} - } - if err := m.SwapExecution.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.PositionId = append(m.PositionId, &PositionId{}) + if err := m.PositionId[len(m.PositionId)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) - } - m.Height = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDex - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Height |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } default: iNdEx = preIndex skippy, err := skipDex(dAtA[iNdEx:]) @@ -14708,7 +17004,7 @@ func (m *ArbExecutionResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *SwapExecutionsRequest) Unmarshal(dAtA []byte) error { +func (m *LiquidityPositionsByIdResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -14725,91 +17021,21 @@ func (m *SwapExecutionsRequest) Unmarshal(dAtA []byte) error { 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: SwapExecutionsRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SwapExecutionsRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDex - } - 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 ErrInvalidLengthDex - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthDex - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ChainId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StartHeight", wireType) - } - m.StartHeight = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDex - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.StartHeight |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field EndHeight", wireType) - } - m.EndHeight = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDex - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.EndHeight |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } + break } - case 4: + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: LiquidityPositionsByIdResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: LiquidityPositionsByIdResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TradingPair", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -14836,10 +17062,10 @@ func (m *SwapExecutionsRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.TradingPair == nil { - m.TradingPair = &DirectedTradingPair{} + if m.Data == nil { + m.Data = &Position{} } - if err := m.TradingPair.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Data.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -14864,7 +17090,7 @@ func (m *SwapExecutionsRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *SwapExecutionsResponse) Unmarshal(dAtA []byte) error { +func (m *LiquidityPositionsByPriceRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -14887,15 +17113,15 @@ func (m *SwapExecutionsResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: SwapExecutionsResponse: wiretype end group for non-group") + return fmt.Errorf("proto: LiquidityPositionsByPriceRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: SwapExecutionsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: LiquidityPositionsByPriceRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SwapExecution", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TradingPair", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -14922,18 +17148,18 @@ func (m *SwapExecutionsResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.SwapExecution == nil { - m.SwapExecution = &SwapExecution{} + if m.TradingPair == nil { + m.TradingPair = &DirectedTradingPair{} } - if err := m.SwapExecution.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.TradingPair.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 2: + case 5: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType) } - m.Height = 0 + m.Limit = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowDex @@ -14943,14 +17169,64 @@ func (m *SwapExecutionsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Height |= uint64(b&0x7F) << shift + m.Limit |= uint64(b&0x7F) << shift if b < 0x80 { break } } - case 3: + default: + iNdEx = preIndex + skippy, err := skipDex(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthDex + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *LiquidityPositionsByPriceResponse) 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 ErrIntOverflowDex + } + 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: LiquidityPositionsByPriceResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: LiquidityPositionsByPriceResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TradingPair", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -14977,10 +17253,10 @@ func (m *SwapExecutionsResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.TradingPair == nil { - m.TradingPair = &DirectedTradingPair{} + if m.Data == nil { + m.Data = &Position{} } - if err := m.TradingPair.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Data.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -15005,7 +17281,7 @@ func (m *SwapExecutionsResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *ArbExecutionsRequest) Unmarshal(dAtA []byte) error { +func (m *SpreadRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -15028,17 +17304,17 @@ func (m *ArbExecutionsRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ArbExecutionsRequest: wiretype end group for non-group") + return fmt.Errorf("proto: SpreadRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ArbExecutionsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: SpreadRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TradingPair", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowDex @@ -15048,62 +17324,28 @@ func (m *ArbExecutionsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthDex } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthDex } if postIndex > l { return io.ErrUnexpectedEOF } - m.ChainId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StartHeight", wireType) - } - m.StartHeight = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDex - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.StartHeight |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field EndHeight", wireType) + if m.TradingPair == nil { + m.TradingPair = &TradingPair{} } - m.EndHeight = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDex - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.EndHeight |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } + if err := m.TradingPair.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipDex(dAtA[iNdEx:]) @@ -15125,7 +17367,7 @@ func (m *ArbExecutionsRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *ArbExecutionsResponse) Unmarshal(dAtA []byte) error { +func (m *SpreadResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -15148,15 +17390,15 @@ func (m *ArbExecutionsResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ArbExecutionsResponse: wiretype end group for non-group") + return fmt.Errorf("proto: SpreadResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ArbExecutionsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: SpreadResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SwapExecution", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Best_1To_2Position", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -15183,18 +17425,18 @@ func (m *ArbExecutionsResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.SwapExecution == nil { - m.SwapExecution = &SwapExecution{} + if m.Best_1To_2Position == nil { + m.Best_1To_2Position = &Position{} } - if err := m.SwapExecution.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Best_1To_2Position.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Best_2To_1Position", wireType) } - m.Height = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowDex @@ -15204,11 +17446,50 @@ func (m *ArbExecutionsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Height |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } + if msglen < 0 { + return ErrInvalidLengthDex + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDex + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Best_2To_1Position == nil { + m.Best_2To_1Position = &Position{} + } + if err := m.Best_2To_1Position.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field ApproxEffectivePrice_1To_2", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + m.ApproxEffectivePrice_1To_2 = float64(math.Float64frombits(v)) + case 4: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field ApproxEffectivePrice_2To_1", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + m.ApproxEffectivePrice_2To_1 = float64(math.Float64frombits(v)) default: iNdEx = preIndex skippy, err := skipDex(dAtA[iNdEx:]) @@ -15230,7 +17511,7 @@ func (m *ArbExecutionsResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *LiquidityPositionsRequest) Unmarshal(dAtA []byte) error { +func (m *SimulateTradeRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -15253,17 +17534,17 @@ func (m *LiquidityPositionsRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: LiquidityPositionsRequest: wiretype end group for non-group") + return fmt.Errorf("proto: SimulateTradeRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: LiquidityPositionsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: SimulateTradeRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Input", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowDex @@ -15273,29 +17554,33 @@ func (m *LiquidityPositionsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthDex } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthDex } if postIndex > l { return io.ErrUnexpectedEOF } - m.ChainId = string(dAtA[iNdEx:postIndex]) + if m.Input == nil { + m.Input = &v14.Value{} + } + if err := m.Input.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IncludeClosed", wireType) + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Output", wireType) } - var v int + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowDex @@ -15305,65 +17590,31 @@ func (m *LiquidityPositionsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - m.IncludeClosed = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipDex(dAtA[iNdEx:]) - if err != nil { - return err + if msglen < 0 { + return ErrInvalidLengthDex } - if (skippy < 0) || (iNdEx+skippy) < 0 { + postIndex := iNdEx + msglen + if postIndex < 0 { return ErrInvalidLengthDex } - if (iNdEx + skippy) > l { + if postIndex > l { return io.ErrUnexpectedEOF } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *LiquidityPositionsResponse) 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 ErrIntOverflowDex - } - if iNdEx >= l { - return io.ErrUnexpectedEOF + if m.Output == nil { + m.Output = &v14.AssetId{} } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + if err := m.Output.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: LiquidityPositionsResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: LiquidityPositionsResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + iNdEx = postIndex + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Routing", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -15390,10 +17641,10 @@ func (m *LiquidityPositionsResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Data == nil { - m.Data = &Position{} + if m.Routing == nil { + m.Routing = &SimulateTradeRequest_Routing{} } - if err := m.Data.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Routing.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -15418,7 +17669,7 @@ func (m *LiquidityPositionsResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *LiquidityPositionByIdRequest) Unmarshal(dAtA []byte) error { +func (m *SimulateTradeRequest_Routing) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -15441,17 +17692,17 @@ func (m *LiquidityPositionByIdRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: LiquidityPositionByIdRequest: wiretype end group for non-group") + return fmt.Errorf("proto: Routing: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: LiquidityPositionByIdRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Routing: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Default", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowDex @@ -15461,27 +17712,30 @@ func (m *LiquidityPositionByIdRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthDex } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthDex } if postIndex > l { return io.ErrUnexpectedEOF } - m.ChainId = string(dAtA[iNdEx:postIndex]) + v := &SimulateTradeRequest_Routing_Default{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Setting = &SimulateTradeRequest_Routing_Default_{v} iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PositionId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field SingleHop", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -15508,12 +17762,11 @@ func (m *LiquidityPositionByIdRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.PositionId == nil { - m.PositionId = &PositionId{} - } - if err := m.PositionId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + v := &SimulateTradeRequest_Routing_SingleHop{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } + m.Setting = &SimulateTradeRequest_Routing_SingleHop_{v} iNdEx = postIndex default: iNdEx = preIndex @@ -15536,7 +17789,7 @@ func (m *LiquidityPositionByIdRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *LiquidityPositionByIdResponse) Unmarshal(dAtA []byte) error { +func (m *SimulateTradeRequest_Routing_SingleHop) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -15559,48 +17812,12 @@ func (m *LiquidityPositionByIdResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: LiquidityPositionByIdResponse: wiretype end group for non-group") + return fmt.Errorf("proto: SingleHop: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: LiquidityPositionByIdResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: SingleHop: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDex - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthDex - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDex - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Data == nil { - m.Data = &Position{} - } - if err := m.Data.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipDex(dAtA[iNdEx:]) @@ -15622,7 +17839,7 @@ func (m *LiquidityPositionByIdResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *LiquidityPositionsByIdRequest) Unmarshal(dAtA []byte) error { +func (m *SimulateTradeRequest_Routing_Default) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -15645,78 +17862,12 @@ func (m *LiquidityPositionsByIdRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: LiquidityPositionsByIdRequest: wiretype end group for non-group") + return fmt.Errorf("proto: Default: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: LiquidityPositionsByIdRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Default: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDex - } - 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 ErrInvalidLengthDex - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthDex - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ChainId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PositionId", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDex - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthDex - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDex - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PositionId = append(m.PositionId, &PositionId{}) - if err := m.PositionId[len(m.PositionId)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipDex(dAtA[iNdEx:]) @@ -15738,7 +17889,7 @@ func (m *LiquidityPositionsByIdRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *LiquidityPositionsByIdResponse) Unmarshal(dAtA []byte) error { +func (m *SimulateTradeResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -15761,15 +17912,15 @@ func (m *LiquidityPositionsByIdResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: LiquidityPositionsByIdResponse: wiretype end group for non-group") + return fmt.Errorf("proto: SimulateTradeResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: LiquidityPositionsByIdResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: SimulateTradeResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Output", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -15796,10 +17947,46 @@ func (m *LiquidityPositionsByIdResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Data == nil { - m.Data = &Position{} + if m.Output == nil { + m.Output = &SwapExecution{} } - if err := m.Data.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Output.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Unfilled", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDex + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthDex + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDex + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Unfilled == nil { + m.Unfilled = &v14.Value{} + } + if err := m.Unfilled.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -15824,7 +18011,7 @@ func (m *LiquidityPositionsByIdResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *LiquidityPositionsByPriceRequest) Unmarshal(dAtA []byte) error { +func (m *EventSwap) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -15847,17 +18034,17 @@ func (m *LiquidityPositionsByPriceRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: LiquidityPositionsByPriceRequest: wiretype end group for non-group") + return fmt.Errorf("proto: EventSwap: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: LiquidityPositionsByPriceRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: EventSwap: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TradingPair", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowDex @@ -15867,27 +18054,31 @@ func (m *LiquidityPositionsByPriceRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthDex } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthDex } if postIndex > l { return io.ErrUnexpectedEOF } - m.ChainId = string(dAtA[iNdEx:postIndex]) + if m.TradingPair == nil { + m.TradingPair = &TradingPair{} + } + if err := m.TradingPair.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TradingPair", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Delta_1I", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -15914,18 +18105,18 @@ func (m *LiquidityPositionsByPriceRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.TradingPair == nil { - m.TradingPair = &DirectedTradingPair{} + if m.Delta_1I == nil { + m.Delta_1I = &v13.Amount{} } - if err := m.TradingPair.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Delta_1I.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType) + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Delta_2I", wireType) } - m.Limit = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowDex @@ -15935,64 +18126,31 @@ func (m *LiquidityPositionsByPriceRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Limit |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - default: - iNdEx = preIndex - skippy, err := skipDex(dAtA[iNdEx:]) - if err != nil { - return err + if msglen < 0 { + return ErrInvalidLengthDex } - if (skippy < 0) || (iNdEx+skippy) < 0 { + postIndex := iNdEx + msglen + if postIndex < 0 { return ErrInvalidLengthDex } - if (iNdEx + skippy) > l { + if postIndex > l { return io.ErrUnexpectedEOF } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *LiquidityPositionsByPriceResponse) 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 ErrIntOverflowDex - } - if iNdEx >= l { - return io.ErrUnexpectedEOF + if m.Delta_2I == nil { + m.Delta_2I = &v13.Amount{} } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + if err := m.Delta_2I.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: LiquidityPositionsByPriceResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: LiquidityPositionsByPriceResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + iNdEx = postIndex + case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field SwapCommitment", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -16019,10 +18177,10 @@ func (m *LiquidityPositionsByPriceResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Data == nil { - m.Data = &Position{} + if m.SwapCommitment == nil { + m.SwapCommitment = &v12.StateCommitment{} } - if err := m.Data.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.SwapCommitment.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -16047,7 +18205,7 @@ func (m *LiquidityPositionsByPriceResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *SpreadRequest) Unmarshal(dAtA []byte) error { +func (m *EventSwapClaim) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -16070,17 +18228,17 @@ func (m *SpreadRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: SpreadRequest: wiretype end group for non-group") + return fmt.Errorf("proto: EventSwapClaim: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: SpreadRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: EventSwapClaim: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TradingPair", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowDex @@ -16090,27 +18248,31 @@ func (m *SpreadRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthDex } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthDex } if postIndex > l { return io.ErrUnexpectedEOF } - m.ChainId = string(dAtA[iNdEx:postIndex]) + if m.TradingPair == nil { + m.TradingPair = &TradingPair{} + } + if err := m.TradingPair.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TradingPair", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Output_1Commitment", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -16137,66 +18299,16 @@ func (m *SpreadRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.TradingPair == nil { - m.TradingPair = &TradingPair{} + if m.Output_1Commitment == nil { + m.Output_1Commitment = &v12.StateCommitment{} } - if err := m.TradingPair.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Output_1Commitment.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipDex(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthDex - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SpreadResponse) 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 ErrIntOverflowDex - } - 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: SpreadResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SpreadResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Best_1To_2Position", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Output_2Commitment", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -16223,16 +18335,16 @@ func (m *SpreadResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Best_1To_2Position == nil { - m.Best_1To_2Position = &Position{} + if m.Output_2Commitment == nil { + m.Output_2Commitment = &v12.StateCommitment{} } - if err := m.Best_1To_2Position.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Output_2Commitment.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 2: + case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Best_2To_1Position", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Nullifier", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -16259,35 +18371,13 @@ func (m *SpreadResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Best_2To_1Position == nil { - m.Best_2To_1Position = &Position{} + if m.Nullifier == nil { + m.Nullifier = &v1.Nullifier{} } - if err := m.Best_2To_1Position.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Nullifier.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 3: - if wireType != 1 { - return fmt.Errorf("proto: wrong wireType = %d for field ApproxEffectivePrice_1To_2", wireType) - } - var v uint64 - if (iNdEx + 8) > l { - return io.ErrUnexpectedEOF - } - v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) - iNdEx += 8 - m.ApproxEffectivePrice_1To_2 = float64(math.Float64frombits(v)) - case 4: - if wireType != 1 { - return fmt.Errorf("proto: wrong wireType = %d for field ApproxEffectivePrice_2To_1", wireType) - } - var v uint64 - if (iNdEx + 8) > l { - return io.ErrUnexpectedEOF - } - v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) - iNdEx += 8 - m.ApproxEffectivePrice_2To_1 = float64(math.Float64frombits(v)) default: iNdEx = preIndex skippy, err := skipDex(dAtA[iNdEx:]) @@ -16309,7 +18399,7 @@ func (m *SpreadResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *SimulateTradeRequest) Unmarshal(dAtA []byte) error { +func (m *EventPositionOpen) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -16332,15 +18422,51 @@ func (m *SimulateTradeRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: SimulateTradeRequest: wiretype end group for non-group") + return fmt.Errorf("proto: EventPositionOpen: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: SimulateTradeRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: EventPositionOpen: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Input", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field PositionId", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDex + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthDex + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDex + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.PositionId == nil { + m.PositionId = &PositionId{} + } + if err := m.PositionId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TradingPair", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -16367,16 +18493,16 @@ func (m *SimulateTradeRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Input == nil { - m.Input = &v1alpha14.Value{} + if m.TradingPair == nil { + m.TradingPair = &TradingPair{} } - if err := m.Input.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.TradingPair.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 2: + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Output", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Reserves_1", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -16403,16 +18529,16 @@ func (m *SimulateTradeRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Output == nil { - m.Output = &v1alpha14.AssetId{} + if m.Reserves_1 == nil { + m.Reserves_1 = &v13.Amount{} } - if err := m.Output.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Reserves_1.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 3: + case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Routing", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Reserves_2", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -16439,13 +18565,32 @@ func (m *SimulateTradeRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Routing == nil { - m.Routing = &SimulateTradeRequest_Routing{} + if m.Reserves_2 == nil { + m.Reserves_2 = &v13.Amount{} } - if err := m.Routing.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Reserves_2.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TradingFee", wireType) + } + m.TradingFee = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDex + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TradingFee |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipDex(dAtA[iNdEx:]) @@ -16467,7 +18612,7 @@ func (m *SimulateTradeRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *SimulateTradeRequest_Routing) Unmarshal(dAtA []byte) error { +func (m *EventPositionClose) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -16490,15 +18635,15 @@ func (m *SimulateTradeRequest_Routing) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Routing: wiretype end group for non-group") + return fmt.Errorf("proto: EventPositionClose: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Routing: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: EventPositionClose: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Default", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field PositionId", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -16525,46 +18670,12 @@ func (m *SimulateTradeRequest_Routing) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &SimulateTradeRequest_Routing_Default{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Setting = &SimulateTradeRequest_Routing_Default_{v} - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SingleHop", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowDex - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthDex - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDex - } - if postIndex > l { - return io.ErrUnexpectedEOF + if m.PositionId == nil { + m.PositionId = &PositionId{} } - v := &SimulateTradeRequest_Routing_SingleHop{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.PositionId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Setting = &SimulateTradeRequest_Routing_SingleHop_{v} iNdEx = postIndex default: iNdEx = preIndex @@ -16587,7 +18698,7 @@ func (m *SimulateTradeRequest_Routing) Unmarshal(dAtA []byte) error { } return nil } -func (m *SimulateTradeRequest_Routing_SingleHop) Unmarshal(dAtA []byte) error { +func (m *EventPositionWithdraw) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -16610,62 +18721,175 @@ func (m *SimulateTradeRequest_Routing_SingleHop) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: SingleHop: wiretype end group for non-group") + return fmt.Errorf("proto: EventPositionWithdraw: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: SingleHop: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: EventPositionWithdraw: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipDex(dAtA[iNdEx:]) - if err != nil { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PositionId", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDex + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthDex + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDex + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.PositionId == nil { + m.PositionId = &PositionId{} + } + if err := m.PositionId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TradingPair", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDex + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { return ErrInvalidLengthDex } - if (iNdEx + skippy) > l { + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDex + } + if postIndex > l { return io.ErrUnexpectedEOF } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SimulateTradeRequest_Routing_Default) 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 ErrIntOverflowDex + if m.TradingPair == nil { + m.TradingPair = &TradingPair{} + } + if err := m.TradingPair.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Reserves_1", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDex + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthDex + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDex + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Reserves_1 == nil { + m.Reserves_1 = &v13.Amount{} + } + if err := m.Reserves_1.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Reserves_2", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDex + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthDex + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDex + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Reserves_2 == nil { + m.Reserves_2 = &v13.Amount{} + } + if err := m.Reserves_2.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } - if iNdEx >= l { - return io.ErrUnexpectedEOF + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Sequence", wireType) } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + m.Sequence = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDex + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Sequence |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Default: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Default: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { default: iNdEx = preIndex skippy, err := skipDex(dAtA[iNdEx:]) @@ -16687,7 +18911,7 @@ func (m *SimulateTradeRequest_Routing_Default) Unmarshal(dAtA []byte) error { } return nil } -func (m *SimulateTradeResponse) Unmarshal(dAtA []byte) error { +func (m *EventPositionExecution) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -16710,15 +18934,15 @@ func (m *SimulateTradeResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: SimulateTradeResponse: wiretype end group for non-group") + return fmt.Errorf("proto: EventPositionExecution: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: SimulateTradeResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: EventPositionExecution: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Output", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field PositionId", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -16745,66 +18969,88 @@ func (m *SimulateTradeResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Output == nil { - m.Output = &SwapExecution{} + if m.PositionId == nil { + m.PositionId = &PositionId{} } - if err := m.Output.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.PositionId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipDex(dAtA[iNdEx:]) - if err != nil { - return err + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TradingPair", wireType) } - if (skippy < 0) || (iNdEx+skippy) < 0 { + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDex + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { return ErrInvalidLengthDex } - if (iNdEx + skippy) > l { + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDex + } + if postIndex > l { return io.ErrUnexpectedEOF } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *EventSwap) 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 ErrIntOverflowDex + if m.TradingPair == nil { + m.TradingPair = &TradingPair{} } - if iNdEx >= l { + if err := m.TradingPair.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Reserves_1", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDex + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthDex + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDex + } + if postIndex > l { return io.ErrUnexpectedEOF } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + if m.Reserves_1 == nil { + m.Reserves_1 = &v13.Amount{} } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: EventSwap: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: EventSwap: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + if err := m.Reserves_1.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TradingPair", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Reserves_2", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -16831,16 +19077,16 @@ func (m *EventSwap) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.TradingPair == nil { - m.TradingPair = &TradingPair{} + if m.Reserves_2 == nil { + m.Reserves_2 = &v13.Amount{} } - if err := m.TradingPair.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Reserves_2.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 2: + case 5: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Delta_1I", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field PrevReserves_1", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -16867,16 +19113,16 @@ func (m *EventSwap) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Delta_1I == nil { - m.Delta_1I = &v1alpha13.Amount{} + if m.PrevReserves_1 == nil { + m.PrevReserves_1 = &v13.Amount{} } - if err := m.Delta_1I.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.PrevReserves_1.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 3: + case 6: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Delta_2I", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field PrevReserves_2", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -16903,16 +19149,16 @@ func (m *EventSwap) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Delta_2I == nil { - m.Delta_2I = &v1alpha13.Amount{} + if m.PrevReserves_2 == nil { + m.PrevReserves_2 = &v13.Amount{} } - if err := m.Delta_2I.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.PrevReserves_2.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 4: + case 7: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SwapCommitment", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Context", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -16939,10 +19185,10 @@ func (m *EventSwap) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.SwapCommitment == nil { - m.SwapCommitment = &v1alpha12.StateCommitment{} + if m.Context == nil { + m.Context = &DirectedTradingPair{} } - if err := m.SwapCommitment.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Context.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -16967,7 +19213,7 @@ func (m *EventSwap) Unmarshal(dAtA []byte) error { } return nil } -func (m *EventSwapClaim) Unmarshal(dAtA []byte) error { +func (m *EventBatchSwap) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -16990,15 +19236,15 @@ func (m *EventSwapClaim) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: EventSwapClaim: wiretype end group for non-group") + return fmt.Errorf("proto: EventBatchSwap: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: EventSwapClaim: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: EventBatchSwap: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TradingPair", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field BatchSwapOutputData", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -17025,16 +19271,16 @@ func (m *EventSwapClaim) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.TradingPair == nil { - m.TradingPair = &TradingPair{} + if m.BatchSwapOutputData == nil { + m.BatchSwapOutputData = &BatchSwapOutputData{} } - if err := m.TradingPair.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.BatchSwapOutputData.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Output_1Commitment", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field SwapExecution_1For_2", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -17061,18 +19307,104 @@ func (m *EventSwapClaim) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Output_1Commitment == nil { - m.Output_1Commitment = &v1alpha12.StateCommitment{} + if m.SwapExecution_1For_2 == nil { + m.SwapExecution_1For_2 = &SwapExecution{} } - if err := m.Output_1Commitment.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.SwapExecution_1For_2.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Output_2Commitment", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field SwapExecution_2For_1", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDex + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthDex + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDex + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SwapExecution_2For_1 == nil { + m.SwapExecution_2For_1 = &SwapExecution{} + } + if err := m.SwapExecution_2For_1.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipDex(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthDex + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *EventArbExecution) 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 ErrIntOverflowDex + } + 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: EventArbExecution: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EventArbExecution: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) } - var msglen int + m.Height = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowDex @@ -17082,31 +19414,14 @@ func (m *EventSwapClaim) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + m.Height |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return ErrInvalidLengthDex - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDex - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Output_2Commitment == nil { - m.Output_2Commitment = &v1alpha12.StateCommitment{} - } - if err := m.Output_2Commitment.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Nullifier", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field SwapExecution", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -17133,10 +19448,10 @@ func (m *EventSwapClaim) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Nullifier == nil { - m.Nullifier = &v1alpha1.Nullifier{} + if m.SwapExecution == nil { + m.SwapExecution = &SwapExecution{} } - if err := m.Nullifier.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.SwapExecution.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -17161,7 +19476,7 @@ func (m *EventSwapClaim) Unmarshal(dAtA []byte) error { } return nil } -func (m *EventPositionOpen) Unmarshal(dAtA []byte) error { +func (m *EventValueCircuitBreakerCredit) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -17184,15 +19499,15 @@ func (m *EventPositionOpen) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: EventPositionOpen: wiretype end group for non-group") + return fmt.Errorf("proto: EventValueCircuitBreakerCredit: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: EventPositionOpen: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: EventValueCircuitBreakerCredit: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PositionId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AssetId", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -17219,16 +19534,16 @@ func (m *EventPositionOpen) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.PositionId == nil { - m.PositionId = &PositionId{} + if m.AssetId == nil { + m.AssetId = &v14.AssetId{} } - if err := m.PositionId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.AssetId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TradingPair", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field PreviousBalance", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -17255,16 +19570,16 @@ func (m *EventPositionOpen) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.TradingPair == nil { - m.TradingPair = &TradingPair{} + if m.PreviousBalance == nil { + m.PreviousBalance = &v13.Amount{} } - if err := m.TradingPair.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.PreviousBalance.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reserves_1", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field NewBalance", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -17291,16 +19606,66 @@ func (m *EventPositionOpen) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Reserves_1 == nil { - m.Reserves_1 = &v1alpha13.Amount{} + if m.NewBalance == nil { + m.NewBalance = &v13.Amount{} } - if err := m.Reserves_1.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.NewBalance.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 4: + default: + iNdEx = preIndex + skippy, err := skipDex(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthDex + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *EventValueCircuitBreakerDebit) 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 ErrIntOverflowDex + } + 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: EventValueCircuitBreakerDebit: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EventValueCircuitBreakerDebit: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reserves_2", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AssetId", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -17327,18 +19692,18 @@ func (m *EventPositionOpen) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Reserves_2 == nil { - m.Reserves_2 = &v1alpha13.Amount{} + if m.AssetId == nil { + m.AssetId = &v14.AssetId{} } - if err := m.Reserves_2.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.AssetId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TradingFee", wireType) + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PreviousBalance", wireType) } - m.TradingFee = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowDex @@ -17348,64 +19713,31 @@ func (m *EventPositionOpen) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TradingFee |= uint32(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - default: - iNdEx = preIndex - skippy, err := skipDex(dAtA[iNdEx:]) - if err != nil { - return err + if msglen < 0 { + return ErrInvalidLengthDex } - if (skippy < 0) || (iNdEx+skippy) < 0 { + postIndex := iNdEx + msglen + if postIndex < 0 { return ErrInvalidLengthDex } - if (iNdEx + skippy) > l { + if postIndex > l { return io.ErrUnexpectedEOF } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *EventPositionClose) 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 ErrIntOverflowDex - } - if iNdEx >= l { - return io.ErrUnexpectedEOF + if m.PreviousBalance == nil { + m.PreviousBalance = &v13.Amount{} } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + if err := m.PreviousBalance.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: EventPositionClose: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: EventPositionClose: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + iNdEx = postIndex + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PositionId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field NewBalance", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -17432,10 +19764,10 @@ func (m *EventPositionClose) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.PositionId == nil { - m.PositionId = &PositionId{} + if m.NewBalance == nil { + m.NewBalance = &v13.Amount{} } - if err := m.PositionId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.NewBalance.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -17460,7 +19792,7 @@ func (m *EventPositionClose) Unmarshal(dAtA []byte) error { } return nil } -func (m *EventPositionWithdraw) Unmarshal(dAtA []byte) error { +func (m *DexParameters) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -17483,17 +19815,17 @@ func (m *EventPositionWithdraw) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: EventPositionWithdraw: wiretype end group for non-group") + return fmt.Errorf("proto: DexParameters: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: EventPositionWithdraw: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: DexParameters: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PositionId", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsEnabled", wireType) } - var msglen int + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowDex @@ -17503,31 +19835,15 @@ func (m *EventPositionWithdraw) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return ErrInvalidLengthDex - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthDex - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.PositionId == nil { - m.PositionId = &PositionId{} - } - if err := m.PositionId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex + m.IsEnabled = bool(v != 0) case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TradingPair", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field FixedCandidates", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -17554,18 +19870,16 @@ func (m *EventPositionWithdraw) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.TradingPair == nil { - m.TradingPair = &TradingPair{} - } - if err := m.TradingPair.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.FixedCandidates = append(m.FixedCandidates, &v14.AssetId{}) + if err := m.FixedCandidates[len(m.FixedCandidates)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reserves_1", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxHops", wireType) } - var msglen int + m.MaxHops = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowDex @@ -17575,31 +19889,64 @@ func (m *EventPositionWithdraw) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + m.MaxHops |= uint32(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return ErrInvalidLengthDex + default: + iNdEx = preIndex + skippy, err := skipDex(dAtA[iNdEx:]) + if err != nil { + return err } - postIndex := iNdEx + msglen - if postIndex < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthDex } - if postIndex > l { + if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - if m.Reserves_1 == nil { - m.Reserves_1 = &v1alpha13.Amount{} + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GenesisContent) 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 ErrIntOverflowDex } - if err := m.Reserves_1.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + if iNdEx >= l { + return io.ErrUnexpectedEOF } - iNdEx = postIndex - case 4: + 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: GenesisContent: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GenesisContent: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reserves_2", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field DexParams", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -17626,10 +19973,10 @@ func (m *EventPositionWithdraw) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Reserves_2 == nil { - m.Reserves_2 = &v1alpha13.Amount{} + if m.DexParams == nil { + m.DexParams = &DexParameters{} } - if err := m.Reserves_2.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.DexParams.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex diff --git a/relayer/chains/penumbra/core/component/distributions/v1alpha1/distributions.pb.go b/relayer/chains/penumbra/core/component/distributions/v1/distributions.pb.go similarity index 80% rename from relayer/chains/penumbra/core/component/distributions/v1alpha1/distributions.pb.go rename to relayer/chains/penumbra/core/component/distributions/v1/distributions.pb.go index 466b5e0f1..b45703906 100644 --- a/relayer/chains/penumbra/core/component/distributions/v1alpha1/distributions.pb.go +++ b/relayer/chains/penumbra/core/component/distributions/v1/distributions.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: penumbra/core/component/distributions/v1alpha1/distributions.proto +// source: penumbra/core/component/distributions/v1/distributions.proto -package distributionsv1alpha1 +package distributionsv1 import ( fmt "fmt" @@ -32,7 +32,7 @@ func (m *DistributionsParameters) Reset() { *m = DistributionsParameters func (m *DistributionsParameters) String() string { return proto.CompactTextString(m) } func (*DistributionsParameters) ProtoMessage() {} func (*DistributionsParameters) Descriptor() ([]byte, []int) { - return fileDescriptor_5006eea51ea29289, []int{0} + return fileDescriptor_3e86d892e577363a, []int{0} } func (m *DistributionsParameters) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -77,7 +77,7 @@ func (m *GenesisContent) Reset() { *m = GenesisContent{} } func (m *GenesisContent) String() string { return proto.CompactTextString(m) } func (*GenesisContent) ProtoMessage() {} func (*GenesisContent) Descriptor() ([]byte, []int) { - return fileDescriptor_5006eea51ea29289, []int{1} + return fileDescriptor_3e86d892e577363a, []int{1} } func (m *GenesisContent) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -114,40 +114,39 @@ func (m *GenesisContent) GetDistributionsParams() *DistributionsParameters { } func init() { - proto.RegisterType((*DistributionsParameters)(nil), "penumbra.core.component.distributions.v1alpha1.DistributionsParameters") - proto.RegisterType((*GenesisContent)(nil), "penumbra.core.component.distributions.v1alpha1.GenesisContent") + proto.RegisterType((*DistributionsParameters)(nil), "penumbra.core.component.distributions.v1.DistributionsParameters") + proto.RegisterType((*GenesisContent)(nil), "penumbra.core.component.distributions.v1.GenesisContent") } func init() { - proto.RegisterFile("penumbra/core/component/distributions/v1alpha1/distributions.proto", fileDescriptor_5006eea51ea29289) + proto.RegisterFile("penumbra/core/component/distributions/v1/distributions.proto", fileDescriptor_3e86d892e577363a) } -var fileDescriptor_5006eea51ea29289 = []byte{ - // 372 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x92, 0x31, 0x4b, 0xf3, 0x40, - 0x18, 0xc7, 0x9b, 0xbc, 0xe5, 0x1d, 0x22, 0x38, 0x44, 0xa1, 0xe2, 0x10, 0xa4, 0x93, 0xd3, 0x1d, - 0x8d, 0x5b, 0xba, 0x25, 0x85, 0xe2, 0x20, 0x84, 0x0e, 0x1d, 0x24, 0x10, 0x2e, 0xe9, 0xd1, 0x1e, - 0x6d, 0xee, 0xc2, 0xdd, 0xa5, 0xa0, 0x9f, 0xc1, 0xc1, 0xcf, 0xe0, 0xe8, 0xe2, 0xd7, 0x10, 0xa7, - 0x8e, 0x8e, 0x92, 0x6e, 0x7e, 0x0a, 0xb9, 0x92, 0x8b, 0x1e, 0xe2, 0x90, 0x25, 0x84, 0xe7, 0x79, - 0x7e, 0xff, 0xe7, 0xc7, 0xdd, 0x39, 0x61, 0x89, 0x69, 0x55, 0x64, 0x1c, 0xc1, 0x9c, 0x71, 0x0c, - 0x73, 0x56, 0x94, 0x8c, 0x62, 0x2a, 0xe1, 0x82, 0x08, 0xc9, 0x49, 0x56, 0x49, 0xc2, 0xa8, 0x80, - 0xdb, 0x11, 0xda, 0x94, 0x2b, 0x34, 0x32, 0xcb, 0xa0, 0xe4, 0x4c, 0x32, 0x17, 0xe8, 0x0c, 0xa0, - 0x32, 0x40, 0x9b, 0x01, 0xcc, 0x61, 0x9d, 0x31, 0x9c, 0x3b, 0x83, 0xc9, 0xcf, 0x4e, 0x8c, 0x38, - 0x2a, 0xb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x01, 0xc9, 0x34, 0x0e, 0x6f, 0xb0, 0x44, 0x0b, 0x24, - 0xd1, 0xa7, 0xed, 0x6b, 0x38, 0x08, 0x14, 0xad, 0xbe, 0x0d, 0x1e, 0x04, 0x06, 0x1f, 0x04, 0x3a, - 0x20, 0xfb, 0x7f, 0x78, 0xcf, 0x57, 0x5f, 0x01, 0x00, 0x00, 0xff, 0xff, 0xb4, 0x38, 0x4c, 0xa2, - 0x15, 0x03, 0x00, 0x00, +var fileDescriptor_3e86d892e577363a = []byte{ + // 366 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0xb1, 0x4a, 0xc3, 0x40, + 0x18, 0xc7, 0x9b, 0x58, 0x1c, 0x22, 0x38, 0x44, 0xa1, 0xe2, 0x10, 0xa4, 0x53, 0x87, 0x92, 0x23, + 0xd5, 0x29, 0x75, 0x31, 0x29, 0x14, 0x07, 0x21, 0x74, 0xc8, 0x20, 0x81, 0x70, 0x49, 0x8e, 0xf6, + 0x68, 0x73, 0x17, 0xee, 0x2e, 0x01, 0x1f, 0x40, 0x67, 0x9f, 0xc1, 0xd1, 0x27, 0x11, 0xa7, 0x8e, + 0x8e, 0x92, 0x6e, 0x3e, 0x85, 0x5c, 0x69, 0xa3, 0x87, 0x08, 0x59, 0x42, 0xf8, 0xbe, 0xdf, 0x2f, + 0xff, 0x3f, 0xb9, 0x33, 0xae, 0x0b, 0x44, 0xca, 0x3c, 0x61, 0x10, 0xa4, 0x94, 0x21, 0x90, 0xd2, + 0xbc, 0xa0, 0x04, 0x11, 0x01, 0x32, 0xcc, 0x05, 0xc3, 0x49, 0x29, 0x30, 0x25, 0x1c, 0x54, 0x8e, + 0x3a, 0xb0, 0x0b, 0x46, 0x05, 0x35, 0x07, 0x7b, 0xdb, 0x96, 0xb6, 0xdd, 0xd8, 0xb6, 0x0a, 0x57, + 0x4e, 0x3f, 0x34, 0x7a, 0x93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0x14, 0x3a, 0xb5, 0x7e, + 0xd5, 0x16, 0x8d, 0xa6, 0x81, 0x77, 0x87, 0x04, 0xcc, 0xa0, 0x80, 0x5f, 0xfa, 0x70, 0xaf, 0xb9, + 0xae, 0xf4, 0xe4, 0x73, 0x27, 0xba, 0xae, 0x62, 0xba, 0x6e, 0xe8, 0x24, 0x87, 0xdb, 0x9b, 0x79, + 0xf9, 0x1d, 0x00, 0x00, 0xff, 0xff, 0x82, 0x69, 0x0c, 0x43, 0xd9, 0x02, 0x00, 0x00, } func (m *DistributionsParameters) Marshal() (dAtA []byte, err error) { diff --git a/relayer/chains/penumbra/core/component/fee/v1alpha1/fee.pb.go b/relayer/chains/penumbra/core/component/fee/v1/fee.pb.go similarity index 51% rename from relayer/chains/penumbra/core/component/fee/v1alpha1/fee.pb.go rename to relayer/chains/penumbra/core/component/fee/v1/fee.pb.go index 6e6956a2a..5d6e30f68 100644 --- a/relayer/chains/penumbra/core/component/fee/v1alpha1/fee.pb.go +++ b/relayer/chains/penumbra/core/component/fee/v1/fee.pb.go @@ -1,13 +1,18 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: penumbra/core/component/fee/v1alpha1/fee.proto +// source: penumbra/core/component/fee/v1/fee.proto -package feev1alpha1 +package feev1 import ( + context "context" fmt "fmt" + grpc1 "github.com/cosmos/gogoproto/grpc" proto "github.com/cosmos/gogoproto/proto" - v1alpha11 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/asset/v1alpha1" - v1alpha1 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/num/v1alpha1" + v11 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/asset/v1" + v1 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/num/v1" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" io "io" math "math" math_bits "math/bits" @@ -24,20 +29,52 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +// The tier for the fee. +type FeeTier_Tier int32 + +const ( + FeeTier_TIER_UNSPECIFIED FeeTier_Tier = 0 + FeeTier_TIER_LOW FeeTier_Tier = 1 + FeeTier_TIER_MEDIUM FeeTier_Tier = 2 + FeeTier_TIER_HIGH FeeTier_Tier = 3 +) + +var FeeTier_Tier_name = map[int32]string{ + 0: "TIER_UNSPECIFIED", + 1: "TIER_LOW", + 2: "TIER_MEDIUM", + 3: "TIER_HIGH", +} + +var FeeTier_Tier_value = map[string]int32{ + "TIER_UNSPECIFIED": 0, + "TIER_LOW": 1, + "TIER_MEDIUM": 2, + "TIER_HIGH": 3, +} + +func (x FeeTier_Tier) String() string { + return proto.EnumName(FeeTier_Tier_name, int32(x)) +} + +func (FeeTier_Tier) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_80e267509eb0355f, []int{2, 0} +} + // Specifies fees paid by a transaction. type Fee struct { // The amount of the token used to pay fees. - Amount *v1alpha1.Amount `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"` + Amount *v1.Amount `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"` // If present, the asset ID of the token used to pay fees. // If absent, specifies the staking token implicitly. - AssetId *v1alpha11.AssetId `protobuf:"bytes,2,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"` + AssetId *v11.AssetId `protobuf:"bytes,2,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"` } func (m *Fee) Reset() { *m = Fee{} } func (m *Fee) String() string { return proto.CompactTextString(m) } func (*Fee) ProtoMessage() {} func (*Fee) Descriptor() ([]byte, []int) { - return fileDescriptor_03007f6a7f31c8af, []int{0} + return fileDescriptor_80e267509eb0355f, []int{0} } func (m *Fee) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -66,14 +103,14 @@ func (m *Fee) XXX_DiscardUnknown() { var xxx_messageInfo_Fee proto.InternalMessageInfo -func (m *Fee) GetAmount() *v1alpha1.Amount { +func (m *Fee) GetAmount() *v1.Amount { if m != nil { return m.Amount } return nil } -func (m *Fee) GetAssetId() *v1alpha11.AssetId { +func (m *Fee) GetAssetId() *v11.AssetId { if m != nil { return m.AssetId } @@ -95,7 +132,7 @@ func (m *GasPrices) Reset() { *m = GasPrices{} } func (m *GasPrices) String() string { return proto.CompactTextString(m) } func (*GasPrices) ProtoMessage() {} func (*GasPrices) Descriptor() ([]byte, []int) { - return fileDescriptor_03007f6a7f31c8af, []int{1} + return fileDescriptor_80e267509eb0355f, []int{1} } func (m *GasPrices) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -152,15 +189,64 @@ func (m *GasPrices) GetExecutionPrice() uint64 { return 0 } +type FeeTier struct { + // The selected fee tier. + FeeTier FeeTier_Tier `protobuf:"varint,1,opt,name=fee_tier,json=feeTier,proto3,enum=penumbra.core.component.fee.v1.FeeTier_Tier" json:"fee_tier,omitempty"` +} + +func (m *FeeTier) Reset() { *m = FeeTier{} } +func (m *FeeTier) String() string { return proto.CompactTextString(m) } +func (*FeeTier) ProtoMessage() {} +func (*FeeTier) Descriptor() ([]byte, []int) { + return fileDescriptor_80e267509eb0355f, []int{2} +} +func (m *FeeTier) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FeeTier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_FeeTier.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 *FeeTier) XXX_Merge(src proto.Message) { + xxx_messageInfo_FeeTier.Merge(m, src) +} +func (m *FeeTier) XXX_Size() int { + return m.Size() +} +func (m *FeeTier) XXX_DiscardUnknown() { + xxx_messageInfo_FeeTier.DiscardUnknown(m) +} + +var xxx_messageInfo_FeeTier proto.InternalMessageInfo + +func (m *FeeTier) GetFeeTier() FeeTier_Tier { + if m != nil { + return m.FeeTier + } + return FeeTier_TIER_UNSPECIFIED +} + // Fee component configuration data. type FeeParameters struct { + // Fixed gas prices used to compute transactions' base fees. + // + // In the future, this should be removed and replaced with parameters for dynamic gas pricing. + FixedGasPrices *GasPrices `protobuf:"bytes,1,opt,name=fixed_gas_prices,json=fixedGasPrices,proto3" json:"fixed_gas_prices,omitempty"` } func (m *FeeParameters) Reset() { *m = FeeParameters{} } func (m *FeeParameters) String() string { return proto.CompactTextString(m) } func (*FeeParameters) ProtoMessage() {} func (*FeeParameters) Descriptor() ([]byte, []int) { - return fileDescriptor_03007f6a7f31c8af, []int{2} + return fileDescriptor_80e267509eb0355f, []int{3} } func (m *FeeParameters) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -189,19 +275,24 @@ func (m *FeeParameters) XXX_DiscardUnknown() { var xxx_messageInfo_FeeParameters proto.InternalMessageInfo +func (m *FeeParameters) GetFixedGasPrices() *GasPrices { + if m != nil { + return m.FixedGasPrices + } + return nil +} + // Fee-specific genesis content. type GenesisContent struct { // The FeeParameters present at genesis. FeeParams *FeeParameters `protobuf:"bytes,1,opt,name=fee_params,json=feeParams,proto3" json:"fee_params,omitempty"` - // The initial gas prices. - GasPrices *GasPrices `protobuf:"bytes,2,opt,name=gas_prices,json=gasPrices,proto3" json:"gas_prices,omitempty"` } func (m *GenesisContent) Reset() { *m = GenesisContent{} } func (m *GenesisContent) String() string { return proto.CompactTextString(m) } func (*GenesisContent) ProtoMessage() {} func (*GenesisContent) Descriptor() ([]byte, []int) { - return fileDescriptor_03007f6a7f31c8af, []int{3} + return fileDescriptor_80e267509eb0355f, []int{4} } func (m *GenesisContent) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -237,7 +328,81 @@ func (m *GenesisContent) GetFeeParams() *FeeParameters { return nil } -func (m *GenesisContent) GetGasPrices() *GasPrices { +type CurrentGasPricesRequest struct { +} + +func (m *CurrentGasPricesRequest) Reset() { *m = CurrentGasPricesRequest{} } +func (m *CurrentGasPricesRequest) String() string { return proto.CompactTextString(m) } +func (*CurrentGasPricesRequest) ProtoMessage() {} +func (*CurrentGasPricesRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_80e267509eb0355f, []int{5} +} +func (m *CurrentGasPricesRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CurrentGasPricesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CurrentGasPricesRequest.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 *CurrentGasPricesRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CurrentGasPricesRequest.Merge(m, src) +} +func (m *CurrentGasPricesRequest) XXX_Size() int { + return m.Size() +} +func (m *CurrentGasPricesRequest) XXX_DiscardUnknown() { + xxx_messageInfo_CurrentGasPricesRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_CurrentGasPricesRequest proto.InternalMessageInfo + +type CurrentGasPricesResponse struct { + // The current gas prices. + GasPrices *GasPrices `protobuf:"bytes,1,opt,name=gas_prices,json=gasPrices,proto3" json:"gas_prices,omitempty"` +} + +func (m *CurrentGasPricesResponse) Reset() { *m = CurrentGasPricesResponse{} } +func (m *CurrentGasPricesResponse) String() string { return proto.CompactTextString(m) } +func (*CurrentGasPricesResponse) ProtoMessage() {} +func (*CurrentGasPricesResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_80e267509eb0355f, []int{6} +} +func (m *CurrentGasPricesResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CurrentGasPricesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CurrentGasPricesResponse.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 *CurrentGasPricesResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_CurrentGasPricesResponse.Merge(m, src) +} +func (m *CurrentGasPricesResponse) XXX_Size() int { + return m.Size() +} +func (m *CurrentGasPricesResponse) XXX_DiscardUnknown() { + xxx_messageInfo_CurrentGasPricesResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_CurrentGasPricesResponse proto.InternalMessageInfo + +func (m *CurrentGasPricesResponse) GetGasPrices() *GasPrices { if m != nil { return m.GasPrices } @@ -245,51 +410,148 @@ func (m *GenesisContent) GetGasPrices() *GasPrices { } func init() { - proto.RegisterType((*Fee)(nil), "penumbra.core.component.fee.v1alpha1.Fee") - proto.RegisterType((*GasPrices)(nil), "penumbra.core.component.fee.v1alpha1.GasPrices") - proto.RegisterType((*FeeParameters)(nil), "penumbra.core.component.fee.v1alpha1.FeeParameters") - proto.RegisterType((*GenesisContent)(nil), "penumbra.core.component.fee.v1alpha1.GenesisContent") + proto.RegisterEnum("penumbra.core.component.fee.v1.FeeTier_Tier", FeeTier_Tier_name, FeeTier_Tier_value) + proto.RegisterType((*Fee)(nil), "penumbra.core.component.fee.v1.Fee") + proto.RegisterType((*GasPrices)(nil), "penumbra.core.component.fee.v1.GasPrices") + proto.RegisterType((*FeeTier)(nil), "penumbra.core.component.fee.v1.FeeTier") + proto.RegisterType((*FeeParameters)(nil), "penumbra.core.component.fee.v1.FeeParameters") + proto.RegisterType((*GenesisContent)(nil), "penumbra.core.component.fee.v1.GenesisContent") + proto.RegisterType((*CurrentGasPricesRequest)(nil), "penumbra.core.component.fee.v1.CurrentGasPricesRequest") + proto.RegisterType((*CurrentGasPricesResponse)(nil), "penumbra.core.component.fee.v1.CurrentGasPricesResponse") } func init() { - proto.RegisterFile("penumbra/core/component/fee/v1alpha1/fee.proto", fileDescriptor_03007f6a7f31c8af) -} - -var fileDescriptor_03007f6a7f31c8af = []byte{ - // 521 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0x4f, 0x8b, 0xd3, 0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c, 0xd4, 0xd4, 0xf6, 0xa3, 0x5b, 0x76, 0x99, 0x6b, 0xe7, 0xab, 0xf6, - 0xf5, 0x3c, 0xb8, 0x43, 0xca, 0x62, 0x70, 0x65, 0xa0, 0xde, 0x94, 0x08, 0x3f, 0x4f, 0x28, 0x08, - 0xeb, 0x09, 0x3a, 0x99, 0xad, 0x38, 0xfd, 0x18, 0x89, 0x8c, 0x50, 0x88, 0x32, 0xb5, 0xaa, 0x63, - 0x75, 0x83, 0xbe, 0xde, 0x78, 0xa7, 0xd6, 0x35, 0x6c, 0x3d, 0x47, 0x0f, 0xd4, 0x49, 0x11, 0x2a, - 0xa3, 0xff, 0x1d, 0x53, 0x3b, 0xf7, 0x2b, 0x60, 0x7c, 0x4b, 0x7d, 0x8a, 0xac, 0x35, 0xe4, 0x49, - 0x9c, 0x50, 0x22, 0x13, 0xce, 0x2a, 0xe7, 0x40, 0x3b, 0x27, 0x37, 0x77, 0x4a, 0xfc, 0x31, 0xea, - 0xc3, 0x27, 0xa0, 0xc5, 0x0d, 0xb6, 0xab, 0xd9, 0xe3, 0x66, 0x59, 0x83, 0x83, 0x3e, 0xba, 0xe7, - 0x01, 0xf8, 0x24, 0x27, 0x29, 0x48, 0xc8, 0xc5, 0xe0, 0x87, 0x81, 0x8e, 0xa7, 0xc0, 0x40, 0x24, - 0x62, 0xc2, 0x99, 0x04, 0x26, 0xad, 0x00, 0xa1, 0x18, 0x20, 0xca, 0x14, 0x24, 0xaa, 0x23, 0xbf, - 0xc4, 0x6d, 0x6e, 0x00, 0xde, 0x9b, 0x1d, 0xf4, 0xe2, 0xaa, 0x15, 0xd6, 0x5b, 0x84, 0x16, 0x44, - 0x94, 0xd1, 0x44, 0xf5, 0x21, 0x9c, 0x76, 0x33, 0x9b, 0xb3, 0x0f, 0x7a, 0x8b, 0xba, 0x1c, 0xff, - 0x36, 0x7f, 0x6e, 0x6c, 0xe3, 0x7a, 0x63, 0x1b, 0x7f, 0x36, 0xb6, 0xf1, 0x75, 0x6b, 0x77, 0xae, - 0xb7, 0x76, 0xe7, 0xd7, 0xd6, 0xee, 0xa0, 0x11, 0xe5, 0x69, 0xab, 0xc9, 0xe3, 0x23, 0x15, 0x57, - 0xdd, 0x34, 0xdf, 0xf8, 0x10, 0x2e, 0x12, 0xb9, 0x2c, 0x66, 0x0a, 0x75, 0x28, 0x17, 0x29, 0x17, - 0x4e, 0x0e, 0x2b, 0xf2, 0x19, 0x72, 0x67, 0x7d, 0xd1, 0x94, 0x74, 0x49, 0x12, 0x26, 0x9c, 0x36, - 0xaf, 0xe7, 0x45, 0x0c, 0x50, 0xd7, 0xdf, 0xcc, 0xae, 0x3f, 0x99, 0x78, 0xdf, 0xcd, 0xa1, 0x5f, - 0xe7, 0x9a, 0xa8, 0x5c, 0x93, 0x26, 0x97, 0x07, 0x80, 0xdf, 0x57, 0xf4, 0xd5, 0x0e, 0x0b, 0x15, - 0x16, 0x36, 0x58, 0xe8, 0x01, 0x84, 0x35, 0xb6, 0x31, 0x9f, 0xb5, 0xc1, 0xc2, 0xa9, 0x3f, 0x7e, - 0x03, 0x92, 0xcc, 0x89, 0x24, 0x7f, 0xcd, 0x51, 0xad, 0xb8, 0xae, 0x72, 0xd4, 0x6f, 0x25, 0xb9, - 0xae, 0x07, 0xe0, 0xba, 0xb5, 0x36, 0x3b, 0xd4, 0x6f, 0xf0, 0xf2, 0x5f, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x97, 0x08, 0x0b, 0xac, 0x2b, 0x04, 0x00, 0x00, + proto.RegisterFile("penumbra/core/component/fee/v1/fee.proto", fileDescriptor_80e267509eb0355f) +} + +var fileDescriptor_80e267509eb0355f = []byte{ + // 689 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x94, 0x4f, 0x6f, 0xd3, 0x4c, + 0x10, 0xc6, 0x63, 0x37, 0x6a, 0x93, 0x69, 0x9b, 0xa6, 0xd6, 0xab, 0xf7, 0x6d, 0xab, 0x57, 0x06, + 0xf9, 0x42, 0xa9, 0xa8, 0xad, 0x04, 0x24, 0x20, 0x9c, 0x48, 0x1a, 0xa7, 0x41, 0x2d, 0x98, 0xa4, + 0x2d, 0x12, 0x8a, 0x88, 0x36, 0xce, 0xa4, 0xb5, 0xa8, 0xed, 0xb0, 0xbb, 0x0e, 0xed, 0x07, 0xe0, + 0xce, 0x89, 0x23, 0x07, 0x8e, 0xdc, 0xf9, 0x0e, 0xa8, 0xa7, 0x1e, 0x39, 0xa2, 0xf4, 0xc6, 0xa7, + 0x40, 0xbb, 0x4e, 0xdc, 0x7f, 0xa2, 0x05, 0x71, 0x71, 0x66, 0x67, 0x7f, 0xcf, 0xcc, 0x33, 0xbb, + 0xd1, 0xc2, 0x72, 0x1f, 0x83, 0xc8, 0xef, 0x50, 0x62, 0xb9, 0x21, 0x45, 0xcb, 0x0d, 0xfd, 0x7e, + 0x18, 0x60, 0xc0, 0xad, 0x1e, 0xa2, 0x35, 0x28, 0x88, 0x1f, 0xb3, 0x4f, 0x43, 0x1e, 0x6a, 0xfa, + 0x98, 0x34, 0x05, 0x69, 0x26, 0xa4, 0x29, 0x90, 0x41, 0x61, 0xc9, 0x38, 0x5f, 0x89, 0x30, 0x86, + 0x5c, 0x54, 0x90, 0x41, 0x5c, 0x63, 0x49, 0x3f, 0xcf, 0x04, 0x91, 0x2f, 0x88, 0x20, 0xf2, 0xe3, + 0x7d, 0xe3, 0x2d, 0x4c, 0xd8, 0x88, 0xda, 0x3d, 0x98, 0x24, 0x7e, 0x18, 0x05, 0x7c, 0x41, 0xb9, + 0xa9, 0x2c, 0x4f, 0x17, 0xff, 0x37, 0xcf, 0xf7, 0x16, 0x82, 0x41, 0xc1, 0x7c, 0x2c, 0x99, 0xc6, + 0x88, 0xd5, 0x4a, 0x90, 0x91, 0xbd, 0xda, 0x5e, 0x77, 0x41, 0x95, 0xba, 0x1b, 0x17, 0x74, 0xb1, + 0x15, 0xa1,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 0xbd, 0xa8, 0x23, + 0x20, 0xcb, 0x0d, 0x99, 0x1f, 0x32, 0x8b, 0xe2, 0x3e, 0x39, 0x44, 0x6a, 0x0d, 0x8a, 0x49, 0xe8, + 0xee, 0x11, 0x2f, 0x60, 0xd6, 0xd5, 0x6f, 0xd9, 0xa3, 0x1e, 0xe2, 0xa0, 0xf0, 0x49, 0x4d, 0x3b, + 0x95, 0x8a, 0xfd, 0x59, 0xd5, 0x9d, 0xb1, 0x8b, 0x8a, 0x70, 0x51, 0x49, 0x5c, 0xd8, 0x88, 0xe6, + 0x4e, 0xe1, 0xe8, 0x14, 0x68, 0x09, 0xa0, 0x95, 0x00, 0x2d, 0x1b, 0xb1, 0xb5, 0x53, 0x18, 0xaa, + 0x2b, 0x57, 0x03, 0xad, 0x9a, 0x53, 0xde, 0x44, 0x4e, 0xba, 0x84, 0x93, 0x1f, 0xaa, 0x31, 0x86, + 0x4b, 0x25, 0x41, 0x8b, 0xef, 0x08, 0x2f, 0x95, 0x6c, 0xc4, 0x52, 0x69, 0xa7, 0xd0, 0x99, 0x94, + 0xaf, 0xe0, 0xdd, 0x9f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x50, 0x18, 0x19, 0x16, 0x95, 0x05, 0x00, + 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 + +// QueryServiceClient is the client API for QueryService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type QueryServiceClient interface { + // Get the current gas prices. + CurrentGasPrices(ctx context.Context, in *CurrentGasPricesRequest, opts ...grpc.CallOption) (*CurrentGasPricesResponse, error) +} + +type queryServiceClient struct { + cc grpc1.ClientConn +} + +func NewQueryServiceClient(cc grpc1.ClientConn) QueryServiceClient { + return &queryServiceClient{cc} +} + +func (c *queryServiceClient) CurrentGasPrices(ctx context.Context, in *CurrentGasPricesRequest, opts ...grpc.CallOption) (*CurrentGasPricesResponse, error) { + out := new(CurrentGasPricesResponse) + err := c.cc.Invoke(ctx, "/penumbra.core.component.fee.v1.QueryService/CurrentGasPrices", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// QueryServiceServer is the server API for QueryService service. +type QueryServiceServer interface { + // Get the current gas prices. + CurrentGasPrices(context.Context, *CurrentGasPricesRequest) (*CurrentGasPricesResponse, error) +} + +// UnimplementedQueryServiceServer can be embedded to have forward compatible implementations. +type UnimplementedQueryServiceServer struct { +} + +func (*UnimplementedQueryServiceServer) CurrentGasPrices(ctx context.Context, req *CurrentGasPricesRequest) (*CurrentGasPricesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CurrentGasPrices not implemented") +} + +func RegisterQueryServiceServer(s grpc1.Server, srv QueryServiceServer) { + s.RegisterService(&_QueryService_serviceDesc, srv) +} + +func _QueryService_CurrentGasPrices_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CurrentGasPricesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServiceServer).CurrentGasPrices(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/penumbra.core.component.fee.v1.QueryService/CurrentGasPrices", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServiceServer).CurrentGasPrices(ctx, req.(*CurrentGasPricesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _QueryService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "penumbra.core.component.fee.v1.QueryService", + HandlerType: (*QueryServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "CurrentGasPrices", + Handler: _QueryService_CurrentGasPrices_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "penumbra/core/component/fee/v1/fee.proto", } func (m *Fee) Marshal() (dAtA []byte, err error) { @@ -382,6 +644,34 @@ func (m *GasPrices) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } +func (m *FeeTier) 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 *FeeTier) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FeeTier) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.FeeTier != 0 { + i = encodeVarintFee(dAtA, i, uint64(m.FeeTier)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + func (m *FeeParameters) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -402,6 +692,18 @@ func (m *FeeParameters) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if m.FixedGasPrices != nil { + { + size, err := m.FixedGasPrices.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintFee(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } return len(dAtA) - i, nil } @@ -425,9 +727,9 @@ func (m *GenesisContent) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - if m.GasPrices != nil { + if m.FeeParams != nil { { - size, err := m.GasPrices.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.FeeParams.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -435,11 +737,57 @@ func (m *GenesisContent) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintFee(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x12 + dAtA[i] = 0xa } - if m.FeeParams != nil { + return len(dAtA) - i, nil +} + +func (m *CurrentGasPricesRequest) 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 *CurrentGasPricesRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CurrentGasPricesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *CurrentGasPricesResponse) 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 *CurrentGasPricesResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CurrentGasPricesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.GasPrices != nil { { - size, err := m.FeeParams.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.GasPrices.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -501,12 +849,28 @@ func (m *GasPrices) Size() (n int) { return n } +func (m *FeeTier) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.FeeTier != 0 { + n += 1 + sovFee(uint64(m.FeeTier)) + } + return n +} + func (m *FeeParameters) Size() (n int) { if m == nil { return 0 } var l int _ = l + if m.FixedGasPrices != nil { + l = m.FixedGasPrices.Size() + n += 1 + l + sovFee(uint64(l)) + } return n } @@ -520,6 +884,24 @@ func (m *GenesisContent) Size() (n int) { l = m.FeeParams.Size() n += 1 + l + sovFee(uint64(l)) } + return n +} + +func (m *CurrentGasPricesRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *CurrentGasPricesResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l if m.GasPrices != nil { l = m.GasPrices.Size() n += 1 + l + sovFee(uint64(l)) @@ -592,7 +974,7 @@ func (m *Fee) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Amount == nil { - m.Amount = &v1alpha1.Amount{} + m.Amount = &v1.Amount{} } if err := m.Amount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -628,7 +1010,7 @@ func (m *Fee) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.AssetId == nil { - m.AssetId = &v1alpha11.AssetId{} + m.AssetId = &v11.AssetId{} } if err := m.AssetId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -781,6 +1163,75 @@ func (m *GasPrices) Unmarshal(dAtA []byte) error { } return nil } +func (m *FeeTier) 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 ErrIntOverflowFee + } + 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: FeeTier: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FeeTier: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field FeeTier", wireType) + } + m.FeeTier = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFee + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.FeeTier |= FeeTier_Tier(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipFee(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthFee + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func (m *FeeParameters) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -810,6 +1261,42 @@ func (m *FeeParameters) Unmarshal(dAtA []byte) error { return fmt.Errorf("proto: FeeParameters: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FixedGasPrices", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFee + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthFee + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthFee + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.FixedGasPrices == nil { + m.FixedGasPrices = &GasPrices{} + } + if err := m.FixedGasPrices.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipFee(dAtA[iNdEx:]) @@ -896,7 +1383,107 @@ func (m *GenesisContent) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - case 2: + default: + iNdEx = preIndex + skippy, err := skipFee(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthFee + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CurrentGasPricesRequest) 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 ErrIntOverflowFee + } + 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: CurrentGasPricesRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CurrentGasPricesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipFee(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthFee + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CurrentGasPricesResponse) 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 ErrIntOverflowFee + } + 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: CurrentGasPricesResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CurrentGasPricesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field GasPrices", wireType) } diff --git a/relayer/chains/penumbra/core/component/funding/v1/funding.pb.go b/relayer/chains/penumbra/core/component/funding/v1/funding.pb.go new file mode 100644 index 000000000..aac8c97fb --- /dev/null +++ b/relayer/chains/penumbra/core/component/funding/v1/funding.pb.go @@ -0,0 +1,456 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: penumbra/core/component/funding/v1/funding.proto + +package fundingv1 + +import ( + fmt "fmt" + proto "github.com/cosmos/gogoproto/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// Funding component configuration data. +type FundingParameters struct { +} + +func (m *FundingParameters) Reset() { *m = FundingParameters{} } +func (m *FundingParameters) String() string { return proto.CompactTextString(m) } +func (*FundingParameters) ProtoMessage() {} +func (*FundingParameters) Descriptor() ([]byte, []int) { + return fileDescriptor_586f7399b4e8a469, []int{0} +} +func (m *FundingParameters) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FundingParameters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_FundingParameters.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 *FundingParameters) XXX_Merge(src proto.Message) { + xxx_messageInfo_FundingParameters.Merge(m, src) +} +func (m *FundingParameters) XXX_Size() int { + return m.Size() +} +func (m *FundingParameters) XXX_DiscardUnknown() { + xxx_messageInfo_FundingParameters.DiscardUnknown(m) +} + +var xxx_messageInfo_FundingParameters proto.InternalMessageInfo + +// Genesis data for the funding component. +type GenesisContent struct { + FundingParams *FundingParameters `protobuf:"bytes,1,opt,name=funding_params,json=fundingParams,proto3" json:"funding_params,omitempty"` +} + +func (m *GenesisContent) Reset() { *m = GenesisContent{} } +func (m *GenesisContent) String() string { return proto.CompactTextString(m) } +func (*GenesisContent) ProtoMessage() {} +func (*GenesisContent) Descriptor() ([]byte, []int) { + return fileDescriptor_586f7399b4e8a469, []int{1} +} +func (m *GenesisContent) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GenesisContent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GenesisContent.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 *GenesisContent) XXX_Merge(src proto.Message) { + xxx_messageInfo_GenesisContent.Merge(m, src) +} +func (m *GenesisContent) XXX_Size() int { + return m.Size() +} +func (m *GenesisContent) XXX_DiscardUnknown() { + xxx_messageInfo_GenesisContent.DiscardUnknown(m) +} + +var xxx_messageInfo_GenesisContent proto.InternalMessageInfo + +func (m *GenesisContent) GetFundingParams() *FundingParameters { + if m != nil { + return m.FundingParams + } + return nil +} + +func init() { + proto.RegisterType((*FundingParameters)(nil), "penumbra.core.component.funding.v1.FundingParameters") + proto.RegisterType((*GenesisContent)(nil), "penumbra.core.component.funding.v1.GenesisContent") +} + +func init() { + proto.RegisterFile("penumbra/core/component/funding/v1/funding.proto", fileDescriptor_586f7399b4e8a469) +} + +var fileDescriptor_586f7399b4e8a469 = []byte{ + // 320 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0xb1, 0x4a, 0x3b, 0x31, + 0x1c, 0xc7, 0x9b, 0xe3, 0xcf, 0x7f, 0x38, 0xb5, 0x60, 0x5d, 0x9c, 0x82, 0xdc, 0x50, 0x9c, 0x12, + 0x53, 0x71, 0x89, 0x5b, 0x0f, 0xda, 0x49, 0x38, 0x1c, 0x8a, 0x48, 0x40, 0xd2, 0x6b, 0xda, 0x1e, + 0x78, 0xc9, 0x91, 0xa4, 0x07, 0xbe, 0x85, 0xcf, 0xe0, 0xe8, 0x93, 0x88, 0x53, 0x17, 0xc1, 0x51, + 0xae, 0x9b, 0x4f, 0x21, 0xd1, 0xe4, 0x14, 0x1c, 0xea, 0x12, 0x7e, 0x09, 0x9f, 0x0f, 0xdf, 0x6f, + 0x42, 0xe2, 0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 0xdf, 0x10, 0x73, 0x10, 0x6b, 0x21, 0xe6, 0x21, 0x36, + 0x21, 0x4d, 0x84, 0xb6, 0x43, 0x6c, 0x9c, 0x0d, 0x2f, 0x84, 0xe5, 0x33, 0x6e, 0xf9, 0x7b, 0xd4, + 0x0f, 0x02, 0xa5, 0xce, 0x70, 0xab, 0x57, 0x28, 0xf5, 0x0e, 0xa5, 0x13, 0x32, 0xfd, 0xff, 0xf9, + 0x0f, 0x4e, 0x3f, 0x02, 0x00, 0x00, 0xff, 0xff, 0x6d, 0x01, 0xe0, 0xb6, 0x3b, 0x02, 0x00, 0x00, +} + +func (m *FundingParameters) 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 *FundingParameters) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FundingParameters) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *GenesisContent) 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 *GenesisContent) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GenesisContent) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.FundingParams != nil { + { + size, err := m.FundingParams.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintFunding(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintFunding(dAtA []byte, offset int, v uint64) int { + offset -= sovFunding(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *FundingParameters) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *GenesisContent) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.FundingParams != nil { + l = m.FundingParams.Size() + n += 1 + l + sovFunding(uint64(l)) + } + return n +} + +func sovFunding(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozFunding(x uint64) (n int) { + return sovFunding(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *FundingParameters) 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 ErrIntOverflowFunding + } + 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: FundingParameters: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FundingParameters: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipFunding(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthFunding + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GenesisContent) 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 ErrIntOverflowFunding + } + 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: GenesisContent: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GenesisContent: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FundingParams", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFunding + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthFunding + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthFunding + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.FundingParams == nil { + m.FundingParams = &FundingParameters{} + } + if err := m.FundingParams.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipFunding(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthFunding + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipFunding(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowFunding + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowFunding + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowFunding + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthFunding + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupFunding + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthFunding + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthFunding = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowFunding = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupFunding = fmt.Errorf("proto: unexpected end of group") +) diff --git a/relayer/chains/penumbra/core/component/governance/v1alpha1/governance.pb.go b/relayer/chains/penumbra/core/component/governance/v1/governance.pb.go similarity index 80% rename from relayer/chains/penumbra/core/component/governance/v1alpha1/governance.pb.go rename to relayer/chains/penumbra/core/component/governance/v1/governance.pb.go index 30ca2ad7d..e1125806c 100644 --- a/relayer/chains/penumbra/core/component/governance/v1alpha1/governance.pb.go +++ b/relayer/chains/penumbra/core/component/governance/v1/governance.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: penumbra/core/component/governance/v1alpha1/governance.proto +// source: penumbra/core/component/governance/v1/governance.proto -package governancev1alpha1 +package governancev1 import ( context "context" @@ -9,18 +9,19 @@ import ( types "github.com/cosmos/cosmos-sdk/codec/types" grpc1 "github.com/cosmos/gogoproto/grpc" proto "github.com/cosmos/gogoproto/proto" - v1alpha13 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/asset/v1alpha1" - v1alpha17 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/component/chain/v1alpha1" - v1alpha18 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/component/community_pool/v1alpha1" - v1alpha111 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/component/distributions/v1alpha1" - v1alpha110 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/component/fee/v1alpha1" - v1alpha19 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/component/ibc/v1alpha1" - v1alpha14 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/component/sct/v1alpha1" - v1alpha15 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/component/shielded_pool/v1alpha1" - v1alpha16 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/component/stake/v1alpha1" - v1alpha12 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/keys/v1alpha1" - v1alpha1 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/num/v1alpha1" - v1alpha11 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/crypto/decaf377_rdsa/v1alpha1" + v13 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/asset/v1" + v17 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/component/community_pool/v1" + v112 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/component/dex/v1" + v110 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/component/distributions/v1" + v19 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/component/fee/v1" + v111 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/component/funding/v1" + v18 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/component/ibc/v1" + v14 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/component/sct/v1" + v15 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/component/shielded_pool/v1" + v16 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/component/stake/v1" + v12 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/keys/v1" + v1 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/num/v1" + v11 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/crypto/decaf377_rdsa/v1" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -69,7 +70,7 @@ func (x Vote_Vote) String() string { } func (Vote_Vote) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_67f269dcda22019a, []int{14, 0} + return fileDescriptor_a9098f9e68b782a3, []int{14, 0} } // A Penumbra ZK delegator vote proof. @@ -81,7 +82,7 @@ func (m *ZKDelegatorVoteProof) Reset() { *m = ZKDelegatorVoteProof{} } func (m *ZKDelegatorVoteProof) String() string { return proto.CompactTextString(m) } func (*ZKDelegatorVoteProof) ProtoMessage() {} func (*ZKDelegatorVoteProof) Descriptor() ([]byte, []int) { - return fileDescriptor_67f269dcda22019a, []int{0} + return fileDescriptor_a9098f9e68b782a3, []int{0} } func (m *ZKDelegatorVoteProof) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -121,14 +122,14 @@ type ProposalSubmit struct { // The proposal to be submitted. Proposal *Proposal `protobuf:"bytes,1,opt,name=proposal,proto3" json:"proposal,omitempty"` // The amount of the proposal deposit. - DepositAmount *v1alpha1.Amount `protobuf:"bytes,3,opt,name=deposit_amount,json=depositAmount,proto3" json:"deposit_amount,omitempty"` + DepositAmount *v1.Amount `protobuf:"bytes,3,opt,name=deposit_amount,json=depositAmount,proto3" json:"deposit_amount,omitempty"` } func (m *ProposalSubmit) Reset() { *m = ProposalSubmit{} } func (m *ProposalSubmit) String() string { return proto.CompactTextString(m) } func (*ProposalSubmit) ProtoMessage() {} func (*ProposalSubmit) Descriptor() ([]byte, []int) { - return fileDescriptor_67f269dcda22019a, []int{1} + return fileDescriptor_a9098f9e68b782a3, []int{1} } func (m *ProposalSubmit) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -164,7 +165,7 @@ func (m *ProposalSubmit) GetProposal() *Proposal { return nil } -func (m *ProposalSubmit) GetDepositAmount() *v1alpha1.Amount { +func (m *ProposalSubmit) GetDepositAmount() *v1.Amount { if m != nil { return m.DepositAmount } @@ -182,7 +183,7 @@ func (m *ProposalWithdraw) Reset() { *m = ProposalWithdraw{} } func (m *ProposalWithdraw) String() string { return proto.CompactTextString(m) } func (*ProposalWithdraw) ProtoMessage() {} func (*ProposalWithdraw) Descriptor() ([]byte, []int) { - return fileDescriptor_67f269dcda22019a, []int{2} + return fileDescriptor_a9098f9e68b782a3, []int{2} } func (m *ProposalWithdraw) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -229,7 +230,7 @@ type ProposalDepositClaim struct { // The proposal to claim the deposit for. Proposal uint64 `protobuf:"varint,1,opt,name=proposal,proto3" json:"proposal,omitempty"` // The expected deposit amount. - DepositAmount *v1alpha1.Amount `protobuf:"bytes,2,opt,name=deposit_amount,json=depositAmount,proto3" json:"deposit_amount,omitempty"` + DepositAmount *v1.Amount `protobuf:"bytes,2,opt,name=deposit_amount,json=depositAmount,proto3" json:"deposit_amount,omitempty"` // The outcome of the proposal. Outcome *ProposalOutcome `protobuf:"bytes,3,opt,name=outcome,proto3" json:"outcome,omitempty"` } @@ -238,7 +239,7 @@ func (m *ProposalDepositClaim) Reset() { *m = ProposalDepositClaim{} } func (m *ProposalDepositClaim) String() string { return proto.CompactTextString(m) } func (*ProposalDepositClaim) ProtoMessage() {} func (*ProposalDepositClaim) Descriptor() ([]byte, []int) { - return fileDescriptor_67f269dcda22019a, []int{3} + return fileDescriptor_a9098f9e68b782a3, []int{3} } func (m *ProposalDepositClaim) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -274,7 +275,7 @@ func (m *ProposalDepositClaim) GetProposal() uint64 { return 0 } -func (m *ProposalDepositClaim) GetDepositAmount() *v1alpha1.Amount { +func (m *ProposalDepositClaim) GetDepositAmount() *v1.Amount { if m != nil { return m.DepositAmount } @@ -292,14 +293,14 @@ type ValidatorVote struct { // The effecting data for the vote. Body *ValidatorVoteBody `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"` // The vote authorization signature is authorizing data. - AuthSig *v1alpha11.SpendAuthSignature `protobuf:"bytes,2,opt,name=auth_sig,json=authSig,proto3" json:"auth_sig,omitempty"` + AuthSig *v11.SpendAuthSignature `protobuf:"bytes,2,opt,name=auth_sig,json=authSig,proto3" json:"auth_sig,omitempty"` } func (m *ValidatorVote) Reset() { *m = ValidatorVote{} } func (m *ValidatorVote) String() string { return proto.CompactTextString(m) } func (*ValidatorVote) ProtoMessage() {} func (*ValidatorVote) Descriptor() ([]byte, []int) { - return fileDescriptor_67f269dcda22019a, []int{4} + return fileDescriptor_a9098f9e68b782a3, []int{4} } func (m *ValidatorVote) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -335,7 +336,7 @@ func (m *ValidatorVote) GetBody() *ValidatorVoteBody { return nil } -func (m *ValidatorVote) GetAuthSig() *v1alpha11.SpendAuthSignature { +func (m *ValidatorVote) GetAuthSig() *v11.SpendAuthSignature { if m != nil { return m.AuthSig } @@ -350,7 +351,7 @@ func (m *ValidatorVoteReason) Reset() { *m = ValidatorVoteReason{} } func (m *ValidatorVoteReason) String() string { return proto.CompactTextString(m) } func (*ValidatorVoteReason) ProtoMessage() {} func (*ValidatorVoteReason) Descriptor() ([]byte, []int) { - return fileDescriptor_67f269dcda22019a, []int{5} + return fileDescriptor_a9098f9e68b782a3, []int{5} } func (m *ValidatorVoteReason) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -392,9 +393,9 @@ type ValidatorVoteBody struct { // The vote. Vote *Vote `protobuf:"bytes,2,opt,name=vote,proto3" json:"vote,omitempty"` // The validator identity. - IdentityKey *v1alpha12.IdentityKey `protobuf:"bytes,3,opt,name=identity_key,json=identityKey,proto3" json:"identity_key,omitempty"` + IdentityKey *v12.IdentityKey `protobuf:"bytes,3,opt,name=identity_key,json=identityKey,proto3" json:"identity_key,omitempty"` // The validator governance key. - GovernanceKey *v1alpha12.GovernanceKey `protobuf:"bytes,4,opt,name=governance_key,json=governanceKey,proto3" json:"governance_key,omitempty"` + GovernanceKey *v12.GovernanceKey `protobuf:"bytes,4,opt,name=governance_key,json=governanceKey,proto3" json:"governance_key,omitempty"` // A justification of the vote. Reason *ValidatorVoteReason `protobuf:"bytes,5,opt,name=reason,proto3" json:"reason,omitempty"` } @@ -403,7 +404,7 @@ func (m *ValidatorVoteBody) Reset() { *m = ValidatorVoteBody{} } func (m *ValidatorVoteBody) String() string { return proto.CompactTextString(m) } func (*ValidatorVoteBody) ProtoMessage() {} func (*ValidatorVoteBody) Descriptor() ([]byte, []int) { - return fileDescriptor_67f269dcda22019a, []int{6} + return fileDescriptor_a9098f9e68b782a3, []int{6} } func (m *ValidatorVoteBody) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -446,14 +447,14 @@ func (m *ValidatorVoteBody) GetVote() *Vote { return nil } -func (m *ValidatorVoteBody) GetIdentityKey() *v1alpha12.IdentityKey { +func (m *ValidatorVoteBody) GetIdentityKey() *v12.IdentityKey { if m != nil { return m.IdentityKey } return nil } -func (m *ValidatorVoteBody) GetGovernanceKey() *v1alpha12.GovernanceKey { +func (m *ValidatorVoteBody) GetGovernanceKey() *v12.GovernanceKey { if m != nil { return m.GovernanceKey } @@ -471,7 +472,7 @@ type DelegatorVote struct { // The effecting data for the vote. Body *DelegatorVoteBody `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"` // The vote authorization signature is authorizing data. - AuthSig *v1alpha11.SpendAuthSignature `protobuf:"bytes,2,opt,name=auth_sig,json=authSig,proto3" json:"auth_sig,omitempty"` + AuthSig *v11.SpendAuthSignature `protobuf:"bytes,2,opt,name=auth_sig,json=authSig,proto3" json:"auth_sig,omitempty"` // The vote proof is authorizing data. Proof *ZKDelegatorVoteProof `protobuf:"bytes,3,opt,name=proof,proto3" json:"proof,omitempty"` } @@ -480,7 +481,7 @@ func (m *DelegatorVote) Reset() { *m = DelegatorVote{} } func (m *DelegatorVote) String() string { return proto.CompactTextString(m) } func (*DelegatorVote) ProtoMessage() {} func (*DelegatorVote) Descriptor() ([]byte, []int) { - return fileDescriptor_67f269dcda22019a, []int{7} + return fileDescriptor_a9098f9e68b782a3, []int{7} } func (m *DelegatorVote) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -516,7 +517,7 @@ func (m *DelegatorVote) GetBody() *DelegatorVoteBody { return nil } -func (m *DelegatorVote) GetAuthSig() *v1alpha11.SpendAuthSignature { +func (m *DelegatorVote) GetAuthSig() *v11.SpendAuthSignature { if m != nil { return m.AuthSig } @@ -538,20 +539,20 @@ type DelegatorVoteBody struct { // The vote. Vote *Vote `protobuf:"bytes,3,opt,name=vote,proto3" json:"vote,omitempty"` // The value of the delegation note. - Value *v1alpha13.Value `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"` + Value *v13.Value `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"` // The amount of the delegation note, in unbonded penumbra. - UnbondedAmount *v1alpha1.Amount `protobuf:"bytes,5,opt,name=unbonded_amount,json=unbondedAmount,proto3" json:"unbonded_amount,omitempty"` + UnbondedAmount *v1.Amount `protobuf:"bytes,5,opt,name=unbonded_amount,json=unbondedAmount,proto3" json:"unbonded_amount,omitempty"` // The nullifier of the input note. - Nullifier *v1alpha14.Nullifier `protobuf:"bytes,6,opt,name=nullifier,proto3" json:"nullifier,omitempty"` + Nullifier *v14.Nullifier `protobuf:"bytes,6,opt,name=nullifier,proto3" json:"nullifier,omitempty"` // The randomized validating key for the spend authorization signature. - Rk *v1alpha11.SpendVerificationKey `protobuf:"bytes,7,opt,name=rk,proto3" json:"rk,omitempty"` + Rk *v11.SpendVerificationKey `protobuf:"bytes,7,opt,name=rk,proto3" json:"rk,omitempty"` } func (m *DelegatorVoteBody) Reset() { *m = DelegatorVoteBody{} } func (m *DelegatorVoteBody) String() string { return proto.CompactTextString(m) } func (*DelegatorVoteBody) ProtoMessage() {} func (*DelegatorVoteBody) Descriptor() ([]byte, []int) { - return fileDescriptor_67f269dcda22019a, []int{8} + return fileDescriptor_a9098f9e68b782a3, []int{8} } func (m *DelegatorVoteBody) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -601,28 +602,28 @@ func (m *DelegatorVoteBody) GetVote() *Vote { return nil } -func (m *DelegatorVoteBody) GetValue() *v1alpha13.Value { +func (m *DelegatorVoteBody) GetValue() *v13.Value { if m != nil { return m.Value } return nil } -func (m *DelegatorVoteBody) GetUnbondedAmount() *v1alpha1.Amount { +func (m *DelegatorVoteBody) GetUnbondedAmount() *v1.Amount { if m != nil { return m.UnbondedAmount } return nil } -func (m *DelegatorVoteBody) GetNullifier() *v1alpha14.Nullifier { +func (m *DelegatorVoteBody) GetNullifier() *v14.Nullifier { if m != nil { return m.Nullifier } return nil } -func (m *DelegatorVoteBody) GetRk() *v1alpha11.SpendVerificationKey { +func (m *DelegatorVoteBody) GetRk() *v11.SpendVerificationKey { if m != nil { return m.Rk } @@ -640,7 +641,7 @@ func (m *DelegatorVoteView) Reset() { *m = DelegatorVoteView{} } func (m *DelegatorVoteView) String() string { return proto.CompactTextString(m) } func (*DelegatorVoteView) ProtoMessage() {} func (*DelegatorVoteView) Descriptor() ([]byte, []int) { - return fileDescriptor_67f269dcda22019a, []int{9} + return fileDescriptor_a9098f9e68b782a3, []int{9} } func (m *DelegatorVoteView) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -715,15 +716,15 @@ func (*DelegatorVoteView) XXX_OneofWrappers() []interface{} { } type DelegatorVoteView_Visible struct { - DelegatorVote *DelegatorVote `protobuf:"bytes,1,opt,name=delegator_vote,json=delegatorVote,proto3" json:"delegator_vote,omitempty"` - Note *v1alpha15.NoteView `protobuf:"bytes,2,opt,name=note,proto3" json:"note,omitempty"` + DelegatorVote *DelegatorVote `protobuf:"bytes,1,opt,name=delegator_vote,json=delegatorVote,proto3" json:"delegator_vote,omitempty"` + Note *v15.NoteView `protobuf:"bytes,2,opt,name=note,proto3" json:"note,omitempty"` } func (m *DelegatorVoteView_Visible) Reset() { *m = DelegatorVoteView_Visible{} } func (m *DelegatorVoteView_Visible) String() string { return proto.CompactTextString(m) } func (*DelegatorVoteView_Visible) ProtoMessage() {} func (*DelegatorVoteView_Visible) Descriptor() ([]byte, []int) { - return fileDescriptor_67f269dcda22019a, []int{9, 0} + return fileDescriptor_a9098f9e68b782a3, []int{9, 0} } func (m *DelegatorVoteView_Visible) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -759,7 +760,7 @@ func (m *DelegatorVoteView_Visible) GetDelegatorVote() *DelegatorVote { return nil } -func (m *DelegatorVoteView_Visible) GetNote() *v1alpha15.NoteView { +func (m *DelegatorVoteView_Visible) GetNote() *v15.NoteView { if m != nil { return m.Note } @@ -774,7 +775,7 @@ func (m *DelegatorVoteView_Opaque) Reset() { *m = DelegatorVoteView_Opaq func (m *DelegatorVoteView_Opaque) String() string { return proto.CompactTextString(m) } func (*DelegatorVoteView_Opaque) ProtoMessage() {} func (*DelegatorVoteView_Opaque) Descriptor() ([]byte, []int) { - return fileDescriptor_67f269dcda22019a, []int{9, 1} + return fileDescriptor_a9098f9e68b782a3, []int{9, 1} } func (m *DelegatorVoteView_Opaque) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -818,11 +819,11 @@ type DelegatorVotePlan struct { // The vote to cast. Vote *Vote `protobuf:"bytes,3,opt,name=vote,proto3" json:"vote,omitempty"` // The delegation note to prove that we can vote. - StakedNote *v1alpha15.Note `protobuf:"bytes,4,opt,name=staked_note,json=stakedNote,proto3" json:"staked_note,omitempty"` + StakedNote *v15.Note `protobuf:"bytes,4,opt,name=staked_note,json=stakedNote,proto3" json:"staked_note,omitempty"` // The position of that delegation note. StakedNotePosition uint64 `protobuf:"varint,5,opt,name=staked_note_position,json=stakedNotePosition,proto3" json:"staked_note_position,omitempty"` // The unbonded amount equivalent to the delegation note. - UnbondedAmount *v1alpha1.Amount `protobuf:"bytes,6,opt,name=unbonded_amount,json=unbondedAmount,proto3" json:"unbonded_amount,omitempty"` + UnbondedAmount *v1.Amount `protobuf:"bytes,6,opt,name=unbonded_amount,json=unbondedAmount,proto3" json:"unbonded_amount,omitempty"` // The randomizer to use for the proof of spend capability. Randomizer []byte `protobuf:"bytes,7,opt,name=randomizer,proto3" json:"randomizer,omitempty"` // The first blinding factor to use for the ZK delegator vote proof. @@ -835,7 +836,7 @@ func (m *DelegatorVotePlan) Reset() { *m = DelegatorVotePlan{} } func (m *DelegatorVotePlan) String() string { return proto.CompactTextString(m) } func (*DelegatorVotePlan) ProtoMessage() {} func (*DelegatorVotePlan) Descriptor() ([]byte, []int) { - return fileDescriptor_67f269dcda22019a, []int{10} + return fileDescriptor_a9098f9e68b782a3, []int{10} } func (m *DelegatorVotePlan) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -885,7 +886,7 @@ func (m *DelegatorVotePlan) GetVote() *Vote { return nil } -func (m *DelegatorVotePlan) GetStakedNote() *v1alpha15.Note { +func (m *DelegatorVotePlan) GetStakedNote() *v15.Note { if m != nil { return m.StakedNote } @@ -899,7 +900,7 @@ func (m *DelegatorVotePlan) GetStakedNotePosition() uint64 { return 0 } -func (m *DelegatorVotePlan) GetUnbondedAmount() *v1alpha1.Amount { +func (m *DelegatorVotePlan) GetUnbondedAmount() *v1.Amount { if m != nil { return m.UnbondedAmount } @@ -929,14 +930,14 @@ func (m *DelegatorVotePlan) GetProofBlindingS() []byte { type CommunityPoolDeposit struct { // The value to deposit into the Community Pool. - Value *v1alpha13.Value `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` + Value *v13.Value `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` } func (m *CommunityPoolDeposit) Reset() { *m = CommunityPoolDeposit{} } func (m *CommunityPoolDeposit) String() string { return proto.CompactTextString(m) } func (*CommunityPoolDeposit) ProtoMessage() {} func (*CommunityPoolDeposit) Descriptor() ([]byte, []int) { - return fileDescriptor_67f269dcda22019a, []int{11} + return fileDescriptor_a9098f9e68b782a3, []int{11} } func (m *CommunityPoolDeposit) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -965,7 +966,7 @@ func (m *CommunityPoolDeposit) XXX_DiscardUnknown() { var xxx_messageInfo_CommunityPoolDeposit proto.InternalMessageInfo -func (m *CommunityPoolDeposit) GetValue() *v1alpha13.Value { +func (m *CommunityPoolDeposit) GetValue() *v13.Value { if m != nil { return m.Value } @@ -974,14 +975,14 @@ func (m *CommunityPoolDeposit) GetValue() *v1alpha13.Value { type CommunityPoolSpend struct { // The value to spend from the Community Pool. - Value *v1alpha13.Value `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` + Value *v13.Value `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` } func (m *CommunityPoolSpend) Reset() { *m = CommunityPoolSpend{} } func (m *CommunityPoolSpend) String() string { return proto.CompactTextString(m) } func (*CommunityPoolSpend) ProtoMessage() {} func (*CommunityPoolSpend) Descriptor() ([]byte, []int) { - return fileDescriptor_67f269dcda22019a, []int{12} + return fileDescriptor_a9098f9e68b782a3, []int{12} } func (m *CommunityPoolSpend) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1010,7 +1011,7 @@ func (m *CommunityPoolSpend) XXX_DiscardUnknown() { var xxx_messageInfo_CommunityPoolSpend proto.InternalMessageInfo -func (m *CommunityPoolSpend) GetValue() *v1alpha13.Value { +func (m *CommunityPoolSpend) GetValue() *v13.Value { if m != nil { return m.Value } @@ -1019,16 +1020,16 @@ func (m *CommunityPoolSpend) GetValue() *v1alpha13.Value { type CommunityPoolOutput struct { // The value to output from the Community Pool. - Value *v1alpha13.Value `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` + Value *v13.Value `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` // The address to send the output to. - Address *v1alpha12.Address `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` + Address *v12.Address `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` } func (m *CommunityPoolOutput) Reset() { *m = CommunityPoolOutput{} } func (m *CommunityPoolOutput) String() string { return proto.CompactTextString(m) } func (*CommunityPoolOutput) ProtoMessage() {} func (*CommunityPoolOutput) Descriptor() ([]byte, []int) { - return fileDescriptor_67f269dcda22019a, []int{13} + return fileDescriptor_a9098f9e68b782a3, []int{13} } func (m *CommunityPoolOutput) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1057,14 +1058,14 @@ func (m *CommunityPoolOutput) XXX_DiscardUnknown() { var xxx_messageInfo_CommunityPoolOutput proto.InternalMessageInfo -func (m *CommunityPoolOutput) GetValue() *v1alpha13.Value { +func (m *CommunityPoolOutput) GetValue() *v13.Value { if m != nil { return m.Value } return nil } -func (m *CommunityPoolOutput) GetAddress() *v1alpha12.Address { +func (m *CommunityPoolOutput) GetAddress() *v12.Address { if m != nil { return m.Address } @@ -1074,14 +1075,14 @@ func (m *CommunityPoolOutput) GetAddress() *v1alpha12.Address { // A vote on a proposal. type Vote struct { // The vote. - Vote Vote_Vote `protobuf:"varint,1,opt,name=vote,proto3,enum=penumbra.core.component.governance.v1alpha1.Vote_Vote" json:"vote,omitempty"` + Vote Vote_Vote `protobuf:"varint,1,opt,name=vote,proto3,enum=penumbra.core.component.governance.v1.Vote_Vote" json:"vote,omitempty"` } func (m *Vote) Reset() { *m = Vote{} } func (m *Vote) String() string { return proto.CompactTextString(m) } func (*Vote) ProtoMessage() {} func (*Vote) Descriptor() ([]byte, []int) { - return fileDescriptor_67f269dcda22019a, []int{14} + return fileDescriptor_a9098f9e68b782a3, []int{14} } func (m *Vote) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1133,7 +1134,7 @@ func (m *ProposalState) Reset() { *m = ProposalState{} } func (m *ProposalState) String() string { return proto.CompactTextString(m) } func (*ProposalState) ProtoMessage() {} func (*ProposalState) Descriptor() ([]byte, []int) { - return fileDescriptor_67f269dcda22019a, []int{15} + return fileDescriptor_a9098f9e68b782a3, []int{15} } func (m *ProposalState) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1239,7 +1240,7 @@ func (m *ProposalState_Voting) Reset() { *m = ProposalState_Voting{} } func (m *ProposalState_Voting) String() string { return proto.CompactTextString(m) } func (*ProposalState_Voting) ProtoMessage() {} func (*ProposalState_Voting) Descriptor() ([]byte, []int) { - return fileDescriptor_67f269dcda22019a, []int{15, 0} + return fileDescriptor_a9098f9e68b782a3, []int{15, 0} } func (m *ProposalState_Voting) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1278,7 +1279,7 @@ func (m *ProposalState_Withdrawn) Reset() { *m = ProposalState_Withdrawn func (m *ProposalState_Withdrawn) String() string { return proto.CompactTextString(m) } func (*ProposalState_Withdrawn) ProtoMessage() {} func (*ProposalState_Withdrawn) Descriptor() ([]byte, []int) { - return fileDescriptor_67f269dcda22019a, []int{15, 1} + return fileDescriptor_a9098f9e68b782a3, []int{15, 1} } func (m *ProposalState_Withdrawn) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1323,7 +1324,7 @@ func (m *ProposalState_Finished) Reset() { *m = ProposalState_Finished{} func (m *ProposalState_Finished) String() string { return proto.CompactTextString(m) } func (*ProposalState_Finished) ProtoMessage() {} func (*ProposalState_Finished) Descriptor() ([]byte, []int) { - return fileDescriptor_67f269dcda22019a, []int{15, 2} + return fileDescriptor_a9098f9e68b782a3, []int{15, 2} } func (m *ProposalState_Finished) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1368,7 +1369,7 @@ func (m *ProposalState_Claimed) Reset() { *m = ProposalState_Claimed{} } func (m *ProposalState_Claimed) String() string { return proto.CompactTextString(m) } func (*ProposalState_Claimed) ProtoMessage() {} func (*ProposalState_Claimed) Descriptor() ([]byte, []int) { - return fileDescriptor_67f269dcda22019a, []int{15, 3} + return fileDescriptor_a9098f9e68b782a3, []int{15, 3} } func (m *ProposalState_Claimed) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1417,7 +1418,7 @@ func (m *ProposalOutcome) Reset() { *m = ProposalOutcome{} } func (m *ProposalOutcome) String() string { return proto.CompactTextString(m) } func (*ProposalOutcome) ProtoMessage() {} func (*ProposalOutcome) Descriptor() ([]byte, []int) { - return fileDescriptor_67f269dcda22019a, []int{16} + return fileDescriptor_a9098f9e68b782a3, []int{16} } func (m *ProposalOutcome) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1513,7 +1514,7 @@ func (m *ProposalOutcome_Withdrawn) Reset() { *m = ProposalOutcome_Withd func (m *ProposalOutcome_Withdrawn) String() string { return proto.CompactTextString(m) } func (*ProposalOutcome_Withdrawn) ProtoMessage() {} func (*ProposalOutcome_Withdrawn) Descriptor() ([]byte, []int) { - return fileDescriptor_67f269dcda22019a, []int{16, 0} + return fileDescriptor_a9098f9e68b782a3, []int{16, 0} } func (m *ProposalOutcome_Withdrawn) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1557,7 +1558,7 @@ func (m *ProposalOutcome_Passed) Reset() { *m = ProposalOutcome_Passed{} func (m *ProposalOutcome_Passed) String() string { return proto.CompactTextString(m) } func (*ProposalOutcome_Passed) ProtoMessage() {} func (*ProposalOutcome_Passed) Descriptor() ([]byte, []int) { - return fileDescriptor_67f269dcda22019a, []int{16, 1} + return fileDescriptor_a9098f9e68b782a3, []int{16, 1} } func (m *ProposalOutcome_Passed) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1596,7 +1597,7 @@ func (m *ProposalOutcome_Failed) Reset() { *m = ProposalOutcome_Failed{} func (m *ProposalOutcome_Failed) String() string { return proto.CompactTextString(m) } func (*ProposalOutcome_Failed) ProtoMessage() {} func (*ProposalOutcome_Failed) Descriptor() ([]byte, []int) { - return fileDescriptor_67f269dcda22019a, []int{16, 2} + return fileDescriptor_a9098f9e68b782a3, []int{16, 2} } func (m *ProposalOutcome_Failed) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1642,7 +1643,7 @@ func (m *ProposalOutcome_Slashed) Reset() { *m = ProposalOutcome_Slashed func (m *ProposalOutcome_Slashed) String() string { return proto.CompactTextString(m) } func (*ProposalOutcome_Slashed) ProtoMessage() {} func (*ProposalOutcome_Slashed) Descriptor() ([]byte, []int) { - return fileDescriptor_67f269dcda22019a, []int{16, 3} + return fileDescriptor_a9098f9e68b782a3, []int{16, 3} } func (m *ProposalOutcome_Slashed) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1692,7 +1693,7 @@ func (m *Tally) Reset() { *m = Tally{} } func (m *Tally) String() string { return proto.CompactTextString(m) } func (*Tally) ProtoMessage() {} func (*Tally) Descriptor() ([]byte, []int) { - return fileDescriptor_67f269dcda22019a, []int{17} + return fileDescriptor_a9098f9e68b782a3, []int{17} } func (m *Tally) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1750,21 +1751,25 @@ type Proposal struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` // A natural-language description of the effect of the proposal and its justification. Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` - // The different kinds of proposal. Only one of these should be set. - Signaling *Proposal_Signaling `protobuf:"bytes,5,opt,name=signaling,proto3" json:"signaling,omitempty"` - Emergency *Proposal_Emergency `protobuf:"bytes,6,opt,name=emergency,proto3" json:"emergency,omitempty"` - ParameterChange *Proposal_ParameterChange `protobuf:"bytes,7,opt,name=parameter_change,json=parameterChange,proto3" json:"parameter_change,omitempty"` - CommunityPoolSpend *Proposal_CommunityPoolSpend `protobuf:"bytes,8,opt,name=community_pool_spend,json=communityPoolSpend,proto3" json:"community_pool_spend,omitempty"` - UpgradePlan *Proposal_UpgradePlan `protobuf:"bytes,9,opt,name=upgrade_plan,json=upgradePlan,proto3" json:"upgrade_plan,omitempty"` - FreezeIbcClient *Proposal_FreezeIbcClient `protobuf:"bytes,10,opt,name=freeze_ibc_client,json=freezeIbcClient,proto3" json:"freeze_ibc_client,omitempty"` - UnfreezeIbcClient *Proposal_UnfreezeIbcClient `protobuf:"bytes,11,opt,name=unfreeze_ibc_client,json=unfreezeIbcClient,proto3" json:"unfreeze_ibc_client,omitempty"` + // The proposal's payload. + // + // Types that are valid to be assigned to Payload: + // + // *Proposal_Signaling_ + // *Proposal_Emergency_ + // *Proposal_ParameterChange_ + // *Proposal_CommunityPoolSpend_ + // *Proposal_UpgradePlan_ + // *Proposal_FreezeIbcClient_ + // *Proposal_UnfreezeIbcClient_ + Payload isProposal_Payload `protobuf_oneof:"payload"` } func (m *Proposal) Reset() { *m = Proposal{} } func (m *Proposal) String() string { return proto.CompactTextString(m) } func (*Proposal) ProtoMessage() {} func (*Proposal) Descriptor() ([]byte, []int) { - return fileDescriptor_67f269dcda22019a, []int{18} + return fileDescriptor_a9098f9e68b782a3, []int{18} } func (m *Proposal) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1793,6 +1798,49 @@ func (m *Proposal) XXX_DiscardUnknown() { var xxx_messageInfo_Proposal proto.InternalMessageInfo +type isProposal_Payload interface { + isProposal_Payload() + MarshalTo([]byte) (int, error) + Size() int +} + +type Proposal_Signaling_ struct { + Signaling *Proposal_Signaling `protobuf:"bytes,5,opt,name=signaling,proto3,oneof" json:"signaling,omitempty"` +} +type Proposal_Emergency_ struct { + Emergency *Proposal_Emergency `protobuf:"bytes,6,opt,name=emergency,proto3,oneof" json:"emergency,omitempty"` +} +type Proposal_ParameterChange_ struct { + ParameterChange *Proposal_ParameterChange `protobuf:"bytes,7,opt,name=parameter_change,json=parameterChange,proto3,oneof" json:"parameter_change,omitempty"` +} +type Proposal_CommunityPoolSpend_ struct { + CommunityPoolSpend *Proposal_CommunityPoolSpend `protobuf:"bytes,8,opt,name=community_pool_spend,json=communityPoolSpend,proto3,oneof" json:"community_pool_spend,omitempty"` +} +type Proposal_UpgradePlan_ struct { + UpgradePlan *Proposal_UpgradePlan `protobuf:"bytes,9,opt,name=upgrade_plan,json=upgradePlan,proto3,oneof" json:"upgrade_plan,omitempty"` +} +type Proposal_FreezeIbcClient_ struct { + FreezeIbcClient *Proposal_FreezeIbcClient `protobuf:"bytes,10,opt,name=freeze_ibc_client,json=freezeIbcClient,proto3,oneof" json:"freeze_ibc_client,omitempty"` +} +type Proposal_UnfreezeIbcClient_ struct { + UnfreezeIbcClient *Proposal_UnfreezeIbcClient `protobuf:"bytes,11,opt,name=unfreeze_ibc_client,json=unfreezeIbcClient,proto3,oneof" json:"unfreeze_ibc_client,omitempty"` +} + +func (*Proposal_Signaling_) isProposal_Payload() {} +func (*Proposal_Emergency_) isProposal_Payload() {} +func (*Proposal_ParameterChange_) isProposal_Payload() {} +func (*Proposal_CommunityPoolSpend_) isProposal_Payload() {} +func (*Proposal_UpgradePlan_) isProposal_Payload() {} +func (*Proposal_FreezeIbcClient_) isProposal_Payload() {} +func (*Proposal_UnfreezeIbcClient_) isProposal_Payload() {} + +func (m *Proposal) GetPayload() isProposal_Payload { + if m != nil { + return m.Payload + } + return nil +} + func (m *Proposal) GetId() uint64 { if m != nil { return m.Id @@ -1815,54 +1863,67 @@ func (m *Proposal) GetDescription() string { } func (m *Proposal) GetSignaling() *Proposal_Signaling { - if m != nil { - return m.Signaling + if x, ok := m.GetPayload().(*Proposal_Signaling_); ok { + return x.Signaling } return nil } func (m *Proposal) GetEmergency() *Proposal_Emergency { - if m != nil { - return m.Emergency + if x, ok := m.GetPayload().(*Proposal_Emergency_); ok { + return x.Emergency } return nil } func (m *Proposal) GetParameterChange() *Proposal_ParameterChange { - if m != nil { - return m.ParameterChange + if x, ok := m.GetPayload().(*Proposal_ParameterChange_); ok { + return x.ParameterChange } return nil } func (m *Proposal) GetCommunityPoolSpend() *Proposal_CommunityPoolSpend { - if m != nil { - return m.CommunityPoolSpend + if x, ok := m.GetPayload().(*Proposal_CommunityPoolSpend_); ok { + return x.CommunityPoolSpend } return nil } func (m *Proposal) GetUpgradePlan() *Proposal_UpgradePlan { - if m != nil { - return m.UpgradePlan + if x, ok := m.GetPayload().(*Proposal_UpgradePlan_); ok { + return x.UpgradePlan } return nil } func (m *Proposal) GetFreezeIbcClient() *Proposal_FreezeIbcClient { - if m != nil { - return m.FreezeIbcClient + if x, ok := m.GetPayload().(*Proposal_FreezeIbcClient_); ok { + return x.FreezeIbcClient } return nil } func (m *Proposal) GetUnfreezeIbcClient() *Proposal_UnfreezeIbcClient { - if m != nil { - return m.UnfreezeIbcClient + if x, ok := m.GetPayload().(*Proposal_UnfreezeIbcClient_); ok { + return x.UnfreezeIbcClient } return nil } +// XXX_OneofWrappers is for the internal use of the proto package. +func (*Proposal) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*Proposal_Signaling_)(nil), + (*Proposal_Emergency_)(nil), + (*Proposal_ParameterChange_)(nil), + (*Proposal_CommunityPoolSpend_)(nil), + (*Proposal_UpgradePlan_)(nil), + (*Proposal_FreezeIbcClient_)(nil), + (*Proposal_UnfreezeIbcClient_)(nil), + } +} + // A signaling proposal is meant to register a vote on-chain, but does not have an automatic // effect when passed. // @@ -1876,7 +1937,7 @@ func (m *Proposal_Signaling) Reset() { *m = Proposal_Signaling{} } func (m *Proposal_Signaling) String() string { return proto.CompactTextString(m) } func (*Proposal_Signaling) ProtoMessage() {} func (*Proposal_Signaling) Descriptor() ([]byte, []int) { - return fileDescriptor_67f269dcda22019a, []int{18, 0} + return fileDescriptor_a9098f9e68b782a3, []int{18, 0} } func (m *Proposal_Signaling) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1926,7 +1987,7 @@ func (m *Proposal_Emergency) Reset() { *m = Proposal_Emergency{} } func (m *Proposal_Emergency) String() string { return proto.CompactTextString(m) } func (*Proposal_Emergency) ProtoMessage() {} func (*Proposal_Emergency) Descriptor() ([]byte, []int) { - return fileDescriptor_67f269dcda22019a, []int{18, 1} + return fileDescriptor_a9098f9e68b782a3, []int{18, 1} } func (m *Proposal_Emergency) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1979,7 +2040,7 @@ func (m *Proposal_ParameterChange) Reset() { *m = Proposal_ParameterChan func (m *Proposal_ParameterChange) String() string { return proto.CompactTextString(m) } func (*Proposal_ParameterChange) ProtoMessage() {} func (*Proposal_ParameterChange) Descriptor() ([]byte, []int) { - return fileDescriptor_67f269dcda22019a, []int{18, 2} + return fileDescriptor_a9098f9e68b782a3, []int{18, 2} } func (m *Proposal_ParameterChange) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2036,7 +2097,7 @@ func (m *Proposal_CommunityPoolSpend) Reset() { *m = Proposal_CommunityP func (m *Proposal_CommunityPoolSpend) String() string { return proto.CompactTextString(m) } func (*Proposal_CommunityPoolSpend) ProtoMessage() {} func (*Proposal_CommunityPoolSpend) Descriptor() ([]byte, []int) { - return fileDescriptor_67f269dcda22019a, []int{18, 3} + return fileDescriptor_a9098f9e68b782a3, []int{18, 3} } func (m *Proposal_CommunityPoolSpend) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2082,7 +2143,7 @@ func (m *Proposal_UpgradePlan) Reset() { *m = Proposal_UpgradePlan{} } func (m *Proposal_UpgradePlan) String() string { return proto.CompactTextString(m) } func (*Proposal_UpgradePlan) ProtoMessage() {} func (*Proposal_UpgradePlan) Descriptor() ([]byte, []int) { - return fileDescriptor_67f269dcda22019a, []int{18, 4} + return fileDescriptor_a9098f9e68b782a3, []int{18, 4} } func (m *Proposal_UpgradePlan) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2119,6 +2180,8 @@ func (m *Proposal_UpgradePlan) GetHeight() uint64 { } // Freeze an existing IBC client. +// Like `Emergency` proposals, it is enacted immediately after receiving +// +2/3 of validator votes. type Proposal_FreezeIbcClient struct { ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` } @@ -2127,7 +2190,7 @@ func (m *Proposal_FreezeIbcClient) Reset() { *m = Proposal_FreezeIbcClie func (m *Proposal_FreezeIbcClient) String() string { return proto.CompactTextString(m) } func (*Proposal_FreezeIbcClient) ProtoMessage() {} func (*Proposal_FreezeIbcClient) Descriptor() ([]byte, []int) { - return fileDescriptor_67f269dcda22019a, []int{18, 5} + return fileDescriptor_a9098f9e68b782a3, []int{18, 5} } func (m *Proposal_FreezeIbcClient) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2164,6 +2227,8 @@ func (m *Proposal_FreezeIbcClient) GetClientId() string { } // Unfreeze an existing IBC client. +// Like `Emergency` proposals, it is enacted immediately after receiving +// +2/3 of validator votes. type Proposal_UnfreezeIbcClient struct { ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` } @@ -2172,7 +2237,7 @@ func (m *Proposal_UnfreezeIbcClient) Reset() { *m = Proposal_UnfreezeIbc func (m *Proposal_UnfreezeIbcClient) String() string { return proto.CompactTextString(m) } func (*Proposal_UnfreezeIbcClient) ProtoMessage() {} func (*Proposal_UnfreezeIbcClient) Descriptor() ([]byte, []int) { - return fileDescriptor_67f269dcda22019a, []int{18, 6} + return fileDescriptor_a9098f9e68b782a3, []int{18, 6} } func (m *Proposal_UnfreezeIbcClient) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2209,8 +2274,6 @@ func (m *Proposal_UnfreezeIbcClient) GetClientId() string { } type ProposalInfoRequest struct { - // The expected chain id (empty string if no expectation). - ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` // The proposal id to request information on. ProposalId uint64 `protobuf:"varint,2,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"` } @@ -2219,7 +2282,7 @@ func (m *ProposalInfoRequest) Reset() { *m = ProposalInfoRequest{} } func (m *ProposalInfoRequest) String() string { return proto.CompactTextString(m) } func (*ProposalInfoRequest) ProtoMessage() {} func (*ProposalInfoRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_67f269dcda22019a, []int{19} + return fileDescriptor_a9098f9e68b782a3, []int{19} } func (m *ProposalInfoRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2248,13 +2311,6 @@ func (m *ProposalInfoRequest) XXX_DiscardUnknown() { var xxx_messageInfo_ProposalInfoRequest proto.InternalMessageInfo -func (m *ProposalInfoRequest) GetChainId() string { - if m != nil { - return m.ChainId - } - return "" -} - func (m *ProposalInfoRequest) GetProposalId() uint64 { if m != nil { return m.ProposalId @@ -2273,7 +2329,7 @@ func (m *ProposalInfoResponse) Reset() { *m = ProposalInfoResponse{} } func (m *ProposalInfoResponse) String() string { return proto.CompactTextString(m) } func (*ProposalInfoResponse) ProtoMessage() {} func (*ProposalInfoResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_67f269dcda22019a, []int{20} + return fileDescriptor_a9098f9e68b782a3, []int{20} } func (m *ProposalInfoResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2317,8 +2373,6 @@ func (m *ProposalInfoResponse) GetStartPosition() uint64 { } type ProposalDataRequest struct { - // The expected chain id (empty string if no expectation). - ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` // The proposal id to request information on. ProposalId uint64 `protobuf:"varint,2,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"` } @@ -2327,7 +2381,7 @@ func (m *ProposalDataRequest) Reset() { *m = ProposalDataRequest{} } func (m *ProposalDataRequest) String() string { return proto.CompactTextString(m) } func (*ProposalDataRequest) ProtoMessage() {} func (*ProposalDataRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_67f269dcda22019a, []int{21} + return fileDescriptor_a9098f9e68b782a3, []int{21} } func (m *ProposalDataRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2356,13 +2410,6 @@ func (m *ProposalDataRequest) XXX_DiscardUnknown() { var xxx_messageInfo_ProposalDataRequest proto.InternalMessageInfo -func (m *ProposalDataRequest) GetChainId() string { - if m != nil { - return m.ChainId - } - return "" -} - func (m *ProposalDataRequest) GetProposalId() uint64 { if m != nil { return m.ProposalId @@ -2382,14 +2429,14 @@ type ProposalDataResponse struct { // The current state of the proposal. State *ProposalState `protobuf:"bytes,5,opt,name=state,proto3" json:"state,omitempty"` // The deposit amount paid for the proposal. - ProposalDepositAmount *v1alpha1.Amount `protobuf:"bytes,6,opt,name=proposal_deposit_amount,json=proposalDepositAmount,proto3" json:"proposal_deposit_amount,omitempty"` + ProposalDepositAmount *v1.Amount `protobuf:"bytes,6,opt,name=proposal_deposit_amount,json=proposalDepositAmount,proto3" json:"proposal_deposit_amount,omitempty"` } func (m *ProposalDataResponse) Reset() { *m = ProposalDataResponse{} } func (m *ProposalDataResponse) String() string { return proto.CompactTextString(m) } func (*ProposalDataResponse) ProtoMessage() {} func (*ProposalDataResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_67f269dcda22019a, []int{22} + return fileDescriptor_a9098f9e68b782a3, []int{22} } func (m *ProposalDataResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2453,7 +2500,7 @@ func (m *ProposalDataResponse) GetState() *ProposalState { return nil } -func (m *ProposalDataResponse) GetProposalDepositAmount() *v1alpha1.Amount { +func (m *ProposalDataResponse) GetProposalDepositAmount() *v1.Amount { if m != nil { return m.ProposalDepositAmount } @@ -2462,8 +2509,6 @@ func (m *ProposalDataResponse) GetProposalDepositAmount() *v1alpha1.Amount { // Requests the validator rate data for a proposal. type ProposalRateDataRequest struct { - // The expected chain id (empty string if no expectation). - ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` // The proposal id to request information on. ProposalId uint64 `protobuf:"varint,2,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"` } @@ -2472,7 +2517,7 @@ func (m *ProposalRateDataRequest) Reset() { *m = ProposalRateDataRequest func (m *ProposalRateDataRequest) String() string { return proto.CompactTextString(m) } func (*ProposalRateDataRequest) ProtoMessage() {} func (*ProposalRateDataRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_67f269dcda22019a, []int{23} + return fileDescriptor_a9098f9e68b782a3, []int{23} } func (m *ProposalRateDataRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2501,13 +2546,6 @@ func (m *ProposalRateDataRequest) XXX_DiscardUnknown() { var xxx_messageInfo_ProposalRateDataRequest proto.InternalMessageInfo -func (m *ProposalRateDataRequest) GetChainId() string { - if m != nil { - return m.ChainId - } - return "" -} - func (m *ProposalRateDataRequest) GetProposalId() uint64 { if m != nil { return m.ProposalId @@ -2517,14 +2555,14 @@ func (m *ProposalRateDataRequest) GetProposalId() uint64 { // The rate data for a single validator. type ProposalRateDataResponse struct { - RateData *v1alpha16.RateData `protobuf:"bytes,1,opt,name=rate_data,json=rateData,proto3" json:"rate_data,omitempty"` + RateData *v16.RateData `protobuf:"bytes,1,opt,name=rate_data,json=rateData,proto3" json:"rate_data,omitempty"` } func (m *ProposalRateDataResponse) Reset() { *m = ProposalRateDataResponse{} } func (m *ProposalRateDataResponse) String() string { return proto.CompactTextString(m) } func (*ProposalRateDataResponse) ProtoMessage() {} func (*ProposalRateDataResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_67f269dcda22019a, []int{24} + return fileDescriptor_a9098f9e68b782a3, []int{24} } func (m *ProposalRateDataResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2553,7 +2591,7 @@ func (m *ProposalRateDataResponse) XXX_DiscardUnknown() { var xxx_messageInfo_ProposalRateDataResponse proto.InternalMessageInfo -func (m *ProposalRateDataResponse) GetRateData() *v1alpha16.RateData { +func (m *ProposalRateDataResponse) GetRateData() *v16.RateData { if m != nil { return m.RateData } @@ -2562,8 +2600,6 @@ func (m *ProposalRateDataResponse) GetRateData() *v1alpha16.RateData { // Requests the list of all proposals. type ProposalListRequest struct { - // The expected chain id (empty string if no expectation). - ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` // Whether to include proposals that are no longer active.; Inactive bool `protobuf:"varint,2,opt,name=inactive,proto3" json:"inactive,omitempty"` } @@ -2572,7 +2608,7 @@ func (m *ProposalListRequest) Reset() { *m = ProposalListRequest{} } func (m *ProposalListRequest) String() string { return proto.CompactTextString(m) } func (*ProposalListRequest) ProtoMessage() {} func (*ProposalListRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_67f269dcda22019a, []int{25} + return fileDescriptor_a9098f9e68b782a3, []int{25} } func (m *ProposalListRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2601,13 +2637,6 @@ func (m *ProposalListRequest) XXX_DiscardUnknown() { var xxx_messageInfo_ProposalListRequest proto.InternalMessageInfo -func (m *ProposalListRequest) GetChainId() string { - if m != nil { - return m.ChainId - } - return "" -} - func (m *ProposalListRequest) GetInactive() bool { if m != nil { return m.Inactive @@ -2633,7 +2662,7 @@ func (m *ProposalListResponse) Reset() { *m = ProposalListResponse{} } func (m *ProposalListResponse) String() string { return proto.CompactTextString(m) } func (*ProposalListResponse) ProtoMessage() {} func (*ProposalListResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_67f269dcda22019a, []int{26} + return fileDescriptor_a9098f9e68b782a3, []int{26} } func (m *ProposalListResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2699,8 +2728,6 @@ func (m *ProposalListResponse) GetState() *ProposalState { // Requests the list of all validator votes for a given proposal. type ValidatorVotesRequest struct { - // The expected chain id (empty string if no expectation). - ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` // The proposal id to request information on. ProposalId uint64 `protobuf:"varint,2,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"` } @@ -2709,7 +2736,7 @@ func (m *ValidatorVotesRequest) Reset() { *m = ValidatorVotesRequest{} } func (m *ValidatorVotesRequest) String() string { return proto.CompactTextString(m) } func (*ValidatorVotesRequest) ProtoMessage() {} func (*ValidatorVotesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_67f269dcda22019a, []int{27} + return fileDescriptor_a9098f9e68b782a3, []int{27} } func (m *ValidatorVotesRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2738,13 +2765,6 @@ func (m *ValidatorVotesRequest) XXX_DiscardUnknown() { var xxx_messageInfo_ValidatorVotesRequest proto.InternalMessageInfo -func (m *ValidatorVotesRequest) GetChainId() string { - if m != nil { - return m.ChainId - } - return "" -} - func (m *ValidatorVotesRequest) GetProposalId() uint64 { if m != nil { return m.ProposalId @@ -2757,14 +2777,14 @@ type ValidatorVotesResponse struct { // The vote. Vote *Vote `protobuf:"bytes,1,opt,name=vote,proto3" json:"vote,omitempty"` // The validator identity. - IdentityKey *v1alpha12.IdentityKey `protobuf:"bytes,2,opt,name=identity_key,json=identityKey,proto3" json:"identity_key,omitempty"` + IdentityKey *v12.IdentityKey `protobuf:"bytes,2,opt,name=identity_key,json=identityKey,proto3" json:"identity_key,omitempty"` } func (m *ValidatorVotesResponse) Reset() { *m = ValidatorVotesResponse{} } func (m *ValidatorVotesResponse) String() string { return proto.CompactTextString(m) } func (*ValidatorVotesResponse) ProtoMessage() {} func (*ValidatorVotesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_67f269dcda22019a, []int{28} + return fileDescriptor_a9098f9e68b782a3, []int{28} } func (m *ValidatorVotesResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2800,7 +2820,7 @@ func (m *ValidatorVotesResponse) GetVote() *Vote { return nil } -func (m *ValidatorVotesResponse) GetIdentityKey() *v1alpha12.IdentityKey { +func (m *ValidatorVotesResponse) GetIdentityKey() *v12.IdentityKey { if m != nil { return m.IdentityKey } @@ -2812,7 +2832,7 @@ type GovernanceParameters struct { // The number of blocks during which a proposal is voted on. ProposalVotingBlocks uint64 `protobuf:"varint,1,opt,name=proposal_voting_blocks,json=proposalVotingBlocks,proto3" json:"proposal_voting_blocks,omitempty"` // The deposit required to create a proposal. - ProposalDepositAmount *v1alpha1.Amount `protobuf:"bytes,2,opt,name=proposal_deposit_amount,json=proposalDepositAmount,proto3" json:"proposal_deposit_amount,omitempty"` + ProposalDepositAmount *v1.Amount `protobuf:"bytes,2,opt,name=proposal_deposit_amount,json=proposalDepositAmount,proto3" json:"proposal_deposit_amount,omitempty"` // The quorum required for a proposal to be considered valid, as a fraction of the total stake // weight of the network. ProposalValidQuorum string `protobuf:"bytes,3,opt,name=proposal_valid_quorum,json=proposalValidQuorum,proto3" json:"proposal_valid_quorum,omitempty"` @@ -2827,7 +2847,7 @@ func (m *GovernanceParameters) Reset() { *m = GovernanceParameters{} } func (m *GovernanceParameters) String() string { return proto.CompactTextString(m) } func (*GovernanceParameters) ProtoMessage() {} func (*GovernanceParameters) Descriptor() ([]byte, []int) { - return fileDescriptor_67f269dcda22019a, []int{29} + return fileDescriptor_a9098f9e68b782a3, []int{29} } func (m *GovernanceParameters) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2863,7 +2883,7 @@ func (m *GovernanceParameters) GetProposalVotingBlocks() uint64 { return 0 } -func (m *GovernanceParameters) GetProposalDepositAmount() *v1alpha1.Amount { +func (m *GovernanceParameters) GetProposalDepositAmount() *v1.Amount { if m != nil { return m.ProposalDepositAmount } @@ -2901,7 +2921,7 @@ func (m *GenesisContent) Reset() { *m = GenesisContent{} } func (m *GenesisContent) String() string { return proto.CompactTextString(m) } func (*GenesisContent) ProtoMessage() {} func (*GenesisContent) Descriptor() ([]byte, []int) { - return fileDescriptor_67f269dcda22019a, []int{30} + return fileDescriptor_a9098f9e68b782a3, []int{30} } func (m *GenesisContent) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2940,27 +2960,33 @@ func (m *GenesisContent) GetGovernanceParams() *GovernanceParameters { // Note: must be kept in sync with AppParameters. // Each field here is optional. type ChangedAppParameters struct { - // Chain module parameters. - ChainParams *v1alpha17.ChainParameters `protobuf:"bytes,1,opt,name=chain_params,json=chainParams,proto3" json:"chain_params,omitempty"` + // Sct module parameters. + SctParams *v14.SctParameters `protobuf:"bytes,1,opt,name=sct_params,json=sctParams,proto3" json:"sct_params,omitempty"` // Community Pool module parameters. - CommunityPoolParams *v1alpha18.CommunityPoolParameters `protobuf:"bytes,2,opt,name=community_pool_params,json=communityPoolParams,proto3" json:"community_pool_params,omitempty"` + CommunityPoolParams *v17.CommunityPoolParameters `protobuf:"bytes,2,opt,name=community_pool_params,json=communityPoolParams,proto3" json:"community_pool_params,omitempty"` // Governance module parameters. GovernanceParams *GovernanceParameters `protobuf:"bytes,3,opt,name=governance_params,json=governanceParams,proto3" json:"governance_params,omitempty"` // IBC module parameters. - IbcParams *v1alpha19.IbcParameters `protobuf:"bytes,4,opt,name=ibc_params,json=ibcParams,proto3" json:"ibc_params,omitempty"` + IbcParams *v18.IbcParameters `protobuf:"bytes,4,opt,name=ibc_params,json=ibcParams,proto3" json:"ibc_params,omitempty"` // Stake module parameters. - StakeParams *v1alpha16.StakeParameters `protobuf:"bytes,5,opt,name=stake_params,json=stakeParams,proto3" json:"stake_params,omitempty"` + StakeParams *v16.StakeParameters `protobuf:"bytes,5,opt,name=stake_params,json=stakeParams,proto3" json:"stake_params,omitempty"` // Fee module parameters. - FeeParams *v1alpha110.FeeParameters `protobuf:"bytes,6,opt,name=fee_params,json=feeParams,proto3" json:"fee_params,omitempty"` + FeeParams *v19.FeeParameters `protobuf:"bytes,6,opt,name=fee_params,json=feeParams,proto3" json:"fee_params,omitempty"` // Distributions module parameters. - DistributionsParams *v1alpha111.DistributionsParameters `protobuf:"bytes,7,opt,name=distributions_params,json=distributionsParams,proto3" json:"distributions_params,omitempty"` + DistributionsParams *v110.DistributionsParameters `protobuf:"bytes,7,opt,name=distributions_params,json=distributionsParams,proto3" json:"distributions_params,omitempty"` + // Funding module parameters. + FundingParams *v111.FundingParameters `protobuf:"bytes,8,opt,name=funding_params,json=fundingParams,proto3" json:"funding_params,omitempty"` + // Shielded pool module parameters + ShieldedPoolParams *v15.ShieldedPoolParameters `protobuf:"bytes,9,opt,name=shielded_pool_params,json=shieldedPoolParams,proto3" json:"shielded_pool_params,omitempty"` + // DEX component parameters + DexParams *v112.DexParameters `protobuf:"bytes,10,opt,name=dex_params,json=dexParams,proto3" json:"dex_params,omitempty"` } func (m *ChangedAppParameters) Reset() { *m = ChangedAppParameters{} } func (m *ChangedAppParameters) String() string { return proto.CompactTextString(m) } func (*ChangedAppParameters) ProtoMessage() {} func (*ChangedAppParameters) Descriptor() ([]byte, []int) { - return fileDescriptor_67f269dcda22019a, []int{31} + return fileDescriptor_a9098f9e68b782a3, []int{31} } func (m *ChangedAppParameters) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2989,14 +3015,14 @@ func (m *ChangedAppParameters) XXX_DiscardUnknown() { var xxx_messageInfo_ChangedAppParameters proto.InternalMessageInfo -func (m *ChangedAppParameters) GetChainParams() *v1alpha17.ChainParameters { +func (m *ChangedAppParameters) GetSctParams() *v14.SctParameters { if m != nil { - return m.ChainParams + return m.SctParams } return nil } -func (m *ChangedAppParameters) GetCommunityPoolParams() *v1alpha18.CommunityPoolParameters { +func (m *ChangedAppParameters) GetCommunityPoolParams() *v17.CommunityPoolParameters { if m != nil { return m.CommunityPoolParams } @@ -3010,34 +3036,55 @@ func (m *ChangedAppParameters) GetGovernanceParams() *GovernanceParameters { return nil } -func (m *ChangedAppParameters) GetIbcParams() *v1alpha19.IbcParameters { +func (m *ChangedAppParameters) GetIbcParams() *v18.IbcParameters { if m != nil { return m.IbcParams } return nil } -func (m *ChangedAppParameters) GetStakeParams() *v1alpha16.StakeParameters { +func (m *ChangedAppParameters) GetStakeParams() *v16.StakeParameters { if m != nil { return m.StakeParams } return nil } -func (m *ChangedAppParameters) GetFeeParams() *v1alpha110.FeeParameters { +func (m *ChangedAppParameters) GetFeeParams() *v19.FeeParameters { if m != nil { return m.FeeParams } return nil } -func (m *ChangedAppParameters) GetDistributionsParams() *v1alpha111.DistributionsParameters { +func (m *ChangedAppParameters) GetDistributionsParams() *v110.DistributionsParameters { if m != nil { return m.DistributionsParams } return nil } +func (m *ChangedAppParameters) GetFundingParams() *v111.FundingParameters { + if m != nil { + return m.FundingParams + } + return nil +} + +func (m *ChangedAppParameters) GetShieldedPoolParams() *v15.ShieldedPoolParameters { + if m != nil { + return m.ShieldedPoolParams + } + return nil +} + +func (m *ChangedAppParameters) GetDexParams() *v112.DexParameters { + if m != nil { + return m.DexParams + } + return nil +} + type ChangedAppParametersSet struct { // The set of app parameters at the time the proposal was submitted. Old *ChangedAppParameters `protobuf:"bytes,1,opt,name=old,proto3" json:"old,omitempty"` @@ -3049,7 +3096,7 @@ func (m *ChangedAppParametersSet) Reset() { *m = ChangedAppParametersSet func (m *ChangedAppParametersSet) String() string { return proto.CompactTextString(m) } func (*ChangedAppParametersSet) ProtoMessage() {} func (*ChangedAppParametersSet) Descriptor() ([]byte, []int) { - return fileDescriptor_67f269dcda22019a, []int{32} + return fileDescriptor_a9098f9e68b782a3, []int{32} } func (m *ChangedAppParametersSet) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3093,19 +3140,17 @@ func (m *ChangedAppParametersSet) GetNew() *ChangedAppParameters { } type VotingPowerAtProposalStartRequest struct { - // The expected chain id (empty string if no expectation). - ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` // The proposal id to request information on. ProposalId uint64 `protobuf:"varint,2,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"` // The validator identity key to request information on. - IdentityKey *v1alpha12.IdentityKey `protobuf:"bytes,3,opt,name=identity_key,json=identityKey,proto3" json:"identity_key,omitempty"` + IdentityKey *v12.IdentityKey `protobuf:"bytes,3,opt,name=identity_key,json=identityKey,proto3" json:"identity_key,omitempty"` } func (m *VotingPowerAtProposalStartRequest) Reset() { *m = VotingPowerAtProposalStartRequest{} } func (m *VotingPowerAtProposalStartRequest) String() string { return proto.CompactTextString(m) } func (*VotingPowerAtProposalStartRequest) ProtoMessage() {} func (*VotingPowerAtProposalStartRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_67f269dcda22019a, []int{33} + return fileDescriptor_a9098f9e68b782a3, []int{33} } func (m *VotingPowerAtProposalStartRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3134,13 +3179,6 @@ func (m *VotingPowerAtProposalStartRequest) XXX_DiscardUnknown() { var xxx_messageInfo_VotingPowerAtProposalStartRequest proto.InternalMessageInfo -func (m *VotingPowerAtProposalStartRequest) GetChainId() string { - if m != nil { - return m.ChainId - } - return "" -} - func (m *VotingPowerAtProposalStartRequest) GetProposalId() uint64 { if m != nil { return m.ProposalId @@ -3148,7 +3186,7 @@ func (m *VotingPowerAtProposalStartRequest) GetProposalId() uint64 { return 0 } -func (m *VotingPowerAtProposalStartRequest) GetIdentityKey() *v1alpha12.IdentityKey { +func (m *VotingPowerAtProposalStartRequest) GetIdentityKey() *v12.IdentityKey { if m != nil { return m.IdentityKey } @@ -3167,7 +3205,7 @@ func (m *VotingPowerAtProposalStartResponse) Reset() { *m = VotingPowerA func (m *VotingPowerAtProposalStartResponse) String() string { return proto.CompactTextString(m) } func (*VotingPowerAtProposalStartResponse) ProtoMessage() {} func (*VotingPowerAtProposalStartResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_67f269dcda22019a, []int{34} + return fileDescriptor_a9098f9e68b782a3, []int{34} } func (m *VotingPowerAtProposalStartResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3204,8 +3242,6 @@ func (m *VotingPowerAtProposalStartResponse) GetVotingPower() uint64 { } type AllTalliedDelegatorVotesForProposalRequest struct { - // The expected chain id (empty string if no expectation). - ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` // The proposal id to request information on. ProposalId uint64 `protobuf:"varint,2,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"` } @@ -3218,7 +3254,7 @@ func (m *AllTalliedDelegatorVotesForProposalRequest) String() string { } func (*AllTalliedDelegatorVotesForProposalRequest) ProtoMessage() {} func (*AllTalliedDelegatorVotesForProposalRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_67f269dcda22019a, []int{35} + return fileDescriptor_a9098f9e68b782a3, []int{35} } func (m *AllTalliedDelegatorVotesForProposalRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3247,13 +3283,6 @@ func (m *AllTalliedDelegatorVotesForProposalRequest) XXX_DiscardUnknown() { var xxx_messageInfo_AllTalliedDelegatorVotesForProposalRequest proto.InternalMessageInfo -func (m *AllTalliedDelegatorVotesForProposalRequest) GetChainId() string { - if m != nil { - return m.ChainId - } - return "" -} - func (m *AllTalliedDelegatorVotesForProposalRequest) GetProposalId() uint64 { if m != nil { return m.ProposalId @@ -3265,7 +3294,7 @@ type AllTalliedDelegatorVotesForProposalResponse struct { // The tally of delegator votes for a given validator for the proposal. Tally *Tally `protobuf:"bytes,1,opt,name=tally,proto3" json:"tally,omitempty"` // The validator identity associated with the tally. - IdentityKey *v1alpha12.IdentityKey `protobuf:"bytes,2,opt,name=identity_key,json=identityKey,proto3" json:"identity_key,omitempty"` + IdentityKey *v12.IdentityKey `protobuf:"bytes,2,opt,name=identity_key,json=identityKey,proto3" json:"identity_key,omitempty"` } func (m *AllTalliedDelegatorVotesForProposalResponse) Reset() { @@ -3276,7 +3305,7 @@ func (m *AllTalliedDelegatorVotesForProposalResponse) String() string { } func (*AllTalliedDelegatorVotesForProposalResponse) ProtoMessage() {} func (*AllTalliedDelegatorVotesForProposalResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_67f269dcda22019a, []int{36} + return fileDescriptor_a9098f9e68b782a3, []int{36} } func (m *AllTalliedDelegatorVotesForProposalResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3312,7 +3341,7 @@ func (m *AllTalliedDelegatorVotesForProposalResponse) GetTally() *Tally { return nil } -func (m *AllTalliedDelegatorVotesForProposalResponse) GetIdentityKey() *v1alpha12.IdentityKey { +func (m *AllTalliedDelegatorVotesForProposalResponse) GetIdentityKey() *v12.IdentityKey { if m != nil { return m.IdentityKey } @@ -3320,15 +3349,13 @@ func (m *AllTalliedDelegatorVotesForProposalResponse) GetIdentityKey() *v1alpha1 } type NextProposalIdRequest struct { - // The expected chain id (empty string if no expectation). - ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` } func (m *NextProposalIdRequest) Reset() { *m = NextProposalIdRequest{} } func (m *NextProposalIdRequest) String() string { return proto.CompactTextString(m) } func (*NextProposalIdRequest) ProtoMessage() {} func (*NextProposalIdRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_67f269dcda22019a, []int{37} + return fileDescriptor_a9098f9e68b782a3, []int{37} } func (m *NextProposalIdRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3357,13 +3384,6 @@ func (m *NextProposalIdRequest) XXX_DiscardUnknown() { var xxx_messageInfo_NextProposalIdRequest proto.InternalMessageInfo -func (m *NextProposalIdRequest) GetChainId() string { - if m != nil { - return m.ChainId - } - return "" -} - type NextProposalIdResponse struct { // The next proposal ID. NextProposalId uint64 `protobuf:"varint,1,opt,name=next_proposal_id,json=nextProposalId,proto3" json:"next_proposal_id,omitempty"` @@ -3373,7 +3393,7 @@ func (m *NextProposalIdResponse) Reset() { *m = NextProposalIdResponse{} func (m *NextProposalIdResponse) String() string { return proto.CompactTextString(m) } func (*NextProposalIdResponse) ProtoMessage() {} func (*NextProposalIdResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_67f269dcda22019a, []int{38} + return fileDescriptor_a9098f9e68b782a3, []int{38} } func (m *NextProposalIdResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3409,564 +3429,1004 @@ func (m *NextProposalIdResponse) GetNextProposalId() uint64 { return 0 } -func init() { - proto.RegisterEnum("penumbra.core.component.governance.v1alpha1.Vote_Vote", Vote_Vote_name, Vote_Vote_value) - proto.RegisterType((*ZKDelegatorVoteProof)(nil), "penumbra.core.component.governance.v1alpha1.ZKDelegatorVoteProof") - proto.RegisterType((*ProposalSubmit)(nil), "penumbra.core.component.governance.v1alpha1.ProposalSubmit") - proto.RegisterType((*ProposalWithdraw)(nil), "penumbra.core.component.governance.v1alpha1.ProposalWithdraw") - proto.RegisterType((*ProposalDepositClaim)(nil), "penumbra.core.component.governance.v1alpha1.ProposalDepositClaim") - proto.RegisterType((*ValidatorVote)(nil), "penumbra.core.component.governance.v1alpha1.ValidatorVote") - proto.RegisterType((*ValidatorVoteReason)(nil), "penumbra.core.component.governance.v1alpha1.ValidatorVoteReason") - proto.RegisterType((*ValidatorVoteBody)(nil), "penumbra.core.component.governance.v1alpha1.ValidatorVoteBody") - proto.RegisterType((*DelegatorVote)(nil), "penumbra.core.component.governance.v1alpha1.DelegatorVote") - proto.RegisterType((*DelegatorVoteBody)(nil), "penumbra.core.component.governance.v1alpha1.DelegatorVoteBody") - proto.RegisterType((*DelegatorVoteView)(nil), "penumbra.core.component.governance.v1alpha1.DelegatorVoteView") - proto.RegisterType((*DelegatorVoteView_Visible)(nil), "penumbra.core.component.governance.v1alpha1.DelegatorVoteView.Visible") - proto.RegisterType((*DelegatorVoteView_Opaque)(nil), "penumbra.core.component.governance.v1alpha1.DelegatorVoteView.Opaque") - proto.RegisterType((*DelegatorVotePlan)(nil), "penumbra.core.component.governance.v1alpha1.DelegatorVotePlan") - proto.RegisterType((*CommunityPoolDeposit)(nil), "penumbra.core.component.governance.v1alpha1.CommunityPoolDeposit") - proto.RegisterType((*CommunityPoolSpend)(nil), "penumbra.core.component.governance.v1alpha1.CommunityPoolSpend") - proto.RegisterType((*CommunityPoolOutput)(nil), "penumbra.core.component.governance.v1alpha1.CommunityPoolOutput") - proto.RegisterType((*Vote)(nil), "penumbra.core.component.governance.v1alpha1.Vote") - proto.RegisterType((*ProposalState)(nil), "penumbra.core.component.governance.v1alpha1.ProposalState") - proto.RegisterType((*ProposalState_Voting)(nil), "penumbra.core.component.governance.v1alpha1.ProposalState.Voting") - proto.RegisterType((*ProposalState_Withdrawn)(nil), "penumbra.core.component.governance.v1alpha1.ProposalState.Withdrawn") - proto.RegisterType((*ProposalState_Finished)(nil), "penumbra.core.component.governance.v1alpha1.ProposalState.Finished") - proto.RegisterType((*ProposalState_Claimed)(nil), "penumbra.core.component.governance.v1alpha1.ProposalState.Claimed") - proto.RegisterType((*ProposalOutcome)(nil), "penumbra.core.component.governance.v1alpha1.ProposalOutcome") - proto.RegisterType((*ProposalOutcome_Withdrawn)(nil), "penumbra.core.component.governance.v1alpha1.ProposalOutcome.Withdrawn") - proto.RegisterType((*ProposalOutcome_Passed)(nil), "penumbra.core.component.governance.v1alpha1.ProposalOutcome.Passed") - proto.RegisterType((*ProposalOutcome_Failed)(nil), "penumbra.core.component.governance.v1alpha1.ProposalOutcome.Failed") - proto.RegisterType((*ProposalOutcome_Slashed)(nil), "penumbra.core.component.governance.v1alpha1.ProposalOutcome.Slashed") - proto.RegisterType((*Tally)(nil), "penumbra.core.component.governance.v1alpha1.Tally") - proto.RegisterType((*Proposal)(nil), "penumbra.core.component.governance.v1alpha1.Proposal") - proto.RegisterType((*Proposal_Signaling)(nil), "penumbra.core.component.governance.v1alpha1.Proposal.Signaling") - proto.RegisterType((*Proposal_Emergency)(nil), "penumbra.core.component.governance.v1alpha1.Proposal.Emergency") - proto.RegisterType((*Proposal_ParameterChange)(nil), "penumbra.core.component.governance.v1alpha1.Proposal.ParameterChange") - proto.RegisterType((*Proposal_CommunityPoolSpend)(nil), "penumbra.core.component.governance.v1alpha1.Proposal.CommunityPoolSpend") - proto.RegisterType((*Proposal_UpgradePlan)(nil), "penumbra.core.component.governance.v1alpha1.Proposal.UpgradePlan") - proto.RegisterType((*Proposal_FreezeIbcClient)(nil), "penumbra.core.component.governance.v1alpha1.Proposal.FreezeIbcClient") - proto.RegisterType((*Proposal_UnfreezeIbcClient)(nil), "penumbra.core.component.governance.v1alpha1.Proposal.UnfreezeIbcClient") - proto.RegisterType((*ProposalInfoRequest)(nil), "penumbra.core.component.governance.v1alpha1.ProposalInfoRequest") - proto.RegisterType((*ProposalInfoResponse)(nil), "penumbra.core.component.governance.v1alpha1.ProposalInfoResponse") - proto.RegisterType((*ProposalDataRequest)(nil), "penumbra.core.component.governance.v1alpha1.ProposalDataRequest") - proto.RegisterType((*ProposalDataResponse)(nil), "penumbra.core.component.governance.v1alpha1.ProposalDataResponse") - proto.RegisterType((*ProposalRateDataRequest)(nil), "penumbra.core.component.governance.v1alpha1.ProposalRateDataRequest") - proto.RegisterType((*ProposalRateDataResponse)(nil), "penumbra.core.component.governance.v1alpha1.ProposalRateDataResponse") - proto.RegisterType((*ProposalListRequest)(nil), "penumbra.core.component.governance.v1alpha1.ProposalListRequest") - proto.RegisterType((*ProposalListResponse)(nil), "penumbra.core.component.governance.v1alpha1.ProposalListResponse") - proto.RegisterType((*ValidatorVotesRequest)(nil), "penumbra.core.component.governance.v1alpha1.ValidatorVotesRequest") - proto.RegisterType((*ValidatorVotesResponse)(nil), "penumbra.core.component.governance.v1alpha1.ValidatorVotesResponse") - proto.RegisterType((*GovernanceParameters)(nil), "penumbra.core.component.governance.v1alpha1.GovernanceParameters") - proto.RegisterType((*GenesisContent)(nil), "penumbra.core.component.governance.v1alpha1.GenesisContent") - proto.RegisterType((*ChangedAppParameters)(nil), "penumbra.core.component.governance.v1alpha1.ChangedAppParameters") - proto.RegisterType((*ChangedAppParametersSet)(nil), "penumbra.core.component.governance.v1alpha1.ChangedAppParametersSet") - proto.RegisterType((*VotingPowerAtProposalStartRequest)(nil), "penumbra.core.component.governance.v1alpha1.VotingPowerAtProposalStartRequest") - proto.RegisterType((*VotingPowerAtProposalStartResponse)(nil), "penumbra.core.component.governance.v1alpha1.VotingPowerAtProposalStartResponse") - proto.RegisterType((*AllTalliedDelegatorVotesForProposalRequest)(nil), "penumbra.core.component.governance.v1alpha1.AllTalliedDelegatorVotesForProposalRequest") - proto.RegisterType((*AllTalliedDelegatorVotesForProposalResponse)(nil), "penumbra.core.component.governance.v1alpha1.AllTalliedDelegatorVotesForProposalResponse") - proto.RegisterType((*NextProposalIdRequest)(nil), "penumbra.core.component.governance.v1alpha1.NextProposalIdRequest") - proto.RegisterType((*NextProposalIdResponse)(nil), "penumbra.core.component.governance.v1alpha1.NextProposalIdResponse") +// The ratio between two numbers, used in governance to describe vote thresholds and quorums. +type Ratio struct { + // The numerator. + Numerator uint64 `protobuf:"varint,1,opt,name=numerator,proto3" json:"numerator,omitempty"` + // The denominator. + Denominator uint64 `protobuf:"varint,2,opt,name=denominator,proto3" json:"denominator,omitempty"` } -func init() { - proto.RegisterFile("penumbra/core/component/governance/v1alpha1/governance.proto", fileDescriptor_67f269dcda22019a) -} - -var fileDescriptor_67f269dcda22019a = []byte{ - // 2894 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x5a, 0xdf, 0x6f, 0x63, 0x47, - 0xf5, 0xcf, 0x75, 0xe2, 0xd8, 0x3e, 0x49, 0x1c, 0xef, 0x6c, 0x76, 0x9b, 0xfa, 0xab, 0x6f, 0x68, - 0x6f, 0x5b, 0x14, 0xb5, 0xc5, 0xde, 0xa6, 0xa5, 0x5b, 0x42, 0xd5, 0x36, 0xf1, 0x26, 0x9b, 0xb0, - 0xdb, 0x8d, 0xf7, 0x7a, 0x37, 0x2d, 0xcb, 0x16, 0x33, 0xbe, 0x77, 0x6c, 0x0f, 0xb9, 0x9e, 0xeb, - 0xbd, 0x3f, 0x92, 0x7a, 0xc5, 0x03, 0x7f, 0x42, 0xa5, 0x16, 0x10, 0x42, 0x3c, 0xc0, 0x23, 0x42, - 0xfc, 0x01, 0x95, 0x78, 0x01, 0x1e, 0x10, 0x02, 0xd4, 0x17, 0x24, 0xc4, 0x53, 0xb5, 0x2b, 0x84, - 0xe0, 0x89, 0x3f, 0x01, 0xcd, 0xdc, 0xb9, 0xbf, 0x1c, 0xe7, 0x87, 0x7f, 0x6c,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 0x62, 0x97, 0xa0, 0x6f, 0xc1, 0xec, 0xa1, 0xe5, 0x52, 0x16, 0x14, 0x17, - 0x1b, 0x23, 0x95, 0xde, 0x02, 0x8b, 0xeb, 0x4c, 0x59, 0x8b, 0xe7, 0x5a, 0x1f, 0x12, 0x19, 0x90, - 0x3b, 0x92, 0x8d, 0x09, 0x93, 0x7b, 0xfb, 0xda, 0x18, 0xf8, 0x41, 0x93, 0xc3, 0x76, 0xa6, 0xb4, - 0x08, 0x18, 0x61, 0xc8, 0x36, 0x29, 0xa3, 0x4e, 0x9b, 0x18, 0x72, 0xcb, 0x57, 0xc6, 0x10, 0xb2, - 0x2d, 0xa1, 0x76, 0xa6, 0xb4, 0x10, 0x16, 0x7d, 0x1b, 0x32, 0x3a, 0xef, 0x88, 0x88, 0x21, 0x4f, - 0xfc, 0xcd, 0x31, 0x24, 0x54, 0x7c, 0x24, 0x7e, 0xea, 0x49, 0xd0, 0x62, 0x16, 0x66, 0x7d, 0xe3, - 0x15, 0x9f, 0x83, 0x5c, 0xb8, 0xcc, 0x93, 0x8a, 0xfd, 0x62, 0x03, 0xb2, 0x81, 0x9a, 0xf1, 0xe6, - 0x49, 0x99, 0x60, 0xf3, 0x54, 0xc4, 0x90, 0x91, 0x8a, 0x3e, 0x29, 0x11, 0x9b, 0x19, 0x48, 0x3b, - 0xdc, 0x22, 0xea, 0x1f, 0x67, 0x60, 0xb1, 0x8f, 0x0a, 0x7d, 0x00, 0xb3, 0x5d, 0xbe, 0x55, 0x0d, - 0x29, 0xb3, 0x32, 0x8e, 0xcc, 0x52, 0x55, 0x40, 0xf1, 0xd0, 0xf4, 0x41, 0x39, 0x7c, 0x13, 0x53, - 0x93, 0x18, 0x32, 0xee, 0xc7, 0x83, 0xdf, 0x16, 0x50, 0x1c, 0xde, 0x07, 0x45, 0xdf, 0x81, 0x8c, - 0x63, 0x62, 0x11, 0x92, 0xe3, 0xc4, 0x7d, 0x80, 0x5f, 0xf3, 0xb1, 0x78, 0xc8,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0x03, 0xea, 0x47, 0xa9, 0xab, 0x43, 0x50, 0xdf, 0xbf, 0x5e, 0xdd, - 0x7c, 0x97, 0xb8, 0xd8, 0xc0, 0x2e, 0xfe, 0x57, 0xaa, 0x1c, 0x70, 0xae, 0xaf, 0x73, 0x56, 0xfe, - 0x2b, 0x79, 0xd7, 0xd7, 0x23, 0xe6, 0xf5, 0xf5, 0x80, 0xbb, 0x31, 0x2b, 0x5e, 0xd6, 0xbe, 0xfa, - 0x9f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xc6, 0x98, 0x97, 0x6a, 0xb5, 0x2f, 0x00, 0x00, +func (m *Ratio) Reset() { *m = Ratio{} } +func (m *Ratio) String() string { return proto.CompactTextString(m) } +func (*Ratio) ProtoMessage() {} +func (*Ratio) Descriptor() ([]byte, []int) { + return fileDescriptor_a9098f9e68b782a3, []int{39} +} +func (m *Ratio) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Ratio) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Ratio.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 *Ratio) XXX_Merge(src proto.Message) { + xxx_messageInfo_Ratio.Merge(m, src) +} +func (m *Ratio) XXX_Size() int { + return m.Size() +} +func (m *Ratio) XXX_DiscardUnknown() { + xxx_messageInfo_Ratio.DiscardUnknown(m) } -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 +var xxx_messageInfo_Ratio proto.InternalMessageInfo -// QueryServiceClient is the client API for QueryService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type QueryServiceClient interface { - ProposalInfo(ctx context.Context, in *ProposalInfoRequest, opts ...grpc.CallOption) (*ProposalInfoResponse, error) - ProposalList(ctx context.Context, in *ProposalListRequest, opts ...grpc.CallOption) (QueryService_ProposalListClient, error) - ProposalData(ctx context.Context, in *ProposalDataRequest, opts ...grpc.CallOption) (*ProposalDataResponse, error) - NextProposalId(ctx context.Context, in *NextProposalIdRequest, opts ...grpc.CallOption) (*NextProposalIdResponse, error) - ValidatorVotes(ctx context.Context, in *ValidatorVotesRequest, opts ...grpc.CallOption) (QueryService_ValidatorVotesClient, error) - VotingPowerAtProposalStart(ctx context.Context, in *VotingPowerAtProposalStartRequest, opts ...grpc.CallOption) (*VotingPowerAtProposalStartResponse, error) - AllTalliedDelegatorVotesForProposal(ctx context.Context, in *AllTalliedDelegatorVotesForProposalRequest, opts ...grpc.CallOption) (QueryService_AllTalliedDelegatorVotesForProposalClient, error) - // Used for computing voting power ? - ProposalRateData(ctx context.Context, in *ProposalRateDataRequest, opts ...grpc.CallOption) (QueryService_ProposalRateDataClient, error) +func (m *Ratio) GetNumerator() uint64 { + if m != nil { + return m.Numerator + } + return 0 } -type queryServiceClient struct { - cc grpc1.ClientConn +func (m *Ratio) GetDenominator() uint64 { + if m != nil { + return m.Denominator + } + return 0 } -func NewQueryServiceClient(cc grpc1.ClientConn) QueryServiceClient { - return &queryServiceClient{cc} +type EventDelegatorVote struct { + // The delegator vote. + Vote *DelegatorVote `protobuf:"bytes,1,opt,name=vote,proto3" json:"vote,omitempty"` } -func (c *queryServiceClient) ProposalInfo(ctx context.Context, in *ProposalInfoRequest, opts ...grpc.CallOption) (*ProposalInfoResponse, error) { - out := new(ProposalInfoResponse) - err := c.cc.Invoke(ctx, "/penumbra.core.component.governance.v1alpha1.QueryService/ProposalInfo", in, out, opts...) - if err != nil { - return nil, err +func (m *EventDelegatorVote) Reset() { *m = EventDelegatorVote{} } +func (m *EventDelegatorVote) String() string { return proto.CompactTextString(m) } +func (*EventDelegatorVote) ProtoMessage() {} +func (*EventDelegatorVote) Descriptor() ([]byte, []int) { + return fileDescriptor_a9098f9e68b782a3, []int{40} +} +func (m *EventDelegatorVote) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EventDelegatorVote) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EventDelegatorVote.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return out, nil +} +func (m *EventDelegatorVote) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventDelegatorVote.Merge(m, src) +} +func (m *EventDelegatorVote) XXX_Size() int { + return m.Size() +} +func (m *EventDelegatorVote) XXX_DiscardUnknown() { + xxx_messageInfo_EventDelegatorVote.DiscardUnknown(m) } -func (c *queryServiceClient) ProposalList(ctx context.Context, in *ProposalListRequest, opts ...grpc.CallOption) (QueryService_ProposalListClient, error) { - stream, err := c.cc.NewStream(ctx, &_QueryService_serviceDesc.Streams[0], "/penumbra.core.component.governance.v1alpha1.QueryService/ProposalList", opts...) - if err != nil { - return nil, err - } - x := &queryServiceProposalListClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err +var xxx_messageInfo_EventDelegatorVote proto.InternalMessageInfo + +func (m *EventDelegatorVote) GetVote() *DelegatorVote { + if m != nil { + return m.Vote } - return x, nil + return nil } -type QueryService_ProposalListClient interface { - Recv() (*ProposalListResponse, error) - grpc.ClientStream +type EventProposalDepositClaim struct { + // The deposit claim body. + DepositClaim *ProposalDepositClaim `protobuf:"bytes,1,opt,name=deposit_claim,json=depositClaim,proto3" json:"deposit_claim,omitempty"` } -type queryServiceProposalListClient struct { - grpc.ClientStream +func (m *EventProposalDepositClaim) Reset() { *m = EventProposalDepositClaim{} } +func (m *EventProposalDepositClaim) String() string { return proto.CompactTextString(m) } +func (*EventProposalDepositClaim) ProtoMessage() {} +func (*EventProposalDepositClaim) Descriptor() ([]byte, []int) { + return fileDescriptor_a9098f9e68b782a3, []int{41} } - -func (x *queryServiceProposalListClient) Recv() (*ProposalListResponse, error) { - m := new(ProposalListResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err +func (m *EventProposalDepositClaim) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EventProposalDepositClaim) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EventProposalDepositClaim.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return m, nil +} +func (m *EventProposalDepositClaim) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventProposalDepositClaim.Merge(m, src) +} +func (m *EventProposalDepositClaim) XXX_Size() int { + return m.Size() +} +func (m *EventProposalDepositClaim) XXX_DiscardUnknown() { + xxx_messageInfo_EventProposalDepositClaim.DiscardUnknown(m) } -func (c *queryServiceClient) ProposalData(ctx context.Context, in *ProposalDataRequest, opts ...grpc.CallOption) (*ProposalDataResponse, error) { - out := new(ProposalDataResponse) - err := c.cc.Invoke(ctx, "/penumbra.core.component.governance.v1alpha1.QueryService/ProposalData", in, out, opts...) - if err != nil { - return nil, err +var xxx_messageInfo_EventProposalDepositClaim proto.InternalMessageInfo + +func (m *EventProposalDepositClaim) GetDepositClaim() *ProposalDepositClaim { + if m != nil { + return m.DepositClaim } - return out, nil + return nil } -func (c *queryServiceClient) NextProposalId(ctx context.Context, in *NextProposalIdRequest, opts ...grpc.CallOption) (*NextProposalIdResponse, error) { - out := new(NextProposalIdResponse) - err := c.cc.Invoke(ctx, "/penumbra.core.component.governance.v1alpha1.QueryService/NextProposalId", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +type EventValidatorVote struct { + // The validator vote. + Vote *ValidatorVote `protobuf:"bytes,1,opt,name=vote,proto3" json:"vote,omitempty"` } -func (c *queryServiceClient) ValidatorVotes(ctx context.Context, in *ValidatorVotesRequest, opts ...grpc.CallOption) (QueryService_ValidatorVotesClient, error) { - stream, err := c.cc.NewStream(ctx, &_QueryService_serviceDesc.Streams[1], "/penumbra.core.component.governance.v1alpha1.QueryService/ValidatorVotes", opts...) - if err != nil { - return nil, err - } - x := &queryServiceValidatorVotesClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err +func (m *EventValidatorVote) Reset() { *m = EventValidatorVote{} } +func (m *EventValidatorVote) String() string { return proto.CompactTextString(m) } +func (*EventValidatorVote) ProtoMessage() {} +func (*EventValidatorVote) Descriptor() ([]byte, []int) { + return fileDescriptor_a9098f9e68b782a3, []int{42} +} +func (m *EventValidatorVote) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EventValidatorVote) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EventValidatorVote.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return x, nil } - -type QueryService_ValidatorVotesClient interface { - Recv() (*ValidatorVotesResponse, error) - grpc.ClientStream +func (m *EventValidatorVote) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventValidatorVote.Merge(m, src) } - -type queryServiceValidatorVotesClient struct { - grpc.ClientStream +func (m *EventValidatorVote) XXX_Size() int { + return m.Size() +} +func (m *EventValidatorVote) XXX_DiscardUnknown() { + xxx_messageInfo_EventValidatorVote.DiscardUnknown(m) } -func (x *queryServiceValidatorVotesClient) Recv() (*ValidatorVotesResponse, error) { - m := new(ValidatorVotesResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err +var xxx_messageInfo_EventValidatorVote proto.InternalMessageInfo + +func (m *EventValidatorVote) GetVote() *ValidatorVote { + if m != nil { + return m.Vote } - return m, nil + return nil } -func (c *queryServiceClient) VotingPowerAtProposalStart(ctx context.Context, in *VotingPowerAtProposalStartRequest, opts ...grpc.CallOption) (*VotingPowerAtProposalStartResponse, error) { - out := new(VotingPowerAtProposalStartResponse) - err := c.cc.Invoke(ctx, "/penumbra.core.component.governance.v1alpha1.QueryService/VotingPowerAtProposalStart", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +type EventProposalWithdraw struct { + // Details on the withdrawn proposal. + Withdraw *ProposalWithdraw `protobuf:"bytes,1,opt,name=withdraw,proto3" json:"withdraw,omitempty"` } -func (c *queryServiceClient) AllTalliedDelegatorVotesForProposal(ctx context.Context, in *AllTalliedDelegatorVotesForProposalRequest, opts ...grpc.CallOption) (QueryService_AllTalliedDelegatorVotesForProposalClient, error) { - stream, err := c.cc.NewStream(ctx, &_QueryService_serviceDesc.Streams[2], "/penumbra.core.component.governance.v1alpha1.QueryService/AllTalliedDelegatorVotesForProposal", opts...) - if err != nil { - return nil, err - } - x := &queryServiceAllTalliedDelegatorVotesForProposalClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err +func (m *EventProposalWithdraw) Reset() { *m = EventProposalWithdraw{} } +func (m *EventProposalWithdraw) String() string { return proto.CompactTextString(m) } +func (*EventProposalWithdraw) ProtoMessage() {} +func (*EventProposalWithdraw) Descriptor() ([]byte, []int) { + return fileDescriptor_a9098f9e68b782a3, []int{43} +} +func (m *EventProposalWithdraw) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EventProposalWithdraw) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EventProposalWithdraw.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return x, nil +} +func (m *EventProposalWithdraw) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventProposalWithdraw.Merge(m, src) +} +func (m *EventProposalWithdraw) XXX_Size() int { + return m.Size() +} +func (m *EventProposalWithdraw) XXX_DiscardUnknown() { + xxx_messageInfo_EventProposalWithdraw.DiscardUnknown(m) } -type QueryService_AllTalliedDelegatorVotesForProposalClient interface { - Recv() (*AllTalliedDelegatorVotesForProposalResponse, error) - grpc.ClientStream +var xxx_messageInfo_EventProposalWithdraw proto.InternalMessageInfo + +func (m *EventProposalWithdraw) GetWithdraw() *ProposalWithdraw { + if m != nil { + return m.Withdraw + } + return nil } -type queryServiceAllTalliedDelegatorVotesForProposalClient struct { - grpc.ClientStream +type EventProposalSubmit struct { + // Details on the submitted proposal. + Submit *ProposalSubmit `protobuf:"bytes,1,opt,name=submit,proto3" json:"submit,omitempty"` } -func (x *queryServiceAllTalliedDelegatorVotesForProposalClient) Recv() (*AllTalliedDelegatorVotesForProposalResponse, error) { - m := new(AllTalliedDelegatorVotesForProposalResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err +func (m *EventProposalSubmit) Reset() { *m = EventProposalSubmit{} } +func (m *EventProposalSubmit) String() string { return proto.CompactTextString(m) } +func (*EventProposalSubmit) ProtoMessage() {} +func (*EventProposalSubmit) Descriptor() ([]byte, []int) { + return fileDescriptor_a9098f9e68b782a3, []int{44} +} +func (m *EventProposalSubmit) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EventProposalSubmit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EventProposalSubmit.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return m, nil +} +func (m *EventProposalSubmit) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventProposalSubmit.Merge(m, src) +} +func (m *EventProposalSubmit) XXX_Size() int { + return m.Size() +} +func (m *EventProposalSubmit) XXX_DiscardUnknown() { + xxx_messageInfo_EventProposalSubmit.DiscardUnknown(m) } -func (c *queryServiceClient) ProposalRateData(ctx context.Context, in *ProposalRateDataRequest, opts ...grpc.CallOption) (QueryService_ProposalRateDataClient, error) { - stream, err := c.cc.NewStream(ctx, &_QueryService_serviceDesc.Streams[3], "/penumbra.core.component.governance.v1alpha1.QueryService/ProposalRateData", opts...) - if err != nil { - return nil, err - } - x := &queryServiceProposalRateDataClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err +var xxx_messageInfo_EventProposalSubmit proto.InternalMessageInfo + +func (m *EventProposalSubmit) GetSubmit() *ProposalSubmit { + if m != nil { + return m.Submit } - return x, nil + return nil } -type QueryService_ProposalRateDataClient interface { - Recv() (*ProposalRateDataResponse, error) - grpc.ClientStream +type EventEnactProposal struct { + // The enacted proposal. + Proposal *Proposal `protobuf:"bytes,1,opt,name=proposal,proto3" json:"proposal,omitempty"` } -type queryServiceProposalRateDataClient struct { - grpc.ClientStream +func (m *EventEnactProposal) Reset() { *m = EventEnactProposal{} } +func (m *EventEnactProposal) String() string { return proto.CompactTextString(m) } +func (*EventEnactProposal) ProtoMessage() {} +func (*EventEnactProposal) Descriptor() ([]byte, []int) { + return fileDescriptor_a9098f9e68b782a3, []int{45} } - -func (x *queryServiceProposalRateDataClient) Recv() (*ProposalRateDataResponse, error) { - m := new(ProposalRateDataResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err +func (m *EventEnactProposal) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EventEnactProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EventEnactProposal.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return m, nil } - -// QueryServiceServer is the server API for QueryService service. -type QueryServiceServer interface { - ProposalInfo(context.Context, *ProposalInfoRequest) (*ProposalInfoResponse, error) - ProposalList(*ProposalListRequest, QueryService_ProposalListServer) error - ProposalData(context.Context, *ProposalDataRequest) (*ProposalDataResponse, error) - NextProposalId(context.Context, *NextProposalIdRequest) (*NextProposalIdResponse, error) - ValidatorVotes(*ValidatorVotesRequest, QueryService_ValidatorVotesServer) error - VotingPowerAtProposalStart(context.Context, *VotingPowerAtProposalStartRequest) (*VotingPowerAtProposalStartResponse, error) - AllTalliedDelegatorVotesForProposal(*AllTalliedDelegatorVotesForProposalRequest, QueryService_AllTalliedDelegatorVotesForProposalServer) error - // Used for computing voting power ? - ProposalRateData(*ProposalRateDataRequest, QueryService_ProposalRateDataServer) error +func (m *EventEnactProposal) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventEnactProposal.Merge(m, src) +} +func (m *EventEnactProposal) XXX_Size() int { + return m.Size() +} +func (m *EventEnactProposal) XXX_DiscardUnknown() { + xxx_messageInfo_EventEnactProposal.DiscardUnknown(m) } -// UnimplementedQueryServiceServer can be embedded to have forward compatible implementations. -type UnimplementedQueryServiceServer struct { +var xxx_messageInfo_EventEnactProposal proto.InternalMessageInfo + +func (m *EventEnactProposal) GetProposal() *Proposal { + if m != nil { + return m.Proposal + } + return nil } -func (*UnimplementedQueryServiceServer) ProposalInfo(ctx context.Context, req *ProposalInfoRequest) (*ProposalInfoResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ProposalInfo not implemented") +type EventProposalFailed struct { + // The failed proposal. + Proposal *Proposal `protobuf:"bytes,1,opt,name=proposal,proto3" json:"proposal,omitempty"` } -func (*UnimplementedQueryServiceServer) ProposalList(req *ProposalListRequest, srv QueryService_ProposalListServer) error { - return status.Errorf(codes.Unimplemented, "method ProposalList not implemented") + +func (m *EventProposalFailed) Reset() { *m = EventProposalFailed{} } +func (m *EventProposalFailed) String() string { return proto.CompactTextString(m) } +func (*EventProposalFailed) ProtoMessage() {} +func (*EventProposalFailed) Descriptor() ([]byte, []int) { + return fileDescriptor_a9098f9e68b782a3, []int{46} } -func (*UnimplementedQueryServiceServer) ProposalData(ctx context.Context, req *ProposalDataRequest) (*ProposalDataResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ProposalData not implemented") +func (m *EventProposalFailed) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) } -func (*UnimplementedQueryServiceServer) NextProposalId(ctx context.Context, req *NextProposalIdRequest) (*NextProposalIdResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method NextProposalId not implemented") +func (m *EventProposalFailed) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EventProposalFailed.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 (*UnimplementedQueryServiceServer) ValidatorVotes(req *ValidatorVotesRequest, srv QueryService_ValidatorVotesServer) error { - return status.Errorf(codes.Unimplemented, "method ValidatorVotes not implemented") +func (m *EventProposalFailed) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventProposalFailed.Merge(m, src) } -func (*UnimplementedQueryServiceServer) VotingPowerAtProposalStart(ctx context.Context, req *VotingPowerAtProposalStartRequest) (*VotingPowerAtProposalStartResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method VotingPowerAtProposalStart not implemented") +func (m *EventProposalFailed) XXX_Size() int { + return m.Size() } -func (*UnimplementedQueryServiceServer) AllTalliedDelegatorVotesForProposal(req *AllTalliedDelegatorVotesForProposalRequest, srv QueryService_AllTalliedDelegatorVotesForProposalServer) error { - return status.Errorf(codes.Unimplemented, "method AllTalliedDelegatorVotesForProposal not implemented") +func (m *EventProposalFailed) XXX_DiscardUnknown() { + xxx_messageInfo_EventProposalFailed.DiscardUnknown(m) } -func (*UnimplementedQueryServiceServer) ProposalRateData(req *ProposalRateDataRequest, srv QueryService_ProposalRateDataServer) error { - return status.Errorf(codes.Unimplemented, "method ProposalRateData not implemented") + +var xxx_messageInfo_EventProposalFailed proto.InternalMessageInfo + +func (m *EventProposalFailed) GetProposal() *Proposal { + if m != nil { + return m.Proposal + } + return nil } -func RegisterQueryServiceServer(s grpc1.Server, srv QueryServiceServer) { - s.RegisterService(&_QueryService_serviceDesc, srv) +type EventProposalSlashed struct { + // The slashed proposal. + Proposal *Proposal `protobuf:"bytes,1,opt,name=proposal,proto3" json:"proposal,omitempty"` } -func _QueryService_ProposalInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ProposalInfoRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServiceServer).ProposalInfo(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/penumbra.core.component.governance.v1alpha1.QueryService/ProposalInfo", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServiceServer).ProposalInfo(ctx, req.(*ProposalInfoRequest)) +func (m *EventProposalSlashed) Reset() { *m = EventProposalSlashed{} } +func (m *EventProposalSlashed) String() string { return proto.CompactTextString(m) } +func (*EventProposalSlashed) ProtoMessage() {} +func (*EventProposalSlashed) Descriptor() ([]byte, []int) { + return fileDescriptor_a9098f9e68b782a3, []int{47} +} +func (m *EventProposalSlashed) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EventProposalSlashed) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EventProposalSlashed.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return interceptor(ctx, in, info, handler) +} +func (m *EventProposalSlashed) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventProposalSlashed.Merge(m, src) +} +func (m *EventProposalSlashed) XXX_Size() int { + return m.Size() +} +func (m *EventProposalSlashed) XXX_DiscardUnknown() { + xxx_messageInfo_EventProposalSlashed.DiscardUnknown(m) } -func _QueryService_ProposalList_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(ProposalListRequest) - if err := stream.RecvMsg(m); err != nil { - return err +var xxx_messageInfo_EventProposalSlashed proto.InternalMessageInfo + +func (m *EventProposalSlashed) GetProposal() *Proposal { + if m != nil { + return m.Proposal } - return srv.(QueryServiceServer).ProposalList(m, &queryServiceProposalListServer{stream}) + return nil } -type QueryService_ProposalListServer interface { - Send(*ProposalListResponse) error - grpc.ServerStream +func init() { + proto.RegisterEnum("penumbra.core.component.governance.v1.Vote_Vote", Vote_Vote_name, Vote_Vote_value) + proto.RegisterType((*ZKDelegatorVoteProof)(nil), "penumbra.core.component.governance.v1.ZKDelegatorVoteProof") + proto.RegisterType((*ProposalSubmit)(nil), "penumbra.core.component.governance.v1.ProposalSubmit") + proto.RegisterType((*ProposalWithdraw)(nil), "penumbra.core.component.governance.v1.ProposalWithdraw") + proto.RegisterType((*ProposalDepositClaim)(nil), "penumbra.core.component.governance.v1.ProposalDepositClaim") + proto.RegisterType((*ValidatorVote)(nil), "penumbra.core.component.governance.v1.ValidatorVote") + proto.RegisterType((*ValidatorVoteReason)(nil), "penumbra.core.component.governance.v1.ValidatorVoteReason") + proto.RegisterType((*ValidatorVoteBody)(nil), "penumbra.core.component.governance.v1.ValidatorVoteBody") + proto.RegisterType((*DelegatorVote)(nil), "penumbra.core.component.governance.v1.DelegatorVote") + proto.RegisterType((*DelegatorVoteBody)(nil), "penumbra.core.component.governance.v1.DelegatorVoteBody") + proto.RegisterType((*DelegatorVoteView)(nil), "penumbra.core.component.governance.v1.DelegatorVoteView") + proto.RegisterType((*DelegatorVoteView_Visible)(nil), "penumbra.core.component.governance.v1.DelegatorVoteView.Visible") + proto.RegisterType((*DelegatorVoteView_Opaque)(nil), "penumbra.core.component.governance.v1.DelegatorVoteView.Opaque") + proto.RegisterType((*DelegatorVotePlan)(nil), "penumbra.core.component.governance.v1.DelegatorVotePlan") + proto.RegisterType((*CommunityPoolDeposit)(nil), "penumbra.core.component.governance.v1.CommunityPoolDeposit") + proto.RegisterType((*CommunityPoolSpend)(nil), "penumbra.core.component.governance.v1.CommunityPoolSpend") + proto.RegisterType((*CommunityPoolOutput)(nil), "penumbra.core.component.governance.v1.CommunityPoolOutput") + proto.RegisterType((*Vote)(nil), "penumbra.core.component.governance.v1.Vote") + proto.RegisterType((*ProposalState)(nil), "penumbra.core.component.governance.v1.ProposalState") + proto.RegisterType((*ProposalState_Voting)(nil), "penumbra.core.component.governance.v1.ProposalState.Voting") + proto.RegisterType((*ProposalState_Withdrawn)(nil), "penumbra.core.component.governance.v1.ProposalState.Withdrawn") + proto.RegisterType((*ProposalState_Finished)(nil), "penumbra.core.component.governance.v1.ProposalState.Finished") + proto.RegisterType((*ProposalState_Claimed)(nil), "penumbra.core.component.governance.v1.ProposalState.Claimed") + proto.RegisterType((*ProposalOutcome)(nil), "penumbra.core.component.governance.v1.ProposalOutcome") + proto.RegisterType((*ProposalOutcome_Withdrawn)(nil), "penumbra.core.component.governance.v1.ProposalOutcome.Withdrawn") + proto.RegisterType((*ProposalOutcome_Passed)(nil), "penumbra.core.component.governance.v1.ProposalOutcome.Passed") + proto.RegisterType((*ProposalOutcome_Failed)(nil), "penumbra.core.component.governance.v1.ProposalOutcome.Failed") + proto.RegisterType((*ProposalOutcome_Slashed)(nil), "penumbra.core.component.governance.v1.ProposalOutcome.Slashed") + proto.RegisterType((*Tally)(nil), "penumbra.core.component.governance.v1.Tally") + proto.RegisterType((*Proposal)(nil), "penumbra.core.component.governance.v1.Proposal") + proto.RegisterType((*Proposal_Signaling)(nil), "penumbra.core.component.governance.v1.Proposal.Signaling") + proto.RegisterType((*Proposal_Emergency)(nil), "penumbra.core.component.governance.v1.Proposal.Emergency") + proto.RegisterType((*Proposal_ParameterChange)(nil), "penumbra.core.component.governance.v1.Proposal.ParameterChange") + proto.RegisterType((*Proposal_CommunityPoolSpend)(nil), "penumbra.core.component.governance.v1.Proposal.CommunityPoolSpend") + proto.RegisterType((*Proposal_UpgradePlan)(nil), "penumbra.core.component.governance.v1.Proposal.UpgradePlan") + proto.RegisterType((*Proposal_FreezeIbcClient)(nil), "penumbra.core.component.governance.v1.Proposal.FreezeIbcClient") + proto.RegisterType((*Proposal_UnfreezeIbcClient)(nil), "penumbra.core.component.governance.v1.Proposal.UnfreezeIbcClient") + proto.RegisterType((*ProposalInfoRequest)(nil), "penumbra.core.component.governance.v1.ProposalInfoRequest") + proto.RegisterType((*ProposalInfoResponse)(nil), "penumbra.core.component.governance.v1.ProposalInfoResponse") + proto.RegisterType((*ProposalDataRequest)(nil), "penumbra.core.component.governance.v1.ProposalDataRequest") + proto.RegisterType((*ProposalDataResponse)(nil), "penumbra.core.component.governance.v1.ProposalDataResponse") + proto.RegisterType((*ProposalRateDataRequest)(nil), "penumbra.core.component.governance.v1.ProposalRateDataRequest") + proto.RegisterType((*ProposalRateDataResponse)(nil), "penumbra.core.component.governance.v1.ProposalRateDataResponse") + proto.RegisterType((*ProposalListRequest)(nil), "penumbra.core.component.governance.v1.ProposalListRequest") + proto.RegisterType((*ProposalListResponse)(nil), "penumbra.core.component.governance.v1.ProposalListResponse") + proto.RegisterType((*ValidatorVotesRequest)(nil), "penumbra.core.component.governance.v1.ValidatorVotesRequest") + proto.RegisterType((*ValidatorVotesResponse)(nil), "penumbra.core.component.governance.v1.ValidatorVotesResponse") + proto.RegisterType((*GovernanceParameters)(nil), "penumbra.core.component.governance.v1.GovernanceParameters") + proto.RegisterType((*GenesisContent)(nil), "penumbra.core.component.governance.v1.GenesisContent") + proto.RegisterType((*ChangedAppParameters)(nil), "penumbra.core.component.governance.v1.ChangedAppParameters") + proto.RegisterType((*ChangedAppParametersSet)(nil), "penumbra.core.component.governance.v1.ChangedAppParametersSet") + proto.RegisterType((*VotingPowerAtProposalStartRequest)(nil), "penumbra.core.component.governance.v1.VotingPowerAtProposalStartRequest") + proto.RegisterType((*VotingPowerAtProposalStartResponse)(nil), "penumbra.core.component.governance.v1.VotingPowerAtProposalStartResponse") + proto.RegisterType((*AllTalliedDelegatorVotesForProposalRequest)(nil), "penumbra.core.component.governance.v1.AllTalliedDelegatorVotesForProposalRequest") + proto.RegisterType((*AllTalliedDelegatorVotesForProposalResponse)(nil), "penumbra.core.component.governance.v1.AllTalliedDelegatorVotesForProposalResponse") + proto.RegisterType((*NextProposalIdRequest)(nil), "penumbra.core.component.governance.v1.NextProposalIdRequest") + proto.RegisterType((*NextProposalIdResponse)(nil), "penumbra.core.component.governance.v1.NextProposalIdResponse") + proto.RegisterType((*Ratio)(nil), "penumbra.core.component.governance.v1.Ratio") + proto.RegisterType((*EventDelegatorVote)(nil), "penumbra.core.component.governance.v1.EventDelegatorVote") + proto.RegisterType((*EventProposalDepositClaim)(nil), "penumbra.core.component.governance.v1.EventProposalDepositClaim") + proto.RegisterType((*EventValidatorVote)(nil), "penumbra.core.component.governance.v1.EventValidatorVote") + proto.RegisterType((*EventProposalWithdraw)(nil), "penumbra.core.component.governance.v1.EventProposalWithdraw") + proto.RegisterType((*EventProposalSubmit)(nil), "penumbra.core.component.governance.v1.EventProposalSubmit") + proto.RegisterType((*EventEnactProposal)(nil), "penumbra.core.component.governance.v1.EventEnactProposal") + proto.RegisterType((*EventProposalFailed)(nil), "penumbra.core.component.governance.v1.EventProposalFailed") + proto.RegisterType((*EventProposalSlashed)(nil), "penumbra.core.component.governance.v1.EventProposalSlashed") } -type queryServiceProposalListServer struct { - grpc.ServerStream +func init() { + proto.RegisterFile("penumbra/core/component/governance/v1/governance.proto", fileDescriptor_a9098f9e68b782a3) +} + +var fileDescriptor_a9098f9e68b782a3 = []byte{ + // 3138 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x5b, 0xcd, 0x8f, 0x1b, 0xc7, + 0xb1, 0xdf, 0xe1, 0x7e, 0x90, 0xac, 0x5d, 0x51, 0x54, 0x8b, 0x92, 0xd6, 0x7c, 0xf6, 0x3e, 0x79, + 0xfc, 0x04, 0xc8, 0xb6, 0xcc, 0x15, 0x65, 0x59, 0xd6, 0x5b, 0xd9, 0xd6, 0xdb, 0xa5, 0xf6, 0xeb, + 0xc9, 0x92, 0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36, 0x1f, 0xca, 0x4c, 0x9a, 0x8f, 0xfc, + 0xc7, 0x90, 0x94, 0x2a, 0xce, 0x1e, 0x7c, 0x2b, 0x09, 0x8b, 0x1e, 0xb3, 0x82, 0xfa, 0x74, 0x01, + 0x4e, 0xf6, 0x51, 0xa1, 0x0f, 0x60, 0xa9, 0xcd, 0x36, 0x9d, 0x29, 0xa5, 0xbd, 0x3b, 0x9d, 0xb4, + 0x42, 0x99, 0x83, 0xb0, 0xb0, 0x13, 0x70, 0x0c, 0xb8, 0xae, 0x5b, 0x36, 0x36, 0x65, 0x34, 0x4f, + 0x0b, 0xbc, 0xc3, 0x41, 0x18, 0xb0, 0x80, 0x43, 0x1f, 0x41, 0xd2, 0xb3, 0x75, 0x1e, 0x6e, 0xd3, + 0x45, 0x73, 0x80, 0x5c, 0x11, 0x28, 0x2c, 0x28, 0x24, 0xe0, 0x78, 0xa1, 0x90, 0x82, 0x25, 0xb1, + 0xda, 0x7c, 0x13, 0x96, 0x84, 0x7a, 0xf1, 0x4d, 0x36, 0x59, 0x0d, 0xd5, 0xaf, 0x56, 0xa8, 0x40, + 0x64, 0x93, 0xe5, 0x2d, 0x48, 0x4a, 0x75, 0x9f, 0xb7, 0xa8, 0xad, 0x74, 0x18, 0x80, 0x6a, 0x09, + 0x16, 0x1f, 0xe8, 0xb6, 0xdd, 0x45, 0x59, 0x98, 0xef, 0x62, 0x4f, 0x96, 0x08, 0xec, 0x27, 0xca, + 0x40, 0x82, 0x38, 0xb2, 0x22, 0x48, 0x10, 0x07, 0xad, 0x42, 0x52, 0xaf, 0x79, 0x54, 0xb7, 0x44, + 0x8e, 0x59, 0xd0, 0x82, 0xa1, 0xfa, 0x67, 0x80, 0x54, 0x20, 0x98, 0xb1, 0x59, 0x22, 0x4d, 0x2c, + 0x68, 0x09, 0xcb, 0x44, 0x39, 0x58, 0xa4, 0x16, 0x95, 0x75, 0x67, 0x5a, 0x13, 0x03, 0x74, 0x1e, + 0x96, 0x4d, 0xec, 0x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xcd, 0x89, 0xd7, 0x45, 0xea, 0x03, + 0x22, 0x4f, 0xf9, 0xfd, 0x93, 0x2c, 0x15, 0x85, 0x01, 0xca, 0x52, 0x11, 0x33, 0xb4, 0x45, 0x83, + 0x54, 0x24, 0x46, 0xf9, 0xd7, 0x20, 0x1d, 0x86, 0x1a, 0x7a, 0x09, 0xa0, 0xa9, 0xdb, 0x94, 0x05, + 0x96, 0x25, 0x32, 0x43, 0x4a, 0x4b, 0xb3, 0x99, 0x12, 0x9b, 0xc8, 0xff, 0x55, 0x81, 0x93, 0x7d, + 0x51, 0x83, 0x6a, 0x90, 0x71, 0x6c, 0xb3, 0x1a, 0x46, 0x8e, 0x27, 0x13, 0xca, 0xb8, 0xce, 0x12, + 0x30, 0xe6, 0x66, 0xbb, 0x1d, 0x22, 0x7b, 0xda, 0x09, 0xc7, 0x36, 0x7b, 0x43, 0x26, 0x83, 0xe0, + 0xc7, 0x51, 0x19, 0x89, 0x19, 0xc8, 0x20, 0xf8, 0x71, 0x6f, 0x98, 0x7f, 0x38, 0xb4, 0x70, 0xbd, + 0x09, 0x59, 0xea, 0xea, 0xc4, 0xd3, 0x0d, 0x96, 0x33, 0x44, 0x30, 0x0a, 0xd9, 0xb9, 0x82, 0x78, + 0x9f, 0x50, 0x08, 0xde, 0x27, 0x14, 0x36, 0x49, 0x57, 0x3b, 0x19, 0xa1, 0x66, 0x71, 0x96, 0xbf, + 0x00, 0xcb, 0x91, 0x28, 0x64, 0x5e, 0x68, 0x62, 0xab, 0xd1, 0xa4, 0x32, 0x11, 0xca, 0x51, 0xbe, + 0x00, 0x27, 0xfb, 0xa2, 0x08, 0xfd, 0x17, 0xa4, 0x45, 0x94, 0x54, 0x2d, 0x53, 0xfa, 0x2c, 0x25, + 0x26, 0xf6, 0xcd, 0xfc, 0x65, 0x38, 0x35, 0x10, 0x04, 0x47, 0x72, 0xb0, 0x9c, 0xdc, 0xd6, 0xbb, + 0xb6, 0xa3, 0x9b, 0xea, 0x35, 0x38,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37, 0xcf, 0xd6, 0x94, 0xbf, 0x3d, 0x5b, + 0x53, 0x7e, 0xf1, 0xdd, 0xda, 0xdc, 0x37, 0xdf, 0xad, 0xcd, 0x7d, 0xfb, 0xdd, 0xda, 0x1c, 0xbc, + 0x6a, 0x38, 0xad, 0xf1, 0x04, 0x6c, 0x9d, 0x8c, 0x74, 0x99, 0xae, 0x43, 0x9d, 0xb2, 0xf2, 0xd1, + 0x27, 0x0d, 0x8b, 0x36, 0xfd, 0x1a, 0x63, 0x59, 0x37, 0x1c, 0xaf, 0xe5, 0x78, 0xeb, 0x2e, 0xb6, + 0xf5, 0x2e, 0x76, 0xd7, 0x3b, 0x57, 0xc2, 0x9f, 0xfc, 0x55, 0x85, 0xb7, 0x3e, 0xd6, 0xdf, 0x0e, + 0xdc, 0xe8, 0x8d, 0x3a, 0xc5, 0x2f, 0x13, 0x0b, 0xe5, 0x52, 0x69, 0xf7, 0xb7, 0x89, 0x0b, 0xe5, + 0x40, 0xc3, 0x12, 0xd3, 0xb0, 0x14, 0x6a, 0xd8, 0x53, 0xa9, 0x70, 0x50, 0xfc, 0x53, 0x8f, 0xee, + 0x90, 0xd1, 0x1d, 0x86, 0x74, 0x87, 0x3d, 0xba, 0xc3, 0x83, 0xe2, 0xb3, 0x44, 0x71, 0x2c, 0xba, + 0xc3, 0xdd, 0xf2, 0xd6, 0x1d, 0x4c, 0x75, 0x53, 0xa7, 0xfa, 0xdf, 0x13, 0xaf, 0x06, 0x3c, 0x1b, + 0x1b, 0x8c, 0x89, 0xfd, 0x2b, 0xb9, 0x36, 0x36, 0x7a, 0x6c, 0x1b, 0x1b, 0x07, 0xc5, 0xda, 0x12, + 0x7f, 0xe1, 0xf0, 0xe6, 0xbf, 0x02, 0x00, 0x00, 0xff, 0xff, 0xc9, 0xcc, 0x34, 0x1d, 0x2f, 0x31, + 0x00, 0x00, } -func (x *queryServiceProposalListServer) Send(m *ProposalListResponse) error { - return x.ServerStream.SendMsg(m) +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 + +// QueryServiceClient is the client API for QueryService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type QueryServiceClient interface { + ProposalInfo(ctx context.Context, in *ProposalInfoRequest, opts ...grpc.CallOption) (*ProposalInfoResponse, error) + ProposalList(ctx context.Context, in *ProposalListRequest, opts ...grpc.CallOption) (QueryService_ProposalListClient, error) + ProposalData(ctx context.Context, in *ProposalDataRequest, opts ...grpc.CallOption) (*ProposalDataResponse, error) + NextProposalId(ctx context.Context, in *NextProposalIdRequest, opts ...grpc.CallOption) (*NextProposalIdResponse, error) + ValidatorVotes(ctx context.Context, in *ValidatorVotesRequest, opts ...grpc.CallOption) (QueryService_ValidatorVotesClient, error) + VotingPowerAtProposalStart(ctx context.Context, in *VotingPowerAtProposalStartRequest, opts ...grpc.CallOption) (*VotingPowerAtProposalStartResponse, error) + AllTalliedDelegatorVotesForProposal(ctx context.Context, in *AllTalliedDelegatorVotesForProposalRequest, opts ...grpc.CallOption) (QueryService_AllTalliedDelegatorVotesForProposalClient, error) + // Used for computing voting power ? + ProposalRateData(ctx context.Context, in *ProposalRateDataRequest, opts ...grpc.CallOption) (QueryService_ProposalRateDataClient, error) } -func _QueryService_ProposalData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ProposalDataRequest) - if err := dec(in); err != nil { +type queryServiceClient struct { + cc grpc1.ClientConn +} + +func NewQueryServiceClient(cc grpc1.ClientConn) QueryServiceClient { + return &queryServiceClient{cc} +} + +func (c *queryServiceClient) ProposalInfo(ctx context.Context, in *ProposalInfoRequest, opts ...grpc.CallOption) (*ProposalInfoResponse, error) { + out := new(ProposalInfoResponse) + err := c.cc.Invoke(ctx, "/penumbra.core.component.governance.v1.QueryService/ProposalInfo", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(QueryServiceServer).ProposalData(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/penumbra.core.component.governance.v1alpha1.QueryService/ProposalData", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServiceServer).ProposalData(ctx, req.(*ProposalDataRequest)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _QueryService_NextProposalId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(NextProposalIdRequest) - if err := dec(in); err != nil { +func (c *queryServiceClient) ProposalList(ctx context.Context, in *ProposalListRequest, opts ...grpc.CallOption) (QueryService_ProposalListClient, error) { + stream, err := c.cc.NewStream(ctx, &_QueryService_serviceDesc.Streams[0], "/penumbra.core.component.governance.v1.QueryService/ProposalList", opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(QueryServiceServer).NextProposalId(ctx, in) + x := &queryServiceProposalListClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/penumbra.core.component.governance.v1alpha1.QueryService/NextProposalId", + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type QueryService_ProposalListClient interface { + Recv() (*ProposalListResponse, error) + grpc.ClientStream +} + +type queryServiceProposalListClient struct { + grpc.ClientStream +} + +func (x *queryServiceProposalListClient) Recv() (*ProposalListResponse, error) { + m := new(ProposalListResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *queryServiceClient) ProposalData(ctx context.Context, in *ProposalDataRequest, opts ...grpc.CallOption) (*ProposalDataResponse, error) { + out := new(ProposalDataResponse) + err := c.cc.Invoke(ctx, "/penumbra.core.component.governance.v1.QueryService/ProposalData", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryServiceClient) NextProposalId(ctx context.Context, in *NextProposalIdRequest, opts ...grpc.CallOption) (*NextProposalIdResponse, error) { + out := new(NextProposalIdResponse) + err := c.cc.Invoke(ctx, "/penumbra.core.component.governance.v1.QueryService/NextProposalId", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryServiceClient) ValidatorVotes(ctx context.Context, in *ValidatorVotesRequest, opts ...grpc.CallOption) (QueryService_ValidatorVotesClient, error) { + stream, err := c.cc.NewStream(ctx, &_QueryService_serviceDesc.Streams[1], "/penumbra.core.component.governance.v1.QueryService/ValidatorVotes", opts...) + if err != nil { + return nil, err + } + x := &queryServiceValidatorVotesClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type QueryService_ValidatorVotesClient interface { + Recv() (*ValidatorVotesResponse, error) + grpc.ClientStream +} + +type queryServiceValidatorVotesClient struct { + grpc.ClientStream +} + +func (x *queryServiceValidatorVotesClient) Recv() (*ValidatorVotesResponse, error) { + m := new(ValidatorVotesResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *queryServiceClient) VotingPowerAtProposalStart(ctx context.Context, in *VotingPowerAtProposalStartRequest, opts ...grpc.CallOption) (*VotingPowerAtProposalStartResponse, error) { + out := new(VotingPowerAtProposalStartResponse) + err := c.cc.Invoke(ctx, "/penumbra.core.component.governance.v1.QueryService/VotingPowerAtProposalStart", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryServiceClient) AllTalliedDelegatorVotesForProposal(ctx context.Context, in *AllTalliedDelegatorVotesForProposalRequest, opts ...grpc.CallOption) (QueryService_AllTalliedDelegatorVotesForProposalClient, error) { + stream, err := c.cc.NewStream(ctx, &_QueryService_serviceDesc.Streams[2], "/penumbra.core.component.governance.v1.QueryService/AllTalliedDelegatorVotesForProposal", opts...) + if err != nil { + return nil, err + } + x := &queryServiceAllTalliedDelegatorVotesForProposalClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type QueryService_AllTalliedDelegatorVotesForProposalClient interface { + Recv() (*AllTalliedDelegatorVotesForProposalResponse, error) + grpc.ClientStream +} + +type queryServiceAllTalliedDelegatorVotesForProposalClient struct { + grpc.ClientStream +} + +func (x *queryServiceAllTalliedDelegatorVotesForProposalClient) Recv() (*AllTalliedDelegatorVotesForProposalResponse, error) { + m := new(AllTalliedDelegatorVotesForProposalResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *queryServiceClient) ProposalRateData(ctx context.Context, in *ProposalRateDataRequest, opts ...grpc.CallOption) (QueryService_ProposalRateDataClient, error) { + stream, err := c.cc.NewStream(ctx, &_QueryService_serviceDesc.Streams[3], "/penumbra.core.component.governance.v1.QueryService/ProposalRateData", opts...) + if err != nil { + return nil, err + } + x := &queryServiceProposalRateDataClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type QueryService_ProposalRateDataClient interface { + Recv() (*ProposalRateDataResponse, error) + grpc.ClientStream +} + +type queryServiceProposalRateDataClient struct { + grpc.ClientStream +} + +func (x *queryServiceProposalRateDataClient) Recv() (*ProposalRateDataResponse, error) { + m := new(ProposalRateDataResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +// QueryServiceServer is the server API for QueryService service. +type QueryServiceServer interface { + ProposalInfo(context.Context, *ProposalInfoRequest) (*ProposalInfoResponse, error) + ProposalList(*ProposalListRequest, QueryService_ProposalListServer) error + ProposalData(context.Context, *ProposalDataRequest) (*ProposalDataResponse, error) + NextProposalId(context.Context, *NextProposalIdRequest) (*NextProposalIdResponse, error) + ValidatorVotes(*ValidatorVotesRequest, QueryService_ValidatorVotesServer) error + VotingPowerAtProposalStart(context.Context, *VotingPowerAtProposalStartRequest) (*VotingPowerAtProposalStartResponse, error) + AllTalliedDelegatorVotesForProposal(*AllTalliedDelegatorVotesForProposalRequest, QueryService_AllTalliedDelegatorVotesForProposalServer) error + // Used for computing voting power ? + ProposalRateData(*ProposalRateDataRequest, QueryService_ProposalRateDataServer) error +} + +// UnimplementedQueryServiceServer can be embedded to have forward compatible implementations. +type UnimplementedQueryServiceServer struct { +} + +func (*UnimplementedQueryServiceServer) ProposalInfo(ctx context.Context, req *ProposalInfoRequest) (*ProposalInfoResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ProposalInfo not implemented") +} +func (*UnimplementedQueryServiceServer) ProposalList(req *ProposalListRequest, srv QueryService_ProposalListServer) error { + return status.Errorf(codes.Unimplemented, "method ProposalList not implemented") +} +func (*UnimplementedQueryServiceServer) ProposalData(ctx context.Context, req *ProposalDataRequest) (*ProposalDataResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ProposalData not implemented") +} +func (*UnimplementedQueryServiceServer) NextProposalId(ctx context.Context, req *NextProposalIdRequest) (*NextProposalIdResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method NextProposalId not implemented") +} +func (*UnimplementedQueryServiceServer) ValidatorVotes(req *ValidatorVotesRequest, srv QueryService_ValidatorVotesServer) error { + return status.Errorf(codes.Unimplemented, "method ValidatorVotes not implemented") +} +func (*UnimplementedQueryServiceServer) VotingPowerAtProposalStart(ctx context.Context, req *VotingPowerAtProposalStartRequest) (*VotingPowerAtProposalStartResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method VotingPowerAtProposalStart not implemented") +} +func (*UnimplementedQueryServiceServer) AllTalliedDelegatorVotesForProposal(req *AllTalliedDelegatorVotesForProposalRequest, srv QueryService_AllTalliedDelegatorVotesForProposalServer) error { + return status.Errorf(codes.Unimplemented, "method AllTalliedDelegatorVotesForProposal not implemented") +} +func (*UnimplementedQueryServiceServer) ProposalRateData(req *ProposalRateDataRequest, srv QueryService_ProposalRateDataServer) error { + return status.Errorf(codes.Unimplemented, "method ProposalRateData not implemented") +} + +func RegisterQueryServiceServer(s grpc1.Server, srv QueryServiceServer) { + s.RegisterService(&_QueryService_serviceDesc, srv) +} + +func _QueryService_ProposalInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ProposalInfoRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServiceServer).ProposalInfo(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/penumbra.core.component.governance.v1.QueryService/ProposalInfo", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServiceServer).ProposalInfo(ctx, req.(*ProposalInfoRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _QueryService_ProposalList_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(ProposalListRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(QueryServiceServer).ProposalList(m, &queryServiceProposalListServer{stream}) +} + +type QueryService_ProposalListServer interface { + Send(*ProposalListResponse) error + grpc.ServerStream +} + +type queryServiceProposalListServer struct { + grpc.ServerStream +} + +func (x *queryServiceProposalListServer) Send(m *ProposalListResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _QueryService_ProposalData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ProposalDataRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServiceServer).ProposalData(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/penumbra.core.component.governance.v1.QueryService/ProposalData", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServiceServer).ProposalData(ctx, req.(*ProposalDataRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _QueryService_NextProposalId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(NextProposalIdRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServiceServer).NextProposalId(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/penumbra.core.component.governance.v1.QueryService/NextProposalId", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServiceServer).NextProposalId(ctx, req.(*NextProposalIdRequest)) @@ -4005,7 +4465,7 @@ func _QueryService_VotingPowerAtProposalStart_Handler(srv interface{}, ctx conte } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/penumbra.core.component.governance.v1alpha1.QueryService/VotingPowerAtProposalStart", + FullMethod: "/penumbra.core.component.governance.v1.QueryService/VotingPowerAtProposalStart", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServiceServer).VotingPowerAtProposalStart(ctx, req.(*VotingPowerAtProposalStartRequest)) @@ -4056,7 +4516,7 @@ func (x *queryServiceProposalRateDataServer) Send(m *ProposalRateDataResponse) e } var _QueryService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "penumbra.core.component.governance.v1alpha1.QueryService", + ServiceName: "penumbra.core.component.governance.v1.QueryService", HandlerType: (*QueryServiceServer)(nil), Methods: []grpc.MethodDesc{ { @@ -4098,7 +4558,7 @@ var _QueryService_serviceDesc = grpc.ServiceDesc{ ServerStreams: true, }, }, - Metadata: "penumbra/core/component/governance/v1alpha1/governance.proto", + Metadata: "penumbra/core/component/governance/v1/governance.proto", } func (m *ZKDelegatorVoteProof) Marshal() (dAtA []byte, err error) { @@ -5481,21 +5941,68 @@ func (m *Proposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - if m.UnfreezeIbcClient != nil { + if m.Payload != nil { { - size, err := m.UnfreezeIbcClient.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { + size := m.Payload.Size() + i -= size + if _, err := m.Payload.MarshalTo(dAtA[i:]); err != nil { return 0, err } - i -= size + } + } + if m.Id != 0 { + i = encodeVarintGovernance(dAtA, i, uint64(m.Id)) + i-- + dAtA[i] = 0x20 + } + if len(m.Description) > 0 { + i -= len(m.Description) + copy(dAtA[i:], m.Description) + i = encodeVarintGovernance(dAtA, i, uint64(len(m.Description))) + i-- + dAtA[i] = 0x12 + } + if len(m.Title) > 0 { + i -= len(m.Title) + copy(dAtA[i:], m.Title) + i = encodeVarintGovernance(dAtA, i, uint64(len(m.Title))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Proposal_Signaling_) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Proposal_Signaling_) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Signaling != nil { + { + size, err := m.Signaling.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size i = encodeVarintGovernance(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x5a + dAtA[i] = 0x2a } - if m.FreezeIbcClient != nil { + return len(dAtA) - i, nil +} +func (m *Proposal_Emergency_) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Proposal_Emergency_) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Emergency != nil { { - size, err := m.FreezeIbcClient.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Emergency.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -5503,11 +6010,20 @@ func (m *Proposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintGovernance(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x52 + dAtA[i] = 0x32 } - if m.UpgradePlan != nil { + return len(dAtA) - i, nil +} +func (m *Proposal_ParameterChange_) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Proposal_ParameterChange_) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.ParameterChange != nil { { - size, err := m.UpgradePlan.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.ParameterChange.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -5515,8 +6031,17 @@ func (m *Proposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintGovernance(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x4a + dAtA[i] = 0x3a } + return len(dAtA) - i, nil +} +func (m *Proposal_CommunityPoolSpend_) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Proposal_CommunityPoolSpend_) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.CommunityPoolSpend != nil { { size, err := m.CommunityPoolSpend.MarshalToSizedBuffer(dAtA[:i]) @@ -5529,9 +6054,18 @@ func (m *Proposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x42 } - if m.ParameterChange != nil { + return len(dAtA) - i, nil +} +func (m *Proposal_UpgradePlan_) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Proposal_UpgradePlan_) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.UpgradePlan != nil { { - size, err := m.ParameterChange.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.UpgradePlan.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -5539,11 +6073,20 @@ func (m *Proposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintGovernance(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x3a + dAtA[i] = 0x4a } - if m.Emergency != nil { + return len(dAtA) - i, nil +} +func (m *Proposal_FreezeIbcClient_) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Proposal_FreezeIbcClient_) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.FreezeIbcClient != nil { { - size, err := m.Emergency.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.FreezeIbcClient.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -5551,11 +6094,20 @@ func (m *Proposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintGovernance(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x32 + dAtA[i] = 0x52 } - if m.Signaling != nil { + return len(dAtA) - i, nil +} +func (m *Proposal_UnfreezeIbcClient_) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Proposal_UnfreezeIbcClient_) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.UnfreezeIbcClient != nil { { - size, err := m.Signaling.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.UnfreezeIbcClient.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -5563,30 +6115,10 @@ func (m *Proposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintGovernance(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x2a - } - if m.Id != 0 { - i = encodeVarintGovernance(dAtA, i, uint64(m.Id)) - i-- - dAtA[i] = 0x20 - } - if len(m.Description) > 0 { - i -= len(m.Description) - copy(dAtA[i:], m.Description) - i = encodeVarintGovernance(dAtA, i, uint64(len(m.Description))) - i-- - dAtA[i] = 0x12 - } - if len(m.Title) > 0 { - i -= len(m.Title) - copy(dAtA[i:], m.Title) - i = encodeVarintGovernance(dAtA, i, uint64(len(m.Title))) - i-- - dAtA[i] = 0xa + dAtA[i] = 0x5a } return len(dAtA) - i, nil } - func (m *Proposal_Signaling) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -5845,13 +6377,6 @@ func (m *ProposalInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x10 } - if len(m.ChainId) > 0 { - i -= len(m.ChainId) - copy(dAtA[i:], m.ChainId) - i = encodeVarintGovernance(dAtA, i, uint64(len(m.ChainId))) - i-- - dAtA[i] = 0xa - } return len(dAtA) - i, nil } @@ -5913,13 +6438,6 @@ func (m *ProposalDataRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x10 } - if len(m.ChainId) > 0 { - i -= len(m.ChainId) - copy(dAtA[i:], m.ChainId) - i = encodeVarintGovernance(dAtA, i, uint64(len(m.ChainId))) - i-- - dAtA[i] = 0xa - } return len(dAtA) - i, nil } @@ -6022,13 +6540,6 @@ func (m *ProposalRateDataRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) i-- dAtA[i] = 0x10 } - if len(m.ChainId) > 0 { - i -= len(m.ChainId) - copy(dAtA[i:], m.ChainId) - i = encodeVarintGovernance(dAtA, i, uint64(len(m.ChainId))) - i-- - dAtA[i] = 0xa - } return len(dAtA) - i, nil } @@ -6097,13 +6608,6 @@ func (m *ProposalListRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x10 } - if len(m.ChainId) > 0 { - i -= len(m.ChainId) - copy(dAtA[i:], m.ChainId) - i = encodeVarintGovernance(dAtA, i, uint64(len(m.ChainId))) - i-- - dAtA[i] = 0xa - } return len(dAtA) - i, nil } @@ -6194,13 +6698,6 @@ func (m *ValidatorVotesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x10 } - if len(m.ChainId) > 0 { - i -= len(m.ChainId) - copy(dAtA[i:], m.ChainId) - i = encodeVarintGovernance(dAtA, i, uint64(len(m.ChainId))) - i-- - dAtA[i] = 0xa - } return len(dAtA) - i, nil } @@ -6367,6 +6864,42 @@ func (m *ChangedAppParameters) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if m.DexParams != nil { + { + size, err := m.DexParams.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGovernance(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x52 + } + if m.ShieldedPoolParams != nil { + { + size, err := m.ShieldedPoolParams.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGovernance(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x4a + } + if m.FundingParams != nil { + { + size, err := m.FundingParams.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGovernance(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x42 + } if m.DistributionsParams != nil { { size, err := m.DistributionsParams.MarshalToSizedBuffer(dAtA[:i]) @@ -6439,9 +6972,9 @@ func (m *ChangedAppParameters) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x12 } - if m.ChainParams != nil { + if m.SctParams != nil { { - size, err := m.ChainParams.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.SctParams.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -6538,13 +7071,6 @@ func (m *VotingPowerAtProposalStartRequest) MarshalToSizedBuffer(dAtA []byte) (i i-- dAtA[i] = 0x10 } - if len(m.ChainId) > 0 { - i -= len(m.ChainId) - copy(dAtA[i:], m.ChainId) - i = encodeVarintGovernance(dAtA, i, uint64(len(m.ChainId))) - i-- - dAtA[i] = 0xa - } return len(dAtA) - i, nil } @@ -6601,13 +7127,6 @@ func (m *AllTalliedDelegatorVotesForProposalRequest) MarshalToSizedBuffer(dAtA [ i-- dAtA[i] = 0x10 } - if len(m.ChainId) > 0 { - i -= len(m.ChainId) - copy(dAtA[i:], m.ChainId) - i = encodeVarintGovernance(dAtA, i, uint64(len(m.ChainId))) - i-- - dAtA[i] = 0xa - } return len(dAtA) - i, nil } @@ -6678,13 +7197,6 @@ func (m *NextProposalIdRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - if len(m.ChainId) > 0 { - i -= len(m.ChainId) - copy(dAtA[i:], m.ChainId) - i = encodeVarintGovernance(dAtA, i, uint64(len(m.ChainId))) - i-- - dAtA[i] = 0xa - } return len(dAtA) - i, nil } @@ -6716,1096 +7228,2858 @@ func (m *NextProposalIdResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func encodeVarintGovernance(dAtA []byte, offset int, v uint64) int { - offset -= sovGovernance(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ +func (m *Ratio) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - dAtA[offset] = uint8(v) - return base + return dAtA[:n], nil } -func (m *ZKDelegatorVoteProof) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Inner) - if l > 0 { - n += 1 + l + sovGovernance(uint64(l)) - } - return n + +func (m *Ratio) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *ProposalSubmit) Size() (n int) { - if m == nil { - return 0 - } +func (m *Ratio) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.Proposal != nil { - l = m.Proposal.Size() - n += 1 + l + sovGovernance(uint64(l)) + if m.Denominator != 0 { + i = encodeVarintGovernance(dAtA, i, uint64(m.Denominator)) + i-- + dAtA[i] = 0x10 } - if m.DepositAmount != nil { - l = m.DepositAmount.Size() - n += 1 + l + sovGovernance(uint64(l)) + if m.Numerator != 0 { + i = encodeVarintGovernance(dAtA, i, uint64(m.Numerator)) + i-- + dAtA[i] = 0x8 } - return n + return len(dAtA) - i, nil } -func (m *ProposalWithdraw) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Proposal != 0 { - n += 1 + sovGovernance(uint64(m.Proposal)) - } - l = len(m.Reason) - if l > 0 { - n += 1 + l + sovGovernance(uint64(l)) +func (m *EventDelegatorVote) 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 n + return dAtA[:n], nil } -func (m *ProposalDepositClaim) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Proposal != 0 { - n += 1 + sovGovernance(uint64(m.Proposal)) - } - if m.DepositAmount != nil { - l = m.DepositAmount.Size() - n += 1 + l + sovGovernance(uint64(l)) - } - if m.Outcome != nil { - l = m.Outcome.Size() - n += 1 + l + sovGovernance(uint64(l)) - } - return n +func (m *EventDelegatorVote) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *ValidatorVote) Size() (n int) { - if m == nil { - return 0 - } +func (m *EventDelegatorVote) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.Body != nil { - l = m.Body.Size() - n += 1 + l + sovGovernance(uint64(l)) - } - if m.AuthSig != nil { - l = m.AuthSig.Size() - n += 1 + l + sovGovernance(uint64(l)) + if m.Vote != nil { + { + size, err := m.Vote.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGovernance(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *ValidatorVoteReason) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Reason) - if l > 0 { - n += 1 + l + sovGovernance(uint64(l)) +func (m *EventProposalDepositClaim) 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 n + return dAtA[:n], nil } -func (m *ValidatorVoteBody) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Proposal != 0 { - n += 1 + sovGovernance(uint64(m.Proposal)) - } - if m.Vote != nil { - l = m.Vote.Size() - n += 1 + l + sovGovernance(uint64(l)) - } - if m.IdentityKey != nil { - l = m.IdentityKey.Size() - n += 1 + l + sovGovernance(uint64(l)) - } - if m.GovernanceKey != nil { - l = m.GovernanceKey.Size() - n += 1 + l + sovGovernance(uint64(l)) - } - if m.Reason != nil { - l = m.Reason.Size() - n += 1 + l + sovGovernance(uint64(l)) - } - return n +func (m *EventProposalDepositClaim) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *DelegatorVote) Size() (n int) { - if m == nil { - return 0 - } +func (m *EventProposalDepositClaim) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.Body != nil { - l = m.Body.Size() - n += 1 + l + sovGovernance(uint64(l)) - } - if m.AuthSig != nil { - l = m.AuthSig.Size() - n += 1 + l + sovGovernance(uint64(l)) - } - if m.Proof != nil { - l = m.Proof.Size() - n += 1 + l + sovGovernance(uint64(l)) + if m.DepositClaim != nil { + { + size, err := m.DepositClaim.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGovernance(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *DelegatorVoteBody) Size() (n int) { - if m == nil { - return 0 +func (m *EventValidatorVote) 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 *EventValidatorVote) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EventValidatorVote) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.Proposal != 0 { - n += 1 + sovGovernance(uint64(m.Proposal)) - } - if m.StartPosition != 0 { - n += 1 + sovGovernance(uint64(m.StartPosition)) - } if m.Vote != nil { - l = m.Vote.Size() - n += 1 + l + sovGovernance(uint64(l)) - } - if m.Value != nil { - l = m.Value.Size() - n += 1 + l + sovGovernance(uint64(l)) - } - if m.UnbondedAmount != nil { - l = m.UnbondedAmount.Size() - n += 1 + l + sovGovernance(uint64(l)) - } - if m.Nullifier != nil { - l = m.Nullifier.Size() - n += 1 + l + sovGovernance(uint64(l)) - } - if m.Rk != nil { - l = m.Rk.Size() - n += 1 + l + sovGovernance(uint64(l)) + { + size, err := m.Vote.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGovernance(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *DelegatorVoteView) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.DelegatorVote != nil { - n += m.DelegatorVote.Size() +func (m *EventProposalWithdraw) 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 n + return dAtA[:n], nil } -func (m *DelegatorVoteView_Visible_) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Visible != nil { - l = m.Visible.Size() - n += 1 + l + sovGovernance(uint64(l)) - } - return n +func (m *EventProposalWithdraw) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *DelegatorVoteView_Opaque_) Size() (n int) { - if m == nil { - return 0 - } + +func (m *EventProposalWithdraw) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.Opaque != nil { - l = m.Opaque.Size() - n += 1 + l + sovGovernance(uint64(l)) + if m.Withdraw != nil { + { + size, err := m.Withdraw.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGovernance(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *DelegatorVoteView_Visible) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.DelegatorVote != nil { - l = m.DelegatorVote.Size() - n += 1 + l + sovGovernance(uint64(l)) - } - if m.Note != nil { - l = m.Note.Size() - n += 1 + l + sovGovernance(uint64(l)) + +func (m *EventProposalSubmit) 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 n + return dAtA[:n], nil } -func (m *DelegatorVoteView_Opaque) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.DelegatorVote != nil { - l = m.DelegatorVote.Size() - n += 1 + l + sovGovernance(uint64(l)) - } - return n +func (m *EventProposalSubmit) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *DelegatorVotePlan) Size() (n int) { - if m == nil { - return 0 - } +func (m *EventProposalSubmit) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.Proposal != 0 { - n += 1 + sovGovernance(uint64(m.Proposal)) - } - if m.StartPosition != 0 { - n += 1 + sovGovernance(uint64(m.StartPosition)) - } - if m.Vote != nil { - l = m.Vote.Size() - n += 1 + l + sovGovernance(uint64(l)) - } - if m.StakedNote != nil { - l = m.StakedNote.Size() - n += 1 + l + sovGovernance(uint64(l)) - } - if m.StakedNotePosition != 0 { - n += 1 + sovGovernance(uint64(m.StakedNotePosition)) + if m.Submit != nil { + { + size, err := m.Submit.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGovernance(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - if m.UnbondedAmount != nil { - l = m.UnbondedAmount.Size() - n += 1 + l + sovGovernance(uint64(l)) + return len(dAtA) - i, nil +} + +func (m *EventEnactProposal) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - l = len(m.Randomizer) - if l > 0 { - n += 1 + l + sovGovernance(uint64(l)) + return dAtA[:n], nil +} + +func (m *EventEnactProposal) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EventEnactProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Proposal != nil { + { + size, err := m.Proposal.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGovernance(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - l = len(m.ProofBlindingR) - if l > 0 { - n += 1 + l + sovGovernance(uint64(l)) + return len(dAtA) - i, nil +} + +func (m *EventProposalFailed) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - l = len(m.ProofBlindingS) - if l > 0 { - n += 1 + l + sovGovernance(uint64(l)) + return dAtA[:n], nil +} + +func (m *EventProposalFailed) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EventProposalFailed) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Proposal != nil { + { + size, err := m.Proposal.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGovernance(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *CommunityPoolDeposit) Size() (n int) { - if m == nil { - return 0 +func (m *EventProposalSlashed) 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 *EventProposalSlashed) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EventProposalSlashed) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.Value != nil { - l = m.Value.Size() - n += 1 + l + sovGovernance(uint64(l)) + if m.Proposal != nil { + { + size, err := m.Proposal.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGovernance(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *CommunityPoolSpend) Size() (n int) { +func encodeVarintGovernance(dAtA []byte, offset int, v uint64) int { + offset -= sovGovernance(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *ZKDelegatorVoteProof) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.Value != nil { - l = m.Value.Size() + l = len(m.Inner) + if l > 0 { n += 1 + l + sovGovernance(uint64(l)) } return n } -func (m *CommunityPoolOutput) Size() (n int) { +func (m *ProposalSubmit) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.Value != nil { - l = m.Value.Size() + if m.Proposal != nil { + l = m.Proposal.Size() n += 1 + l + sovGovernance(uint64(l)) } - if m.Address != nil { - l = m.Address.Size() + if m.DepositAmount != nil { + l = m.DepositAmount.Size() n += 1 + l + sovGovernance(uint64(l)) } return n } -func (m *Vote) Size() (n int) { +func (m *ProposalWithdraw) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.Vote != 0 { - n += 1 + sovGovernance(uint64(m.Vote)) + if m.Proposal != 0 { + n += 1 + sovGovernance(uint64(m.Proposal)) + } + l = len(m.Reason) + if l > 0 { + n += 1 + l + sovGovernance(uint64(l)) } return n } -func (m *ProposalState) Size() (n int) { +func (m *ProposalDepositClaim) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.State != nil { - n += m.State.Size() + if m.Proposal != 0 { + n += 1 + sovGovernance(uint64(m.Proposal)) + } + if m.DepositAmount != nil { + l = m.DepositAmount.Size() + n += 1 + l + sovGovernance(uint64(l)) + } + if m.Outcome != nil { + l = m.Outcome.Size() + n += 1 + l + sovGovernance(uint64(l)) } return n } -func (m *ProposalState_Voting_) Size() (n int) { +func (m *ValidatorVote) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.Voting != nil { - l = m.Voting.Size() + if m.Body != nil { + l = m.Body.Size() + n += 1 + l + sovGovernance(uint64(l)) + } + if m.AuthSig != nil { + l = m.AuthSig.Size() n += 1 + l + sovGovernance(uint64(l)) } return n } -func (m *ProposalState_Withdrawn_) Size() (n int) { + +func (m *ValidatorVoteReason) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.Withdrawn != nil { - l = m.Withdrawn.Size() + l = len(m.Reason) + if l > 0 { n += 1 + l + sovGovernance(uint64(l)) } return n } -func (m *ProposalState_Finished_) Size() (n int) { + +func (m *ValidatorVoteBody) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.Finished != nil { - l = m.Finished.Size() + if m.Proposal != 0 { + n += 1 + sovGovernance(uint64(m.Proposal)) + } + if m.Vote != nil { + l = m.Vote.Size() n += 1 + l + sovGovernance(uint64(l)) } - return n -} -func (m *ProposalState_Claimed_) Size() (n int) { - if m == nil { - return 0 + if m.IdentityKey != nil { + l = m.IdentityKey.Size() + n += 1 + l + sovGovernance(uint64(l)) } - var l int - _ = l - if m.Claimed != nil { - l = m.Claimed.Size() + if m.GovernanceKey != nil { + l = m.GovernanceKey.Size() n += 1 + l + sovGovernance(uint64(l)) } - return n -} -func (m *ProposalState_Voting) Size() (n int) { - if m == nil { - return 0 + if m.Reason != nil { + l = m.Reason.Size() + n += 1 + l + sovGovernance(uint64(l)) } - var l int - _ = l return n } -func (m *ProposalState_Withdrawn) Size() (n int) { +func (m *DelegatorVote) Size() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Reason) - if l > 0 { + if m.Body != nil { + l = m.Body.Size() n += 1 + l + sovGovernance(uint64(l)) } - return n -} - -func (m *ProposalState_Finished) Size() (n int) { - if m == nil { - return 0 + if m.AuthSig != nil { + l = m.AuthSig.Size() + n += 1 + l + sovGovernance(uint64(l)) } - var l int - _ = l - if m.Outcome != nil { - l = m.Outcome.Size() + if m.Proof != nil { + l = m.Proof.Size() n += 1 + l + sovGovernance(uint64(l)) } return n } -func (m *ProposalState_Claimed) Size() (n int) { +func (m *DelegatorVoteBody) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.Outcome != nil { - l = m.Outcome.Size() + if m.Proposal != 0 { + n += 1 + sovGovernance(uint64(m.Proposal)) + } + if m.StartPosition != 0 { + n += 1 + sovGovernance(uint64(m.StartPosition)) + } + if m.Vote != nil { + l = m.Vote.Size() + n += 1 + l + sovGovernance(uint64(l)) + } + if m.Value != nil { + l = m.Value.Size() + n += 1 + l + sovGovernance(uint64(l)) + } + if m.UnbondedAmount != nil { + l = m.UnbondedAmount.Size() + n += 1 + l + sovGovernance(uint64(l)) + } + if m.Nullifier != nil { + l = m.Nullifier.Size() + n += 1 + l + sovGovernance(uint64(l)) + } + if m.Rk != nil { + l = m.Rk.Size() n += 1 + l + sovGovernance(uint64(l)) } return n } -func (m *ProposalOutcome) Size() (n int) { +func (m *DelegatorVoteView) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.Outcome != nil { - n += m.Outcome.Size() + if m.DelegatorVote != nil { + n += m.DelegatorVote.Size() } return n } -func (m *ProposalOutcome_Passed_) Size() (n int) { +func (m *DelegatorVoteView_Visible_) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.Passed != nil { - l = m.Passed.Size() + if m.Visible != nil { + l = m.Visible.Size() n += 1 + l + sovGovernance(uint64(l)) } return n } -func (m *ProposalOutcome_Failed_) Size() (n int) { +func (m *DelegatorVoteView_Opaque_) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.Failed != nil { - l = m.Failed.Size() + if m.Opaque != nil { + l = m.Opaque.Size() n += 1 + l + sovGovernance(uint64(l)) } return n } -func (m *ProposalOutcome_Slashed_) Size() (n int) { +func (m *DelegatorVoteView_Visible) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.Slashed != nil { - l = m.Slashed.Size() + if m.DelegatorVote != nil { + l = m.DelegatorVote.Size() + n += 1 + l + sovGovernance(uint64(l)) + } + if m.Note != nil { + l = m.Note.Size() n += 1 + l + sovGovernance(uint64(l)) } return n } -func (m *ProposalOutcome_Withdrawn) Size() (n int) { + +func (m *DelegatorVoteView_Opaque) Size() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Reason) - if l > 0 { + if m.DelegatorVote != nil { + l = m.DelegatorVote.Size() n += 1 + l + sovGovernance(uint64(l)) } return n } -func (m *ProposalOutcome_Passed) Size() (n int) { +func (m *DelegatorVotePlan) Size() (n int) { if m == nil { return 0 } var l int _ = l + if m.Proposal != 0 { + n += 1 + sovGovernance(uint64(m.Proposal)) + } + if m.StartPosition != 0 { + n += 1 + sovGovernance(uint64(m.StartPosition)) + } + if m.Vote != nil { + l = m.Vote.Size() + n += 1 + l + sovGovernance(uint64(l)) + } + if m.StakedNote != nil { + l = m.StakedNote.Size() + n += 1 + l + sovGovernance(uint64(l)) + } + if m.StakedNotePosition != 0 { + n += 1 + sovGovernance(uint64(m.StakedNotePosition)) + } + if m.UnbondedAmount != nil { + l = m.UnbondedAmount.Size() + n += 1 + l + sovGovernance(uint64(l)) + } + l = len(m.Randomizer) + if l > 0 { + n += 1 + l + sovGovernance(uint64(l)) + } + l = len(m.ProofBlindingR) + if l > 0 { + n += 1 + l + sovGovernance(uint64(l)) + } + l = len(m.ProofBlindingS) + if l > 0 { + n += 1 + l + sovGovernance(uint64(l)) + } return n } -func (m *ProposalOutcome_Failed) Size() (n int) { +func (m *CommunityPoolDeposit) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.Withdrawn != nil { - l = m.Withdrawn.Size() + if m.Value != nil { + l = m.Value.Size() n += 1 + l + sovGovernance(uint64(l)) } return n } -func (m *ProposalOutcome_Slashed) Size() (n int) { +func (m *CommunityPoolSpend) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.Withdrawn != nil { - l = m.Withdrawn.Size() + if m.Value != nil { + l = m.Value.Size() n += 1 + l + sovGovernance(uint64(l)) } return n } -func (m *Tally) Size() (n int) { +func (m *CommunityPoolOutput) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.Yes != 0 { - n += 1 + sovGovernance(uint64(m.Yes)) - } - if m.No != 0 { - n += 1 + sovGovernance(uint64(m.No)) + if m.Value != nil { + l = m.Value.Size() + n += 1 + l + sovGovernance(uint64(l)) } - if m.Abstain != 0 { - n += 1 + sovGovernance(uint64(m.Abstain)) + if m.Address != nil { + l = m.Address.Size() + n += 1 + l + sovGovernance(uint64(l)) } return n } -func (m *Proposal) Size() (n int) { +func (m *Vote) Size() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Title) - if l > 0 { - n += 1 + l + sovGovernance(uint64(l)) - } - l = len(m.Description) - if l > 0 { - n += 1 + l + sovGovernance(uint64(l)) - } - if m.Id != 0 { - n += 1 + sovGovernance(uint64(m.Id)) - } - if m.Signaling != nil { - l = m.Signaling.Size() - n += 1 + l + sovGovernance(uint64(l)) - } - if m.Emergency != nil { - l = m.Emergency.Size() - n += 1 + l + sovGovernance(uint64(l)) - } - if m.ParameterChange != nil { - l = m.ParameterChange.Size() - n += 1 + l + sovGovernance(uint64(l)) - } - if m.CommunityPoolSpend != nil { - l = m.CommunityPoolSpend.Size() - n += 1 + l + sovGovernance(uint64(l)) - } - if m.UpgradePlan != nil { - l = m.UpgradePlan.Size() - n += 1 + l + sovGovernance(uint64(l)) - } - if m.FreezeIbcClient != nil { - l = m.FreezeIbcClient.Size() - n += 1 + l + sovGovernance(uint64(l)) - } - if m.UnfreezeIbcClient != nil { - l = m.UnfreezeIbcClient.Size() - n += 1 + l + sovGovernance(uint64(l)) + if m.Vote != 0 { + n += 1 + sovGovernance(uint64(m.Vote)) } return n } -func (m *Proposal_Signaling) Size() (n int) { +func (m *ProposalState) Size() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Commit) - if l > 0 { - n += 1 + l + sovGovernance(uint64(l)) + if m.State != nil { + n += m.State.Size() } return n } -func (m *Proposal_Emergency) Size() (n int) { +func (m *ProposalState_Voting_) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.HaltChain { - n += 2 + if m.Voting != nil { + l = m.Voting.Size() + n += 1 + l + sovGovernance(uint64(l)) } return n } - -func (m *Proposal_ParameterChange) Size() (n int) { +func (m *ProposalState_Withdrawn_) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.OldParameters != nil { - l = m.OldParameters.Size() + if m.Withdrawn != nil { + l = m.Withdrawn.Size() n += 1 + l + sovGovernance(uint64(l)) } - if m.NewParameters != nil { - l = m.NewParameters.Size() + return n +} +func (m *ProposalState_Finished_) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Finished != nil { + l = m.Finished.Size() n += 1 + l + sovGovernance(uint64(l)) } return n } - -func (m *Proposal_CommunityPoolSpend) Size() (n int) { +func (m *ProposalState_Claimed_) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.TransactionPlan != nil { - l = m.TransactionPlan.Size() + if m.Claimed != nil { + l = m.Claimed.Size() n += 1 + l + sovGovernance(uint64(l)) } return n } - -func (m *Proposal_UpgradePlan) Size() (n int) { +func (m *ProposalState_Voting) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.Height != 0 { - n += 1 + sovGovernance(uint64(m.Height)) - } return n } -func (m *Proposal_FreezeIbcClient) Size() (n int) { +func (m *ProposalState_Withdrawn) Size() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.ClientId) + l = len(m.Reason) if l > 0 { n += 1 + l + sovGovernance(uint64(l)) } return n } -func (m *Proposal_UnfreezeIbcClient) Size() (n int) { +func (m *ProposalState_Finished) Size() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.ClientId) - if l > 0 { + if m.Outcome != nil { + l = m.Outcome.Size() n += 1 + l + sovGovernance(uint64(l)) } return n } -func (m *ProposalInfoRequest) Size() (n int) { +func (m *ProposalState_Claimed) Size() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.ChainId) - if l > 0 { + if m.Outcome != nil { + l = m.Outcome.Size() n += 1 + l + sovGovernance(uint64(l)) } - if m.ProposalId != 0 { - n += 1 + sovGovernance(uint64(m.ProposalId)) - } return n } -func (m *ProposalInfoResponse) Size() (n int) { +func (m *ProposalOutcome) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.StartBlockHeight != 0 { - n += 1 + sovGovernance(uint64(m.StartBlockHeight)) - } - if m.StartPosition != 0 { - n += 1 + sovGovernance(uint64(m.StartPosition)) + if m.Outcome != nil { + n += m.Outcome.Size() } return n } -func (m *ProposalDataRequest) Size() (n int) { +func (m *ProposalOutcome_Passed_) Size() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.ChainId) - if l > 0 { + if m.Passed != nil { + l = m.Passed.Size() n += 1 + l + sovGovernance(uint64(l)) } - if m.ProposalId != 0 { - n += 1 + sovGovernance(uint64(m.ProposalId)) - } return n } - -func (m *ProposalDataResponse) Size() (n int) { +func (m *ProposalOutcome_Failed_) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.Proposal != nil { - l = m.Proposal.Size() + if m.Failed != nil { + l = m.Failed.Size() n += 1 + l + sovGovernance(uint64(l)) } - if m.StartBlockHeight != 0 { - n += 1 + sovGovernance(uint64(m.StartBlockHeight)) - } - if m.EndBlockHeight != 0 { - n += 1 + sovGovernance(uint64(m.EndBlockHeight)) - } - if m.StartPosition != 0 { - n += 1 + sovGovernance(uint64(m.StartPosition)) - } - if m.State != nil { - l = m.State.Size() - n += 1 + l + sovGovernance(uint64(l)) + return n +} +func (m *ProposalOutcome_Slashed_) Size() (n int) { + if m == nil { + return 0 } - if m.ProposalDepositAmount != nil { - l = m.ProposalDepositAmount.Size() + var l int + _ = l + if m.Slashed != nil { + l = m.Slashed.Size() n += 1 + l + sovGovernance(uint64(l)) } return n } - -func (m *ProposalRateDataRequest) Size() (n int) { +func (m *ProposalOutcome_Withdrawn) Size() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.ChainId) + l = len(m.Reason) if l > 0 { n += 1 + l + sovGovernance(uint64(l)) } - if m.ProposalId != 0 { - n += 1 + sovGovernance(uint64(m.ProposalId)) - } return n } -func (m *ProposalRateDataResponse) Size() (n int) { +func (m *ProposalOutcome_Passed) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.RateData != nil { - l = m.RateData.Size() - n += 1 + l + sovGovernance(uint64(l)) - } return n } -func (m *ProposalListRequest) Size() (n int) { +func (m *ProposalOutcome_Failed) Size() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.ChainId) - if l > 0 { + if m.Withdrawn != nil { + l = m.Withdrawn.Size() n += 1 + l + sovGovernance(uint64(l)) } - if m.Inactive { - n += 2 - } return n } -func (m *ProposalListResponse) Size() (n int) { +func (m *ProposalOutcome_Slashed) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.Proposal != nil { - l = m.Proposal.Size() + if m.Withdrawn != nil { + l = m.Withdrawn.Size() n += 1 + l + sovGovernance(uint64(l)) } - if m.StartBlockHeight != 0 { - n += 1 + sovGovernance(uint64(m.StartBlockHeight)) + return n +} + +func (m *Tally) Size() (n int) { + if m == nil { + return 0 } - if m.EndBlockHeight != 0 { - n += 1 + sovGovernance(uint64(m.EndBlockHeight)) + var l int + _ = l + if m.Yes != 0 { + n += 1 + sovGovernance(uint64(m.Yes)) } - if m.StartPosition != 0 { - n += 1 + sovGovernance(uint64(m.StartPosition)) + if m.No != 0 { + n += 1 + sovGovernance(uint64(m.No)) } - if m.State != nil { - l = m.State.Size() - n += 1 + l + sovGovernance(uint64(l)) + if m.Abstain != 0 { + n += 1 + sovGovernance(uint64(m.Abstain)) } return n } -func (m *ValidatorVotesRequest) Size() (n int) { +func (m *Proposal) Size() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.ChainId) + l = len(m.Title) if l > 0 { n += 1 + l + sovGovernance(uint64(l)) } - if m.ProposalId != 0 { - n += 1 + sovGovernance(uint64(m.ProposalId)) + l = len(m.Description) + if l > 0 { + n += 1 + l + sovGovernance(uint64(l)) + } + if m.Id != 0 { + n += 1 + sovGovernance(uint64(m.Id)) + } + if m.Payload != nil { + n += m.Payload.Size() } return n } -func (m *ValidatorVotesResponse) Size() (n int) { +func (m *Proposal_Signaling_) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.Vote != nil { - l = m.Vote.Size() - n += 1 + l + sovGovernance(uint64(l)) - } - if m.IdentityKey != nil { - l = m.IdentityKey.Size() + if m.Signaling != nil { + l = m.Signaling.Size() n += 1 + l + sovGovernance(uint64(l)) } return n } - -func (m *GovernanceParameters) Size() (n int) { +func (m *Proposal_Emergency_) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.ProposalVotingBlocks != 0 { - n += 1 + sovGovernance(uint64(m.ProposalVotingBlocks)) - } - if m.ProposalDepositAmount != nil { - l = m.ProposalDepositAmount.Size() + if m.Emergency != nil { + l = m.Emergency.Size() n += 1 + l + sovGovernance(uint64(l)) } - l = len(m.ProposalValidQuorum) - if l > 0 { - n += 1 + l + sovGovernance(uint64(l)) + return n +} +func (m *Proposal_ParameterChange_) Size() (n int) { + if m == nil { + return 0 } - l = len(m.ProposalPassThreshold) - if l > 0 { + var l int + _ = l + if m.ParameterChange != nil { + l = m.ParameterChange.Size() n += 1 + l + sovGovernance(uint64(l)) } - l = len(m.ProposalSlashThreshold) - if l > 0 { + return n +} +func (m *Proposal_CommunityPoolSpend_) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.CommunityPoolSpend != nil { + l = m.CommunityPoolSpend.Size() n += 1 + l + sovGovernance(uint64(l)) } return n } - -func (m *GenesisContent) Size() (n int) { +func (m *Proposal_UpgradePlan_) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.GovernanceParams != nil { - l = m.GovernanceParams.Size() + if m.UpgradePlan != nil { + l = m.UpgradePlan.Size() n += 1 + l + sovGovernance(uint64(l)) } return n } - -func (m *ChangedAppParameters) Size() (n int) { +func (m *Proposal_FreezeIbcClient_) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.ChainParams != nil { - l = m.ChainParams.Size() + if m.FreezeIbcClient != nil { + l = m.FreezeIbcClient.Size() n += 1 + l + sovGovernance(uint64(l)) } - if m.CommunityPoolParams != nil { - l = m.CommunityPoolParams.Size() - n += 1 + l + sovGovernance(uint64(l)) + return n +} +func (m *Proposal_UnfreezeIbcClient_) Size() (n int) { + if m == nil { + return 0 } - if m.GovernanceParams != nil { - l = m.GovernanceParams.Size() + var l int + _ = l + if m.UnfreezeIbcClient != nil { + l = m.UnfreezeIbcClient.Size() n += 1 + l + sovGovernance(uint64(l)) } - if m.IbcParams != nil { - l = m.IbcParams.Size() - n += 1 + l + sovGovernance(uint64(l)) + return n +} +func (m *Proposal_Signaling) Size() (n int) { + if m == nil { + return 0 } - if m.StakeParams != nil { - l = m.StakeParams.Size() + var l int + _ = l + l = len(m.Commit) + if l > 0 { n += 1 + l + sovGovernance(uint64(l)) } - if m.FeeParams != nil { - l = m.FeeParams.Size() - n += 1 + l + sovGovernance(uint64(l)) + return n +} + +func (m *Proposal_Emergency) Size() (n int) { + if m == nil { + return 0 } - if m.DistributionsParams != nil { - l = m.DistributionsParams.Size() - n += 1 + l + sovGovernance(uint64(l)) + var l int + _ = l + if m.HaltChain { + n += 2 } return n } -func (m *ChangedAppParametersSet) Size() (n int) { +func (m *Proposal_ParameterChange) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.Old != nil { - l = m.Old.Size() + if m.OldParameters != nil { + l = m.OldParameters.Size() n += 1 + l + sovGovernance(uint64(l)) } - if m.New != nil { - l = m.New.Size() + if m.NewParameters != nil { + l = m.NewParameters.Size() n += 1 + l + sovGovernance(uint64(l)) } return n } -func (m *VotingPowerAtProposalStartRequest) Size() (n int) { +func (m *Proposal_CommunityPoolSpend) Size() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.ChainId) - if l > 0 { + if m.TransactionPlan != nil { + l = m.TransactionPlan.Size() n += 1 + l + sovGovernance(uint64(l)) } - if m.ProposalId != 0 { - n += 1 + sovGovernance(uint64(m.ProposalId)) + return n +} + +func (m *Proposal_UpgradePlan) Size() (n int) { + if m == nil { + return 0 } - if m.IdentityKey != nil { - l = m.IdentityKey.Size() - n += 1 + l + sovGovernance(uint64(l)) + var l int + _ = l + if m.Height != 0 { + n += 1 + sovGovernance(uint64(m.Height)) } return n } -func (m *VotingPowerAtProposalStartResponse) Size() (n int) { +func (m *Proposal_FreezeIbcClient) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.VotingPower != 0 { - n += 1 + sovGovernance(uint64(m.VotingPower)) + l = len(m.ClientId) + if l > 0 { + n += 1 + l + sovGovernance(uint64(l)) } return n } -func (m *AllTalliedDelegatorVotesForProposalRequest) Size() (n int) { +func (m *Proposal_UnfreezeIbcClient) Size() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.ChainId) + l = len(m.ClientId) if l > 0 { n += 1 + l + sovGovernance(uint64(l)) } + return n +} + +func (m *ProposalInfoRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l if m.ProposalId != 0 { n += 1 + sovGovernance(uint64(m.ProposalId)) } return n } -func (m *AllTalliedDelegatorVotesForProposalResponse) Size() (n int) { +func (m *ProposalInfoResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.Tally != nil { - l = m.Tally.Size() - n += 1 + l + sovGovernance(uint64(l)) + if m.StartBlockHeight != 0 { + n += 1 + sovGovernance(uint64(m.StartBlockHeight)) } - if m.IdentityKey != nil { - l = m.IdentityKey.Size() - n += 1 + l + sovGovernance(uint64(l)) + if m.StartPosition != 0 { + n += 1 + sovGovernance(uint64(m.StartPosition)) } return n } -func (m *NextProposalIdRequest) Size() (n int) { +func (m *ProposalDataRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.ChainId) - if l > 0 { - n += 1 + l + sovGovernance(uint64(l)) + if m.ProposalId != 0 { + n += 1 + sovGovernance(uint64(m.ProposalId)) } return n } -func (m *NextProposalIdResponse) Size() (n int) { +func (m *ProposalDataResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.NextProposalId != 0 { - n += 1 + sovGovernance(uint64(m.NextProposalId)) + if m.Proposal != nil { + l = m.Proposal.Size() + n += 1 + l + sovGovernance(uint64(l)) } - return n -} - -func sovGovernance(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} + if m.StartBlockHeight != 0 { + n += 1 + sovGovernance(uint64(m.StartBlockHeight)) + } + if m.EndBlockHeight != 0 { + n += 1 + sovGovernance(uint64(m.EndBlockHeight)) + } + if m.StartPosition != 0 { + n += 1 + sovGovernance(uint64(m.StartPosition)) + } + if m.State != nil { + l = m.State.Size() + n += 1 + l + sovGovernance(uint64(l)) + } + if m.ProposalDepositAmount != nil { + l = m.ProposalDepositAmount.Size() + n += 1 + l + sovGovernance(uint64(l)) + } + return n +} + +func (m *ProposalRateDataRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ProposalId != 0 { + n += 1 + sovGovernance(uint64(m.ProposalId)) + } + return n +} + +func (m *ProposalRateDataResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.RateData != nil { + l = m.RateData.Size() + n += 1 + l + sovGovernance(uint64(l)) + } + return n +} + +func (m *ProposalListRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Inactive { + n += 2 + } + return n +} + +func (m *ProposalListResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Proposal != nil { + l = m.Proposal.Size() + n += 1 + l + sovGovernance(uint64(l)) + } + if m.StartBlockHeight != 0 { + n += 1 + sovGovernance(uint64(m.StartBlockHeight)) + } + if m.EndBlockHeight != 0 { + n += 1 + sovGovernance(uint64(m.EndBlockHeight)) + } + if m.StartPosition != 0 { + n += 1 + sovGovernance(uint64(m.StartPosition)) + } + if m.State != nil { + l = m.State.Size() + n += 1 + l + sovGovernance(uint64(l)) + } + return n +} + +func (m *ValidatorVotesRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ProposalId != 0 { + n += 1 + sovGovernance(uint64(m.ProposalId)) + } + return n +} + +func (m *ValidatorVotesResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Vote != nil { + l = m.Vote.Size() + n += 1 + l + sovGovernance(uint64(l)) + } + if m.IdentityKey != nil { + l = m.IdentityKey.Size() + n += 1 + l + sovGovernance(uint64(l)) + } + return n +} + +func (m *GovernanceParameters) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ProposalVotingBlocks != 0 { + n += 1 + sovGovernance(uint64(m.ProposalVotingBlocks)) + } + if m.ProposalDepositAmount != nil { + l = m.ProposalDepositAmount.Size() + n += 1 + l + sovGovernance(uint64(l)) + } + l = len(m.ProposalValidQuorum) + if l > 0 { + n += 1 + l + sovGovernance(uint64(l)) + } + l = len(m.ProposalPassThreshold) + if l > 0 { + n += 1 + l + sovGovernance(uint64(l)) + } + l = len(m.ProposalSlashThreshold) + if l > 0 { + n += 1 + l + sovGovernance(uint64(l)) + } + return n +} + +func (m *GenesisContent) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.GovernanceParams != nil { + l = m.GovernanceParams.Size() + n += 1 + l + sovGovernance(uint64(l)) + } + return n +} + +func (m *ChangedAppParameters) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.SctParams != nil { + l = m.SctParams.Size() + n += 1 + l + sovGovernance(uint64(l)) + } + if m.CommunityPoolParams != nil { + l = m.CommunityPoolParams.Size() + n += 1 + l + sovGovernance(uint64(l)) + } + if m.GovernanceParams != nil { + l = m.GovernanceParams.Size() + n += 1 + l + sovGovernance(uint64(l)) + } + if m.IbcParams != nil { + l = m.IbcParams.Size() + n += 1 + l + sovGovernance(uint64(l)) + } + if m.StakeParams != nil { + l = m.StakeParams.Size() + n += 1 + l + sovGovernance(uint64(l)) + } + if m.FeeParams != nil { + l = m.FeeParams.Size() + n += 1 + l + sovGovernance(uint64(l)) + } + if m.DistributionsParams != nil { + l = m.DistributionsParams.Size() + n += 1 + l + sovGovernance(uint64(l)) + } + if m.FundingParams != nil { + l = m.FundingParams.Size() + n += 1 + l + sovGovernance(uint64(l)) + } + if m.ShieldedPoolParams != nil { + l = m.ShieldedPoolParams.Size() + n += 1 + l + sovGovernance(uint64(l)) + } + if m.DexParams != nil { + l = m.DexParams.Size() + n += 1 + l + sovGovernance(uint64(l)) + } + return n +} + +func (m *ChangedAppParametersSet) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Old != nil { + l = m.Old.Size() + n += 1 + l + sovGovernance(uint64(l)) + } + if m.New != nil { + l = m.New.Size() + n += 1 + l + sovGovernance(uint64(l)) + } + return n +} + +func (m *VotingPowerAtProposalStartRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ProposalId != 0 { + n += 1 + sovGovernance(uint64(m.ProposalId)) + } + if m.IdentityKey != nil { + l = m.IdentityKey.Size() + n += 1 + l + sovGovernance(uint64(l)) + } + return n +} + +func (m *VotingPowerAtProposalStartResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.VotingPower != 0 { + n += 1 + sovGovernance(uint64(m.VotingPower)) + } + return n +} + +func (m *AllTalliedDelegatorVotesForProposalRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ProposalId != 0 { + n += 1 + sovGovernance(uint64(m.ProposalId)) + } + return n +} + +func (m *AllTalliedDelegatorVotesForProposalResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Tally != nil { + l = m.Tally.Size() + n += 1 + l + sovGovernance(uint64(l)) + } + if m.IdentityKey != nil { + l = m.IdentityKey.Size() + n += 1 + l + sovGovernance(uint64(l)) + } + return n +} + +func (m *NextProposalIdRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *NextProposalIdResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.NextProposalId != 0 { + n += 1 + sovGovernance(uint64(m.NextProposalId)) + } + return n +} + +func (m *Ratio) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Numerator != 0 { + n += 1 + sovGovernance(uint64(m.Numerator)) + } + if m.Denominator != 0 { + n += 1 + sovGovernance(uint64(m.Denominator)) + } + return n +} + +func (m *EventDelegatorVote) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Vote != nil { + l = m.Vote.Size() + n += 1 + l + sovGovernance(uint64(l)) + } + return n +} + +func (m *EventProposalDepositClaim) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.DepositClaim != nil { + l = m.DepositClaim.Size() + n += 1 + l + sovGovernance(uint64(l)) + } + return n +} + +func (m *EventValidatorVote) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Vote != nil { + l = m.Vote.Size() + n += 1 + l + sovGovernance(uint64(l)) + } + return n +} + +func (m *EventProposalWithdraw) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Withdraw != nil { + l = m.Withdraw.Size() + n += 1 + l + sovGovernance(uint64(l)) + } + return n +} + +func (m *EventProposalSubmit) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Submit != nil { + l = m.Submit.Size() + n += 1 + l + sovGovernance(uint64(l)) + } + return n +} + +func (m *EventEnactProposal) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Proposal != nil { + l = m.Proposal.Size() + n += 1 + l + sovGovernance(uint64(l)) + } + return n +} + +func (m *EventProposalFailed) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Proposal != nil { + l = m.Proposal.Size() + n += 1 + l + sovGovernance(uint64(l)) + } + return n +} + +func (m *EventProposalSlashed) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Proposal != nil { + l = m.Proposal.Size() + n += 1 + l + sovGovernance(uint64(l)) + } + return n +} + +func sovGovernance(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} func sozGovernance(x uint64) (n int) { return sovGovernance(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } -func (m *ZKDelegatorVoteProof) Unmarshal(dAtA []byte) error { +func (m *ZKDelegatorVoteProof) 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 ErrIntOverflowGovernance + } + 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: ZKDelegatorVoteProof: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ZKDelegatorVoteProof: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Inner", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGovernance + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthGovernance + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthGovernance + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Inner = append(m.Inner[:0], dAtA[iNdEx:postIndex]...) + if m.Inner == nil { + m.Inner = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGovernance(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGovernance + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ProposalSubmit) 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 ErrIntOverflowGovernance + } + 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: ProposalSubmit: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ProposalSubmit: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Proposal", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGovernance + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGovernance + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGovernance + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Proposal == nil { + m.Proposal = &Proposal{} + } + if err := m.Proposal.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DepositAmount", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGovernance + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGovernance + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGovernance + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.DepositAmount == nil { + m.DepositAmount = &v1.Amount{} + } + if err := m.DepositAmount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGovernance(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGovernance + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ProposalWithdraw) 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 ErrIntOverflowGovernance + } + 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: ProposalWithdraw: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ProposalWithdraw: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Proposal", wireType) + } + m.Proposal = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGovernance + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Proposal |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGovernance + } + 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 ErrInvalidLengthGovernance + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGovernance + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Reason = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGovernance(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGovernance + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ProposalDepositClaim) 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 ErrIntOverflowGovernance + } + 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: ProposalDepositClaim: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ProposalDepositClaim: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Proposal", wireType) + } + m.Proposal = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGovernance + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Proposal |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DepositAmount", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGovernance + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGovernance + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGovernance + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.DepositAmount == nil { + m.DepositAmount = &v1.Amount{} + } + if err := m.DepositAmount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Outcome", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGovernance + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGovernance + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGovernance + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Outcome == nil { + m.Outcome = &ProposalOutcome{} + } + if err := m.Outcome.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGovernance(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGovernance + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ValidatorVote) 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 ErrIntOverflowGovernance + } + 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: ValidatorVote: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ValidatorVote: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Body", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGovernance + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGovernance + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGovernance + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Body == nil { + m.Body = &ValidatorVoteBody{} + } + if err := m.Body.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AuthSig", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGovernance + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGovernance + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGovernance + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.AuthSig == nil { + m.AuthSig = &v11.SpendAuthSignature{} + } + if err := m.AuthSig.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGovernance(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGovernance + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ValidatorVoteReason) 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 ErrIntOverflowGovernance + } + 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: ValidatorVoteReason: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ValidatorVoteReason: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGovernance + } + 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 ErrInvalidLengthGovernance + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGovernance + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Reason = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGovernance(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGovernance + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ValidatorVoteBody) 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 ErrIntOverflowGovernance + } + 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: ValidatorVoteBody: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ValidatorVoteBody: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Proposal", wireType) + } + m.Proposal = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGovernance + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Proposal |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Vote", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGovernance + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGovernance + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGovernance + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Vote == nil { + m.Vote = &Vote{} + } + if err := m.Vote.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IdentityKey", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGovernance + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGovernance + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGovernance + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.IdentityKey == nil { + m.IdentityKey = &v12.IdentityKey{} + } + if err := m.IdentityKey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field GovernanceKey", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGovernance + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGovernance + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGovernance + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.GovernanceKey == nil { + m.GovernanceKey = &v12.GovernanceKey{} + } + if err := m.GovernanceKey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGovernance + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGovernance + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGovernance + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Reason == nil { + m.Reason = &ValidatorVoteReason{} + } + if err := m.Reason.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGovernance(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGovernance + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DelegatorVote) 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 ErrIntOverflowGovernance + } + 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: DelegatorVote: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DelegatorVote: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Body", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGovernance + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGovernance + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGovernance + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Body == nil { + m.Body = &DelegatorVoteBody{} + } + if err := m.Body.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AuthSig", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGovernance + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGovernance + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGovernance + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.AuthSig == nil { + m.AuthSig = &v11.SpendAuthSignature{} + } + if err := m.AuthSig.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Proof", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGovernance + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGovernance + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGovernance + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Proof == nil { + m.Proof = &ZKDelegatorVoteProof{} + } + if err := m.Proof.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGovernance(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGovernance + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DelegatorVoteBody) 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 ErrIntOverflowGovernance + } + 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: DelegatorVoteBody: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DelegatorVoteBody: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Proposal", wireType) + } + m.Proposal = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGovernance + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Proposal |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field StartPosition", wireType) + } + m.StartPosition = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGovernance + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.StartPosition |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Vote", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGovernance + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGovernance + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGovernance + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Vote == nil { + m.Vote = &Vote{} + } + if err := m.Vote.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGovernance + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGovernance + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGovernance + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Value == nil { + m.Value = &v13.Value{} + } + if err := m.Value.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UnbondedAmount", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGovernance + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGovernance + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGovernance + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.UnbondedAmount == nil { + m.UnbondedAmount = &v1.Amount{} + } + if err := m.UnbondedAmount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Nullifier", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGovernance + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGovernance + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGovernance + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Nullifier == nil { + m.Nullifier = &v14.Nullifier{} + } + if err := m.Nullifier.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Rk", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGovernance + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGovernance + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGovernance + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Rk == nil { + m.Rk = &v11.SpendVerificationKey{} + } + if err := m.Rk.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGovernance(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGovernance + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DelegatorVoteView) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -7828,17 +10102,17 @@ func (m *ZKDelegatorVoteProof) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ZKDelegatorVoteProof: wiretype end group for non-group") + return fmt.Errorf("proto: DelegatorVoteView: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ZKDelegatorVoteProof: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: DelegatorVoteView: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Inner", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Visible", wireType) } - var byteLen int + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGovernance @@ -7848,25 +10122,61 @@ func (m *ZKDelegatorVoteProof) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { + if msglen < 0 { return ErrInvalidLengthGovernance } - postIndex := iNdEx + byteLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGovernance } if postIndex > l { return io.ErrUnexpectedEOF } - m.Inner = append(m.Inner[:0], dAtA[iNdEx:postIndex]...) - if m.Inner == nil { - m.Inner = []byte{} + v := &DelegatorVoteView_Visible{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.DelegatorVote = &DelegatorVoteView_Visible_{v} + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Opaque", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGovernance + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGovernance + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGovernance + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &DelegatorVoteView_Opaque{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } + m.DelegatorVote = &DelegatorVoteView_Opaque_{v} iNdEx = postIndex default: iNdEx = preIndex @@ -7889,7 +10199,7 @@ func (m *ZKDelegatorVoteProof) Unmarshal(dAtA []byte) error { } return nil } -func (m *ProposalSubmit) Unmarshal(dAtA []byte) error { +func (m *DelegatorVoteView_Visible) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -7912,15 +10222,15 @@ func (m *ProposalSubmit) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ProposalSubmit: wiretype end group for non-group") + return fmt.Errorf("proto: Visible: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ProposalSubmit: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Visible: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Proposal", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field DelegatorVote", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -7947,16 +10257,16 @@ func (m *ProposalSubmit) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Proposal == nil { - m.Proposal = &Proposal{} + if m.DelegatorVote == nil { + m.DelegatorVote = &DelegatorVote{} } - if err := m.Proposal.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.DelegatorVote.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 3: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DepositAmount", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Note", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -7983,10 +10293,10 @@ func (m *ProposalSubmit) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.DepositAmount == nil { - m.DepositAmount = &v1alpha1.Amount{} + if m.Note == nil { + m.Note = &v15.NoteView{} } - if err := m.DepositAmount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Note.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -8011,7 +10321,7 @@ func (m *ProposalSubmit) Unmarshal(dAtA []byte) error { } return nil } -func (m *ProposalWithdraw) Unmarshal(dAtA []byte) error { +func (m *DelegatorVoteView_Opaque) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -8034,36 +10344,17 @@ func (m *ProposalWithdraw) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ProposalWithdraw: wiretype end group for non-group") + return fmt.Errorf("proto: Opaque: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ProposalWithdraw: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Opaque: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Proposal", wireType) - } - m.Proposal = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGovernance - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Proposal |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field DelegatorVote", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGovernance @@ -8073,23 +10364,27 @@ func (m *ProposalWithdraw) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthGovernance } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGovernance } if postIndex > l { return io.ErrUnexpectedEOF } - m.Reason = string(dAtA[iNdEx:postIndex]) + if m.DelegatorVote == nil { + m.DelegatorVote = &DelegatorVote{} + } + if err := m.DelegatorVote.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex default: iNdEx = preIndex @@ -8112,7 +10407,7 @@ func (m *ProposalWithdraw) Unmarshal(dAtA []byte) error { } return nil } -func (m *ProposalDepositClaim) Unmarshal(dAtA []byte) error { +func (m *DelegatorVotePlan) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -8135,10 +10430,10 @@ func (m *ProposalDepositClaim) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ProposalDepositClaim: wiretype end group for non-group") + return fmt.Errorf("proto: DelegatorVotePlan: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ProposalDepositClaim: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: DelegatorVotePlan: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -8161,8 +10456,27 @@ func (m *ProposalDepositClaim) Unmarshal(dAtA []byte) error { } } case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field StartPosition", wireType) + } + m.StartPosition = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGovernance + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.StartPosition |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DepositAmount", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Vote", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -8189,16 +10503,71 @@ func (m *ProposalDepositClaim) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.DepositAmount == nil { - m.DepositAmount = &v1alpha1.Amount{} + if m.Vote == nil { + m.Vote = &Vote{} } - if err := m.DepositAmount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Vote.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 3: + case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Outcome", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field StakedNote", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGovernance + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGovernance + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGovernance + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.StakedNote == nil { + m.StakedNote = &v15.Note{} + } + if err := m.StakedNote.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field StakedNotePosition", wireType) + } + m.StakedNotePosition = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGovernance + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.StakedNotePosition |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UnbondedAmount", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -8215,78 +10584,62 @@ func (m *ProposalDepositClaim) Unmarshal(dAtA []byte) error { break } } - if msglen < 0 { + if msglen < 0 { + return ErrInvalidLengthGovernance + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGovernance + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.UnbondedAmount == nil { + m.UnbondedAmount = &v1.Amount{} + } + if err := m.UnbondedAmount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Randomizer", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGovernance + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { return ErrInvalidLengthGovernance } - postIndex := iNdEx + msglen + postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthGovernance } if postIndex > l { return io.ErrUnexpectedEOF } - if m.Outcome == nil { - m.Outcome = &ProposalOutcome{} - } - if err := m.Outcome.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + m.Randomizer = append(m.Randomizer[:0], dAtA[iNdEx:postIndex]...) + if m.Randomizer == nil { + m.Randomizer = []byte{} } iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGovernance(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGovernance - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ValidatorVote) 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 ErrIntOverflowGovernance - } - 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: ValidatorVote: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ValidatorVote: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + case 8: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Body", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ProofBlindingR", wireType) } - var msglen int + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGovernance @@ -8296,33 +10649,31 @@ func (m *ValidatorVote) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + if byteLen < 0 { return ErrInvalidLengthGovernance } - postIndex := iNdEx + msglen + postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthGovernance } if postIndex > l { return io.ErrUnexpectedEOF } - if m.Body == nil { - m.Body = &ValidatorVoteBody{} - } - if err := m.Body.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + m.ProofBlindingR = append(m.ProofBlindingR[:0], dAtA[iNdEx:postIndex]...) + if m.ProofBlindingR == nil { + m.ProofBlindingR = []byte{} } iNdEx = postIndex - case 2: + case 9: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AuthSig", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ProofBlindingS", wireType) } - var msglen int + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGovernance @@ -8332,26 +10683,24 @@ func (m *ValidatorVote) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + if byteLen < 0 { return ErrInvalidLengthGovernance } - postIndex := iNdEx + msglen + postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthGovernance } if postIndex > l { return io.ErrUnexpectedEOF } - if m.AuthSig == nil { - m.AuthSig = &v1alpha11.SpendAuthSignature{} - } - if err := m.AuthSig.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + m.ProofBlindingS = append(m.ProofBlindingS[:0], dAtA[iNdEx:postIndex]...) + if m.ProofBlindingS == nil { + m.ProofBlindingS = []byte{} } iNdEx = postIndex default: @@ -8375,7 +10724,7 @@ func (m *ValidatorVote) Unmarshal(dAtA []byte) error { } return nil } -func (m *ValidatorVoteReason) Unmarshal(dAtA []byte) error { +func (m *CommunityPoolDeposit) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -8398,17 +10747,17 @@ func (m *ValidatorVoteReason) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ValidatorVoteReason: wiretype end group for non-group") + return fmt.Errorf("proto: CommunityPoolDeposit: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ValidatorVoteReason: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: CommunityPoolDeposit: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGovernance @@ -8418,23 +10767,27 @@ func (m *ValidatorVoteReason) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthGovernance } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGovernance } if postIndex > l { return io.ErrUnexpectedEOF } - m.Reason = string(dAtA[iNdEx:postIndex]) + if m.Value == nil { + m.Value = &v13.Value{} + } + if err := m.Value.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex default: iNdEx = preIndex @@ -8457,7 +10810,7 @@ func (m *ValidatorVoteReason) Unmarshal(dAtA []byte) error { } return nil } -func (m *ValidatorVoteBody) Unmarshal(dAtA []byte) error { +func (m *CommunityPoolSpend) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -8480,142 +10833,15 @@ func (m *ValidatorVoteBody) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ValidatorVoteBody: wiretype end group for non-group") + return fmt.Errorf("proto: CommunityPoolSpend: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ValidatorVoteBody: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: CommunityPoolSpend: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Proposal", wireType) - } - m.Proposal = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGovernance - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Proposal |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Vote", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGovernance - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGovernance - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGovernance - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Vote == nil { - m.Vote = &Vote{} - } - if err := m.Vote.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field IdentityKey", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGovernance - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGovernance - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGovernance - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.IdentityKey == nil { - m.IdentityKey = &v1alpha12.IdentityKey{} - } - if err := m.IdentityKey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GovernanceKey", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGovernance - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGovernance - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGovernance - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.GovernanceKey == nil { - m.GovernanceKey = &v1alpha12.GovernanceKey{} - } - if err := m.GovernanceKey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -8642,10 +10868,10 @@ func (m *ValidatorVoteBody) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Reason == nil { - m.Reason = &ValidatorVoteReason{} + if m.Value == nil { + m.Value = &v13.Value{} } - if err := m.Reason.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Value.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -8670,7 +10896,7 @@ func (m *ValidatorVoteBody) Unmarshal(dAtA []byte) error { } return nil } -func (m *DelegatorVote) Unmarshal(dAtA []byte) error { +func (m *CommunityPoolOutput) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -8693,15 +10919,15 @@ func (m *DelegatorVote) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: DelegatorVote: wiretype end group for non-group") + return fmt.Errorf("proto: CommunityPoolOutput: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: DelegatorVote: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: CommunityPoolOutput: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Body", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -8728,52 +10954,16 @@ func (m *DelegatorVote) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Body == nil { - m.Body = &DelegatorVoteBody{} + if m.Value == nil { + m.Value = &v13.Value{} } - if err := m.Body.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Value.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AuthSig", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGovernance - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGovernance - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGovernance - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.AuthSig == nil { - m.AuthSig = &v1alpha11.SpendAuthSignature{} - } - if err := m.AuthSig.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Proof", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -8800,10 +10990,10 @@ func (m *DelegatorVote) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Proof == nil { - m.Proof = &ZKDelegatorVoteProof{} + if m.Address == nil { + m.Address = &v12.Address{} } - if err := m.Proof.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Address.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -8828,7 +11018,7 @@ func (m *DelegatorVote) Unmarshal(dAtA []byte) error { } return nil } -func (m *DelegatorVoteBody) Unmarshal(dAtA []byte) error { +func (m *Vote) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -8851,55 +11041,17 @@ func (m *DelegatorVoteBody) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: DelegatorVoteBody: wiretype end group for non-group") + return fmt.Errorf("proto: Vote: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: DelegatorVoteBody: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Vote: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Proposal", wireType) - } - m.Proposal = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGovernance - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Proposal |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StartPosition", wireType) - } - m.StartPosition = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGovernance - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.StartPosition |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Vote", wireType) } - var msglen int + m.Vote = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGovernance @@ -8909,31 +11061,64 @@ func (m *DelegatorVoteBody) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + m.Vote |= Vote_Vote(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return ErrInvalidLengthGovernance + default: + iNdEx = preIndex + skippy, err := skipGovernance(dAtA[iNdEx:]) + if err != nil { + return err } - postIndex := iNdEx + msglen - if postIndex < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGovernance } - if postIndex > l { + if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - if m.Vote == nil { - m.Vote = &Vote{} + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ProposalState) 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 ErrIntOverflowGovernance } - if err := m.Vote.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + if iNdEx >= l { + return io.ErrUnexpectedEOF } - iNdEx = postIndex - case 4: + 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: ProposalState: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ProposalState: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Voting", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -8960,16 +11145,15 @@ func (m *DelegatorVoteBody) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Value == nil { - m.Value = &v1alpha13.Value{} - } - if err := m.Value.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + v := &ProposalState_Voting{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } + m.State = &ProposalState_Voting_{v} iNdEx = postIndex - case 5: + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UnbondedAmount", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Withdrawn", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -8996,16 +11180,15 @@ func (m *DelegatorVoteBody) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.UnbondedAmount == nil { - m.UnbondedAmount = &v1alpha1.Amount{} - } - if err := m.UnbondedAmount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + v := &ProposalState_Withdrawn{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } + m.State = &ProposalState_Withdrawn_{v} iNdEx = postIndex - case 6: + case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Nullifier", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Finished", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -9032,16 +11215,15 @@ func (m *DelegatorVoteBody) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Nullifier == nil { - m.Nullifier = &v1alpha14.Nullifier{} - } - if err := m.Nullifier.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + v := &ProposalState_Finished{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } + m.State = &ProposalState_Finished_{v} iNdEx = postIndex - case 7: + case 5: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Rk", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Claimed", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -9068,12 +11250,11 @@ func (m *DelegatorVoteBody) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Rk == nil { - m.Rk = &v1alpha11.SpendVerificationKey{} - } - if err := m.Rk.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + v := &ProposalState_Claimed{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } + m.State = &ProposalState_Claimed_{v} iNdEx = postIndex default: iNdEx = preIndex @@ -9096,7 +11277,7 @@ func (m *DelegatorVoteBody) Unmarshal(dAtA []byte) error { } return nil } -func (m *DelegatorVoteView) Unmarshal(dAtA []byte) error { +func (m *ProposalState_Voting) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -9119,52 +11300,67 @@ func (m *DelegatorVoteView) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: DelegatorVoteView: wiretype end group for non-group") + return fmt.Errorf("proto: Voting: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: DelegatorVoteView: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Voting: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Visible", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGovernance - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } + default: + iNdEx = preIndex + skippy, err := skipGovernance(dAtA[iNdEx:]) + if err != nil { + return err } - if msglen < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGovernance } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGovernance + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ProposalState_Withdrawn) 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 ErrIntOverflowGovernance } - if postIndex > l { + if iNdEx >= l { return io.ErrUnexpectedEOF } - v := &DelegatorVoteView_Visible{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break } - m.DelegatorVote = &DelegatorVoteView_Visible_{v} - iNdEx = postIndex - case 2: + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Withdrawn: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Withdrawn: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Opaque", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGovernance @@ -9174,26 +11370,23 @@ func (m *DelegatorVoteView) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthGovernance } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthGovernance } if postIndex > l { return io.ErrUnexpectedEOF } - v := &DelegatorVoteView_Opaque{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.DelegatorVote = &DelegatorVoteView_Opaque_{v} + m.Reason = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -9216,7 +11409,7 @@ func (m *DelegatorVoteView) Unmarshal(dAtA []byte) error { } return nil } -func (m *DelegatorVoteView_Visible) Unmarshal(dAtA []byte) error { +func (m *ProposalState_Finished) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -9239,51 +11432,15 @@ func (m *DelegatorVoteView_Visible) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Visible: wiretype end group for non-group") + return fmt.Errorf("proto: Finished: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Visible: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Finished: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DelegatorVote", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGovernance - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGovernance - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGovernance - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.DelegatorVote == nil { - m.DelegatorVote = &DelegatorVote{} - } - if err := m.DelegatorVote.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Note", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Outcome", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -9310,10 +11467,10 @@ func (m *DelegatorVoteView_Visible) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Note == nil { - m.Note = &v1alpha15.NoteView{} + if m.Outcome == nil { + m.Outcome = &ProposalOutcome{} } - if err := m.Note.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Outcome.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -9338,7 +11495,7 @@ func (m *DelegatorVoteView_Visible) Unmarshal(dAtA []byte) error { } return nil } -func (m *DelegatorVoteView_Opaque) Unmarshal(dAtA []byte) error { +func (m *ProposalState_Claimed) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -9361,15 +11518,15 @@ func (m *DelegatorVoteView_Opaque) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Opaque: wiretype end group for non-group") + return fmt.Errorf("proto: Claimed: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Opaque: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Claimed: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DelegatorVote", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Outcome", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -9396,10 +11553,10 @@ func (m *DelegatorVoteView_Opaque) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.DelegatorVote == nil { - m.DelegatorVote = &DelegatorVote{} + if m.Outcome == nil { + m.Outcome = &ProposalOutcome{} } - if err := m.DelegatorVote.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Outcome.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -9424,7 +11581,7 @@ func (m *DelegatorVoteView_Opaque) Unmarshal(dAtA []byte) error { } return nil } -func (m *DelegatorVotePlan) Unmarshal(dAtA []byte) error { +func (m *ProposalOutcome) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -9447,53 +11604,15 @@ func (m *DelegatorVotePlan) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: DelegatorVotePlan: wiretype end group for non-group") + return fmt.Errorf("proto: ProposalOutcome: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: DelegatorVotePlan: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ProposalOutcome: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Proposal", wireType) - } - m.Proposal = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGovernance - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Proposal |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StartPosition", wireType) - } - m.StartPosition = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGovernance - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.StartPosition |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Vote", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Passed", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -9520,16 +11639,15 @@ func (m *DelegatorVotePlan) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Vote == nil { - m.Vote = &Vote{} - } - if err := m.Vote.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + v := &ProposalOutcome_Passed{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } + m.Outcome = &ProposalOutcome_Passed_{v} iNdEx = postIndex - case 4: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StakedNote", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Failed", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -9556,35 +11674,15 @@ func (m *DelegatorVotePlan) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.StakedNote == nil { - m.StakedNote = &v1alpha15.Note{} - } - if err := m.StakedNote.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + v := &ProposalOutcome_Failed{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } + m.Outcome = &ProposalOutcome_Failed_{v} iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StakedNotePosition", wireType) - } - m.StakedNotePosition = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGovernance - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.StakedNotePosition |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UnbondedAmount", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Slashed", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -9611,52 +11709,67 @@ func (m *DelegatorVotePlan) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.UnbondedAmount == nil { - m.UnbondedAmount = &v1alpha1.Amount{} - } - if err := m.UnbondedAmount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + v := &ProposalOutcome_Slashed{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } + m.Outcome = &ProposalOutcome_Slashed_{v} iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Randomizer", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGovernance - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } + default: + iNdEx = preIndex + skippy, err := skipGovernance(dAtA[iNdEx:]) + if err != nil { + return err } - if byteLen < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGovernance } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthGovernance + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF } - if postIndex > l { + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ProposalOutcome_Withdrawn) 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 ErrIntOverflowGovernance + } + if iNdEx >= l { return io.ErrUnexpectedEOF } - m.Randomizer = append(m.Randomizer[:0], dAtA[iNdEx:postIndex]...) - if m.Randomizer == nil { - m.Randomizer = []byte{} + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break } - iNdEx = postIndex - case 8: + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Withdrawn: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Withdrawn: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ProofBlindingR", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) } - var byteLen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGovernance @@ -9666,60 +11779,74 @@ func (m *DelegatorVotePlan) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthGovernance } - postIndex := iNdEx + byteLen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthGovernance } if postIndex > l { return io.ErrUnexpectedEOF } - m.ProofBlindingR = append(m.ProofBlindingR[:0], dAtA[iNdEx:postIndex]...) - if m.ProofBlindingR == nil { - m.ProofBlindingR = []byte{} - } + m.Reason = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ProofBlindingS", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGovernance - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } + default: + iNdEx = preIndex + skippy, err := skipGovernance(dAtA[iNdEx:]) + if err != nil { + return err } - if byteLen < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGovernance } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthGovernance + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF } - if postIndex > l { + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ProposalOutcome_Passed) 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 ErrIntOverflowGovernance + } + if iNdEx >= l { return io.ErrUnexpectedEOF } - m.ProofBlindingS = append(m.ProofBlindingS[:0], dAtA[iNdEx:postIndex]...) - if m.ProofBlindingS == nil { - m.ProofBlindingS = []byte{} + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break } - iNdEx = postIndex + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Passed: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Passed: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { default: iNdEx = preIndex skippy, err := skipGovernance(dAtA[iNdEx:]) @@ -9741,7 +11868,7 @@ func (m *DelegatorVotePlan) Unmarshal(dAtA []byte) error { } return nil } -func (m *CommunityPoolDeposit) Unmarshal(dAtA []byte) error { +func (m *ProposalOutcome_Failed) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -9764,15 +11891,15 @@ func (m *CommunityPoolDeposit) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: CommunityPoolDeposit: wiretype end group for non-group") + return fmt.Errorf("proto: Failed: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: CommunityPoolDeposit: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Failed: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Withdrawn", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -9799,10 +11926,10 @@ func (m *CommunityPoolDeposit) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Value == nil { - m.Value = &v1alpha13.Value{} + if m.Withdrawn == nil { + m.Withdrawn = &ProposalOutcome_Withdrawn{} } - if err := m.Value.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Withdrawn.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -9827,7 +11954,7 @@ func (m *CommunityPoolDeposit) Unmarshal(dAtA []byte) error { } return nil } -func (m *CommunityPoolSpend) Unmarshal(dAtA []byte) error { +func (m *ProposalOutcome_Slashed) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -9850,15 +11977,15 @@ func (m *CommunityPoolSpend) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: CommunityPoolSpend: wiretype end group for non-group") + return fmt.Errorf("proto: Slashed: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: CommunityPoolSpend: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Slashed: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Withdrawn", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -9885,10 +12012,10 @@ func (m *CommunityPoolSpend) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Value == nil { - m.Value = &v1alpha13.Value{} + if m.Withdrawn == nil { + m.Withdrawn = &ProposalOutcome_Withdrawn{} } - if err := m.Value.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Withdrawn.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -9913,7 +12040,7 @@ func (m *CommunityPoolSpend) Unmarshal(dAtA []byte) error { } return nil } -func (m *CommunityPoolOutput) Unmarshal(dAtA []byte) error { +func (m *Tally) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -9936,17 +12063,17 @@ func (m *CommunityPoolOutput) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: CommunityPoolOutput: wiretype end group for non-group") + return fmt.Errorf("proto: Tally: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: CommunityPoolOutput: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Tally: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Yes", wireType) } - var msglen int + m.Yes = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGovernance @@ -9956,33 +12083,16 @@ func (m *CommunityPoolOutput) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + m.Yes |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return ErrInvalidLengthGovernance - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGovernance - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Value == nil { - m.Value = &v1alpha13.Value{} - } - if err := m.Value.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field No", wireType) } - var msglen int + m.No = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGovernance @@ -9992,28 +12102,30 @@ func (m *CommunityPoolOutput) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + m.No |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return ErrInvalidLengthGovernance - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGovernance - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Address == nil { - m.Address = &v1alpha12.Address{} + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Abstain", wireType) } - if err := m.Address.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + m.Abstain = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGovernance + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Abstain |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } } - iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGovernance(dAtA[iNdEx:]) @@ -10035,7 +12147,7 @@ func (m *CommunityPoolOutput) Unmarshal(dAtA []byte) error { } return nil } -func (m *Vote) Unmarshal(dAtA []byte) error { +func (m *Proposal) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -10058,17 +12170,81 @@ func (m *Vote) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Vote: wiretype end group for non-group") + return fmt.Errorf("proto: Proposal: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Vote: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Proposal: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Title", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGovernance + } + 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 ErrInvalidLengthGovernance + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGovernance + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Title = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGovernance + } + 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 ErrInvalidLengthGovernance + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGovernance + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Description = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Vote", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) } - m.Vote = 0 + m.Id = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGovernance @@ -10078,64 +12254,49 @@ func (m *Vote) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Vote |= Vote_Vote(b&0x7F) << shift + m.Id |= uint64(b&0x7F) << shift if b < 0x80 { break } } - default: - iNdEx = preIndex - skippy, err := skipGovernance(dAtA[iNdEx:]) - if err != nil { - return err + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Signaling", wireType) } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGovernance + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGovernance + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF + if msglen < 0 { + return ErrInvalidLengthGovernance } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ProposalState) 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 ErrIntOverflowGovernance + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGovernance } - if iNdEx >= l { + if postIndex > l { return io.ErrUnexpectedEOF } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + v := &Proposal_Signaling{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ProposalState: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ProposalState: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 2: + m.Payload = &Proposal_Signaling_{v} + iNdEx = postIndex + case 6: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Voting", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Emergency", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -10162,15 +12323,15 @@ func (m *ProposalState) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &ProposalState_Voting{} + v := &Proposal_Emergency{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.State = &ProposalState_Voting_{v} + m.Payload = &Proposal_Emergency_{v} iNdEx = postIndex - case 3: + case 7: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Withdrawn", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ParameterChange", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -10197,15 +12358,15 @@ func (m *ProposalState) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &ProposalState_Withdrawn{} + v := &Proposal_ParameterChange{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.State = &ProposalState_Withdrawn_{v} + m.Payload = &Proposal_ParameterChange_{v} iNdEx = postIndex - case 4: + case 8: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Finished", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field CommunityPoolSpend", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -10232,15 +12393,15 @@ func (m *ProposalState) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &ProposalState_Finished{} + v := &Proposal_CommunityPoolSpend{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.State = &ProposalState_Finished_{v} + m.Payload = &Proposal_CommunityPoolSpend_{v} iNdEx = postIndex - case 5: + case 9: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Claimed", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field UpgradePlan", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -10267,117 +12428,52 @@ func (m *ProposalState) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &ProposalState_Claimed{} + v := &Proposal_UpgradePlan{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.State = &ProposalState_Claimed_{v} + m.Payload = &Proposal_UpgradePlan_{v} iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGovernance(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGovernance - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ProposalState_Voting) 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 ErrIntOverflowGovernance - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FreezeIbcClient", wireType) } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Voting: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Voting: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipGovernance(dAtA[iNdEx:]) - if err != nil { - return err + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGovernance + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if msglen < 0 { return ErrInvalidLengthGovernance } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ProposalState_Withdrawn) 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 ErrIntOverflowGovernance + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGovernance } - if iNdEx >= l { + if postIndex > l { return io.ErrUnexpectedEOF } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + v := &Proposal_FreezeIbcClient{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Withdrawn: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Withdrawn: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + m.Payload = &Proposal_FreezeIbcClient_{v} + iNdEx = postIndex + case 11: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field UnfreezeIbcClient", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGovernance @@ -10387,23 +12483,26 @@ func (m *ProposalState_Withdrawn) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthGovernance } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGovernance } if postIndex > l { return io.ErrUnexpectedEOF } - m.Reason = string(dAtA[iNdEx:postIndex]) + v := &Proposal_UnfreezeIbcClient{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Payload = &Proposal_UnfreezeIbcClient_{v} iNdEx = postIndex default: iNdEx = preIndex @@ -10426,7 +12525,7 @@ func (m *ProposalState_Withdrawn) Unmarshal(dAtA []byte) error { } return nil } -func (m *ProposalState_Finished) Unmarshal(dAtA []byte) error { +func (m *Proposal_Signaling) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -10449,17 +12548,17 @@ func (m *ProposalState_Finished) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Finished: wiretype end group for non-group") + return fmt.Errorf("proto: Signaling: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Finished: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Signaling: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Outcome", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Commit", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGovernance @@ -10469,27 +12568,23 @@ func (m *ProposalState_Finished) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthGovernance } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthGovernance } if postIndex > l { return io.ErrUnexpectedEOF } - if m.Outcome == nil { - m.Outcome = &ProposalOutcome{} - } - if err := m.Outcome.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Commit = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -10512,7 +12607,7 @@ func (m *ProposalState_Finished) Unmarshal(dAtA []byte) error { } return nil } -func (m *ProposalState_Claimed) Unmarshal(dAtA []byte) error { +func (m *Proposal_Emergency) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -10535,17 +12630,17 @@ func (m *ProposalState_Claimed) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Claimed: wiretype end group for non-group") + return fmt.Errorf("proto: Emergency: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Claimed: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Emergency: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Outcome", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HaltChain", wireType) } - var msglen int + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGovernance @@ -10555,28 +12650,12 @@ func (m *ProposalState_Claimed) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return ErrInvalidLengthGovernance - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGovernance - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Outcome == nil { - m.Outcome = &ProposalOutcome{} - } - if err := m.Outcome.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex + m.HaltChain = bool(v != 0) default: iNdEx = preIndex skippy, err := skipGovernance(dAtA[iNdEx:]) @@ -10598,7 +12677,7 @@ func (m *ProposalState_Claimed) Unmarshal(dAtA []byte) error { } return nil } -func (m *ProposalOutcome) Unmarshal(dAtA []byte) error { +func (m *Proposal_ParameterChange) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -10621,15 +12700,15 @@ func (m *ProposalOutcome) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ProposalOutcome: wiretype end group for non-group") + return fmt.Errorf("proto: ParameterChange: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ProposalOutcome: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ParameterChange: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Passed", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field OldParameters", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -10656,15 +12735,16 @@ func (m *ProposalOutcome) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &ProposalOutcome_Passed{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if m.OldParameters == nil { + m.OldParameters = &ChangedAppParameters{} + } + if err := m.OldParameters.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Outcome = &ProposalOutcome_Passed_{v} iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Failed", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field NewParameters", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -10691,46 +12771,12 @@ func (m *ProposalOutcome) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &ProposalOutcome_Failed{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Outcome = &ProposalOutcome_Failed_{v} - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Slashed", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGovernance - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGovernance - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGovernance - } - if postIndex > l { - return io.ErrUnexpectedEOF + if m.NewParameters == nil { + m.NewParameters = &ChangedAppParameters{} } - v := &ProposalOutcome_Slashed{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.NewParameters.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Outcome = &ProposalOutcome_Slashed_{v} iNdEx = postIndex default: iNdEx = preIndex @@ -10753,7 +12799,7 @@ func (m *ProposalOutcome) Unmarshal(dAtA []byte) error { } return nil } -func (m *ProposalOutcome_Withdrawn) Unmarshal(dAtA []byte) error { +func (m *Proposal_CommunityPoolSpend) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -10776,17 +12822,17 @@ func (m *ProposalOutcome_Withdrawn) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Withdrawn: wiretype end group for non-group") + return fmt.Errorf("proto: CommunityPoolSpend: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Withdrawn: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: CommunityPoolSpend: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TransactionPlan", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGovernance @@ -10796,23 +12842,27 @@ func (m *ProposalOutcome_Withdrawn) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthGovernance } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGovernance } if postIndex > l { return io.ErrUnexpectedEOF } - m.Reason = string(dAtA[iNdEx:postIndex]) + if m.TransactionPlan == nil { + m.TransactionPlan = &types.Any{} + } + if err := m.TransactionPlan.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex default: iNdEx = preIndex @@ -10835,7 +12885,7 @@ func (m *ProposalOutcome_Withdrawn) Unmarshal(dAtA []byte) error { } return nil } -func (m *ProposalOutcome_Passed) Unmarshal(dAtA []byte) error { +func (m *Proposal_UpgradePlan) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -10858,12 +12908,31 @@ func (m *ProposalOutcome_Passed) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Passed: wiretype end group for non-group") + return fmt.Errorf("proto: UpgradePlan: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Passed: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: UpgradePlan: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) + } + m.Height = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGovernance + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Height |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipGovernance(dAtA[iNdEx:]) @@ -10885,7 +12954,7 @@ func (m *ProposalOutcome_Passed) Unmarshal(dAtA []byte) error { } return nil } -func (m *ProposalOutcome_Failed) Unmarshal(dAtA []byte) error { +func (m *Proposal_FreezeIbcClient) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -10908,17 +12977,17 @@ func (m *ProposalOutcome_Failed) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Failed: wiretype end group for non-group") + return fmt.Errorf("proto: FreezeIbcClient: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Failed: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: FreezeIbcClient: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Withdrawn", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ClientId", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGovernance @@ -10928,27 +12997,23 @@ func (m *ProposalOutcome_Failed) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthGovernance } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthGovernance } if postIndex > l { return io.ErrUnexpectedEOF } - if m.Withdrawn == nil { - m.Withdrawn = &ProposalOutcome_Withdrawn{} - } - if err := m.Withdrawn.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.ClientId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -10971,7 +13036,7 @@ func (m *ProposalOutcome_Failed) Unmarshal(dAtA []byte) error { } return nil } -func (m *ProposalOutcome_Slashed) Unmarshal(dAtA []byte) error { +func (m *Proposal_UnfreezeIbcClient) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -10994,17 +13059,17 @@ func (m *ProposalOutcome_Slashed) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Slashed: wiretype end group for non-group") + return fmt.Errorf("proto: UnfreezeIbcClient: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Slashed: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: UnfreezeIbcClient: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Withdrawn", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ClientId", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGovernance @@ -11014,28 +13079,93 @@ func (m *ProposalOutcome_Slashed) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthGovernance } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthGovernance } if postIndex > l { return io.ErrUnexpectedEOF } - if m.Withdrawn == nil { - m.Withdrawn = &ProposalOutcome_Withdrawn{} - } - if err := m.Withdrawn.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.ClientId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGovernance(dAtA[iNdEx:]) + if err != nil { return err } - iNdEx = postIndex + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGovernance + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ProposalInfoRequest) 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 ErrIntOverflowGovernance + } + 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: ProposalInfoRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ProposalInfoRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ProposalId", wireType) + } + m.ProposalId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGovernance + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ProposalId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipGovernance(dAtA[iNdEx:]) @@ -11057,7 +13187,7 @@ func (m *ProposalOutcome_Slashed) Unmarshal(dAtA []byte) error { } return nil } -func (m *Tally) Unmarshal(dAtA []byte) error { +func (m *ProposalInfoResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -11080,17 +13210,17 @@ func (m *Tally) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Tally: wiretype end group for non-group") + return fmt.Errorf("proto: ProposalInfoResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Tally: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ProposalInfoResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Yes", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field StartBlockHeight", wireType) } - m.Yes = 0 + m.StartBlockHeight = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGovernance @@ -11100,35 +13230,16 @@ func (m *Tally) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Yes |= uint64(b&0x7F) << shift + m.StartBlockHeight |= uint64(b&0x7F) << shift if b < 0x80 { break } } case 2: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field No", wireType) - } - m.No = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGovernance - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.No |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Abstain", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field StartPosition", wireType) } - m.Abstain = 0 + m.StartPosition = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGovernance @@ -11138,7 +13249,7 @@ func (m *Tally) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Abstain |= uint64(b&0x7F) << shift + m.StartPosition |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11164,7 +13275,7 @@ func (m *Tally) Unmarshal(dAtA []byte) error { } return nil } -func (m *Proposal) Unmarshal(dAtA []byte) error { +func (m *ProposalDataRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -11187,100 +13298,17 @@ func (m *Proposal) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Proposal: wiretype end group for non-group") + return fmt.Errorf("proto: ProposalDataRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Proposal: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ProposalDataRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Title", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGovernance - } - 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 ErrInvalidLengthGovernance - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGovernance - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Title = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGovernance - } - 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 ErrInvalidLengthGovernance - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGovernance - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Description = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - m.Id = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGovernance - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Id |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Signaling", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ProposalId", wireType) } - var msglen int + m.ProposalId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGovernance @@ -11290,103 +13318,64 @@ func (m *Proposal) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + m.ProposalId |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return ErrInvalidLengthGovernance - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGovernance - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Signaling == nil { - m.Signaling = &Proposal_Signaling{} - } - if err := m.Signaling.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + default: + iNdEx = preIndex + skippy, err := skipGovernance(dAtA[iNdEx:]) + if err != nil { return err } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Emergency", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGovernance - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGovernance - } - postIndex := iNdEx + msglen - if postIndex < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGovernance } - if postIndex > l { + if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - if m.Emergency == nil { - m.Emergency = &Proposal_Emergency{} - } - if err := m.Emergency.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ParameterChange", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGovernance - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGovernance - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGovernance + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ProposalDataResponse) 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 ErrIntOverflowGovernance } - if postIndex > l { + if iNdEx >= l { return io.ErrUnexpectedEOF } - if m.ParameterChange == nil { - m.ParameterChange = &Proposal_ParameterChange{} - } - if err := m.ParameterChange.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break } - iNdEx = postIndex - case 8: + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ProposalDataResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ProposalDataResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CommunityPoolSpend", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Proposal", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -11413,18 +13402,18 @@ func (m *Proposal) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.CommunityPoolSpend == nil { - m.CommunityPoolSpend = &Proposal_CommunityPoolSpend{} + if m.Proposal == nil { + m.Proposal = &Proposal{} } - if err := m.CommunityPoolSpend.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Proposal.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UpgradePlan", wireType) + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field StartBlockHeight", wireType) } - var msglen int + m.StartBlockHeight = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGovernance @@ -11434,31 +13423,52 @@ func (m *Proposal) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + m.StartBlockHeight |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return ErrInvalidLengthGovernance - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGovernance + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EndBlockHeight", wireType) } - if postIndex > l { - return io.ErrUnexpectedEOF + m.EndBlockHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGovernance + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.EndBlockHeight |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } } - if m.UpgradePlan == nil { - m.UpgradePlan = &Proposal_UpgradePlan{} + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field StartPosition", wireType) } - if err := m.UpgradePlan.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + m.StartPosition = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGovernance + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.StartPosition |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } } - iNdEx = postIndex - case 10: + case 5: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FreezeIbcClient", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -11485,16 +13495,16 @@ func (m *Proposal) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.FreezeIbcClient == nil { - m.FreezeIbcClient = &Proposal_FreezeIbcClient{} + if m.State == nil { + m.State = &ProposalState{} } - if err := m.FreezeIbcClient.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 11: + case 6: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UnfreezeIbcClient", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ProposalDepositAmount", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -11521,10 +13531,10 @@ func (m *Proposal) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.UnfreezeIbcClient == nil { - m.UnfreezeIbcClient = &Proposal_UnfreezeIbcClient{} + if m.ProposalDepositAmount == nil { + m.ProposalDepositAmount = &v1.Amount{} } - if err := m.UnfreezeIbcClient.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.ProposalDepositAmount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -11549,7 +13559,7 @@ func (m *Proposal) Unmarshal(dAtA []byte) error { } return nil } -func (m *Proposal_Signaling) Unmarshal(dAtA []byte) error { +func (m *ProposalRateDataRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -11572,17 +13582,86 @@ func (m *Proposal_Signaling) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Signaling: wiretype end group for non-group") + return fmt.Errorf("proto: ProposalRateDataRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Signaling: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ProposalRateDataRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ProposalId", wireType) + } + m.ProposalId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGovernance + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ProposalId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipGovernance(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGovernance + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ProposalRateDataResponse) 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 ErrIntOverflowGovernance + } + 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: ProposalRateDataResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ProposalRateDataResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Commit", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field RateData", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGovernance @@ -11592,23 +13671,27 @@ func (m *Proposal_Signaling) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthGovernance } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGovernance } if postIndex > l { return io.ErrUnexpectedEOF } - m.Commit = string(dAtA[iNdEx:postIndex]) + if m.RateData == nil { + m.RateData = &v16.RateData{} + } + if err := m.RateData.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex default: iNdEx = preIndex @@ -11631,7 +13714,7 @@ func (m *Proposal_Signaling) Unmarshal(dAtA []byte) error { } return nil } -func (m *Proposal_Emergency) Unmarshal(dAtA []byte) error { +func (m *ProposalListRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -11654,15 +13737,15 @@ func (m *Proposal_Emergency) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Emergency: wiretype end group for non-group") + return fmt.Errorf("proto: ProposalListRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Emergency: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ProposalListRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: + case 2: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field HaltChain", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Inactive", wireType) } var v int for shift := uint(0); ; shift += 7 { @@ -11679,7 +13762,7 @@ func (m *Proposal_Emergency) Unmarshal(dAtA []byte) error { break } } - m.HaltChain = bool(v != 0) + m.Inactive = bool(v != 0) default: iNdEx = preIndex skippy, err := skipGovernance(dAtA[iNdEx:]) @@ -11701,7 +13784,7 @@ func (m *Proposal_Emergency) Unmarshal(dAtA []byte) error { } return nil } -func (m *Proposal_ParameterChange) Unmarshal(dAtA []byte) error { +func (m *ProposalListResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -11724,15 +13807,15 @@ func (m *Proposal_ParameterChange) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ParameterChange: wiretype end group for non-group") + return fmt.Errorf("proto: ProposalListResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ParameterChange: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ProposalListResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field OldParameters", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Proposal", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -11744,31 +13827,88 @@ func (m *Proposal_ParameterChange) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGovernance + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGovernance + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Proposal == nil { + m.Proposal = &Proposal{} + } + if err := m.Proposal.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field StartBlockHeight", wireType) + } + m.StartBlockHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGovernance + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.StartBlockHeight |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EndBlockHeight", wireType) + } + m.EndBlockHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGovernance + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.EndBlockHeight |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field StartPosition", wireType) + } + m.StartPosition = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGovernance + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.StartPosition |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return ErrInvalidLengthGovernance - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGovernance - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.OldParameters == nil { - m.OldParameters = &ChangedAppParameters{} - } - if err := m.OldParameters.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: + case 5: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NewParameters", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -11795,10 +13935,10 @@ func (m *Proposal_ParameterChange) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.NewParameters == nil { - m.NewParameters = &ChangedAppParameters{} + if m.State == nil { + m.State = &ProposalState{} } - if err := m.NewParameters.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -11823,7 +13963,7 @@ func (m *Proposal_ParameterChange) Unmarshal(dAtA []byte) error { } return nil } -func (m *Proposal_CommunityPoolSpend) Unmarshal(dAtA []byte) error { +func (m *ValidatorVotesRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -11846,17 +13986,17 @@ func (m *Proposal_CommunityPoolSpend) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: CommunityPoolSpend: wiretype end group for non-group") + return fmt.Errorf("proto: ValidatorVotesRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: CommunityPoolSpend: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ValidatorVotesRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TransactionPlan", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ProposalId", wireType) } - var msglen int + m.ProposalId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGovernance @@ -11866,28 +14006,11 @@ func (m *Proposal_CommunityPoolSpend) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + m.ProposalId |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return ErrInvalidLengthGovernance - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGovernance - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.TransactionPlan == nil { - m.TransactionPlan = &types.Any{} - } - if err := m.TransactionPlan.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGovernance(dAtA[iNdEx:]) @@ -11909,7 +14032,7 @@ func (m *Proposal_CommunityPoolSpend) Unmarshal(dAtA []byte) error { } return nil } -func (m *Proposal_UpgradePlan) Unmarshal(dAtA []byte) error { +func (m *ValidatorVotesResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -11932,17 +14055,17 @@ func (m *Proposal_UpgradePlan) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: UpgradePlan: wiretype end group for non-group") + return fmt.Errorf("proto: ValidatorVotesResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: UpgradePlan: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ValidatorVotesResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Vote", wireType) } - m.Height = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGovernance @@ -11952,66 +14075,33 @@ func (m *Proposal_UpgradePlan) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Height |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - default: - iNdEx = preIndex - skippy, err := skipGovernance(dAtA[iNdEx:]) - if err != nil { - return err + if msglen < 0 { + return ErrInvalidLengthGovernance } - if (skippy < 0) || (iNdEx+skippy) < 0 { + postIndex := iNdEx + msglen + if postIndex < 0 { return ErrInvalidLengthGovernance } - if (iNdEx + skippy) > l { + if postIndex > l { return io.ErrUnexpectedEOF } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Proposal_FreezeIbcClient) 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 ErrIntOverflowGovernance - } - if iNdEx >= l { - return io.ErrUnexpectedEOF + if m.Vote == nil { + m.Vote = &Vote{} } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + if err := m.Vote.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: FreezeIbcClient: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: FreezeIbcClient: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + iNdEx = postIndex + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClientId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field IdentityKey", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGovernance @@ -12021,23 +14111,27 @@ func (m *Proposal_FreezeIbcClient) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthGovernance } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGovernance } if postIndex > l { return io.ErrUnexpectedEOF } - m.ClientId = string(dAtA[iNdEx:postIndex]) + if m.IdentityKey == nil { + m.IdentityKey = &v12.IdentityKey{} + } + if err := m.IdentityKey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex default: iNdEx = preIndex @@ -12060,7 +14154,7 @@ func (m *Proposal_FreezeIbcClient) Unmarshal(dAtA []byte) error { } return nil } -func (m *Proposal_UnfreezeIbcClient) Unmarshal(dAtA []byte) error { +func (m *GovernanceParameters) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -12083,17 +14177,36 @@ func (m *Proposal_UnfreezeIbcClient) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: UnfreezeIbcClient: wiretype end group for non-group") + return fmt.Errorf("proto: GovernanceParameters: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: UnfreezeIbcClient: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GovernanceParameters: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ProposalVotingBlocks", wireType) + } + m.ProposalVotingBlocks = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGovernance + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ProposalVotingBlocks |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClientId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ProposalDepositAmount", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGovernance @@ -12103,77 +14216,63 @@ func (m *Proposal_UnfreezeIbcClient) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthGovernance } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGovernance } if postIndex > l { return io.ErrUnexpectedEOF } - m.ClientId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGovernance(dAtA[iNdEx:]) - if err != nil { - return err + if m.ProposalDepositAmount == nil { + m.ProposalDepositAmount = &v1.Amount{} } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGovernance + if err := m.ProposalDepositAmount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ProposalValidQuorum", wireType) } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ProposalInfoRequest) 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 ErrIntOverflowGovernance + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGovernance + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } } - if iNdEx >= l { - return io.ErrUnexpectedEOF + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGovernance } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGovernance } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ProposalInfoRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ProposalInfoRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ProposalValidQuorum = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ProposalPassThreshold", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -12201,13 +14300,13 @@ func (m *ProposalInfoRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ChainId = string(dAtA[iNdEx:postIndex]) + m.ProposalPassThreshold = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ProposalId", wireType) + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ProposalSlashThreshold", wireType) } - m.ProposalId = 0 + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGovernance @@ -12217,11 +14316,24 @@ func (m *ProposalInfoRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ProposalId |= uint64(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGovernance + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGovernance + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ProposalSlashThreshold = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGovernance(dAtA[iNdEx:]) @@ -12243,7 +14355,7 @@ func (m *ProposalInfoRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *ProposalInfoResponse) Unmarshal(dAtA []byte) error { +func (m *GenesisContent) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -12266,17 +14378,17 @@ func (m *ProposalInfoResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ProposalInfoResponse: wiretype end group for non-group") + return fmt.Errorf("proto: GenesisContent: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ProposalInfoResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GenesisContent: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StartBlockHeight", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field GovernanceParams", wireType) } - m.StartBlockHeight = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGovernance @@ -12286,30 +14398,28 @@ func (m *ProposalInfoResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartBlockHeight |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StartPosition", wireType) + if msglen < 0 { + return ErrInvalidLengthGovernance } - m.StartPosition = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGovernance - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.StartPosition |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGovernance + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.GovernanceParams == nil { + m.GovernanceParams = &GovernanceParameters{} + } + if err := m.GovernanceParams.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGovernance(dAtA[iNdEx:]) @@ -12331,7 +14441,7 @@ func (m *ProposalInfoResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *ProposalDataRequest) Unmarshal(dAtA []byte) error { +func (m *ChangedAppParameters) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -12354,17 +14464,17 @@ func (m *ProposalDataRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ProposalDataRequest: wiretype end group for non-group") + return fmt.Errorf("proto: ChangedAppParameters: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ProposalDataRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ChangedAppParameters: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field SctParams", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGovernance @@ -12374,29 +14484,33 @@ func (m *ProposalDataRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthGovernance } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGovernance } if postIndex > l { return io.ErrUnexpectedEOF } - m.ChainId = string(dAtA[iNdEx:postIndex]) + if m.SctParams == nil { + m.SctParams = &v14.SctParameters{} + } + if err := m.SctParams.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ProposalId", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommunityPoolParams", wireType) } - m.ProposalId = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGovernance @@ -12406,64 +14520,31 @@ func (m *ProposalDataRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ProposalId |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - default: - iNdEx = preIndex - skippy, err := skipGovernance(dAtA[iNdEx:]) - if err != nil { - return err + if msglen < 0 { + return ErrInvalidLengthGovernance } - if (skippy < 0) || (iNdEx+skippy) < 0 { + postIndex := iNdEx + msglen + if postIndex < 0 { return ErrInvalidLengthGovernance } - if (iNdEx + skippy) > l { + if postIndex > l { return io.ErrUnexpectedEOF } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ProposalDataResponse) 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 ErrIntOverflowGovernance - } - if iNdEx >= l { - return io.ErrUnexpectedEOF + if m.CommunityPoolParams == nil { + m.CommunityPoolParams = &v17.CommunityPoolParameters{} } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + if err := m.CommunityPoolParams.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ProposalDataResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ProposalDataResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + iNdEx = postIndex + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Proposal", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field GovernanceParams", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -12490,18 +14571,18 @@ func (m *ProposalDataResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Proposal == nil { - m.Proposal = &Proposal{} + if m.GovernanceParams == nil { + m.GovernanceParams = &GovernanceParameters{} } - if err := m.Proposal.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.GovernanceParams.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StartBlockHeight", wireType) + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IbcParams", wireType) } - m.StartBlockHeight = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGovernance @@ -12511,52 +14592,31 @@ func (m *ProposalDataResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartBlockHeight |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field EndBlockHeight", wireType) + if msglen < 0 { + return ErrInvalidLengthGovernance } - m.EndBlockHeight = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGovernance - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.EndBlockHeight |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGovernance } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StartPosition", wireType) + if postIndex > l { + return io.ErrUnexpectedEOF } - m.StartPosition = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGovernance - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.StartPosition |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } + if m.IbcParams == nil { + m.IbcParams = &v18.IbcParameters{} + } + if err := m.IbcParams.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } + iNdEx = postIndex case 5: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field StakeParams", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -12583,16 +14643,16 @@ func (m *ProposalDataResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.State == nil { - m.State = &ProposalState{} + if m.StakeParams == nil { + m.StakeParams = &v16.StakeParameters{} } - if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.StakeParams.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 6: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ProposalDepositAmount", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field FeeParams", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -12619,68 +14679,54 @@ func (m *ProposalDataResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.ProposalDepositAmount == nil { - m.ProposalDepositAmount = &v1alpha1.Amount{} + if m.FeeParams == nil { + m.FeeParams = &v19.FeeParameters{} } - if err := m.ProposalDepositAmount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.FeeParams.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGovernance(dAtA[iNdEx:]) - if err != nil { - return err + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DistributionsParams", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGovernance + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if msglen < 0 { return ErrInvalidLengthGovernance } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ProposalRateDataRequest) 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 ErrIntOverflowGovernance + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGovernance } - if iNdEx >= l { + if postIndex > l { return io.ErrUnexpectedEOF } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + if m.DistributionsParams == nil { + m.DistributionsParams = &v110.DistributionsParameters{} } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ProposalRateDataRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ProposalRateDataRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + if err := m.DistributionsParams.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field FundingParams", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGovernance @@ -12690,29 +14736,33 @@ func (m *ProposalRateDataRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthGovernance } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGovernance } if postIndex > l { return io.ErrUnexpectedEOF } - m.ChainId = string(dAtA[iNdEx:postIndex]) + if m.FundingParams == nil { + m.FundingParams = &v111.FundingParameters{} + } + if err := m.FundingParams.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ProposalId", wireType) + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ShieldedPoolParams", wireType) } - m.ProposalId = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGovernance @@ -12722,64 +14772,31 @@ func (m *ProposalRateDataRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ProposalId |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - default: - iNdEx = preIndex - skippy, err := skipGovernance(dAtA[iNdEx:]) - if err != nil { - return err + if msglen < 0 { + return ErrInvalidLengthGovernance } - if (skippy < 0) || (iNdEx+skippy) < 0 { + postIndex := iNdEx + msglen + if postIndex < 0 { return ErrInvalidLengthGovernance } - if (iNdEx + skippy) > l { + if postIndex > l { return io.ErrUnexpectedEOF } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ProposalRateDataResponse) 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 ErrIntOverflowGovernance - } - if iNdEx >= l { - return io.ErrUnexpectedEOF + if m.ShieldedPoolParams == nil { + m.ShieldedPoolParams = &v15.ShieldedPoolParameters{} } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + if err := m.ShieldedPoolParams.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ProposalRateDataResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ProposalRateDataResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + iNdEx = postIndex + case 10: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RateData", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field DexParams", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -12806,10 +14823,10 @@ func (m *ProposalRateDataResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.RateData == nil { - m.RateData = &v1alpha16.RateData{} + if m.DexParams == nil { + m.DexParams = &v112.DexParameters{} } - if err := m.RateData.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.DexParams.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -12834,7 +14851,7 @@ func (m *ProposalRateDataResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *ProposalListRequest) Unmarshal(dAtA []byte) error { +func (m *ChangedAppParametersSet) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -12857,17 +14874,17 @@ func (m *ProposalListRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ProposalListRequest: wiretype end group for non-group") + return fmt.Errorf("proto: ChangedAppParametersSet: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ProposalListRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ChangedAppParametersSet: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Old", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGovernance @@ -12877,29 +14894,33 @@ func (m *ProposalListRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthGovernance } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGovernance } if postIndex > l { return io.ErrUnexpectedEOF } - m.ChainId = string(dAtA[iNdEx:postIndex]) + if m.Old == nil { + m.Old = &ChangedAppParameters{} + } + if err := m.Old.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Inactive", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field New", wireType) } - var v int + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGovernance @@ -12909,12 +14930,28 @@ func (m *ProposalListRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - m.Inactive = bool(v != 0) + if msglen < 0 { + return ErrInvalidLengthGovernance + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGovernance + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.New == nil { + m.New = &ChangedAppParameters{} + } + if err := m.New.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGovernance(dAtA[iNdEx:]) @@ -12936,7 +14973,7 @@ func (m *ProposalListRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *ProposalListResponse) Unmarshal(dAtA []byte) error { +func (m *VotingPowerAtProposalStartRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -12959,91 +14996,17 @@ func (m *ProposalListResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ProposalListResponse: wiretype end group for non-group") + return fmt.Errorf("proto: VotingPowerAtProposalStartRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ProposalListResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: VotingPowerAtProposalStartRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Proposal", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGovernance - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGovernance - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGovernance - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Proposal == nil { - m.Proposal = &Proposal{} - } - if err := m.Proposal.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StartBlockHeight", wireType) - } - m.StartBlockHeight = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGovernance - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.StartBlockHeight |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field EndBlockHeight", wireType) - } - m.EndBlockHeight = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGovernance - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.EndBlockHeight |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: + case 2: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StartPosition", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ProposalId", wireType) } - m.StartPosition = 0 + m.ProposalId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGovernance @@ -13053,14 +15016,14 @@ func (m *ProposalListResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartPosition |= uint64(b&0x7F) << shift + m.ProposalId |= uint64(b&0x7F) << shift if b < 0x80 { break } } - case 5: + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field IdentityKey", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -13087,10 +15050,10 @@ func (m *ProposalListResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.State == nil { - m.State = &ProposalState{} + if m.IdentityKey == nil { + m.IdentityKey = &v12.IdentityKey{} } - if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.IdentityKey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -13115,7 +15078,7 @@ func (m *ProposalListResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *ValidatorVotesRequest) Unmarshal(dAtA []byte) error { +func (m *VotingPowerAtProposalStartResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -13138,17 +15101,17 @@ func (m *ValidatorVotesRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ValidatorVotesRequest: wiretype end group for non-group") + return fmt.Errorf("proto: VotingPowerAtProposalStartResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ValidatorVotesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: VotingPowerAtProposalStartResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field VotingPower", wireType) } - var stringLen uint64 + m.VotingPower = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGovernance @@ -13158,24 +15121,61 @@ func (m *ValidatorVotesRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + m.VotingPower |= uint64(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGovernance + default: + iNdEx = preIndex + skippy, err := skipGovernance(dAtA[iNdEx:]) + if err != nil { + return err } - postIndex := iNdEx + intStringLen - if postIndex < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGovernance } - if postIndex > l { + if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.ChainId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AllTalliedDelegatorVotesForProposalRequest) 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 ErrIntOverflowGovernance + } + 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: AllTalliedDelegatorVotesForProposalRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AllTalliedDelegatorVotesForProposalRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { case 2: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field ProposalId", wireType) @@ -13216,7 +15216,7 @@ func (m *ValidatorVotesRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *ValidatorVotesResponse) Unmarshal(dAtA []byte) error { +func (m *AllTalliedDelegatorVotesForProposalResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -13239,15 +15239,15 @@ func (m *ValidatorVotesResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ValidatorVotesResponse: wiretype end group for non-group") + return fmt.Errorf("proto: AllTalliedDelegatorVotesForProposalResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ValidatorVotesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: AllTalliedDelegatorVotesForProposalResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Vote", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Tally", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -13274,10 +15274,10 @@ func (m *ValidatorVotesResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Vote == nil { - m.Vote = &Vote{} + if m.Tally == nil { + m.Tally = &Tally{} } - if err := m.Vote.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Tally.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -13311,7 +15311,7 @@ func (m *ValidatorVotesResponse) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.IdentityKey == nil { - m.IdentityKey = &v1alpha12.IdentityKey{} + m.IdentityKey = &v12.IdentityKey{} } if err := m.IdentityKey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -13338,7 +15338,7 @@ func (m *ValidatorVotesResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *GovernanceParameters) Unmarshal(dAtA []byte) error { +func (m *NextProposalIdRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -13355,169 +15355,18 @@ func (m *GovernanceParameters) Unmarshal(dAtA []byte) error { 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: GovernanceParameters: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GovernanceParameters: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ProposalVotingBlocks", wireType) - } - m.ProposalVotingBlocks = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGovernance - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ProposalVotingBlocks |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ProposalDepositAmount", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGovernance - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGovernance - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGovernance - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ProposalDepositAmount == nil { - m.ProposalDepositAmount = &v1alpha1.Amount{} - } - if err := m.ProposalDepositAmount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ProposalValidQuorum", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGovernance - } - 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 ErrInvalidLengthGovernance - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGovernance - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ProposalValidQuorum = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ProposalPassThreshold", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGovernance - } - 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 ErrInvalidLengthGovernance - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGovernance - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ProposalPassThreshold = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ProposalSlashThreshold", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGovernance - } - 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 ErrInvalidLengthGovernance - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGovernance - } - if postIndex > l { - return io.ErrUnexpectedEOF + break } - m.ProposalSlashThreshold = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: NextProposalIdRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NextProposalIdRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { default: iNdEx = preIndex skippy, err := skipGovernance(dAtA[iNdEx:]) @@ -13539,7 +15388,7 @@ func (m *GovernanceParameters) Unmarshal(dAtA []byte) error { } return nil } -func (m *GenesisContent) Unmarshal(dAtA []byte) error { +func (m *NextProposalIdResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -13562,17 +15411,17 @@ func (m *GenesisContent) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GenesisContent: wiretype end group for non-group") + return fmt.Errorf("proto: NextProposalIdResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GenesisContent: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: NextProposalIdResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GovernanceParams", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NextProposalId", wireType) } - var msglen int + m.NextProposalId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGovernance @@ -13582,28 +15431,11 @@ func (m *GenesisContent) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + m.NextProposalId |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return ErrInvalidLengthGovernance - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGovernance - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.GovernanceParams == nil { - m.GovernanceParams = &GovernanceParameters{} - } - if err := m.GovernanceParams.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGovernance(dAtA[iNdEx:]) @@ -13625,7 +15457,7 @@ func (m *GenesisContent) Unmarshal(dAtA []byte) error { } return nil } -func (m *ChangedAppParameters) Unmarshal(dAtA []byte) error { +func (m *Ratio) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -13648,17 +15480,17 @@ func (m *ChangedAppParameters) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ChangedAppParameters: wiretype end group for non-group") + return fmt.Errorf("proto: Ratio: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ChangedAppParameters: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Ratio: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ChainParams", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Numerator", wireType) } - var msglen int + m.Numerator = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGovernance @@ -13668,105 +15500,16 @@ func (m *ChangedAppParameters) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + m.Numerator |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return ErrInvalidLengthGovernance - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGovernance - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ChainParams == nil { - m.ChainParams = &v1alpha17.ChainParameters{} - } - if err := m.ChainParams.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CommunityPoolParams", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGovernance - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGovernance - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGovernance - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.CommunityPoolParams == nil { - m.CommunityPoolParams = &v1alpha18.CommunityPoolParameters{} - } - if err := m.CommunityPoolParams.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GovernanceParams", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGovernance - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGovernance - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGovernance - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.GovernanceParams == nil { - m.GovernanceParams = &GovernanceParameters{} - } - if err := m.GovernanceParams.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field IbcParams", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Denominator", wireType) } - var msglen int + m.Denominator = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGovernance @@ -13776,103 +15519,64 @@ func (m *ChangedAppParameters) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + m.Denominator |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return ErrInvalidLengthGovernance - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGovernance - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.IbcParams == nil { - m.IbcParams = &v1alpha19.IbcParameters{} - } - if err := m.IbcParams.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + default: + iNdEx = preIndex + skippy, err := skipGovernance(dAtA[iNdEx:]) + if err != nil { return err } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StakeParams", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGovernance - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGovernance - } - postIndex := iNdEx + msglen - if postIndex < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGovernance } - if postIndex > l { + if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - if m.StakeParams == nil { - m.StakeParams = &v1alpha16.StakeParameters{} - } - if err := m.StakeParams.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FeeParams", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGovernance - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGovernance - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGovernance + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *EventDelegatorVote) 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 ErrIntOverflowGovernance } - if postIndex > l { + if iNdEx >= l { return io.ErrUnexpectedEOF } - if m.FeeParams == nil { - m.FeeParams = &v1alpha110.FeeParameters{} - } - if err := m.FeeParams.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break } - iNdEx = postIndex - case 7: + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: EventDelegatorVote: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EventDelegatorVote: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DistributionsParams", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Vote", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -13899,10 +15603,10 @@ func (m *ChangedAppParameters) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.DistributionsParams == nil { - m.DistributionsParams = &v1alpha111.DistributionsParameters{} + if m.Vote == nil { + m.Vote = &DelegatorVote{} } - if err := m.DistributionsParams.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Vote.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -13927,7 +15631,7 @@ func (m *ChangedAppParameters) Unmarshal(dAtA []byte) error { } return nil } -func (m *ChangedAppParametersSet) Unmarshal(dAtA []byte) error { +func (m *EventProposalDepositClaim) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -13950,51 +15654,15 @@ func (m *ChangedAppParametersSet) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ChangedAppParametersSet: wiretype end group for non-group") + return fmt.Errorf("proto: EventProposalDepositClaim: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ChangedAppParametersSet: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: EventProposalDepositClaim: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Old", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGovernance - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGovernance - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGovernance - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Old == nil { - m.Old = &ChangedAppParameters{} - } - if err := m.Old.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field New", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field DepositClaim", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -14021,10 +15689,10 @@ func (m *ChangedAppParametersSet) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.New == nil { - m.New = &ChangedAppParameters{} + if m.DepositClaim == nil { + m.DepositClaim = &ProposalDepositClaim{} } - if err := m.New.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.DepositClaim.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -14049,7 +15717,7 @@ func (m *ChangedAppParametersSet) Unmarshal(dAtA []byte) error { } return nil } -func (m *VotingPowerAtProposalStartRequest) Unmarshal(dAtA []byte) error { +func (m *EventValidatorVote) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -14072,66 +15740,15 @@ func (m *VotingPowerAtProposalStartRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: VotingPowerAtProposalStartRequest: wiretype end group for non-group") + return fmt.Errorf("proto: EventValidatorVote: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: VotingPowerAtProposalStartRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: EventValidatorVote: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGovernance - } - 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 ErrInvalidLengthGovernance - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGovernance - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ChainId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ProposalId", wireType) - } - m.ProposalId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGovernance - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ProposalId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field IdentityKey", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Vote", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -14158,10 +15775,10 @@ func (m *VotingPowerAtProposalStartRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.IdentityKey == nil { - m.IdentityKey = &v1alpha12.IdentityKey{} + if m.Vote == nil { + m.Vote = &ValidatorVote{} } - if err := m.IdentityKey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Vote.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -14186,7 +15803,7 @@ func (m *VotingPowerAtProposalStartRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *VotingPowerAtProposalStartResponse) Unmarshal(dAtA []byte) error { +func (m *EventProposalWithdraw) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -14209,17 +15826,17 @@ func (m *VotingPowerAtProposalStartResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: VotingPowerAtProposalStartResponse: wiretype end group for non-group") + return fmt.Errorf("proto: EventProposalWithdraw: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: VotingPowerAtProposalStartResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: EventProposalWithdraw: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field VotingPower", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Withdraw", wireType) } - m.VotingPower = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGovernance @@ -14229,11 +15846,28 @@ func (m *VotingPowerAtProposalStartResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.VotingPower |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } + if msglen < 0 { + return ErrInvalidLengthGovernance + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGovernance + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Withdraw == nil { + m.Withdraw = &ProposalWithdraw{} + } + if err := m.Withdraw.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGovernance(dAtA[iNdEx:]) @@ -14255,7 +15889,7 @@ func (m *VotingPowerAtProposalStartResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *AllTalliedDelegatorVotesForProposalRequest) Unmarshal(dAtA []byte) error { +func (m *EventProposalSubmit) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -14278,17 +15912,17 @@ func (m *AllTalliedDelegatorVotesForProposalRequest) Unmarshal(dAtA []byte) erro fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: AllTalliedDelegatorVotesForProposalRequest: wiretype end group for non-group") + return fmt.Errorf("proto: EventProposalSubmit: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: AllTalliedDelegatorVotesForProposalRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: EventProposalSubmit: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Submit", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGovernance @@ -14298,43 +15932,28 @@ func (m *AllTalliedDelegatorVotesForProposalRequest) Unmarshal(dAtA []byte) erro } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthGovernance } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGovernance } if postIndex > l { return io.ErrUnexpectedEOF } - m.ChainId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ProposalId", wireType) + if m.Submit == nil { + m.Submit = &ProposalSubmit{} } - m.ProposalId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGovernance - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ProposalId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } + if err := m.Submit.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGovernance(dAtA[iNdEx:]) @@ -14356,7 +15975,7 @@ func (m *AllTalliedDelegatorVotesForProposalRequest) Unmarshal(dAtA []byte) erro } return nil } -func (m *AllTalliedDelegatorVotesForProposalResponse) Unmarshal(dAtA []byte) error { +func (m *EventEnactProposal) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -14379,51 +15998,15 @@ func (m *AllTalliedDelegatorVotesForProposalResponse) Unmarshal(dAtA []byte) err fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: AllTalliedDelegatorVotesForProposalResponse: wiretype end group for non-group") + return fmt.Errorf("proto: EventEnactProposal: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: AllTalliedDelegatorVotesForProposalResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: EventEnactProposal: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Tally", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGovernance - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGovernance - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGovernance - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Tally == nil { - m.Tally = &Tally{} - } - if err := m.Tally.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field IdentityKey", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Proposal", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -14450,10 +16033,10 @@ func (m *AllTalliedDelegatorVotesForProposalResponse) Unmarshal(dAtA []byte) err if postIndex > l { return io.ErrUnexpectedEOF } - if m.IdentityKey == nil { - m.IdentityKey = &v1alpha12.IdentityKey{} + if m.Proposal == nil { + m.Proposal = &Proposal{} } - if err := m.IdentityKey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Proposal.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -14478,7 +16061,7 @@ func (m *AllTalliedDelegatorVotesForProposalResponse) Unmarshal(dAtA []byte) err } return nil } -func (m *NextProposalIdRequest) Unmarshal(dAtA []byte) error { +func (m *EventProposalFailed) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -14501,17 +16084,17 @@ func (m *NextProposalIdRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: NextProposalIdRequest: wiretype end group for non-group") + return fmt.Errorf("proto: EventProposalFailed: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: NextProposalIdRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: EventProposalFailed: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Proposal", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGovernance @@ -14521,23 +16104,27 @@ func (m *NextProposalIdRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthGovernance } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGovernance } if postIndex > l { return io.ErrUnexpectedEOF } - m.ChainId = string(dAtA[iNdEx:postIndex]) + if m.Proposal == nil { + m.Proposal = &Proposal{} + } + if err := m.Proposal.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex default: iNdEx = preIndex @@ -14560,7 +16147,7 @@ func (m *NextProposalIdRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *NextProposalIdResponse) Unmarshal(dAtA []byte) error { +func (m *EventProposalSlashed) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -14583,17 +16170,17 @@ func (m *NextProposalIdResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: NextProposalIdResponse: wiretype end group for non-group") + return fmt.Errorf("proto: EventProposalSlashed: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: NextProposalIdResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: EventProposalSlashed: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NextProposalId", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Proposal", wireType) } - m.NextProposalId = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGovernance @@ -14603,11 +16190,28 @@ func (m *NextProposalIdResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.NextProposalId |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } + if msglen < 0 { + return ErrInvalidLengthGovernance + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGovernance + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Proposal == nil { + m.Proposal = &Proposal{} + } + if err := m.Proposal.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGovernance(dAtA[iNdEx:]) diff --git a/relayer/chains/penumbra/core/component/ibc/v1alpha1/ibc.pb.go b/relayer/chains/penumbra/core/component/ibc/v1/ibc.pb.go similarity index 87% rename from relayer/chains/penumbra/core/component/ibc/v1alpha1/ibc.pb.go rename to relayer/chains/penumbra/core/component/ibc/v1/ibc.pb.go index e55dcbcf9..1b01d2a31 100644 --- a/relayer/chains/penumbra/core/component/ibc/v1alpha1/ibc.pb.go +++ b/relayer/chains/penumbra/core/component/ibc/v1/ibc.pb.go @@ -1,16 +1,16 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: penumbra/core/component/ibc/v1alpha1/ibc.proto +// source: penumbra/core/component/ibc/v1/ibc.proto -package ibcv1alpha1 +package ibcv1 import ( fmt "fmt" types "github.com/cosmos/cosmos-sdk/codec/types" proto "github.com/cosmos/gogoproto/proto" types1 "github.com/cosmos/ibc-go/v8/modules/core/02-client/types" - v1alpha11 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/asset/v1alpha1" - v1alpha12 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/keys/v1alpha1" - v1alpha1 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/num/v1alpha1" + v11 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/asset/v1" + v12 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/keys/v1" + v1 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/num/v1" io "io" math "math" math_bits "math/bits" @@ -35,7 +35,7 @@ func (m *IbcRelay) Reset() { *m = IbcRelay{} } func (m *IbcRelay) String() string { return proto.CompactTextString(m) } func (*IbcRelay) ProtoMessage() {} func (*IbcRelay) Descriptor() ([]byte, []int) { - return fileDescriptor_86476aff0cbfadc3, []int{0} + return fileDescriptor_2bed36356ff7581e, []int{0} } func (m *IbcRelay) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -83,13 +83,15 @@ type FungibleTokenPacketData struct { Sender string `protobuf:"bytes,3,opt,name=sender,proto3" json:"sender,omitempty"` // the recipient address on the destination chain Receiver string `protobuf:"bytes,4,opt,name=receiver,proto3" json:"receiver,omitempty"` + // optional memo + Memo string `protobuf:"bytes,5,opt,name=memo,proto3" json:"memo,omitempty"` } func (m *FungibleTokenPacketData) Reset() { *m = FungibleTokenPacketData{} } func (m *FungibleTokenPacketData) String() string { return proto.CompactTextString(m) } func (*FungibleTokenPacketData) ProtoMessage() {} func (*FungibleTokenPacketData) Descriptor() ([]byte, []int) { - return fileDescriptor_86476aff0cbfadc3, []int{1} + return fileDescriptor_2bed36356ff7581e, []int{1} } func (m *FungibleTokenPacketData) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -146,15 +148,22 @@ func (m *FungibleTokenPacketData) GetReceiver() string { return "" } +func (m *FungibleTokenPacketData) GetMemo() string { + if m != nil { + return m.Memo + } + return "" +} + // A Penumbra transaction action requesting an ICS20 transfer. type Ics20Withdrawal struct { - Amount *v1alpha1.Amount `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"` - Denom *v1alpha11.Denom `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"` + Amount *v1.Amount `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"` + Denom *v11.Denom `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"` // the address on the destination chain to send the transfer to DestinationChainAddress string `protobuf:"bytes,3,opt,name=destination_chain_address,json=destinationChainAddress,proto3" json:"destination_chain_address,omitempty"` // a "sender" penumbra address to use to return funds from this withdrawal. // this should be an ephemeral address - ReturnAddress *v1alpha12.Address `protobuf:"bytes,4,opt,name=return_address,json=returnAddress,proto3" json:"return_address,omitempty"` + ReturnAddress *v12.Address `protobuf:"bytes,4,opt,name=return_address,json=returnAddress,proto3" json:"return_address,omitempty"` // The height on the counterparty chain at which this transfer expires, and // funds are sent back to the return address. TimeoutHeight *types1.Height `protobuf:"bytes,5,opt,name=timeout_height,json=timeoutHeight,proto3" json:"timeout_height,omitempty"` @@ -168,7 +177,7 @@ func (m *Ics20Withdrawal) Reset() { *m = Ics20Withdrawal{} } func (m *Ics20Withdrawal) String() string { return proto.CompactTextString(m) } func (*Ics20Withdrawal) ProtoMessage() {} func (*Ics20Withdrawal) Descriptor() ([]byte, []int) { - return fileDescriptor_86476aff0cbfadc3, []int{2} + return fileDescriptor_2bed36356ff7581e, []int{2} } func (m *Ics20Withdrawal) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -197,14 +206,14 @@ func (m *Ics20Withdrawal) XXX_DiscardUnknown() { var xxx_messageInfo_Ics20Withdrawal proto.InternalMessageInfo -func (m *Ics20Withdrawal) GetAmount() *v1alpha1.Amount { +func (m *Ics20Withdrawal) GetAmount() *v1.Amount { if m != nil { return m.Amount } return nil } -func (m *Ics20Withdrawal) GetDenom() *v1alpha11.Denom { +func (m *Ics20Withdrawal) GetDenom() *v11.Denom { if m != nil { return m.Denom } @@ -218,7 +227,7 @@ func (m *Ics20Withdrawal) GetDestinationChainAddress() string { return "" } -func (m *Ics20Withdrawal) GetReturnAddress() *v1alpha12.Address { +func (m *Ics20Withdrawal) GetReturnAddress() *v12.Address { if m != nil { return m.ReturnAddress } @@ -257,7 +266,7 @@ func (m *ClientData) Reset() { *m = ClientData{} } func (m *ClientData) String() string { return proto.CompactTextString(m) } func (*ClientData) ProtoMessage() {} func (*ClientData) Descriptor() ([]byte, []int) { - return fileDescriptor_86476aff0cbfadc3, []int{3} + return fileDescriptor_2bed36356ff7581e, []int{3} } func (m *ClientData) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -322,7 +331,7 @@ func (m *ClientCounter) Reset() { *m = ClientCounter{} } func (m *ClientCounter) String() string { return proto.CompactTextString(m) } func (*ClientCounter) ProtoMessage() {} func (*ClientCounter) Descriptor() ([]byte, []int) { - return fileDescriptor_86476aff0cbfadc3, []int{4} + return fileDescriptor_2bed36356ff7581e, []int{4} } func (m *ClientCounter) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -366,7 +375,7 @@ func (m *ConsensusState) Reset() { *m = ConsensusState{} } func (m *ConsensusState) String() string { return proto.CompactTextString(m) } func (*ConsensusState) ProtoMessage() {} func (*ConsensusState) Descriptor() ([]byte, []int) { - return fileDescriptor_86476aff0cbfadc3, []int{5} + return fileDescriptor_2bed36356ff7581e, []int{5} } func (m *ConsensusState) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -410,7 +419,7 @@ func (m *VerifiedHeights) Reset() { *m = VerifiedHeights{} } func (m *VerifiedHeights) String() string { return proto.CompactTextString(m) } func (*VerifiedHeights) ProtoMessage() {} func (*VerifiedHeights) Descriptor() ([]byte, []int) { - return fileDescriptor_86476aff0cbfadc3, []int{6} + return fileDescriptor_2bed36356ff7581e, []int{6} } func (m *VerifiedHeights) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -454,7 +463,7 @@ func (m *ConnectionCounter) Reset() { *m = ConnectionCounter{} } func (m *ConnectionCounter) String() string { return proto.CompactTextString(m) } func (*ConnectionCounter) ProtoMessage() {} func (*ConnectionCounter) Descriptor() ([]byte, []int) { - return fileDescriptor_86476aff0cbfadc3, []int{7} + return fileDescriptor_2bed36356ff7581e, []int{7} } func (m *ConnectionCounter) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -498,7 +507,7 @@ func (m *ClientConnections) Reset() { *m = ClientConnections{} } func (m *ClientConnections) String() string { return proto.CompactTextString(m) } func (*ClientConnections) ProtoMessage() {} func (*ClientConnections) Descriptor() ([]byte, []int) { - return fileDescriptor_86476aff0cbfadc3, []int{8} + return fileDescriptor_2bed36356ff7581e, []int{8} } func (m *ClientConnections) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -548,7 +557,7 @@ func (m *IbcParameters) Reset() { *m = IbcParameters{} } func (m *IbcParameters) String() string { return proto.CompactTextString(m) } func (*IbcParameters) ProtoMessage() {} func (*IbcParameters) Descriptor() ([]byte, []int) { - return fileDescriptor_86476aff0cbfadc3, []int{9} + return fileDescriptor_2bed36356ff7581e, []int{9} } func (m *IbcParameters) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -608,7 +617,7 @@ func (m *GenesisContent) Reset() { *m = GenesisContent{} } func (m *GenesisContent) String() string { return proto.CompactTextString(m) } func (*GenesisContent) ProtoMessage() {} func (*GenesisContent) Descriptor() ([]byte, []int) { - return fileDescriptor_86476aff0cbfadc3, []int{10} + return fileDescriptor_2bed36356ff7581e, []int{10} } func (m *GenesisContent) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -645,84 +654,84 @@ func (m *GenesisContent) GetIbcParams() *IbcParameters { } func init() { - proto.RegisterType((*IbcRelay)(nil), "penumbra.core.component.ibc.v1alpha1.IbcRelay") - proto.RegisterType((*FungibleTokenPacketData)(nil), "penumbra.core.component.ibc.v1alpha1.FungibleTokenPacketData") - proto.RegisterType((*Ics20Withdrawal)(nil), "penumbra.core.component.ibc.v1alpha1.Ics20Withdrawal") - proto.RegisterType((*ClientData)(nil), "penumbra.core.component.ibc.v1alpha1.ClientData") - proto.RegisterType((*ClientCounter)(nil), "penumbra.core.component.ibc.v1alpha1.ClientCounter") - proto.RegisterType((*ConsensusState)(nil), "penumbra.core.component.ibc.v1alpha1.ConsensusState") - proto.RegisterType((*VerifiedHeights)(nil), "penumbra.core.component.ibc.v1alpha1.VerifiedHeights") - proto.RegisterType((*ConnectionCounter)(nil), "penumbra.core.component.ibc.v1alpha1.ConnectionCounter") - proto.RegisterType((*ClientConnections)(nil), "penumbra.core.component.ibc.v1alpha1.ClientConnections") - proto.RegisterType((*IbcParameters)(nil), "penumbra.core.component.ibc.v1alpha1.IbcParameters") - proto.RegisterType((*GenesisContent)(nil), "penumbra.core.component.ibc.v1alpha1.GenesisContent") + proto.RegisterType((*IbcRelay)(nil), "penumbra.core.component.ibc.v1.IbcRelay") + proto.RegisterType((*FungibleTokenPacketData)(nil), "penumbra.core.component.ibc.v1.FungibleTokenPacketData") + proto.RegisterType((*Ics20Withdrawal)(nil), "penumbra.core.component.ibc.v1.Ics20Withdrawal") + proto.RegisterType((*ClientData)(nil), "penumbra.core.component.ibc.v1.ClientData") + proto.RegisterType((*ClientCounter)(nil), "penumbra.core.component.ibc.v1.ClientCounter") + proto.RegisterType((*ConsensusState)(nil), "penumbra.core.component.ibc.v1.ConsensusState") + proto.RegisterType((*VerifiedHeights)(nil), "penumbra.core.component.ibc.v1.VerifiedHeights") + proto.RegisterType((*ConnectionCounter)(nil), "penumbra.core.component.ibc.v1.ConnectionCounter") + proto.RegisterType((*ClientConnections)(nil), "penumbra.core.component.ibc.v1.ClientConnections") + proto.RegisterType((*IbcParameters)(nil), "penumbra.core.component.ibc.v1.IbcParameters") + proto.RegisterType((*GenesisContent)(nil), "penumbra.core.component.ibc.v1.GenesisContent") } func init() { - proto.RegisterFile("penumbra/core/component/ibc/v1alpha1/ibc.proto", fileDescriptor_86476aff0cbfadc3) -} - -var fileDescriptor_86476aff0cbfadc3 = []byte{ - // 941 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x95, 0x4f, 0x6f, 0x1b, 0xc5, - 0x1b, 0xc7, 0xb3, 0x8e, 0x9b, 0x3f, 0x93, 0xda, 0xf9, 0x75, 0x55, 0xfd, 0xea, 0x06, 0x70, 0xcc, - 0x12, 0x90, 0x7b, 0x60, 0xb7, 0x49, 0x40, 0x08, 0x23, 0x84, 0x9c, 0x6d, 0x09, 0x16, 0x42, 0x58, - 0x4b, 0x54, 0x24, 0x64, 0xc9, 0x9a, 0x9d, 0x7d, 0x62, 0x8f, 0xe2, 0x9d, 0xb1, 0x66, 0x66, 0x1d, - 0x45, 0xbc, 0x09, 0x5e, 0x01, 0x07, 0x8e, 0x9c, 0x79, 0x01, 0x1c, 0x11, 0xa7, 0x1e, 0xb9, 0x81, - 0x92, 0x1b, 0xaf, 0x02, 0xcd, 0xcc, 0xce, 0xba, 0xae, 0xaa, 0x36, 0x97, 0x64, 0x9f, 0x67, 0x3f, - 0xdf, 0x67, 0xbe, 0xcf, 0xcc, 0x33, 0x6b, 0x14, 0xce, 0x81, 0x15, 0x79, 0x2a, 0x70, 0x44, 0xb8, - 0x80, 0x88, 0xf0, 0x7c, 0xce, 0x19, 0x30, 0x15, 0xd1, 0x94, 0x44, 0x8b, 0x43, 0x3c, 0x9b, 0x4f, - 0xf1, 0xa1, 0x0e, 0xc2, 0xb9, 0xe0, 0x8a, 0xfb, 0x07, 0x8e, 0x0f, 0x35, 0x1f, 0x56, 0x7c, 0xa8, - 0x11, 0xc7, 0xef, 0x3d, 0x9c, 0x70, 0x3e, 0x99, 0x41, 0x64, 0x34, 0x69, 0x71, 0x1e, 0x61, 0x76, - 0x65, 0x0b, 0xec, 0xed, 0xeb, 0xc2, 0x76, 0xad, 0x19, 0xd5, 0x0b, 0x2d, 0x0e, 0xcb, 0xa7, 0x12, - 0xe8, 0xae, 0x3a, 0xc2, 0x52, 0x82, 0x5a, 0x3a, 0x31, 0x61, 0x49, 0x7e, 0xb0, 0x4a, 0x5e, 0xc0, - 0x95, 0x5c, 0x82, 0x3a, 0x2a, 0xb9, 0x83, 0x55, 0x8e, 0x15, 0xf9, 0x12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, 0x00, 0xff, 0xff, 0x47, 0x09, 0x81, 0x16, 0xde, 0x07, 0x00, 0x00, + proto.RegisterFile("penumbra/core/component/ibc/v1/ibc.proto", fileDescriptor_2bed36356ff7581e) +} + +var fileDescriptor_2bed36356ff7581e = []byte{ + // 942 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x95, 0xcf, 0x6f, 0x23, 0x35, + 0x14, 0xc7, 0x3b, 0x69, 0xb6, 0x3f, 0x9c, 0x4d, 0xca, 0x8e, 0x56, 0x6c, 0xb6, 0xec, 0x4e, 0xc3, + 0x48, 0x48, 0x5d, 0xa4, 0x9d, 0x61, 0xda, 0x45, 0x48, 0x41, 0x08, 0xb5, 0xb3, 0xa5, 0x44, 0x02, + 0x11, 0x0d, 0x55, 0x91, 0x50, 0x45, 0xe4, 0xf1, 0xbc, 0x26, 0x56, 0x33, 0x76, 0x64, 0x7b, 0x52, + 0xf5, 0x7f, 0x40, 0x82, 0xbf, 0x81, 0x23, 0x67, 0xb8, 0x73, 0x44, 0x9c, 0xf6, 0xc8, 0x11, 0xb5, + 0x37, 0xfe, 0x8a, 0x95, 0xed, 0x99, 0xe9, 0x66, 0xb5, 0x4a, 0x2f, 0x19, 0xfb, 0xf9, 0xf3, 0x9e, + 0xbf, 0xef, 0xf9, 0xd9, 0x41, 0xbb, 0x33, 0x60, 0x45, 0x9e, 0x0a, 0x1c, 0x12, 0x2e, 0x20, 0x24, + 0x3c, 0x9f, 0x71, 0x06, 0x4c, 0x85, 0x34, 0x25, 0xe1, 0x3c, 0xd2, 0x9f, 0x60, 0x26, 0xb8, 0xe2, + 0xae, 0x57, 0x91, 0x81, 0x26, 0x83, 0x9a, 0x0c, 0x34, 0x32, 0x8f, 0xb6, 0x1f, 0x8f, 0x39, 0x1f, + 0x4f, 0x21, 0x34, 0x74, 0x5a, 0x9c, 0x87, 0x98, 0x5d, 0x59, 0xd7, 0xed, 0x1d, 0x1d, 0xcc, 0xc6, + 0x9f, 0x52, 0x1d, 0x7c, 0x1e, 0x95, 0xa3, 0x12, 0xf0, 0x17, 0x55, 0x60, 0x29, 0xc1, 0x40, 0x66, + 0x50, 0x32, 0xbd, 0x45, 0xe6, 0x02, 0xae, 0xa4, 0x46, 0xf4, 0xb7, 0x24, 0xbc, 0x45, 0x82, 0x15, + 0xb9, 0x06, 0x58, 0x91, 0xdb, 0x75, 0xff, 0x4b, 0xb4, 0x31, 0x48, 0x49, 0x02, 0x53, 0x7c, 0xe5, + 0xee, 0x23, 0x24, 0xf0, 0xe5, 0x08, 0x13, 0x45, 0x39, 0xeb, 0x3a, 0x3d, 0x67, 0xb7, 0xb5, 0xf7, + 0x30, 0xb0, 0x29, 0x04, 0x55, 0x0a, 0xc1, 0x01, 0xbb, 0x4a, 0x36, 0x05, 0xbe, 0x3c, 0x30, 0x98, + 0xff, 0x8b, 0x83, 0x1e, 0x7d, 0x55, 0xb0, 0x31, 0x4d, 0xa7, 0x70, 0xc2, 0x2f, 0x80, 0x0d, 0x31, + 0xb9, 0x00, 0xf5, 0x12, 0x2b, 0xec, 0x3e, 0x44, 0xf7, 0x32, 0x60, 0x3c, 0x37, 0xb1, 0x36, 0x13, + 0x3b, 0x71, 0xdf, 0x47, 0x6b, 0x38, 0xe7, 0x05, 0x53, 0xdd, 0x86, 0x31, 0x97, 0x33, 0x6d, 0x97, + 0xc0, 0x32, 0x10, 0xdd, 0x55, 0x6b, 0xb7, 0x33, 0x77, 0x1b, 0x6d, 0x08, 0x20, 0x40, 0xe7, 0x20, + 0xba, 0x4d, 0xb3, 0x52, 0xcf, 0x5d, 0x17, 0x35, 0x73, 0xc8, 0x79, 0xf7, 0x9e, 0xb1, 0x9b, 0xb1, + 0xff, 0xf3, 0x2a, 0xda, 0x1a, 0x10, 0xb9, 0xf7, 0xc9, 0x0f, 0x54, 0x4d, 0x32, 0x81, 0x2f, 0xf1, + 0xd4, 0x7d, 0x51, 0xef, 0x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, 0xbf, 0x5c, 0x94, 0x0a, + 0x2b, 0x28, 0xeb, 0xfe, 0xee, 0x1e, 0x6c, 0x59, 0xf2, 0x7b, 0x0d, 0x6a, 0x2d, 0x33, 0xc1, 0x09, + 0x48, 0x09, 0x99, 0x15, 0x6c, 0x2b, 0xdd, 0xae, 0xad, 0x46, 0xf2, 0x33, 0xf4, 0xde, 0x2d, 0x56, + 0x96, 0xa6, 0x69, 0x32, 0xdb, 0xaa, 0xed, 0xb6, 0x00, 0xfe, 0x33, 0xd4, 0xb6, 0xaa, 0x63, 0xdd, + 0x0a, 0x20, 0xdc, 0x2e, 0x5a, 0x27, 0x76, 0x68, 0x64, 0x37, 0x93, 0x6a, 0xea, 0x7f, 0x87, 0x3a, + 0x31, 0x67, 0x12, 0x98, 0x2c, 0xa4, 0x95, 0xf3, 0x05, 0xda, 0x22, 0x95, 0xa5, 0x4c, 0x65, 0xd9, + 0x75, 0xea, 0x90, 0x05, 0x77, 0xff, 0x18, 0x6d, 0x9d, 0x82, 0xa0, 0xe7, 0xb4, 0x52, 0x23, 0xdd, + 0x17, 0x68, 0xdd, 0xea, 0x95, 0x5d, 0xa7, 0xb7, 0x7a, 0xc7, 0x59, 0x56, 0xa8, 0xff, 0x1c, 0x3d, + 0x88, 0x39, 0x63, 0x60, 0xae, 0xea, 0xdd, 0x89, 0x7c, 0x8a, 0x1e, 0x54, 0x39, 0x57, 0x4e, 0xd2, + 0xed, 0xa1, 0x16, 0xb9, 0x9d, 0x9a, 0xdd, 0x37, 0x93, 0x37, 0x4d, 0xfe, 0x5f, 0x0e, 0x6a, 0x0f, + 0x52, 0x32, 0xc4, 0x02, 0xe7, 0xa0, 0x40, 0x48, 0x77, 0x07, 0xb5, 0x68, 0x4a, 0x46, 0xc0, 0x70, + 0x3a, 0x05, 0x7b, 0xcc, 0x1b, 0x09, 0xa2, 0x29, 0x39, 0xb2, 0x16, 0xf7, 0x08, 0xed, 0x50, 0x96, + 0xf2, 0x82, 0x65, 0x23, 0x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xec, 0x34, 0xba, 0x6e, 0x7c, 0xbc, 0x1c, 0x38, + 0x3b, 0x1e, 0x1e, 0x7e, 0x0b, 0x0a, 0x67, 0x58, 0xe1, 0xff, 0x1b, 0x7e, 0x05, 0xf7, 0xfb, 0x9a, + 0xd6, 0xbf, 0x25, 0xde, 0xef, 0x0f, 0x52, 0xd2, 0xef, 0x9f, 0x46, 0xe9, 0x9a, 0xb9, 0x27, 0xfb, + 0xaf, 0x03, 0x00, 0x00, 0xff, 0xff, 0x08, 0xe5, 0x06, 0x9c, 0x93, 0x07, 0x00, 0x00, } func (m *IbcRelay) Marshal() (dAtA []byte, err error) { @@ -780,6 +789,13 @@ func (m *FungibleTokenPacketData) MarshalToSizedBuffer(dAtA []byte) (int, error) _ = i var l int _ = l + if len(m.Memo) > 0 { + i -= len(m.Memo) + copy(dAtA[i:], m.Memo) + i = encodeVarintIbc(dAtA, i, uint64(len(m.Memo))) + i-- + dAtA[i] = 0x2a + } if len(m.Receiver) > 0 { i -= len(m.Receiver) copy(dAtA[i:], m.Receiver) @@ -1249,6 +1265,10 @@ func (m *FungibleTokenPacketData) Size() (n int) { if l > 0 { n += 1 + l + sovIbc(uint64(l)) } + l = len(m.Memo) + if l > 0 { + n += 1 + l + sovIbc(uint64(l)) + } return n } @@ -1659,6 +1679,38 @@ func (m *FungibleTokenPacketData) Unmarshal(dAtA []byte) error { } m.Receiver = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Memo", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIbc + } + 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 ErrInvalidLengthIbc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthIbc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Memo = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipIbc(dAtA[iNdEx:]) @@ -1739,7 +1791,7 @@ func (m *Ics20Withdrawal) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Amount == nil { - m.Amount = &v1alpha1.Amount{} + m.Amount = &v1.Amount{} } if err := m.Amount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -1775,7 +1827,7 @@ func (m *Ics20Withdrawal) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Denom == nil { - m.Denom = &v1alpha11.Denom{} + m.Denom = &v11.Denom{} } if err := m.Denom.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -1843,7 +1895,7 @@ func (m *Ics20Withdrawal) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.ReturnAddress == nil { - m.ReturnAddress = &v1alpha12.Address{} + m.ReturnAddress = &v12.Address{} } if err := m.ReturnAddress.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err diff --git a/relayer/chains/penumbra/core/component/sct/v1alpha1/sct.pb.go b/relayer/chains/penumbra/core/component/sct/v1/sct.pb.go similarity index 68% rename from relayer/chains/penumbra/core/component/sct/v1alpha1/sct.pb.go rename to relayer/chains/penumbra/core/component/sct/v1/sct.pb.go index fe6b47efa..03329660b 100644 --- a/relayer/chains/penumbra/core/component/sct/v1alpha1/sct.pb.go +++ b/relayer/chains/penumbra/core/component/sct/v1/sct.pb.go @@ -1,15 +1,17 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: penumbra/core/component/sct/v1alpha1/sct.proto +// source: penumbra/core/component/sct/v1/sct.proto -package sctv1alpha1 +package sctv1 import ( context "context" fmt "fmt" grpc1 "github.com/cosmos/gogoproto/grpc" proto "github.com/cosmos/gogoproto/proto" - v1alpha1 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/crypto/tct/v1alpha1" + v1 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/crypto/tct/v1" grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" io "io" math "math" math_bits "math/bits" @@ -26,12 +28,160 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +// Configuration data for the SCT component. +type SctParameters struct { + // The default duration of each epoch, in number of blocks. + EpochDuration uint64 `protobuf:"varint,1,opt,name=epoch_duration,json=epochDuration,proto3" json:"epoch_duration,omitempty"` +} + +func (m *SctParameters) Reset() { *m = SctParameters{} } +func (m *SctParameters) String() string { return proto.CompactTextString(m) } +func (*SctParameters) ProtoMessage() {} +func (*SctParameters) Descriptor() ([]byte, []int) { + return fileDescriptor_85f1e312317b2642, []int{0} +} +func (m *SctParameters) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SctParameters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SctParameters.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 *SctParameters) XXX_Merge(src proto.Message) { + xxx_messageInfo_SctParameters.Merge(m, src) +} +func (m *SctParameters) XXX_Size() int { + return m.Size() +} +func (m *SctParameters) XXX_DiscardUnknown() { + xxx_messageInfo_SctParameters.DiscardUnknown(m) +} + +var xxx_messageInfo_SctParameters proto.InternalMessageInfo + +func (m *SctParameters) GetEpochDuration() uint64 { + if m != nil { + return m.EpochDuration + } + return 0 +} + +// Sct-specific genesis content. +type GenesisContent struct { + // The SctParameters present at genesis. + SctParams *SctParameters `protobuf:"bytes,1,opt,name=sct_params,json=sctParams,proto3" json:"sct_params,omitempty"` +} + +func (m *GenesisContent) Reset() { *m = GenesisContent{} } +func (m *GenesisContent) String() string { return proto.CompactTextString(m) } +func (*GenesisContent) ProtoMessage() {} +func (*GenesisContent) Descriptor() ([]byte, []int) { + return fileDescriptor_85f1e312317b2642, []int{1} +} +func (m *GenesisContent) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GenesisContent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GenesisContent.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 *GenesisContent) XXX_Merge(src proto.Message) { + xxx_messageInfo_GenesisContent.Merge(m, src) +} +func (m *GenesisContent) XXX_Size() int { + return m.Size() +} +func (m *GenesisContent) XXX_DiscardUnknown() { + xxx_messageInfo_GenesisContent.DiscardUnknown(m) +} + +var xxx_messageInfo_GenesisContent proto.InternalMessageInfo + +func (m *GenesisContent) GetSctParams() *SctParameters { + if m != nil { + return m.SctParams + } + return nil +} + +// An epoch is a sequentially numbered collection of contiguous blocks. +type Epoch struct { + // The unique index of the epoch. + Index uint64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` + // The starting height for the epoch. + StartHeight uint64 `protobuf:"varint,2,opt,name=start_height,json=startHeight,proto3" json:"start_height,omitempty"` +} + +func (m *Epoch) Reset() { *m = Epoch{} } +func (m *Epoch) String() string { return proto.CompactTextString(m) } +func (*Epoch) ProtoMessage() {} +func (*Epoch) Descriptor() ([]byte, []int) { + return fileDescriptor_85f1e312317b2642, []int{2} +} +func (m *Epoch) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Epoch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Epoch.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 *Epoch) XXX_Merge(src proto.Message) { + xxx_messageInfo_Epoch.Merge(m, src) +} +func (m *Epoch) XXX_Size() int { + return m.Size() +} +func (m *Epoch) XXX_DiscardUnknown() { + xxx_messageInfo_Epoch.DiscardUnknown(m) +} + +var xxx_messageInfo_Epoch proto.InternalMessageInfo + +func (m *Epoch) GetIndex() uint64 { + if m != nil { + return m.Index + } + return 0 +} + +func (m *Epoch) GetStartHeight() uint64 { + if m != nil { + return m.StartHeight + } + return 0 +} + // Metadata describing the source of a commitment in the state commitment tree. // // This message allows clients to track provenance of state commitments, and to // decide whether or not to download block data. type CommitmentSource struct { // Types that are valid to be assigned to Source: + // // *CommitmentSource_Transaction_ // *CommitmentSource_Ics_20Transfer // *CommitmentSource_FundingStreamReward_ @@ -44,7 +194,7 @@ func (m *CommitmentSource) Reset() { *m = CommitmentSource{} } func (m *CommitmentSource) String() string { return proto.CompactTextString(m) } func (*CommitmentSource) ProtoMessage() {} func (*CommitmentSource) Descriptor() ([]byte, []int) { - return fileDescriptor_e99589ee3b6c1a3a, []int{0} + return fileDescriptor_85f1e312317b2642, []int{3} } func (m *CommitmentSource) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -162,7 +312,7 @@ func (m *CommitmentSource_Genesis) Reset() { *m = CommitmentSource_Genes func (m *CommitmentSource_Genesis) String() string { return proto.CompactTextString(m) } func (*CommitmentSource_Genesis) ProtoMessage() {} func (*CommitmentSource_Genesis) Descriptor() ([]byte, []int) { - return fileDescriptor_e99589ee3b6c1a3a, []int{0, 0} + return fileDescriptor_85f1e312317b2642, []int{3, 0} } func (m *CommitmentSource_Genesis) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -208,7 +358,7 @@ func (m *CommitmentSource_Transaction) Reset() { *m = CommitmentSource_T func (m *CommitmentSource_Transaction) String() string { return proto.CompactTextString(m) } func (*CommitmentSource_Transaction) ProtoMessage() {} func (*CommitmentSource_Transaction) Descriptor() ([]byte, []int) { - return fileDescriptor_e99589ee3b6c1a3a, []int{0, 1} + return fileDescriptor_85f1e312317b2642, []int{3, 1} } func (m *CommitmentSource_Transaction) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -254,7 +404,7 @@ func (m *CommitmentSource_FundingStreamReward) Reset() { *m = Commitment func (m *CommitmentSource_FundingStreamReward) String() string { return proto.CompactTextString(m) } func (*CommitmentSource_FundingStreamReward) ProtoMessage() {} func (*CommitmentSource_FundingStreamReward) Descriptor() ([]byte, []int) { - return fileDescriptor_e99589ee3b6c1a3a, []int{0, 2} + return fileDescriptor_85f1e312317b2642, []int{3, 2} } func (m *CommitmentSource_FundingStreamReward) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -298,7 +448,7 @@ func (m *CommitmentSource_CommunityPoolOutput) Reset() { *m = Commitment func (m *CommitmentSource_CommunityPoolOutput) String() string { return proto.CompactTextString(m) } func (*CommitmentSource_CommunityPoolOutput) ProtoMessage() {} func (*CommitmentSource_CommunityPoolOutput) Descriptor() ([]byte, []int) { - return fileDescriptor_e99589ee3b6c1a3a, []int{0, 3} + return fileDescriptor_85f1e312317b2642, []int{3, 3} } func (m *CommitmentSource_CommunityPoolOutput) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -341,7 +491,7 @@ func (m *CommitmentSource_Ics20Transfer) Reset() { *m = CommitmentSource func (m *CommitmentSource_Ics20Transfer) String() string { return proto.CompactTextString(m) } func (*CommitmentSource_Ics20Transfer) ProtoMessage() {} func (*CommitmentSource_Ics20Transfer) Descriptor() ([]byte, []int) { - return fileDescriptor_e99589ee3b6c1a3a, []int{0, 4} + return fileDescriptor_85f1e312317b2642, []int{3, 4} } func (m *CommitmentSource_Ics20Transfer) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -399,7 +549,7 @@ func (m *Nullifier) Reset() { *m = Nullifier{} } func (m *Nullifier) String() string { return proto.CompactTextString(m) } func (*Nullifier) ProtoMessage() {} func (*Nullifier) Descriptor() ([]byte, []int) { - return fileDescriptor_e99589ee3b6c1a3a, []int{1} + return fileDescriptor_85f1e312317b2642, []int{4} } func (m *Nullifier) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -445,7 +595,7 @@ func (m *NullificationInfo) Reset() { *m = NullificationInfo{} } func (m *NullificationInfo) String() string { return proto.CompactTextString(m) } func (*NullificationInfo) ProtoMessage() {} func (*NullificationInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_e99589ee3b6c1a3a, []int{2} + return fileDescriptor_85f1e312317b2642, []int{5} } func (m *NullificationInfo) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -490,16 +640,16 @@ func (m *NullificationInfo) GetSpendHeight() uint64 { // Event recording a new commitment added to the SCT. type EventCommitment struct { - Commitment *v1alpha1.StateCommitment `protobuf:"bytes,1,opt,name=commitment,proto3" json:"commitment,omitempty"` - Position uint64 `protobuf:"varint,2,opt,name=position,proto3" json:"position,omitempty"` - Source *CommitmentSource `protobuf:"bytes,3,opt,name=source,proto3" json:"source,omitempty"` + Commitment *v1.StateCommitment `protobuf:"bytes,1,opt,name=commitment,proto3" json:"commitment,omitempty"` + Position uint64 `protobuf:"varint,2,opt,name=position,proto3" json:"position,omitempty"` + Source *CommitmentSource `protobuf:"bytes,3,opt,name=source,proto3" json:"source,omitempty"` } func (m *EventCommitment) Reset() { *m = EventCommitment{} } func (m *EventCommitment) String() string { return proto.CompactTextString(m) } func (*EventCommitment) ProtoMessage() {} func (*EventCommitment) Descriptor() ([]byte, []int) { - return fileDescriptor_e99589ee3b6c1a3a, []int{3} + return fileDescriptor_85f1e312317b2642, []int{6} } func (m *EventCommitment) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -528,7 +678,7 @@ func (m *EventCommitment) XXX_DiscardUnknown() { var xxx_messageInfo_EventCommitment proto.InternalMessageInfo -func (m *EventCommitment) GetCommitment() *v1alpha1.StateCommitment { +func (m *EventCommitment) GetCommitment() *v1.StateCommitment { if m != nil { return m.Commitment } @@ -551,15 +701,15 @@ func (m *EventCommitment) GetSource() *CommitmentSource { // Event recording an SCT anchor (global root). type EventAnchor struct { - Anchor *v1alpha1.MerkleRoot `protobuf:"bytes,1,opt,name=anchor,proto3" json:"anchor,omitempty"` - Height uint64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` + Anchor *v1.MerkleRoot `protobuf:"bytes,1,opt,name=anchor,proto3" json:"anchor,omitempty"` + Height uint64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` } func (m *EventAnchor) Reset() { *m = EventAnchor{} } func (m *EventAnchor) String() string { return proto.CompactTextString(m) } func (*EventAnchor) ProtoMessage() {} func (*EventAnchor) Descriptor() ([]byte, []int) { - return fileDescriptor_e99589ee3b6c1a3a, []int{4} + return fileDescriptor_85f1e312317b2642, []int{7} } func (m *EventAnchor) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -588,7 +738,7 @@ func (m *EventAnchor) XXX_DiscardUnknown() { var xxx_messageInfo_EventAnchor proto.InternalMessageInfo -func (m *EventAnchor) GetAnchor() *v1alpha1.MerkleRoot { +func (m *EventAnchor) GetAnchor() *v1.MerkleRoot { if m != nil { return m.Anchor } @@ -604,15 +754,15 @@ func (m *EventAnchor) GetHeight() uint64 { // Event recording an SCT epoch root. type EventEpochRoot struct { - Root *v1alpha1.MerkleRoot `protobuf:"bytes,1,opt,name=root,proto3" json:"root,omitempty"` - Index uint64 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"` + Root *v1.MerkleRoot `protobuf:"bytes,1,opt,name=root,proto3" json:"root,omitempty"` + Index uint64 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"` } func (m *EventEpochRoot) Reset() { *m = EventEpochRoot{} } func (m *EventEpochRoot) String() string { return proto.CompactTextString(m) } func (*EventEpochRoot) ProtoMessage() {} func (*EventEpochRoot) Descriptor() ([]byte, []int) { - return fileDescriptor_e99589ee3b6c1a3a, []int{5} + return fileDescriptor_85f1e312317b2642, []int{8} } func (m *EventEpochRoot) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -641,7 +791,7 @@ func (m *EventEpochRoot) XXX_DiscardUnknown() { var xxx_messageInfo_EventEpochRoot proto.InternalMessageInfo -func (m *EventEpochRoot) GetRoot() *v1alpha1.MerkleRoot { +func (m *EventEpochRoot) GetRoot() *v1.MerkleRoot { if m != nil { return m.Root } @@ -657,15 +807,15 @@ func (m *EventEpochRoot) GetIndex() uint64 { // Event recording an SCT block root. type EventBlockRoot struct { - Root *v1alpha1.MerkleRoot `protobuf:"bytes,1,opt,name=root,proto3" json:"root,omitempty"` - Height uint64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` + Root *v1.MerkleRoot `protobuf:"bytes,1,opt,name=root,proto3" json:"root,omitempty"` + Height uint64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` } func (m *EventBlockRoot) Reset() { *m = EventBlockRoot{} } func (m *EventBlockRoot) String() string { return proto.CompactTextString(m) } func (*EventBlockRoot) ProtoMessage() {} func (*EventBlockRoot) Descriptor() ([]byte, []int) { - return fileDescriptor_e99589ee3b6c1a3a, []int{6} + return fileDescriptor_85f1e312317b2642, []int{9} } func (m *EventBlockRoot) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -694,7 +844,7 @@ func (m *EventBlockRoot) XXX_DiscardUnknown() { var xxx_messageInfo_EventBlockRoot proto.InternalMessageInfo -func (m *EventBlockRoot) GetRoot() *v1alpha1.MerkleRoot { +func (m *EventBlockRoot) GetRoot() *v1.MerkleRoot { if m != nil { return m.Root } @@ -708,78 +858,180 @@ func (m *EventBlockRoot) GetHeight() uint64 { return 0 } +type EpochByHeightRequest struct { + Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` +} + +func (m *EpochByHeightRequest) Reset() { *m = EpochByHeightRequest{} } +func (m *EpochByHeightRequest) String() string { return proto.CompactTextString(m) } +func (*EpochByHeightRequest) ProtoMessage() {} +func (*EpochByHeightRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_85f1e312317b2642, []int{10} +} +func (m *EpochByHeightRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EpochByHeightRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EpochByHeightRequest.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 *EpochByHeightRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_EpochByHeightRequest.Merge(m, src) +} +func (m *EpochByHeightRequest) XXX_Size() int { + return m.Size() +} +func (m *EpochByHeightRequest) XXX_DiscardUnknown() { + xxx_messageInfo_EpochByHeightRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_EpochByHeightRequest proto.InternalMessageInfo + +func (m *EpochByHeightRequest) GetHeight() uint64 { + if m != nil { + return m.Height + } + return 0 +} + +type EpochByHeightResponse struct { + Epoch *Epoch `protobuf:"bytes,1,opt,name=epoch,proto3" json:"epoch,omitempty"` +} + +func (m *EpochByHeightResponse) Reset() { *m = EpochByHeightResponse{} } +func (m *EpochByHeightResponse) String() string { return proto.CompactTextString(m) } +func (*EpochByHeightResponse) ProtoMessage() {} +func (*EpochByHeightResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_85f1e312317b2642, []int{11} +} +func (m *EpochByHeightResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EpochByHeightResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EpochByHeightResponse.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 *EpochByHeightResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_EpochByHeightResponse.Merge(m, src) +} +func (m *EpochByHeightResponse) XXX_Size() int { + return m.Size() +} +func (m *EpochByHeightResponse) XXX_DiscardUnknown() { + xxx_messageInfo_EpochByHeightResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_EpochByHeightResponse proto.InternalMessageInfo + +func (m *EpochByHeightResponse) GetEpoch() *Epoch { + if m != nil { + return m.Epoch + } + return nil +} + func init() { - proto.RegisterType((*CommitmentSource)(nil), "penumbra.core.component.sct.v1alpha1.CommitmentSource") - proto.RegisterType((*CommitmentSource_Genesis)(nil), "penumbra.core.component.sct.v1alpha1.CommitmentSource.Genesis") - proto.RegisterType((*CommitmentSource_Transaction)(nil), "penumbra.core.component.sct.v1alpha1.CommitmentSource.Transaction") - proto.RegisterType((*CommitmentSource_FundingStreamReward)(nil), "penumbra.core.component.sct.v1alpha1.CommitmentSource.FundingStreamReward") - proto.RegisterType((*CommitmentSource_CommunityPoolOutput)(nil), "penumbra.core.component.sct.v1alpha1.CommitmentSource.CommunityPoolOutput") - proto.RegisterType((*CommitmentSource_Ics20Transfer)(nil), "penumbra.core.component.sct.v1alpha1.CommitmentSource.Ics20Transfer") - proto.RegisterType((*Nullifier)(nil), "penumbra.core.component.sct.v1alpha1.Nullifier") - proto.RegisterType((*NullificationInfo)(nil), "penumbra.core.component.sct.v1alpha1.NullificationInfo") - proto.RegisterType((*EventCommitment)(nil), "penumbra.core.component.sct.v1alpha1.EventCommitment") - proto.RegisterType((*EventAnchor)(nil), "penumbra.core.component.sct.v1alpha1.EventAnchor") - proto.RegisterType((*EventEpochRoot)(nil), "penumbra.core.component.sct.v1alpha1.EventEpochRoot") - proto.RegisterType((*EventBlockRoot)(nil), "penumbra.core.component.sct.v1alpha1.EventBlockRoot") + proto.RegisterType((*SctParameters)(nil), "penumbra.core.component.sct.v1.SctParameters") + proto.RegisterType((*GenesisContent)(nil), "penumbra.core.component.sct.v1.GenesisContent") + proto.RegisterType((*Epoch)(nil), "penumbra.core.component.sct.v1.Epoch") + proto.RegisterType((*CommitmentSource)(nil), "penumbra.core.component.sct.v1.CommitmentSource") + proto.RegisterType((*CommitmentSource_Genesis)(nil), "penumbra.core.component.sct.v1.CommitmentSource.Genesis") + proto.RegisterType((*CommitmentSource_Transaction)(nil), "penumbra.core.component.sct.v1.CommitmentSource.Transaction") + proto.RegisterType((*CommitmentSource_FundingStreamReward)(nil), "penumbra.core.component.sct.v1.CommitmentSource.FundingStreamReward") + proto.RegisterType((*CommitmentSource_CommunityPoolOutput)(nil), "penumbra.core.component.sct.v1.CommitmentSource.CommunityPoolOutput") + proto.RegisterType((*CommitmentSource_Ics20Transfer)(nil), "penumbra.core.component.sct.v1.CommitmentSource.Ics20Transfer") + proto.RegisterType((*Nullifier)(nil), "penumbra.core.component.sct.v1.Nullifier") + proto.RegisterType((*NullificationInfo)(nil), "penumbra.core.component.sct.v1.NullificationInfo") + proto.RegisterType((*EventCommitment)(nil), "penumbra.core.component.sct.v1.EventCommitment") + proto.RegisterType((*EventAnchor)(nil), "penumbra.core.component.sct.v1.EventAnchor") + proto.RegisterType((*EventEpochRoot)(nil), "penumbra.core.component.sct.v1.EventEpochRoot") + proto.RegisterType((*EventBlockRoot)(nil), "penumbra.core.component.sct.v1.EventBlockRoot") + proto.RegisterType((*EpochByHeightRequest)(nil), "penumbra.core.component.sct.v1.EpochByHeightRequest") + proto.RegisterType((*EpochByHeightResponse)(nil), "penumbra.core.component.sct.v1.EpochByHeightResponse") } func init() { - proto.RegisterFile("penumbra/core/component/sct/v1alpha1/sct.proto", fileDescriptor_e99589ee3b6c1a3a) -} - -var fileDescriptor_e99589ee3b6c1a3a = []byte{ - // 812 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x55, 0xcb, 0x8e, 0x1b, 0x45, - 0x14, 0xb5, 0xcd, 0xe0, 0x8c, 0xaf, 0x27, 0x13, 0xa8, 0x49, 0x90, 0x65, 0x29, 0x86, 0x58, 0x11, - 0xf2, 0x86, 0xee, 0x89, 0x91, 0xb2, 0x30, 0x08, 0x81, 0x4d, 0x12, 0x0f, 0xd2, 0x04, 0xd3, 0x1d, - 0xb1, 0x88, 0x2c, 0xb5, 0x6a, 0xaa, 0xaf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7, 0xfe, 0x16, - 0x49, 0x83, 0x41, 0xc8, 0xcc, 0x60, 0x50, 0xa6, 0x9d, 0xd4, 0xdd, 0x13, 0xf9, 0xe1, 0x5f, 0x01, - 0x00, 0x00, 0xff, 0xff, 0xc7, 0xd6, 0x7d, 0xcb, 0xa2, 0x07, 0x00, 0x00, + proto.RegisterFile("penumbra/core/component/sct/v1/sct.proto", fileDescriptor_85f1e312317b2642) +} + +var fileDescriptor_85f1e312317b2642 = []byte{ + // 947 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x56, 0xcf, 0x6f, 0x1b, 0x45, + 0x14, 0xb6, 0x4d, 0x93, 0xc6, 0xcf, 0x49, 0x0a, 0x93, 0x04, 0x59, 0x96, 0x6a, 0xda, 0x95, 0x2a, + 0x22, 0x24, 0xd6, 0xb1, 0x81, 0x08, 0xb9, 0x08, 0x81, 0xdd, 0x36, 0x8e, 0x44, 0xc1, 0xac, 0xa3, + 0x1c, 0x50, 0xc4, 0x76, 0x33, 0xfb, 0x12, 0xaf, 0xe2, 0x9d, 0xd9, 0xcc, 0xcc, 0x1a, 0x82, 0xf8, + 0x13, 0x38, 0x70, 0xe2, 0x0f, 0xe0, 0xc8, 0x9d, 0x3b, 0x47, 0xc4, 0xa9, 0x47, 0x8e, 0x28, 0xb9, + 0xf1, 0x57, 0xa0, 0x99, 0x1d, 0xff, 0x6c, 0x9b, 0x60, 0xb8, 0x24, 0x9e, 0x6f, 0xbf, 0xf7, 0x7d, + 0xef, 0xcd, 0x9b, 0x37, 0xbb, 0xb0, 0x9d, 0x20, 0x4b, 0xe3, 0x63, 0x11, 0xd4, 0x28, 0x17, 0x58, + 0xa3, 0x3c, 0x4e, 0x38, 0x43, 0xa6, 0x6a, 0x92, 0xaa, 0xda, 0xb0, 0xae, 0xff, 0xb9, 0x89, 0xe0, + 0x8a, 0x93, 0xea, 0x88, 0xe9, 0x6a, 0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, + 0x29, 0x54, 0xbb, 0xa3, 0x2c, 0xda, 0x3a, 0x8b, 0xf6, 0x38, 0x8b, 0x1e, 0x55, 0xee, 0x61, 0xfd, + 0x8f, 0x09, 0xe1, 0x48, 0x13, 0x8e, 0xc6, 0x84, 0xa3, 0x1e, 0x55, 0x47, 0x87, 0xf5, 0xcb, 0xc2, + 0x3b, 0xd7, 0x13, 0x8e, 0xf6, 0xba, 0xad, 0xa7, 0xa8, 0x82, 0x30, 0x50, 0xc1, 0xdf, 0x05, 0x67, + 0x44, 0x6e, 0x36, 0x35, 0x5b, 0xff, 0xb5, 0xf4, 0x66, 0xb3, 0x47, 0x55, 0xb3, 0x79, 0x58, 0x3f, + 0x5e, 0x36, 0x5f, 0x26, 0xef, 0xfd, 0x13, 0x00, 0x00, 0xff, 0xff, 0x62, 0x18, 0xb8, 0x98, 0x07, + 0x09, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -794,6 +1046,7 @@ const _ = grpc.SupportPackageIsVersion4 // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type QueryServiceClient interface { + EpochByHeight(ctx context.Context, in *EpochByHeightRequest, opts ...grpc.CallOption) (*EpochByHeightResponse, error) } type queryServiceClient struct { @@ -804,24 +1057,157 @@ func NewQueryServiceClient(cc grpc1.ClientConn) QueryServiceClient { return &queryServiceClient{cc} } +func (c *queryServiceClient) EpochByHeight(ctx context.Context, in *EpochByHeightRequest, opts ...grpc.CallOption) (*EpochByHeightResponse, error) { + out := new(EpochByHeightResponse) + err := c.cc.Invoke(ctx, "/penumbra.core.component.sct.v1.QueryService/EpochByHeight", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // QueryServiceServer is the server API for QueryService service. type QueryServiceServer interface { + EpochByHeight(context.Context, *EpochByHeightRequest) (*EpochByHeightResponse, error) } // UnimplementedQueryServiceServer can be embedded to have forward compatible implementations. type UnimplementedQueryServiceServer struct { } +func (*UnimplementedQueryServiceServer) EpochByHeight(ctx context.Context, req *EpochByHeightRequest) (*EpochByHeightResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method EpochByHeight not implemented") +} + func RegisterQueryServiceServer(s grpc1.Server, srv QueryServiceServer) { s.RegisterService(&_QueryService_serviceDesc, srv) } +func _QueryService_EpochByHeight_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(EpochByHeightRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServiceServer).EpochByHeight(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/penumbra.core.component.sct.v1.QueryService/EpochByHeight", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServiceServer).EpochByHeight(ctx, req.(*EpochByHeightRequest)) + } + return interceptor(ctx, in, info, handler) +} + var _QueryService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "penumbra.core.component.sct.v1alpha1.QueryService", + ServiceName: "penumbra.core.component.sct.v1.QueryService", HandlerType: (*QueryServiceServer)(nil), - Methods: []grpc.MethodDesc{}, - Streams: []grpc.StreamDesc{}, - Metadata: "penumbra/core/component/sct/v1alpha1/sct.proto", + Methods: []grpc.MethodDesc{ + { + MethodName: "EpochByHeight", + Handler: _QueryService_EpochByHeight_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "penumbra/core/component/sct/v1/sct.proto", +} + +func (m *SctParameters) 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 *SctParameters) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SctParameters) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.EpochDuration != 0 { + i = encodeVarintSct(dAtA, i, uint64(m.EpochDuration)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *GenesisContent) 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 *GenesisContent) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GenesisContent) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.SctParams != nil { + { + size, err := m.SctParams.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSct(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Epoch) 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 *Epoch) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Epoch) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.StartHeight != 0 { + i = encodeVarintSct(dAtA, i, uint64(m.StartHeight)) + i-- + dAtA[i] = 0x10 + } + if m.Index != 0 { + i = encodeVarintSct(dAtA, i, uint64(m.Index)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil } func (m *CommitmentSource) Marshal() (dAtA []byte, err error) { @@ -1350,6 +1736,69 @@ func (m *EventBlockRoot) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } +func (m *EpochByHeightRequest) 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 *EpochByHeightRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EpochByHeightRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Height != 0 { + i = encodeVarintSct(dAtA, i, uint64(m.Height)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *EpochByHeightResponse) 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 *EpochByHeightResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EpochByHeightResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Epoch != nil { + { + size, err := m.Epoch.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSct(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + func encodeVarintSct(dAtA []byte, offset int, v uint64) int { offset -= sovSct(v) base := offset @@ -1361,6 +1810,46 @@ func encodeVarintSct(dAtA []byte, offset int, v uint64) int { dAtA[offset] = uint8(v) return base } +func (m *SctParameters) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.EpochDuration != 0 { + n += 1 + sovSct(uint64(m.EpochDuration)) + } + return n +} + +func (m *GenesisContent) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.SctParams != nil { + l = m.SctParams.Size() + n += 1 + l + sovSct(uint64(l)) + } + return n +} + +func (m *Epoch) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Index != 0 { + n += 1 + sovSct(uint64(m.Index)) + } + if m.StartHeight != 0 { + n += 1 + sovSct(uint64(m.StartHeight)) + } + return n +} + func (m *CommitmentSource) Size() (n int) { if m == nil { return 0 @@ -1574,30 +2063,298 @@ func (m *EventEpochRoot) Size() (n int) { if m.Index != 0 { n += 1 + sovSct(uint64(m.Index)) } - return n -} + return n +} + +func (m *EventBlockRoot) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Root != nil { + l = m.Root.Size() + n += 1 + l + sovSct(uint64(l)) + } + if m.Height != 0 { + n += 1 + sovSct(uint64(m.Height)) + } + return n +} + +func (m *EpochByHeightRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Height != 0 { + n += 1 + sovSct(uint64(m.Height)) + } + return n +} + +func (m *EpochByHeightResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Epoch != nil { + l = m.Epoch.Size() + n += 1 + l + sovSct(uint64(l)) + } + return n +} + +func sovSct(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozSct(x uint64) (n int) { + return sovSct(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *SctParameters) 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 ErrIntOverflowSct + } + 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: SctParameters: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SctParameters: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EpochDuration", wireType) + } + m.EpochDuration = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSct + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.EpochDuration |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipSct(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthSct + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GenesisContent) 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 ErrIntOverflowSct + } + 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: GenesisContent: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GenesisContent: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SctParams", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSct + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSct + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSct + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SctParams == nil { + m.SctParams = &SctParameters{} + } + if err := m.SctParams.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSct(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthSct + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } -func (m *EventBlockRoot) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Root != nil { - l = m.Root.Size() - n += 1 + l + sovSct(uint64(l)) - } - if m.Height != 0 { - n += 1 + sovSct(uint64(m.Height)) + if iNdEx > l { + return io.ErrUnexpectedEOF } - return n + return nil } +func (m *Epoch) 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 ErrIntOverflowSct + } + 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: Epoch: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Epoch: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType) + } + m.Index = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSct + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Index |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field StartHeight", wireType) + } + m.StartHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSct + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.StartHeight |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipSct(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthSct + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } -func sovSct(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozSct(x uint64) (n int) { - return sovSct(uint64((x << 1) ^ uint64((int64(x) >> 63)))) + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil } func (m *CommitmentSource) Unmarshal(dAtA []byte) error { l := len(dAtA) @@ -2456,7 +3213,7 @@ func (m *EventCommitment) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Commitment == nil { - m.Commitment = &v1alpha1.StateCommitment{} + m.Commitment = &v1.StateCommitment{} } if err := m.Commitment.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -2597,7 +3354,7 @@ func (m *EventAnchor) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Anchor == nil { - m.Anchor = &v1alpha1.MerkleRoot{} + m.Anchor = &v1.MerkleRoot{} } if err := m.Anchor.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -2702,7 +3459,7 @@ func (m *EventEpochRoot) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Root == nil { - m.Root = &v1alpha1.MerkleRoot{} + m.Root = &v1.MerkleRoot{} } if err := m.Root.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -2807,7 +3564,7 @@ func (m *EventBlockRoot) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Root == nil { - m.Root = &v1alpha1.MerkleRoot{} + m.Root = &v1.MerkleRoot{} } if err := m.Root.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -2853,6 +3610,161 @@ func (m *EventBlockRoot) Unmarshal(dAtA []byte) error { } return nil } +func (m *EpochByHeightRequest) 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 ErrIntOverflowSct + } + 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: EpochByHeightRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EpochByHeightRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) + } + m.Height = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSct + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Height |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipSct(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthSct + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *EpochByHeightResponse) 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 ErrIntOverflowSct + } + 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: EpochByHeightResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EpochByHeightResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Epoch", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSct + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSct + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSct + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Epoch == nil { + m.Epoch = &Epoch{} + } + if err := m.Epoch.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSct(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthSct + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func skipSct(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 diff --git a/relayer/chains/penumbra/core/component/shielded_pool/v1alpha1/shielded_pool.pb.go b/relayer/chains/penumbra/core/component/shielded_pool/v1/shielded_pool.pb.go similarity index 82% rename from relayer/chains/penumbra/core/component/shielded_pool/v1alpha1/shielded_pool.pb.go rename to relayer/chains/penumbra/core/component/shielded_pool/v1/shielded_pool.pb.go index 2c1b00690..3962a79bf 100644 --- a/relayer/chains/penumbra/core/component/shielded_pool/v1alpha1/shielded_pool.pb.go +++ b/relayer/chains/penumbra/core/component/shielded_pool/v1/shielded_pool.pb.go @@ -1,19 +1,19 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: penumbra/core/component/shielded_pool/v1alpha1/shielded_pool.proto +// source: penumbra/core/component/shielded_pool/v1/shielded_pool.proto -package shielded_poolv1alpha1 +package shielded_poolv1 import ( context "context" fmt "fmt" grpc1 "github.com/cosmos/gogoproto/grpc" proto "github.com/cosmos/gogoproto/proto" - v1alpha1 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/asset/v1alpha1" - v1alpha14 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/component/sct/v1alpha1" - v1alpha11 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/keys/v1alpha1" - v1alpha15 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/num/v1alpha1" - v1alpha13 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/crypto/decaf377_rdsa/v1alpha1" - v1alpha12 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/crypto/tct/v1alpha1" + v12 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/asset/v1" + v15 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/component/sct/v1" + v11 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/keys/v1" + v1 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/num/v1" + v14 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/crypto/decaf377_rdsa/v1" + v13 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/crypto/tct/v1" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -33,17 +33,229 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +// Configuration data for the shielded pool component. +type ShieldedPoolParameters struct { + FixedFmdParams *FmdParameters `protobuf:"bytes,1,opt,name=fixed_fmd_params,json=fixedFmdParams,proto3" json:"fixed_fmd_params,omitempty"` +} + +func (m *ShieldedPoolParameters) Reset() { *m = ShieldedPoolParameters{} } +func (m *ShieldedPoolParameters) String() string { return proto.CompactTextString(m) } +func (*ShieldedPoolParameters) ProtoMessage() {} +func (*ShieldedPoolParameters) Descriptor() ([]byte, []int) { + return fileDescriptor_26a9f446de1cd73c, []int{0} +} +func (m *ShieldedPoolParameters) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ShieldedPoolParameters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ShieldedPoolParameters.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 *ShieldedPoolParameters) XXX_Merge(src proto.Message) { + xxx_messageInfo_ShieldedPoolParameters.Merge(m, src) +} +func (m *ShieldedPoolParameters) XXX_Size() int { + return m.Size() +} +func (m *ShieldedPoolParameters) XXX_DiscardUnknown() { + xxx_messageInfo_ShieldedPoolParameters.DiscardUnknown(m) +} + +var xxx_messageInfo_ShieldedPoolParameters proto.InternalMessageInfo + +func (m *ShieldedPoolParameters) GetFixedFmdParams() *FmdParameters { + if m != nil { + return m.FixedFmdParams + } + return nil +} + +// Genesis data for the shielded pool component. +type GenesisContent struct { + ShieldedPoolParams *ShieldedPoolParameters `protobuf:"bytes,1,opt,name=shielded_pool_params,json=shieldedPoolParams,proto3" json:"shielded_pool_params,omitempty"` + // The allocations present at genesis + Allocations []*GenesisContent_Allocation `protobuf:"bytes,3,rep,name=allocations,proto3" json:"allocations,omitempty"` +} + +func (m *GenesisContent) Reset() { *m = GenesisContent{} } +func (m *GenesisContent) String() string { return proto.CompactTextString(m) } +func (*GenesisContent) ProtoMessage() {} +func (*GenesisContent) Descriptor() ([]byte, []int) { + return fileDescriptor_26a9f446de1cd73c, []int{1} +} +func (m *GenesisContent) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GenesisContent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GenesisContent.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 *GenesisContent) XXX_Merge(src proto.Message) { + xxx_messageInfo_GenesisContent.Merge(m, src) +} +func (m *GenesisContent) XXX_Size() int { + return m.Size() +} +func (m *GenesisContent) XXX_DiscardUnknown() { + xxx_messageInfo_GenesisContent.DiscardUnknown(m) +} + +var xxx_messageInfo_GenesisContent proto.InternalMessageInfo + +func (m *GenesisContent) GetShieldedPoolParams() *ShieldedPoolParameters { + if m != nil { + return m.ShieldedPoolParams + } + return nil +} + +func (m *GenesisContent) GetAllocations() []*GenesisContent_Allocation { + if m != nil { + return m.Allocations + } + return nil +} + +type GenesisContent_Allocation struct { + Amount *v1.Amount `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"` + Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"` + Address *v11.Address `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"` +} + +func (m *GenesisContent_Allocation) Reset() { *m = GenesisContent_Allocation{} } +func (m *GenesisContent_Allocation) String() string { return proto.CompactTextString(m) } +func (*GenesisContent_Allocation) ProtoMessage() {} +func (*GenesisContent_Allocation) Descriptor() ([]byte, []int) { + return fileDescriptor_26a9f446de1cd73c, []int{1, 0} +} +func (m *GenesisContent_Allocation) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GenesisContent_Allocation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GenesisContent_Allocation.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 *GenesisContent_Allocation) XXX_Merge(src proto.Message) { + xxx_messageInfo_GenesisContent_Allocation.Merge(m, src) +} +func (m *GenesisContent_Allocation) XXX_Size() int { + return m.Size() +} +func (m *GenesisContent_Allocation) XXX_DiscardUnknown() { + xxx_messageInfo_GenesisContent_Allocation.DiscardUnknown(m) +} + +var xxx_messageInfo_GenesisContent_Allocation proto.InternalMessageInfo + +func (m *GenesisContent_Allocation) GetAmount() *v1.Amount { + if m != nil { + return m.Amount + } + return nil +} + +func (m *GenesisContent_Allocation) GetDenom() string { + if m != nil { + return m.Denom + } + return "" +} + +func (m *GenesisContent_Allocation) GetAddress() *v11.Address { + if m != nil { + return m.Address + } + return nil +} + +// Parameters for Fuzzy Message Detection +type FmdParameters struct { + PrecisionBits uint32 `protobuf:"varint,1,opt,name=precision_bits,json=precisionBits,proto3" json:"precision_bits,omitempty"` + AsOfBlockHeight uint64 `protobuf:"varint,2,opt,name=as_of_block_height,json=asOfBlockHeight,proto3" json:"as_of_block_height,omitempty"` +} + +func (m *FmdParameters) Reset() { *m = FmdParameters{} } +func (m *FmdParameters) String() string { return proto.CompactTextString(m) } +func (*FmdParameters) ProtoMessage() {} +func (*FmdParameters) Descriptor() ([]byte, []int) { + return fileDescriptor_26a9f446de1cd73c, []int{2} +} +func (m *FmdParameters) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FmdParameters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_FmdParameters.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 *FmdParameters) XXX_Merge(src proto.Message) { + xxx_messageInfo_FmdParameters.Merge(m, src) +} +func (m *FmdParameters) XXX_Size() int { + return m.Size() +} +func (m *FmdParameters) XXX_DiscardUnknown() { + xxx_messageInfo_FmdParameters.DiscardUnknown(m) +} + +var xxx_messageInfo_FmdParameters proto.InternalMessageInfo + +func (m *FmdParameters) GetPrecisionBits() uint32 { + if m != nil { + return m.PrecisionBits + } + return 0 +} + +func (m *FmdParameters) GetAsOfBlockHeight() uint64 { + if m != nil { + return m.AsOfBlockHeight + } + return 0 +} + type Note struct { - Value *v1alpha1.Value `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` - Rseed []byte `protobuf:"bytes,2,opt,name=rseed,proto3" json:"rseed,omitempty"` - Address *v1alpha11.Address `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"` + Value *v12.Value `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` + Rseed []byte `protobuf:"bytes,2,opt,name=rseed,proto3" json:"rseed,omitempty"` + Address *v11.Address `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"` } func (m *Note) Reset() { *m = Note{} } func (m *Note) String() string { return proto.CompactTextString(m) } func (*Note) ProtoMessage() {} func (*Note) Descriptor() ([]byte, []int) { - return fileDescriptor_aa12195337df7d3c, []int{0} + return fileDescriptor_26a9f446de1cd73c, []int{3} } func (m *Note) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -72,7 +284,7 @@ func (m *Note) XXX_DiscardUnknown() { var xxx_messageInfo_Note proto.InternalMessageInfo -func (m *Note) GetValue() *v1alpha1.Value { +func (m *Note) GetValue() *v12.Value { if m != nil { return m.Value } @@ -86,7 +298,7 @@ func (m *Note) GetRseed() []byte { return nil } -func (m *Note) GetAddress() *v1alpha11.Address { +func (m *Note) GetAddress() *v11.Address { if m != nil { return m.Address } @@ -94,16 +306,16 @@ func (m *Note) GetAddress() *v1alpha11.Address { } type NoteView struct { - Value *v1alpha1.ValueView `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` - Rseed []byte `protobuf:"bytes,2,opt,name=rseed,proto3" json:"rseed,omitempty"` - Address *v1alpha11.AddressView `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"` + Value *v12.ValueView `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` + Rseed []byte `protobuf:"bytes,2,opt,name=rseed,proto3" json:"rseed,omitempty"` + Address *v11.AddressView `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"` } func (m *NoteView) Reset() { *m = NoteView{} } func (m *NoteView) String() string { return proto.CompactTextString(m) } func (*NoteView) ProtoMessage() {} func (*NoteView) Descriptor() ([]byte, []int) { - return fileDescriptor_aa12195337df7d3c, []int{1} + return fileDescriptor_26a9f446de1cd73c, []int{4} } func (m *NoteView) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -132,7 +344,7 @@ func (m *NoteView) XXX_DiscardUnknown() { var xxx_messageInfo_NoteView proto.InternalMessageInfo -func (m *NoteView) GetValue() *v1alpha1.ValueView { +func (m *NoteView) GetValue() *v12.ValueView { if m != nil { return m.Value } @@ -146,7 +358,7 @@ func (m *NoteView) GetRseed() []byte { return nil } -func (m *NoteView) GetAddress() *v1alpha11.AddressView { +func (m *NoteView) GetAddress() *v11.AddressView { if m != nil { return m.Address } @@ -154,7 +366,7 @@ func (m *NoteView) GetAddress() *v1alpha11.AddressView { } // An encrypted note. -// 132 = 1(type) + 11(d) + 8(amount) + 32(asset_id) + 32(rcm) + 32(pk_d) + 16(MAC) bytes. +// 176 = 80(address) + 16(amount) + 32(asset ID) + 32(rseed) + 16(MAC) bytes. type NoteCiphertext struct { Inner []byte `protobuf:"bytes,1,opt,name=inner,proto3" json:"inner,omitempty"` } @@ -163,7 +375,7 @@ func (m *NoteCiphertext) Reset() { *m = NoteCiphertext{} } func (m *NoteCiphertext) String() string { return proto.CompactTextString(m) } func (*NoteCiphertext) ProtoMessage() {} func (*NoteCiphertext) Descriptor() ([]byte, []int) { - return fileDescriptor_aa12195337df7d3c, []int{2} + return fileDescriptor_26a9f446de1cd73c, []int{5} } func (m *NoteCiphertext) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -203,11 +415,11 @@ func (m *NoteCiphertext) GetInner() []byte { // data required to scan and process the output. type NotePayload struct { // The note commitment for the output note. 32 bytes. - NoteCommitment *v1alpha12.StateCommitment `protobuf:"bytes,1,opt,name=note_commitment,json=noteCommitment,proto3" json:"note_commitment,omitempty"` + NoteCommitment *v13.StateCommitment `protobuf:"bytes,1,opt,name=note_commitment,json=noteCommitment,proto3" json:"note_commitment,omitempty"` // The encoding of an ephemeral public key. 32 bytes. EphemeralKey []byte `protobuf:"bytes,2,opt,name=ephemeral_key,json=ephemeralKey,proto3" json:"ephemeral_key,omitempty"` // An encryption of the newly created note. - // 132 = 1(type) + 11(d) + 8(amount) + 32(asset_id) + 32(rcm) + 32(pk_d) + 16(MAC) bytes. + // 176 = 80(address) + 16(amount) + 32(asset ID) + 32(rseed) + 16(MAC) bytes. EncryptedNote *NoteCiphertext `protobuf:"bytes,3,opt,name=encrypted_note,json=encryptedNote,proto3" json:"encrypted_note,omitempty"` } @@ -215,7 +427,7 @@ func (m *NotePayload) Reset() { *m = NotePayload{} } func (m *NotePayload) String() string { return proto.CompactTextString(m) } func (*NotePayload) ProtoMessage() {} func (*NotePayload) Descriptor() ([]byte, []int) { - return fileDescriptor_aa12195337df7d3c, []int{3} + return fileDescriptor_26a9f446de1cd73c, []int{6} } func (m *NotePayload) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -244,7 +456,7 @@ func (m *NotePayload) XXX_DiscardUnknown() { var xxx_messageInfo_NotePayload proto.InternalMessageInfo -func (m *NotePayload) GetNoteCommitment() *v1alpha12.StateCommitment { +func (m *NotePayload) GetNoteCommitment() *v13.StateCommitment { if m != nil { return m.NoteCommitment } @@ -274,7 +486,7 @@ func (m *ZKOutputProof) Reset() { *m = ZKOutputProof{} } func (m *ZKOutputProof) String() string { return proto.CompactTextString(m) } func (*ZKOutputProof) ProtoMessage() {} func (*ZKOutputProof) Descriptor() ([]byte, []int) { - return fileDescriptor_aa12195337df7d3c, []int{4} + return fileDescriptor_26a9f446de1cd73c, []int{7} } func (m *ZKOutputProof) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -319,7 +531,7 @@ func (m *ZKSpendProof) Reset() { *m = ZKSpendProof{} } func (m *ZKSpendProof) String() string { return proto.CompactTextString(m) } func (*ZKSpendProof) ProtoMessage() {} func (*ZKSpendProof) Descriptor() ([]byte, []int) { - return fileDescriptor_aa12195337df7d3c, []int{5} + return fileDescriptor_26a9f446de1cd73c, []int{8} } func (m *ZKSpendProof) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -364,7 +576,7 @@ func (m *ZKNullifierDerivationProof) Reset() { *m = ZKNullifierDerivatio func (m *ZKNullifierDerivationProof) String() string { return proto.CompactTextString(m) } func (*ZKNullifierDerivationProof) ProtoMessage() {} func (*ZKNullifierDerivationProof) Descriptor() ([]byte, []int) { - return fileDescriptor_aa12195337df7d3c, []int{6} + return fileDescriptor_26a9f446de1cd73c, []int{9} } func (m *ZKNullifierDerivationProof) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -405,7 +617,7 @@ type Spend struct { // The effecting data of the spend. Body *SpendBody `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"` // The authorizing signature for the spend. - AuthSig *v1alpha13.SpendAuthSignature `protobuf:"bytes,2,opt,name=auth_sig,json=authSig,proto3" json:"auth_sig,omitempty"` + AuthSig *v14.SpendAuthSignature `protobuf:"bytes,2,opt,name=auth_sig,json=authSig,proto3" json:"auth_sig,omitempty"` // The proof that the spend is well-formed is authorizing data. Proof *ZKSpendProof `protobuf:"bytes,3,opt,name=proof,proto3" json:"proof,omitempty"` } @@ -414,7 +626,7 @@ func (m *Spend) Reset() { *m = Spend{} } func (m *Spend) String() string { return proto.CompactTextString(m) } func (*Spend) ProtoMessage() {} func (*Spend) Descriptor() ([]byte, []int) { - return fileDescriptor_aa12195337df7d3c, []int{7} + return fileDescriptor_26a9f446de1cd73c, []int{10} } func (m *Spend) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -450,7 +662,7 @@ func (m *Spend) GetBody() *SpendBody { return nil } -func (m *Spend) GetAuthSig() *v1alpha13.SpendAuthSignature { +func (m *Spend) GetAuthSig() *v14.SpendAuthSignature { if m != nil { return m.AuthSig } @@ -466,14 +678,14 @@ func (m *Spend) GetProof() *ZKSpendProof { // ABCI Event recording a spend. type EventSpend struct { - Nullifier *v1alpha14.Nullifier `protobuf:"bytes,1,opt,name=nullifier,proto3" json:"nullifier,omitempty"` + Nullifier *v15.Nullifier `protobuf:"bytes,1,opt,name=nullifier,proto3" json:"nullifier,omitempty"` } func (m *EventSpend) Reset() { *m = EventSpend{} } func (m *EventSpend) String() string { return proto.CompactTextString(m) } func (*EventSpend) ProtoMessage() {} func (*EventSpend) Descriptor() ([]byte, []int) { - return fileDescriptor_aa12195337df7d3c, []int{8} + return fileDescriptor_26a9f446de1cd73c, []int{11} } func (m *EventSpend) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -502,7 +714,7 @@ func (m *EventSpend) XXX_DiscardUnknown() { var xxx_messageInfo_EventSpend proto.InternalMessageInfo -func (m *EventSpend) GetNullifier() *v1alpha14.Nullifier { +func (m *EventSpend) GetNullifier() *v15.Nullifier { if m != nil { return m.Nullifier } @@ -511,14 +723,14 @@ func (m *EventSpend) GetNullifier() *v1alpha14.Nullifier { // ABCI Event recording an output. type EventOutput struct { - NoteCommitment *v1alpha12.StateCommitment `protobuf:"bytes,1,opt,name=note_commitment,json=noteCommitment,proto3" json:"note_commitment,omitempty"` + NoteCommitment *v13.StateCommitment `protobuf:"bytes,1,opt,name=note_commitment,json=noteCommitment,proto3" json:"note_commitment,omitempty"` } func (m *EventOutput) Reset() { *m = EventOutput{} } func (m *EventOutput) String() string { return proto.CompactTextString(m) } func (*EventOutput) ProtoMessage() {} func (*EventOutput) Descriptor() ([]byte, []int) { - return fileDescriptor_aa12195337df7d3c, []int{9} + return fileDescriptor_26a9f446de1cd73c, []int{12} } func (m *EventOutput) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -547,7 +759,7 @@ func (m *EventOutput) XXX_DiscardUnknown() { var xxx_messageInfo_EventOutput proto.InternalMessageInfo -func (m *EventOutput) GetNoteCommitment() *v1alpha12.StateCommitment { +func (m *EventOutput) GetNoteCommitment() *v13.StateCommitment { if m != nil { return m.NoteCommitment } @@ -559,18 +771,18 @@ func (m *EventOutput) GetNoteCommitment() *v1alpha12.StateCommitment { // those changes to be performed. type SpendBody struct { // A commitment to the value of the input note. - BalanceCommitment *v1alpha1.BalanceCommitment `protobuf:"bytes,1,opt,name=balance_commitment,json=balanceCommitment,proto3" json:"balance_commitment,omitempty"` + BalanceCommitment *v12.BalanceCommitment `protobuf:"bytes,1,opt,name=balance_commitment,json=balanceCommitment,proto3" json:"balance_commitment,omitempty"` // The nullifier of the input note. - Nullifier *v1alpha14.Nullifier `protobuf:"bytes,6,opt,name=nullifier,proto3" json:"nullifier,omitempty"` + Nullifier *v15.Nullifier `protobuf:"bytes,6,opt,name=nullifier,proto3" json:"nullifier,omitempty"` // The randomized validating key for the spend authorization signature. - Rk *v1alpha13.SpendVerificationKey `protobuf:"bytes,4,opt,name=rk,proto3" json:"rk,omitempty"` + Rk *v14.SpendVerificationKey `protobuf:"bytes,4,opt,name=rk,proto3" json:"rk,omitempty"` } func (m *SpendBody) Reset() { *m = SpendBody{} } func (m *SpendBody) String() string { return proto.CompactTextString(m) } func (*SpendBody) ProtoMessage() {} func (*SpendBody) Descriptor() ([]byte, []int) { - return fileDescriptor_aa12195337df7d3c, []int{10} + return fileDescriptor_26a9f446de1cd73c, []int{13} } func (m *SpendBody) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -599,21 +811,21 @@ func (m *SpendBody) XXX_DiscardUnknown() { var xxx_messageInfo_SpendBody proto.InternalMessageInfo -func (m *SpendBody) GetBalanceCommitment() *v1alpha1.BalanceCommitment { +func (m *SpendBody) GetBalanceCommitment() *v12.BalanceCommitment { if m != nil { return m.BalanceCommitment } return nil } -func (m *SpendBody) GetNullifier() *v1alpha14.Nullifier { +func (m *SpendBody) GetNullifier() *v15.Nullifier { if m != nil { return m.Nullifier } return nil } -func (m *SpendBody) GetRk() *v1alpha13.SpendVerificationKey { +func (m *SpendBody) GetRk() *v14.SpendVerificationKey { if m != nil { return m.Rk } @@ -632,7 +844,7 @@ func (m *SpendView) Reset() { *m = SpendView{} } func (m *SpendView) String() string { return proto.CompactTextString(m) } func (*SpendView) ProtoMessage() {} func (*SpendView) Descriptor() ([]byte, []int) { - return fileDescriptor_aa12195337df7d3c, []int{11} + return fileDescriptor_26a9f446de1cd73c, []int{14} } func (m *SpendView) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -715,7 +927,7 @@ func (m *SpendView_Visible) Reset() { *m = SpendView_Visible{} } func (m *SpendView_Visible) String() string { return proto.CompactTextString(m) } func (*SpendView_Visible) ProtoMessage() {} func (*SpendView_Visible) Descriptor() ([]byte, []int) { - return fileDescriptor_aa12195337df7d3c, []int{11, 0} + return fileDescriptor_26a9f446de1cd73c, []int{14, 0} } func (m *SpendView_Visible) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -766,7 +978,7 @@ func (m *SpendView_Opaque) Reset() { *m = SpendView_Opaque{} } func (m *SpendView_Opaque) String() string { return proto.CompactTextString(m) } func (*SpendView_Opaque) ProtoMessage() {} func (*SpendView_Opaque) Descriptor() ([]byte, []int) { - return fileDescriptor_aa12195337df7d3c, []int{11, 1} + return fileDescriptor_26a9f446de1cd73c, []int{14, 1} } func (m *SpendView_Opaque) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -821,7 +1033,7 @@ func (m *SpendPlan) Reset() { *m = SpendPlan{} } func (m *SpendPlan) String() string { return proto.CompactTextString(m) } func (*SpendPlan) ProtoMessage() {} func (*SpendPlan) Descriptor() ([]byte, []int) { - return fileDescriptor_aa12195337df7d3c, []int{12} + return fileDescriptor_26a9f446de1cd73c, []int{15} } func (m *SpendPlan) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -904,7 +1116,7 @@ func (m *Output) Reset() { *m = Output{} } func (m *Output) String() string { return proto.CompactTextString(m) } func (*Output) ProtoMessage() {} func (*Output) Descriptor() ([]byte, []int) { - return fileDescriptor_aa12195337df7d3c, []int{13} + return fileDescriptor_26a9f446de1cd73c, []int{16} } func (m *Output) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -954,7 +1166,7 @@ type OutputBody struct { // The minimal data required to scan and process the new output note. NotePayload *NotePayload `protobuf:"bytes,1,opt,name=note_payload,json=notePayload,proto3" json:"note_payload,omitempty"` // A commitment to the value of the output note. 32 bytes. - BalanceCommitment *v1alpha1.BalanceCommitment `protobuf:"bytes,2,opt,name=balance_commitment,json=balanceCommitment,proto3" json:"balance_commitment,omitempty"` + BalanceCommitment *v12.BalanceCommitment `protobuf:"bytes,2,opt,name=balance_commitment,json=balanceCommitment,proto3" json:"balance_commitment,omitempty"` // An encrypted key for decrypting the memo. WrappedMemoKey []byte `protobuf:"bytes,3,opt,name=wrapped_memo_key,json=wrappedMemoKey,proto3" json:"wrapped_memo_key,omitempty"` // The key material used for note encryption, wrapped in encryption to the @@ -966,7 +1178,7 @@ func (m *OutputBody) Reset() { *m = OutputBody{} } func (m *OutputBody) String() string { return proto.CompactTextString(m) } func (*OutputBody) ProtoMessage() {} func (*OutputBody) Descriptor() ([]byte, []int) { - return fileDescriptor_aa12195337df7d3c, []int{14} + return fileDescriptor_26a9f446de1cd73c, []int{17} } func (m *OutputBody) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1002,7 +1214,7 @@ func (m *OutputBody) GetNotePayload() *NotePayload { return nil } -func (m *OutputBody) GetBalanceCommitment() *v1alpha1.BalanceCommitment { +func (m *OutputBody) GetBalanceCommitment() *v12.BalanceCommitment { if m != nil { return m.BalanceCommitment } @@ -1035,7 +1247,7 @@ func (m *OutputView) Reset() { *m = OutputView{} } func (m *OutputView) String() string { return proto.CompactTextString(m) } func (*OutputView) ProtoMessage() {} func (*OutputView) Descriptor() ([]byte, []int) { - return fileDescriptor_aa12195337df7d3c, []int{15} + return fileDescriptor_26a9f446de1cd73c, []int{18} } func (m *OutputView) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1110,16 +1322,16 @@ func (*OutputView) XXX_OneofWrappers() []interface{} { } type OutputView_Visible struct { - Output *Output `protobuf:"bytes,1,opt,name=output,proto3" json:"output,omitempty"` - Note *NoteView `protobuf:"bytes,2,opt,name=note,proto3" json:"note,omitempty"` - PayloadKey *v1alpha11.PayloadKey `protobuf:"bytes,3,opt,name=payload_key,json=payloadKey,proto3" json:"payload_key,omitempty"` + Output *Output `protobuf:"bytes,1,opt,name=output,proto3" json:"output,omitempty"` + Note *NoteView `protobuf:"bytes,2,opt,name=note,proto3" json:"note,omitempty"` + PayloadKey *v11.PayloadKey `protobuf:"bytes,3,opt,name=payload_key,json=payloadKey,proto3" json:"payload_key,omitempty"` } func (m *OutputView_Visible) Reset() { *m = OutputView_Visible{} } func (m *OutputView_Visible) String() string { return proto.CompactTextString(m) } func (*OutputView_Visible) ProtoMessage() {} func (*OutputView_Visible) Descriptor() ([]byte, []int) { - return fileDescriptor_aa12195337df7d3c, []int{15, 0} + return fileDescriptor_26a9f446de1cd73c, []int{18, 0} } func (m *OutputView_Visible) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1162,7 +1374,7 @@ func (m *OutputView_Visible) GetNote() *NoteView { return nil } -func (m *OutputView_Visible) GetPayloadKey() *v1alpha11.PayloadKey { +func (m *OutputView_Visible) GetPayloadKey() *v11.PayloadKey { if m != nil { return m.PayloadKey } @@ -1177,7 +1389,7 @@ func (m *OutputView_Opaque) Reset() { *m = OutputView_Opaque{} } func (m *OutputView_Opaque) String() string { return proto.CompactTextString(m) } func (*OutputView_Opaque) ProtoMessage() {} func (*OutputView_Opaque) Descriptor() ([]byte, []int) { - return fileDescriptor_aa12195337df7d3c, []int{15, 1} + return fileDescriptor_26a9f446de1cd73c, []int{18, 1} } func (m *OutputView_Opaque) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1215,9 +1427,9 @@ func (m *OutputView_Opaque) GetOutput() *Output { type OutputPlan struct { // The value to send to this output. - Value *v1alpha1.Value `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` + Value *v12.Value `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` // The destination address to send it to. - DestAddress *v1alpha11.Address `protobuf:"bytes,2,opt,name=dest_address,json=destAddress,proto3" json:"dest_address,omitempty"` + DestAddress *v11.Address `protobuf:"bytes,2,opt,name=dest_address,json=destAddress,proto3" json:"dest_address,omitempty"` // The rseed to use for the new note. Rseed []byte `protobuf:"bytes,3,opt,name=rseed,proto3" json:"rseed,omitempty"` // The blinding factor to use for the value commitment. @@ -1232,7 +1444,7 @@ func (m *OutputPlan) Reset() { *m = OutputPlan{} } func (m *OutputPlan) String() string { return proto.CompactTextString(m) } func (*OutputPlan) ProtoMessage() {} func (*OutputPlan) Descriptor() ([]byte, []int) { - return fileDescriptor_aa12195337df7d3c, []int{16} + return fileDescriptor_26a9f446de1cd73c, []int{19} } func (m *OutputPlan) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1261,14 +1473,14 @@ func (m *OutputPlan) XXX_DiscardUnknown() { var xxx_messageInfo_OutputPlan proto.InternalMessageInfo -func (m *OutputPlan) GetValue() *v1alpha1.Value { +func (m *OutputPlan) GetValue() *v12.Value { if m != nil { return m.Value } return nil } -func (m *OutputPlan) GetDestAddress() *v1alpha11.Address { +func (m *OutputPlan) GetDestAddress() *v11.Address { if m != nil { return m.DestAddress } @@ -1304,25 +1516,23 @@ func (m *OutputPlan) GetProofBlindingS() []byte { } // Requests information on an asset by asset id -type DenomMetadataByIdRequest struct { - // The expected chain id (empty string if no expectation). - ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` +type AssetMetadataByIdRequest struct { // The asset id to request information on. - AssetId *v1alpha1.AssetId `protobuf:"bytes,2,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"` + AssetId *v12.AssetId `protobuf:"bytes,2,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"` } -func (m *DenomMetadataByIdRequest) Reset() { *m = DenomMetadataByIdRequest{} } -func (m *DenomMetadataByIdRequest) String() string { return proto.CompactTextString(m) } -func (*DenomMetadataByIdRequest) ProtoMessage() {} -func (*DenomMetadataByIdRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_aa12195337df7d3c, []int{17} +func (m *AssetMetadataByIdRequest) Reset() { *m = AssetMetadataByIdRequest{} } +func (m *AssetMetadataByIdRequest) String() string { return proto.CompactTextString(m) } +func (*AssetMetadataByIdRequest) ProtoMessage() {} +func (*AssetMetadataByIdRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_26a9f446de1cd73c, []int{20} } -func (m *DenomMetadataByIdRequest) XXX_Unmarshal(b []byte) error { +func (m *AssetMetadataByIdRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *DenomMetadataByIdRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *AssetMetadataByIdRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_DenomMetadataByIdRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_AssetMetadataByIdRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1332,51 +1542,44 @@ func (m *DenomMetadataByIdRequest) XXX_Marshal(b []byte, deterministic bool) ([] return b[:n], nil } } -func (m *DenomMetadataByIdRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_DenomMetadataByIdRequest.Merge(m, src) +func (m *AssetMetadataByIdRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_AssetMetadataByIdRequest.Merge(m, src) } -func (m *DenomMetadataByIdRequest) XXX_Size() int { +func (m *AssetMetadataByIdRequest) XXX_Size() int { return m.Size() } -func (m *DenomMetadataByIdRequest) XXX_DiscardUnknown() { - xxx_messageInfo_DenomMetadataByIdRequest.DiscardUnknown(m) +func (m *AssetMetadataByIdRequest) XXX_DiscardUnknown() { + xxx_messageInfo_AssetMetadataByIdRequest.DiscardUnknown(m) } -var xxx_messageInfo_DenomMetadataByIdRequest proto.InternalMessageInfo +var xxx_messageInfo_AssetMetadataByIdRequest proto.InternalMessageInfo -func (m *DenomMetadataByIdRequest) GetChainId() string { - if m != nil { - return m.ChainId - } - return "" -} - -func (m *DenomMetadataByIdRequest) GetAssetId() *v1alpha1.AssetId { +func (m *AssetMetadataByIdRequest) GetAssetId() *v12.AssetId { if m != nil { return m.AssetId } return nil } -type DenomMetadataByIdResponse struct { +type AssetMetadataByIdResponse struct { // If present, information on the requested asset. // // If the requested asset was unknown, this field will not be present. - DenomMetadata *v1alpha1.DenomMetadata `protobuf:"bytes,1,opt,name=denom_metadata,json=denomMetadata,proto3" json:"denom_metadata,omitempty"` + DenomMetadata *v12.Metadata `protobuf:"bytes,1,opt,name=denom_metadata,json=denomMetadata,proto3" json:"denom_metadata,omitempty"` } -func (m *DenomMetadataByIdResponse) Reset() { *m = DenomMetadataByIdResponse{} } -func (m *DenomMetadataByIdResponse) String() string { return proto.CompactTextString(m) } -func (*DenomMetadataByIdResponse) ProtoMessage() {} -func (*DenomMetadataByIdResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_aa12195337df7d3c, []int{18} +func (m *AssetMetadataByIdResponse) Reset() { *m = AssetMetadataByIdResponse{} } +func (m *AssetMetadataByIdResponse) String() string { return proto.CompactTextString(m) } +func (*AssetMetadataByIdResponse) ProtoMessage() {} +func (*AssetMetadataByIdResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_26a9f446de1cd73c, []int{21} } -func (m *DenomMetadataByIdResponse) XXX_Unmarshal(b []byte) error { +func (m *AssetMetadataByIdResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *DenomMetadataByIdResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *AssetMetadataByIdResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_DenomMetadataByIdResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_AssetMetadataByIdResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1386,337 +1589,410 @@ func (m *DenomMetadataByIdResponse) XXX_Marshal(b []byte, deterministic bool) ([ return b[:n], nil } } -func (m *DenomMetadataByIdResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_DenomMetadataByIdResponse.Merge(m, src) +func (m *AssetMetadataByIdResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_AssetMetadataByIdResponse.Merge(m, src) } -func (m *DenomMetadataByIdResponse) XXX_Size() int { +func (m *AssetMetadataByIdResponse) XXX_Size() int { return m.Size() } -func (m *DenomMetadataByIdResponse) XXX_DiscardUnknown() { - xxx_messageInfo_DenomMetadataByIdResponse.DiscardUnknown(m) +func (m *AssetMetadataByIdResponse) XXX_DiscardUnknown() { + xxx_messageInfo_AssetMetadataByIdResponse.DiscardUnknown(m) } -var xxx_messageInfo_DenomMetadataByIdResponse proto.InternalMessageInfo +var xxx_messageInfo_AssetMetadataByIdResponse proto.InternalMessageInfo -func (m *DenomMetadataByIdResponse) GetDenomMetadata() *v1alpha1.DenomMetadata { +func (m *AssetMetadataByIdResponse) GetDenomMetadata() *v12.Metadata { if m != nil { return m.DenomMetadata } return nil } -// Genesis data for the shielded pool component. -type GenesisContent struct { - // The allocations present at genesis - Allocations []*GenesisContent_Allocation `protobuf:"bytes,2,rep,name=allocations,proto3" json:"allocations,omitempty"` +func init() { + proto.RegisterType((*ShieldedPoolParameters)(nil), "penumbra.core.component.shielded_pool.v1.ShieldedPoolParameters") + proto.RegisterType((*GenesisContent)(nil), "penumbra.core.component.shielded_pool.v1.GenesisContent") + proto.RegisterType((*GenesisContent_Allocation)(nil), "penumbra.core.component.shielded_pool.v1.GenesisContent.Allocation") + proto.RegisterType((*FmdParameters)(nil), "penumbra.core.component.shielded_pool.v1.FmdParameters") + proto.RegisterType((*Note)(nil), "penumbra.core.component.shielded_pool.v1.Note") + proto.RegisterType((*NoteView)(nil), "penumbra.core.component.shielded_pool.v1.NoteView") + proto.RegisterType((*NoteCiphertext)(nil), "penumbra.core.component.shielded_pool.v1.NoteCiphertext") + proto.RegisterType((*NotePayload)(nil), "penumbra.core.component.shielded_pool.v1.NotePayload") + proto.RegisterType((*ZKOutputProof)(nil), "penumbra.core.component.shielded_pool.v1.ZKOutputProof") + proto.RegisterType((*ZKSpendProof)(nil), "penumbra.core.component.shielded_pool.v1.ZKSpendProof") + proto.RegisterType((*ZKNullifierDerivationProof)(nil), "penumbra.core.component.shielded_pool.v1.ZKNullifierDerivationProof") + proto.RegisterType((*Spend)(nil), "penumbra.core.component.shielded_pool.v1.Spend") + proto.RegisterType((*EventSpend)(nil), "penumbra.core.component.shielded_pool.v1.EventSpend") + proto.RegisterType((*EventOutput)(nil), "penumbra.core.component.shielded_pool.v1.EventOutput") + proto.RegisterType((*SpendBody)(nil), "penumbra.core.component.shielded_pool.v1.SpendBody") + proto.RegisterType((*SpendView)(nil), "penumbra.core.component.shielded_pool.v1.SpendView") + proto.RegisterType((*SpendView_Visible)(nil), "penumbra.core.component.shielded_pool.v1.SpendView.Visible") + proto.RegisterType((*SpendView_Opaque)(nil), "penumbra.core.component.shielded_pool.v1.SpendView.Opaque") + proto.RegisterType((*SpendPlan)(nil), "penumbra.core.component.shielded_pool.v1.SpendPlan") + proto.RegisterType((*Output)(nil), "penumbra.core.component.shielded_pool.v1.Output") + proto.RegisterType((*OutputBody)(nil), "penumbra.core.component.shielded_pool.v1.OutputBody") + proto.RegisterType((*OutputView)(nil), "penumbra.core.component.shielded_pool.v1.OutputView") + proto.RegisterType((*OutputView_Visible)(nil), "penumbra.core.component.shielded_pool.v1.OutputView.Visible") + proto.RegisterType((*OutputView_Opaque)(nil), "penumbra.core.component.shielded_pool.v1.OutputView.Opaque") + proto.RegisterType((*OutputPlan)(nil), "penumbra.core.component.shielded_pool.v1.OutputPlan") + proto.RegisterType((*AssetMetadataByIdRequest)(nil), "penumbra.core.component.shielded_pool.v1.AssetMetadataByIdRequest") + proto.RegisterType((*AssetMetadataByIdResponse)(nil), "penumbra.core.component.shielded_pool.v1.AssetMetadataByIdResponse") } -func (m *GenesisContent) Reset() { *m = GenesisContent{} } -func (m *GenesisContent) String() string { return proto.CompactTextString(m) } -func (*GenesisContent) ProtoMessage() {} -func (*GenesisContent) Descriptor() ([]byte, []int) { - return fileDescriptor_aa12195337df7d3c, []int{19} -} -func (m *GenesisContent) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GenesisContent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GenesisContent.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 *GenesisContent) XXX_Merge(src proto.Message) { - xxx_messageInfo_GenesisContent.Merge(m, src) -} -func (m *GenesisContent) XXX_Size() int { - return m.Size() -} -func (m *GenesisContent) XXX_DiscardUnknown() { - xxx_messageInfo_GenesisContent.DiscardUnknown(m) +func init() { + proto.RegisterFile("penumbra/core/component/shielded_pool/v1/shielded_pool.proto", fileDescriptor_26a9f446de1cd73c) +} + +var fileDescriptor_26a9f446de1cd73c = []byte{ + // 1564 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x58, 0xcd, 0x6f, 0xdb, 0xc8, + 0x15, 0x37, 0xe5, 0xcf, 0x3c, 0x7d, 0x24, 0x19, 0x04, 0x85, 0x2b, 0xb4, 0xaa, 0xcb, 0x36, 0x89, + 0x83, 0x14, 0x52, 0x65, 0xbb, 0x75, 0xa0, 0xe4, 0x50, 0x4b, 0x4d, 0xec, 0xc0, 0x4d, 0xac, 0xd2, + 0x8d, 0x12, 0x18, 0x06, 0x88, 0x91, 0x38, 0xb2, 0x08, 0x93, 0x1c, 0x86, 0x33, 0x52, 0xa2, 0xf6, + 0x12, 0xf4, 0xd0, 0x4b, 0x2f, 0x45, 0x80, 0xa2, 0x3d, 0xec, 0x65, 0xf7, 0xb8, 0xc0, 0xde, 0xf6, + 0x8f, 0x58, 0xec, 0x29, 0xc7, 0xbd, 0xed, 0xc2, 0xc1, 0x5e, 0xf6, 0xb2, 0xb7, 0x3d, 0x2f, 0x66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x0e, 0x97, 0x49, 0xcd, 0x19, + 0x57, 0x31, 0xdb, 0x6b, 0x57, 0x85, 0x7d, 0x47, 0x9a, 0xf5, 0x7f, 0x6b, 0x30, 0xf7, 0x94, 0x72, + 0x82, 0xd6, 0x61, 0xbe, 0x87, 0x9d, 0x2e, 0x51, 0x25, 0xff, 0x72, 0x24, 0xcb, 0x70, 0x73, 0xf5, + 0xca, 0xc5, 0x86, 0x00, 0x19, 0x21, 0x56, 0x94, 0x1c, 0x30, 0x42, 0x2c, 0xc9, 0x9e, 0x31, 0xc2, + 0x97, 0x0f, 0x28, 0xf9, 0x7f, 0x1a, 0x2c, 0x89, 0x6c, 0x1a, 0x36, 0x79, 0x85, 0x36, 0x93, 0x19, + 0xfd, 0xfa, 0xdc, 0x8c, 0x84, 0xc7, 0xf9, 0x59, 0x3d, 0x18, 0xcd, 0x4a, 0x3f, 0x3f, 0x2b, 0xc9, + 0x18, 0x67, 0x76, 0x0b, 0x72, 0x22, 0xb1, 0x9a, 0xed, 0x77, 0x48, 0xc0, 0xc9, 0x6b, 0xb9, 0xdc, + 0xb6, 0xe7, 0x91, 0x40, 0xa6, 0x97, 0x31, 0xc2, 0x17, 0xfd, 0x5b, 0x0d, 0xd2, 0x02, 0x58, 0xc7, + 0x7d, 0x87, 0x62, 0x0b, 0xd5, 0xe1, 0xaa, 0x47, 0x39, 0x31, 0x5b, 0xd4, 0x75, 0x6d, 0xee, 0x92, + 0x78, 0xa6, 0x6e, 0x0f, 0x45, 0x97, 0x02, 0x50, 0x14, 0x3b, 0x5f, 0xec, 0x0e, 0x8e, 0x39, 0xa9, + 0xc5, 0x70, 0x23, 0x27, 0xfc, 0x07, 0xef, 0xe8, 0x37, 0x90, 0x25, 0x7e, 0x87, 0xb8, 0x24, 0xc0, + 0x8e, 0x79, 0x4c, 0xfa, 0xaa, 0xca, 0x4c, 0x6c, 0xdc, 0x25, 0x7d, 0x64, 0x42, 0x8e, 0x78, 0x92, + 0x97, 0x58, 0xa6, 0x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3, 0x02, 0x40, 0x80, 0x3d, 0x8b, 0xba, 0xf6, 0xdf, 0x49, 0x20, 0x85, 0x22, 0x63, 0x0c, 0x59, + 0xc4, 0xa1, 0x2f, 0x4f, 0x35, 0xb3, 0xe9, 0xd8, 0x9e, 0x65, 0x7b, 0x47, 0x72, 0x30, 0x33, 0x46, + 0x56, 0x5a, 0xab, 0xca, 0x88, 0x56, 0xe1, 0x9a, 0x54, 0x89, 0x18, 0x66, 0x06, 0xcb, 0xf3, 0x12, + 0x98, 0x93, 0xf6, 0x08, 0x68, 0x9c, 0x81, 0x64, 0x72, 0xb7, 0x8c, 0x22, 0xf7, 0xf5, 0x8f, 0x35, + 0x58, 0x50, 0xaa, 0xb0, 0x93, 0xd0, 0xd8, 0x8d, 0xc9, 0xbb, 0x10, 0xfa, 0x0f, 0x89, 0xec, 0x93, + 0x48, 0x13, 0x53, 0xd3, 0x5e, 0x58, 0x13, 0xe7, 0x4d, 0x24, 0x8a, 0x6f, 0x53, 0x00, 0x83, 0x18, + 0xe8, 0x05, 0x64, 0xa4, 0x7a, 0xf9, 0xe1, 0xf1, 0xab, 0xf2, 0xfd, 0xc3, 0x74, 0xab, 0xa6, 0xce, + 0x6e, 0x23, 0xed, 0x0d, 0x1d, 0xe4, 0x67, 0xeb, 0x56, 0xea, 0x12, 0x74, 0x6b, 0x15, 0xae, 0xbd, + 0x0a, 0xb0, 0xef, 0x13, 0xcb, 0x74, 0x89, 0x4b, 0xe5, 0x99, 0x1e, 0xce, 0x41, 0x4e, 0xd9, 0x9f, + 0x10, 0x97, 0x8a, 0x53, 0xfd, 0x16, 0x5c, 0xa5, 0xbd, 0x63, 0x33, 0x42, 0x0b, 0xa0, 0x1a, 0x06, + 0xda, 0x3b, 0x7e, 0x1e, 0x5a, 0x77, 0x49, 0x5f, 0xff, 0xe7, 0x5c, 0xd4, 0x14, 0xa9, 0x3c, 0x2f, + 0x46, 0x95, 0xe7, 0xc1, 0xb4, 0xeb, 0x37, 0x4e, 0x7a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 0xff, 0xff, 0x74, 0xe5, 0xc5, 0x77, 0xa0, 0x13, 0x00, 0x00, } -var xxx_messageInfo_GenesisContent proto.InternalMessageInfo +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn -func (m *GenesisContent) GetAllocations() []*GenesisContent_Allocation { - if m != nil { - return m.Allocations - } - return nil -} +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 -type GenesisContent_Allocation struct { - Amount *v1alpha15.Amount `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"` - Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"` - Address *v1alpha11.Address `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"` +// QueryServiceClient is the client API for QueryService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type QueryServiceClient interface { + AssetMetadataById(ctx context.Context, in *AssetMetadataByIdRequest, opts ...grpc.CallOption) (*AssetMetadataByIdResponse, error) } -func (m *GenesisContent_Allocation) Reset() { *m = GenesisContent_Allocation{} } -func (m *GenesisContent_Allocation) String() string { return proto.CompactTextString(m) } -func (*GenesisContent_Allocation) ProtoMessage() {} -func (*GenesisContent_Allocation) Descriptor() ([]byte, []int) { - return fileDescriptor_aa12195337df7d3c, []int{19, 0} +type queryServiceClient struct { + cc grpc1.ClientConn } -func (m *GenesisContent_Allocation) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func NewQueryServiceClient(cc grpc1.ClientConn) QueryServiceClient { + return &queryServiceClient{cc} } -func (m *GenesisContent_Allocation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GenesisContent_Allocation.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 (c *queryServiceClient) AssetMetadataById(ctx context.Context, in *AssetMetadataByIdRequest, opts ...grpc.CallOption) (*AssetMetadataByIdResponse, error) { + out := new(AssetMetadataByIdResponse) + err := c.cc.Invoke(ctx, "/penumbra.core.component.shielded_pool.v1.QueryService/AssetMetadataById", in, out, opts...) + if err != nil { + return nil, err } + return out, nil } -func (m *GenesisContent_Allocation) XXX_Merge(src proto.Message) { - xxx_messageInfo_GenesisContent_Allocation.Merge(m, src) -} -func (m *GenesisContent_Allocation) XXX_Size() int { - return m.Size() + +// QueryServiceServer is the server API for QueryService service. +type QueryServiceServer interface { + AssetMetadataById(context.Context, *AssetMetadataByIdRequest) (*AssetMetadataByIdResponse, error) } -func (m *GenesisContent_Allocation) XXX_DiscardUnknown() { - xxx_messageInfo_GenesisContent_Allocation.DiscardUnknown(m) + +// UnimplementedQueryServiceServer can be embedded to have forward compatible implementations. +type UnimplementedQueryServiceServer struct { } -var xxx_messageInfo_GenesisContent_Allocation proto.InternalMessageInfo +func (*UnimplementedQueryServiceServer) AssetMetadataById(ctx context.Context, req *AssetMetadataByIdRequest) (*AssetMetadataByIdResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AssetMetadataById not implemented") +} -func (m *GenesisContent_Allocation) GetAmount() *v1alpha15.Amount { - if m != nil { - return m.Amount - } - return nil +func RegisterQueryServiceServer(s grpc1.Server, srv QueryServiceServer) { + s.RegisterService(&_QueryService_serviceDesc, srv) } -func (m *GenesisContent_Allocation) GetDenom() string { - if m != nil { - return m.Denom +func _QueryService_AssetMetadataById_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AssetMetadataByIdRequest) + if err := dec(in); err != nil { + return nil, err } - return "" -} - -func (m *GenesisContent_Allocation) GetAddress() *v1alpha11.Address { - if m != nil { - return m.Address + if interceptor == nil { + return srv.(QueryServiceServer).AssetMetadataById(ctx, in) } - return nil -} - -func init() { - proto.RegisterType((*Note)(nil), "penumbra.core.component.shielded_pool.v1alpha1.Note") - proto.RegisterType((*NoteView)(nil), "penumbra.core.component.shielded_pool.v1alpha1.NoteView") - proto.RegisterType((*NoteCiphertext)(nil), "penumbra.core.component.shielded_pool.v1alpha1.NoteCiphertext") - proto.RegisterType((*NotePayload)(nil), "penumbra.core.component.shielded_pool.v1alpha1.NotePayload") - proto.RegisterType((*ZKOutputProof)(nil), "penumbra.core.component.shielded_pool.v1alpha1.ZKOutputProof") - proto.RegisterType((*ZKSpendProof)(nil), "penumbra.core.component.shielded_pool.v1alpha1.ZKSpendProof") - proto.RegisterType((*ZKNullifierDerivationProof)(nil), "penumbra.core.component.shielded_pool.v1alpha1.ZKNullifierDerivationProof") - proto.RegisterType((*Spend)(nil), "penumbra.core.component.shielded_pool.v1alpha1.Spend") - proto.RegisterType((*EventSpend)(nil), "penumbra.core.component.shielded_pool.v1alpha1.EventSpend") - proto.RegisterType((*EventOutput)(nil), "penumbra.core.component.shielded_pool.v1alpha1.EventOutput") - proto.RegisterType((*SpendBody)(nil), "penumbra.core.component.shielded_pool.v1alpha1.SpendBody") - proto.RegisterType((*SpendView)(nil), "penumbra.core.component.shielded_pool.v1alpha1.SpendView") - proto.RegisterType((*SpendView_Visible)(nil), "penumbra.core.component.shielded_pool.v1alpha1.SpendView.Visible") - proto.RegisterType((*SpendView_Opaque)(nil), "penumbra.core.component.shielded_pool.v1alpha1.SpendView.Opaque") - proto.RegisterType((*SpendPlan)(nil), "penumbra.core.component.shielded_pool.v1alpha1.SpendPlan") - proto.RegisterType((*Output)(nil), "penumbra.core.component.shielded_pool.v1alpha1.Output") - proto.RegisterType((*OutputBody)(nil), "penumbra.core.component.shielded_pool.v1alpha1.OutputBody") - proto.RegisterType((*OutputView)(nil), "penumbra.core.component.shielded_pool.v1alpha1.OutputView") - proto.RegisterType((*OutputView_Visible)(nil), "penumbra.core.component.shielded_pool.v1alpha1.OutputView.Visible") - proto.RegisterType((*OutputView_Opaque)(nil), "penumbra.core.component.shielded_pool.v1alpha1.OutputView.Opaque") - proto.RegisterType((*OutputPlan)(nil), "penumbra.core.component.shielded_pool.v1alpha1.OutputPlan") - proto.RegisterType((*DenomMetadataByIdRequest)(nil), "penumbra.core.component.shielded_pool.v1alpha1.DenomMetadataByIdRequest") - proto.RegisterType((*DenomMetadataByIdResponse)(nil), "penumbra.core.component.shielded_pool.v1alpha1.DenomMetadataByIdResponse") - proto.RegisterType((*GenesisContent)(nil), "penumbra.core.component.shielded_pool.v1alpha1.GenesisContent") - proto.RegisterType((*GenesisContent_Allocation)(nil), "penumbra.core.component.shielded_pool.v1alpha1.GenesisContent.Allocation") + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/penumbra.core.component.shielded_pool.v1.QueryService/AssetMetadataById", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServiceServer).AssetMetadataById(ctx, req.(*AssetMetadataByIdRequest)) + } + return interceptor(ctx, in, info, handler) } -func init() { - proto.RegisterFile("penumbra/core/component/shielded_pool/v1alpha1/shielded_pool.proto", fileDescriptor_aa12195337df7d3c) -} - -var fileDescriptor_aa12195337df7d3c = []byte{ - // 1465 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x58, 0x4b, 0x6f, 0xdb, 0x46, - 0x10, 0x36, 0xe5, 0xf7, 0x48, 0x56, 0x92, 0x45, 0x0f, 0x8e, 0x0e, 0x46, 0xa0, 0x3c, 0x6a, 0xa0, - 0x88, 0x84, 0x38, 0x6d, 0xd3, 0x28, 0x4d, 0x10, 0xcb, 0x29, 0x62, 0xc3, 0x89, 0xa3, 0xae, 0x10, - 0xb7, 0x70, 0xdc, 0x08, 0x2b, 0x71, 0x6d, 0x11, 0x22, 0xb9, 0x0c, 0xb9, 0x94, 0xab, 0xde, 0x7a, - 0xeb, 0xa1, 0x87, 0xde, 0x7a, 0x0b, 0xd0, 0x07, 0x8a, 0x22, 0x40, 0x7f, 0x40, 0xff, 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x0e, 0x0b, 0xca, 0x3e, 0xb5, 0x49, 0x8f, - 0xfa, 0xe5, 0xee, 0x52, 0x7c, 0x29, 0x9f, 0x90, 0xa0, 0x3c, 0xdc, 0x1f, 0x51, 0xb7, 0x52, 0xe6, - 0xc8, 0xfa, 0x7d, 0x66, 0xa2, 0xb6, 0xb2, 0x52, 0x7f, 0x91, 0xb9, 0x5a, 0x8b, 0xd2, 0x5f, 0x11, - 0xe9, 0xaf, 0xc4, 0xe9, 0x27, 0xd3, 0x2c, 0x6d, 0x6a, 0xb7, 0xdf, 0xfb, 0xf8, 0x6d, 0x81, 0xdf, - 0x8e, 0xf1, 0xdb, 0x49, 0xfc, 0x76, 0x84, 0xdf, 0xcf, 0xdc, 0x1c, 0x0a, 0xbf, 0x7d, 0xbf, 0x56, - 0x8d, 0x9a, 0xf0, 0x77, 0xe6, 0x5a, 0xe4, 0x5b, 0xa9, 0x08, 0x67, 0xf1, 0xab, 0xbd, 0x2b, 0x95, - 0xa4, 0x7b, 0xa5, 0x12, 0xf9, 0x37, 0xa7, 0xe4, 0x9f, 0x45, 0xd7, 0xff, 0x09, 0x00, 0x00, 0xff, - 0xff, 0x31, 0x43, 0x7e, 0x0b, 0xae, 0x13, 0x00, 0x00, +var _QueryService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "penumbra.core.component.shielded_pool.v1.QueryService", + HandlerType: (*QueryServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "AssetMetadataById", + Handler: _QueryService_AssetMetadataById_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "penumbra/core/component/shielded_pool/v1/shielded_pool.proto", } -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// QueryServiceClient is the client API for QueryService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type QueryServiceClient interface { - DenomMetadataById(ctx context.Context, in *DenomMetadataByIdRequest, opts ...grpc.CallOption) (*DenomMetadataByIdResponse, error) +func (m *ShieldedPoolParameters) 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 } -type queryServiceClient struct { - cc grpc1.ClientConn +func (m *ShieldedPoolParameters) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func NewQueryServiceClient(cc grpc1.ClientConn) QueryServiceClient { - return &queryServiceClient{cc} +func (m *ShieldedPoolParameters) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.FixedFmdParams != nil { + { + size, err := m.FixedFmdParams.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintShieldedPool(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } -func (c *queryServiceClient) DenomMetadataById(ctx context.Context, in *DenomMetadataByIdRequest, opts ...grpc.CallOption) (*DenomMetadataByIdResponse, error) { - out := new(DenomMetadataByIdResponse) - err := c.cc.Invoke(ctx, "/penumbra.core.component.shielded_pool.v1alpha1.QueryService/DenomMetadataById", in, out, opts...) +func (m *GenesisContent) 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 out, nil + return dAtA[:n], nil } -// QueryServiceServer is the server API for QueryService service. -type QueryServiceServer interface { - DenomMetadataById(context.Context, *DenomMetadataByIdRequest) (*DenomMetadataByIdResponse, error) +func (m *GenesisContent) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -// UnimplementedQueryServiceServer can be embedded to have forward compatible implementations. -type UnimplementedQueryServiceServer struct { +func (m *GenesisContent) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Allocations) > 0 { + for iNdEx := len(m.Allocations) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Allocations[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintShieldedPool(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if m.ShieldedPoolParams != nil { + { + size, err := m.ShieldedPoolParams.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintShieldedPool(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } -func (*UnimplementedQueryServiceServer) DenomMetadataById(ctx context.Context, req *DenomMetadataByIdRequest) (*DenomMetadataByIdResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DenomMetadataById not implemented") +func (m *GenesisContent_Allocation) 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 RegisterQueryServiceServer(s grpc1.Server, srv QueryServiceServer) { - s.RegisterService(&_QueryService_serviceDesc, srv) +func (m *GenesisContent_Allocation) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func _QueryService_DenomMetadataById_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DenomMetadataByIdRequest) - if err := dec(in); err != nil { - return nil, err +func (m *GenesisContent_Allocation) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Address != nil { + { + size, err := m.Address.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintShieldedPool(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a } - if interceptor == nil { - return srv.(QueryServiceServer).DenomMetadataById(ctx, in) + if len(m.Denom) > 0 { + i -= len(m.Denom) + copy(dAtA[i:], m.Denom) + i = encodeVarintShieldedPool(dAtA, i, uint64(len(m.Denom))) + i-- + dAtA[i] = 0x12 } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/penumbra.core.component.shielded_pool.v1alpha1.QueryService/DenomMetadataById", + if m.Amount != nil { + { + size, err := m.Amount.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintShieldedPool(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServiceServer).DenomMetadataById(ctx, req.(*DenomMetadataByIdRequest)) + return len(dAtA) - i, nil +} + +func (m *FmdParameters) 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 interceptor(ctx, in, info, handler) + return dAtA[:n], nil } -var _QueryService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "penumbra.core.component.shielded_pool.v1alpha1.QueryService", - HandlerType: (*QueryServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "DenomMetadataById", - Handler: _QueryService_DenomMetadataById_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "penumbra/core/component/shielded_pool/v1alpha1/shielded_pool.proto", +func (m *FmdParameters) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FmdParameters) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.AsOfBlockHeight != 0 { + i = encodeVarintShieldedPool(dAtA, i, uint64(m.AsOfBlockHeight)) + i-- + dAtA[i] = 0x10 + } + if m.PrecisionBits != 0 { + i = encodeVarintShieldedPool(dAtA, i, uint64(m.PrecisionBits)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil } func (m *Note) Marshal() (dAtA []byte, err error) { @@ -2764,7 +3040,7 @@ func (m *OutputPlan) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *DenomMetadataByIdRequest) Marshal() (dAtA []byte, err error) { +func (m *AssetMetadataByIdRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2774,12 +3050,12 @@ func (m *DenomMetadataByIdRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *DenomMetadataByIdRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *AssetMetadataByIdRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *DenomMetadataByIdRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *AssetMetadataByIdRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2796,17 +3072,10 @@ func (m *DenomMetadataByIdRequest) MarshalToSizedBuffer(dAtA []byte) (int, error i-- dAtA[i] = 0x12 } - if len(m.ChainId) > 0 { - i -= len(m.ChainId) - copy(dAtA[i:], m.ChainId) - i = encodeVarintShieldedPool(dAtA, i, uint64(len(m.ChainId))) - i-- - dAtA[i] = 0xa - } return len(dAtA) - i, nil } -func (m *DenomMetadataByIdResponse) Marshal() (dAtA []byte, err error) { +func (m *AssetMetadataByIdResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2816,12 +3085,12 @@ func (m *DenomMetadataByIdResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *DenomMetadataByIdResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *AssetMetadataByIdResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *DenomMetadataByIdResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *AssetMetadataByIdResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2841,108 +3110,85 @@ func (m *DenomMetadataByIdResponse) MarshalToSizedBuffer(dAtA []byte) (int, erro return len(dAtA) - i, nil } -func (m *GenesisContent) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func encodeVarintShieldedPool(dAtA []byte, offset int, v uint64) int { + offset -= sovShieldedPool(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ } - return dAtA[:n], nil + dAtA[offset] = uint8(v) + return base } - -func (m *GenesisContent) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (m *ShieldedPoolParameters) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.FixedFmdParams != nil { + l = m.FixedFmdParams.Size() + n += 1 + l + sovShieldedPool(uint64(l)) + } + return n } -func (m *GenesisContent) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i +func (m *GenesisContent) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l + if m.ShieldedPoolParams != nil { + l = m.ShieldedPoolParams.Size() + n += 1 + l + sovShieldedPool(uint64(l)) + } if len(m.Allocations) > 0 { - for iNdEx := len(m.Allocations) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Allocations[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintShieldedPool(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 + for _, e := range m.Allocations { + l = e.Size() + n += 1 + l + sovShieldedPool(uint64(l)) } } - return len(dAtA) - i, nil + return n } -func (m *GenesisContent_Allocation) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (m *GenesisContent_Allocation) Size() (n int) { + if m == nil { + return 0 } - return dAtA[:n], nil -} - -func (m *GenesisContent_Allocation) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GenesisContent_Allocation) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i var l int _ = l - if m.Address != nil { - { - size, err := m.Address.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintShieldedPool(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a + if m.Amount != nil { + l = m.Amount.Size() + n += 1 + l + sovShieldedPool(uint64(l)) } - if len(m.Denom) > 0 { - i -= len(m.Denom) - copy(dAtA[i:], m.Denom) - i = encodeVarintShieldedPool(dAtA, i, uint64(len(m.Denom))) - i-- - dAtA[i] = 0x12 + l = len(m.Denom) + if l > 0 { + n += 1 + l + sovShieldedPool(uint64(l)) } - if m.Amount != nil { - { - size, err := m.Amount.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintShieldedPool(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if m.Address != nil { + l = m.Address.Size() + n += 1 + l + sovShieldedPool(uint64(l)) } - return len(dAtA) - i, nil + return n } -func encodeVarintShieldedPool(dAtA []byte, offset int, v uint64) int { - offset -= sovShieldedPool(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ +func (m *FmdParameters) Size() (n int) { + if m == nil { + return 0 } - dAtA[offset] = uint8(v) - return base + var l int + _ = l + if m.PrecisionBits != 0 { + n += 1 + sovShieldedPool(uint64(m.PrecisionBits)) + } + if m.AsOfBlockHeight != 0 { + n += 1 + sovShieldedPool(uint64(m.AsOfBlockHeight)) + } + return n } + func (m *Note) Size() (n int) { if m == nil { return 0 @@ -3369,16 +3615,12 @@ func (m *OutputPlan) Size() (n int) { return n } -func (m *DenomMetadataByIdRequest) Size() (n int) { +func (m *AssetMetadataByIdRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.ChainId) - if l > 0 { - n += 1 + l + sovShieldedPool(uint64(l)) - } if m.AssetId != nil { l = m.AssetId.Size() n += 1 + l + sovShieldedPool(uint64(l)) @@ -3386,7 +3628,7 @@ func (m *DenomMetadataByIdRequest) Size() (n int) { return n } -func (m *DenomMetadataByIdResponse) Size() (n int) { +func (m *AssetMetadataByIdResponse) Size() (n int) { if m == nil { return 0 } @@ -3399,49 +3641,13 @@ func (m *DenomMetadataByIdResponse) Size() (n int) { return n } -func (m *GenesisContent) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Allocations) > 0 { - for _, e := range m.Allocations { - l = e.Size() - n += 1 + l + sovShieldedPool(uint64(l)) - } - } - return n -} - -func (m *GenesisContent_Allocation) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Amount != nil { - l = m.Amount.Size() - n += 1 + l + sovShieldedPool(uint64(l)) - } - l = len(m.Denom) - if l > 0 { - n += 1 + l + sovShieldedPool(uint64(l)) - } - if m.Address != nil { - l = m.Address.Size() - n += 1 + l + sovShieldedPool(uint64(l)) - } - return n -} - func sovShieldedPool(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } func sozShieldedPool(x uint64) (n int) { return sovShieldedPool(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } -func (m *Note) Unmarshal(dAtA []byte) error { +func (m *ShieldedPoolParameters) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3464,15 +3670,15 @@ func (m *Note) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Note: wiretype end group for non-group") + return fmt.Errorf("proto: ShieldedPoolParameters: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Note: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ShieldedPoolParameters: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field FixedFmdParams", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -3499,18 +3705,68 @@ func (m *Note) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Value == nil { - m.Value = &v1alpha1.Value{} + if m.FixedFmdParams == nil { + m.FixedFmdParams = &FmdParameters{} } - if err := m.Value.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.FixedFmdParams.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 2: + default: + iNdEx = preIndex + skippy, err := skipShieldedPool(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthShieldedPool + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GenesisContent) 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 ErrIntOverflowShieldedPool + } + 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: GenesisContent: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GenesisContent: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Rseed", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ShieldedPoolParams", wireType) } - var byteLen int + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowShieldedPool @@ -3520,29 +3776,31 @@ func (m *Note) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { + if msglen < 0 { return ErrInvalidLengthShieldedPool } - postIndex := iNdEx + byteLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthShieldedPool } if postIndex > l { return io.ErrUnexpectedEOF } - m.Rseed = append(m.Rseed[:0], dAtA[iNdEx:postIndex]...) - if m.Rseed == nil { - m.Rseed = []byte{} + if m.ShieldedPoolParams == nil { + m.ShieldedPoolParams = &ShieldedPoolParameters{} + } + if err := m.ShieldedPoolParams.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Allocations", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -3569,10 +3827,8 @@ func (m *Note) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Address == nil { - m.Address = &v1alpha11.Address{} - } - if err := m.Address.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.Allocations = append(m.Allocations, &GenesisContent_Allocation{}) + if err := m.Allocations[len(m.Allocations)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -3597,7 +3853,7 @@ func (m *Note) Unmarshal(dAtA []byte) error { } return nil } -func (m *NoteView) Unmarshal(dAtA []byte) error { +func (m *GenesisContent_Allocation) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3620,15 +3876,15 @@ func (m *NoteView) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: NoteView: wiretype end group for non-group") + return fmt.Errorf("proto: Allocation: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: NoteView: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Allocation: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -3655,18 +3911,18 @@ func (m *NoteView) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Value == nil { - m.Value = &v1alpha1.ValueView{} + if m.Amount == nil { + m.Amount = &v1.Amount{} } - if err := m.Value.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Amount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Rseed", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Denom", wireType) } - var byteLen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowShieldedPool @@ -3676,25 +3932,23 @@ func (m *NoteView) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthShieldedPool } - postIndex := iNdEx + byteLen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthShieldedPool } if postIndex > l { return io.ErrUnexpectedEOF } - m.Rseed = append(m.Rseed[:0], dAtA[iNdEx:postIndex]...) - if m.Rseed == nil { - m.Rseed = []byte{} - } + m.Denom = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { @@ -3726,7 +3980,7 @@ func (m *NoteView) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Address == nil { - m.Address = &v1alpha11.AddressView{} + m.Address = &v11.Address{} } if err := m.Address.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -3753,7 +4007,7 @@ func (m *NoteView) Unmarshal(dAtA []byte) error { } return nil } -func (m *NoteCiphertext) Unmarshal(dAtA []byte) error { +func (m *FmdParameters) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3776,17 +4030,17 @@ func (m *NoteCiphertext) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: NoteCiphertext: wiretype end group for non-group") + return fmt.Errorf("proto: FmdParameters: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: NoteCiphertext: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: FmdParameters: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Inner", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PrecisionBits", wireType) } - var byteLen int + m.PrecisionBits = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowShieldedPool @@ -3796,26 +4050,30 @@ func (m *NoteCiphertext) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + m.PrecisionBits |= uint32(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { - return ErrInvalidLengthShieldedPool - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthShieldedPool - } - if postIndex > l { - return io.ErrUnexpectedEOF + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AsOfBlockHeight", wireType) } - m.Inner = append(m.Inner[:0], dAtA[iNdEx:postIndex]...) - if m.Inner == nil { - m.Inner = []byte{} + m.AsOfBlockHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowShieldedPool + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.AsOfBlockHeight |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } } - iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipShieldedPool(dAtA[iNdEx:]) @@ -3837,7 +4095,7 @@ func (m *NoteCiphertext) Unmarshal(dAtA []byte) error { } return nil } -func (m *NotePayload) Unmarshal(dAtA []byte) error { +func (m *Note) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3860,15 +4118,15 @@ func (m *NotePayload) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: NotePayload: wiretype end group for non-group") + return fmt.Errorf("proto: Note: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: NotePayload: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Note: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NoteCommitment", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -3895,16 +4153,16 @@ func (m *NotePayload) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.NoteCommitment == nil { - m.NoteCommitment = &v1alpha12.StateCommitment{} + if m.Value == nil { + m.Value = &v12.Value{} } - if err := m.NoteCommitment.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Value.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EphemeralKey", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Rseed", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { @@ -3931,14 +4189,14 @@ func (m *NotePayload) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.EphemeralKey = append(m.EphemeralKey[:0], dAtA[iNdEx:postIndex]...) - if m.EphemeralKey == nil { - m.EphemeralKey = []byte{} + m.Rseed = append(m.Rseed[:0], dAtA[iNdEx:postIndex]...) + if m.Rseed == nil { + m.Rseed = []byte{} } iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EncryptedNote", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -3965,10 +4223,10 @@ func (m *NotePayload) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.EncryptedNote == nil { - m.EncryptedNote = &NoteCiphertext{} + if m.Address == nil { + m.Address = &v11.Address{} } - if err := m.EncryptedNote.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Address.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -3993,7 +4251,7 @@ func (m *NotePayload) Unmarshal(dAtA []byte) error { } return nil } -func (m *ZKOutputProof) Unmarshal(dAtA []byte) error { +func (m *NoteView) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4016,17 +4274,17 @@ func (m *ZKOutputProof) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ZKOutputProof: wiretype end group for non-group") + return fmt.Errorf("proto: NoteView: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ZKOutputProof: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: NoteView: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Inner", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) } - var byteLen int + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowShieldedPool @@ -4036,81 +4294,67 @@ func (m *ZKOutputProof) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { + if msglen < 0 { return ErrInvalidLengthShieldedPool } - postIndex := iNdEx + byteLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthShieldedPool } if postIndex > l { return io.ErrUnexpectedEOF } - m.Inner = append(m.Inner[:0], dAtA[iNdEx:postIndex]...) - if m.Inner == nil { - m.Inner = []byte{} + if m.Value == nil { + m.Value = &v12.ValueView{} } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipShieldedPool(dAtA[iNdEx:]) - if err != nil { + if err := m.Value.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthShieldedPool + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Rseed", wireType) } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowShieldedPool + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ZKSpendProof) 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 ErrIntOverflowShieldedPool + if byteLen < 0 { + return ErrInvalidLengthShieldedPool } - if iNdEx >= l { + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthShieldedPool + } + if postIndex > l { return io.ErrUnexpectedEOF } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + m.Rseed = append(m.Rseed[:0], dAtA[iNdEx:postIndex]...) + if m.Rseed == nil { + m.Rseed = []byte{} } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ZKSpendProof: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ZKSpendProof: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + iNdEx = postIndex + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Inner", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) } - var byteLen int + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowShieldedPool @@ -4120,24 +4364,26 @@ func (m *ZKSpendProof) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { + if msglen < 0 { return ErrInvalidLengthShieldedPool } - postIndex := iNdEx + byteLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthShieldedPool } if postIndex > l { return io.ErrUnexpectedEOF } - m.Inner = append(m.Inner[:0], dAtA[iNdEx:postIndex]...) - if m.Inner == nil { - m.Inner = []byte{} + if m.Address == nil { + m.Address = &v11.AddressView{} + } + if err := m.Address.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } iNdEx = postIndex default: @@ -4161,7 +4407,7 @@ func (m *ZKSpendProof) Unmarshal(dAtA []byte) error { } return nil } -func (m *ZKNullifierDerivationProof) Unmarshal(dAtA []byte) error { +func (m *NoteCiphertext) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4184,10 +4430,10 @@ func (m *ZKNullifierDerivationProof) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ZKNullifierDerivationProof: wiretype end group for non-group") + return fmt.Errorf("proto: NoteCiphertext: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ZKNullifierDerivationProof: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: NoteCiphertext: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -4245,7 +4491,7 @@ func (m *ZKNullifierDerivationProof) Unmarshal(dAtA []byte) error { } return nil } -func (m *Spend) Unmarshal(dAtA []byte) error { +func (m *NotePayload) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4268,15 +4514,15 @@ func (m *Spend) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Spend: wiretype end group for non-group") + return fmt.Errorf("proto: NotePayload: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Spend: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: NotePayload: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Body", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field NoteCommitment", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -4303,18 +4549,18 @@ func (m *Spend) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Body == nil { - m.Body = &SpendBody{} + if m.NoteCommitment == nil { + m.NoteCommitment = &v13.StateCommitment{} } - if err := m.Body.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.NoteCommitment.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AuthSig", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field EphemeralKey", wireType) } - var msglen int + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowShieldedPool @@ -4324,31 +4570,29 @@ func (m *Spend) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + if byteLen < 0 { return ErrInvalidLengthShieldedPool } - postIndex := iNdEx + msglen + postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthShieldedPool } if postIndex > l { return io.ErrUnexpectedEOF } - if m.AuthSig == nil { - m.AuthSig = &v1alpha13.SpendAuthSignature{} - } - if err := m.AuthSig.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + m.EphemeralKey = append(m.EphemeralKey[:0], dAtA[iNdEx:postIndex]...) + if m.EphemeralKey == nil { + m.EphemeralKey = []byte{} } iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Proof", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field EncryptedNote", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -4375,10 +4619,10 @@ func (m *Spend) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Proof == nil { - m.Proof = &ZKSpendProof{} + if m.EncryptedNote == nil { + m.EncryptedNote = &NoteCiphertext{} } - if err := m.Proof.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.EncryptedNote.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -4403,7 +4647,7 @@ func (m *Spend) Unmarshal(dAtA []byte) error { } return nil } -func (m *EventSpend) Unmarshal(dAtA []byte) error { +func (m *ZKOutputProof) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4426,17 +4670,17 @@ func (m *EventSpend) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: EventSpend: wiretype end group for non-group") + return fmt.Errorf("proto: ZKOutputProof: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: EventSpend: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ZKOutputProof: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Nullifier", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Inner", wireType) } - var msglen int + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowShieldedPool @@ -4446,26 +4690,24 @@ func (m *EventSpend) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + if byteLen < 0 { return ErrInvalidLengthShieldedPool } - postIndex := iNdEx + msglen + postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthShieldedPool } if postIndex > l { return io.ErrUnexpectedEOF } - if m.Nullifier == nil { - m.Nullifier = &v1alpha14.Nullifier{} - } - if err := m.Nullifier.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + m.Inner = append(m.Inner[:0], dAtA[iNdEx:postIndex]...) + if m.Inner == nil { + m.Inner = []byte{} } iNdEx = postIndex default: @@ -4489,7 +4731,7 @@ func (m *EventSpend) Unmarshal(dAtA []byte) error { } return nil } -func (m *EventOutput) Unmarshal(dAtA []byte) error { +func (m *ZKSpendProof) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4512,17 +4754,17 @@ func (m *EventOutput) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: EventOutput: wiretype end group for non-group") + return fmt.Errorf("proto: ZKSpendProof: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: EventOutput: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ZKSpendProof: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NoteCommitment", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Inner", wireType) } - var msglen int + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowShieldedPool @@ -4532,26 +4774,24 @@ func (m *EventOutput) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + if byteLen < 0 { return ErrInvalidLengthShieldedPool } - postIndex := iNdEx + msglen + postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthShieldedPool } if postIndex > l { return io.ErrUnexpectedEOF } - if m.NoteCommitment == nil { - m.NoteCommitment = &v1alpha12.StateCommitment{} - } - if err := m.NoteCommitment.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + m.Inner = append(m.Inner[:0], dAtA[iNdEx:postIndex]...) + if m.Inner == nil { + m.Inner = []byte{} } iNdEx = postIndex default: @@ -4575,7 +4815,7 @@ func (m *EventOutput) Unmarshal(dAtA []byte) error { } return nil } -func (m *SpendBody) Unmarshal(dAtA []byte) error { +func (m *ZKNullifierDerivationProof) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4598,17 +4838,17 @@ func (m *SpendBody) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: SpendBody: wiretype end group for non-group") + return fmt.Errorf("proto: ZKNullifierDerivationProof: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: SpendBody: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ZKNullifierDerivationProof: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BalanceCommitment", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Inner", wireType) } - var msglen int + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowShieldedPool @@ -4618,104 +4858,30 @@ func (m *SpendBody) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + if byteLen < 0 { return ErrInvalidLengthShieldedPool } - postIndex := iNdEx + msglen + postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthShieldedPool } if postIndex > l { return io.ErrUnexpectedEOF } - if m.BalanceCommitment == nil { - m.BalanceCommitment = &v1alpha1.BalanceCommitment{} + m.Inner = append(m.Inner[:0], dAtA[iNdEx:postIndex]...) + if m.Inner == nil { + m.Inner = []byte{} } - if err := m.BalanceCommitment.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Rk", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowShieldedPool - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthShieldedPool - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthShieldedPool - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Rk == nil { - m.Rk = &v1alpha13.SpendVerificationKey{} - } - if err := m.Rk.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Nullifier", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowShieldedPool - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthShieldedPool - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthShieldedPool - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Nullifier == nil { - m.Nullifier = &v1alpha14.Nullifier{} - } - if err := m.Nullifier.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipShieldedPool(dAtA[iNdEx:]) - if err != nil { + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipShieldedPool(dAtA[iNdEx:]) + if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { @@ -4733,7 +4899,7 @@ func (m *SpendBody) Unmarshal(dAtA []byte) error { } return nil } -func (m *SpendView) Unmarshal(dAtA []byte) error { +func (m *Spend) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4756,15 +4922,15 @@ func (m *SpendView) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: SpendView: wiretype end group for non-group") + return fmt.Errorf("proto: Spend: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: SpendView: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Spend: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Visible", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Body", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -4791,15 +4957,16 @@ func (m *SpendView) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &SpendView_Visible{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if m.Body == nil { + m.Body = &SpendBody{} + } + if err := m.Body.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.SpendView = &SpendView_Visible_{v} iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Opaque", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AuthSig", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -4826,11 +4993,48 @@ func (m *SpendView) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &SpendView_Opaque{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if m.AuthSig == nil { + m.AuthSig = &v14.SpendAuthSignature{} + } + if err := m.AuthSig.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Proof", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowShieldedPool + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthShieldedPool + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthShieldedPool + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Proof == nil { + m.Proof = &ZKSpendProof{} + } + if err := m.Proof.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.SpendView = &SpendView_Opaque_{v} iNdEx = postIndex default: iNdEx = preIndex @@ -4853,7 +5057,7 @@ func (m *SpendView) Unmarshal(dAtA []byte) error { } return nil } -func (m *SpendView_Visible) Unmarshal(dAtA []byte) error { +func (m *EventSpend) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4876,51 +5080,15 @@ func (m *SpendView_Visible) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Visible: wiretype end group for non-group") + return fmt.Errorf("proto: EventSpend: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Visible: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: EventSpend: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spend", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowShieldedPool - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthShieldedPool - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthShieldedPool - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Spend == nil { - m.Spend = &Spend{} - } - if err := m.Spend.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Note", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Nullifier", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -4947,10 +5115,10 @@ func (m *SpendView_Visible) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Note == nil { - m.Note = &NoteView{} + if m.Nullifier == nil { + m.Nullifier = &v15.Nullifier{} } - if err := m.Note.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Nullifier.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -4975,7 +5143,7 @@ func (m *SpendView_Visible) Unmarshal(dAtA []byte) error { } return nil } -func (m *SpendView_Opaque) Unmarshal(dAtA []byte) error { +func (m *EventOutput) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4998,15 +5166,15 @@ func (m *SpendView_Opaque) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Opaque: wiretype end group for non-group") + return fmt.Errorf("proto: EventOutput: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Opaque: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: EventOutput: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spend", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field NoteCommitment", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -5033,10 +5201,10 @@ func (m *SpendView_Opaque) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Spend == nil { - m.Spend = &Spend{} + if m.NoteCommitment == nil { + m.NoteCommitment = &v13.StateCommitment{} } - if err := m.Spend.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.NoteCommitment.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -5061,7 +5229,7 @@ func (m *SpendView_Opaque) Unmarshal(dAtA []byte) error { } return nil } -func (m *SpendPlan) Unmarshal(dAtA []byte) error { +func (m *SpendBody) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -5084,15 +5252,15 @@ func (m *SpendPlan) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: SpendPlan: wiretype end group for non-group") + return fmt.Errorf("proto: SpendBody: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: SpendPlan: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: SpendBody: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Note", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field BalanceCommitment", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -5119,37 +5287,18 @@ func (m *SpendPlan) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Note == nil { - m.Note = &Note{} + if m.BalanceCommitment == nil { + m.BalanceCommitment = &v12.BalanceCommitment{} } - if err := m.Note.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.BalanceCommitment.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Position", wireType) - } - m.Position = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowShieldedPool - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Position |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: + case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Randomizer", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Rk", wireType) } - var byteLen int + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowShieldedPool @@ -5159,31 +5308,33 @@ func (m *SpendPlan) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { + if msglen < 0 { return ErrInvalidLengthShieldedPool } - postIndex := iNdEx + byteLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthShieldedPool } if postIndex > l { return io.ErrUnexpectedEOF } - m.Randomizer = append(m.Randomizer[:0], dAtA[iNdEx:postIndex]...) - if m.Randomizer == nil { - m.Randomizer = []byte{} + if m.Rk == nil { + m.Rk = &v14.SpendVerificationKey{} + } + if err := m.Rk.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } iNdEx = postIndex - case 4: + case 6: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ValueBlinding", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Nullifier", wireType) } - var byteLen int + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowShieldedPool @@ -5193,92 +5344,26 @@ func (m *SpendPlan) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { - return ErrInvalidLengthShieldedPool - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthShieldedPool - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ValueBlinding = append(m.ValueBlinding[:0], dAtA[iNdEx:postIndex]...) - if m.ValueBlinding == nil { - m.ValueBlinding = []byte{} - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ProofBlindingR", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowShieldedPool - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { + if msglen < 0 { return ErrInvalidLengthShieldedPool } - postIndex := iNdEx + byteLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthShieldedPool } if postIndex > l { return io.ErrUnexpectedEOF } - m.ProofBlindingR = append(m.ProofBlindingR[:0], dAtA[iNdEx:postIndex]...) - if m.ProofBlindingR == nil { - m.ProofBlindingR = []byte{} - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ProofBlindingS", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowShieldedPool - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthShieldedPool - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthShieldedPool - } - if postIndex > l { - return io.ErrUnexpectedEOF + if m.Nullifier == nil { + m.Nullifier = &v15.Nullifier{} } - m.ProofBlindingS = append(m.ProofBlindingS[:0], dAtA[iNdEx:postIndex]...) - if m.ProofBlindingS == nil { - m.ProofBlindingS = []byte{} + if err := m.Nullifier.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } iNdEx = postIndex default: @@ -5302,7 +5387,7 @@ func (m *SpendPlan) Unmarshal(dAtA []byte) error { } return nil } -func (m *Output) Unmarshal(dAtA []byte) error { +func (m *SpendView) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -5325,15 +5410,15 @@ func (m *Output) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Output: wiretype end group for non-group") + return fmt.Errorf("proto: SpendView: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Output: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: SpendView: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Body", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Visible", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -5360,16 +5445,15 @@ func (m *Output) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Body == nil { - m.Body = &OutputBody{} - } - if err := m.Body.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + v := &SpendView_Visible{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } + m.SpendView = &SpendView_Visible_{v} iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Proof", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Opaque", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -5396,12 +5480,11 @@ func (m *Output) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Proof == nil { - m.Proof = &ZKOutputProof{} - } - if err := m.Proof.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + v := &SpendView_Opaque{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } + m.SpendView = &SpendView_Opaque_{v} iNdEx = postIndex default: iNdEx = preIndex @@ -5424,7 +5507,7 @@ func (m *Output) Unmarshal(dAtA []byte) error { } return nil } -func (m *OutputBody) Unmarshal(dAtA []byte) error { +func (m *SpendView_Visible) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -5447,15 +5530,15 @@ func (m *OutputBody) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: OutputBody: wiretype end group for non-group") + return fmt.Errorf("proto: Visible: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: OutputBody: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Visible: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NotePayload", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Spend", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -5482,16 +5565,16 @@ func (m *OutputBody) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.NotePayload == nil { - m.NotePayload = &NotePayload{} + if m.Spend == nil { + m.Spend = &Spend{} } - if err := m.NotePayload.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Spend.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BalanceCommitment", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Note", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -5518,81 +5601,13 @@ func (m *OutputBody) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.BalanceCommitment == nil { - m.BalanceCommitment = &v1alpha1.BalanceCommitment{} + if m.Note == nil { + m.Note = &NoteView{} } - if err := m.BalanceCommitment.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Note.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WrappedMemoKey", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowShieldedPool - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthShieldedPool - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthShieldedPool - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.WrappedMemoKey = append(m.WrappedMemoKey[:0], dAtA[iNdEx:postIndex]...) - if m.WrappedMemoKey == nil { - m.WrappedMemoKey = []byte{} - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field OvkWrappedKey", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowShieldedPool - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthShieldedPool - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthShieldedPool - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.OvkWrappedKey = append(m.OvkWrappedKey[:0], dAtA[iNdEx:postIndex]...) - if m.OvkWrappedKey == nil { - m.OvkWrappedKey = []byte{} - } - iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipShieldedPool(dAtA[iNdEx:]) @@ -5614,7 +5629,7 @@ func (m *OutputBody) Unmarshal(dAtA []byte) error { } return nil } -func (m *OutputView) Unmarshal(dAtA []byte) error { +func (m *SpendView_Opaque) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -5637,15 +5652,15 @@ func (m *OutputView) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: OutputView: wiretype end group for non-group") + return fmt.Errorf("proto: Opaque: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: OutputView: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Opaque: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Visible", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Spend", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -5672,46 +5687,12 @@ func (m *OutputView) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &OutputView_Visible{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.OutputView = &OutputView_Visible_{v} - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Opaque", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowShieldedPool - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthShieldedPool - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthShieldedPool - } - if postIndex > l { - return io.ErrUnexpectedEOF + if m.Spend == nil { + m.Spend = &Spend{} } - v := &OutputView_Opaque{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Spend.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.OutputView = &OutputView_Opaque_{v} iNdEx = postIndex default: iNdEx = preIndex @@ -5734,7 +5715,7 @@ func (m *OutputView) Unmarshal(dAtA []byte) error { } return nil } -func (m *OutputView_Visible) Unmarshal(dAtA []byte) error { +func (m *SpendPlan) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -5757,15 +5738,15 @@ func (m *OutputView_Visible) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Visible: wiretype end group for non-group") + return fmt.Errorf("proto: SpendPlan: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Visible: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: SpendPlan: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Output", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Note", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -5792,18 +5773,18 @@ func (m *OutputView_Visible) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Output == nil { - m.Output = &Output{} + if m.Note == nil { + m.Note = &Note{} } - if err := m.Output.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Note.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Note", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Position", wireType) } - var msglen int + m.Position = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowShieldedPool @@ -5813,33 +5794,84 @@ func (m *OutputView_Visible) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + m.Position |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Randomizer", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowShieldedPool + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { return ErrInvalidLengthShieldedPool } - postIndex := iNdEx + msglen + postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthShieldedPool } if postIndex > l { return io.ErrUnexpectedEOF } - if m.Note == nil { - m.Note = &NoteView{} + m.Randomizer = append(m.Randomizer[:0], dAtA[iNdEx:postIndex]...) + if m.Randomizer == nil { + m.Randomizer = []byte{} } - if err := m.Note.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ValueBlinding", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowShieldedPool + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthShieldedPool + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthShieldedPool + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ValueBlinding = append(m.ValueBlinding[:0], dAtA[iNdEx:postIndex]...) + if m.ValueBlinding == nil { + m.ValueBlinding = []byte{} } iNdEx = postIndex - case 3: + case 5: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PayloadKey", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ProofBlindingR", wireType) } - var msglen int + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowShieldedPool @@ -5849,26 +5881,58 @@ func (m *OutputView_Visible) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + if byteLen < 0 { return ErrInvalidLengthShieldedPool } - postIndex := iNdEx + msglen + postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthShieldedPool } if postIndex > l { return io.ErrUnexpectedEOF } - if m.PayloadKey == nil { - m.PayloadKey = &v1alpha11.PayloadKey{} + m.ProofBlindingR = append(m.ProofBlindingR[:0], dAtA[iNdEx:postIndex]...) + if m.ProofBlindingR == nil { + m.ProofBlindingR = []byte{} } - if err := m.PayloadKey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ProofBlindingS", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowShieldedPool + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthShieldedPool + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthShieldedPool + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ProofBlindingS = append(m.ProofBlindingS[:0], dAtA[iNdEx:postIndex]...) + if m.ProofBlindingS == nil { + m.ProofBlindingS = []byte{} } iNdEx = postIndex default: @@ -5892,7 +5956,7 @@ func (m *OutputView_Visible) Unmarshal(dAtA []byte) error { } return nil } -func (m *OutputView_Opaque) Unmarshal(dAtA []byte) error { +func (m *Output) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -5915,15 +5979,15 @@ func (m *OutputView_Opaque) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Opaque: wiretype end group for non-group") + return fmt.Errorf("proto: Output: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Opaque: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Output: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Output", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Body", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -5950,10 +6014,46 @@ func (m *OutputView_Opaque) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Output == nil { - m.Output = &Output{} + if m.Body == nil { + m.Body = &OutputBody{} } - if err := m.Output.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Body.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Proof", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowShieldedPool + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthShieldedPool + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthShieldedPool + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Proof == nil { + m.Proof = &ZKOutputProof{} + } + if err := m.Proof.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -5978,7 +6078,7 @@ func (m *OutputView_Opaque) Unmarshal(dAtA []byte) error { } return nil } -func (m *OutputPlan) Unmarshal(dAtA []byte) error { +func (m *OutputBody) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -6001,15 +6101,15 @@ func (m *OutputPlan) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: OutputPlan: wiretype end group for non-group") + return fmt.Errorf("proto: OutputBody: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: OutputPlan: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: OutputBody: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field NotePayload", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -6036,16 +6136,16 @@ func (m *OutputPlan) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Value == nil { - m.Value = &v1alpha1.Value{} + if m.NotePayload == nil { + m.NotePayload = &NotePayload{} } - if err := m.Value.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.NotePayload.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DestAddress", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field BalanceCommitment", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -6072,16 +6172,16 @@ func (m *OutputPlan) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.DestAddress == nil { - m.DestAddress = &v1alpha11.Address{} + if m.BalanceCommitment == nil { + m.BalanceCommitment = &v12.BalanceCommitment{} } - if err := m.DestAddress.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.BalanceCommitment.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Rseed", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field WrappedMemoKey", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { @@ -6108,14 +6208,14 @@ func (m *OutputPlan) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Rseed = append(m.Rseed[:0], dAtA[iNdEx:postIndex]...) - if m.Rseed == nil { - m.Rseed = []byte{} + m.WrappedMemoKey = append(m.WrappedMemoKey[:0], dAtA[iNdEx:postIndex]...) + if m.WrappedMemoKey == nil { + m.WrappedMemoKey = []byte{} } iNdEx = postIndex case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ValueBlinding", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field OvkWrappedKey", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { @@ -6142,50 +6242,66 @@ func (m *OutputPlan) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ValueBlinding = append(m.ValueBlinding[:0], dAtA[iNdEx:postIndex]...) - if m.ValueBlinding == nil { - m.ValueBlinding = []byte{} + m.OvkWrappedKey = append(m.OvkWrappedKey[:0], dAtA[iNdEx:postIndex]...) + if m.OvkWrappedKey == nil { + m.OvkWrappedKey = []byte{} } iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ProofBlindingR", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowShieldedPool - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthShieldedPool + default: + iNdEx = preIndex + skippy, err := skipShieldedPool(dAtA[iNdEx:]) + if err != nil { + return err } - postIndex := iNdEx + byteLen - if postIndex < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthShieldedPool } - if postIndex > l { + if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.ProofBlindingR = append(m.ProofBlindingR[:0], dAtA[iNdEx:postIndex]...) - if m.ProofBlindingR == nil { - m.ProofBlindingR = []byte{} + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *OutputView) 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 ErrIntOverflowShieldedPool } - iNdEx = postIndex - case 6: + 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: OutputView: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: OutputView: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ProofBlindingS", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Visible", wireType) } - var byteLen int + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowShieldedPool @@ -6195,25 +6311,61 @@ func (m *OutputPlan) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { + if msglen < 0 { return ErrInvalidLengthShieldedPool } - postIndex := iNdEx + byteLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthShieldedPool } if postIndex > l { return io.ErrUnexpectedEOF } - m.ProofBlindingS = append(m.ProofBlindingS[:0], dAtA[iNdEx:postIndex]...) - if m.ProofBlindingS == nil { - m.ProofBlindingS = []byte{} + v := &OutputView_Visible{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.OutputView = &OutputView_Visible_{v} + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Opaque", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowShieldedPool + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthShieldedPool + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthShieldedPool } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &OutputView_Opaque{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.OutputView = &OutputView_Opaque_{v} iNdEx = postIndex default: iNdEx = preIndex @@ -6236,7 +6388,7 @@ func (m *OutputPlan) Unmarshal(dAtA []byte) error { } return nil } -func (m *DenomMetadataByIdRequest) Unmarshal(dAtA []byte) error { +func (m *OutputView_Visible) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -6259,17 +6411,17 @@ func (m *DenomMetadataByIdRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: DenomMetadataByIdRequest: wiretype end group for non-group") + return fmt.Errorf("proto: Visible: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: DenomMetadataByIdRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Visible: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Output", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowShieldedPool @@ -6279,27 +6431,31 @@ func (m *DenomMetadataByIdRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthShieldedPool } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthShieldedPool } if postIndex > l { return io.ErrUnexpectedEOF } - m.ChainId = string(dAtA[iNdEx:postIndex]) + if m.Output == nil { + m.Output = &Output{} + } + if err := m.Output.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AssetId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Note", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -6326,10 +6482,46 @@ func (m *DenomMetadataByIdRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.AssetId == nil { - m.AssetId = &v1alpha1.AssetId{} + if m.Note == nil { + m.Note = &NoteView{} } - if err := m.AssetId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Note.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PayloadKey", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowShieldedPool + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthShieldedPool + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthShieldedPool + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.PayloadKey == nil { + m.PayloadKey = &v11.PayloadKey{} + } + if err := m.PayloadKey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -6354,7 +6546,7 @@ func (m *DenomMetadataByIdRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *DenomMetadataByIdResponse) Unmarshal(dAtA []byte) error { +func (m *OutputView_Opaque) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -6377,15 +6569,15 @@ func (m *DenomMetadataByIdResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: DenomMetadataByIdResponse: wiretype end group for non-group") + return fmt.Errorf("proto: Opaque: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: DenomMetadataByIdResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Opaque: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DenomMetadata", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Output", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -6412,10 +6604,10 @@ func (m *DenomMetadataByIdResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.DenomMetadata == nil { - m.DenomMetadata = &v1alpha1.DenomMetadata{} + if m.Output == nil { + m.Output = &Output{} } - if err := m.DenomMetadata.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Output.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -6440,7 +6632,7 @@ func (m *DenomMetadataByIdResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *GenesisContent) Unmarshal(dAtA []byte) error { +func (m *OutputPlan) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -6463,15 +6655,51 @@ func (m *GenesisContent) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GenesisContent: wiretype end group for non-group") + return fmt.Errorf("proto: OutputPlan: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GenesisContent: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: OutputPlan: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowShieldedPool + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthShieldedPool + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthShieldedPool + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Value == nil { + m.Value = &v12.Value{} + } + if err := m.Value.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Allocations", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field DestAddress", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -6498,11 +6726,149 @@ func (m *GenesisContent) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Allocations = append(m.Allocations, &GenesisContent_Allocation{}) - if err := m.Allocations[len(m.Allocations)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if m.DestAddress == nil { + m.DestAddress = &v11.Address{} + } + if err := m.DestAddress.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Rseed", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowShieldedPool + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthShieldedPool + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthShieldedPool + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Rseed = append(m.Rseed[:0], dAtA[iNdEx:postIndex]...) + if m.Rseed == nil { + m.Rseed = []byte{} + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ValueBlinding", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowShieldedPool + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthShieldedPool + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthShieldedPool + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ValueBlinding = append(m.ValueBlinding[:0], dAtA[iNdEx:postIndex]...) + if m.ValueBlinding == nil { + m.ValueBlinding = []byte{} + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ProofBlindingR", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowShieldedPool + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthShieldedPool + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthShieldedPool + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ProofBlindingR = append(m.ProofBlindingR[:0], dAtA[iNdEx:postIndex]...) + if m.ProofBlindingR == nil { + m.ProofBlindingR = []byte{} + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ProofBlindingS", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowShieldedPool + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthShieldedPool + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthShieldedPool + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ProofBlindingS = append(m.ProofBlindingS[:0], dAtA[iNdEx:postIndex]...) + if m.ProofBlindingS == nil { + m.ProofBlindingS = []byte{} + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipShieldedPool(dAtA[iNdEx:]) @@ -6524,7 +6890,7 @@ func (m *GenesisContent) Unmarshal(dAtA []byte) error { } return nil } -func (m *GenesisContent_Allocation) Unmarshal(dAtA []byte) error { +func (m *AssetMetadataByIdRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -6547,15 +6913,15 @@ func (m *GenesisContent_Allocation) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Allocation: wiretype end group for non-group") + return fmt.Errorf("proto: AssetMetadataByIdRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Allocation: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: AssetMetadataByIdRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AssetId", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -6582,48 +6948,66 @@ func (m *GenesisContent_Allocation) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Amount == nil { - m.Amount = &v1alpha15.Amount{} + if m.AssetId == nil { + m.AssetId = &v12.AssetId{} } - if err := m.Amount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.AssetId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Denom", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowShieldedPool - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } + default: + iNdEx = preIndex + skippy, err := skipShieldedPool(dAtA[iNdEx:]) + if err != nil { + return err } - intStringLen := int(stringLen) - if intStringLen < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthShieldedPool } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthShieldedPool + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF } - if postIndex > l { + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AssetMetadataByIdResponse) 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 ErrIntOverflowShieldedPool + } + if iNdEx >= l { return io.ErrUnexpectedEOF } - m.Denom = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: + 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: AssetMetadataByIdResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AssetMetadataByIdResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field DenomMetadata", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -6650,10 +7034,10 @@ func (m *GenesisContent_Allocation) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Address == nil { - m.Address = &v1alpha11.Address{} + if m.DenomMetadata == nil { + m.DenomMetadata = &v12.Metadata{} } - if err := m.Address.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.DenomMetadata.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex diff --git a/relayer/chains/penumbra/core/component/stake/v1alpha1/stake.pb.go b/relayer/chains/penumbra/core/component/stake/v1/stake.pb.go similarity index 84% rename from relayer/chains/penumbra/core/component/stake/v1alpha1/stake.pb.go rename to relayer/chains/penumbra/core/component/stake/v1/stake.pb.go index 1150e0781..76a8bec87 100644 --- a/relayer/chains/penumbra/core/component/stake/v1alpha1/stake.pb.go +++ b/relayer/chains/penumbra/core/component/stake/v1/stake.pb.go @@ -1,16 +1,17 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: penumbra/core/component/stake/v1alpha1/stake.proto +// source: penumbra/core/component/stake/v1/stake.proto -package stakev1alpha1 +package stakev1 import ( context "context" fmt "fmt" grpc1 "github.com/cosmos/gogoproto/grpc" proto "github.com/cosmos/gogoproto/proto" - v1alpha12 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/asset/v1alpha1" - v1alpha1 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/keys/v1alpha1" - v1alpha11 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/num/v1alpha1" + v13 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/asset/v1" + v12 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/component/sct/v1" + v1 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/keys/v1" + v11 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/num/v1" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -58,36 +59,39 @@ func (x BondingState_BondingStateEnum) String() string { } func (BondingState_BondingStateEnum) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_b49c30b9d712baf6, []int{7, 0} + return fileDescriptor_061b0086577193ed, []int{7, 0} } type ValidatorState_ValidatorStateEnum int32 const ( ValidatorState_VALIDATOR_STATE_ENUM_UNSPECIFIED ValidatorState_ValidatorStateEnum = 0 - ValidatorState_VALIDATOR_STATE_ENUM_INACTIVE ValidatorState_ValidatorStateEnum = 1 - ValidatorState_VALIDATOR_STATE_ENUM_ACTIVE ValidatorState_ValidatorStateEnum = 2 - ValidatorState_VALIDATOR_STATE_ENUM_JAILED ValidatorState_ValidatorStateEnum = 3 - ValidatorState_VALIDATOR_STATE_ENUM_TOMBSTONED ValidatorState_ValidatorStateEnum = 4 - ValidatorState_VALIDATOR_STATE_ENUM_DISABLED ValidatorState_ValidatorStateEnum = 5 + ValidatorState_VALIDATOR_STATE_ENUM_DEFINED ValidatorState_ValidatorStateEnum = 1 + ValidatorState_VALIDATOR_STATE_ENUM_INACTIVE ValidatorState_ValidatorStateEnum = 2 + ValidatorState_VALIDATOR_STATE_ENUM_ACTIVE ValidatorState_ValidatorStateEnum = 3 + ValidatorState_VALIDATOR_STATE_ENUM_JAILED ValidatorState_ValidatorStateEnum = 4 + ValidatorState_VALIDATOR_STATE_ENUM_TOMBSTONED ValidatorState_ValidatorStateEnum = 5 + ValidatorState_VALIDATOR_STATE_ENUM_DISABLED ValidatorState_ValidatorStateEnum = 6 ) var ValidatorState_ValidatorStateEnum_name = map[int32]string{ 0: "VALIDATOR_STATE_ENUM_UNSPECIFIED", - 1: "VALIDATOR_STATE_ENUM_INACTIVE", - 2: "VALIDATOR_STATE_ENUM_ACTIVE", - 3: "VALIDATOR_STATE_ENUM_JAILED", - 4: "VALIDATOR_STATE_ENUM_TOMBSTONED", - 5: "VALIDATOR_STATE_ENUM_DISABLED", + 1: "VALIDATOR_STATE_ENUM_DEFINED", + 2: "VALIDATOR_STATE_ENUM_INACTIVE", + 3: "VALIDATOR_STATE_ENUM_ACTIVE", + 4: "VALIDATOR_STATE_ENUM_JAILED", + 5: "VALIDATOR_STATE_ENUM_TOMBSTONED", + 6: "VALIDATOR_STATE_ENUM_DISABLED", } var ValidatorState_ValidatorStateEnum_value = map[string]int32{ "VALIDATOR_STATE_ENUM_UNSPECIFIED": 0, - "VALIDATOR_STATE_ENUM_INACTIVE": 1, - "VALIDATOR_STATE_ENUM_ACTIVE": 2, - "VALIDATOR_STATE_ENUM_JAILED": 3, - "VALIDATOR_STATE_ENUM_TOMBSTONED": 4, - "VALIDATOR_STATE_ENUM_DISABLED": 5, + "VALIDATOR_STATE_ENUM_DEFINED": 1, + "VALIDATOR_STATE_ENUM_INACTIVE": 2, + "VALIDATOR_STATE_ENUM_ACTIVE": 3, + "VALIDATOR_STATE_ENUM_JAILED": 4, + "VALIDATOR_STATE_ENUM_TOMBSTONED": 5, + "VALIDATOR_STATE_ENUM_DISABLED": 6, } func (x ValidatorState_ValidatorStateEnum) String() string { @@ -95,7 +99,7 @@ func (x ValidatorState_ValidatorStateEnum) String() string { } func (ValidatorState_ValidatorStateEnum) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_b49c30b9d712baf6, []int{8, 0} + return fileDescriptor_061b0086577193ed, []int{8, 0} } // A Penumbra ZK undelegate claim proof. @@ -107,7 +111,7 @@ func (m *ZKUndelegateClaimProof) Reset() { *m = ZKUndelegateClaimProof{} func (m *ZKUndelegateClaimProof) String() string { return proto.CompactTextString(m) } func (*ZKUndelegateClaimProof) ProtoMessage() {} func (*ZKUndelegateClaimProof) Descriptor() ([]byte, []int) { - return fileDescriptor_b49c30b9d712baf6, []int{0} + return fileDescriptor_061b0086577193ed, []int{0} } func (m *ZKUndelegateClaimProof) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -146,7 +150,7 @@ func (m *ZKUndelegateClaimProof) GetInner() []byte { // Describes a validator's configuration data. type Validator struct { // The validator's identity verification key. - IdentityKey *v1alpha1.IdentityKey `protobuf:"bytes,1,opt,name=identity_key,json=identityKey,proto3" json:"identity_key,omitempty"` + IdentityKey *v1.IdentityKey `protobuf:"bytes,1,opt,name=identity_key,json=identityKey,proto3" json:"identity_key,omitempty"` // The validator's consensus pubkey for use in Tendermint (Ed25519). ConsensusKey []byte `protobuf:"bytes,2,opt,name=consensus_key,json=consensusKey,proto3" json:"consensus_key,omitempty"` // The validator's (human-readable) name. @@ -166,14 +170,14 @@ type Validator struct { // with increasing sequence numbers. SequenceNumber uint32 `protobuf:"varint,7,opt,name=sequence_number,json=sequenceNumber,proto3" json:"sequence_number,omitempty"` // The validator's governance key. - GovernanceKey *v1alpha1.GovernanceKey `protobuf:"bytes,9,opt,name=governance_key,json=governanceKey,proto3" json:"governance_key,omitempty"` + GovernanceKey *v1.GovernanceKey `protobuf:"bytes,9,opt,name=governance_key,json=governanceKey,proto3" json:"governance_key,omitempty"` } func (m *Validator) Reset() { *m = Validator{} } func (m *Validator) String() string { return proto.CompactTextString(m) } func (*Validator) ProtoMessage() {} func (*Validator) Descriptor() ([]byte, []int) { - return fileDescriptor_b49c30b9d712baf6, []int{1} + return fileDescriptor_061b0086577193ed, []int{1} } func (m *Validator) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -202,7 +206,7 @@ func (m *Validator) XXX_DiscardUnknown() { var xxx_messageInfo_Validator proto.InternalMessageInfo -func (m *Validator) GetIdentityKey() *v1alpha1.IdentityKey { +func (m *Validator) GetIdentityKey() *v1.IdentityKey { if m != nil { return m.IdentityKey } @@ -258,7 +262,7 @@ func (m *Validator) GetSequenceNumber() uint32 { return 0 } -func (m *Validator) GetGovernanceKey() *v1alpha1.GovernanceKey { +func (m *Validator) GetGovernanceKey() *v1.GovernanceKey { if m != nil { return m.GovernanceKey } @@ -267,14 +271,14 @@ func (m *Validator) GetGovernanceKey() *v1alpha1.GovernanceKey { // For storing the list of keys of known validators. type ValidatorList struct { - ValidatorKeys []*v1alpha1.IdentityKey `protobuf:"bytes,1,rep,name=validator_keys,json=validatorKeys,proto3" json:"validator_keys,omitempty"` + ValidatorKeys []*v1.IdentityKey `protobuf:"bytes,1,rep,name=validator_keys,json=validatorKeys,proto3" json:"validator_keys,omitempty"` } func (m *ValidatorList) Reset() { *m = ValidatorList{} } func (m *ValidatorList) String() string { return proto.CompactTextString(m) } func (*ValidatorList) ProtoMessage() {} func (*ValidatorList) Descriptor() ([]byte, []int) { - return fileDescriptor_b49c30b9d712baf6, []int{2} + return fileDescriptor_061b0086577193ed, []int{2} } func (m *ValidatorList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -303,7 +307,7 @@ func (m *ValidatorList) XXX_DiscardUnknown() { var xxx_messageInfo_ValidatorList proto.InternalMessageInfo -func (m *ValidatorList) GetValidatorKeys() []*v1alpha1.IdentityKey { +func (m *ValidatorList) GetValidatorKeys() []*v1.IdentityKey { if m != nil { return m.ValidatorKeys } @@ -325,7 +329,7 @@ func (m *FundingStream) Reset() { *m = FundingStream{} } func (m *FundingStream) String() string { return proto.CompactTextString(m) } func (*FundingStream) ProtoMessage() {} func (*FundingStream) Descriptor() ([]byte, []int) { - return fileDescriptor_b49c30b9d712baf6, []int{3} + return fileDescriptor_061b0086577193ed, []int{3} } func (m *FundingStream) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -411,7 +415,7 @@ func (m *FundingStream_ToAddress) Reset() { *m = FundingStream_ToAddress func (m *FundingStream_ToAddress) String() string { return proto.CompactTextString(m) } func (*FundingStream_ToAddress) ProtoMessage() {} func (*FundingStream_ToAddress) Descriptor() ([]byte, []int) { - return fileDescriptor_b49c30b9d712baf6, []int{3, 0} + return fileDescriptor_061b0086577193ed, []int{3, 0} } func (m *FundingStream_ToAddress) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -464,7 +468,7 @@ func (m *FundingStream_ToCommunityPool) Reset() { *m = FundingStream_ToC func (m *FundingStream_ToCommunityPool) String() string { return proto.CompactTextString(m) } func (*FundingStream_ToCommunityPool) ProtoMessage() {} func (*FundingStream_ToCommunityPool) Descriptor() ([]byte, []int) { - return fileDescriptor_b49c30b9d712baf6, []int{3, 1} + return fileDescriptor_061b0086577193ed, []int{3, 1} } func (m *FundingStream_ToCommunityPool) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -502,17 +506,17 @@ func (m *FundingStream_ToCommunityPool) GetRateBps() uint32 { // Describes the reward and exchange rates and voting power for a validator in some epoch. type RateData struct { - IdentityKey *v1alpha1.IdentityKey `protobuf:"bytes,1,opt,name=identity_key,json=identityKey,proto3" json:"identity_key,omitempty"` - EpochIndex uint64 `protobuf:"varint,2,opt,name=epoch_index,json=epochIndex,proto3" json:"epoch_index,omitempty"` - ValidatorRewardRate uint64 `protobuf:"varint,4,opt,name=validator_reward_rate,json=validatorRewardRate,proto3" json:"validator_reward_rate,omitempty"` - ValidatorExchangeRate uint64 `protobuf:"varint,5,opt,name=validator_exchange_rate,json=validatorExchangeRate,proto3" json:"validator_exchange_rate,omitempty"` + IdentityKey *v1.IdentityKey `protobuf:"bytes,1,opt,name=identity_key,json=identityKey,proto3" json:"identity_key,omitempty"` + EpochIndex uint64 `protobuf:"varint,2,opt,name=epoch_index,json=epochIndex,proto3" json:"epoch_index,omitempty"` // Deprecated: Do not use. + ValidatorRewardRate *v11.Amount `protobuf:"bytes,4,opt,name=validator_reward_rate,json=validatorRewardRate,proto3" json:"validator_reward_rate,omitempty"` + ValidatorExchangeRate *v11.Amount `protobuf:"bytes,5,opt,name=validator_exchange_rate,json=validatorExchangeRate,proto3" json:"validator_exchange_rate,omitempty"` } func (m *RateData) Reset() { *m = RateData{} } func (m *RateData) String() string { return proto.CompactTextString(m) } func (*RateData) ProtoMessage() {} func (*RateData) Descriptor() ([]byte, []int) { - return fileDescriptor_b49c30b9d712baf6, []int{4} + return fileDescriptor_061b0086577193ed, []int{4} } func (m *RateData) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -541,13 +545,14 @@ func (m *RateData) XXX_DiscardUnknown() { var xxx_messageInfo_RateData proto.InternalMessageInfo -func (m *RateData) GetIdentityKey() *v1alpha1.IdentityKey { +func (m *RateData) GetIdentityKey() *v1.IdentityKey { if m != nil { return m.IdentityKey } return nil } +// Deprecated: Do not use. func (m *RateData) GetEpochIndex() uint64 { if m != nil { return m.EpochIndex @@ -555,32 +560,32 @@ func (m *RateData) GetEpochIndex() uint64 { return 0 } -func (m *RateData) GetValidatorRewardRate() uint64 { +func (m *RateData) GetValidatorRewardRate() *v11.Amount { if m != nil { return m.ValidatorRewardRate } - return 0 + return nil } -func (m *RateData) GetValidatorExchangeRate() uint64 { +func (m *RateData) GetValidatorExchangeRate() *v11.Amount { if m != nil { return m.ValidatorExchangeRate } - return 0 + return nil } // Describes the base reward and exchange rates in some epoch. type BaseRateData struct { - EpochIndex uint64 `protobuf:"varint,1,opt,name=epoch_index,json=epochIndex,proto3" json:"epoch_index,omitempty"` - BaseRewardRate uint64 `protobuf:"varint,2,opt,name=base_reward_rate,json=baseRewardRate,proto3" json:"base_reward_rate,omitempty"` - BaseExchangeRate uint64 `protobuf:"varint,3,opt,name=base_exchange_rate,json=baseExchangeRate,proto3" json:"base_exchange_rate,omitempty"` + EpochIndex uint64 `protobuf:"varint,1,opt,name=epoch_index,json=epochIndex,proto3" json:"epoch_index,omitempty"` + BaseRewardRate *v11.Amount `protobuf:"bytes,2,opt,name=base_reward_rate,json=baseRewardRate,proto3" json:"base_reward_rate,omitempty"` + BaseExchangeRate *v11.Amount `protobuf:"bytes,3,opt,name=base_exchange_rate,json=baseExchangeRate,proto3" json:"base_exchange_rate,omitempty"` } func (m *BaseRateData) Reset() { *m = BaseRateData{} } func (m *BaseRateData) String() string { return proto.CompactTextString(m) } func (*BaseRateData) ProtoMessage() {} func (*BaseRateData) Descriptor() ([]byte, []int) { - return fileDescriptor_b49c30b9d712baf6, []int{5} + return fileDescriptor_061b0086577193ed, []int{5} } func (m *BaseRateData) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -616,33 +621,33 @@ func (m *BaseRateData) GetEpochIndex() uint64 { return 0 } -func (m *BaseRateData) GetBaseRewardRate() uint64 { +func (m *BaseRateData) GetBaseRewardRate() *v11.Amount { if m != nil { return m.BaseRewardRate } - return 0 + return nil } -func (m *BaseRateData) GetBaseExchangeRate() uint64 { +func (m *BaseRateData) GetBaseExchangeRate() *v11.Amount { if m != nil { return m.BaseExchangeRate } - return 0 + return nil } // Describes the current state of a validator on-chain type ValidatorStatus struct { - IdentityKey *v1alpha1.IdentityKey `protobuf:"bytes,1,opt,name=identity_key,json=identityKey,proto3" json:"identity_key,omitempty"` - State *ValidatorState `protobuf:"bytes,2,opt,name=state,proto3" json:"state,omitempty"` - VotingPower uint64 `protobuf:"varint,3,opt,name=voting_power,json=votingPower,proto3" json:"voting_power,omitempty"` - BondingState *BondingState `protobuf:"bytes,4,opt,name=bonding_state,json=bondingState,proto3" json:"bonding_state,omitempty"` + IdentityKey *v1.IdentityKey `protobuf:"bytes,1,opt,name=identity_key,json=identityKey,proto3" json:"identity_key,omitempty"` + State *ValidatorState `protobuf:"bytes,2,opt,name=state,proto3" json:"state,omitempty"` + VotingPower *v11.Amount `protobuf:"bytes,3,opt,name=voting_power,json=votingPower,proto3" json:"voting_power,omitempty"` + BondingState *BondingState `protobuf:"bytes,4,opt,name=bonding_state,json=bondingState,proto3" json:"bonding_state,omitempty"` } func (m *ValidatorStatus) Reset() { *m = ValidatorStatus{} } func (m *ValidatorStatus) String() string { return proto.CompactTextString(m) } func (*ValidatorStatus) ProtoMessage() {} func (*ValidatorStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_b49c30b9d712baf6, []int{6} + return fileDescriptor_061b0086577193ed, []int{6} } func (m *ValidatorStatus) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -671,7 +676,7 @@ func (m *ValidatorStatus) XXX_DiscardUnknown() { var xxx_messageInfo_ValidatorStatus proto.InternalMessageInfo -func (m *ValidatorStatus) GetIdentityKey() *v1alpha1.IdentityKey { +func (m *ValidatorStatus) GetIdentityKey() *v1.IdentityKey { if m != nil { return m.IdentityKey } @@ -685,11 +690,11 @@ func (m *ValidatorStatus) GetState() *ValidatorState { return nil } -func (m *ValidatorStatus) GetVotingPower() uint64 { +func (m *ValidatorStatus) GetVotingPower() *v11.Amount { if m != nil { return m.VotingPower } - return 0 + return nil } func (m *ValidatorStatus) GetBondingState() *BondingState { @@ -701,15 +706,16 @@ func (m *ValidatorStatus) GetBondingState() *BondingState { // Describes the unbonding state of a validator's stake pool. type BondingState struct { - State BondingState_BondingStateEnum `protobuf:"varint,1,opt,name=state,proto3,enum=penumbra.core.component.stake.v1alpha1.BondingState_BondingStateEnum" json:"state,omitempty"` - UnbondingEpoch uint64 `protobuf:"varint,2,opt,name=unbonding_epoch,json=unbondingEpoch,proto3" json:"unbonding_epoch,omitempty"` + State BondingState_BondingStateEnum `protobuf:"varint,1,opt,name=state,proto3,enum=penumbra.core.component.stake.v1.BondingState_BondingStateEnum" json:"state,omitempty"` + UnbondsAtEpoch uint64 `protobuf:"varint,2,opt,name=unbonds_at_epoch,json=unbondsAtEpoch,proto3" json:"unbonds_at_epoch,omitempty"` // Deprecated: Do not use. + UnbondsAtHeight uint64 `protobuf:"varint,3,opt,name=unbonds_at_height,json=unbondsAtHeight,proto3" json:"unbonds_at_height,omitempty"` } func (m *BondingState) Reset() { *m = BondingState{} } func (m *BondingState) String() string { return proto.CompactTextString(m) } func (*BondingState) ProtoMessage() {} func (*BondingState) Descriptor() ([]byte, []int) { - return fileDescriptor_b49c30b9d712baf6, []int{7} + return fileDescriptor_061b0086577193ed, []int{7} } func (m *BondingState) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -745,23 +751,31 @@ func (m *BondingState) GetState() BondingState_BondingStateEnum { return BondingState_BONDING_STATE_ENUM_UNSPECIFIED } -func (m *BondingState) GetUnbondingEpoch() uint64 { +// Deprecated: Do not use. +func (m *BondingState) GetUnbondsAtEpoch() uint64 { + if m != nil { + return m.UnbondsAtEpoch + } + return 0 +} + +func (m *BondingState) GetUnbondsAtHeight() uint64 { if m != nil { - return m.UnbondingEpoch + return m.UnbondsAtHeight } return 0 } // Describes the state of a validator type ValidatorState struct { - State ValidatorState_ValidatorStateEnum `protobuf:"varint,1,opt,name=state,proto3,enum=penumbra.core.component.stake.v1alpha1.ValidatorState_ValidatorStateEnum" json:"state,omitempty"` + State ValidatorState_ValidatorStateEnum `protobuf:"varint,1,opt,name=state,proto3,enum=penumbra.core.component.stake.v1.ValidatorState_ValidatorStateEnum" json:"state,omitempty"` } func (m *ValidatorState) Reset() { *m = ValidatorState{} } func (m *ValidatorState) String() string { return proto.CompactTextString(m) } func (*ValidatorState) ProtoMessage() {} func (*ValidatorState) Descriptor() ([]byte, []int) { - return fileDescriptor_b49c30b9d712baf6, []int{8} + return fileDescriptor_061b0086577193ed, []int{8} } func (m *ValidatorState) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -808,7 +822,7 @@ func (m *ValidatorInfo) Reset() { *m = ValidatorInfo{} } func (m *ValidatorInfo) String() string { return proto.CompactTextString(m) } func (*ValidatorInfo) ProtoMessage() {} func (*ValidatorInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_b49c30b9d712baf6, []int{9} + return fileDescriptor_061b0086577193ed, []int{9} } func (m *ValidatorInfo) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -870,7 +884,7 @@ func (m *ValidatorDefinition) Reset() { *m = ValidatorDefinition{} } func (m *ValidatorDefinition) String() string { return proto.CompactTextString(m) } func (*ValidatorDefinition) ProtoMessage() {} func (*ValidatorDefinition) Descriptor() ([]byte, []int) { - return fileDescriptor_b49c30b9d712baf6, []int{10} + return fileDescriptor_061b0086577193ed, []int{10} } func (m *ValidatorDefinition) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -916,26 +930,26 @@ func (m *ValidatorDefinition) GetAuthSig() []byte { // A transaction action adding stake to a validator's delegation pool. type Delegate struct { // The identity key of the validator to delegate to. - ValidatorIdentity *v1alpha1.IdentityKey `protobuf:"bytes,1,opt,name=validator_identity,json=validatorIdentity,proto3" json:"validator_identity,omitempty"` + ValidatorIdentity *v1.IdentityKey `protobuf:"bytes,1,opt,name=validator_identity,json=validatorIdentity,proto3" json:"validator_identity,omitempty"` // The index of the epoch in which this delegation was performed. // The delegation takes effect in the next epoch. EpochIndex uint64 `protobuf:"varint,2,opt,name=epoch_index,json=epochIndex,proto3" json:"epoch_index,omitempty"` // The delegation amount, in units of unbonded stake. // TODO: use flow aggregation to hide this, replacing it with bytes amount_ciphertext; - UnbondedAmount *v1alpha11.Amount `protobuf:"bytes,3,opt,name=unbonded_amount,json=unbondedAmount,proto3" json:"unbonded_amount,omitempty"` + UnbondedAmount *v11.Amount `protobuf:"bytes,3,opt,name=unbonded_amount,json=unbondedAmount,proto3" json:"unbonded_amount,omitempty"` // The amount of delegation tokens produced by this action. // // This is implied by the validator's exchange rate in the specified epoch // (and should be checked in transaction validation!), but including it allows // stateless verification that the transaction is internally consistent. - DelegationAmount *v1alpha11.Amount `protobuf:"bytes,4,opt,name=delegation_amount,json=delegationAmount,proto3" json:"delegation_amount,omitempty"` + DelegationAmount *v11.Amount `protobuf:"bytes,4,opt,name=delegation_amount,json=delegationAmount,proto3" json:"delegation_amount,omitempty"` } func (m *Delegate) Reset() { *m = Delegate{} } func (m *Delegate) String() string { return proto.CompactTextString(m) } func (*Delegate) ProtoMessage() {} func (*Delegate) Descriptor() ([]byte, []int) { - return fileDescriptor_b49c30b9d712baf6, []int{11} + return fileDescriptor_061b0086577193ed, []int{11} } func (m *Delegate) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -964,7 +978,7 @@ func (m *Delegate) XXX_DiscardUnknown() { var xxx_messageInfo_Delegate proto.InternalMessageInfo -func (m *Delegate) GetValidatorIdentity() *v1alpha1.IdentityKey { +func (m *Delegate) GetValidatorIdentity() *v1.IdentityKey { if m != nil { return m.ValidatorIdentity } @@ -978,14 +992,14 @@ func (m *Delegate) GetEpochIndex() uint64 { return 0 } -func (m *Delegate) GetUnbondedAmount() *v1alpha11.Amount { +func (m *Delegate) GetUnbondedAmount() *v11.Amount { if m != nil { return m.UnbondedAmount } return nil } -func (m *Delegate) GetDelegationAmount() *v1alpha11.Amount { +func (m *Delegate) GetDelegationAmount() *v11.Amount { if m != nil { return m.DelegationAmount } @@ -995,24 +1009,26 @@ func (m *Delegate) GetDelegationAmount() *v1alpha11.Amount { // A transaction action withdrawing stake from a validator's delegation pool. type Undelegate struct { // The identity key of the validator to undelegate from. - ValidatorIdentity *v1alpha1.IdentityKey `protobuf:"bytes,1,opt,name=validator_identity,json=validatorIdentity,proto3" json:"validator_identity,omitempty"` + ValidatorIdentity *v1.IdentityKey `protobuf:"bytes,1,opt,name=validator_identity,json=validatorIdentity,proto3" json:"validator_identity,omitempty"` // The index of the epoch in which this undelegation was performed. - StartEpochIndex uint64 `protobuf:"varint,2,opt,name=start_epoch_index,json=startEpochIndex,proto3" json:"start_epoch_index,omitempty"` + StartEpochIndex uint64 `protobuf:"varint,2,opt,name=start_epoch_index,json=startEpochIndex,proto3" json:"start_epoch_index,omitempty"` // Deprecated: Do not use. // The amount to undelegate, in units of unbonding tokens. - UnbondedAmount *v1alpha11.Amount `protobuf:"bytes,3,opt,name=unbonded_amount,json=unbondedAmount,proto3" json:"unbonded_amount,omitempty"` + UnbondedAmount *v11.Amount `protobuf:"bytes,3,opt,name=unbonded_amount,json=unbondedAmount,proto3" json:"unbonded_amount,omitempty"` // The amount of delegation tokens consumed by this action. // // This is implied by the validator's exchange rate in the specified epoch // (and should be checked in transaction validation!), but including it allows // stateless verification that the transaction is internally consistent. - DelegationAmount *v1alpha11.Amount `protobuf:"bytes,4,opt,name=delegation_amount,json=delegationAmount,proto3" json:"delegation_amount,omitempty"` + DelegationAmount *v11.Amount `protobuf:"bytes,4,opt,name=delegation_amount,json=delegationAmount,proto3" json:"delegation_amount,omitempty"` + // The epoch in which this delegation was performed. + FromEpoch *v12.Epoch `protobuf:"bytes,5,opt,name=from_epoch,json=fromEpoch,proto3" json:"from_epoch,omitempty"` } func (m *Undelegate) Reset() { *m = Undelegate{} } func (m *Undelegate) String() string { return proto.CompactTextString(m) } func (*Undelegate) ProtoMessage() {} func (*Undelegate) Descriptor() ([]byte, []int) { - return fileDescriptor_b49c30b9d712baf6, []int{12} + return fileDescriptor_061b0086577193ed, []int{12} } func (m *Undelegate) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1041,13 +1057,14 @@ func (m *Undelegate) XXX_DiscardUnknown() { var xxx_messageInfo_Undelegate proto.InternalMessageInfo -func (m *Undelegate) GetValidatorIdentity() *v1alpha1.IdentityKey { +func (m *Undelegate) GetValidatorIdentity() *v1.IdentityKey { if m != nil { return m.ValidatorIdentity } return nil } +// Deprecated: Do not use. func (m *Undelegate) GetStartEpochIndex() uint64 { if m != nil { return m.StartEpochIndex @@ -1055,20 +1072,27 @@ func (m *Undelegate) GetStartEpochIndex() uint64 { return 0 } -func (m *Undelegate) GetUnbondedAmount() *v1alpha11.Amount { +func (m *Undelegate) GetUnbondedAmount() *v11.Amount { if m != nil { return m.UnbondedAmount } return nil } -func (m *Undelegate) GetDelegationAmount() *v1alpha11.Amount { +func (m *Undelegate) GetDelegationAmount() *v11.Amount { if m != nil { return m.DelegationAmount } return nil } +func (m *Undelegate) GetFromEpoch() *v12.Epoch { + if m != nil { + return m.FromEpoch + } + return nil +} + // A transaction action finishing an undelegation, converting (slashable) // "unbonding tokens" to (unslashable) staking tokens. type UndelegateClaim struct { @@ -1080,7 +1104,7 @@ func (m *UndelegateClaim) Reset() { *m = UndelegateClaim{} } func (m *UndelegateClaim) String() string { return proto.CompactTextString(m) } func (*UndelegateClaim) ProtoMessage() {} func (*UndelegateClaim) Descriptor() ([]byte, []int) { - return fileDescriptor_b49c30b9d712baf6, []int{13} + return fileDescriptor_061b0086577193ed, []int{13} } func (m *UndelegateClaim) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1125,21 +1149,23 @@ func (m *UndelegateClaim) GetProof() []byte { type UndelegateClaimBody struct { // The identity key of the validator to finish undelegating from. - ValidatorIdentity *v1alpha1.IdentityKey `protobuf:"bytes,1,opt,name=validator_identity,json=validatorIdentity,proto3" json:"validator_identity,omitempty"` + ValidatorIdentity *v1.IdentityKey `protobuf:"bytes,1,opt,name=validator_identity,json=validatorIdentity,proto3" json:"validator_identity,omitempty"` // The epoch in which unbonding began, used to verify the penalty. - StartEpochIndex uint64 `protobuf:"varint,2,opt,name=start_epoch_index,json=startEpochIndex,proto3" json:"start_epoch_index,omitempty"` + StartEpochIndex uint64 `protobuf:"varint,2,opt,name=start_epoch_index,json=startEpochIndex,proto3" json:"start_epoch_index,omitempty"` // Deprecated: Do not use. // The penalty applied to undelegation, in bps^2 (10e-8). // In the happy path (no slashing), this is 0. Penalty *Penalty `protobuf:"bytes,3,opt,name=penalty,proto3" json:"penalty,omitempty"` // The action's contribution to the transaction's value balance. - BalanceCommitment *v1alpha12.BalanceCommitment `protobuf:"bytes,4,opt,name=balance_commitment,json=balanceCommitment,proto3" json:"balance_commitment,omitempty"` + BalanceCommitment *v13.BalanceCommitment `protobuf:"bytes,4,opt,name=balance_commitment,json=balanceCommitment,proto3" json:"balance_commitment,omitempty"` + // / The starting height of the epoch during which unbonding began. + UnbondingStartHeight uint64 `protobuf:"varint,5,opt,name=unbonding_start_height,json=unbondingStartHeight,proto3" json:"unbonding_start_height,omitempty"` } func (m *UndelegateClaimBody) Reset() { *m = UndelegateClaimBody{} } func (m *UndelegateClaimBody) String() string { return proto.CompactTextString(m) } func (*UndelegateClaimBody) ProtoMessage() {} func (*UndelegateClaimBody) Descriptor() ([]byte, []int) { - return fileDescriptor_b49c30b9d712baf6, []int{14} + return fileDescriptor_061b0086577193ed, []int{14} } func (m *UndelegateClaimBody) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1168,13 +1194,14 @@ func (m *UndelegateClaimBody) XXX_DiscardUnknown() { var xxx_messageInfo_UndelegateClaimBody proto.InternalMessageInfo -func (m *UndelegateClaimBody) GetValidatorIdentity() *v1alpha1.IdentityKey { +func (m *UndelegateClaimBody) GetValidatorIdentity() *v1.IdentityKey { if m != nil { return m.ValidatorIdentity } return nil } +// Deprecated: Do not use. func (m *UndelegateClaimBody) GetStartEpochIndex() uint64 { if m != nil { return m.StartEpochIndex @@ -1189,37 +1216,46 @@ func (m *UndelegateClaimBody) GetPenalty() *Penalty { return nil } -func (m *UndelegateClaimBody) GetBalanceCommitment() *v1alpha12.BalanceCommitment { +func (m *UndelegateClaimBody) GetBalanceCommitment() *v13.BalanceCommitment { if m != nil { return m.BalanceCommitment } return nil } +func (m *UndelegateClaimBody) GetUnbondingStartHeight() uint64 { + if m != nil { + return m.UnbondingStartHeight + } + return 0 +} + type UndelegateClaimPlan struct { // The identity key of the validator to finish undelegating from. - ValidatorIdentity *v1alpha1.IdentityKey `protobuf:"bytes,1,opt,name=validator_identity,json=validatorIdentity,proto3" json:"validator_identity,omitempty"` + ValidatorIdentity *v1.IdentityKey `protobuf:"bytes,1,opt,name=validator_identity,json=validatorIdentity,proto3" json:"validator_identity,omitempty"` // The epoch in which unbonding began, used to verify the penalty. - StartEpochIndex uint64 `protobuf:"varint,2,opt,name=start_epoch_index,json=startEpochIndex,proto3" json:"start_epoch_index,omitempty"` + StartEpochIndex uint64 `protobuf:"varint,2,opt,name=start_epoch_index,json=startEpochIndex,proto3" json:"start_epoch_index,omitempty"` // Deprecated: Do not use. // The penalty applied to undelegation, in bps^2 (10e-8). // In the happy path (no slashing), this is 0. Penalty *Penalty `protobuf:"bytes,4,opt,name=penalty,proto3" json:"penalty,omitempty"` // The amount of unbonding tokens to claim. // This is a bare number because its denom is determined by the preceding data. - UnbondingAmount *v1alpha11.Amount `protobuf:"bytes,5,opt,name=unbonding_amount,json=unbondingAmount,proto3" json:"unbonding_amount,omitempty"` + UnbondingAmount *v11.Amount `protobuf:"bytes,5,opt,name=unbonding_amount,json=unbondingAmount,proto3" json:"unbonding_amount,omitempty"` // The blinding factor to use for the balance commitment. BalanceBlinding []byte `protobuf:"bytes,6,opt,name=balance_blinding,json=balanceBlinding,proto3" json:"balance_blinding,omitempty"` // The first blinding factor to use for the ZK undelegate claim proof. ProofBlindingR []byte `protobuf:"bytes,7,opt,name=proof_blinding_r,json=proofBlindingR,proto3" json:"proof_blinding_r,omitempty"` // The second blinding factor to use for the ZK undelegate claim proof. ProofBlindingS []byte `protobuf:"bytes,8,opt,name=proof_blinding_s,json=proofBlindingS,proto3" json:"proof_blinding_s,omitempty"` + // The height during which unbonding began. + UnbondingStartHeight uint64 `protobuf:"varint,9,opt,name=unbonding_start_height,json=unbondingStartHeight,proto3" json:"unbonding_start_height,omitempty"` } func (m *UndelegateClaimPlan) Reset() { *m = UndelegateClaimPlan{} } func (m *UndelegateClaimPlan) String() string { return proto.CompactTextString(m) } func (*UndelegateClaimPlan) ProtoMessage() {} func (*UndelegateClaimPlan) Descriptor() ([]byte, []int) { - return fileDescriptor_b49c30b9d712baf6, []int{15} + return fileDescriptor_061b0086577193ed, []int{15} } func (m *UndelegateClaimPlan) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1248,13 +1284,14 @@ func (m *UndelegateClaimPlan) XXX_DiscardUnknown() { var xxx_messageInfo_UndelegateClaimPlan proto.InternalMessageInfo -func (m *UndelegateClaimPlan) GetValidatorIdentity() *v1alpha1.IdentityKey { +func (m *UndelegateClaimPlan) GetValidatorIdentity() *v1.IdentityKey { if m != nil { return m.ValidatorIdentity } return nil } +// Deprecated: Do not use. func (m *UndelegateClaimPlan) GetStartEpochIndex() uint64 { if m != nil { return m.StartEpochIndex @@ -1269,7 +1306,7 @@ func (m *UndelegateClaimPlan) GetPenalty() *Penalty { return nil } -func (m *UndelegateClaimPlan) GetUnbondingAmount() *v1alpha11.Amount { +func (m *UndelegateClaimPlan) GetUnbondingAmount() *v11.Amount { if m != nil { return m.UnbondingAmount } @@ -1297,6 +1334,13 @@ func (m *UndelegateClaimPlan) GetProofBlindingS() []byte { return nil } +func (m *UndelegateClaimPlan) GetUnbondingStartHeight() uint64 { + if m != nil { + return m.UnbondingStartHeight + } + return 0 +} + // A list of pending delegations and undelegations. type DelegationChanges struct { Delegations []*Delegate `protobuf:"bytes,1,rep,name=delegations,proto3" json:"delegations,omitempty"` @@ -1307,7 +1351,7 @@ func (m *DelegationChanges) Reset() { *m = DelegationChanges{} } func (m *DelegationChanges) String() string { return proto.CompactTextString(m) } func (*DelegationChanges) ProtoMessage() {} func (*DelegationChanges) Descriptor() ([]byte, []int) { - return fileDescriptor_b49c30b9d712baf6, []int{16} + return fileDescriptor_061b0086577193ed, []int{16} } func (m *DelegationChanges) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1361,7 +1405,7 @@ func (m *Uptime) Reset() { *m = Uptime{} } func (m *Uptime) String() string { return proto.CompactTextString(m) } func (*Uptime) ProtoMessage() {} func (*Uptime) Descriptor() ([]byte, []int) { - return fileDescriptor_b49c30b9d712baf6, []int{17} + return fileDescriptor_061b0086577193ed, []int{17} } func (m *Uptime) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1414,14 +1458,14 @@ func (m *Uptime) GetBitvec() []byte { // Tracks our view of Tendermint's view of the validator set, so we can keep it // from getting confused. type CurrentConsensusKeys struct { - ConsensusKeys []*v1alpha1.ConsensusKey `protobuf:"bytes,1,rep,name=consensus_keys,json=consensusKeys,proto3" json:"consensus_keys,omitempty"` + ConsensusKeys []*v1.ConsensusKey `protobuf:"bytes,1,rep,name=consensus_keys,json=consensusKeys,proto3" json:"consensus_keys,omitempty"` } func (m *CurrentConsensusKeys) Reset() { *m = CurrentConsensusKeys{} } func (m *CurrentConsensusKeys) String() string { return proto.CompactTextString(m) } func (*CurrentConsensusKeys) ProtoMessage() {} func (*CurrentConsensusKeys) Descriptor() ([]byte, []int) { - return fileDescriptor_b49c30b9d712baf6, []int{18} + return fileDescriptor_061b0086577193ed, []int{18} } func (m *CurrentConsensusKeys) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1450,7 +1494,7 @@ func (m *CurrentConsensusKeys) XXX_DiscardUnknown() { var xxx_messageInfo_CurrentConsensusKeys proto.InternalMessageInfo -func (m *CurrentConsensusKeys) GetConsensusKeys() []*v1alpha1.ConsensusKey { +func (m *CurrentConsensusKeys) GetConsensusKeys() []*v1.ConsensusKey { if m != nil { return m.ConsensusKeys } @@ -1466,7 +1510,7 @@ func (m *Penalty) Reset() { *m = Penalty{} } func (m *Penalty) String() string { return proto.CompactTextString(m) } func (*Penalty) ProtoMessage() {} func (*Penalty) Descriptor() ([]byte, []int) { - return fileDescriptor_b49c30b9d712baf6, []int{19} + return fileDescriptor_061b0086577193ed, []int{19} } func (m *Penalty) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1504,8 +1548,6 @@ func (m *Penalty) GetInner() []byte { // Requests information on the chain's validators. type ValidatorInfoRequest struct { - // The expected chain id (empty string if no expectation). - ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` // Whether or not to return inactive validators ShowInactive bool `protobuf:"varint,2,opt,name=show_inactive,json=showInactive,proto3" json:"show_inactive,omitempty"` } @@ -1514,7 +1556,7 @@ func (m *ValidatorInfoRequest) Reset() { *m = ValidatorInfoRequest{} } func (m *ValidatorInfoRequest) String() string { return proto.CompactTextString(m) } func (*ValidatorInfoRequest) ProtoMessage() {} func (*ValidatorInfoRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_b49c30b9d712baf6, []int{20} + return fileDescriptor_061b0086577193ed, []int{20} } func (m *ValidatorInfoRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1543,13 +1585,6 @@ func (m *ValidatorInfoRequest) XXX_DiscardUnknown() { var xxx_messageInfo_ValidatorInfoRequest proto.InternalMessageInfo -func (m *ValidatorInfoRequest) GetChainId() string { - if m != nil { - return m.ChainId - } - return "" -} - func (m *ValidatorInfoRequest) GetShowInactive() bool { if m != nil { return m.ShowInactive @@ -1565,7 +1600,7 @@ func (m *ValidatorInfoResponse) Reset() { *m = ValidatorInfoResponse{} } func (m *ValidatorInfoResponse) String() string { return proto.CompactTextString(m) } func (*ValidatorInfoResponse) ProtoMessage() {} func (*ValidatorInfoResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_b49c30b9d712baf6, []int{21} + return fileDescriptor_061b0086577193ed, []int{21} } func (m *ValidatorInfoResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1602,16 +1637,14 @@ func (m *ValidatorInfoResponse) GetValidatorInfo() *ValidatorInfo { } type ValidatorStatusRequest struct { - // The expected chain id (empty string if no expectation). - ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` - IdentityKey *v1alpha1.IdentityKey `protobuf:"bytes,2,opt,name=identity_key,json=identityKey,proto3" json:"identity_key,omitempty"` + IdentityKey *v1.IdentityKey `protobuf:"bytes,2,opt,name=identity_key,json=identityKey,proto3" json:"identity_key,omitempty"` } func (m *ValidatorStatusRequest) Reset() { *m = ValidatorStatusRequest{} } func (m *ValidatorStatusRequest) String() string { return proto.CompactTextString(m) } func (*ValidatorStatusRequest) ProtoMessage() {} func (*ValidatorStatusRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_b49c30b9d712baf6, []int{22} + return fileDescriptor_061b0086577193ed, []int{22} } func (m *ValidatorStatusRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1640,14 +1673,7 @@ func (m *ValidatorStatusRequest) XXX_DiscardUnknown() { var xxx_messageInfo_ValidatorStatusRequest proto.InternalMessageInfo -func (m *ValidatorStatusRequest) GetChainId() string { - if m != nil { - return m.ChainId - } - return "" -} - -func (m *ValidatorStatusRequest) GetIdentityKey() *v1alpha1.IdentityKey { +func (m *ValidatorStatusRequest) GetIdentityKey() *v1.IdentityKey { if m != nil { return m.IdentityKey } @@ -1662,7 +1688,7 @@ func (m *ValidatorStatusResponse) Reset() { *m = ValidatorStatusResponse func (m *ValidatorStatusResponse) String() string { return proto.CompactTextString(m) } func (*ValidatorStatusResponse) ProtoMessage() {} func (*ValidatorStatusResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_b49c30b9d712baf6, []int{23} + return fileDescriptor_061b0086577193ed, []int{23} } func (m *ValidatorStatusResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1700,18 +1726,16 @@ func (m *ValidatorStatusResponse) GetStatus() *ValidatorStatus { // Requests the compounded penalty for a validator over a range of epochs. type ValidatorPenaltyRequest struct { - // The expected chain id (empty string if no expectation). - ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` - IdentityKey *v1alpha1.IdentityKey `protobuf:"bytes,2,opt,name=identity_key,json=identityKey,proto3" json:"identity_key,omitempty"` - StartEpochIndex uint64 `protobuf:"varint,3,opt,name=start_epoch_index,json=startEpochIndex,proto3" json:"start_epoch_index,omitempty"` - EndEpochIndex uint64 `protobuf:"varint,4,opt,name=end_epoch_index,json=endEpochIndex,proto3" json:"end_epoch_index,omitempty"` + IdentityKey *v1.IdentityKey `protobuf:"bytes,2,opt,name=identity_key,json=identityKey,proto3" json:"identity_key,omitempty"` + StartEpochIndex uint64 `protobuf:"varint,3,opt,name=start_epoch_index,json=startEpochIndex,proto3" json:"start_epoch_index,omitempty"` + EndEpochIndex uint64 `protobuf:"varint,4,opt,name=end_epoch_index,json=endEpochIndex,proto3" json:"end_epoch_index,omitempty"` } func (m *ValidatorPenaltyRequest) Reset() { *m = ValidatorPenaltyRequest{} } func (m *ValidatorPenaltyRequest) String() string { return proto.CompactTextString(m) } func (*ValidatorPenaltyRequest) ProtoMessage() {} func (*ValidatorPenaltyRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_b49c30b9d712baf6, []int{24} + return fileDescriptor_061b0086577193ed, []int{24} } func (m *ValidatorPenaltyRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1740,14 +1764,7 @@ func (m *ValidatorPenaltyRequest) XXX_DiscardUnknown() { var xxx_messageInfo_ValidatorPenaltyRequest proto.InternalMessageInfo -func (m *ValidatorPenaltyRequest) GetChainId() string { - if m != nil { - return m.ChainId - } - return "" -} - -func (m *ValidatorPenaltyRequest) GetIdentityKey() *v1alpha1.IdentityKey { +func (m *ValidatorPenaltyRequest) GetIdentityKey() *v1.IdentityKey { if m != nil { return m.IdentityKey } @@ -1776,7 +1793,7 @@ func (m *ValidatorPenaltyResponse) Reset() { *m = ValidatorPenaltyRespon func (m *ValidatorPenaltyResponse) String() string { return proto.CompactTextString(m) } func (*ValidatorPenaltyResponse) ProtoMessage() {} func (*ValidatorPenaltyResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_b49c30b9d712baf6, []int{25} + return fileDescriptor_061b0086577193ed, []int{25} } func (m *ValidatorPenaltyResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1813,16 +1830,14 @@ func (m *ValidatorPenaltyResponse) GetPenalty() *Penalty { } type CurrentValidatorRateRequest struct { - // The expected chain id (empty string if no expectation). - ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` - IdentityKey *v1alpha1.IdentityKey `protobuf:"bytes,2,opt,name=identity_key,json=identityKey,proto3" json:"identity_key,omitempty"` + IdentityKey *v1.IdentityKey `protobuf:"bytes,2,opt,name=identity_key,json=identityKey,proto3" json:"identity_key,omitempty"` } func (m *CurrentValidatorRateRequest) Reset() { *m = CurrentValidatorRateRequest{} } func (m *CurrentValidatorRateRequest) String() string { return proto.CompactTextString(m) } func (*CurrentValidatorRateRequest) ProtoMessage() {} func (*CurrentValidatorRateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_b49c30b9d712baf6, []int{26} + return fileDescriptor_061b0086577193ed, []int{26} } func (m *CurrentValidatorRateRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1851,14 +1866,7 @@ func (m *CurrentValidatorRateRequest) XXX_DiscardUnknown() { var xxx_messageInfo_CurrentValidatorRateRequest proto.InternalMessageInfo -func (m *CurrentValidatorRateRequest) GetChainId() string { - if m != nil { - return m.ChainId - } - return "" -} - -func (m *CurrentValidatorRateRequest) GetIdentityKey() *v1alpha1.IdentityKey { +func (m *CurrentValidatorRateRequest) GetIdentityKey() *v1.IdentityKey { if m != nil { return m.IdentityKey } @@ -1873,7 +1881,7 @@ func (m *CurrentValidatorRateResponse) Reset() { *m = CurrentValidatorRa func (m *CurrentValidatorRateResponse) String() string { return proto.CompactTextString(m) } func (*CurrentValidatorRateResponse) ProtoMessage() {} func (*CurrentValidatorRateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_b49c30b9d712baf6, []int{27} + return fileDescriptor_061b0086577193ed, []int{27} } func (m *CurrentValidatorRateResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1912,7 +1920,7 @@ func (m *CurrentValidatorRateResponse) GetData() *RateData { // Staking configuration data. type StakeParameters struct { // The number of epochs an unbonding note for before being released. - UnbondingEpochs uint64 `protobuf:"varint,1,opt,name=unbonding_epochs,json=unbondingEpochs,proto3" json:"unbonding_epochs,omitempty"` + UnbondingEpochs uint64 `protobuf:"varint,1,opt,name=unbonding_epochs,json=unbondingEpochs,proto3" json:"unbonding_epochs,omitempty"` // Deprecated: Do not use. // The maximum number of validators in the consensus set. ActiveValidatorLimit uint64 `protobuf:"varint,2,opt,name=active_validator_limit,json=activeValidatorLimit,proto3" json:"active_validator_limit,omitempty"` // The base reward rate, expressed in basis points of basis points @@ -1925,13 +1933,17 @@ type StakeParameters struct { SignedBlocksWindowLen uint64 `protobuf:"varint,6,opt,name=signed_blocks_window_len,json=signedBlocksWindowLen,proto3" json:"signed_blocks_window_len,omitempty"` // The maximum number of blocks in the window each validator can miss signing without slashing. MissedBlocksMaximum uint64 `protobuf:"varint,7,opt,name=missed_blocks_maximum,json=missedBlocksMaximum,proto3" json:"missed_blocks_maximum,omitempty"` + // The minimum amount of stake required for a validator to be indexed by the protocol. + MinValidatorStake *v11.Amount `protobuf:"bytes,8,opt,name=min_validator_stake,json=minValidatorStake,proto3" json:"min_validator_stake,omitempty"` + // The number of blocks that must elapse before an unbonding note can be claimed. + UnbondingDelay uint64 `protobuf:"varint,9,opt,name=unbonding_delay,json=unbondingDelay,proto3" json:"unbonding_delay,omitempty"` } func (m *StakeParameters) Reset() { *m = StakeParameters{} } func (m *StakeParameters) String() string { return proto.CompactTextString(m) } func (*StakeParameters) ProtoMessage() {} func (*StakeParameters) Descriptor() ([]byte, []int) { - return fileDescriptor_b49c30b9d712baf6, []int{28} + return fileDescriptor_061b0086577193ed, []int{28} } func (m *StakeParameters) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1960,6 +1972,7 @@ func (m *StakeParameters) XXX_DiscardUnknown() { var xxx_messageInfo_StakeParameters proto.InternalMessageInfo +// Deprecated: Do not use. func (m *StakeParameters) GetUnbondingEpochs() uint64 { if m != nil { return m.UnbondingEpochs @@ -2009,6 +2022,20 @@ func (m *StakeParameters) GetMissedBlocksMaximum() uint64 { return 0 } +func (m *StakeParameters) GetMinValidatorStake() *v11.Amount { + if m != nil { + return m.MinValidatorStake + } + return nil +} + +func (m *StakeParameters) GetUnbondingDelay() uint64 { + if m != nil { + return m.UnbondingDelay + } + return 0 +} + // Genesis data for the staking component. type GenesisContent struct { // The configuration parameters for the staking component present at genesis @@ -2021,7 +2048,7 @@ func (m *GenesisContent) Reset() { *m = GenesisContent{} } func (m *GenesisContent) String() string { return proto.CompactTextString(m) } func (*GenesisContent) ProtoMessage() {} func (*GenesisContent) Descriptor() ([]byte, []int) { - return fileDescriptor_b49c30b9d712baf6, []int{29} + return fileDescriptor_061b0086577193ed, []int{29} } func (m *GenesisContent) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2065,182 +2092,190 @@ func (m *GenesisContent) GetValidators() []*Validator { } func init() { - proto.RegisterEnum("penumbra.core.component.stake.v1alpha1.BondingState_BondingStateEnum", BondingState_BondingStateEnum_name, BondingState_BondingStateEnum_value) - proto.RegisterEnum("penumbra.core.component.stake.v1alpha1.ValidatorState_ValidatorStateEnum", ValidatorState_ValidatorStateEnum_name, ValidatorState_ValidatorStateEnum_value) - proto.RegisterType((*ZKUndelegateClaimProof)(nil), "penumbra.core.component.stake.v1alpha1.ZKUndelegateClaimProof") - proto.RegisterType((*Validator)(nil), "penumbra.core.component.stake.v1alpha1.Validator") - proto.RegisterType((*ValidatorList)(nil), "penumbra.core.component.stake.v1alpha1.ValidatorList") - proto.RegisterType((*FundingStream)(nil), "penumbra.core.component.stake.v1alpha1.FundingStream") - proto.RegisterType((*FundingStream_ToAddress)(nil), "penumbra.core.component.stake.v1alpha1.FundingStream.ToAddress") - proto.RegisterType((*FundingStream_ToCommunityPool)(nil), "penumbra.core.component.stake.v1alpha1.FundingStream.ToCommunityPool") - proto.RegisterType((*RateData)(nil), "penumbra.core.component.stake.v1alpha1.RateData") - proto.RegisterType((*BaseRateData)(nil), "penumbra.core.component.stake.v1alpha1.BaseRateData") - proto.RegisterType((*ValidatorStatus)(nil), "penumbra.core.component.stake.v1alpha1.ValidatorStatus") - proto.RegisterType((*BondingState)(nil), "penumbra.core.component.stake.v1alpha1.BondingState") - proto.RegisterType((*ValidatorState)(nil), "penumbra.core.component.stake.v1alpha1.ValidatorState") - proto.RegisterType((*ValidatorInfo)(nil), "penumbra.core.component.stake.v1alpha1.ValidatorInfo") - proto.RegisterType((*ValidatorDefinition)(nil), "penumbra.core.component.stake.v1alpha1.ValidatorDefinition") - proto.RegisterType((*Delegate)(nil), "penumbra.core.component.stake.v1alpha1.Delegate") - proto.RegisterType((*Undelegate)(nil), "penumbra.core.component.stake.v1alpha1.Undelegate") - proto.RegisterType((*UndelegateClaim)(nil), "penumbra.core.component.stake.v1alpha1.UndelegateClaim") - proto.RegisterType((*UndelegateClaimBody)(nil), "penumbra.core.component.stake.v1alpha1.UndelegateClaimBody") - proto.RegisterType((*UndelegateClaimPlan)(nil), "penumbra.core.component.stake.v1alpha1.UndelegateClaimPlan") - proto.RegisterType((*DelegationChanges)(nil), "penumbra.core.component.stake.v1alpha1.DelegationChanges") - proto.RegisterType((*Uptime)(nil), "penumbra.core.component.stake.v1alpha1.Uptime") - proto.RegisterType((*CurrentConsensusKeys)(nil), "penumbra.core.component.stake.v1alpha1.CurrentConsensusKeys") - proto.RegisterType((*Penalty)(nil), "penumbra.core.component.stake.v1alpha1.Penalty") - proto.RegisterType((*ValidatorInfoRequest)(nil), "penumbra.core.component.stake.v1alpha1.ValidatorInfoRequest") - proto.RegisterType((*ValidatorInfoResponse)(nil), "penumbra.core.component.stake.v1alpha1.ValidatorInfoResponse") - proto.RegisterType((*ValidatorStatusRequest)(nil), "penumbra.core.component.stake.v1alpha1.ValidatorStatusRequest") - proto.RegisterType((*ValidatorStatusResponse)(nil), "penumbra.core.component.stake.v1alpha1.ValidatorStatusResponse") - proto.RegisterType((*ValidatorPenaltyRequest)(nil), "penumbra.core.component.stake.v1alpha1.ValidatorPenaltyRequest") - proto.RegisterType((*ValidatorPenaltyResponse)(nil), "penumbra.core.component.stake.v1alpha1.ValidatorPenaltyResponse") - proto.RegisterType((*CurrentValidatorRateRequest)(nil), "penumbra.core.component.stake.v1alpha1.CurrentValidatorRateRequest") - proto.RegisterType((*CurrentValidatorRateResponse)(nil), "penumbra.core.component.stake.v1alpha1.CurrentValidatorRateResponse") - proto.RegisterType((*StakeParameters)(nil), "penumbra.core.component.stake.v1alpha1.StakeParameters") - proto.RegisterType((*GenesisContent)(nil), "penumbra.core.component.stake.v1alpha1.GenesisContent") + proto.RegisterEnum("penumbra.core.component.stake.v1.BondingState_BondingStateEnum", BondingState_BondingStateEnum_name, BondingState_BondingStateEnum_value) + proto.RegisterEnum("penumbra.core.component.stake.v1.ValidatorState_ValidatorStateEnum", ValidatorState_ValidatorStateEnum_name, ValidatorState_ValidatorStateEnum_value) + proto.RegisterType((*ZKUndelegateClaimProof)(nil), "penumbra.core.component.stake.v1.ZKUndelegateClaimProof") + proto.RegisterType((*Validator)(nil), "penumbra.core.component.stake.v1.Validator") + proto.RegisterType((*ValidatorList)(nil), "penumbra.core.component.stake.v1.ValidatorList") + proto.RegisterType((*FundingStream)(nil), "penumbra.core.component.stake.v1.FundingStream") + proto.RegisterType((*FundingStream_ToAddress)(nil), "penumbra.core.component.stake.v1.FundingStream.ToAddress") + proto.RegisterType((*FundingStream_ToCommunityPool)(nil), "penumbra.core.component.stake.v1.FundingStream.ToCommunityPool") + proto.RegisterType((*RateData)(nil), "penumbra.core.component.stake.v1.RateData") + proto.RegisterType((*BaseRateData)(nil), "penumbra.core.component.stake.v1.BaseRateData") + proto.RegisterType((*ValidatorStatus)(nil), "penumbra.core.component.stake.v1.ValidatorStatus") + proto.RegisterType((*BondingState)(nil), "penumbra.core.component.stake.v1.BondingState") + proto.RegisterType((*ValidatorState)(nil), "penumbra.core.component.stake.v1.ValidatorState") + proto.RegisterType((*ValidatorInfo)(nil), "penumbra.core.component.stake.v1.ValidatorInfo") + proto.RegisterType((*ValidatorDefinition)(nil), "penumbra.core.component.stake.v1.ValidatorDefinition") + proto.RegisterType((*Delegate)(nil), "penumbra.core.component.stake.v1.Delegate") + proto.RegisterType((*Undelegate)(nil), "penumbra.core.component.stake.v1.Undelegate") + proto.RegisterType((*UndelegateClaim)(nil), "penumbra.core.component.stake.v1.UndelegateClaim") + proto.RegisterType((*UndelegateClaimBody)(nil), "penumbra.core.component.stake.v1.UndelegateClaimBody") + proto.RegisterType((*UndelegateClaimPlan)(nil), "penumbra.core.component.stake.v1.UndelegateClaimPlan") + proto.RegisterType((*DelegationChanges)(nil), "penumbra.core.component.stake.v1.DelegationChanges") + proto.RegisterType((*Uptime)(nil), "penumbra.core.component.stake.v1.Uptime") + proto.RegisterType((*CurrentConsensusKeys)(nil), "penumbra.core.component.stake.v1.CurrentConsensusKeys") + proto.RegisterType((*Penalty)(nil), "penumbra.core.component.stake.v1.Penalty") + proto.RegisterType((*ValidatorInfoRequest)(nil), "penumbra.core.component.stake.v1.ValidatorInfoRequest") + proto.RegisterType((*ValidatorInfoResponse)(nil), "penumbra.core.component.stake.v1.ValidatorInfoResponse") + proto.RegisterType((*ValidatorStatusRequest)(nil), "penumbra.core.component.stake.v1.ValidatorStatusRequest") + proto.RegisterType((*ValidatorStatusResponse)(nil), "penumbra.core.component.stake.v1.ValidatorStatusResponse") + proto.RegisterType((*ValidatorPenaltyRequest)(nil), "penumbra.core.component.stake.v1.ValidatorPenaltyRequest") + proto.RegisterType((*ValidatorPenaltyResponse)(nil), "penumbra.core.component.stake.v1.ValidatorPenaltyResponse") + proto.RegisterType((*CurrentValidatorRateRequest)(nil), "penumbra.core.component.stake.v1.CurrentValidatorRateRequest") + proto.RegisterType((*CurrentValidatorRateResponse)(nil), "penumbra.core.component.stake.v1.CurrentValidatorRateResponse") + proto.RegisterType((*StakeParameters)(nil), "penumbra.core.component.stake.v1.StakeParameters") + proto.RegisterType((*GenesisContent)(nil), "penumbra.core.component.stake.v1.GenesisContent") } func init() { - proto.RegisterFile("penumbra/core/component/stake/v1alpha1/stake.proto", fileDescriptor_b49c30b9d712baf6) -} - -var fileDescriptor_b49c30b9d712baf6 = []byte{ - // 2141 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x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xe8, 0x52, - 0xa8, 0x23, 0xe0, 0x7e, 0xf5, 0x05, 0x76, 0x27, 0xa8, 0x17, 0xd8, 0x36, 0x2d, 0x97, 0xf6, 0x09, - 0x57, 0xfe, 0xd5, 0x87, 0x3e, 0x2b, 0x9a, 0xe5, 0xf0, 0xab, 0x9b, 0x12, 0x19, 0xd4, 0x14, 0x6c, - 0xfb, 0x34, 0xda, 0x81, 0x25, 0xd5, 0x42, 0x3b, 0x94, 0x04, 0xea, 0x92, 0x63, 0xab, 0xcb, 0x45, - 0xc2, 0x3e, 0x47, 0xd4, 0x4e, 0x88, 0xda, 0xf2, 0xff, 0x9d, 0x9b, 0xae, 0xc3, 0x12, 0xe3, 0x96, - 0xc7, 0xcd, 0xe3, 0xce, 0xca, 0xca, 0x85, 0xea, 0xff, 0x8b, 0xc7, 0x9e, 0x40, 0x76, 0x68, 0x8e, - 0x41, 0x3b, 0x90, 0x6c, 0x52, 0x3b, 0xf0, 0xd3, 0xfb, 0xe3, 0x06, 0xf4, 0x90, 0x9a, 0x12, 0xb5, - 0x8f, 0x0c, 0xa9, 0x48, 0xcc, 0x44, 0x3d, 0x31, 0x1c, 0xa9, 0x90, 0xf6, 0x09, 0xfd, 0x8f, 0x09, - 0x38, 0x33, 0x42, 0xe6, 0x9b, 0x71, 0x68, 0x35, 0x98, 0xeb, 0x61, 0x62, 0x75, 0xf9, 0x91, 0x3a, - 0xac, 0xf5, 0x71, 0xdd, 0x50, 0xf7, 0xc5, 0x8c, 0x40, 0x1e, 0x7d, 0x2c, 0x5a, 0xa5, 0xae, 0x9c, - 0x42, 0x44, 0x93, 0xed, 0x70, 0x17, 0x87, 0x67, 0x36, 0xac, 0xd5, 0x9f, 0x58, 0xa3, 0x1b, 0xdc, - 0x97, 0x2b, 0x87, 0x62, 0xc6, 0x52, 0x73, 0x98, 0xa5, 0xff, 0x76, 0xfa, 0x98, 0x1f, 0xeb, 0x5d, - 0x8b, 0x7c, 0xe3, 0xfc, 0x98, 0x7c, 0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 0xf0, 0x51, - 0xdb, 0xe1, 0x9d, 0x7e, 0x53, 0xc0, 0xd7, 0x5b, 0x94, 0xb9, 0x94, 0xad, 0x7b, 0xb8, 0x6b, 0x1d, - 0x61, 0x6f, 0xfd, 0xa0, 0x18, 0xfe, 0x94, 0x45, 0x9f, 0xad, 0x8f, 0xf7, 0xdf, 0xbf, 0xf7, 0x25, - 0x19, 0x50, 0x9f, 0x27, 0x92, 0xf5, 0x72, 0xb9, 0xf1, 0x45, 0xe2, 0x5a, 0x3d, 0xb0, 0xaf, 0x2c, - 0xec, 0x2b, 0x87, 0xf6, 0x49, 0x7b, 0x0a, 0x0f, 0x14, 0xfe, 0xcf, 0x11, 0x70, 0x4f, 0x00, 0xf7, - 0x42, 0xe0, 0x9e, 0x04, 0xee, 0x05, 0xc0, 0xa7, 0x89, 0xe2, 0x78, 0xc0, 0xbd, 0x5b, 0xf5, 0xd2, - 0x16, 0xe6, 0x96, 0xb8, 0x03, 0xfe, 0x95, 0xb8, 0x1e, 0x08, 0x6d, 0x6c, 0x08, 0x29, 0xf1, 0x57, - 0x89, 0x6d, 0x6c, 0x48, 0xb9, 0x8d, 0x8d, 0x40, 0xb0, 0x39, 0x2b, 0xff, 0x43, 0xf8, 0xed, 0xff, - 0x06, 0x00, 0x00, 0xff, 0xff, 0x89, 0x5e, 0xeb, 0x27, 0xf7, 0x1c, 0x00, 0x00, + proto.RegisterFile("penumbra/core/component/stake/v1/stake.proto", fileDescriptor_061b0086577193ed) +} + +var fileDescriptor_061b0086577193ed = []byte{ + // 2266 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x59, 0x4b, 0x6c, 0x1b, 0xc9, + 0xd1, 0xd6, 0x50, 0xd4, 0x83, 0x25, 0xbe, 0xd4, 0x7e, 0xd1, 0x5a, 0x5b, 0xe6, 0x3f, 0xf6, 0x9f, + 0xd5, 0xee, 0x3a, 0xd4, 0x4a, 0x79, 0x6c, 0x56, 0x8b, 0xec, 0xae, 0xf8, 0xb0, 0x4c, 0x5b, 0x96, + 0xb9, 0x43, 0x59, 0xd9, 0x18, 0x46, 0x06, 0x43, 0x4e, 0x4b, 0x1a, 0x98, 0xd3, 0xcd, 0x9d, 0x6e, + 0x52, 0x16, 0x72, 0xdb, 0x43, 0x80, 0xbd, 0xed, 0x25, 0x40, 0x4e, 0x39, 0xe4, 0x98, 0x5b, 0x90, + 0xc7, 0x39, 0x40, 0x10, 0x20, 0xc8, 0x69, 0x6f, 0x09, 0x92, 0x4b, 0x60, 0x1f, 0x02, 0x04, 0x48, + 0xae, 0xb9, 0x06, 0xdd, 0xd3, 0x33, 0x9c, 0x21, 0x25, 0x53, 0x54, 0x1c, 0xc0, 0x17, 0x69, 0xba, + 0xfa, 0xab, 0xea, 0xaa, 0xea, 0xea, 0xaa, 0xea, 0x26, 0xdc, 0xee, 0x62, 0xd2, 0x73, 0x5b, 0x9e, + 0xb5, 0xda, 0xa6, 0x1e, 0x5e, 0x6d, 0x53, 0xb7, 0x4b, 0x09, 0x26, 0x7c, 0x95, 0x71, 0xeb, 0x29, + 0x5e, 0xed, 0xaf, 0xf9, 0x1f, 0xa5, 0xae, 0x47, 0x39, 0x45, 0xc5, 0x00, 0x5d, 0x12, 0xe8, 0x52, + 0x88, 0x2e, 0xf9, 0xa0, 0xfe, 0xda, 0x92, 0x1e, 0x97, 0x67, 0x31, 0x86, 0xb9, 0x90, 0x22, 0x3f, + 0x7c, 0x29, 0x4b, 0x2b, 0xa7, 0xae, 0xd9, 0x96, 0x58, 0xd6, 0x0e, 0x90, 0xc5, 0x38, 0xf2, 0x29, + 0x3e, 0x66, 0x02, 0x20, 0xfe, 0x2b, 0xc4, 0x72, 0x1c, 0x41, 0x7a, 0xae, 0x00, 0x90, 0x9e, 0xeb, + 0xcf, 0xeb, 0x25, 0xb8, 0xfc, 0xf8, 0xfe, 0x23, 0x62, 0xe3, 0x0e, 0x3e, 0xb0, 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0x6e, + 0x89, 0xf2, 0xf0, 0x8f, 0xc4, 0xad, 0x00, 0xbe, 0xb1, 0x21, 0xf0, 0xe2, 0xaf, 0x62, 0xd8, 0xd8, + 0x90, 0x1c, 0x1b, 0x1b, 0x7b, 0x6b, 0xad, 0x59, 0xf9, 0x43, 0xe4, 0x37, 0xfe, 0x13, 0x00, 0x00, + 0xff, 0xff, 0xd4, 0x41, 0xd8, 0xcb, 0x6a, 0x1d, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -2271,7 +2306,7 @@ func NewQueryServiceClient(cc grpc1.ClientConn) QueryServiceClient { } func (c *queryServiceClient) ValidatorInfo(ctx context.Context, in *ValidatorInfoRequest, opts ...grpc.CallOption) (QueryService_ValidatorInfoClient, error) { - stream, err := c.cc.NewStream(ctx, &_QueryService_serviceDesc.Streams[0], "/penumbra.core.component.stake.v1alpha1.QueryService/ValidatorInfo", opts...) + stream, err := c.cc.NewStream(ctx, &_QueryService_serviceDesc.Streams[0], "/penumbra.core.component.stake.v1.QueryService/ValidatorInfo", opts...) if err != nil { return nil, err } @@ -2304,7 +2339,7 @@ func (x *queryServiceValidatorInfoClient) Recv() (*ValidatorInfoResponse, error) func (c *queryServiceClient) ValidatorStatus(ctx context.Context, in *ValidatorStatusRequest, opts ...grpc.CallOption) (*ValidatorStatusResponse, error) { out := new(ValidatorStatusResponse) - err := c.cc.Invoke(ctx, "/penumbra.core.component.stake.v1alpha1.QueryService/ValidatorStatus", in, out, opts...) + err := c.cc.Invoke(ctx, "/penumbra.core.component.stake.v1.QueryService/ValidatorStatus", in, out, opts...) if err != nil { return nil, err } @@ -2313,7 +2348,7 @@ func (c *queryServiceClient) ValidatorStatus(ctx context.Context, in *ValidatorS func (c *queryServiceClient) ValidatorPenalty(ctx context.Context, in *ValidatorPenaltyRequest, opts ...grpc.CallOption) (*ValidatorPenaltyResponse, error) { out := new(ValidatorPenaltyResponse) - err := c.cc.Invoke(ctx, "/penumbra.core.component.stake.v1alpha1.QueryService/ValidatorPenalty", in, out, opts...) + err := c.cc.Invoke(ctx, "/penumbra.core.component.stake.v1.QueryService/ValidatorPenalty", in, out, opts...) if err != nil { return nil, err } @@ -2322,7 +2357,7 @@ func (c *queryServiceClient) ValidatorPenalty(ctx context.Context, in *Validator func (c *queryServiceClient) CurrentValidatorRate(ctx context.Context, in *CurrentValidatorRateRequest, opts ...grpc.CallOption) (*CurrentValidatorRateResponse, error) { out := new(CurrentValidatorRateResponse) - err := c.cc.Invoke(ctx, "/penumbra.core.component.stake.v1alpha1.QueryService/CurrentValidatorRate", in, out, opts...) + err := c.cc.Invoke(ctx, "/penumbra.core.component.stake.v1.QueryService/CurrentValidatorRate", in, out, opts...) if err != nil { return nil, err } @@ -2390,7 +2425,7 @@ func _QueryService_ValidatorStatus_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/penumbra.core.component.stake.v1alpha1.QueryService/ValidatorStatus", + FullMethod: "/penumbra.core.component.stake.v1.QueryService/ValidatorStatus", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServiceServer).ValidatorStatus(ctx, req.(*ValidatorStatusRequest)) @@ -2408,7 +2443,7 @@ func _QueryService_ValidatorPenalty_Handler(srv interface{}, ctx context.Context } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/penumbra.core.component.stake.v1alpha1.QueryService/ValidatorPenalty", + FullMethod: "/penumbra.core.component.stake.v1.QueryService/ValidatorPenalty", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServiceServer).ValidatorPenalty(ctx, req.(*ValidatorPenaltyRequest)) @@ -2426,7 +2461,7 @@ func _QueryService_CurrentValidatorRate_Handler(srv interface{}, ctx context.Con } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/penumbra.core.component.stake.v1alpha1.QueryService/CurrentValidatorRate", + FullMethod: "/penumbra.core.component.stake.v1.QueryService/CurrentValidatorRate", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServiceServer).CurrentValidatorRate(ctx, req.(*CurrentValidatorRateRequest)) @@ -2435,7 +2470,7 @@ func _QueryService_CurrentValidatorRate_Handler(srv interface{}, ctx context.Con } var _QueryService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "penumbra.core.component.stake.v1alpha1.QueryService", + ServiceName: "penumbra.core.component.stake.v1.QueryService", HandlerType: (*QueryServiceServer)(nil), Methods: []grpc.MethodDesc{ { @@ -2458,7 +2493,7 @@ var _QueryService_serviceDesc = grpc.ServiceDesc{ ServerStreams: true, }, }, - Metadata: "penumbra/core/component/stake/v1alpha1/stake.proto", + Metadata: "penumbra/core/component/stake/v1/stake.proto", } func (m *ZKUndelegateClaimProof) Marshal() (dAtA []byte, err error) { @@ -2789,15 +2824,29 @@ func (m *RateData) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - if m.ValidatorExchangeRate != 0 { - i = encodeVarintStake(dAtA, i, uint64(m.ValidatorExchangeRate)) + if m.ValidatorExchangeRate != nil { + { + size, err := m.ValidatorExchangeRate.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintStake(dAtA, i, uint64(size)) + } i-- - dAtA[i] = 0x28 + dAtA[i] = 0x2a } - if m.ValidatorRewardRate != 0 { - i = encodeVarintStake(dAtA, i, uint64(m.ValidatorRewardRate)) + if m.ValidatorRewardRate != nil { + { + size, err := m.ValidatorRewardRate.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintStake(dAtA, i, uint64(size)) + } i-- - dAtA[i] = 0x20 + dAtA[i] = 0x22 } if m.EpochIndex != 0 { i = encodeVarintStake(dAtA, i, uint64(m.EpochIndex)) @@ -2839,15 +2888,29 @@ func (m *BaseRateData) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - if m.BaseExchangeRate != 0 { - i = encodeVarintStake(dAtA, i, uint64(m.BaseExchangeRate)) + if m.BaseExchangeRate != nil { + { + size, err := m.BaseExchangeRate.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintStake(dAtA, i, uint64(size)) + } i-- - dAtA[i] = 0x18 + dAtA[i] = 0x1a } - if m.BaseRewardRate != 0 { - i = encodeVarintStake(dAtA, i, uint64(m.BaseRewardRate)) + if m.BaseRewardRate != nil { + { + size, err := m.BaseRewardRate.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintStake(dAtA, i, uint64(size)) + } i-- - dAtA[i] = 0x10 + dAtA[i] = 0x12 } if m.EpochIndex != 0 { i = encodeVarintStake(dAtA, i, uint64(m.EpochIndex)) @@ -2889,10 +2952,17 @@ func (m *ValidatorStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x22 } - if m.VotingPower != 0 { - i = encodeVarintStake(dAtA, i, uint64(m.VotingPower)) + if m.VotingPower != nil { + { + size, err := m.VotingPower.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintStake(dAtA, i, uint64(size)) + } i-- - dAtA[i] = 0x18 + dAtA[i] = 0x1a } if m.State != nil { { @@ -2941,8 +3011,13 @@ func (m *BondingState) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - if m.UnbondingEpoch != 0 { - i = encodeVarintStake(dAtA, i, uint64(m.UnbondingEpoch)) + if m.UnbondsAtHeight != 0 { + i = encodeVarintStake(dAtA, i, uint64(m.UnbondsAtHeight)) + i-- + dAtA[i] = 0x18 + } + if m.UnbondsAtEpoch != 0 { + i = encodeVarintStake(dAtA, i, uint64(m.UnbondsAtEpoch)) i-- dAtA[i] = 0x10 } @@ -3167,6 +3242,18 @@ func (m *Undelegate) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if m.FromEpoch != nil { + { + size, err := m.FromEpoch.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintStake(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } if m.DelegationAmount != nil { { size, err := m.DelegationAmount.MarshalToSizedBuffer(dAtA[:i]) @@ -3273,6 +3360,11 @@ func (m *UndelegateClaimBody) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if m.UnbondingStartHeight != 0 { + i = encodeVarintStake(dAtA, i, uint64(m.UnbondingStartHeight)) + i-- + dAtA[i] = 0x28 + } if m.BalanceCommitment != nil { { size, err := m.BalanceCommitment.MarshalToSizedBuffer(dAtA[:i]) @@ -3337,6 +3429,11 @@ func (m *UndelegateClaimPlan) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if m.UnbondingStartHeight != 0 { + i = encodeVarintStake(dAtA, i, uint64(m.UnbondingStartHeight)) + i-- + dAtA[i] = 0x48 + } if len(m.ProofBlindingS) > 0 { i -= len(m.ProofBlindingS) copy(dAtA[i:], m.ProofBlindingS) @@ -3590,13 +3687,6 @@ func (m *ValidatorInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x10 } - if len(m.ChainId) > 0 { - i -= len(m.ChainId) - copy(dAtA[i:], m.ChainId) - i = encodeVarintStake(dAtA, i, uint64(len(m.ChainId))) - i-- - dAtA[i] = 0xa - } return len(dAtA) - i, nil } @@ -3667,13 +3757,6 @@ func (m *ValidatorStatusRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) i-- dAtA[i] = 0x12 } - if len(m.ChainId) > 0 { - i -= len(m.ChainId) - copy(dAtA[i:], m.ChainId) - i = encodeVarintStake(dAtA, i, uint64(len(m.ChainId))) - i-- - dAtA[i] = 0xa - } return len(dAtA) - i, nil } @@ -3754,13 +3837,6 @@ func (m *ValidatorPenaltyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) i-- dAtA[i] = 0x12 } - if len(m.ChainId) > 0 { - i -= len(m.ChainId) - copy(dAtA[i:], m.ChainId) - i = encodeVarintStake(dAtA, i, uint64(len(m.ChainId))) - i-- - dAtA[i] = 0xa - } return len(dAtA) - i, nil } @@ -3831,13 +3907,6 @@ func (m *CurrentValidatorRateRequest) MarshalToSizedBuffer(dAtA []byte) (int, er i-- dAtA[i] = 0x12 } - if len(m.ChainId) > 0 { - i -= len(m.ChainId) - copy(dAtA[i:], m.ChainId) - i = encodeVarintStake(dAtA, i, uint64(len(m.ChainId))) - i-- - dAtA[i] = 0xa - } return len(dAtA) - i, nil } @@ -3896,6 +3965,23 @@ func (m *StakeParameters) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if m.UnbondingDelay != 0 { + i = encodeVarintStake(dAtA, i, uint64(m.UnbondingDelay)) + i-- + dAtA[i] = 0x48 + } + if m.MinValidatorStake != nil { + { + size, err := m.MinValidatorStake.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintStake(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x42 + } if m.MissedBlocksMaximum != 0 { i = encodeVarintStake(dAtA, i, uint64(m.MissedBlocksMaximum)) i-- @@ -4144,11 +4230,13 @@ func (m *RateData) Size() (n int) { if m.EpochIndex != 0 { n += 1 + sovStake(uint64(m.EpochIndex)) } - if m.ValidatorRewardRate != 0 { - n += 1 + sovStake(uint64(m.ValidatorRewardRate)) + if m.ValidatorRewardRate != nil { + l = m.ValidatorRewardRate.Size() + n += 1 + l + sovStake(uint64(l)) } - if m.ValidatorExchangeRate != 0 { - n += 1 + sovStake(uint64(m.ValidatorExchangeRate)) + if m.ValidatorExchangeRate != nil { + l = m.ValidatorExchangeRate.Size() + n += 1 + l + sovStake(uint64(l)) } return n } @@ -4162,11 +4250,13 @@ func (m *BaseRateData) Size() (n int) { if m.EpochIndex != 0 { n += 1 + sovStake(uint64(m.EpochIndex)) } - if m.BaseRewardRate != 0 { - n += 1 + sovStake(uint64(m.BaseRewardRate)) + if m.BaseRewardRate != nil { + l = m.BaseRewardRate.Size() + n += 1 + l + sovStake(uint64(l)) } - if m.BaseExchangeRate != 0 { - n += 1 + sovStake(uint64(m.BaseExchangeRate)) + if m.BaseExchangeRate != nil { + l = m.BaseExchangeRate.Size() + n += 1 + l + sovStake(uint64(l)) } return n } @@ -4185,8 +4275,9 @@ func (m *ValidatorStatus) Size() (n int) { l = m.State.Size() n += 1 + l + sovStake(uint64(l)) } - if m.VotingPower != 0 { - n += 1 + sovStake(uint64(m.VotingPower)) + if m.VotingPower != nil { + l = m.VotingPower.Size() + n += 1 + l + sovStake(uint64(l)) } if m.BondingState != nil { l = m.BondingState.Size() @@ -4204,8 +4295,11 @@ func (m *BondingState) Size() (n int) { if m.State != 0 { n += 1 + sovStake(uint64(m.State)) } - if m.UnbondingEpoch != 0 { - n += 1 + sovStake(uint64(m.UnbondingEpoch)) + if m.UnbondsAtEpoch != 0 { + n += 1 + sovStake(uint64(m.UnbondsAtEpoch)) + } + if m.UnbondsAtHeight != 0 { + n += 1 + sovStake(uint64(m.UnbondsAtHeight)) } return n } @@ -4305,6 +4399,10 @@ func (m *Undelegate) Size() (n int) { l = m.DelegationAmount.Size() n += 1 + l + sovStake(uint64(l)) } + if m.FromEpoch != nil { + l = m.FromEpoch.Size() + n += 1 + l + sovStake(uint64(l)) + } return n } @@ -4346,6 +4444,9 @@ func (m *UndelegateClaimBody) Size() (n int) { l = m.BalanceCommitment.Size() n += 1 + l + sovStake(uint64(l)) } + if m.UnbondingStartHeight != 0 { + n += 1 + sovStake(uint64(m.UnbondingStartHeight)) + } return n } @@ -4382,6 +4483,9 @@ func (m *UndelegateClaimPlan) Size() (n int) { if l > 0 { n += 1 + l + sovStake(uint64(l)) } + if m.UnbondingStartHeight != 0 { + n += 1 + sovStake(uint64(m.UnbondingStartHeight)) + } return n } @@ -4459,10 +4563,6 @@ func (m *ValidatorInfoRequest) Size() (n int) { } var l int _ = l - l = len(m.ChainId) - if l > 0 { - n += 1 + l + sovStake(uint64(l)) - } if m.ShowInactive { n += 2 } @@ -4488,10 +4588,6 @@ func (m *ValidatorStatusRequest) Size() (n int) { } var l int _ = l - l = len(m.ChainId) - if l > 0 { - n += 1 + l + sovStake(uint64(l)) - } if m.IdentityKey != nil { l = m.IdentityKey.Size() n += 1 + l + sovStake(uint64(l)) @@ -4518,10 +4614,6 @@ func (m *ValidatorPenaltyRequest) Size() (n int) { } var l int _ = l - l = len(m.ChainId) - if l > 0 { - n += 1 + l + sovStake(uint64(l)) - } if m.IdentityKey != nil { l = m.IdentityKey.Size() n += 1 + l + sovStake(uint64(l)) @@ -4554,10 +4646,6 @@ func (m *CurrentValidatorRateRequest) Size() (n int) { } var l int _ = l - l = len(m.ChainId) - if l > 0 { - n += 1 + l + sovStake(uint64(l)) - } if m.IdentityKey != nil { l = m.IdentityKey.Size() n += 1 + l + sovStake(uint64(l)) @@ -4605,6 +4693,13 @@ func (m *StakeParameters) Size() (n int) { if m.MissedBlocksMaximum != 0 { n += 1 + sovStake(uint64(m.MissedBlocksMaximum)) } + if m.MinValidatorStake != nil { + l = m.MinValidatorStake.Size() + n += 1 + l + sovStake(uint64(l)) + } + if m.UnbondingDelay != 0 { + n += 1 + sovStake(uint64(m.UnbondingDelay)) + } return n } @@ -4776,7 +4871,7 @@ func (m *Validator) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.IdentityKey == nil { - m.IdentityKey = &v1alpha1.IdentityKey{} + m.IdentityKey = &v1.IdentityKey{} } if err := m.IdentityKey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -5015,7 +5110,7 @@ func (m *Validator) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.GovernanceKey == nil { - m.GovernanceKey = &v1alpha1.GovernanceKey{} + m.GovernanceKey = &v1.GovernanceKey{} } if err := m.GovernanceKey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -5100,7 +5195,7 @@ func (m *ValidatorList) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ValidatorKeys = append(m.ValidatorKeys, &v1alpha1.IdentityKey{}) + m.ValidatorKeys = append(m.ValidatorKeys, &v1.IdentityKey{}) if err := m.ValidatorKeys[len(m.ValidatorKeys)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -5475,7 +5570,7 @@ func (m *RateData) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.IdentityKey == nil { - m.IdentityKey = &v1alpha1.IdentityKey{} + m.IdentityKey = &v1.IdentityKey{} } if err := m.IdentityKey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -5501,10 +5596,10 @@ func (m *RateData) Unmarshal(dAtA []byte) error { } } case 4: - if wireType != 0 { + if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ValidatorRewardRate", wireType) } - m.ValidatorRewardRate = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowStake @@ -5514,16 +5609,33 @@ func (m *RateData) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ValidatorRewardRate |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } + if msglen < 0 { + return ErrInvalidLengthStake + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthStake + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ValidatorRewardRate == nil { + m.ValidatorRewardRate = &v11.Amount{} + } + if err := m.ValidatorRewardRate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex case 5: - if wireType != 0 { + if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ValidatorExchangeRate", wireType) } - m.ValidatorExchangeRate = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowStake @@ -5533,11 +5645,28 @@ func (m *RateData) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ValidatorExchangeRate |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } + if msglen < 0 { + return ErrInvalidLengthStake + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthStake + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ValidatorExchangeRate == nil { + m.ValidatorExchangeRate = &v11.Amount{} + } + if err := m.ValidatorExchangeRate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipStake(dAtA[iNdEx:]) @@ -5608,10 +5737,10 @@ func (m *BaseRateData) Unmarshal(dAtA []byte) error { } } case 2: - if wireType != 0 { + if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field BaseRewardRate", wireType) } - m.BaseRewardRate = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowStake @@ -5621,16 +5750,33 @@ func (m *BaseRateData) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.BaseRewardRate |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } + if msglen < 0 { + return ErrInvalidLengthStake + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthStake + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.BaseRewardRate == nil { + m.BaseRewardRate = &v11.Amount{} + } + if err := m.BaseRewardRate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex case 3: - if wireType != 0 { + if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field BaseExchangeRate", wireType) } - m.BaseExchangeRate = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowStake @@ -5640,11 +5786,28 @@ func (m *BaseRateData) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.BaseExchangeRate |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } + if msglen < 0 { + return ErrInvalidLengthStake + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthStake + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.BaseExchangeRate == nil { + m.BaseExchangeRate = &v11.Amount{} + } + if err := m.BaseExchangeRate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipStake(dAtA[iNdEx:]) @@ -5725,7 +5888,7 @@ func (m *ValidatorStatus) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.IdentityKey == nil { - m.IdentityKey = &v1alpha1.IdentityKey{} + m.IdentityKey = &v1.IdentityKey{} } if err := m.IdentityKey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -5768,10 +5931,10 @@ func (m *ValidatorStatus) Unmarshal(dAtA []byte) error { } iNdEx = postIndex case 3: - if wireType != 0 { + if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field VotingPower", wireType) } - m.VotingPower = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowStake @@ -5781,13 +5944,30 @@ func (m *ValidatorStatus) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.VotingPower |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - case 4: - if wireType != 2 { + if msglen < 0 { + return ErrInvalidLengthStake + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthStake + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.VotingPower == nil { + m.VotingPower = &v11.Amount{} + } + if err := m.VotingPower.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field BondingState", wireType) } var msglen int @@ -5893,9 +6073,9 @@ func (m *BondingState) Unmarshal(dAtA []byte) error { } case 2: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field UnbondingEpoch", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field UnbondsAtEpoch", wireType) } - m.UnbondingEpoch = 0 + m.UnbondsAtEpoch = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowStake @@ -5905,7 +6085,26 @@ func (m *BondingState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.UnbondingEpoch |= uint64(b&0x7F) << shift + m.UnbondsAtEpoch |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UnbondsAtHeight", wireType) + } + m.UnbondsAtHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowStake + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.UnbondsAtHeight |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6337,7 +6536,7 @@ func (m *Delegate) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.ValidatorIdentity == nil { - m.ValidatorIdentity = &v1alpha1.IdentityKey{} + m.ValidatorIdentity = &v1.IdentityKey{} } if err := m.ValidatorIdentity.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -6392,7 +6591,7 @@ func (m *Delegate) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.UnbondedAmount == nil { - m.UnbondedAmount = &v1alpha11.Amount{} + m.UnbondedAmount = &v11.Amount{} } if err := m.UnbondedAmount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -6428,7 +6627,7 @@ func (m *Delegate) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.DelegationAmount == nil { - m.DelegationAmount = &v1alpha11.Amount{} + m.DelegationAmount = &v11.Amount{} } if err := m.DelegationAmount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -6514,7 +6713,7 @@ func (m *Undelegate) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.ValidatorIdentity == nil { - m.ValidatorIdentity = &v1alpha1.IdentityKey{} + m.ValidatorIdentity = &v1.IdentityKey{} } if err := m.ValidatorIdentity.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -6569,7 +6768,7 @@ func (m *Undelegate) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.UnbondedAmount == nil { - m.UnbondedAmount = &v1alpha11.Amount{} + m.UnbondedAmount = &v11.Amount{} } if err := m.UnbondedAmount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -6605,12 +6804,48 @@ func (m *Undelegate) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.DelegationAmount == nil { - m.DelegationAmount = &v1alpha11.Amount{} + m.DelegationAmount = &v11.Amount{} } if err := m.DelegationAmount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FromEpoch", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowStake + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthStake + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthStake + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.FromEpoch == nil { + m.FromEpoch = &v12.Epoch{} + } + if err := m.FromEpoch.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipStake(dAtA[iNdEx:]) @@ -6811,7 +7046,7 @@ func (m *UndelegateClaimBody) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.ValidatorIdentity == nil { - m.ValidatorIdentity = &v1alpha1.IdentityKey{} + m.ValidatorIdentity = &v1.IdentityKey{} } if err := m.ValidatorIdentity.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -6902,12 +7137,31 @@ func (m *UndelegateClaimBody) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.BalanceCommitment == nil { - m.BalanceCommitment = &v1alpha12.BalanceCommitment{} + m.BalanceCommitment = &v13.BalanceCommitment{} } if err := m.BalanceCommitment.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UnbondingStartHeight", wireType) + } + m.UnbondingStartHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowStake + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.UnbondingStartHeight |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipStake(dAtA[iNdEx:]) @@ -6988,7 +7242,7 @@ func (m *UndelegateClaimPlan) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.ValidatorIdentity == nil { - m.ValidatorIdentity = &v1alpha1.IdentityKey{} + m.ValidatorIdentity = &v1.IdentityKey{} } if err := m.ValidatorIdentity.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -7079,7 +7333,7 @@ func (m *UndelegateClaimPlan) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.UnbondingAmount == nil { - m.UnbondingAmount = &v1alpha11.Amount{} + m.UnbondingAmount = &v11.Amount{} } if err := m.UnbondingAmount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -7187,6 +7441,25 @@ func (m *UndelegateClaimPlan) Unmarshal(dAtA []byte) error { m.ProofBlindingS = []byte{} } iNdEx = postIndex + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UnbondingStartHeight", wireType) + } + m.UnbondingStartHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowStake + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.UnbondingStartHeight |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipStake(dAtA[iNdEx:]) @@ -7506,7 +7779,7 @@ func (m *CurrentConsensusKeys) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ConsensusKeys = append(m.ConsensusKeys, &v1alpha1.ConsensusKey{}) + m.ConsensusKeys = append(m.ConsensusKeys, &v1.ConsensusKey{}) if err := m.ConsensusKeys[len(m.ConsensusKeys)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -7645,38 +7918,6 @@ func (m *ValidatorInfoRequest) Unmarshal(dAtA []byte) error { return fmt.Errorf("proto: ValidatorInfoRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowStake - } - 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 ErrInvalidLengthStake - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthStake - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ChainId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex case 2: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field ShowInactive", wireType) @@ -7833,38 +8074,6 @@ func (m *ValidatorStatusRequest) Unmarshal(dAtA []byte) error { return fmt.Errorf("proto: ValidatorStatusRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowStake - } - 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 ErrInvalidLengthStake - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthStake - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ChainId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field IdentityKey", wireType) @@ -7895,7 +8104,7 @@ func (m *ValidatorStatusRequest) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.IdentityKey == nil { - m.IdentityKey = &v1alpha1.IdentityKey{} + m.IdentityKey = &v1.IdentityKey{} } if err := m.IdentityKey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -8037,38 +8246,6 @@ func (m *ValidatorPenaltyRequest) Unmarshal(dAtA []byte) error { return fmt.Errorf("proto: ValidatorPenaltyRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowStake - } - 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 ErrInvalidLengthStake - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthStake - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ChainId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field IdentityKey", wireType) @@ -8099,7 +8276,7 @@ func (m *ValidatorPenaltyRequest) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.IdentityKey == nil { - m.IdentityKey = &v1alpha1.IdentityKey{} + m.IdentityKey = &v1.IdentityKey{} } if err := m.IdentityKey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -8279,38 +8456,6 @@ func (m *CurrentValidatorRateRequest) Unmarshal(dAtA []byte) error { return fmt.Errorf("proto: CurrentValidatorRateRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowStake - } - 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 ErrInvalidLengthStake - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthStake - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ChainId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field IdentityKey", wireType) @@ -8341,7 +8486,7 @@ func (m *CurrentValidatorRateRequest) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.IdentityKey == nil { - m.IdentityKey = &v1alpha1.IdentityKey{} + m.IdentityKey = &v1.IdentityKey{} } if err := m.IdentityKey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -8616,6 +8761,61 @@ func (m *StakeParameters) Unmarshal(dAtA []byte) error { break } } + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MinValidatorStake", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowStake + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthStake + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthStake + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.MinValidatorStake == nil { + m.MinValidatorStake = &v11.Amount{} + } + if err := m.MinValidatorStake.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UnbondingDelay", wireType) + } + m.UnbondingDelay = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowStake + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.UnbondingDelay |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipStake(dAtA[iNdEx:]) diff --git a/relayer/chains/penumbra/core/keys/v1alpha1/keys.pb.go b/relayer/chains/penumbra/core/keys/v1/keys.pb.go similarity index 88% rename from relayer/chains/penumbra/core/keys/v1alpha1/keys.pb.go rename to relayer/chains/penumbra/core/keys/v1/keys.pb.go index f31738fd9..9f539fcc5 100644 --- a/relayer/chains/penumbra/core/keys/v1alpha1/keys.pb.go +++ b/relayer/chains/penumbra/core/keys/v1/keys.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: penumbra/core/keys/v1alpha1/keys.proto +// source: penumbra/core/keys/v1/keys.proto -package keysv1alpha1 +package keysv1 import ( fmt "fmt" @@ -42,7 +42,7 @@ func (m *Address) Reset() { *m = Address{} } func (m *Address) String() string { return proto.CompactTextString(m) } func (*Address) ProtoMessage() {} func (*Address) Descriptor() ([]byte, []int) { - return fileDescriptor_1a822d221e23f7f7, []int{0} + return fileDescriptor_171d3f5d66e6613e, []int{0} } func (m *Address) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -88,7 +88,7 @@ func (m *Address) GetAltBech32M() string { type AddressView struct { // Types that are valid to be assigned to AddressView: // - // *AddressView_Visible_ + // *AddressView_Decoded_ // *AddressView_Opaque_ AddressView isAddressView_AddressView `protobuf_oneof:"address_view"` } @@ -97,7 +97,7 @@ func (m *AddressView) Reset() { *m = AddressView{} } func (m *AddressView) String() string { return proto.CompactTextString(m) } func (*AddressView) ProtoMessage() {} func (*AddressView) Descriptor() ([]byte, []int) { - return fileDescriptor_1a822d221e23f7f7, []int{1} + return fileDescriptor_171d3f5d66e6613e, []int{1} } func (m *AddressView) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -132,14 +132,14 @@ type isAddressView_AddressView interface { Size() int } -type AddressView_Visible_ struct { - Visible *AddressView_Visible `protobuf:"bytes,1,opt,name=visible,proto3,oneof" json:"visible,omitempty"` +type AddressView_Decoded_ struct { + Decoded *AddressView_Decoded `protobuf:"bytes,1,opt,name=decoded,proto3,oneof" json:"decoded,omitempty"` } type AddressView_Opaque_ struct { Opaque *AddressView_Opaque `protobuf:"bytes,2,opt,name=opaque,proto3,oneof" json:"opaque,omitempty"` } -func (*AddressView_Visible_) isAddressView_AddressView() {} +func (*AddressView_Decoded_) isAddressView_AddressView() {} func (*AddressView_Opaque_) isAddressView_AddressView() {} func (m *AddressView) GetAddressView() isAddressView_AddressView { @@ -149,9 +149,9 @@ func (m *AddressView) GetAddressView() isAddressView_AddressView { return nil } -func (m *AddressView) GetVisible() *AddressView_Visible { - if x, ok := m.GetAddressView().(*AddressView_Visible_); ok { - return x.Visible +func (m *AddressView) GetDecoded() *AddressView_Decoded { + if x, ok := m.GetAddressView().(*AddressView_Decoded_); ok { + return x.Decoded } return nil } @@ -166,29 +166,30 @@ func (m *AddressView) GetOpaque() *AddressView_Opaque { // XXX_OneofWrappers is for the internal use of the proto package. func (*AddressView) XXX_OneofWrappers() []interface{} { return []interface{}{ - (*AddressView_Visible_)(nil), + (*AddressView_Decoded_)(nil), (*AddressView_Opaque_)(nil), } } -type AddressView_Visible struct { +// A decoded address, with information about the address index and wallet ID visible. +type AddressView_Decoded struct { Address *Address `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Index *AddressIndex `protobuf:"bytes,2,opt,name=index,proto3" json:"index,omitempty"` WalletId *WalletId `protobuf:"bytes,3,opt,name=wallet_id,json=walletId,proto3" json:"wallet_id,omitempty"` } -func (m *AddressView_Visible) Reset() { *m = AddressView_Visible{} } -func (m *AddressView_Visible) String() string { return proto.CompactTextString(m) } -func (*AddressView_Visible) ProtoMessage() {} -func (*AddressView_Visible) Descriptor() ([]byte, []int) { - return fileDescriptor_1a822d221e23f7f7, []int{1, 0} +func (m *AddressView_Decoded) Reset() { *m = AddressView_Decoded{} } +func (m *AddressView_Decoded) String() string { return proto.CompactTextString(m) } +func (*AddressView_Decoded) ProtoMessage() {} +func (*AddressView_Decoded) Descriptor() ([]byte, []int) { + return fileDescriptor_171d3f5d66e6613e, []int{1, 0} } -func (m *AddressView_Visible) XXX_Unmarshal(b []byte) error { +func (m *AddressView_Decoded) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *AddressView_Visible) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *AddressView_Decoded) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_AddressView_Visible.Marshal(b, m, deterministic) + return xxx_messageInfo_AddressView_Decoded.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -198,39 +199,40 @@ func (m *AddressView_Visible) XXX_Marshal(b []byte, deterministic bool) ([]byte, return b[:n], nil } } -func (m *AddressView_Visible) XXX_Merge(src proto.Message) { - xxx_messageInfo_AddressView_Visible.Merge(m, src) +func (m *AddressView_Decoded) XXX_Merge(src proto.Message) { + xxx_messageInfo_AddressView_Decoded.Merge(m, src) } -func (m *AddressView_Visible) XXX_Size() int { +func (m *AddressView_Decoded) XXX_Size() int { return m.Size() } -func (m *AddressView_Visible) XXX_DiscardUnknown() { - xxx_messageInfo_AddressView_Visible.DiscardUnknown(m) +func (m *AddressView_Decoded) XXX_DiscardUnknown() { + xxx_messageInfo_AddressView_Decoded.DiscardUnknown(m) } -var xxx_messageInfo_AddressView_Visible proto.InternalMessageInfo +var xxx_messageInfo_AddressView_Decoded proto.InternalMessageInfo -func (m *AddressView_Visible) GetAddress() *Address { +func (m *AddressView_Decoded) GetAddress() *Address { if m != nil { return m.Address } return nil } -func (m *AddressView_Visible) GetIndex() *AddressIndex { +func (m *AddressView_Decoded) GetIndex() *AddressIndex { if m != nil { return m.Index } return nil } -func (m *AddressView_Visible) GetWalletId() *WalletId { +func (m *AddressView_Decoded) GetWalletId() *WalletId { if m != nil { return m.WalletId } return nil } +// An opaque address, with no information about the address index or wallet ID visible. type AddressView_Opaque struct { Address *Address `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` } @@ -239,7 +241,7 @@ func (m *AddressView_Opaque) Reset() { *m = AddressView_Opaque{} } func (m *AddressView_Opaque) String() string { return proto.CompactTextString(m) } func (*AddressView_Opaque) ProtoMessage() {} func (*AddressView_Opaque) Descriptor() ([]byte, []int) { - return fileDescriptor_1a822d221e23f7f7, []int{1, 1} + return fileDescriptor_171d3f5d66e6613e, []int{1, 1} } func (m *AddressView_Opaque) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -283,7 +285,7 @@ func (m *PayloadKey) Reset() { *m = PayloadKey{} } func (m *PayloadKey) String() string { return proto.CompactTextString(m) } func (*PayloadKey) ProtoMessage() {} func (*PayloadKey) Descriptor() ([]byte, []int) { - return fileDescriptor_1a822d221e23f7f7, []int{2} + return fileDescriptor_171d3f5d66e6613e, []int{2} } func (m *PayloadKey) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -327,7 +329,7 @@ func (m *SpendKey) Reset() { *m = SpendKey{} } func (m *SpendKey) String() string { return proto.CompactTextString(m) } func (*SpendKey) ProtoMessage() {} func (*SpendKey) Descriptor() ([]byte, []int) { - return fileDescriptor_1a822d221e23f7f7, []int{3} + return fileDescriptor_171d3f5d66e6613e, []int{3} } func (m *SpendKey) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -371,7 +373,7 @@ func (m *FullViewingKey) Reset() { *m = FullViewingKey{} } func (m *FullViewingKey) String() string { return proto.CompactTextString(m) } func (*FullViewingKey) ProtoMessage() {} func (*FullViewingKey) Descriptor() ([]byte, []int) { - return fileDescriptor_1a822d221e23f7f7, []int{4} + return fileDescriptor_171d3f5d66e6613e, []int{4} } func (m *FullViewingKey) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -415,7 +417,7 @@ func (m *WalletId) Reset() { *m = WalletId{} } func (m *WalletId) String() string { return proto.CompactTextString(m) } func (*WalletId) ProtoMessage() {} func (*WalletId) Descriptor() ([]byte, []int) { - return fileDescriptor_1a822d221e23f7f7, []int{5} + return fileDescriptor_171d3f5d66e6613e, []int{5} } func (m *WalletId) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -459,7 +461,7 @@ func (m *Diversifier) Reset() { *m = Diversifier{} } func (m *Diversifier) String() string { return proto.CompactTextString(m) } func (*Diversifier) ProtoMessage() {} func (*Diversifier) Descriptor() ([]byte, []int) { - return fileDescriptor_1a822d221e23f7f7, []int{6} + return fileDescriptor_171d3f5d66e6613e, []int{6} } func (m *Diversifier) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -504,7 +506,7 @@ func (m *AddressIndex) Reset() { *m = AddressIndex{} } func (m *AddressIndex) String() string { return proto.CompactTextString(m) } func (*AddressIndex) ProtoMessage() {} func (*AddressIndex) Descriptor() ([]byte, []int) { - return fileDescriptor_1a822d221e23f7f7, []int{7} + return fileDescriptor_171d3f5d66e6613e, []int{7} } func (m *AddressIndex) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -556,7 +558,7 @@ func (m *IdentityKey) Reset() { *m = IdentityKey{} } func (m *IdentityKey) String() string { return proto.CompactTextString(m) } func (*IdentityKey) ProtoMessage() {} func (*IdentityKey) Descriptor() ([]byte, []int) { - return fileDescriptor_1a822d221e23f7f7, []int{8} + return fileDescriptor_171d3f5d66e6613e, []int{8} } func (m *IdentityKey) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -601,7 +603,7 @@ func (m *GovernanceKey) Reset() { *m = GovernanceKey{} } func (m *GovernanceKey) String() string { return proto.CompactTextString(m) } func (*GovernanceKey) ProtoMessage() {} func (*GovernanceKey) Descriptor() ([]byte, []int) { - return fileDescriptor_1a822d221e23f7f7, []int{9} + return fileDescriptor_171d3f5d66e6613e, []int{9} } func (m *GovernanceKey) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -645,7 +647,7 @@ func (m *ConsensusKey) Reset() { *m = ConsensusKey{} } func (m *ConsensusKey) String() string { return proto.CompactTextString(m) } func (*ConsensusKey) ProtoMessage() {} func (*ConsensusKey) Descriptor() ([]byte, []int) { - return fileDescriptor_1a822d221e23f7f7, []int{10} + return fileDescriptor_171d3f5d66e6613e, []int{10} } func (m *ConsensusKey) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -682,64 +684,62 @@ func (m *ConsensusKey) GetInner() []byte { } func init() { - proto.RegisterType((*Address)(nil), "penumbra.core.keys.v1alpha1.Address") - proto.RegisterType((*AddressView)(nil), "penumbra.core.keys.v1alpha1.AddressView") - proto.RegisterType((*AddressView_Visible)(nil), "penumbra.core.keys.v1alpha1.AddressView.Visible") - proto.RegisterType((*AddressView_Opaque)(nil), "penumbra.core.keys.v1alpha1.AddressView.Opaque") - proto.RegisterType((*PayloadKey)(nil), "penumbra.core.keys.v1alpha1.PayloadKey") - proto.RegisterType((*SpendKey)(nil), "penumbra.core.keys.v1alpha1.SpendKey") - proto.RegisterType((*FullViewingKey)(nil), "penumbra.core.keys.v1alpha1.FullViewingKey") - proto.RegisterType((*WalletId)(nil), "penumbra.core.keys.v1alpha1.WalletId") - proto.RegisterType((*Diversifier)(nil), "penumbra.core.keys.v1alpha1.Diversifier") - proto.RegisterType((*AddressIndex)(nil), "penumbra.core.keys.v1alpha1.AddressIndex") - proto.RegisterType((*IdentityKey)(nil), "penumbra.core.keys.v1alpha1.IdentityKey") - proto.RegisterType((*GovernanceKey)(nil), "penumbra.core.keys.v1alpha1.GovernanceKey") - proto.RegisterType((*ConsensusKey)(nil), "penumbra.core.keys.v1alpha1.ConsensusKey") -} - -func init() { - proto.RegisterFile("penumbra/core/keys/v1alpha1/keys.proto", fileDescriptor_1a822d221e23f7f7) -} - -var fileDescriptor_1a822d221e23f7f7 = []byte{ - // 590 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x94, 0xcf, 0x6e, 0xd3, 0x4e, - 0x10, 0xc7, 0x63, 0x57, 0xbf, 0xa6, 0x9d, 0xa4, 0x3d, 0x58, 0xbf, 0x43, 0xd4, 0x0a, 0xb7, 0x32, - 0xa5, 0x94, 0x8b, 0x4d, 0xd3, 0x5b, 0x90, 0xf8, 0x93, 0x22, 0x9a, 0xa8, 0x20, 0x22, 0x83, 0x8a, - 0x84, 0x22, 0x55, 0x1b, 0x7b, 0x48, 0x56, 0xb1, 0x77, 0xc3, 0xae, 0xed, 0x60, 0x9e, 0x82, 0x67, - 0xe0, 0x06, 0x4f, 0x82, 0x38, 0xa0, 0x72, 0xe3, 0x88, 0xd2, 0x1b, 0x4f, 0x81, 0xd6, 0x7f, 0x4a, - 0x0f, 0xd4, 0xaa, 0xc4, 0x6d, 0x67, 0xe7, 0xf3, 0xfd, 0xce, 0xcc, 0xae, 0xbd, 0xb0, 0x3b, 0x43, - 0x16, 0x87, 0x23, 0x41, 0x1c, 0x8f, 0x0b, 0x74, 0xa6, 0x98, 0x4a, 0x27, 0xd9, 0x27, 0xc1, 0x6c, - 0x42, 0xf6, 0xb3, 0xc8, 0x9e, 0x09, 0x1e, 0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eb, 0xd0, 0x2c, - 0x96, 0xa7, 0x09, 0xc5, 0xb9, 0x65, 0x01, 0x0c, 0x48, 0x1a, 0x70, 0xe2, 0x1f, 0x63, 0xfa, 0xf7, - 0x0f, 0xc3, 0xda, 0x86, 0x95, 0x17, 0x33, 0x64, 0x15, 0xc4, 0x2e, 0xac, 0x3f, 0x89, 0x83, 0x40, - 0xdd, 0x06, 0x65, 0xe3, 0x4a, 0xa7, 0x72, 0xba, 0x2b, 0x88, 0x9b, 0xd0, 0x78, 0x4c, 0x13, 0x14, - 0x92, 0xbe, 0xa1, 0x28, 0xae, 0x80, 0x7a, 0xd0, 0xbc, 0x7c, 0xd2, 0x46, 0x0b, 0xea, 0xc4, 0xf3, - 0x78, 0xcc, 0xa2, 0xec, 0x96, 0xd6, 0xdc, 0x32, 0x34, 0x4c, 0x00, 0x41, 0x98, 0xcf, 0x43, 0xfa, - 0x1e, 0x45, 0x76, 0xfa, 0x4d, 0xf7, 0xd2, 0x8e, 0x75, 0x03, 0x1a, 0x7d, 0x1f, 0x59, 0x44, 0xa3, - 0x54, 0x75, 0xbd, 0x0e, 0x3a, 0x9d, 0x16, 0xb5, 0x74, 0x3a, 0xb5, 0xb6, 0x60, 0xed, 0x88, 0x27, - 0x28, 0x18, 0x61, 0x1e, 0x16, 0xc0, 0xf8, 0x02, 0x18, 0x4f, 0xad, 0x1d, 0x68, 0x1e, 0x72, 0x26, - 0x91, 0xc9, 0x58, 0x5e, 0x39, 0x76, 0xf7, 0x93, 0xfe, 0x65, 0x61, 0x6a, 0x67, 0x0b, 0x53, 0xfb, - 0xb9, 0x30, 0xb5, 0x0f, 0xe7, 0x66, 0xed, 0xec, 0xdc, 0xac, 0xfd, 0x38, 0x37, 0x6b, 0xb0, 0xe5, - 0xf1, 0xb0, 0xea, 0x06, 0xbb, 0xab, 0xc7, 0x98, 0xca, 0x81, 0xfa, 0xbd, 0x07, 0xda, 0xeb, 0x97, - 0x63, 0x1a, 0x4d, 0xe2, 0x91, 0xed, 0xf1, 0xd0, 0xf1, 0xb8, 0x0c, 0xb9, 0x74, 0x04, 0x06, 0x24, - 0x45, 0xe1, 0x24, 0xed, 0x8b, 0xa5, 0x37, 0x21, 0x94, 0x49, 0xa7, 0xe2, 0xd1, 0xb8, 0xa7, 0xa2, - 0x32, 0xf8, 0xa8, 0x2f, 0x0d, 0x0e, 0x8f, 0x3f, 0xeb, 0x9b, 0x83, 0xb2, 0x8d, 0x43, 0xd5, 0x86, - 0xaa, 0x6b, 0x9f, 0x14, 0xcc, 0xd7, 0x3f, 0xd9, 0xa1, 0xca, 0x0e, 0x55, 0x76, 0x58, 0x66, 0x17, - 0xfa, 0xed, 0x8a, 0xec, 0xf0, 0x68, 0xd0, 0x7d, 0x86, 0x11, 0xf1, 0x49, 0x44, 0x7e, 0xe9, 0x66, - 0x49, 0x76, 0x3a, 0x0a, 0xed, 0x74, 0x14, 0xdb, 0xe9, 0x94, 0xf0, 0x68, 0x39, 0x7b, 0xca, 0x0e, - 0x7e, 0x07, 0x00, 0x00, 0xff, 0xff, 0x5e, 0xb3, 0x0c, 0xd4, 0xf4, 0x04, 0x00, 0x00, + proto.RegisterType((*Address)(nil), "penumbra.core.keys.v1.Address") + proto.RegisterType((*AddressView)(nil), "penumbra.core.keys.v1.AddressView") + proto.RegisterType((*AddressView_Decoded)(nil), "penumbra.core.keys.v1.AddressView.Decoded") + proto.RegisterType((*AddressView_Opaque)(nil), "penumbra.core.keys.v1.AddressView.Opaque") + proto.RegisterType((*PayloadKey)(nil), "penumbra.core.keys.v1.PayloadKey") + proto.RegisterType((*SpendKey)(nil), "penumbra.core.keys.v1.SpendKey") + proto.RegisterType((*FullViewingKey)(nil), "penumbra.core.keys.v1.FullViewingKey") + proto.RegisterType((*WalletId)(nil), "penumbra.core.keys.v1.WalletId") + proto.RegisterType((*Diversifier)(nil), "penumbra.core.keys.v1.Diversifier") + proto.RegisterType((*AddressIndex)(nil), "penumbra.core.keys.v1.AddressIndex") + proto.RegisterType((*IdentityKey)(nil), "penumbra.core.keys.v1.IdentityKey") + proto.RegisterType((*GovernanceKey)(nil), "penumbra.core.keys.v1.GovernanceKey") + proto.RegisterType((*ConsensusKey)(nil), "penumbra.core.keys.v1.ConsensusKey") +} + +func init() { proto.RegisterFile("penumbra/core/keys/v1/keys.proto", fileDescriptor_171d3f5d66e6613e) } + +var fileDescriptor_171d3f5d66e6613e = []byte{ + // 586 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x94, 0xcf, 0x6e, 0xd3, 0x4e, + 0x10, 0xc7, 0x63, 0x57, 0xbf, 0xa6, 0x9d, 0xa4, 0x3d, 0x58, 0xbf, 0x4a, 0xa1, 0x12, 0x6e, 0x70, + 0x11, 0x2a, 0x1c, 0x6c, 0x25, 0xbd, 0x40, 0xe0, 0x00, 0x49, 0xd5, 0xa6, 0xaa, 0x10, 0x91, 0x91, + 0x82, 0x84, 0x22, 0x55, 0x1b, 0xef, 0x90, 0xae, 0xe2, 0xec, 0x86, 0xf5, 0x9f, 0x60, 0x9e, 0x82, + 0x67, 0xe0, 0x88, 0xc4, 0x1b, 0xf0, 0x00, 0x88, 0x53, 0x8f, 0x1c, 0x51, 0x7a, 0xe3, 0x25, 0x40, + 0xeb, 0x3f, 0xa5, 0x87, 0x24, 0x42, 0x9c, 0x76, 0x77, 0xfc, 0xf9, 0xce, 0x77, 0x76, 0x46, 0x6b, + 0xa8, 0x4f, 0x91, 0x47, 0x93, 0xa1, 0x24, 0x8e, 0x27, 0x24, 0x3a, 0x63, 0x4c, 0x02, 0x27, 0x6e, + 0xa4, 0xab, 0x3d, 0x95, 0x22, 0x14, 0xc6, 0x4e, 0x41, 0xd8, 0x8a, 0xb0, 0xd3, 0x2f, 0x71, 0xc3, + 0x7a, 0x0a, 0xe5, 0x67, 0x94, 0x4a, 0x0c, 0x02, 0xe3, 0x7f, 0xf8, 0x8f, 0x71, 0x8e, 0xb2,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3f, 0x56, 0x6b, 0xdc, 0xf8, 0xa8, + 0xaf, 0xf5, 0x3a, 0x67, 0x9f, 0xf4, 0x9d, 0x5e, 0x61, 0xda, 0x51, 0xa6, 0xca, 0xcb, 0xee, 0x37, + 0xbe, 0xfd, 0x89, 0x0f, 0x54, 0x7c, 0xa0, 0xe2, 0x83, 0x7e, 0x63, 0xae, 0xdf, 0x59, 0x18, 0x1f, + 0x9c, 0xf4, 0xda, 0xcf, 0x31, 0x24, 0x94, 0x84, 0xe4, 0xa7, 0x5e, 0x2b, 0x98, 0x56, 0x4b, 0x41, + 0xad, 0x96, 0xa2, 0x5a, 0xad, 0x7e, 0x63, 0xb8, 0x9e, 0xfe, 0x76, 0x0e, 0x7f, 0x07, 0x00, 0x00, + 0xff, 0xff, 0xae, 0xfb, 0x78, 0x03, 0x9a, 0x04, 0x00, 0x00, } func (m *Address) Marshal() (dAtA []byte, err error) { @@ -811,16 +811,16 @@ func (m *AddressView) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *AddressView_Visible_) MarshalTo(dAtA []byte) (int, error) { +func (m *AddressView_Decoded_) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *AddressView_Visible_) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *AddressView_Decoded_) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) - if m.Visible != nil { + if m.Decoded != nil { { - size, err := m.Visible.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Decoded.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -853,7 +853,7 @@ func (m *AddressView_Opaque_) MarshalToSizedBuffer(dAtA []byte) (int, error) { } return len(dAtA) - i, nil } -func (m *AddressView_Visible) Marshal() (dAtA []byte, err error) { +func (m *AddressView_Decoded) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -863,12 +863,12 @@ func (m *AddressView_Visible) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *AddressView_Visible) MarshalTo(dAtA []byte) (int, error) { +func (m *AddressView_Decoded) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *AddressView_Visible) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *AddressView_Decoded) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1262,14 +1262,14 @@ func (m *AddressView) Size() (n int) { return n } -func (m *AddressView_Visible_) Size() (n int) { +func (m *AddressView_Decoded_) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.Visible != nil { - l = m.Visible.Size() + if m.Decoded != nil { + l = m.Decoded.Size() n += 1 + l + sovKeys(uint64(l)) } return n @@ -1286,7 +1286,7 @@ func (m *AddressView_Opaque_) Size() (n int) { } return n } -func (m *AddressView_Visible) Size() (n int) { +func (m *AddressView_Decoded) Size() (n int) { if m == nil { return 0 } @@ -1593,7 +1593,7 @@ func (m *AddressView) Unmarshal(dAtA []byte) error { switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Visible", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Decoded", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -1620,11 +1620,11 @@ func (m *AddressView) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &AddressView_Visible{} + v := &AddressView_Decoded{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.AddressView = &AddressView_Visible_{v} + m.AddressView = &AddressView_Decoded_{v} iNdEx = postIndex case 2: if wireType != 2 { @@ -1682,7 +1682,7 @@ func (m *AddressView) Unmarshal(dAtA []byte) error { } return nil } -func (m *AddressView_Visible) Unmarshal(dAtA []byte) error { +func (m *AddressView_Decoded) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -1705,10 +1705,10 @@ func (m *AddressView_Visible) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Visible: wiretype end group for non-group") + return fmt.Errorf("proto: Decoded: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Visible: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Decoded: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: diff --git a/relayer/chains/penumbra/core/num/v1alpha1/num.pb.go b/relayer/chains/penumbra/core/num/v1/num.pb.go similarity index 76% rename from relayer/chains/penumbra/core/num/v1alpha1/num.pb.go rename to relayer/chains/penumbra/core/num/v1/num.pb.go index d4613a05e..461b62775 100644 --- a/relayer/chains/penumbra/core/num/v1alpha1/num.pb.go +++ b/relayer/chains/penumbra/core/num/v1/num.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: penumbra/core/num/v1alpha1/num.proto +// source: penumbra/core/num/v1/num.proto -package numv1alpha1 +package numv1 import ( fmt "fmt" @@ -36,7 +36,7 @@ func (m *Amount) Reset() { *m = Amount{} } func (m *Amount) String() string { return proto.CompactTextString(m) } func (*Amount) ProtoMessage() {} func (*Amount) Descriptor() ([]byte, []int) { - return fileDescriptor_a515e4f6cefdd105, []int{0} + return fileDescriptor_660cebd44e5047eb, []int{0} } func (m *Amount) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -80,33 +80,30 @@ func (m *Amount) GetHi() uint64 { } func init() { - proto.RegisterType((*Amount)(nil), "penumbra.core.num.v1alpha1.Amount") + proto.RegisterType((*Amount)(nil), "penumbra.core.num.v1.Amount") } -func init() { - proto.RegisterFile("penumbra/core/num/v1alpha1/num.proto", fileDescriptor_a515e4f6cefdd105) -} +func init() { proto.RegisterFile("penumbra/core/num/v1/num.proto", fileDescriptor_660cebd44e5047eb) } -var fileDescriptor_a515e4f6cefdd105 = []byte{ - // 277 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x90, 0x31, 0x4b, 0xc4, 0x30, - 0x18, 0x86, 0x9b, 0x28, 0x87, 0x74, 0x70, 0xb8, 0xe9, 0x38, 0x30, 0x88, 0x88, 0xdc, 0x94, 0x70, - 0xba, 0xc5, 0xc9, 0xde, 0xe0, 0x64, 0x29, 0x37, 0x38, 0x48, 0x97, 0xb4, 0x16, 0x5b, 0xe8, 0xd7, - 0xaf, 0xa4, 0xc9, 0x81, 0xff, 0xc2, 0xbf, 0xa0, 0xa3, 0xbf, 0x44, 0x9c, 0x6e, 0x74, 0x94, 0x76, - 0xf3, 0x57, 0x48, 0xd4, 0x78, 0x53, 0xb7, 0xf7, 0xe5, 0x79, 0x20, 0x6f, 0xbe, 0xf0, 0xb4, 0x2d, - 0x1a, 0x0b, 0x99, 0x56, 0x22, 0x47, 0x5d, 0x88, 0xc6, 0x82, 0xd8, 0x2c, 0x55, 0xdd, 0x96, 0x6a, - 0xe9, 0x0a, 0x6f, 0x35, 0x1a, 0x9c, 0xce, 0xbd, 0xc5, 0x9d, 0xc5, 0x1d, 0xf0, 0xd6, 0xc9, 0x22, - 0x9c, 0x5c, 0x01, 0xda, 0xc6, 0x4c, 0x0f, 0x43, 0x5a, 0xe3, 0x8c, 0x1c, 0x93, 0xc5, 0xfe, 0x9a, - 0xd6, 0xe8, 0x7a, 0x59, 0xcd, 0xe8, 0x6f, 0x2f, 0xab, 0xe8, 0x99, 0xbe, 0xf5, 0x8c, 0x6c, 0x7b, - 0x46, 0x3e, 0x7b, 0x46, 0x9e, 0x06, 0x16, 0x6c, 0x07, 0x16, 0x7c, 0x0c, 0x2c, 0x08, 0x59, 0x8e, - 0xc0, 0xc7, 0x1f, 0x89, 0x0e, 0x62, 0x0b, 0x89, 0x9b, 0x92, 0x90, 0xbb, 0xf5, 0x43, 0x65, 0x4a, - 0x9b, 0xf1, 0x1c, 0x41, 0xe4, 0xd8, 0x01, 0x76, 0x42, 0x17, 0xb5, 0x7a, 0x2c, 0xb4, 0xd8, 0x9c, - 0xff, 0xc7, 0xbc, 0x54, 0x55, 0xd3, 0x89, 0xf1, 0xef, 0x5d, 0x36, 0x16, 0x7c, 0x7e, 0xa1, 0x7b, - 0xc9, 0x2a, 0x7e, 0xa5, 0xf3, 0xc4, 0x4f, 0x58, 0xb9, 0x09, 0xb1, 0x05, 0x7e, 0xfb, 0xa7, 0xbc, - 0xef, 0x60, 0xea, 0x60, 0x1a, 0x5b, 0x48, 0x3d, 0xec, 0xe9, 0xd9, 0x38, 0x4c, 0xaf, 0x93, 0xe8, - 0xa6, 0x30, 0xea, 0x5e, 0x19, 0xf5, 0x45, 0x8f, 0xbc, 0x28, 0xa5, 0x33, 0xa5, 0x8c, 0x2d, 0x48, - 0xe9, 0xdd, 0x6c, 0xf2, 0x73, 0xf0, 0x8b, 0xef, 0x00, 0x00, 0x00, 0xff, 0xff, 0xbb, 0x55, 0x25, - 0xb1, 0x98, 0x01, 0x00, 0x00, +var fileDescriptor_660cebd44e5047eb = []byte{ + // 270 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x2b, 0x48, 0xcd, 0x2b, + 0xcd, 0x4d, 0x2a, 0x4a, 0xd4, 0x4f, 0xce, 0x2f, 0x4a, 0xd5, 0xcf, 0x2b, 0xcd, 0xd5, 0x2f, 0x33, + 0x04, 0x51, 0x7a, 0x05, 0x45, 0xf9, 0x25, 0xf9, 0x42, 0x22, 0x30, 0x79, 0x3d, 0x90, 0xbc, 0x1e, + 0x48, 0xa2, 0xcc, 0x50, 0x49, 0x83, 0x8b, 0xcd, 0x31, 0x37, 0xbf, 0x34, 0xaf, 0x44, 0x88, 0x8f, + 0x8b, 0x29, 0x27, 0x5f, 0x82, 0x51, 0x81, 0x51, 0x83, 0x25, 0x88, 0x29, 0x27, 0x1f, 0xc4, 0xcf, + 0xc8, 0x94, 0x60, 0x82, 0xf0, 0x33, 0x32, 0x9d, 0xbe, 0x33, 0x9e, 0x78, 0x24, 0xc7, 0x78, 0xe1, + 0x91, 0x1c, 0xe3, 0x83, 0x47, 0x72, 0x8c, 0x13, 0x1e, 0xcb, 0x31, 0x5c, 0x78, 0x2c, 0xc7, 0x70, + 0xe3, 0xb1, 0x1c, 0x03, 0x97, 0x44, 0x72, 0x7e, 0xae, 0x1e, 0x36, 0xe3, 0x9d, 0x38, 0xfc, 0x4a, + 0x73, 0x03, 0x40, 0xd6, 0x07, 0x30, 0x46, 0xb9, 0xa5, 0x67, 0x96, 0x64, 0x94, 0x26, 0xe9, 0x25, + 0xe7, 0xe7, 0xea, 0x27, 0xe7, 0x17, 0xe7, 0xe6, 0x17, 0xeb, 0x17, 0xa5, 0xe6, 0x24, 0x56, 0xa6, + 0x16, 0xe9, 0x97, 0x19, 0xc1, 0x99, 0xc9, 0x19, 0x89, 0x99, 0x79, 0xc5, 0xfa, 0xd8, 0x3c, 0x63, + 0x9d, 0x57, 0x9a, 0x5b, 0x66, 0xb8, 0x88, 0x89, 0x39, 0xc0, 0xd9, 0x6f, 0x15, 0x93, 0x48, 0x00, + 0xcc, 0x42, 0x67, 0x90, 0x85, 0x7e, 0xa5, 0xb9, 0x7a, 0x61, 0x86, 0xa7, 0x10, 0xc2, 0x31, 0x20, + 0xe1, 0x18, 0xbf, 0xd2, 0xdc, 0x98, 0x30, 0xc3, 0x47, 0x4c, 0x0a, 0xd8, 0x84, 0x63, 0xdc, 0x03, + 0x9c, 0x7c, 0x53, 0x4b, 0x12, 0x53, 0x12, 0x4b, 0x12, 0x5f, 0x31, 0x89, 0xc3, 0x94, 0x58, 0x59, + 0x81, 0xd4, 0x58, 0x59, 0xf9, 0x95, 0xe6, 0x5a, 0x59, 0x85, 0x19, 0x26, 0xb1, 0x81, 0x03, 0xd0, + 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0x2c, 0x3e, 0x53, 0x90, 0x62, 0x01, 0x00, 0x00, } func (m *Amount) Marshal() (dAtA []byte, err error) { diff --git a/relayer/chains/penumbra/core/transaction/v1alpha1/transaction.pb.go b/relayer/chains/penumbra/core/transaction/v1/transaction.pb.go similarity index 78% rename from relayer/chains/penumbra/core/transaction/v1alpha1/transaction.pb.go rename to relayer/chains/penumbra/core/transaction/v1/transaction.pb.go index 0c4272ed9..a4e41fadc 100644 --- a/relayer/chains/penumbra/core/transaction/v1alpha1/transaction.pb.go +++ b/relayer/chains/penumbra/core/transaction/v1/transaction.pb.go @@ -1,24 +1,25 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: penumbra/core/transaction/v1alpha1/transaction.proto +// source: penumbra/core/transaction/v1/transaction.proto -package transactionv1alpha1 +package transactionv1 import ( fmt "fmt" + types "github.com/cosmos/cosmos-sdk/codec/types" proto "github.com/cosmos/gogoproto/proto" - v1alpha110 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/asset/v1alpha1" - v1alpha15 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/component/dex/v1alpha1" - v1alpha12 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/component/fee/v1alpha1" - v1alpha18 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/component/governance/v1alpha1" - v1alpha17 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/component/ibc/v1alpha1" - v1alpha112 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/component/sct/v1alpha1" - v1alpha14 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/component/shielded_pool/v1alpha1" - v1alpha16 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/component/stake/v1alpha1" - v1alpha19 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/keys/v1alpha1" - v1alpha111 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/txhash/v1alpha1" - v1alpha13 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/crypto/decaf377_fmd/v1alpha1" - v1alpha1 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/crypto/decaf377_rdsa/v1alpha1" - v1alpha11 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/crypto/tct/v1alpha1" + v110 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/asset/v1" + v15 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/component/dex/v1" + v12 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/component/fee/v1" + v18 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/component/governance/v1" + v17 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/component/ibc/v1" + v112 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/component/sct/v1" + v14 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/component/shielded_pool/v1" + v16 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/component/stake/v1" + v19 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/keys/v1" + v111 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/txhash/v1" + v13 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/crypto/decaf377_fmd/v1" + v1 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/crypto/decaf377_rdsa/v1" + v11 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/crypto/tct/v1" io "io" math "math" math_bits "math/bits" @@ -39,17 +40,17 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package type Transaction struct { Body *TransactionBody `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"` // The binding signature is stored separately from the transaction body that it signs. - BindingSig *v1alpha1.BindingSignature `protobuf:"bytes,2,opt,name=binding_sig,json=bindingSig,proto3" json:"binding_sig,omitempty"` + BindingSig *v1.BindingSignature `protobuf:"bytes,2,opt,name=binding_sig,json=bindingSig,proto3" json:"binding_sig,omitempty"` // The root of some previous state of the state commitment tree, used as an anchor for all // ZK state transition proofs. - Anchor *v1alpha11.MerkleRoot `protobuf:"bytes,3,opt,name=anchor,proto3" json:"anchor,omitempty"` + Anchor *v11.MerkleRoot `protobuf:"bytes,3,opt,name=anchor,proto3" json:"anchor,omitempty"` } func (m *Transaction) Reset() { *m = Transaction{} } func (m *Transaction) String() string { return proto.CompactTextString(m) } func (*Transaction) ProtoMessage() {} func (*Transaction) Descriptor() ([]byte, []int) { - return fileDescriptor_cd20ea79758052c4, []int{0} + return fileDescriptor_8b6c2b29a42813c9, []int{0} } func (m *Transaction) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -85,14 +86,14 @@ func (m *Transaction) GetBody() *TransactionBody { return nil } -func (m *Transaction) GetBindingSig() *v1alpha1.BindingSignature { +func (m *Transaction) GetBindingSig() *v1.BindingSignature { if m != nil { return m.BindingSig } return nil } -func (m *Transaction) GetAnchor() *v1alpha11.MerkleRoot { +func (m *Transaction) GetAnchor() *v11.MerkleRoot { if m != nil { return m.Anchor } @@ -117,7 +118,7 @@ func (m *TransactionBody) Reset() { *m = TransactionBody{} } func (m *TransactionBody) String() string { return proto.CompactTextString(m) } func (*TransactionBody) ProtoMessage() {} func (*TransactionBody) Descriptor() ([]byte, []int) { - return fileDescriptor_cd20ea79758052c4, []int{1} + return fileDescriptor_8b6c2b29a42813c9, []int{1} } func (m *TransactionBody) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -184,14 +185,14 @@ type TransactionParameters struct { // replaying a transaction on one chain onto a different chain. ChainId string `protobuf:"bytes,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` // The transaction fee. - Fee *v1alpha12.Fee `protobuf:"bytes,3,opt,name=fee,proto3" json:"fee,omitempty"` + Fee *v12.Fee `protobuf:"bytes,3,opt,name=fee,proto3" json:"fee,omitempty"` } func (m *TransactionParameters) Reset() { *m = TransactionParameters{} } func (m *TransactionParameters) String() string { return proto.CompactTextString(m) } func (*TransactionParameters) ProtoMessage() {} func (*TransactionParameters) Descriptor() ([]byte, []int) { - return fileDescriptor_cd20ea79758052c4, []int{2} + return fileDescriptor_8b6c2b29a42813c9, []int{2} } func (m *TransactionParameters) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -234,7 +235,7 @@ func (m *TransactionParameters) GetChainId() string { return "" } -func (m *TransactionParameters) GetFee() *v1alpha12.Fee { +func (m *TransactionParameters) GetFee() *v12.Fee { if m != nil { return m.Fee } @@ -244,14 +245,14 @@ func (m *TransactionParameters) GetFee() *v1alpha12.Fee { // Detection data used by a detection server performing Fuzzy Message Detection. type DetectionData struct { // A list of clues for use with Fuzzy Message Detection. - FmdClues []*v1alpha13.Clue `protobuf:"bytes,4,rep,name=fmd_clues,json=fmdClues,proto3" json:"fmd_clues,omitempty"` + FmdClues []*v13.Clue `protobuf:"bytes,4,rep,name=fmd_clues,json=fmdClues,proto3" json:"fmd_clues,omitempty"` } func (m *DetectionData) Reset() { *m = DetectionData{} } func (m *DetectionData) String() string { return proto.CompactTextString(m) } func (*DetectionData) ProtoMessage() {} func (*DetectionData) Descriptor() ([]byte, []int) { - return fileDescriptor_cd20ea79758052c4, []int{3} + return fileDescriptor_8b6c2b29a42813c9, []int{3} } func (m *DetectionData) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -280,7 +281,7 @@ func (m *DetectionData) XXX_DiscardUnknown() { var xxx_messageInfo_DetectionData proto.InternalMessageInfo -func (m *DetectionData) GetFmdClues() []*v1alpha13.Clue { +func (m *DetectionData) GetFmdClues() []*v13.Clue { if m != nil { return m.FmdClues } @@ -319,7 +320,7 @@ func (m *Action) Reset() { *m = Action{} } func (m *Action) String() string { return proto.CompactTextString(m) } func (*Action) ProtoMessage() {} func (*Action) Descriptor() ([]byte, []int) { - return fileDescriptor_cd20ea79758052c4, []int{4} + return fileDescriptor_8b6c2b29a42813c9, []int{4} } func (m *Action) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -355,70 +356,70 @@ type isAction_Action interface { } type Action_Spend struct { - Spend *v1alpha14.Spend `protobuf:"bytes,1,opt,name=spend,proto3,oneof" json:"spend,omitempty"` + Spend *v14.Spend `protobuf:"bytes,1,opt,name=spend,proto3,oneof" json:"spend,omitempty"` } type Action_Output struct { - Output *v1alpha14.Output `protobuf:"bytes,2,opt,name=output,proto3,oneof" json:"output,omitempty"` + Output *v14.Output `protobuf:"bytes,2,opt,name=output,proto3,oneof" json:"output,omitempty"` } type Action_Swap struct { - Swap *v1alpha15.Swap `protobuf:"bytes,3,opt,name=swap,proto3,oneof" json:"swap,omitempty"` + Swap *v15.Swap `protobuf:"bytes,3,opt,name=swap,proto3,oneof" json:"swap,omitempty"` } type Action_SwapClaim struct { - SwapClaim *v1alpha15.SwapClaim `protobuf:"bytes,4,opt,name=swap_claim,json=swapClaim,proto3,oneof" json:"swap_claim,omitempty"` + SwapClaim *v15.SwapClaim `protobuf:"bytes,4,opt,name=swap_claim,json=swapClaim,proto3,oneof" json:"swap_claim,omitempty"` } type Action_ValidatorDefinition struct { - ValidatorDefinition *v1alpha16.ValidatorDefinition `protobuf:"bytes,16,opt,name=validator_definition,json=validatorDefinition,proto3,oneof" json:"validator_definition,omitempty"` + ValidatorDefinition *v16.ValidatorDefinition `protobuf:"bytes,16,opt,name=validator_definition,json=validatorDefinition,proto3,oneof" json:"validator_definition,omitempty"` } type Action_IbcRelayAction struct { - IbcRelayAction *v1alpha17.IbcRelay `protobuf:"bytes,17,opt,name=ibc_relay_action,json=ibcRelayAction,proto3,oneof" json:"ibc_relay_action,omitempty"` + IbcRelayAction *v17.IbcRelay `protobuf:"bytes,17,opt,name=ibc_relay_action,json=ibcRelayAction,proto3,oneof" json:"ibc_relay_action,omitempty"` } type Action_ProposalSubmit struct { - ProposalSubmit *v1alpha18.ProposalSubmit `protobuf:"bytes,18,opt,name=proposal_submit,json=proposalSubmit,proto3,oneof" json:"proposal_submit,omitempty"` + ProposalSubmit *v18.ProposalSubmit `protobuf:"bytes,18,opt,name=proposal_submit,json=proposalSubmit,proto3,oneof" json:"proposal_submit,omitempty"` } type Action_ProposalWithdraw struct { - ProposalWithdraw *v1alpha18.ProposalWithdraw `protobuf:"bytes,19,opt,name=proposal_withdraw,json=proposalWithdraw,proto3,oneof" json:"proposal_withdraw,omitempty"` + ProposalWithdraw *v18.ProposalWithdraw `protobuf:"bytes,19,opt,name=proposal_withdraw,json=proposalWithdraw,proto3,oneof" json:"proposal_withdraw,omitempty"` } type Action_ValidatorVote struct { - ValidatorVote *v1alpha18.ValidatorVote `protobuf:"bytes,20,opt,name=validator_vote,json=validatorVote,proto3,oneof" json:"validator_vote,omitempty"` + ValidatorVote *v18.ValidatorVote `protobuf:"bytes,20,opt,name=validator_vote,json=validatorVote,proto3,oneof" json:"validator_vote,omitempty"` } type Action_DelegatorVote struct { - DelegatorVote *v1alpha18.DelegatorVote `protobuf:"bytes,21,opt,name=delegator_vote,json=delegatorVote,proto3,oneof" json:"delegator_vote,omitempty"` + DelegatorVote *v18.DelegatorVote `protobuf:"bytes,21,opt,name=delegator_vote,json=delegatorVote,proto3,oneof" json:"delegator_vote,omitempty"` } type Action_ProposalDepositClaim struct { - ProposalDepositClaim *v1alpha18.ProposalDepositClaim `protobuf:"bytes,22,opt,name=proposal_deposit_claim,json=proposalDepositClaim,proto3,oneof" json:"proposal_deposit_claim,omitempty"` + ProposalDepositClaim *v18.ProposalDepositClaim `protobuf:"bytes,22,opt,name=proposal_deposit_claim,json=proposalDepositClaim,proto3,oneof" json:"proposal_deposit_claim,omitempty"` } type Action_PositionOpen struct { - PositionOpen *v1alpha15.PositionOpen `protobuf:"bytes,30,opt,name=position_open,json=positionOpen,proto3,oneof" json:"position_open,omitempty"` + PositionOpen *v15.PositionOpen `protobuf:"bytes,30,opt,name=position_open,json=positionOpen,proto3,oneof" json:"position_open,omitempty"` } type Action_PositionClose struct { - PositionClose *v1alpha15.PositionClose `protobuf:"bytes,31,opt,name=position_close,json=positionClose,proto3,oneof" json:"position_close,omitempty"` + PositionClose *v15.PositionClose `protobuf:"bytes,31,opt,name=position_close,json=positionClose,proto3,oneof" json:"position_close,omitempty"` } type Action_PositionWithdraw struct { - PositionWithdraw *v1alpha15.PositionWithdraw `protobuf:"bytes,32,opt,name=position_withdraw,json=positionWithdraw,proto3,oneof" json:"position_withdraw,omitempty"` + PositionWithdraw *v15.PositionWithdraw `protobuf:"bytes,32,opt,name=position_withdraw,json=positionWithdraw,proto3,oneof" json:"position_withdraw,omitempty"` } type Action_PositionRewardClaim struct { - PositionRewardClaim *v1alpha15.PositionRewardClaim `protobuf:"bytes,34,opt,name=position_reward_claim,json=positionRewardClaim,proto3,oneof" json:"position_reward_claim,omitempty"` + PositionRewardClaim *v15.PositionRewardClaim `protobuf:"bytes,34,opt,name=position_reward_claim,json=positionRewardClaim,proto3,oneof" json:"position_reward_claim,omitempty"` } type Action_Delegate struct { - Delegate *v1alpha16.Delegate `protobuf:"bytes,40,opt,name=delegate,proto3,oneof" json:"delegate,omitempty"` + Delegate *v16.Delegate `protobuf:"bytes,40,opt,name=delegate,proto3,oneof" json:"delegate,omitempty"` } type Action_Undelegate struct { - Undelegate *v1alpha16.Undelegate `protobuf:"bytes,41,opt,name=undelegate,proto3,oneof" json:"undelegate,omitempty"` + Undelegate *v16.Undelegate `protobuf:"bytes,41,opt,name=undelegate,proto3,oneof" json:"undelegate,omitempty"` } type Action_UndelegateClaim struct { - UndelegateClaim *v1alpha16.UndelegateClaim `protobuf:"bytes,42,opt,name=undelegate_claim,json=undelegateClaim,proto3,oneof" json:"undelegate_claim,omitempty"` + UndelegateClaim *v16.UndelegateClaim `protobuf:"bytes,42,opt,name=undelegate_claim,json=undelegateClaim,proto3,oneof" json:"undelegate_claim,omitempty"` } type Action_CommunityPoolSpend struct { - CommunityPoolSpend *v1alpha18.CommunityPoolSpend `protobuf:"bytes,50,opt,name=community_pool_spend,json=communityPoolSpend,proto3,oneof" json:"community_pool_spend,omitempty"` + CommunityPoolSpend *v18.CommunityPoolSpend `protobuf:"bytes,50,opt,name=community_pool_spend,json=communityPoolSpend,proto3,oneof" json:"community_pool_spend,omitempty"` } type Action_CommunityPoolOutput struct { - CommunityPoolOutput *v1alpha18.CommunityPoolOutput `protobuf:"bytes,51,opt,name=community_pool_output,json=communityPoolOutput,proto3,oneof" json:"community_pool_output,omitempty"` + CommunityPoolOutput *v18.CommunityPoolOutput `protobuf:"bytes,51,opt,name=community_pool_output,json=communityPoolOutput,proto3,oneof" json:"community_pool_output,omitempty"` } type Action_CommunityPoolDeposit struct { - CommunityPoolDeposit *v1alpha18.CommunityPoolDeposit `protobuf:"bytes,52,opt,name=community_pool_deposit,json=communityPoolDeposit,proto3,oneof" json:"community_pool_deposit,omitempty"` + CommunityPoolDeposit *v18.CommunityPoolDeposit `protobuf:"bytes,52,opt,name=community_pool_deposit,json=communityPoolDeposit,proto3,oneof" json:"community_pool_deposit,omitempty"` } type Action_Ics20Withdrawal struct { - Ics20Withdrawal *v1alpha17.Ics20Withdrawal `protobuf:"bytes,200,opt,name=ics20_withdrawal,json=ics20Withdrawal,proto3,oneof" json:"ics20_withdrawal,omitempty"` + Ics20Withdrawal *v17.Ics20Withdrawal `protobuf:"bytes,200,opt,name=ics20_withdrawal,json=ics20Withdrawal,proto3,oneof" json:"ics20_withdrawal,omitempty"` } func (*Action_Spend) isAction_Action() {} @@ -451,154 +452,155 @@ func (m *Action) GetAction() isAction_Action { return nil } -func (m *Action) GetSpend() *v1alpha14.Spend { +func (m *Action) GetSpend() *v14.Spend { if x, ok := m.GetAction().(*Action_Spend); ok { return x.Spend } return nil } -func (m *Action) GetOutput() *v1alpha14.Output { +func (m *Action) GetOutput() *v14.Output { if x, ok := m.GetAction().(*Action_Output); ok { return x.Output } return nil } -func (m *Action) GetSwap() *v1alpha15.Swap { +func (m *Action) GetSwap() *v15.Swap { if x, ok := m.GetAction().(*Action_Swap); ok { return x.Swap } return nil } -func (m *Action) GetSwapClaim() *v1alpha15.SwapClaim { +func (m *Action) GetSwapClaim() *v15.SwapClaim { if x, ok := m.GetAction().(*Action_SwapClaim); ok { return x.SwapClaim } return nil } -func (m *Action) GetValidatorDefinition() *v1alpha16.ValidatorDefinition { +func (m *Action) GetValidatorDefinition() *v16.ValidatorDefinition { if x, ok := m.GetAction().(*Action_ValidatorDefinition); ok { return x.ValidatorDefinition } return nil } -func (m *Action) GetIbcRelayAction() *v1alpha17.IbcRelay { +func (m *Action) GetIbcRelayAction() *v17.IbcRelay { if x, ok := m.GetAction().(*Action_IbcRelayAction); ok { return x.IbcRelayAction } return nil } -func (m *Action) GetProposalSubmit() *v1alpha18.ProposalSubmit { +func (m *Action) GetProposalSubmit() *v18.ProposalSubmit { if x, ok := m.GetAction().(*Action_ProposalSubmit); ok { return x.ProposalSubmit } return nil } -func (m *Action) GetProposalWithdraw() *v1alpha18.ProposalWithdraw { +func (m *Action) GetProposalWithdraw() *v18.ProposalWithdraw { if x, ok := m.GetAction().(*Action_ProposalWithdraw); ok { return x.ProposalWithdraw } return nil } -func (m *Action) GetValidatorVote() *v1alpha18.ValidatorVote { +func (m *Action) GetValidatorVote() *v18.ValidatorVote { if x, ok := m.GetAction().(*Action_ValidatorVote); ok { return x.ValidatorVote } return nil } -func (m *Action) GetDelegatorVote() *v1alpha18.DelegatorVote { +func (m *Action) GetDelegatorVote() *v18.DelegatorVote { if x, ok := m.GetAction().(*Action_DelegatorVote); ok { return x.DelegatorVote } return nil } -func (m *Action) GetProposalDepositClaim() *v1alpha18.ProposalDepositClaim { +func (m *Action) GetProposalDepositClaim() *v18.ProposalDepositClaim { if x, ok := m.GetAction().(*Action_ProposalDepositClaim); ok { return x.ProposalDepositClaim } return nil } -func (m *Action) GetPositionOpen() *v1alpha15.PositionOpen { +func (m *Action) GetPositionOpen() *v15.PositionOpen { if x, ok := m.GetAction().(*Action_PositionOpen); ok { return x.PositionOpen } return nil } -func (m *Action) GetPositionClose() *v1alpha15.PositionClose { +func (m *Action) GetPositionClose() *v15.PositionClose { if x, ok := m.GetAction().(*Action_PositionClose); ok { return x.PositionClose } return nil } -func (m *Action) GetPositionWithdraw() *v1alpha15.PositionWithdraw { +func (m *Action) GetPositionWithdraw() *v15.PositionWithdraw { if x, ok := m.GetAction().(*Action_PositionWithdraw); ok { return x.PositionWithdraw } return nil } -func (m *Action) GetPositionRewardClaim() *v1alpha15.PositionRewardClaim { +// Deprecated: Do not use. +func (m *Action) GetPositionRewardClaim() *v15.PositionRewardClaim { if x, ok := m.GetAction().(*Action_PositionRewardClaim); ok { return x.PositionRewardClaim } return nil } -func (m *Action) GetDelegate() *v1alpha16.Delegate { +func (m *Action) GetDelegate() *v16.Delegate { if x, ok := m.GetAction().(*Action_Delegate); ok { return x.Delegate } return nil } -func (m *Action) GetUndelegate() *v1alpha16.Undelegate { +func (m *Action) GetUndelegate() *v16.Undelegate { if x, ok := m.GetAction().(*Action_Undelegate); ok { return x.Undelegate } return nil } -func (m *Action) GetUndelegateClaim() *v1alpha16.UndelegateClaim { +func (m *Action) GetUndelegateClaim() *v16.UndelegateClaim { if x, ok := m.GetAction().(*Action_UndelegateClaim); ok { return x.UndelegateClaim } return nil } -func (m *Action) GetCommunityPoolSpend() *v1alpha18.CommunityPoolSpend { +func (m *Action) GetCommunityPoolSpend() *v18.CommunityPoolSpend { if x, ok := m.GetAction().(*Action_CommunityPoolSpend); ok { return x.CommunityPoolSpend } return nil } -func (m *Action) GetCommunityPoolOutput() *v1alpha18.CommunityPoolOutput { +func (m *Action) GetCommunityPoolOutput() *v18.CommunityPoolOutput { if x, ok := m.GetAction().(*Action_CommunityPoolOutput); ok { return x.CommunityPoolOutput } return nil } -func (m *Action) GetCommunityPoolDeposit() *v1alpha18.CommunityPoolDeposit { +func (m *Action) GetCommunityPoolDeposit() *v18.CommunityPoolDeposit { if x, ok := m.GetAction().(*Action_CommunityPoolDeposit); ok { return x.CommunityPoolDeposit } return nil } -func (m *Action) GetIcs20Withdrawal() *v1alpha17.Ics20Withdrawal { +func (m *Action) GetIcs20Withdrawal() *v17.Ics20Withdrawal { if x, ok := m.GetAction().(*Action_Ics20Withdrawal); ok { return x.Ics20Withdrawal } @@ -640,20 +642,30 @@ type TransactionPerspective struct { SpendNullifiers []*NullifierWithNote `protobuf:"bytes,2,rep,name=spend_nullifiers,json=spendNullifiers,proto3" json:"spend_nullifiers,omitempty"` // The openings of note commitments referred to in the transaction // but not included in the transaction. - AdviceNotes []*v1alpha14.Note `protobuf:"bytes,3,rep,name=advice_notes,json=adviceNotes,proto3" json:"advice_notes,omitempty"` + AdviceNotes []*v14.Note `protobuf:"bytes,3,rep,name=advice_notes,json=adviceNotes,proto3" json:"advice_notes,omitempty"` // Any relevant address views. - AddressViews []*v1alpha19.AddressView `protobuf:"bytes,4,rep,name=address_views,json=addressViews,proto3" json:"address_views,omitempty"` + AddressViews []*v19.AddressView `protobuf:"bytes,4,rep,name=address_views,json=addressViews,proto3" json:"address_views,omitempty"` // Any relevant denoms for viewed assets. - Denoms []*v1alpha110.DenomMetadata `protobuf:"bytes,5,rep,name=denoms,proto3" json:"denoms,omitempty"` + Denoms []*v110.Metadata `protobuf:"bytes,5,rep,name=denoms,proto3" json:"denoms,omitempty"` // The transaction ID associated with this TransactionPerspective - TransactionId *v1alpha111.TransactionId `protobuf:"bytes,6,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"` + TransactionId *v111.TransactionId `protobuf:"bytes,6,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"` + // Any relevant estimated prices + Prices []*v110.EstimatedPrice `protobuf:"bytes,20,rep,name=prices,proto3" json:"prices,omitempty"` + // Any relevant extended metadata, indexed by asset id. + ExtendedMetadata []*TransactionPerspective_ExtendedMetadataById `protobuf:"bytes,30,rep,name=extended_metadata,json=extendedMetadata,proto3" json:"extended_metadata,omitempty"` + CreationTransactionIdsByNullifier []*TransactionPerspective_CreationTransactionIdByNullifier `protobuf:"bytes,40,rep,name=creation_transaction_ids_by_nullifier,json=creationTransactionIdsByNullifier,proto3" json:"creation_transaction_ids_by_nullifier,omitempty"` + NullificationTransactionIdsByCommitment []*TransactionPerspective_NullificationTransactionIdByCommitment `protobuf:"bytes,50,rep,name=nullification_transaction_ids_by_commitment,json=nullificationTransactionIdsByCommitment,proto3" json:"nullification_transaction_ids_by_commitment,omitempty"` + // Any relevant BatchSwapOutputData to the transaction. + // + // This can be used to fill in information about swap outputs. + BatchSwapOutputData []*v15.BatchSwapOutputData `protobuf:"bytes,60,rep,name=batch_swap_output_data,json=batchSwapOutputData,proto3" json:"batch_swap_output_data,omitempty"` } func (m *TransactionPerspective) Reset() { *m = TransactionPerspective{} } func (m *TransactionPerspective) String() string { return proto.CompactTextString(m) } func (*TransactionPerspective) ProtoMessage() {} func (*TransactionPerspective) Descriptor() ([]byte, []int) { - return fileDescriptor_cd20ea79758052c4, []int{5} + return fileDescriptor_8b6c2b29a42813c9, []int{5} } func (m *TransactionPerspective) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -696,28 +708,239 @@ func (m *TransactionPerspective) GetSpendNullifiers() []*NullifierWithNote { return nil } -func (m *TransactionPerspective) GetAdviceNotes() []*v1alpha14.Note { +func (m *TransactionPerspective) GetAdviceNotes() []*v14.Note { if m != nil { return m.AdviceNotes } return nil } -func (m *TransactionPerspective) GetAddressViews() []*v1alpha19.AddressView { +func (m *TransactionPerspective) GetAddressViews() []*v19.AddressView { if m != nil { return m.AddressViews } return nil } -func (m *TransactionPerspective) GetDenoms() []*v1alpha110.DenomMetadata { +func (m *TransactionPerspective) GetDenoms() []*v110.Metadata { if m != nil { return m.Denoms } return nil } -func (m *TransactionPerspective) GetTransactionId() *v1alpha111.TransactionId { +func (m *TransactionPerspective) GetTransactionId() *v111.TransactionId { + if m != nil { + return m.TransactionId + } + return nil +} + +func (m *TransactionPerspective) GetPrices() []*v110.EstimatedPrice { + if m != nil { + return m.Prices + } + return nil +} + +func (m *TransactionPerspective) GetExtendedMetadata() []*TransactionPerspective_ExtendedMetadataById { + if m != nil { + return m.ExtendedMetadata + } + return nil +} + +func (m *TransactionPerspective) GetCreationTransactionIdsByNullifier() []*TransactionPerspective_CreationTransactionIdByNullifier { + if m != nil { + return m.CreationTransactionIdsByNullifier + } + return nil +} + +func (m *TransactionPerspective) GetNullificationTransactionIdsByCommitment() []*TransactionPerspective_NullificationTransactionIdByCommitment { + if m != nil { + return m.NullificationTransactionIdsByCommitment + } + return nil +} + +func (m *TransactionPerspective) GetBatchSwapOutputData() []*v15.BatchSwapOutputData { + if m != nil { + return m.BatchSwapOutputData + } + return nil +} + +type TransactionPerspective_ExtendedMetadataById struct { + AssetId *v110.AssetId `protobuf:"bytes,1,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"` + ExtendedMetadata *types.Any `protobuf:"bytes,2,opt,name=extended_metadata,json=extendedMetadata,proto3" json:"extended_metadata,omitempty"` +} + +func (m *TransactionPerspective_ExtendedMetadataById) Reset() { + *m = TransactionPerspective_ExtendedMetadataById{} +} +func (m *TransactionPerspective_ExtendedMetadataById) String() string { + return proto.CompactTextString(m) +} +func (*TransactionPerspective_ExtendedMetadataById) ProtoMessage() {} +func (*TransactionPerspective_ExtendedMetadataById) Descriptor() ([]byte, []int) { + return fileDescriptor_8b6c2b29a42813c9, []int{5, 0} +} +func (m *TransactionPerspective_ExtendedMetadataById) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TransactionPerspective_ExtendedMetadataById) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TransactionPerspective_ExtendedMetadataById.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 *TransactionPerspective_ExtendedMetadataById) XXX_Merge(src proto.Message) { + xxx_messageInfo_TransactionPerspective_ExtendedMetadataById.Merge(m, src) +} +func (m *TransactionPerspective_ExtendedMetadataById) XXX_Size() int { + return m.Size() +} +func (m *TransactionPerspective_ExtendedMetadataById) XXX_DiscardUnknown() { + xxx_messageInfo_TransactionPerspective_ExtendedMetadataById.DiscardUnknown(m) +} + +var xxx_messageInfo_TransactionPerspective_ExtendedMetadataById proto.InternalMessageInfo + +func (m *TransactionPerspective_ExtendedMetadataById) GetAssetId() *v110.AssetId { + if m != nil { + return m.AssetId + } + return nil +} + +func (m *TransactionPerspective_ExtendedMetadataById) GetExtendedMetadata() *types.Any { + if m != nil { + return m.ExtendedMetadata + } + return nil +} + +// Associates a nullifier with the transaction ID that created the nullified state commitment. +// +// Note: this is _not_ the transaction ID that revealed the nullifier. +// +// Allows walking backwards from a spend to the transaction that created the note. +type TransactionPerspective_CreationTransactionIdByNullifier struct { + Nullifier *v112.Nullifier `protobuf:"bytes,1,opt,name=nullifier,proto3" json:"nullifier,omitempty"` + TransactionId *v111.TransactionId `protobuf:"bytes,2,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"` +} + +func (m *TransactionPerspective_CreationTransactionIdByNullifier) Reset() { + *m = TransactionPerspective_CreationTransactionIdByNullifier{} +} +func (m *TransactionPerspective_CreationTransactionIdByNullifier) String() string { + return proto.CompactTextString(m) +} +func (*TransactionPerspective_CreationTransactionIdByNullifier) ProtoMessage() {} +func (*TransactionPerspective_CreationTransactionIdByNullifier) Descriptor() ([]byte, []int) { + return fileDescriptor_8b6c2b29a42813c9, []int{5, 1} +} +func (m *TransactionPerspective_CreationTransactionIdByNullifier) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TransactionPerspective_CreationTransactionIdByNullifier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TransactionPerspective_CreationTransactionIdByNullifier.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 *TransactionPerspective_CreationTransactionIdByNullifier) XXX_Merge(src proto.Message) { + xxx_messageInfo_TransactionPerspective_CreationTransactionIdByNullifier.Merge(m, src) +} +func (m *TransactionPerspective_CreationTransactionIdByNullifier) XXX_Size() int { + return m.Size() +} +func (m *TransactionPerspective_CreationTransactionIdByNullifier) XXX_DiscardUnknown() { + xxx_messageInfo_TransactionPerspective_CreationTransactionIdByNullifier.DiscardUnknown(m) +} + +var xxx_messageInfo_TransactionPerspective_CreationTransactionIdByNullifier proto.InternalMessageInfo + +func (m *TransactionPerspective_CreationTransactionIdByNullifier) GetNullifier() *v112.Nullifier { + if m != nil { + return m.Nullifier + } + return nil +} + +func (m *TransactionPerspective_CreationTransactionIdByNullifier) GetTransactionId() *v111.TransactionId { + if m != nil { + return m.TransactionId + } + return nil +} + +// Associates a commitment with the transaction ID that eventually nullified it. +// +// Allows walking forwards from an output to the transaction that spent the note. +type TransactionPerspective_NullificationTransactionIdByCommitment struct { + Commitment *v11.StateCommitment `protobuf:"bytes,1,opt,name=commitment,proto3" json:"commitment,omitempty"` + TransactionId *v111.TransactionId `protobuf:"bytes,2,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"` +} + +func (m *TransactionPerspective_NullificationTransactionIdByCommitment) Reset() { + *m = TransactionPerspective_NullificationTransactionIdByCommitment{} +} +func (m *TransactionPerspective_NullificationTransactionIdByCommitment) String() string { + return proto.CompactTextString(m) +} +func (*TransactionPerspective_NullificationTransactionIdByCommitment) ProtoMessage() {} +func (*TransactionPerspective_NullificationTransactionIdByCommitment) Descriptor() ([]byte, []int) { + return fileDescriptor_8b6c2b29a42813c9, []int{5, 2} +} +func (m *TransactionPerspective_NullificationTransactionIdByCommitment) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TransactionPerspective_NullificationTransactionIdByCommitment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TransactionPerspective_NullificationTransactionIdByCommitment.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 *TransactionPerspective_NullificationTransactionIdByCommitment) XXX_Merge(src proto.Message) { + xxx_messageInfo_TransactionPerspective_NullificationTransactionIdByCommitment.Merge(m, src) +} +func (m *TransactionPerspective_NullificationTransactionIdByCommitment) XXX_Size() int { + return m.Size() +} +func (m *TransactionPerspective_NullificationTransactionIdByCommitment) XXX_DiscardUnknown() { + xxx_messageInfo_TransactionPerspective_NullificationTransactionIdByCommitment.DiscardUnknown(m) +} + +var xxx_messageInfo_TransactionPerspective_NullificationTransactionIdByCommitment proto.InternalMessageInfo + +func (m *TransactionPerspective_NullificationTransactionIdByCommitment) GetCommitment() *v11.StateCommitment { + if m != nil { + return m.Commitment + } + return nil +} + +func (m *TransactionPerspective_NullificationTransactionIdByCommitment) GetTransactionId() *v111.TransactionId { if m != nil { return m.TransactionId } @@ -725,15 +948,15 @@ func (m *TransactionPerspective) GetTransactionId() *v1alpha111.TransactionId { } type PayloadKeyWithCommitment struct { - PayloadKey *v1alpha19.PayloadKey `protobuf:"bytes,1,opt,name=payload_key,json=payloadKey,proto3" json:"payload_key,omitempty"` - Commitment *v1alpha11.StateCommitment `protobuf:"bytes,2,opt,name=commitment,proto3" json:"commitment,omitempty"` + PayloadKey *v19.PayloadKey `protobuf:"bytes,1,opt,name=payload_key,json=payloadKey,proto3" json:"payload_key,omitempty"` + Commitment *v11.StateCommitment `protobuf:"bytes,2,opt,name=commitment,proto3" json:"commitment,omitempty"` } func (m *PayloadKeyWithCommitment) Reset() { *m = PayloadKeyWithCommitment{} } func (m *PayloadKeyWithCommitment) String() string { return proto.CompactTextString(m) } func (*PayloadKeyWithCommitment) ProtoMessage() {} func (*PayloadKeyWithCommitment) Descriptor() ([]byte, []int) { - return fileDescriptor_cd20ea79758052c4, []int{6} + return fileDescriptor_8b6c2b29a42813c9, []int{6} } func (m *PayloadKeyWithCommitment) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -762,14 +985,14 @@ func (m *PayloadKeyWithCommitment) XXX_DiscardUnknown() { var xxx_messageInfo_PayloadKeyWithCommitment proto.InternalMessageInfo -func (m *PayloadKeyWithCommitment) GetPayloadKey() *v1alpha19.PayloadKey { +func (m *PayloadKeyWithCommitment) GetPayloadKey() *v19.PayloadKey { if m != nil { return m.PayloadKey } return nil } -func (m *PayloadKeyWithCommitment) GetCommitment() *v1alpha11.StateCommitment { +func (m *PayloadKeyWithCommitment) GetCommitment() *v11.StateCommitment { if m != nil { return m.Commitment } @@ -777,15 +1000,15 @@ func (m *PayloadKeyWithCommitment) GetCommitment() *v1alpha11.StateCommitment { } type NullifierWithNote struct { - Nullifier *v1alpha112.Nullifier `protobuf:"bytes,1,opt,name=nullifier,proto3" json:"nullifier,omitempty"` - Note *v1alpha14.Note `protobuf:"bytes,2,opt,name=note,proto3" json:"note,omitempty"` + Nullifier *v112.Nullifier `protobuf:"bytes,1,opt,name=nullifier,proto3" json:"nullifier,omitempty"` + Note *v14.Note `protobuf:"bytes,2,opt,name=note,proto3" json:"note,omitempty"` } func (m *NullifierWithNote) Reset() { *m = NullifierWithNote{} } func (m *NullifierWithNote) String() string { return proto.CompactTextString(m) } func (*NullifierWithNote) ProtoMessage() {} func (*NullifierWithNote) Descriptor() ([]byte, []int) { - return fileDescriptor_cd20ea79758052c4, []int{7} + return fileDescriptor_8b6c2b29a42813c9, []int{7} } func (m *NullifierWithNote) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -814,14 +1037,14 @@ func (m *NullifierWithNote) XXX_DiscardUnknown() { var xxx_messageInfo_NullifierWithNote proto.InternalMessageInfo -func (m *NullifierWithNote) GetNullifier() *v1alpha112.Nullifier { +func (m *NullifierWithNote) GetNullifier() *v112.Nullifier { if m != nil { return m.Nullifier } return nil } -func (m *NullifierWithNote) GetNote() *v1alpha14.Note { +func (m *NullifierWithNote) GetNote() *v14.Note { if m != nil { return m.Note } @@ -833,17 +1056,17 @@ type TransactionView struct { // View of the transaction body BodyView *TransactionBodyView `protobuf:"bytes,1,opt,name=body_view,json=bodyView,proto3" json:"body_view,omitempty"` // The binding signature is stored separately from the transaction body that it signs. - BindingSig *v1alpha1.BindingSignature `protobuf:"bytes,2,opt,name=binding_sig,json=bindingSig,proto3" json:"binding_sig,omitempty"` + BindingSig *v1.BindingSignature `protobuf:"bytes,2,opt,name=binding_sig,json=bindingSig,proto3" json:"binding_sig,omitempty"` // The root of some previous state of the state commitment tree, used as an anchor for all // ZK state transition proofs. - Anchor *v1alpha11.MerkleRoot `protobuf:"bytes,3,opt,name=anchor,proto3" json:"anchor,omitempty"` + Anchor *v11.MerkleRoot `protobuf:"bytes,3,opt,name=anchor,proto3" json:"anchor,omitempty"` } func (m *TransactionView) Reset() { *m = TransactionView{} } func (m *TransactionView) String() string { return proto.CompactTextString(m) } func (*TransactionView) ProtoMessage() {} func (*TransactionView) Descriptor() ([]byte, []int) { - return fileDescriptor_cd20ea79758052c4, []int{8} + return fileDescriptor_8b6c2b29a42813c9, []int{8} } func (m *TransactionView) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -879,14 +1102,14 @@ func (m *TransactionView) GetBodyView() *TransactionBodyView { return nil } -func (m *TransactionView) GetBindingSig() *v1alpha1.BindingSignature { +func (m *TransactionView) GetBindingSig() *v1.BindingSignature { if m != nil { return m.BindingSig } return nil } -func (m *TransactionView) GetAnchor() *v1alpha11.MerkleRoot { +func (m *TransactionView) GetAnchor() *v11.MerkleRoot { if m != nil { return m.Anchor } @@ -910,7 +1133,7 @@ func (m *TransactionBodyView) Reset() { *m = TransactionBodyView{} } func (m *TransactionBodyView) String() string { return proto.CompactTextString(m) } func (*TransactionBodyView) ProtoMessage() {} func (*TransactionBodyView) Descriptor() ([]byte, []int) { - return fileDescriptor_cd20ea79758052c4, []int{9} + return fileDescriptor_8b6c2b29a42813c9, []int{9} } func (m *TransactionBodyView) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -999,7 +1222,7 @@ func (m *ActionView) Reset() { *m = ActionView{} } func (m *ActionView) String() string { return proto.CompactTextString(m) } func (*ActionView) ProtoMessage() {} func (*ActionView) Descriptor() ([]byte, []int) { - return fileDescriptor_cd20ea79758052c4, []int{10} + return fileDescriptor_8b6c2b29a42813c9, []int{10} } func (m *ActionView) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1035,70 +1258,70 @@ type isActionView_ActionView interface { } type ActionView_Spend struct { - Spend *v1alpha14.SpendView `protobuf:"bytes,1,opt,name=spend,proto3,oneof" json:"spend,omitempty"` + Spend *v14.SpendView `protobuf:"bytes,1,opt,name=spend,proto3,oneof" json:"spend,omitempty"` } type ActionView_Output struct { - Output *v1alpha14.OutputView `protobuf:"bytes,2,opt,name=output,proto3,oneof" json:"output,omitempty"` + Output *v14.OutputView `protobuf:"bytes,2,opt,name=output,proto3,oneof" json:"output,omitempty"` } type ActionView_Swap struct { - Swap *v1alpha15.SwapView `protobuf:"bytes,3,opt,name=swap,proto3,oneof" json:"swap,omitempty"` + Swap *v15.SwapView `protobuf:"bytes,3,opt,name=swap,proto3,oneof" json:"swap,omitempty"` } type ActionView_SwapClaim struct { - SwapClaim *v1alpha15.SwapClaimView `protobuf:"bytes,4,opt,name=swap_claim,json=swapClaim,proto3,oneof" json:"swap_claim,omitempty"` + SwapClaim *v15.SwapClaimView `protobuf:"bytes,4,opt,name=swap_claim,json=swapClaim,proto3,oneof" json:"swap_claim,omitempty"` } type ActionView_ValidatorDefinition struct { - ValidatorDefinition *v1alpha16.ValidatorDefinition `protobuf:"bytes,16,opt,name=validator_definition,json=validatorDefinition,proto3,oneof" json:"validator_definition,omitempty"` + ValidatorDefinition *v16.ValidatorDefinition `protobuf:"bytes,16,opt,name=validator_definition,json=validatorDefinition,proto3,oneof" json:"validator_definition,omitempty"` } type ActionView_IbcRelayAction struct { - IbcRelayAction *v1alpha17.IbcRelay `protobuf:"bytes,17,opt,name=ibc_relay_action,json=ibcRelayAction,proto3,oneof" json:"ibc_relay_action,omitempty"` + IbcRelayAction *v17.IbcRelay `protobuf:"bytes,17,opt,name=ibc_relay_action,json=ibcRelayAction,proto3,oneof" json:"ibc_relay_action,omitempty"` } type ActionView_ProposalSubmit struct { - ProposalSubmit *v1alpha18.ProposalSubmit `protobuf:"bytes,18,opt,name=proposal_submit,json=proposalSubmit,proto3,oneof" json:"proposal_submit,omitempty"` + ProposalSubmit *v18.ProposalSubmit `protobuf:"bytes,18,opt,name=proposal_submit,json=proposalSubmit,proto3,oneof" json:"proposal_submit,omitempty"` } type ActionView_ProposalWithdraw struct { - ProposalWithdraw *v1alpha18.ProposalWithdraw `protobuf:"bytes,19,opt,name=proposal_withdraw,json=proposalWithdraw,proto3,oneof" json:"proposal_withdraw,omitempty"` + ProposalWithdraw *v18.ProposalWithdraw `protobuf:"bytes,19,opt,name=proposal_withdraw,json=proposalWithdraw,proto3,oneof" json:"proposal_withdraw,omitempty"` } type ActionView_ValidatorVote struct { - ValidatorVote *v1alpha18.ValidatorVote `protobuf:"bytes,20,opt,name=validator_vote,json=validatorVote,proto3,oneof" json:"validator_vote,omitempty"` + ValidatorVote *v18.ValidatorVote `protobuf:"bytes,20,opt,name=validator_vote,json=validatorVote,proto3,oneof" json:"validator_vote,omitempty"` } type ActionView_DelegatorVote struct { - DelegatorVote *v1alpha18.DelegatorVoteView `protobuf:"bytes,21,opt,name=delegator_vote,json=delegatorVote,proto3,oneof" json:"delegator_vote,omitempty"` + DelegatorVote *v18.DelegatorVoteView `protobuf:"bytes,21,opt,name=delegator_vote,json=delegatorVote,proto3,oneof" json:"delegator_vote,omitempty"` } type ActionView_ProposalDepositClaim struct { - ProposalDepositClaim *v1alpha18.ProposalDepositClaim `protobuf:"bytes,22,opt,name=proposal_deposit_claim,json=proposalDepositClaim,proto3,oneof" json:"proposal_deposit_claim,omitempty"` + ProposalDepositClaim *v18.ProposalDepositClaim `protobuf:"bytes,22,opt,name=proposal_deposit_claim,json=proposalDepositClaim,proto3,oneof" json:"proposal_deposit_claim,omitempty"` } type ActionView_PositionOpen struct { - PositionOpen *v1alpha15.PositionOpen `protobuf:"bytes,30,opt,name=position_open,json=positionOpen,proto3,oneof" json:"position_open,omitempty"` + PositionOpen *v15.PositionOpen `protobuf:"bytes,30,opt,name=position_open,json=positionOpen,proto3,oneof" json:"position_open,omitempty"` } type ActionView_PositionClose struct { - PositionClose *v1alpha15.PositionClose `protobuf:"bytes,31,opt,name=position_close,json=positionClose,proto3,oneof" json:"position_close,omitempty"` + PositionClose *v15.PositionClose `protobuf:"bytes,31,opt,name=position_close,json=positionClose,proto3,oneof" json:"position_close,omitempty"` } type ActionView_PositionWithdraw struct { - PositionWithdraw *v1alpha15.PositionWithdraw `protobuf:"bytes,32,opt,name=position_withdraw,json=positionWithdraw,proto3,oneof" json:"position_withdraw,omitempty"` + PositionWithdraw *v15.PositionWithdraw `protobuf:"bytes,32,opt,name=position_withdraw,json=positionWithdraw,proto3,oneof" json:"position_withdraw,omitempty"` } type ActionView_PositionRewardClaim struct { - PositionRewardClaim *v1alpha15.PositionRewardClaim `protobuf:"bytes,34,opt,name=position_reward_claim,json=positionRewardClaim,proto3,oneof" json:"position_reward_claim,omitempty"` + PositionRewardClaim *v15.PositionRewardClaim `protobuf:"bytes,34,opt,name=position_reward_claim,json=positionRewardClaim,proto3,oneof" json:"position_reward_claim,omitempty"` } type ActionView_Delegate struct { - Delegate *v1alpha16.Delegate `protobuf:"bytes,41,opt,name=delegate,proto3,oneof" json:"delegate,omitempty"` + Delegate *v16.Delegate `protobuf:"bytes,41,opt,name=delegate,proto3,oneof" json:"delegate,omitempty"` } type ActionView_Undelegate struct { - Undelegate *v1alpha16.Undelegate `protobuf:"bytes,42,opt,name=undelegate,proto3,oneof" json:"undelegate,omitempty"` + Undelegate *v16.Undelegate `protobuf:"bytes,42,opt,name=undelegate,proto3,oneof" json:"undelegate,omitempty"` } type ActionView_CommunityPoolSpend struct { - CommunityPoolSpend *v1alpha18.CommunityPoolSpend `protobuf:"bytes,50,opt,name=community_pool_spend,json=communityPoolSpend,proto3,oneof" json:"community_pool_spend,omitempty"` + CommunityPoolSpend *v18.CommunityPoolSpend `protobuf:"bytes,50,opt,name=community_pool_spend,json=communityPoolSpend,proto3,oneof" json:"community_pool_spend,omitempty"` } type ActionView_CommunityPoolOutput struct { - CommunityPoolOutput *v1alpha18.CommunityPoolOutput `protobuf:"bytes,51,opt,name=community_pool_output,json=communityPoolOutput,proto3,oneof" json:"community_pool_output,omitempty"` + CommunityPoolOutput *v18.CommunityPoolOutput `protobuf:"bytes,51,opt,name=community_pool_output,json=communityPoolOutput,proto3,oneof" json:"community_pool_output,omitempty"` } type ActionView_CommunityPoolDeposit struct { - CommunityPoolDeposit *v1alpha18.CommunityPoolDeposit `protobuf:"bytes,52,opt,name=community_pool_deposit,json=communityPoolDeposit,proto3,oneof" json:"community_pool_deposit,omitempty"` + CommunityPoolDeposit *v18.CommunityPoolDeposit `protobuf:"bytes,52,opt,name=community_pool_deposit,json=communityPoolDeposit,proto3,oneof" json:"community_pool_deposit,omitempty"` } type ActionView_UndelegateClaim struct { - UndelegateClaim *v1alpha16.UndelegateClaim `protobuf:"bytes,43,opt,name=undelegate_claim,json=undelegateClaim,proto3,oneof" json:"undelegate_claim,omitempty"` + UndelegateClaim *v16.UndelegateClaim `protobuf:"bytes,43,opt,name=undelegate_claim,json=undelegateClaim,proto3,oneof" json:"undelegate_claim,omitempty"` } type ActionView_Ics20Withdrawal struct { - Ics20Withdrawal *v1alpha17.Ics20Withdrawal `protobuf:"bytes,200,opt,name=ics20_withdrawal,json=ics20Withdrawal,proto3,oneof" json:"ics20_withdrawal,omitempty"` + Ics20Withdrawal *v17.Ics20Withdrawal `protobuf:"bytes,200,opt,name=ics20_withdrawal,json=ics20Withdrawal,proto3,oneof" json:"ics20_withdrawal,omitempty"` } func (*ActionView_Spend) isActionView_ActionView() {} @@ -1131,154 +1354,155 @@ func (m *ActionView) GetActionView() isActionView_ActionView { return nil } -func (m *ActionView) GetSpend() *v1alpha14.SpendView { +func (m *ActionView) GetSpend() *v14.SpendView { if x, ok := m.GetActionView().(*ActionView_Spend); ok { return x.Spend } return nil } -func (m *ActionView) GetOutput() *v1alpha14.OutputView { +func (m *ActionView) GetOutput() *v14.OutputView { if x, ok := m.GetActionView().(*ActionView_Output); ok { return x.Output } return nil } -func (m *ActionView) GetSwap() *v1alpha15.SwapView { +func (m *ActionView) GetSwap() *v15.SwapView { if x, ok := m.GetActionView().(*ActionView_Swap); ok { return x.Swap } return nil } -func (m *ActionView) GetSwapClaim() *v1alpha15.SwapClaimView { +func (m *ActionView) GetSwapClaim() *v15.SwapClaimView { if x, ok := m.GetActionView().(*ActionView_SwapClaim); ok { return x.SwapClaim } return nil } -func (m *ActionView) GetValidatorDefinition() *v1alpha16.ValidatorDefinition { +func (m *ActionView) GetValidatorDefinition() *v16.ValidatorDefinition { if x, ok := m.GetActionView().(*ActionView_ValidatorDefinition); ok { return x.ValidatorDefinition } return nil } -func (m *ActionView) GetIbcRelayAction() *v1alpha17.IbcRelay { +func (m *ActionView) GetIbcRelayAction() *v17.IbcRelay { if x, ok := m.GetActionView().(*ActionView_IbcRelayAction); ok { return x.IbcRelayAction } return nil } -func (m *ActionView) GetProposalSubmit() *v1alpha18.ProposalSubmit { +func (m *ActionView) GetProposalSubmit() *v18.ProposalSubmit { if x, ok := m.GetActionView().(*ActionView_ProposalSubmit); ok { return x.ProposalSubmit } return nil } -func (m *ActionView) GetProposalWithdraw() *v1alpha18.ProposalWithdraw { +func (m *ActionView) GetProposalWithdraw() *v18.ProposalWithdraw { if x, ok := m.GetActionView().(*ActionView_ProposalWithdraw); ok { return x.ProposalWithdraw } return nil } -func (m *ActionView) GetValidatorVote() *v1alpha18.ValidatorVote { +func (m *ActionView) GetValidatorVote() *v18.ValidatorVote { if x, ok := m.GetActionView().(*ActionView_ValidatorVote); ok { return x.ValidatorVote } return nil } -func (m *ActionView) GetDelegatorVote() *v1alpha18.DelegatorVoteView { +func (m *ActionView) GetDelegatorVote() *v18.DelegatorVoteView { if x, ok := m.GetActionView().(*ActionView_DelegatorVote); ok { return x.DelegatorVote } return nil } -func (m *ActionView) GetProposalDepositClaim() *v1alpha18.ProposalDepositClaim { +func (m *ActionView) GetProposalDepositClaim() *v18.ProposalDepositClaim { if x, ok := m.GetActionView().(*ActionView_ProposalDepositClaim); ok { return x.ProposalDepositClaim } return nil } -func (m *ActionView) GetPositionOpen() *v1alpha15.PositionOpen { +func (m *ActionView) GetPositionOpen() *v15.PositionOpen { if x, ok := m.GetActionView().(*ActionView_PositionOpen); ok { return x.PositionOpen } return nil } -func (m *ActionView) GetPositionClose() *v1alpha15.PositionClose { +func (m *ActionView) GetPositionClose() *v15.PositionClose { if x, ok := m.GetActionView().(*ActionView_PositionClose); ok { return x.PositionClose } return nil } -func (m *ActionView) GetPositionWithdraw() *v1alpha15.PositionWithdraw { +func (m *ActionView) GetPositionWithdraw() *v15.PositionWithdraw { if x, ok := m.GetActionView().(*ActionView_PositionWithdraw); ok { return x.PositionWithdraw } return nil } -func (m *ActionView) GetPositionRewardClaim() *v1alpha15.PositionRewardClaim { +// Deprecated: Do not use. +func (m *ActionView) GetPositionRewardClaim() *v15.PositionRewardClaim { if x, ok := m.GetActionView().(*ActionView_PositionRewardClaim); ok { return x.PositionRewardClaim } return nil } -func (m *ActionView) GetDelegate() *v1alpha16.Delegate { +func (m *ActionView) GetDelegate() *v16.Delegate { if x, ok := m.GetActionView().(*ActionView_Delegate); ok { return x.Delegate } return nil } -func (m *ActionView) GetUndelegate() *v1alpha16.Undelegate { +func (m *ActionView) GetUndelegate() *v16.Undelegate { if x, ok := m.GetActionView().(*ActionView_Undelegate); ok { return x.Undelegate } return nil } -func (m *ActionView) GetCommunityPoolSpend() *v1alpha18.CommunityPoolSpend { +func (m *ActionView) GetCommunityPoolSpend() *v18.CommunityPoolSpend { if x, ok := m.GetActionView().(*ActionView_CommunityPoolSpend); ok { return x.CommunityPoolSpend } return nil } -func (m *ActionView) GetCommunityPoolOutput() *v1alpha18.CommunityPoolOutput { +func (m *ActionView) GetCommunityPoolOutput() *v18.CommunityPoolOutput { if x, ok := m.GetActionView().(*ActionView_CommunityPoolOutput); ok { return x.CommunityPoolOutput } return nil } -func (m *ActionView) GetCommunityPoolDeposit() *v1alpha18.CommunityPoolDeposit { +func (m *ActionView) GetCommunityPoolDeposit() *v18.CommunityPoolDeposit { if x, ok := m.GetActionView().(*ActionView_CommunityPoolDeposit); ok { return x.CommunityPoolDeposit } return nil } -func (m *ActionView) GetUndelegateClaim() *v1alpha16.UndelegateClaim { +func (m *ActionView) GetUndelegateClaim() *v16.UndelegateClaim { if x, ok := m.GetActionView().(*ActionView_UndelegateClaim); ok { return x.UndelegateClaim } return nil } -func (m *ActionView) GetIcs20Withdrawal() *v1alpha17.Ics20Withdrawal { +func (m *ActionView) GetIcs20Withdrawal() *v17.Ics20Withdrawal { if x, ok := m.GetActionView().(*ActionView_Ics20Withdrawal); ok { return x.Ics20Withdrawal } @@ -1316,20 +1540,20 @@ func (*ActionView) XXX_OneofWrappers() []interface{} { // The data required to authorize a transaction plan. type AuthorizationData struct { // The computed auth hash for the approved transaction plan. - EffectHash *v1alpha111.EffectHash `protobuf:"bytes,1,opt,name=effect_hash,json=effectHash,proto3" json:"effect_hash,omitempty"` + EffectHash *v111.EffectHash `protobuf:"bytes,1,opt,name=effect_hash,json=effectHash,proto3" json:"effect_hash,omitempty"` // The required spend authorizations, returned in the same order as the // Spend actions in the original request. - SpendAuths []*v1alpha1.SpendAuthSignature `protobuf:"bytes,2,rep,name=spend_auths,json=spendAuths,proto3" json:"spend_auths,omitempty"` + SpendAuths []*v1.SpendAuthSignature `protobuf:"bytes,2,rep,name=spend_auths,json=spendAuths,proto3" json:"spend_auths,omitempty"` // The required delegator vote authorizations, returned in the same order as the // DelegatorVote actions in the original request. - DelegatorVoteAuths []*v1alpha1.SpendAuthSignature `protobuf:"bytes,3,rep,name=delegator_vote_auths,json=delegatorVoteAuths,proto3" json:"delegator_vote_auths,omitempty"` + DelegatorVoteAuths []*v1.SpendAuthSignature `protobuf:"bytes,3,rep,name=delegator_vote_auths,json=delegatorVoteAuths,proto3" json:"delegator_vote_auths,omitempty"` } func (m *AuthorizationData) Reset() { *m = AuthorizationData{} } func (m *AuthorizationData) String() string { return proto.CompactTextString(m) } func (*AuthorizationData) ProtoMessage() {} func (*AuthorizationData) Descriptor() ([]byte, []int) { - return fileDescriptor_cd20ea79758052c4, []int{11} + return fileDescriptor_8b6c2b29a42813c9, []int{11} } func (m *AuthorizationData) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1358,21 +1582,21 @@ func (m *AuthorizationData) XXX_DiscardUnknown() { var xxx_messageInfo_AuthorizationData proto.InternalMessageInfo -func (m *AuthorizationData) GetEffectHash() *v1alpha111.EffectHash { +func (m *AuthorizationData) GetEffectHash() *v111.EffectHash { if m != nil { return m.EffectHash } return nil } -func (m *AuthorizationData) GetSpendAuths() []*v1alpha1.SpendAuthSignature { +func (m *AuthorizationData) GetSpendAuths() []*v1.SpendAuthSignature { if m != nil { return m.SpendAuths } return nil } -func (m *AuthorizationData) GetDelegatorVoteAuths() []*v1alpha1.SpendAuthSignature { +func (m *AuthorizationData) GetDelegatorVoteAuths() []*v1.SpendAuthSignature { if m != nil { return m.DelegatorVoteAuths } @@ -1382,17 +1606,17 @@ func (m *AuthorizationData) GetDelegatorVoteAuths() []*v1alpha1.SpendAuthSignatu // The data required for proving when building a transaction from a plan. type WitnessData struct { // The anchor for the state transition proofs. - Anchor *v1alpha11.MerkleRoot `protobuf:"bytes,1,opt,name=anchor,proto3" json:"anchor,omitempty"` + Anchor *v11.MerkleRoot `protobuf:"bytes,1,opt,name=anchor,proto3" json:"anchor,omitempty"` // The auth paths for the notes the transaction spends, in the // same order as the spends in the transaction plan. - StateCommitmentProofs []*v1alpha11.StateCommitmentProof `protobuf:"bytes,2,rep,name=state_commitment_proofs,json=stateCommitmentProofs,proto3" json:"state_commitment_proofs,omitempty"` + StateCommitmentProofs []*v11.StateCommitmentProof `protobuf:"bytes,2,rep,name=state_commitment_proofs,json=stateCommitmentProofs,proto3" json:"state_commitment_proofs,omitempty"` } func (m *WitnessData) Reset() { *m = WitnessData{} } func (m *WitnessData) String() string { return proto.CompactTextString(m) } func (*WitnessData) ProtoMessage() {} func (*WitnessData) Descriptor() ([]byte, []int) { - return fileDescriptor_cd20ea79758052c4, []int{12} + return fileDescriptor_8b6c2b29a42813c9, []int{12} } func (m *WitnessData) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1421,14 +1645,14 @@ func (m *WitnessData) XXX_DiscardUnknown() { var xxx_messageInfo_WitnessData proto.InternalMessageInfo -func (m *WitnessData) GetAnchor() *v1alpha11.MerkleRoot { +func (m *WitnessData) GetAnchor() *v11.MerkleRoot { if m != nil { return m.Anchor } return nil } -func (m *WitnessData) GetStateCommitmentProofs() []*v1alpha11.StateCommitmentProof { +func (m *WitnessData) GetStateCommitmentProofs() []*v11.StateCommitmentProof { if m != nil { return m.StateCommitmentProofs } @@ -1455,7 +1679,7 @@ func (m *TransactionPlan) Reset() { *m = TransactionPlan{} } func (m *TransactionPlan) String() string { return proto.CompactTextString(m) } func (*TransactionPlan) ProtoMessage() {} func (*TransactionPlan) Descriptor() ([]byte, []int) { - return fileDescriptor_cd20ea79758052c4, []int{13} + return fileDescriptor_8b6c2b29a42813c9, []int{13} } func (m *TransactionPlan) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1520,7 +1744,7 @@ func (m *DetectionDataPlan) Reset() { *m = DetectionDataPlan{} } func (m *DetectionDataPlan) String() string { return proto.CompactTextString(m) } func (*DetectionDataPlan) ProtoMessage() {} func (*DetectionDataPlan) Descriptor() ([]byte, []int) { - return fileDescriptor_cd20ea79758052c4, []int{14} + return fileDescriptor_8b6c2b29a42813c9, []int{14} } func (m *DetectionDataPlan) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1574,7 +1798,7 @@ type ActionPlan struct { // *ActionPlan_ValidatorVote // *ActionPlan_DelegatorVote // *ActionPlan_ProposalDepositClaim - // *ActionPlan_Withdrawal + // *ActionPlan_Ics20Withdrawal // *ActionPlan_PositionOpen // *ActionPlan_PositionClose // *ActionPlan_PositionWithdraw @@ -1592,7 +1816,7 @@ func (m *ActionPlan) Reset() { *m = ActionPlan{} } func (m *ActionPlan) String() string { return proto.CompactTextString(m) } func (*ActionPlan) ProtoMessage() {} func (*ActionPlan) Descriptor() ([]byte, []int) { - return fileDescriptor_cd20ea79758052c4, []int{15} + return fileDescriptor_8b6c2b29a42813c9, []int{15} } func (m *ActionPlan) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1628,70 +1852,70 @@ type isActionPlan_Action interface { } type ActionPlan_Spend struct { - Spend *v1alpha14.SpendPlan `protobuf:"bytes,1,opt,name=spend,proto3,oneof" json:"spend,omitempty"` + Spend *v14.SpendPlan `protobuf:"bytes,1,opt,name=spend,proto3,oneof" json:"spend,omitempty"` } type ActionPlan_Output struct { - Output *v1alpha14.OutputPlan `protobuf:"bytes,2,opt,name=output,proto3,oneof" json:"output,omitempty"` + Output *v14.OutputPlan `protobuf:"bytes,2,opt,name=output,proto3,oneof" json:"output,omitempty"` } type ActionPlan_Swap struct { - Swap *v1alpha15.SwapPlan `protobuf:"bytes,3,opt,name=swap,proto3,oneof" json:"swap,omitempty"` + Swap *v15.SwapPlan `protobuf:"bytes,3,opt,name=swap,proto3,oneof" json:"swap,omitempty"` } type ActionPlan_SwapClaim struct { - SwapClaim *v1alpha15.SwapClaimPlan `protobuf:"bytes,4,opt,name=swap_claim,json=swapClaim,proto3,oneof" json:"swap_claim,omitempty"` + SwapClaim *v15.SwapClaimPlan `protobuf:"bytes,4,opt,name=swap_claim,json=swapClaim,proto3,oneof" json:"swap_claim,omitempty"` } type ActionPlan_ValidatorDefinition struct { - ValidatorDefinition *v1alpha16.ValidatorDefinition `protobuf:"bytes,16,opt,name=validator_definition,json=validatorDefinition,proto3,oneof" json:"validator_definition,omitempty"` + ValidatorDefinition *v16.ValidatorDefinition `protobuf:"bytes,16,opt,name=validator_definition,json=validatorDefinition,proto3,oneof" json:"validator_definition,omitempty"` } type ActionPlan_IbcRelayAction struct { - IbcRelayAction *v1alpha17.IbcRelay `protobuf:"bytes,17,opt,name=ibc_relay_action,json=ibcRelayAction,proto3,oneof" json:"ibc_relay_action,omitempty"` + IbcRelayAction *v17.IbcRelay `protobuf:"bytes,17,opt,name=ibc_relay_action,json=ibcRelayAction,proto3,oneof" json:"ibc_relay_action,omitempty"` } type ActionPlan_ProposalSubmit struct { - ProposalSubmit *v1alpha18.ProposalSubmit `protobuf:"bytes,18,opt,name=proposal_submit,json=proposalSubmit,proto3,oneof" json:"proposal_submit,omitempty"` + ProposalSubmit *v18.ProposalSubmit `protobuf:"bytes,18,opt,name=proposal_submit,json=proposalSubmit,proto3,oneof" json:"proposal_submit,omitempty"` } type ActionPlan_ProposalWithdraw struct { - ProposalWithdraw *v1alpha18.ProposalWithdraw `protobuf:"bytes,19,opt,name=proposal_withdraw,json=proposalWithdraw,proto3,oneof" json:"proposal_withdraw,omitempty"` + ProposalWithdraw *v18.ProposalWithdraw `protobuf:"bytes,19,opt,name=proposal_withdraw,json=proposalWithdraw,proto3,oneof" json:"proposal_withdraw,omitempty"` } type ActionPlan_ValidatorVote struct { - ValidatorVote *v1alpha18.ValidatorVote `protobuf:"bytes,20,opt,name=validator_vote,json=validatorVote,proto3,oneof" json:"validator_vote,omitempty"` + ValidatorVote *v18.ValidatorVote `protobuf:"bytes,20,opt,name=validator_vote,json=validatorVote,proto3,oneof" json:"validator_vote,omitempty"` } type ActionPlan_DelegatorVote struct { - DelegatorVote *v1alpha18.DelegatorVotePlan `protobuf:"bytes,21,opt,name=delegator_vote,json=delegatorVote,proto3,oneof" json:"delegator_vote,omitempty"` + DelegatorVote *v18.DelegatorVotePlan `protobuf:"bytes,21,opt,name=delegator_vote,json=delegatorVote,proto3,oneof" json:"delegator_vote,omitempty"` } type ActionPlan_ProposalDepositClaim struct { - ProposalDepositClaim *v1alpha18.ProposalDepositClaim `protobuf:"bytes,22,opt,name=proposal_deposit_claim,json=proposalDepositClaim,proto3,oneof" json:"proposal_deposit_claim,omitempty"` + ProposalDepositClaim *v18.ProposalDepositClaim `protobuf:"bytes,22,opt,name=proposal_deposit_claim,json=proposalDepositClaim,proto3,oneof" json:"proposal_deposit_claim,omitempty"` } -type ActionPlan_Withdrawal struct { - Withdrawal *v1alpha17.Ics20Withdrawal `protobuf:"bytes,23,opt,name=withdrawal,proto3,oneof" json:"withdrawal,omitempty"` +type ActionPlan_Ics20Withdrawal struct { + Ics20Withdrawal *v17.Ics20Withdrawal `protobuf:"bytes,200,opt,name=ics20_withdrawal,json=ics20Withdrawal,proto3,oneof" json:"ics20_withdrawal,omitempty"` } type ActionPlan_PositionOpen struct { - PositionOpen *v1alpha15.PositionOpen `protobuf:"bytes,30,opt,name=position_open,json=positionOpen,proto3,oneof" json:"position_open,omitempty"` + PositionOpen *v15.PositionOpen `protobuf:"bytes,30,opt,name=position_open,json=positionOpen,proto3,oneof" json:"position_open,omitempty"` } type ActionPlan_PositionClose struct { - PositionClose *v1alpha15.PositionClose `protobuf:"bytes,31,opt,name=position_close,json=positionClose,proto3,oneof" json:"position_close,omitempty"` + PositionClose *v15.PositionClose `protobuf:"bytes,31,opt,name=position_close,json=positionClose,proto3,oneof" json:"position_close,omitempty"` } type ActionPlan_PositionWithdraw struct { - PositionWithdraw *v1alpha15.PositionWithdrawPlan `protobuf:"bytes,32,opt,name=position_withdraw,json=positionWithdraw,proto3,oneof" json:"position_withdraw,omitempty"` + PositionWithdraw *v15.PositionWithdrawPlan `protobuf:"bytes,32,opt,name=position_withdraw,json=positionWithdraw,proto3,oneof" json:"position_withdraw,omitempty"` } type ActionPlan_PositionRewardClaim struct { - PositionRewardClaim *v1alpha15.PositionRewardClaimPlan `protobuf:"bytes,34,opt,name=position_reward_claim,json=positionRewardClaim,proto3,oneof" json:"position_reward_claim,omitempty"` + PositionRewardClaim *v15.PositionRewardClaimPlan `protobuf:"bytes,34,opt,name=position_reward_claim,json=positionRewardClaim,proto3,oneof" json:"position_reward_claim,omitempty"` } type ActionPlan_Delegate struct { - Delegate *v1alpha16.Delegate `protobuf:"bytes,40,opt,name=delegate,proto3,oneof" json:"delegate,omitempty"` + Delegate *v16.Delegate `protobuf:"bytes,40,opt,name=delegate,proto3,oneof" json:"delegate,omitempty"` } type ActionPlan_Undelegate struct { - Undelegate *v1alpha16.Undelegate `protobuf:"bytes,41,opt,name=undelegate,proto3,oneof" json:"undelegate,omitempty"` + Undelegate *v16.Undelegate `protobuf:"bytes,41,opt,name=undelegate,proto3,oneof" json:"undelegate,omitempty"` } type ActionPlan_UndelegateClaim struct { - UndelegateClaim *v1alpha16.UndelegateClaimPlan `protobuf:"bytes,42,opt,name=undelegate_claim,json=undelegateClaim,proto3,oneof" json:"undelegate_claim,omitempty"` + UndelegateClaim *v16.UndelegateClaimPlan `protobuf:"bytes,42,opt,name=undelegate_claim,json=undelegateClaim,proto3,oneof" json:"undelegate_claim,omitempty"` } type ActionPlan_CommunityPoolSpend struct { - CommunityPoolSpend *v1alpha18.CommunityPoolSpend `protobuf:"bytes,50,opt,name=community_pool_spend,json=communityPoolSpend,proto3,oneof" json:"community_pool_spend,omitempty"` + CommunityPoolSpend *v18.CommunityPoolSpend `protobuf:"bytes,50,opt,name=community_pool_spend,json=communityPoolSpend,proto3,oneof" json:"community_pool_spend,omitempty"` } type ActionPlan_CommunityPoolOutput struct { - CommunityPoolOutput *v1alpha18.CommunityPoolOutput `protobuf:"bytes,51,opt,name=community_pool_output,json=communityPoolOutput,proto3,oneof" json:"community_pool_output,omitempty"` + CommunityPoolOutput *v18.CommunityPoolOutput `protobuf:"bytes,51,opt,name=community_pool_output,json=communityPoolOutput,proto3,oneof" json:"community_pool_output,omitempty"` } type ActionPlan_CommunityPoolDeposit struct { - CommunityPoolDeposit *v1alpha18.CommunityPoolDeposit `protobuf:"bytes,52,opt,name=community_pool_deposit,json=communityPoolDeposit,proto3,oneof" json:"community_pool_deposit,omitempty"` + CommunityPoolDeposit *v18.CommunityPoolDeposit `protobuf:"bytes,52,opt,name=community_pool_deposit,json=communityPoolDeposit,proto3,oneof" json:"community_pool_deposit,omitempty"` } func (*ActionPlan_Spend) isActionPlan_Action() {} @@ -1705,7 +1929,7 @@ func (*ActionPlan_ProposalWithdraw) isActionPlan_Action() {} func (*ActionPlan_ValidatorVote) isActionPlan_Action() {} func (*ActionPlan_DelegatorVote) isActionPlan_Action() {} func (*ActionPlan_ProposalDepositClaim) isActionPlan_Action() {} -func (*ActionPlan_Withdrawal) isActionPlan_Action() {} +func (*ActionPlan_Ics20Withdrawal) isActionPlan_Action() {} func (*ActionPlan_PositionOpen) isActionPlan_Action() {} func (*ActionPlan_PositionClose) isActionPlan_Action() {} func (*ActionPlan_PositionWithdraw) isActionPlan_Action() {} @@ -1724,154 +1948,155 @@ func (m *ActionPlan) GetAction() isActionPlan_Action { return nil } -func (m *ActionPlan) GetSpend() *v1alpha14.SpendPlan { +func (m *ActionPlan) GetSpend() *v14.SpendPlan { if x, ok := m.GetAction().(*ActionPlan_Spend); ok { return x.Spend } return nil } -func (m *ActionPlan) GetOutput() *v1alpha14.OutputPlan { +func (m *ActionPlan) GetOutput() *v14.OutputPlan { if x, ok := m.GetAction().(*ActionPlan_Output); ok { return x.Output } return nil } -func (m *ActionPlan) GetSwap() *v1alpha15.SwapPlan { +func (m *ActionPlan) GetSwap() *v15.SwapPlan { if x, ok := m.GetAction().(*ActionPlan_Swap); ok { return x.Swap } return nil } -func (m *ActionPlan) GetSwapClaim() *v1alpha15.SwapClaimPlan { +func (m *ActionPlan) GetSwapClaim() *v15.SwapClaimPlan { if x, ok := m.GetAction().(*ActionPlan_SwapClaim); ok { return x.SwapClaim } return nil } -func (m *ActionPlan) GetValidatorDefinition() *v1alpha16.ValidatorDefinition { +func (m *ActionPlan) GetValidatorDefinition() *v16.ValidatorDefinition { if x, ok := m.GetAction().(*ActionPlan_ValidatorDefinition); ok { return x.ValidatorDefinition } return nil } -func (m *ActionPlan) GetIbcRelayAction() *v1alpha17.IbcRelay { +func (m *ActionPlan) GetIbcRelayAction() *v17.IbcRelay { if x, ok := m.GetAction().(*ActionPlan_IbcRelayAction); ok { return x.IbcRelayAction } return nil } -func (m *ActionPlan) GetProposalSubmit() *v1alpha18.ProposalSubmit { +func (m *ActionPlan) GetProposalSubmit() *v18.ProposalSubmit { if x, ok := m.GetAction().(*ActionPlan_ProposalSubmit); ok { return x.ProposalSubmit } return nil } -func (m *ActionPlan) GetProposalWithdraw() *v1alpha18.ProposalWithdraw { +func (m *ActionPlan) GetProposalWithdraw() *v18.ProposalWithdraw { if x, ok := m.GetAction().(*ActionPlan_ProposalWithdraw); ok { return x.ProposalWithdraw } return nil } -func (m *ActionPlan) GetValidatorVote() *v1alpha18.ValidatorVote { +func (m *ActionPlan) GetValidatorVote() *v18.ValidatorVote { if x, ok := m.GetAction().(*ActionPlan_ValidatorVote); ok { return x.ValidatorVote } return nil } -func (m *ActionPlan) GetDelegatorVote() *v1alpha18.DelegatorVotePlan { +func (m *ActionPlan) GetDelegatorVote() *v18.DelegatorVotePlan { if x, ok := m.GetAction().(*ActionPlan_DelegatorVote); ok { return x.DelegatorVote } return nil } -func (m *ActionPlan) GetProposalDepositClaim() *v1alpha18.ProposalDepositClaim { +func (m *ActionPlan) GetProposalDepositClaim() *v18.ProposalDepositClaim { if x, ok := m.GetAction().(*ActionPlan_ProposalDepositClaim); ok { return x.ProposalDepositClaim } return nil } -func (m *ActionPlan) GetWithdrawal() *v1alpha17.Ics20Withdrawal { - if x, ok := m.GetAction().(*ActionPlan_Withdrawal); ok { - return x.Withdrawal +func (m *ActionPlan) GetIcs20Withdrawal() *v17.Ics20Withdrawal { + if x, ok := m.GetAction().(*ActionPlan_Ics20Withdrawal); ok { + return x.Ics20Withdrawal } return nil } -func (m *ActionPlan) GetPositionOpen() *v1alpha15.PositionOpen { +func (m *ActionPlan) GetPositionOpen() *v15.PositionOpen { if x, ok := m.GetAction().(*ActionPlan_PositionOpen); ok { return x.PositionOpen } return nil } -func (m *ActionPlan) GetPositionClose() *v1alpha15.PositionClose { +func (m *ActionPlan) GetPositionClose() *v15.PositionClose { if x, ok := m.GetAction().(*ActionPlan_PositionClose); ok { return x.PositionClose } return nil } -func (m *ActionPlan) GetPositionWithdraw() *v1alpha15.PositionWithdrawPlan { +func (m *ActionPlan) GetPositionWithdraw() *v15.PositionWithdrawPlan { if x, ok := m.GetAction().(*ActionPlan_PositionWithdraw); ok { return x.PositionWithdraw } return nil } -func (m *ActionPlan) GetPositionRewardClaim() *v1alpha15.PositionRewardClaimPlan { +// Deprecated: Do not use. +func (m *ActionPlan) GetPositionRewardClaim() *v15.PositionRewardClaimPlan { if x, ok := m.GetAction().(*ActionPlan_PositionRewardClaim); ok { return x.PositionRewardClaim } return nil } -func (m *ActionPlan) GetDelegate() *v1alpha16.Delegate { +func (m *ActionPlan) GetDelegate() *v16.Delegate { if x, ok := m.GetAction().(*ActionPlan_Delegate); ok { return x.Delegate } return nil } -func (m *ActionPlan) GetUndelegate() *v1alpha16.Undelegate { +func (m *ActionPlan) GetUndelegate() *v16.Undelegate { if x, ok := m.GetAction().(*ActionPlan_Undelegate); ok { return x.Undelegate } return nil } -func (m *ActionPlan) GetUndelegateClaim() *v1alpha16.UndelegateClaimPlan { +func (m *ActionPlan) GetUndelegateClaim() *v16.UndelegateClaimPlan { if x, ok := m.GetAction().(*ActionPlan_UndelegateClaim); ok { return x.UndelegateClaim } return nil } -func (m *ActionPlan) GetCommunityPoolSpend() *v1alpha18.CommunityPoolSpend { +func (m *ActionPlan) GetCommunityPoolSpend() *v18.CommunityPoolSpend { if x, ok := m.GetAction().(*ActionPlan_CommunityPoolSpend); ok { return x.CommunityPoolSpend } return nil } -func (m *ActionPlan) GetCommunityPoolOutput() *v1alpha18.CommunityPoolOutput { +func (m *ActionPlan) GetCommunityPoolOutput() *v18.CommunityPoolOutput { if x, ok := m.GetAction().(*ActionPlan_CommunityPoolOutput); ok { return x.CommunityPoolOutput } return nil } -func (m *ActionPlan) GetCommunityPoolDeposit() *v1alpha18.CommunityPoolDeposit { +func (m *ActionPlan) GetCommunityPoolDeposit() *v18.CommunityPoolDeposit { if x, ok := m.GetAction().(*ActionPlan_CommunityPoolDeposit); ok { return x.CommunityPoolDeposit } @@ -1892,7 +2117,7 @@ func (*ActionPlan) XXX_OneofWrappers() []interface{} { (*ActionPlan_ValidatorVote)(nil), (*ActionPlan_DelegatorVote)(nil), (*ActionPlan_ProposalDepositClaim)(nil), - (*ActionPlan_Withdrawal)(nil), + (*ActionPlan_Ics20Withdrawal)(nil), (*ActionPlan_PositionOpen)(nil), (*ActionPlan_PositionClose)(nil), (*ActionPlan_PositionWithdraw)(nil), @@ -1909,7 +2134,7 @@ func (*ActionPlan) XXX_OneofWrappers() []interface{} { // Describes a plan for forming a `Clue`. type CluePlan struct { // The address. - Address *v1alpha19.Address `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + Address *v19.Address `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // The random seed to use for the clue plan. Rseed []byte `protobuf:"bytes,2,opt,name=rseed,proto3" json:"rseed,omitempty"` // The bits of precision. @@ -1920,7 +2145,7 @@ func (m *CluePlan) Reset() { *m = CluePlan{} } func (m *CluePlan) String() string { return proto.CompactTextString(m) } func (*CluePlan) ProtoMessage() {} func (*CluePlan) Descriptor() ([]byte, []int) { - return fileDescriptor_cd20ea79758052c4, []int{16} + return fileDescriptor_8b6c2b29a42813c9, []int{16} } func (m *CluePlan) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1949,7 +2174,7 @@ func (m *CluePlan) XXX_DiscardUnknown() { var xxx_messageInfo_CluePlan proto.InternalMessageInfo -func (m *CluePlan) GetAddress() *v1alpha19.Address { +func (m *CluePlan) GetAddress() *v19.Address { if m != nil { return m.Address } @@ -1982,7 +2207,7 @@ func (m *MemoPlan) Reset() { *m = MemoPlan{} } func (m *MemoPlan) String() string { return proto.CompactTextString(m) } func (*MemoPlan) ProtoMessage() {} func (*MemoPlan) Descriptor() ([]byte, []int) { - return fileDescriptor_cd20ea79758052c4, []int{17} + return fileDescriptor_8b6c2b29a42813c9, []int{17} } func (m *MemoPlan) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2035,7 +2260,7 @@ func (m *MemoCiphertext) Reset() { *m = MemoCiphertext{} } func (m *MemoCiphertext) String() string { return proto.CompactTextString(m) } func (*MemoCiphertext) ProtoMessage() {} func (*MemoCiphertext) Descriptor() ([]byte, []int) { - return fileDescriptor_cd20ea79758052c4, []int{18} + return fileDescriptor_8b6c2b29a42813c9, []int{18} } func (m *MemoCiphertext) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2077,7 +2302,7 @@ type MemoPlaintext struct { // // This should always be a valid address; the sender is responsible for ensuring // that if the receiver returns funds to this address, they will not be lost. - ReturnAddress *v1alpha19.Address `protobuf:"bytes,1,opt,name=return_address,json=returnAddress,proto3" json:"return_address,omitempty"` + ReturnAddress *v19.Address `protobuf:"bytes,1,opt,name=return_address,json=returnAddress,proto3" json:"return_address,omitempty"` // Free-form text, up to 432 bytes long. Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"` } @@ -2086,7 +2311,7 @@ func (m *MemoPlaintext) Reset() { *m = MemoPlaintext{} } func (m *MemoPlaintext) String() string { return proto.CompactTextString(m) } func (*MemoPlaintext) ProtoMessage() {} func (*MemoPlaintext) Descriptor() ([]byte, []int) { - return fileDescriptor_cd20ea79758052c4, []int{19} + return fileDescriptor_8b6c2b29a42813c9, []int{19} } func (m *MemoPlaintext) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2115,7 +2340,7 @@ func (m *MemoPlaintext) XXX_DiscardUnknown() { var xxx_messageInfo_MemoPlaintext proto.InternalMessageInfo -func (m *MemoPlaintext) GetReturnAddress() *v1alpha19.Address { +func (m *MemoPlaintext) GetReturnAddress() *v19.Address { if m != nil { return m.ReturnAddress } @@ -2130,15 +2355,15 @@ func (m *MemoPlaintext) GetText() string { } type MemoPlaintextView struct { - ReturnAddress *v1alpha19.AddressView `protobuf:"bytes,1,opt,name=return_address,json=returnAddress,proto3" json:"return_address,omitempty"` - Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"` + ReturnAddress *v19.AddressView `protobuf:"bytes,1,opt,name=return_address,json=returnAddress,proto3" json:"return_address,omitempty"` + Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"` } func (m *MemoPlaintextView) Reset() { *m = MemoPlaintextView{} } func (m *MemoPlaintextView) String() string { return proto.CompactTextString(m) } func (*MemoPlaintextView) ProtoMessage() {} func (*MemoPlaintextView) Descriptor() ([]byte, []int) { - return fileDescriptor_cd20ea79758052c4, []int{20} + return fileDescriptor_8b6c2b29a42813c9, []int{20} } func (m *MemoPlaintextView) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2167,7 +2392,7 @@ func (m *MemoPlaintextView) XXX_DiscardUnknown() { var xxx_messageInfo_MemoPlaintextView proto.InternalMessageInfo -func (m *MemoPlaintextView) GetReturnAddress() *v1alpha19.AddressView { +func (m *MemoPlaintextView) GetReturnAddress() *v19.AddressView { if m != nil { return m.ReturnAddress } @@ -2193,7 +2418,7 @@ func (m *MemoView) Reset() { *m = MemoView{} } func (m *MemoView) String() string { return proto.CompactTextString(m) } func (*MemoView) ProtoMessage() {} func (*MemoView) Descriptor() ([]byte, []int) { - return fileDescriptor_cd20ea79758052c4, []int{21} + return fileDescriptor_8b6c2b29a42813c9, []int{21} } func (m *MemoView) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2276,7 +2501,7 @@ func (m *MemoView_Visible) Reset() { *m = MemoView_Visible{} } func (m *MemoView_Visible) String() string { return proto.CompactTextString(m) } func (*MemoView_Visible) ProtoMessage() {} func (*MemoView_Visible) Descriptor() ([]byte, []int) { - return fileDescriptor_cd20ea79758052c4, []int{21, 0} + return fileDescriptor_8b6c2b29a42813c9, []int{21, 0} } func (m *MemoView_Visible) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2327,7 +2552,7 @@ func (m *MemoView_Opaque) Reset() { *m = MemoView_Opaque{} } func (m *MemoView_Opaque) String() string { return proto.CompactTextString(m) } func (*MemoView_Opaque) ProtoMessage() {} func (*MemoView_Opaque) Descriptor() ([]byte, []int) { - return fileDescriptor_cd20ea79758052c4, []int{21, 1} + return fileDescriptor_8b6c2b29a42813c9, []int{21, 1} } func (m *MemoView_Opaque) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2364,187 +2589,207 @@ func (m *MemoView_Opaque) GetCiphertext() *MemoCiphertext { } func init() { - proto.RegisterType((*Transaction)(nil), "penumbra.core.transaction.v1alpha1.Transaction") - proto.RegisterType((*TransactionBody)(nil), "penumbra.core.transaction.v1alpha1.TransactionBody") - proto.RegisterType((*TransactionParameters)(nil), "penumbra.core.transaction.v1alpha1.TransactionParameters") - proto.RegisterType((*DetectionData)(nil), "penumbra.core.transaction.v1alpha1.DetectionData") - proto.RegisterType((*Action)(nil), "penumbra.core.transaction.v1alpha1.Action") - proto.RegisterType((*TransactionPerspective)(nil), "penumbra.core.transaction.v1alpha1.TransactionPerspective") - proto.RegisterType((*PayloadKeyWithCommitment)(nil), "penumbra.core.transaction.v1alpha1.PayloadKeyWithCommitment") - proto.RegisterType((*NullifierWithNote)(nil), "penumbra.core.transaction.v1alpha1.NullifierWithNote") - proto.RegisterType((*TransactionView)(nil), "penumbra.core.transaction.v1alpha1.TransactionView") - proto.RegisterType((*TransactionBodyView)(nil), "penumbra.core.transaction.v1alpha1.TransactionBodyView") - proto.RegisterType((*ActionView)(nil), "penumbra.core.transaction.v1alpha1.ActionView") - proto.RegisterType((*AuthorizationData)(nil), "penumbra.core.transaction.v1alpha1.AuthorizationData") - proto.RegisterType((*WitnessData)(nil), "penumbra.core.transaction.v1alpha1.WitnessData") - proto.RegisterType((*TransactionPlan)(nil), "penumbra.core.transaction.v1alpha1.TransactionPlan") - proto.RegisterType((*DetectionDataPlan)(nil), "penumbra.core.transaction.v1alpha1.DetectionDataPlan") - proto.RegisterType((*ActionPlan)(nil), "penumbra.core.transaction.v1alpha1.ActionPlan") - proto.RegisterType((*CluePlan)(nil), "penumbra.core.transaction.v1alpha1.CluePlan") - proto.RegisterType((*MemoPlan)(nil), "penumbra.core.transaction.v1alpha1.MemoPlan") - proto.RegisterType((*MemoCiphertext)(nil), "penumbra.core.transaction.v1alpha1.MemoCiphertext") - proto.RegisterType((*MemoPlaintext)(nil), "penumbra.core.transaction.v1alpha1.MemoPlaintext") - proto.RegisterType((*MemoPlaintextView)(nil), "penumbra.core.transaction.v1alpha1.MemoPlaintextView") - proto.RegisterType((*MemoView)(nil), "penumbra.core.transaction.v1alpha1.MemoView") - proto.RegisterType((*MemoView_Visible)(nil), "penumbra.core.transaction.v1alpha1.MemoView.Visible") - proto.RegisterType((*MemoView_Opaque)(nil), "penumbra.core.transaction.v1alpha1.MemoView.Opaque") + proto.RegisterType((*Transaction)(nil), "penumbra.core.transaction.v1.Transaction") + proto.RegisterType((*TransactionBody)(nil), "penumbra.core.transaction.v1.TransactionBody") + proto.RegisterType((*TransactionParameters)(nil), "penumbra.core.transaction.v1.TransactionParameters") + proto.RegisterType((*DetectionData)(nil), "penumbra.core.transaction.v1.DetectionData") + proto.RegisterType((*Action)(nil), "penumbra.core.transaction.v1.Action") + proto.RegisterType((*TransactionPerspective)(nil), "penumbra.core.transaction.v1.TransactionPerspective") + proto.RegisterType((*TransactionPerspective_ExtendedMetadataById)(nil), "penumbra.core.transaction.v1.TransactionPerspective.ExtendedMetadataById") + proto.RegisterType((*TransactionPerspective_CreationTransactionIdByNullifier)(nil), "penumbra.core.transaction.v1.TransactionPerspective.CreationTransactionIdByNullifier") + proto.RegisterType((*TransactionPerspective_NullificationTransactionIdByCommitment)(nil), "penumbra.core.transaction.v1.TransactionPerspective.NullificationTransactionIdByCommitment") + proto.RegisterType((*PayloadKeyWithCommitment)(nil), "penumbra.core.transaction.v1.PayloadKeyWithCommitment") + proto.RegisterType((*NullifierWithNote)(nil), "penumbra.core.transaction.v1.NullifierWithNote") + proto.RegisterType((*TransactionView)(nil), "penumbra.core.transaction.v1.TransactionView") + proto.RegisterType((*TransactionBodyView)(nil), "penumbra.core.transaction.v1.TransactionBodyView") + proto.RegisterType((*ActionView)(nil), "penumbra.core.transaction.v1.ActionView") + proto.RegisterType((*AuthorizationData)(nil), "penumbra.core.transaction.v1.AuthorizationData") + proto.RegisterType((*WitnessData)(nil), "penumbra.core.transaction.v1.WitnessData") + proto.RegisterType((*TransactionPlan)(nil), "penumbra.core.transaction.v1.TransactionPlan") + proto.RegisterType((*DetectionDataPlan)(nil), "penumbra.core.transaction.v1.DetectionDataPlan") + proto.RegisterType((*ActionPlan)(nil), "penumbra.core.transaction.v1.ActionPlan") + proto.RegisterType((*CluePlan)(nil), "penumbra.core.transaction.v1.CluePlan") + proto.RegisterType((*MemoPlan)(nil), "penumbra.core.transaction.v1.MemoPlan") + proto.RegisterType((*MemoCiphertext)(nil), "penumbra.core.transaction.v1.MemoCiphertext") + proto.RegisterType((*MemoPlaintext)(nil), "penumbra.core.transaction.v1.MemoPlaintext") + proto.RegisterType((*MemoPlaintextView)(nil), "penumbra.core.transaction.v1.MemoPlaintextView") + proto.RegisterType((*MemoView)(nil), "penumbra.core.transaction.v1.MemoView") + proto.RegisterType((*MemoView_Visible)(nil), "penumbra.core.transaction.v1.MemoView.Visible") + proto.RegisterType((*MemoView_Opaque)(nil), "penumbra.core.transaction.v1.MemoView.Opaque") } func init() { - proto.RegisterFile("penumbra/core/transaction/v1alpha1/transaction.proto", fileDescriptor_cd20ea79758052c4) -} - -var fileDescriptor_cd20ea79758052c4 = []byte{ - // 2370 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x5a, 0xcf, 0x73, 0x1c, 0x47, - 0xf5, 0xdf, 0x95, 0x64, 0x59, 0x7a, 0xab, 0x95, 0xa5, 0xb6, 0xe4, 0xec, 0xd7, 0x07, 0x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xbe, 0x3d, 0x78, 0xce, 0x6a, 0x2f, 0x8f, 0xd0, - 0x1f, 0x85, 0x18, 0xbb, 0x11, 0x44, 0x25, 0x63, 0x5c, 0x6c, 0xf7, 0x9a, 0xd1, 0xc7, 0xb0, 0x44, - 0x6b, 0x96, 0xe9, 0x13, 0x07, 0x77, 0xcc, 0x20, 0x4f, 0x0b, 0xcb, 0x8a, 0xad, 0x34, 0x90, 0x4d, - 0x9e, 0x6f, 0x11, 0xd7, 0xbd, 0x9a, 0x65, 0x48, 0xe7, 0x4a, 0xc6, 0x58, 0xa4, 0xfa, 0x59, 0xa7, - 0x40, 0x1d, 0x2e, 0x78, 0x3e, 0xf3, 0x18, 0xc7, 0x8e, 0xc9, 0x5b, 0xb5, 0x26, 0x15, 0x05, 0x34, - 0x64, 0x22, 0x89, 0x13, 0x37, 0x62, 0xa8, 0x6a, 0x8c, 0x7d, 0x05, 0x21, 0x79, 0xbc, 0x94, 0x05, - 0x39, 0xb0, 0x1c, 0xf1, 0x1c, 0x53, 0xd1, 0xb0, 0x7d, 0x7c, 0x5c, 0xb8, 0xa8, 0x98, 0xde, 0x9b, - 0x88, 0xe9, 0xb1, 0x06, 0xa9, 0x64, 0x8c, 0x25, 0xaf, 0xcb, 0x86, 0x2c, 0x58, 0x8c, 0xd7, 0xa8, - 0xcd, 0x04, 0x29, 0xac, 0x28, 0xaa, 0xf2, 0x58, 0x54, 0xd1, 0x12, 0x3d, 0x62, 0x82, 0x54, 0x32, - 0x46, 0xbe, 0x9d, 0x34, 0x48, 0x12, 0x9b, 0x38, 0xe4, 0x28, 0x26, 0x59, 0x9d, 0x80, 0x64, 0x37, - 0x84, 0x08, 0x49, 0xec, 0xa4, 0x01, 0x75, 0xe0, 0x52, 0x14, 0x37, 0x9b, 0x78, 0x8c, 0x53, 0xa1, - 0x73, 0xf9, 0x92, 0x22, 0xbb, 0x3b, 0x51, 0xf0, 0x76, 0x03, 0xa4, 0x30, 0xbb, 0x57, 0xbc, 0x3e, - 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 0xad, 0x65, 0xff, 0xfa, 0x6c, 0x2d, - 0xfb, 0xcb, 0xe7, 0x6b, 0x99, 0x2f, 0x9e, 0xaf, 0x65, 0xfe, 0xf2, 0x7c, 0x2d, 0x03, 0x57, 0x2d, - 0xd6, 0x1c, 0x81, 0x6a, 0x7b, 0x29, 0x29, 0x01, 0x7d, 0x26, 0x58, 0x35, 0xfb, 0x71, 0xed, 0x88, - 0x8a, 0x46, 0xab, 0x26, 0xb7, 0xa3, 0x0d, 0x8b, 0xf1, 0x26, 0xe3, 0x1b, 0xaa, 0x58, 0x26, 0xfe, - 0x46, 0x7b, 0x33, 0x7a, 0x54, 0x9f, 0x33, 0xf2, 0x8d, 0xe1, 0x9f, 0x9d, 0xdf, 0x4e, 0x18, 0x43, - 0xdb, 0x6f, 0xa7, 0xa6, 0xab, 0x3b, 0x07, 0x9f, 0x4e, 0x15, 0xab, 0xe1, 0x10, 0x77, 0xe4, 0x10, - 0x13, 0x83, 0x29, 0x3d, 0xd2, 0x5d, 0xff, 0x14, 0x77, 0x3a, 0x94, 0x9d, 0x0e, 0x13, 0x9d, 0x0e, - 0xc3, 0x4e, 0xcf, 0xa6, 0x4a, 0xc3, 0x3b, 0x1d, 0x7e, 0x58, 0xdd, 0x0e, 0x6f, 0xa3, 0xff, 0x3e, - 0xf5, 0x7a, 0xe8, 0x50, 0x2e, 0x4b, 0x8f, 0x72, 0x39, 0xe1, 0x52, 0x2e, 0x87, 0x3e, 0xb5, 0x59, - 0xf5, 0xc9, 0xf1, 0xd6, 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0xba, 0x81, 0x9e, 0x96, 0x60, 0x2f, - 0x00, 0x00, + proto.RegisterFile("penumbra/core/transaction/v1/transaction.proto", fileDescriptor_8b6c2b29a42813c9) +} + +var fileDescriptor_8b6c2b29a42813c9 = []byte{ + // 2654 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x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c2, 0x92, 0xc2, 0x49, 0xff, 0x4a, 0xf0, 0x41, 0xa4, 0xda, 0x2a, 0xfe, 0x32, 0x33, + 0x56, 0xd9, 0xba, 0xfb, 0xeb, 0xcc, 0x8b, 0x95, 0xc0, 0xa0, 0x2d, 0x66, 0x50, 0xc4, 0x00, 0xf9, + 0xa0, 0xf8, 0xa7, 0xce, 0xe7, 0x87, 0xec, 0xf3, 0xc3, 0xc8, 0xe7, 0x87, 0x07, 0xc5, 0x27, 0x99, + 0xd5, 0x93, 0x3e, 0x3f, 0xdc, 0xa9, 0x94, 0x82, 0x47, 0xde, 0x7f, 0x66, 0x5e, 0x0a, 0x44, 0x37, + 0x36, 0x98, 0xec, 0xc6, 0x46, 0x44, 0x78, 0x63, 0xe3, 0xa0, 0x58, 0x9d, 0xe0, 0xcf, 0xc4, 0x37, + 0xfe, 0x1d, 0x00, 0x00, 0xff, 0xff, 0x5a, 0x3c, 0x6e, 0x70, 0x10, 0x31, 0x00, 0x00, } func (m *Transaction) Marshal() (dAtA []byte, err error) { @@ -3313,6 +3558,86 @@ func (m *TransactionPerspective) MarshalToSizedBuffer(dAtA []byte) (int, error) _ = i var l int _ = l + if len(m.BatchSwapOutputData) > 0 { + for iNdEx := len(m.BatchSwapOutputData) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.BatchSwapOutputData[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTransaction(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe2 + } + } + if len(m.NullificationTransactionIdsByCommitment) > 0 { + for iNdEx := len(m.NullificationTransactionIdsByCommitment) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.NullificationTransactionIdsByCommitment[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTransaction(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x92 + } + } + if len(m.CreationTransactionIdsByNullifier) > 0 { + for iNdEx := len(m.CreationTransactionIdsByNullifier) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.CreationTransactionIdsByNullifier[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTransaction(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0xc2 + } + } + if len(m.ExtendedMetadata) > 0 { + for iNdEx := len(m.ExtendedMetadata) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.ExtendedMetadata[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTransaction(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xf2 + } + } + if len(m.Prices) > 0 { + for iNdEx := len(m.Prices) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Prices[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTransaction(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xa2 + } + } if m.TransactionId != nil { { size, err := m.TransactionId.MarshalToSizedBuffer(dAtA[:i]) @@ -3398,7 +3723,7 @@ func (m *TransactionPerspective) MarshalToSizedBuffer(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *PayloadKeyWithCommitment) Marshal() (dAtA []byte, err error) { +func (m *TransactionPerspective_ExtendedMetadataById) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -3408,19 +3733,19 @@ func (m *PayloadKeyWithCommitment) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *PayloadKeyWithCommitment) MarshalTo(dAtA []byte) (int, error) { +func (m *TransactionPerspective_ExtendedMetadataById) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *PayloadKeyWithCommitment) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *TransactionPerspective_ExtendedMetadataById) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.Commitment != nil { + if m.ExtendedMetadata != nil { { - size, err := m.Commitment.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.ExtendedMetadata.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -3430,9 +3755,9 @@ func (m *PayloadKeyWithCommitment) MarshalToSizedBuffer(dAtA []byte) (int, error i-- dAtA[i] = 0x12 } - if m.PayloadKey != nil { + if m.AssetId != nil { { - size, err := m.PayloadKey.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.AssetId.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -3445,7 +3770,7 @@ func (m *PayloadKeyWithCommitment) MarshalToSizedBuffer(dAtA []byte) (int, error return len(dAtA) - i, nil } -func (m *NullifierWithNote) Marshal() (dAtA []byte, err error) { +func (m *TransactionPerspective_CreationTransactionIdByNullifier) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -3455,19 +3780,19 @@ func (m *NullifierWithNote) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *NullifierWithNote) MarshalTo(dAtA []byte) (int, error) { +func (m *TransactionPerspective_CreationTransactionIdByNullifier) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *NullifierWithNote) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *TransactionPerspective_CreationTransactionIdByNullifier) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.Note != nil { + if m.TransactionId != nil { { - size, err := m.Note.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.TransactionId.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -3492,7 +3817,7 @@ func (m *NullifierWithNote) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *TransactionView) Marshal() (dAtA []byte, err error) { +func (m *TransactionPerspective_NullificationTransactionIdByCommitment) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -3502,31 +3827,19 @@ func (m *TransactionView) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *TransactionView) MarshalTo(dAtA []byte) (int, error) { +func (m *TransactionPerspective_NullificationTransactionIdByCommitment) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *TransactionView) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *TransactionPerspective_NullificationTransactionIdByCommitment) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.Anchor != nil { - { - size, err := m.Anchor.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTransaction(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.BindingSig != nil { + if m.TransactionId != nil { { - size, err := m.BindingSig.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.TransactionId.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -3536,9 +3849,9 @@ func (m *TransactionView) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x12 } - if m.BodyView != nil { + if m.Commitment != nil { { - size, err := m.BodyView.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Commitment.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -3551,7 +3864,7 @@ func (m *TransactionView) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *TransactionBodyView) Marshal() (dAtA []byte, err error) { +func (m *PayloadKeyWithCommitment) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -3561,31 +3874,19 @@ func (m *TransactionBodyView) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *TransactionBodyView) MarshalTo(dAtA []byte) (int, error) { +func (m *PayloadKeyWithCommitment) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *TransactionBodyView) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *PayloadKeyWithCommitment) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.MemoView != nil { - { - size, err := m.MemoView.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTransaction(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - if m.DetectionData != nil { + if m.Commitment != nil { { - size, err := m.DetectionData.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Commitment.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -3593,11 +3894,11 @@ func (m *TransactionBodyView) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintTransaction(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x22 + dAtA[i] = 0x12 } - if m.TransactionParameters != nil { + if m.PayloadKey != nil { { - size, err := m.TransactionParameters.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.PayloadKey.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -3605,9 +3906,174 @@ func (m *TransactionBodyView) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintTransaction(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x12 + dAtA[i] = 0xa } - if len(m.ActionViews) > 0 { + return len(dAtA) - i, nil +} + +func (m *NullifierWithNote) 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 *NullifierWithNote) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NullifierWithNote) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Note != nil { + { + size, err := m.Note.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTransaction(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.Nullifier != nil { + { + size, err := m.Nullifier.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTransaction(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *TransactionView) 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 *TransactionView) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TransactionView) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Anchor != nil { + { + size, err := m.Anchor.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTransaction(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if m.BindingSig != nil { + { + size, err := m.BindingSig.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTransaction(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.BodyView != nil { + { + size, err := m.BodyView.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTransaction(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *TransactionBodyView) 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 *TransactionBodyView) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TransactionBodyView) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.MemoView != nil { + { + size, err := m.MemoView.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTransaction(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + if m.DetectionData != nil { + { + size, err := m.DetectionData.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTransaction(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + if m.TransactionParameters != nil { + { + size, err := m.TransactionParameters.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTransaction(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if len(m.ActionViews) > 0 { for iNdEx := len(m.ActionViews) - 1; iNdEx >= 0; iNdEx-- { { size, err := m.ActionViews[iNdEx].MarshalToSizedBuffer(dAtA[:i]) @@ -4653,29 +5119,6 @@ func (m *ActionPlan_ProposalDepositClaim) MarshalToSizedBuffer(dAtA []byte) (int } return len(dAtA) - i, nil } -func (m *ActionPlan_Withdrawal) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ActionPlan_Withdrawal) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.Withdrawal != nil { - { - size, err := m.Withdrawal.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTransaction(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xba - } - return len(dAtA) - i, nil -} func (m *ActionPlan_PositionOpen) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) @@ -4906,6 +5349,29 @@ func (m *ActionPlan_CommunityPoolDeposit) MarshalToSizedBuffer(dAtA []byte) (int } return len(dAtA) - i, nil } +func (m *ActionPlan_Ics20Withdrawal) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ActionPlan_Ics20Withdrawal) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Ics20Withdrawal != nil { + { + size, err := m.Ics20Withdrawal.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTransaction(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xc + i-- + dAtA[i] = 0xc2 + } + return len(dAtA) - i, nil +} func (m *CluePlan) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -5675,27 +6141,57 @@ func (m *TransactionPerspective) Size() (n int) { l = m.TransactionId.Size() n += 1 + l + sovTransaction(uint64(l)) } + if len(m.Prices) > 0 { + for _, e := range m.Prices { + l = e.Size() + n += 2 + l + sovTransaction(uint64(l)) + } + } + if len(m.ExtendedMetadata) > 0 { + for _, e := range m.ExtendedMetadata { + l = e.Size() + n += 2 + l + sovTransaction(uint64(l)) + } + } + if len(m.CreationTransactionIdsByNullifier) > 0 { + for _, e := range m.CreationTransactionIdsByNullifier { + l = e.Size() + n += 2 + l + sovTransaction(uint64(l)) + } + } + if len(m.NullificationTransactionIdsByCommitment) > 0 { + for _, e := range m.NullificationTransactionIdsByCommitment { + l = e.Size() + n += 2 + l + sovTransaction(uint64(l)) + } + } + if len(m.BatchSwapOutputData) > 0 { + for _, e := range m.BatchSwapOutputData { + l = e.Size() + n += 2 + l + sovTransaction(uint64(l)) + } + } return n } -func (m *PayloadKeyWithCommitment) Size() (n int) { +func (m *TransactionPerspective_ExtendedMetadataById) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.PayloadKey != nil { - l = m.PayloadKey.Size() + if m.AssetId != nil { + l = m.AssetId.Size() n += 1 + l + sovTransaction(uint64(l)) } - if m.Commitment != nil { - l = m.Commitment.Size() + if m.ExtendedMetadata != nil { + l = m.ExtendedMetadata.Size() n += 1 + l + sovTransaction(uint64(l)) } return n } -func (m *NullifierWithNote) Size() (n int) { +func (m *TransactionPerspective_CreationTransactionIdByNullifier) Size() (n int) { if m == nil { return 0 } @@ -5705,51 +6201,102 @@ func (m *NullifierWithNote) Size() (n int) { l = m.Nullifier.Size() n += 1 + l + sovTransaction(uint64(l)) } - if m.Note != nil { - l = m.Note.Size() + if m.TransactionId != nil { + l = m.TransactionId.Size() n += 1 + l + sovTransaction(uint64(l)) } return n } -func (m *TransactionView) Size() (n int) { +func (m *TransactionPerspective_NullificationTransactionIdByCommitment) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.BodyView != nil { - l = m.BodyView.Size() - n += 1 + l + sovTransaction(uint64(l)) - } - if m.BindingSig != nil { - l = m.BindingSig.Size() + if m.Commitment != nil { + l = m.Commitment.Size() n += 1 + l + sovTransaction(uint64(l)) } - if m.Anchor != nil { - l = m.Anchor.Size() + if m.TransactionId != nil { + l = m.TransactionId.Size() n += 1 + l + sovTransaction(uint64(l)) } return n } -func (m *TransactionBodyView) Size() (n int) { +func (m *PayloadKeyWithCommitment) Size() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.ActionViews) > 0 { - for _, e := range m.ActionViews { - l = e.Size() - n += 1 + l + sovTransaction(uint64(l)) - } - } - if m.TransactionParameters != nil { - l = m.TransactionParameters.Size() + if m.PayloadKey != nil { + l = m.PayloadKey.Size() n += 1 + l + sovTransaction(uint64(l)) } - if m.DetectionData != nil { + if m.Commitment != nil { + l = m.Commitment.Size() + n += 1 + l + sovTransaction(uint64(l)) + } + return n +} + +func (m *NullifierWithNote) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Nullifier != nil { + l = m.Nullifier.Size() + n += 1 + l + sovTransaction(uint64(l)) + } + if m.Note != nil { + l = m.Note.Size() + n += 1 + l + sovTransaction(uint64(l)) + } + return n +} + +func (m *TransactionView) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.BodyView != nil { + l = m.BodyView.Size() + n += 1 + l + sovTransaction(uint64(l)) + } + if m.BindingSig != nil { + l = m.BindingSig.Size() + n += 1 + l + sovTransaction(uint64(l)) + } + if m.Anchor != nil { + l = m.Anchor.Size() + n += 1 + l + sovTransaction(uint64(l)) + } + return n +} + +func (m *TransactionBodyView) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.ActionViews) > 0 { + for _, e := range m.ActionViews { + l = e.Size() + n += 1 + l + sovTransaction(uint64(l)) + } + } + if m.TransactionParameters != nil { + l = m.TransactionParameters.Size() + n += 1 + l + sovTransaction(uint64(l)) + } + if m.DetectionData != nil { l = m.DetectionData.Size() n += 1 + l + sovTransaction(uint64(l)) } @@ -6266,18 +6813,6 @@ func (m *ActionPlan_ProposalDepositClaim) Size() (n int) { } return n } -func (m *ActionPlan_Withdrawal) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Withdrawal != nil { - l = m.Withdrawal.Size() - n += 2 + l + sovTransaction(uint64(l)) - } - return n -} func (m *ActionPlan_PositionOpen) Size() (n int) { if m == nil { return 0 @@ -6398,6 +6933,18 @@ func (m *ActionPlan_CommunityPoolDeposit) Size() (n int) { } return n } +func (m *ActionPlan_Ics20Withdrawal) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Ics20Withdrawal != nil { + l = m.Ics20Withdrawal.Size() + n += 2 + l + sovTransaction(uint64(l)) + } + return n +} func (m *CluePlan) Size() (n int) { if m == nil { return 0 @@ -6649,7 +7196,7 @@ func (m *Transaction) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.BindingSig == nil { - m.BindingSig = &v1alpha1.BindingSignature{} + m.BindingSig = &v1.BindingSignature{} } if err := m.BindingSig.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -6685,7 +7232,7 @@ func (m *Transaction) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Anchor == nil { - m.Anchor = &v1alpha11.MerkleRoot{} + m.Anchor = &v11.MerkleRoot{} } if err := m.Anchor.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -7014,7 +7561,7 @@ func (m *TransactionParameters) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Fee == nil { - m.Fee = &v1alpha12.Fee{} + m.Fee = &v12.Fee{} } if err := m.Fee.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -7099,7 +7646,7 @@ func (m *DetectionData) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.FmdClues = append(m.FmdClues, &v1alpha13.Clue{}) + m.FmdClues = append(m.FmdClues, &v13.Clue{}) if err := m.FmdClues[len(m.FmdClues)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -7183,7 +7730,7 @@ func (m *Action) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &v1alpha14.Spend{} + v := &v14.Spend{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -7218,7 +7765,7 @@ func (m *Action) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &v1alpha14.Output{} + v := &v14.Output{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -7253,7 +7800,7 @@ func (m *Action) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &v1alpha15.Swap{} + v := &v15.Swap{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -7288,7 +7835,7 @@ func (m *Action) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &v1alpha15.SwapClaim{} + v := &v15.SwapClaim{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -7323,7 +7870,7 @@ func (m *Action) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &v1alpha16.ValidatorDefinition{} + v := &v16.ValidatorDefinition{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -7358,7 +7905,7 @@ func (m *Action) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &v1alpha17.IbcRelay{} + v := &v17.IbcRelay{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -7393,7 +7940,7 @@ func (m *Action) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &v1alpha18.ProposalSubmit{} + v := &v18.ProposalSubmit{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -7428,7 +7975,7 @@ func (m *Action) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &v1alpha18.ProposalWithdraw{} + v := &v18.ProposalWithdraw{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -7463,7 +8010,7 @@ func (m *Action) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &v1alpha18.ValidatorVote{} + v := &v18.ValidatorVote{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -7498,7 +8045,7 @@ func (m *Action) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &v1alpha18.DelegatorVote{} + v := &v18.DelegatorVote{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -7533,7 +8080,7 @@ func (m *Action) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &v1alpha18.ProposalDepositClaim{} + v := &v18.ProposalDepositClaim{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -7568,15 +8115,449 @@ func (m *Action) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &v1alpha15.PositionOpen{} + v := &v15.PositionOpen{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Action = &Action_PositionOpen{v} + iNdEx = postIndex + case 31: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PositionClose", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTransaction + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTransaction + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTransaction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &v15.PositionClose{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Action = &Action_PositionClose{v} + iNdEx = postIndex + case 32: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PositionWithdraw", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTransaction + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTransaction + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTransaction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &v15.PositionWithdraw{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Action = &Action_PositionWithdraw{v} + iNdEx = postIndex + case 34: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PositionRewardClaim", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTransaction + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTransaction + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTransaction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &v15.PositionRewardClaim{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Action = &Action_PositionOpen{v} + m.Action = &Action_PositionRewardClaim{v} + iNdEx = postIndex + case 40: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Delegate", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTransaction + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTransaction + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTransaction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &v16.Delegate{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Action = &Action_Delegate{v} + iNdEx = postIndex + case 41: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Undelegate", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTransaction + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTransaction + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTransaction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &v16.Undelegate{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Action = &Action_Undelegate{v} + iNdEx = postIndex + case 42: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UndelegateClaim", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTransaction + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTransaction + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTransaction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &v16.UndelegateClaim{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Action = &Action_UndelegateClaim{v} + iNdEx = postIndex + case 50: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommunityPoolSpend", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTransaction + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTransaction + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTransaction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &v18.CommunityPoolSpend{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Action = &Action_CommunityPoolSpend{v} + iNdEx = postIndex + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommunityPoolOutput", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTransaction + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTransaction + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTransaction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &v18.CommunityPoolOutput{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Action = &Action_CommunityPoolOutput{v} + iNdEx = postIndex + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommunityPoolDeposit", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTransaction + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTransaction + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTransaction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &v18.CommunityPoolDeposit{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Action = &Action_CommunityPoolDeposit{v} + iNdEx = postIndex + case 200: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ics20Withdrawal", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTransaction + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTransaction + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTransaction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &v17.Ics20Withdrawal{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Action = &Action_Ics20Withdrawal{v} + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTransaction(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTransaction + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *TransactionPerspective) 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 ErrIntOverflowTransaction + } + 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: TransactionPerspective: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TransactionPerspective: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PayloadKeys", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTransaction + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTransaction + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTransaction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PayloadKeys = append(m.PayloadKeys, &PayloadKeyWithCommitment{}) + if err := m.PayloadKeys[len(m.PayloadKeys)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex - case 31: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PositionClose", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field SpendNullifiers", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -7603,15 +8584,14 @@ func (m *Action) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &v1alpha15.PositionClose{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.SpendNullifiers = append(m.SpendNullifiers, &NullifierWithNote{}) + if err := m.SpendNullifiers[len(m.SpendNullifiers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Action = &Action_PositionClose{v} iNdEx = postIndex - case 32: + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PositionWithdraw", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AdviceNotes", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -7638,15 +8618,14 @@ func (m *Action) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &v1alpha15.PositionWithdraw{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.AdviceNotes = append(m.AdviceNotes, &v14.Note{}) + if err := m.AdviceNotes[len(m.AdviceNotes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Action = &Action_PositionWithdraw{v} iNdEx = postIndex - case 34: + case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PositionRewardClaim", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AddressViews", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -7673,15 +8652,14 @@ func (m *Action) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &v1alpha15.PositionRewardClaim{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.AddressViews = append(m.AddressViews, &v19.AddressView{}) + if err := m.AddressViews[len(m.AddressViews)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Action = &Action_PositionRewardClaim{v} iNdEx = postIndex - case 40: + case 5: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Delegate", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Denoms", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -7708,15 +8686,14 @@ func (m *Action) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &v1alpha16.Delegate{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.Denoms = append(m.Denoms, &v110.Metadata{}) + if err := m.Denoms[len(m.Denoms)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Action = &Action_Delegate{v} iNdEx = postIndex - case 41: + case 6: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Undelegate", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TransactionId", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -7743,15 +8720,16 @@ func (m *Action) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &v1alpha16.Undelegate{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if m.TransactionId == nil { + m.TransactionId = &v111.TransactionId{} + } + if err := m.TransactionId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Action = &Action_Undelegate{v} iNdEx = postIndex - case 42: + case 20: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UndelegateClaim", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Prices", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -7778,15 +8756,14 @@ func (m *Action) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &v1alpha16.UndelegateClaim{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.Prices = append(m.Prices, &v110.EstimatedPrice{}) + if err := m.Prices[len(m.Prices)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Action = &Action_UndelegateClaim{v} iNdEx = postIndex - case 50: + case 30: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CommunityPoolSpend", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ExtendedMetadata", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -7813,15 +8790,14 @@ func (m *Action) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &v1alpha18.CommunityPoolSpend{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.ExtendedMetadata = append(m.ExtendedMetadata, &TransactionPerspective_ExtendedMetadataById{}) + if err := m.ExtendedMetadata[len(m.ExtendedMetadata)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Action = &Action_CommunityPoolSpend{v} iNdEx = postIndex - case 51: + case 40: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CommunityPoolOutput", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field CreationTransactionIdsByNullifier", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -7848,15 +8824,14 @@ func (m *Action) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &v1alpha18.CommunityPoolOutput{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.CreationTransactionIdsByNullifier = append(m.CreationTransactionIdsByNullifier, &TransactionPerspective_CreationTransactionIdByNullifier{}) + if err := m.CreationTransactionIdsByNullifier[len(m.CreationTransactionIdsByNullifier)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Action = &Action_CommunityPoolOutput{v} iNdEx = postIndex - case 52: + case 50: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CommunityPoolDeposit", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field NullificationTransactionIdsByCommitment", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -7883,15 +8858,14 @@ func (m *Action) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &v1alpha18.CommunityPoolDeposit{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.NullificationTransactionIdsByCommitment = append(m.NullificationTransactionIdsByCommitment, &TransactionPerspective_NullificationTransactionIdByCommitment{}) + if err := m.NullificationTransactionIdsByCommitment[len(m.NullificationTransactionIdsByCommitment)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Action = &Action_CommunityPoolDeposit{v} iNdEx = postIndex - case 200: + case 60: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Ics20Withdrawal", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field BatchSwapOutputData", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -7918,11 +8892,10 @@ func (m *Action) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &v1alpha17.Ics20Withdrawal{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.BatchSwapOutputData = append(m.BatchSwapOutputData, &v15.BatchSwapOutputData{}) + if err := m.BatchSwapOutputData[len(m.BatchSwapOutputData)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Action = &Action_Ics20Withdrawal{v} iNdEx = postIndex default: iNdEx = preIndex @@ -7945,7 +8918,7 @@ func (m *Action) Unmarshal(dAtA []byte) error { } return nil } -func (m *TransactionPerspective) Unmarshal(dAtA []byte) error { +func (m *TransactionPerspective_ExtendedMetadataById) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -7968,15 +8941,15 @@ func (m *TransactionPerspective) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: TransactionPerspective: wiretype end group for non-group") + return fmt.Errorf("proto: ExtendedMetadataById: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: TransactionPerspective: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ExtendedMetadataById: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PayloadKeys", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AssetId", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -8003,14 +8976,16 @@ func (m *TransactionPerspective) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.PayloadKeys = append(m.PayloadKeys, &PayloadKeyWithCommitment{}) - if err := m.PayloadKeys[len(m.PayloadKeys)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if m.AssetId == nil { + m.AssetId = &v110.AssetId{} + } + if err := m.AssetId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SpendNullifiers", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ExtendedMetadata", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -8037,14 +9012,66 @@ func (m *TransactionPerspective) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.SpendNullifiers = append(m.SpendNullifiers, &NullifierWithNote{}) - if err := m.SpendNullifiers[len(m.SpendNullifiers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if m.ExtendedMetadata == nil { + m.ExtendedMetadata = &types.Any{} + } + if err := m.ExtendedMetadata.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 3: + default: + iNdEx = preIndex + skippy, err := skipTransaction(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTransaction + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *TransactionPerspective_CreationTransactionIdByNullifier) 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 ErrIntOverflowTransaction + } + 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: CreationTransactionIdByNullifier: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CreationTransactionIdByNullifier: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AdviceNotes", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Nullifier", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -8071,14 +9098,16 @@ func (m *TransactionPerspective) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.AdviceNotes = append(m.AdviceNotes, &v1alpha14.Note{}) - if err := m.AdviceNotes[len(m.AdviceNotes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if m.Nullifier == nil { + m.Nullifier = &v112.Nullifier{} + } + if err := m.Nullifier.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 4: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AddressViews", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TransactionId", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -8105,14 +9134,66 @@ func (m *TransactionPerspective) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.AddressViews = append(m.AddressViews, &v1alpha19.AddressView{}) - if err := m.AddressViews[len(m.AddressViews)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if m.TransactionId == nil { + m.TransactionId = &v111.TransactionId{} + } + if err := m.TransactionId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 5: + default: + iNdEx = preIndex + skippy, err := skipTransaction(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTransaction + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *TransactionPerspective_NullificationTransactionIdByCommitment) 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 ErrIntOverflowTransaction + } + 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: NullificationTransactionIdByCommitment: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NullificationTransactionIdByCommitment: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Denoms", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Commitment", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -8139,12 +9220,14 @@ func (m *TransactionPerspective) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Denoms = append(m.Denoms, &v1alpha110.DenomMetadata{}) - if err := m.Denoms[len(m.Denoms)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if m.Commitment == nil { + m.Commitment = &v11.StateCommitment{} + } + if err := m.Commitment.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 6: + case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field TransactionId", wireType) } @@ -8174,7 +9257,7 @@ func (m *TransactionPerspective) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.TransactionId == nil { - m.TransactionId = &v1alpha111.TransactionId{} + m.TransactionId = &v111.TransactionId{} } if err := m.TransactionId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -8260,7 +9343,7 @@ func (m *PayloadKeyWithCommitment) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.PayloadKey == nil { - m.PayloadKey = &v1alpha19.PayloadKey{} + m.PayloadKey = &v19.PayloadKey{} } if err := m.PayloadKey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -8296,7 +9379,7 @@ func (m *PayloadKeyWithCommitment) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Commitment == nil { - m.Commitment = &v1alpha11.StateCommitment{} + m.Commitment = &v11.StateCommitment{} } if err := m.Commitment.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -8382,7 +9465,7 @@ func (m *NullifierWithNote) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Nullifier == nil { - m.Nullifier = &v1alpha112.Nullifier{} + m.Nullifier = &v112.Nullifier{} } if err := m.Nullifier.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -8418,7 +9501,7 @@ func (m *NullifierWithNote) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Note == nil { - m.Note = &v1alpha14.Note{} + m.Note = &v14.Note{} } if err := m.Note.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -8540,7 +9623,7 @@ func (m *TransactionView) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.BindingSig == nil { - m.BindingSig = &v1alpha1.BindingSignature{} + m.BindingSig = &v1.BindingSignature{} } if err := m.BindingSig.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -8576,7 +9659,7 @@ func (m *TransactionView) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Anchor == nil { - m.Anchor = &v1alpha11.MerkleRoot{} + m.Anchor = &v11.MerkleRoot{} } if err := m.Anchor.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -8853,7 +9936,7 @@ func (m *ActionView) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &v1alpha14.SpendView{} + v := &v14.SpendView{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -8888,7 +9971,7 @@ func (m *ActionView) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &v1alpha14.OutputView{} + v := &v14.OutputView{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -8923,7 +10006,7 @@ func (m *ActionView) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &v1alpha15.SwapView{} + v := &v15.SwapView{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -8958,7 +10041,7 @@ func (m *ActionView) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &v1alpha15.SwapClaimView{} + v := &v15.SwapClaimView{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -8993,7 +10076,7 @@ func (m *ActionView) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &v1alpha16.ValidatorDefinition{} + v := &v16.ValidatorDefinition{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -9028,7 +10111,7 @@ func (m *ActionView) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &v1alpha17.IbcRelay{} + v := &v17.IbcRelay{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -9063,7 +10146,7 @@ func (m *ActionView) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &v1alpha18.ProposalSubmit{} + v := &v18.ProposalSubmit{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -9098,7 +10181,7 @@ func (m *ActionView) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &v1alpha18.ProposalWithdraw{} + v := &v18.ProposalWithdraw{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -9133,7 +10216,7 @@ func (m *ActionView) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &v1alpha18.ValidatorVote{} + v := &v18.ValidatorVote{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -9168,7 +10251,7 @@ func (m *ActionView) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &v1alpha18.DelegatorVoteView{} + v := &v18.DelegatorVoteView{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -9203,7 +10286,7 @@ func (m *ActionView) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &v1alpha18.ProposalDepositClaim{} + v := &v18.ProposalDepositClaim{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -9238,7 +10321,7 @@ func (m *ActionView) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &v1alpha15.PositionOpen{} + v := &v15.PositionOpen{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -9273,7 +10356,7 @@ func (m *ActionView) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &v1alpha15.PositionClose{} + v := &v15.PositionClose{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -9308,7 +10391,7 @@ func (m *ActionView) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &v1alpha15.PositionWithdraw{} + v := &v15.PositionWithdraw{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -9343,7 +10426,7 @@ func (m *ActionView) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &v1alpha15.PositionRewardClaim{} + v := &v15.PositionRewardClaim{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -9378,7 +10461,7 @@ func (m *ActionView) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &v1alpha16.Delegate{} + v := &v16.Delegate{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -9413,7 +10496,7 @@ func (m *ActionView) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &v1alpha16.Undelegate{} + v := &v16.Undelegate{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -9448,7 +10531,7 @@ func (m *ActionView) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &v1alpha16.UndelegateClaim{} + v := &v16.UndelegateClaim{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -9483,7 +10566,7 @@ func (m *ActionView) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &v1alpha18.CommunityPoolSpend{} + v := &v18.CommunityPoolSpend{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -9518,7 +10601,7 @@ func (m *ActionView) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &v1alpha18.CommunityPoolOutput{} + v := &v18.CommunityPoolOutput{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -9553,7 +10636,7 @@ func (m *ActionView) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &v1alpha18.CommunityPoolDeposit{} + v := &v18.CommunityPoolDeposit{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -9588,7 +10671,7 @@ func (m *ActionView) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &v1alpha17.Ics20Withdrawal{} + v := &v17.Ics20Withdrawal{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -9674,7 +10757,7 @@ func (m *AuthorizationData) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.EffectHash == nil { - m.EffectHash = &v1alpha111.EffectHash{} + m.EffectHash = &v111.EffectHash{} } if err := m.EffectHash.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -9709,7 +10792,7 @@ func (m *AuthorizationData) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.SpendAuths = append(m.SpendAuths, &v1alpha1.SpendAuthSignature{}) + m.SpendAuths = append(m.SpendAuths, &v1.SpendAuthSignature{}) if err := m.SpendAuths[len(m.SpendAuths)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -9743,7 +10826,7 @@ func (m *AuthorizationData) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.DelegatorVoteAuths = append(m.DelegatorVoteAuths, &v1alpha1.SpendAuthSignature{}) + m.DelegatorVoteAuths = append(m.DelegatorVoteAuths, &v1.SpendAuthSignature{}) if err := m.DelegatorVoteAuths[len(m.DelegatorVoteAuths)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -9828,7 +10911,7 @@ func (m *WitnessData) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Anchor == nil { - m.Anchor = &v1alpha11.MerkleRoot{} + m.Anchor = &v11.MerkleRoot{} } if err := m.Anchor.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -9863,7 +10946,7 @@ func (m *WitnessData) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.StateCommitmentProofs = append(m.StateCommitmentProofs, &v1alpha11.StateCommitmentProof{}) + m.StateCommitmentProofs = append(m.StateCommitmentProofs, &v11.StateCommitmentProof{}) if err := m.StateCommitmentProofs[len(m.StateCommitmentProofs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -10223,7 +11306,7 @@ func (m *ActionPlan) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &v1alpha14.SpendPlan{} + v := &v14.SpendPlan{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -10258,7 +11341,7 @@ func (m *ActionPlan) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &v1alpha14.OutputPlan{} + v := &v14.OutputPlan{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -10293,7 +11376,7 @@ func (m *ActionPlan) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &v1alpha15.SwapPlan{} + v := &v15.SwapPlan{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -10328,7 +11411,7 @@ func (m *ActionPlan) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &v1alpha15.SwapClaimPlan{} + v := &v15.SwapClaimPlan{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -10363,7 +11446,7 @@ func (m *ActionPlan) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &v1alpha16.ValidatorDefinition{} + v := &v16.ValidatorDefinition{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -10398,7 +11481,7 @@ func (m *ActionPlan) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &v1alpha17.IbcRelay{} + v := &v17.IbcRelay{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -10433,7 +11516,7 @@ func (m *ActionPlan) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &v1alpha18.ProposalSubmit{} + v := &v18.ProposalSubmit{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -10468,7 +11551,7 @@ func (m *ActionPlan) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &v1alpha18.ProposalWithdraw{} + v := &v18.ProposalWithdraw{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -10503,7 +11586,7 @@ func (m *ActionPlan) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &v1alpha18.ValidatorVote{} + v := &v18.ValidatorVote{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -10538,7 +11621,7 @@ func (m *ActionPlan) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &v1alpha18.DelegatorVotePlan{} + v := &v18.DelegatorVotePlan{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -10573,15 +11656,15 @@ func (m *ActionPlan) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &v1alpha18.ProposalDepositClaim{} + v := &v18.ProposalDepositClaim{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } m.Action = &ActionPlan_ProposalDepositClaim{v} iNdEx = postIndex - case 23: + case 30: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Withdrawal", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field PositionOpen", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -10608,15 +11691,15 @@ func (m *ActionPlan) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &v1alpha17.Ics20Withdrawal{} + v := &v15.PositionOpen{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Action = &ActionPlan_Withdrawal{v} + m.Action = &ActionPlan_PositionOpen{v} iNdEx = postIndex - case 30: + case 31: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PositionOpen", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field PositionClose", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -10643,15 +11726,15 @@ func (m *ActionPlan) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &v1alpha15.PositionOpen{} + v := &v15.PositionClose{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Action = &ActionPlan_PositionOpen{v} + m.Action = &ActionPlan_PositionClose{v} iNdEx = postIndex - case 31: + case 32: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PositionClose", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field PositionWithdraw", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -10678,15 +11761,15 @@ func (m *ActionPlan) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &v1alpha15.PositionClose{} + v := &v15.PositionWithdrawPlan{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Action = &ActionPlan_PositionClose{v} + m.Action = &ActionPlan_PositionWithdraw{v} iNdEx = postIndex - case 32: + case 34: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PositionWithdraw", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field PositionRewardClaim", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -10713,15 +11796,15 @@ func (m *ActionPlan) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &v1alpha15.PositionWithdrawPlan{} + v := &v15.PositionRewardClaimPlan{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Action = &ActionPlan_PositionWithdraw{v} + m.Action = &ActionPlan_PositionRewardClaim{v} iNdEx = postIndex - case 34: + case 40: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PositionRewardClaim", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Delegate", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -10748,15 +11831,15 @@ func (m *ActionPlan) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &v1alpha15.PositionRewardClaimPlan{} + v := &v16.Delegate{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Action = &ActionPlan_PositionRewardClaim{v} + m.Action = &ActionPlan_Delegate{v} iNdEx = postIndex - case 40: + case 41: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Delegate", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Undelegate", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -10783,15 +11866,15 @@ func (m *ActionPlan) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &v1alpha16.Delegate{} + v := &v16.Undelegate{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Action = &ActionPlan_Delegate{v} + m.Action = &ActionPlan_Undelegate{v} iNdEx = postIndex - case 41: + case 42: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Undelegate", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field UndelegateClaim", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -10818,15 +11901,15 @@ func (m *ActionPlan) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &v1alpha16.Undelegate{} + v := &v16.UndelegateClaimPlan{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Action = &ActionPlan_Undelegate{v} + m.Action = &ActionPlan_UndelegateClaim{v} iNdEx = postIndex - case 42: + case 50: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UndelegateClaim", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field CommunityPoolSpend", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -10853,15 +11936,15 @@ func (m *ActionPlan) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &v1alpha16.UndelegateClaimPlan{} + v := &v18.CommunityPoolSpend{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Action = &ActionPlan_UndelegateClaim{v} + m.Action = &ActionPlan_CommunityPoolSpend{v} iNdEx = postIndex - case 50: + case 51: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CommunityPoolSpend", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field CommunityPoolOutput", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -10888,15 +11971,15 @@ func (m *ActionPlan) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &v1alpha18.CommunityPoolSpend{} + v := &v18.CommunityPoolOutput{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Action = &ActionPlan_CommunityPoolSpend{v} + m.Action = &ActionPlan_CommunityPoolOutput{v} iNdEx = postIndex - case 51: + case 52: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CommunityPoolOutput", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field CommunityPoolDeposit", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -10923,15 +12006,15 @@ func (m *ActionPlan) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &v1alpha18.CommunityPoolOutput{} + v := &v18.CommunityPoolDeposit{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Action = &ActionPlan_CommunityPoolOutput{v} + m.Action = &ActionPlan_CommunityPoolDeposit{v} iNdEx = postIndex - case 52: + case 200: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CommunityPoolDeposit", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Ics20Withdrawal", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -10958,11 +12041,11 @@ func (m *ActionPlan) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &v1alpha18.CommunityPoolDeposit{} + v := &v17.Ics20Withdrawal{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Action = &ActionPlan_CommunityPoolDeposit{v} + m.Action = &ActionPlan_Ics20Withdrawal{v} iNdEx = postIndex default: iNdEx = preIndex @@ -11044,7 +12127,7 @@ func (m *CluePlan) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Address == nil { - m.Address = &v1alpha19.Address{} + m.Address = &v19.Address{} } if err := m.Address.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -11387,7 +12470,7 @@ func (m *MemoPlaintext) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.ReturnAddress == nil { - m.ReturnAddress = &v1alpha19.Address{} + m.ReturnAddress = &v19.Address{} } if err := m.ReturnAddress.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -11505,7 +12588,7 @@ func (m *MemoPlaintextView) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.ReturnAddress == nil { - m.ReturnAddress = &v1alpha19.AddressView{} + m.ReturnAddress = &v19.AddressView{} } if err := m.ReturnAddress.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err diff --git a/relayer/chains/penumbra/core/txhash/v1alpha1/txhash.pb.go b/relayer/chains/penumbra/core/txhash/v1/txhash.pb.go similarity index 84% rename from relayer/chains/penumbra/core/txhash/v1alpha1/txhash.pb.go rename to relayer/chains/penumbra/core/txhash/v1/txhash.pb.go index 5e1a33653..38d267899 100644 --- a/relayer/chains/penumbra/core/txhash/v1alpha1/txhash.pb.go +++ b/relayer/chains/penumbra/core/txhash/v1/txhash.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: penumbra/core/txhash/v1alpha1/txhash.proto +// source: penumbra/core/txhash/v1/txhash.proto -package txhashv1alpha1 +package txhashv1 import ( fmt "fmt" @@ -32,7 +32,7 @@ func (m *EffectHash) Reset() { *m = EffectHash{} } func (m *EffectHash) String() string { return proto.CompactTextString(m) } func (*EffectHash) ProtoMessage() {} func (*EffectHash) Descriptor() ([]byte, []int) { - return fileDescriptor_be98fc5f1d1ce16e, []int{0} + return fileDescriptor_c59a591286b5edd2, []int{0} } func (m *EffectHash) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -79,7 +79,7 @@ func (m *TransactionId) Reset() { *m = TransactionId{} } func (m *TransactionId) String() string { return proto.CompactTextString(m) } func (*TransactionId) ProtoMessage() {} func (*TransactionId) Descriptor() ([]byte, []int) { - return fileDescriptor_be98fc5f1d1ce16e, []int{1} + return fileDescriptor_c59a591286b5edd2, []int{1} } func (m *TransactionId) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -116,35 +116,34 @@ func (m *TransactionId) GetInner() []byte { } func init() { - proto.RegisterType((*EffectHash)(nil), "penumbra.core.txhash.v1alpha1.EffectHash") - proto.RegisterType((*TransactionId)(nil), "penumbra.core.txhash.v1alpha1.TransactionId") + proto.RegisterType((*EffectHash)(nil), "penumbra.core.txhash.v1.EffectHash") + proto.RegisterType((*TransactionId)(nil), "penumbra.core.txhash.v1.TransactionId") } func init() { - proto.RegisterFile("penumbra/core/txhash/v1alpha1/txhash.proto", fileDescriptor_be98fc5f1d1ce16e) + proto.RegisterFile("penumbra/core/txhash/v1/txhash.proto", fileDescriptor_c59a591286b5edd2) } -var fileDescriptor_be98fc5f1d1ce16e = []byte{ - // 292 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0x2a, 0x48, 0xcd, 0x2b, +var fileDescriptor_c59a591286b5edd2 = []byte{ + // 285 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x29, 0x48, 0xcd, 0x2b, 0xcd, 0x4d, 0x2a,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 0x87, 0x71, 0x17, 0x31, 0x31, - 0x07, 0x38, 0x87, 0xac, 0x62, 0x92, 0x0d, 0x80, 0x39, 0xc7, 0x19, 0xe4, 0x1c, 0x88, 0xed, 0x7a, - 0x61, 0x50, 0x55, 0xa7, 0x10, 0xf2, 0x31, 0x20, 0xf9, 0x18, 0x88, 0x7c, 0x0c, 0x4c, 0xfe, 0x11, - 0x93, 0x26, 0x5e, 0xf9, 0x18, 0xf7, 0x00, 0x27, 0xdf, 0xd4, 0x92, 0xc4, 0x94, 0xc4, 0x92, 0xc4, - 0x57, 0x4c, 0x0a, 0x30, 0xb5, 0x56, 0x56, 0x20, 0xc5, 0x56, 0x56, 0x10, 0xd5, 0x56, 0x56, 0x30, - 0xe5, 0x49, 0x6c, 0xe0, 0xc8, 0x32, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0x59, 0x73, 0x13, 0x3f, - 0xda, 0x01, 0x00, 0x00, + 0xd0, 0x2f, 0x33, 0x84, 0xb2, 0xf4, 0x0a, 0x8a, 0xf2, 0x4b, 0xf2, 0x85, 0xc4, 0x61, 0xaa, 0xf4, + 0x40, 0xaa, 0xf4, 0xa0, 0x72, 0x65, 0x86, 0x4a, 0x4a, 0x5c, 0x5c, 0xae, 0x69, 0x69, 0xa9, 0xc9, + 0x25, 0x1e, 0x89, 0xc5, 0x19, 0x42, 0x22, 0x5c, 0xac, 0x99, 0x79, 0x79, 0xa9, 0x45, 0x12, 0x8c, + 0x0a, 0x8c, 0x1a, 0x3c, 0x41, 0x10, 0x8e, 0x92, 0x2a, 0x17, 0x6f, 0x48, 0x51, 0x62, 0x5e, 0x71, + 0x62, 0x72, 0x49, 0x66, 0x7e, 0x9e, 0x67, 0x0a, 0x76, 0x65, 0x4e, 0xfd, 0x4c, 0x27, 0x1e, 0xc9, + 0x31, 0x5e, 0x78, 0x24, 0xc7, 0xf8, 0xe0, 0x91, 0x1c, 0xe3, 0x84, 0xc7, 0x72, 0x0c, 0x17, 0x1e, + 0xcb, 0x31, 0xdc, 0x78, 0x2c, 0xc7, 0xc0, 0x25, 0x9d, 0x9c, 0x9f, 0xab, 0x87, 0xc3, 0x09, 0x4e, + 0xdc, 0x21, 0x60, 0x66, 0x00, 0xc8, 0xa1, 0x01, 0x8c, 0x51, 0x3e, 0xe9, 0x99, 0x25, 0x19, 0xa5, + 0x49, 0x7a, 0xc9, 0xf9, 0xb9, 0xfa, 0xc9, 0xf9, 0xc5, 0xb9, 0xf9, 0xc5, 0xfa, 0x45, 0xa9, 0x39, + 0x89, 0x95, 0xa9, 0x45, 0xfa, 0x65, 0x46, 0x70, 0x66, 0x72, 0x46, 0x62, 0x66, 0x5e, 0xb1, 0x3e, + 0x0e, 0xcf, 0x5b, 0x43, 0x58, 0x65, 0x86, 0x8b, 0x98, 0x98, 0x03, 0x9c, 0x43, 0x56, 0x31, 0x89, + 0x07, 0xc0, 0x2c, 0x77, 0x06, 0x59, 0x0e, 0xb1, 0x51, 0x2f, 0xcc, 0xf0, 0x14, 0x42, 0x26, 0x06, + 0x24, 0x13, 0x03, 0x91, 0x89, 0x09, 0x33, 0x7c, 0xc4, 0xa4, 0x8c, 0x43, 0x26, 0xc6, 0x3d, 0xc0, + 0xc9, 0x37, 0xb5, 0x24, 0x31, 0x25, 0xb1, 0x24, 0xf1, 0x15, 0x93, 0x14, 0x4c, 0x95, 0x95, 0x15, + 0x48, 0x99, 0x95, 0x15, 0x44, 0x9d, 0x95, 0x55, 0x98, 0x61, 0x12, 0x1b, 0x38, 0xf0, 0x8d, 0x01, + 0x01, 0x00, 0x00, 0xff, 0xff, 0xa1, 0x44, 0x06, 0x7d, 0xa4, 0x01, 0x00, 0x00, } func (m *EffectHash) Marshal() (dAtA []byte, err error) { diff --git a/relayer/chains/penumbra/crypto/decaf377_fmd/v1alpha1/decaf377_fmd.pb.go b/relayer/chains/penumbra/crypto/decaf377_fmd/v1/decaf377_fmd.pb.go similarity index 78% rename from relayer/chains/penumbra/crypto/decaf377_fmd/v1alpha1/decaf377_fmd.pb.go rename to relayer/chains/penumbra/crypto/decaf377_fmd/v1/decaf377_fmd.pb.go index 7172af1e0..6f15d8bb2 100644 --- a/relayer/chains/penumbra/crypto/decaf377_fmd/v1alpha1/decaf377_fmd.pb.go +++ b/relayer/chains/penumbra/crypto/decaf377_fmd/v1/decaf377_fmd.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: penumbra/crypto/decaf377_fmd/v1alpha1/decaf377_fmd.proto +// source: penumbra/crypto/decaf377_fmd/v1/decaf377_fmd.proto -package decaf377_fmdv1alpha1 +package decaf377_fmdv1 import ( fmt "fmt" @@ -31,7 +31,7 @@ func (m *Clue) Reset() { *m = Clue{} } func (m *Clue) String() string { return proto.CompactTextString(m) } func (*Clue) ProtoMessage() {} func (*Clue) Descriptor() ([]byte, []int) { - return fileDescriptor_5575e9604747910d, []int{0} + return fileDescriptor_85fd7d84b4ad102e, []int{0} } func (m *Clue) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -68,33 +68,32 @@ func (m *Clue) GetInner() []byte { } func init() { - proto.RegisterType((*Clue)(nil), "penumbra.crypto.decaf377_fmd.v1alpha1.Clue") + proto.RegisterType((*Clue)(nil), "penumbra.crypto.decaf377_fmd.v1.Clue") } func init() { - proto.RegisterFile("penumbra/crypto/decaf377_fmd/v1alpha1/decaf377_fmd.proto", fileDescriptor_5575e9604747910d) + proto.RegisterFile("penumbra/crypto/decaf377_fmd/v1/decaf377_fmd.proto", fileDescriptor_85fd7d84b4ad102e) } -var fileDescriptor_5575e9604747910d = []byte{ - // 280 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xb2, 0x28, 0x48, 0xcd, 0x2b, +var fileDescriptor_85fd7d84b4ad102e = []byte{ + // 272 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02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 0xc1, - 0x45, 0x4c, 0xcc, 0x01, 0xce, 0x2e, 0xab, 0x98, 0x54, 0x02, 0x60, 0x2e, 0x75, 0x86, 0xb8, 0x14, - 0xc9, 0x49, 0x7a, 0x61, 0x50, 0xc5, 0xa7, 0x10, 0xca, 0x62, 0x20, 0xca, 0x62, 0x90, 0x94, 0xc5, - 0xc0, 0x94, 0x3d, 0x62, 0x32, 0x20, 0x46, 0x59, 0x8c, 0x7b, 0x80, 0x93, 0x6f, 0x6a, 0x49, 0x62, - 0x4a, 0x62, 0x49, 0xe2, 0x2b, 0x26, 0x75, 0x98, 0x16, 0x2b, 0x2b, 0x88, 0x1e, 0x2b, 0x2b, 0x24, - 0x4d, 0x56, 0x56, 0x30, 0x5d, 0x49, 0x6c, 0xe0, 0xe8, 0x33, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, - 0x5b, 0x42, 0x57, 0xa7, 0xfa, 0x01, 0x00, 0x00, + 0x4c, 0x33, 0x36, 0x37, 0x8f, 0x4f, 0xcb, 0x4d, 0xd1, 0x2f, 0x33, 0x44, 0xe1, 0xeb, 0x15, 0x14, + 0xe5, 0x97, 0xe4, 0x0b, 0xc9, 0xc3, 0xf4, 0xe8, 0x41, 0xf4, 0xe8, 0xa1, 0xa8, 0x29, 0x33, 0x54, + 0x92, 0xe1, 0x62, 0x71, 0xce, 0x29, 0x4d, 0x15, 0x12, 0xe1, 0x62, 0xcd, 0xcc, 0xcb, 0x4b, 0x2d, + 0x92, 0x60, 0x54, 0x60, 0xd4, 0xe0, 0x09, 0x82, 0x70, 0x9c, 0x8e, 0x31, 0x9d, 0x78, 0x24, 0xc7, + 0x78, 0xe1, 0x91, 0x1c, 0xe3, 0x83, 0x47, 0x72, 0x8c, 0x13, 0x1e, 0xcb, 0x31, 0x5c, 0x78, 0x2c, + 0xc7, 0x70, 0xe3, 0xb1, 0x1c, 0x03, 0x97, 0x72, 0x72, 0x7e, 0xae, 0x1e, 0x01, 0xd3, 0x9d, 0x04, + 0x5c, 0xa0, 0x02, 0x6e, 0xb9, 0x29, 0x01, 0x20, 0x07, 0x05, 0x30, 0x46, 0x45, 0xa5, 0x67, 0x96, + 0x64, 0x94, 0x26, 0xe9, 0x25, 0xe7, 0xe7, 0xea, 0x27, 0xe7, 0x17, 0xe7, 0xe6, 0x17, 0xeb, 0x17, + 0xa5, 0xe6, 0x24, 0x56, 0xa6, 0x16, 0xe9, 0x97, 0x19, 0xc1, 0x99, 0xc9, 0x19, 0x89, 0x99, 0x79, + 0xc5, 0xfa, 0x04, 0xbc, 0x6c, 0x8d, 0xcc, 0x2f, 0x33, 0x5c, 0xc4, 0xc4, 0x1c, 0xe0, 0xec, 0xb2, + 0x8a, 0x49, 0x2e, 0x00, 0xe6, 0x2e, 0x67, 0x88, 0xbb, 0x90, 0x9c, 0xa1, 0x17, 0x66, 0x78, 0x0a, + 0xa1, 0x20, 0x06, 0xa2, 0x20, 0x06, 0x49, 0x41, 0x4c, 0x98, 0xe1, 0x23, 0x26, 0x2d, 0xfc, 0x0a, + 0x62, 0xdc, 0x03, 0x9c, 0x7c, 0x53, 0x4b, 0x12, 0x53, 0x12, 0x4b, 0x12, 0x5f, 0x31, 0x29, 0xc2, + 0x14, 0x5b, 0x59, 0x41, 0x54, 0x5b, 0x59, 0x21, 0x29, 0xb7, 0xb2, 0x0a, 0x33, 0x4c, 0x62, 0x03, + 0x47, 0x87, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, 0x0a, 0x26, 0xec, 0x07, 0xc4, 0x01, 0x00, 0x00, } func (m *Clue) Marshal() (dAtA []byte, err error) { diff --git a/relayer/chains/penumbra/crypto/decaf377_frost/v1alpha1/decaf377_frost.pb.go b/relayer/chains/penumbra/crypto/decaf377_frost/v1/decaf377_frost.pb.go similarity index 89% rename from relayer/chains/penumbra/crypto/decaf377_frost/v1alpha1/decaf377_frost.pb.go rename to relayer/chains/penumbra/crypto/decaf377_frost/v1/decaf377_frost.pb.go index 36bd3d228..cd3dce766 100644 --- a/relayer/chains/penumbra/crypto/decaf377_frost/v1alpha1/decaf377_frost.pb.go +++ b/relayer/chains/penumbra/crypto/decaf377_frost/v1/decaf377_frost.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: penumbra/crypto/decaf377_frost/v1alpha1/decaf377_frost.proto +// source: penumbra/crypto/decaf377_frost/v1/decaf377_frost.proto -package decaf377_frostv1alpha1 +package decaf377_frostv1 import ( fmt "fmt" @@ -32,7 +32,7 @@ func (m *VerifiableSecretSharingCommitment) Reset() { *m = VerifiableSec func (m *VerifiableSecretSharingCommitment) String() string { return proto.CompactTextString(m) } func (*VerifiableSecretSharingCommitment) ProtoMessage() {} func (*VerifiableSecretSharingCommitment) Descriptor() ([]byte, []int) { - return fileDescriptor_30ad30621755e0d6, []int{0} + return fileDescriptor_b4822bfeb2663db2, []int{0} } func (m *VerifiableSecretSharingCommitment) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -80,7 +80,7 @@ func (m *DKGRound1Package) Reset() { *m = DKGRound1Package{} } func (m *DKGRound1Package) String() string { return proto.CompactTextString(m) } func (*DKGRound1Package) ProtoMessage() {} func (*DKGRound1Package) Descriptor() ([]byte, []int) { - return fileDescriptor_30ad30621755e0d6, []int{1} + return fileDescriptor_b4822bfeb2663db2, []int{1} } func (m *DKGRound1Package) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -133,7 +133,7 @@ func (m *SigningShare) Reset() { *m = SigningShare{} } func (m *SigningShare) String() string { return proto.CompactTextString(m) } func (*SigningShare) ProtoMessage() {} func (*SigningShare) Descriptor() ([]byte, []int) { - return fileDescriptor_30ad30621755e0d6, []int{2} + return fileDescriptor_b4822bfeb2663db2, []int{2} } func (m *SigningShare) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -179,7 +179,7 @@ func (m *DKGRound2Package) Reset() { *m = DKGRound2Package{} } func (m *DKGRound2Package) String() string { return proto.CompactTextString(m) } func (*DKGRound2Package) ProtoMessage() {} func (*DKGRound2Package) Descriptor() ([]byte, []int) { - return fileDescriptor_30ad30621755e0d6, []int{3} + return fileDescriptor_b4822bfeb2663db2, []int{3} } func (m *DKGRound2Package) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -225,7 +225,7 @@ func (m *NonceCommitment) Reset() { *m = NonceCommitment{} } func (m *NonceCommitment) String() string { return proto.CompactTextString(m) } func (*NonceCommitment) ProtoMessage() {} func (*NonceCommitment) Descriptor() ([]byte, []int) { - return fileDescriptor_30ad30621755e0d6, []int{4} + return fileDescriptor_b4822bfeb2663db2, []int{4} } func (m *NonceCommitment) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -273,7 +273,7 @@ func (m *SigningCommitments) Reset() { *m = SigningCommitments{} } func (m *SigningCommitments) String() string { return proto.CompactTextString(m) } func (*SigningCommitments) ProtoMessage() {} func (*SigningCommitments) Descriptor() ([]byte, []int) { - return fileDescriptor_30ad30621755e0d6, []int{5} + return fileDescriptor_b4822bfeb2663db2, []int{5} } func (m *SigningCommitments) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -326,7 +326,7 @@ func (m *SignatureShare) Reset() { *m = SignatureShare{} } func (m *SignatureShare) String() string { return proto.CompactTextString(m) } func (*SignatureShare) ProtoMessage() {} func (*SignatureShare) Descriptor() ([]byte, []int) { - return fileDescriptor_30ad30621755e0d6, []int{6} + return fileDescriptor_b4822bfeb2663db2, []int{6} } func (m *SignatureShare) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -363,54 +363,53 @@ func (m *SignatureShare) GetScalar() []byte { } func init() { - proto.RegisterType((*VerifiableSecretSharingCommitment)(nil), "penumbra.crypto.decaf377_frost.v1alpha1.VerifiableSecretSharingCommitment") - proto.RegisterType((*DKGRound1Package)(nil), "penumbra.crypto.decaf377_frost.v1alpha1.DKGRound1Package") - proto.RegisterType((*SigningShare)(nil), "penumbra.crypto.decaf377_frost.v1alpha1.SigningShare") - proto.RegisterType((*DKGRound2Package)(nil), "penumbra.crypto.decaf377_frost.v1alpha1.DKGRound2Package") - proto.RegisterType((*NonceCommitment)(nil), "penumbra.crypto.decaf377_frost.v1alpha1.NonceCommitment") - proto.RegisterType((*SigningCommitments)(nil), "penumbra.crypto.decaf377_frost.v1alpha1.SigningCommitments") - proto.RegisterType((*SignatureShare)(nil), "penumbra.crypto.decaf377_frost.v1alpha1.SignatureShare") + proto.RegisterType((*VerifiableSecretSharingCommitment)(nil), "penumbra.crypto.decaf377_frost.v1.VerifiableSecretSharingCommitment") + proto.RegisterType((*DKGRound1Package)(nil), "penumbra.crypto.decaf377_frost.v1.DKGRound1Package") + proto.RegisterType((*SigningShare)(nil), "penumbra.crypto.decaf377_frost.v1.SigningShare") + proto.RegisterType((*DKGRound2Package)(nil), "penumbra.crypto.decaf377_frost.v1.DKGRound2Package") + proto.RegisterType((*NonceCommitment)(nil), "penumbra.crypto.decaf377_frost.v1.NonceCommitment") + proto.RegisterType((*SigningCommitments)(nil), "penumbra.crypto.decaf377_frost.v1.SigningCommitments") + proto.RegisterType((*SignatureShare)(nil), "penumbra.crypto.decaf377_frost.v1.SignatureShare") } func init() { - proto.RegisterFile("penumbra/crypto/decaf377_frost/v1alpha1/decaf377_frost.proto", fileDescriptor_30ad30621755e0d6) -} - -var fileDescriptor_30ad30621755e0d6 = []byte{ - // 518 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x94, 0x4f, 0x8b, 0x13, 0x31, - 0x18, 0xc6, 0x9b, 0x29, 0x74, 0x25, 0x56, 0x5d, 0x72, 0x90, 0xe2, 0x61, 0xa8, 0x73, 0x58, 0x2b, - 0x2b, 0x33, 0xb4, 0x8b, 0xac, 0x8c, 0x82, 0xd0, 0x16, 0x17, 0x5c, 0xd4, 0x61, 0x0a, 0x7b, 0x58, - 0x0a, 0x25, 0x4d, 0x33, 0xd3, 0xec, 0xce, 0x24, 0x25, 0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9a, 0xe0, 0x6b, 0x2a, 0xbd, 0xab, 0xd6, 0x6a, 0x49, 0xc6, 0x98, - 0x71, 0xe5, 0x15, 0x7c, 0x8c, 0x2f, 0xb7, 0xfb, 0xa6, 0xfd, 0xc5, 0x2a, 0x07, 0x9d, 0xee, 0x57, - 0xeb, 0x20, 0x30, 0xc4, 0x9d, 0x25, 0xf1, 0x16, 0x98, 0x7b, 0x96, 0xcb, 0x7f, 0xae, 0x85, 0xfd, - 0xa5, 0xb0, 0xbf, 0x25, 0xec, 0x1b, 0xe1, 0xcc, 0x6a, 0x15, 0x13, 0xf6, 0x4f, 0x82, 0xf6, 0x3b, - 0xaa, 0xf1, 0x08, 0x6b, 0xfc, 0xc7, 0x7a, 0x6a, 0x4c, 0xbe, 0xbf, 0x74, 0xf9, 0xfe, 0x96, 0xcd, - 0xf7, 0x8d, 0x6f, 0x58, 0x59, 0xfc, 0x4e, 0x8e, 0xfe, 0x06, 0x00, 0x00, 0xff, 0xff, 0x01, 0xef, - 0xb3, 0x04, 0x8e, 0x04, 0x00, 0x00, + proto.RegisterFile("penumbra/crypto/decaf377_frost/v1/decaf377_frost.proto", fileDescriptor_b4822bfeb2663db2) +} + +var fileDescriptor_b4822bfeb2663db2 = []byte{ + // 511 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x94, 0x4f, 0x8b, 0xd3, 0x40, + 0x18, 0xc6, 0x3b, 0x59, 0xe8, 0xca, 0x58, 0x75, 0x99, 0x83, 0x14, 0x0f, 0xa1, 0x1b, 0x51, 0x0a, + 0x2e, 0x09, 0xe9, 0x82, 0x0b, 0xf1, 0x20, 0xb4, 0xc5, 0x05, 0xd7, 0x3f, 0x21, 0x95, 0x1e, 0xa4, + 0x58, 0xa6, 0x93, 0x49, 0x3a, 0x6c, 0x33, 0x53, 0x66, 0xa6, 0x95, 0xfd, 0x16, 0x7e, 0x06, 0x0f, + 0x1e, 0x3c, 0xf8, 0x39, 0xc4, 0xd3, 0x9e, 0xc4, 0xa3, 0xb4, 0x37, 0x3f, 0x85, 0xa4, 0x49, 0xfa, + 0xef, 0x60, 0x16, 0x6f, 0xf3, 0xbe, 0x79, 0x9e, 0x67, 0x7e, 0xef, 0x4b, 0x12, 0xf8, 0x74, 0x4a, + 0xf9, 0x2c, 0x19, 0x49, 0xec, 0x10, 0x79, 0x35, 0xd5, 0xc2, 0x09, 0x29, 0xc1, 0xd1, 0xe9, 0xd9, + 0xd9, 0x30, 0x92, 0x42, 0x69, 0x67, 0xee, 0xee, 0x75, 0xec, 0xa9, 0x14, 0x5a, 0xa0, 0xe3, 0xc2, + 0x67, 0x67, 0x3e, 0x7b, 0x4f, 0x35, 0x77, 0xad, 0xe7, 0xf0, 0xb8, 0x4f, 0x25, 0x8b, 0x18, 0x1e, + 0x4d, 0x68, 0x8f, 0x12, 0x49, 0x75, 0x6f, 0x8c, 0x25, 0xe3, 0x71, 0x47, 0x24, 0x09, 0xd3, 0x09, + 0xe5, 0x1a, 0x3d, 0x80, 0xb7, 0xe8, 0x84, 0xa6, 0x47, 0x55, 0x07, 0x8d, 0x83, 0x66, 0x2d, 0x58, + 0xd7, 0xd6, 0x17, 0x00, 0x8f, 0xba, 0x17, 0xe7, 0x81, 0x98, 0xf1, 0xd0, 0xf5, 0x31, 0xb9, 0xc4, + 0x31, 0x45, 0x21, 0x84, 0x64, 0x6d, 0xaf, 0x83, 0x06, 0x68, 0xde, 0x6e, 0x75, 0xed, 0x52, 0x1a, + 0xbb, 0x14, 0x25, 0xd8, 0xca, 0x45, 0x27, 0x10, 0x4d, 0xa5, 0x10, 0xd1, 0x50, 0x44, 0xc3, 0x4b, + 0x2e, 0x3e, 0x4e, 0x68, 0x18, 0xd3, 0xba, 0xd1, 0x00, 0xcd, 0x5a, 0x70, 0xb4, 0x7a, 0xf2, 0x36, + 0xba, 0x28, 0xfa, 0xd6, 0x63, 0x58, 0xeb, 0xb1, 0x98, 0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, + 0x76, 0x3b, 0x73, 0xf7, 0xb3, 0x71, 0xe0, 0x77, 0xba, 0x5f, 0x8d, 0x86, 0x5f, 0xf0, 0x75, 0x32, + 0xbe, 0x1d, 0x18, 0xbb, 0xef, 0xfe, 0xd8, 0x48, 0x06, 0x99, 0x64, 0xb0, 0x23, 0x19, 0xf4, 0xdd, + 0x85, 0x71, 0x52, 0x26, 0x19, 0x9c, 0xfb, 0xed, 0xd7, 0x54, 0xe3, 0x10, 0x6b, 0xfc, 0xc7, 0x78, + 0x58, 0xc8, 0x3d, 0x2f, 0xd3, 0x7b, 0xde, 0x8e, 0xc1, 0xf3, 0xfa, 0xee, 0xa8, 0xba, 0xfa, 0x0d, + 0x9c, 0xfe, 0x0d, 0x00, 0x00, 0xff, 0xff, 0x7e, 0x00, 0x87, 0xc9, 0x40, 0x04, 0x00, 0x00, } func (m *VerifiableSecretSharingCommitment) Marshal() (dAtA []byte, err error) { diff --git a/relayer/chains/penumbra/crypto/decaf377_rdsa/v1alpha1/decaf377_rdsa.pb.go b/relayer/chains/penumbra/crypto/decaf377_rdsa/v1/decaf377_rdsa.pb.go similarity index 84% rename from relayer/chains/penumbra/crypto/decaf377_rdsa/v1alpha1/decaf377_rdsa.pb.go rename to relayer/chains/penumbra/crypto/decaf377_rdsa/v1/decaf377_rdsa.pb.go index 512f905e6..1732db883 100644 --- a/relayer/chains/penumbra/crypto/decaf377_rdsa/v1alpha1/decaf377_rdsa.pb.go +++ b/relayer/chains/penumbra/crypto/decaf377_rdsa/v1/decaf377_rdsa.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: penumbra/crypto/decaf377_rdsa/v1alpha1/decaf377_rdsa.proto +// source: penumbra/crypto/decaf377_rdsa/v1/decaf377_rdsa.proto -package decaf377_rdsav1alpha1 +package decaf377_rdsav1 import ( fmt "fmt" @@ -30,7 +30,7 @@ func (m *SpendAuthSignature) Reset() { *m = SpendAuthSignature{} } func (m *SpendAuthSignature) String() string { return proto.CompactTextString(m) } func (*SpendAuthSignature) ProtoMessage() {} func (*SpendAuthSignature) Descriptor() ([]byte, []int) { - return fileDescriptor_5769d4d01f5df277, []int{0} + return fileDescriptor_70f2e93711fd8093, []int{0} } func (m *SpendAuthSignature) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -74,7 +74,7 @@ func (m *BindingSignature) Reset() { *m = BindingSignature{} } func (m *BindingSignature) String() string { return proto.CompactTextString(m) } func (*BindingSignature) ProtoMessage() {} func (*BindingSignature) Descriptor() ([]byte, []int) { - return fileDescriptor_5769d4d01f5df277, []int{1} + return fileDescriptor_70f2e93711fd8093, []int{1} } func (m *BindingSignature) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -118,7 +118,7 @@ func (m *SpendVerificationKey) Reset() { *m = SpendVerificationKey{} } func (m *SpendVerificationKey) String() string { return proto.CompactTextString(m) } func (*SpendVerificationKey) ProtoMessage() {} func (*SpendVerificationKey) Descriptor() ([]byte, []int) { - return fileDescriptor_5769d4d01f5df277, []int{2} + return fileDescriptor_70f2e93711fd8093, []int{2} } func (m *SpendVerificationKey) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -155,38 +155,38 @@ func (m *SpendVerificationKey) GetInner() []byte { } func init() { - proto.RegisterType((*SpendAuthSignature)(nil), "penumbra.crypto.decaf377_rdsa.v1alpha1.SpendAuthSignature") - proto.RegisterType((*BindingSignature)(nil), "penumbra.crypto.decaf377_rdsa.v1alpha1.BindingSignature") - proto.RegisterType((*SpendVerificationKey)(nil), "penumbra.crypto.decaf377_rdsa.v1alpha1.SpendVerificationKey") + proto.RegisterType((*SpendAuthSignature)(nil), "penumbra.crypto.decaf377_rdsa.v1.SpendAuthSignature") + proto.RegisterType((*BindingSignature)(nil), "penumbra.crypto.decaf377_rdsa.v1.BindingSignature") + proto.RegisterType((*SpendVerificationKey)(nil), "penumbra.crypto.decaf377_rdsa.v1.SpendVerificationKey") } func init() { - proto.RegisterFile("penumbra/crypto/decaf377_rdsa/v1alpha1/decaf377_rdsa.proto", fileDescriptor_5769d4d01f5df277) -} - -var fileDescriptor_5769d4d01f5df277 = []byte{ - // 332 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0xb1, 0x4a, 0x03, 0x31, - 0x18, 0xc7, 0x7b, 0x27, 0x3a, 0x1c, 0x0e, 0x5a, 0x3a, 0x38, 0x1d, 0x52, 0x50, 0x4a, 0x91, 0x84, - 0xda, 0xa1, 0x10, 0x27, 0xaf, 0x05, 0x07, 0x11, 0x8e, 0x16, 0x3a, 0xc8, 0x81, 0x7c, 0x4d, 0xd2, - 0x5e, 0xa0, 0x97, 0x1c, 0xb9, 0x5c, 0xa1, 0x6f, 0xe1, 0x33, 0x38, 0xfa, 0x24, 0xe2, 0xd4, 0xd1, - 0x51, 0xae, 0x9b, 0x4f, 0xe0, 0x28, 0xf6, 0x1a, 0x6d, 0x41, 0xb0, 0x5b, 0xf2, 0xe7, 0xf7, 0x0b, - 0xff, 0x7c, 0x7c, 0x1e, 0x49, 0xb9, 0xcc, 0x93, 0x91, 0x06, 0x4c, 0xf5, 0x3c, 0x35, 0x0a, 0x33, - 0x4e, 0x61, 0xdc, 0xee, 0x74, 0x1e, 0x34, 0xcb, 0x00, 0xcf, 0x5a, 0x30, 0x4d, 0x63, 0x68, 0x6d, - 0xc7, 0x28, 0xd5, 0xca, 0xa8, 0xea, 0xb9, 0x75, 0x51, 0xe9, 0xa2, 0x6d, 0xc8, 0xba, 0xf5, 0xa6, - 0x57, 0x1d, 0xa4, 0x5c, 0xb2, 0xeb, 0xdc, 0xc4, 0x03, 0x31, 0x91, 0x60, 0x72, 0xcd, 0xab, 0x35, - 0x6f, 0x5f, 0x48, 0xc9, 0xf5, 0x89, 0x73, 0xea, 0x34, 0x0e, 0xfb, 0xe5, 0xa5, 0xde, 0xf0, 0x8e, - 0x02, 0x21, 0x99, 0x90, 0x93, 0xff, 0xc8, 0x0b, 0xaf, 0xb6, 0x7a, 0x75, 0xc8, 0xb5, 0x18, 0x0b, - 0x0a, 0x46, 0x28, 0x79, 0xcb, 0xe7, 0x7f, 0xd3, 0xc1, 0xa7, 0xfb, 0x52, 0xf8, 0xce, 0xa2, 0xf0, - 0x9d, 0xf7, 0xc2, 0x77, 0x1e, 0x97, 0x7e, 0x65, 0xb1, 0xf4, 0x2b, 0x6f, 0x4b, 0xbf, 0xe2, 0x35, - 0xa9, 0x4a, 0xd0, 0x6e, 0x5f, 0x09, 0x8e, 0x7b, 0xeb, 0xbc, 0xcf, 0x32, 0x08, 0xbf, 0xa7, 0x10, - 0x3a, 0xf7, 0xf1, 0x44, 0x98, 0x38, 0x1f, 0x21, 0xaa, 0x12, 0x4c, 0x55, 0x96, 0xa8, 0x0c, 0x6b, - 0x3e, 0x85, 0x39, 0xd7, 0x78, 0x76, 0xf9, 0x73, 0xa4, 0x31, 0x08, 0x99, 0xe1, 0xdd, 0xe6, 0x7d, - 0xb5, 0x15, 0xdb, 0xf4, 0xc9, 0xdd, 0x0b, 0xbb, 0xbd, 0x67, 0xf7, 0x2c, 0xb4, 0x6d, 0xbb, 0x65, - 0xdb, 0xcd, 0x56, 0x68, 0xb8, 0xa6, 0x5f, 0x7f, 0xb9, 0xa8, 0xe4, 0xa2, 0x4d, 0x2e, 0xb2, 0x5c, - 0xe1, 0xb6, 0x76, 0xe2, 0xa2, 0x9b, 0x30, 0xb8, 0xe3, 0x06, 0x18, 0x18, 0xf8, 0x70, 0x1b, 0xd6, - 0x21, 0xa4, 0x94, 0x08, 0xd9, 0xb4, 0x08, 0xb1, 0xda, 0xe8, 0x60, 0xb5, 0x2d, 0xed, 0xaf, 0x00, - 0x00, 0x00, 0xff, 0xff, 0x34, 0x9a, 0xf4, 0x33, 0x6b, 0x02, 0x00, 0x00, + proto.RegisterFile("penumbra/crypto/decaf377_rdsa/v1/decaf377_rdsa.proto", fileDescriptor_70f2e93711fd8093) +} + +var fileDescriptor_70f2e93711fd8093 = []byte{ + // 325 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x32, 0x29, 0x48, 0xcd, 0x2b, + 0xcd, 0x4d, 0x2a, 0x4a, 0xd4, 0x4f, 0x2e, 0xaa, 0x2c, 0x28, 0xc9, 0xd7, 0x4f, 0x49, 0x4d, 0x4e, + 0x4c, 0x33, 0x36, 0x37, 0x8f, 0x2f, 0x4a, 0x29, 0x4e, 0xd4, 0x2f, 0x33, 0x44, 0x15, 0xd0, 0x2b, + 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x52, 0x80, 0xe9, 0xd2, 0x83, 0xe8, 0xd2, 0x43, 0x55, 0x54, 0x66, + 0xa8, 0xa4, 0xc5, 0x25, 0x14, 0x5c, 0x90, 0x9a, 0x97, 0xe2, 0x58, 0x5a, 0x92, 0x11, 0x9c, 0x99, + 0x9e, 0x97, 0x58, 0x52, 0x5a, 0x94, 0x2a, 0x24, 0xc2, 0xc5, 0x9a, 0x99, 0x97, 0x97, 0x5a, 0x24, + 0xc1, 0xa8, 0xc0, 0xa8, 0xc1, 0x13, 0x04, 0xe1, 0x28, 0x69, 0x70, 0x09, 0x38, 0x65, 0xe6, 0xa5, + 0x64, 0xe6, 0xa5, 0x13, 0x52, 0xa9, 0xc3, 0x25, 0x02, 0x36, 0x35, 0x2c, 0xb5, 0x28, 0x33, 0x2d, + 0x33, 0x39, 0xb1, 0x24, 0x33, 0x3f, 0xcf, 0x3b, 0xb5, 0x12, 0xbb, 0x6a, 0xa7, 0x73, 0x4c, 0x27, + 0x1e, 0xc9, 0x31, 0x5e, 0x78, 0x24, 0xc7, 0xf8, 0xe0, 0x91, 0x1c, 0xe3, 0x84, 0xc7, 0x72, 0x0c, + 0x17, 0x1e, 0xcb, 0x31, 0xdc, 0x78, 0x2c, 0xc7, 0xc0, 0xa5, 0x92, 0x9c, 0x9f, 0xab, 0x47, 0xc8, + 0x13, 0x4e, 0x82, 0x2e, 0x50, 0x91, 0xa0, 0x94, 0xe2, 0xc4, 0x00, 0x90, 0xcf, 0x03, 0x18, 0xa3, + 0x62, 0xd2, 0x33, 0x4b, 0x32, 0x4a, 0x93, 0xf4, 0x92, 0xf3, 0x73, 0xf5, 0x93, 0xf3, 0x8b, 0x73, + 0xf3, 0x8b, 0xf5, 0x8b, 0x52, 0x73, 0x12, 0x2b, 0x53, 0x8b, 0xf4, 0xcb, 0x8c, 0xe0, 0xcc, 0xe4, + 0x8c, 0xc4, 0xcc, 0xbc, 0x62, 0x7d, 0x42, 0xa1, 0x6b, 0x8d, 0x22, 0x50, 0x66, 0xb8, 0x88, 0x89, + 0x39, 0xc0, 0xd9, 0x65, 0x15, 0x93, 0x7c, 0x00, 0xcc, 0x6d, 0xce, 0x10, 0xb7, 0x21, 0xbb, 0x44, + 0x2f, 0xcc, 0xf0, 0x14, 0x42, 0x45, 0x0c, 0x44, 0x45, 0x0c, 0xb2, 0x8a, 0x98, 0x30, 0xc3, 0x47, + 0x4c, 0xda, 0x04, 0x54, 0xc4, 0xb8, 0x07, 0x38, 0xf9, 0xa6, 0x96, 0x24, 0xa6, 0x24, 0x96, 0x24, + 0xbe, 0x62, 0x52, 0x82, 0xa9, 0xb6, 0xb2, 0x82, 0x28, 0xb7, 0xb2, 0x42, 0x56, 0x6f, 0x65, 0x15, + 0x66, 0x98, 0xc4, 0x06, 0x8e, 0x7d, 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0x15, 0xef, 0xa1, + 0xa6, 0x35, 0x02, 0x00, 0x00, } func (m *SpendAuthSignature) Marshal() (dAtA []byte, err error) { diff --git a/relayer/chains/penumbra/crypto/tct/v1alpha1/tct.pb.go b/relayer/chains/penumbra/crypto/tct/v1/tct.pb.go similarity index 87% rename from relayer/chains/penumbra/crypto/tct/v1alpha1/tct.pb.go rename to relayer/chains/penumbra/crypto/tct/v1/tct.pb.go index bb44d538d..228882a48 100644 --- a/relayer/chains/penumbra/crypto/tct/v1alpha1/tct.pb.go +++ b/relayer/chains/penumbra/crypto/tct/v1/tct.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: penumbra/crypto/tct/v1alpha1/tct.proto +// source: penumbra/crypto/tct/v1/tct.proto -package tctv1alpha1 +package tctv1 import ( fmt "fmt" @@ -30,7 +30,7 @@ func (m *StateCommitment) Reset() { *m = StateCommitment{} } func (m *StateCommitment) String() string { return proto.CompactTextString(m) } func (*StateCommitment) ProtoMessage() {} func (*StateCommitment) Descriptor() ([]byte, []int) { - return fileDescriptor_7a94190b2b9c1621, []int{0} + return fileDescriptor_e171b1288fe7a145, []int{0} } func (m *StateCommitment) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -74,7 +74,7 @@ func (m *MerkleRoot) Reset() { *m = MerkleRoot{} } func (m *MerkleRoot) String() string { return proto.CompactTextString(m) } func (*MerkleRoot) ProtoMessage() {} func (*MerkleRoot) Descriptor() ([]byte, []int) { - return fileDescriptor_7a94190b2b9c1621, []int{1} + return fileDescriptor_e171b1288fe7a145, []int{1} } func (m *MerkleRoot) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -121,7 +121,7 @@ func (m *StateCommitmentProof) Reset() { *m = StateCommitmentProof{} } func (m *StateCommitmentProof) String() string { return proto.CompactTextString(m) } func (*StateCommitmentProof) ProtoMessage() {} func (*StateCommitmentProof) Descriptor() ([]byte, []int) { - return fileDescriptor_7a94190b2b9c1621, []int{2} + return fileDescriptor_e171b1288fe7a145, []int{2} } func (m *StateCommitmentProof) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -182,7 +182,7 @@ func (m *MerklePathChunk) Reset() { *m = MerklePathChunk{} } func (m *MerklePathChunk) String() string { return proto.CompactTextString(m) } func (*MerklePathChunk) ProtoMessage() {} func (*MerklePathChunk) Descriptor() ([]byte, []int) { - return fileDescriptor_7a94190b2b9c1621, []int{3} + return fileDescriptor_e171b1288fe7a145, []int{3} } func (m *MerklePathChunk) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -233,45 +233,42 @@ func (m *MerklePathChunk) GetSibling_3() []byte { } func init() { - proto.RegisterType((*StateCommitment)(nil), "penumbra.crypto.tct.v1alpha1.StateCommitment") - proto.RegisterType((*MerkleRoot)(nil), "penumbra.crypto.tct.v1alpha1.MerkleRoot") - proto.RegisterType((*StateCommitmentProof)(nil), "penumbra.crypto.tct.v1alpha1.StateCommitmentProof") - proto.RegisterType((*MerklePathChunk)(nil), "penumbra.crypto.tct.v1alpha1.MerklePathChunk") + proto.RegisterType((*StateCommitment)(nil), "penumbra.crypto.tct.v1.StateCommitment") + proto.RegisterType((*MerkleRoot)(nil), "penumbra.crypto.tct.v1.MerkleRoot") + proto.RegisterType((*StateCommitmentProof)(nil), "penumbra.crypto.tct.v1.StateCommitmentProof") + proto.RegisterType((*MerklePathChunk)(nil), "penumbra.crypto.tct.v1.MerklePathChunk") } -func init() { - proto.RegisterFile("penumbra/crypto/tct/v1alpha1/tct.proto", fileDescriptor_7a94190b2b9c1621) -} +func init() { proto.RegisterFile("penumbra/crypto/tct/v1/tct.proto", fileDescriptor_e171b1288fe7a145) } -var fileDescriptor_7a94190b2b9c1621 = []byte{ - // 421 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x92, 0x41, 0x8b, 0xd3, 0x40, - 0x14, 0xc7, 0x3b, 0xa9, 0x4a, 0x77, 0x14, 0x0b, 0x61, 0x0f, 0x45, 0x97, 0x58, 0x7a, 0xd0, 0x5e, - 0x4c, 0x68, 0x7b, 0x8b, 0xb7, 0xf6, 0x20, 0x08, 0x0b, 0x21, 0x86, 0x3d, 0x48, 0xa0, 0x4c, 0xc6, - 0x71, 0x67, 0xd8, 0x64, 0x5e, 0x98, 0xbc, 0x2c, 0xec, 0xb7, 0xf0, 0x33, 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0x00, +var fileDescriptor_e171b1288fe7a145 = []byte{ + // 415 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x92, 0xc1, 0x6a, 0xdb, 0x40, + 0x10, 0x86, 0xbd, 0x72, 0x5b, 0x9c, 0x6d, 0xa9, 0x41, 0x84, 0xe0, 0xa6, 0x20, 0x8c, 0x2e, 0xc9, + 0x49, 0x62, 0xed, 0x9b, 0x7a, 0xb3, 0x0b, 0xed, 0x25, 0x20, 0x54, 0xe1, 0x43, 0x31, 0x98, 0xd5, + 0x76, 0x1b, 0x2d, 0xb1, 0x76, 0xc4, 0x6a, 0x24, 0xc8, 0xb9, 0x2f, 0xd0, 0x67, 0xe8, 0xb1, 0x4f, + 0x52, 0x72, 0xca, 0xb1, 0xc7, 0x22, 0xdf, 0xfa, 0x14, 0x45, 0x56, 0xec, 0xb8, 0xc6, 0xce, 0x49, + 0x9a, 0xf9, 0xfe, 0x99, 0xf9, 0x67, 0x19, 0x3a, 0xcc, 0xa5, 0x2e, 0xb3, 0xc4, 0x70, 0x5f, 0x98, + 0xdb, 0x1c, 0xc1, 0x47, 0x81, 0x7e, 0xc5, 0x9a, 0x8f, 0x97, 0x1b, 0x40, 0xb0, 0xcf, 0x36, 0x0a, + 0xaf, 0x55, 0x78, 0x0d, 0xaa, 0x98, 0x7b, 0x41, 0xfb, 0x9f, 0x90, 0xa3, 0x9c, 0x42, 0x96, 0x29, + 0xcc, 0xa4, 0x46, 0xfb, 0x94, 0x3e, 0x57, 0x5a, 0x4b, 0x33, 0x20, 0x43, 0x72, 0xf9, 0x2a, 0x6a, + 0x03, 0xd7, 0xa5, 0xf4, 0x4a, 0x9a, 0x9b, 0xa5, 0x8c, 0x00, 0x8e, 0x69, 0xee, 0x08, 0x3d, 0xdd, + 0xeb, 0x16, 0x1a, 0x80, 0xaf, 0x76, 0x48, 0xfb, 0x1a, 0x50, 0x2e, 0xc4, 0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xdb, 0xa1, 0xb1, 0x40, 0x6f, 0xc6, 0xee, 0x1e, 0xc1, 0xbc, 0x05, 0xf3, 0x58, 0xe0, 0x7c, 0xc6, + 0x6a, 0xcb, 0x3d, 0x0c, 0xe6, 0x1f, 0xc2, 0xc9, 0x95, 0x44, 0xfe, 0x85, 0x23, 0xff, 0x6b, 0xbd, + 0xd9, 0x88, 0x82, 0xa0, 0x55, 0x05, 0x41, 0x2c, 0x30, 0x08, 0x66, 0x2c, 0x79, 0xb1, 0x3e, 0xd4, + 0xf1, 0xbf, 0x00, 0x00, 0x00, 0xff, 0xff, 0xe3, 0x2c, 0xf6, 0x4d, 0xcc, 0x02, 0x00, 0x00, } func (m *StateCommitment) Marshal() (dAtA []byte, err error) { diff --git a/relayer/chains/penumbra/custody/threshold/v1alpha1/threshold.pb.go b/relayer/chains/penumbra/custody/threshold/v1/threshold.pb.go similarity index 84% rename from relayer/chains/penumbra/custody/threshold/v1alpha1/threshold.pb.go rename to relayer/chains/penumbra/custody/threshold/v1/threshold.pb.go index a655e100c..8c4ea3406 100644 --- a/relayer/chains/penumbra/custody/threshold/v1alpha1/threshold.pb.go +++ b/relayer/chains/penumbra/custody/threshold/v1/threshold.pb.go @@ -1,13 +1,15 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: penumbra/custody/threshold/v1alpha1/threshold.proto +// source: penumbra/custody/threshold/v1/threshold.proto -package thresholdv1alpha1 +package thresholdv1 import ( fmt "fmt" proto "github.com/cosmos/gogoproto/proto" - v1alpha1 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/transaction/v1alpha1" - v1alpha11 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/crypto/decaf377_frost/v1alpha1" + v12 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/component/governance/v1" + v11 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/component/stake/v1" + v1 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/transaction/v1" + v13 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/crypto/decaf377_frost/v1" io "io" math "math" math_bits "math/bits" @@ -35,7 +37,7 @@ func (m *VerificationKey) Reset() { *m = VerificationKey{} } func (m *VerificationKey) String() string { return proto.CompactTextString(m) } func (*VerificationKey) ProtoMessage() {} func (*VerificationKey) Descriptor() ([]byte, []int) { - return fileDescriptor_a211a6df1a59c634, []int{0} + return fileDescriptor_d60f2e30e69d733f, []int{0} } func (m *VerificationKey) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -80,7 +82,7 @@ func (m *Signature) Reset() { *m = Signature{} } func (m *Signature) String() string { return proto.CompactTextString(m) } func (*Signature) ProtoMessage() {} func (*Signature) Descriptor() ([]byte, []int) { - return fileDescriptor_a211a6df1a59c634, []int{1} + return fileDescriptor_d60f2e30e69d733f, []int{1} } func (m *Signature) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -118,15 +120,18 @@ func (m *Signature) GetInner() []byte { // The message the coordinator sends in round 1 of the signing protocol. type CoordinatorRound1 struct { - // The plan that the coordinator would like the followers to sign. - Plan *v1alpha1.TransactionPlan `protobuf:"bytes,1,opt,name=plan,proto3" json:"plan,omitempty"` + // Types that are valid to be assigned to Request: + // *CoordinatorRound1_Plan + // *CoordinatorRound1_ValidatorDefinition + // *CoordinatorRound1_ValidatorVote + Request isCoordinatorRound1_Request `protobuf_oneof:"request"` } func (m *CoordinatorRound1) Reset() { *m = CoordinatorRound1{} } func (m *CoordinatorRound1) String() string { return proto.CompactTextString(m) } func (*CoordinatorRound1) ProtoMessage() {} func (*CoordinatorRound1) Descriptor() ([]byte, []int) { - return fileDescriptor_a211a6df1a59c634, []int{2} + return fileDescriptor_d60f2e30e69d733f, []int{2} } func (m *CoordinatorRound1) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -155,13 +160,63 @@ func (m *CoordinatorRound1) XXX_DiscardUnknown() { var xxx_messageInfo_CoordinatorRound1 proto.InternalMessageInfo -func (m *CoordinatorRound1) GetPlan() *v1alpha1.TransactionPlan { +type isCoordinatorRound1_Request interface { + isCoordinatorRound1_Request() + MarshalTo([]byte) (int, error) + Size() int +} + +type CoordinatorRound1_Plan struct { + Plan *v1.TransactionPlan `protobuf:"bytes,1,opt,name=plan,proto3,oneof" json:"plan,omitempty"` +} +type CoordinatorRound1_ValidatorDefinition struct { + ValidatorDefinition *v11.Validator `protobuf:"bytes,2,opt,name=validator_definition,json=validatorDefinition,proto3,oneof" json:"validator_definition,omitempty"` +} +type CoordinatorRound1_ValidatorVote struct { + ValidatorVote *v12.ValidatorVoteBody `protobuf:"bytes,3,opt,name=validator_vote,json=validatorVote,proto3,oneof" json:"validator_vote,omitempty"` +} + +func (*CoordinatorRound1_Plan) isCoordinatorRound1_Request() {} +func (*CoordinatorRound1_ValidatorDefinition) isCoordinatorRound1_Request() {} +func (*CoordinatorRound1_ValidatorVote) isCoordinatorRound1_Request() {} + +func (m *CoordinatorRound1) GetRequest() isCoordinatorRound1_Request { if m != nil { - return m.Plan + return m.Request + } + return nil +} + +func (m *CoordinatorRound1) GetPlan() *v1.TransactionPlan { + if x, ok := m.GetRequest().(*CoordinatorRound1_Plan); ok { + return x.Plan + } + return nil +} + +func (m *CoordinatorRound1) GetValidatorDefinition() *v11.Validator { + if x, ok := m.GetRequest().(*CoordinatorRound1_ValidatorDefinition); ok { + return x.ValidatorDefinition } return nil } +func (m *CoordinatorRound1) GetValidatorVote() *v12.ValidatorVoteBody { + if x, ok := m.GetRequest().(*CoordinatorRound1_ValidatorVote); ok { + return x.ValidatorVote + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*CoordinatorRound1) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*CoordinatorRound1_Plan)(nil), + (*CoordinatorRound1_ValidatorDefinition)(nil), + (*CoordinatorRound1_ValidatorVote)(nil), + } +} + // The message the coordinator sends in round 2 of the signing protocol. type CoordinatorRound2 struct { // The underlying signing packages being sent to the followers, for each signature. @@ -172,7 +227,7 @@ func (m *CoordinatorRound2) Reset() { *m = CoordinatorRound2{} } func (m *CoordinatorRound2) String() string { return proto.CompactTextString(m) } func (*CoordinatorRound2) ProtoMessage() {} func (*CoordinatorRound2) Descriptor() ([]byte, []int) { - return fileDescriptor_a211a6df1a59c634, []int{3} + return fileDescriptor_d60f2e30e69d733f, []int{3} } func (m *CoordinatorRound2) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -213,7 +268,7 @@ type CoordinatorRound2_IdentifiedCommitments struct { // The serialization of a FROST identifier. Identifier []byte `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"` // The commitments this person has produced for this round of signing. - Commitments *v1alpha11.SigningCommitments `protobuf:"bytes,2,opt,name=commitments,proto3" json:"commitments,omitempty"` + Commitments *v13.SigningCommitments `protobuf:"bytes,2,opt,name=commitments,proto3" json:"commitments,omitempty"` } func (m *CoordinatorRound2_IdentifiedCommitments) Reset() { @@ -222,7 +277,7 @@ func (m *CoordinatorRound2_IdentifiedCommitments) Reset() { func (m *CoordinatorRound2_IdentifiedCommitments) String() string { return proto.CompactTextString(m) } func (*CoordinatorRound2_IdentifiedCommitments) ProtoMessage() {} func (*CoordinatorRound2_IdentifiedCommitments) Descriptor() ([]byte, []int) { - return fileDescriptor_a211a6df1a59c634, []int{3, 0} + return fileDescriptor_d60f2e30e69d733f, []int{3, 0} } func (m *CoordinatorRound2_IdentifiedCommitments) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -258,7 +313,7 @@ func (m *CoordinatorRound2_IdentifiedCommitments) GetIdentifier() []byte { return nil } -func (m *CoordinatorRound2_IdentifiedCommitments) GetCommitments() *v1alpha11.SigningCommitments { +func (m *CoordinatorRound2_IdentifiedCommitments) GetCommitments() *v13.SigningCommitments { if m != nil { return m.Commitments } @@ -280,7 +335,7 @@ func (m *CoordinatorRound2_PartialSigningPackage) Reset() { func (m *CoordinatorRound2_PartialSigningPackage) String() string { return proto.CompactTextString(m) } func (*CoordinatorRound2_PartialSigningPackage) ProtoMessage() {} func (*CoordinatorRound2_PartialSigningPackage) Descriptor() ([]byte, []int) { - return fileDescriptor_a211a6df1a59c634, []int{3, 1} + return fileDescriptor_d60f2e30e69d733f, []int{3, 1} } func (m *CoordinatorRound2_PartialSigningPackage) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -329,7 +384,7 @@ func (m *FollowerRound1) Reset() { *m = FollowerRound1{} } func (m *FollowerRound1) String() string { return proto.CompactTextString(m) } func (*FollowerRound1) ProtoMessage() {} func (*FollowerRound1) Descriptor() ([]byte, []int) { - return fileDescriptor_a211a6df1a59c634, []int{4} + return fileDescriptor_d60f2e30e69d733f, []int{4} } func (m *FollowerRound1) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -382,14 +437,14 @@ func (m *FollowerRound1) GetSig() *Signature { // The inner message that will be signed by the follower. type FollowerRound1_Inner struct { // One signing commitment pair for each signature requested by the plan, in order. - Commitments []*v1alpha11.SigningCommitments `protobuf:"bytes,1,rep,name=commitments,proto3" json:"commitments,omitempty"` + Commitments []*v13.SigningCommitments `protobuf:"bytes,1,rep,name=commitments,proto3" json:"commitments,omitempty"` } func (m *FollowerRound1_Inner) Reset() { *m = FollowerRound1_Inner{} } func (m *FollowerRound1_Inner) String() string { return proto.CompactTextString(m) } func (*FollowerRound1_Inner) ProtoMessage() {} func (*FollowerRound1_Inner) Descriptor() ([]byte, []int) { - return fileDescriptor_a211a6df1a59c634, []int{4, 0} + return fileDescriptor_d60f2e30e69d733f, []int{4, 0} } func (m *FollowerRound1_Inner) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -418,7 +473,7 @@ func (m *FollowerRound1_Inner) XXX_DiscardUnknown() { var xxx_messageInfo_FollowerRound1_Inner proto.InternalMessageInfo -func (m *FollowerRound1_Inner) GetCommitments() []*v1alpha11.SigningCommitments { +func (m *FollowerRound1_Inner) GetCommitments() []*v13.SigningCommitments { if m != nil { return m.Commitments } @@ -438,7 +493,7 @@ func (m *FollowerRound2) Reset() { *m = FollowerRound2{} } func (m *FollowerRound2) String() string { return proto.CompactTextString(m) } func (*FollowerRound2) ProtoMessage() {} func (*FollowerRound2) Descriptor() ([]byte, []int) { - return fileDescriptor_a211a6df1a59c634, []int{5} + return fileDescriptor_d60f2e30e69d733f, []int{5} } func (m *FollowerRound2) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -491,14 +546,14 @@ func (m *FollowerRound2) GetSig() *Signature { // The inner message that will be signed by the follower. type FollowerRound2_Inner struct { // One share for each signature requested by the plan, in order. - Shares []*v1alpha11.SignatureShare `protobuf:"bytes,1,rep,name=shares,proto3" json:"shares,omitempty"` + Shares []*v13.SignatureShare `protobuf:"bytes,1,rep,name=shares,proto3" json:"shares,omitempty"` } func (m *FollowerRound2_Inner) Reset() { *m = FollowerRound2_Inner{} } func (m *FollowerRound2_Inner) String() string { return proto.CompactTextString(m) } func (*FollowerRound2_Inner) ProtoMessage() {} func (*FollowerRound2_Inner) Descriptor() ([]byte, []int) { - return fileDescriptor_a211a6df1a59c634, []int{5, 0} + return fileDescriptor_d60f2e30e69d733f, []int{5, 0} } func (m *FollowerRound2_Inner) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -527,7 +582,7 @@ func (m *FollowerRound2_Inner) XXX_DiscardUnknown() { var xxx_messageInfo_FollowerRound2_Inner proto.InternalMessageInfo -func (m *FollowerRound2_Inner) GetShares() []*v1alpha11.SignatureShare { +func (m *FollowerRound2_Inner) GetShares() []*v13.SignatureShare { if m != nil { return m.Shares } @@ -537,7 +592,7 @@ func (m *FollowerRound2_Inner) GetShares() []*v1alpha11.SignatureShare { // The first message we broadcast in the DKG protocol. type DKGRound1 struct { // The package we're sending to other people - Pkg *v1alpha11.DKGRound1Package `protobuf:"bytes,1,opt,name=pkg,proto3" json:"pkg,omitempty"` + Pkg *v13.DKGRound1Package `protobuf:"bytes,1,opt,name=pkg,proto3" json:"pkg,omitempty"` // A commitment to a share of the nullifier-deriving key NullifierCommitment []byte `protobuf:"bytes,2,opt,name=nullifier_commitment,json=nullifierCommitment,proto3" json:"nullifier_commitment,omitempty"` // An encryption key for the second round. @@ -550,7 +605,7 @@ func (m *DKGRound1) Reset() { *m = DKGRound1{} } func (m *DKGRound1) String() string { return proto.CompactTextString(m) } func (*DKGRound1) ProtoMessage() {} func (*DKGRound1) Descriptor() ([]byte, []int) { - return fileDescriptor_a211a6df1a59c634, []int{6} + return fileDescriptor_d60f2e30e69d733f, []int{6} } func (m *DKGRound1) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -579,7 +634,7 @@ func (m *DKGRound1) XXX_DiscardUnknown() { var xxx_messageInfo_DKGRound1 proto.InternalMessageInfo -func (m *DKGRound1) GetPkg() *v1alpha11.DKGRound1Package { +func (m *DKGRound1) GetPkg() *v13.DKGRound1Package { if m != nil { return m.Pkg } @@ -620,7 +675,7 @@ func (m *DKGRound2) Reset() { *m = DKGRound2{} } func (m *DKGRound2) String() string { return proto.CompactTextString(m) } func (*DKGRound2) ProtoMessage() {} func (*DKGRound2) Descriptor() ([]byte, []int) { - return fileDescriptor_a211a6df1a59c634, []int{7} + return fileDescriptor_d60f2e30e69d733f, []int{7} } func (m *DKGRound2) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -682,7 +737,7 @@ func (m *DKGRound2_TargetedPackage) Reset() { *m = DKGRound2_TargetedPac func (m *DKGRound2_TargetedPackage) String() string { return proto.CompactTextString(m) } func (*DKGRound2_TargetedPackage) ProtoMessage() {} func (*DKGRound2_TargetedPackage) Descriptor() ([]byte, []int) { - return fileDescriptor_a211a6df1a59c634, []int{7, 0} + return fileDescriptor_d60f2e30e69d733f, []int{7, 0} } func (m *DKGRound2_TargetedPackage) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -737,7 +792,7 @@ func (m *DKGRound2_Inner) Reset() { *m = DKGRound2_Inner{} } func (m *DKGRound2_Inner) String() string { return proto.CompactTextString(m) } func (*DKGRound2_Inner) ProtoMessage() {} func (*DKGRound2_Inner) Descriptor() ([]byte, []int) { - return fileDescriptor_a211a6df1a59c634, []int{7, 1} + return fileDescriptor_d60f2e30e69d733f, []int{7, 1} } func (m *DKGRound2_Inner) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -781,79 +836,86 @@ func (m *DKGRound2_Inner) GetNullifier() []byte { } func init() { - proto.RegisterType((*VerificationKey)(nil), "penumbra.custody.threshold.v1alpha1.VerificationKey") - proto.RegisterType((*Signature)(nil), "penumbra.custody.threshold.v1alpha1.Signature") - proto.RegisterType((*CoordinatorRound1)(nil), "penumbra.custody.threshold.v1alpha1.CoordinatorRound1") - proto.RegisterType((*CoordinatorRound2)(nil), "penumbra.custody.threshold.v1alpha1.CoordinatorRound2") - proto.RegisterType((*CoordinatorRound2_IdentifiedCommitments)(nil), "penumbra.custody.threshold.v1alpha1.CoordinatorRound2.IdentifiedCommitments") - proto.RegisterType((*CoordinatorRound2_PartialSigningPackage)(nil), "penumbra.custody.threshold.v1alpha1.CoordinatorRound2.PartialSigningPackage") - proto.RegisterType((*FollowerRound1)(nil), "penumbra.custody.threshold.v1alpha1.FollowerRound1") - proto.RegisterType((*FollowerRound1_Inner)(nil), "penumbra.custody.threshold.v1alpha1.FollowerRound1.Inner") - proto.RegisterType((*FollowerRound2)(nil), "penumbra.custody.threshold.v1alpha1.FollowerRound2") - proto.RegisterType((*FollowerRound2_Inner)(nil), "penumbra.custody.threshold.v1alpha1.FollowerRound2.Inner") - proto.RegisterType((*DKGRound1)(nil), "penumbra.custody.threshold.v1alpha1.DKGRound1") - proto.RegisterType((*DKGRound2)(nil), "penumbra.custody.threshold.v1alpha1.DKGRound2") - proto.RegisterType((*DKGRound2_TargetedPackage)(nil), "penumbra.custody.threshold.v1alpha1.DKGRound2.TargetedPackage") - proto.RegisterType((*DKGRound2_Inner)(nil), "penumbra.custody.threshold.v1alpha1.DKGRound2.Inner") + proto.RegisterType((*VerificationKey)(nil), "penumbra.custody.threshold.v1.VerificationKey") + proto.RegisterType((*Signature)(nil), "penumbra.custody.threshold.v1.Signature") + proto.RegisterType((*CoordinatorRound1)(nil), "penumbra.custody.threshold.v1.CoordinatorRound1") + proto.RegisterType((*CoordinatorRound2)(nil), "penumbra.custody.threshold.v1.CoordinatorRound2") + proto.RegisterType((*CoordinatorRound2_IdentifiedCommitments)(nil), "penumbra.custody.threshold.v1.CoordinatorRound2.IdentifiedCommitments") + proto.RegisterType((*CoordinatorRound2_PartialSigningPackage)(nil), "penumbra.custody.threshold.v1.CoordinatorRound2.PartialSigningPackage") + proto.RegisterType((*FollowerRound1)(nil), "penumbra.custody.threshold.v1.FollowerRound1") + proto.RegisterType((*FollowerRound1_Inner)(nil), "penumbra.custody.threshold.v1.FollowerRound1.Inner") + proto.RegisterType((*FollowerRound2)(nil), "penumbra.custody.threshold.v1.FollowerRound2") + proto.RegisterType((*FollowerRound2_Inner)(nil), "penumbra.custody.threshold.v1.FollowerRound2.Inner") + proto.RegisterType((*DKGRound1)(nil), "penumbra.custody.threshold.v1.DKGRound1") + proto.RegisterType((*DKGRound2)(nil), "penumbra.custody.threshold.v1.DKGRound2") + proto.RegisterType((*DKGRound2_TargetedPackage)(nil), "penumbra.custody.threshold.v1.DKGRound2.TargetedPackage") + proto.RegisterType((*DKGRound2_Inner)(nil), "penumbra.custody.threshold.v1.DKGRound2.Inner") } func init() { - proto.RegisterFile("penumbra/custody/threshold/v1alpha1/threshold.proto", fileDescriptor_a211a6df1a59c634) -} - -var fileDescriptor_a211a6df1a59c634 = []byte{ - // 816 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x56, 0x5f, 0x6b, 0xc3, 0x54, - 0x1c, 0x5d, 0xd2, 0x6d, 0xb0, 0xdb, 0xd2, 0x6e, 0x71, 0x83, 0x52, 0xa4, 0xcc, 0x0e, 0xdc, 0x40, - 0x48, 0x68, 0x3a, 0x18, 0x76, 0x22, 0xb2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, 0x86, 0xfe, - 0xa1, 0x65, 0x00, 0x76, 0x7a, 0x94, 0x32, 0x1b, 0x13, 0xc8, 0x29, 0x33, 0xe9, 0x84, 0xd8, 0x6d, - 0xe5, 0x02, 0xac, 0xfb, 0x2e, 0x24, 0x51, 0x67, 0x59, 0xef, 0xa8, 0x99, 0x11, 0x94, 0x21, 0x35, - 0xbf, 0x1c, 0x21, 0x54, 0xed, 0x67, 0x45, 0xc3, 0x85, 0xc4, 0x8c, 0x08, 0x5a, 0xbf, 0x94, 0x9e, - 0xd3, 0xeb, 0xca, 0x03, 0xd8, 0x0e, 0xb0, 0x43, 0x30, 0x71, 0xee, 0x7c, 0x68, 0x8d, 0xa1, 0x83, - 0x82, 0xba, 0xb4, 0x5f, 0x3a, 0x2a, 0xeb, 0x9f, 0xab, 0x05, 0x3c, 0x57, 0x9f, 0x31, 0xaa, 0x06, - 0x64, 0x1c, 0x43, 0xf7, 0x26, 0x66, 0x35, 0x62, 0x52, 0xb3, 0x16, 0x2c, 0x3d, 0x07, 0x8d, 0x1f, - 0x24, 0xb0, 0x77, 0x69, 0x23, 0xc2, 0xf1, 0x10, 0x23, 0xbb, 0x47, 0x3d, 0x0f, 0x73, 0x0f, 0x11, - 0x1e, 0x28, 0x4d, 0x00, 0xb0, 0x78, 0x21, 0x1c, 0xca, 0x55, 0x94, 0x6f, 0x40, 0xd9, 0xca, 0xda, - 0xeb, 0x72, 0x64, 0xcc, 0x69, 0x4e, 0x6d, 0x14, 0xa3, 0xba, 0x12, 0x57, 0xaa, 0x38, 0x11, 0x96, - 0x9b, 0x68, 0xe6, 0xf9, 0x1a, 0xdf, 0x4a, 0x60, 0xef, 0xc5, 0x35, 0x28, 0x13, 0x50, 0x83, 0xae, - 0x7b, 0x97, 0x1f, 0xfe, 0xdf, 0xac, 0x7a, 0x71, 0xfd, 0x66, 0x15, 0xba, 0x6e, 0xee, 0xb9, 0xf5, - 0x87, 0x0c, 0xaa, 0x9f, 0x52, 0xd7, 0xa5, 0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x40, 0xd7, 0xe0, 0xc2, 0x38, 0xfb, 0x02, 0x71, 0x68, 0x43, 0x0e, 0xff, 0x92, 0xdf, - 0x17, 0x88, 0x6e, 0x37, 0x81, 0x74, 0xbb, 0x29, 0xa6, 0xdb, 0x15, 0xa0, 0xfb, 0xcd, 0xe8, 0xe3, - 0xa3, 0xf3, 0x77, 0x00, 0x00, 0x00, 0xff, 0xff, 0xbc, 0xfc, 0x97, 0xa4, 0x4c, 0x09, 0x00, 0x00, + proto.RegisterFile("penumbra/custody/threshold/v1/threshold.proto", fileDescriptor_d60f2e30e69d733f) +} + +var fileDescriptor_d60f2e30e69d733f = []byte{ + // 926 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x56, 0xcd, 0x6e, 0xdb, 0x46, + 0x10, 0x16, 0xa9, 0x24, 0x85, 0xd7, 0xae, 0x6c, 0x6f, 0x1c, 0x40, 0x10, 0x1a, 0xc1, 0xd1, 0xa5, + 0x2e, 0xd2, 0x2c, 0x41, 0x19, 0x6d, 0x02, 0x15, 0xe8, 0xc1, 0x72, 0x13, 0x1b, 0x41, 0x0b, 0x81, + 0x76, 0x55, 0xa0, 0x30, 0xe0, 0xac, 0xc9, 0x15, 0xb5, 0x20, 0xb5, 0xcb, 0xec, 0xae, 0x58, 0xe8, + 0x0d, 0x7a, 0x2a, 0xf2, 0x0c, 0x45, 0x81, 0x16, 0xed, 0x13, 0xe4, 0x0d, 0x8a, 0x9e, 0x72, 0xe8, + 0xa1, 0xc7, 0xc2, 0xbe, 0xf5, 0x29, 0x0a, 0xfe, 0x2d, 0x29, 0xf9, 0x47, 0x41, 0xdb, 0x43, 0x6f, + 0x3b, 0x3b, 0xf3, 0x7d, 0x33, 0xfc, 0x66, 0x86, 0x24, 0x78, 0x14, 0x11, 0x36, 0x9d, 0x9c, 0x09, + 0x6c, 0xb9, 0x53, 0xa9, 0xb8, 0x37, 0xb3, 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x7b, + 0xb3, 0x3e, 0xe8, 0x1f, 0xff, 0x6c, 0xde, 0x1f, 0x14, 0xe5, 0xf4, 0xf3, 0x72, 0x74, 0x01, 0x68, + 0x68, 0xff, 0x56, 0xfa, 0x4f, 0x72, 0xff, 0x89, 0xf6, 0x9f, 0x0c, 0xed, 0x73, 0xf3, 0x83, 0x1b, + 0xfd, 0x27, 0xcf, 0x06, 0x7b, 0x9f, 0x13, 0x85, 0x3d, 0xac, 0xf0, 0x5f, 0xe6, 0x76, 0x11, 0xdb, + 0xeb, 0xe5, 0xc1, 0xbd, 0x9e, 0x8e, 0xee, 0xf5, 0x86, 0xf6, 0xd9, 0x9d, 0xf4, 0x5f, 0x66, 0xf7, + 0xef, 0x00, 0x00, 0x00, 0xff, 0xff, 0x1b, 0x64, 0x2e, 0x8e, 0xe9, 0x09, 0x00, 0x00, } func (m *VerificationKey) Marshal() (dAtA []byte, err error) { @@ -936,6 +998,25 @@ func (m *CoordinatorRound1) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if m.Request != nil { + { + size := m.Request.Size() + i -= size + if _, err := m.Request.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } + } + return len(dAtA) - i, nil +} + +func (m *CoordinatorRound1_Plan) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CoordinatorRound1_Plan) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.Plan != nil { { size, err := m.Plan.MarshalToSizedBuffer(dAtA[:i]) @@ -950,7 +1031,48 @@ func (m *CoordinatorRound1) MarshalToSizedBuffer(dAtA []byte) (int, error) { } return len(dAtA) - i, nil } +func (m *CoordinatorRound1_ValidatorDefinition) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} +func (m *CoordinatorRound1_ValidatorDefinition) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.ValidatorDefinition != nil { + { + size, err := m.ValidatorDefinition.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintThreshold(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + return len(dAtA) - i, nil +} +func (m *CoordinatorRound1_ValidatorVote) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CoordinatorRound1_ValidatorVote) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.ValidatorVote != nil { + { + size, err := m.ValidatorVote.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintThreshold(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + return len(dAtA) - i, nil +} func (m *CoordinatorRound2) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -1483,6 +1605,18 @@ func (m *Signature) Size() (n int) { } func (m *CoordinatorRound1) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Request != nil { + n += m.Request.Size() + } + return n +} + +func (m *CoordinatorRound1_Plan) Size() (n int) { if m == nil { return 0 } @@ -1494,7 +1628,30 @@ func (m *CoordinatorRound1) Size() (n int) { } return n } - +func (m *CoordinatorRound1_ValidatorDefinition) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ValidatorDefinition != nil { + l = m.ValidatorDefinition.Size() + n += 1 + l + sovThreshold(uint64(l)) + } + return n +} +func (m *CoordinatorRound1_ValidatorVote) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ValidatorVote != nil { + l = m.ValidatorVote.Size() + n += 1 + l + sovThreshold(uint64(l)) + } + return n +} func (m *CoordinatorRound2) Size() (n int) { if m == nil { return 0 @@ -1928,12 +2085,81 @@ func (m *CoordinatorRound1) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Plan == nil { - m.Plan = &v1alpha1.TransactionPlan{} + v := &v1.TransactionPlan{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Request = &CoordinatorRound1_Plan{v} + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ValidatorDefinition", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowThreshold + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthThreshold + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThreshold + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &v11.Validator{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Request = &CoordinatorRound1_ValidatorDefinition{v} + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ValidatorVote", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowThreshold + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthThreshold + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthThreshold + } + if postIndex > l { + return io.ErrUnexpectedEOF } - if err := m.Plan.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + v := &v12.ValidatorVoteBody{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } + m.Request = &CoordinatorRound1_ValidatorVote{v} iNdEx = postIndex default: iNdEx = preIndex @@ -2133,7 +2359,7 @@ func (m *CoordinatorRound2_IdentifiedCommitments) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Commitments == nil { - m.Commitments = &v1alpha11.SigningCommitments{} + m.Commitments = &v13.SigningCommitments{} } if err := m.Commitments.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -2460,7 +2686,7 @@ func (m *FollowerRound1_Inner) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Commitments = append(m.Commitments, &v1alpha11.SigningCommitments{}) + m.Commitments = append(m.Commitments, &v13.SigningCommitments{}) if err := m.Commitments[len(m.Commitments)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -2702,7 +2928,7 @@ func (m *FollowerRound2_Inner) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Shares = append(m.Shares, &v1alpha11.SignatureShare{}) + m.Shares = append(m.Shares, &v13.SignatureShare{}) if err := m.Shares[len(m.Shares)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -2787,7 +3013,7 @@ func (m *DKGRound1) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Pkg == nil { - m.Pkg = &v1alpha11.DKGRound1Package{} + m.Pkg = &v13.DKGRound1Package{} } if err := m.Pkg.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err diff --git a/relayer/chains/penumbra/custody/v1alpha1/custody.pb.go b/relayer/chains/penumbra/custody/v1/custody.pb.go similarity index 53% rename from relayer/chains/penumbra/custody/v1alpha1/custody.pb.go rename to relayer/chains/penumbra/custody/v1/custody.pb.go index d53f55fa0..e49458536 100644 --- a/relayer/chains/penumbra/custody/v1alpha1/custody.pb.go +++ b/relayer/chains/penumbra/custody/v1/custody.pb.go @@ -1,15 +1,18 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: penumbra/custody/v1alpha1/custody.proto +// source: penumbra/custody/v1/custody.proto -package custodyv1alpha1 +package custodyv1 import ( context "context" fmt "fmt" grpc1 "github.com/cosmos/gogoproto/grpc" proto "github.com/cosmos/gogoproto/proto" - v1alpha11 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/keys/v1alpha1" - v1alpha1 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/transaction/v1alpha1" + v13 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/component/governance/v1" + v11 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/component/stake/v1" + v14 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/keys/v1" + v1 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/transaction/v1" + v12 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/crypto/decaf377_rdsa/v1" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -31,7 +34,7 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package type AuthorizeRequest struct { // The transaction plan to authorize. - Plan *v1alpha1.TransactionPlan `protobuf:"bytes,1,opt,name=plan,proto3" json:"plan,omitempty"` + Plan *v1.TransactionPlan `protobuf:"bytes,1,opt,name=plan,proto3" json:"plan,omitempty"` // Optionally, pre-authorization data, if required by the custodian. // // Pre-authorization data is backend-specific, and backends are free to ignore it. @@ -45,7 +48,7 @@ func (m *AuthorizeRequest) Reset() { *m = AuthorizeRequest{} } func (m *AuthorizeRequest) String() string { return proto.CompactTextString(m) } func (*AuthorizeRequest) ProtoMessage() {} func (*AuthorizeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8c8c99775232419d, []int{0} + return fileDescriptor_e460ce3850593522, []int{0} } func (m *AuthorizeRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -74,7 +77,7 @@ func (m *AuthorizeRequest) XXX_DiscardUnknown() { var xxx_messageInfo_AuthorizeRequest proto.InternalMessageInfo -func (m *AuthorizeRequest) GetPlan() *v1alpha1.TransactionPlan { +func (m *AuthorizeRequest) GetPlan() *v1.TransactionPlan { if m != nil { return m.Plan } @@ -89,14 +92,14 @@ func (m *AuthorizeRequest) GetPreAuthorizations() []*PreAuthorization { } type AuthorizeResponse struct { - Data *v1alpha1.AuthorizationData `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` + Data *v1.AuthorizationData `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` } func (m *AuthorizeResponse) Reset() { *m = AuthorizeResponse{} } func (m *AuthorizeResponse) String() string { return proto.CompactTextString(m) } func (*AuthorizeResponse) ProtoMessage() {} func (*AuthorizeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8c8c99775232419d, []int{1} + return fileDescriptor_e460ce3850593522, []int{1} } func (m *AuthorizeResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -125,13 +128,221 @@ func (m *AuthorizeResponse) XXX_DiscardUnknown() { var xxx_messageInfo_AuthorizeResponse proto.InternalMessageInfo -func (m *AuthorizeResponse) GetData() *v1alpha1.AuthorizationData { +func (m *AuthorizeResponse) GetData() *v1.AuthorizationData { if m != nil { return m.Data } return nil } +type AuthorizeValidatorDefinitionRequest struct { + // The validator definition to authorize. + ValidatorDefinition *v11.Validator `protobuf:"bytes,1,opt,name=validator_definition,json=validatorDefinition,proto3" json:"validator_definition,omitempty"` + // Optionally, pre-authorization data, if required by the custodian. + // + // Pre-authorization data is backend-specific, and backends are free to ignore it. + // + // Multiple `PreAuthorization` packets can be included in a single request, + // to support multi-party pre-authorizations. + PreAuthorizations []*PreAuthorization `protobuf:"bytes,3,rep,name=pre_authorizations,json=preAuthorizations,proto3" json:"pre_authorizations,omitempty"` +} + +func (m *AuthorizeValidatorDefinitionRequest) Reset() { *m = AuthorizeValidatorDefinitionRequest{} } +func (m *AuthorizeValidatorDefinitionRequest) String() string { return proto.CompactTextString(m) } +func (*AuthorizeValidatorDefinitionRequest) ProtoMessage() {} +func (*AuthorizeValidatorDefinitionRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_e460ce3850593522, []int{2} +} +func (m *AuthorizeValidatorDefinitionRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AuthorizeValidatorDefinitionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AuthorizeValidatorDefinitionRequest.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 *AuthorizeValidatorDefinitionRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_AuthorizeValidatorDefinitionRequest.Merge(m, src) +} +func (m *AuthorizeValidatorDefinitionRequest) XXX_Size() int { + return m.Size() +} +func (m *AuthorizeValidatorDefinitionRequest) XXX_DiscardUnknown() { + xxx_messageInfo_AuthorizeValidatorDefinitionRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_AuthorizeValidatorDefinitionRequest proto.InternalMessageInfo + +func (m *AuthorizeValidatorDefinitionRequest) GetValidatorDefinition() *v11.Validator { + if m != nil { + return m.ValidatorDefinition + } + return nil +} + +func (m *AuthorizeValidatorDefinitionRequest) GetPreAuthorizations() []*PreAuthorization { + if m != nil { + return m.PreAuthorizations + } + return nil +} + +type AuthorizeValidatorDefinitionResponse struct { + // The authorization signature for the validator definition. + ValidatorDefinitionAuth *v12.SpendAuthSignature `protobuf:"bytes,1,opt,name=validator_definition_auth,json=validatorDefinitionAuth,proto3" json:"validator_definition_auth,omitempty"` +} + +func (m *AuthorizeValidatorDefinitionResponse) Reset() { *m = AuthorizeValidatorDefinitionResponse{} } +func (m *AuthorizeValidatorDefinitionResponse) String() string { return proto.CompactTextString(m) } +func (*AuthorizeValidatorDefinitionResponse) ProtoMessage() {} +func (*AuthorizeValidatorDefinitionResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_e460ce3850593522, []int{3} +} +func (m *AuthorizeValidatorDefinitionResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AuthorizeValidatorDefinitionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AuthorizeValidatorDefinitionResponse.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 *AuthorizeValidatorDefinitionResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_AuthorizeValidatorDefinitionResponse.Merge(m, src) +} +func (m *AuthorizeValidatorDefinitionResponse) XXX_Size() int { + return m.Size() +} +func (m *AuthorizeValidatorDefinitionResponse) XXX_DiscardUnknown() { + xxx_messageInfo_AuthorizeValidatorDefinitionResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_AuthorizeValidatorDefinitionResponse proto.InternalMessageInfo + +func (m *AuthorizeValidatorDefinitionResponse) GetValidatorDefinitionAuth() *v12.SpendAuthSignature { + if m != nil { + return m.ValidatorDefinitionAuth + } + return nil +} + +type AuthorizeValidatorVoteRequest struct { + // The validator vote to authorize. + ValidatorVote *v13.ValidatorVoteBody `protobuf:"bytes,1,opt,name=validator_vote,json=validatorVote,proto3" json:"validator_vote,omitempty"` + // Optionally, pre-authorization data, if required by the custodian. + // + // Pre-authorization data is backend-specific, and backends are free to ignore it. + // + // Multiple `PreAuthorization` packets can be included in a single request, + // to support multi-party pre-authorizations. + PreAuthorizations []*PreAuthorization `protobuf:"bytes,3,rep,name=pre_authorizations,json=preAuthorizations,proto3" json:"pre_authorizations,omitempty"` +} + +func (m *AuthorizeValidatorVoteRequest) Reset() { *m = AuthorizeValidatorVoteRequest{} } +func (m *AuthorizeValidatorVoteRequest) String() string { return proto.CompactTextString(m) } +func (*AuthorizeValidatorVoteRequest) ProtoMessage() {} +func (*AuthorizeValidatorVoteRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_e460ce3850593522, []int{4} +} +func (m *AuthorizeValidatorVoteRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AuthorizeValidatorVoteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AuthorizeValidatorVoteRequest.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 *AuthorizeValidatorVoteRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_AuthorizeValidatorVoteRequest.Merge(m, src) +} +func (m *AuthorizeValidatorVoteRequest) XXX_Size() int { + return m.Size() +} +func (m *AuthorizeValidatorVoteRequest) XXX_DiscardUnknown() { + xxx_messageInfo_AuthorizeValidatorVoteRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_AuthorizeValidatorVoteRequest proto.InternalMessageInfo + +func (m *AuthorizeValidatorVoteRequest) GetValidatorVote() *v13.ValidatorVoteBody { + if m != nil { + return m.ValidatorVote + } + return nil +} + +func (m *AuthorizeValidatorVoteRequest) GetPreAuthorizations() []*PreAuthorization { + if m != nil { + return m.PreAuthorizations + } + return nil +} + +type AuthorizeValidatorVoteResponse struct { + // The authorization signature for the validator vote. + ValidatorVoteAuth *v12.SpendAuthSignature `protobuf:"bytes,1,opt,name=validator_vote_auth,json=validatorVoteAuth,proto3" json:"validator_vote_auth,omitempty"` +} + +func (m *AuthorizeValidatorVoteResponse) Reset() { *m = AuthorizeValidatorVoteResponse{} } +func (m *AuthorizeValidatorVoteResponse) String() string { return proto.CompactTextString(m) } +func (*AuthorizeValidatorVoteResponse) ProtoMessage() {} +func (*AuthorizeValidatorVoteResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_e460ce3850593522, []int{5} +} +func (m *AuthorizeValidatorVoteResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AuthorizeValidatorVoteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AuthorizeValidatorVoteResponse.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 *AuthorizeValidatorVoteResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_AuthorizeValidatorVoteResponse.Merge(m, src) +} +func (m *AuthorizeValidatorVoteResponse) XXX_Size() int { + return m.Size() +} +func (m *AuthorizeValidatorVoteResponse) XXX_DiscardUnknown() { + xxx_messageInfo_AuthorizeValidatorVoteResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_AuthorizeValidatorVoteResponse proto.InternalMessageInfo + +func (m *AuthorizeValidatorVoteResponse) GetValidatorVoteAuth() *v12.SpendAuthSignature { + if m != nil { + return m.ValidatorVoteAuth + } + return nil +} + // A pre-authorization packet. This allows a custodian to delegate (partial) // signing authority to other authorization mechanisms. Details of how a // custodian manages those keys are out-of-scope for the custody protocol and @@ -146,7 +357,7 @@ func (m *PreAuthorization) Reset() { *m = PreAuthorization{} } func (m *PreAuthorization) String() string { return proto.CompactTextString(m) } func (*PreAuthorization) ProtoMessage() {} func (*PreAuthorization) Descriptor() ([]byte, []int) { - return fileDescriptor_8c8c99775232419d, []int{2} + return fileDescriptor_e460ce3850593522, []int{6} } func (m *PreAuthorization) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -221,7 +432,7 @@ func (m *PreAuthorization_Ed25519) Reset() { *m = PreAuthorization_Ed255 func (m *PreAuthorization_Ed25519) String() string { return proto.CompactTextString(m) } func (*PreAuthorization_Ed25519) ProtoMessage() {} func (*PreAuthorization_Ed25519) Descriptor() ([]byte, []int) { - return fileDescriptor_8c8c99775232419d, []int{2, 0} + return fileDescriptor_e460ce3850593522, []int{6, 0} } func (m *PreAuthorization_Ed25519) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -271,7 +482,7 @@ func (m *ExportFullViewingKeyRequest) Reset() { *m = ExportFullViewingKe func (m *ExportFullViewingKeyRequest) String() string { return proto.CompactTextString(m) } func (*ExportFullViewingKeyRequest) ProtoMessage() {} func (*ExportFullViewingKeyRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8c8c99775232419d, []int{3} + return fileDescriptor_e460ce3850593522, []int{7} } func (m *ExportFullViewingKeyRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -302,14 +513,14 @@ var xxx_messageInfo_ExportFullViewingKeyRequest proto.InternalMessageInfo type ExportFullViewingKeyResponse struct { // The full viewing key. - FullViewingKey *v1alpha11.FullViewingKey `protobuf:"bytes,1,opt,name=full_viewing_key,json=fullViewingKey,proto3" json:"full_viewing_key,omitempty"` + FullViewingKey *v14.FullViewingKey `protobuf:"bytes,1,opt,name=full_viewing_key,json=fullViewingKey,proto3" json:"full_viewing_key,omitempty"` } func (m *ExportFullViewingKeyResponse) Reset() { *m = ExportFullViewingKeyResponse{} } func (m *ExportFullViewingKeyResponse) String() string { return proto.CompactTextString(m) } func (*ExportFullViewingKeyResponse) ProtoMessage() {} func (*ExportFullViewingKeyResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8c8c99775232419d, []int{4} + return fileDescriptor_e460ce3850593522, []int{8} } func (m *ExportFullViewingKeyResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -338,7 +549,7 @@ func (m *ExportFullViewingKeyResponse) XXX_DiscardUnknown() { var xxx_messageInfo_ExportFullViewingKeyResponse proto.InternalMessageInfo -func (m *ExportFullViewingKeyResponse) GetFullViewingKey() *v1alpha11.FullViewingKey { +func (m *ExportFullViewingKeyResponse) GetFullViewingKey() *v14.FullViewingKey { if m != nil { return m.FullViewingKey } @@ -346,14 +557,14 @@ func (m *ExportFullViewingKeyResponse) GetFullViewingKey() *v1alpha11.FullViewin } type ConfirmAddressRequest struct { - AddressIndex *v1alpha11.AddressIndex `protobuf:"bytes,1,opt,name=address_index,json=addressIndex,proto3" json:"address_index,omitempty"` + AddressIndex *v14.AddressIndex `protobuf:"bytes,1,opt,name=address_index,json=addressIndex,proto3" json:"address_index,omitempty"` } func (m *ConfirmAddressRequest) Reset() { *m = ConfirmAddressRequest{} } func (m *ConfirmAddressRequest) String() string { return proto.CompactTextString(m) } func (*ConfirmAddressRequest) ProtoMessage() {} func (*ConfirmAddressRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8c8c99775232419d, []int{5} + return fileDescriptor_e460ce3850593522, []int{9} } func (m *ConfirmAddressRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -382,7 +593,7 @@ func (m *ConfirmAddressRequest) XXX_DiscardUnknown() { var xxx_messageInfo_ConfirmAddressRequest proto.InternalMessageInfo -func (m *ConfirmAddressRequest) GetAddressIndex() *v1alpha11.AddressIndex { +func (m *ConfirmAddressRequest) GetAddressIndex() *v14.AddressIndex { if m != nil { return m.AddressIndex } @@ -390,14 +601,14 @@ func (m *ConfirmAddressRequest) GetAddressIndex() *v1alpha11.AddressIndex { } type ConfirmAddressResponse struct { - Address *v1alpha11.Address `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + Address *v14.Address `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` } func (m *ConfirmAddressResponse) Reset() { *m = ConfirmAddressResponse{} } func (m *ConfirmAddressResponse) String() string { return proto.CompactTextString(m) } func (*ConfirmAddressResponse) ProtoMessage() {} func (*ConfirmAddressResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8c8c99775232419d, []int{6} + return fileDescriptor_e460ce3850593522, []int{10} } func (m *ConfirmAddressResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -426,7 +637,7 @@ func (m *ConfirmAddressResponse) XXX_DiscardUnknown() { var xxx_messageInfo_ConfirmAddressResponse proto.InternalMessageInfo -func (m *ConfirmAddressResponse) GetAddress() *v1alpha11.Address { +func (m *ConfirmAddressResponse) GetAddress() *v14.Address { if m != nil { return m.Address } @@ -434,64 +645,81 @@ func (m *ConfirmAddressResponse) GetAddress() *v1alpha11.Address { } func init() { - proto.RegisterType((*AuthorizeRequest)(nil), "penumbra.custody.v1alpha1.AuthorizeRequest") - proto.RegisterType((*AuthorizeResponse)(nil), "penumbra.custody.v1alpha1.AuthorizeResponse") - proto.RegisterType((*PreAuthorization)(nil), "penumbra.custody.v1alpha1.PreAuthorization") - proto.RegisterType((*PreAuthorization_Ed25519)(nil), "penumbra.custody.v1alpha1.PreAuthorization.Ed25519") - proto.RegisterType((*ExportFullViewingKeyRequest)(nil), "penumbra.custody.v1alpha1.ExportFullViewingKeyRequest") - proto.RegisterType((*ExportFullViewingKeyResponse)(nil), "penumbra.custody.v1alpha1.ExportFullViewingKeyResponse") - proto.RegisterType((*ConfirmAddressRequest)(nil), "penumbra.custody.v1alpha1.ConfirmAddressRequest") - proto.RegisterType((*ConfirmAddressResponse)(nil), "penumbra.custody.v1alpha1.ConfirmAddressResponse") -} - -func init() { - proto.RegisterFile("penumbra/custody/v1alpha1/custody.proto", fileDescriptor_8c8c99775232419d) -} - -var fileDescriptor_8c8c99775232419d = []byte{ - // 657 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0xcd, 0x6e, 0xd3, 0x4c, - 0x14, 0x8d, 0x9d, 0xea, 0xab, 0xbe, 0xdb, 0x52, 0xa5, 0x03, 0x54, 0x6d, 0x4a, 0xa3, 0xca, 0xe2, - 0xa7, 0xa8, 0xc8, 0x26, 0x29, 0x05, 0x11, 0x24, 0xa4, 0xa6, 0x94, 0x52, 0x21, 0xc0, 0x32, 0xb4, - 0xaa, 0xaa, 0x8a, 0x68, 0xea, 0x4c, 0x12, 0x2b, 0x8e, 0xc7, 0xcc, 0xd8, 0xa1, 0x61, 0xc7, 0x8a, - 0x2d, 0xcf, 0x50, 0x89, 0x0d, 0x2f, 0xc0, 0x2b, 0x20, 0x56, 0x5d, 0xb2, 0x44, 0xe9, 0x8e, 0xa7, - 0x40, 0x89, 0x67, 0x9a, 0xc4, 0x24, 0x21, 0xdd, 0xf9, 0x9e, 0x7b, 0xee, 0xb9, 0xbf, 0x1e, 0xb8, - 0xe5, 0x13, 0x2f, 0xac, 0x1f, 0x31, 0x6c, 0xd8, 0x21, 0x0f, 0x68, 0xa9, 0x69, 0x34, 0xb2, 0xd8, - 0xf5, 0xab, 0x38, 0x2b, 0x01, 0xdd, 0x67, 0x34, 0xa0, 0x68, 0x41, 0x12, 0x75, 0x89, 0x4b, 0x62, - 0xfa, 0x66, 0x57, 0x83, 0x32, 0x62, 0xd4, 0x48, 0x93, 0x77, 0x55, 0xda, 0x56, 0x24, 0x91, 0xbe, - 0xd7, 0xcf, 0x0b, 0x18, 0xf6, 0x38, 0xb6, 0x03, 0x87, 0x7a, 0x5d, 0x7a, 0x0f, 0x18, 0x45, 0x69, - 0xdf, 0x14, 0x48, 0x6d, 0x84, 0x41, 0x95, 0x32, 0xe7, 0x03, 0xb1, 0xc8, 0xbb, 0x90, 0xf0, 0x00, - 0x6d, 0xc3, 0x84, 0xef, 0x62, 0x6f, 0x5e, 0x59, 0x56, 0x56, 0xa6, 0x72, 0x6b, 0x7a, 0xb7, 0x38, - 0xca, 0x88, 0xde, 0x2b, 0x22, 0x95, 0xf5, 0x37, 0x5d, 0xd0, 0x74, 0xb1, 0x67, 0x75, 0x04, 0xd0, - 0x01, 0x20, 0x9f, 0x91, 0x22, 0x16, 0x09, 0x70, 0xdb, 0xcd, 0xe7, 0x93, 0xcb, 0xc9, 0x95, 0xa9, - 0xdc, 0xaa, 0x3e, 0xb4, 0x67, 0xdd, 0x64, 0x64, 0xa3, 0x37, 0xc6, 0x9a, 0xf5, 0x63, 0x08, 0xd7, - 0xde, 0xc2, 0x6c, 0x4f, 0xe1, 0xdc, 0xa7, 0x1e, 0x27, 0x68, 0x07, 0x26, 0x4a, 0x38, 0xc0, 0xa2, - 0xf2, 0xf5, 0x71, 0x2a, 0xef, 0x93, 0x7d, 0x82, 0x03, 0x6c, 0x75, 0x24, 0xb4, 0x2f, 0x0a, 0xa4, - 0xe2, 0x75, 0xa0, 0x57, 0x30, 0x49, 0x4a, 0xb9, 0xf5, 0xf5, 0xec, 0xc3, 0x01, 0xc3, 0xf9, 0x57, - 0x17, 0xfa, 0x56, 0x14, 0xfa, 0x2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, 0x78, 0x64, 0xd1, 0xc2, - 0x27, 0x05, 0xae, 0x0c, 0xda, 0x1e, 0xba, 0x3f, 0x42, 0x66, 0xc4, 0x35, 0xa4, 0x1f, 0x5c, 0x38, - 0x4e, 0x54, 0x12, 0xc2, 0x4c, 0xff, 0x98, 0xd1, 0xdd, 0x11, 0x52, 0x03, 0x57, 0x9f, 0xce, 0x5e, - 0x20, 0x22, 0x4a, 0x5b, 0x38, 0x51, 0xbf, 0xb7, 0x32, 0xca, 0x69, 0x2b, 0xa3, 0xfc, 0x6a, 0x65, - 0x94, 0xcf, 0x67, 0x99, 0xc4, 0xe9, 0x59, 0x26, 0xf1, 0xf3, 0x2c, 0x93, 0x80, 0x25, 0x9b, 0xd6, - 0x87, 0x0b, 0x16, 0xa6, 0x7b, 0x57, 0x67, 0x2a, 0x07, 0xbb, 0x15, 0x27, 0xa8, 0x86, 0x47, 0xba, - 0x4d, 0xeb, 0x86, 0x4d, 0x79, 0x9d, 0x72, 0x83, 0x11, 0x17, 0x37, 0x09, 0x33, 0x1a, 0xb9, 0xf3, - 0x4f, 0xbb, 0x8a, 0x1d, 0x8f, 0x1b, 0x43, 0x9f, 0xed, 0x47, 0x02, 0x90, 0xf6, 0x89, 0x9a, 0x34, - 0x37, 0xf7, 0xbf, 0xaa, 0x0b, 0xa6, 0x2c, 0x44, 0xa4, 0xd5, 0xf7, 0x04, 0xe3, 0x47, 0xd7, 0x77, - 0x28, 0x7c, 0x87, 0xd2, 0xd7, 0x52, 0x6f, 0x0c, 0xf5, 0x1d, 0x6e, 0x9b, 0x85, 0x17, 0x24, 0xc0, - 0xed, 0xb7, 0xe8, 0xb7, 0xba, 0x28, 0x79, 0xf9, 0xbc, 0x20, 0xe6, 0xf3, 0x92, 0x79, 0xf4, 0x5f, - 0xe7, 0x29, 0x5f, 0xfb, 0x13, 0x00, 0x00, 0xff, 0xff, 0x2c, 0xdf, 0x4c, 0xa2, 0x6e, 0x06, 0x00, - 0x00, + proto.RegisterType((*AuthorizeRequest)(nil), "penumbra.custody.v1.AuthorizeRequest") + proto.RegisterType((*AuthorizeResponse)(nil), "penumbra.custody.v1.AuthorizeResponse") + proto.RegisterType((*AuthorizeValidatorDefinitionRequest)(nil), "penumbra.custody.v1.AuthorizeValidatorDefinitionRequest") + proto.RegisterType((*AuthorizeValidatorDefinitionResponse)(nil), "penumbra.custody.v1.AuthorizeValidatorDefinitionResponse") + proto.RegisterType((*AuthorizeValidatorVoteRequest)(nil), "penumbra.custody.v1.AuthorizeValidatorVoteRequest") + proto.RegisterType((*AuthorizeValidatorVoteResponse)(nil), "penumbra.custody.v1.AuthorizeValidatorVoteResponse") + proto.RegisterType((*PreAuthorization)(nil), "penumbra.custody.v1.PreAuthorization") + proto.RegisterType((*PreAuthorization_Ed25519)(nil), "penumbra.custody.v1.PreAuthorization.Ed25519") + proto.RegisterType((*ExportFullViewingKeyRequest)(nil), "penumbra.custody.v1.ExportFullViewingKeyRequest") + proto.RegisterType((*ExportFullViewingKeyResponse)(nil), "penumbra.custody.v1.ExportFullViewingKeyResponse") + proto.RegisterType((*ConfirmAddressRequest)(nil), "penumbra.custody.v1.ConfirmAddressRequest") + proto.RegisterType((*ConfirmAddressResponse)(nil), "penumbra.custody.v1.ConfirmAddressResponse") +} + +func init() { proto.RegisterFile("penumbra/custody/v1/custody.proto", fileDescriptor_e460ce3850593522) } + +var fileDescriptor_e460ce3850593522 = []byte{ + // 911 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0xcf, 0x6f, 0x1b, 0x45, + 0x18, 0xcd, 0x3a, 0x11, 0x11, 0x5f, 0x53, 0x2b, 0x59, 0xf7, 0x47, 0x30, 0xad, 0x09, 0x5b, 0x8a, + 0x2a, 0x02, 0xbb, 0xac, 0xd3, 0xd2, 0x34, 0x9c, 0xe2, 0xb4, 0xd0, 0x08, 0x21, 0xac, 0x4d, 0x65, + 0x55, 0x55,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37, 0xa7, 0x8d, 0x85, 0x67, 0xa7, 0x8d, + 0x85, 0xdf, 0x4e, 0x1b, 0x0b, 0x70, 0xd5, 0xa5, 0xc3, 0x32, 0xa9, 0xd6, 0x8a, 0x72, 0x68, 0x3b, + 0x7e, 0x7e, 0xb4, 0xb5, 0x27, 0xfb, 0x7d, 0x5f, 0x1c, 0x47, 0x47, 0xf1, 0xed, 0x6d, 0xb9, 0x94, + 0x0f, 0x29, 0xb7, 0x18, 0x0e, 0xd0, 0x08, 0x33, 0x4b, 0x36, 0xc7, 0x4b, 0xf7, 0x18, 0xf9, 0x84, + 0x5b, 0x25, 0x4f, 0xba, 0xf7, 0xd5, 0x52, 0xda, 0x3f, 0x54, 0x16, 0xdb, 0x7b, 0x8f, 0x7f, 0xac, + 0xd4, 0xda, 0x59, 0x5a, 0x95, 0xca, 0xec, 0xd8, 0xbf, 0x4c, 0xa2, 0x87, 0x2a, 0x7a, 0xd8, 0xb1, + 0x4f, 0x2a, 0xaf, 0x95, 0x44, 0x0f, 0x3f, 0x6c, 0xb7, 0x3e, 0xc6, 0x02, 0xc5, 0xef, 0x82, 0x3f, + 0x2b, 0x97, 0x33, 0xc4, 0xce, 0x8e, 0x82, 0xec, 0xec, 0x74, 0xec, 0xa3, 0x97, 0x92, 0xe7, 0xd3, + 0xd6, 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, 0xcc, 0x6b, 0x25, 0x92, 0x66, 0x0a, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -502,12 +730,16 @@ var _ grpc.ClientConn // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion4 -// CustodyProtocolServiceClient is the client API for CustodyProtocolService service. +// CustodyServiceClient is the client API for CustodyService service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type CustodyProtocolServiceClient interface { +type CustodyServiceClient interface { // Requests authorization of the transaction with the given description. Authorize(ctx context.Context, in *AuthorizeRequest, opts ...grpc.CallOption) (*AuthorizeResponse, error) + // Requests authorization of the given validator definition update. + AuthorizeValidatorDefinition(ctx context.Context, in *AuthorizeValidatorDefinitionRequest, opts ...grpc.CallOption) (*AuthorizeValidatorDefinitionResponse, error) + // Requests authorization of the given validator vote. + AuthorizeValidatorVote(ctx context.Context, in *AuthorizeValidatorVoteRequest, opts ...grpc.CallOption) (*AuthorizeValidatorVoteResponse, error) // Requests the full viewing key from the custodian. // // Custody backends should decide whether to honor this request, and how to @@ -522,45 +754,67 @@ type CustodyProtocolServiceClient interface { ConfirmAddress(ctx context.Context, in *ConfirmAddressRequest, opts ...grpc.CallOption) (*ConfirmAddressResponse, error) } -type custodyProtocolServiceClient struct { +type custodyServiceClient struct { cc grpc1.ClientConn } -func NewCustodyProtocolServiceClient(cc grpc1.ClientConn) CustodyProtocolServiceClient { - return &custodyProtocolServiceClient{cc} +func NewCustodyServiceClient(cc grpc1.ClientConn) CustodyServiceClient { + return &custodyServiceClient{cc} } -func (c *custodyProtocolServiceClient) Authorize(ctx context.Context, in *AuthorizeRequest, opts ...grpc.CallOption) (*AuthorizeResponse, error) { +func (c *custodyServiceClient) Authorize(ctx context.Context, in *AuthorizeRequest, opts ...grpc.CallOption) (*AuthorizeResponse, error) { out := new(AuthorizeResponse) - err := c.cc.Invoke(ctx, "/penumbra.custody.v1alpha1.CustodyProtocolService/Authorize", in, out, opts...) + err := c.cc.Invoke(ctx, "/penumbra.custody.v1.CustodyService/Authorize", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *custodyServiceClient) AuthorizeValidatorDefinition(ctx context.Context, in *AuthorizeValidatorDefinitionRequest, opts ...grpc.CallOption) (*AuthorizeValidatorDefinitionResponse, error) { + out := new(AuthorizeValidatorDefinitionResponse) + err := c.cc.Invoke(ctx, "/penumbra.custody.v1.CustodyService/AuthorizeValidatorDefinition", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *custodyServiceClient) AuthorizeValidatorVote(ctx context.Context, in *AuthorizeValidatorVoteRequest, opts ...grpc.CallOption) (*AuthorizeValidatorVoteResponse, error) { + out := new(AuthorizeValidatorVoteResponse) + err := c.cc.Invoke(ctx, "/penumbra.custody.v1.CustodyService/AuthorizeValidatorVote", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *custodyProtocolServiceClient) ExportFullViewingKey(ctx context.Context, in *ExportFullViewingKeyRequest, opts ...grpc.CallOption) (*ExportFullViewingKeyResponse, error) { +func (c *custodyServiceClient) ExportFullViewingKey(ctx context.Context, in *ExportFullViewingKeyRequest, opts ...grpc.CallOption) (*ExportFullViewingKeyResponse, error) { out := new(ExportFullViewingKeyResponse) - err := c.cc.Invoke(ctx, "/penumbra.custody.v1alpha1.CustodyProtocolService/ExportFullViewingKey", in, out, opts...) + err := c.cc.Invoke(ctx, "/penumbra.custody.v1.CustodyService/ExportFullViewingKey", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *custodyProtocolServiceClient) ConfirmAddress(ctx context.Context, in *ConfirmAddressRequest, opts ...grpc.CallOption) (*ConfirmAddressResponse, error) { +func (c *custodyServiceClient) ConfirmAddress(ctx context.Context, in *ConfirmAddressRequest, opts ...grpc.CallOption) (*ConfirmAddressResponse, error) { out := new(ConfirmAddressResponse) - err := c.cc.Invoke(ctx, "/penumbra.custody.v1alpha1.CustodyProtocolService/ConfirmAddress", in, out, opts...) + err := c.cc.Invoke(ctx, "/penumbra.custody.v1.CustodyService/ConfirmAddress", in, out, opts...) if err != nil { return nil, err } return out, nil } -// CustodyProtocolServiceServer is the server API for CustodyProtocolService service. -type CustodyProtocolServiceServer interface { +// CustodyServiceServer is the server API for CustodyService service. +type CustodyServiceServer interface { // Requests authorization of the transaction with the given description. Authorize(context.Context, *AuthorizeRequest) (*AuthorizeResponse, error) + // Requests authorization of the given validator definition update. + AuthorizeValidatorDefinition(context.Context, *AuthorizeValidatorDefinitionRequest) (*AuthorizeValidatorDefinitionResponse, error) + // Requests authorization of the given validator vote. + AuthorizeValidatorVote(context.Context, *AuthorizeValidatorVoteRequest) (*AuthorizeValidatorVoteResponse, error) // Requests the full viewing key from the custodian. // // Custody backends should decide whether to honor this request, and how to @@ -575,97 +829,147 @@ type CustodyProtocolServiceServer interface { ConfirmAddress(context.Context, *ConfirmAddressRequest) (*ConfirmAddressResponse, error) } -// UnimplementedCustodyProtocolServiceServer can be embedded to have forward compatible implementations. -type UnimplementedCustodyProtocolServiceServer struct { +// UnimplementedCustodyServiceServer can be embedded to have forward compatible implementations. +type UnimplementedCustodyServiceServer struct { } -func (*UnimplementedCustodyProtocolServiceServer) Authorize(ctx context.Context, req *AuthorizeRequest) (*AuthorizeResponse, error) { +func (*UnimplementedCustodyServiceServer) Authorize(ctx context.Context, req *AuthorizeRequest) (*AuthorizeResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Authorize not implemented") } -func (*UnimplementedCustodyProtocolServiceServer) ExportFullViewingKey(ctx context.Context, req *ExportFullViewingKeyRequest) (*ExportFullViewingKeyResponse, error) { +func (*UnimplementedCustodyServiceServer) AuthorizeValidatorDefinition(ctx context.Context, req *AuthorizeValidatorDefinitionRequest) (*AuthorizeValidatorDefinitionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AuthorizeValidatorDefinition not implemented") +} +func (*UnimplementedCustodyServiceServer) AuthorizeValidatorVote(ctx context.Context, req *AuthorizeValidatorVoteRequest) (*AuthorizeValidatorVoteResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AuthorizeValidatorVote not implemented") +} +func (*UnimplementedCustodyServiceServer) ExportFullViewingKey(ctx context.Context, req *ExportFullViewingKeyRequest) (*ExportFullViewingKeyResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ExportFullViewingKey not implemented") } -func (*UnimplementedCustodyProtocolServiceServer) ConfirmAddress(ctx context.Context, req *ConfirmAddressRequest) (*ConfirmAddressResponse, error) { +func (*UnimplementedCustodyServiceServer) ConfirmAddress(ctx context.Context, req *ConfirmAddressRequest) (*ConfirmAddressResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ConfirmAddress not implemented") } -func RegisterCustodyProtocolServiceServer(s grpc1.Server, srv CustodyProtocolServiceServer) { - s.RegisterService(&_CustodyProtocolService_serviceDesc, srv) +func RegisterCustodyServiceServer(s grpc1.Server, srv CustodyServiceServer) { + s.RegisterService(&_CustodyService_serviceDesc, srv) } -func _CustodyProtocolService_Authorize_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { +func _CustodyService_Authorize_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(AuthorizeRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(CustodyProtocolServiceServer).Authorize(ctx, in) + return srv.(CustodyServiceServer).Authorize(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/penumbra.custody.v1.CustodyService/Authorize", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CustodyServiceServer).Authorize(ctx, req.(*AuthorizeRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _CustodyService_AuthorizeValidatorDefinition_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AuthorizeValidatorDefinitionRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CustodyServiceServer).AuthorizeValidatorDefinition(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/penumbra.custody.v1alpha1.CustodyProtocolService/Authorize", + FullMethod: "/penumbra.custody.v1.CustodyService/AuthorizeValidatorDefinition", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CustodyProtocolServiceServer).Authorize(ctx, req.(*AuthorizeRequest)) + return srv.(CustodyServiceServer).AuthorizeValidatorDefinition(ctx, req.(*AuthorizeValidatorDefinitionRequest)) } return interceptor(ctx, in, info, handler) } -func _CustodyProtocolService_ExportFullViewingKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { +func _CustodyService_AuthorizeValidatorVote_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AuthorizeValidatorVoteRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CustodyServiceServer).AuthorizeValidatorVote(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/penumbra.custody.v1.CustodyService/AuthorizeValidatorVote", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CustodyServiceServer).AuthorizeValidatorVote(ctx, req.(*AuthorizeValidatorVoteRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _CustodyService_ExportFullViewingKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ExportFullViewingKeyRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(CustodyProtocolServiceServer).ExportFullViewingKey(ctx, in) + return srv.(CustodyServiceServer).ExportFullViewingKey(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/penumbra.custody.v1alpha1.CustodyProtocolService/ExportFullViewingKey", + FullMethod: "/penumbra.custody.v1.CustodyService/ExportFullViewingKey", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CustodyProtocolServiceServer).ExportFullViewingKey(ctx, req.(*ExportFullViewingKeyRequest)) + return srv.(CustodyServiceServer).ExportFullViewingKey(ctx, req.(*ExportFullViewingKeyRequest)) } return interceptor(ctx, in, info, handler) } -func _CustodyProtocolService_ConfirmAddress_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { +func _CustodyService_ConfirmAddress_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ConfirmAddressRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(CustodyProtocolServiceServer).ConfirmAddress(ctx, in) + return srv.(CustodyServiceServer).ConfirmAddress(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/penumbra.custody.v1alpha1.CustodyProtocolService/ConfirmAddress", + FullMethod: "/penumbra.custody.v1.CustodyService/ConfirmAddress", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CustodyProtocolServiceServer).ConfirmAddress(ctx, req.(*ConfirmAddressRequest)) + return srv.(CustodyServiceServer).ConfirmAddress(ctx, req.(*ConfirmAddressRequest)) } return interceptor(ctx, in, info, handler) } -var _CustodyProtocolService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "penumbra.custody.v1alpha1.CustodyProtocolService", - HandlerType: (*CustodyProtocolServiceServer)(nil), +var _CustodyService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "penumbra.custody.v1.CustodyService", + HandlerType: (*CustodyServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Authorize", - Handler: _CustodyProtocolService_Authorize_Handler, + Handler: _CustodyService_Authorize_Handler, + }, + { + MethodName: "AuthorizeValidatorDefinition", + Handler: _CustodyService_AuthorizeValidatorDefinition_Handler, + }, + { + MethodName: "AuthorizeValidatorVote", + Handler: _CustodyService_AuthorizeValidatorVote_Handler, }, { MethodName: "ExportFullViewingKey", - Handler: _CustodyProtocolService_ExportFullViewingKey_Handler, + Handler: _CustodyService_ExportFullViewingKey_Handler, }, { MethodName: "ConfirmAddress", - Handler: _CustodyProtocolService_ConfirmAddress_Handler, + Handler: _CustodyService_ConfirmAddress_Handler, }, }, Streams: []grpc.StreamDesc{}, - Metadata: "penumbra/custody/v1alpha1/custody.proto", + Metadata: "penumbra/custody/v1/custody.proto", } func (m *AuthorizeRequest) Marshal() (dAtA []byte, err error) { @@ -752,7 +1056,7 @@ func (m *AuthorizeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *PreAuthorization) Marshal() (dAtA []byte, err error) { +func (m *AuthorizeValidatorDefinitionRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -762,38 +1066,68 @@ func (m *PreAuthorization) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *PreAuthorization) MarshalTo(dAtA []byte) (int, error) { +func (m *AuthorizeValidatorDefinitionRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *PreAuthorization) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *AuthorizeValidatorDefinitionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.PreAuthorization != nil { + if len(m.PreAuthorizations) > 0 { + for iNdEx := len(m.PreAuthorizations) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.PreAuthorizations[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCustody(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if m.ValidatorDefinition != nil { { - size := m.PreAuthorization.Size() - i -= size - if _, err := m.PreAuthorization.MarshalTo(dAtA[i:]); err != nil { + size, err := m.ValidatorDefinition.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { return 0, err } + i -= size + i = encodeVarintCustody(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *PreAuthorization_Ed25519_) MarshalTo(dAtA []byte) (int, error) { +func (m *AuthorizeValidatorDefinitionResponse) 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 *AuthorizeValidatorDefinitionResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *PreAuthorization_Ed25519_) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *AuthorizeValidatorDefinitionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) - if m.Ed25519 != nil { + _ = i + var l int + _ = l + if m.ValidatorDefinitionAuth != nil { { - size, err := m.Ed25519.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.ValidatorDefinitionAuth.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -805,7 +1139,8 @@ func (m *PreAuthorization_Ed25519_) MarshalToSizedBuffer(dAtA []byte) (int, erro } return len(dAtA) - i, nil } -func (m *PreAuthorization_Ed25519) Marshal() (dAtA []byte, err error) { + +func (m *AuthorizeValidatorVoteRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -815,34 +1150,46 @@ func (m *PreAuthorization_Ed25519) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *PreAuthorization_Ed25519) MarshalTo(dAtA []byte) (int, error) { +func (m *AuthorizeValidatorVoteRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *PreAuthorization_Ed25519) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *AuthorizeValidatorVoteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.Sig) > 0 { - i -= len(m.Sig) - copy(dAtA[i:], m.Sig) - i = encodeVarintCustody(dAtA, i, uint64(len(m.Sig))) - i-- - dAtA[i] = 0x12 + if len(m.PreAuthorizations) > 0 { + for iNdEx := len(m.PreAuthorizations) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.PreAuthorizations[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCustody(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } } - if len(m.Vk) > 0 { - i -= len(m.Vk) - copy(dAtA[i:], m.Vk) - i = encodeVarintCustody(dAtA, i, uint64(len(m.Vk))) + if m.ValidatorVote != nil { + { + size, err := m.ValidatorVote.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCustody(dAtA, i, uint64(size)) + } i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *ExportFullViewingKeyRequest) Marshal() (dAtA []byte, err error) { +func (m *AuthorizeValidatorVoteResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -852,12 +1199,137 @@ func (m *ExportFullViewingKeyRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *ExportFullViewingKeyRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *AuthorizeValidatorVoteResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *ExportFullViewingKeyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *AuthorizeValidatorVoteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.ValidatorVoteAuth != nil { + { + size, err := m.ValidatorVoteAuth.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCustody(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *PreAuthorization) 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 *PreAuthorization) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PreAuthorization) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.PreAuthorization != nil { + { + size := m.PreAuthorization.Size() + i -= size + if _, err := m.PreAuthorization.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } + } + return len(dAtA) - i, nil +} + +func (m *PreAuthorization_Ed25519_) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PreAuthorization_Ed25519_) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Ed25519 != nil { + { + size, err := m.Ed25519.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCustody(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} +func (m *PreAuthorization_Ed25519) 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 *PreAuthorization_Ed25519) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PreAuthorization_Ed25519) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Sig) > 0 { + i -= len(m.Sig) + copy(dAtA[i:], m.Sig) + i = encodeVarintCustody(dAtA, i, uint64(len(m.Sig))) + i-- + dAtA[i] = 0x12 + } + if len(m.Vk) > 0 { + i -= len(m.Vk) + copy(dAtA[i:], m.Vk) + i = encodeVarintCustody(dAtA, i, uint64(len(m.Vk))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ExportFullViewingKeyRequest) 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 *ExportFullViewingKeyRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ExportFullViewingKeyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1013,6 +1485,70 @@ func (m *AuthorizeResponse) Size() (n int) { return n } +func (m *AuthorizeValidatorDefinitionRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ValidatorDefinition != nil { + l = m.ValidatorDefinition.Size() + n += 1 + l + sovCustody(uint64(l)) + } + if len(m.PreAuthorizations) > 0 { + for _, e := range m.PreAuthorizations { + l = e.Size() + n += 1 + l + sovCustody(uint64(l)) + } + } + return n +} + +func (m *AuthorizeValidatorDefinitionResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ValidatorDefinitionAuth != nil { + l = m.ValidatorDefinitionAuth.Size() + n += 1 + l + sovCustody(uint64(l)) + } + return n +} + +func (m *AuthorizeValidatorVoteRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ValidatorVote != nil { + l = m.ValidatorVote.Size() + n += 1 + l + sovCustody(uint64(l)) + } + if len(m.PreAuthorizations) > 0 { + for _, e := range m.PreAuthorizations { + l = e.Size() + n += 1 + l + sovCustody(uint64(l)) + } + } + return n +} + +func (m *AuthorizeValidatorVoteResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ValidatorVoteAuth != nil { + l = m.ValidatorVoteAuth.Size() + n += 1 + l + sovCustody(uint64(l)) + } + return n +} + func (m *PreAuthorization) Size() (n int) { if m == nil { return 0 @@ -1167,7 +1703,7 @@ func (m *AuthorizeRequest) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Plan == nil { - m.Plan = &v1alpha1.TransactionPlan{} + m.Plan = &v1.TransactionPlan{} } if err := m.Plan.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -1287,7 +1823,7 @@ func (m *AuthorizeResponse) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Data == nil { - m.Data = &v1alpha1.AuthorizationData{} + m.Data = &v1.AuthorizationData{} } if err := m.Data.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -1314,6 +1850,418 @@ func (m *AuthorizeResponse) Unmarshal(dAtA []byte) error { } return nil } +func (m *AuthorizeValidatorDefinitionRequest) 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 ErrIntOverflowCustody + } + 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: AuthorizeValidatorDefinitionRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AuthorizeValidatorDefinitionRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ValidatorDefinition", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCustody + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCustody + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCustody + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ValidatorDefinition == nil { + m.ValidatorDefinition = &v11.Validator{} + } + if err := m.ValidatorDefinition.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PreAuthorizations", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCustody + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCustody + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCustody + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PreAuthorizations = append(m.PreAuthorizations, &PreAuthorization{}) + if err := m.PreAuthorizations[len(m.PreAuthorizations)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCustody(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCustody + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AuthorizeValidatorDefinitionResponse) 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 ErrIntOverflowCustody + } + 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: AuthorizeValidatorDefinitionResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AuthorizeValidatorDefinitionResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ValidatorDefinitionAuth", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCustody + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCustody + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCustody + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ValidatorDefinitionAuth == nil { + m.ValidatorDefinitionAuth = &v12.SpendAuthSignature{} + } + if err := m.ValidatorDefinitionAuth.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCustody(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCustody + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AuthorizeValidatorVoteRequest) 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 ErrIntOverflowCustody + } + 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: AuthorizeValidatorVoteRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AuthorizeValidatorVoteRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ValidatorVote", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCustody + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCustody + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCustody + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ValidatorVote == nil { + m.ValidatorVote = &v13.ValidatorVoteBody{} + } + if err := m.ValidatorVote.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PreAuthorizations", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCustody + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCustody + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCustody + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PreAuthorizations = append(m.PreAuthorizations, &PreAuthorization{}) + if err := m.PreAuthorizations[len(m.PreAuthorizations)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCustody(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCustody + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AuthorizeValidatorVoteResponse) 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 ErrIntOverflowCustody + } + 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: AuthorizeValidatorVoteResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AuthorizeValidatorVoteResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ValidatorVoteAuth", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCustody + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCustody + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCustody + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ValidatorVoteAuth == nil { + m.ValidatorVoteAuth = &v12.SpendAuthSignature{} + } + if err := m.ValidatorVoteAuth.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCustody(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCustody + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func (m *PreAuthorization) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -1626,7 +2574,7 @@ func (m *ExportFullViewingKeyResponse) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.FullViewingKey == nil { - m.FullViewingKey = &v1alpha11.FullViewingKey{} + m.FullViewingKey = &v14.FullViewingKey{} } if err := m.FullViewingKey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -1712,7 +2660,7 @@ func (m *ConfirmAddressRequest) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.AddressIndex == nil { - m.AddressIndex = &v1alpha11.AddressIndex{} + m.AddressIndex = &v14.AddressIndex{} } if err := m.AddressIndex.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -1798,7 +2746,7 @@ func (m *ConfirmAddressResponse) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Address == nil { - m.Address = &v1alpha11.Address{} + m.Address = &v14.Address{} } if err := m.Address.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err diff --git a/relayer/chains/penumbra/storage/v1alpha1/storage.pb.go b/relayer/chains/penumbra/storage/v1alpha1/storage.pb.go deleted file mode 100644 index a7c67d143..000000000 --- a/relayer/chains/penumbra/storage/v1alpha1/storage.pb.go +++ /dev/null @@ -1,1455 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: penumbra/storage/v1alpha1/storage.proto - -package storagev1alpha1 - -import ( - context "context" - fmt "fmt" - grpc1 "github.com/cosmos/gogoproto/grpc" - proto "github.com/cosmos/gogoproto/proto" - types "github.com/cosmos/ibc-go/v8/modules/core/23-commitment/types" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - io "io" - math "math" - math_bits "math/bits" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package - -// Performs a key-value query, either by key or by key hash. -// -// Proofs are only supported by key. -type KeyValueRequest struct { - // The expected chain id (empty string if no expectation). - ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` - // If set, the key to fetch from storage. - Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` - // whether to return a proof - Proof bool `protobuf:"varint,3,opt,name=proof,proto3" json:"proof,omitempty"` -} - -func (m *KeyValueRequest) Reset() { *m = KeyValueRequest{} } -func (m *KeyValueRequest) String() string { return proto.CompactTextString(m) } -func (*KeyValueRequest) ProtoMessage() {} -func (*KeyValueRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_02c76aead37ce84a, []int{0} -} -func (m *KeyValueRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *KeyValueRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_KeyValueRequest.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 *KeyValueRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_KeyValueRequest.Merge(m, src) -} -func (m *KeyValueRequest) XXX_Size() int { - return m.Size() -} -func (m *KeyValueRequest) XXX_DiscardUnknown() { - xxx_messageInfo_KeyValueRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_KeyValueRequest proto.InternalMessageInfo - -func (m *KeyValueRequest) GetChainId() string { - if m != nil { - return m.ChainId - } - return "" -} - -func (m *KeyValueRequest) GetKey() string { - if m != nil { - return m.Key - } - return "" -} - -func (m *KeyValueRequest) GetProof() bool { - if m != nil { - return m.Proof - } - return false -} - -type KeyValueResponse struct { - // The value corresponding to the specified key, if it was found. - Value *KeyValueResponse_Value `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` - // A proof of existence or non-existence. - Proof *types.MerkleProof `protobuf:"bytes,2,opt,name=proof,proto3" json:"proof,omitempty"` -} - -func (m *KeyValueResponse) Reset() { *m = KeyValueResponse{} } -func (m *KeyValueResponse) String() string { return proto.CompactTextString(m) } -func (*KeyValueResponse) ProtoMessage() {} -func (*KeyValueResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_02c76aead37ce84a, []int{1} -} -func (m *KeyValueResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *KeyValueResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_KeyValueResponse.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 *KeyValueResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_KeyValueResponse.Merge(m, src) -} -func (m *KeyValueResponse) XXX_Size() int { - return m.Size() -} -func (m *KeyValueResponse) XXX_DiscardUnknown() { - xxx_messageInfo_KeyValueResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_KeyValueResponse proto.InternalMessageInfo - -func (m *KeyValueResponse) GetValue() *KeyValueResponse_Value { - if m != nil { - return m.Value - } - return nil -} - -func (m *KeyValueResponse) GetProof() *types.MerkleProof { - if m != nil { - return m.Proof - } - return nil -} - -type KeyValueResponse_Value struct { - Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` -} - -func (m *KeyValueResponse_Value) Reset() { *m = KeyValueResponse_Value{} } -func (m *KeyValueResponse_Value) String() string { return proto.CompactTextString(m) } -func (*KeyValueResponse_Value) ProtoMessage() {} -func (*KeyValueResponse_Value) Descriptor() ([]byte, []int) { - return fileDescriptor_02c76aead37ce84a, []int{1, 0} -} -func (m *KeyValueResponse_Value) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *KeyValueResponse_Value) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_KeyValueResponse_Value.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 *KeyValueResponse_Value) XXX_Merge(src proto.Message) { - xxx_messageInfo_KeyValueResponse_Value.Merge(m, src) -} -func (m *KeyValueResponse_Value) XXX_Size() int { - return m.Size() -} -func (m *KeyValueResponse_Value) XXX_DiscardUnknown() { - xxx_messageInfo_KeyValueResponse_Value.DiscardUnknown(m) -} - -var xxx_messageInfo_KeyValueResponse_Value proto.InternalMessageInfo - -func (m *KeyValueResponse_Value) GetValue() []byte { - if m != nil { - return m.Value - } - return nil -} - -// Performs a prefixed key-value query, by string prefix. -type PrefixValueRequest struct { - // The expected chain id (empty string if no expectation). - ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` - // The prefix to fetch subkeys from storage. - Prefix string `protobuf:"bytes,2,opt,name=prefix,proto3" json:"prefix,omitempty"` -} - -func (m *PrefixValueRequest) Reset() { *m = PrefixValueRequest{} } -func (m *PrefixValueRequest) String() string { return proto.CompactTextString(m) } -func (*PrefixValueRequest) ProtoMessage() {} -func (*PrefixValueRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_02c76aead37ce84a, []int{2} -} -func (m *PrefixValueRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PrefixValueRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PrefixValueRequest.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 *PrefixValueRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_PrefixValueRequest.Merge(m, src) -} -func (m *PrefixValueRequest) XXX_Size() int { - return m.Size() -} -func (m *PrefixValueRequest) XXX_DiscardUnknown() { - xxx_messageInfo_PrefixValueRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_PrefixValueRequest proto.InternalMessageInfo - -func (m *PrefixValueRequest) GetChainId() string { - if m != nil { - return m.ChainId - } - return "" -} - -func (m *PrefixValueRequest) GetPrefix() string { - if m != nil { - return m.Prefix - } - return "" -} - -type PrefixValueResponse struct { - Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` - Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` -} - -func (m *PrefixValueResponse) Reset() { *m = PrefixValueResponse{} } -func (m *PrefixValueResponse) String() string { return proto.CompactTextString(m) } -func (*PrefixValueResponse) ProtoMessage() {} -func (*PrefixValueResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_02c76aead37ce84a, []int{3} -} -func (m *PrefixValueResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PrefixValueResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PrefixValueResponse.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 *PrefixValueResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_PrefixValueResponse.Merge(m, src) -} -func (m *PrefixValueResponse) XXX_Size() int { - return m.Size() -} -func (m *PrefixValueResponse) XXX_DiscardUnknown() { - xxx_messageInfo_PrefixValueResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_PrefixValueResponse proto.InternalMessageInfo - -func (m *PrefixValueResponse) GetKey() string { - if m != nil { - return m.Key - } - return "" -} - -func (m *PrefixValueResponse) GetValue() []byte { - if m != nil { - return m.Value - } - return nil -} - -func init() { - proto.RegisterType((*KeyValueRequest)(nil), "penumbra.storage.v1alpha1.KeyValueRequest") - proto.RegisterType((*KeyValueResponse)(nil), "penumbra.storage.v1alpha1.KeyValueResponse") - proto.RegisterType((*KeyValueResponse_Value)(nil), "penumbra.storage.v1alpha1.KeyValueResponse.Value") - proto.RegisterType((*PrefixValueRequest)(nil), "penumbra.storage.v1alpha1.PrefixValueRequest") - proto.RegisterType((*PrefixValueResponse)(nil), "penumbra.storage.v1alpha1.PrefixValueResponse") -} - -func init() { - proto.RegisterFile("penumbra/storage/v1alpha1/storage.proto", fileDescriptor_02c76aead37ce84a) -} - -var fileDescriptor_02c76aead37ce84a = []byte{ - // 490 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 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 0x5c, - 0x2e, 0xed, 0xca, 0x8f, 0xa5, 0x5d, 0xc1, 0xfb, 0x5c, 0x84, 0x9b, 0xf5, 0xfa, 0x8d, 0x51, 0x89, - 0x78, 0xc5, 0x3f, 0xec, 0xa1, 0xf7, 0x6f, 0xcf, 0x82, 0x74, 0x9a, 0xf9, 0xc5, 0xfd, 0x3b, 0x5c, - 0x24, 0xa1, 0x48, 0x1c, 0x09, 0x33, 0x36, 0x07, 0xe9, 0xe4, 0xdd, 0x3f, 0x9f, 0xea, 0xd2, 0x12, - 0x67, 0xe3, 0xf3, 0x7a, 0xae, 0x01, 0x53, 0x5f, 0x58, 0x55, 0x6f, 0xf4, 0xee, 0x8b, 0xd5, 0xf2, - 0x8c, 0x11, 0xbd, 0x96, 0x9e, 0x68, 0xc6, 0xf7, 0x55, 0x6f, 0xac, 0x7b, 0x63, 0xd3, 0x5b, 0x58, - 0x0f, 0x36, 0xf6, 0xc6, 0x03, 0xaf, 0x7f, 0x0c, 0x29, 0x9b, 0xb0, 0x94, 0xfd, 0xb2, 0xee, 0x19, - 0x5e, 0xaf, 0xa7, 0x89, 0xbd, 0x9e, 0x61, 0xfa, 0x3b, 0xea, 0x9d, 0x3e, 0xfd, 0x1d, 0x00, 0x00, - 0xff, 0xff, 0x38, 0xfe, 0xb9, 0xc0, 0x16, 0x04, 0x00, 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// QueryServiceClient is the client API for QueryService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type QueryServiceClient interface { - // General-purpose key-value state query API, that can be used to query - // arbitrary keys in the JMT storage. - KeyValue(ctx context.Context, in *KeyValueRequest, opts ...grpc.CallOption) (*KeyValueResponse, error) - // General-purpose prefixed key-value state query API, that can be used to query - // arbitrary prefixes in the JMT storage. - // Returns a stream of `PrefixValueResponse`s. - PrefixValue(ctx context.Context, in *PrefixValueRequest, opts ...grpc.CallOption) (QueryService_PrefixValueClient, error) -} - -type queryServiceClient struct { - cc grpc1.ClientConn -} - -func NewQueryServiceClient(cc grpc1.ClientConn) QueryServiceClient { - return &queryServiceClient{cc} -} - -func (c *queryServiceClient) KeyValue(ctx context.Context, in *KeyValueRequest, opts ...grpc.CallOption) (*KeyValueResponse, error) { - out := new(KeyValueResponse) - err := c.cc.Invoke(ctx, "/penumbra.storage.v1alpha1.QueryService/KeyValue", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryServiceClient) PrefixValue(ctx context.Context, in *PrefixValueRequest, opts ...grpc.CallOption) (QueryService_PrefixValueClient, error) { - stream, err := c.cc.NewStream(ctx, &_QueryService_serviceDesc.Streams[0], "/penumbra.storage.v1alpha1.QueryService/PrefixValue", opts...) - if err != nil { - return nil, err - } - x := &queryServicePrefixValueClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type QueryService_PrefixValueClient interface { - Recv() (*PrefixValueResponse, error) - grpc.ClientStream -} - -type queryServicePrefixValueClient struct { - grpc.ClientStream -} - -func (x *queryServicePrefixValueClient) Recv() (*PrefixValueResponse, error) { - m := new(PrefixValueResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -// QueryServiceServer is the server API for QueryService service. -type QueryServiceServer interface { - // General-purpose key-value state query API, that can be used to query - // arbitrary keys in the JMT storage. - KeyValue(context.Context, *KeyValueRequest) (*KeyValueResponse, error) - // General-purpose prefixed key-value state query API, that can be used to query - // arbitrary prefixes in the JMT storage. - // Returns a stream of `PrefixValueResponse`s. - PrefixValue(*PrefixValueRequest, QueryService_PrefixValueServer) error -} - -// UnimplementedQueryServiceServer can be embedded to have forward compatible implementations. -type UnimplementedQueryServiceServer struct { -} - -func (*UnimplementedQueryServiceServer) KeyValue(ctx context.Context, req *KeyValueRequest) (*KeyValueResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method KeyValue not implemented") -} -func (*UnimplementedQueryServiceServer) PrefixValue(req *PrefixValueRequest, srv QueryService_PrefixValueServer) error { - return status.Errorf(codes.Unimplemented, "method PrefixValue not implemented") -} - -func RegisterQueryServiceServer(s grpc1.Server, srv QueryServiceServer) { - s.RegisterService(&_QueryService_serviceDesc, srv) -} - -func _QueryService_KeyValue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(KeyValueRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServiceServer).KeyValue(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/penumbra.storage.v1alpha1.QueryService/KeyValue", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServiceServer).KeyValue(ctx, req.(*KeyValueRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _QueryService_PrefixValue_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(PrefixValueRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(QueryServiceServer).PrefixValue(m, &queryServicePrefixValueServer{stream}) -} - -type QueryService_PrefixValueServer interface { - Send(*PrefixValueResponse) error - grpc.ServerStream -} - -type queryServicePrefixValueServer struct { - grpc.ServerStream -} - -func (x *queryServicePrefixValueServer) Send(m *PrefixValueResponse) error { - return x.ServerStream.SendMsg(m) -} - -var _QueryService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "penumbra.storage.v1alpha1.QueryService", - HandlerType: (*QueryServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "KeyValue", - Handler: _QueryService_KeyValue_Handler, - }, - }, - Streams: []grpc.StreamDesc{ - { - StreamName: "PrefixValue", - Handler: _QueryService_PrefixValue_Handler, - ServerStreams: true, - }, - }, - Metadata: "penumbra/storage/v1alpha1/storage.proto", -} - -func (m *KeyValueRequest) 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 *KeyValueRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *KeyValueRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Proof { - i-- - if m.Proof { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x18 - } - if len(m.Key) > 0 { - i -= len(m.Key) - copy(dAtA[i:], m.Key) - i = encodeVarintStorage(dAtA, i, uint64(len(m.Key))) - i-- - dAtA[i] = 0x12 - } - if len(m.ChainId) > 0 { - i -= len(m.ChainId) - copy(dAtA[i:], m.ChainId) - i = encodeVarintStorage(dAtA, i, uint64(len(m.ChainId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *KeyValueResponse) 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 *KeyValueResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *KeyValueResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Proof != nil { - { - size, err := m.Proof.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintStorage(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.Value != nil { - { - size, err := m.Value.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintStorage(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *KeyValueResponse_Value) 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 *KeyValueResponse_Value) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *KeyValueResponse_Value) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Value) > 0 { - i -= len(m.Value) - copy(dAtA[i:], m.Value) - i = encodeVarintStorage(dAtA, i, uint64(len(m.Value))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *PrefixValueRequest) 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 *PrefixValueRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PrefixValueRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Prefix) > 0 { - i -= len(m.Prefix) - copy(dAtA[i:], m.Prefix) - i = encodeVarintStorage(dAtA, i, uint64(len(m.Prefix))) - i-- - dAtA[i] = 0x12 - } - if len(m.ChainId) > 0 { - i -= len(m.ChainId) - copy(dAtA[i:], m.ChainId) - i = encodeVarintStorage(dAtA, i, uint64(len(m.ChainId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *PrefixValueResponse) 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 *PrefixValueResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PrefixValueResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Value) > 0 { - i -= len(m.Value) - copy(dAtA[i:], m.Value) - i = encodeVarintStorage(dAtA, i, uint64(len(m.Value))) - i-- - dAtA[i] = 0x12 - } - if len(m.Key) > 0 { - i -= len(m.Key) - copy(dAtA[i:], m.Key) - i = encodeVarintStorage(dAtA, i, uint64(len(m.Key))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func encodeVarintStorage(dAtA []byte, offset int, v uint64) int { - offset -= sovStorage(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *KeyValueRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ChainId) - if l > 0 { - n += 1 + l + sovStorage(uint64(l)) - } - l = len(m.Key) - if l > 0 { - n += 1 + l + sovStorage(uint64(l)) - } - if m.Proof { - n += 2 - } - return n -} - -func (m *KeyValueResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Value != nil { - l = m.Value.Size() - n += 1 + l + sovStorage(uint64(l)) - } - if m.Proof != nil { - l = m.Proof.Size() - n += 1 + l + sovStorage(uint64(l)) - } - return n -} - -func (m *KeyValueResponse_Value) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Value) - if l > 0 { - n += 1 + l + sovStorage(uint64(l)) - } - return n -} - -func (m *PrefixValueRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ChainId) - if l > 0 { - n += 1 + l + sovStorage(uint64(l)) - } - l = len(m.Prefix) - if l > 0 { - n += 1 + l + sovStorage(uint64(l)) - } - return n -} - -func (m *PrefixValueResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Key) - if l > 0 { - n += 1 + l + sovStorage(uint64(l)) - } - l = len(m.Value) - if l > 0 { - n += 1 + l + sovStorage(uint64(l)) - } - return n -} - -func sovStorage(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozStorage(x uint64) (n int) { - return sovStorage(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *KeyValueRequest) 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 ErrIntOverflowStorage - } - 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: KeyValueRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: KeyValueRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowStorage - } - 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 ErrInvalidLengthStorage - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthStorage - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ChainId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowStorage - } - 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 ErrInvalidLengthStorage - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthStorage - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Key = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Proof", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowStorage - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Proof = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipStorage(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthStorage - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *KeyValueResponse) 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 ErrIntOverflowStorage - } - 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: KeyValueResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: KeyValueResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowStorage - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthStorage - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthStorage - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Value == nil { - m.Value = &KeyValueResponse_Value{} - } - if err := m.Value.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Proof", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowStorage - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthStorage - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthStorage - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Proof == nil { - m.Proof = &types.MerkleProof{} - } - if err := m.Proof.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipStorage(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthStorage - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *KeyValueResponse_Value) 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 ErrIntOverflowStorage - } - 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: Value: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Value: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowStorage - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthStorage - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthStorage - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Value = append(m.Value[:0], dAtA[iNdEx:postIndex]...) - if m.Value == nil { - m.Value = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipStorage(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthStorage - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PrefixValueRequest) 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 ErrIntOverflowStorage - } - 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: PrefixValueRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PrefixValueRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowStorage - } - 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 ErrInvalidLengthStorage - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthStorage - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ChainId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Prefix", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowStorage - } - 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 ErrInvalidLengthStorage - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthStorage - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Prefix = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipStorage(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthStorage - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PrefixValueResponse) 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 ErrIntOverflowStorage - } - 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: PrefixValueResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PrefixValueResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowStorage - } - 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 ErrInvalidLengthStorage - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthStorage - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Key = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowStorage - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthStorage - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthStorage - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Value = append(m.Value[:0], dAtA[iNdEx:postIndex]...) - if m.Value == nil { - m.Value = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipStorage(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthStorage - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipStorage(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowStorage - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowStorage - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowStorage - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthStorage - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupStorage - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthStorage - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthStorage = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowStorage = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupStorage = fmt.Errorf("proto: unexpected end of group") -) diff --git a/relayer/chains/penumbra/tools/summoning/v1alpha1/summoning.pb.go b/relayer/chains/penumbra/tools/summoning/v1/summoning.pb.go similarity index 91% rename from relayer/chains/penumbra/tools/summoning/v1alpha1/summoning.pb.go rename to relayer/chains/penumbra/tools/summoning/v1/summoning.pb.go index 4b53bb93e..09a6b5897 100644 --- a/relayer/chains/penumbra/tools/summoning/v1alpha1/summoning.pb.go +++ b/relayer/chains/penumbra/tools/summoning/v1/summoning.pb.go @@ -1,15 +1,15 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: penumbra/tools/summoning/v1alpha1/summoning.proto +// source: penumbra/tools/summoning/v1/summoning.proto -package summoningv1alpha1 +package summoningv1 import ( context "context" fmt "fmt" grpc1 "github.com/cosmos/gogoproto/grpc" proto "github.com/cosmos/gogoproto/proto" - v1alpha1 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/keys/v1alpha1" - v1alpha11 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/num/v1alpha1" + v1 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/keys/v1" + v11 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/num/v1" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -40,7 +40,7 @@ func (m *ParticipateRequest) Reset() { *m = ParticipateRequest{} } func (m *ParticipateRequest) String() string { return proto.CompactTextString(m) } func (*ParticipateRequest) ProtoMessage() {} func (*ParticipateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_b708086e6eced707, []int{0} + return fileDescriptor_71a21e7f4539269f, []int{0} } func (m *ParticipateRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -116,14 +116,14 @@ func (*ParticipateRequest) XXX_OneofWrappers() []interface{} { // Sent at the beginning of the connection to identify the participant. type ParticipateRequest_Identify struct { - Address *v1alpha1.Address `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + Address *v1.Address `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` } func (m *ParticipateRequest_Identify) Reset() { *m = ParticipateRequest_Identify{} } func (m *ParticipateRequest_Identify) String() string { return proto.CompactTextString(m) } func (*ParticipateRequest_Identify) ProtoMessage() {} func (*ParticipateRequest_Identify) Descriptor() ([]byte, []int) { - return fileDescriptor_b708086e6eced707, []int{0, 0} + return fileDescriptor_71a21e7f4539269f, []int{0, 0} } func (m *ParticipateRequest_Identify) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -152,7 +152,7 @@ func (m *ParticipateRequest_Identify) XXX_DiscardUnknown() { var xxx_messageInfo_ParticipateRequest_Identify proto.InternalMessageInfo -func (m *ParticipateRequest_Identify) GetAddress() *v1alpha1.Address { +func (m *ParticipateRequest_Identify) GetAddress() *v1.Address { if m != nil { return m.Address } @@ -170,7 +170,7 @@ func (m *ParticipateRequest_Contribution) Reset() { *m = ParticipateRequ func (m *ParticipateRequest_Contribution) String() string { return proto.CompactTextString(m) } func (*ParticipateRequest_Contribution) ProtoMessage() {} func (*ParticipateRequest_Contribution) Descriptor() ([]byte, []int) { - return fileDescriptor_b708086e6eced707, []int{0, 1} + return fileDescriptor_71a21e7f4539269f, []int{0, 1} } func (m *ParticipateRequest_Contribution) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -234,7 +234,7 @@ func (m *CeremonyCrs) Reset() { *m = CeremonyCrs{} } func (m *CeremonyCrs) String() string { return proto.CompactTextString(m) } func (*CeremonyCrs) ProtoMessage() {} func (*CeremonyCrs) Descriptor() ([]byte, []int) { - return fileDescriptor_b708086e6eced707, []int{1} + return fileDescriptor_71a21e7f4539269f, []int{1} } func (m *CeremonyCrs) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -326,7 +326,7 @@ func (m *CeremonyLinkingProof) Reset() { *m = CeremonyLinkingProof{} } func (m *CeremonyLinkingProof) String() string { return proto.CompactTextString(m) } func (*CeremonyLinkingProof) ProtoMessage() {} func (*CeremonyLinkingProof) Descriptor() ([]byte, []int) { - return fileDescriptor_b708086e6eced707, []int{2} + return fileDescriptor_71a21e7f4539269f, []int{2} } func (m *CeremonyLinkingProof) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -418,7 +418,7 @@ func (m *CeremonyParentHashes) Reset() { *m = CeremonyParentHashes{} } func (m *CeremonyParentHashes) String() string { return proto.CompactTextString(m) } func (*CeremonyParentHashes) ProtoMessage() {} func (*CeremonyParentHashes) Descriptor() ([]byte, []int) { - return fileDescriptor_b708086e6eced707, []int{3} + return fileDescriptor_71a21e7f4539269f, []int{3} } func (m *CeremonyParentHashes) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -509,7 +509,7 @@ func (m *ParticipateResponse) Reset() { *m = ParticipateResponse{} } func (m *ParticipateResponse) String() string { return proto.CompactTextString(m) } func (*ParticipateResponse) ProtoMessage() {} func (*ParticipateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_b708086e6eced707, []int{4} + return fileDescriptor_71a21e7f4539269f, []int{4} } func (m *ParticipateResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -602,16 +602,16 @@ type ParticipateResponse_Position struct { // The total number of participants in the queue. ConnectedParticipants uint32 `protobuf:"varint,2,opt,name=connected_participants,json=connectedParticipants,proto3" json:"connected_participants,omitempty"` // The bid for the most recently executed contribution slot. - LastSlotBid *v1alpha11.Amount `protobuf:"bytes,3,opt,name=last_slot_bid,json=lastSlotBid,proto3" json:"last_slot_bid,omitempty"` + LastSlotBid *v11.Amount `protobuf:"bytes,3,opt,name=last_slot_bid,json=lastSlotBid,proto3" json:"last_slot_bid,omitempty"` // The participant's current bid. - YourBid *v1alpha11.Amount `protobuf:"bytes,4,opt,name=your_bid,json=yourBid,proto3" json:"your_bid,omitempty"` + YourBid *v11.Amount `protobuf:"bytes,4,opt,name=your_bid,json=yourBid,proto3" json:"your_bid,omitempty"` } func (m *ParticipateResponse_Position) Reset() { *m = ParticipateResponse_Position{} } func (m *ParticipateResponse_Position) String() string { return proto.CompactTextString(m) } func (*ParticipateResponse_Position) ProtoMessage() {} func (*ParticipateResponse_Position) Descriptor() ([]byte, []int) { - return fileDescriptor_b708086e6eced707, []int{4, 0} + return fileDescriptor_71a21e7f4539269f, []int{4, 0} } func (m *ParticipateResponse_Position) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -654,14 +654,14 @@ func (m *ParticipateResponse_Position) GetConnectedParticipants() uint32 { return 0 } -func (m *ParticipateResponse_Position) GetLastSlotBid() *v1alpha11.Amount { +func (m *ParticipateResponse_Position) GetLastSlotBid() *v11.Amount { if m != nil { return m.LastSlotBid } return nil } -func (m *ParticipateResponse_Position) GetYourBid() *v1alpha11.Amount { +func (m *ParticipateResponse_Position) GetYourBid() *v11.Amount { if m != nil { return m.YourBid } @@ -678,7 +678,7 @@ func (m *ParticipateResponse_ContributeNow) Reset() { *m = ParticipateRe func (m *ParticipateResponse_ContributeNow) String() string { return proto.CompactTextString(m) } func (*ParticipateResponse_ContributeNow) ProtoMessage() {} func (*ParticipateResponse_ContributeNow) Descriptor() ([]byte, []int) { - return fileDescriptor_b708086e6eced707, []int{4, 1} + return fileDescriptor_71a21e7f4539269f, []int{4, 1} } func (m *ParticipateResponse_ContributeNow) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -723,7 +723,7 @@ func (m *ParticipateResponse_Confirm) Reset() { *m = ParticipateResponse func (m *ParticipateResponse_Confirm) String() string { return proto.CompactTextString(m) } func (*ParticipateResponse_Confirm) ProtoMessage() {} func (*ParticipateResponse_Confirm) Descriptor() ([]byte, []int) { - return fileDescriptor_b708086e6eced707, []int{4, 2} + return fileDescriptor_71a21e7f4539269f, []int{4, 2} } func (m *ParticipateResponse_Confirm) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -760,81 +760,80 @@ func (m *ParticipateResponse_Confirm) GetSlot() uint64 { } func init() { - proto.RegisterType((*ParticipateRequest)(nil), "penumbra.tools.summoning.v1alpha1.ParticipateRequest") - proto.RegisterType((*ParticipateRequest_Identify)(nil), "penumbra.tools.summoning.v1alpha1.ParticipateRequest.Identify") - proto.RegisterType((*ParticipateRequest_Contribution)(nil), "penumbra.tools.summoning.v1alpha1.ParticipateRequest.Contribution") - proto.RegisterType((*CeremonyCrs)(nil), "penumbra.tools.summoning.v1alpha1.CeremonyCrs") - proto.RegisterType((*CeremonyLinkingProof)(nil), "penumbra.tools.summoning.v1alpha1.CeremonyLinkingProof") - proto.RegisterType((*CeremonyParentHashes)(nil), "penumbra.tools.summoning.v1alpha1.CeremonyParentHashes") - proto.RegisterType((*ParticipateResponse)(nil), "penumbra.tools.summoning.v1alpha1.ParticipateResponse") - proto.RegisterType((*ParticipateResponse_Position)(nil), "penumbra.tools.summoning.v1alpha1.ParticipateResponse.Position") - proto.RegisterType((*ParticipateResponse_ContributeNow)(nil), "penumbra.tools.summoning.v1alpha1.ParticipateResponse.ContributeNow") - proto.RegisterType((*ParticipateResponse_Confirm)(nil), "penumbra.tools.summoning.v1alpha1.ParticipateResponse.Confirm") + proto.RegisterType((*ParticipateRequest)(nil), "penumbra.tools.summoning.v1.ParticipateRequest") + proto.RegisterType((*ParticipateRequest_Identify)(nil), "penumbra.tools.summoning.v1.ParticipateRequest.Identify") + proto.RegisterType((*ParticipateRequest_Contribution)(nil), "penumbra.tools.summoning.v1.ParticipateRequest.Contribution") + proto.RegisterType((*CeremonyCrs)(nil), "penumbra.tools.summoning.v1.CeremonyCrs") + proto.RegisterType((*CeremonyLinkingProof)(nil), "penumbra.tools.summoning.v1.CeremonyLinkingProof") + proto.RegisterType((*CeremonyParentHashes)(nil), "penumbra.tools.summoning.v1.CeremonyParentHashes") + proto.RegisterType((*ParticipateResponse)(nil), "penumbra.tools.summoning.v1.ParticipateResponse") + proto.RegisterType((*ParticipateResponse_Position)(nil), "penumbra.tools.summoning.v1.ParticipateResponse.Position") + proto.RegisterType((*ParticipateResponse_ContributeNow)(nil), "penumbra.tools.summoning.v1.ParticipateResponse.ContributeNow") + proto.RegisterType((*ParticipateResponse_Confirm)(nil), "penumbra.tools.summoning.v1.ParticipateResponse.Confirm") } func init() { - proto.RegisterFile("penumbra/tools/summoning/v1alpha1/summoning.proto", fileDescriptor_b708086e6eced707) -} - -var fileDescriptor_b708086e6eced707 = []byte{ - // 899 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe4, 0x56, 0xcf, 0x8f, 0xdb, 0x44, - 0x14, 0x8e, 0xb3, 0x3f, 0x12, 0xde, 0x26, 0x0b, 0x1a, 0xda, 0x62, 0x59, 0x6a, 0xd4, 0xae, 0xb6, - 0x68, 0x39, 0xe0, 0xb0, 0x8b, 0x5a, 0xa4, 0x20, 0x16, 0x91, 0x54, 0x25, 0x20, 0x40, 0x96, 0xb7, - 0x2a, 0x52, 0x15, 0x64, 0x4d, 0xec, 0x49, 0x32, 0xd4, 0x9e, 0x31, 0x33, 0xe3, 0xac, 0x72, 0x83, - 0xff, 0x80, 0x03, 0x77, 0x24, 0x24, 0x2e, 0xfc, 0x21, 0x08, 0x71, 0xea, 0x0d, 0x8e, 0x68, 0x97, - 0x13, 0x7f, 0x01, 0x47, 0xe4, 0xf1, 0xcf, 0x2d, 0x95, 0xb6, 0x9b, 0x6b, 0x4f, 0x99, 0x79, 0xef, - 0xfb, 0xbe, 0x37, 0xef, 0xd9, 0xf9, 0xc6, 0x70, 0x18, 0x13, 0x96, 0x44, 0x53, 0x81, 0xfb, 0x8a, - 0xf3, 0x50, 0xf6, 0x65, 0x12, 0x45, 0x9c, 0x51, 0x36, 0xef, 0x2f, 0x0f, 0x71, 0x18, 0x2f, 0xf0, - 0x61, 0x15, 0xb2, 0x63, 0xc1, 0x15, 0x47, 0xb7, 0x0b, 0x8a, 0xad, 0x29, 0x76, 0x95, 0x2f, 0x28, - 0xd6, 0x9b, 0xa5, 0xaa, 0xcf, 0x05, 0xe9, 0x3f, 0x21, 0x2b, 0x59, 0xe9, 0xa5, 0xbb, 0x4c, 0xca, - 0xda, 0xbf, 0x88, 0x63, 0x49, 0x54, 0xc1, 0x58, 0x12, 0x65, 0xa8, 0xbd, 0x5f, 0x37, 0x01, 0x39, - 0x58, 0x28, 0xea, 0xd3, 0x18, 0x2b, 0xe2, 0x92, 0x6f, 0x12, 0x22, 0x15, 0x9a, 0x40, 0x9b, 0x06, - 0x84, 0x29, 0x3a, 0x5b, 0x99, 0xc6, 0x2d, 0xe3, 0x60, 0xe7, 0xe8, 0xd8, 0xbe, 0xf4, 0x68, 0xf6, - 0xff, 0x85, 0xec, 0x4f, 0x72, 0x95, 0x71, 0xc3, 0x2d, 0x15, 0xd1, 0x02, 0x3a, 0x3e, 0x67, 0x4a, - 0xd0, 0x69, 0xa2, 0x28, 0x67, 0x66, 0x53, 0x57, 0x18, 0xae, 0x57, 0x61, 0x54, 0x53, 0x1a, 0x37, - 0xdc, 0x0b, 0xca, 0xd6, 0xa7, 0xd0, 0x2e, 0x4e, 0x80, 0x8e, 0xa1, 0x85, 0x83, 0x40, 0x10, 0x29, - 0xf3, 0x96, 0xf6, 0xab, 0x82, 0xe9, 0x88, 0x6c, 0x3d, 0xbc, 0xb2, 0xd4, 0x47, 0x19, 0xd6, 0x2d, - 0x48, 0xd6, 0x0f, 0x4d, 0xe8, 0xd4, 0x8b, 0xa1, 0x31, 0xb4, 0x92, 0x38, 0xc0, 0x8a, 0x04, 0xb9, - 0xa0, 0xfd, 0x02, 0x1d, 0x8c, 0x88, 0x20, 0x11, 0x67, 0xab, 0x91, 0x90, 0x6e, 0x41, 0x47, 0x13, - 0xe8, 0x66, 0x4b, 0x2f, 0x16, 0x9c, 0xcf, 0x64, 0x3e, 0x91, 0xf7, 0xae, 0xa0, 0xf7, 0x19, 0x65, - 0x4f, 0x28, 0x9b, 0x3b, 0x29, 0xdf, 0xed, 0x64, 0x6a, 0x7a, 0x23, 0x53, 0xf5, 0x18, 0x0b, 0xc2, - 0x94, 0xb7, 0xc0, 0x72, 0x41, 0xa4, 0xb9, 0x71, 0x65, 0x75, 0x47, 0xf3, 0xc7, 0x9a, 0xee, 0x76, - 0xe2, 0xda, 0x6e, 0xb8, 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ools/summoning/v1/summoning.proto", fileDescriptor_71a21e7f4539269f) +} + +var fileDescriptor_71a21e7f4539269f = []byte{ + // 888 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe4, 0x56, 0x4f, 0x8f, 0xe3, 0xb4, + 0x1b, 0x6e, 0x3a, 0x7f, 0xda, 0x9f, 0xa7, 0x9d, 0x1f, 0x32, 0xbb, 0x4b, 0x94, 0x65, 0xc3, 0x68, + 0x24, 0xc4, 0x20, 0xa4, 0x64, 0x3b, 0x08, 0x18, 0x0a, 0x42, 0x4b, 0xbb, 0x12, 0x45, 0x02, 0x14, + 0xd2, 0x51, 0x91, 0xd0, 0x48, 0x91, 0x9b, 0xb8, 0xad, 0xd9, 0xc4, 0x0e, 0xb6, 0xd3, 0x51, 0x8f, + 0xf0, 0x09, 0x10, 0x1f, 0x61, 0x8f, 0x48, 0x7c, 0x0f, 0xc4, 0x69, 0x8f, 0x7b, 0x44, 0x33, 0x37, + 0x3e, 0x01, 0x47, 0x64, 0xe7, 0x4f, 0x33, 0x0b, 0xaa, 0xa6, 0x5c, 0xf7, 0x54, 0xbf, 0xef, 0xf3, + 0x3e, 0x8f, 0xed, 0xd7, 0xe9, 0x63, 0x83, 0x77, 0x52, 0x4c, 0xb3, 0x64, 0xca, 0x91, 0x2b, 0x19, + 0x8b, 0x85, 0x2b, 0xb2, 0x24, 0x61, 0x94, 0xd0, 0xb9, 0xbb, 0xec, 0xad, 0x03, 0x27, 0xe5, 0x4c, + 0x32, 0x78, 0xbf, 0x2c, 0x76, 0x74, 0xb1, 0xb3, 0xc6, 0x97, 0x3d, 0xeb, 0xa8, 0x52, 0x0a, 0x19, + 0xc7, 0xee, 0x13, 0xbc, 0x12, 0x4a, 0x43, 0xfd, 0xe6, 0x74, 0xcb, 0xbe, 0x59, 0x41, 0xb3, 0x44, + 0x15, 0xd0, 0x2c, 0xc9, 0xf1, 0xe3, 0xa7, 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x83, 0xda, 0xe1, 0x40, + 0x77, 0xcb, 0x4b, 0xd5, 0x7a, 0xb8, 0xed, 0xb9, 0x9f, 0x18, 0x0f, 0x8d, 0xc1, 0xaf, 0xcd, 0xdf, + 0xae, 0x6c, 0xe3, 0xd9, 0x95, 0x6d, 0xfc, 0x71, 0x65, 0x1b, 0x3f, 0x5d, 0xdb, 0x8d, 0x67, 0xd7, + 0x76, 0xe3, 0xf9, 0xb5, 0xdd, 0x00, 0x6f, 0x84, 0x2c, 0xd9, 0xa4, 0x39, 0x38, 0x1c, 0x97, 0x91, + 0xa7, 0x1e, 0x23, 0x9e, 0xf1, 0xed, 0x78, 0x4e, 0xe4, 0x22, 0x9b, 0x3a, 0x21, 0x4b, 0xdc, 0x90, + 0x89, 0x84, 0x09, 0x97, 0xe3, 0x18, 0xad, 0x30, 0x77, 0x97, 0xa7, 0xd5, 0x30, 0x5c, 0x20, 0x42, + 0x85, 0xbb, 0xe1, 0x19, 0xf5, 0x51, 0x15, 0x2c, 0x7b, 0x4f, 0x9b, 0x3b, 0xde, 0xf9, 0xf8, 0x97, + 0xe6, 0x7d, 0xaf, 0x5c, 0xca, 0xb9, 0x5e, 0x4a, 0x35, 0xb9, 0x33, 0xe9, 0xfd, 0xbe, 0x46, 0x2f, + 0x34, 0x7a, 0x51, 0xa1, 0x17, 0x93, 0xde, 0x55, 0xf3, 0xad, 0x0d, 0xe8, 0xc5, 0x67, 0xde, 0xe0, + 0x4b, 0x2c, 0x51, 0x84, 0x24, 0xfa, 0xb3, 0x69, 0x97, 0x95, 0xfd, 0xbe, 0x2e, 0xed, 0xf7, 0xab, + 0xda, 0x7e, 0x7f, 0xd2, 0x9b, 0xee, 0xeb, 0x77, 0xd7, 0xbb, 0x7f, 0x07, 0x00, 0x00, 0xff, 0xff, + 0xb2, 0x9e, 0x63, 0xb4, 0x05, 0x0a, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -874,7 +873,7 @@ func NewCeremonyCoordinatorServiceClient(cc grpc1.ClientConn) CeremonyCoordinato } func (c *ceremonyCoordinatorServiceClient) Participate(ctx context.Context, opts ...grpc.CallOption) (CeremonyCoordinatorService_ParticipateClient, error) { - stream, err := c.cc.NewStream(ctx, &_CeremonyCoordinatorService_serviceDesc.Streams[0], "/penumbra.tools.summoning.v1alpha1.CeremonyCoordinatorService/Participate", opts...) + stream, err := c.cc.NewStream(ctx, &_CeremonyCoordinatorService_serviceDesc.Streams[0], "/penumbra.tools.summoning.v1.CeremonyCoordinatorService/Participate", opts...) if err != nil { return nil, err } @@ -961,7 +960,7 @@ func (x *ceremonyCoordinatorServiceParticipateServer) Recv() (*ParticipateReques } var _CeremonyCoordinatorService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "penumbra.tools.summoning.v1alpha1.CeremonyCoordinatorService", + ServiceName: "penumbra.tools.summoning.v1.CeremonyCoordinatorService", HandlerType: (*CeremonyCoordinatorServiceServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ @@ -972,7 +971,7 @@ var _CeremonyCoordinatorService_serviceDesc = grpc.ServiceDesc{ ClientStreams: true, }, }, - Metadata: "penumbra/tools/summoning/v1alpha1/summoning.proto", + Metadata: "penumbra/tools/summoning/v1/summoning.proto", } func (m *ParticipateRequest) Marshal() (dAtA []byte, err error) { @@ -2089,7 +2088,7 @@ func (m *ParticipateRequest_Identify) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Address == nil { - m.Address = &v1alpha1.Address{} + m.Address = &v1.Address{} } if err := m.Address.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -3390,7 +3389,7 @@ func (m *ParticipateResponse_Position) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.LastSlotBid == nil { - m.LastSlotBid = &v1alpha11.Amount{} + m.LastSlotBid = &v11.Amount{} } if err := m.LastSlotBid.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -3426,7 +3425,7 @@ func (m *ParticipateResponse_Position) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.YourBid == nil { - m.YourBid = &v1alpha11.Amount{} + m.YourBid = &v11.Amount{} } if err := m.YourBid.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err diff --git a/relayer/chains/penumbra/tx.go b/relayer/chains/penumbra/tx.go index 7c99e4416..2bc659923 100644 --- a/relayer/chains/penumbra/tx.go +++ b/relayer/chains/penumbra/tx.go @@ -33,12 +33,12 @@ import ( tmclient "github.com/cosmos/ibc-go/v8/modules/light-clients/07-tendermint" ics23 "github.com/cosmos/ics23/go" "github.com/cosmos/relayer/v2/relayer/chains/cosmos" - penumbrafee "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/component/fee/v1alpha1" - penumbraibctypes "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/component/ibc/v1alpha1" - penumbraasset "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/num/v1alpha1" - penumbratypes "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/transaction/v1alpha1" - penumbrardsa "github.com/cosmos/relayer/v2/relayer/chains/penumbra/crypto/decaf377_rdsa/v1alpha1" - penumbracrypto "github.com/cosmos/relayer/v2/relayer/chains/penumbra/crypto/tct/v1alpha1" + penumbrafee "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/component/fee/v1" + penumbraibctypes "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/component/ibc/v1" + penumbraasset "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/num/v1" + penumbratypes "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/transaction/v1" + penumbrardsa "github.com/cosmos/relayer/v2/relayer/chains/penumbra/crypto/decaf377_rdsa/v1" + penumbracrypto "github.com/cosmos/relayer/v2/relayer/chains/penumbra/crypto/tct/v1" "github.com/cosmos/relayer/v2/relayer/provider" "go.uber.org/zap" "google.golang.org/grpc/codes" diff --git a/relayer/chains/penumbra/util/tendermint_proxy/v1alpha1/tendermint_proxy.pb.go b/relayer/chains/penumbra/util/tendermint_proxy/v1/tendermint_proxy.pb.go similarity index 91% rename from relayer/chains/penumbra/util/tendermint_proxy/v1alpha1/tendermint_proxy.pb.go rename to relayer/chains/penumbra/util/tendermint_proxy/v1/tendermint_proxy.pb.go index aad816a9a..fdb29c87f 100644 --- a/relayer/chains/penumbra/util/tendermint_proxy/v1alpha1/tendermint_proxy.pb.go +++ b/relayer/chains/penumbra/util/tendermint_proxy/v1/tendermint_proxy.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: penumbra/util/tendermint_proxy/v1alpha1/tendermint_proxy.proto +// source: penumbra/util/tendermint_proxy/v1/tendermint_proxy.proto -package tendermint_proxyv1alpha1 +package tendermint_proxyv1 import ( context "context" @@ -43,7 +43,7 @@ func (m *GetTxRequest) Reset() { *m = GetTxRequest{} } func (m *GetTxRequest) String() string { return proto.CompactTextString(m) } func (*GetTxRequest) ProtoMessage() {} func (*GetTxRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_7e4c505f155f813d, []int{0} + return fileDescriptor_bd0bcec0a31e257c, []int{0} } func (m *GetTxRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -100,7 +100,7 @@ func (m *GetTxResponse) Reset() { *m = GetTxResponse{} } func (m *GetTxResponse) String() string { return proto.CompactTextString(m) } func (*GetTxResponse) ProtoMessage() {} func (*GetTxResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_7e4c505f155f813d, []int{1} + return fileDescriptor_bd0bcec0a31e257c, []int{1} } func (m *GetTxResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -175,7 +175,7 @@ func (m *TxResult) Reset() { *m = TxResult{} } func (m *TxResult) String() string { return proto.CompactTextString(m) } func (*TxResult) ProtoMessage() {} func (*TxResult) Descriptor() ([]byte, []int) { - return fileDescriptor_7e4c505f155f813d, []int{2} + return fileDescriptor_bd0bcec0a31e257c, []int{2} } func (m *TxResult) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -242,7 +242,7 @@ func (m *Tag) Reset() { *m = Tag{} } func (m *Tag) String() string { return proto.CompactTextString(m) } func (*Tag) ProtoMessage() {} func (*Tag) Descriptor() ([]byte, []int) { - return fileDescriptor_7e4c505f155f813d, []int{3} + return fileDescriptor_bd0bcec0a31e257c, []int{3} } func (m *Tag) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -302,7 +302,7 @@ func (m *BroadcastTxAsyncRequest) Reset() { *m = BroadcastTxAsyncRequest func (m *BroadcastTxAsyncRequest) String() string { return proto.CompactTextString(m) } func (*BroadcastTxAsyncRequest) ProtoMessage() {} func (*BroadcastTxAsyncRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_7e4c505f155f813d, []int{4} + return fileDescriptor_bd0bcec0a31e257c, []int{4} } func (m *BroadcastTxAsyncRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -357,7 +357,7 @@ func (m *BroadcastTxAsyncResponse) Reset() { *m = BroadcastTxAsyncRespon func (m *BroadcastTxAsyncResponse) String() string { return proto.CompactTextString(m) } func (*BroadcastTxAsyncResponse) ProtoMessage() {} func (*BroadcastTxAsyncResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_7e4c505f155f813d, []int{5} + return fileDescriptor_bd0bcec0a31e257c, []int{5} } func (m *BroadcastTxAsyncResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -424,7 +424,7 @@ func (m *BroadcastTxSyncRequest) Reset() { *m = BroadcastTxSyncRequest{} func (m *BroadcastTxSyncRequest) String() string { return proto.CompactTextString(m) } func (*BroadcastTxSyncRequest) ProtoMessage() {} func (*BroadcastTxSyncRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_7e4c505f155f813d, []int{6} + return fileDescriptor_bd0bcec0a31e257c, []int{6} } func (m *BroadcastTxSyncRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -479,7 +479,7 @@ func (m *BroadcastTxSyncResponse) Reset() { *m = BroadcastTxSyncResponse func (m *BroadcastTxSyncResponse) String() string { return proto.CompactTextString(m) } func (*BroadcastTxSyncResponse) ProtoMessage() {} func (*BroadcastTxSyncResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_7e4c505f155f813d, []int{7} + return fileDescriptor_bd0bcec0a31e257c, []int{7} } func (m *BroadcastTxSyncResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -544,7 +544,7 @@ func (m *GetStatusRequest) Reset() { *m = GetStatusRequest{} } func (m *GetStatusRequest) String() string { return proto.CompactTextString(m) } func (*GetStatusRequest) ProtoMessage() {} func (*GetStatusRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_7e4c505f155f813d, []int{8} + return fileDescriptor_bd0bcec0a31e257c, []int{8} } func (m *GetStatusRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -584,7 +584,7 @@ func (m *GetStatusResponse) Reset() { *m = GetStatusResponse{} } func (m *GetStatusResponse) String() string { return proto.CompactTextString(m) } func (*GetStatusResponse) ProtoMessage() {} func (*GetStatusResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_7e4c505f155f813d, []int{9} + return fileDescriptor_bd0bcec0a31e257c, []int{9} } func (m *GetStatusResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -652,7 +652,7 @@ func (m *SyncInfo) Reset() { *m = SyncInfo{} } func (m *SyncInfo) String() string { return proto.CompactTextString(m) } func (*SyncInfo) ProtoMessage() {} func (*SyncInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_7e4c505f155f813d, []int{10} + return fileDescriptor_bd0bcec0a31e257c, []int{10} } func (m *SyncInfo) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -728,7 +728,7 @@ func (m *ABCIQueryRequest) Reset() { *m = ABCIQueryRequest{} } func (m *ABCIQueryRequest) String() string { return proto.CompactTextString(m) } func (*ABCIQueryRequest) ProtoMessage() {} func (*ABCIQueryRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_7e4c505f155f813d, []int{11} + return fileDescriptor_bd0bcec0a31e257c, []int{11} } func (m *ABCIQueryRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -805,7 +805,7 @@ func (m *ABCIQueryResponse) Reset() { *m = ABCIQueryResponse{} } func (m *ABCIQueryResponse) String() string { return proto.CompactTextString(m) } func (*ABCIQueryResponse) ProtoMessage() {} func (*ABCIQueryResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_7e4c505f155f813d, []int{12} + return fileDescriptor_bd0bcec0a31e257c, []int{12} } func (m *ABCIQueryResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -906,7 +906,7 @@ func (m *GetBlockByHeightRequest) Reset() { *m = GetBlockByHeightRequest func (m *GetBlockByHeightRequest) String() string { return proto.CompactTextString(m) } func (*GetBlockByHeightRequest) ProtoMessage() {} func (*GetBlockByHeightRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_7e4c505f155f813d, []int{13} + return fileDescriptor_bd0bcec0a31e257c, []int{13} } func (m *GetBlockByHeightRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -952,7 +952,7 @@ func (m *GetBlockByHeightResponse) Reset() { *m = GetBlockByHeightRespon func (m *GetBlockByHeightResponse) String() string { return proto.CompactTextString(m) } func (*GetBlockByHeightResponse) ProtoMessage() {} func (*GetBlockByHeightResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_7e4c505f155f813d, []int{14} + return fileDescriptor_bd0bcec0a31e257c, []int{14} } func (m *GetBlockByHeightResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -996,104 +996,104 @@ func (m *GetBlockByHeightResponse) GetBlock() *types.Block { } func init() { - proto.RegisterType((*GetTxRequest)(nil), "penumbra.util.tendermint_proxy.v1alpha1.GetTxRequest") - proto.RegisterType((*GetTxResponse)(nil), "penumbra.util.tendermint_proxy.v1alpha1.GetTxResponse") - proto.RegisterType((*TxResult)(nil), "penumbra.util.tendermint_proxy.v1alpha1.TxResult") - proto.RegisterType((*Tag)(nil), "penumbra.util.tendermint_proxy.v1alpha1.Tag") - proto.RegisterType((*BroadcastTxAsyncRequest)(nil), "penumbra.util.tendermint_proxy.v1alpha1.BroadcastTxAsyncRequest") - proto.RegisterType((*BroadcastTxAsyncResponse)(nil), "penumbra.util.tendermint_proxy.v1alpha1.BroadcastTxAsyncResponse") - proto.RegisterType((*BroadcastTxSyncRequest)(nil), "penumbra.util.tendermint_proxy.v1alpha1.BroadcastTxSyncRequest") - proto.RegisterType((*BroadcastTxSyncResponse)(nil), "penumbra.util.tendermint_proxy.v1alpha1.BroadcastTxSyncResponse") - proto.RegisterType((*GetStatusRequest)(nil), "penumbra.util.tendermint_proxy.v1alpha1.GetStatusRequest") - proto.RegisterType((*GetStatusResponse)(nil), "penumbra.util.tendermint_proxy.v1alpha1.GetStatusResponse") - proto.RegisterType((*SyncInfo)(nil), "penumbra.util.tendermint_proxy.v1alpha1.SyncInfo") - proto.RegisterType((*ABCIQueryRequest)(nil), "penumbra.util.tendermint_proxy.v1alpha1.ABCIQueryRequest") - proto.RegisterType((*ABCIQueryResponse)(nil), "penumbra.util.tendermint_proxy.v1alpha1.ABCIQueryResponse") - proto.RegisterType((*GetBlockByHeightRequest)(nil), "penumbra.util.tendermint_proxy.v1alpha1.GetBlockByHeightRequest") - proto.RegisterType((*GetBlockByHeightResponse)(nil), "penumbra.util.tendermint_proxy.v1alpha1.GetBlockByHeightResponse") + proto.RegisterType((*GetTxRequest)(nil), "penumbra.util.tendermint_proxy.v1.GetTxRequest") + proto.RegisterType((*GetTxResponse)(nil), "penumbra.util.tendermint_proxy.v1.GetTxResponse") + proto.RegisterType((*TxResult)(nil), "penumbra.util.tendermint_proxy.v1.TxResult") + proto.RegisterType((*Tag)(nil), "penumbra.util.tendermint_proxy.v1.Tag") + proto.RegisterType((*BroadcastTxAsyncRequest)(nil), "penumbra.util.tendermint_proxy.v1.BroadcastTxAsyncRequest") + proto.RegisterType((*BroadcastTxAsyncResponse)(nil), "penumbra.util.tendermint_proxy.v1.BroadcastTxAsyncResponse") + proto.RegisterType((*BroadcastTxSyncRequest)(nil), "penumbra.util.tendermint_proxy.v1.BroadcastTxSyncRequest") + proto.RegisterType((*BroadcastTxSyncResponse)(nil), "penumbra.util.tendermint_proxy.v1.BroadcastTxSyncResponse") + proto.RegisterType((*GetStatusRequest)(nil), "penumbra.util.tendermint_proxy.v1.GetStatusRequest") + proto.RegisterType((*GetStatusResponse)(nil), "penumbra.util.tendermint_proxy.v1.GetStatusResponse") + proto.RegisterType((*SyncInfo)(nil), "penumbra.util.tendermint_proxy.v1.SyncInfo") + proto.RegisterType((*ABCIQueryRequest)(nil), "penumbra.util.tendermint_proxy.v1.ABCIQueryRequest") + proto.RegisterType((*ABCIQueryResponse)(nil), "penumbra.util.tendermint_proxy.v1.ABCIQueryResponse") + proto.RegisterType((*GetBlockByHeightRequest)(nil), "penumbra.util.tendermint_proxy.v1.GetBlockByHeightRequest") + proto.RegisterType((*GetBlockByHeightResponse)(nil), "penumbra.util.tendermint_proxy.v1.GetBlockByHeightResponse") } func init() { - proto.RegisterFile("penumbra/util/tendermint_proxy/v1alpha1/tendermint_proxy.proto", fileDescriptor_7e4c505f155f813d) -} - -var fileDescriptor_7e4c505f155f813d = []byte{ - // 1192 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x57, 0xcd, 0x6f, 0x1b, 0x45, - 0x14, 0xcf, 0xfa, 0xab, 0xf6, 0x4b, 0xd3, 0x26, 0x4b, 0x49, 0x5d, 0xd3, 0xba, 0xd1, 0x1e, 0x4a, - 0xf8, 0xda, 0x55, 0xcc, 0x87, 0x8a, 0x41, 0xd0, 0xb8, 0x15, 0x69, 0x90, 0x28, 0x66, 0xe3, 0x14, - 0x09, 0x45, 0xb2, 0x26, 0xbb, 0x93, 0xf5, 0xaa, 0xeb, 0xdd, 0xc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, 0x07, 0x3b, 0xed, 0xd6, - 0x67, 0x98, 0x21, 0xfe, 0x90, 0xfd, 0x95, 0x7b, 0x2d, 0x05, 0x35, 0x9b, 0x1c, 0xd5, 0x6c, 0x4e, - 0xc1, 0x9a, 0xcd, 0x14, 0x77, 0x58, 0x12, 0x4f, 0xec, 0xdb, 0xff, 0x06, 0x00, 0x00, 0xff, 0xff, - 0x63, 0xa4, 0xeb, 0x62, 0x72, 0x0d, 0x00, 0x00, + proto.RegisterFile("penumbra/util/tendermint_proxy/v1/tendermint_proxy.proto", fileDescriptor_bd0bcec0a31e257c) +} + +var fileDescriptor_bd0bcec0a31e257c = []byte{ + // 1186 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x57, 0xcf, 0x6f, 0x1b, 0xc5, + 0x17, 0xcf, 0xfa, 0x57, 0xed, 0x97, 0xa6, 0x4d, 0xf6, 0xdb, 0x6f, 0xea, 0x9a, 0xd6, 0x35, 0x8b, + 0xa8, 0x22, 0x7e, 0xec, 0x62, 0xb7, 0x87, 0xe2, 0x72, 0xa9, 0x5b, 0x91, 0x06, 0x09, 0x30, 0x1b, + 0x27, 0x48, 0x28, 0x92, 0x99, 0xec, 0x4e, 0xd6, 0xab, 0xae, 0x77, 0xa7, 0x3b, 0xb3, 0xc6, 0x3e, + 0x21, 0xae, 0x48, 0x48, 0x88, 0x3f, 0x81, 0x0b, 0x12, 0xfc, 0x23, 0x88, 0x53, 0x8f, 0x88, 0x0b, + 0x28, 0xb9, 0xf1, 0x0f, 0x70, 0x45, 0xf3, 0x63, 0xed, 0x8d, 0x9d, 0x28, 0x6e, 0x24, 0x6e, 0x6f, + 0xdf, 0xbc, 0xcf, 0x9b, 0xcf, 0xbc, 0x79, 0xef, 0x33, 0x36, 0x3c, 0x24, 0x38, 0x4c, 0x86, 0x87, + 0x31, 0xb2, 0x12, 0xe6, 0x07, 0x16, 0xc3, 0xa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 0xae, 0xbd, 0x3c, 0xae, 0x6b, 0x7f, 0x1d, 0xd7, 0xb5, 0xef, + 0x4f, 0xea, 0x2b, 0x2f, 0x4f, 0xea, 0x2b, 0xbf, 0x9f, 0xd4, 0x57, 0xe0, 0x4d, 0x27, 0x1a, 0x5e, + 0x9c, 0xbc, 0x73, 0x63, 0x6e, 0xd0, 0xba, 0x5c, 0xe2, 0xbb, 0xda, 0x17, 0x5f, 0x7a, 0x3e, 0x1b, + 0x24, 0x87, 0xa6, 0x13, 0x0d, 0x2d, 0x27, 0xa2, 0xc3, 0x88, 0x5a, 0x31, 0x0e, 0xd0, 0x04, 0xc7, + 0xd6, 0xa8, 0x35, 0x35, 0x9d, 0x01, 0xf2, 0x43, 0x6a, 0x5d, 0xf8, 0x07, 0xe0, 0xd1, 0xbc, 0x6f, + 0xd4, 0xfc, 0x31, 0x97, 0xef, 0xee, 0xf5, 0x7e, 0xce, 0x35, 0xba, 0x29, 0xc7, 0x3d, 0xce, 0x71, + 0x8e, 0x8e, 0xb9, 0xdf, 0xfc, 0x6d, 0x16, 0x72, 0xc0, 0x43, 0x0e, 0xe6, 0x42, 0x0e, 0xf6, 0x9b, + 0xc7, 0xb9, 0x77, 0x2e, 0x0a, 0x39, 0xd8, 0xee, 0x76, 0x3e, 0xc6, 0x0c, 0xf1, 0xa7, 0xe5, 0xef, + 0xdc, 0x1b, 0x69, 0x78, 0xbb, 0xcd, 0xe3, 0xdb, 0xed, 0x39, 0x40, 0xbb, 0xbd, 0xdf, 0x3c, 0x2c, + 0x89, 0xe7, 0xee, 0xfe, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x94, 0x8b, 0xa7, 0xe6, 0xe0, 0x0c, + 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1134,7 +1134,7 @@ func NewTendermintProxyServiceClient(cc grpc1.ClientConn) TendermintProxyService func (c *tendermintProxyServiceClient) GetStatus(ctx context.Context, in *GetStatusRequest, opts ...grpc.CallOption) (*GetStatusResponse, error) { out := new(GetStatusResponse) - err := c.cc.Invoke(ctx, "/penumbra.util.tendermint_proxy.v1alpha1.TendermintProxyService/GetStatus", in, out, opts...) + err := c.cc.Invoke(ctx, "/penumbra.util.tendermint_proxy.v1.TendermintProxyService/GetStatus", in, out, opts...) if err != nil { return nil, err } @@ -1143,7 +1143,7 @@ func (c *tendermintProxyServiceClient) GetStatus(ctx context.Context, in *GetSta func (c *tendermintProxyServiceClient) BroadcastTxAsync(ctx context.Context, in *BroadcastTxAsyncRequest, opts ...grpc.CallOption) (*BroadcastTxAsyncResponse, error) { out := new(BroadcastTxAsyncResponse) - err := c.cc.Invoke(ctx, "/penumbra.util.tendermint_proxy.v1alpha1.TendermintProxyService/BroadcastTxAsync", in, out, opts...) + err := c.cc.Invoke(ctx, "/penumbra.util.tendermint_proxy.v1.TendermintProxyService/BroadcastTxAsync", in, out, opts...) if err != nil { return nil, err } @@ -1152,7 +1152,7 @@ func (c *tendermintProxyServiceClient) BroadcastTxAsync(ctx context.Context, in func (c *tendermintProxyServiceClient) BroadcastTxSync(ctx context.Context, in *BroadcastTxSyncRequest, opts ...grpc.CallOption) (*BroadcastTxSyncResponse, error) { out := new(BroadcastTxSyncResponse) - err := c.cc.Invoke(ctx, "/penumbra.util.tendermint_proxy.v1alpha1.TendermintProxyService/BroadcastTxSync", in, out, opts...) + err := c.cc.Invoke(ctx, "/penumbra.util.tendermint_proxy.v1.TendermintProxyService/BroadcastTxSync", in, out, opts...) if err != nil { return nil, err } @@ -1161,7 +1161,7 @@ func (c *tendermintProxyServiceClient) BroadcastTxSync(ctx context.Context, in * func (c *tendermintProxyServiceClient) GetTx(ctx context.Context, in *GetTxRequest, opts ...grpc.CallOption) (*GetTxResponse, error) { out := new(GetTxResponse) - err := c.cc.Invoke(ctx, "/penumbra.util.tendermint_proxy.v1alpha1.TendermintProxyService/GetTx", in, out, opts...) + err := c.cc.Invoke(ctx, "/penumbra.util.tendermint_proxy.v1.TendermintProxyService/GetTx", in, out, opts...) if err != nil { return nil, err } @@ -1170,7 +1170,7 @@ func (c *tendermintProxyServiceClient) GetTx(ctx context.Context, in *GetTxReque func (c *tendermintProxyServiceClient) ABCIQuery(ctx context.Context, in *ABCIQueryRequest, opts ...grpc.CallOption) (*ABCIQueryResponse, error) { out := new(ABCIQueryResponse) - err := c.cc.Invoke(ctx, "/penumbra.util.tendermint_proxy.v1alpha1.TendermintProxyService/ABCIQuery", in, out, opts...) + err := c.cc.Invoke(ctx, "/penumbra.util.tendermint_proxy.v1.TendermintProxyService/ABCIQuery", in, out, opts...) if err != nil { return nil, err } @@ -1179,7 +1179,7 @@ func (c *tendermintProxyServiceClient) ABCIQuery(ctx context.Context, in *ABCIQu func (c *tendermintProxyServiceClient) GetBlockByHeight(ctx context.Context, in *GetBlockByHeightRequest, opts ...grpc.CallOption) (*GetBlockByHeightResponse, error) { out := new(GetBlockByHeightResponse) - err := c.cc.Invoke(ctx, "/penumbra.util.tendermint_proxy.v1alpha1.TendermintProxyService/GetBlockByHeight", in, out, opts...) + err := c.cc.Invoke(ctx, "/penumbra.util.tendermint_proxy.v1.TendermintProxyService/GetBlockByHeight", in, out, opts...) if err != nil { return nil, err } @@ -1241,7 +1241,7 @@ func _TendermintProxyService_GetStatus_Handler(srv interface{}, ctx context.Cont } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/penumbra.util.tendermint_proxy.v1alpha1.TendermintProxyService/GetStatus", + FullMethod: "/penumbra.util.tendermint_proxy.v1.TendermintProxyService/GetStatus", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(TendermintProxyServiceServer).GetStatus(ctx, req.(*GetStatusRequest)) @@ -1259,7 +1259,7 @@ func _TendermintProxyService_BroadcastTxAsync_Handler(srv interface{}, ctx conte } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/penumbra.util.tendermint_proxy.v1alpha1.TendermintProxyService/BroadcastTxAsync", + FullMethod: "/penumbra.util.tendermint_proxy.v1.TendermintProxyService/BroadcastTxAsync", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(TendermintProxyServiceServer).BroadcastTxAsync(ctx, req.(*BroadcastTxAsyncRequest)) @@ -1277,7 +1277,7 @@ func _TendermintProxyService_BroadcastTxSync_Handler(srv interface{}, ctx contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/penumbra.util.tendermint_proxy.v1alpha1.TendermintProxyService/BroadcastTxSync", + FullMethod: "/penumbra.util.tendermint_proxy.v1.TendermintProxyService/BroadcastTxSync", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(TendermintProxyServiceServer).BroadcastTxSync(ctx, req.(*BroadcastTxSyncRequest)) @@ -1295,7 +1295,7 @@ func _TendermintProxyService_GetTx_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/penumbra.util.tendermint_proxy.v1alpha1.TendermintProxyService/GetTx", + FullMethod: "/penumbra.util.tendermint_proxy.v1.TendermintProxyService/GetTx", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(TendermintProxyServiceServer).GetTx(ctx, req.(*GetTxRequest)) @@ -1313,7 +1313,7 @@ func _TendermintProxyService_ABCIQuery_Handler(srv interface{}, ctx context.Cont } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/penumbra.util.tendermint_proxy.v1alpha1.TendermintProxyService/ABCIQuery", + FullMethod: "/penumbra.util.tendermint_proxy.v1.TendermintProxyService/ABCIQuery", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(TendermintProxyServiceServer).ABCIQuery(ctx, req.(*ABCIQueryRequest)) @@ -1331,7 +1331,7 @@ func _TendermintProxyService_GetBlockByHeight_Handler(srv interface{}, ctx conte } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/penumbra.util.tendermint_proxy.v1alpha1.TendermintProxyService/GetBlockByHeight", + FullMethod: "/penumbra.util.tendermint_proxy.v1.TendermintProxyService/GetBlockByHeight", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(TendermintProxyServiceServer).GetBlockByHeight(ctx, req.(*GetBlockByHeightRequest)) @@ -1340,7 +1340,7 @@ func _TendermintProxyService_GetBlockByHeight_Handler(srv interface{}, ctx conte } var _TendermintProxyService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "penumbra.util.tendermint_proxy.v1alpha1.TendermintProxyService", + ServiceName: "penumbra.util.tendermint_proxy.v1.TendermintProxyService", HandlerType: (*TendermintProxyServiceServer)(nil), Methods: []grpc.MethodDesc{ { @@ -1369,7 +1369,7 @@ var _TendermintProxyService_serviceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "penumbra/util/tendermint_proxy/v1alpha1/tendermint_proxy.proto", + Metadata: "penumbra/util/tendermint_proxy/v1/tendermint_proxy.proto", } func (m *GetTxRequest) Marshal() (dAtA []byte, err error) { diff --git a/relayer/chains/penumbra/view/v1alpha1/view.pb.go b/relayer/chains/penumbra/view/v1/view.pb.go similarity index 67% rename from relayer/chains/penumbra/view/v1alpha1/view.pb.go rename to relayer/chains/penumbra/view/v1/view.pb.go index b4c3285e5..1822d37a9 100644 --- a/relayer/chains/penumbra/view/v1alpha1/view.pb.go +++ b/relayer/chains/penumbra/view/v1/view.pb.go @@ -1,27 +1,27 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: penumbra/view/v1alpha1/view.proto +// source: penumbra/view/v1/view.proto -package viewv1alpha1 +package viewv1 import ( context "context" + encoding_binary "encoding/binary" fmt "fmt" grpc1 "github.com/cosmos/gogoproto/grpc" proto "github.com/cosmos/gogoproto/proto" - v1alpha110 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/app/v1alpha1" - v1alpha15 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/asset/v1alpha1" - v1alpha111 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/component/chain/v1alpha1" - v1alpha19 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/component/dex/v1alpha1" - v1alpha12 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/component/fee/v1alpha1" - v1alpha14 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/component/ibc/v1alpha1" - v1alpha112 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/component/sct/v1alpha1" - v1alpha113 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/component/shielded_pool/v1alpha1" - v1alpha18 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/component/stake/v1alpha1" - v1alpha13 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/keys/v1alpha1" - v1alpha17 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/num/v1alpha1" - v1alpha1 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/transaction/v1alpha1" - v1alpha11 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/txhash/v1alpha1" - v1alpha16 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/crypto/tct/v1alpha1" + v111 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/app/v1" + v16 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/asset/v1" + v110 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/component/dex/v1" + v14 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/component/fee/v1" + v13 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/component/ibc/v1" + v15 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/component/sct/v1" + v112 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/component/shielded_pool/v1" + v19 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/component/stake/v1" + v12 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/keys/v1" + v18 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/num/v1" + v1 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/transaction/v1" + v11 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/txhash/v1" + v17 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/crypto/tct/v1" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -41,18 +41,52 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +type DelegationsByAddressIndexRequest_Filter int32 + +const ( + // By default, returns delegations for all active validators. For validators + // that the given address index has no delegation tokens for, a `ValueView` + // with a balance of `0` will be returned. + DelegationsByAddressIndexRequest_FILTER_UNSPECIFIED DelegationsByAddressIndexRequest_Filter = 0 + // Returns only delegations to active validators that the given address + // index holds delegation tokens for. + DelegationsByAddressIndexRequest_FILTER_ALL_ACTIVE_WITH_NONZERO_BALANCES DelegationsByAddressIndexRequest_Filter = 1 + // Return delegations for all validators, whether active or not. For + // validators that the given address index has no delegation tokens for, a + // `ValueView` with a balance of `0` will be returned. + DelegationsByAddressIndexRequest_FILTER_ALL DelegationsByAddressIndexRequest_Filter = 2 +) + +var DelegationsByAddressIndexRequest_Filter_name = map[int32]string{ + 0: "FILTER_UNSPECIFIED", + 1: "FILTER_ALL_ACTIVE_WITH_NONZERO_BALANCES", + 2: "FILTER_ALL", +} + +var DelegationsByAddressIndexRequest_Filter_value = map[string]int32{ + "FILTER_UNSPECIFIED": 0, + "FILTER_ALL_ACTIVE_WITH_NONZERO_BALANCES": 1, + "FILTER_ALL": 2, +} + +func (x DelegationsByAddressIndexRequest_Filter) String() string { + return proto.EnumName(DelegationsByAddressIndexRequest_Filter_name, int32(x)) +} + +func (DelegationsByAddressIndexRequest_Filter) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_dba93d04e42ddfc3, []int{55, 0} +} + type AuthorizeAndBuildRequest struct { // The transaction plan to authorize and build. - TransactionPlan *v1alpha1.TransactionPlan `protobuf:"bytes,1,opt,name=transaction_plan,json=transactionPlan,proto3" json:"transaction_plan,omitempty"` - // The authorization data to use to authorize the transaction plan. - AuthorizationData *v1alpha1.AuthorizationData `protobuf:"bytes,2,opt,name=authorization_data,json=authorizationData,proto3" json:"authorization_data,omitempty"` + TransactionPlan *v1.TransactionPlan `protobuf:"bytes,1,opt,name=transaction_plan,json=transactionPlan,proto3" json:"transaction_plan,omitempty"` } func (m *AuthorizeAndBuildRequest) Reset() { *m = AuthorizeAndBuildRequest{} } func (m *AuthorizeAndBuildRequest) String() string { return proto.CompactTextString(m) } func (*AuthorizeAndBuildRequest) ProtoMessage() {} func (*AuthorizeAndBuildRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_0aa947b204e6a7c2, []int{0} + return fileDescriptor_dba93d04e42ddfc3, []int{0} } func (m *AuthorizeAndBuildRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -81,30 +115,25 @@ func (m *AuthorizeAndBuildRequest) XXX_DiscardUnknown() { var xxx_messageInfo_AuthorizeAndBuildRequest proto.InternalMessageInfo -func (m *AuthorizeAndBuildRequest) GetTransactionPlan() *v1alpha1.TransactionPlan { +func (m *AuthorizeAndBuildRequest) GetTransactionPlan() *v1.TransactionPlan { if m != nil { return m.TransactionPlan } return nil } -func (m *AuthorizeAndBuildRequest) GetAuthorizationData() *v1alpha1.AuthorizationData { - if m != nil { - return m.AuthorizationData - } - return nil -} - type AuthorizeAndBuildResponse struct { - // The transaction that was built. - Transaction *v1alpha1.Transaction `protobuf:"bytes,1,opt,name=transaction,proto3" json:"transaction,omitempty"` + // Types that are valid to be assigned to Status: + // *AuthorizeAndBuildResponse_BuildProgress_ + // *AuthorizeAndBuildResponse_Complete_ + Status isAuthorizeAndBuildResponse_Status `protobuf_oneof:"status"` } func (m *AuthorizeAndBuildResponse) Reset() { *m = AuthorizeAndBuildResponse{} } func (m *AuthorizeAndBuildResponse) String() string { return proto.CompactTextString(m) } func (*AuthorizeAndBuildResponse) ProtoMessage() {} func (*AuthorizeAndBuildResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_0aa947b204e6a7c2, []int{1} + return fileDescriptor_dba93d04e42ddfc3, []int{1} } func (m *AuthorizeAndBuildResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -133,7 +162,139 @@ func (m *AuthorizeAndBuildResponse) XXX_DiscardUnknown() { var xxx_messageInfo_AuthorizeAndBuildResponse proto.InternalMessageInfo -func (m *AuthorizeAndBuildResponse) GetTransaction() *v1alpha1.Transaction { +type isAuthorizeAndBuildResponse_Status interface { + isAuthorizeAndBuildResponse_Status() + MarshalTo([]byte) (int, error) + Size() int +} + +type AuthorizeAndBuildResponse_BuildProgress_ struct { + BuildProgress *AuthorizeAndBuildResponse_BuildProgress `protobuf:"bytes,1,opt,name=build_progress,json=buildProgress,proto3,oneof" json:"build_progress,omitempty"` +} +type AuthorizeAndBuildResponse_Complete_ struct { + Complete *AuthorizeAndBuildResponse_Complete `protobuf:"bytes,2,opt,name=complete,proto3,oneof" json:"complete,omitempty"` +} + +func (*AuthorizeAndBuildResponse_BuildProgress_) isAuthorizeAndBuildResponse_Status() {} +func (*AuthorizeAndBuildResponse_Complete_) isAuthorizeAndBuildResponse_Status() {} + +func (m *AuthorizeAndBuildResponse) GetStatus() isAuthorizeAndBuildResponse_Status { + if m != nil { + return m.Status + } + return nil +} + +func (m *AuthorizeAndBuildResponse) GetBuildProgress() *AuthorizeAndBuildResponse_BuildProgress { + if x, ok := m.GetStatus().(*AuthorizeAndBuildResponse_BuildProgress_); ok { + return x.BuildProgress + } + return nil +} + +func (m *AuthorizeAndBuildResponse) GetComplete() *AuthorizeAndBuildResponse_Complete { + if x, ok := m.GetStatus().(*AuthorizeAndBuildResponse_Complete_); ok { + return x.Complete + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*AuthorizeAndBuildResponse) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*AuthorizeAndBuildResponse_BuildProgress_)(nil), + (*AuthorizeAndBuildResponse_Complete_)(nil), + } +} + +// Signals that building is in progress. +type AuthorizeAndBuildResponse_BuildProgress struct { + // An approximate progress of the build, from 0 to 1. + Progress float32 `protobuf:"fixed32,1,opt,name=progress,proto3" json:"progress,omitempty"` +} + +func (m *AuthorizeAndBuildResponse_BuildProgress) Reset() { + *m = AuthorizeAndBuildResponse_BuildProgress{} +} +func (m *AuthorizeAndBuildResponse_BuildProgress) String() string { return proto.CompactTextString(m) } +func (*AuthorizeAndBuildResponse_BuildProgress) ProtoMessage() {} +func (*AuthorizeAndBuildResponse_BuildProgress) Descriptor() ([]byte, []int) { + return fileDescriptor_dba93d04e42ddfc3, []int{1, 0} +} +func (m *AuthorizeAndBuildResponse_BuildProgress) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AuthorizeAndBuildResponse_BuildProgress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AuthorizeAndBuildResponse_BuildProgress.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 *AuthorizeAndBuildResponse_BuildProgress) XXX_Merge(src proto.Message) { + xxx_messageInfo_AuthorizeAndBuildResponse_BuildProgress.Merge(m, src) +} +func (m *AuthorizeAndBuildResponse_BuildProgress) XXX_Size() int { + return m.Size() +} +func (m *AuthorizeAndBuildResponse_BuildProgress) XXX_DiscardUnknown() { + xxx_messageInfo_AuthorizeAndBuildResponse_BuildProgress.DiscardUnknown(m) +} + +var xxx_messageInfo_AuthorizeAndBuildResponse_BuildProgress proto.InternalMessageInfo + +func (m *AuthorizeAndBuildResponse_BuildProgress) GetProgress() float32 { + if m != nil { + return m.Progress + } + return 0 +} + +// Signals that the transaction is complete. +type AuthorizeAndBuildResponse_Complete struct { + // The finished transaction. + Transaction *v1.Transaction `protobuf:"bytes,1,opt,name=transaction,proto3" json:"transaction,omitempty"` +} + +func (m *AuthorizeAndBuildResponse_Complete) Reset() { *m = AuthorizeAndBuildResponse_Complete{} } +func (m *AuthorizeAndBuildResponse_Complete) String() string { return proto.CompactTextString(m) } +func (*AuthorizeAndBuildResponse_Complete) ProtoMessage() {} +func (*AuthorizeAndBuildResponse_Complete) Descriptor() ([]byte, []int) { + return fileDescriptor_dba93d04e42ddfc3, []int{1, 1} +} +func (m *AuthorizeAndBuildResponse_Complete) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AuthorizeAndBuildResponse_Complete) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AuthorizeAndBuildResponse_Complete.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 *AuthorizeAndBuildResponse_Complete) XXX_Merge(src proto.Message) { + xxx_messageInfo_AuthorizeAndBuildResponse_Complete.Merge(m, src) +} +func (m *AuthorizeAndBuildResponse_Complete) XXX_Size() int { + return m.Size() +} +func (m *AuthorizeAndBuildResponse_Complete) XXX_DiscardUnknown() { + xxx_messageInfo_AuthorizeAndBuildResponse_Complete.DiscardUnknown(m) +} + +var xxx_messageInfo_AuthorizeAndBuildResponse_Complete proto.InternalMessageInfo + +func (m *AuthorizeAndBuildResponse_Complete) GetTransaction() *v1.Transaction { if m != nil { return m.Transaction } @@ -142,7 +303,7 @@ func (m *AuthorizeAndBuildResponse) GetTransaction() *v1alpha1.Transaction { type BroadcastTransactionRequest struct { // The transaction to broadcast. - Transaction *v1alpha1.Transaction `protobuf:"bytes,1,opt,name=transaction,proto3" json:"transaction,omitempty"` + Transaction *v1.Transaction `protobuf:"bytes,1,opt,name=transaction,proto3" json:"transaction,omitempty"` // If true, wait for the view service to detect the transaction during sync. AwaitDetection bool `protobuf:"varint,2,opt,name=await_detection,json=awaitDetection,proto3" json:"await_detection,omitempty"` } @@ -151,7 +312,7 @@ func (m *BroadcastTransactionRequest) Reset() { *m = BroadcastTransactio func (m *BroadcastTransactionRequest) String() string { return proto.CompactTextString(m) } func (*BroadcastTransactionRequest) ProtoMessage() {} func (*BroadcastTransactionRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_0aa947b204e6a7c2, []int{2} + return fileDescriptor_dba93d04e42ddfc3, []int{2} } func (m *BroadcastTransactionRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -180,7 +341,7 @@ func (m *BroadcastTransactionRequest) XXX_DiscardUnknown() { var xxx_messageInfo_BroadcastTransactionRequest proto.InternalMessageInfo -func (m *BroadcastTransactionRequest) GetTransaction() *v1alpha1.Transaction { +func (m *BroadcastTransactionRequest) GetTransaction() *v1.Transaction { if m != nil { return m.Transaction } @@ -195,18 +356,17 @@ func (m *BroadcastTransactionRequest) GetAwaitDetection() bool { } type BroadcastTransactionResponse struct { - // The hash of the transaction that was broadcast. - Id *v1alpha11.TransactionId `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // The height in which the transaction was detected as included in the chain, if any. - // Will not be included unless await_detection was true. - DetectionHeight uint64 `protobuf:"varint,2,opt,name=detection_height,json=detectionHeight,proto3" json:"detection_height,omitempty"` + // Types that are valid to be assigned to Status: + // *BroadcastTransactionResponse_BroadcastSuccess_ + // *BroadcastTransactionResponse_Confirmed_ + Status isBroadcastTransactionResponse_Status `protobuf_oneof:"status"` } func (m *BroadcastTransactionResponse) Reset() { *m = BroadcastTransactionResponse{} } func (m *BroadcastTransactionResponse) String() string { return proto.CompactTextString(m) } func (*BroadcastTransactionResponse) ProtoMessage() {} func (*BroadcastTransactionResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_0aa947b204e6a7c2, []int{3} + return fileDescriptor_dba93d04e42ddfc3, []int{3} } func (m *BroadcastTransactionResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -235,14 +395,154 @@ func (m *BroadcastTransactionResponse) XXX_DiscardUnknown() { var xxx_messageInfo_BroadcastTransactionResponse proto.InternalMessageInfo -func (m *BroadcastTransactionResponse) GetId() *v1alpha11.TransactionId { +type isBroadcastTransactionResponse_Status interface { + isBroadcastTransactionResponse_Status() + MarshalTo([]byte) (int, error) + Size() int +} + +type BroadcastTransactionResponse_BroadcastSuccess_ struct { + BroadcastSuccess *BroadcastTransactionResponse_BroadcastSuccess `protobuf:"bytes,1,opt,name=broadcast_success,json=broadcastSuccess,proto3,oneof" json:"broadcast_success,omitempty"` +} +type BroadcastTransactionResponse_Confirmed_ struct { + Confirmed *BroadcastTransactionResponse_Confirmed `protobuf:"bytes,2,opt,name=confirmed,proto3,oneof" json:"confirmed,omitempty"` +} + +func (*BroadcastTransactionResponse_BroadcastSuccess_) isBroadcastTransactionResponse_Status() {} +func (*BroadcastTransactionResponse_Confirmed_) isBroadcastTransactionResponse_Status() {} + +func (m *BroadcastTransactionResponse) GetStatus() isBroadcastTransactionResponse_Status { + if m != nil { + return m.Status + } + return nil +} + +func (m *BroadcastTransactionResponse) GetBroadcastSuccess() *BroadcastTransactionResponse_BroadcastSuccess { + if x, ok := m.GetStatus().(*BroadcastTransactionResponse_BroadcastSuccess_); ok { + return x.BroadcastSuccess + } + return nil +} + +func (m *BroadcastTransactionResponse) GetConfirmed() *BroadcastTransactionResponse_Confirmed { + if x, ok := m.GetStatus().(*BroadcastTransactionResponse_Confirmed_); ok { + return x.Confirmed + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*BroadcastTransactionResponse) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*BroadcastTransactionResponse_BroadcastSuccess_)(nil), + (*BroadcastTransactionResponse_Confirmed_)(nil), + } +} + +// Signals that the transaction was broadcast successfully (but has not been confirmed). +type BroadcastTransactionResponse_BroadcastSuccess struct { + // The hash of the transaction that was broadcast. + Id *v11.TransactionId `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` +} + +func (m *BroadcastTransactionResponse_BroadcastSuccess) Reset() { + *m = BroadcastTransactionResponse_BroadcastSuccess{} +} +func (m *BroadcastTransactionResponse_BroadcastSuccess) String() string { + return proto.CompactTextString(m) +} +func (*BroadcastTransactionResponse_BroadcastSuccess) ProtoMessage() {} +func (*BroadcastTransactionResponse_BroadcastSuccess) Descriptor() ([]byte, []int) { + return fileDescriptor_dba93d04e42ddfc3, []int{3, 0} +} +func (m *BroadcastTransactionResponse_BroadcastSuccess) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BroadcastTransactionResponse_BroadcastSuccess) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BroadcastTransactionResponse_BroadcastSuccess.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 *BroadcastTransactionResponse_BroadcastSuccess) XXX_Merge(src proto.Message) { + xxx_messageInfo_BroadcastTransactionResponse_BroadcastSuccess.Merge(m, src) +} +func (m *BroadcastTransactionResponse_BroadcastSuccess) XXX_Size() int { + return m.Size() +} +func (m *BroadcastTransactionResponse_BroadcastSuccess) XXX_DiscardUnknown() { + xxx_messageInfo_BroadcastTransactionResponse_BroadcastSuccess.DiscardUnknown(m) +} + +var xxx_messageInfo_BroadcastTransactionResponse_BroadcastSuccess proto.InternalMessageInfo + +func (m *BroadcastTransactionResponse_BroadcastSuccess) GetId() *v11.TransactionId { + if m != nil { + return m.Id + } + return nil +} + +// Signals that the transaction has been confirmed on-chain and detected by the view server. +// +// Will not be sent unless await_detection was true. +type BroadcastTransactionResponse_Confirmed struct { + // The hash of the transaction that was broadcast. + Id *v11.TransactionId `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // The height in which the transaction was detected as included in the chain, if any. + DetectionHeight uint64 `protobuf:"varint,2,opt,name=detection_height,json=detectionHeight,proto3" json:"detection_height,omitempty"` +} + +func (m *BroadcastTransactionResponse_Confirmed) Reset() { + *m = BroadcastTransactionResponse_Confirmed{} +} +func (m *BroadcastTransactionResponse_Confirmed) String() string { return proto.CompactTextString(m) } +func (*BroadcastTransactionResponse_Confirmed) ProtoMessage() {} +func (*BroadcastTransactionResponse_Confirmed) Descriptor() ([]byte, []int) { + return fileDescriptor_dba93d04e42ddfc3, []int{3, 1} +} +func (m *BroadcastTransactionResponse_Confirmed) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BroadcastTransactionResponse_Confirmed) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BroadcastTransactionResponse_Confirmed.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 *BroadcastTransactionResponse_Confirmed) XXX_Merge(src proto.Message) { + xxx_messageInfo_BroadcastTransactionResponse_Confirmed.Merge(m, src) +} +func (m *BroadcastTransactionResponse_Confirmed) XXX_Size() int { + return m.Size() +} +func (m *BroadcastTransactionResponse_Confirmed) XXX_DiscardUnknown() { + xxx_messageInfo_BroadcastTransactionResponse_Confirmed.DiscardUnknown(m) +} + +var xxx_messageInfo_BroadcastTransactionResponse_Confirmed proto.InternalMessageInfo + +func (m *BroadcastTransactionResponse_Confirmed) GetId() *v11.TransactionId { if m != nil { return m.Id } return nil } -func (m *BroadcastTransactionResponse) GetDetectionHeight() uint64 { +func (m *BroadcastTransactionResponse_Confirmed) GetDetectionHeight() uint64 { if m != nil { return m.DetectionHeight } @@ -252,31 +552,40 @@ func (m *BroadcastTransactionResponse) GetDetectionHeight() uint64 { type TransactionPlannerRequest struct { // The expiry height for the requested TransactionPlan ExpiryHeight uint64 `protobuf:"varint,1,opt,name=expiry_height,json=expiryHeight,proto3" json:"expiry_height,omitempty"` - // The fee for the requested TransactionPlan, if any. - Fee *v1alpha12.Fee `protobuf:"bytes,2,opt,name=fee,proto3" json:"fee,omitempty"` // The memo for the requested TransactionPlan. // The memo must be unspecified unless `outputs` is nonempty. - Memo *v1alpha1.MemoPlaintext `protobuf:"bytes,3,opt,name=memo,proto3" json:"memo,omitempty"` + Memo *v1.MemoPlaintext `protobuf:"bytes,3,opt,name=memo,proto3" json:"memo,omitempty"` // If present, only spends funds from the given account. - Source *v1alpha13.AddressIndex `protobuf:"bytes,4,opt,name=source,proto3" json:"source,omitempty"` + Source *v12.AddressIndex `protobuf:"bytes,4,opt,name=source,proto3" json:"source,omitempty"` // Request contents - Outputs []*TransactionPlannerRequest_Output `protobuf:"bytes,20,rep,name=outputs,proto3" json:"outputs,omitempty"` - Swaps []*TransactionPlannerRequest_Swap `protobuf:"bytes,30,rep,name=swaps,proto3" json:"swaps,omitempty"` - SwapClaims []*TransactionPlannerRequest_SwapClaim `protobuf:"bytes,31,rep,name=swap_claims,json=swapClaims,proto3" json:"swap_claims,omitempty"` - Delegations []*TransactionPlannerRequest_Delegate `protobuf:"bytes,40,rep,name=delegations,proto3" json:"delegations,omitempty"` - Undelegations []*TransactionPlannerRequest_Undelegate `protobuf:"bytes,50,rep,name=undelegations,proto3" json:"undelegations,omitempty"` - IbcRelayActions []*v1alpha14.IbcRelay `protobuf:"bytes,60,rep,name=ibc_relay_actions,json=ibcRelayActions,proto3" json:"ibc_relay_actions,omitempty"` - Ics20Withdrawals []*v1alpha14.Ics20Withdrawal `protobuf:"bytes,61,rep,name=ics20_withdrawals,json=ics20Withdrawals,proto3" json:"ics20_withdrawals,omitempty"` - PositionOpens []*TransactionPlannerRequest_PositionOpen `protobuf:"bytes,70,rep,name=position_opens,json=positionOpens,proto3" json:"position_opens,omitempty"` - PositionCloses []*TransactionPlannerRequest_PositionClose `protobuf:"bytes,71,rep,name=position_closes,json=positionCloses,proto3" json:"position_closes,omitempty"` - PositionWithdraws []*TransactionPlannerRequest_PositionWithdraw `protobuf:"bytes,72,rep,name=position_withdraws,json=positionWithdraws,proto3" json:"position_withdraws,omitempty"` + Outputs []*TransactionPlannerRequest_Output `protobuf:"bytes,20,rep,name=outputs,proto3" json:"outputs,omitempty"` + Swaps []*TransactionPlannerRequest_Swap `protobuf:"bytes,30,rep,name=swaps,proto3" json:"swaps,omitempty"` + SwapClaims []*TransactionPlannerRequest_SwapClaim `protobuf:"bytes,31,rep,name=swap_claims,json=swapClaims,proto3" json:"swap_claims,omitempty"` + Delegations []*TransactionPlannerRequest_Delegate `protobuf:"bytes,40,rep,name=delegations,proto3" json:"delegations,omitempty"` + Undelegations []*TransactionPlannerRequest_Undelegate `protobuf:"bytes,50,rep,name=undelegations,proto3" json:"undelegations,omitempty"` + UndelegationClaims []*TransactionPlannerRequest_UndelegateClaim `protobuf:"bytes,51,rep,name=undelegation_claims,json=undelegationClaims,proto3" json:"undelegation_claims,omitempty"` + IbcRelayActions []*v13.IbcRelay `protobuf:"bytes,60,rep,name=ibc_relay_actions,json=ibcRelayActions,proto3" json:"ibc_relay_actions,omitempty"` + Ics20Withdrawals []*v13.Ics20Withdrawal `protobuf:"bytes,61,rep,name=ics20_withdrawals,json=ics20Withdrawals,proto3" json:"ics20_withdrawals,omitempty"` + PositionOpens []*TransactionPlannerRequest_PositionOpen `protobuf:"bytes,70,rep,name=position_opens,json=positionOpens,proto3" json:"position_opens,omitempty"` + PositionCloses []*TransactionPlannerRequest_PositionClose `protobuf:"bytes,71,rep,name=position_closes,json=positionCloses,proto3" json:"position_closes,omitempty"` + PositionWithdraws []*TransactionPlannerRequest_PositionWithdraw `protobuf:"bytes,72,rep,name=position_withdraws,json=positionWithdraws,proto3" json:"position_withdraws,omitempty"` + // Specifies either that the planner should compute fees automatically or that it should use a fixed fee amount. + // + // Types that are valid to be assigned to FeeMode: + // *TransactionPlannerRequest_AutoFee + // *TransactionPlannerRequest_ManualFee + FeeMode isTransactionPlannerRequest_FeeMode `protobuf_oneof:"fee_mode"` + // The epoch index of the transaction being planned. + EpochIndex uint64 `protobuf:"varint,200,opt,name=epoch_index,json=epochIndex,proto3" json:"epoch_index,omitempty"` // Deprecated: Do not use. + // The epoch of the transaction being planned. + Epoch *v15.Epoch `protobuf:"bytes,201,opt,name=epoch,proto3" json:"epoch,omitempty"` } func (m *TransactionPlannerRequest) Reset() { *m = TransactionPlannerRequest{} } func (m *TransactionPlannerRequest) String() string { return proto.CompactTextString(m) } func (*TransactionPlannerRequest) ProtoMessage() {} func (*TransactionPlannerRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_0aa947b204e6a7c2, []int{4} + return fileDescriptor_dba93d04e42ddfc3, []int{4} } func (m *TransactionPlannerRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -305,28 +614,44 @@ func (m *TransactionPlannerRequest) XXX_DiscardUnknown() { var xxx_messageInfo_TransactionPlannerRequest proto.InternalMessageInfo -func (m *TransactionPlannerRequest) GetExpiryHeight() uint64 { +type isTransactionPlannerRequest_FeeMode interface { + isTransactionPlannerRequest_FeeMode() + MarshalTo([]byte) (int, error) + Size() int +} + +type TransactionPlannerRequest_AutoFee struct { + AutoFee *v14.FeeTier `protobuf:"bytes,100,opt,name=auto_fee,json=autoFee,proto3,oneof" json:"auto_fee,omitempty"` +} +type TransactionPlannerRequest_ManualFee struct { + ManualFee *v14.Fee `protobuf:"bytes,101,opt,name=manual_fee,json=manualFee,proto3,oneof" json:"manual_fee,omitempty"` +} + +func (*TransactionPlannerRequest_AutoFee) isTransactionPlannerRequest_FeeMode() {} +func (*TransactionPlannerRequest_ManualFee) isTransactionPlannerRequest_FeeMode() {} + +func (m *TransactionPlannerRequest) GetFeeMode() isTransactionPlannerRequest_FeeMode { if m != nil { - return m.ExpiryHeight + return m.FeeMode } - return 0 + return nil } -func (m *TransactionPlannerRequest) GetFee() *v1alpha12.Fee { +func (m *TransactionPlannerRequest) GetExpiryHeight() uint64 { if m != nil { - return m.Fee + return m.ExpiryHeight } - return nil + return 0 } -func (m *TransactionPlannerRequest) GetMemo() *v1alpha1.MemoPlaintext { +func (m *TransactionPlannerRequest) GetMemo() *v1.MemoPlaintext { if m != nil { return m.Memo } return nil } -func (m *TransactionPlannerRequest) GetSource() *v1alpha13.AddressIndex { +func (m *TransactionPlannerRequest) GetSource() *v12.AddressIndex { if m != nil { return m.Source } @@ -368,14 +693,21 @@ func (m *TransactionPlannerRequest) GetUndelegations() []*TransactionPlannerRequ return nil } -func (m *TransactionPlannerRequest) GetIbcRelayActions() []*v1alpha14.IbcRelay { +func (m *TransactionPlannerRequest) GetUndelegationClaims() []*TransactionPlannerRequest_UndelegateClaim { + if m != nil { + return m.UndelegationClaims + } + return nil +} + +func (m *TransactionPlannerRequest) GetIbcRelayActions() []*v13.IbcRelay { if m != nil { return m.IbcRelayActions } return nil } -func (m *TransactionPlannerRequest) GetIcs20Withdrawals() []*v1alpha14.Ics20Withdrawal { +func (m *TransactionPlannerRequest) GetIcs20Withdrawals() []*v13.Ics20Withdrawal { if m != nil { return m.Ics20Withdrawals } @@ -403,19 +735,56 @@ func (m *TransactionPlannerRequest) GetPositionWithdraws() []*TransactionPlanner return nil } +func (m *TransactionPlannerRequest) GetAutoFee() *v14.FeeTier { + if x, ok := m.GetFeeMode().(*TransactionPlannerRequest_AutoFee); ok { + return x.AutoFee + } + return nil +} + +func (m *TransactionPlannerRequest) GetManualFee() *v14.Fee { + if x, ok := m.GetFeeMode().(*TransactionPlannerRequest_ManualFee); ok { + return x.ManualFee + } + return nil +} + +// Deprecated: Do not use. +func (m *TransactionPlannerRequest) GetEpochIndex() uint64 { + if m != nil { + return m.EpochIndex + } + return 0 +} + +func (m *TransactionPlannerRequest) GetEpoch() *v15.Epoch { + if m != nil { + return m.Epoch + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*TransactionPlannerRequest) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*TransactionPlannerRequest_AutoFee)(nil), + (*TransactionPlannerRequest_ManualFee)(nil), + } +} + // Request message subtypes type TransactionPlannerRequest_Output struct { // The amount and denomination in which the Output is issued. - Value *v1alpha15.Value `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` + Value *v16.Value `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` // The address to which Output will be sent. - Address *v1alpha13.Address `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` + Address *v12.Address `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` } func (m *TransactionPlannerRequest_Output) Reset() { *m = TransactionPlannerRequest_Output{} } func (m *TransactionPlannerRequest_Output) String() string { return proto.CompactTextString(m) } func (*TransactionPlannerRequest_Output) ProtoMessage() {} func (*TransactionPlannerRequest_Output) Descriptor() ([]byte, []int) { - return fileDescriptor_0aa947b204e6a7c2, []int{4, 0} + return fileDescriptor_dba93d04e42ddfc3, []int{4, 0} } func (m *TransactionPlannerRequest_Output) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -444,14 +813,14 @@ func (m *TransactionPlannerRequest_Output) XXX_DiscardUnknown() { var xxx_messageInfo_TransactionPlannerRequest_Output proto.InternalMessageInfo -func (m *TransactionPlannerRequest_Output) GetValue() *v1alpha15.Value { +func (m *TransactionPlannerRequest_Output) GetValue() *v16.Value { if m != nil { return m.Value } return nil } -func (m *TransactionPlannerRequest_Output) GetAddress() *v1alpha13.Address { +func (m *TransactionPlannerRequest_Output) GetAddress() *v12.Address { if m != nil { return m.Address } @@ -460,20 +829,20 @@ func (m *TransactionPlannerRequest_Output) GetAddress() *v1alpha13.Address { type TransactionPlannerRequest_Swap struct { // The input amount and denomination to be traded in the Swap. - Value *v1alpha15.Value `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` + Value *v16.Value `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` // The denomination to be received as a Output of the Swap. - TargetAsset *v1alpha15.AssetId `protobuf:"bytes,2,opt,name=target_asset,json=targetAsset,proto3" json:"target_asset,omitempty"` + TargetAsset *v16.AssetId `protobuf:"bytes,2,opt,name=target_asset,json=targetAsset,proto3" json:"target_asset,omitempty"` // The pre-paid fee to be paid for claiming the Swap outputs. - Fee *v1alpha12.Fee `protobuf:"bytes,3,opt,name=fee,proto3" json:"fee,omitempty"` + Fee *v14.Fee `protobuf:"bytes,3,opt,name=fee,proto3" json:"fee,omitempty"` // The address to which swap claim output will be sent. - ClaimAddress *v1alpha13.Address `protobuf:"bytes,4,opt,name=claim_address,json=claimAddress,proto3" json:"claim_address,omitempty"` + ClaimAddress *v12.Address `protobuf:"bytes,4,opt,name=claim_address,json=claimAddress,proto3" json:"claim_address,omitempty"` } func (m *TransactionPlannerRequest_Swap) Reset() { *m = TransactionPlannerRequest_Swap{} } func (m *TransactionPlannerRequest_Swap) String() string { return proto.CompactTextString(m) } func (*TransactionPlannerRequest_Swap) ProtoMessage() {} func (*TransactionPlannerRequest_Swap) Descriptor() ([]byte, []int) { - return fileDescriptor_0aa947b204e6a7c2, []int{4, 1} + return fileDescriptor_dba93d04e42ddfc3, []int{4, 1} } func (m *TransactionPlannerRequest_Swap) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -502,28 +871,28 @@ func (m *TransactionPlannerRequest_Swap) XXX_DiscardUnknown() { var xxx_messageInfo_TransactionPlannerRequest_Swap proto.InternalMessageInfo -func (m *TransactionPlannerRequest_Swap) GetValue() *v1alpha15.Value { +func (m *TransactionPlannerRequest_Swap) GetValue() *v16.Value { if m != nil { return m.Value } return nil } -func (m *TransactionPlannerRequest_Swap) GetTargetAsset() *v1alpha15.AssetId { +func (m *TransactionPlannerRequest_Swap) GetTargetAsset() *v16.AssetId { if m != nil { return m.TargetAsset } return nil } -func (m *TransactionPlannerRequest_Swap) GetFee() *v1alpha12.Fee { +func (m *TransactionPlannerRequest_Swap) GetFee() *v14.Fee { if m != nil { return m.Fee } return nil } -func (m *TransactionPlannerRequest_Swap) GetClaimAddress() *v1alpha13.Address { +func (m *TransactionPlannerRequest_Swap) GetClaimAddress() *v12.Address { if m != nil { return m.ClaimAddress } @@ -533,15 +902,15 @@ func (m *TransactionPlannerRequest_Swap) GetClaimAddress() *v1alpha13.Address { type TransactionPlannerRequest_SwapClaim struct { // SwapCommitment to identify the Swap to be claimed. // Use the commitment from the Swap message: - // penumbra.core.component.dex.v1alpha1.Swap.body.payload.commitment. - SwapCommitment *v1alpha16.StateCommitment `protobuf:"bytes,1,opt,name=swap_commitment,json=swapCommitment,proto3" json:"swap_commitment,omitempty"` + // penumbra.core.component.dex.v1.Swap.body.payload.commitment. + SwapCommitment *v17.StateCommitment `protobuf:"bytes,1,opt,name=swap_commitment,json=swapCommitment,proto3" json:"swap_commitment,omitempty"` } func (m *TransactionPlannerRequest_SwapClaim) Reset() { *m = TransactionPlannerRequest_SwapClaim{} } func (m *TransactionPlannerRequest_SwapClaim) String() string { return proto.CompactTextString(m) } func (*TransactionPlannerRequest_SwapClaim) ProtoMessage() {} func (*TransactionPlannerRequest_SwapClaim) Descriptor() ([]byte, []int) { - return fileDescriptor_0aa947b204e6a7c2, []int{4, 2} + return fileDescriptor_dba93d04e42ddfc3, []int{4, 2} } func (m *TransactionPlannerRequest_SwapClaim) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -570,7 +939,7 @@ func (m *TransactionPlannerRequest_SwapClaim) XXX_DiscardUnknown() { var xxx_messageInfo_TransactionPlannerRequest_SwapClaim proto.InternalMessageInfo -func (m *TransactionPlannerRequest_SwapClaim) GetSwapCommitment() *v1alpha16.StateCommitment { +func (m *TransactionPlannerRequest_SwapClaim) GetSwapCommitment() *v17.StateCommitment { if m != nil { return m.SwapCommitment } @@ -578,15 +947,15 @@ func (m *TransactionPlannerRequest_SwapClaim) GetSwapCommitment() *v1alpha16.Sta } type TransactionPlannerRequest_Delegate struct { - Amount *v1alpha17.Amount `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"` - RateData *v1alpha18.RateData `protobuf:"bytes,3,opt,name=rate_data,json=rateData,proto3" json:"rate_data,omitempty"` + Amount *v18.Amount `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"` + RateData *v19.RateData `protobuf:"bytes,3,opt,name=rate_data,json=rateData,proto3" json:"rate_data,omitempty"` } func (m *TransactionPlannerRequest_Delegate) Reset() { *m = TransactionPlannerRequest_Delegate{} } func (m *TransactionPlannerRequest_Delegate) String() string { return proto.CompactTextString(m) } func (*TransactionPlannerRequest_Delegate) ProtoMessage() {} func (*TransactionPlannerRequest_Delegate) Descriptor() ([]byte, []int) { - return fileDescriptor_0aa947b204e6a7c2, []int{4, 3} + return fileDescriptor_dba93d04e42ddfc3, []int{4, 3} } func (m *TransactionPlannerRequest_Delegate) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -615,14 +984,14 @@ func (m *TransactionPlannerRequest_Delegate) XXX_DiscardUnknown() { var xxx_messageInfo_TransactionPlannerRequest_Delegate proto.InternalMessageInfo -func (m *TransactionPlannerRequest_Delegate) GetAmount() *v1alpha17.Amount { +func (m *TransactionPlannerRequest_Delegate) GetAmount() *v18.Amount { if m != nil { return m.Amount } return nil } -func (m *TransactionPlannerRequest_Delegate) GetRateData() *v1alpha18.RateData { +func (m *TransactionPlannerRequest_Delegate) GetRateData() *v19.RateData { if m != nil { return m.RateData } @@ -630,15 +999,15 @@ func (m *TransactionPlannerRequest_Delegate) GetRateData() *v1alpha18.RateData { } type TransactionPlannerRequest_Undelegate struct { - Value *v1alpha15.Value `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` - RateData *v1alpha18.RateData `protobuf:"bytes,2,opt,name=rate_data,json=rateData,proto3" json:"rate_data,omitempty"` + Value *v16.Value `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` + RateData *v19.RateData `protobuf:"bytes,2,opt,name=rate_data,json=rateData,proto3" json:"rate_data,omitempty"` } func (m *TransactionPlannerRequest_Undelegate) Reset() { *m = TransactionPlannerRequest_Undelegate{} } func (m *TransactionPlannerRequest_Undelegate) String() string { return proto.CompactTextString(m) } func (*TransactionPlannerRequest_Undelegate) ProtoMessage() {} func (*TransactionPlannerRequest_Undelegate) Descriptor() ([]byte, []int) { - return fileDescriptor_0aa947b204e6a7c2, []int{4, 4} + return fileDescriptor_dba93d04e42ddfc3, []int{4, 4} } func (m *TransactionPlannerRequest_Undelegate) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -667,42 +1036,51 @@ func (m *TransactionPlannerRequest_Undelegate) XXX_DiscardUnknown() { var xxx_messageInfo_TransactionPlannerRequest_Undelegate proto.InternalMessageInfo -func (m *TransactionPlannerRequest_Undelegate) GetValue() *v1alpha15.Value { +func (m *TransactionPlannerRequest_Undelegate) GetValue() *v16.Value { if m != nil { return m.Value } return nil } -func (m *TransactionPlannerRequest_Undelegate) GetRateData() *v1alpha18.RateData { +func (m *TransactionPlannerRequest_Undelegate) GetRateData() *v19.RateData { if m != nil { return m.RateData } return nil } -type TransactionPlannerRequest_PositionOpen struct { - // Contains the data defining the position, sufficient to compute its `PositionId`. - // - // Positions are immutable, so the `PositionData` (and hence the `PositionId`) - // are unchanged over the entire lifetime of the position. - Position *v1alpha19.Position `protobuf:"bytes,1,opt,name=position,proto3" json:"position,omitempty"` +type TransactionPlannerRequest_UndelegateClaim struct { + // The identity key of the validator to finish undelegating from. + ValidatorIdentity *v12.IdentityKey `protobuf:"bytes,1,opt,name=validator_identity,json=validatorIdentity,proto3" json:"validator_identity,omitempty"` + // The epoch in which unbonding began, used to verify the penalty. + StartEpochIndex uint64 `protobuf:"varint,2,opt,name=start_epoch_index,json=startEpochIndex,proto3" json:"start_epoch_index,omitempty"` // Deprecated: Do not use. + // The penalty applied to undelegation, in bps^2 (10e-8). + // In the happy path (no slashing), this is 0. + Penalty *v19.Penalty `protobuf:"bytes,3,opt,name=penalty,proto3" json:"penalty,omitempty"` + // The amount of unbonding tokens to claim. + // This is a bare number because its denom is determined by the preceding data. + UnbondingAmount *v18.Amount `protobuf:"bytes,4,opt,name=unbonding_amount,json=unbondingAmount,proto3" json:"unbonding_amount,omitempty"` + // The height at which unbonding began. + UnbondingStartHeight uint64 `protobuf:"varint,5,opt,name=unbonding_start_height,json=unbondingStartHeight,proto3" json:"unbonding_start_height,omitempty"` } -func (m *TransactionPlannerRequest_PositionOpen) Reset() { - *m = TransactionPlannerRequest_PositionOpen{} +func (m *TransactionPlannerRequest_UndelegateClaim) Reset() { + *m = TransactionPlannerRequest_UndelegateClaim{} } -func (m *TransactionPlannerRequest_PositionOpen) String() string { return proto.CompactTextString(m) } -func (*TransactionPlannerRequest_PositionOpen) ProtoMessage() {} -func (*TransactionPlannerRequest_PositionOpen) Descriptor() ([]byte, []int) { - return fileDescriptor_0aa947b204e6a7c2, []int{4, 5} +func (m *TransactionPlannerRequest_UndelegateClaim) String() string { + return proto.CompactTextString(m) } -func (m *TransactionPlannerRequest_PositionOpen) XXX_Unmarshal(b []byte) error { +func (*TransactionPlannerRequest_UndelegateClaim) ProtoMessage() {} +func (*TransactionPlannerRequest_UndelegateClaim) Descriptor() ([]byte, []int) { + return fileDescriptor_dba93d04e42ddfc3, []int{4, 5} +} +func (m *TransactionPlannerRequest_UndelegateClaim) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *TransactionPlannerRequest_PositionOpen) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *TransactionPlannerRequest_UndelegateClaim) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_TransactionPlannerRequest_PositionOpen.Marshal(b, m, deterministic) + return xxx_messageInfo_TransactionPlannerRequest_UndelegateClaim.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -712,42 +1090,121 @@ func (m *TransactionPlannerRequest_PositionOpen) XXX_Marshal(b []byte, determini return b[:n], nil } } -func (m *TransactionPlannerRequest_PositionOpen) XXX_Merge(src proto.Message) { - xxx_messageInfo_TransactionPlannerRequest_PositionOpen.Merge(m, src) +func (m *TransactionPlannerRequest_UndelegateClaim) XXX_Merge(src proto.Message) { + xxx_messageInfo_TransactionPlannerRequest_UndelegateClaim.Merge(m, src) } -func (m *TransactionPlannerRequest_PositionOpen) XXX_Size() int { +func (m *TransactionPlannerRequest_UndelegateClaim) XXX_Size() int { return m.Size() } -func (m *TransactionPlannerRequest_PositionOpen) XXX_DiscardUnknown() { - xxx_messageInfo_TransactionPlannerRequest_PositionOpen.DiscardUnknown(m) +func (m *TransactionPlannerRequest_UndelegateClaim) XXX_DiscardUnknown() { + xxx_messageInfo_TransactionPlannerRequest_UndelegateClaim.DiscardUnknown(m) } -var xxx_messageInfo_TransactionPlannerRequest_PositionOpen proto.InternalMessageInfo +var xxx_messageInfo_TransactionPlannerRequest_UndelegateClaim proto.InternalMessageInfo -func (m *TransactionPlannerRequest_PositionOpen) GetPosition() *v1alpha19.Position { +func (m *TransactionPlannerRequest_UndelegateClaim) GetValidatorIdentity() *v12.IdentityKey { if m != nil { - return m.Position + return m.ValidatorIdentity } return nil } -type TransactionPlannerRequest_PositionClose struct { - // The position to close. - PositionId *v1alpha19.PositionId `protobuf:"bytes,1,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty"` +// Deprecated: Do not use. +func (m *TransactionPlannerRequest_UndelegateClaim) GetStartEpochIndex() uint64 { + if m != nil { + return m.StartEpochIndex + } + return 0 } -func (m *TransactionPlannerRequest_PositionClose) Reset() { - *m = TransactionPlannerRequest_PositionClose{} +func (m *TransactionPlannerRequest_UndelegateClaim) GetPenalty() *v19.Penalty { + if m != nil { + return m.Penalty + } + return nil } -func (m *TransactionPlannerRequest_PositionClose) String() string { return proto.CompactTextString(m) } -func (*TransactionPlannerRequest_PositionClose) ProtoMessage() {} -func (*TransactionPlannerRequest_PositionClose) Descriptor() ([]byte, []int) { - return fileDescriptor_0aa947b204e6a7c2, []int{4, 6} + +func (m *TransactionPlannerRequest_UndelegateClaim) GetUnbondingAmount() *v18.Amount { + if m != nil { + return m.UnbondingAmount + } + return nil } -func (m *TransactionPlannerRequest_PositionClose) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (m *TransactionPlannerRequest_UndelegateClaim) GetUnbondingStartHeight() uint64 { + if m != nil { + return m.UnbondingStartHeight + } + return 0 } -func (m *TransactionPlannerRequest_PositionClose) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + +type TransactionPlannerRequest_PositionOpen struct { + // Contains the data defining the position, sufficient to compute its `PositionId`. + // + // Positions are immutable, so the `PositionData` (and hence the `PositionId`) + // are unchanged over the entire lifetime of the position. + Position *v110.Position `protobuf:"bytes,1,opt,name=position,proto3" json:"position,omitempty"` +} + +func (m *TransactionPlannerRequest_PositionOpen) Reset() { + *m = TransactionPlannerRequest_PositionOpen{} +} +func (m *TransactionPlannerRequest_PositionOpen) String() string { return proto.CompactTextString(m) } +func (*TransactionPlannerRequest_PositionOpen) ProtoMessage() {} +func (*TransactionPlannerRequest_PositionOpen) Descriptor() ([]byte, []int) { + return fileDescriptor_dba93d04e42ddfc3, []int{4, 6} +} +func (m *TransactionPlannerRequest_PositionOpen) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TransactionPlannerRequest_PositionOpen) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TransactionPlannerRequest_PositionOpen.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 *TransactionPlannerRequest_PositionOpen) XXX_Merge(src proto.Message) { + xxx_messageInfo_TransactionPlannerRequest_PositionOpen.Merge(m, src) +} +func (m *TransactionPlannerRequest_PositionOpen) XXX_Size() int { + return m.Size() +} +func (m *TransactionPlannerRequest_PositionOpen) XXX_DiscardUnknown() { + xxx_messageInfo_TransactionPlannerRequest_PositionOpen.DiscardUnknown(m) +} + +var xxx_messageInfo_TransactionPlannerRequest_PositionOpen proto.InternalMessageInfo + +func (m *TransactionPlannerRequest_PositionOpen) GetPosition() *v110.Position { + if m != nil { + return m.Position + } + return nil +} + +type TransactionPlannerRequest_PositionClose struct { + // The position to close. + PositionId *v110.PositionId `protobuf:"bytes,1,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty"` +} + +func (m *TransactionPlannerRequest_PositionClose) Reset() { + *m = TransactionPlannerRequest_PositionClose{} +} +func (m *TransactionPlannerRequest_PositionClose) String() string { return proto.CompactTextString(m) } +func (*TransactionPlannerRequest_PositionClose) ProtoMessage() {} +func (*TransactionPlannerRequest_PositionClose) Descriptor() ([]byte, []int) { + return fileDescriptor_dba93d04e42ddfc3, []int{4, 7} +} +func (m *TransactionPlannerRequest_PositionClose) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TransactionPlannerRequest_PositionClose) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_TransactionPlannerRequest_PositionClose.Marshal(b, m, deterministic) } else { @@ -771,7 +1228,7 @@ func (m *TransactionPlannerRequest_PositionClose) XXX_DiscardUnknown() { var xxx_messageInfo_TransactionPlannerRequest_PositionClose proto.InternalMessageInfo -func (m *TransactionPlannerRequest_PositionClose) GetPositionId() *v1alpha19.PositionId { +func (m *TransactionPlannerRequest_PositionClose) GetPositionId() *v110.PositionId { if m != nil { return m.PositionId } @@ -780,11 +1237,11 @@ func (m *TransactionPlannerRequest_PositionClose) GetPositionId() *v1alpha19.Pos type TransactionPlannerRequest_PositionWithdraw struct { // The position to withdraw. - PositionId *v1alpha19.PositionId `protobuf:"bytes,1,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty"` + PositionId *v110.PositionId `protobuf:"bytes,1,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty"` // The position's final reserves. - Reserves *v1alpha19.Reserves `protobuf:"bytes,2,opt,name=reserves,proto3" json:"reserves,omitempty"` + Reserves *v110.Reserves `protobuf:"bytes,2,opt,name=reserves,proto3" json:"reserves,omitempty"` // The trading pair of the position. - TradingPair *v1alpha19.TradingPair `protobuf:"bytes,3,opt,name=trading_pair,json=tradingPair,proto3" json:"trading_pair,omitempty"` + TradingPair *v110.TradingPair `protobuf:"bytes,3,opt,name=trading_pair,json=tradingPair,proto3" json:"trading_pair,omitempty"` } func (m *TransactionPlannerRequest_PositionWithdraw) Reset() { @@ -795,7 +1252,7 @@ func (m *TransactionPlannerRequest_PositionWithdraw) String() string { } func (*TransactionPlannerRequest_PositionWithdraw) ProtoMessage() {} func (*TransactionPlannerRequest_PositionWithdraw) Descriptor() ([]byte, []int) { - return fileDescriptor_0aa947b204e6a7c2, []int{4, 7} + return fileDescriptor_dba93d04e42ddfc3, []int{4, 8} } func (m *TransactionPlannerRequest_PositionWithdraw) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -824,21 +1281,21 @@ func (m *TransactionPlannerRequest_PositionWithdraw) XXX_DiscardUnknown() { var xxx_messageInfo_TransactionPlannerRequest_PositionWithdraw proto.InternalMessageInfo -func (m *TransactionPlannerRequest_PositionWithdraw) GetPositionId() *v1alpha19.PositionId { +func (m *TransactionPlannerRequest_PositionWithdraw) GetPositionId() *v110.PositionId { if m != nil { return m.PositionId } return nil } -func (m *TransactionPlannerRequest_PositionWithdraw) GetReserves() *v1alpha19.Reserves { +func (m *TransactionPlannerRequest_PositionWithdraw) GetReserves() *v110.Reserves { if m != nil { return m.Reserves } return nil } -func (m *TransactionPlannerRequest_PositionWithdraw) GetTradingPair() *v1alpha19.TradingPair { +func (m *TransactionPlannerRequest_PositionWithdraw) GetTradingPair() *v110.TradingPair { if m != nil { return m.TradingPair } @@ -846,14 +1303,14 @@ func (m *TransactionPlannerRequest_PositionWithdraw) GetTradingPair() *v1alpha19 } type TransactionPlannerResponse struct { - Plan *v1alpha1.TransactionPlan `protobuf:"bytes,1,opt,name=plan,proto3" json:"plan,omitempty"` + Plan *v1.TransactionPlan `protobuf:"bytes,1,opt,name=plan,proto3" json:"plan,omitempty"` } func (m *TransactionPlannerResponse) Reset() { *m = TransactionPlannerResponse{} } func (m *TransactionPlannerResponse) String() string { return proto.CompactTextString(m) } func (*TransactionPlannerResponse) ProtoMessage() {} func (*TransactionPlannerResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_0aa947b204e6a7c2, []int{5} + return fileDescriptor_dba93d04e42ddfc3, []int{5} } func (m *TransactionPlannerResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -882,7 +1339,7 @@ func (m *TransactionPlannerResponse) XXX_DiscardUnknown() { var xxx_messageInfo_TransactionPlannerResponse proto.InternalMessageInfo -func (m *TransactionPlannerResponse) GetPlan() *v1alpha1.TransactionPlan { +func (m *TransactionPlannerResponse) GetPlan() *v1.TransactionPlan { if m != nil { return m.Plan } @@ -890,14 +1347,14 @@ func (m *TransactionPlannerResponse) GetPlan() *v1alpha1.TransactionPlan { } type AddressByIndexRequest struct { - AddressIndex *v1alpha13.AddressIndex `protobuf:"bytes,1,opt,name=address_index,json=addressIndex,proto3" json:"address_index,omitempty"` + AddressIndex *v12.AddressIndex `protobuf:"bytes,1,opt,name=address_index,json=addressIndex,proto3" json:"address_index,omitempty"` } func (m *AddressByIndexRequest) Reset() { *m = AddressByIndexRequest{} } func (m *AddressByIndexRequest) String() string { return proto.CompactTextString(m) } func (*AddressByIndexRequest) ProtoMessage() {} func (*AddressByIndexRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_0aa947b204e6a7c2, []int{6} + return fileDescriptor_dba93d04e42ddfc3, []int{6} } func (m *AddressByIndexRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -926,7 +1383,7 @@ func (m *AddressByIndexRequest) XXX_DiscardUnknown() { var xxx_messageInfo_AddressByIndexRequest proto.InternalMessageInfo -func (m *AddressByIndexRequest) GetAddressIndex() *v1alpha13.AddressIndex { +func (m *AddressByIndexRequest) GetAddressIndex() *v12.AddressIndex { if m != nil { return m.AddressIndex } @@ -934,14 +1391,14 @@ func (m *AddressByIndexRequest) GetAddressIndex() *v1alpha13.AddressIndex { } type AddressByIndexResponse struct { - Address *v1alpha13.Address `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + Address *v12.Address `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` } func (m *AddressByIndexResponse) Reset() { *m = AddressByIndexResponse{} } func (m *AddressByIndexResponse) String() string { return proto.CompactTextString(m) } func (*AddressByIndexResponse) ProtoMessage() {} func (*AddressByIndexResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_0aa947b204e6a7c2, []int{7} + return fileDescriptor_dba93d04e42ddfc3, []int{7} } func (m *AddressByIndexResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -970,7 +1427,7 @@ func (m *AddressByIndexResponse) XXX_DiscardUnknown() { var xxx_messageInfo_AddressByIndexResponse proto.InternalMessageInfo -func (m *AddressByIndexResponse) GetAddress() *v1alpha13.Address { +func (m *AddressByIndexResponse) GetAddress() *v12.Address { if m != nil { return m.Address } @@ -984,7 +1441,7 @@ func (m *WalletIdRequest) Reset() { *m = WalletIdRequest{} } func (m *WalletIdRequest) String() string { return proto.CompactTextString(m) } func (*WalletIdRequest) ProtoMessage() {} func (*WalletIdRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_0aa947b204e6a7c2, []int{8} + return fileDescriptor_dba93d04e42ddfc3, []int{8} } func (m *WalletIdRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1014,14 +1471,14 @@ func (m *WalletIdRequest) XXX_DiscardUnknown() { var xxx_messageInfo_WalletIdRequest proto.InternalMessageInfo type WalletIdResponse struct { - WalletId *v1alpha13.WalletId `protobuf:"bytes,1,opt,name=wallet_id,json=walletId,proto3" json:"wallet_id,omitempty"` + WalletId *v12.WalletId `protobuf:"bytes,1,opt,name=wallet_id,json=walletId,proto3" json:"wallet_id,omitempty"` } func (m *WalletIdResponse) Reset() { *m = WalletIdResponse{} } func (m *WalletIdResponse) String() string { return proto.CompactTextString(m) } func (*WalletIdResponse) ProtoMessage() {} func (*WalletIdResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_0aa947b204e6a7c2, []int{9} + return fileDescriptor_dba93d04e42ddfc3, []int{9} } func (m *WalletIdResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1050,7 +1507,7 @@ func (m *WalletIdResponse) XXX_DiscardUnknown() { var xxx_messageInfo_WalletIdResponse proto.InternalMessageInfo -func (m *WalletIdResponse) GetWalletId() *v1alpha13.WalletId { +func (m *WalletIdResponse) GetWalletId() *v12.WalletId { if m != nil { return m.WalletId } @@ -1058,14 +1515,14 @@ func (m *WalletIdResponse) GetWalletId() *v1alpha13.WalletId { } type IndexByAddressRequest struct { - Address *v1alpha13.Address `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + Address *v12.Address `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` } func (m *IndexByAddressRequest) Reset() { *m = IndexByAddressRequest{} } func (m *IndexByAddressRequest) String() string { return proto.CompactTextString(m) } func (*IndexByAddressRequest) ProtoMessage() {} func (*IndexByAddressRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_0aa947b204e6a7c2, []int{10} + return fileDescriptor_dba93d04e42ddfc3, []int{10} } func (m *IndexByAddressRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1094,7 +1551,7 @@ func (m *IndexByAddressRequest) XXX_DiscardUnknown() { var xxx_messageInfo_IndexByAddressRequest proto.InternalMessageInfo -func (m *IndexByAddressRequest) GetAddress() *v1alpha13.Address { +func (m *IndexByAddressRequest) GetAddress() *v12.Address { if m != nil { return m.Address } @@ -1103,14 +1560,14 @@ func (m *IndexByAddressRequest) GetAddress() *v1alpha13.Address { type IndexByAddressResponse struct { // Will be absent if given an address not viewable by this viewing service - AddressIndex *v1alpha13.AddressIndex `protobuf:"bytes,1,opt,name=address_index,json=addressIndex,proto3" json:"address_index,omitempty"` + AddressIndex *v12.AddressIndex `protobuf:"bytes,1,opt,name=address_index,json=addressIndex,proto3" json:"address_index,omitempty"` } func (m *IndexByAddressResponse) Reset() { *m = IndexByAddressResponse{} } func (m *IndexByAddressResponse) String() string { return proto.CompactTextString(m) } func (*IndexByAddressResponse) ProtoMessage() {} func (*IndexByAddressResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_0aa947b204e6a7c2, []int{11} + return fileDescriptor_dba93d04e42ddfc3, []int{11} } func (m *IndexByAddressResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1139,7 +1596,7 @@ func (m *IndexByAddressResponse) XXX_DiscardUnknown() { var xxx_messageInfo_IndexByAddressResponse proto.InternalMessageInfo -func (m *IndexByAddressResponse) GetAddressIndex() *v1alpha13.AddressIndex { +func (m *IndexByAddressResponse) GetAddressIndex() *v12.AddressIndex { if m != nil { return m.AddressIndex } @@ -1147,15 +1604,14 @@ func (m *IndexByAddressResponse) GetAddressIndex() *v1alpha13.AddressIndex { } type EphemeralAddressRequest struct { - AddressIndex *v1alpha13.AddressIndex `protobuf:"bytes,1,opt,name=address_index,json=addressIndex,proto3" json:"address_index,omitempty"` - DisplayConfirm bool `protobuf:"varint,2,opt,name=display_confirm,json=displayConfirm,proto3" json:"display_confirm,omitempty"` + AddressIndex *v12.AddressIndex `protobuf:"bytes,1,opt,name=address_index,json=addressIndex,proto3" json:"address_index,omitempty"` } func (m *EphemeralAddressRequest) Reset() { *m = EphemeralAddressRequest{} } func (m *EphemeralAddressRequest) String() string { return proto.CompactTextString(m) } func (*EphemeralAddressRequest) ProtoMessage() {} func (*EphemeralAddressRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_0aa947b204e6a7c2, []int{12} + return fileDescriptor_dba93d04e42ddfc3, []int{12} } func (m *EphemeralAddressRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1184,29 +1640,22 @@ func (m *EphemeralAddressRequest) XXX_DiscardUnknown() { var xxx_messageInfo_EphemeralAddressRequest proto.InternalMessageInfo -func (m *EphemeralAddressRequest) GetAddressIndex() *v1alpha13.AddressIndex { +func (m *EphemeralAddressRequest) GetAddressIndex() *v12.AddressIndex { if m != nil { return m.AddressIndex } return nil } -func (m *EphemeralAddressRequest) GetDisplayConfirm() bool { - if m != nil { - return m.DisplayConfirm - } - return false -} - type EphemeralAddressResponse struct { - Address *v1alpha13.Address `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + Address *v12.Address `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` } func (m *EphemeralAddressResponse) Reset() { *m = EphemeralAddressResponse{} } func (m *EphemeralAddressResponse) String() string { return proto.CompactTextString(m) } func (*EphemeralAddressResponse) ProtoMessage() {} func (*EphemeralAddressResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_0aa947b204e6a7c2, []int{13} + return fileDescriptor_dba93d04e42ddfc3, []int{13} } func (m *EphemeralAddressResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1235,7 +1684,7 @@ func (m *EphemeralAddressResponse) XXX_DiscardUnknown() { var xxx_messageInfo_EphemeralAddressResponse proto.InternalMessageInfo -func (m *EphemeralAddressResponse) GetAddress() *v1alpha13.Address { +func (m *EphemeralAddressResponse) GetAddress() *v12.Address { if m != nil { return m.Address } @@ -1244,16 +1693,16 @@ func (m *EphemeralAddressResponse) GetAddress() *v1alpha13.Address { type BalancesRequest struct { // If present, filter balances to only include the account specified by the `AddressIndex`. - AccountFilter *v1alpha13.AddressIndex `protobuf:"bytes,1,opt,name=account_filter,json=accountFilter,proto3" json:"account_filter,omitempty"` + AccountFilter *v12.AddressIndex `protobuf:"bytes,1,opt,name=account_filter,json=accountFilter,proto3" json:"account_filter,omitempty"` // If present, filter balances to only include the specified asset ID. - AssetIdFilter *v1alpha15.AssetId `protobuf:"bytes,2,opt,name=asset_id_filter,json=assetIdFilter,proto3" json:"asset_id_filter,omitempty"` + AssetIdFilter *v16.AssetId `protobuf:"bytes,2,opt,name=asset_id_filter,json=assetIdFilter,proto3" json:"asset_id_filter,omitempty"` } func (m *BalancesRequest) Reset() { *m = BalancesRequest{} } func (m *BalancesRequest) String() string { return proto.CompactTextString(m) } func (*BalancesRequest) ProtoMessage() {} func (*BalancesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_0aa947b204e6a7c2, []int{14} + return fileDescriptor_dba93d04e42ddfc3, []int{14} } func (m *BalancesRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1282,14 +1731,14 @@ func (m *BalancesRequest) XXX_DiscardUnknown() { var xxx_messageInfo_BalancesRequest proto.InternalMessageInfo -func (m *BalancesRequest) GetAccountFilter() *v1alpha13.AddressIndex { +func (m *BalancesRequest) GetAccountFilter() *v12.AddressIndex { if m != nil { return m.AccountFilter } return nil } -func (m *BalancesRequest) GetAssetIdFilter() *v1alpha15.AssetId { +func (m *BalancesRequest) GetAssetIdFilter() *v16.AssetId { if m != nil { return m.AssetIdFilter } @@ -1297,15 +1746,24 @@ func (m *BalancesRequest) GetAssetIdFilter() *v1alpha15.AssetId { } type BalancesResponse struct { - Account *v1alpha13.AddressIndex `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` - Balance *v1alpha15.Value `protobuf:"bytes,2,opt,name=balance,proto3" json:"balance,omitempty"` + // Deprecated: use `account_address` instead. + Account *v12.AddressIndex `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` // Deprecated: Do not use. + // Deprecated: use `balance_view` instead. + Balance *v16.Value `protobuf:"bytes,2,opt,name=balance,proto3" json:"balance,omitempty"` // Deprecated: Do not use. + // The default address for the account. + // + // Note that the returned balance is for all funds sent to the account, + // not just funds sent to its default address. + AccountAddress *v12.AddressView `protobuf:"bytes,3,opt,name=account_address,json=accountAddress,proto3" json:"account_address,omitempty"` + // The account's balance, with metadata. + BalanceView *v16.ValueView `protobuf:"bytes,4,opt,name=balance_view,json=balanceView,proto3" json:"balance_view,omitempty"` } func (m *BalancesResponse) Reset() { *m = BalancesResponse{} } func (m *BalancesResponse) String() string { return proto.CompactTextString(m) } func (*BalancesResponse) ProtoMessage() {} func (*BalancesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_0aa947b204e6a7c2, []int{15} + return fileDescriptor_dba93d04e42ddfc3, []int{15} } func (m *BalancesResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1334,20 +1792,36 @@ func (m *BalancesResponse) XXX_DiscardUnknown() { var xxx_messageInfo_BalancesResponse proto.InternalMessageInfo -func (m *BalancesResponse) GetAccount() *v1alpha13.AddressIndex { +// Deprecated: Do not use. +func (m *BalancesResponse) GetAccount() *v12.AddressIndex { if m != nil { return m.Account } return nil } -func (m *BalancesResponse) GetBalance() *v1alpha15.Value { +// Deprecated: Do not use. +func (m *BalancesResponse) GetBalance() *v16.Value { if m != nil { return m.Balance } return nil } +func (m *BalancesResponse) GetAccountAddress() *v12.AddressView { + if m != nil { + return m.AccountAddress + } + return nil +} + +func (m *BalancesResponse) GetBalanceView() *v16.ValueView { + if m != nil { + return m.BalanceView + } + return nil +} + // Requests sync status of the view service. type StatusRequest struct { } @@ -1356,7 +1830,7 @@ func (m *StatusRequest) Reset() { *m = StatusRequest{} } func (m *StatusRequest) String() string { return proto.CompactTextString(m) } func (*StatusRequest) ProtoMessage() {} func (*StatusRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_0aa947b204e6a7c2, []int{16} + return fileDescriptor_dba93d04e42ddfc3, []int{16} } func (m *StatusRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1399,7 +1873,7 @@ func (m *StatusResponse) Reset() { *m = StatusResponse{} } func (m *StatusResponse) String() string { return proto.CompactTextString(m) } func (*StatusResponse) ProtoMessage() {} func (*StatusResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_0aa947b204e6a7c2, []int{17} + return fileDescriptor_dba93d04e42ddfc3, []int{17} } func (m *StatusResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1457,7 +1931,7 @@ func (m *StatusStreamRequest) Reset() { *m = StatusStreamRequest{} } func (m *StatusStreamRequest) String() string { return proto.CompactTextString(m) } func (*StatusStreamRequest) ProtoMessage() {} func (*StatusStreamRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_0aa947b204e6a7c2, []int{18} + return fileDescriptor_dba93d04e42ddfc3, []int{18} } func (m *StatusStreamRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1500,7 +1974,7 @@ func (m *StatusStreamResponse) Reset() { *m = StatusStreamResponse{} } func (m *StatusStreamResponse) String() string { return proto.CompactTextString(m) } func (*StatusStreamResponse) ProtoMessage() {} func (*StatusStreamResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_0aa947b204e6a7c2, []int{19} + return fileDescriptor_dba93d04e42ddfc3, []int{19} } func (m *StatusStreamResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1558,20 +2032,20 @@ type NotesRequest struct { // If set, return spent notes as well as unspent notes. IncludeSpent bool `protobuf:"varint,2,opt,name=include_spent,json=includeSpent,proto3" json:"include_spent,omitempty"` // If set, only return notes with the specified asset id. - AssetId *v1alpha15.AssetId `protobuf:"bytes,3,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"` - // If set, only return notes with the specified address incore.component.dex.v1alpha1. - AddressIndex *v1alpha13.AddressIndex `protobuf:"bytes,4,opt,name=address_index,json=addressIndex,proto3" json:"address_index,omitempty"` + AssetId *v16.AssetId `protobuf:"bytes,3,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"` + // If set, only return notes with the specified address incore.component.dex.v1. + AddressIndex *v12.AddressIndex `protobuf:"bytes,4,opt,name=address_index,json=addressIndex,proto3" json:"address_index,omitempty"` // If set, stop returning notes once the total exceeds this amount. // // Ignored if `asset_id` is unset or if `include_spent` is set. - AmountToSpend *v1alpha17.Amount `protobuf:"bytes,6,opt,name=amount_to_spend,json=amountToSpend,proto3" json:"amount_to_spend,omitempty"` + AmountToSpend *v18.Amount `protobuf:"bytes,6,opt,name=amount_to_spend,json=amountToSpend,proto3" json:"amount_to_spend,omitempty"` } func (m *NotesRequest) Reset() { *m = NotesRequest{} } func (m *NotesRequest) String() string { return proto.CompactTextString(m) } func (*NotesRequest) ProtoMessage() {} func (*NotesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_0aa947b204e6a7c2, []int{20} + return fileDescriptor_dba93d04e42ddfc3, []int{20} } func (m *NotesRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1607,21 +2081,21 @@ func (m *NotesRequest) GetIncludeSpent() bool { return false } -func (m *NotesRequest) GetAssetId() *v1alpha15.AssetId { +func (m *NotesRequest) GetAssetId() *v16.AssetId { if m != nil { return m.AssetId } return nil } -func (m *NotesRequest) GetAddressIndex() *v1alpha13.AddressIndex { +func (m *NotesRequest) GetAddressIndex() *v12.AddressIndex { if m != nil { return m.AddressIndex } return nil } -func (m *NotesRequest) GetAmountToSpend() *v1alpha17.Amount { +func (m *NotesRequest) GetAmountToSpend() *v18.Amount { if m != nil { return m.AmountToSpend } @@ -1633,14 +2107,14 @@ type NotesForVotingRequest struct { // The starting height of the proposal. VotableAtHeight uint64 `protobuf:"varint,1,opt,name=votable_at_height,json=votableAtHeight,proto3" json:"votable_at_height,omitempty"` // If set, only return notes with the specified asset id. - AddressIndex *v1alpha13.AddressIndex `protobuf:"bytes,3,opt,name=address_index,json=addressIndex,proto3" json:"address_index,omitempty"` + AddressIndex *v12.AddressIndex `protobuf:"bytes,3,opt,name=address_index,json=addressIndex,proto3" json:"address_index,omitempty"` } func (m *NotesForVotingRequest) Reset() { *m = NotesForVotingRequest{} } func (m *NotesForVotingRequest) String() string { return proto.CompactTextString(m) } func (*NotesForVotingRequest) ProtoMessage() {} func (*NotesForVotingRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_0aa947b204e6a7c2, []int{21} + return fileDescriptor_dba93d04e42ddfc3, []int{21} } func (m *NotesForVotingRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1676,7 +2150,7 @@ func (m *NotesForVotingRequest) GetVotableAtHeight() uint64 { return 0 } -func (m *NotesForVotingRequest) GetAddressIndex() *v1alpha13.AddressIndex { +func (m *NotesForVotingRequest) GetAddressIndex() *v12.AddressIndex { if m != nil { return m.AddressIndex } @@ -1684,17 +2158,15 @@ func (m *NotesForVotingRequest) GetAddressIndex() *v1alpha13.AddressIndex { } type WitnessRequest struct { - // The note commitments to obtain auth paths for. - NoteCommitments []*v1alpha16.StateCommitment `protobuf:"bytes,2,rep,name=note_commitments,json=noteCommitments,proto3" json:"note_commitments,omitempty"` // The transaction plan to witness - TransactionPlan *v1alpha1.TransactionPlan `protobuf:"bytes,3,opt,name=transaction_plan,json=transactionPlan,proto3" json:"transaction_plan,omitempty"` + TransactionPlan *v1.TransactionPlan `protobuf:"bytes,3,opt,name=transaction_plan,json=transactionPlan,proto3" json:"transaction_plan,omitempty"` } func (m *WitnessRequest) Reset() { *m = WitnessRequest{} } func (m *WitnessRequest) String() string { return proto.CompactTextString(m) } func (*WitnessRequest) ProtoMessage() {} func (*WitnessRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_0aa947b204e6a7c2, []int{22} + return fileDescriptor_dba93d04e42ddfc3, []int{22} } func (m *WitnessRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1723,14 +2195,7 @@ func (m *WitnessRequest) XXX_DiscardUnknown() { var xxx_messageInfo_WitnessRequest proto.InternalMessageInfo -func (m *WitnessRequest) GetNoteCommitments() []*v1alpha16.StateCommitment { - if m != nil { - return m.NoteCommitments - } - return nil -} - -func (m *WitnessRequest) GetTransactionPlan() *v1alpha1.TransactionPlan { +func (m *WitnessRequest) GetTransactionPlan() *v1.TransactionPlan { if m != nil { return m.TransactionPlan } @@ -1738,14 +2203,14 @@ func (m *WitnessRequest) GetTransactionPlan() *v1alpha1.TransactionPlan { } type WitnessResponse struct { - WitnessData *v1alpha1.WitnessData `protobuf:"bytes,1,opt,name=witness_data,json=witnessData,proto3" json:"witness_data,omitempty"` + WitnessData *v1.WitnessData `protobuf:"bytes,1,opt,name=witness_data,json=witnessData,proto3" json:"witness_data,omitempty"` } func (m *WitnessResponse) Reset() { *m = WitnessResponse{} } func (m *WitnessResponse) String() string { return proto.CompactTextString(m) } func (*WitnessResponse) ProtoMessage() {} func (*WitnessResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_0aa947b204e6a7c2, []int{23} + return fileDescriptor_dba93d04e42ddfc3, []int{23} } func (m *WitnessResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1774,7 +2239,7 @@ func (m *WitnessResponse) XXX_DiscardUnknown() { var xxx_messageInfo_WitnessResponse proto.InternalMessageInfo -func (m *WitnessResponse) GetWitnessData() *v1alpha1.WitnessData { +func (m *WitnessResponse) GetWitnessData() *v1.WitnessData { if m != nil { return m.WitnessData } @@ -1782,15 +2247,15 @@ func (m *WitnessResponse) GetWitnessData() *v1alpha1.WitnessData { } type WitnessAndBuildRequest struct { - TransactionPlan *v1alpha1.TransactionPlan `protobuf:"bytes,1,opt,name=transaction_plan,json=transactionPlan,proto3" json:"transaction_plan,omitempty"` - AuthorizationData *v1alpha1.AuthorizationData `protobuf:"bytes,2,opt,name=authorization_data,json=authorizationData,proto3" json:"authorization_data,omitempty"` + TransactionPlan *v1.TransactionPlan `protobuf:"bytes,1,opt,name=transaction_plan,json=transactionPlan,proto3" json:"transaction_plan,omitempty"` + AuthorizationData *v1.AuthorizationData `protobuf:"bytes,2,opt,name=authorization_data,json=authorizationData,proto3" json:"authorization_data,omitempty"` } func (m *WitnessAndBuildRequest) Reset() { *m = WitnessAndBuildRequest{} } func (m *WitnessAndBuildRequest) String() string { return proto.CompactTextString(m) } func (*WitnessAndBuildRequest) ProtoMessage() {} func (*WitnessAndBuildRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_0aa947b204e6a7c2, []int{24} + return fileDescriptor_dba93d04e42ddfc3, []int{24} } func (m *WitnessAndBuildRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1819,14 +2284,14 @@ func (m *WitnessAndBuildRequest) XXX_DiscardUnknown() { var xxx_messageInfo_WitnessAndBuildRequest proto.InternalMessageInfo -func (m *WitnessAndBuildRequest) GetTransactionPlan() *v1alpha1.TransactionPlan { +func (m *WitnessAndBuildRequest) GetTransactionPlan() *v1.TransactionPlan { if m != nil { return m.TransactionPlan } return nil } -func (m *WitnessAndBuildRequest) GetAuthorizationData() *v1alpha1.AuthorizationData { +func (m *WitnessAndBuildRequest) GetAuthorizationData() *v1.AuthorizationData { if m != nil { return m.AuthorizationData } @@ -1834,14 +2299,17 @@ func (m *WitnessAndBuildRequest) GetAuthorizationData() *v1alpha1.AuthorizationD } type WitnessAndBuildResponse struct { - Transaction *v1alpha1.Transaction `protobuf:"bytes,1,opt,name=transaction,proto3" json:"transaction,omitempty"` + // Types that are valid to be assigned to Status: + // *WitnessAndBuildResponse_BuildProgress_ + // *WitnessAndBuildResponse_Complete_ + Status isWitnessAndBuildResponse_Status `protobuf_oneof:"status"` } func (m *WitnessAndBuildResponse) Reset() { *m = WitnessAndBuildResponse{} } func (m *WitnessAndBuildResponse) String() string { return proto.CompactTextString(m) } func (*WitnessAndBuildResponse) ProtoMessage() {} func (*WitnessAndBuildResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_0aa947b204e6a7c2, []int{25} + return fileDescriptor_dba93d04e42ddfc3, []int{25} } func (m *WitnessAndBuildResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1870,7 +2338,137 @@ func (m *WitnessAndBuildResponse) XXX_DiscardUnknown() { var xxx_messageInfo_WitnessAndBuildResponse proto.InternalMessageInfo -func (m *WitnessAndBuildResponse) GetTransaction() *v1alpha1.Transaction { +type isWitnessAndBuildResponse_Status interface { + isWitnessAndBuildResponse_Status() + MarshalTo([]byte) (int, error) + Size() int +} + +type WitnessAndBuildResponse_BuildProgress_ struct { + BuildProgress *WitnessAndBuildResponse_BuildProgress `protobuf:"bytes,1,opt,name=build_progress,json=buildProgress,proto3,oneof" json:"build_progress,omitempty"` +} +type WitnessAndBuildResponse_Complete_ struct { + Complete *WitnessAndBuildResponse_Complete `protobuf:"bytes,2,opt,name=complete,proto3,oneof" json:"complete,omitempty"` +} + +func (*WitnessAndBuildResponse_BuildProgress_) isWitnessAndBuildResponse_Status() {} +func (*WitnessAndBuildResponse_Complete_) isWitnessAndBuildResponse_Status() {} + +func (m *WitnessAndBuildResponse) GetStatus() isWitnessAndBuildResponse_Status { + if m != nil { + return m.Status + } + return nil +} + +func (m *WitnessAndBuildResponse) GetBuildProgress() *WitnessAndBuildResponse_BuildProgress { + if x, ok := m.GetStatus().(*WitnessAndBuildResponse_BuildProgress_); ok { + return x.BuildProgress + } + return nil +} + +func (m *WitnessAndBuildResponse) GetComplete() *WitnessAndBuildResponse_Complete { + if x, ok := m.GetStatus().(*WitnessAndBuildResponse_Complete_); ok { + return x.Complete + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*WitnessAndBuildResponse) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*WitnessAndBuildResponse_BuildProgress_)(nil), + (*WitnessAndBuildResponse_Complete_)(nil), + } +} + +// Signals that building is in progress. +type WitnessAndBuildResponse_BuildProgress struct { + // An approximate progress of the build, from 0 to 1. + Progress float32 `protobuf:"fixed32,1,opt,name=progress,proto3" json:"progress,omitempty"` +} + +func (m *WitnessAndBuildResponse_BuildProgress) Reset() { *m = WitnessAndBuildResponse_BuildProgress{} } +func (m *WitnessAndBuildResponse_BuildProgress) String() string { return proto.CompactTextString(m) } +func (*WitnessAndBuildResponse_BuildProgress) ProtoMessage() {} +func (*WitnessAndBuildResponse_BuildProgress) Descriptor() ([]byte, []int) { + return fileDescriptor_dba93d04e42ddfc3, []int{25, 0} +} +func (m *WitnessAndBuildResponse_BuildProgress) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *WitnessAndBuildResponse_BuildProgress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_WitnessAndBuildResponse_BuildProgress.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 *WitnessAndBuildResponse_BuildProgress) XXX_Merge(src proto.Message) { + xxx_messageInfo_WitnessAndBuildResponse_BuildProgress.Merge(m, src) +} +func (m *WitnessAndBuildResponse_BuildProgress) XXX_Size() int { + return m.Size() +} +func (m *WitnessAndBuildResponse_BuildProgress) XXX_DiscardUnknown() { + xxx_messageInfo_WitnessAndBuildResponse_BuildProgress.DiscardUnknown(m) +} + +var xxx_messageInfo_WitnessAndBuildResponse_BuildProgress proto.InternalMessageInfo + +func (m *WitnessAndBuildResponse_BuildProgress) GetProgress() float32 { + if m != nil { + return m.Progress + } + return 0 +} + +// Signals that the transaction is complete. +type WitnessAndBuildResponse_Complete struct { + // The finished transaction. + Transaction *v1.Transaction `protobuf:"bytes,1,opt,name=transaction,proto3" json:"transaction,omitempty"` +} + +func (m *WitnessAndBuildResponse_Complete) Reset() { *m = WitnessAndBuildResponse_Complete{} } +func (m *WitnessAndBuildResponse_Complete) String() string { return proto.CompactTextString(m) } +func (*WitnessAndBuildResponse_Complete) ProtoMessage() {} +func (*WitnessAndBuildResponse_Complete) Descriptor() ([]byte, []int) { + return fileDescriptor_dba93d04e42ddfc3, []int{25, 1} +} +func (m *WitnessAndBuildResponse_Complete) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *WitnessAndBuildResponse_Complete) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_WitnessAndBuildResponse_Complete.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 *WitnessAndBuildResponse_Complete) XXX_Merge(src proto.Message) { + xxx_messageInfo_WitnessAndBuildResponse_Complete.Merge(m, src) +} +func (m *WitnessAndBuildResponse_Complete) XXX_Size() int { + return m.Size() +} +func (m *WitnessAndBuildResponse_Complete) XXX_DiscardUnknown() { + xxx_messageInfo_WitnessAndBuildResponse_Complete.DiscardUnknown(m) +} + +var xxx_messageInfo_WitnessAndBuildResponse_Complete proto.InternalMessageInfo + +func (m *WitnessAndBuildResponse_Complete) GetTransaction() *v1.Transaction { if m != nil { return m.Transaction } @@ -1883,7 +2481,7 @@ type AssetsRequest struct { // the request indicate a filter. Filtered bool `protobuf:"varint,1,opt,name=filtered,proto3" json:"filtered,omitempty"` // Include these specific denominations in the response. - IncludeSpecificDenominations []*v1alpha15.Denom `protobuf:"bytes,2,rep,name=include_specific_denominations,json=includeSpecificDenominations,proto3" json:"include_specific_denominations,omitempty"` + IncludeSpecificDenominations []*v16.Denom `protobuf:"bytes,2,rep,name=include_specific_denominations,json=includeSpecificDenominations,proto3" json:"include_specific_denominations,omitempty"` // Include all delegation tokens, to any validator, in the response. IncludeDelegationTokens bool `protobuf:"varint,3,opt,name=include_delegation_tokens,json=includeDelegationTokens,proto3" json:"include_delegation_tokens,omitempty"` // Include all unbonding tokens, from any validator, in the response. @@ -1900,7 +2498,7 @@ func (m *AssetsRequest) Reset() { *m = AssetsRequest{} } func (m *AssetsRequest) String() string { return proto.CompactTextString(m) } func (*AssetsRequest) ProtoMessage() {} func (*AssetsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_0aa947b204e6a7c2, []int{26} + return fileDescriptor_dba93d04e42ddfc3, []int{26} } func (m *AssetsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1936,7 +2534,7 @@ func (m *AssetsRequest) GetFiltered() bool { return false } -func (m *AssetsRequest) GetIncludeSpecificDenominations() []*v1alpha15.Denom { +func (m *AssetsRequest) GetIncludeSpecificDenominations() []*v16.Denom { if m != nil { return m.IncludeSpecificDenominations } @@ -1980,14 +2578,14 @@ func (m *AssetsRequest) GetIncludeVotingReceiptTokens() bool { // Requests all assets known to the view service. type AssetsResponse struct { - DenomMetadata *v1alpha15.DenomMetadata `protobuf:"bytes,2,opt,name=denom_metadata,json=denomMetadata,proto3" json:"denom_metadata,omitempty"` + DenomMetadata *v16.Metadata `protobuf:"bytes,2,opt,name=denom_metadata,json=denomMetadata,proto3" json:"denom_metadata,omitempty"` } func (m *AssetsResponse) Reset() { *m = AssetsResponse{} } func (m *AssetsResponse) String() string { return proto.CompactTextString(m) } func (*AssetsResponse) ProtoMessage() {} func (*AssetsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_0aa947b204e6a7c2, []int{27} + return fileDescriptor_dba93d04e42ddfc3, []int{27} } func (m *AssetsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2016,7 +2614,7 @@ func (m *AssetsResponse) XXX_DiscardUnknown() { var xxx_messageInfo_AssetsResponse proto.InternalMessageInfo -func (m *AssetsResponse) GetDenomMetadata() *v1alpha15.DenomMetadata { +func (m *AssetsResponse) GetDenomMetadata() *v16.Metadata { if m != nil { return m.DenomMetadata } @@ -2031,7 +2629,7 @@ func (m *AppParametersRequest) Reset() { *m = AppParametersRequest{} } func (m *AppParametersRequest) String() string { return proto.CompactTextString(m) } func (*AppParametersRequest) ProtoMessage() {} func (*AppParametersRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_0aa947b204e6a7c2, []int{28} + return fileDescriptor_dba93d04e42ddfc3, []int{28} } func (m *AppParametersRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2061,14 +2659,14 @@ func (m *AppParametersRequest) XXX_DiscardUnknown() { var xxx_messageInfo_AppParametersRequest proto.InternalMessageInfo type AppParametersResponse struct { - Parameters *v1alpha110.AppParameters `protobuf:"bytes,1,opt,name=parameters,proto3" json:"parameters,omitempty"` + Parameters *v111.AppParameters `protobuf:"bytes,1,opt,name=parameters,proto3" json:"parameters,omitempty"` } func (m *AppParametersResponse) Reset() { *m = AppParametersResponse{} } func (m *AppParametersResponse) String() string { return proto.CompactTextString(m) } func (*AppParametersResponse) ProtoMessage() {} func (*AppParametersResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_0aa947b204e6a7c2, []int{29} + return fileDescriptor_dba93d04e42ddfc3, []int{29} } func (m *AppParametersResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2097,7 +2695,7 @@ func (m *AppParametersResponse) XXX_DiscardUnknown() { var xxx_messageInfo_AppParametersResponse proto.InternalMessageInfo -func (m *AppParametersResponse) GetParameters() *v1alpha110.AppParameters { +func (m *AppParametersResponse) GetParameters() *v111.AppParameters { if m != nil { return m.Parameters } @@ -2112,7 +2710,7 @@ func (m *GasPricesRequest) Reset() { *m = GasPricesRequest{} } func (m *GasPricesRequest) String() string { return proto.CompactTextString(m) } func (*GasPricesRequest) ProtoMessage() {} func (*GasPricesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_0aa947b204e6a7c2, []int{30} + return fileDescriptor_dba93d04e42ddfc3, []int{30} } func (m *GasPricesRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2142,14 +2740,14 @@ func (m *GasPricesRequest) XXX_DiscardUnknown() { var xxx_messageInfo_GasPricesRequest proto.InternalMessageInfo type GasPricesResponse struct { - GasPrices *v1alpha12.GasPrices `protobuf:"bytes,1,opt,name=gas_prices,json=gasPrices,proto3" json:"gas_prices,omitempty"` + GasPrices *v14.GasPrices `protobuf:"bytes,1,opt,name=gas_prices,json=gasPrices,proto3" json:"gas_prices,omitempty"` } func (m *GasPricesResponse) Reset() { *m = GasPricesResponse{} } func (m *GasPricesResponse) String() string { return proto.CompactTextString(m) } func (*GasPricesResponse) ProtoMessage() {} func (*GasPricesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_0aa947b204e6a7c2, []int{31} + return fileDescriptor_dba93d04e42ddfc3, []int{31} } func (m *GasPricesResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2178,7 +2776,7 @@ func (m *GasPricesResponse) XXX_DiscardUnknown() { var xxx_messageInfo_GasPricesResponse proto.InternalMessageInfo -func (m *GasPricesResponse) GetGasPrices() *v1alpha12.GasPrices { +func (m *GasPricesResponse) GetGasPrices() *v14.GasPrices { if m != nil { return m.GasPrices } @@ -2193,7 +2791,7 @@ func (m *FMDParametersRequest) Reset() { *m = FMDParametersRequest{} } func (m *FMDParametersRequest) String() string { return proto.CompactTextString(m) } func (*FMDParametersRequest) ProtoMessage() {} func (*FMDParametersRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_0aa947b204e6a7c2, []int{32} + return fileDescriptor_dba93d04e42ddfc3, []int{32} } func (m *FMDParametersRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2223,14 +2821,14 @@ func (m *FMDParametersRequest) XXX_DiscardUnknown() { var xxx_messageInfo_FMDParametersRequest proto.InternalMessageInfo type FMDParametersResponse struct { - Parameters *v1alpha111.FmdParameters `protobuf:"bytes,1,opt,name=parameters,proto3" json:"parameters,omitempty"` + Parameters *v112.FmdParameters `protobuf:"bytes,1,opt,name=parameters,proto3" json:"parameters,omitempty"` } func (m *FMDParametersResponse) Reset() { *m = FMDParametersResponse{} } func (m *FMDParametersResponse) String() string { return proto.CompactTextString(m) } func (*FMDParametersResponse) ProtoMessage() {} func (*FMDParametersResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_0aa947b204e6a7c2, []int{33} + return fileDescriptor_dba93d04e42ddfc3, []int{33} } func (m *FMDParametersResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2259,7 +2857,7 @@ func (m *FMDParametersResponse) XXX_DiscardUnknown() { var xxx_messageInfo_FMDParametersResponse proto.InternalMessageInfo -func (m *FMDParametersResponse) GetParameters() *v1alpha111.FmdParameters { +func (m *FMDParametersResponse) GetParameters() *v112.FmdParameters { if m != nil { return m.Parameters } @@ -2267,7 +2865,7 @@ func (m *FMDParametersResponse) GetParameters() *v1alpha111.FmdParameters { } type NoteByCommitmentRequest struct { - NoteCommitment *v1alpha16.StateCommitment `protobuf:"bytes,2,opt,name=note_commitment,json=noteCommitment,proto3" json:"note_commitment,omitempty"` + NoteCommitment *v17.StateCommitment `protobuf:"bytes,2,opt,name=note_commitment,json=noteCommitment,proto3" json:"note_commitment,omitempty"` // If set to true, waits to return until the requested note is detected. AwaitDetection bool `protobuf:"varint,3,opt,name=await_detection,json=awaitDetection,proto3" json:"await_detection,omitempty"` } @@ -2276,7 +2874,7 @@ func (m *NoteByCommitmentRequest) Reset() { *m = NoteByCommitmentRequest func (m *NoteByCommitmentRequest) String() string { return proto.CompactTextString(m) } func (*NoteByCommitmentRequest) ProtoMessage() {} func (*NoteByCommitmentRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_0aa947b204e6a7c2, []int{34} + return fileDescriptor_dba93d04e42ddfc3, []int{34} } func (m *NoteByCommitmentRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2305,7 +2903,7 @@ func (m *NoteByCommitmentRequest) XXX_DiscardUnknown() { var xxx_messageInfo_NoteByCommitmentRequest proto.InternalMessageInfo -func (m *NoteByCommitmentRequest) GetNoteCommitment() *v1alpha16.StateCommitment { +func (m *NoteByCommitmentRequest) GetNoteCommitment() *v17.StateCommitment { if m != nil { return m.NoteCommitment } @@ -2327,7 +2925,7 @@ func (m *NoteByCommitmentResponse) Reset() { *m = NoteByCommitmentRespon func (m *NoteByCommitmentResponse) String() string { return proto.CompactTextString(m) } func (*NoteByCommitmentResponse) ProtoMessage() {} func (*NoteByCommitmentResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_0aa947b204e6a7c2, []int{35} + return fileDescriptor_dba93d04e42ddfc3, []int{35} } func (m *NoteByCommitmentResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2364,7 +2962,7 @@ func (m *NoteByCommitmentResponse) GetSpendableNote() *SpendableNoteRecord { } type SwapByCommitmentRequest struct { - SwapCommitment *v1alpha16.StateCommitment `protobuf:"bytes,2,opt,name=swap_commitment,json=swapCommitment,proto3" json:"swap_commitment,omitempty"` + SwapCommitment *v17.StateCommitment `protobuf:"bytes,2,opt,name=swap_commitment,json=swapCommitment,proto3" json:"swap_commitment,omitempty"` // If set to true, waits to return until the requested swap is detected. AwaitDetection bool `protobuf:"varint,3,opt,name=await_detection,json=awaitDetection,proto3" json:"await_detection,omitempty"` } @@ -2373,7 +2971,7 @@ func (m *SwapByCommitmentRequest) Reset() { *m = SwapByCommitmentRequest func (m *SwapByCommitmentRequest) String() string { return proto.CompactTextString(m) } func (*SwapByCommitmentRequest) ProtoMessage() {} func (*SwapByCommitmentRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_0aa947b204e6a7c2, []int{36} + return fileDescriptor_dba93d04e42ddfc3, []int{36} } func (m *SwapByCommitmentRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2402,7 +3000,7 @@ func (m *SwapByCommitmentRequest) XXX_DiscardUnknown() { var xxx_messageInfo_SwapByCommitmentRequest proto.InternalMessageInfo -func (m *SwapByCommitmentRequest) GetSwapCommitment() *v1alpha16.StateCommitment { +func (m *SwapByCommitmentRequest) GetSwapCommitment() *v17.StateCommitment { if m != nil { return m.SwapCommitment } @@ -2424,7 +3022,7 @@ func (m *SwapByCommitmentResponse) Reset() { *m = SwapByCommitmentRespon func (m *SwapByCommitmentResponse) String() string { return proto.CompactTextString(m) } func (*SwapByCommitmentResponse) ProtoMessage() {} func (*SwapByCommitmentResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_0aa947b204e6a7c2, []int{37} + return fileDescriptor_dba93d04e42ddfc3, []int{37} } func (m *SwapByCommitmentResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2467,7 +3065,7 @@ func (m *UnclaimedSwapsRequest) Reset() { *m = UnclaimedSwapsRequest{} } func (m *UnclaimedSwapsRequest) String() string { return proto.CompactTextString(m) } func (*UnclaimedSwapsRequest) ProtoMessage() {} func (*UnclaimedSwapsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_0aa947b204e6a7c2, []int{38} + return fileDescriptor_dba93d04e42ddfc3, []int{38} } func (m *UnclaimedSwapsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2504,7 +3102,7 @@ func (m *UnclaimedSwapsResponse) Reset() { *m = UnclaimedSwapsResponse{} func (m *UnclaimedSwapsResponse) String() string { return proto.CompactTextString(m) } func (*UnclaimedSwapsResponse) ProtoMessage() {} func (*UnclaimedSwapsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_0aa947b204e6a7c2, []int{39} + return fileDescriptor_dba93d04e42ddfc3, []int{39} } func (m *UnclaimedSwapsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2541,15 +3139,15 @@ func (m *UnclaimedSwapsResponse) GetSwap() *SwapRecord { } type NullifierStatusRequest struct { - Nullifier *v1alpha112.Nullifier `protobuf:"bytes,2,opt,name=nullifier,proto3" json:"nullifier,omitempty"` - AwaitDetection bool `protobuf:"varint,3,opt,name=await_detection,json=awaitDetection,proto3" json:"await_detection,omitempty"` + Nullifier *v15.Nullifier `protobuf:"bytes,2,opt,name=nullifier,proto3" json:"nullifier,omitempty"` + AwaitDetection bool `protobuf:"varint,3,opt,name=await_detection,json=awaitDetection,proto3" json:"await_detection,omitempty"` } func (m *NullifierStatusRequest) Reset() { *m = NullifierStatusRequest{} } func (m *NullifierStatusRequest) String() string { return proto.CompactTextString(m) } func (*NullifierStatusRequest) ProtoMessage() {} func (*NullifierStatusRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_0aa947b204e6a7c2, []int{40} + return fileDescriptor_dba93d04e42ddfc3, []int{40} } func (m *NullifierStatusRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2578,7 +3176,7 @@ func (m *NullifierStatusRequest) XXX_DiscardUnknown() { var xxx_messageInfo_NullifierStatusRequest proto.InternalMessageInfo -func (m *NullifierStatusRequest) GetNullifier() *v1alpha112.Nullifier { +func (m *NullifierStatusRequest) GetNullifier() *v15.Nullifier { if m != nil { return m.Nullifier } @@ -2600,7 +3198,7 @@ func (m *NullifierStatusResponse) Reset() { *m = NullifierStatusResponse func (m *NullifierStatusResponse) String() string { return proto.CompactTextString(m) } func (*NullifierStatusResponse) ProtoMessage() {} func (*NullifierStatusResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_0aa947b204e6a7c2, []int{41} + return fileDescriptor_dba93d04e42ddfc3, []int{41} } func (m *NullifierStatusResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2638,14 +3236,14 @@ func (m *NullifierStatusResponse) GetSpent() bool { type TransactionInfoByHashRequest struct { // The transaction hash to query for. - Id *v1alpha11.TransactionId `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` + Id *v11.TransactionId `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` } func (m *TransactionInfoByHashRequest) Reset() { *m = TransactionInfoByHashRequest{} } func (m *TransactionInfoByHashRequest) String() string { return proto.CompactTextString(m) } func (*TransactionInfoByHashRequest) ProtoMessage() {} func (*TransactionInfoByHashRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_0aa947b204e6a7c2, []int{42} + return fileDescriptor_dba93d04e42ddfc3, []int{42} } func (m *TransactionInfoByHashRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2674,7 +3272,7 @@ func (m *TransactionInfoByHashRequest) XXX_DiscardUnknown() { var xxx_messageInfo_TransactionInfoByHashRequest proto.InternalMessageInfo -func (m *TransactionInfoByHashRequest) GetId() *v1alpha11.TransactionId { +func (m *TransactionInfoByHashRequest) GetId() *v11.TransactionId { if m != nil { return m.Id } @@ -2692,7 +3290,7 @@ func (m *TransactionInfoRequest) Reset() { *m = TransactionInfoRequest{} func (m *TransactionInfoRequest) String() string { return proto.CompactTextString(m) } func (*TransactionInfoRequest) ProtoMessage() {} func (*TransactionInfoRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_0aa947b204e6a7c2, []int{43} + return fileDescriptor_dba93d04e42ddfc3, []int{43} } func (m *TransactionInfoRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2739,20 +3337,20 @@ type TransactionInfo struct { // The height the transaction was included in a block, if known. Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` // The hash of the transaction. - Id *v1alpha11.TransactionId `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` + Id *v11.TransactionId `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` // The transaction data itself. - Transaction *v1alpha1.Transaction `protobuf:"bytes,3,opt,name=transaction,proto3" json:"transaction,omitempty"` + Transaction *v1.Transaction `protobuf:"bytes,3,opt,name=transaction,proto3" json:"transaction,omitempty"` // The transaction perspective, as seen by this view server. - Perspective *v1alpha1.TransactionPerspective `protobuf:"bytes,4,opt,name=perspective,proto3" json:"perspective,omitempty"` + Perspective *v1.TransactionPerspective `protobuf:"bytes,4,opt,name=perspective,proto3" json:"perspective,omitempty"` // A precomputed transaction view of `transaction` from `perspective`, included for convenience of clients that don't have support for viewing transactions on their own. - View *v1alpha1.TransactionView `protobuf:"bytes,5,opt,name=view,proto3" json:"view,omitempty"` + View *v1.TransactionView `protobuf:"bytes,5,opt,name=view,proto3" json:"view,omitempty"` } func (m *TransactionInfo) Reset() { *m = TransactionInfo{} } func (m *TransactionInfo) String() string { return proto.CompactTextString(m) } func (*TransactionInfo) ProtoMessage() {} func (*TransactionInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_0aa947b204e6a7c2, []int{44} + return fileDescriptor_dba93d04e42ddfc3, []int{44} } func (m *TransactionInfo) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2788,28 +3386,28 @@ func (m *TransactionInfo) GetHeight() uint64 { return 0 } -func (m *TransactionInfo) GetId() *v1alpha11.TransactionId { +func (m *TransactionInfo) GetId() *v11.TransactionId { if m != nil { return m.Id } return nil } -func (m *TransactionInfo) GetTransaction() *v1alpha1.Transaction { +func (m *TransactionInfo) GetTransaction() *v1.Transaction { if m != nil { return m.Transaction } return nil } -func (m *TransactionInfo) GetPerspective() *v1alpha1.TransactionPerspective { +func (m *TransactionInfo) GetPerspective() *v1.TransactionPerspective { if m != nil { return m.Perspective } return nil } -func (m *TransactionInfo) GetView() *v1alpha1.TransactionView { +func (m *TransactionInfo) GetView() *v1.TransactionView { if m != nil { return m.View } @@ -2824,7 +3422,7 @@ func (m *TransactionInfoResponse) Reset() { *m = TransactionInfoResponse func (m *TransactionInfoResponse) String() string { return proto.CompactTextString(m) } func (*TransactionInfoResponse) ProtoMessage() {} func (*TransactionInfoResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_0aa947b204e6a7c2, []int{45} + return fileDescriptor_dba93d04e42ddfc3, []int{45} } func (m *TransactionInfoResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2868,7 +3466,7 @@ func (m *TransactionInfoByHashResponse) Reset() { *m = TransactionInfoBy func (m *TransactionInfoByHashResponse) String() string { return proto.CompactTextString(m) } func (*TransactionInfoByHashResponse) ProtoMessage() {} func (*TransactionInfoByHashResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_0aa947b204e6a7c2, []int{46} + return fileDescriptor_dba93d04e42ddfc3, []int{46} } func (m *TransactionInfoByHashResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2912,7 +3510,7 @@ func (m *NotesResponse) Reset() { *m = NotesResponse{} } func (m *NotesResponse) String() string { return proto.CompactTextString(m) } func (*NotesResponse) ProtoMessage() {} func (*NotesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_0aa947b204e6a7c2, []int{47} + return fileDescriptor_dba93d04e42ddfc3, []int{47} } func (m *NotesResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2949,15 +3547,15 @@ func (m *NotesResponse) GetNoteRecord() *SpendableNoteRecord { } type NotesForVotingResponse struct { - NoteRecord *SpendableNoteRecord `protobuf:"bytes,1,opt,name=note_record,json=noteRecord,proto3" json:"note_record,omitempty"` - IdentityKey *v1alpha13.IdentityKey `protobuf:"bytes,2,opt,name=identity_key,json=identityKey,proto3" json:"identity_key,omitempty"` + NoteRecord *SpendableNoteRecord `protobuf:"bytes,1,opt,name=note_record,json=noteRecord,proto3" json:"note_record,omitempty"` + IdentityKey *v12.IdentityKey `protobuf:"bytes,2,opt,name=identity_key,json=identityKey,proto3" json:"identity_key,omitempty"` } func (m *NotesForVotingResponse) Reset() { *m = NotesForVotingResponse{} } func (m *NotesForVotingResponse) String() string { return proto.CompactTextString(m) } func (*NotesForVotingResponse) ProtoMessage() {} func (*NotesForVotingResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_0aa947b204e6a7c2, []int{48} + return fileDescriptor_dba93d04e42ddfc3, []int{48} } func (m *NotesForVotingResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2993,7 +3591,7 @@ func (m *NotesForVotingResponse) GetNoteRecord() *SpendableNoteRecord { return nil } -func (m *NotesForVotingResponse) GetIdentityKey() *v1alpha13.IdentityKey { +func (m *NotesForVotingResponse) GetIdentityKey() *v12.IdentityKey { if m != nil { return m.IdentityKey } @@ -3003,13 +3601,13 @@ func (m *NotesForVotingResponse) GetIdentityKey() *v1alpha13.IdentityKey { // A note plaintext with associated metadata about its status. type SpendableNoteRecord struct { // The note commitment, identifying the note. - NoteCommitment *v1alpha16.StateCommitment `protobuf:"bytes,1,opt,name=note_commitment,json=noteCommitment,proto3" json:"note_commitment,omitempty"` + NoteCommitment *v17.StateCommitment `protobuf:"bytes,1,opt,name=note_commitment,json=noteCommitment,proto3" json:"note_commitment,omitempty"` // The note plaintext itself. - Note *v1alpha113.Note `protobuf:"bytes,2,opt,name=note,proto3" json:"note,omitempty"` - // A precomputed decryption of the note's address incore.component.dex.v1alpha1. - AddressIndex *v1alpha13.AddressIndex `protobuf:"bytes,3,opt,name=address_index,json=addressIndex,proto3" json:"address_index,omitempty"` + Note *v112.Note `protobuf:"bytes,2,opt,name=note,proto3" json:"note,omitempty"` + // A precomputed decryption of the note's address incore.component.dex.v1. + AddressIndex *v12.AddressIndex `protobuf:"bytes,3,opt,name=address_index,json=addressIndex,proto3" json:"address_index,omitempty"` // The note's nullifier. - Nullifier *v1alpha112.Nullifier `protobuf:"bytes,4,opt,name=nullifier,proto3" json:"nullifier,omitempty"` + Nullifier *v15.Nullifier `protobuf:"bytes,4,opt,name=nullifier,proto3" json:"nullifier,omitempty"` // The height at which the note was created. HeightCreated uint64 `protobuf:"varint,5,opt,name=height_created,json=heightCreated,proto3" json:"height_created,omitempty"` // Records whether the note was spent (and if so, at what height). @@ -3017,14 +3615,16 @@ type SpendableNoteRecord struct { // The note position. Position uint64 `protobuf:"varint,7,opt,name=position,proto3" json:"position,omitempty"` // The source of the note - Source *v1alpha112.CommitmentSource `protobuf:"bytes,8,opt,name=source,proto3" json:"source,omitempty"` + Source *v15.CommitmentSource `protobuf:"bytes,8,opt,name=source,proto3" json:"source,omitempty"` + // The sender's return address, if known. + ReturnAddress *v12.AddressView `protobuf:"bytes,9,opt,name=return_address,json=returnAddress,proto3" json:"return_address,omitempty"` } func (m *SpendableNoteRecord) Reset() { *m = SpendableNoteRecord{} } func (m *SpendableNoteRecord) String() string { return proto.CompactTextString(m) } func (*SpendableNoteRecord) ProtoMessage() {} func (*SpendableNoteRecord) Descriptor() ([]byte, []int) { - return fileDescriptor_0aa947b204e6a7c2, []int{49} + return fileDescriptor_dba93d04e42ddfc3, []int{49} } func (m *SpendableNoteRecord) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3053,28 +3653,28 @@ func (m *SpendableNoteRecord) XXX_DiscardUnknown() { var xxx_messageInfo_SpendableNoteRecord proto.InternalMessageInfo -func (m *SpendableNoteRecord) GetNoteCommitment() *v1alpha16.StateCommitment { +func (m *SpendableNoteRecord) GetNoteCommitment() *v17.StateCommitment { if m != nil { return m.NoteCommitment } return nil } -func (m *SpendableNoteRecord) GetNote() *v1alpha113.Note { +func (m *SpendableNoteRecord) GetNote() *v112.Note { if m != nil { return m.Note } return nil } -func (m *SpendableNoteRecord) GetAddressIndex() *v1alpha13.AddressIndex { +func (m *SpendableNoteRecord) GetAddressIndex() *v12.AddressIndex { if m != nil { return m.AddressIndex } return nil } -func (m *SpendableNoteRecord) GetNullifier() *v1alpha112.Nullifier { +func (m *SpendableNoteRecord) GetNullifier() *v15.Nullifier { if m != nil { return m.Nullifier } @@ -3102,28 +3702,35 @@ func (m *SpendableNoteRecord) GetPosition() uint64 { return 0 } -func (m *SpendableNoteRecord) GetSource() *v1alpha112.CommitmentSource { +func (m *SpendableNoteRecord) GetSource() *v15.CommitmentSource { if m != nil { return m.Source } return nil } +func (m *SpendableNoteRecord) GetReturnAddress() *v12.AddressView { + if m != nil { + return m.ReturnAddress + } + return nil +} + type SwapRecord struct { - SwapCommitment *v1alpha16.StateCommitment `protobuf:"bytes,1,opt,name=swap_commitment,json=swapCommitment,proto3" json:"swap_commitment,omitempty"` - Swap *v1alpha19.SwapPlaintext `protobuf:"bytes,2,opt,name=swap,proto3" json:"swap,omitempty"` - Position uint64 `protobuf:"varint,3,opt,name=position,proto3" json:"position,omitempty"` - Nullifier *v1alpha112.Nullifier `protobuf:"bytes,4,opt,name=nullifier,proto3" json:"nullifier,omitempty"` - OutputData *v1alpha19.BatchSwapOutputData `protobuf:"bytes,5,opt,name=output_data,json=outputData,proto3" json:"output_data,omitempty"` - HeightClaimed uint64 `protobuf:"varint,6,opt,name=height_claimed,json=heightClaimed,proto3" json:"height_claimed,omitempty"` - Source *v1alpha112.CommitmentSource `protobuf:"bytes,7,opt,name=source,proto3" json:"source,omitempty"` + SwapCommitment *v17.StateCommitment `protobuf:"bytes,1,opt,name=swap_commitment,json=swapCommitment,proto3" json:"swap_commitment,omitempty"` + Swap *v110.SwapPlaintext `protobuf:"bytes,2,opt,name=swap,proto3" json:"swap,omitempty"` + Position uint64 `protobuf:"varint,3,opt,name=position,proto3" json:"position,omitempty"` + Nullifier *v15.Nullifier `protobuf:"bytes,4,opt,name=nullifier,proto3" json:"nullifier,omitempty"` + OutputData *v110.BatchSwapOutputData `protobuf:"bytes,5,opt,name=output_data,json=outputData,proto3" json:"output_data,omitempty"` + HeightClaimed uint64 `protobuf:"varint,6,opt,name=height_claimed,json=heightClaimed,proto3" json:"height_claimed,omitempty"` + Source *v15.CommitmentSource `protobuf:"bytes,7,opt,name=source,proto3" json:"source,omitempty"` } func (m *SwapRecord) Reset() { *m = SwapRecord{} } func (m *SwapRecord) String() string { return proto.CompactTextString(m) } func (*SwapRecord) ProtoMessage() {} func (*SwapRecord) Descriptor() ([]byte, []int) { - return fileDescriptor_0aa947b204e6a7c2, []int{50} + return fileDescriptor_dba93d04e42ddfc3, []int{50} } func (m *SwapRecord) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3152,14 +3759,14 @@ func (m *SwapRecord) XXX_DiscardUnknown() { var xxx_messageInfo_SwapRecord proto.InternalMessageInfo -func (m *SwapRecord) GetSwapCommitment() *v1alpha16.StateCommitment { +func (m *SwapRecord) GetSwapCommitment() *v17.StateCommitment { if m != nil { return m.SwapCommitment } return nil } -func (m *SwapRecord) GetSwap() *v1alpha19.SwapPlaintext { +func (m *SwapRecord) GetSwap() *v110.SwapPlaintext { if m != nil { return m.Swap } @@ -3173,14 +3780,14 @@ func (m *SwapRecord) GetPosition() uint64 { return 0 } -func (m *SwapRecord) GetNullifier() *v1alpha112.Nullifier { +func (m *SwapRecord) GetNullifier() *v15.Nullifier { if m != nil { return m.Nullifier } return nil } -func (m *SwapRecord) GetOutputData() *v1alpha19.BatchSwapOutputData { +func (m *SwapRecord) GetOutputData() *v110.BatchSwapOutputData { if m != nil { return m.OutputData } @@ -3194,7 +3801,7 @@ func (m *SwapRecord) GetHeightClaimed() uint64 { return 0 } -func (m *SwapRecord) GetSource() *v1alpha112.CommitmentSource { +func (m *SwapRecord) GetSource() *v15.CommitmentSource { if m != nil { return m.Source } @@ -3203,16 +3810,16 @@ func (m *SwapRecord) GetSource() *v1alpha112.CommitmentSource { type OwnedPositionIdsRequest struct { // If present, return only positions with this position state. - PositionState *v1alpha19.PositionState `protobuf:"bytes,1,opt,name=position_state,json=positionState,proto3" json:"position_state,omitempty"` + PositionState *v110.PositionState `protobuf:"bytes,1,opt,name=position_state,json=positionState,proto3" json:"position_state,omitempty"` // If present, return only positions for this trading pair. - TradingPair *v1alpha19.TradingPair `protobuf:"bytes,2,opt,name=trading_pair,json=tradingPair,proto3" json:"trading_pair,omitempty"` + TradingPair *v110.TradingPair `protobuf:"bytes,2,opt,name=trading_pair,json=tradingPair,proto3" json:"trading_pair,omitempty"` } func (m *OwnedPositionIdsRequest) Reset() { *m = OwnedPositionIdsRequest{} } func (m *OwnedPositionIdsRequest) String() string { return proto.CompactTextString(m) } func (*OwnedPositionIdsRequest) ProtoMessage() {} func (*OwnedPositionIdsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_0aa947b204e6a7c2, []int{51} + return fileDescriptor_dba93d04e42ddfc3, []int{51} } func (m *OwnedPositionIdsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3241,14 +3848,14 @@ func (m *OwnedPositionIdsRequest) XXX_DiscardUnknown() { var xxx_messageInfo_OwnedPositionIdsRequest proto.InternalMessageInfo -func (m *OwnedPositionIdsRequest) GetPositionState() *v1alpha19.PositionState { +func (m *OwnedPositionIdsRequest) GetPositionState() *v110.PositionState { if m != nil { return m.PositionState } return nil } -func (m *OwnedPositionIdsRequest) GetTradingPair() *v1alpha19.TradingPair { +func (m *OwnedPositionIdsRequest) GetTradingPair() *v110.TradingPair { if m != nil { return m.TradingPair } @@ -3256,14 +3863,14 @@ func (m *OwnedPositionIdsRequest) GetTradingPair() *v1alpha19.TradingPair { } type OwnedPositionIdsResponse struct { - PositionId *v1alpha19.PositionId `protobuf:"bytes,1,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty"` + PositionId *v110.PositionId `protobuf:"bytes,1,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty"` } func (m *OwnedPositionIdsResponse) Reset() { *m = OwnedPositionIdsResponse{} } func (m *OwnedPositionIdsResponse) String() string { return proto.CompactTextString(m) } func (*OwnedPositionIdsResponse) ProtoMessage() {} func (*OwnedPositionIdsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_0aa947b204e6a7c2, []int{52} + return fileDescriptor_dba93d04e42ddfc3, []int{52} } func (m *OwnedPositionIdsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3292,415 +3899,658 @@ func (m *OwnedPositionIdsResponse) XXX_DiscardUnknown() { var xxx_messageInfo_OwnedPositionIdsResponse proto.InternalMessageInfo -func (m *OwnedPositionIdsResponse) GetPositionId() *v1alpha19.PositionId { +func (m *OwnedPositionIdsResponse) GetPositionId() *v110.PositionId { if m != nil { return m.PositionId } return nil } -func init() { - proto.RegisterType((*AuthorizeAndBuildRequest)(nil), "penumbra.view.v1alpha1.AuthorizeAndBuildRequest") - proto.RegisterType((*AuthorizeAndBuildResponse)(nil), "penumbra.view.v1alpha1.AuthorizeAndBuildResponse") - proto.RegisterType((*BroadcastTransactionRequest)(nil), "penumbra.view.v1alpha1.BroadcastTransactionRequest") - proto.RegisterType((*BroadcastTransactionResponse)(nil), "penumbra.view.v1alpha1.BroadcastTransactionResponse") - proto.RegisterType((*TransactionPlannerRequest)(nil), "penumbra.view.v1alpha1.TransactionPlannerRequest") - proto.RegisterType((*TransactionPlannerRequest_Output)(nil), "penumbra.view.v1alpha1.TransactionPlannerRequest.Output") - proto.RegisterType((*TransactionPlannerRequest_Swap)(nil), "penumbra.view.v1alpha1.TransactionPlannerRequest.Swap") - proto.RegisterType((*TransactionPlannerRequest_SwapClaim)(nil), "penumbra.view.v1alpha1.TransactionPlannerRequest.SwapClaim") - proto.RegisterType((*TransactionPlannerRequest_Delegate)(nil), "penumbra.view.v1alpha1.TransactionPlannerRequest.Delegate") - proto.RegisterType((*TransactionPlannerRequest_Undelegate)(nil), "penumbra.view.v1alpha1.TransactionPlannerRequest.Undelegate") - proto.RegisterType((*TransactionPlannerRequest_PositionOpen)(nil), "penumbra.view.v1alpha1.TransactionPlannerRequest.PositionOpen") - proto.RegisterType((*TransactionPlannerRequest_PositionClose)(nil), "penumbra.view.v1alpha1.TransactionPlannerRequest.PositionClose") - proto.RegisterType((*TransactionPlannerRequest_PositionWithdraw)(nil), "penumbra.view.v1alpha1.TransactionPlannerRequest.PositionWithdraw") - proto.RegisterType((*TransactionPlannerResponse)(nil), "penumbra.view.v1alpha1.TransactionPlannerResponse") - proto.RegisterType((*AddressByIndexRequest)(nil), "penumbra.view.v1alpha1.AddressByIndexRequest") - proto.RegisterType((*AddressByIndexResponse)(nil), "penumbra.view.v1alpha1.AddressByIndexResponse") - proto.RegisterType((*WalletIdRequest)(nil), "penumbra.view.v1alpha1.WalletIdRequest") - proto.RegisterType((*WalletIdResponse)(nil), "penumbra.view.v1alpha1.WalletIdResponse") - proto.RegisterType((*IndexByAddressRequest)(nil), "penumbra.view.v1alpha1.IndexByAddressRequest") - proto.RegisterType((*IndexByAddressResponse)(nil), "penumbra.view.v1alpha1.IndexByAddressResponse") - proto.RegisterType((*EphemeralAddressRequest)(nil), "penumbra.view.v1alpha1.EphemeralAddressRequest") - proto.RegisterType((*EphemeralAddressResponse)(nil), "penumbra.view.v1alpha1.EphemeralAddressResponse") - proto.RegisterType((*BalancesRequest)(nil), "penumbra.view.v1alpha1.BalancesRequest") - proto.RegisterType((*BalancesResponse)(nil), "penumbra.view.v1alpha1.BalancesResponse") - proto.RegisterType((*StatusRequest)(nil), "penumbra.view.v1alpha1.StatusRequest") - proto.RegisterType((*StatusResponse)(nil), "penumbra.view.v1alpha1.StatusResponse") - proto.RegisterType((*StatusStreamRequest)(nil), "penumbra.view.v1alpha1.StatusStreamRequest") - proto.RegisterType((*StatusStreamResponse)(nil), "penumbra.view.v1alpha1.StatusStreamResponse") - proto.RegisterType((*NotesRequest)(nil), "penumbra.view.v1alpha1.NotesRequest") - proto.RegisterType((*NotesForVotingRequest)(nil), "penumbra.view.v1alpha1.NotesForVotingRequest") - proto.RegisterType((*WitnessRequest)(nil), "penumbra.view.v1alpha1.WitnessRequest") - proto.RegisterType((*WitnessResponse)(nil), "penumbra.view.v1alpha1.WitnessResponse") - proto.RegisterType((*WitnessAndBuildRequest)(nil), "penumbra.view.v1alpha1.WitnessAndBuildRequest") - proto.RegisterType((*WitnessAndBuildResponse)(nil), "penumbra.view.v1alpha1.WitnessAndBuildResponse") - proto.RegisterType((*AssetsRequest)(nil), "penumbra.view.v1alpha1.AssetsRequest") - proto.RegisterType((*AssetsResponse)(nil), "penumbra.view.v1alpha1.AssetsResponse") - proto.RegisterType((*AppParametersRequest)(nil), "penumbra.view.v1alpha1.AppParametersRequest") - proto.RegisterType((*AppParametersResponse)(nil), "penumbra.view.v1alpha1.AppParametersResponse") - proto.RegisterType((*GasPricesRequest)(nil), "penumbra.view.v1alpha1.GasPricesRequest") - proto.RegisterType((*GasPricesResponse)(nil), "penumbra.view.v1alpha1.GasPricesResponse") - proto.RegisterType((*FMDParametersRequest)(nil), "penumbra.view.v1alpha1.FMDParametersRequest") - proto.RegisterType((*FMDParametersResponse)(nil), "penumbra.view.v1alpha1.FMDParametersResponse") - proto.RegisterType((*NoteByCommitmentRequest)(nil), "penumbra.view.v1alpha1.NoteByCommitmentRequest") - proto.RegisterType((*NoteByCommitmentResponse)(nil), "penumbra.view.v1alpha1.NoteByCommitmentResponse") - proto.RegisterType((*SwapByCommitmentRequest)(nil), "penumbra.view.v1alpha1.SwapByCommitmentRequest") - proto.RegisterType((*SwapByCommitmentResponse)(nil), "penumbra.view.v1alpha1.SwapByCommitmentResponse") - proto.RegisterType((*UnclaimedSwapsRequest)(nil), "penumbra.view.v1alpha1.UnclaimedSwapsRequest") - proto.RegisterType((*UnclaimedSwapsResponse)(nil), "penumbra.view.v1alpha1.UnclaimedSwapsResponse") - proto.RegisterType((*NullifierStatusRequest)(nil), "penumbra.view.v1alpha1.NullifierStatusRequest") - proto.RegisterType((*NullifierStatusResponse)(nil), "penumbra.view.v1alpha1.NullifierStatusResponse") - proto.RegisterType((*TransactionInfoByHashRequest)(nil), "penumbra.view.v1alpha1.TransactionInfoByHashRequest") - proto.RegisterType((*TransactionInfoRequest)(nil), "penumbra.view.v1alpha1.TransactionInfoRequest") - proto.RegisterType((*TransactionInfo)(nil), "penumbra.view.v1alpha1.TransactionInfo") - proto.RegisterType((*TransactionInfoResponse)(nil), "penumbra.view.v1alpha1.TransactionInfoResponse") - proto.RegisterType((*TransactionInfoByHashResponse)(nil), "penumbra.view.v1alpha1.TransactionInfoByHashResponse") - proto.RegisterType((*NotesResponse)(nil), "penumbra.view.v1alpha1.NotesResponse") - proto.RegisterType((*NotesForVotingResponse)(nil), "penumbra.view.v1alpha1.NotesForVotingResponse") - proto.RegisterType((*SpendableNoteRecord)(nil), "penumbra.view.v1alpha1.SpendableNoteRecord") - proto.RegisterType((*SwapRecord)(nil), "penumbra.view.v1alpha1.SwapRecord") - proto.RegisterType((*OwnedPositionIdsRequest)(nil), "penumbra.view.v1alpha1.OwnedPositionIdsRequest") - proto.RegisterType((*OwnedPositionIdsResponse)(nil), "penumbra.view.v1alpha1.OwnedPositionIdsResponse") -} - -func init() { proto.RegisterFile("penumbra/view/v1alpha1/view.proto", fileDescriptor_0aa947b204e6a7c2) } - -var fileDescriptor_0aa947b204e6a7c2 = []byte{ - // 3262 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x3b, 0x5b, 0x53, 0x1c, 0xc7, - 0xd5, 0x9e, 0x05, 0x71, 0x39, 0xb0, 0x2c, 0x8c, 0x04, 0xac, 0xf6, 0xb3, 0xb1, 0x3d, 0xb6, 0x6c, - 0x7c, 0x5b, 0x10, 0x96, 0x5d, 0x36, 0xbe, 0x7c, 0x66, 0x25, 0x4b, 0xc2, 0xb6, 0x24, 0xbe, 0x41, - 0x42, 0xfe, 0xf8, 0xe4, 0x6f, 0xd2, 0xcc, 0x34, 0xec, 0x94, 0x66, 0x67, 0x46, 0x33, 0xbd, 0x2c, - 0x24, 0x4f, 0xa9, 0xa4, 0xca, 0x55, 0x49, 0x1e, 0x9c, 0xb8, 0xe2, 0xaa, 0xe4, 0x31, 0x8f, 0xf1, - 0x5b, 0xf2, 0x27, 0x12, 0xe7, 0xc5, 0x8f, 0x79, 0x4a, 0x39, 0xf2, 0x5b, 0x52, 0x95, 0xdf, 0x90, - 0xea, 0xdb, 0xdc, 0x76, 0x5b, 0xec, 0x02, 0x7a, 0x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d4, 0xf8, 0x5c, 0x83, 0x27, 0x7b, 0xeb, 0x26, 0xfc, 0xf1, 0x2e, - 0x94, 0x5c, 0x47, 0xe8, 0xf4, 0x6a, 0x51, 0x27, 0xbe, 0xc1, 0x7a, 0xa9, 0xb3, 0xee, 0x98, 0x25, - 0xd7, 0xd1, 0x5f, 0x82, 0xe9, 0x44, 0x03, 0xab, 0x89, 0xdd, 0xbd, 0x26, 0x61, 0x8a, 0x0c, 0x9b, - 0x95, 0x04, 0x7e, 0x9d, 0x81, 0x8d, 0x3f, 0x9f, 0x85, 0xf3, 0x85, 0x0d, 0xe2, 0xe3, 0x48, 0xfa, - 0xe8, 0x39, 0x28, 0xe3, 0x83, 0xd0, 0x8d, 0x0e, 0x25, 0x17, 0x8d, 0x71, 0x99, 0xe4, 0x40, 0xce, - 0x42, 0x7f, 0x07, 0x86, 0x76, 0x31, 0x16, 0xfb, 0xe5, 0xa5, 0x82, 0xb2, 0xc9, 0xa9, 0xae, 0xd3, - 0xe0, 0x94, 0xe8, 0x7c, 0x15, 0x63, 0x93, 0x52, 0xe9, 0x1f, 0xc2, 0x70, 0x0b, 0xb7, 0x82, 0xea, - 0x10, 0xa3, 0xbe, 0xd8, 0x8f, 0xfb, 0x6f, 0xe0, 0x56, 0xb0, 0xe1, 0x21, 0xd7, 0x27, 0xf8, 0x80, - 0x98, 0x8c, 0x5c, 0x5f, 0x83, 0x91, 0x38, 0x68, 0x47, 0x36, 0xae, 0x0e, 0xf7, 0x54, 0x83, 0x85, - 0x86, 0x74, 0xbf, 0x3a, 0x4e, 0x84, 0xe3, 0x78, 0xdd, 0x77, 0xf0, 0x81, 0x29, 0x08, 0x75, 0x13, - 0x46, 0x83, 0x36, 0x09, 0xdb, 0x24, 0xae, 0x9e, 0x7b, 0x66, 0x68, 0x71, 0x62, 0xe5, 0xad, 0x7a, - 0xef, 0x0b, 0xa4, 0xae, 0xf4, 0x57, 0xfd, 0x16, 0x63, 0x60, 0x4a, 0x46, 0xfa, 0x27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95, 0x3e, 0x56, 0xe0, - 0x86, 0x20, 0x31, 0xcb, 0x4e, 0x76, 0x68, 0xcc, 0xc1, 0xb9, 0xb5, 0x30, 0xdc, 0x40, 0x11, 0x6a, - 0x61, 0x82, 0xa3, 0xe4, 0xae, 0xde, 0x81, 0xd9, 0x02, 0x5c, 0x28, 0xb1, 0x0e, 0x10, 0x26, 0x50, - 0x45, 0x72, 0x81, 0xc2, 0x30, 0x73, 0x10, 0x72, 0x6c, 0x32, 0xc4, 0x86, 0x0e, 0xd3, 0xd7, 0x50, - 0xbc, 0x11, 0xb9, 0x69, 0xba, 0x65, 0xd8, 0x30, 0x93, 0x81, 0x25, 0x89, 0x2d, 0xec, 0xa1, 0xd8, - 0x0a, 0x19, 0x54, 0x71, 0x14, 0x14, 0xf5, 0x8c, 0x94, 0xd9, 0xf8, 0x9e, 0xfc, 0xa4, 0x46, 0x5f, - 0xbd, 0x71, 0xa5, 0xdb, 0x68, 0x1f, 0x66, 0x0b, 0x70, 0xa1, 0xc0, 0x9d, 0x1e, 0x46, 0xab, 0xcb, - 0x7f, 0xbc, 0xe1, 0x97, 0x96, 0x54, 0x5a, 0x8e, 0xc2, 0x01, 0xbf, 0xd5, 0x60, 0x9e, 0xde, 0x54, - 0x8d, 0xc3, 0x4c, 0x30, 0x17, 0x47, 0x73, 0x0b, 0x2a, 0x85, 0xcb, 0x41, 0xac, 0xf6, 0xa0, 0x75, - 0x92, 0xfc, 0xdd, 0xd0, 0xab, 0x57, 0x31, 0xd4, 0xb3, 0x57, 0xe1, 0x43, 0xb5, 0x5b, 0xb7, 0x74, - 0x27, 0xb2, 0x4b, 0x9a, 0x5d, 0xa5, 0x54, 0x80, 0xf0, 0xc9, 0x2b, 0xaa, 0xe2, 0xde, 0xa6, 0xc4, - 0xa6, 0x2c, 0x4d, 0x6c, 0x07, 0x91, 0x63, 0x96, 0xe3, 0x2c, 0x90, 0x39, 0x63, 0xb3, 0x83, 0x42, - 0x85, 0x33, 0x8a, 0x45, 0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xa5, 0xd5, 0xb7, 0xc4, 0xf4, 0x37, 0xe9, 0xc4, 0x3d, 0x3a, 0x71, - 0x4f, 0x4e, 0x3c, 0x2c, 0x19, 0xbd, 0x27, 0xee, 0x5d, 0xdb, 0x68, 0xc8, 0xce, 0xcd, 0x3f, 0x4a, - 0x55, 0x89, 0xb4, 0xba, 0x4a, 0xb1, 0x56, 0x57, 0x25, 0xda, 0xce, 0x08, 0xfb, 0xe7, 0x92, 0xd7, - 0xff, 0x1d, 0x00, 0x00, 0xff, 0xff, 0xeb, 0x61, 0x26, 0xe8, 0x2d, 0x35, 0x00, 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// ViewProtocolServiceClient is the client API for ViewProtocolService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type ViewProtocolServiceClient interface { - // Get current status of chain sync - Status(ctx context.Context, in *StatusRequest, opts ...grpc.CallOption) (*StatusResponse, error) - // Stream sync status updates until the view service has caught up with the chain. - // Returns a stream of `StatusStreamResponse`s. - StatusStream(ctx context.Context, in *StatusStreamRequest, opts ...grpc.CallOption) (ViewProtocolService_StatusStreamClient, error) - // Queries for notes that have been accepted by the chain. - // Returns a stream of `NotesResponse`s. - Notes(ctx context.Context, in *NotesRequest, opts ...grpc.CallOption) (ViewProtocolService_NotesClient, error) - // Returns a stream of `NotesForVotingResponse`s. - NotesForVoting(ctx context.Context, in *NotesForVotingRequest, opts ...grpc.CallOption) (ViewProtocolService_NotesForVotingClient, error) - // Returns authentication paths for the given note commitments. - // - // This method takes a batch of input commitments, rather than just one, so - // that the client can get a consistent set of authentication paths to a - // common root. (Otherwise, if a client made multiple requests, the wallet - // service could have advanced the state commitment tree state between queries). - Witness(ctx context.Context, in *WitnessRequest, opts ...grpc.CallOption) (*WitnessResponse, error) - WitnessAndBuild(ctx context.Context, in *WitnessAndBuildRequest, opts ...grpc.CallOption) (*WitnessAndBuildResponse, error) - // Queries for assets. - // Returns a stream of `AssetsResponse`s. - Assets(ctx context.Context, in *AssetsRequest, opts ...grpc.CallOption) (ViewProtocolService_AssetsClient, error) - // Query for the current app parameters. - AppParameters(ctx context.Context, in *AppParametersRequest, opts ...grpc.CallOption) (*AppParametersResponse, error) - // Query for the current gas prices. - GasPrices(ctx context.Context, in *GasPricesRequest, opts ...grpc.CallOption) (*GasPricesResponse, error) - // Query for the current FMD parameters. - FMDParameters(ctx context.Context, in *FMDParametersRequest, opts ...grpc.CallOption) (*FMDParametersResponse, error) - // Query for an address given an address index - AddressByIndex(ctx context.Context, in *AddressByIndexRequest, opts ...grpc.CallOption) (*AddressByIndexResponse, error) - // Query for wallet id - WalletId(ctx context.Context, in *WalletIdRequest, opts ...grpc.CallOption) (*WalletIdResponse, error) - // Query for an address given an address index - IndexByAddress(ctx context.Context, in *IndexByAddressRequest, opts ...grpc.CallOption) (*IndexByAddressResponse, error) - // Query for an ephemeral address - EphemeralAddress(ctx context.Context, in *EphemeralAddressRequest, opts ...grpc.CallOption) (*EphemeralAddressResponse, error) - // Query for balance of a given address. - // Returns a stream of `BalancesResponses`. - Balances(ctx context.Context, in *BalancesRequest, opts ...grpc.CallOption) (ViewProtocolService_BalancesClient, error) - // Query for a note by its note commitment, optionally waiting until the note is detected. - NoteByCommitment(ctx context.Context, in *NoteByCommitmentRequest, opts ...grpc.CallOption) (*NoteByCommitmentResponse, error) - // Query for a swap by its swap commitment, optionally waiting until the swap is detected. - SwapByCommitment(ctx context.Context, in *SwapByCommitmentRequest, opts ...grpc.CallOption) (*SwapByCommitmentResponse, error) - // Query for all unclaimed swaps. - UnclaimedSwaps(ctx context.Context, in *UnclaimedSwapsRequest, opts ...grpc.CallOption) (ViewProtocolService_UnclaimedSwapsClient, error) - // Query for whether a nullifier has been spent, optionally waiting until it is spent. - NullifierStatus(ctx context.Context, in *NullifierStatusRequest, opts ...grpc.CallOption) (*NullifierStatusResponse, error) - // Query for a given transaction by its hash. - TransactionInfoByHash(ctx context.Context, in *TransactionInfoByHashRequest, opts ...grpc.CallOption) (*TransactionInfoByHashResponse, error) - // Query for the full transactions in the given range of blocks. - // Returns a stream of `TransactionInfoResponse`s. - TransactionInfo(ctx context.Context, in *TransactionInfoRequest, opts ...grpc.CallOption) (ViewProtocolService_TransactionInfoClient, error) - // Query for a transaction plan - TransactionPlanner(ctx context.Context, in *TransactionPlannerRequest, opts ...grpc.CallOption) (*TransactionPlannerResponse, error) - // Broadcast a transaction to the network, optionally waiting for full confirmation. - BroadcastTransaction(ctx context.Context, in *BroadcastTransactionRequest, opts ...grpc.CallOption) (*BroadcastTransactionResponse, error) - // Query for owned position IDs for the given trading pair and in the given position state. - OwnedPositionIds(ctx context.Context, in *OwnedPositionIdsRequest, opts ...grpc.CallOption) (ViewProtocolService_OwnedPositionIdsClient, error) - // Authorize a transaction plan and build the transaction. - AuthorizeAndBuild(ctx context.Context, in *AuthorizeAndBuildRequest, opts ...grpc.CallOption) (*AuthorizeAndBuildResponse, error) +// Requests information on an asset by asset id +type AssetMetadataByIdRequest struct { + // The asset id to request information on. + AssetId *v16.AssetId `protobuf:"bytes,2,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"` } -type viewProtocolServiceClient struct { - cc grpc1.ClientConn +func (m *AssetMetadataByIdRequest) Reset() { *m = AssetMetadataByIdRequest{} } +func (m *AssetMetadataByIdRequest) String() string { return proto.CompactTextString(m) } +func (*AssetMetadataByIdRequest) ProtoMessage() {} +func (*AssetMetadataByIdRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_dba93d04e42ddfc3, []int{53} } - -func NewViewProtocolServiceClient(cc grpc1.ClientConn) ViewProtocolServiceClient { - return &viewProtocolServiceClient{cc} +func (m *AssetMetadataByIdRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) } - -func (c *viewProtocolServiceClient) Status(ctx context.Context, in *StatusRequest, opts ...grpc.CallOption) (*StatusResponse, error) { - out := new(StatusResponse) - err := c.cc.Invoke(ctx, "/penumbra.view.v1alpha1.ViewProtocolService/Status", in, out, opts...) - if err != nil { - return nil, err +func (m *AssetMetadataByIdRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AssetMetadataByIdRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return out, nil +} +func (m *AssetMetadataByIdRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_AssetMetadataByIdRequest.Merge(m, src) +} +func (m *AssetMetadataByIdRequest) XXX_Size() int { + return m.Size() +} +func (m *AssetMetadataByIdRequest) XXX_DiscardUnknown() { + xxx_messageInfo_AssetMetadataByIdRequest.DiscardUnknown(m) } -func (c *viewProtocolServiceClient) StatusStream(ctx context.Context, in *StatusStreamRequest, opts ...grpc.CallOption) (ViewProtocolService_StatusStreamClient, error) { - stream, err := c.cc.NewStream(ctx, &_ViewProtocolService_serviceDesc.Streams[0], "/penumbra.view.v1alpha1.ViewProtocolService/StatusStream", opts...) - if err != nil { - return nil, err - } - x := &viewProtocolServiceStatusStreamClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err +var xxx_messageInfo_AssetMetadataByIdRequest proto.InternalMessageInfo + +func (m *AssetMetadataByIdRequest) GetAssetId() *v16.AssetId { + if m != nil { + return m.AssetId } - return x, nil + return nil } -type ViewProtocolService_StatusStreamClient interface { - Recv() (*StatusStreamResponse, error) - grpc.ClientStream +type AssetMetadataByIdResponse struct { + // If present, information on the requested asset. + // + // If the requested asset was unknown, this field will not be present. + DenomMetadata *v16.Metadata `protobuf:"bytes,1,opt,name=denom_metadata,json=denomMetadata,proto3" json:"denom_metadata,omitempty"` } -type viewProtocolServiceStatusStreamClient struct { - grpc.ClientStream +func (m *AssetMetadataByIdResponse) Reset() { *m = AssetMetadataByIdResponse{} } +func (m *AssetMetadataByIdResponse) String() string { return proto.CompactTextString(m) } +func (*AssetMetadataByIdResponse) ProtoMessage() {} +func (*AssetMetadataByIdResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_dba93d04e42ddfc3, []int{54} } - -func (x *viewProtocolServiceStatusStreamClient) Recv() (*StatusStreamResponse, error) { - m := new(StatusStreamResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil +func (m *AssetMetadataByIdResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AssetMetadataByIdResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AssetMetadataByIdResponse.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 *AssetMetadataByIdResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_AssetMetadataByIdResponse.Merge(m, src) +} +func (m *AssetMetadataByIdResponse) XXX_Size() int { + return m.Size() +} +func (m *AssetMetadataByIdResponse) XXX_DiscardUnknown() { + xxx_messageInfo_AssetMetadataByIdResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_AssetMetadataByIdResponse proto.InternalMessageInfo + +func (m *AssetMetadataByIdResponse) GetDenomMetadata() *v16.Metadata { + if m != nil { + return m.DenomMetadata + } + return nil +} + +// Requests `ValueView`s of delegation tokens for the given address index. The +// returned `ValueView`s will include the `ValidatorInfo` for the delegated +// validator in their `extended_metadata` fields. +type DelegationsByAddressIndexRequest struct { + // The address index to fetch delegation balances for. + AddressIndex *v12.AddressIndex `protobuf:"bytes,1,opt,name=address_index,json=addressIndex,proto3" json:"address_index,omitempty"` + Filter DelegationsByAddressIndexRequest_Filter `protobuf:"varint,2,opt,name=filter,proto3,enum=penumbra.view.v1.DelegationsByAddressIndexRequest_Filter" json:"filter,omitempty"` +} + +func (m *DelegationsByAddressIndexRequest) Reset() { *m = DelegationsByAddressIndexRequest{} } +func (m *DelegationsByAddressIndexRequest) String() string { return proto.CompactTextString(m) } +func (*DelegationsByAddressIndexRequest) ProtoMessage() {} +func (*DelegationsByAddressIndexRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_dba93d04e42ddfc3, []int{55} +} +func (m *DelegationsByAddressIndexRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DelegationsByAddressIndexRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DelegationsByAddressIndexRequest.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 *DelegationsByAddressIndexRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_DelegationsByAddressIndexRequest.Merge(m, src) +} +func (m *DelegationsByAddressIndexRequest) XXX_Size() int { + return m.Size() +} +func (m *DelegationsByAddressIndexRequest) XXX_DiscardUnknown() { + xxx_messageInfo_DelegationsByAddressIndexRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_DelegationsByAddressIndexRequest proto.InternalMessageInfo + +func (m *DelegationsByAddressIndexRequest) GetAddressIndex() *v12.AddressIndex { + if m != nil { + return m.AddressIndex + } + return nil +} + +func (m *DelegationsByAddressIndexRequest) GetFilter() DelegationsByAddressIndexRequest_Filter { + if m != nil { + return m.Filter + } + return DelegationsByAddressIndexRequest_FILTER_UNSPECIFIED +} + +// Contains a `ValueView` of delegation tokens for the requested address index. +// The `ValueView` includes the `ValidatorInfo` for the delegated validator in +// cits `extended_metadata` field. +type DelegationsByAddressIndexResponse struct { + ValueView *v16.ValueView `protobuf:"bytes,1,opt,name=value_view,json=valueView,proto3" json:"value_view,omitempty"` +} + +func (m *DelegationsByAddressIndexResponse) Reset() { *m = DelegationsByAddressIndexResponse{} } +func (m *DelegationsByAddressIndexResponse) String() string { return proto.CompactTextString(m) } +func (*DelegationsByAddressIndexResponse) ProtoMessage() {} +func (*DelegationsByAddressIndexResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_dba93d04e42ddfc3, []int{56} +} +func (m *DelegationsByAddressIndexResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DelegationsByAddressIndexResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DelegationsByAddressIndexResponse.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 *DelegationsByAddressIndexResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_DelegationsByAddressIndexResponse.Merge(m, src) +} +func (m *DelegationsByAddressIndexResponse) XXX_Size() int { + return m.Size() +} +func (m *DelegationsByAddressIndexResponse) XXX_DiscardUnknown() { + xxx_messageInfo_DelegationsByAddressIndexResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_DelegationsByAddressIndexResponse proto.InternalMessageInfo + +func (m *DelegationsByAddressIndexResponse) GetValueView() *v16.ValueView { + if m != nil { + return m.ValueView + } + return nil +} + +func init() { + proto.RegisterEnum("penumbra.view.v1.DelegationsByAddressIndexRequest_Filter", DelegationsByAddressIndexRequest_Filter_name, DelegationsByAddressIndexRequest_Filter_value) + proto.RegisterType((*AuthorizeAndBuildRequest)(nil), "penumbra.view.v1.AuthorizeAndBuildRequest") + proto.RegisterType((*AuthorizeAndBuildResponse)(nil), "penumbra.view.v1.AuthorizeAndBuildResponse") + proto.RegisterType((*AuthorizeAndBuildResponse_BuildProgress)(nil), "penumbra.view.v1.AuthorizeAndBuildResponse.BuildProgress") + proto.RegisterType((*AuthorizeAndBuildResponse_Complete)(nil), "penumbra.view.v1.AuthorizeAndBuildResponse.Complete") + proto.RegisterType((*BroadcastTransactionRequest)(nil), "penumbra.view.v1.BroadcastTransactionRequest") + proto.RegisterType((*BroadcastTransactionResponse)(nil), "penumbra.view.v1.BroadcastTransactionResponse") + proto.RegisterType((*BroadcastTransactionResponse_BroadcastSuccess)(nil), "penumbra.view.v1.BroadcastTransactionResponse.BroadcastSuccess") + proto.RegisterType((*BroadcastTransactionResponse_Confirmed)(nil), "penumbra.view.v1.BroadcastTransactionResponse.Confirmed") + proto.RegisterType((*TransactionPlannerRequest)(nil), "penumbra.view.v1.TransactionPlannerRequest") + proto.RegisterType((*TransactionPlannerRequest_Output)(nil), "penumbra.view.v1.TransactionPlannerRequest.Output") + proto.RegisterType((*TransactionPlannerRequest_Swap)(nil), "penumbra.view.v1.TransactionPlannerRequest.Swap") + proto.RegisterType((*TransactionPlannerRequest_SwapClaim)(nil), "penumbra.view.v1.TransactionPlannerRequest.SwapClaim") + proto.RegisterType((*TransactionPlannerRequest_Delegate)(nil), "penumbra.view.v1.TransactionPlannerRequest.Delegate") + proto.RegisterType((*TransactionPlannerRequest_Undelegate)(nil), "penumbra.view.v1.TransactionPlannerRequest.Undelegate") + proto.RegisterType((*TransactionPlannerRequest_UndelegateClaim)(nil), "penumbra.view.v1.TransactionPlannerRequest.UndelegateClaim") + proto.RegisterType((*TransactionPlannerRequest_PositionOpen)(nil), "penumbra.view.v1.TransactionPlannerRequest.PositionOpen") + proto.RegisterType((*TransactionPlannerRequest_PositionClose)(nil), "penumbra.view.v1.TransactionPlannerRequest.PositionClose") + proto.RegisterType((*TransactionPlannerRequest_PositionWithdraw)(nil), "penumbra.view.v1.TransactionPlannerRequest.PositionWithdraw") + proto.RegisterType((*TransactionPlannerResponse)(nil), "penumbra.view.v1.TransactionPlannerResponse") + proto.RegisterType((*AddressByIndexRequest)(nil), "penumbra.view.v1.AddressByIndexRequest") + proto.RegisterType((*AddressByIndexResponse)(nil), "penumbra.view.v1.AddressByIndexResponse") + proto.RegisterType((*WalletIdRequest)(nil), "penumbra.view.v1.WalletIdRequest") + proto.RegisterType((*WalletIdResponse)(nil), "penumbra.view.v1.WalletIdResponse") + proto.RegisterType((*IndexByAddressRequest)(nil), "penumbra.view.v1.IndexByAddressRequest") + proto.RegisterType((*IndexByAddressResponse)(nil), "penumbra.view.v1.IndexByAddressResponse") + proto.RegisterType((*EphemeralAddressRequest)(nil), "penumbra.view.v1.EphemeralAddressRequest") + proto.RegisterType((*EphemeralAddressResponse)(nil), "penumbra.view.v1.EphemeralAddressResponse") + proto.RegisterType((*BalancesRequest)(nil), "penumbra.view.v1.BalancesRequest") + proto.RegisterType((*BalancesResponse)(nil), "penumbra.view.v1.BalancesResponse") + proto.RegisterType((*StatusRequest)(nil), "penumbra.view.v1.StatusRequest") + proto.RegisterType((*StatusResponse)(nil), "penumbra.view.v1.StatusResponse") + proto.RegisterType((*StatusStreamRequest)(nil), "penumbra.view.v1.StatusStreamRequest") + proto.RegisterType((*StatusStreamResponse)(nil), "penumbra.view.v1.StatusStreamResponse") + proto.RegisterType((*NotesRequest)(nil), "penumbra.view.v1.NotesRequest") + proto.RegisterType((*NotesForVotingRequest)(nil), "penumbra.view.v1.NotesForVotingRequest") + proto.RegisterType((*WitnessRequest)(nil), "penumbra.view.v1.WitnessRequest") + proto.RegisterType((*WitnessResponse)(nil), "penumbra.view.v1.WitnessResponse") + proto.RegisterType((*WitnessAndBuildRequest)(nil), "penumbra.view.v1.WitnessAndBuildRequest") + proto.RegisterType((*WitnessAndBuildResponse)(nil), "penumbra.view.v1.WitnessAndBuildResponse") + proto.RegisterType((*WitnessAndBuildResponse_BuildProgress)(nil), "penumbra.view.v1.WitnessAndBuildResponse.BuildProgress") + proto.RegisterType((*WitnessAndBuildResponse_Complete)(nil), "penumbra.view.v1.WitnessAndBuildResponse.Complete") + proto.RegisterType((*AssetsRequest)(nil), "penumbra.view.v1.AssetsRequest") + proto.RegisterType((*AssetsResponse)(nil), "penumbra.view.v1.AssetsResponse") + proto.RegisterType((*AppParametersRequest)(nil), "penumbra.view.v1.AppParametersRequest") + proto.RegisterType((*AppParametersResponse)(nil), "penumbra.view.v1.AppParametersResponse") + proto.RegisterType((*GasPricesRequest)(nil), "penumbra.view.v1.GasPricesRequest") + proto.RegisterType((*GasPricesResponse)(nil), "penumbra.view.v1.GasPricesResponse") + proto.RegisterType((*FMDParametersRequest)(nil), "penumbra.view.v1.FMDParametersRequest") + proto.RegisterType((*FMDParametersResponse)(nil), "penumbra.view.v1.FMDParametersResponse") + proto.RegisterType((*NoteByCommitmentRequest)(nil), "penumbra.view.v1.NoteByCommitmentRequest") + proto.RegisterType((*NoteByCommitmentResponse)(nil), "penumbra.view.v1.NoteByCommitmentResponse") + proto.RegisterType((*SwapByCommitmentRequest)(nil), "penumbra.view.v1.SwapByCommitmentRequest") + proto.RegisterType((*SwapByCommitmentResponse)(nil), "penumbra.view.v1.SwapByCommitmentResponse") + proto.RegisterType((*UnclaimedSwapsRequest)(nil), "penumbra.view.v1.UnclaimedSwapsRequest") + proto.RegisterType((*UnclaimedSwapsResponse)(nil), "penumbra.view.v1.UnclaimedSwapsResponse") + proto.RegisterType((*NullifierStatusRequest)(nil), "penumbra.view.v1.NullifierStatusRequest") + proto.RegisterType((*NullifierStatusResponse)(nil), "penumbra.view.v1.NullifierStatusResponse") + proto.RegisterType((*TransactionInfoByHashRequest)(nil), "penumbra.view.v1.TransactionInfoByHashRequest") + proto.RegisterType((*TransactionInfoRequest)(nil), "penumbra.view.v1.TransactionInfoRequest") + proto.RegisterType((*TransactionInfo)(nil), "penumbra.view.v1.TransactionInfo") + proto.RegisterType((*TransactionInfoResponse)(nil), "penumbra.view.v1.TransactionInfoResponse") + proto.RegisterType((*TransactionInfoByHashResponse)(nil), "penumbra.view.v1.TransactionInfoByHashResponse") + proto.RegisterType((*NotesResponse)(nil), "penumbra.view.v1.NotesResponse") + proto.RegisterType((*NotesForVotingResponse)(nil), "penumbra.view.v1.NotesForVotingResponse") + proto.RegisterType((*SpendableNoteRecord)(nil), "penumbra.view.v1.SpendableNoteRecord") + proto.RegisterType((*SwapRecord)(nil), "penumbra.view.v1.SwapRecord") + proto.RegisterType((*OwnedPositionIdsRequest)(nil), "penumbra.view.v1.OwnedPositionIdsRequest") + proto.RegisterType((*OwnedPositionIdsResponse)(nil), "penumbra.view.v1.OwnedPositionIdsResponse") + proto.RegisterType((*AssetMetadataByIdRequest)(nil), "penumbra.view.v1.AssetMetadataByIdRequest") + proto.RegisterType((*AssetMetadataByIdResponse)(nil), "penumbra.view.v1.AssetMetadataByIdResponse") + proto.RegisterType((*DelegationsByAddressIndexRequest)(nil), "penumbra.view.v1.DelegationsByAddressIndexRequest") + proto.RegisterType((*DelegationsByAddressIndexResponse)(nil), "penumbra.view.v1.DelegationsByAddressIndexResponse") +} + +func init() { proto.RegisterFile("penumbra/view/v1/view.proto", fileDescriptor_dba93d04e42ddfc3) } + +var fileDescriptor_dba93d04e42ddfc3 = []byte{ + // 3847 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x3b, 0x4d, 0x6f, 0x1b, 0x49, + 0x76, 0x6a, 0x4a, 0x96, 0xa8, 0x27, 0xf1, 0x43, 0x65, 0x4b, 0xa2, 0xb9, 0x1e, 0xd9, 0xee, 0xd9, + 0x19, 0x7f, 0xed, 0x52, 0x1f, 0xf6, 0xee, 0xce, 0x78, 0x1c, 0x6c, 0x44, 0x7d, 0x58, 0x9a, 0xf1, + 0xc8, 0x9c, 0x96, 0x2c, 0x4f, 0x26, 0x9e, 0x74, 0x8a, 0xdd, 0x25, 0xa9, 0x63, 0xb2, 0xbb, 0xd3, + 0x5d, 0xa4, 0xa4, 0xfc, 0x80, 0x00, 0xd9, 0x20, 0x40, 0x80, 0xe4, 0x9c, 0x43, 0x80, 0x4d, 0x82, + 0x04, 0xc8, 0x2d, 0x87, 0x9c, 0x72, 0xdd, 0x0d, 0x10, 0x60, 0x91, 0xd3, 0x5e, 0x02, 0x0c, 0x66, + 0x6e, 0xb9, 0xe7, 0x94, 0x43, 0x82, 0xfa, 0xe8, 0x66,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db, 0xf1, 0x97, 0xf9, 0x9f, 0x08, 0x88, 0xb7, 0xdc, + 0x5d, 0x0b, 0x9b, 0xc6, 0x09, 0xb6, 0x6c, 0x7f, 0x39, 0xf9, 0xdf, 0xcc, 0x4f, 0xd8, 0x6f, 0x77, + 0xf5, 0xaf, 0x73, 0xe3, 0x8d, 0xc3, 0x2f, 0xff, 0x3e, 0x57, 0x6e, 0x04, 0xa2, 0x98, 0x84, 0xda, + 0xe1, 0xea, 0xbf, 0xf6, 0x40, 0x6f, 0x18, 0xe8, 0xcd, 0xe1, 0xea, 0xb7, 0xb9, 0x5b, 0x49, 0xd0, + 0x9b, 0xe7, 0x8d, 0x7a, 0x10, 0x63, 0xfd, 0x67, 0x0e, 0x05, 0xc3, 0x4f, 0x9f, 0xb2, 0xf1, 0xa7, + 0x4f, 0x0f, 0x57, 0x9b, 0x93, 0xfc, 0xaf, 0x7d, 0x8f, 0xff, 0x37, 0x00, 0x00, 0xff, 0xff, 0x04, + 0x1d, 0xb5, 0xb5, 0x1d, 0x3a, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 + +// ViewServiceClient is the client API for ViewService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type ViewServiceClient interface { + // Get current status of chain sync + Status(ctx context.Context, in *StatusRequest, opts ...grpc.CallOption) (*StatusResponse, error) + // Stream sync status updates until the view service has caught up with the chain. + // Returns a stream of `StatusStreamResponse`s. + StatusStream(ctx context.Context, in *StatusStreamRequest, opts ...grpc.CallOption) (ViewService_StatusStreamClient, error) + // Queries for notes that have been accepted by the chain. + // Returns a stream of `NotesResponse`s. + Notes(ctx context.Context, in *NotesRequest, opts ...grpc.CallOption) (ViewService_NotesClient, error) + // Returns a stream of `NotesForVotingResponse`s. + NotesForVoting(ctx context.Context, in *NotesForVotingRequest, opts ...grpc.CallOption) (ViewService_NotesForVotingClient, error) + // Queries for metadata about known assets. + // Returns a stream of `AssetsResponse`s. + Assets(ctx context.Context, in *AssetsRequest, opts ...grpc.CallOption) (ViewService_AssetsClient, error) + // Query for metadata about a specific asset, by asset ID. + // + // This is the same as the method on the shielded pool's `QueryService`, but exposing it + // here allows a view server to provide more specific or opinionated asset metadata -- like + // using an asset registry to provide tickers, symbols, etc. + AssetMetadataById(ctx context.Context, in *AssetMetadataByIdRequest, opts ...grpc.CallOption) (*AssetMetadataByIdResponse, error) + // Query for the current app parameters. + AppParameters(ctx context.Context, in *AppParametersRequest, opts ...grpc.CallOption) (*AppParametersResponse, error) + // Query for the current gas prices. + GasPrices(ctx context.Context, in *GasPricesRequest, opts ...grpc.CallOption) (*GasPricesResponse, error) + // Query for the current FMD parameters. + FMDParameters(ctx context.Context, in *FMDParametersRequest, opts ...grpc.CallOption) (*FMDParametersResponse, error) + // Query for an address given an address index + AddressByIndex(ctx context.Context, in *AddressByIndexRequest, opts ...grpc.CallOption) (*AddressByIndexResponse, error) + // Query for wallet id + WalletId(ctx context.Context, in *WalletIdRequest, opts ...grpc.CallOption) (*WalletIdResponse, error) + // Query for an address given an address index + IndexByAddress(ctx context.Context, in *IndexByAddressRequest, opts ...grpc.CallOption) (*IndexByAddressResponse, error) + // Query for an ephemeral address + EphemeralAddress(ctx context.Context, in *EphemeralAddressRequest, opts ...grpc.CallOption) (*EphemeralAddressResponse, error) + // Query for balance of a given address. + // Returns a stream of `BalancesResponses`. + Balances(ctx context.Context, in *BalancesRequest, opts ...grpc.CallOption) (ViewService_BalancesClient, error) + // Query for a note by its note commitment, optionally waiting until the note is detected. + NoteByCommitment(ctx context.Context, in *NoteByCommitmentRequest, opts ...grpc.CallOption) (*NoteByCommitmentResponse, error) + // Query for a swap by its swap commitment, optionally waiting until the swap is detected. + SwapByCommitment(ctx context.Context, in *SwapByCommitmentRequest, opts ...grpc.CallOption) (*SwapByCommitmentResponse, error) + // Query for all unclaimed swaps. + UnclaimedSwaps(ctx context.Context, in *UnclaimedSwapsRequest, opts ...grpc.CallOption) (ViewService_UnclaimedSwapsClient, error) + // Query for whether a nullifier has been spent, optionally waiting until it is spent. + NullifierStatus(ctx context.Context, in *NullifierStatusRequest, opts ...grpc.CallOption) (*NullifierStatusResponse, error) + // Query for a given transaction by its hash. + TransactionInfoByHash(ctx context.Context, in *TransactionInfoByHashRequest, opts ...grpc.CallOption) (*TransactionInfoByHashResponse, error) + // Query for the full transactions in the given range of blocks. + // Returns a stream of `TransactionInfoResponse`s. + TransactionInfo(ctx context.Context, in *TransactionInfoRequest, opts ...grpc.CallOption) (ViewService_TransactionInfoClient, error) + // Query for owned position IDs for the given trading pair and in the given position state. + OwnedPositionIds(ctx context.Context, in *OwnedPositionIdsRequest, opts ...grpc.CallOption) (ViewService_OwnedPositionIdsClient, error) + // Translates a high-level intent ("send X funds to Y address") into a complete transaction plan. + TransactionPlanner(ctx context.Context, in *TransactionPlannerRequest, opts ...grpc.CallOption) (*TransactionPlannerResponse, error) + // Returns authentication data for the given transaction plan. + // + // This method takes a complete transaction plan, so that the client can get a + // consistent set of authentication paths to a common root for the entire + // transaction. (Otherwise, if a client made multiple requests, the wallet + // service could have advanced the state commitment tree between queries). + Witness(ctx context.Context, in *WitnessRequest, opts ...grpc.CallOption) (*WitnessResponse, error) + // Like `Witness`, but immediately uses the witness data to build (prove) the transaction. + // + // This method is useful for clients that can't easily do proving themselves, either because + // they're not written in Rust and can't easily import the proving code, or because they don't + // have access to proving keys, or some other reason. + // + // This method streams status updates to the caller before finally returning the transaction. + WitnessAndBuild(ctx context.Context, in *WitnessAndBuildRequest, opts ...grpc.CallOption) (ViewService_WitnessAndBuildClient, error) + // Authorize a transaction plan and build the transaction. + // + // This method is only supported on view servers that have access to a custody + // service. Otherwise, it will fail. + // + // Penumbra's transaction authorization mechanism is designed so transactions + // can be signed and built (proved) concurrently. This allows implementations + // to, e.g., start proving optimistically while presenting the user with an + // approval dialog. + // + // This method streams status updates to the caller before finally returning the transaction. + AuthorizeAndBuild(ctx context.Context, in *AuthorizeAndBuildRequest, opts ...grpc.CallOption) (ViewService_AuthorizeAndBuildClient, error) + // Broadcast a transaction to the network, optionally waiting for full confirmation. + // + // This method streams status updates to the caller before finally returning confirmation. + BroadcastTransaction(ctx context.Context, in *BroadcastTransactionRequest, opts ...grpc.CallOption) (ViewService_BroadcastTransactionClient, error) + // Get delegation tokens for a given address index. Each delegation token will + // be represented by a `ValueView` with the given address index's balance of + // that token. Each `ValueView`'s `extended_metadata` field will contain the + // `ValidatorInfo` of the delegated validator. + DelegationsByAddressIndex(ctx context.Context, in *DelegationsByAddressIndexRequest, opts ...grpc.CallOption) (ViewService_DelegationsByAddressIndexClient, error) +} + +type viewServiceClient struct { + cc grpc1.ClientConn } -func (c *viewProtocolServiceClient) Notes(ctx context.Context, in *NotesRequest, opts ...grpc.CallOption) (ViewProtocolService_NotesClient, error) { - stream, err := c.cc.NewStream(ctx, &_ViewProtocolService_serviceDesc.Streams[1], "/penumbra.view.v1alpha1.ViewProtocolService/Notes", opts...) +func NewViewServiceClient(cc grpc1.ClientConn) ViewServiceClient { + return &viewServiceClient{cc} +} + +func (c *viewServiceClient) Status(ctx context.Context, in *StatusRequest, opts ...grpc.CallOption) (*StatusResponse, error) { + out := new(StatusResponse) + err := c.cc.Invoke(ctx, "/penumbra.view.v1.ViewService/Status", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *viewServiceClient) StatusStream(ctx context.Context, in *StatusStreamRequest, opts ...grpc.CallOption) (ViewService_StatusStreamClient, error) { + stream, err := c.cc.NewStream(ctx, &_ViewService_serviceDesc.Streams[0], "/penumbra.view.v1.ViewService/StatusStream", opts...) if err != nil { return nil, err } - x := &viewProtocolServiceNotesClient{stream} + x := &viewServiceStatusStreamClient{stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } @@ -3710,29 +4560,29 @@ func (c *viewProtocolServiceClient) Notes(ctx context.Context, in *NotesRequest, return x, nil } -type ViewProtocolService_NotesClient interface { - Recv() (*NotesResponse, error) +type ViewService_StatusStreamClient interface { + Recv() (*StatusStreamResponse, error) grpc.ClientStream } -type viewProtocolServiceNotesClient struct { +type viewServiceStatusStreamClient struct { grpc.ClientStream } -func (x *viewProtocolServiceNotesClient) Recv() (*NotesResponse, error) { - m := new(NotesResponse) +func (x *viewServiceStatusStreamClient) Recv() (*StatusStreamResponse, error) { + m := new(StatusStreamResponse) if err := x.ClientStream.RecvMsg(m); err != nil { return nil, err } return m, nil } -func (c *viewProtocolServiceClient) NotesForVoting(ctx context.Context, in *NotesForVotingRequest, opts ...grpc.CallOption) (ViewProtocolService_NotesForVotingClient, error) { - stream, err := c.cc.NewStream(ctx, &_ViewProtocolService_serviceDesc.Streams[2], "/penumbra.view.v1alpha1.ViewProtocolService/NotesForVoting", opts...) +func (c *viewServiceClient) Notes(ctx context.Context, in *NotesRequest, opts ...grpc.CallOption) (ViewService_NotesClient, error) { + stream, err := c.cc.NewStream(ctx, &_ViewService_serviceDesc.Streams[1], "/penumbra.view.v1.ViewService/Notes", opts...) if err != nil { return nil, err } - x := &viewProtocolServiceNotesForVotingClient{stream} + x := &viewServiceNotesClient{stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } @@ -3742,47 +4592,61 @@ func (c *viewProtocolServiceClient) NotesForVoting(ctx context.Context, in *Note return x, nil } -type ViewProtocolService_NotesForVotingClient interface { - Recv() (*NotesForVotingResponse, error) +type ViewService_NotesClient interface { + Recv() (*NotesResponse, error) grpc.ClientStream } -type viewProtocolServiceNotesForVotingClient struct { +type viewServiceNotesClient struct { grpc.ClientStream } -func (x *viewProtocolServiceNotesForVotingClient) Recv() (*NotesForVotingResponse, error) { - m := new(NotesForVotingResponse) +func (x *viewServiceNotesClient) Recv() (*NotesResponse, error) { + m := new(NotesResponse) if err := x.ClientStream.RecvMsg(m); err != nil { return nil, err } return m, nil } -func (c *viewProtocolServiceClient) Witness(ctx context.Context, in *WitnessRequest, opts ...grpc.CallOption) (*WitnessResponse, error) { - out := new(WitnessResponse) - err := c.cc.Invoke(ctx, "/penumbra.view.v1alpha1.ViewProtocolService/Witness", in, out, opts...) +func (c *viewServiceClient) NotesForVoting(ctx context.Context, in *NotesForVotingRequest, opts ...grpc.CallOption) (ViewService_NotesForVotingClient, error) { + stream, err := c.cc.NewStream(ctx, &_ViewService_serviceDesc.Streams[2], "/penumbra.view.v1.ViewService/NotesForVoting", opts...) if err != nil { return nil, err } - return out, nil + x := &viewServiceNotesForVotingClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil } -func (c *viewProtocolServiceClient) WitnessAndBuild(ctx context.Context, in *WitnessAndBuildRequest, opts ...grpc.CallOption) (*WitnessAndBuildResponse, error) { - out := new(WitnessAndBuildResponse) - err := c.cc.Invoke(ctx, "/penumbra.view.v1alpha1.ViewProtocolService/WitnessAndBuild", in, out, opts...) - if err != nil { +type ViewService_NotesForVotingClient interface { + Recv() (*NotesForVotingResponse, error) + grpc.ClientStream +} + +type viewServiceNotesForVotingClient struct { + grpc.ClientStream +} + +func (x *viewServiceNotesForVotingClient) Recv() (*NotesForVotingResponse, error) { + m := new(NotesForVotingResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { return nil, err } - return out, nil + return m, nil } -func (c *viewProtocolServiceClient) Assets(ctx context.Context, in *AssetsRequest, opts ...grpc.CallOption) (ViewProtocolService_AssetsClient, error) { - stream, err := c.cc.NewStream(ctx, &_ViewProtocolService_serviceDesc.Streams[3], "/penumbra.view.v1alpha1.ViewProtocolService/Assets", opts...) +func (c *viewServiceClient) Assets(ctx context.Context, in *AssetsRequest, opts ...grpc.CallOption) (ViewService_AssetsClient, error) { + stream, err := c.cc.NewStream(ctx, &_ViewService_serviceDesc.Streams[3], "/penumbra.view.v1.ViewService/Assets", opts...) if err != nil { return nil, err } - x := &viewProtocolServiceAssetsClient{stream} + x := &viewServiceAssetsClient{stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } @@ -3792,16 +4656,16 @@ func (c *viewProtocolServiceClient) Assets(ctx context.Context, in *AssetsReques return x, nil } -type ViewProtocolService_AssetsClient interface { +type ViewService_AssetsClient interface { Recv() (*AssetsResponse, error) grpc.ClientStream } -type viewProtocolServiceAssetsClient struct { +type viewServiceAssetsClient struct { grpc.ClientStream } -func (x *viewProtocolServiceAssetsClient) Recv() (*AssetsResponse, error) { +func (x *viewServiceAssetsClient) Recv() (*AssetsResponse, error) { m := new(AssetsResponse) if err := x.ClientStream.RecvMsg(m); err != nil { return nil, err @@ -3809,75 +4673,84 @@ func (x *viewProtocolServiceAssetsClient) Recv() (*AssetsResponse, error) { return m, nil } -func (c *viewProtocolServiceClient) AppParameters(ctx context.Context, in *AppParametersRequest, opts ...grpc.CallOption) (*AppParametersResponse, error) { +func (c *viewServiceClient) AssetMetadataById(ctx context.Context, in *AssetMetadataByIdRequest, opts ...grpc.CallOption) (*AssetMetadataByIdResponse, error) { + out := new(AssetMetadataByIdResponse) + err := c.cc.Invoke(ctx, "/penumbra.view.v1.ViewService/AssetMetadataById", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *viewServiceClient) AppParameters(ctx context.Context, in *AppParametersRequest, opts ...grpc.CallOption) (*AppParametersResponse, error) { out := new(AppParametersResponse) - err := c.cc.Invoke(ctx, "/penumbra.view.v1alpha1.ViewProtocolService/AppParameters", in, out, opts...) + err := c.cc.Invoke(ctx, "/penumbra.view.v1.ViewService/AppParameters", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *viewProtocolServiceClient) GasPrices(ctx context.Context, in *GasPricesRequest, opts ...grpc.CallOption) (*GasPricesResponse, error) { +func (c *viewServiceClient) GasPrices(ctx context.Context, in *GasPricesRequest, opts ...grpc.CallOption) (*GasPricesResponse, error) { out := new(GasPricesResponse) - err := c.cc.Invoke(ctx, "/penumbra.view.v1alpha1.ViewProtocolService/GasPrices", in, out, opts...) + err := c.cc.Invoke(ctx, "/penumbra.view.v1.ViewService/GasPrices", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *viewProtocolServiceClient) FMDParameters(ctx context.Context, in *FMDParametersRequest, opts ...grpc.CallOption) (*FMDParametersResponse, error) { +func (c *viewServiceClient) FMDParameters(ctx context.Context, in *FMDParametersRequest, opts ...grpc.CallOption) (*FMDParametersResponse, error) { out := new(FMDParametersResponse) - err := c.cc.Invoke(ctx, "/penumbra.view.v1alpha1.ViewProtocolService/FMDParameters", in, out, opts...) + err := c.cc.Invoke(ctx, "/penumbra.view.v1.ViewService/FMDParameters", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *viewProtocolServiceClient) AddressByIndex(ctx context.Context, in *AddressByIndexRequest, opts ...grpc.CallOption) (*AddressByIndexResponse, error) { +func (c *viewServiceClient) AddressByIndex(ctx context.Context, in *AddressByIndexRequest, opts ...grpc.CallOption) (*AddressByIndexResponse, error) { out := new(AddressByIndexResponse) - err := c.cc.Invoke(ctx, "/penumbra.view.v1alpha1.ViewProtocolService/AddressByIndex", in, out, opts...) + err := c.cc.Invoke(ctx, "/penumbra.view.v1.ViewService/AddressByIndex", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *viewProtocolServiceClient) WalletId(ctx context.Context, in *WalletIdRequest, opts ...grpc.CallOption) (*WalletIdResponse, error) { +func (c *viewServiceClient) WalletId(ctx context.Context, in *WalletIdRequest, opts ...grpc.CallOption) (*WalletIdResponse, error) { out := new(WalletIdResponse) - err := c.cc.Invoke(ctx, "/penumbra.view.v1alpha1.ViewProtocolService/WalletId", in, out, opts...) + err := c.cc.Invoke(ctx, "/penumbra.view.v1.ViewService/WalletId", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *viewProtocolServiceClient) IndexByAddress(ctx context.Context, in *IndexByAddressRequest, opts ...grpc.CallOption) (*IndexByAddressResponse, error) { +func (c *viewServiceClient) IndexByAddress(ctx context.Context, in *IndexByAddressRequest, opts ...grpc.CallOption) (*IndexByAddressResponse, error) { out := new(IndexByAddressResponse) - err := c.cc.Invoke(ctx, "/penumbra.view.v1alpha1.ViewProtocolService/IndexByAddress", in, out, opts...) + err := c.cc.Invoke(ctx, "/penumbra.view.v1.ViewService/IndexByAddress", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *viewProtocolServiceClient) EphemeralAddress(ctx context.Context, in *EphemeralAddressRequest, opts ...grpc.CallOption) (*EphemeralAddressResponse, error) { +func (c *viewServiceClient) EphemeralAddress(ctx context.Context, in *EphemeralAddressRequest, opts ...grpc.CallOption) (*EphemeralAddressResponse, error) { out := new(EphemeralAddressResponse) - err := c.cc.Invoke(ctx, "/penumbra.view.v1alpha1.ViewProtocolService/EphemeralAddress", in, out, opts...) + err := c.cc.Invoke(ctx, "/penumbra.view.v1.ViewService/EphemeralAddress", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *viewProtocolServiceClient) Balances(ctx context.Context, in *BalancesRequest, opts ...grpc.CallOption) (ViewProtocolService_BalancesClient, error) { - stream, err := c.cc.NewStream(ctx, &_ViewProtocolService_serviceDesc.Streams[4], "/penumbra.view.v1alpha1.ViewProtocolService/Balances", opts...) +func (c *viewServiceClient) Balances(ctx context.Context, in *BalancesRequest, opts ...grpc.CallOption) (ViewService_BalancesClient, error) { + stream, err := c.cc.NewStream(ctx, &_ViewService_serviceDesc.Streams[4], "/penumbra.view.v1.ViewService/Balances", opts...) if err != nil { return nil, err } - x := &viewProtocolServiceBalancesClient{stream} + x := &viewServiceBalancesClient{stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } @@ -3887,16 +4760,16 @@ func (c *viewProtocolServiceClient) Balances(ctx context.Context, in *BalancesRe return x, nil } -type ViewProtocolService_BalancesClient interface { +type ViewService_BalancesClient interface { Recv() (*BalancesResponse, error) grpc.ClientStream } -type viewProtocolServiceBalancesClient struct { +type viewServiceBalancesClient struct { grpc.ClientStream } -func (x *viewProtocolServiceBalancesClient) Recv() (*BalancesResponse, error) { +func (x *viewServiceBalancesClient) Recv() (*BalancesResponse, error) { m := new(BalancesResponse) if err := x.ClientStream.RecvMsg(m); err != nil { return nil, err @@ -3904,30 +4777,30 @@ func (x *viewProtocolServiceBalancesClient) Recv() (*BalancesResponse, error) { return m, nil } -func (c *viewProtocolServiceClient) NoteByCommitment(ctx context.Context, in *NoteByCommitmentRequest, opts ...grpc.CallOption) (*NoteByCommitmentResponse, error) { +func (c *viewServiceClient) NoteByCommitment(ctx context.Context, in *NoteByCommitmentRequest, opts ...grpc.CallOption) (*NoteByCommitmentResponse, error) { out := new(NoteByCommitmentResponse) - err := c.cc.Invoke(ctx, "/penumbra.view.v1alpha1.ViewProtocolService/NoteByCommitment", in, out, opts...) + err := c.cc.Invoke(ctx, "/penumbra.view.v1.ViewService/NoteByCommitment", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *viewProtocolServiceClient) SwapByCommitment(ctx context.Context, in *SwapByCommitmentRequest, opts ...grpc.CallOption) (*SwapByCommitmentResponse, error) { +func (c *viewServiceClient) SwapByCommitment(ctx context.Context, in *SwapByCommitmentRequest, opts ...grpc.CallOption) (*SwapByCommitmentResponse, error) { out := new(SwapByCommitmentResponse) - err := c.cc.Invoke(ctx, "/penumbra.view.v1alpha1.ViewProtocolService/SwapByCommitment", in, out, opts...) + err := c.cc.Invoke(ctx, "/penumbra.view.v1.ViewService/SwapByCommitment", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *viewProtocolServiceClient) UnclaimedSwaps(ctx context.Context, in *UnclaimedSwapsRequest, opts ...grpc.CallOption) (ViewProtocolService_UnclaimedSwapsClient, error) { - stream, err := c.cc.NewStream(ctx, &_ViewProtocolService_serviceDesc.Streams[5], "/penumbra.view.v1alpha1.ViewProtocolService/UnclaimedSwaps", opts...) +func (c *viewServiceClient) UnclaimedSwaps(ctx context.Context, in *UnclaimedSwapsRequest, opts ...grpc.CallOption) (ViewService_UnclaimedSwapsClient, error) { + stream, err := c.cc.NewStream(ctx, &_ViewService_serviceDesc.Streams[5], "/penumbra.view.v1.ViewService/UnclaimedSwaps", opts...) if err != nil { return nil, err } - x := &viewProtocolServiceUnclaimedSwapsClient{stream} + x := &viewServiceUnclaimedSwapsClient{stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } @@ -3937,16 +4810,16 @@ func (c *viewProtocolServiceClient) UnclaimedSwaps(ctx context.Context, in *Uncl return x, nil } -type ViewProtocolService_UnclaimedSwapsClient interface { +type ViewService_UnclaimedSwapsClient interface { Recv() (*UnclaimedSwapsResponse, error) grpc.ClientStream } -type viewProtocolServiceUnclaimedSwapsClient struct { +type viewServiceUnclaimedSwapsClient struct { grpc.ClientStream } -func (x *viewProtocolServiceUnclaimedSwapsClient) Recv() (*UnclaimedSwapsResponse, error) { +func (x *viewServiceUnclaimedSwapsClient) Recv() (*UnclaimedSwapsResponse, error) { m := new(UnclaimedSwapsResponse) if err := x.ClientStream.RecvMsg(m); err != nil { return nil, err @@ -3954,30 +4827,30 @@ func (x *viewProtocolServiceUnclaimedSwapsClient) Recv() (*UnclaimedSwapsRespons return m, nil } -func (c *viewProtocolServiceClient) NullifierStatus(ctx context.Context, in *NullifierStatusRequest, opts ...grpc.CallOption) (*NullifierStatusResponse, error) { +func (c *viewServiceClient) NullifierStatus(ctx context.Context, in *NullifierStatusRequest, opts ...grpc.CallOption) (*NullifierStatusResponse, error) { out := new(NullifierStatusResponse) - err := c.cc.Invoke(ctx, "/penumbra.view.v1alpha1.ViewProtocolService/NullifierStatus", in, out, opts...) + err := c.cc.Invoke(ctx, "/penumbra.view.v1.ViewService/NullifierStatus", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *viewProtocolServiceClient) TransactionInfoByHash(ctx context.Context, in *TransactionInfoByHashRequest, opts ...grpc.CallOption) (*TransactionInfoByHashResponse, error) { +func (c *viewServiceClient) TransactionInfoByHash(ctx context.Context, in *TransactionInfoByHashRequest, opts ...grpc.CallOption) (*TransactionInfoByHashResponse, error) { out := new(TransactionInfoByHashResponse) - err := c.cc.Invoke(ctx, "/penumbra.view.v1alpha1.ViewProtocolService/TransactionInfoByHash", in, out, opts...) + err := c.cc.Invoke(ctx, "/penumbra.view.v1.ViewService/TransactionInfoByHash", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *viewProtocolServiceClient) TransactionInfo(ctx context.Context, in *TransactionInfoRequest, opts ...grpc.CallOption) (ViewProtocolService_TransactionInfoClient, error) { - stream, err := c.cc.NewStream(ctx, &_ViewProtocolService_serviceDesc.Streams[6], "/penumbra.view.v1alpha1.ViewProtocolService/TransactionInfo", opts...) +func (c *viewServiceClient) TransactionInfo(ctx context.Context, in *TransactionInfoRequest, opts ...grpc.CallOption) (ViewService_TransactionInfoClient, error) { + stream, err := c.cc.NewStream(ctx, &_ViewService_serviceDesc.Streams[6], "/penumbra.view.v1.ViewService/TransactionInfo", opts...) if err != nil { return nil, err } - x := &viewProtocolServiceTransactionInfoClient{stream} + x := &viewServiceTransactionInfoClient{stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } @@ -3987,16 +4860,16 @@ func (c *viewProtocolServiceClient) TransactionInfo(ctx context.Context, in *Tra return x, nil } -type ViewProtocolService_TransactionInfoClient interface { +type ViewService_TransactionInfoClient interface { Recv() (*TransactionInfoResponse, error) grpc.ClientStream } -type viewProtocolServiceTransactionInfoClient struct { +type viewServiceTransactionInfoClient struct { grpc.ClientStream } -func (x *viewProtocolServiceTransactionInfoClient) Recv() (*TransactionInfoResponse, error) { +func (x *viewServiceTransactionInfoClient) Recv() (*TransactionInfoResponse, error) { m := new(TransactionInfoResponse) if err := x.ClientStream.RecvMsg(m); err != nil { return nil, err @@ -4004,30 +4877,62 @@ func (x *viewProtocolServiceTransactionInfoClient) Recv() (*TransactionInfoRespo return m, nil } -func (c *viewProtocolServiceClient) TransactionPlanner(ctx context.Context, in *TransactionPlannerRequest, opts ...grpc.CallOption) (*TransactionPlannerResponse, error) { +func (c *viewServiceClient) OwnedPositionIds(ctx context.Context, in *OwnedPositionIdsRequest, opts ...grpc.CallOption) (ViewService_OwnedPositionIdsClient, error) { + stream, err := c.cc.NewStream(ctx, &_ViewService_serviceDesc.Streams[7], "/penumbra.view.v1.ViewService/OwnedPositionIds", opts...) + if err != nil { + return nil, err + } + x := &viewServiceOwnedPositionIdsClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type ViewService_OwnedPositionIdsClient interface { + Recv() (*OwnedPositionIdsResponse, error) + grpc.ClientStream +} + +type viewServiceOwnedPositionIdsClient struct { + grpc.ClientStream +} + +func (x *viewServiceOwnedPositionIdsClient) Recv() (*OwnedPositionIdsResponse, error) { + m := new(OwnedPositionIdsResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *viewServiceClient) TransactionPlanner(ctx context.Context, in *TransactionPlannerRequest, opts ...grpc.CallOption) (*TransactionPlannerResponse, error) { out := new(TransactionPlannerResponse) - err := c.cc.Invoke(ctx, "/penumbra.view.v1alpha1.ViewProtocolService/TransactionPlanner", in, out, opts...) + err := c.cc.Invoke(ctx, "/penumbra.view.v1.ViewService/TransactionPlanner", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *viewProtocolServiceClient) BroadcastTransaction(ctx context.Context, in *BroadcastTransactionRequest, opts ...grpc.CallOption) (*BroadcastTransactionResponse, error) { - out := new(BroadcastTransactionResponse) - err := c.cc.Invoke(ctx, "/penumbra.view.v1alpha1.ViewProtocolService/BroadcastTransaction", in, out, opts...) +func (c *viewServiceClient) Witness(ctx context.Context, in *WitnessRequest, opts ...grpc.CallOption) (*WitnessResponse, error) { + out := new(WitnessResponse) + err := c.cc.Invoke(ctx, "/penumbra.view.v1.ViewService/Witness", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *viewProtocolServiceClient) OwnedPositionIds(ctx context.Context, in *OwnedPositionIdsRequest, opts ...grpc.CallOption) (ViewProtocolService_OwnedPositionIdsClient, error) { - stream, err := c.cc.NewStream(ctx, &_ViewProtocolService_serviceDesc.Streams[7], "/penumbra.view.v1alpha1.ViewProtocolService/OwnedPositionIds", opts...) +func (c *viewServiceClient) WitnessAndBuild(ctx context.Context, in *WitnessAndBuildRequest, opts ...grpc.CallOption) (ViewService_WitnessAndBuildClient, error) { + stream, err := c.cc.NewStream(ctx, &_ViewService_serviceDesc.Streams[8], "/penumbra.view.v1.ViewService/WitnessAndBuild", opts...) if err != nil { return nil, err } - x := &viewProtocolServiceOwnedPositionIdsClient{stream} + x := &viewServiceWitnessAndBuildClient{stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } @@ -4037,769 +4942,952 @@ func (c *viewProtocolServiceClient) OwnedPositionIds(ctx context.Context, in *Ow return x, nil } -type ViewProtocolService_OwnedPositionIdsClient interface { - Recv() (*OwnedPositionIdsResponse, error) +type ViewService_WitnessAndBuildClient interface { + Recv() (*WitnessAndBuildResponse, error) grpc.ClientStream } -type viewProtocolServiceOwnedPositionIdsClient struct { +type viewServiceWitnessAndBuildClient struct { grpc.ClientStream } -func (x *viewProtocolServiceOwnedPositionIdsClient) Recv() (*OwnedPositionIdsResponse, error) { - m := new(OwnedPositionIdsResponse) +func (x *viewServiceWitnessAndBuildClient) Recv() (*WitnessAndBuildResponse, error) { + m := new(WitnessAndBuildResponse) if err := x.ClientStream.RecvMsg(m); err != nil { return nil, err } return m, nil } -func (c *viewProtocolServiceClient) AuthorizeAndBuild(ctx context.Context, in *AuthorizeAndBuildRequest, opts ...grpc.CallOption) (*AuthorizeAndBuildResponse, error) { - out := new(AuthorizeAndBuildResponse) - err := c.cc.Invoke(ctx, "/penumbra.view.v1alpha1.ViewProtocolService/AuthorizeAndBuild", in, out, opts...) +func (c *viewServiceClient) AuthorizeAndBuild(ctx context.Context, in *AuthorizeAndBuildRequest, opts ...grpc.CallOption) (ViewService_AuthorizeAndBuildClient, error) { + stream, err := c.cc.NewStream(ctx, &_ViewService_serviceDesc.Streams[9], "/penumbra.view.v1.ViewService/AuthorizeAndBuild", opts...) if err != nil { return nil, err } - return out, nil + x := &viewServiceAuthorizeAndBuildClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil } -// ViewProtocolServiceServer is the server API for ViewProtocolService service. -type ViewProtocolServiceServer interface { - // Get current status of chain sync - Status(context.Context, *StatusRequest) (*StatusResponse, error) - // Stream sync status updates until the view service has caught up with the chain. - // Returns a stream of `StatusStreamResponse`s. - StatusStream(*StatusStreamRequest, ViewProtocolService_StatusStreamServer) error - // Queries for notes that have been accepted by the chain. - // Returns a stream of `NotesResponse`s. - Notes(*NotesRequest, ViewProtocolService_NotesServer) error - // Returns a stream of `NotesForVotingResponse`s. - NotesForVoting(*NotesForVotingRequest, ViewProtocolService_NotesForVotingServer) error - // Returns authentication paths for the given note commitments. - // - // This method takes a batch of input commitments, rather than just one, so - // that the client can get a consistent set of authentication paths to a - // common root. (Otherwise, if a client made multiple requests, the wallet - // service could have advanced the state commitment tree state between queries). - Witness(context.Context, *WitnessRequest) (*WitnessResponse, error) - WitnessAndBuild(context.Context, *WitnessAndBuildRequest) (*WitnessAndBuildResponse, error) - // Queries for assets. - // Returns a stream of `AssetsResponse`s. - Assets(*AssetsRequest, ViewProtocolService_AssetsServer) error - // Query for the current app parameters. - AppParameters(context.Context, *AppParametersRequest) (*AppParametersResponse, error) - // Query for the current gas prices. - GasPrices(context.Context, *GasPricesRequest) (*GasPricesResponse, error) - // Query for the current FMD parameters. - FMDParameters(context.Context, *FMDParametersRequest) (*FMDParametersResponse, error) - // Query for an address given an address index - AddressByIndex(context.Context, *AddressByIndexRequest) (*AddressByIndexResponse, error) - // Query for wallet id - WalletId(context.Context, *WalletIdRequest) (*WalletIdResponse, error) - // Query for an address given an address index - IndexByAddress(context.Context, *IndexByAddressRequest) (*IndexByAddressResponse, error) - // Query for an ephemeral address - EphemeralAddress(context.Context, *EphemeralAddressRequest) (*EphemeralAddressResponse, error) - // Query for balance of a given address. - // Returns a stream of `BalancesResponses`. - Balances(*BalancesRequest, ViewProtocolService_BalancesServer) error - // Query for a note by its note commitment, optionally waiting until the note is detected. - NoteByCommitment(context.Context, *NoteByCommitmentRequest) (*NoteByCommitmentResponse, error) - // Query for a swap by its swap commitment, optionally waiting until the swap is detected. - SwapByCommitment(context.Context, *SwapByCommitmentRequest) (*SwapByCommitmentResponse, error) - // Query for all unclaimed swaps. - UnclaimedSwaps(*UnclaimedSwapsRequest, ViewProtocolService_UnclaimedSwapsServer) error +type ViewService_AuthorizeAndBuildClient interface { + Recv() (*AuthorizeAndBuildResponse, error) + grpc.ClientStream +} + +type viewServiceAuthorizeAndBuildClient struct { + grpc.ClientStream +} + +func (x *viewServiceAuthorizeAndBuildClient) Recv() (*AuthorizeAndBuildResponse, error) { + m := new(AuthorizeAndBuildResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *viewServiceClient) BroadcastTransaction(ctx context.Context, in *BroadcastTransactionRequest, opts ...grpc.CallOption) (ViewService_BroadcastTransactionClient, error) { + stream, err := c.cc.NewStream(ctx, &_ViewService_serviceDesc.Streams[10], "/penumbra.view.v1.ViewService/BroadcastTransaction", opts...) + if err != nil { + return nil, err + } + x := &viewServiceBroadcastTransactionClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type ViewService_BroadcastTransactionClient interface { + Recv() (*BroadcastTransactionResponse, error) + grpc.ClientStream +} + +type viewServiceBroadcastTransactionClient struct { + grpc.ClientStream +} + +func (x *viewServiceBroadcastTransactionClient) Recv() (*BroadcastTransactionResponse, error) { + m := new(BroadcastTransactionResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *viewServiceClient) DelegationsByAddressIndex(ctx context.Context, in *DelegationsByAddressIndexRequest, opts ...grpc.CallOption) (ViewService_DelegationsByAddressIndexClient, error) { + stream, err := c.cc.NewStream(ctx, &_ViewService_serviceDesc.Streams[11], "/penumbra.view.v1.ViewService/DelegationsByAddressIndex", opts...) + if err != nil { + return nil, err + } + x := &viewServiceDelegationsByAddressIndexClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type ViewService_DelegationsByAddressIndexClient interface { + Recv() (*DelegationsByAddressIndexResponse, error) + grpc.ClientStream +} + +type viewServiceDelegationsByAddressIndexClient struct { + grpc.ClientStream +} + +func (x *viewServiceDelegationsByAddressIndexClient) Recv() (*DelegationsByAddressIndexResponse, error) { + m := new(DelegationsByAddressIndexResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +// ViewServiceServer is the server API for ViewService service. +type ViewServiceServer interface { + // Get current status of chain sync + Status(context.Context, *StatusRequest) (*StatusResponse, error) + // Stream sync status updates until the view service has caught up with the chain. + // Returns a stream of `StatusStreamResponse`s. + StatusStream(*StatusStreamRequest, ViewService_StatusStreamServer) error + // Queries for notes that have been accepted by the chain. + // Returns a stream of `NotesResponse`s. + Notes(*NotesRequest, ViewService_NotesServer) error + // Returns a stream of `NotesForVotingResponse`s. + NotesForVoting(*NotesForVotingRequest, ViewService_NotesForVotingServer) error + // Queries for metadata about known assets. + // Returns a stream of `AssetsResponse`s. + Assets(*AssetsRequest, ViewService_AssetsServer) error + // Query for metadata about a specific asset, by asset ID. + // + // This is the same as the method on the shielded pool's `QueryService`, but exposing it + // here allows a view server to provide more specific or opinionated asset metadata -- like + // using an asset registry to provide tickers, symbols, etc. + AssetMetadataById(context.Context, *AssetMetadataByIdRequest) (*AssetMetadataByIdResponse, error) + // Query for the current app parameters. + AppParameters(context.Context, *AppParametersRequest) (*AppParametersResponse, error) + // Query for the current gas prices. + GasPrices(context.Context, *GasPricesRequest) (*GasPricesResponse, error) + // Query for the current FMD parameters. + FMDParameters(context.Context, *FMDParametersRequest) (*FMDParametersResponse, error) + // Query for an address given an address index + AddressByIndex(context.Context, *AddressByIndexRequest) (*AddressByIndexResponse, error) + // Query for wallet id + WalletId(context.Context, *WalletIdRequest) (*WalletIdResponse, error) + // Query for an address given an address index + IndexByAddress(context.Context, *IndexByAddressRequest) (*IndexByAddressResponse, error) + // Query for an ephemeral address + EphemeralAddress(context.Context, *EphemeralAddressRequest) (*EphemeralAddressResponse, error) + // Query for balance of a given address. + // Returns a stream of `BalancesResponses`. + Balances(*BalancesRequest, ViewService_BalancesServer) error + // Query for a note by its note commitment, optionally waiting until the note is detected. + NoteByCommitment(context.Context, *NoteByCommitmentRequest) (*NoteByCommitmentResponse, error) + // Query for a swap by its swap commitment, optionally waiting until the swap is detected. + SwapByCommitment(context.Context, *SwapByCommitmentRequest) (*SwapByCommitmentResponse, error) + // Query for all unclaimed swaps. + UnclaimedSwaps(*UnclaimedSwapsRequest, ViewService_UnclaimedSwapsServer) error // Query for whether a nullifier has been spent, optionally waiting until it is spent. NullifierStatus(context.Context, *NullifierStatusRequest) (*NullifierStatusResponse, error) // Query for a given transaction by its hash. TransactionInfoByHash(context.Context, *TransactionInfoByHashRequest) (*TransactionInfoByHashResponse, error) // Query for the full transactions in the given range of blocks. // Returns a stream of `TransactionInfoResponse`s. - TransactionInfo(*TransactionInfoRequest, ViewProtocolService_TransactionInfoServer) error - // Query for a transaction plan - TransactionPlanner(context.Context, *TransactionPlannerRequest) (*TransactionPlannerResponse, error) - // Broadcast a transaction to the network, optionally waiting for full confirmation. - BroadcastTransaction(context.Context, *BroadcastTransactionRequest) (*BroadcastTransactionResponse, error) + TransactionInfo(*TransactionInfoRequest, ViewService_TransactionInfoServer) error // Query for owned position IDs for the given trading pair and in the given position state. - OwnedPositionIds(*OwnedPositionIdsRequest, ViewProtocolService_OwnedPositionIdsServer) error + OwnedPositionIds(*OwnedPositionIdsRequest, ViewService_OwnedPositionIdsServer) error + // Translates a high-level intent ("send X funds to Y address") into a complete transaction plan. + TransactionPlanner(context.Context, *TransactionPlannerRequest) (*TransactionPlannerResponse, error) + // Returns authentication data for the given transaction plan. + // + // This method takes a complete transaction plan, so that the client can get a + // consistent set of authentication paths to a common root for the entire + // transaction. (Otherwise, if a client made multiple requests, the wallet + // service could have advanced the state commitment tree between queries). + Witness(context.Context, *WitnessRequest) (*WitnessResponse, error) + // Like `Witness`, but immediately uses the witness data to build (prove) the transaction. + // + // This method is useful for clients that can't easily do proving themselves, either because + // they're not written in Rust and can't easily import the proving code, or because they don't + // have access to proving keys, or some other reason. + // + // This method streams status updates to the caller before finally returning the transaction. + WitnessAndBuild(*WitnessAndBuildRequest, ViewService_WitnessAndBuildServer) error // Authorize a transaction plan and build the transaction. - AuthorizeAndBuild(context.Context, *AuthorizeAndBuildRequest) (*AuthorizeAndBuildResponse, error) + // + // This method is only supported on view servers that have access to a custody + // service. Otherwise, it will fail. + // + // Penumbra's transaction authorization mechanism is designed so transactions + // can be signed and built (proved) concurrently. This allows implementations + // to, e.g., start proving optimistically while presenting the user with an + // approval dialog. + // + // This method streams status updates to the caller before finally returning the transaction. + AuthorizeAndBuild(*AuthorizeAndBuildRequest, ViewService_AuthorizeAndBuildServer) error + // Broadcast a transaction to the network, optionally waiting for full confirmation. + // + // This method streams status updates to the caller before finally returning confirmation. + BroadcastTransaction(*BroadcastTransactionRequest, ViewService_BroadcastTransactionServer) error + // Get delegation tokens for a given address index. Each delegation token will + // be represented by a `ValueView` with the given address index's balance of + // that token. Each `ValueView`'s `extended_metadata` field will contain the + // `ValidatorInfo` of the delegated validator. + DelegationsByAddressIndex(*DelegationsByAddressIndexRequest, ViewService_DelegationsByAddressIndexServer) error } -// UnimplementedViewProtocolServiceServer can be embedded to have forward compatible implementations. -type UnimplementedViewProtocolServiceServer struct { +// UnimplementedViewServiceServer can be embedded to have forward compatible implementations. +type UnimplementedViewServiceServer struct { } -func (*UnimplementedViewProtocolServiceServer) Status(ctx context.Context, req *StatusRequest) (*StatusResponse, error) { +func (*UnimplementedViewServiceServer) Status(ctx context.Context, req *StatusRequest) (*StatusResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Status not implemented") } -func (*UnimplementedViewProtocolServiceServer) StatusStream(req *StatusStreamRequest, srv ViewProtocolService_StatusStreamServer) error { +func (*UnimplementedViewServiceServer) StatusStream(req *StatusStreamRequest, srv ViewService_StatusStreamServer) error { return status.Errorf(codes.Unimplemented, "method StatusStream not implemented") } -func (*UnimplementedViewProtocolServiceServer) Notes(req *NotesRequest, srv ViewProtocolService_NotesServer) error { +func (*UnimplementedViewServiceServer) Notes(req *NotesRequest, srv ViewService_NotesServer) error { return status.Errorf(codes.Unimplemented, "method Notes not implemented") } -func (*UnimplementedViewProtocolServiceServer) NotesForVoting(req *NotesForVotingRequest, srv ViewProtocolService_NotesForVotingServer) error { +func (*UnimplementedViewServiceServer) NotesForVoting(req *NotesForVotingRequest, srv ViewService_NotesForVotingServer) error { return status.Errorf(codes.Unimplemented, "method NotesForVoting not implemented") } -func (*UnimplementedViewProtocolServiceServer) Witness(ctx context.Context, req *WitnessRequest) (*WitnessResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Witness not implemented") -} -func (*UnimplementedViewProtocolServiceServer) WitnessAndBuild(ctx context.Context, req *WitnessAndBuildRequest) (*WitnessAndBuildResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method WitnessAndBuild not implemented") -} -func (*UnimplementedViewProtocolServiceServer) Assets(req *AssetsRequest, srv ViewProtocolService_AssetsServer) error { +func (*UnimplementedViewServiceServer) Assets(req *AssetsRequest, srv ViewService_AssetsServer) error { return status.Errorf(codes.Unimplemented, "method Assets not implemented") } -func (*UnimplementedViewProtocolServiceServer) AppParameters(ctx context.Context, req *AppParametersRequest) (*AppParametersResponse, error) { +func (*UnimplementedViewServiceServer) AssetMetadataById(ctx context.Context, req *AssetMetadataByIdRequest) (*AssetMetadataByIdResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AssetMetadataById not implemented") +} +func (*UnimplementedViewServiceServer) AppParameters(ctx context.Context, req *AppParametersRequest) (*AppParametersResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AppParameters not implemented") } -func (*UnimplementedViewProtocolServiceServer) GasPrices(ctx context.Context, req *GasPricesRequest) (*GasPricesResponse, error) { +func (*UnimplementedViewServiceServer) GasPrices(ctx context.Context, req *GasPricesRequest) (*GasPricesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GasPrices not implemented") } -func (*UnimplementedViewProtocolServiceServer) FMDParameters(ctx context.Context, req *FMDParametersRequest) (*FMDParametersResponse, error) { +func (*UnimplementedViewServiceServer) FMDParameters(ctx context.Context, req *FMDParametersRequest) (*FMDParametersResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method FMDParameters not implemented") } -func (*UnimplementedViewProtocolServiceServer) AddressByIndex(ctx context.Context, req *AddressByIndexRequest) (*AddressByIndexResponse, error) { +func (*UnimplementedViewServiceServer) AddressByIndex(ctx context.Context, req *AddressByIndexRequest) (*AddressByIndexResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AddressByIndex not implemented") } -func (*UnimplementedViewProtocolServiceServer) WalletId(ctx context.Context, req *WalletIdRequest) (*WalletIdResponse, error) { +func (*UnimplementedViewServiceServer) WalletId(ctx context.Context, req *WalletIdRequest) (*WalletIdResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method WalletId not implemented") } -func (*UnimplementedViewProtocolServiceServer) IndexByAddress(ctx context.Context, req *IndexByAddressRequest) (*IndexByAddressResponse, error) { +func (*UnimplementedViewServiceServer) IndexByAddress(ctx context.Context, req *IndexByAddressRequest) (*IndexByAddressResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method IndexByAddress not implemented") } -func (*UnimplementedViewProtocolServiceServer) EphemeralAddress(ctx context.Context, req *EphemeralAddressRequest) (*EphemeralAddressResponse, error) { +func (*UnimplementedViewServiceServer) EphemeralAddress(ctx context.Context, req *EphemeralAddressRequest) (*EphemeralAddressResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method EphemeralAddress not implemented") } -func (*UnimplementedViewProtocolServiceServer) Balances(req *BalancesRequest, srv ViewProtocolService_BalancesServer) error { +func (*UnimplementedViewServiceServer) Balances(req *BalancesRequest, srv ViewService_BalancesServer) error { return status.Errorf(codes.Unimplemented, "method Balances not implemented") } -func (*UnimplementedViewProtocolServiceServer) NoteByCommitment(ctx context.Context, req *NoteByCommitmentRequest) (*NoteByCommitmentResponse, error) { +func (*UnimplementedViewServiceServer) NoteByCommitment(ctx context.Context, req *NoteByCommitmentRequest) (*NoteByCommitmentResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method NoteByCommitment not implemented") } -func (*UnimplementedViewProtocolServiceServer) SwapByCommitment(ctx context.Context, req *SwapByCommitmentRequest) (*SwapByCommitmentResponse, error) { +func (*UnimplementedViewServiceServer) SwapByCommitment(ctx context.Context, req *SwapByCommitmentRequest) (*SwapByCommitmentResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method SwapByCommitment not implemented") } -func (*UnimplementedViewProtocolServiceServer) UnclaimedSwaps(req *UnclaimedSwapsRequest, srv ViewProtocolService_UnclaimedSwapsServer) error { +func (*UnimplementedViewServiceServer) UnclaimedSwaps(req *UnclaimedSwapsRequest, srv ViewService_UnclaimedSwapsServer) error { return status.Errorf(codes.Unimplemented, "method UnclaimedSwaps not implemented") } -func (*UnimplementedViewProtocolServiceServer) NullifierStatus(ctx context.Context, req *NullifierStatusRequest) (*NullifierStatusResponse, error) { +func (*UnimplementedViewServiceServer) NullifierStatus(ctx context.Context, req *NullifierStatusRequest) (*NullifierStatusResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method NullifierStatus not implemented") } -func (*UnimplementedViewProtocolServiceServer) TransactionInfoByHash(ctx context.Context, req *TransactionInfoByHashRequest) (*TransactionInfoByHashResponse, error) { +func (*UnimplementedViewServiceServer) TransactionInfoByHash(ctx context.Context, req *TransactionInfoByHashRequest) (*TransactionInfoByHashResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method TransactionInfoByHash not implemented") } -func (*UnimplementedViewProtocolServiceServer) TransactionInfo(req *TransactionInfoRequest, srv ViewProtocolService_TransactionInfoServer) error { +func (*UnimplementedViewServiceServer) TransactionInfo(req *TransactionInfoRequest, srv ViewService_TransactionInfoServer) error { return status.Errorf(codes.Unimplemented, "method TransactionInfo not implemented") } -func (*UnimplementedViewProtocolServiceServer) TransactionPlanner(ctx context.Context, req *TransactionPlannerRequest) (*TransactionPlannerResponse, error) { +func (*UnimplementedViewServiceServer) OwnedPositionIds(req *OwnedPositionIdsRequest, srv ViewService_OwnedPositionIdsServer) error { + return status.Errorf(codes.Unimplemented, "method OwnedPositionIds not implemented") +} +func (*UnimplementedViewServiceServer) TransactionPlanner(ctx context.Context, req *TransactionPlannerRequest) (*TransactionPlannerResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method TransactionPlanner not implemented") } -func (*UnimplementedViewProtocolServiceServer) BroadcastTransaction(ctx context.Context, req *BroadcastTransactionRequest) (*BroadcastTransactionResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method BroadcastTransaction not implemented") +func (*UnimplementedViewServiceServer) Witness(ctx context.Context, req *WitnessRequest) (*WitnessResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Witness not implemented") } -func (*UnimplementedViewProtocolServiceServer) OwnedPositionIds(req *OwnedPositionIdsRequest, srv ViewProtocolService_OwnedPositionIdsServer) error { - return status.Errorf(codes.Unimplemented, "method OwnedPositionIds not implemented") +func (*UnimplementedViewServiceServer) WitnessAndBuild(req *WitnessAndBuildRequest, srv ViewService_WitnessAndBuildServer) error { + return status.Errorf(codes.Unimplemented, "method WitnessAndBuild not implemented") +} +func (*UnimplementedViewServiceServer) AuthorizeAndBuild(req *AuthorizeAndBuildRequest, srv ViewService_AuthorizeAndBuildServer) error { + return status.Errorf(codes.Unimplemented, "method AuthorizeAndBuild not implemented") +} +func (*UnimplementedViewServiceServer) BroadcastTransaction(req *BroadcastTransactionRequest, srv ViewService_BroadcastTransactionServer) error { + return status.Errorf(codes.Unimplemented, "method BroadcastTransaction not implemented") } -func (*UnimplementedViewProtocolServiceServer) AuthorizeAndBuild(ctx context.Context, req *AuthorizeAndBuildRequest) (*AuthorizeAndBuildResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method AuthorizeAndBuild not implemented") +func (*UnimplementedViewServiceServer) DelegationsByAddressIndex(req *DelegationsByAddressIndexRequest, srv ViewService_DelegationsByAddressIndexServer) error { + return status.Errorf(codes.Unimplemented, "method DelegationsByAddressIndex not implemented") } -func RegisterViewProtocolServiceServer(s grpc1.Server, srv ViewProtocolServiceServer) { - s.RegisterService(&_ViewProtocolService_serviceDesc, srv) +func RegisterViewServiceServer(s grpc1.Server, srv ViewServiceServer) { + s.RegisterService(&_ViewService_serviceDesc, srv) } -func _ViewProtocolService_Status_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { +func _ViewService_Status_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(StatusRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(ViewProtocolServiceServer).Status(ctx, in) + return srv.(ViewServiceServer).Status(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/penumbra.view.v1alpha1.ViewProtocolService/Status", + FullMethod: "/penumbra.view.v1.ViewService/Status", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ViewProtocolServiceServer).Status(ctx, req.(*StatusRequest)) + return srv.(ViewServiceServer).Status(ctx, req.(*StatusRequest)) } return interceptor(ctx, in, info, handler) } -func _ViewProtocolService_StatusStream_Handler(srv interface{}, stream grpc.ServerStream) error { +func _ViewService_StatusStream_Handler(srv interface{}, stream grpc.ServerStream) error { m := new(StatusStreamRequest) if err := stream.RecvMsg(m); err != nil { return err } - return srv.(ViewProtocolServiceServer).StatusStream(m, &viewProtocolServiceStatusStreamServer{stream}) + return srv.(ViewServiceServer).StatusStream(m, &viewServiceStatusStreamServer{stream}) } -type ViewProtocolService_StatusStreamServer interface { +type ViewService_StatusStreamServer interface { Send(*StatusStreamResponse) error grpc.ServerStream } -type viewProtocolServiceStatusStreamServer struct { +type viewServiceStatusStreamServer struct { grpc.ServerStream } -func (x *viewProtocolServiceStatusStreamServer) Send(m *StatusStreamResponse) error { +func (x *viewServiceStatusStreamServer) Send(m *StatusStreamResponse) error { return x.ServerStream.SendMsg(m) } -func _ViewProtocolService_Notes_Handler(srv interface{}, stream grpc.ServerStream) error { +func _ViewService_Notes_Handler(srv interface{}, stream grpc.ServerStream) error { m := new(NotesRequest) if err := stream.RecvMsg(m); err != nil { return err } - return srv.(ViewProtocolServiceServer).Notes(m, &viewProtocolServiceNotesServer{stream}) + return srv.(ViewServiceServer).Notes(m, &viewServiceNotesServer{stream}) } -type ViewProtocolService_NotesServer interface { +type ViewService_NotesServer interface { Send(*NotesResponse) error grpc.ServerStream } -type viewProtocolServiceNotesServer struct { +type viewServiceNotesServer struct { grpc.ServerStream } -func (x *viewProtocolServiceNotesServer) Send(m *NotesResponse) error { +func (x *viewServiceNotesServer) Send(m *NotesResponse) error { return x.ServerStream.SendMsg(m) } -func _ViewProtocolService_NotesForVoting_Handler(srv interface{}, stream grpc.ServerStream) error { +func _ViewService_NotesForVoting_Handler(srv interface{}, stream grpc.ServerStream) error { m := new(NotesForVotingRequest) if err := stream.RecvMsg(m); err != nil { return err } - return srv.(ViewProtocolServiceServer).NotesForVoting(m, &viewProtocolServiceNotesForVotingServer{stream}) + return srv.(ViewServiceServer).NotesForVoting(m, &viewServiceNotesForVotingServer{stream}) } -type ViewProtocolService_NotesForVotingServer interface { +type ViewService_NotesForVotingServer interface { Send(*NotesForVotingResponse) error grpc.ServerStream } -type viewProtocolServiceNotesForVotingServer struct { +type viewServiceNotesForVotingServer struct { grpc.ServerStream } -func (x *viewProtocolServiceNotesForVotingServer) Send(m *NotesForVotingResponse) error { +func (x *viewServiceNotesForVotingServer) Send(m *NotesForVotingResponse) error { return x.ServerStream.SendMsg(m) } -func _ViewProtocolService_Witness_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(WitnessRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ViewProtocolServiceServer).Witness(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/penumbra.view.v1alpha1.ViewProtocolService/Witness", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ViewProtocolServiceServer).Witness(ctx, req.(*WitnessRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ViewProtocolService_WitnessAndBuild_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(WitnessAndBuildRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ViewProtocolServiceServer).WitnessAndBuild(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/penumbra.view.v1alpha1.ViewProtocolService/WitnessAndBuild", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ViewProtocolServiceServer).WitnessAndBuild(ctx, req.(*WitnessAndBuildRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ViewProtocolService_Assets_Handler(srv interface{}, stream grpc.ServerStream) error { +func _ViewService_Assets_Handler(srv interface{}, stream grpc.ServerStream) error { m := new(AssetsRequest) if err := stream.RecvMsg(m); err != nil { return err } - return srv.(ViewProtocolServiceServer).Assets(m, &viewProtocolServiceAssetsServer{stream}) + return srv.(ViewServiceServer).Assets(m, &viewServiceAssetsServer{stream}) } -type ViewProtocolService_AssetsServer interface { +type ViewService_AssetsServer interface { Send(*AssetsResponse) error grpc.ServerStream } -type viewProtocolServiceAssetsServer struct { +type viewServiceAssetsServer struct { grpc.ServerStream } -func (x *viewProtocolServiceAssetsServer) Send(m *AssetsResponse) error { +func (x *viewServiceAssetsServer) Send(m *AssetsResponse) error { return x.ServerStream.SendMsg(m) } -func _ViewProtocolService_AppParameters_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { +func _ViewService_AssetMetadataById_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AssetMetadataByIdRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ViewServiceServer).AssetMetadataById(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/penumbra.view.v1.ViewService/AssetMetadataById", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ViewServiceServer).AssetMetadataById(ctx, req.(*AssetMetadataByIdRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ViewService_AppParameters_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(AppParametersRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(ViewProtocolServiceServer).AppParameters(ctx, in) + return srv.(ViewServiceServer).AppParameters(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/penumbra.view.v1alpha1.ViewProtocolService/AppParameters", + FullMethod: "/penumbra.view.v1.ViewService/AppParameters", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ViewProtocolServiceServer).AppParameters(ctx, req.(*AppParametersRequest)) + return srv.(ViewServiceServer).AppParameters(ctx, req.(*AppParametersRequest)) } return interceptor(ctx, in, info, handler) } -func _ViewProtocolService_GasPrices_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { +func _ViewService_GasPrices_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GasPricesRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(ViewProtocolServiceServer).GasPrices(ctx, in) + return srv.(ViewServiceServer).GasPrices(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/penumbra.view.v1alpha1.ViewProtocolService/GasPrices", + FullMethod: "/penumbra.view.v1.ViewService/GasPrices", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ViewProtocolServiceServer).GasPrices(ctx, req.(*GasPricesRequest)) + return srv.(ViewServiceServer).GasPrices(ctx, req.(*GasPricesRequest)) } return interceptor(ctx, in, info, handler) } -func _ViewProtocolService_FMDParameters_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { +func _ViewService_FMDParameters_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(FMDParametersRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(ViewProtocolServiceServer).FMDParameters(ctx, in) + return srv.(ViewServiceServer).FMDParameters(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/penumbra.view.v1alpha1.ViewProtocolService/FMDParameters", + FullMethod: "/penumbra.view.v1.ViewService/FMDParameters", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ViewProtocolServiceServer).FMDParameters(ctx, req.(*FMDParametersRequest)) + return srv.(ViewServiceServer).FMDParameters(ctx, req.(*FMDParametersRequest)) } return interceptor(ctx, in, info, handler) } -func _ViewProtocolService_AddressByIndex_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { +func _ViewService_AddressByIndex_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(AddressByIndexRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(ViewProtocolServiceServer).AddressByIndex(ctx, in) + return srv.(ViewServiceServer).AddressByIndex(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/penumbra.view.v1alpha1.ViewProtocolService/AddressByIndex", + FullMethod: "/penumbra.view.v1.ViewService/AddressByIndex", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ViewProtocolServiceServer).AddressByIndex(ctx, req.(*AddressByIndexRequest)) + return srv.(ViewServiceServer).AddressByIndex(ctx, req.(*AddressByIndexRequest)) } return interceptor(ctx, in, info, handler) } -func _ViewProtocolService_WalletId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { +func _ViewService_WalletId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(WalletIdRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(ViewProtocolServiceServer).WalletId(ctx, in) + return srv.(ViewServiceServer).WalletId(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/penumbra.view.v1alpha1.ViewProtocolService/WalletId", + FullMethod: "/penumbra.view.v1.ViewService/WalletId", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ViewProtocolServiceServer).WalletId(ctx, req.(*WalletIdRequest)) + return srv.(ViewServiceServer).WalletId(ctx, req.(*WalletIdRequest)) } return interceptor(ctx, in, info, handler) } -func _ViewProtocolService_IndexByAddress_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { +func _ViewService_IndexByAddress_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(IndexByAddressRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(ViewProtocolServiceServer).IndexByAddress(ctx, in) + return srv.(ViewServiceServer).IndexByAddress(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/penumbra.view.v1alpha1.ViewProtocolService/IndexByAddress", + FullMethod: "/penumbra.view.v1.ViewService/IndexByAddress", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ViewProtocolServiceServer).IndexByAddress(ctx, req.(*IndexByAddressRequest)) + return srv.(ViewServiceServer).IndexByAddress(ctx, req.(*IndexByAddressRequest)) } return interceptor(ctx, in, info, handler) } -func _ViewProtocolService_EphemeralAddress_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { +func _ViewService_EphemeralAddress_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(EphemeralAddressRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(ViewProtocolServiceServer).EphemeralAddress(ctx, in) + return srv.(ViewServiceServer).EphemeralAddress(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/penumbra.view.v1alpha1.ViewProtocolService/EphemeralAddress", + FullMethod: "/penumbra.view.v1.ViewService/EphemeralAddress", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ViewProtocolServiceServer).EphemeralAddress(ctx, req.(*EphemeralAddressRequest)) + return srv.(ViewServiceServer).EphemeralAddress(ctx, req.(*EphemeralAddressRequest)) } return interceptor(ctx, in, info, handler) } -func _ViewProtocolService_Balances_Handler(srv interface{}, stream grpc.ServerStream) error { +func _ViewService_Balances_Handler(srv interface{}, stream grpc.ServerStream) error { m := new(BalancesRequest) if err := stream.RecvMsg(m); err != nil { return err } - return srv.(ViewProtocolServiceServer).Balances(m, &viewProtocolServiceBalancesServer{stream}) + return srv.(ViewServiceServer).Balances(m, &viewServiceBalancesServer{stream}) } -type ViewProtocolService_BalancesServer interface { +type ViewService_BalancesServer interface { Send(*BalancesResponse) error grpc.ServerStream } -type viewProtocolServiceBalancesServer struct { +type viewServiceBalancesServer struct { grpc.ServerStream } -func (x *viewProtocolServiceBalancesServer) Send(m *BalancesResponse) error { +func (x *viewServiceBalancesServer) Send(m *BalancesResponse) error { return x.ServerStream.SendMsg(m) } -func _ViewProtocolService_NoteByCommitment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { +func _ViewService_NoteByCommitment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(NoteByCommitmentRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(ViewProtocolServiceServer).NoteByCommitment(ctx, in) + return srv.(ViewServiceServer).NoteByCommitment(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/penumbra.view.v1alpha1.ViewProtocolService/NoteByCommitment", + FullMethod: "/penumbra.view.v1.ViewService/NoteByCommitment", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ViewProtocolServiceServer).NoteByCommitment(ctx, req.(*NoteByCommitmentRequest)) + return srv.(ViewServiceServer).NoteByCommitment(ctx, req.(*NoteByCommitmentRequest)) } return interceptor(ctx, in, info, handler) } -func _ViewProtocolService_SwapByCommitment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { +func _ViewService_SwapByCommitment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(SwapByCommitmentRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(ViewProtocolServiceServer).SwapByCommitment(ctx, in) + return srv.(ViewServiceServer).SwapByCommitment(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/penumbra.view.v1alpha1.ViewProtocolService/SwapByCommitment", + FullMethod: "/penumbra.view.v1.ViewService/SwapByCommitment", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ViewProtocolServiceServer).SwapByCommitment(ctx, req.(*SwapByCommitmentRequest)) + return srv.(ViewServiceServer).SwapByCommitment(ctx, req.(*SwapByCommitmentRequest)) } return interceptor(ctx, in, info, handler) } -func _ViewProtocolService_UnclaimedSwaps_Handler(srv interface{}, stream grpc.ServerStream) error { +func _ViewService_UnclaimedSwaps_Handler(srv interface{}, stream grpc.ServerStream) error { m := new(UnclaimedSwapsRequest) if err := stream.RecvMsg(m); err != nil { return err } - return srv.(ViewProtocolServiceServer).UnclaimedSwaps(m, &viewProtocolServiceUnclaimedSwapsServer{stream}) + return srv.(ViewServiceServer).UnclaimedSwaps(m, &viewServiceUnclaimedSwapsServer{stream}) } -type ViewProtocolService_UnclaimedSwapsServer interface { +type ViewService_UnclaimedSwapsServer interface { Send(*UnclaimedSwapsResponse) error grpc.ServerStream } -type viewProtocolServiceUnclaimedSwapsServer struct { +type viewServiceUnclaimedSwapsServer struct { grpc.ServerStream } -func (x *viewProtocolServiceUnclaimedSwapsServer) Send(m *UnclaimedSwapsResponse) error { +func (x *viewServiceUnclaimedSwapsServer) Send(m *UnclaimedSwapsResponse) error { return x.ServerStream.SendMsg(m) } -func _ViewProtocolService_NullifierStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { +func _ViewService_NullifierStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(NullifierStatusRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(ViewProtocolServiceServer).NullifierStatus(ctx, in) + return srv.(ViewServiceServer).NullifierStatus(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/penumbra.view.v1alpha1.ViewProtocolService/NullifierStatus", + FullMethod: "/penumbra.view.v1.ViewService/NullifierStatus", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ViewProtocolServiceServer).NullifierStatus(ctx, req.(*NullifierStatusRequest)) + return srv.(ViewServiceServer).NullifierStatus(ctx, req.(*NullifierStatusRequest)) } return interceptor(ctx, in, info, handler) } -func _ViewProtocolService_TransactionInfoByHash_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { +func _ViewService_TransactionInfoByHash_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(TransactionInfoByHashRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(ViewProtocolServiceServer).TransactionInfoByHash(ctx, in) + return srv.(ViewServiceServer).TransactionInfoByHash(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/penumbra.view.v1alpha1.ViewProtocolService/TransactionInfoByHash", + FullMethod: "/penumbra.view.v1.ViewService/TransactionInfoByHash", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ViewProtocolServiceServer).TransactionInfoByHash(ctx, req.(*TransactionInfoByHashRequest)) + return srv.(ViewServiceServer).TransactionInfoByHash(ctx, req.(*TransactionInfoByHashRequest)) } return interceptor(ctx, in, info, handler) } -func _ViewProtocolService_TransactionInfo_Handler(srv interface{}, stream grpc.ServerStream) error { +func _ViewService_TransactionInfo_Handler(srv interface{}, stream grpc.ServerStream) error { m := new(TransactionInfoRequest) if err := stream.RecvMsg(m); err != nil { return err } - return srv.(ViewProtocolServiceServer).TransactionInfo(m, &viewProtocolServiceTransactionInfoServer{stream}) + return srv.(ViewServiceServer).TransactionInfo(m, &viewServiceTransactionInfoServer{stream}) } -type ViewProtocolService_TransactionInfoServer interface { +type ViewService_TransactionInfoServer interface { Send(*TransactionInfoResponse) error grpc.ServerStream } -type viewProtocolServiceTransactionInfoServer struct { +type viewServiceTransactionInfoServer struct { + grpc.ServerStream +} + +func (x *viewServiceTransactionInfoServer) Send(m *TransactionInfoResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _ViewService_OwnedPositionIds_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(OwnedPositionIdsRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(ViewServiceServer).OwnedPositionIds(m, &viewServiceOwnedPositionIdsServer{stream}) +} + +type ViewService_OwnedPositionIdsServer interface { + Send(*OwnedPositionIdsResponse) error + grpc.ServerStream +} + +type viewServiceOwnedPositionIdsServer struct { grpc.ServerStream } -func (x *viewProtocolServiceTransactionInfoServer) Send(m *TransactionInfoResponse) error { +func (x *viewServiceOwnedPositionIdsServer) Send(m *OwnedPositionIdsResponse) error { return x.ServerStream.SendMsg(m) } -func _ViewProtocolService_TransactionPlanner_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { +func _ViewService_TransactionPlanner_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(TransactionPlannerRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(ViewProtocolServiceServer).TransactionPlanner(ctx, in) + return srv.(ViewServiceServer).TransactionPlanner(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/penumbra.view.v1alpha1.ViewProtocolService/TransactionPlanner", + FullMethod: "/penumbra.view.v1.ViewService/TransactionPlanner", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ViewProtocolServiceServer).TransactionPlanner(ctx, req.(*TransactionPlannerRequest)) + return srv.(ViewServiceServer).TransactionPlanner(ctx, req.(*TransactionPlannerRequest)) } return interceptor(ctx, in, info, handler) } -func _ViewProtocolService_BroadcastTransaction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(BroadcastTransactionRequest) +func _ViewService_Witness_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(WitnessRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(ViewProtocolServiceServer).BroadcastTransaction(ctx, in) + return srv.(ViewServiceServer).Witness(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/penumbra.view.v1alpha1.ViewProtocolService/BroadcastTransaction", + FullMethod: "/penumbra.view.v1.ViewService/Witness", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ViewProtocolServiceServer).BroadcastTransaction(ctx, req.(*BroadcastTransactionRequest)) + return srv.(ViewServiceServer).Witness(ctx, req.(*WitnessRequest)) } return interceptor(ctx, in, info, handler) } -func _ViewProtocolService_OwnedPositionIds_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(OwnedPositionIdsRequest) +func _ViewService_WitnessAndBuild_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(WitnessAndBuildRequest) if err := stream.RecvMsg(m); err != nil { return err } - return srv.(ViewProtocolServiceServer).OwnedPositionIds(m, &viewProtocolServiceOwnedPositionIdsServer{stream}) + return srv.(ViewServiceServer).WitnessAndBuild(m, &viewServiceWitnessAndBuildServer{stream}) } -type ViewProtocolService_OwnedPositionIdsServer interface { - Send(*OwnedPositionIdsResponse) error +type ViewService_WitnessAndBuildServer interface { + Send(*WitnessAndBuildResponse) error grpc.ServerStream } -type viewProtocolServiceOwnedPositionIdsServer struct { +type viewServiceWitnessAndBuildServer struct { grpc.ServerStream } -func (x *viewProtocolServiceOwnedPositionIdsServer) Send(m *OwnedPositionIdsResponse) error { +func (x *viewServiceWitnessAndBuildServer) Send(m *WitnessAndBuildResponse) error { return x.ServerStream.SendMsg(m) } -func _ViewProtocolService_AuthorizeAndBuild_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(AuthorizeAndBuildRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ViewProtocolServiceServer).AuthorizeAndBuild(ctx, in) +func _ViewService_AuthorizeAndBuild_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(AuthorizeAndBuildRequest) + if err := stream.RecvMsg(m); err != nil { + return err } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/penumbra.view.v1alpha1.ViewProtocolService/AuthorizeAndBuild", + return srv.(ViewServiceServer).AuthorizeAndBuild(m, &viewServiceAuthorizeAndBuildServer{stream}) +} + +type ViewService_AuthorizeAndBuildServer interface { + Send(*AuthorizeAndBuildResponse) error + grpc.ServerStream +} + +type viewServiceAuthorizeAndBuildServer struct { + grpc.ServerStream +} + +func (x *viewServiceAuthorizeAndBuildServer) Send(m *AuthorizeAndBuildResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _ViewService_BroadcastTransaction_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(BroadcastTransactionRequest) + if err := stream.RecvMsg(m); err != nil { + return err } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ViewProtocolServiceServer).AuthorizeAndBuild(ctx, req.(*AuthorizeAndBuildRequest)) + return srv.(ViewServiceServer).BroadcastTransaction(m, &viewServiceBroadcastTransactionServer{stream}) +} + +type ViewService_BroadcastTransactionServer interface { + Send(*BroadcastTransactionResponse) error + grpc.ServerStream +} + +type viewServiceBroadcastTransactionServer struct { + grpc.ServerStream +} + +func (x *viewServiceBroadcastTransactionServer) Send(m *BroadcastTransactionResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _ViewService_DelegationsByAddressIndex_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(DelegationsByAddressIndexRequest) + if err := stream.RecvMsg(m); err != nil { + return err } - return interceptor(ctx, in, info, handler) + return srv.(ViewServiceServer).DelegationsByAddressIndex(m, &viewServiceDelegationsByAddressIndexServer{stream}) +} + +type ViewService_DelegationsByAddressIndexServer interface { + Send(*DelegationsByAddressIndexResponse) error + grpc.ServerStream +} + +type viewServiceDelegationsByAddressIndexServer struct { + grpc.ServerStream +} + +func (x *viewServiceDelegationsByAddressIndexServer) Send(m *DelegationsByAddressIndexResponse) error { + return x.ServerStream.SendMsg(m) } -var _ViewProtocolService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "penumbra.view.v1alpha1.ViewProtocolService", - HandlerType: (*ViewProtocolServiceServer)(nil), +var _ViewService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "penumbra.view.v1.ViewService", + HandlerType: (*ViewServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Status", - Handler: _ViewProtocolService_Status_Handler, + Handler: _ViewService_Status_Handler, }, { - MethodName: "Witness", - Handler: _ViewProtocolService_Witness_Handler, - }, - { - MethodName: "WitnessAndBuild", - Handler: _ViewProtocolService_WitnessAndBuild_Handler, + MethodName: "AssetMetadataById", + Handler: _ViewService_AssetMetadataById_Handler, }, { MethodName: "AppParameters", - Handler: _ViewProtocolService_AppParameters_Handler, + Handler: _ViewService_AppParameters_Handler, }, { MethodName: "GasPrices", - Handler: _ViewProtocolService_GasPrices_Handler, + Handler: _ViewService_GasPrices_Handler, }, { MethodName: "FMDParameters", - Handler: _ViewProtocolService_FMDParameters_Handler, + Handler: _ViewService_FMDParameters_Handler, }, { MethodName: "AddressByIndex", - Handler: _ViewProtocolService_AddressByIndex_Handler, + Handler: _ViewService_AddressByIndex_Handler, }, { MethodName: "WalletId", - Handler: _ViewProtocolService_WalletId_Handler, + Handler: _ViewService_WalletId_Handler, }, { MethodName: "IndexByAddress", - Handler: _ViewProtocolService_IndexByAddress_Handler, + Handler: _ViewService_IndexByAddress_Handler, }, { MethodName: "EphemeralAddress", - Handler: _ViewProtocolService_EphemeralAddress_Handler, + Handler: _ViewService_EphemeralAddress_Handler, }, { MethodName: "NoteByCommitment", - Handler: _ViewProtocolService_NoteByCommitment_Handler, + Handler: _ViewService_NoteByCommitment_Handler, }, { MethodName: "SwapByCommitment", - Handler: _ViewProtocolService_SwapByCommitment_Handler, + Handler: _ViewService_SwapByCommitment_Handler, }, { MethodName: "NullifierStatus", - Handler: _ViewProtocolService_NullifierStatus_Handler, + Handler: _ViewService_NullifierStatus_Handler, }, { MethodName: "TransactionInfoByHash", - Handler: _ViewProtocolService_TransactionInfoByHash_Handler, + Handler: _ViewService_TransactionInfoByHash_Handler, }, { MethodName: "TransactionPlanner", - Handler: _ViewProtocolService_TransactionPlanner_Handler, - }, - { - MethodName: "BroadcastTransaction", - Handler: _ViewProtocolService_BroadcastTransaction_Handler, + Handler: _ViewService_TransactionPlanner_Handler, }, { - MethodName: "AuthorizeAndBuild", - Handler: _ViewProtocolService_AuthorizeAndBuild_Handler, + MethodName: "Witness", + Handler: _ViewService_Witness_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "StatusStream", - Handler: _ViewProtocolService_StatusStream_Handler, + Handler: _ViewService_StatusStream_Handler, ServerStreams: true, }, { StreamName: "Notes", - Handler: _ViewProtocolService_Notes_Handler, + Handler: _ViewService_Notes_Handler, ServerStreams: true, }, { StreamName: "NotesForVoting", - Handler: _ViewProtocolService_NotesForVoting_Handler, + Handler: _ViewService_NotesForVoting_Handler, ServerStreams: true, }, { StreamName: "Assets", - Handler: _ViewProtocolService_Assets_Handler, + Handler: _ViewService_Assets_Handler, ServerStreams: true, }, { StreamName: "Balances", - Handler: _ViewProtocolService_Balances_Handler, + Handler: _ViewService_Balances_Handler, ServerStreams: true, }, { StreamName: "UnclaimedSwaps", - Handler: _ViewProtocolService_UnclaimedSwaps_Handler, + Handler: _ViewService_UnclaimedSwaps_Handler, ServerStreams: true, }, { StreamName: "TransactionInfo", - Handler: _ViewProtocolService_TransactionInfo_Handler, + Handler: _ViewService_TransactionInfo_Handler, ServerStreams: true, }, { StreamName: "OwnedPositionIds", - Handler: _ViewProtocolService_OwnedPositionIds_Handler, + Handler: _ViewService_OwnedPositionIds_Handler, + ServerStreams: true, + }, + { + StreamName: "WitnessAndBuild", + Handler: _ViewService_WitnessAndBuild_Handler, + ServerStreams: true, + }, + { + StreamName: "AuthorizeAndBuild", + Handler: _ViewService_AuthorizeAndBuild_Handler, + ServerStreams: true, + }, + { + StreamName: "BroadcastTransaction", + Handler: _ViewService_BroadcastTransaction_Handler, + ServerStreams: true, + }, + { + StreamName: "DelegationsByAddressIndex", + Handler: _ViewService_DelegationsByAddressIndex_Handler, ServerStreams: true, }, }, - Metadata: "penumbra/view/v1alpha1/view.proto", + Metadata: "penumbra/view/v1/view.proto", } func (m *AuthorizeAndBuildRequest) Marshal() (dAtA []byte, err error) { @@ -4822,18 +5910,6 @@ func (m *AuthorizeAndBuildRequest) MarshalToSizedBuffer(dAtA []byte) (int, error _ = i var l int _ = l - if m.AuthorizationData != nil { - { - size, err := m.AuthorizationData.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintView(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } if m.TransactionPlan != nil { { size, err := m.TransactionPlan.MarshalToSizedBuffer(dAtA[:i]) @@ -4869,24 +5945,127 @@ func (m *AuthorizeAndBuildResponse) MarshalToSizedBuffer(dAtA []byte) (int, erro _ = i var l int _ = l - if m.Transaction != nil { + if m.Status != nil { { - size, err := m.Transaction.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { + size := m.Status.Size() + i -= size + if _, err := m.Status.MarshalTo(dAtA[i:]); err != nil { return 0, err } - i -= size - i = encodeVarintView(dAtA, i, uint64(size)) } - i-- - dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *BroadcastTransactionRequest) Marshal() (dAtA []byte, err error) { +func (m *AuthorizeAndBuildResponse_BuildProgress_) MarshalTo(dAtA []byte) (int, error) { size := m.Size() - dAtA = make([]byte, size) + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AuthorizeAndBuildResponse_BuildProgress_) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.BuildProgress != nil { + { + size, err := m.BuildProgress.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintView(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} +func (m *AuthorizeAndBuildResponse_Complete_) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AuthorizeAndBuildResponse_Complete_) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Complete != nil { + { + size, err := m.Complete.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintView(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + return len(dAtA) - i, nil +} +func (m *AuthorizeAndBuildResponse_BuildProgress) 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 *AuthorizeAndBuildResponse_BuildProgress) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AuthorizeAndBuildResponse_BuildProgress) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Progress != 0 { + i -= 4 + encoding_binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.Progress)))) + i-- + dAtA[i] = 0xd + } + return len(dAtA) - i, nil +} + +func (m *AuthorizeAndBuildResponse_Complete) 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 *AuthorizeAndBuildResponse_Complete) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AuthorizeAndBuildResponse_Complete) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Transaction != nil { + { + size, err := m.Transaction.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintView(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *BroadcastTransactionRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err @@ -4945,6 +6124,115 @@ func (m *BroadcastTransactionResponse) MarshalTo(dAtA []byte) (int, error) { } func (m *BroadcastTransactionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Status != nil { + { + size := m.Status.Size() + i -= size + if _, err := m.Status.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } + } + return len(dAtA) - i, nil +} + +func (m *BroadcastTransactionResponse_BroadcastSuccess_) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BroadcastTransactionResponse_BroadcastSuccess_) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.BroadcastSuccess != nil { + { + size, err := m.BroadcastSuccess.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintView(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} +func (m *BroadcastTransactionResponse_Confirmed_) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BroadcastTransactionResponse_Confirmed_) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Confirmed != nil { + { + size, err := m.Confirmed.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintView(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + return len(dAtA) - i, nil +} +func (m *BroadcastTransactionResponse_BroadcastSuccess) 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 *BroadcastTransactionResponse_BroadcastSuccess) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BroadcastTransactionResponse_BroadcastSuccess) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Id != nil { + { + size, err := m.Id.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintView(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *BroadcastTransactionResponse_Confirmed) 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 *BroadcastTransactionResponse_Confirmed) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BroadcastTransactionResponse_Confirmed) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -4989,6 +6277,36 @@ func (m *TransactionPlannerRequest) MarshalToSizedBuffer(dAtA []byte) (int, erro _ = i var l int _ = l + if m.Epoch != nil { + { + size, err := m.Epoch.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintView(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xc + i-- + dAtA[i] = 0xca + } + if m.EpochIndex != 0 { + i = encodeVarintView(dAtA, i, uint64(m.EpochIndex)) + i-- + dAtA[i] = 0xc + i-- + dAtA[i] = 0xc0 + } + if m.FeeMode != nil { + { + size := m.FeeMode.Size() + i -= size + if _, err := m.FeeMode.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } + } if len(m.PositionWithdraws) > 0 { for iNdEx := len(m.PositionWithdraws) - 1; iNdEx >= 0; iNdEx-- { { @@ -5069,6 +6387,22 @@ func (m *TransactionPlannerRequest) MarshalToSizedBuffer(dAtA []byte) (int, erro dAtA[i] = 0xe2 } } + if len(m.UndelegationClaims) > 0 { + for iNdEx := len(m.UndelegationClaims) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.UndelegationClaims[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintView(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + } if len(m.Undelegations) > 0 { for iNdEx := len(m.Undelegations) - 1; iNdEx >= 0; iNdEx-- { { @@ -5173,9 +6507,24 @@ func (m *TransactionPlannerRequest) MarshalToSizedBuffer(dAtA []byte) (int, erro i-- dAtA[i] = 0x1a } - if m.Fee != nil { + if m.ExpiryHeight != 0 { + i = encodeVarintView(dAtA, i, uint64(m.ExpiryHeight)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *TransactionPlannerRequest_AutoFee) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TransactionPlannerRequest_AutoFee) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.AutoFee != nil { { - size, err := m.Fee.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.AutoFee.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -5183,16 +6532,35 @@ func (m *TransactionPlannerRequest) MarshalToSizedBuffer(dAtA []byte) (int, erro i = encodeVarintView(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x12 - } - if m.ExpiryHeight != 0 { - i = encodeVarintView(dAtA, i, uint64(m.ExpiryHeight)) + dAtA[i] = 0x6 i-- - dAtA[i] = 0x8 + dAtA[i] = 0xa2 } return len(dAtA) - i, nil } +func (m *TransactionPlannerRequest_ManualFee) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} +func (m *TransactionPlannerRequest_ManualFee) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.ManualFee != nil { + { + size, err := m.ManualFee.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintView(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xaa + } + return len(dAtA) - i, nil +} func (m *TransactionPlannerRequest_Output) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -5440,7 +6808,7 @@ func (m *TransactionPlannerRequest_Undelegate) MarshalToSizedBuffer(dAtA []byte) return len(dAtA) - i, nil } -func (m *TransactionPlannerRequest_PositionOpen) Marshal() (dAtA []byte, err error) { +func (m *TransactionPlannerRequest_UndelegateClaim) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5450,17 +6818,86 @@ func (m *TransactionPlannerRequest_PositionOpen) Marshal() (dAtA []byte, err err return dAtA[:n], nil } -func (m *TransactionPlannerRequest_PositionOpen) MarshalTo(dAtA []byte) (int, error) { +func (m *TransactionPlannerRequest_UndelegateClaim) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *TransactionPlannerRequest_PositionOpen) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *TransactionPlannerRequest_UndelegateClaim) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.Position != nil { + if m.UnbondingStartHeight != 0 { + i = encodeVarintView(dAtA, i, uint64(m.UnbondingStartHeight)) + i-- + dAtA[i] = 0x28 + } + if m.UnbondingAmount != nil { + { + size, err := m.UnbondingAmount.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintView(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + if m.Penalty != nil { + { + size, err := m.Penalty.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintView(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if m.StartEpochIndex != 0 { + i = encodeVarintView(dAtA, i, uint64(m.StartEpochIndex)) + i-- + dAtA[i] = 0x10 + } + if m.ValidatorIdentity != nil { + { + size, err := m.ValidatorIdentity.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintView(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *TransactionPlannerRequest_PositionOpen) 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 *TransactionPlannerRequest_PositionOpen) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TransactionPlannerRequest_PositionOpen) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Position != nil { { size, err := m.Position.MarshalToSizedBuffer(dAtA[:i]) if err != nil { @@ -5822,16 +7259,6 @@ func (m *EphemeralAddressRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) _ = i var l int _ = l - if m.DisplayConfirm { - i-- - if m.DisplayConfirm { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x10 - } if m.AddressIndex != nil { { size, err := m.AddressIndex.MarshalToSizedBuffer(dAtA[:i]) @@ -5949,6 +7376,30 @@ func (m *BalancesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if m.BalanceView != nil { + { + size, err := m.BalanceView.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintView(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + if m.AccountAddress != nil { + { + size, err := m.AccountAddress.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintView(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } if m.Balance != nil { { size, err := m.Balance.MarshalToSizedBuffer(dAtA[:i]) @@ -6244,20 +7695,6 @@ func (m *WitnessRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x1a } - if len(m.NoteCommitments) > 0 { - for iNdEx := len(m.NoteCommitments) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.NoteCommitments[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintView(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } return len(dAtA) - i, nil } @@ -6359,6 +7796,109 @@ func (m *WitnessAndBuildResponse) MarshalTo(dAtA []byte) (int, error) { } func (m *WitnessAndBuildResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Status != nil { + { + size := m.Status.Size() + i -= size + if _, err := m.Status.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } + } + return len(dAtA) - i, nil +} + +func (m *WitnessAndBuildResponse_BuildProgress_) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *WitnessAndBuildResponse_BuildProgress_) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.BuildProgress != nil { + { + size, err := m.BuildProgress.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintView(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} +func (m *WitnessAndBuildResponse_Complete_) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *WitnessAndBuildResponse_Complete_) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Complete != nil { + { + size, err := m.Complete.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintView(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + return len(dAtA) - i, nil +} +func (m *WitnessAndBuildResponse_BuildProgress) 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 *WitnessAndBuildResponse_BuildProgress) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *WitnessAndBuildResponse_BuildProgress) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Progress != 0 { + i -= 4 + encoding_binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.Progress)))) + i-- + dAtA[i] = 0xd + } + return len(dAtA) - i, nil +} + +func (m *WitnessAndBuildResponse_Complete) 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 *WitnessAndBuildResponse_Complete) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *WitnessAndBuildResponse_Complete) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -7296,6 +8836,18 @@ func (m *SpendableNoteRecord) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if m.ReturnAddress != nil { + { + size, err := m.ReturnAddress.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintView(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x4a + } if m.Source != nil { { size, err := m.Source.MarshalToSizedBuffer(dAtA[:i]) @@ -7549,64 +9101,302 @@ func (m *OwnedPositionIdsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error return len(dAtA) - i, nil } -func encodeVarintView(dAtA []byte, offset int, v uint64) int { - offset -= sovView(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *AuthorizeAndBuildRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.TransactionPlan != nil { - l = m.TransactionPlan.Size() - n += 1 + l + sovView(uint64(l)) - } - if m.AuthorizationData != nil { - l = m.AuthorizationData.Size() - n += 1 + l + sovView(uint64(l)) +func (m *AssetMetadataByIdRequest) 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 n + return dAtA[:n], nil } -func (m *AuthorizeAndBuildResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Transaction != nil { - l = m.Transaction.Size() - n += 1 + l + sovView(uint64(l)) - } - return n +func (m *AssetMetadataByIdRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *BroadcastTransactionRequest) Size() (n int) { - if m == nil { - return 0 - } +func (m *AssetMetadataByIdRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.Transaction != nil { - l = m.Transaction.Size() - n += 1 + l + sovView(uint64(l)) - } - if m.AwaitDetection { - n += 2 + if m.AssetId != nil { + { + size, err := m.AssetId.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintView(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 } - return n + return len(dAtA) - i, nil +} + +func (m *AssetMetadataByIdResponse) 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 *AssetMetadataByIdResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AssetMetadataByIdResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.DenomMetadata != nil { + { + size, err := m.DenomMetadata.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintView(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *DelegationsByAddressIndexRequest) 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 *DelegationsByAddressIndexRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DelegationsByAddressIndexRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Filter != 0 { + i = encodeVarintView(dAtA, i, uint64(m.Filter)) + i-- + dAtA[i] = 0x10 + } + if m.AddressIndex != nil { + { + size, err := m.AddressIndex.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintView(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *DelegationsByAddressIndexResponse) 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 *DelegationsByAddressIndexResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DelegationsByAddressIndexResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.ValueView != nil { + { + size, err := m.ValueView.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintView(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintView(dAtA []byte, offset int, v uint64) int { + offset -= sovView(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *AuthorizeAndBuildRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.TransactionPlan != nil { + l = m.TransactionPlan.Size() + n += 1 + l + sovView(uint64(l)) + } + return n +} + +func (m *AuthorizeAndBuildResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Status != nil { + n += m.Status.Size() + } + return n +} + +func (m *AuthorizeAndBuildResponse_BuildProgress_) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.BuildProgress != nil { + l = m.BuildProgress.Size() + n += 1 + l + sovView(uint64(l)) + } + return n +} +func (m *AuthorizeAndBuildResponse_Complete_) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Complete != nil { + l = m.Complete.Size() + n += 1 + l + sovView(uint64(l)) + } + return n +} +func (m *AuthorizeAndBuildResponse_BuildProgress) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Progress != 0 { + n += 5 + } + return n +} + +func (m *AuthorizeAndBuildResponse_Complete) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Transaction != nil { + l = m.Transaction.Size() + n += 1 + l + sovView(uint64(l)) + } + return n +} + +func (m *BroadcastTransactionRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Transaction != nil { + l = m.Transaction.Size() + n += 1 + l + sovView(uint64(l)) + } + if m.AwaitDetection { + n += 2 + } + return n } func (m *BroadcastTransactionResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Status != nil { + n += m.Status.Size() + } + return n +} + +func (m *BroadcastTransactionResponse_BroadcastSuccess_) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.BroadcastSuccess != nil { + l = m.BroadcastSuccess.Size() + n += 1 + l + sovView(uint64(l)) + } + return n +} +func (m *BroadcastTransactionResponse_Confirmed_) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Confirmed != nil { + l = m.Confirmed.Size() + n += 1 + l + sovView(uint64(l)) + } + return n +} +func (m *BroadcastTransactionResponse_BroadcastSuccess) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Id != nil { + l = m.Id.Size() + n += 1 + l + sovView(uint64(l)) + } + return n +} + +func (m *BroadcastTransactionResponse_Confirmed) Size() (n int) { if m == nil { return 0 } @@ -7631,10 +9421,6 @@ func (m *TransactionPlannerRequest) Size() (n int) { if m.ExpiryHeight != 0 { n += 1 + sovView(uint64(m.ExpiryHeight)) } - if m.Fee != nil { - l = m.Fee.Size() - n += 1 + l + sovView(uint64(l)) - } if m.Memo != nil { l = m.Memo.Size() n += 1 + l + sovView(uint64(l)) @@ -7673,6 +9459,12 @@ func (m *TransactionPlannerRequest) Size() (n int) { n += 2 + l + sovView(uint64(l)) } } + if len(m.UndelegationClaims) > 0 { + for _, e := range m.UndelegationClaims { + l = e.Size() + n += 2 + l + sovView(uint64(l)) + } + } if len(m.IbcRelayActions) > 0 { for _, e := range m.IbcRelayActions { l = e.Size() @@ -7703,9 +9495,43 @@ func (m *TransactionPlannerRequest) Size() (n int) { n += 2 + l + sovView(uint64(l)) } } + if m.FeeMode != nil { + n += m.FeeMode.Size() + } + if m.EpochIndex != 0 { + n += 2 + sovView(uint64(m.EpochIndex)) + } + if m.Epoch != nil { + l = m.Epoch.Size() + n += 2 + l + sovView(uint64(l)) + } return n } +func (m *TransactionPlannerRequest_AutoFee) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.AutoFee != nil { + l = m.AutoFee.Size() + n += 2 + l + sovView(uint64(l)) + } + return n +} +func (m *TransactionPlannerRequest_ManualFee) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ManualFee != nil { + l = m.ManualFee.Size() + n += 2 + l + sovView(uint64(l)) + } + return n +} func (m *TransactionPlannerRequest_Output) Size() (n int) { if m == nil { return 0 @@ -7795,17 +9621,44 @@ func (m *TransactionPlannerRequest_Undelegate) Size() (n int) { return n } -func (m *TransactionPlannerRequest_PositionOpen) Size() (n int) { +func (m *TransactionPlannerRequest_UndelegateClaim) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.Position != nil { - l = m.Position.Size() + if m.ValidatorIdentity != nil { + l = m.ValidatorIdentity.Size() n += 1 + l + sovView(uint64(l)) } - return n + if m.StartEpochIndex != 0 { + n += 1 + sovView(uint64(m.StartEpochIndex)) + } + if m.Penalty != nil { + l = m.Penalty.Size() + n += 1 + l + sovView(uint64(l)) + } + if m.UnbondingAmount != nil { + l = m.UnbondingAmount.Size() + n += 1 + l + sovView(uint64(l)) + } + if m.UnbondingStartHeight != 0 { + n += 1 + sovView(uint64(m.UnbondingStartHeight)) + } + return n +} + +func (m *TransactionPlannerRequest_PositionOpen) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Position != nil { + l = m.Position.Size() + n += 1 + l + sovView(uint64(l)) + } + return n } func (m *TransactionPlannerRequest_PositionClose) Size() (n int) { @@ -7939,9 +9792,6 @@ func (m *EphemeralAddressRequest) Size() (n int) { l = m.AddressIndex.Size() n += 1 + l + sovView(uint64(l)) } - if m.DisplayConfirm { - n += 2 - } return n } @@ -7989,6 +9839,14 @@ func (m *BalancesResponse) Size() (n int) { l = m.Balance.Size() n += 1 + l + sovView(uint64(l)) } + if m.AccountAddress != nil { + l = m.AccountAddress.Size() + n += 1 + l + sovView(uint64(l)) + } + if m.BalanceView != nil { + l = m.BalanceView.Size() + n += 1 + l + sovView(uint64(l)) + } return n } @@ -8092,12 +9950,6 @@ func (m *WitnessRequest) Size() (n int) { } var l int _ = l - if len(m.NoteCommitments) > 0 { - for _, e := range m.NoteCommitments { - l = e.Size() - n += 1 + l + sovView(uint64(l)) - } - } if m.TransactionPlan != nil { l = m.TransactionPlan.Size() n += 1 + l + sovView(uint64(l)) @@ -8136,6 +9988,54 @@ func (m *WitnessAndBuildRequest) Size() (n int) { } func (m *WitnessAndBuildResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Status != nil { + n += m.Status.Size() + } + return n +} + +func (m *WitnessAndBuildResponse_BuildProgress_) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.BuildProgress != nil { + l = m.BuildProgress.Size() + n += 1 + l + sovView(uint64(l)) + } + return n +} +func (m *WitnessAndBuildResponse_Complete_) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Complete != nil { + l = m.Complete.Size() + n += 1 + l + sovView(uint64(l)) + } + return n +} +func (m *WitnessAndBuildResponse_BuildProgress) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Progress != 0 { + n += 5 + } + return n +} + +func (m *WitnessAndBuildResponse_Complete) Size() (n int) { if m == nil { return 0 } @@ -8515,6 +10415,10 @@ func (m *SpendableNoteRecord) Size() (n int) { l = m.Source.Size() n += 1 + l + sovView(uint64(l)) } + if m.ReturnAddress != nil { + l = m.ReturnAddress.Size() + n += 1 + l + sovView(uint64(l)) + } return n } @@ -8583,6 +10487,61 @@ func (m *OwnedPositionIdsResponse) Size() (n int) { return n } +func (m *AssetMetadataByIdRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.AssetId != nil { + l = m.AssetId.Size() + n += 1 + l + sovView(uint64(l)) + } + return n +} + +func (m *AssetMetadataByIdResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.DenomMetadata != nil { + l = m.DenomMetadata.Size() + n += 1 + l + sovView(uint64(l)) + } + return n +} + +func (m *DelegationsByAddressIndexRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.AddressIndex != nil { + l = m.AddressIndex.Size() + n += 1 + l + sovView(uint64(l)) + } + if m.Filter != 0 { + n += 1 + sovView(uint64(m.Filter)) + } + return n +} + +func (m *DelegationsByAddressIndexResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ValueView != nil { + l = m.ValueView.Size() + n += 1 + l + sovView(uint64(l)) + } + return n +} + func sovView(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } @@ -8599,28 +10558,1229 @@ func (m *AuthorizeAndBuildRequest) Unmarshal(dAtA []byte) error { if shift >= 64 { return ErrIntOverflowView } - if iNdEx >= l { + 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: AuthorizeAndBuildRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AuthorizeAndBuildRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TransactionPlan", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowView + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthView + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthView + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.TransactionPlan == nil { + m.TransactionPlan = &v1.TransactionPlan{} + } + if err := m.TransactionPlan.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipView(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthView + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AuthorizeAndBuildResponse) 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 ErrIntOverflowView + } + 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: AuthorizeAndBuildResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AuthorizeAndBuildResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BuildProgress", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowView + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthView + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthView + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &AuthorizeAndBuildResponse_BuildProgress{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Status = &AuthorizeAndBuildResponse_BuildProgress_{v} + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Complete", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowView + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthView + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthView + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &AuthorizeAndBuildResponse_Complete{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Status = &AuthorizeAndBuildResponse_Complete_{v} + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipView(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthView + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AuthorizeAndBuildResponse_BuildProgress) 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 ErrIntOverflowView + } + 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: BuildProgress: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BuildProgress: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 5 { + return fmt.Errorf("proto: wrong wireType = %d for field Progress", wireType) + } + var v uint32 + if (iNdEx + 4) > l { + return io.ErrUnexpectedEOF + } + v = uint32(encoding_binary.LittleEndian.Uint32(dAtA[iNdEx:])) + iNdEx += 4 + m.Progress = float32(math.Float32frombits(v)) + default: + iNdEx = preIndex + skippy, err := skipView(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthView + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AuthorizeAndBuildResponse_Complete) 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 ErrIntOverflowView + } + 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: Complete: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Complete: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Transaction", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowView + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthView + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthView + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Transaction == nil { + m.Transaction = &v1.Transaction{} + } + if err := m.Transaction.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipView(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthView + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BroadcastTransactionRequest) 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 ErrIntOverflowView + } + 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: BroadcastTransactionRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BroadcastTransactionRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Transaction", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowView + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthView + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthView + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Transaction == nil { + m.Transaction = &v1.Transaction{} + } + if err := m.Transaction.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AwaitDetection", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowView + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AwaitDetection = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipView(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthView + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BroadcastTransactionResponse) 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 ErrIntOverflowView + } + 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: BroadcastTransactionResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BroadcastTransactionResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BroadcastSuccess", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowView + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthView + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthView + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &BroadcastTransactionResponse_BroadcastSuccess{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Status = &BroadcastTransactionResponse_BroadcastSuccess_{v} + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Confirmed", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowView + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthView + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthView + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &BroadcastTransactionResponse_Confirmed{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Status = &BroadcastTransactionResponse_Confirmed_{v} + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipView(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthView + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BroadcastTransactionResponse_BroadcastSuccess) 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 ErrIntOverflowView + } + 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: BroadcastSuccess: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BroadcastSuccess: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowView + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthView + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthView + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Id == nil { + m.Id = &v11.TransactionId{} + } + if err := m.Id.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipView(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthView + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BroadcastTransactionResponse_Confirmed) 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 ErrIntOverflowView + } + 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: Confirmed: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Confirmed: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowView + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthView + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthView + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Id == nil { + m.Id = &v11.TransactionId{} + } + if err := m.Id.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DetectionHeight", wireType) + } + m.DetectionHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowView + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.DetectionHeight |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipView(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthView + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *TransactionPlannerRequest) 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 ErrIntOverflowView + } + 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: TransactionPlannerRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TransactionPlannerRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ExpiryHeight", wireType) + } + m.ExpiryHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowView + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ExpiryHeight |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Memo", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowView + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthView + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthView + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Memo == nil { + m.Memo = &v1.MemoPlaintext{} + } + if err := m.Memo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Source", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowView + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthView + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthView + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Source == nil { + m.Source = &v12.AddressIndex{} + } + if err := m.Source.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 20: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Outputs", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowView + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthView + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthView + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Outputs = append(m.Outputs, &TransactionPlannerRequest_Output{}) + if err := m.Outputs[len(m.Outputs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 30: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Swaps", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowView + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthView + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthView + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Swaps = append(m.Swaps, &TransactionPlannerRequest_Swap{}) + if err := m.Swaps[len(m.Swaps)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 31: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SwapClaims", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowView + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthView + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthView + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SwapClaims = append(m.SwapClaims, &TransactionPlannerRequest_SwapClaim{}) + if err := m.SwapClaims[len(m.SwapClaims)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 40: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Delegations", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowView + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthView + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthView + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Delegations = append(m.Delegations, &TransactionPlannerRequest_Delegate{}) + if err := m.Delegations[len(m.Delegations)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 50: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Undelegations", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowView + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthView + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthView + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Undelegations = append(m.Undelegations, &TransactionPlannerRequest_Undelegate{}) + if err := m.Undelegations[len(m.Undelegations)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UndelegationClaims", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowView + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthView + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthView + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.UndelegationClaims = append(m.UndelegationClaims, &TransactionPlannerRequest_UndelegateClaim{}) + if err := m.UndelegationClaims[len(m.UndelegationClaims)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 60: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IbcRelayActions", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowView + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthView + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthView + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.IbcRelayActions = append(m.IbcRelayActions, &v13.IbcRelay{}) + if err := m.IbcRelayActions[len(m.IbcRelayActions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 61: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ics20Withdrawals", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowView + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthView + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthView + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Ics20Withdrawals = append(m.Ics20Withdrawals, &v13.Ics20Withdrawal{}) + if err := m.Ics20Withdrawals[len(m.Ics20Withdrawals)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 70: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PositionOpens", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowView + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthView + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthView + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PositionOpens = append(m.PositionOpens, &TransactionPlannerRequest_PositionOpen{}) + if err := m.PositionOpens[len(m.PositionOpens)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 71: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PositionCloses", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowView + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthView + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthView + } + if postIndex > l { return io.ErrUnexpectedEOF } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + m.PositionCloses = append(m.PositionCloses, &TransactionPlannerRequest_PositionClose{}) + if err := m.PositionCloses[len(m.PositionCloses)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: AuthorizeAndBuildRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AuthorizeAndBuildRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + iNdEx = postIndex + case 72: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TransactionPlan", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field PositionWithdraws", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -8647,16 +11807,49 @@ func (m *AuthorizeAndBuildRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.TransactionPlan == nil { - m.TransactionPlan = &v1alpha1.TransactionPlan{} + m.PositionWithdraws = append(m.PositionWithdraws, &TransactionPlannerRequest_PositionWithdraw{}) + if err := m.PositionWithdraws[len(m.PositionWithdraws)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } - if err := m.TransactionPlan.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + iNdEx = postIndex + case 100: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AutoFee", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowView + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthView + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthView + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &v14.FeeTier{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } + m.FeeMode = &TransactionPlannerRequest_AutoFee{v} iNdEx = postIndex - case 2: + case 101: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AuthorizationData", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ManualFee", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -8683,10 +11876,64 @@ func (m *AuthorizeAndBuildRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.AuthorizationData == nil { - m.AuthorizationData = &v1alpha1.AuthorizationData{} + v := &v14.Fee{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } - if err := m.AuthorizationData.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.FeeMode = &TransactionPlannerRequest_ManualFee{v} + iNdEx = postIndex + case 200: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EpochIndex", wireType) + } + m.EpochIndex = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowView + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.EpochIndex |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 201: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Epoch", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowView + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthView + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthView + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Epoch == nil { + m.Epoch = &v15.Epoch{} + } + if err := m.Epoch.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -8711,7 +11958,7 @@ func (m *AuthorizeAndBuildRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *AuthorizeAndBuildResponse) Unmarshal(dAtA []byte) error { +func (m *TransactionPlannerRequest_Output) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -8734,15 +11981,15 @@ func (m *AuthorizeAndBuildResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: AuthorizeAndBuildResponse: wiretype end group for non-group") + return fmt.Errorf("proto: Output: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: AuthorizeAndBuildResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Output: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Transaction", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -8769,10 +12016,46 @@ func (m *AuthorizeAndBuildResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Transaction == nil { - m.Transaction = &v1alpha1.Transaction{} + if m.Value == nil { + m.Value = &v16.Value{} } - if err := m.Transaction.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Value.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowView + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthView + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthView + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Address == nil { + m.Address = &v12.Address{} + } + if err := m.Address.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -8797,7 +12080,7 @@ func (m *AuthorizeAndBuildResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *BroadcastTransactionRequest) Unmarshal(dAtA []byte) error { +func (m *TransactionPlannerRequest_Swap) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -8820,15 +12103,15 @@ func (m *BroadcastTransactionRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: BroadcastTransactionRequest: wiretype end group for non-group") + return fmt.Errorf("proto: Swap: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: BroadcastTransactionRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Swap: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Transaction", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -8855,18 +12138,18 @@ func (m *BroadcastTransactionRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Transaction == nil { - m.Transaction = &v1alpha1.Transaction{} + if m.Value == nil { + m.Value = &v16.Value{} } - if err := m.Transaction.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Value.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AwaitDetection", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TargetAsset", wireType) } - var v int + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowView @@ -8876,12 +12159,100 @@ func (m *BroadcastTransactionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthView + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthView + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.TargetAsset == nil { + m.TargetAsset = &v16.AssetId{} + } + if err := m.TargetAsset.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Fee", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowView + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthView + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthView + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Fee == nil { + m.Fee = &v14.Fee{} + } + if err := m.Fee.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClaimAddress", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowView + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - m.AwaitDetection = bool(v != 0) + if msglen < 0 { + return ErrInvalidLengthView + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthView + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ClaimAddress == nil { + m.ClaimAddress = &v12.Address{} + } + if err := m.ClaimAddress.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipView(dAtA[iNdEx:]) @@ -8903,7 +12274,7 @@ func (m *BroadcastTransactionRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *BroadcastTransactionResponse) Unmarshal(dAtA []byte) error { +func (m *TransactionPlannerRequest_SwapClaim) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -8926,15 +12297,15 @@ func (m *BroadcastTransactionResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: BroadcastTransactionResponse: wiretype end group for non-group") + return fmt.Errorf("proto: SwapClaim: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: BroadcastTransactionResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: SwapClaim: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field SwapCommitment", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -8961,32 +12332,13 @@ func (m *BroadcastTransactionResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Id == nil { - m.Id = &v1alpha11.TransactionId{} + if m.SwapCommitment == nil { + m.SwapCommitment = &v17.StateCommitment{} } - if err := m.Id.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.SwapCommitment.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DetectionHeight", wireType) - } - m.DetectionHeight = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowView - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.DetectionHeight |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } default: iNdEx = preIndex skippy, err := skipView(dAtA[iNdEx:]) @@ -9008,7 +12360,7 @@ func (m *BroadcastTransactionResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *TransactionPlannerRequest) Unmarshal(dAtA []byte) error { +func (m *TransactionPlannerRequest_Delegate) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -9031,34 +12383,15 @@ func (m *TransactionPlannerRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: TransactionPlannerRequest: wiretype end group for non-group") + return fmt.Errorf("proto: Delegate: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: TransactionPlannerRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Delegate: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ExpiryHeight", wireType) - } - m.ExpiryHeight = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowView - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ExpiryHeight |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Fee", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -9085,16 +12418,16 @@ func (m *TransactionPlannerRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Fee == nil { - m.Fee = &v1alpha12.Fee{} + if m.Amount == nil { + m.Amount = &v18.Amount{} } - if err := m.Fee.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Amount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Memo", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field RateData", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -9121,86 +12454,66 @@ func (m *TransactionPlannerRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Memo == nil { - m.Memo = &v1alpha1.MemoPlaintext{} + if m.RateData == nil { + m.RateData = &v19.RateData{} } - if err := m.Memo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.RateData.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Source", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowView - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthView + default: + iNdEx = preIndex + skippy, err := skipView(dAtA[iNdEx:]) + if err != nil { + return err } - postIndex := iNdEx + msglen - if postIndex < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthView } - if postIndex > l { + if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - if m.Source == nil { - m.Source = &v1alpha13.AddressIndex{} - } - if err := m.Source.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 20: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Outputs", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowView - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthView - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthView + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *TransactionPlannerRequest_Undelegate) 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 ErrIntOverflowView } - if postIndex > l { + if iNdEx >= l { return io.ErrUnexpectedEOF } - m.Outputs = append(m.Outputs, &TransactionPlannerRequest_Output{}) - if err := m.Outputs[len(m.Outputs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break } - iNdEx = postIndex - case 30: + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Undelegate: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Undelegate: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Swaps", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -9227,14 +12540,16 @@ func (m *TransactionPlannerRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Swaps = append(m.Swaps, &TransactionPlannerRequest_Swap{}) - if err := m.Swaps[len(m.Swaps)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if m.Value == nil { + m.Value = &v16.Value{} + } + if err := m.Value.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 31: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SwapClaims", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field RateData", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -9261,48 +12576,66 @@ func (m *TransactionPlannerRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.SwapClaims = append(m.SwapClaims, &TransactionPlannerRequest_SwapClaim{}) - if err := m.SwapClaims[len(m.SwapClaims)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if m.RateData == nil { + m.RateData = &v19.RateData{} + } + if err := m.RateData.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 40: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Delegations", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowView - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } + default: + iNdEx = preIndex + skippy, err := skipView(dAtA[iNdEx:]) + if err != nil { + return err } - if msglen < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthView } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthView + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF } - if postIndex > l { + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *TransactionPlannerRequest_UndelegateClaim) 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 ErrIntOverflowView + } + if iNdEx >= l { return io.ErrUnexpectedEOF } - m.Delegations = append(m.Delegations, &TransactionPlannerRequest_Delegate{}) - if err := m.Delegations[len(m.Delegations)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break } - iNdEx = postIndex - case 50: + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: UndelegateClaim: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UndelegateClaim: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Undelegations", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ValidatorIdentity", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -9329,16 +12662,18 @@ func (m *TransactionPlannerRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Undelegations = append(m.Undelegations, &TransactionPlannerRequest_Undelegate{}) - if err := m.Undelegations[len(m.Undelegations)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if m.ValidatorIdentity == nil { + m.ValidatorIdentity = &v12.IdentityKey{} + } + if err := m.ValidatorIdentity.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 60: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field IbcRelayActions", wireType) + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field StartEpochIndex", wireType) } - var msglen int + m.StartEpochIndex = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowView @@ -9348,29 +12683,14 @@ func (m *TransactionPlannerRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + m.StartEpochIndex |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return ErrInvalidLengthView - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthView - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.IbcRelayActions = append(m.IbcRelayActions, &v1alpha14.IbcRelay{}) - if err := m.IbcRelayActions[len(m.IbcRelayActions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 61: + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Ics20Withdrawals", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Penalty", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -9397,14 +12717,16 @@ func (m *TransactionPlannerRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Ics20Withdrawals = append(m.Ics20Withdrawals, &v1alpha14.Ics20Withdrawal{}) - if err := m.Ics20Withdrawals[len(m.Ics20Withdrawals)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if m.Penalty == nil { + m.Penalty = &v19.Penalty{} + } + if err := m.Penalty.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 70: + case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PositionOpens", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field UnbondingAmount", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -9431,16 +12753,18 @@ func (m *TransactionPlannerRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.PositionOpens = append(m.PositionOpens, &TransactionPlannerRequest_PositionOpen{}) - if err := m.PositionOpens[len(m.PositionOpens)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if m.UnbondingAmount == nil { + m.UnbondingAmount = &v18.Amount{} + } + if err := m.UnbondingAmount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 71: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PositionCloses", wireType) + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UnbondingStartHeight", wireType) } - var msglen int + m.UnbondingStartHeight = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowView @@ -9450,29 +12774,64 @@ func (m *TransactionPlannerRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + m.UnbondingStartHeight |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return ErrInvalidLengthView + default: + iNdEx = preIndex + skippy, err := skipView(dAtA[iNdEx:]) + if err != nil { + return err } - postIndex := iNdEx + msglen - if postIndex < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthView } - if postIndex > l { + if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.PositionCloses = append(m.PositionCloses, &TransactionPlannerRequest_PositionClose{}) - if err := m.PositionCloses[len(m.PositionCloses)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *TransactionPlannerRequest_PositionOpen) 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 ErrIntOverflowView } - iNdEx = postIndex - case 72: + 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: PositionOpen: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PositionOpen: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PositionWithdraws", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Position", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -9499,8 +12858,10 @@ func (m *TransactionPlannerRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.PositionWithdraws = append(m.PositionWithdraws, &TransactionPlannerRequest_PositionWithdraw{}) - if err := m.PositionWithdraws[len(m.PositionWithdraws)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if m.Position == nil { + m.Position = &v110.Position{} + } + if err := m.Position.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -9525,7 +12886,7 @@ func (m *TransactionPlannerRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *TransactionPlannerRequest_Output) Unmarshal(dAtA []byte) error { +func (m *TransactionPlannerRequest_PositionClose) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -9548,51 +12909,15 @@ func (m *TransactionPlannerRequest_Output) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Output: wiretype end group for non-group") + return fmt.Errorf("proto: PositionClose: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Output: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: PositionClose: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowView - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthView - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthView - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Value == nil { - m.Value = &v1alpha15.Value{} - } - if err := m.Value.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field PositionId", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -9619,10 +12944,10 @@ func (m *TransactionPlannerRequest_Output) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Address == nil { - m.Address = &v1alpha13.Address{} + if m.PositionId == nil { + m.PositionId = &v110.PositionId{} } - if err := m.Address.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.PositionId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -9647,7 +12972,7 @@ func (m *TransactionPlannerRequest_Output) Unmarshal(dAtA []byte) error { } return nil } -func (m *TransactionPlannerRequest_Swap) Unmarshal(dAtA []byte) error { +func (m *TransactionPlannerRequest_PositionWithdraw) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -9670,15 +12995,15 @@ func (m *TransactionPlannerRequest_Swap) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Swap: wiretype end group for non-group") + return fmt.Errorf("proto: PositionWithdraw: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Swap: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: PositionWithdraw: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field PositionId", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -9705,16 +13030,16 @@ func (m *TransactionPlannerRequest_Swap) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Value == nil { - m.Value = &v1alpha15.Value{} + if m.PositionId == nil { + m.PositionId = &v110.PositionId{} } - if err := m.Value.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.PositionId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TargetAsset", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Reserves", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -9741,16 +13066,102 @@ func (m *TransactionPlannerRequest_Swap) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.TargetAsset == nil { - m.TargetAsset = &v1alpha15.AssetId{} + if m.Reserves == nil { + m.Reserves = &v110.Reserves{} } - if err := m.TargetAsset.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Reserves.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Fee", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TradingPair", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowView + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthView + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthView + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.TradingPair == nil { + m.TradingPair = &v110.TradingPair{} + } + if err := m.TradingPair.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipView(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthView + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *TransactionPlannerResponse) 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 ErrIntOverflowView + } + 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: TransactionPlannerResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TransactionPlannerResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Plan", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -9777,16 +13188,66 @@ func (m *TransactionPlannerRequest_Swap) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Fee == nil { - m.Fee = &v1alpha12.Fee{} + if m.Plan == nil { + m.Plan = &v1.TransactionPlan{} } - if err := m.Fee.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Plan.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 4: + default: + iNdEx = preIndex + skippy, err := skipView(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthView + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AddressByIndexRequest) 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 ErrIntOverflowView + } + 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: AddressByIndexRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AddressByIndexRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClaimAddress", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AddressIndex", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -9813,10 +13274,10 @@ func (m *TransactionPlannerRequest_Swap) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.ClaimAddress == nil { - m.ClaimAddress = &v1alpha13.Address{} + if m.AddressIndex == nil { + m.AddressIndex = &v12.AddressIndex{} } - if err := m.ClaimAddress.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.AddressIndex.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -9841,7 +13302,7 @@ func (m *TransactionPlannerRequest_Swap) Unmarshal(dAtA []byte) error { } return nil } -func (m *TransactionPlannerRequest_SwapClaim) Unmarshal(dAtA []byte) error { +func (m *AddressByIndexResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -9864,15 +13325,15 @@ func (m *TransactionPlannerRequest_SwapClaim) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: SwapClaim: wiretype end group for non-group") + return fmt.Errorf("proto: AddressByIndexResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: SwapClaim: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: AddressByIndexResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SwapCommitment", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -9899,10 +13360,10 @@ func (m *TransactionPlannerRequest_SwapClaim) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.SwapCommitment == nil { - m.SwapCommitment = &v1alpha16.StateCommitment{} + if m.Address == nil { + m.Address = &v12.Address{} } - if err := m.SwapCommitment.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Address.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -9927,7 +13388,7 @@ func (m *TransactionPlannerRequest_SwapClaim) Unmarshal(dAtA []byte) error { } return nil } -func (m *TransactionPlannerRequest_Delegate) Unmarshal(dAtA []byte) error { +func (m *WalletIdRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -9950,15 +13411,65 @@ func (m *TransactionPlannerRequest_Delegate) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Delegate: wiretype end group for non-group") + return fmt.Errorf("proto: WalletIdRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Delegate: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: WalletIdRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipView(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthView + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *WalletIdResponse) 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 ErrIntOverflowView + } + 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: WalletIdResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: WalletIdResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field WalletId", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -9985,16 +13496,66 @@ func (m *TransactionPlannerRequest_Delegate) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Amount == nil { - m.Amount = &v1alpha17.Amount{} + if m.WalletId == nil { + m.WalletId = &v12.WalletId{} } - if err := m.Amount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.WalletId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 3: + default: + iNdEx = preIndex + skippy, err := skipView(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthView + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *IndexByAddressRequest) 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 ErrIntOverflowView + } + 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: IndexByAddressRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: IndexByAddressRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RateData", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -10021,10 +13582,10 @@ func (m *TransactionPlannerRequest_Delegate) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.RateData == nil { - m.RateData = &v1alpha18.RateData{} + if m.Address == nil { + m.Address = &v12.Address{} } - if err := m.RateData.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Address.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -10049,7 +13610,7 @@ func (m *TransactionPlannerRequest_Delegate) Unmarshal(dAtA []byte) error { } return nil } -func (m *TransactionPlannerRequest_Undelegate) Unmarshal(dAtA []byte) error { +func (m *IndexByAddressResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -10072,15 +13633,15 @@ func (m *TransactionPlannerRequest_Undelegate) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Undelegate: wiretype end group for non-group") + return fmt.Errorf("proto: IndexByAddressResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Undelegate: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: IndexByAddressResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AddressIndex", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -10107,16 +13668,66 @@ func (m *TransactionPlannerRequest_Undelegate) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Value == nil { - m.Value = &v1alpha15.Value{} + if m.AddressIndex == nil { + m.AddressIndex = &v12.AddressIndex{} + } + if err := m.AddressIndex.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipView(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthView + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *EphemeralAddressRequest) 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 ErrIntOverflowView + } + if iNdEx >= l { + return io.ErrUnexpectedEOF } - if err := m.Value.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break } - iNdEx = postIndex - case 2: + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: EphemeralAddressRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EphemeralAddressRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RateData", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AddressIndex", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -10143,10 +13754,10 @@ func (m *TransactionPlannerRequest_Undelegate) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.RateData == nil { - m.RateData = &v1alpha18.RateData{} + if m.AddressIndex == nil { + m.AddressIndex = &v12.AddressIndex{} } - if err := m.RateData.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.AddressIndex.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -10171,7 +13782,7 @@ func (m *TransactionPlannerRequest_Undelegate) Unmarshal(dAtA []byte) error { } return nil } -func (m *TransactionPlannerRequest_PositionOpen) Unmarshal(dAtA []byte) error { +func (m *EphemeralAddressResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -10194,15 +13805,15 @@ func (m *TransactionPlannerRequest_PositionOpen) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: PositionOpen: wiretype end group for non-group") + return fmt.Errorf("proto: EphemeralAddressResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: PositionOpen: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: EphemeralAddressResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Position", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -10229,10 +13840,10 @@ func (m *TransactionPlannerRequest_PositionOpen) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Position == nil { - m.Position = &v1alpha19.Position{} + if m.Address == nil { + m.Address = &v12.Address{} } - if err := m.Position.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Address.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -10257,7 +13868,7 @@ func (m *TransactionPlannerRequest_PositionOpen) Unmarshal(dAtA []byte) error { } return nil } -func (m *TransactionPlannerRequest_PositionClose) Unmarshal(dAtA []byte) error { +func (m *BalancesRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -10280,15 +13891,15 @@ func (m *TransactionPlannerRequest_PositionClose) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: PositionClose: wiretype end group for non-group") + return fmt.Errorf("proto: BalancesRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: PositionClose: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: BalancesRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PositionId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AccountFilter", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -10315,10 +13926,46 @@ func (m *TransactionPlannerRequest_PositionClose) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.PositionId == nil { - m.PositionId = &v1alpha19.PositionId{} + if m.AccountFilter == nil { + m.AccountFilter = &v12.AddressIndex{} } - if err := m.PositionId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.AccountFilter.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AssetIdFilter", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowView + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthView + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthView + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.AssetIdFilter == nil { + m.AssetIdFilter = &v16.AssetId{} + } + if err := m.AssetIdFilter.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -10343,7 +13990,7 @@ func (m *TransactionPlannerRequest_PositionClose) Unmarshal(dAtA []byte) error { } return nil } -func (m *TransactionPlannerRequest_PositionWithdraw) Unmarshal(dAtA []byte) error { +func (m *BalancesResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -10366,15 +14013,15 @@ func (m *TransactionPlannerRequest_PositionWithdraw) Unmarshal(dAtA []byte) erro fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: PositionWithdraw: wiretype end group for non-group") + return fmt.Errorf("proto: BalancesResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: PositionWithdraw: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: BalancesResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PositionId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Account", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -10401,16 +14048,16 @@ func (m *TransactionPlannerRequest_PositionWithdraw) Unmarshal(dAtA []byte) erro if postIndex > l { return io.ErrUnexpectedEOF } - if m.PositionId == nil { - m.PositionId = &v1alpha19.PositionId{} + if m.Account == nil { + m.Account = &v12.AddressIndex{} } - if err := m.PositionId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Account.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reserves", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Balance", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -10437,16 +14084,16 @@ func (m *TransactionPlannerRequest_PositionWithdraw) Unmarshal(dAtA []byte) erro if postIndex > l { return io.ErrUnexpectedEOF } - if m.Reserves == nil { - m.Reserves = &v1alpha19.Reserves{} + if m.Balance == nil { + m.Balance = &v16.Value{} } - if err := m.Reserves.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Balance.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TradingPair", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AccountAddress", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -10473,66 +14120,16 @@ func (m *TransactionPlannerRequest_PositionWithdraw) Unmarshal(dAtA []byte) erro if postIndex > l { return io.ErrUnexpectedEOF } - if m.TradingPair == nil { - m.TradingPair = &v1alpha19.TradingPair{} + if m.AccountAddress == nil { + m.AccountAddress = &v12.AddressView{} } - if err := m.TradingPair.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.AccountAddress.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipView(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthView - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *TransactionPlannerResponse) 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 ErrIntOverflowView - } - 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: TransactionPlannerResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TransactionPlannerResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Plan", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field BalanceView", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -10559,10 +14156,10 @@ func (m *TransactionPlannerResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Plan == nil { - m.Plan = &v1alpha1.TransactionPlan{} + if m.BalanceView == nil { + m.BalanceView = &v16.ValueView{} } - if err := m.Plan.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.BalanceView.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -10587,7 +14184,7 @@ func (m *TransactionPlannerResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *AddressByIndexRequest) Unmarshal(dAtA []byte) error { +func (m *StatusRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -10610,48 +14207,12 @@ func (m *AddressByIndexRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: AddressByIndexRequest: wiretype end group for non-group") + return fmt.Errorf("proto: StatusRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: AddressByIndexRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: StatusRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AddressIndex", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowView - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthView - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthView - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.AddressIndex == nil { - m.AddressIndex = &v1alpha13.AddressIndex{} - } - if err := m.AddressIndex.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipView(dAtA[iNdEx:]) @@ -10673,7 +14234,7 @@ func (m *AddressByIndexRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *AddressByIndexResponse) Unmarshal(dAtA []byte) error { +func (m *StatusResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -10696,17 +14257,17 @@ func (m *AddressByIndexResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: AddressByIndexResponse: wiretype end group for non-group") + return fmt.Errorf("proto: StatusResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: AddressByIndexResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: StatusResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field FullSyncHeight", wireType) } - var msglen int + m.FullSyncHeight = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowView @@ -10716,28 +14277,50 @@ func (m *AddressByIndexResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + m.FullSyncHeight |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return ErrInvalidLengthView - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthView + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PartialSyncHeight", wireType) } - if postIndex > l { - return io.ErrUnexpectedEOF + m.PartialSyncHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowView + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.PartialSyncHeight |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } } - if m.Address == nil { - m.Address = &v1alpha13.Address{} + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CatchingUp", wireType) } - if err := m.Address.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowView + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } } - iNdEx = postIndex + m.CatchingUp = bool(v != 0) default: iNdEx = preIndex skippy, err := skipView(dAtA[iNdEx:]) @@ -10759,7 +14342,7 @@ func (m *AddressByIndexResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *WalletIdRequest) Unmarshal(dAtA []byte) error { +func (m *StatusStreamRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -10782,10 +14365,10 @@ func (m *WalletIdRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: WalletIdRequest: wiretype end group for non-group") + return fmt.Errorf("proto: StatusStreamRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: WalletIdRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: StatusStreamRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -10809,7 +14392,7 @@ func (m *WalletIdRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *WalletIdResponse) Unmarshal(dAtA []byte) error { +func (m *StatusStreamResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -10832,17 +14415,17 @@ func (m *WalletIdResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: WalletIdResponse: wiretype end group for non-group") + return fmt.Errorf("proto: StatusStreamResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: WalletIdResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: StatusStreamResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WalletId", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LatestKnownBlockHeight", wireType) } - var msglen int + m.LatestKnownBlockHeight = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowView @@ -10852,28 +14435,49 @@ func (m *WalletIdResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + m.LatestKnownBlockHeight |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return ErrInvalidLengthView - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthView + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field FullSyncHeight", wireType) } - if postIndex > l { - return io.ErrUnexpectedEOF + m.FullSyncHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowView + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.FullSyncHeight |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } } - if m.WalletId == nil { - m.WalletId = &v1alpha13.WalletId{} + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PartialSyncHeight", wireType) } - if err := m.WalletId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + m.PartialSyncHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowView + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.PartialSyncHeight |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } } - iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipView(dAtA[iNdEx:]) @@ -10895,7 +14499,7 @@ func (m *WalletIdResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *IndexByAddressRequest) Unmarshal(dAtA []byte) error { +func (m *NotesRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -10918,15 +14522,35 @@ func (m *IndexByAddressRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: IndexByAddressRequest: wiretype end group for non-group") + return fmt.Errorf("proto: NotesRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: IndexByAddressRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: NotesRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IncludeSpent", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowView + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IncludeSpent = bool(v != 0) + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AssetId", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -10953,10 +14577,82 @@ func (m *IndexByAddressRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Address == nil { - m.Address = &v1alpha13.Address{} + if m.AssetId == nil { + m.AssetId = &v16.AssetId{} } - if err := m.Address.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.AssetId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AddressIndex", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowView + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthView + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthView + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.AddressIndex == nil { + m.AddressIndex = &v12.AddressIndex{} + } + if err := m.AddressIndex.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AmountToSpend", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowView + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthView + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthView + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.AmountToSpend == nil { + m.AmountToSpend = &v18.Amount{} + } + if err := m.AmountToSpend.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -10981,7 +14677,7 @@ func (m *IndexByAddressRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *IndexByAddressResponse) Unmarshal(dAtA []byte) error { +func (m *NotesForVotingRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -11004,13 +14700,32 @@ func (m *IndexByAddressResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: IndexByAddressResponse: wiretype end group for non-group") + return fmt.Errorf("proto: NotesForVotingRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: IndexByAddressResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: NotesForVotingRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field VotableAtHeight", wireType) + } + m.VotableAtHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowView + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.VotableAtHeight |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field AddressIndex", wireType) } @@ -11040,7 +14755,7 @@ func (m *IndexByAddressResponse) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.AddressIndex == nil { - m.AddressIndex = &v1alpha13.AddressIndex{} + m.AddressIndex = &v12.AddressIndex{} } if err := m.AddressIndex.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -11067,7 +14782,7 @@ func (m *IndexByAddressResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *EphemeralAddressRequest) Unmarshal(dAtA []byte) error { +func (m *WitnessRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -11090,15 +14805,15 @@ func (m *EphemeralAddressRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: EphemeralAddressRequest: wiretype end group for non-group") + return fmt.Errorf("proto: WitnessRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: EphemeralAddressRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: WitnessRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AddressIndex", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TransactionPlan", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -11125,33 +14840,13 @@ func (m *EphemeralAddressRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.AddressIndex == nil { - m.AddressIndex = &v1alpha13.AddressIndex{} + if m.TransactionPlan == nil { + m.TransactionPlan = &v1.TransactionPlan{} } - if err := m.AddressIndex.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.TransactionPlan.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DisplayConfirm", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowView - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.DisplayConfirm = bool(v != 0) default: iNdEx = preIndex skippy, err := skipView(dAtA[iNdEx:]) @@ -11173,7 +14868,7 @@ func (m *EphemeralAddressRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *EphemeralAddressResponse) Unmarshal(dAtA []byte) error { +func (m *WitnessResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -11196,15 +14891,15 @@ func (m *EphemeralAddressResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: EphemeralAddressResponse: wiretype end group for non-group") + return fmt.Errorf("proto: WitnessResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: EphemeralAddressResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: WitnessResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field WitnessData", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -11231,10 +14926,10 @@ func (m *EphemeralAddressResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Address == nil { - m.Address = &v1alpha13.Address{} + if m.WitnessData == nil { + m.WitnessData = &v1.WitnessData{} } - if err := m.Address.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.WitnessData.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -11259,7 +14954,7 @@ func (m *EphemeralAddressResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *BalancesRequest) Unmarshal(dAtA []byte) error { +func (m *WitnessAndBuildRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -11282,15 +14977,15 @@ func (m *BalancesRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: BalancesRequest: wiretype end group for non-group") + return fmt.Errorf("proto: WitnessAndBuildRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: BalancesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: WitnessAndBuildRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AccountFilter", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TransactionPlan", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -11317,16 +15012,16 @@ func (m *BalancesRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.AccountFilter == nil { - m.AccountFilter = &v1alpha13.AddressIndex{} + if m.TransactionPlan == nil { + m.TransactionPlan = &v1.TransactionPlan{} } - if err := m.AccountFilter.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.TransactionPlan.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AssetIdFilter", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AuthorizationData", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -11353,10 +15048,10 @@ func (m *BalancesRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.AssetIdFilter == nil { - m.AssetIdFilter = &v1alpha15.AssetId{} + if m.AuthorizationData == nil { + m.AuthorizationData = &v1.AuthorizationData{} } - if err := m.AssetIdFilter.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.AuthorizationData.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -11381,7 +15076,7 @@ func (m *BalancesRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *BalancesResponse) Unmarshal(dAtA []byte) error { +func (m *WitnessAndBuildResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -11404,15 +15099,15 @@ func (m *BalancesResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: BalancesResponse: wiretype end group for non-group") + return fmt.Errorf("proto: WitnessAndBuildResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: BalancesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: WitnessAndBuildResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Account", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field BuildProgress", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -11439,16 +15134,15 @@ func (m *BalancesResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Account == nil { - m.Account = &v1alpha13.AddressIndex{} - } - if err := m.Account.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + v := &WitnessAndBuildResponse_BuildProgress{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } + m.Status = &WitnessAndBuildResponse_BuildProgress_{v} iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Balance", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Complete", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -11475,12 +15169,11 @@ func (m *BalancesResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Balance == nil { - m.Balance = &v1alpha15.Value{} - } - if err := m.Balance.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + v := &WitnessAndBuildResponse_Complete{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } + m.Status = &WitnessAndBuildResponse_Complete_{v} iNdEx = postIndex default: iNdEx = preIndex @@ -11503,7 +15196,7 @@ func (m *BalancesResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *StatusRequest) Unmarshal(dAtA []byte) error { +func (m *WitnessAndBuildResponse_BuildProgress) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -11526,12 +15219,23 @@ func (m *StatusRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: StatusRequest: wiretype end group for non-group") + return fmt.Errorf("proto: BuildProgress: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: StatusRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: BuildProgress: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { + case 1: + if wireType != 5 { + return fmt.Errorf("proto: wrong wireType = %d for field Progress", wireType) + } + var v uint32 + if (iNdEx + 4) > l { + return io.ErrUnexpectedEOF + } + v = uint32(encoding_binary.LittleEndian.Uint32(dAtA[iNdEx:])) + iNdEx += 4 + m.Progress = float32(math.Float32frombits(v)) default: iNdEx = preIndex skippy, err := skipView(dAtA[iNdEx:]) @@ -11553,7 +15257,7 @@ func (m *StatusRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *StatusResponse) Unmarshal(dAtA []byte) error { +func (m *WitnessAndBuildResponse_Complete) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -11576,55 +15280,17 @@ func (m *StatusResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: StatusResponse: wiretype end group for non-group") + return fmt.Errorf("proto: Complete: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: StatusResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Complete: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field FullSyncHeight", wireType) - } - m.FullSyncHeight = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowView - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.FullSyncHeight |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field PartialSyncHeight", wireType) - } - m.PartialSyncHeight = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowView - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.PartialSyncHeight |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CatchingUp", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Transaction", wireType) } - var v int + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowView @@ -11634,62 +15300,28 @@ func (m *StatusResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - m.CatchingUp = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipView(dAtA[iNdEx:]) - if err != nil { - return err + if msglen < 0 { + return ErrInvalidLengthView } - if (skippy < 0) || (iNdEx+skippy) < 0 { + postIndex := iNdEx + msglen + if postIndex < 0 { return ErrInvalidLengthView } - if (iNdEx + skippy) > l { + if postIndex > l { return io.ErrUnexpectedEOF } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *StatusStreamRequest) 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 ErrIntOverflowView - } - if iNdEx >= l { - return io.ErrUnexpectedEOF + if m.Transaction == nil { + m.Transaction = &v1.Transaction{} } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + if err := m.Transaction.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: StatusStreamRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: StatusStreamRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipView(dAtA[iNdEx:]) @@ -11711,7 +15343,7 @@ func (m *StatusStreamRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *StatusStreamResponse) Unmarshal(dAtA []byte) error { +func (m *AssetsRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -11734,17 +15366,17 @@ func (m *StatusStreamResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: StatusStreamResponse: wiretype end group for non-group") + return fmt.Errorf("proto: AssetsRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: StatusStreamResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: AssetsRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field LatestKnownBlockHeight", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Filtered", wireType) } - m.LatestKnownBlockHeight = 0 + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowView @@ -11754,16 +15386,17 @@ func (m *StatusStreamResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.LatestKnownBlockHeight |= uint64(b&0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } } + m.Filtered = bool(v != 0) case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field FullSyncHeight", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IncludeSpecificDenominations", wireType) } - m.FullSyncHeight = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowView @@ -11773,16 +15406,31 @@ func (m *StatusStreamResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.FullSyncHeight |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } + if msglen < 0 { + return ErrInvalidLengthView + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthView + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.IncludeSpecificDenominations = append(m.IncludeSpecificDenominations, &v16.Denom{}) + if err := m.IncludeSpecificDenominations[len(m.IncludeSpecificDenominations)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex case 3: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field PartialSyncHeight", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field IncludeDelegationTokens", wireType) } - m.PartialSyncHeight = 0 + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowView @@ -11792,64 +15440,15 @@ func (m *StatusStreamResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.PartialSyncHeight |= uint64(b&0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } } - default: - iNdEx = preIndex - skippy, err := skipView(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthView - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *NotesRequest) 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 ErrIntOverflowView - } - 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: NotesRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: NotesRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 2: + m.IncludeDelegationTokens = bool(v != 0) + case 4: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IncludeSpent", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field IncludeUnbondingTokens", wireType) } var v int for shift := uint(0); ; shift += 7 { @@ -11866,12 +15465,12 @@ func (m *NotesRequest) Unmarshal(dAtA []byte) error { break } } - m.IncludeSpent = bool(v != 0) - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AssetId", wireType) + m.IncludeUnbondingTokens = bool(v != 0) + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IncludeLpNfts", wireType) } - var msglen int + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowView @@ -11881,33 +15480,17 @@ func (m *NotesRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break - } - } - if msglen < 0 { - return ErrInvalidLengthView - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthView - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.AssetId == nil { - m.AssetId = &v1alpha15.AssetId{} - } - if err := m.AssetId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + } } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AddressIndex", wireType) + m.IncludeLpNfts = bool(v != 0) + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IncludeProposalNfts", wireType) } - var msglen int + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowView @@ -11917,33 +15500,17 @@ func (m *NotesRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return ErrInvalidLengthView - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthView - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.AddressIndex == nil { - m.AddressIndex = &v1alpha13.AddressIndex{} - } - if err := m.AddressIndex.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AmountToSpend", wireType) + m.IncludeProposalNfts = bool(v != 0) + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IncludeVotingReceiptTokens", wireType) } - var msglen int + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowView @@ -11953,28 +15520,12 @@ func (m *NotesRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return ErrInvalidLengthView - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthView - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.AmountToSpend == nil { - m.AmountToSpend = &v1alpha17.Amount{} - } - if err := m.AmountToSpend.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex + m.IncludeVotingReceiptTokens = bool(v != 0) default: iNdEx = preIndex skippy, err := skipView(dAtA[iNdEx:]) @@ -11996,7 +15547,7 @@ func (m *NotesRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *NotesForVotingRequest) Unmarshal(dAtA []byte) error { +func (m *AssetsResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -12019,34 +15570,15 @@ func (m *NotesForVotingRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: NotesForVotingRequest: wiretype end group for non-group") + return fmt.Errorf("proto: AssetsResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: NotesForVotingRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: AssetsResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field VotableAtHeight", wireType) - } - m.VotableAtHeight = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowView - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.VotableAtHeight |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AddressIndex", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field DenomMetadata", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -12073,10 +15605,10 @@ func (m *NotesForVotingRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.AddressIndex == nil { - m.AddressIndex = &v1alpha13.AddressIndex{} + if m.DenomMetadata == nil { + m.DenomMetadata = &v16.Metadata{} } - if err := m.AddressIndex.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.DenomMetadata.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -12101,7 +15633,7 @@ func (m *NotesForVotingRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *WitnessRequest) Unmarshal(dAtA []byte) error { +func (m *AppParametersRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -12124,82 +15656,12 @@ func (m *WitnessRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: WitnessRequest: wiretype end group for non-group") + return fmt.Errorf("proto: AppParametersRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: WitnessRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: AppParametersRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NoteCommitments", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowView - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthView - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthView - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NoteCommitments = append(m.NoteCommitments, &v1alpha16.StateCommitment{}) - if err := m.NoteCommitments[len(m.NoteCommitments)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TransactionPlan", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowView - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthView - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthView - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.TransactionPlan == nil { - m.TransactionPlan = &v1alpha1.TransactionPlan{} - } - if err := m.TransactionPlan.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipView(dAtA[iNdEx:]) @@ -12221,7 +15683,7 @@ func (m *WitnessRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *WitnessResponse) Unmarshal(dAtA []byte) error { +func (m *AppParametersResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -12244,15 +15706,15 @@ func (m *WitnessResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: WitnessResponse: wiretype end group for non-group") + return fmt.Errorf("proto: AppParametersResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: WitnessResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: AppParametersResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WitnessData", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Parameters", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -12279,10 +15741,10 @@ func (m *WitnessResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.WitnessData == nil { - m.WitnessData = &v1alpha1.WitnessData{} + if m.Parameters == nil { + m.Parameters = &v111.AppParameters{} } - if err := m.WitnessData.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Parameters.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -12307,7 +15769,7 @@ func (m *WitnessResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *WitnessAndBuildRequest) Unmarshal(dAtA []byte) error { +func (m *GasPricesRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -12324,90 +15786,18 @@ func (m *WitnessAndBuildRequest) Unmarshal(dAtA []byte) error { 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: WitnessAndBuildRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: WitnessAndBuildRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TransactionPlan", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowView - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthView - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthView - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.TransactionPlan == nil { - m.TransactionPlan = &v1alpha1.TransactionPlan{} - } - if err := m.TransactionPlan.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AuthorizationData", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowView - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthView - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthView - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.AuthorizationData == nil { - m.AuthorizationData = &v1alpha1.AuthorizationData{} - } - if err := m.AuthorizationData.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + break } - iNdEx = postIndex + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GasPricesRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GasPricesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { default: iNdEx = preIndex skippy, err := skipView(dAtA[iNdEx:]) @@ -12429,7 +15819,7 @@ func (m *WitnessAndBuildRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *WitnessAndBuildResponse) Unmarshal(dAtA []byte) error { +func (m *GasPricesResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -12452,15 +15842,15 @@ func (m *WitnessAndBuildResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: WitnessAndBuildResponse: wiretype end group for non-group") + return fmt.Errorf("proto: GasPricesResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: WitnessAndBuildResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GasPricesResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Transaction", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field GasPrices", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -12487,10 +15877,10 @@ func (m *WitnessAndBuildResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Transaction == nil { - m.Transaction = &v1alpha1.Transaction{} + if m.GasPrices == nil { + m.GasPrices = &v14.GasPrices{} } - if err := m.Transaction.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.GasPrices.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -12515,7 +15905,7 @@ func (m *WitnessAndBuildResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *AssetsRequest) Unmarshal(dAtA []byte) error { +func (m *FMDParametersRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -12538,166 +15928,12 @@ func (m *AssetsRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: AssetsRequest: wiretype end group for non-group") + return fmt.Errorf("proto: FMDParametersRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: AssetsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: FMDParametersRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Filtered", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowView - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Filtered = bool(v != 0) - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field IncludeSpecificDenominations", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowView - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthView - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthView - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.IncludeSpecificDenominations = append(m.IncludeSpecificDenominations, &v1alpha15.Denom{}) - if err := m.IncludeSpecificDenominations[len(m.IncludeSpecificDenominations)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IncludeDelegationTokens", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowView - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.IncludeDelegationTokens = bool(v != 0) - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IncludeUnbondingTokens", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowView - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.IncludeUnbondingTokens = bool(v != 0) - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IncludeLpNfts", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowView - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.IncludeLpNfts = bool(v != 0) - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IncludeProposalNfts", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowView - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.IncludeProposalNfts = bool(v != 0) - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IncludeVotingReceiptTokens", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowView - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.IncludeVotingReceiptTokens = bool(v != 0) default: iNdEx = preIndex skippy, err := skipView(dAtA[iNdEx:]) @@ -12719,7 +15955,7 @@ func (m *AssetsRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *AssetsResponse) Unmarshal(dAtA []byte) error { +func (m *FMDParametersResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -12742,15 +15978,15 @@ func (m *AssetsResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: AssetsResponse: wiretype end group for non-group") + return fmt.Errorf("proto: FMDParametersResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: AssetsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: FMDParametersResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 2: + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DenomMetadata", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Parameters", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -12777,10 +16013,10 @@ func (m *AssetsResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.DenomMetadata == nil { - m.DenomMetadata = &v1alpha15.DenomMetadata{} + if m.Parameters == nil { + m.Parameters = &v112.FmdParameters{} } - if err := m.DenomMetadata.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Parameters.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -12805,7 +16041,7 @@ func (m *AssetsResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *AppParametersRequest) Unmarshal(dAtA []byte) error { +func (m *NoteByCommitmentRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -12828,12 +16064,68 @@ func (m *AppParametersRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: AppParametersRequest: wiretype end group for non-group") + return fmt.Errorf("proto: NoteByCommitmentRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: AppParametersRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: NoteByCommitmentRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NoteCommitment", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowView + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthView + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthView + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.NoteCommitment == nil { + m.NoteCommitment = &v17.StateCommitment{} + } + if err := m.NoteCommitment.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AwaitDetection", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowView + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AwaitDetection = bool(v != 0) default: iNdEx = preIndex skippy, err := skipView(dAtA[iNdEx:]) @@ -12855,7 +16147,7 @@ func (m *AppParametersRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *AppParametersResponse) Unmarshal(dAtA []byte) error { +func (m *NoteByCommitmentResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -12878,15 +16170,15 @@ func (m *AppParametersResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: AppParametersResponse: wiretype end group for non-group") + return fmt.Errorf("proto: NoteByCommitmentResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: AppParametersResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: NoteByCommitmentResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Parameters", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field SpendableNote", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -12913,10 +16205,10 @@ func (m *AppParametersResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Parameters == nil { - m.Parameters = &v1alpha110.AppParameters{} + if m.SpendableNote == nil { + m.SpendableNote = &SpendableNoteRecord{} } - if err := m.Parameters.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.SpendableNote.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -12941,7 +16233,7 @@ func (m *AppParametersResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *GasPricesRequest) Unmarshal(dAtA []byte) error { +func (m *SwapByCommitmentRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -12964,12 +16256,68 @@ func (m *GasPricesRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GasPricesRequest: wiretype end group for non-group") + return fmt.Errorf("proto: SwapByCommitmentRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GasPricesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: SwapByCommitmentRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SwapCommitment", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowView + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthView + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthView + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SwapCommitment == nil { + m.SwapCommitment = &v17.StateCommitment{} + } + if err := m.SwapCommitment.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AwaitDetection", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowView + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AwaitDetection = bool(v != 0) default: iNdEx = preIndex skippy, err := skipView(dAtA[iNdEx:]) @@ -12991,7 +16339,7 @@ func (m *GasPricesRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *GasPricesResponse) Unmarshal(dAtA []byte) error { +func (m *SwapByCommitmentResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -13014,15 +16362,15 @@ func (m *GasPricesResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GasPricesResponse: wiretype end group for non-group") + return fmt.Errorf("proto: SwapByCommitmentResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GasPricesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: SwapByCommitmentResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GasPrices", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Swap", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -13049,10 +16397,10 @@ func (m *GasPricesResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.GasPrices == nil { - m.GasPrices = &v1alpha12.GasPrices{} + if m.Swap == nil { + m.Swap = &SwapRecord{} } - if err := m.GasPrices.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Swap.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -13077,7 +16425,7 @@ func (m *GasPricesResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *FMDParametersRequest) Unmarshal(dAtA []byte) error { +func (m *UnclaimedSwapsRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -13100,10 +16448,10 @@ func (m *FMDParametersRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: FMDParametersRequest: wiretype end group for non-group") + return fmt.Errorf("proto: UnclaimedSwapsRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: FMDParametersRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: UnclaimedSwapsRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -13127,7 +16475,7 @@ func (m *FMDParametersRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *FMDParametersResponse) Unmarshal(dAtA []byte) error { +func (m *UnclaimedSwapsResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -13150,15 +16498,15 @@ func (m *FMDParametersResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: FMDParametersResponse: wiretype end group for non-group") + return fmt.Errorf("proto: UnclaimedSwapsResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: FMDParametersResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: UnclaimedSwapsResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Parameters", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Swap", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -13185,10 +16533,10 @@ func (m *FMDParametersResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Parameters == nil { - m.Parameters = &v1alpha111.FmdParameters{} + if m.Swap == nil { + m.Swap = &SwapRecord{} } - if err := m.Parameters.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Swap.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -13213,7 +16561,7 @@ func (m *FMDParametersResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *NoteByCommitmentRequest) Unmarshal(dAtA []byte) error { +func (m *NullifierStatusRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -13236,15 +16584,15 @@ func (m *NoteByCommitmentRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: NoteByCommitmentRequest: wiretype end group for non-group") + return fmt.Errorf("proto: NullifierStatusRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: NoteByCommitmentRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: NullifierStatusRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NoteCommitment", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Nullifier", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -13271,10 +16619,10 @@ func (m *NoteByCommitmentRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.NoteCommitment == nil { - m.NoteCommitment = &v1alpha16.StateCommitment{} + if m.Nullifier == nil { + m.Nullifier = &v15.Nullifier{} } - if err := m.NoteCommitment.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Nullifier.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -13319,93 +16667,7 @@ func (m *NoteByCommitmentRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *NoteByCommitmentResponse) 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 ErrIntOverflowView - } - 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: NoteByCommitmentResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: NoteByCommitmentResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SpendableNote", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowView - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthView - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthView - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.SpendableNote == nil { - m.SpendableNote = &SpendableNoteRecord{} - } - if err := m.SpendableNote.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipView(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthView - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SwapByCommitmentRequest) Unmarshal(dAtA []byte) error { +func (m *NullifierStatusResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -13419,60 +16681,24 @@ func (m *SwapByCommitmentRequest) Unmarshal(dAtA []byte) error { 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: SwapByCommitmentRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SwapByCommitmentRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SwapCommitment", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowView - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthView - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthView - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.SwapCommitment == nil { - m.SwapCommitment = &v1alpha16.StateCommitment{} - } - if err := m.SwapCommitment.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break } - iNdEx = postIndex - case 3: + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: NullifierStatusResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NullifierStatusResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AwaitDetection", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Spent", wireType) } var v int for shift := uint(0); ; shift += 7 { @@ -13489,7 +16715,7 @@ func (m *SwapByCommitmentRequest) Unmarshal(dAtA []byte) error { break } } - m.AwaitDetection = bool(v != 0) + m.Spent = bool(v != 0) default: iNdEx = preIndex skippy, err := skipView(dAtA[iNdEx:]) @@ -13511,7 +16737,7 @@ func (m *SwapByCommitmentRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *SwapByCommitmentResponse) Unmarshal(dAtA []byte) error { +func (m *TransactionInfoByHashRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -13534,15 +16760,15 @@ func (m *SwapByCommitmentResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: SwapByCommitmentResponse: wiretype end group for non-group") + return fmt.Errorf("proto: TransactionInfoByHashRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: SwapByCommitmentResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: TransactionInfoByHashRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Swap", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -13569,10 +16795,10 @@ func (m *SwapByCommitmentResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Swap == nil { - m.Swap = &SwapRecord{} + if m.Id == nil { + m.Id = &v11.TransactionId{} } - if err := m.Swap.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Id.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -13597,7 +16823,7 @@ func (m *SwapByCommitmentResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *UnclaimedSwapsRequest) Unmarshal(dAtA []byte) error { +func (m *TransactionInfoRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -13620,12 +16846,50 @@ func (m *UnclaimedSwapsRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: UnclaimedSwapsRequest: wiretype end group for non-group") + return fmt.Errorf("proto: TransactionInfoRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: UnclaimedSwapsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: TransactionInfoRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field StartHeight", wireType) + } + m.StartHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowView + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.StartHeight |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EndHeight", wireType) + } + m.EndHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowView + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.EndHeight |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipView(dAtA[iNdEx:]) @@ -13647,7 +16911,7 @@ func (m *UnclaimedSwapsRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *UnclaimedSwapsResponse) Unmarshal(dAtA []byte) error { +func (m *TransactionInfo) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -13670,15 +16934,34 @@ func (m *UnclaimedSwapsResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: UnclaimedSwapsResponse: wiretype end group for non-group") + return fmt.Errorf("proto: TransactionInfo: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: UnclaimedSwapsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: TransactionInfo: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) + } + m.Height = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowView + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Height |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Swap", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -13705,66 +16988,52 @@ func (m *UnclaimedSwapsResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Swap == nil { - m.Swap = &SwapRecord{} + if m.Id == nil { + m.Id = &v11.TransactionId{} } - if err := m.Swap.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Id.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipView(dAtA[iNdEx:]) - if err != nil { - return err + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Transaction", wireType) } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthView + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowView + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF + if msglen < 0 { + return ErrInvalidLengthView } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *NullifierStatusRequest) 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 ErrIntOverflowView + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthView } - if iNdEx >= l { + if postIndex > l { return io.ErrUnexpectedEOF } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + if m.Transaction == nil { + m.Transaction = &v1.Transaction{} } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: NullifierStatusRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: NullifierStatusRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 2: + if err := m.Transaction.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Nullifier", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Perspective", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -13791,18 +17060,18 @@ func (m *NullifierStatusRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Nullifier == nil { - m.Nullifier = &v1alpha112.Nullifier{} + if m.Perspective == nil { + m.Perspective = &v1.TransactionPerspective{} } - if err := m.Nullifier.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Perspective.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AwaitDetection", wireType) + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field View", wireType) } - var v int + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowView @@ -13812,12 +17081,28 @@ func (m *NullifierStatusRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - m.AwaitDetection = bool(v != 0) + if msglen < 0 { + return ErrInvalidLengthView + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthView + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.View == nil { + m.View = &v1.TransactionView{} + } + if err := m.View.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipView(dAtA[iNdEx:]) @@ -13839,7 +17124,7 @@ func (m *NullifierStatusRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *NullifierStatusResponse) Unmarshal(dAtA []byte) error { +func (m *TransactionInfoResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -13862,17 +17147,17 @@ func (m *NullifierStatusResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: NullifierStatusResponse: wiretype end group for non-group") + return fmt.Errorf("proto: TransactionInfoResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: NullifierStatusResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: TransactionInfoResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Spent", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TxInfo", wireType) } - var v int + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowView @@ -13882,12 +17167,28 @@ func (m *NullifierStatusResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - m.Spent = bool(v != 0) + if msglen < 0 { + return ErrInvalidLengthView + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthView + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.TxInfo == nil { + m.TxInfo = &TransactionInfo{} + } + if err := m.TxInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipView(dAtA[iNdEx:]) @@ -13909,7 +17210,7 @@ func (m *NullifierStatusResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *TransactionInfoByHashRequest) Unmarshal(dAtA []byte) error { +func (m *TransactionInfoByHashResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -13932,15 +17233,15 @@ func (m *TransactionInfoByHashRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: TransactionInfoByHashRequest: wiretype end group for non-group") + return fmt.Errorf("proto: TransactionInfoByHashResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: TransactionInfoByHashRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: TransactionInfoByHashResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 2: + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TxInfo", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -13967,10 +17268,10 @@ func (m *TransactionInfoByHashRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Id == nil { - m.Id = &v1alpha11.TransactionId{} + if m.TxInfo == nil { + m.TxInfo = &TransactionInfo{} } - if err := m.Id.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.TxInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -13995,7 +17296,7 @@ func (m *TransactionInfoByHashRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *TransactionInfoRequest) Unmarshal(dAtA []byte) error { +func (m *NotesResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -14018,17 +17319,17 @@ func (m *TransactionInfoRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: TransactionInfoRequest: wiretype end group for non-group") + return fmt.Errorf("proto: NotesResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: TransactionInfoRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: NotesResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StartHeight", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NoteRecord", wireType) } - m.StartHeight = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowView @@ -14038,30 +17339,28 @@ func (m *TransactionInfoRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartHeight |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field EndHeight", wireType) + if msglen < 0 { + return ErrInvalidLengthView } - m.EndHeight = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowView - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.EndHeight |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthView + } + if postIndex > l { + return io.ErrUnexpectedEOF } + if m.NoteRecord == nil { + m.NoteRecord = &SpendableNoteRecord{} + } + if err := m.NoteRecord.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipView(dAtA[iNdEx:]) @@ -14083,7 +17382,7 @@ func (m *TransactionInfoRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *TransactionInfo) Unmarshal(dAtA []byte) error { +func (m *NotesForVotingResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -14106,106 +17405,15 @@ func (m *TransactionInfo) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: TransactionInfo: wiretype end group for non-group") + return fmt.Errorf("proto: NotesForVotingResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: TransactionInfo: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: NotesForVotingResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) - } - m.Height = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowView - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Height |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowView - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthView - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthView - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Id == nil { - m.Id = &v1alpha11.TransactionId{} - } - if err := m.Id.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Transaction", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowView - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthView - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthView - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Transaction == nil { - m.Transaction = &v1alpha1.Transaction{} - } - if err := m.Transaction.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Perspective", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field NoteRecord", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -14232,16 +17440,16 @@ func (m *TransactionInfo) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Perspective == nil { - m.Perspective = &v1alpha1.TransactionPerspective{} + if m.NoteRecord == nil { + m.NoteRecord = &SpendableNoteRecord{} } - if err := m.Perspective.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.NoteRecord.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 5: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field View", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field IdentityKey", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -14268,10 +17476,10 @@ func (m *TransactionInfo) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.View == nil { - m.View = &v1alpha1.TransactionView{} + if m.IdentityKey == nil { + m.IdentityKey = &v12.IdentityKey{} } - if err := m.View.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.IdentityKey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -14296,7 +17504,7 @@ func (m *TransactionInfo) Unmarshal(dAtA []byte) error { } return nil } -func (m *TransactionInfoResponse) Unmarshal(dAtA []byte) error { +func (m *SpendableNoteRecord) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -14319,15 +17527,15 @@ func (m *TransactionInfoResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: TransactionInfoResponse: wiretype end group for non-group") + return fmt.Errorf("proto: SpendableNoteRecord: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: TransactionInfoResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: SpendableNoteRecord: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TxInfo", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field NoteCommitment", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -14354,66 +17562,16 @@ func (m *TransactionInfoResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.TxInfo == nil { - m.TxInfo = &TransactionInfo{} + if m.NoteCommitment == nil { + m.NoteCommitment = &v17.StateCommitment{} } - if err := m.TxInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.NoteCommitment.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipView(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthView - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *TransactionInfoByHashResponse) 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 ErrIntOverflowView - } - 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: TransactionInfoByHashResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TransactionInfoByHashResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TxInfo", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Note", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -14440,66 +17598,52 @@ func (m *TransactionInfoByHashResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.TxInfo == nil { - m.TxInfo = &TransactionInfo{} + if m.Note == nil { + m.Note = &v112.Note{} } - if err := m.TxInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Note.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipView(dAtA[iNdEx:]) - if err != nil { - return err + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AddressIndex", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowView + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if msglen < 0 { return ErrInvalidLengthView } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *NotesResponse) 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 ErrIntOverflowView + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthView } - if iNdEx >= l { + if postIndex > l { return io.ErrUnexpectedEOF } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + if m.AddressIndex == nil { + m.AddressIndex = &v12.AddressIndex{} } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: NotesResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: NotesResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + if err := m.AddressIndex.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NoteRecord", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Nullifier", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -14526,66 +17670,73 @@ func (m *NotesResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.NoteRecord == nil { - m.NoteRecord = &SpendableNoteRecord{} + if m.Nullifier == nil { + m.Nullifier = &v15.Nullifier{} } - if err := m.NoteRecord.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Nullifier.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipView(dAtA[iNdEx:]) - if err != nil { - return err + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HeightCreated", wireType) } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthView + m.HeightCreated = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowView + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.HeightCreated |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HeightSpent", wireType) } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *NotesForVotingResponse) 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 ErrIntOverflowView + m.HeightSpent = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowView + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.HeightSpent |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } } - if iNdEx >= l { - return io.ErrUnexpectedEOF + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Position", wireType) } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + m.Position = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowView + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Position |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: NotesForVotingResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: NotesForVotingResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + case 8: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NoteRecord", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Source", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -14612,16 +17763,16 @@ func (m *NotesForVotingResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.NoteRecord == nil { - m.NoteRecord = &SpendableNoteRecord{} + if m.Source == nil { + m.Source = &v15.CommitmentSource{} } - if err := m.NoteRecord.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Source.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 2: + case 9: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field IdentityKey", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ReturnAddress", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -14648,10 +17799,10 @@ func (m *NotesForVotingResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.IdentityKey == nil { - m.IdentityKey = &v1alpha13.IdentityKey{} + if m.ReturnAddress == nil { + m.ReturnAddress = &v12.AddressView{} } - if err := m.IdentityKey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.ReturnAddress.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -14676,7 +17827,7 @@ func (m *NotesForVotingResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *SpendableNoteRecord) Unmarshal(dAtA []byte) error { +func (m *SwapRecord) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -14699,15 +17850,15 @@ func (m *SpendableNoteRecord) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: SpendableNoteRecord: wiretype end group for non-group") + return fmt.Errorf("proto: SwapRecord: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: SpendableNoteRecord: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: SwapRecord: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NoteCommitment", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field SwapCommitment", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -14734,16 +17885,16 @@ func (m *SpendableNoteRecord) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.NoteCommitment == nil { - m.NoteCommitment = &v1alpha16.StateCommitment{} + if m.SwapCommitment == nil { + m.SwapCommitment = &v17.StateCommitment{} } - if err := m.NoteCommitment.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.SwapCommitment.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Note", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Swap", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -14770,18 +17921,18 @@ func (m *SpendableNoteRecord) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Note == nil { - m.Note = &v1alpha113.Note{} + if m.Swap == nil { + m.Swap = &v110.SwapPlaintext{} } - if err := m.Note.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Swap.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AddressIndex", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Position", wireType) } - var msglen int + m.Position = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowView @@ -14791,28 +17942,11 @@ func (m *SpendableNoteRecord) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + m.Position |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return ErrInvalidLengthView - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthView - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.AddressIndex == nil { - m.AddressIndex = &v1alpha13.AddressIndex{} - } - if err := m.AddressIndex.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Nullifier", wireType) @@ -14843,17 +17977,17 @@ func (m *SpendableNoteRecord) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Nullifier == nil { - m.Nullifier = &v1alpha112.Nullifier{} + m.Nullifier = &v15.Nullifier{} } if err := m.Nullifier.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field HeightCreated", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OutputData", wireType) } - m.HeightCreated = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowView @@ -14863,35 +17997,33 @@ func (m *SpendableNoteRecord) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.HeightCreated |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field HeightSpent", wireType) + if msglen < 0 { + return ErrInvalidLengthView } - m.HeightSpent = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowView - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.HeightSpent |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthView } - case 7: + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.OutputData == nil { + m.OutputData = &v110.BatchSwapOutputData{} + } + if err := m.OutputData.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Position", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field HeightClaimed", wireType) } - m.Position = 0 + m.HeightClaimed = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowView @@ -14901,12 +18033,12 @@ func (m *SpendableNoteRecord) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Position |= uint64(b&0x7F) << shift + m.HeightClaimed |= uint64(b&0x7F) << shift if b < 0x80 { break } } - case 8: + case 7: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Source", wireType) } @@ -14936,7 +18068,7 @@ func (m *SpendableNoteRecord) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Source == nil { - m.Source = &v1alpha112.CommitmentSource{} + m.Source = &v15.CommitmentSource{} } if err := m.Source.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -14963,7 +18095,7 @@ func (m *SpendableNoteRecord) Unmarshal(dAtA []byte) error { } return nil } -func (m *SwapRecord) Unmarshal(dAtA []byte) error { +func (m *OwnedPositionIdsRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -14986,15 +18118,15 @@ func (m *SwapRecord) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: SwapRecord: wiretype end group for non-group") + return fmt.Errorf("proto: OwnedPositionIdsRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: SwapRecord: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: OwnedPositionIdsRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SwapCommitment", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field PositionState", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -15021,16 +18153,16 @@ func (m *SwapRecord) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.SwapCommitment == nil { - m.SwapCommitment = &v1alpha16.StateCommitment{} + if m.PositionState == nil { + m.PositionState = &v110.PositionState{} } - if err := m.SwapCommitment.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.PositionState.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Swap", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TradingPair", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -15057,35 +18189,66 @@ func (m *SwapRecord) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Swap == nil { - m.Swap = &v1alpha19.SwapPlaintext{} + if m.TradingPair == nil { + m.TradingPair = &v110.TradingPair{} } - if err := m.Swap.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.TradingPair.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Position", wireType) + default: + iNdEx = preIndex + skippy, err := skipView(dAtA[iNdEx:]) + if err != nil { + return err } - m.Position = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowView - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Position |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthView } - case 4: + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *OwnedPositionIdsResponse) 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 ErrIntOverflowView + } + 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: OwnedPositionIdsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: OwnedPositionIdsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Nullifier", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field PositionId", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -15112,16 +18275,66 @@ func (m *SwapRecord) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Nullifier == nil { - m.Nullifier = &v1alpha112.Nullifier{} + if m.PositionId == nil { + m.PositionId = &v110.PositionId{} } - if err := m.Nullifier.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.PositionId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 5: + default: + iNdEx = preIndex + skippy, err := skipView(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthView + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AssetMetadataByIdRequest) 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 ErrIntOverflowView + } + 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: AssetMetadataByIdRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AssetMetadataByIdRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field OutputData", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AssetId", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -15148,35 +18361,66 @@ func (m *SwapRecord) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.OutputData == nil { - m.OutputData = &v1alpha19.BatchSwapOutputData{} + if m.AssetId == nil { + m.AssetId = &v16.AssetId{} } - if err := m.OutputData.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.AssetId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field HeightClaimed", wireType) + default: + iNdEx = preIndex + skippy, err := skipView(dAtA[iNdEx:]) + if err != nil { + return err } - m.HeightClaimed = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowView - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.HeightClaimed |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthView } - case 7: + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AssetMetadataByIdResponse) 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 ErrIntOverflowView + } + 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: AssetMetadataByIdResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AssetMetadataByIdResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Source", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field DenomMetadata", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -15203,10 +18447,10 @@ func (m *SwapRecord) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Source == nil { - m.Source = &v1alpha112.CommitmentSource{} + if m.DenomMetadata == nil { + m.DenomMetadata = &v16.Metadata{} } - if err := m.Source.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.DenomMetadata.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -15231,7 +18475,7 @@ func (m *SwapRecord) Unmarshal(dAtA []byte) error { } return nil } -func (m *OwnedPositionIdsRequest) Unmarshal(dAtA []byte) error { +func (m *DelegationsByAddressIndexRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -15254,15 +18498,15 @@ func (m *OwnedPositionIdsRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: OwnedPositionIdsRequest: wiretype end group for non-group") + return fmt.Errorf("proto: DelegationsByAddressIndexRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: OwnedPositionIdsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: DelegationsByAddressIndexRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PositionState", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AddressIndex", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -15289,18 +18533,18 @@ func (m *OwnedPositionIdsRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.PositionState == nil { - m.PositionState = &v1alpha19.PositionState{} + if m.AddressIndex == nil { + m.AddressIndex = &v12.AddressIndex{} } - if err := m.PositionState.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.AddressIndex.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TradingPair", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Filter", wireType) } - var msglen int + m.Filter = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowView @@ -15310,28 +18554,11 @@ func (m *OwnedPositionIdsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + m.Filter |= DelegationsByAddressIndexRequest_Filter(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return ErrInvalidLengthView - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthView - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.TradingPair == nil { - m.TradingPair = &v1alpha19.TradingPair{} - } - if err := m.TradingPair.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipView(dAtA[iNdEx:]) @@ -15353,7 +18580,7 @@ func (m *OwnedPositionIdsRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *OwnedPositionIdsResponse) Unmarshal(dAtA []byte) error { +func (m *DelegationsByAddressIndexResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -15376,15 +18603,15 @@ func (m *OwnedPositionIdsResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: OwnedPositionIdsResponse: wiretype end group for non-group") + return fmt.Errorf("proto: DelegationsByAddressIndexResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: OwnedPositionIdsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: DelegationsByAddressIndexResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PositionId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ValueView", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -15411,10 +18638,10 @@ func (m *OwnedPositionIdsResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.PositionId == nil { - m.PositionId = &v1alpha19.PositionId{} + if m.ValueView == nil { + m.ValueView = &v16.ValueView{} } - if err := m.PositionId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.ValueView.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex