diff --git a/relayer/chains/penumbra/core/app/v1alpha1/app.pb.go b/relayer/chains/penumbra/core/app/v1alpha1/app.pb.go new file mode 100644 index 000000000..8e2e46f54 --- /dev/null +++ b/relayer/chains/penumbra/core/app/v1alpha1/app.pb.go @@ -0,0 +1,3098 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: penumbra/core/app/v1alpha1/app.proto + +package appv1alpha1 + +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" + v1alpha1 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/component/chain/v1alpha1" + v1alpha11 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/component/dao/v1alpha1" + v1alpha12 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/component/governance/v1alpha1" + v1alpha13 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/component/ibc/v1alpha1" + v1alpha15 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/component/shielded_pool/v1alpha1" + v1alpha14 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/component/stake/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 + +// 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_e3359d6f6803c6c6, []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_e3359d6f6803c6c6, []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_e3359d6f6803c6c6, []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_e3359d6f6803c6c6, []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_e3359d6f6803c6c6, []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 +} + +type AppParameters struct { + // Chain module parameters. + ChainParams *v1alpha1.ChainParameters `protobuf:"bytes,1,opt,name=chain_params,json=chainParams,proto3" json:"chain_params,omitempty"` + // DAO module parameters. + DaoParams *v1alpha11.DaoParameters `protobuf:"bytes,2,opt,name=dao_params,json=daoParams,proto3" json:"dao_params,omitempty"` + // Governance module parameters. + GovernanceParams *v1alpha12.GovernanceParameters `protobuf:"bytes,3,opt,name=governance_params,json=governanceParams,proto3" json:"governance_params,omitempty"` + // IBC module parameters. + IbcParams *v1alpha13.IbcParameters `protobuf:"bytes,4,opt,name=ibc_params,json=ibcParams,proto3" json:"ibc_params,omitempty"` + // Stake module parameters. + StakeParams *v1alpha14.StakeParameters `protobuf:"bytes,5,opt,name=stake_params,json=stakeParams,proto3" json:"stake_params,omitempty"` +} + +func (m *AppParameters) Reset() { *m = AppParameters{} } +func (m *AppParameters) String() string { return proto.CompactTextString(m) } +func (*AppParameters) ProtoMessage() {} +func (*AppParameters) Descriptor() ([]byte, []int) { + return fileDescriptor_e3359d6f6803c6c6, []int{4} +} +func (m *AppParameters) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AppParameters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AppParameters.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 *AppParameters) XXX_Merge(src proto.Message) { + xxx_messageInfo_AppParameters.Merge(m, src) +} +func (m *AppParameters) XXX_Size() int { + return m.Size() +} +func (m *AppParameters) XXX_DiscardUnknown() { + xxx_messageInfo_AppParameters.DiscardUnknown(m) +} + +var xxx_messageInfo_AppParameters proto.InternalMessageInfo + +func (m *AppParameters) GetChainParams() *v1alpha1.ChainParameters { + if m != nil { + return m.ChainParams + } + return nil +} + +func (m *AppParameters) GetDaoParams() *v1alpha11.DaoParameters { + if m != nil { + return m.DaoParams + } + return nil +} + +func (m *AppParameters) GetGovernanceParams() *v1alpha12.GovernanceParameters { + if m != nil { + return m.GovernanceParams + } + return nil +} + +func (m *AppParameters) GetIbcParams() *v1alpha13.IbcParameters { + if m != nil { + return m.IbcParams + } + return nil +} + +func (m *AppParameters) GetStakeParams() *v1alpha14.StakeParameters { + if m != nil { + return m.StakeParams + } + return nil +} + +// Requests the global configuration data for the app. +type AppParametersRequest 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 *AppParametersRequest) Reset() { *m = AppParametersRequest{} } +func (m *AppParametersRequest) String() string { return proto.CompactTextString(m) } +func (*AppParametersRequest) ProtoMessage() {} +func (*AppParametersRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_e3359d6f6803c6c6, []int{5} +} +func (m *AppParametersRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AppParametersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AppParametersRequest.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 *AppParametersRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_AppParametersRequest.Merge(m, src) +} +func (m *AppParametersRequest) XXX_Size() int { + return m.Size() +} +func (m *AppParametersRequest) XXX_DiscardUnknown() { + xxx_messageInfo_AppParametersRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_AppParametersRequest proto.InternalMessageInfo + +func (m *AppParametersRequest) GetChainId() string { + if m != nil { + return m.ChainId + } + return "" +} + +type AppParametersResponse struct { + AppParameters *AppParameters `protobuf:"bytes,1,opt,name=app_parameters,json=appParameters,proto3" json:"app_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_e3359d6f6803c6c6, []int{6} +} +func (m *AppParametersResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AppParametersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AppParametersResponse.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 *AppParametersResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_AppParametersResponse.Merge(m, src) +} +func (m *AppParametersResponse) XXX_Size() int { + return m.Size() +} +func (m *AppParametersResponse) XXX_DiscardUnknown() { + xxx_messageInfo_AppParametersResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_AppParametersResponse proto.InternalMessageInfo + +func (m *AppParametersResponse) GetAppParameters() *AppParameters { + if m != nil { + return m.AppParameters + } + return nil +} + +type GenesisAppState struct { + // Types that are valid to be assigned to GenesisAppState: + // *GenesisAppState_GenesisContent + // *GenesisAppState_GenesisCheckpoint + GenesisAppState isGenesisAppState_GenesisAppState `protobuf_oneof:"genesis_app_state"` +} + +func (m *GenesisAppState) Reset() { *m = GenesisAppState{} } +func (m *GenesisAppState) String() string { return proto.CompactTextString(m) } +func (*GenesisAppState) ProtoMessage() {} +func (*GenesisAppState) Descriptor() ([]byte, []int) { + return fileDescriptor_e3359d6f6803c6c6, []int{7} +} +func (m *GenesisAppState) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GenesisAppState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GenesisAppState.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 *GenesisAppState) XXX_Merge(src proto.Message) { + xxx_messageInfo_GenesisAppState.Merge(m, src) +} +func (m *GenesisAppState) XXX_Size() int { + return m.Size() +} +func (m *GenesisAppState) XXX_DiscardUnknown() { + xxx_messageInfo_GenesisAppState.DiscardUnknown(m) +} + +var xxx_messageInfo_GenesisAppState proto.InternalMessageInfo + +type isGenesisAppState_GenesisAppState interface { + isGenesisAppState_GenesisAppState() + MarshalTo([]byte) (int, error) + Size() int +} + +type GenesisAppState_GenesisContent struct { + GenesisContent *GenesisContent `protobuf:"bytes,1,opt,name=genesis_content,json=genesisContent,proto3,oneof" json:"genesis_content,omitempty"` +} +type GenesisAppState_GenesisCheckpoint struct { + GenesisCheckpoint []byte `protobuf:"bytes,2,opt,name=genesis_checkpoint,json=genesisCheckpoint,proto3,oneof" json:"genesis_checkpoint,omitempty"` +} + +func (*GenesisAppState_GenesisContent) isGenesisAppState_GenesisAppState() {} +func (*GenesisAppState_GenesisCheckpoint) isGenesisAppState_GenesisAppState() {} + +func (m *GenesisAppState) GetGenesisAppState() isGenesisAppState_GenesisAppState { + if m != nil { + return m.GenesisAppState + } + return nil +} + +func (m *GenesisAppState) GetGenesisContent() *GenesisContent { + if x, ok := m.GetGenesisAppState().(*GenesisAppState_GenesisContent); ok { + return x.GenesisContent + } + return nil +} + +func (m *GenesisAppState) GetGenesisCheckpoint() []byte { + if x, ok := m.GetGenesisAppState().(*GenesisAppState_GenesisCheckpoint); ok { + return x.GenesisCheckpoint + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*GenesisAppState) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*GenesisAppState_GenesisContent)(nil), + (*GenesisAppState_GenesisCheckpoint)(nil), + } +} + +type GenesisContent struct { + // Stake module genesis state. + StakeContent *v1alpha14.GenesisContent `protobuf:"bytes,1,opt,name=stake_content,json=stakeContent,proto3" json:"stake_content,omitempty"` + // Shielded pool module genesis state. + ShieldedPoolContent *v1alpha15.GenesisContent `protobuf:"bytes,2,opt,name=shielded_pool_content,json=shieldedPoolContent,proto3" json:"shielded_pool_content,omitempty"` + // Governance module genesis state. + GovernanceContent *v1alpha12.GenesisContent `protobuf:"bytes,3,opt,name=governance_content,json=governanceContent,proto3" json:"governance_content,omitempty"` + // IBC module genesis state. + IbcContent *v1alpha13.GenesisContent `protobuf:"bytes,4,opt,name=ibc_content,json=ibcContent,proto3" json:"ibc_content,omitempty"` + // Chain module genesis state. + ChainContent *v1alpha1.GenesisContent `protobuf:"bytes,5,opt,name=chain_content,json=chainContent,proto3" json:"chain_content,omitempty"` + // DAO module genesis state. + DaoContent *v1alpha11.GenesisContent `protobuf:"bytes,6,opt,name=dao_content,json=daoContent,proto3" json:"dao_content,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_e3359d6f6803c6c6, []int{8} +} +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) GetStakeContent() *v1alpha14.GenesisContent { + if m != nil { + return m.StakeContent + } + return nil +} + +func (m *GenesisContent) GetShieldedPoolContent() *v1alpha15.GenesisContent { + if m != nil { + return m.ShieldedPoolContent + } + return nil +} + +func (m *GenesisContent) GetGovernanceContent() *v1alpha12.GenesisContent { + if m != nil { + return m.GovernanceContent + } + return nil +} + +func (m *GenesisContent) GetIbcContent() *v1alpha13.GenesisContent { + if m != nil { + return m.IbcContent + } + return nil +} + +func (m *GenesisContent) GetChainContent() *v1alpha1.GenesisContent { + if m != nil { + return m.ChainContent + } + return nil +} + +func (m *GenesisContent) GetDaoContent() *v1alpha11.GenesisContent { + if m != nil { + return m.DaoContent + } + return nil +} + +func init() { + proto.RegisterType((*KeyValueRequest)(nil), "penumbra.core.app.v1alpha1.KeyValueRequest") + proto.RegisterType((*KeyValueResponse)(nil), "penumbra.core.app.v1alpha1.KeyValueResponse") + proto.RegisterType((*KeyValueResponse_Value)(nil), "penumbra.core.app.v1alpha1.KeyValueResponse.Value") + proto.RegisterType((*PrefixValueRequest)(nil), "penumbra.core.app.v1alpha1.PrefixValueRequest") + proto.RegisterType((*PrefixValueResponse)(nil), "penumbra.core.app.v1alpha1.PrefixValueResponse") + proto.RegisterType((*AppParameters)(nil), "penumbra.core.app.v1alpha1.AppParameters") + proto.RegisterType((*AppParametersRequest)(nil), "penumbra.core.app.v1alpha1.AppParametersRequest") + proto.RegisterType((*AppParametersResponse)(nil), "penumbra.core.app.v1alpha1.AppParametersResponse") + proto.RegisterType((*GenesisAppState)(nil), "penumbra.core.app.v1alpha1.GenesisAppState") + proto.RegisterType((*GenesisContent)(nil), "penumbra.core.app.v1alpha1.GenesisContent") +} + +func init() { + proto.RegisterFile("penumbra/core/app/v1alpha1/app.proto", fileDescriptor_e3359d6f6803c6c6) +} + +var fileDescriptor_e3359d6f6803c6c6 = []byte{ + // 968 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x56, 0xdd, 0x8e, 0xdb, 0x44, + 0x14, 0x8e, 0x9d, 0x66, 0xd9, 0x9e, 0xfd, 0xed, 0x6c, 0x8b, 0x96, 0x48, 0x8d, 0xaa, 0x80, 0xa0, + 0xfc, 0xc8, 0x6e, 0x52, 0x04, 0x22, 0x05, 0xa4, 0x64, 0x91, 0x76, 0x2b, 0x54, 0xc9, 0x78, 0x69, + 0x2f, 0xca, 0x4a, 0xab, 0x89, 0x3d, 0x4d, 0xcc, 0x26, 0x9e, 0xc1, 0x76, 0x22, 0xf6, 0x2d, 0x78, + 0x05, 0xb8, 0xe4, 0x82, 0x4b, 0x9e, 0x01, 0x71, 0xd5, 0xcb, 0xbd, 0x41, 0xa0, 0xdd, 0x3b, 0x9e, + 0x02, 0xcd, 0x9f, 0x3d, 0x0e, 0xf2, 0x26, 0x7b, 0xe7, 0x73, 0xe6, 0x3b, 0xdf, 0x77, 0xe6, 0xcc, + 0x39, 0x33, 0x86, 0x77, 0x18, 0x89, 0x67, 0xd3, 0x61, 0x82, 0xdd, 0x80, 0x26, 0xc4, 0xc5, 0x8c, + 0xb9, 0xf3, 0x0e, 0x9e, 0xb0, 0x31, 0xee, 0x70, 0xc3, 0x61, 0x09, 0xcd, 0x28, 0x6a, 0x6a, 0x94, + 0xc3, 0x51, 0x0e, 0x5f, 0xd0, 0xa8, 0x66, 0xb7, 0xcc, 0x10, 0xd0, 0x29, 0xa3, 0x31, 0x89, 0x33, + 0x37, 0x18, 0xe3, 0x28, 0x2e, 0xd8, 0x84, 0x29, 0xf9, 0xaa, 0x63, 0xd2, 0x0c, 0x9f, 0x91, 0x22, + 0x46, 0x98, 0x2a, 0x66, 0x50, 0x19, 0x33, 0x8e, 0xc8, 0x24, 0x24, 0xe1, 0x29, 0xa3, 0x74, 0x62, + 0xc4, 0x9a, 0x6e, 0xc5, 0xf1, 0x79, 0x15, 0xc7, 0x88, 0xce, 0x49, 0x12, 0xe3, 0x38, 0x30, 0xc4, + 0x0b, 0x9f, 0x8a, 0x76, 0xaa, 0xa2, 0xa3, 0x61, 0x50, 0x84, 0x45, 0xc3, 0x60, 0x19, 0x3e, 0xc4, + 0xb4, 0xc0, 0x87, 0x98, 0x2a, 0xfc, 0x7b, 0x9c, 0x47, 0x43, 0xa7, 0x51, 0x36, 0xe5, 0xd8, 0x79, + 0xc7, 0xb0, 0x24, 0xb0, 0xfd, 0x2d, 0xec, 0x7c, 0x4d, 0xce, 0x5f, 0xe0, 0xc9, 0x8c, 0xf8, 0xe4, + 0x87, 0x19, 0x49, 0x33, 0xf4, 0x16, 0xac, 0x8b, 0x02, 0x9f, 0x46, 0xe1, 0xbe, 0xf5, 0xc0, 0x7a, + 0x78, 0xdb, 0x7f, 0x43, 0xd8, 0x4f, 0x43, 0xb4, 0x0b, 0xf5, 0x33, 0x72, 0xbe, 0x6f, 0x0b, 0x2f, + 0xff, 0x44, 0x77, 0xa1, 0xc1, 0x12, 0x4a, 0x5f, 0xed, 0xd7, 0x1f, 0x58, 0x0f, 0xd7, 0x7d, 0x69, + 0xb4, 0x7f, 0xb7, 0x60, 0xb7, 0xa0, 0x4d, 0x19, 0x8d, 0x53, 0x82, 0x8e, 0xa0, 0x31, 0xe7, 0x0e, + 0x41, 0xba, 0xd1, 0xed, 0x3a, 0xd5, 0x9d, 0xe0, 0x2c, 0x06, 0x3b, 0xd2, 0x92, 0x04, 0xe8, 0x33, + 0x2d, 0x6a, 0x0b, 0xa6, 0xb7, 0x1d, 0x5e, 0x28, 0x41, 0x62, 0xec, 0x6f, 0xde, 0x71, 0x9e, 0x91, + 0xe4, 0x6c, 0x42, 0x3c, 0x0e, 0x55, 0x99, 0x35, 0xef, 0x43, 0x43, 0x50, 0xf1, 0xc4, 0x8b, 0x6c, + 0x36, 0x15, 0x73, 0xfb, 0x10, 0x90, 0x97, 0x90, 0x57, 0xd1, 0x8f, 0xab, 0x56, 0xe4, 0x4d, 0x58, + 0x63, 0x22, 0x40, 0x15, 0x45, 0x59, 0xed, 0x2f, 0x60, 0xaf, 0x44, 0xa4, 0x6a, 0xa0, 0x0a, 0x68, + 0x95, 0x0a, 0x28, 0xf3, 0xb0, 0xcd, 0x3c, 0xfe, 0xae, 0xc3, 0x56, 0x9f, 0x31, 0x0f, 0x27, 0x78, + 0x4a, 0x32, 0x92, 0xa4, 0xe8, 0x25, 0x6c, 0xca, 0x1c, 0x18, 0xf7, 0xa5, 0xaa, 0x88, 0x9f, 0x2e, + 0x14, 0x31, 0x6f, 0x0c, 0x47, 0xce, 0x48, 0x5e, 0xd0, 0x03, 0x6e, 0x16, 0x74, 0xfe, 0x46, 0x90, + 0x3b, 0x52, 0xe4, 0x03, 0x84, 0x98, 0x6a, 0x66, 0x59, 0xd4, 0xc7, 0x95, 0xcc, 0xbc, 0xcb, 0x72, + 0xde, 0xaf, 0x30, 0x35, 0x58, 0x6f, 0x87, 0xca, 0x4c, 0x51, 0x0c, 0x77, 0x8a, 0xae, 0xd7, 0xd4, + 0x75, 0x41, 0xdd, 0xaf, 0xa4, 0x36, 0xe6, 0x24, 0x57, 0x38, 0xcc, 0x7d, 0x86, 0xd0, 0xee, 0xa8, + 0xec, 0x15, 0x7b, 0x88, 0x86, 0x81, 0x16, 0xba, 0xb5, 0x64, 0x0f, 0xbc, 0x61, 0x72, 0x85, 0xa7, + 0xc3, 0xc0, 0xdc, 0x43, 0xa4, 0x4c, 0x51, 0x73, 0x71, 0x6d, 0x68, 0xd6, 0xc6, 0x92, 0x9a, 0xcb, + 0x3b, 0x26, 0xe7, 0x3d, 0xe6, 0xa6, 0x59, 0xf3, 0x34, 0x77, 0xa4, 0xed, 0x0e, 0xdc, 0x2d, 0x1d, + 0xf0, 0xf2, 0x5e, 0x6b, 0x47, 0x70, 0x6f, 0x21, 0x44, 0x75, 0x95, 0x07, 0xdb, 0x98, 0x31, 0x99, + 0xa5, 0x58, 0x51, 0xdd, 0xf1, 0xfe, 0x75, 0x23, 0x56, 0xa6, 0xda, 0xc2, 0xa6, 0xd9, 0xfe, 0xcd, + 0x82, 0x9d, 0x43, 0x12, 0x93, 0x34, 0x4a, 0xfb, 0x8c, 0x1d, 0x67, 0x38, 0x23, 0xe8, 0x39, 0xec, + 0x8c, 0xa4, 0xeb, 0x34, 0xa0, 0x71, 0x46, 0xe2, 0x4c, 0xc9, 0x7c, 0x70, 0x9d, 0x8c, 0x62, 0x39, + 0x90, 0x11, 0x47, 0x35, 0x7f, 0x7b, 0x54, 0xf2, 0x20, 0x17, 0x50, 0x4e, 0x3b, 0x26, 0xc1, 0x19, + 0xa3, 0x51, 0x9c, 0xc9, 0x69, 0x38, 0xaa, 0xf9, 0x77, 0x34, 0x3a, 0x5f, 0x1a, 0xec, 0x81, 0x76, + 0x9e, 0xf2, 0x5d, 0xa7, 0x3c, 0xb9, 0xf6, 0xc5, 0x2d, 0xd8, 0x2e, 0x4b, 0xa1, 0xef, 0x60, 0x4b, + 0x9e, 0x5e, 0x39, 0xdb, 0x4f, 0x56, 0x3d, 0xbe, 0x32, 0x9d, 0x2f, 0x5b, 0x41, 0x93, 0x27, 0x70, + 0xaf, 0xf4, 0x2a, 0xe4, 0x22, 0x72, 0x7a, 0xbe, 0xac, 0x16, 0x29, 0xbd, 0x25, 0x55, 0x62, 0x7b, + 0x1a, 0xe6, 0x51, 0x3a, 0xd1, 0x9a, 0xdf, 0x03, 0x32, 0x46, 0x4a, 0x0b, 0xca, 0x99, 0x7a, 0x72, + 0xb3, 0x99, 0x2a, 0xab, 0x19, 0x93, 0xaa, 0xb5, 0x9e, 0xc3, 0x06, 0x1f, 0x27, 0x2d, 0x22, 0xe7, + 0xe9, 0xe3, 0xd5, 0xe6, 0x69, 0x81, 0x9d, 0xcf, 0xa5, 0x71, 0x26, 0xb2, 0xbb, 0x35, 0x71, 0x63, + 0xc9, 0x99, 0x2c, 0x5c, 0x63, 0x8b, 0x67, 0x22, 0x96, 0x8d, 0x9c, 0xf9, 0x35, 0xa6, 0xa9, 0xd7, + 0x96, 0xe4, 0x5c, 0xba, 0xc7, 0x16, 0x73, 0x0e, 0x31, 0x55, 0xdf, 0xdd, 0xbf, 0x6c, 0xd8, 0xfc, + 0x66, 0x46, 0x92, 0xf3, 0x63, 0x92, 0xcc, 0xa3, 0x80, 0xa0, 0x6c, 0xf1, 0x6e, 0x7e, 0xb4, 0xfa, + 0x9c, 0xc9, 0x29, 0x6f, 0x76, 0x6e, 0x10, 0xa1, 0x86, 0x9c, 0xc0, 0xba, 0x7e, 0x15, 0xd1, 0x87, + 0xab, 0xbd, 0x9d, 0x52, 0xeb, 0xa3, 0x9b, 0x3c, 0xb4, 0x88, 0xc1, 0x86, 0xf1, 0x70, 0x21, 0xe7, + 0xba, 0xe0, 0xff, 0x3f, 0x95, 0x4d, 0x77, 0x65, 0xbc, 0xd4, 0x7b, 0x64, 0x0d, 0x7e, 0xb6, 0xff, + 0xb8, 0x6c, 0x59, 0xaf, 0x2f, 0x5b, 0xd6, 0x3f, 0x97, 0x2d, 0xeb, 0xa7, 0xab, 0x56, 0xed, 0xf5, + 0x55, 0xab, 0x76, 0x71, 0xd5, 0xaa, 0x41, 0x2b, 0xa0, 0xd3, 0x6b, 0x08, 0x07, 0xeb, 0xbc, 0x54, + 0xfc, 0x3f, 0xc6, 0xb3, 0x5e, 0xfa, 0xa3, 0x28, 0x1b, 0xcf, 0x86, 0xfc, 0x80, 0xdd, 0x80, 0xa6, + 0x53, 0x9a, 0xba, 0x09, 0x99, 0xe0, 0x73, 0x92, 0xb8, 0xf3, 0x6e, 0xfe, 0x29, 0x1a, 0x26, 0x75, + 0xab, 0x7f, 0x55, 0x9f, 0x60, 0xc6, 0xf4, 0xf7, 0x2f, 0x76, 0xdd, 0x3b, 0xe8, 0xff, 0x6a, 0x37, + 0x3d, 0x9d, 0xc2, 0x01, 0x4f, 0xa1, 0xcf, 0x98, 0xf3, 0x42, 0x41, 0xfe, 0x2c, 0x16, 0x4f, 0xf8, + 0xe2, 0x49, 0x9f, 0xb1, 0x13, 0xbd, 0x78, 0x69, 0xbf, 0x5b, 0xbd, 0x78, 0x72, 0xe8, 0x0d, 0x9e, + 0x91, 0x0c, 0x87, 0x38, 0xc3, 0xff, 0xda, 0xf7, 0x35, 0xb0, 0xd7, 0xe3, 0xc8, 0x5e, 0xaf, 0xcf, + 0x58, 0xaf, 0xa7, 0xb1, 0xc3, 0x35, 0xf1, 0xb7, 0xf6, 0xf8, 0xbf, 0x00, 0x00, 0x00, 0xff, 0xff, + 0x8f, 0xc9, 0x52, 0xfa, 0x64, 0x0b, 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 { + // Gets the app parameters. + AppParameters(ctx context.Context, in *AppParametersRequest, opts ...grpc.CallOption) (*AppParametersResponse, error) + // 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) AppParameters(ctx context.Context, in *AppParametersRequest, opts ...grpc.CallOption) (*AppParametersResponse, error) { + out := new(AppParametersResponse) + err := c.cc.Invoke(ctx, "/penumbra.core.app.v1alpha1.QueryService/AppParameters", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryServiceClient) KeyValue(ctx context.Context, in *KeyValueRequest, opts ...grpc.CallOption) (*KeyValueResponse, error) { + out := new(KeyValueResponse) + err := c.cc.Invoke(ctx, "/penumbra.core.app.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.core.app.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 { + // Gets the app parameters. + AppParameters(context.Context, *AppParametersRequest) (*AppParametersResponse, error) + // 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) AppParameters(ctx context.Context, req *AppParametersRequest) (*AppParametersResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AppParameters not implemented") +} +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_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.(QueryServiceServer).AppParameters(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/penumbra.core.app.v1alpha1.QueryService/AppParameters", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServiceServer).AppParameters(ctx, req.(*AppParametersRequest)) + } + return interceptor(ctx, in, info, handler) +} + +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.core.app.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.core.app.v1alpha1.QueryService", + HandlerType: (*QueryServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "AppParameters", + Handler: _QueryService_AppParameters_Handler, + }, + { + MethodName: "KeyValue", + Handler: _QueryService_KeyValue_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "PrefixValue", + Handler: _QueryService_PrefixValue_Handler, + ServerStreams: true, + }, + }, + Metadata: "penumbra/core/app/v1alpha1/app.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 = encodeVarintApp(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 = encodeVarintApp(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 = encodeVarintApp(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 = encodeVarintApp(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 = encodeVarintApp(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 = encodeVarintApp(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 = encodeVarintApp(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 = encodeVarintApp(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 = encodeVarintApp(dAtA, i, uint64(len(m.Key))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *AppParameters) 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 *AppParameters) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AppParameters) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.StakeParams != nil { + { + size, err := m.StakeParams.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintApp(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + if m.IbcParams != nil { + { + size, err := m.IbcParams.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintApp(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + if m.GovernanceParams != nil { + { + size, err := m.GovernanceParams.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintApp(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if m.DaoParams != nil { + { + size, err := m.DaoParams.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintApp(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.ChainParams != nil { + { + size, err := m.ChainParams.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintApp(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *AppParametersRequest) 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 *AppParametersRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AppParametersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ChainId) > 0 { + i -= len(m.ChainId) + copy(dAtA[i:], m.ChainId) + i = encodeVarintApp(dAtA, i, uint64(len(m.ChainId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *AppParametersResponse) 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 *AppParametersResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AppParametersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.AppParameters != nil { + { + size, err := m.AppParameters.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintApp(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *GenesisAppState) 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 *GenesisAppState) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GenesisAppState) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.GenesisAppState != nil { + { + size := m.GenesisAppState.Size() + i -= size + if _, err := m.GenesisAppState.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } + } + return len(dAtA) - i, nil +} + +func (m *GenesisAppState_GenesisContent) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GenesisAppState_GenesisContent) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.GenesisContent != nil { + { + size, err := m.GenesisContent.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintApp(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} +func (m *GenesisAppState_GenesisCheckpoint) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GenesisAppState_GenesisCheckpoint) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.GenesisCheckpoint != nil { + i -= len(m.GenesisCheckpoint) + copy(dAtA[i:], m.GenesisCheckpoint) + i = encodeVarintApp(dAtA, i, uint64(len(m.GenesisCheckpoint))) + i-- + dAtA[i] = 0x12 + } + 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.DaoContent != nil { + { + size, err := m.DaoContent.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintApp(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + if m.ChainContent != nil { + { + size, err := m.ChainContent.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintApp(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + if m.IbcContent != nil { + { + size, err := m.IbcContent.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintApp(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + if m.GovernanceContent != nil { + { + size, err := m.GovernanceContent.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintApp(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if m.ShieldedPoolContent != nil { + { + size, err := m.ShieldedPoolContent.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintApp(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.StakeContent != nil { + { + size, err := m.StakeContent.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintApp(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintApp(dAtA []byte, offset int, v uint64) int { + offset -= sovApp(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 + sovApp(uint64(l)) + } + l = len(m.Key) + if l > 0 { + n += 1 + l + sovApp(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 + sovApp(uint64(l)) + } + if m.Proof != nil { + l = m.Proof.Size() + n += 1 + l + sovApp(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 + sovApp(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 + sovApp(uint64(l)) + } + l = len(m.Prefix) + if l > 0 { + n += 1 + l + sovApp(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 + sovApp(uint64(l)) + } + l = len(m.Value) + if l > 0 { + n += 1 + l + sovApp(uint64(l)) + } + return n +} + +func (m *AppParameters) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ChainParams != nil { + l = m.ChainParams.Size() + n += 1 + l + sovApp(uint64(l)) + } + if m.DaoParams != nil { + l = m.DaoParams.Size() + n += 1 + l + sovApp(uint64(l)) + } + if m.GovernanceParams != nil { + l = m.GovernanceParams.Size() + n += 1 + l + sovApp(uint64(l)) + } + if m.IbcParams != nil { + l = m.IbcParams.Size() + n += 1 + l + sovApp(uint64(l)) + } + if m.StakeParams != nil { + l = m.StakeParams.Size() + n += 1 + l + sovApp(uint64(l)) + } + return n +} + +func (m *AppParametersRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ChainId) + if l > 0 { + n += 1 + l + sovApp(uint64(l)) + } + return n +} + +func (m *AppParametersResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.AppParameters != nil { + l = m.AppParameters.Size() + n += 1 + l + sovApp(uint64(l)) + } + return n +} + +func (m *GenesisAppState) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.GenesisAppState != nil { + n += m.GenesisAppState.Size() + } + return n +} + +func (m *GenesisAppState_GenesisContent) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.GenesisContent != nil { + l = m.GenesisContent.Size() + n += 1 + l + sovApp(uint64(l)) + } + return n +} +func (m *GenesisAppState_GenesisCheckpoint) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.GenesisCheckpoint != nil { + l = len(m.GenesisCheckpoint) + n += 1 + l + sovApp(uint64(l)) + } + return n +} +func (m *GenesisContent) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.StakeContent != nil { + l = m.StakeContent.Size() + n += 1 + l + sovApp(uint64(l)) + } + if m.ShieldedPoolContent != nil { + l = m.ShieldedPoolContent.Size() + n += 1 + l + sovApp(uint64(l)) + } + if m.GovernanceContent != nil { + l = m.GovernanceContent.Size() + n += 1 + l + sovApp(uint64(l)) + } + if m.IbcContent != nil { + l = m.IbcContent.Size() + n += 1 + l + sovApp(uint64(l)) + } + if m.ChainContent != nil { + l = m.ChainContent.Size() + n += 1 + l + sovApp(uint64(l)) + } + if m.DaoContent != nil { + l = m.DaoContent.Size() + n += 1 + l + sovApp(uint64(l)) + } + return n +} + +func sovApp(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozApp(x uint64) (n int) { + return sovApp(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 ErrIntOverflowApp + } + 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 ErrIntOverflowApp + } + 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 ErrInvalidLengthApp + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthApp + } + 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 ErrIntOverflowApp + } + 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 ErrInvalidLengthApp + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthApp + } + 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 ErrIntOverflowApp + } + 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 := skipApp(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthApp + } + 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 ErrIntOverflowApp + } + 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 ErrIntOverflowApp + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthApp + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthApp + } + 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 ErrIntOverflowApp + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthApp + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthApp + } + 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 := skipApp(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthApp + } + 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 ErrIntOverflowApp + } + 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 ErrIntOverflowApp + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthApp + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthApp + } + 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 := skipApp(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthApp + } + 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 ErrIntOverflowApp + } + 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 ErrIntOverflowApp + } + 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 ErrInvalidLengthApp + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthApp + } + 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 ErrIntOverflowApp + } + 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 ErrInvalidLengthApp + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthApp + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Prefix = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipApp(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthApp + } + 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 ErrIntOverflowApp + } + 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 ErrIntOverflowApp + } + 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 ErrInvalidLengthApp + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthApp + } + 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 ErrIntOverflowApp + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthApp + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthApp + } + 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 := skipApp(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthApp + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AppParameters) 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 ErrIntOverflowApp + } + 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: AppParameters: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AppParameters: 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 ErrIntOverflowApp + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthApp + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthApp + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ChainParams == nil { + m.ChainParams = &v1alpha1.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 DaoParams", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApp + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthApp + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthApp + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.DaoParams == nil { + m.DaoParams = &v1alpha11.DaoParameters{} + } + if err := m.DaoParams.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 ErrIntOverflowApp + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthApp + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthApp + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.GovernanceParams == nil { + m.GovernanceParams = &v1alpha12.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) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApp + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthApp + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthApp + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.IbcParams == nil { + m.IbcParams = &v1alpha13.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 StakeParams", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApp + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthApp + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthApp + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.StakeParams == nil { + m.StakeParams = &v1alpha14.StakeParameters{} + } + if err := m.StakeParams.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipApp(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthApp + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AppParametersRequest) 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 ErrIntOverflowApp + } + 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: AppParametersRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AppParametersRequest: 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 ErrIntOverflowApp + } + 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 ErrInvalidLengthApp + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthApp + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ChainId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipApp(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthApp + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AppParametersResponse) 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 ErrIntOverflowApp + } + 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: AppParametersResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + 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 AppParameters", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApp + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthApp + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthApp + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.AppParameters == nil { + m.AppParameters = &AppParameters{} + } + if err := m.AppParameters.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipApp(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthApp + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GenesisAppState) 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 ErrIntOverflowApp + } + 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: GenesisAppState: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GenesisAppState: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field GenesisContent", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApp + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthApp + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthApp + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &GenesisContent{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.GenesisAppState = &GenesisAppState_GenesisContent{v} + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field GenesisCheckpoint", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApp + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthApp + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthApp + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := make([]byte, postIndex-iNdEx) + copy(v, dAtA[iNdEx:postIndex]) + m.GenesisAppState = &GenesisAppState_GenesisCheckpoint{v} + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipApp(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthApp + } + 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 ErrIntOverflowApp + } + 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 StakeContent", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApp + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthApp + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthApp + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.StakeContent == nil { + m.StakeContent = &v1alpha14.GenesisContent{} + } + if err := m.StakeContent.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ShieldedPoolContent", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApp + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthApp + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthApp + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ShieldedPoolContent == nil { + m.ShieldedPoolContent = &v1alpha15.GenesisContent{} + } + if err := m.ShieldedPoolContent.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field GovernanceContent", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApp + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthApp + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthApp + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.GovernanceContent == nil { + m.GovernanceContent = &v1alpha12.GenesisContent{} + } + if err := m.GovernanceContent.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IbcContent", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApp + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthApp + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthApp + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.IbcContent == nil { + m.IbcContent = &v1alpha13.GenesisContent{} + } + if err := m.IbcContent.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ChainContent", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApp + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthApp + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthApp + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ChainContent == nil { + m.ChainContent = &v1alpha1.GenesisContent{} + } + if err := m.ChainContent.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DaoContent", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApp + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthApp + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthApp + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.DaoContent == nil { + m.DaoContent = &v1alpha11.GenesisContent{} + } + if err := m.DaoContent.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipApp(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthApp + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipApp(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, ErrIntOverflowApp + } + 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, ErrIntOverflowApp + } + 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, ErrIntOverflowApp + } + 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, ErrInvalidLengthApp + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupApp + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthApp + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthApp = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowApp = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupApp = fmt.Errorf("proto: unexpected end of group") +) diff --git a/relayer/chains/penumbra/core/asset/v1alpha1/asset.pb.go b/relayer/chains/penumbra/core/asset/v1alpha1/asset.pb.go new file mode 100644 index 000000000..6f5890373 --- /dev/null +++ b/relayer/chains/penumbra/core/asset/v1alpha1/asset.pb.go @@ -0,0 +1,2737 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: penumbra/core/asset/v1alpha1/asset.proto + +package assetv1alpha1 + +import ( + fmt "fmt" + proto "github.com/cosmos/gogoproto/proto" + v1alpha1 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/num/v1alpha1" + 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 + +type BalanceCommitment struct { + Inner []byte `protobuf:"bytes,1,opt,name=inner,proto3" json:"inner,omitempty"` +} + +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} +} +func (m *BalanceCommitment) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BalanceCommitment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BalanceCommitment.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 *BalanceCommitment) XXX_Merge(src proto.Message) { + xxx_messageInfo_BalanceCommitment.Merge(m, src) +} +func (m *BalanceCommitment) XXX_Size() int { + return m.Size() +} +func (m *BalanceCommitment) XXX_DiscardUnknown() { + xxx_messageInfo_BalanceCommitment.DiscardUnknown(m) +} + +var xxx_messageInfo_BalanceCommitment proto.InternalMessageInfo + +func (m *BalanceCommitment) GetInner() []byte { + if m != nil { + return m.Inner + } + return nil +} + +// A Penumbra asset ID. +type AssetId struct { + // The bytes of the asset ID. + Inner []byte `protobuf:"bytes,1,opt,name=inner,proto3" json:"inner,omitempty"` + // Alternatively, a Bech32m-encoded string representation of the `inner` + // bytes. + // + // NOTE: implementations are not required to support parsing this field. + // Implementations should prefer to encode the `inner` bytes in all messages they + // produce. Implementations must not accept messages with both `inner` and + // `alt_bech32m` set. This field exists for convenience of RPC users. + AltBech32M string `protobuf:"bytes,2,opt,name=alt_bech32m,json=altBech32m,proto3" json:"alt_bech32m,omitempty"` + // Alternatively, a base denomination string which should be hashed to obtain the asset ID. + // + // NOTE: implementations are not required to support parsing this field. + // Implementations should prefer to encode the bytes in all messages they + // produce. Implementations must not accept messages with both `inner` and + // `alt_base_denom` set. This field exists for convenience of RPC users. + AltBaseDenom string `protobuf:"bytes,3,opt,name=alt_base_denom,json=altBaseDenom,proto3" json:"alt_base_denom,omitempty"` +} + +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} +} +func (m *AssetId) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AssetId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AssetId.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 *AssetId) XXX_Merge(src proto.Message) { + xxx_messageInfo_AssetId.Merge(m, src) +} +func (m *AssetId) XXX_Size() int { + return m.Size() +} +func (m *AssetId) XXX_DiscardUnknown() { + xxx_messageInfo_AssetId.DiscardUnknown(m) +} + +var xxx_messageInfo_AssetId proto.InternalMessageInfo + +func (m *AssetId) GetInner() []byte { + if m != nil { + return m.Inner + } + return nil +} + +func (m *AssetId) GetAltBech32M() string { + if m != nil { + return m.AltBech32M + } + return "" +} + +func (m *AssetId) GetAltBaseDenom() string { + if m != nil { + return m.AltBaseDenom + } + return "" +} + +type Denom struct { + Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"` +} + +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} +} +func (m *Denom) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Denom) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Denom.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 *Denom) XXX_Merge(src proto.Message) { + xxx_messageInfo_Denom.Merge(m, src) +} +func (m *Denom) XXX_Size() int { + return m.Size() +} +func (m *Denom) XXX_DiscardUnknown() { + xxx_messageInfo_Denom.DiscardUnknown(m) +} + +var xxx_messageInfo_Denom proto.InternalMessageInfo + +func (m *Denom) GetDenom() string { + if m != nil { + return m.Denom + } + return "" +} + +// DenomMetadata represents a struct that describes a basic token. +type DenomMetadata 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"` + // base represents the base denom (should be the DenomUnit with exponent = 0). + Base string `protobuf:"bytes,3,opt,name=base,proto3" json:"base,omitempty"` + // display indicates the suggested denom that should be + // displayed in clients. + Display string `protobuf:"bytes,4,opt,name=display,proto3" json:"display,omitempty"` + // name defines the name of the token (eg: Cosmos Atom) + Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"` + // 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"` +} + +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 *DenomMetadata) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DenomMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DenomMetadata.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 *DenomMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_DenomMetadata.Merge(m, src) +} +func (m *DenomMetadata) XXX_Size() int { + return m.Size() +} +func (m *DenomMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_DenomMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_DenomMetadata proto.InternalMessageInfo + +func (m *DenomMetadata) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +func (m *DenomMetadata) GetDenomUnits() []*DenomUnit { + if m != nil { + return m.DenomUnits + } + return nil +} + +func (m *DenomMetadata) GetBase() string { + if m != nil { + return m.Base + } + return "" +} + +func (m *DenomMetadata) GetDisplay() string { + if m != nil { + return m.Display + } + return "" +} + +func (m *DenomMetadata) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *DenomMetadata) GetSymbol() string { + if m != nil { + return m.Symbol + } + return "" +} + +func (m *DenomMetadata) GetUri() string { + if m != nil { + return m.Uri + } + return "" +} + +func (m *DenomMetadata) GetUriHash() string { + if m != nil { + return m.UriHash + } + return "" +} + +func (m *DenomMetadata) GetPenumbraAssetId() *AssetId { + if m != nil { + return m.PenumbraAssetId + } + return nil +} + +// DenomUnit represents a struct that describes a given denomination unit of the basic token. +type DenomUnit struct { + // denom represents the string name of the given denom unit (e.g uatom). + Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"` + // exponent represents power of 10 exponent that one must + // raise the base_denom to in order to equal the given DenomUnit's denom + // 1 denom = 10^exponent base_denom + // (e.g. with a base_denom of uatom, one can create a DenomUnit of 'atom' with + // exponent = 6, thus: 1 atom = 10^6 uatom). + Exponent uint32 `protobuf:"varint,2,opt,name=exponent,proto3" json:"exponent,omitempty"` + // aliases is a list of string aliases for the given denom + Aliases []string `protobuf:"bytes,3,rep,name=aliases,proto3" json:"aliases,omitempty"` +} + +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} +} +func (m *DenomUnit) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DenomUnit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DenomUnit.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 *DenomUnit) XXX_Merge(src proto.Message) { + xxx_messageInfo_DenomUnit.Merge(m, src) +} +func (m *DenomUnit) XXX_Size() int { + return m.Size() +} +func (m *DenomUnit) XXX_DiscardUnknown() { + xxx_messageInfo_DenomUnit.DiscardUnknown(m) +} + +var xxx_messageInfo_DenomUnit proto.InternalMessageInfo + +func (m *DenomUnit) GetDenom() string { + if m != nil { + return m.Denom + } + return "" +} + +func (m *DenomUnit) GetExponent() uint32 { + if m != nil { + return m.Exponent + } + return 0 +} + +func (m *DenomUnit) GetAliases() []string { + if m != nil { + return m.Aliases + } + return nil +} + +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"` +} + +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} +} +func (m *Value) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Value) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_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 *Value) XXX_Merge(src proto.Message) { + xxx_messageInfo_Value.Merge(m, src) +} +func (m *Value) XXX_Size() int { + return m.Size() +} +func (m *Value) XXX_DiscardUnknown() { + xxx_messageInfo_Value.DiscardUnknown(m) +} + +var xxx_messageInfo_Value proto.InternalMessageInfo + +func (m *Value) GetAmount() *v1alpha1.Amount { + if m != nil { + return m.Amount + } + return nil +} + +func (m *Value) GetAssetId() *AssetId { + if m != nil { + return m.AssetId + } + return nil +} + +// 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 isValueView_ValueView `protobuf_oneof:"value_view"` +} + +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} +} +func (m *ValueView) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ValueView) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ValueView.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) XXX_Merge(src proto.Message) { + xxx_messageInfo_ValueView.Merge(m, src) +} +func (m *ValueView) XXX_Size() int { + return m.Size() +} +func (m *ValueView) XXX_DiscardUnknown() { + xxx_messageInfo_ValueView.DiscardUnknown(m) +} + +var xxx_messageInfo_ValueView proto.InternalMessageInfo + +type isValueView_ValueView interface { + isValueView_ValueView() + MarshalTo([]byte) (int, error) + 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_UnknownDenom_ struct { + UnknownDenom *ValueView_UnknownDenom `protobuf:"bytes,2,opt,name=unknown_denom,json=unknownDenom,proto3,oneof" json:"unknown_denom,omitempty"` +} + +func (*ValueView_KnownDenom_) isValueView_ValueView() {} +func (*ValueView_UnknownDenom_) isValueView_ValueView() {} + +func (m *ValueView) GetValueView() isValueView_ValueView { + if m != nil { + return m.ValueView + } + return nil +} + +func (m *ValueView) GetKnownDenom() *ValueView_KnownDenom { + if x, ok := m.GetValueView().(*ValueView_KnownDenom_); ok { + return x.KnownDenom + } + return nil +} + +func (m *ValueView) GetUnknownDenom() *ValueView_UnknownDenom { + if x, ok := m.GetValueView().(*ValueView_UnknownDenom_); ok { + return x.UnknownDenom + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*ValueView) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*ValueView_KnownDenom_)(nil), + (*ValueView_UnknownDenom_)(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"` +} + +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_KnownDenom) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ValueView_KnownDenom) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ValueView_KnownDenom.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_KnownDenom) XXX_Merge(src proto.Message) { + xxx_messageInfo_ValueView_KnownDenom.Merge(m, src) +} +func (m *ValueView_KnownDenom) XXX_Size() int { + return m.Size() +} +func (m *ValueView_KnownDenom) XXX_DiscardUnknown() { + xxx_messageInfo_ValueView_KnownDenom.DiscardUnknown(m) +} + +var xxx_messageInfo_ValueView_KnownDenom proto.InternalMessageInfo + +func (m *ValueView_KnownDenom) GetAmount() *v1alpha1.Amount { + if m != nil { + return m.Amount + } + return nil +} + +func (m *ValueView_KnownDenom) GetDenom() *DenomMetadata { + if m != nil { + return m.Denom + } + 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"` +} + +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 *ValueView_UnknownDenom) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ValueView_UnknownDenom) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ValueView_UnknownDenom.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_UnknownDenom) XXX_Merge(src proto.Message) { + xxx_messageInfo_ValueView_UnknownDenom.Merge(m, src) +} +func (m *ValueView_UnknownDenom) XXX_Size() int { + return m.Size() +} +func (m *ValueView_UnknownDenom) XXX_DiscardUnknown() { + xxx_messageInfo_ValueView_UnknownDenom.DiscardUnknown(m) +} + +var xxx_messageInfo_ValueView_UnknownDenom proto.InternalMessageInfo + +func (m *ValueView_UnknownDenom) GetAmount() *v1alpha1.Amount { + if m != nil { + return m.Amount + } + return nil +} + +func (m *ValueView_UnknownDenom) GetAssetId() *AssetId { + if m != nil { + return m.AssetId + } + return nil +} + +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") +} + +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, 0x78, 0xcc, 0x46, 0x21, 0x6e, 0x7b, 0x22, 0x24, 0x6d, + 0x2c, 0x25, 0x89, 0xda, 0xd3, 0x3d, 0x1c, 0x4c, 0x7c, 0xbc, 0x97, 0x40, 0x7b, 0x12, 0x8a, 0x48, + 0xa0, 0xed, 0x8c, 0x69, 0x2b, 0xa6, 0x9d, 0x94, 0x32, 0x66, 0x6d, 0xf7, 0x47, 0x1d, 0x1e, 0xb3, + 0x85, 0x0a, 0x8f, 0x59, 0xa2, 0xd1, 0xbc, 0x05, 0x5b, 0x3d, 0x1c, 0x60, 0xee, 0x91, 0x43, 0xc1, + 0x18, 0x8d, 0x18, 0xe1, 0x11, 0xfa, 0x07, 0x0a, 0x94, 0x73, 0x12, 0x5a, 0x46, 0xc3, 0x68, 0x55, + 0x9d, 0x04, 0x34, 0x9f, 0x43, 0xe9, 0x40, 0x5d, 0xf1, 0x70, 0x7c, 0x35, 0x01, 0xed, 0x40, 0x05, + 0x07, 0x91, 0x3b, 0x22, 0x9e, 0xbf, 0xdf, 0x61, 0x96, 0xd9, 0x30, 0x5a, 0xeb, 0x0e, 0xe0, 0x20, + 0xea, 0x25, 0x19, 0xb4, 0x0b, 0x7f, 0x69, 0x02, 0x96, 0xc4, 0x1d, 0x13, 0x2e, 0x98, 0x95, 0xd7, + 0x9c, 0xaa, 0xe2, 0x60, 0x49, 0xee, 0xab, 0x5c, 0xf3, 0x7f, 0x28, 0xe8, 0x40, 0xdd, 0x92, 0xb0, + 0x0c, 0xcd, 0x4a, 0x40, 0xf3, 0x8b, 0x09, 0x1b, 0xba, 0xfe, 0x98, 0x44, 0x78, 0x8c, 0x23, 0x8c, + 0x1a, 0x50, 0x19, 0x13, 0xe9, 0x85, 0x74, 0x12, 0x51, 0xc1, 0x53, 0xf6, 0x72, 0x0a, 0x1d, 0x29, + 0x06, 0x17, 0xcc, 0x8d, 0x39, 0x8d, 0xa4, 0x65, 0x36, 0xf2, 0xad, 0x4a, 0xe7, 0xa6, 0xbd, 0x6a, + 0x7e, 0xb6, 0xbe, 0xe3, 0x98, 0xd3, 0xc8, 0x81, 0x71, 0x16, 0x4a, 0x84, 0x60, 0x4d, 0xd9, 0x4f, + 0x8d, 0xeb, 0x18, 0x59, 0x50, 0x1a, 0x53, 0x39, 0x09, 0xf0, 0x99, 0xb5, 0xa6, 0xd3, 0x19, 0x54, + 0x6c, 0x8e, 0x19, 0xb1, 0x0a, 0x09, 0x5b, 0xc5, 0xe8, 0x5f, 0x28, 0xca, 0x33, 0x36, 0x12, 0x81, + 0x55, 0xd4, 0xd9, 0x14, 0xa1, 0xbf, 0x21, 0x1f, 0x87, 0xd4, 0x2a, 0xe9, 0xa4, 0x0a, 0xd1, 0x7f, + 0x50, 0x8e, 0x43, 0xea, 0xfa, 0x58, 0xfa, 0x56, 0x39, 0x11, 0x8e, 0x43, 0x7a, 0x84, 0xa5, 0x8f, + 0x1c, 0xd8, 0xca, 0xcc, 0xbb, 0xda, 0xb7, 0x4b, 0xc7, 0xd6, 0xc7, 0xcd, 0x86, 0xd1, 0xaa, 0x74, + 0x6e, 0xac, 0xee, 0x2b, 0xdd, 0xa1, 0xb3, 0x99, 0xb1, 0xd2, 0x44, 0xf3, 0x09, 0xac, 0xcf, 0x7b, + 0xbe, 0x7a, 0xf6, 0xa8, 0x06, 0x65, 0xf2, 0x72, 0x22, 0x38, 0xe1, 0x91, 0x5e, 0xef, 0x86, 0x33, + 0xc7, 0x6a, 0x0a, 0x38, 0xa0, 0x58, 0x12, 0x69, 0xe5, 0x1b, 0x79, 0x65, 0x36, 0x85, 0xcd, 0x57, + 0x06, 0x14, 0x06, 0x38, 0x88, 0x09, 0xea, 0x42, 0x11, 0x33, 0x11, 0xf3, 0x48, 0xcb, 0x56, 0x3a, + 0xcd, 0x9f, 0xac, 0xaa, 0xe7, 0x72, 0x61, 0x54, 0x33, 0x9d, 0xf4, 0x04, 0xba, 0x07, 0xe5, 0x79, + 0xa7, 0xe6, 0xaf, 0x34, 0x5a, 0xc2, 0x69, 0x83, 0x97, 0x79, 0x58, 0xd7, 0x3e, 0x06, 0x94, 0x9c, + 0xa2, 0x63, 0xa8, 0x9c, 0x70, 0x71, 0xca, 0xdd, 0x45, 0x9f, 0x95, 0x4e, 0x67, 0xb5, 0xe4, 0xfc, + 0xb4, 0xfd, 0x48, 0x1d, 0xd5, 0xe3, 0x3a, 0xca, 0x39, 0x70, 0x32, 0x47, 0xe8, 0x19, 0x6c, 0xc4, + 0x7c, 0x59, 0x38, 0xf1, 0x7a, 0xe7, 0xba, 0xc2, 0xc7, 0xfc, 0x64, 0x59, 0xba, 0x1a, 0x2f, 0xe1, + 0xda, 0x6b, 0x03, 0x60, 0x71, 0xf3, 0x6f, 0x8d, 0xf3, 0x20, 0x5b, 0x70, 0xe2, 0xef, 0xf6, 0x35, + 0x5e, 0x86, 0xec, 0x85, 0x4b, 0x9f, 0x86, 0xda, 0x1b, 0x03, 0xaa, 0xcb, 0x76, 0xff, 0xec, 0x7a, + 0x7b, 0x55, 0x80, 0xa9, 0x1a, 0xa3, 0x3b, 0xa5, 0xe4, 0xb4, 0xf7, 0xc1, 0xfc, 0x34, 0xab, 0x1b, + 0xe7, 0xb3, 0xba, 0xf1, 0x6d, 0x56, 0x37, 0xde, 0x5e, 0xd4, 0x73, 0xe7, 0x17, 0xf5, 0xdc, 0xd7, + 0x8b, 0x7a, 0x0e, 0x1a, 0x9e, 0x60, 0x2b, 0xb5, 0x7b, 0xa0, 0xc5, 0xfb, 0xea, 0x0b, 0xd9, 0x37, + 0x9e, 0x0e, 0x5e, 0xd0, 0xc8, 0x8f, 0x47, 0xb6, 0x27, 0x58, 0xdb, 0x13, 0x92, 0x09, 0xd9, 0x0e, + 0x49, 0x80, 0xcf, 0x48, 0xd8, 0x9e, 0x76, 0xe6, 0xa1, 0xe7, 0x63, 0xca, 0x65, 0x7b, 0xd5, 0xd7, + 0xfb, 0xae, 0x86, 0x19, 0x7a, 0x67, 0xe6, 0xfb, 0x87, 0x07, 0xef, 0xcd, 0xed, 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, +} + +func (m *BalanceCommitment) 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 *BalanceCommitment) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BalanceCommitment) 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 = encodeVarintAsset(dAtA, i, uint64(len(m.Inner))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *AssetId) 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 *AssetId) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AssetId) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.AltBaseDenom) > 0 { + i -= len(m.AltBaseDenom) + copy(dAtA[i:], m.AltBaseDenom) + i = encodeVarintAsset(dAtA, i, uint64(len(m.AltBaseDenom))) + i-- + dAtA[i] = 0x1a + } + if len(m.AltBech32M) > 0 { + i -= len(m.AltBech32M) + copy(dAtA[i:], m.AltBech32M) + i = encodeVarintAsset(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 = encodeVarintAsset(dAtA, i, uint64(len(m.Inner))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Denom) 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 *Denom) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Denom) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Denom) > 0 { + i -= len(m.Denom) + copy(dAtA[i:], m.Denom) + i = encodeVarintAsset(dAtA, i, uint64(len(m.Denom))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *DenomMetadata) 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 *DenomMetadata) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DenomMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.PenumbraAssetId != nil { + { + size, err := m.PenumbraAssetId.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAsset(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x7c + 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) + i = encodeVarintAsset(dAtA, i, uint64(len(m.Symbol))) + i-- + dAtA[i] = 0x32 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintAsset(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x2a + } + if len(m.Display) > 0 { + i -= len(m.Display) + copy(dAtA[i:], m.Display) + i = encodeVarintAsset(dAtA, i, uint64(len(m.Display))) + i-- + dAtA[i] = 0x22 + } + if len(m.Base) > 0 { + i -= len(m.Base) + copy(dAtA[i:], m.Base) + i = encodeVarintAsset(dAtA, i, uint64(len(m.Base))) + i-- + dAtA[i] = 0x1a + } + if len(m.DenomUnits) > 0 { + for iNdEx := len(m.DenomUnits) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.DenomUnits[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAsset(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.Description) > 0 { + i -= len(m.Description) + copy(dAtA[i:], m.Description) + i = encodeVarintAsset(dAtA, i, uint64(len(m.Description))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *DenomUnit) 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 *DenomUnit) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DenomUnit) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Aliases) > 0 { + for iNdEx := len(m.Aliases) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Aliases[iNdEx]) + copy(dAtA[i:], m.Aliases[iNdEx]) + i = encodeVarintAsset(dAtA, i, uint64(len(m.Aliases[iNdEx]))) + i-- + dAtA[i] = 0x1a + } + } + if m.Exponent != 0 { + i = encodeVarintAsset(dAtA, i, uint64(m.Exponent)) + i-- + dAtA[i] = 0x10 + } + if len(m.Denom) > 0 { + i -= len(m.Denom) + copy(dAtA[i:], m.Denom) + i = encodeVarintAsset(dAtA, i, uint64(len(m.Denom))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *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 *Value) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Value) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.AssetId != nil { + { + size, err := m.AssetId.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAsset(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.Amount != nil { + { + size, err := m.Amount.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 *ValueView) 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 *ValueView) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ValueView) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.ValueView != nil { + { + size := m.ValueView.Size() + i -= size + if _, err := m.ValueView.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } + } + return len(dAtA) - i, nil +} + +func (m *ValueView_KnownDenom_) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ValueView_KnownDenom_) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.KnownDenom != nil { + { + size, err := m.KnownDenom.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 *ValueView_UnknownDenom_) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ValueView_UnknownDenom_) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.UnknownDenom != nil { + { + size, err := m.UnknownDenom.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAsset(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + return len(dAtA) - i, nil +} +func (m *ValueView_KnownDenom) 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 *ValueView_KnownDenom) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ValueView_KnownDenom) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Denom != nil { + { + size, err := m.Denom.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAsset(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.Amount != nil { + { + size, err := m.Amount.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 *ValueView_UnknownDenom) 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 *ValueView_UnknownDenom) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ValueView_UnknownDenom) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.AssetId != nil { + { + size, err := m.AssetId.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAsset(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.Amount != nil { + { + size, err := m.Amount.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 { + n += 1 + l + sovAsset(uint64(l)) + } + return n +} + +func (m *Denom) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Denom) + if l > 0 { + n += 1 + l + sovAsset(uint64(l)) + } + return n +} + +func (m *DenomMetadata) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Description) + if l > 0 { + n += 1 + l + sovAsset(uint64(l)) + } + if len(m.DenomUnits) > 0 { + for _, e := range m.DenomUnits { + l = e.Size() + n += 1 + l + sovAsset(uint64(l)) + } + } + l = len(m.Base) + if l > 0 { + n += 1 + l + sovAsset(uint64(l)) + } + l = len(m.Display) + if l > 0 { + n += 1 + l + sovAsset(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sovAsset(uint64(l)) + } + l = len(m.Symbol) + 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)) + } + return n +} + +func (m *DenomUnit) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Denom) + if l > 0 { + n += 1 + l + sovAsset(uint64(l)) + } + if m.Exponent != 0 { + n += 1 + sovAsset(uint64(m.Exponent)) + } + if len(m.Aliases) > 0 { + for _, s := range m.Aliases { + l = len(s) + n += 1 + l + sovAsset(uint64(l)) + } + } + return n +} + +func (m *Value) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Amount != nil { + l = m.Amount.Size() + n += 1 + l + sovAsset(uint64(l)) + } + if m.AssetId != nil { + l = m.AssetId.Size() + n += 1 + l + sovAsset(uint64(l)) + } + return n +} + +func (m *ValueView) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ValueView != nil { + n += m.ValueView.Size() + } + return n +} + +func (m *ValueView_KnownDenom_) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.KnownDenom != nil { + l = m.KnownDenom.Size() + n += 1 + l + sovAsset(uint64(l)) + } + return n +} +func (m *ValueView_UnknownDenom_) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.UnknownDenom != nil { + l = m.UnknownDenom.Size() + n += 1 + l + sovAsset(uint64(l)) + } + return n +} +func (m *ValueView_KnownDenom) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Amount != nil { + l = m.Amount.Size() + n += 1 + l + sovAsset(uint64(l)) + } + if m.Denom != nil { + l = m.Denom.Size() + n += 1 + l + sovAsset(uint64(l)) + } + return n +} + +func (m *ValueView_UnknownDenom) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Amount != nil { + l = m.Amount.Size() + n += 1 + l + sovAsset(uint64(l)) + } + if m.AssetId != nil { + l = m.AssetId.Size() + n += 1 + l + sovAsset(uint64(l)) + } + return n +} + +func sovAsset(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozAsset(x uint64) (n int) { + return sovAsset(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *BalanceCommitment) 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: BalanceCommitment: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BalanceCommitment: 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 ErrIntOverflowAsset + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthAsset + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthAsset + } + 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 := 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 *AssetId) 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: AssetId: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AssetId: 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 ErrIntOverflowAsset + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthAsset + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthAsset + } + 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 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.AltBech32M = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AltBaseDenom", 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.AltBaseDenom = string(dAtA[iNdEx:postIndex]) + 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 *Denom) 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: Denom: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Denom: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + 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 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.Denom = string(dAtA[iNdEx:postIndex]) + 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 *DenomMetadata) 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: DenomMetadata: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DenomMetadata: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + 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 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.Description = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DenomUnits", 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.DenomUnits = append(m.DenomUnits, &DenomUnit{}) + if err := m.DenomUnits[len(m.DenomUnits)-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 Base", 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.Base = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Display", 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.Display = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", 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.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Symbol", 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.Symbol = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Uri", 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.Uri = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UriHash", 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.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 + 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.PenumbraAssetId == nil { + m.PenumbraAssetId = &AssetId{} + } + if err := m.PenumbraAssetId.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 *DenomUnit) 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: DenomUnit: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DenomUnit: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + 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 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.Denom = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Exponent", wireType) + } + m.Exponent = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAsset + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Exponent |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Aliases", 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.Aliases = append(m.Aliases, string(dAtA[iNdEx:postIndex])) + 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 *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 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: 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 Amount", 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.Amount == nil { + m.Amount = &v1alpha1.Amount{} + } + 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 AssetId", 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.AssetId == nil { + m.AssetId = &AssetId{} + } + if err := m.AssetId.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 *ValueView) 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: ValueView: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ValueView: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field KnownDenom", 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 + } + v := &ValueView_KnownDenom{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.ValueView = &ValueView_KnownDenom_{v} + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UnknownDenom", 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 + } + v := &ValueView_UnknownDenom{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.ValueView = &ValueView_UnknownDenom_{v} + 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 *ValueView_KnownDenom) 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: KnownDenom: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: KnownDenom: 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) + } + 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.Amount == nil { + m.Amount = &v1alpha1.Amount{} + } + 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 Denom", 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.Denom == nil { + m.Denom = &DenomMetadata{} + } + if err := m.Denom.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 *ValueView_UnknownDenom) 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: UnknownDenom: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UnknownDenom: 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) + } + 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.Amount == nil { + m.Amount = &v1alpha1.Amount{} + } + 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 AssetId", 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.AssetId == nil { + m.AssetId = &AssetId{} + } + if err := m.AssetId.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 skipAsset(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, ErrIntOverflowAsset + } + 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, ErrIntOverflowAsset + } + 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, ErrIntOverflowAsset + } + 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, ErrInvalidLengthAsset + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupAsset + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthAsset + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthAsset = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowAsset = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupAsset = fmt.Errorf("proto: unexpected end of group") +) diff --git a/relayer/chains/penumbra/core/component/chain/v1alpha1/chain.pb.go b/relayer/chains/penumbra/core/component/chain/v1alpha1/chain.pb.go new file mode 100644 index 000000000..903702458 --- /dev/null +++ b/relayer/chains/penumbra/core/component/chain/v1alpha1/chain.pb.go @@ -0,0 +1,2304 @@ +// 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" + 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 + +// An authorization hash for a Penumbra transaction. +type EffectHash struct { + Inner []byte `protobuf:"bytes,1,opt,name=inner,proto3" json:"inner,omitempty"` +} + +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_aca0b6fc4499b003, []int{0} +} +func (m *EffectHash) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EffectHash) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EffectHash.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 *EffectHash) XXX_Merge(src proto.Message) { + xxx_messageInfo_EffectHash.Merge(m, src) +} +func (m *EffectHash) XXX_Size() int { + return m.Size() +} +func (m *EffectHash) XXX_DiscardUnknown() { + xxx_messageInfo_EffectHash.DiscardUnknown(m) +} + +var xxx_messageInfo_EffectHash proto.InternalMessageInfo + +func (m *EffectHash) GetInner() []byte { + if m != nil { + return m.Inner + } + return nil +} + +// 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{1} +} +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{2} +} +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{3} +} +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 KnownAssets struct { + Assets []*v1alpha1.DenomMetadata `protobuf:"bytes,1,rep,name=assets,proto3" json:"assets,omitempty"` +} + +func (m *KnownAssets) Reset() { *m = KnownAssets{} } +func (m *KnownAssets) String() string { return proto.CompactTextString(m) } +func (*KnownAssets) ProtoMessage() {} +func (*KnownAssets) Descriptor() ([]byte, []int) { + return fileDescriptor_aca0b6fc4499b003, []int{4} +} +func (m *KnownAssets) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *KnownAssets) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_KnownAssets.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 *KnownAssets) XXX_Merge(src proto.Message) { + xxx_messageInfo_KnownAssets.Merge(m, src) +} +func (m *KnownAssets) XXX_Size() int { + return m.Size() +} +func (m *KnownAssets) XXX_DiscardUnknown() { + xxx_messageInfo_KnownAssets.DiscardUnknown(m) +} + +var xxx_messageInfo_KnownAssets proto.InternalMessageInfo + +func (m *KnownAssets) GetAssets() []*v1alpha1.DenomMetadata { + if m != nil { + return m.Assets + } + return nil +} + +// A spicy transaction ID +type NoteSource struct { + Inner []byte `protobuf:"bytes,1,opt,name=inner,proto3" json:"inner,omitempty"` +} + +func (m *NoteSource) Reset() { *m = NoteSource{} } +func (m *NoteSource) String() string { return proto.CompactTextString(m) } +func (*NoteSource) ProtoMessage() {} +func (*NoteSource) Descriptor() ([]byte, []int) { + return fileDescriptor_aca0b6fc4499b003, []int{5} +} +func (m *NoteSource) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NoteSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NoteSource.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 *NoteSource) XXX_Merge(src proto.Message) { + xxx_messageInfo_NoteSource.Merge(m, src) +} +func (m *NoteSource) XXX_Size() int { + return m.Size() +} +func (m *NoteSource) XXX_DiscardUnknown() { + xxx_messageInfo_NoteSource.DiscardUnknown(m) +} + +var xxx_messageInfo_NoteSource proto.InternalMessageInfo + +func (m *NoteSource) GetInner() []byte { + if m != nil { + return m.Inner + } + return nil +} + +// A NoteSource paired with the height at which the note was spent +type SpendInfo struct { + NoteSource *NoteSource `protobuf:"bytes,1,opt,name=note_source,json=noteSource,proto3" json:"note_source,omitempty"` + SpendHeight uint64 `protobuf:"varint,2,opt,name=spend_height,json=spendHeight,proto3" json:"spend_height,omitempty"` +} + +func (m *SpendInfo) Reset() { *m = SpendInfo{} } +func (m *SpendInfo) String() string { return proto.CompactTextString(m) } +func (*SpendInfo) ProtoMessage() {} +func (*SpendInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_aca0b6fc4499b003, []int{6} +} +func (m *SpendInfo) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SpendInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SpendInfo.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 *SpendInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_SpendInfo.Merge(m, src) +} +func (m *SpendInfo) XXX_Size() int { + return m.Size() +} +func (m *SpendInfo) XXX_DiscardUnknown() { + xxx_messageInfo_SpendInfo.DiscardUnknown(m) +} + +var xxx_messageInfo_SpendInfo proto.InternalMessageInfo + +func (m *SpendInfo) GetNoteSource() *NoteSource { + if m != nil { + return m.NoteSource + } + return nil +} + +func (m *SpendInfo) GetSpendHeight() uint64 { + if m != nil { + return m.SpendHeight + } + 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{7} +} +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{8} +} +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{9} +} +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{10} +} +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((*EffectHash)(nil), "penumbra.core.component.chain.v1alpha1.EffectHash") + 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((*KnownAssets)(nil), "penumbra.core.component.chain.v1alpha1.KnownAssets") + proto.RegisterType((*NoteSource)(nil), "penumbra.core.component.chain.v1alpha1.NoteSource") + proto.RegisterType((*SpendInfo)(nil), "penumbra.core.component.chain.v1alpha1.SpendInfo") + 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{ + // 709 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0x41, 0x6b, 0xdb, 0x48, + 0x14, 0x8e, 0xbc, 0x71, 0x76, 0xf3, 0x6c, 0x27, 0x20, 0xb2, 0x4b, 0x36, 0x2c, 0x26, 0x2b, 0x48, + 0x30, 0x09, 0x2b, 0x11, 0xef, 0x61, 0xc1, 0xdb, 0x42, 0x6b, 0x25, 0x4d, 0x42, 0x69, 0xeb, 0xca, + 0xd0, 0x43, 0x30, 0xb8, 0x63, 0xe9, 0x39, 0x16, 0xb5, 0x66, 0xd4, 0x99, 0x71, 0xda, 0x9c, 0x7b, + 0xed, 0xa1, 0x7f, 0xa0, 0x97, 0x1e, 0xfb, 0x4b, 0x4a, 0x4f, 0x39, 0xf6, 0x58, 0x9c, 0x5b, 0x2f, + 0xfd, 0x0b, 0x65, 0x66, 0x24, 0x3b, 0x36, 0x14, 0xdc, 0x5e, 0x82, 0xde, 0x97, 0xef, 0xfb, 0xde, + 0x37, 0x6f, 0x9e, 0x07, 0xea, 0x29, 0xd2, 0x51, 0xd2, 0xe3, 0xc4, 0x0b, 0x19, 0x47, 0x2f, 0x64, + 0x49, 0xca, 0x28, 0x52, 0xe9, 0x85, 0x03, 0x12, 0x53, 0xef, 0xe2, 0x80, 0x0c, 0xd3, 0x01, 0x39, + 0x30, 0xa5, 0x9b, 0x72, 0x26, 0x99, 0xbd, 0x9b, 0x6b, 0x5c, 0xa5, 0x71, 0x27, 0x1a, 0xd7, 0x90, + 0x72, 0xcd, 0x56, 0x6d, 0xd6, 0x9b, 0x08, 0x81, 0x72, 0xea, 0xa8, 0x4b, 0xe3, 0xe8, 0x38, 0x00, + 0x47, 0xfd, 0x3e, 0x86, 0xf2, 0x84, 0x88, 0x81, 0xbd, 0x01, 0xc5, 0x98, 0x52, 0xe4, 0x9b, 0xd6, + 0xb6, 0x55, 0x2b, 0x07, 0xa6, 0x70, 0xda, 0xb0, 0xee, 0x2b, 0xff, 0x16, 0xe1, 0x24, 0x41, 0x89, + 0x5c, 0xd8, 0x7f, 0xc2, 0x6f, 0xba, 0x65, 0x37, 0x8e, 0x34, 0x77, 0x35, 0xf8, 0x55, 0xd7, 0xa7, + 0x91, 0xbd, 0x03, 0x6b, 0x98, 0xb2, 0x70, 0xd0, 0x8d, 0x46, 0x9c, 0xc8, 0x98, 0xd1, 0xcd, 0xc2, + 0xb6, 0x55, 0x5b, 0x0e, 0x2a, 0x1a, 0x3d, 0xcc, 0x40, 0xe7, 0x18, 0x8a, 0x81, 0xfa, 0xb2, 0xff, + 0x82, 0x55, 0x3a, 0x4a, 0x90, 0x13, 0xc9, 0x4c, 0xdf, 0xe5, 0x60, 0x0a, 0xd8, 0xdb, 0x50, 0x8a, + 0x90, 0xb2, 0x24, 0xa6, 0xfa, 0xff, 0xc6, 0xea, 0x26, 0xe4, 0x84, 0x50, 0xb9, 0x97, 0x44, 0x37, + 0xb2, 0xed, 0xc0, 0x5a, 0xca, 0x31, 0x8c, 0x45, 0xcc, 0x68, 0xb7, 0x17, 0x4b, 0xa1, 0x5d, 0x2b, + 0x41, 0x65, 0x82, 0x36, 0x63, 0x29, 0xec, 0x7d, 0xb0, 0x89, 0xe8, 0xb2, 0x7e, 0xb7, 0x37, 0x64, + 0xe1, 0xb3, 0xee, 0x00, 0xe3, 0xf3, 0x81, 0xcc, 0x1a, 0xac, 0x13, 0xf1, 0xa8, 0xdf, 0x54, 0xf8, + 0x89, 0x86, 0x9d, 0x00, 0x4a, 0xf7, 0x29, 0x7b, 0x41, 0xef, 0xaa, 0xd1, 0x09, 0xdb, 0x87, 0x15, + 0x3d, 0x44, 0x65, 0xfd, 0x4b, 0xad, 0x54, 0xdf, 0x77, 0x67, 0x2f, 0xc6, 0x4c, 0x38, 0x1f, 0xb8, + 0x7b, 0xa8, 0xe2, 0x3e, 0x40, 0x49, 0x22, 0x22, 0x49, 0x90, 0x49, 0xd5, 0xe8, 0x1f, 0x32, 0x89, + 0x6d, 0x36, 0xe2, 0x21, 0x7e, 0x67, 0xf4, 0xaf, 0x2c, 0x58, 0x6d, 0xa7, 0x48, 0xa3, 0x53, 0xda, + 0x67, 0x76, 0x1b, 0x4a, 0x94, 0x49, 0xec, 0x0a, 0x2d, 0xd1, 0xcc, 0x52, 0xbd, 0xee, 0x2e, 0xb6, + 0x14, 0xee, 0xb4, 0x59, 0x00, 0x74, 0xda, 0xf8, 0x6f, 0x28, 0x0b, 0xd5, 0x61, 0x76, 0x02, 0x25, + 0x8d, 0x65, 0xa7, 0x1f, 0xc2, 0xda, 0x31, 0x52, 0x14, 0xb1, 0xf0, 0x19, 0x95, 0x48, 0xa5, 0x7d, + 0x06, 0x65, 0x73, 0xff, 0xa9, 0x9a, 0xbb, 0xc8, 0xa2, 0xfc, 0xb7, 0x68, 0x94, 0xb9, 0x75, 0x0a, + 0x4a, 0xe1, 0x04, 0x10, 0xce, 0x1d, 0x28, 0x1e, 0xa9, 0x55, 0x31, 0x23, 0x89, 0xf0, 0x65, 0xb6, + 0x15, 0xa6, 0xd0, 0x79, 0x25, 0xe1, 0x72, 0x3e, 0xaf, 0xc2, 0xb2, 0xbc, 0x2e, 0x6c, 0x68, 0x87, + 0xe6, 0xa5, 0x01, 0x02, 0x7c, 0x3e, 0x42, 0x21, 0xed, 0x3f, 0x60, 0x25, 0x13, 0x19, 0xc7, 0xac, + 0x72, 0x3a, 0xf0, 0xfb, 0x1c, 0x5f, 0xa4, 0x8c, 0x0a, 0xb4, 0x7d, 0x28, 0xea, 0xad, 0xcd, 0xce, + 0xf7, 0xcf, 0xa2, 0xe7, 0xd3, 0x6e, 0x81, 0xd1, 0xd6, 0xdf, 0x5a, 0x50, 0x7e, 0x3c, 0x42, 0x7e, + 0xd9, 0x46, 0x7e, 0x11, 0x87, 0x68, 0xbf, 0xb6, 0xa0, 0x32, 0xd3, 0xcf, 0xbe, 0xf5, 0x43, 0xc6, + 0x73, 0xc7, 0xda, 0xba, 0xfd, 0x93, 0x6a, 0x73, 0xc8, 0xe6, 0xd7, 0xc2, 0x87, 0x71, 0xd5, 0xba, + 0x1a, 0x57, 0xad, 0xcf, 0xe3, 0xaa, 0xf5, 0xe6, 0xba, 0xba, 0x74, 0x75, 0x5d, 0x5d, 0xfa, 0x74, + 0x5d, 0x5d, 0x82, 0xbd, 0x90, 0x25, 0x0b, 0x9a, 0x37, 0xc1, 0x5c, 0xaa, 0x7a, 0x55, 0x5a, 0xd6, + 0xd9, 0xd3, 0xf3, 0x58, 0x0e, 0x46, 0x3d, 0x45, 0xf7, 0x42, 0x26, 0x12, 0x26, 0x3c, 0x8e, 0x43, + 0x72, 0x89, 0xdc, 0xbb, 0xa8, 0x4f, 0x3e, 0xb5, 0x85, 0xf0, 0x16, 0x7b, 0x09, 0xff, 0xd7, 0x65, + 0x5e, 0xbd, 0x2b, 0x2c, 0xb7, 0x7c, 0xdf, 0x7f, 0x5f, 0xd8, 0x6d, 0xe5, 0xf9, 0x7c, 0x95, 0xcf, + 0x9f, 0xe4, 0xd3, 0x79, 0xdc, 0x27, 0x19, 0xff, 0xe3, 0x94, 0xd8, 0x51, 0xc4, 0xce, 0x84, 0xd8, + 0xd1, 0xc4, 0x4e, 0x4e, 0x1c, 0x17, 0xea, 0x8b, 0x11, 0x3b, 0xc7, 0xad, 0x66, 0xfe, 0xa3, 0xfe, + 0x52, 0xd8, 0xcb, 0x45, 0x8d, 0x86, 0x52, 0xa9, 0xbf, 0x99, 0xac, 0xd1, 0xd0, 0xba, 0x46, 0x23, + 0x17, 0xf6, 0x56, 0xf4, 0xdb, 0xfb, 0xef, 0xb7, 0x00, 0x00, 0x00, 0xff, 0xff, 0x44, 0x2d, 0x6a, + 0xc0, 0x03, 0x06, 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 *EffectHash) 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 *EffectHash) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EffectHash) 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 = encodeVarintChain(dAtA, i, uint64(len(m.Inner))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +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 *KnownAssets) 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 *KnownAssets) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *KnownAssets) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Assets) > 0 { + for iNdEx := len(m.Assets) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Assets[iNdEx].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 *NoteSource) 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 *NoteSource) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NoteSource) 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 = encodeVarintChain(dAtA, i, uint64(len(m.Inner))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *SpendInfo) 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 *SpendInfo) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SpendInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.SpendHeight != 0 { + i = encodeVarintChain(dAtA, i, uint64(m.SpendHeight)) + i-- + dAtA[i] = 0x10 + } + if m.NoteSource != nil { + { + size, err := m.NoteSource.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 *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 *EffectHash) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Inner) + if l > 0 { + n += 1 + l + sovChain(uint64(l)) + } + return n +} + +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 *KnownAssets) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Assets) > 0 { + for _, e := range m.Assets { + l = e.Size() + n += 1 + l + sovChain(uint64(l)) + } + } + return n +} + +func (m *NoteSource) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Inner) + if l > 0 { + n += 1 + l + sovChain(uint64(l)) + } + return n +} + +func (m *SpendInfo) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.NoteSource != nil { + l = m.NoteSource.Size() + n += 1 + l + sovChain(uint64(l)) + } + if m.SpendHeight != 0 { + n += 1 + sovChain(uint64(m.SpendHeight)) + } + 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 *EffectHash) 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: EffectHash: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EffectHash: 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 ErrIntOverflowChain + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthChain + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthChain + } + 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 := 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 *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 *KnownAssets) 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: KnownAssets: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: KnownAssets: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Assets", 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 + } + m.Assets = append(m.Assets, &v1alpha1.DenomMetadata{}) + if err := m.Assets[len(m.Assets)-1].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 *NoteSource) 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: NoteSource: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NoteSource: 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 ErrIntOverflowChain + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthChain + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthChain + } + 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 := 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 *SpendInfo) 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: SpendInfo: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SpendInfo: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NoteSource", 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.NoteSource == nil { + m.NoteSource = &NoteSource{} + } + if err := m.NoteSource.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SpendHeight", wireType) + } + m.SpendHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChain + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.SpendHeight |= 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/compact_block/v1alpha1/compact_block.pb.go b/relayer/chains/penumbra/core/component/compact_block/v1alpha1/compact_block.pb.go new file mode 100644 index 000000000..f8a6119e5 --- /dev/null +++ b/relayer/chains/penumbra/core/component/compact_block/v1alpha1/compact_block.pb.go @@ -0,0 +1,2470 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: penumbra/core/component/compact_block/v1alpha1/compact_block.proto + +package compact_blockv1alpha1 + +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" + v1alpha1 "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" + v1alpha11 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/crypto/tct/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 + +// Contains the minimum data needed to update client state. +type CompactBlock struct { + Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` + // 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"` + // The block root of this block. + BlockRoot *v1alpha11.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"` + // 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"` + // Latest Fuzzy Message Detection parameters. + FmdParameters *v1alpha12.FmdParameters `protobuf:"bytes,100,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"` + // Updated chain parameters, if they have changed. + ChainParameters *v1alpha12.ChainParameters `protobuf:"bytes,6,opt,name=chain_parameters,json=chainParameters,proto3" json:"chain_parameters,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} +} +func (m *CompactBlock) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CompactBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CompactBlock.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 *CompactBlock) XXX_Merge(src proto.Message) { + xxx_messageInfo_CompactBlock.Merge(m, src) +} +func (m *CompactBlock) XXX_Size() int { + return m.Size() +} +func (m *CompactBlock) XXX_DiscardUnknown() { + xxx_messageInfo_CompactBlock.DiscardUnknown(m) +} + +var xxx_messageInfo_CompactBlock proto.InternalMessageInfo + +func (m *CompactBlock) GetHeight() uint64 { + if m != nil { + return m.Height + } + return 0 +} + +func (m *CompactBlock) GetStatePayloads() []*StatePayload { + if m != nil { + return m.StatePayloads + } + return nil +} + +func (m *CompactBlock) GetNullifiers() []*v1alpha1.Nullifier { + if m != nil { + return m.Nullifiers + } + return nil +} + +func (m *CompactBlock) GetBlockRoot() *v1alpha11.MerkleRoot { + if m != nil { + return m.BlockRoot + } + return nil +} + +func (m *CompactBlock) GetEpochRoot() *v1alpha11.MerkleRoot { + if m != nil { + return m.EpochRoot + } + return nil +} + +func (m *CompactBlock) GetProposalStarted() bool { + if m != nil { + return m.ProposalStarted + } + return false +} + +func (m *CompactBlock) GetFmdParameters() *v1alpha12.FmdParameters { + if m != nil { + return m.FmdParameters + } + return nil +} + +func (m *CompactBlock) GetSwapOutputs() []*v1alpha13.BatchSwapOutputData { + if m != nil { + return m.SwapOutputs + } + return nil +} + +func (m *CompactBlock) GetChainParameters() *v1alpha12.ChainParameters { + if m != nil { + return m.ChainParameters + } + return nil +} + +type StatePayload struct { + // Types that are valid to be assigned to StatePayload: + // *StatePayload_RolledUp_ + // *StatePayload_Note_ + // *StatePayload_Swap_ + StatePayload isStatePayload_StatePayload `protobuf_oneof:"state_payload"` +} + +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} +} +func (m *StatePayload) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *StatePayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_StatePayload.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 *StatePayload) XXX_Merge(src proto.Message) { + xxx_messageInfo_StatePayload.Merge(m, src) +} +func (m *StatePayload) XXX_Size() int { + return m.Size() +} +func (m *StatePayload) XXX_DiscardUnknown() { + xxx_messageInfo_StatePayload.DiscardUnknown(m) +} + +var xxx_messageInfo_StatePayload proto.InternalMessageInfo + +type isStatePayload_StatePayload interface { + isStatePayload_StatePayload() + MarshalTo([]byte) (int, error) + Size() int +} + +type StatePayload_RolledUp_ struct { + RolledUp *StatePayload_RolledUp `protobuf:"bytes,1,opt,name=rolled_up,json=rolledUp,proto3,oneof" json:"rolled_up,omitempty"` +} +type StatePayload_Note_ struct { + Note *StatePayload_Note `protobuf:"bytes,2,opt,name=note,proto3,oneof" json:"note,omitempty"` +} +type StatePayload_Swap_ struct { + Swap *StatePayload_Swap `protobuf:"bytes,3,opt,name=swap,proto3,oneof" json:"swap,omitempty"` +} + +func (*StatePayload_RolledUp_) isStatePayload_StatePayload() {} +func (*StatePayload_Note_) isStatePayload_StatePayload() {} +func (*StatePayload_Swap_) isStatePayload_StatePayload() {} + +func (m *StatePayload) GetStatePayload() isStatePayload_StatePayload { + if m != nil { + return m.StatePayload + } + return nil +} + +func (m *StatePayload) GetRolledUp() *StatePayload_RolledUp { + if x, ok := m.GetStatePayload().(*StatePayload_RolledUp_); ok { + return x.RolledUp + } + return nil +} + +func (m *StatePayload) GetNote() *StatePayload_Note { + if x, ok := m.GetStatePayload().(*StatePayload_Note_); ok { + return x.Note + } + return nil +} + +func (m *StatePayload) GetSwap() *StatePayload_Swap { + if x, ok := m.GetStatePayload().(*StatePayload_Swap_); ok { + return x.Swap + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*StatePayload) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*StatePayload_RolledUp_)(nil), + (*StatePayload_Note_)(nil), + (*StatePayload_Swap_)(nil), + } +} + +type StatePayload_RolledUp struct { + Commitment *v1alpha11.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} +} +func (m *StatePayload_RolledUp) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *StatePayload_RolledUp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_StatePayload_RolledUp.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 *StatePayload_RolledUp) XXX_Merge(src proto.Message) { + xxx_messageInfo_StatePayload_RolledUp.Merge(m, src) +} +func (m *StatePayload_RolledUp) XXX_Size() int { + return m.Size() +} +func (m *StatePayload_RolledUp) XXX_DiscardUnknown() { + xxx_messageInfo_StatePayload_RolledUp.DiscardUnknown(m) +} + +var xxx_messageInfo_StatePayload_RolledUp proto.InternalMessageInfo + +func (m *StatePayload_RolledUp) GetCommitment() *v1alpha11.StateCommitment { + if m != nil { + return m.Commitment + } + return nil +} + +type StatePayload_Note struct { + Source *v1alpha12.NoteSource `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"` + Note *v1alpha14.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} +} +func (m *StatePayload_Note) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *StatePayload_Note) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_StatePayload_Note.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 *StatePayload_Note) XXX_Merge(src proto.Message) { + xxx_messageInfo_StatePayload_Note.Merge(m, src) +} +func (m *StatePayload_Note) XXX_Size() int { + return m.Size() +} +func (m *StatePayload_Note) XXX_DiscardUnknown() { + xxx_messageInfo_StatePayload_Note.DiscardUnknown(m) +} + +var xxx_messageInfo_StatePayload_Note proto.InternalMessageInfo + +func (m *StatePayload_Note) GetSource() *v1alpha12.NoteSource { + if m != nil { + return m.Source + } + return nil +} + +func (m *StatePayload_Note) GetNote() *v1alpha14.NotePayload { + if m != nil { + return m.Note + } + return nil +} + +type StatePayload_Swap struct { + Source *v1alpha12.NoteSource `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"` + Swap *v1alpha13.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} +} +func (m *StatePayload_Swap) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *StatePayload_Swap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_StatePayload_Swap.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 *StatePayload_Swap) XXX_Merge(src proto.Message) { + xxx_messageInfo_StatePayload_Swap.Merge(m, src) +} +func (m *StatePayload_Swap) XXX_Size() int { + return m.Size() +} +func (m *StatePayload_Swap) XXX_DiscardUnknown() { + xxx_messageInfo_StatePayload_Swap.DiscardUnknown(m) +} + +var xxx_messageInfo_StatePayload_Swap proto.InternalMessageInfo + +func (m *StatePayload_Swap) GetSource() *v1alpha12.NoteSource { + if m != nil { + return m.Source + } + return nil +} + +func (m *StatePayload_Swap) GetSwap() *v1alpha13.SwapPayload { + if m != nil { + return m.Swap + } + return nil +} + +// 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. + EndHeight uint64 `protobuf:"varint,3,opt,name=end_height,json=endHeight,proto3" json:"end_height,omitempty"` + // If set, keeps the connection alive past `end_height`, + // streaming new compact blocks as they are created. + KeepAlive bool `protobuf:"varint,4,opt,name=keep_alive,json=keepAlive,proto3" json:"keep_alive,omitempty"` +} + +func (m *CompactBlockRangeRequest) Reset() { *m = CompactBlockRangeRequest{} } +func (m *CompactBlockRangeRequest) String() string { return proto.CompactTextString(m) } +func (*CompactBlockRangeRequest) ProtoMessage() {} +func (*CompactBlockRangeRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_7db33c115ee8eed4, []int{2} +} +func (m *CompactBlockRangeRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CompactBlockRangeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CompactBlockRangeRequest.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 *CompactBlockRangeRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CompactBlockRangeRequest.Merge(m, src) +} +func (m *CompactBlockRangeRequest) XXX_Size() int { + return m.Size() +} +func (m *CompactBlockRangeRequest) XXX_DiscardUnknown() { + xxx_messageInfo_CompactBlockRangeRequest.DiscardUnknown(m) +} + +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 + } + return 0 +} + +func (m *CompactBlockRangeRequest) GetEndHeight() uint64 { + if m != nil { + return m.EndHeight + } + return 0 +} + +func (m *CompactBlockRangeRequest) GetKeepAlive() bool { + if m != nil { + return m.KeepAlive + } + return false +} + +type CompactBlockRangeResponse struct { + CompactBlock *CompactBlock `protobuf:"bytes,1,opt,name=compact_block,json=compactBlock,proto3" json:"compact_block,omitempty"` +} + +func (m *CompactBlockRangeResponse) Reset() { *m = CompactBlockRangeResponse{} } +func (m *CompactBlockRangeResponse) String() string { return proto.CompactTextString(m) } +func (*CompactBlockRangeResponse) ProtoMessage() {} +func (*CompactBlockRangeResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_7db33c115ee8eed4, []int{3} +} +func (m *CompactBlockRangeResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CompactBlockRangeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CompactBlockRangeResponse.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 *CompactBlockRangeResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_CompactBlockRangeResponse.Merge(m, src) +} +func (m *CompactBlockRangeResponse) XXX_Size() int { + return m.Size() +} +func (m *CompactBlockRangeResponse) XXX_DiscardUnknown() { + xxx_messageInfo_CompactBlockRangeResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_CompactBlockRangeResponse proto.InternalMessageInfo + +func (m *CompactBlockRangeResponse) 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") +} + +func init() { + proto.RegisterFile("penumbra/core/component/compact_block/v1alpha1/compact_block.proto", fileDescriptor_7db33c115ee8eed4) +} + +var fileDescriptor_7db33c115ee8eed4 = []byte{ + // 936 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x96, 0xcf, 0x6f, 0x1b, 0x45, + 0x14, 0xc7, 0xbd, 0xb6, 0x13, 0xec, 0xb1, 0xd3, 0xb4, 0x23, 0x84, 0xb6, 0x96, 0xb0, 0x42, 0x0e, + 0xc8, 0x1c, 0xba, 0x4b, 0x8c, 0x10, 0x6a, 0xca, 0xa5, 0x36, 0xa5, 0x29, 0x52, 0x1a, 0xb3, 0x16, + 0x20, 0x90, 0xa5, 0xd5, 0x78, 0xf7, 0x25, 0x5e, 0x65, 0x77, 0x67, 0xd8, 0x99, 0x4d, 0x9b, 0x0b, + 0x7f, 0x03, 0x27, 0x24, 0xae, 0x70, 0xcb, 0x7f, 0x80, 0xf8, 0x07, 0x10, 0xa7, 0x1e, 0x38, 0x70, + 0x44, 0xc9, 0x8d, 0xbf, 0x02, 0xcd, 0xec, 0x0f, 0xcf, 0x0a, 0x4c, 0x63, 0x25, 0x97, 0x68, 0xe6, + 0xe5, 0x7d, 0x3f, 0xef, 0x3b, 0x6f, 0xc6, 0xcf, 0x46, 0x23, 0x06, 0x71, 0x1a, 0xcd, 0x13, 0x62, + 0x7b, 0x34, 0x01, 0xdb, 0xa3, 0x11, 0xa3, 0x31, 0xc4, 0x42, 0xad, 0x88, 0x27, 0xdc, 0x79, 0x48, + 0xbd, 0x53, 0xfb, 0x6c, 0x8f, 0x84, 0x6c, 0x41, 0xf6, 0xaa, 0x61, 0x8b, 0x25, 0x54, 0x50, 0x6c, + 0x15, 0x0c, 0x4b, 0x32, 0xac, 0x92, 0x61, 0x55, 0x93, 0x0b, 0x46, 0xef, 0xdd, 0x65, 0xcd, 0xe4, + 0x9c, 0x09, 0x6a, 0x0b, 0x4f, 0x2c, 0x2b, 0x08, 0x4f, 0x64, 0xdc, 0x9e, 0xb5, 0xca, 0x1b, 0xd7, + 0xf3, 0x79, 0x99, 0x3f, 0x5c, 0x79, 0x96, 0x05, 0x09, 0x62, 0xed, 0x0c, 0x72, 0xfb, 0xba, 0x1a, + 0x3e, 0xbc, 0x5c, 0x2a, 0x7c, 0x78, 0x99, 0xe7, 0xaf, 0xec, 0x17, 0x5f, 0x04, 0x10, 0xfa, 0xe0, + 0xbb, 0x8c, 0xd2, 0x50, 0x73, 0xa7, 0x87, 0x33, 0xc6, 0xee, 0x2f, 0x1b, 0xa8, 0x3b, 0xce, 0x5a, + 0x33, 0x92, 0x9d, 0xc1, 0x6f, 0xa1, 0xcd, 0x05, 0x04, 0x27, 0x0b, 0x61, 0x1a, 0x3b, 0xc6, 0xa0, + 0xe9, 0xe4, 0x3b, 0xec, 0xa1, 0x3b, 0x5c, 0x10, 0x01, 0x2e, 0x23, 0xe7, 0x21, 0x25, 0x3e, 0x37, + 0xeb, 0x3b, 0x8d, 0x41, 0x67, 0xf8, 0xf1, 0x9a, 0x1d, 0xb7, 0xa6, 0x92, 0x32, 0xc9, 0x20, 0xce, + 0x16, 0xd7, 0x76, 0x1c, 0x1f, 0x21, 0x14, 0xa7, 0x61, 0x18, 0x1c, 0x07, 0x90, 0x70, 0xb3, 0xa1, + 0x0a, 0xd8, 0x2b, 0x0b, 0xc8, 0x6e, 0x97, 0xd8, 0xe7, 0x85, 0xce, 0xd1, 0x10, 0xf8, 0x29, 0x42, + 0xaa, 0xbc, 0x9b, 0x50, 0x2a, 0xcc, 0xe6, 0x8e, 0x31, 0xe8, 0x0c, 0x07, 0x1a, 0x50, 0xdd, 0xb9, + 0x25, 0x74, 0xd0, 0x21, 0x24, 0xa7, 0x21, 0x38, 0x94, 0x0a, 0xa7, 0xad, 0xb4, 0x72, 0x29, 0x41, + 0xc0, 0xa8, 0xb7, 0xc8, 0x40, 0xf7, 0xd6, 0x05, 0x29, 0xad, 0x02, 0xbd, 0x87, 0xee, 0xb2, 0x84, + 0x32, 0xca, 0x49, 0xe8, 0x72, 0x41, 0x12, 0x01, 0xbe, 0xf9, 0xe6, 0x8e, 0x31, 0x68, 0x39, 0xdb, + 0x45, 0x7c, 0x9a, 0x85, 0xf1, 0x0c, 0xdd, 0x39, 0x8e, 0x7c, 0x97, 0x91, 0x84, 0x44, 0x20, 0x64, + 0x47, 0x7c, 0x55, 0xf7, 0xc3, 0xd5, 0x2d, 0x57, 0xaf, 0xa9, 0x74, 0xf0, 0x69, 0xe4, 0x4f, 0x4a, + 0xb1, 0xb3, 0x75, 0xac, 0x6f, 0xf1, 0x0c, 0x75, 0xf9, 0x0b, 0xc2, 0x5c, 0x9a, 0x0a, 0x96, 0x0a, + 0x6e, 0x6e, 0xa8, 0x6e, 0x3f, 0x5c, 0xc9, 0x96, 0xef, 0xae, 0x24, 0x8f, 0x88, 0xf0, 0x16, 0xd3, + 0x17, 0x84, 0x1d, 0x29, 0xf5, 0x27, 0x44, 0x10, 0xa7, 0xc3, 0xcb, 0x3d, 0xc7, 0x73, 0x74, 0x57, + 0x99, 0xd1, 0xdd, 0x6f, 0x2a, 0xf7, 0x1f, 0x5d, 0xd7, 0xfd, 0x58, 0x6e, 0x35, 0xff, 0xdb, 0x5e, + 0x35, 0xb0, 0xfb, 0xc7, 0x06, 0xea, 0xea, 0xaf, 0x09, 0xfb, 0xa8, 0x9d, 0xd0, 0x30, 0x04, 0xdf, + 0x4d, 0x99, 0x7a, 0xbe, 0x9d, 0xe1, 0x93, 0x9b, 0x3c, 0x4f, 0xcb, 0x51, 0xb4, 0x2f, 0xd8, 0x41, + 0xcd, 0x69, 0x25, 0xf9, 0x1a, 0x7f, 0x85, 0x9a, 0x31, 0x15, 0x60, 0xd6, 0x55, 0x81, 0xc7, 0x37, + 0x2a, 0xf0, 0x9c, 0x0a, 0x38, 0xa8, 0x39, 0x0a, 0x28, 0xc1, 0xb2, 0x85, 0x66, 0xe3, 0x16, 0xc0, + 0xf2, 0x6e, 0x24, 0x58, 0x02, 0x7b, 0x5f, 0xa3, 0x56, 0x71, 0x12, 0x7c, 0x88, 0x90, 0x47, 0xa3, + 0x28, 0x10, 0x11, 0xc4, 0x22, 0x6f, 0xd2, 0x83, 0xff, 0x7f, 0xc8, 0x0a, 0x3c, 0x2e, 0x45, 0x8e, + 0x06, 0xe8, 0xfd, 0x6c, 0xa0, 0xa6, 0x3c, 0x04, 0xfe, 0x0c, 0x6d, 0x72, 0x9a, 0x26, 0x1e, 0xe4, + 0xcc, 0xe1, 0x75, 0xaf, 0x59, 0xaa, 0xa7, 0x4a, 0xe9, 0xe4, 0x04, 0x7c, 0x54, 0xe9, 0xf0, 0xa3, + 0xd5, 0x03, 0xa0, 0x32, 0xd0, 0x2a, 0xc4, 0x62, 0xc0, 0x28, 0x50, 0xef, 0x47, 0x03, 0x35, 0x65, + 0x47, 0x6e, 0xd5, 0xe5, 0x93, 0xfc, 0xba, 0x32, 0x97, 0x7b, 0xd7, 0xfb, 0xe0, 0x48, 0x17, 0xa5, + 0x37, 0x29, 0x1f, 0x6d, 0xa3, 0xad, 0xca, 0x60, 0xdd, 0xfd, 0xc1, 0x40, 0xa6, 0x3e, 0x92, 0x1d, + 0x12, 0x9f, 0x80, 0x03, 0xdf, 0xa6, 0xc0, 0x05, 0xbe, 0x8f, 0x5a, 0xd9, 0xe7, 0x2a, 0xf0, 0xd5, + 0x11, 0xda, 0xce, 0x1b, 0x6a, 0xff, 0xcc, 0xc7, 0xef, 0xa0, 0xae, 0x1a, 0x28, 0x6e, 0x3e, 0xbf, + 0xeb, 0x6a, 0x7e, 0x77, 0x54, 0xec, 0x20, 0x1b, 0xe2, 0x6f, 0x23, 0x04, 0xb1, 0x5f, 0x24, 0x34, + 0x54, 0x42, 0x1b, 0x62, 0x7f, 0xf9, 0xef, 0x53, 0x00, 0xe6, 0x92, 0x30, 0x38, 0x03, 0x35, 0x2d, + 0x5b, 0x4e, 0x5b, 0x46, 0x1e, 0xcb, 0xc0, 0xee, 0x77, 0xe8, 0xfe, 0x7f, 0xf8, 0xe2, 0x8c, 0xc6, + 0x1c, 0x30, 0x41, 0x5b, 0x95, 0x77, 0x99, 0x37, 0x78, 0xed, 0xaf, 0x87, 0x4a, 0x85, 0xae, 0xa7, + 0xed, 0x86, 0xbf, 0x1a, 0xa8, 0xfb, 0x79, 0x0a, 0xc9, 0xf9, 0x14, 0x92, 0xb3, 0xc0, 0x03, 0x7c, + 0x61, 0xa0, 0x7b, 0xff, 0x72, 0x84, 0x0f, 0x6e, 0x54, 0x52, 0x6b, 0x76, 0xef, 0xd9, 0x2d, 0x90, + 0xb2, 0xf6, 0xbc, 0x6f, 0x8c, 0x2e, 0x1a, 0xbf, 0x5d, 0xf6, 0x8d, 0x57, 0x97, 0x7d, 0xe3, 0xaf, + 0xcb, 0xbe, 0xf1, 0xfd, 0x55, 0xbf, 0xf6, 0xea, 0xaa, 0x5f, 0xfb, 0xf3, 0xaa, 0x5f, 0x43, 0x43, + 0x8f, 0x46, 0x6b, 0x96, 0x1a, 0x55, 0x0e, 0x3e, 0x91, 0xdf, 0xe5, 0x13, 0xe3, 0x1b, 0x76, 0x12, + 0x88, 0x45, 0x3a, 0x97, 0x1a, 0xdb, 0xa3, 0x3c, 0xa2, 0xdc, 0x4e, 0x20, 0x24, 0xe7, 0x90, 0xd8, + 0x67, 0xc3, 0x72, 0xa9, 0x1e, 0x0c, 0xb7, 0xd7, 0xfb, 0xb5, 0xf5, 0xa8, 0x12, 0x2e, 0xa2, 0x3f, + 0xd5, 0x9b, 0x93, 0xf1, 0x78, 0x7c, 0x51, 0x7f, 0x30, 0x29, 0xec, 0x8f, 0xa5, 0xfd, 0x71, 0x69, + 0x5f, 0xb7, 0x69, 0x7d, 0x99, 0xcb, 0x7e, 0x5f, 0xe6, 0xcf, 0x64, 0xfe, 0xac, 0xcc, 0x9f, 0xe9, + 0xf9, 0xb3, 0x22, 0xff, 0xb2, 0xfe, 0x70, 0xad, 0xfc, 0xd9, 0xd3, 0xc9, 0xe8, 0x10, 0x04, 0xf1, + 0x89, 0x20, 0x7f, 0xd7, 0xf7, 0x0a, 0xed, 0xfe, 0xbe, 0x14, 0xcb, 0xbf, 0xb9, 0x3a, 0x5b, 0x16, + 0xf2, 0xfd, 0xfd, 0x42, 0x3f, 0xdf, 0x54, 0xbf, 0x8e, 0x3e, 0xf8, 0x27, 0x00, 0x00, 0xff, 0xff, + 0xe1, 0x79, 0x56, 0x39, 0x93, 0x0a, 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 { + // Returns a stream of `CompactBlockRangeResponse`s. + CompactBlockRange(ctx context.Context, in *CompactBlockRangeRequest, opts ...grpc.CallOption) (QueryService_CompactBlockRangeClient, error) +} + +type queryServiceClient struct { + cc grpc1.ClientConn +} + +func NewQueryServiceClient(cc grpc1.ClientConn) QueryServiceClient { + return &queryServiceClient{cc} +} + +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...) + if err != nil { + return nil, err + } + x := &queryServiceCompactBlockRangeClient{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_CompactBlockRangeClient interface { + Recv() (*CompactBlockRangeResponse, error) + grpc.ClientStream +} + +type queryServiceCompactBlockRangeClient struct { + grpc.ClientStream +} + +func (x *queryServiceCompactBlockRangeClient) Recv() (*CompactBlockRangeResponse, error) { + m := new(CompactBlockRangeResponse) + 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 { + // Returns a stream of `CompactBlockRangeResponse`s. + CompactBlockRange(*CompactBlockRangeRequest, QueryService_CompactBlockRangeServer) error +} + +// UnimplementedQueryServiceServer can be embedded to have forward compatible implementations. +type UnimplementedQueryServiceServer struct { +} + +func (*UnimplementedQueryServiceServer) CompactBlockRange(req *CompactBlockRangeRequest, srv QueryService_CompactBlockRangeServer) error { + return status.Errorf(codes.Unimplemented, "method CompactBlockRange not implemented") +} + +func RegisterQueryServiceServer(s grpc1.Server, srv QueryServiceServer) { + s.RegisterService(&_QueryService_serviceDesc, srv) +} + +func _QueryService_CompactBlockRange_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(CompactBlockRangeRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(QueryServiceServer).CompactBlockRange(m, &queryServiceCompactBlockRangeServer{stream}) +} + +type QueryService_CompactBlockRangeServer interface { + Send(*CompactBlockRangeResponse) error + grpc.ServerStream +} + +type queryServiceCompactBlockRangeServer struct { + grpc.ServerStream +} + +func (x *queryServiceCompactBlockRangeServer) Send(m *CompactBlockRangeResponse) error { + return x.ServerStream.SendMsg(m) +} + +var _QueryService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "penumbra.core.component.compact_block.v1alpha1.QueryService", + HandlerType: (*QueryServiceServer)(nil), + Methods: []grpc.MethodDesc{}, + Streams: []grpc.StreamDesc{ + { + StreamName: "CompactBlockRange", + Handler: _QueryService_CompactBlockRange_Handler, + ServerStreams: true, + }, + }, + Metadata: "penumbra/core/component/compact_block/v1alpha1/compact_block.proto", +} + +func (m *CompactBlock) 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 *CompactBlock) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CompactBlock) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.FmdParameters != nil { + { + size, err := m.FmdParameters.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCompactBlock(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xa2 + } + if m.ProposalStarted { + i-- + if m.ProposalStarted { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xa0 + } + if m.EpochRoot != nil { + { + size, err := m.EpochRoot.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCompactBlock(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x8a + } + if m.ChainParameters != nil { + { + size, err := m.ChainParameters.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCompactBlock(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + 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-- + dAtA[i] = 0x2a + } + } + if m.BlockRoot != nil { + { + size, err := m.BlockRoot.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCompactBlock(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + if len(m.Nullifiers) > 0 { + for iNdEx := len(m.Nullifiers) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Nullifiers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCompactBlock(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if len(m.StatePayloads) > 0 { + for iNdEx := len(m.StatePayloads) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.StatePayloads[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCompactBlock(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if m.Height != 0 { + i = encodeVarintCompactBlock(dAtA, i, uint64(m.Height)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *StatePayload) 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 *StatePayload) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StatePayload) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.StatePayload != nil { + { + size := m.StatePayload.Size() + i -= size + if _, err := m.StatePayload.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } + } + return len(dAtA) - i, nil +} + +func (m *StatePayload_RolledUp_) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StatePayload_RolledUp_) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.RolledUp != nil { + { + size, err := m.RolledUp.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 (m *StatePayload_Note_) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StatePayload_Note_) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Note != nil { + { + size, err := m.Note.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCompactBlock(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + return len(dAtA) - i, nil +} +func (m *StatePayload_Swap_) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StatePayload_Swap_) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Swap != nil { + { + size, err := m.Swap.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCompactBlock(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + return len(dAtA) - i, nil +} +func (m *StatePayload_RolledUp) 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 *StatePayload_RolledUp) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StatePayload_RolledUp) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Commitment != nil { + { + size, err := m.Commitment.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 (m *StatePayload_Note) 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 *StatePayload_Note) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StatePayload_Note) 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 = encodeVarintCompactBlock(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.Source != nil { + { + size, err := m.Source.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 (m *StatePayload_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 (m *StatePayload_Swap) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StatePayload_Swap) 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 = encodeVarintCompactBlock(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.Source != nil { + { + size, err := m.Source.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 (m *CompactBlockRangeRequest) 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 *CompactBlockRangeRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CompactBlockRangeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.KeepAlive { + i-- + if m.KeepAlive { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x20 + } + if m.EndHeight != 0 { + i = encodeVarintCompactBlock(dAtA, i, uint64(m.EndHeight)) + i-- + dAtA[i] = 0x18 + } + if m.StartHeight != 0 { + i = encodeVarintCompactBlock(dAtA, i, uint64(m.StartHeight)) + 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 +} + +func (m *CompactBlockRangeResponse) 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 *CompactBlockRangeResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CompactBlockRangeResponse) 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 + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *CompactBlock) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Height != 0 { + n += 1 + sovCompactBlock(uint64(m.Height)) + } + if len(m.StatePayloads) > 0 { + for _, e := range m.StatePayloads { + l = e.Size() + n += 1 + l + sovCompactBlock(uint64(l)) + } + } + if len(m.Nullifiers) > 0 { + for _, e := range m.Nullifiers { + l = e.Size() + n += 1 + l + sovCompactBlock(uint64(l)) + } + } + if m.BlockRoot != nil { + l = m.BlockRoot.Size() + n += 1 + l + sovCompactBlock(uint64(l)) + } + if len(m.SwapOutputs) > 0 { + for _, e := range m.SwapOutputs { + l = e.Size() + n += 1 + l + sovCompactBlock(uint64(l)) + } + } + if m.ChainParameters != nil { + l = m.ChainParameters.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)) + } + return n +} + +func (m *StatePayload) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.StatePayload != nil { + n += m.StatePayload.Size() + } + return n +} + +func (m *StatePayload_RolledUp_) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.RolledUp != nil { + l = m.RolledUp.Size() + n += 1 + l + sovCompactBlock(uint64(l)) + } + return n +} +func (m *StatePayload_Note_) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Note != nil { + l = m.Note.Size() + n += 1 + l + sovCompactBlock(uint64(l)) + } + return n +} +func (m *StatePayload_Swap_) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Swap != nil { + l = m.Swap.Size() + n += 1 + l + sovCompactBlock(uint64(l)) + } + return n +} +func (m *StatePayload_RolledUp) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Commitment != nil { + l = m.Commitment.Size() + n += 1 + l + sovCompactBlock(uint64(l)) + } + return n +} + +func (m *StatePayload_Note) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Source != nil { + l = m.Source.Size() + n += 1 + l + sovCompactBlock(uint64(l)) + } + if m.Note != nil { + l = m.Note.Size() + n += 1 + l + sovCompactBlock(uint64(l)) + } + return n +} + +func (m *StatePayload_Swap) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Source != nil { + l = m.Source.Size() + n += 1 + l + sovCompactBlock(uint64(l)) + } + if m.Swap != nil { + l = m.Swap.Size() + n += 1 + l + sovCompactBlock(uint64(l)) + } + return n +} + +func (m *CompactBlockRangeRequest) Size() (n int) { + if m == nil { + return 0 + } + 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)) + } + if m.EndHeight != 0 { + n += 1 + sovCompactBlock(uint64(m.EndHeight)) + } + if m.KeepAlive { + n += 2 + } + return n +} + +func (m *CompactBlockRangeResponse) 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 +} +func sozCompactBlock(x uint64) (n int) { + return sovCompactBlock(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *CompactBlock) 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: CompactBlock: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CompactBlock: 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 + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StatePayloads", 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 + } + m.StatePayloads = append(m.StatePayloads, &StatePayload{}) + if err := m.StatePayloads[len(m.StatePayloads)-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 Nullifiers", 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 + } + m.Nullifiers = append(m.Nullifiers, &v1alpha1.Nullifier{}) + if err := m.Nullifiers[len(m.Nullifiers)-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 BlockRoot", 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.BlockRoot == nil { + m.BlockRoot = &v1alpha11.MerkleRoot{} + } + if err := m.BlockRoot.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SwapOutputs", 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 + } + m.SwapOutputs = append(m.SwapOutputs, &v1alpha13.BatchSwapOutputData{}) + if err := m.SwapOutputs[len(m.SwapOutputs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ChainParameters", 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.ChainParameters == nil { + m.ChainParameters = &v1alpha12.ChainParameters{} + } + if err := m.ChainParameters.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 17: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EpochRoot", 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.EpochRoot == nil { + m.EpochRoot = &v1alpha11.MerkleRoot{} + } + if err := m.EpochRoot.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 20: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ProposalStarted", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCompactBlock + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ProposalStarted = bool(v != 0) + case 100: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FmdParameters", 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.FmdParameters == nil { + m.FmdParameters = &v1alpha12.FmdParameters{} + } + if err := m.FmdParameters.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 (m *StatePayload) 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: StatePayload: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: StatePayload: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RolledUp", 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 + } + v := &StatePayload_RolledUp{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.StatePayload = &StatePayload_RolledUp_{v} + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Note", 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 + } + v := &StatePayload_Note{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.StatePayload = &StatePayload_Note_{v} + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Swap", 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 + } + v := &StatePayload_Swap{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.StatePayload = &StatePayload_Swap_{v} + 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 (m *StatePayload_RolledUp) 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: RolledUp: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RolledUp: 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 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.Commitment == nil { + m.Commitment = &v1alpha11.StateCommitment{} + } + if err := m.Commitment.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 (m *StatePayload_Note) 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: Note: wiretype end group for non-group") + } + if fieldNum <= 0 { + 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 Source", 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.Source == nil { + m.Source = &v1alpha12.NoteSource{} + } + if err := m.Source.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) + } + 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.Note == nil { + m.Note = &v1alpha14.NotePayload{} + } + if err := m.Note.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 (m *StatePayload_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 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: 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 Source", 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.Source == nil { + m.Source = &v1alpha12.NoteSource{} + } + if err := m.Source.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) + } + 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.Swap == nil { + m.Swap = &v1alpha13.SwapPayload{} + } + if err := m.Swap.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 (m *CompactBlockRangeRequest) 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: CompactBlockRangeRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + 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) + } + m.StartHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCompactBlock + } + 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 ErrIntOverflowCompactBlock + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.EndHeight |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field KeepAlive", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCompactBlock + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.KeepAlive = bool(v != 0) + 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 *CompactBlockRangeResponse) 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: CompactBlockRangeResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CompactBlockRangeResponse: 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 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowCompactBlock + } + 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, ErrIntOverflowCompactBlock + } + 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, ErrIntOverflowCompactBlock + } + 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, ErrInvalidLengthCompactBlock + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupCompactBlock + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthCompactBlock + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthCompactBlock = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowCompactBlock = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupCompactBlock = fmt.Errorf("proto: unexpected end of group") +) diff --git a/relayer/chains/penumbra/core/component/dao/v1alpha1/dao.pb.go b/relayer/chains/penumbra/core/component/dao/v1alpha1/dao.pb.go new file mode 100644 index 000000000..a92ba40d7 --- /dev/null +++ b/relayer/chains/penumbra/core/component/dao/v1alpha1/dao.pb.go @@ -0,0 +1,502 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: penumbra/core/component/dao/v1alpha1/dao.proto + +package daov1alpha1 + +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 + +// 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 +} + +func init() { + proto.RegisterType((*DaoParameters)(nil), "penumbra.core.component.dao.v1alpha1.DaoParameters") + proto.RegisterType((*GenesisContent)(nil), "penumbra.core.component.dao.v1alpha1.GenesisContent") +} + +func init() { + proto.RegisterFile("penumbra/core/component/dao/v1alpha1/dao.proto", fileDescriptor_a2476c8b34dca79f) +} + +var fileDescriptor_a2476c8b34dca79f = []byte{ + // 359 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0xd2, 0xb1, 0x6a, 0xe3, 0x30, + 0x18, 0x07, 0xf0, 0xd8, 0x1c, 0x47, 0xce, 0xc7, 0xdd, 0x90, 0x29, 0x70, 0x60, 0x8e, 0x90, 0x21, + 0x93, 0xd4, 0x24, 0x9b, 0x4b, 0x97, 0xd8, 0x25, 0x53, 0x8b, 0x49, 0xa1, 0x43, 0x31, 0x84, 0xcf, + 0x96, 0x68, 0x02, 0xb6, 0x3e, 0x21, 0x29, 0x81, 0xbe, 0x45, 0x9f, 0xa1, 0x63, 0x9f, 0xa4, 0x74, + 0xca, 0xd8, 0xad, 0xc5, 0xd9, 0xfa, 0x14, 0x45, 0x69, 0xe4, 0xd2, 0xcd, 0x8b, 0xd1, 0x87, 0x7f, + 0xff, 0xcf, 0x7f, 0x6c, 0x07, 0x44, 0x72, 0xb1, 0xa9, 0x72, 0x05, 0xb4, 0x40, 0xc5, 0x69, 0x81, + 0x95, 0x44, 0xc1, 0x85, 0xa1, 0x0c, 0x90, 0x6e, 0xc7, 0x50, 0xca, 0x15, 0x8c, 0xed, 0x40, 0xa4, + 0x42, 0x83, 0xbd, 0xa1, 0xf3, 0xc4, 0x7a, 0xd2, 0x78, 0x62, 0x89, 0xf3, 0x83, 0xcb, 0xe0, 0x4f, + 0x02, 0x98, 0x82, 0x82, 0x8a, 0x1b, 0xae, 0x74, 0xef, 0x2c, 0xf8, 0xc7, 0x00, 0x97, 0x5a, 0x72, + 0xc1, 0x96, 0x52, 0xa1, 0x44, 0x0d, 0xa5, 0x5e, 0x72, 0x01, 0x79, 0xc9, 0x59, 0xdf, 0xfb, 0xef, + 0x8d, 0xba, 0x8b, 0x3e, 0x03, 0xbc, 0xb2, 0x22, 0x75, 0xe0, 0xfc, 0xf3, 0xfe, 0x80, 0x05, 0x7f, + 0xe7, 0x5c, 0x70, 0xbd, 0xd6, 0x31, 0x0a, 0xc3, 0x85, 0xe9, 0x2d, 0x82, 0xc0, 0x2e, 0x94, 0xf6, + 0x11, 0xfa, 0x90, 0xff, 0x3d, 0x99, 0x92, 0x36, 0xe5, 0xc8, 0xb7, 0x66, 0x8b, 0x5f, 0xec, 0x38, + 0xea, 0xd9, 0xab, 0xff, 0x54, 0x87, 0xde, 0xae, 0x0e, 0xbd, 0xb7, 0x3a, 0xf4, 0xee, 0xf7, 0x61, + 0x67, 0xb7, 0x0f, 0x3b, 0x2f, 0xfb, 0xb0, 0x13, 0x8c, 0x0a, 0xac, 0x5a, 0x6d, 0x9f, 0x75, 0xed, + 0x7a, 0xfb, 0xaa, 0x52, 0xef, 0x26, 0xbb, 0x5d, 0x9b, 0xd5, 0x26, 0xb7, 0x94, 0x16, 0xa8, 0x2b, + 0xd4, 0x54, 0xf1, 0x12, 0xee, 0xb8, 0xa2, 0xdb, 0x49, 0x73, 0x2c, 0x56, 0xb0, 0x16, 0x9a, 0xb6, + 0xf9, 0x10, 0xa7, 0x0c, 0xd0, 0x9d, 0x1f, 0xfc, 0x1f, 0x69, 0x1c, 0x27, 0x8f, 0xfe, 0x30, 0x75, + 0xbd, 0x62, 0xdb, 0x2b, 0x6e, 0x7a, 0x25, 0x80, 0xe4, 0xfa, 0xa8, 0x9f, 0xbf, 0x58, 0x66, 0x59, + 0xd6, 0xb0, 0x2c, 0x01, 0xcc, 0x1c, 0xab, 0xfd, 0x93, 0x36, 0x2c, 0x9b, 0xa7, 0xb3, 0x0b, 0x6e, + 0x80, 0x81, 0x81, 0x77, 0x7f, 0xe4, 0x22, 0x51, 0x64, 0x33, 0xf6, 0x7a, 0x0c, 0x45, 0x51, 0x02, + 0x18, 0x45, 0x2e, 0x96, 0xff, 0x3c, 0xfc, 0x44, 0xd3, 0x8f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x6b, + 0xb8, 0xe8, 0xf5, 0x76, 0x02, 0x00, 0x00, +} + +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 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 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 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/v1alpha1/dex.pb.go new file mode 100644 index 000000000..8d6a64ff1 --- /dev/null +++ b/relayer/chains/penumbra/core/component/dex/v1alpha1/dex.pb.go @@ -0,0 +1,16063 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: penumbra/core/component/dex/v1alpha1/dex.proto + +package dexv1alpha1 + +import ( + context "context" + encoding_binary "encoding/binary" + 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" + 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 + +type PositionState_PositionStateEnum int32 + +const ( + PositionState_POSITION_STATE_ENUM_UNSPECIFIED PositionState_PositionStateEnum = 0 + // The position has been opened, is active, has reserves and accumulated + // fees, and can be traded against. + PositionState_POSITION_STATE_ENUM_OPENED PositionState_PositionStateEnum = 1 + // The position has been closed, is inactive and can no longer be traded + // against, but still has reserves and accumulated fees. + 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. + 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 +) + +var PositionState_PositionStateEnum_name = map[int32]string{ + 0: "POSITION_STATE_ENUM_UNSPECIFIED", + 1: "POSITION_STATE_ENUM_OPENED", + 2: "POSITION_STATE_ENUM_CLOSED", + 3: "POSITION_STATE_ENUM_WITHDRAWN", + 4: "POSITION_STATE_ENUM_CLAIMED", +} + +var PositionState_PositionStateEnum_value = map[string]int32{ + "POSITION_STATE_ENUM_UNSPECIFIED": 0, + "POSITION_STATE_ENUM_OPENED": 1, + "POSITION_STATE_ENUM_CLOSED": 2, + "POSITION_STATE_ENUM_WITHDRAWN": 3, + "POSITION_STATE_ENUM_CLAIMED": 4, +} + +func (x PositionState_PositionStateEnum) String() string { + return proto.EnumName(PositionState_PositionStateEnum_name, int32(x)) +} + +func (PositionState_PositionStateEnum) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_259f31b405eaa9a9, []int{20, 0} +} + +// A Penumbra ZK swap proof. +type ZKSwapProof struct { + Inner []byte `protobuf:"bytes,1,opt,name=inner,proto3" json:"inner,omitempty"` +} + +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} +} +func (m *ZKSwapProof) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ZKSwapProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ZKSwapProof.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 *ZKSwapProof) XXX_Merge(src proto.Message) { + xxx_messageInfo_ZKSwapProof.Merge(m, src) +} +func (m *ZKSwapProof) XXX_Size() int { + return m.Size() +} +func (m *ZKSwapProof) XXX_DiscardUnknown() { + xxx_messageInfo_ZKSwapProof.DiscardUnknown(m) +} + +var xxx_messageInfo_ZKSwapProof proto.InternalMessageInfo + +func (m *ZKSwapProof) GetInner() []byte { + if m != nil { + return m.Inner + } + return nil +} + +// A Penumbra ZK swap claim proof. +type ZKSwapClaimProof struct { + Inner []byte `protobuf:"bytes,1,opt,name=inner,proto3" json:"inner,omitempty"` +} + +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} +} +func (m *ZKSwapClaimProof) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ZKSwapClaimProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ZKSwapClaimProof.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 *ZKSwapClaimProof) XXX_Merge(src proto.Message) { + xxx_messageInfo_ZKSwapClaimProof.Merge(m, src) +} +func (m *ZKSwapClaimProof) XXX_Size() int { + return m.Size() +} +func (m *ZKSwapClaimProof) XXX_DiscardUnknown() { + xxx_messageInfo_ZKSwapClaimProof.DiscardUnknown(m) +} + +var xxx_messageInfo_ZKSwapClaimProof proto.InternalMessageInfo + +func (m *ZKSwapClaimProof) GetInner() []byte { + if m != nil { + return m.Inner + } + return nil +} + +// A transaction action that submits a swap to the dex. +type Swap struct { + // Contains the Swap proof. + Proof *ZKSwapProof `protobuf:"bytes,1,opt,name=proof,proto3" json:"proof,omitempty"` + // Encapsulates the authorized fields of the Swap action, used in signing. + Body *SwapBody `protobuf:"bytes,4,opt,name=body,proto3" json:"body,omitempty"` +} + +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} +} +func (m *Swap) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Swap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Swap.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 *Swap) XXX_Merge(src proto.Message) { + xxx_messageInfo_Swap.Merge(m, src) +} +func (m *Swap) XXX_Size() int { + return m.Size() +} +func (m *Swap) XXX_DiscardUnknown() { + xxx_messageInfo_Swap.DiscardUnknown(m) +} + +var xxx_messageInfo_Swap proto.InternalMessageInfo + +func (m *Swap) GetProof() *ZKSwapProof { + if m != nil { + return m.Proof + } + return nil +} + +func (m *Swap) GetBody() *SwapBody { + if m != nil { + return m.Body + } + return nil +} + +// A transaction action that obtains assets previously confirmed +// via a Swap transaction. Does not include a spend authorization +// signature, as it is only capable of consuming the NFT from a +// Swap transaction. +type SwapClaim struct { + // Contains the SwapClaim proof. + Proof *ZKSwapClaimProof `protobuf:"bytes,1,opt,name=proof,proto3" json:"proof,omitempty"` + // Encapsulates the authorized fields of the SwapClaim action, used in signing. + Body *SwapClaimBody `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"` + // The epoch duration of the chain when the swap claim took place. + EpochDuration uint64 `protobuf:"varint,7,opt,name=epoch_duration,json=epochDuration,proto3" json:"epoch_duration,omitempty"` +} + +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} +} +func (m *SwapClaim) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SwapClaim) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SwapClaim.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 *SwapClaim) XXX_Merge(src proto.Message) { + xxx_messageInfo_SwapClaim.Merge(m, src) +} +func (m *SwapClaim) XXX_Size() int { + return m.Size() +} +func (m *SwapClaim) XXX_DiscardUnknown() { + xxx_messageInfo_SwapClaim.DiscardUnknown(m) +} + +var xxx_messageInfo_SwapClaim proto.InternalMessageInfo + +func (m *SwapClaim) GetProof() *ZKSwapClaimProof { + if m != nil { + return m.Proof + } + return nil +} + +func (m *SwapClaim) GetBody() *SwapClaimBody { + if m != nil { + return m.Body + } + return nil +} + +func (m *SwapClaim) GetEpochDuration() uint64 { + if m != nil { + return m.EpochDuration + } + return 0 +} + +// 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"` + // The fee allows `SwapClaim` without an additional `Spend`. + Fee *v1alpha11.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"` + // 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"` + // 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"` +} + +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} +} +func (m *SwapClaimBody) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SwapClaimBody) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SwapClaimBody.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 *SwapClaimBody) XXX_Merge(src proto.Message) { + xxx_messageInfo_SwapClaimBody.Merge(m, src) +} +func (m *SwapClaimBody) XXX_Size() int { + return m.Size() +} +func (m *SwapClaimBody) XXX_DiscardUnknown() { + xxx_messageInfo_SwapClaimBody.DiscardUnknown(m) +} + +var xxx_messageInfo_SwapClaimBody proto.InternalMessageInfo + +func (m *SwapClaimBody) GetNullifier() *v1alpha1.Nullifier { + if m != nil { + return m.Nullifier + } + return nil +} + +func (m *SwapClaimBody) GetFee() *v1alpha11.Fee { + if m != nil { + return m.Fee + } + return nil +} + +func (m *SwapClaimBody) GetOutput_1Commitment() *v1alpha12.StateCommitment { + if m != nil { + return m.Output_1Commitment + } + return nil +} + +func (m *SwapClaimBody) GetOutput_2Commitment() *v1alpha12.StateCommitment { + if m != nil { + return m.Output_2Commitment + } + return nil +} + +func (m *SwapClaimBody) GetOutputData() *BatchSwapOutputData { + if m != nil { + return m.OutputData + } + return nil +} + +// The authorized data of a Swap transaction. +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"` + // 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"` + // 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"` + // The swap commitment and encryption of the swap data. + Payload *SwapPayload `protobuf:"bytes,5,opt,name=payload,proto3" json:"payload,omitempty"` +} + +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} +} +func (m *SwapBody) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SwapBody) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SwapBody.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 *SwapBody) XXX_Merge(src proto.Message) { + xxx_messageInfo_SwapBody.Merge(m, src) +} +func (m *SwapBody) XXX_Size() int { + return m.Size() +} +func (m *SwapBody) XXX_DiscardUnknown() { + xxx_messageInfo_SwapBody.DiscardUnknown(m) +} + +var xxx_messageInfo_SwapBody proto.InternalMessageInfo + +func (m *SwapBody) GetTradingPair() *TradingPair { + if m != nil { + return m.TradingPair + } + return nil +} + +func (m *SwapBody) GetDelta_1I() *v1alpha13.Amount { + if m != nil { + return m.Delta_1I + } + return nil +} + +func (m *SwapBody) GetDelta_2I() *v1alpha13.Amount { + if m != nil { + return m.Delta_2I + } + return nil +} + +func (m *SwapBody) GetFeeCommitment() *v1alpha14.BalanceCommitment { + if m != nil { + return m.FeeCommitment + } + return nil +} + +func (m *SwapBody) GetPayload() *SwapPayload { + if m != nil { + return m.Payload + } + return nil +} + +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"` +} + +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} +} +func (m *SwapPayload) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SwapPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SwapPayload.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 *SwapPayload) XXX_Merge(src proto.Message) { + xxx_messageInfo_SwapPayload.Merge(m, src) +} +func (m *SwapPayload) XXX_Size() int { + return m.Size() +} +func (m *SwapPayload) XXX_DiscardUnknown() { + xxx_messageInfo_SwapPayload.DiscardUnknown(m) +} + +var xxx_messageInfo_SwapPayload proto.InternalMessageInfo + +func (m *SwapPayload) GetCommitment() *v1alpha12.StateCommitment { + if m != nil { + return m.Commitment + } + return nil +} + +func (m *SwapPayload) GetEncryptedSwap() []byte { + if m != nil { + return m.EncryptedSwap + } + return nil +} + +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"` + // 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"` + // Pre-paid fee to claim the swap + ClaimFee *v1alpha11.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"` + // Swap rseed (blinding factors are derived from this) + Rseed []byte `protobuf:"bytes,6,opt,name=rseed,proto3" json:"rseed,omitempty"` +} + +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} +} +func (m *SwapPlaintext) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SwapPlaintext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SwapPlaintext.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 *SwapPlaintext) XXX_Merge(src proto.Message) { + xxx_messageInfo_SwapPlaintext.Merge(m, src) +} +func (m *SwapPlaintext) XXX_Size() int { + return m.Size() +} +func (m *SwapPlaintext) XXX_DiscardUnknown() { + xxx_messageInfo_SwapPlaintext.DiscardUnknown(m) +} + +var xxx_messageInfo_SwapPlaintext proto.InternalMessageInfo + +func (m *SwapPlaintext) GetTradingPair() *TradingPair { + if m != nil { + return m.TradingPair + } + return nil +} + +func (m *SwapPlaintext) GetDelta_1I() *v1alpha13.Amount { + if m != nil { + return m.Delta_1I + } + return nil +} + +func (m *SwapPlaintext) GetDelta_2I() *v1alpha13.Amount { + if m != nil { + return m.Delta_2I + } + return nil +} + +func (m *SwapPlaintext) GetClaimFee() *v1alpha11.Fee { + if m != nil { + return m.ClaimFee + } + return nil +} + +func (m *SwapPlaintext) GetClaimAddress() *v1alpha15.Address { + if m != nil { + return m.ClaimAddress + } + return nil +} + +func (m *SwapPlaintext) GetRseed() []byte { + if m != nil { + return m.Rseed + } + return nil +} + +type SwapPlan struct { + // The plaintext version of the swap to be performed. + SwapPlaintext *SwapPlaintext `protobuf:"bytes,1,opt,name=swap_plaintext,json=swapPlaintext,proto3" json:"swap_plaintext,omitempty"` + // The blinding factor for the fee commitment. The fee in the SwapPlan is private to prevent linkability with the SwapClaim. + FeeBlinding []byte `protobuf:"bytes,2,opt,name=fee_blinding,json=feeBlinding,proto3" json:"fee_blinding,omitempty"` + // The first blinding factor to use for the ZK swap proof. + ProofBlindingR []byte `protobuf:"bytes,3,opt,name=proof_blinding_r,json=proofBlindingR,proto3" json:"proof_blinding_r,omitempty"` + // The second blinding factor to use for the ZK swap proof. + ProofBlindingS []byte `protobuf:"bytes,4,opt,name=proof_blinding_s,json=proofBlindingS,proto3" json:"proof_blinding_s,omitempty"` +} + +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} +} +func (m *SwapPlan) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SwapPlan) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SwapPlan.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 *SwapPlan) XXX_Merge(src proto.Message) { + xxx_messageInfo_SwapPlan.Merge(m, src) +} +func (m *SwapPlan) XXX_Size() int { + return m.Size() +} +func (m *SwapPlan) XXX_DiscardUnknown() { + xxx_messageInfo_SwapPlan.DiscardUnknown(m) +} + +var xxx_messageInfo_SwapPlan proto.InternalMessageInfo + +func (m *SwapPlan) GetSwapPlaintext() *SwapPlaintext { + if m != nil { + return m.SwapPlaintext + } + return nil +} + +func (m *SwapPlan) GetFeeBlinding() []byte { + if m != nil { + return m.FeeBlinding + } + return nil +} + +func (m *SwapPlan) GetProofBlindingR() []byte { + if m != nil { + return m.ProofBlindingR + } + return nil +} + +func (m *SwapPlan) GetProofBlindingS() []byte { + if m != nil { + return m.ProofBlindingS + } + return nil +} + +type SwapClaimPlan struct { + // The plaintext version of the swap to be performed. + SwapPlaintext *SwapPlaintext `protobuf:"bytes,1,opt,name=swap_plaintext,json=swapPlaintext,proto3" json:"swap_plaintext,omitempty"` + // The position of the swap commitment. + Position uint64 `protobuf:"varint,2,opt,name=position,proto3" json:"position,omitempty"` + // Input and output amounts for the Swap. + OutputData *BatchSwapOutputData `protobuf:"bytes,3,opt,name=output_data,json=outputData,proto3" json:"output_data,omitempty"` + // The epoch duration, used in proving. + EpochDuration uint64 `protobuf:"varint,4,opt,name=epoch_duration,json=epochDuration,proto3" json:"epoch_duration,omitempty"` + // The first blinding factor to use for the ZK swap claim proof. + ProofBlindingR []byte `protobuf:"bytes,5,opt,name=proof_blinding_r,json=proofBlindingR,proto3" json:"proof_blinding_r,omitempty"` + // The second blinding factor to use for the ZK swap claim proof. + ProofBlindingS []byte `protobuf:"bytes,6,opt,name=proof_blinding_s,json=proofBlindingS,proto3" json:"proof_blinding_s,omitempty"` +} + +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} +} +func (m *SwapClaimPlan) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SwapClaimPlan) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SwapClaimPlan.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 *SwapClaimPlan) XXX_Merge(src proto.Message) { + xxx_messageInfo_SwapClaimPlan.Merge(m, src) +} +func (m *SwapClaimPlan) XXX_Size() int { + return m.Size() +} +func (m *SwapClaimPlan) XXX_DiscardUnknown() { + xxx_messageInfo_SwapClaimPlan.DiscardUnknown(m) +} + +var xxx_messageInfo_SwapClaimPlan proto.InternalMessageInfo + +func (m *SwapClaimPlan) GetSwapPlaintext() *SwapPlaintext { + if m != nil { + return m.SwapPlaintext + } + return nil +} + +func (m *SwapClaimPlan) GetPosition() uint64 { + if m != nil { + return m.Position + } + return 0 +} + +func (m *SwapClaimPlan) GetOutputData() *BatchSwapOutputData { + if m != nil { + return m.OutputData + } + return nil +} + +func (m *SwapClaimPlan) GetEpochDuration() uint64 { + if m != nil { + return m.EpochDuration + } + return 0 +} + +func (m *SwapClaimPlan) GetProofBlindingR() []byte { + if m != nil { + return m.ProofBlindingR + } + return nil +} + +func (m *SwapClaimPlan) GetProofBlindingS() []byte { + if m != nil { + return m.ProofBlindingS + } + return nil +} + +type SwapView struct { + // Types that are valid to be assigned to SwapView: + // + // *SwapView_Visible_ + // *SwapView_Opaque_ + SwapView isSwapView_SwapView `protobuf_oneof:"swap_view"` +} + +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} +} +func (m *SwapView) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SwapView) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SwapView.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 *SwapView) XXX_Merge(src proto.Message) { + xxx_messageInfo_SwapView.Merge(m, src) +} +func (m *SwapView) XXX_Size() int { + return m.Size() +} +func (m *SwapView) XXX_DiscardUnknown() { + xxx_messageInfo_SwapView.DiscardUnknown(m) +} + +var xxx_messageInfo_SwapView proto.InternalMessageInfo + +type isSwapView_SwapView interface { + isSwapView_SwapView() + MarshalTo([]byte) (int, error) + Size() int +} + +type SwapView_Visible_ struct { + Visible *SwapView_Visible `protobuf:"bytes,1,opt,name=visible,proto3,oneof" json:"visible,omitempty"` +} +type SwapView_Opaque_ struct { + Opaque *SwapView_Opaque `protobuf:"bytes,2,opt,name=opaque,proto3,oneof" json:"opaque,omitempty"` +} + +func (*SwapView_Visible_) isSwapView_SwapView() {} +func (*SwapView_Opaque_) isSwapView_SwapView() {} + +func (m *SwapView) GetSwapView() isSwapView_SwapView { + if m != nil { + return m.SwapView + } + return nil +} + +func (m *SwapView) GetVisible() *SwapView_Visible { + if x, ok := m.GetSwapView().(*SwapView_Visible_); ok { + return x.Visible + } + return nil +} + +func (m *SwapView) GetOpaque() *SwapView_Opaque { + if x, ok := m.GetSwapView().(*SwapView_Opaque_); ok { + return x.Opaque + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*SwapView) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*SwapView_Visible_)(nil), + (*SwapView_Opaque_)(nil), + } +} + +type SwapView_Visible struct { + Swap *Swap `protobuf:"bytes,1,opt,name=swap,proto3" json:"swap,omitempty"` + SwapPlaintext *SwapPlaintext `protobuf:"bytes,3,opt,name=swap_plaintext,json=swapPlaintext,proto3" json:"swap_plaintext,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} +} +func (m *SwapView_Visible) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SwapView_Visible) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SwapView_Visible.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 *SwapView_Visible) XXX_Merge(src proto.Message) { + xxx_messageInfo_SwapView_Visible.Merge(m, src) +} +func (m *SwapView_Visible) XXX_Size() int { + return m.Size() +} +func (m *SwapView_Visible) XXX_DiscardUnknown() { + xxx_messageInfo_SwapView_Visible.DiscardUnknown(m) +} + +var xxx_messageInfo_SwapView_Visible proto.InternalMessageInfo + +func (m *SwapView_Visible) GetSwap() *Swap { + if m != nil { + return m.Swap + } + return nil +} + +func (m *SwapView_Visible) GetSwapPlaintext() *SwapPlaintext { + if m != nil { + return m.SwapPlaintext + } + return nil +} + +type SwapView_Opaque struct { + Swap *Swap `protobuf:"bytes,1,opt,name=swap,proto3" json:"swap,omitempty"` +} + +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} +} +func (m *SwapView_Opaque) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SwapView_Opaque) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SwapView_Opaque.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 *SwapView_Opaque) XXX_Merge(src proto.Message) { + xxx_messageInfo_SwapView_Opaque.Merge(m, src) +} +func (m *SwapView_Opaque) XXX_Size() int { + return m.Size() +} +func (m *SwapView_Opaque) XXX_DiscardUnknown() { + xxx_messageInfo_SwapView_Opaque.DiscardUnknown(m) +} + +var xxx_messageInfo_SwapView_Opaque proto.InternalMessageInfo + +func (m *SwapView_Opaque) GetSwap() *Swap { + if m != nil { + return m.Swap + } + return nil +} + +type SwapClaimView struct { + // Types that are valid to be assigned to SwapClaimView: + // + // *SwapClaimView_Visible_ + // *SwapClaimView_Opaque_ + SwapClaimView isSwapClaimView_SwapClaimView `protobuf_oneof:"swap_claim_view"` +} + +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} +} +func (m *SwapClaimView) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SwapClaimView) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SwapClaimView.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 *SwapClaimView) XXX_Merge(src proto.Message) { + xxx_messageInfo_SwapClaimView.Merge(m, src) +} +func (m *SwapClaimView) XXX_Size() int { + return m.Size() +} +func (m *SwapClaimView) XXX_DiscardUnknown() { + xxx_messageInfo_SwapClaimView.DiscardUnknown(m) +} + +var xxx_messageInfo_SwapClaimView proto.InternalMessageInfo + +type isSwapClaimView_SwapClaimView interface { + isSwapClaimView_SwapClaimView() + MarshalTo([]byte) (int, error) + Size() int +} + +type SwapClaimView_Visible_ struct { + Visible *SwapClaimView_Visible `protobuf:"bytes,1,opt,name=visible,proto3,oneof" json:"visible,omitempty"` +} +type SwapClaimView_Opaque_ struct { + Opaque *SwapClaimView_Opaque `protobuf:"bytes,2,opt,name=opaque,proto3,oneof" json:"opaque,omitempty"` +} + +func (*SwapClaimView_Visible_) isSwapClaimView_SwapClaimView() {} +func (*SwapClaimView_Opaque_) isSwapClaimView_SwapClaimView() {} + +func (m *SwapClaimView) GetSwapClaimView() isSwapClaimView_SwapClaimView { + if m != nil { + return m.SwapClaimView + } + return nil +} + +func (m *SwapClaimView) GetVisible() *SwapClaimView_Visible { + if x, ok := m.GetSwapClaimView().(*SwapClaimView_Visible_); ok { + return x.Visible + } + return nil +} + +func (m *SwapClaimView) GetOpaque() *SwapClaimView_Opaque { + if x, ok := m.GetSwapClaimView().(*SwapClaimView_Opaque_); ok { + return x.Opaque + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*SwapClaimView) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*SwapClaimView_Visible_)(nil), + (*SwapClaimView_Opaque_)(nil), + } +} + +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"` +} + +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} +} +func (m *SwapClaimView_Visible) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SwapClaimView_Visible) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SwapClaimView_Visible.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 *SwapClaimView_Visible) XXX_Merge(src proto.Message) { + xxx_messageInfo_SwapClaimView_Visible.Merge(m, src) +} +func (m *SwapClaimView_Visible) XXX_Size() int { + return m.Size() +} +func (m *SwapClaimView_Visible) XXX_DiscardUnknown() { + xxx_messageInfo_SwapClaimView_Visible.DiscardUnknown(m) +} + +var xxx_messageInfo_SwapClaimView_Visible proto.InternalMessageInfo + +func (m *SwapClaimView_Visible) GetSwapClaim() *SwapClaim { + if m != nil { + return m.SwapClaim + } + return nil +} + +func (m *SwapClaimView_Visible) GetOutput_1() *v1alpha16.NoteView { + if m != nil { + return m.Output_1 + } + return nil +} + +func (m *SwapClaimView_Visible) GetOutput_2() *v1alpha16.NoteView { + if m != nil { + return m.Output_2 + } + return nil +} + +type SwapClaimView_Opaque struct { + SwapClaim *SwapClaim `protobuf:"bytes,1,opt,name=swap_claim,json=swapClaim,proto3" json:"swap_claim,omitempty"` +} + +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} +} +func (m *SwapClaimView_Opaque) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SwapClaimView_Opaque) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SwapClaimView_Opaque.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 *SwapClaimView_Opaque) XXX_Merge(src proto.Message) { + xxx_messageInfo_SwapClaimView_Opaque.Merge(m, src) +} +func (m *SwapClaimView_Opaque) XXX_Size() int { + return m.Size() +} +func (m *SwapClaimView_Opaque) XXX_DiscardUnknown() { + xxx_messageInfo_SwapClaimView_Opaque.DiscardUnknown(m) +} + +var xxx_messageInfo_SwapClaimView_Opaque proto.InternalMessageInfo + +func (m *SwapClaimView_Opaque) GetSwapClaim() *SwapClaim { + if m != nil { + return m.SwapClaim + } + return nil +} + +// Holds two asset IDs. Ordering doesn't reflect trading direction. Instead, we +// require `asset_1 < asset_2` as field elements, to ensure a canonical +// 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"` + // The second asset of the pair. + Asset_2 *v1alpha14.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} +} +func (m *TradingPair) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TradingPair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TradingPair.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 *TradingPair) XXX_Merge(src proto.Message) { + xxx_messageInfo_TradingPair.Merge(m, src) +} +func (m *TradingPair) XXX_Size() int { + return m.Size() +} +func (m *TradingPair) XXX_DiscardUnknown() { + xxx_messageInfo_TradingPair.DiscardUnknown(m) +} + +var xxx_messageInfo_TradingPair proto.InternalMessageInfo + +func (m *TradingPair) GetAsset_1() *v1alpha14.AssetId { + if m != nil { + return m.Asset_1 + } + return nil +} + +func (m *TradingPair) GetAsset_2() *v1alpha14.AssetId { + if m != nil { + return m.Asset_2 + } + return nil +} + +// Encodes a trading pair starting from asset `start` +// 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"` + // The end asset of the pair. + End *v1alpha14.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} +} +func (m *DirectedTradingPair) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DirectedTradingPair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DirectedTradingPair.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 *DirectedTradingPair) XXX_Merge(src proto.Message) { + xxx_messageInfo_DirectedTradingPair.Merge(m, src) +} +func (m *DirectedTradingPair) XXX_Size() int { + return m.Size() +} +func (m *DirectedTradingPair) XXX_DiscardUnknown() { + xxx_messageInfo_DirectedTradingPair.DiscardUnknown(m) +} + +var xxx_messageInfo_DirectedTradingPair proto.InternalMessageInfo + +func (m *DirectedTradingPair) GetStart() *v1alpha14.AssetId { + if m != nil { + return m.Start + } + return nil +} + +func (m *DirectedTradingPair) GetEnd() *v1alpha14.AssetId { + if m != nil { + return m.End + } + return nil +} + +// Records the result of a batch swap on-chain. +// +// Used as a public input to a swap claim proof, as it implies the effective +// 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"` + // 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"` + // 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"` + // 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"` + // 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"` + // 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"` + // 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. + TradingPair *TradingPair `protobuf:"bytes,8,opt,name=trading_pair,json=tradingPair,proto3" json:"trading_pair,omitempty"` + // The starting block height of the epoch for which the batch swap data is valid. + EpochStartingHeight uint64 `protobuf:"varint,9,opt,name=epoch_starting_height,json=epochStartingHeight,proto3" json:"epoch_starting_height,omitempty"` +} + +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} +} +func (m *BatchSwapOutputData) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BatchSwapOutputData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BatchSwapOutputData.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 *BatchSwapOutputData) XXX_Merge(src proto.Message) { + xxx_messageInfo_BatchSwapOutputData.Merge(m, src) +} +func (m *BatchSwapOutputData) XXX_Size() int { + return m.Size() +} +func (m *BatchSwapOutputData) XXX_DiscardUnknown() { + xxx_messageInfo_BatchSwapOutputData.DiscardUnknown(m) +} + +var xxx_messageInfo_BatchSwapOutputData proto.InternalMessageInfo + +func (m *BatchSwapOutputData) GetDelta_1() *v1alpha13.Amount { + if m != nil { + return m.Delta_1 + } + return nil +} + +func (m *BatchSwapOutputData) GetDelta_2() *v1alpha13.Amount { + if m != nil { + return m.Delta_2 + } + return nil +} + +func (m *BatchSwapOutputData) GetLambda_1() *v1alpha13.Amount { + if m != nil { + return m.Lambda_1 + } + return nil +} + +func (m *BatchSwapOutputData) GetLambda_2() *v1alpha13.Amount { + if m != nil { + return m.Lambda_2 + } + return nil +} + +func (m *BatchSwapOutputData) GetUnfilled_1() *v1alpha13.Amount { + if m != nil { + return m.Unfilled_1 + } + return nil +} + +func (m *BatchSwapOutputData) GetUnfilled_2() *v1alpha13.Amount { + if m != nil { + return m.Unfilled_2 + } + return nil +} + +func (m *BatchSwapOutputData) GetHeight() uint64 { + if m != nil { + return m.Height + } + return 0 +} + +func (m *BatchSwapOutputData) GetTradingPair() *TradingPair { + if m != nil { + return m.TradingPair + } + return nil +} + +func (m *BatchSwapOutputData) GetEpochStartingHeight() uint64 { + if m != nil { + return m.EpochStartingHeight + } + return 0 +} + +// The trading function for a specific pair. +// For a pair (asset_1, asset_2), a trading function is defined by: +// `phi(R) = p*R_1 + q*R_2` and `gamma = 1 - fee`. +// The trading function is frequently referred to as "phi". +type TradingFunction struct { + Component *BareTradingFunction `protobuf:"bytes,1,opt,name=component,proto3" json:"component,omitempty"` + Pair *TradingPair `protobuf:"bytes,2,opt,name=pair,proto3" json:"pair,omitempty"` +} + +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} +} +func (m *TradingFunction) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TradingFunction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TradingFunction.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 *TradingFunction) XXX_Merge(src proto.Message) { + xxx_messageInfo_TradingFunction.Merge(m, src) +} +func (m *TradingFunction) XXX_Size() int { + return m.Size() +} +func (m *TradingFunction) XXX_DiscardUnknown() { + xxx_messageInfo_TradingFunction.DiscardUnknown(m) +} + +var xxx_messageInfo_TradingFunction proto.InternalMessageInfo + +func (m *TradingFunction) GetComponent() *BareTradingFunction { + if m != nil { + return m.Component + } + return nil +} + +func (m *TradingFunction) GetPair() *TradingPair { + if m != nil { + return m.Pair + } + return nil +} + +// The minimum amount of data describing a trading function. +// +// This implicitly treats the trading function as being between assets 1 and 2, +// without specifying what those assets are, to avoid duplicating data (each +// asset ID alone is twice the size of the trading function). +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"` + // 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"` +} + +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} +} +func (m *BareTradingFunction) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BareTradingFunction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BareTradingFunction.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 *BareTradingFunction) XXX_Merge(src proto.Message) { + xxx_messageInfo_BareTradingFunction.Merge(m, src) +} +func (m *BareTradingFunction) XXX_Size() int { + return m.Size() +} +func (m *BareTradingFunction) XXX_DiscardUnknown() { + xxx_messageInfo_BareTradingFunction.DiscardUnknown(m) +} + +var xxx_messageInfo_BareTradingFunction proto.InternalMessageInfo + +func (m *BareTradingFunction) GetFee() uint32 { + if m != nil { + return m.Fee + } + return 0 +} + +func (m *BareTradingFunction) GetP() *v1alpha13.Amount { + if m != nil { + return m.P + } + return nil +} + +func (m *BareTradingFunction) GetQ() *v1alpha13.Amount { + if m != nil { + return m.Q + } + return nil +} + +// The reserves of a position. +// +// Like a position, this implicitly treats the trading function as being +// between assets 1 and 2, without specifying what those assets are, to avoid +// 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"` +} + +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} +} +func (m *Reserves) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Reserves) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Reserves.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 *Reserves) XXX_Merge(src proto.Message) { + xxx_messageInfo_Reserves.Merge(m, src) +} +func (m *Reserves) XXX_Size() int { + return m.Size() +} +func (m *Reserves) XXX_DiscardUnknown() { + xxx_messageInfo_Reserves.DiscardUnknown(m) +} + +var xxx_messageInfo_Reserves proto.InternalMessageInfo + +func (m *Reserves) GetR1() *v1alpha13.Amount { + if m != nil { + return m.R1 + } + return nil +} + +func (m *Reserves) GetR2() *v1alpha13.Amount { + if m != nil { + return m.R2 + } + return nil +} + +// Data identifying a position. +type Position struct { + Phi *TradingFunction `protobuf:"bytes,1,opt,name=phi,proto3" json:"phi,omitempty"` + // A random value used to disambiguate different positions with the exact same + // trading function. The chain should reject newly created positions with the + // same nonce as an existing position. This ensures that `PositionId`s will + // be unique, and allows us to track position ownership with a + // sequence of stateful NFTs based on the `PositionId`. + Nonce []byte `protobuf:"bytes,2,opt,name=nonce,proto3" json:"nonce,omitempty"` + State *PositionState `protobuf:"bytes,3,opt,name=state,proto3" json:"state,omitempty"` + Reserves *Reserves `protobuf:"bytes,4,opt,name=reserves,proto3" json:"reserves,omitempty"` + // / If set to true, the position is a limit-order and will be closed + // / immediately after being filled. + CloseOnFill bool `protobuf:"varint,5,opt,name=close_on_fill,json=closeOnFill,proto3" json:"close_on_fill,omitempty"` +} + +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} +} +func (m *Position) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Position) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Position.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 *Position) XXX_Merge(src proto.Message) { + xxx_messageInfo_Position.Merge(m, src) +} +func (m *Position) XXX_Size() int { + return m.Size() +} +func (m *Position) XXX_DiscardUnknown() { + xxx_messageInfo_Position.DiscardUnknown(m) +} + +var xxx_messageInfo_Position proto.InternalMessageInfo + +func (m *Position) GetPhi() *TradingFunction { + if m != nil { + return m.Phi + } + return nil +} + +func (m *Position) GetNonce() []byte { + if m != nil { + return m.Nonce + } + return nil +} + +func (m *Position) GetState() *PositionState { + if m != nil { + return m.State + } + return nil +} + +func (m *Position) GetReserves() *Reserves { + if m != nil { + return m.Reserves + } + return nil +} + +func (m *Position) GetCloseOnFill() bool { + if m != nil { + return m.CloseOnFill + } + return false +} + +// A hash of a `Position`. +type PositionId struct { + // The bytes of the position ID. + Inner []byte `protobuf:"bytes,1,opt,name=inner,proto3" json:"inner,omitempty"` + // Alternatively, a Bech32m-encoded string representation of the `inner` + // bytes. + // + // NOTE: implementations are not required to support parsing this field. + // Implementations should prefer to encode the bytes in all messages they + // produce. Implementations must not accept messages with both `inner` and + // `alt_bech32m` set. + AltBech32M string `protobuf:"bytes,2,opt,name=alt_bech32m,json=altBech32m,proto3" json:"alt_bech32m,omitempty"` +} + +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} +} +func (m *PositionId) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PositionId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PositionId.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 *PositionId) XXX_Merge(src proto.Message) { + xxx_messageInfo_PositionId.Merge(m, src) +} +func (m *PositionId) XXX_Size() int { + return m.Size() +} +func (m *PositionId) XXX_DiscardUnknown() { + xxx_messageInfo_PositionId.DiscardUnknown(m) +} + +var xxx_messageInfo_PositionId proto.InternalMessageInfo + +func (m *PositionId) GetInner() []byte { + if m != nil { + return m.Inner + } + return nil +} + +func (m *PositionId) GetAltBech32M() string { + if m != nil { + return m.AltBech32M + } + return "" +} + +// 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"` +} + +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} +} +func (m *PositionState) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PositionState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PositionState.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 *PositionState) XXX_Merge(src proto.Message) { + xxx_messageInfo_PositionState.Merge(m, src) +} +func (m *PositionState) XXX_Size() int { + return m.Size() +} +func (m *PositionState) XXX_DiscardUnknown() { + xxx_messageInfo_PositionState.DiscardUnknown(m) +} + +var xxx_messageInfo_PositionState proto.InternalMessageInfo + +func (m *PositionState) GetState() PositionState_PositionStateEnum { + if m != nil { + return m.State + } + return PositionState_POSITION_STATE_ENUM_UNSPECIFIED +} + +// 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 +// be authorized by spending funds: a state transition (e.g., closing a +// position) is modeled as spending an "open position LPNFT" and minting a +// "closed position LPNFT" for the same (globally unique) position ID. +// +// This means that the LP mechanics can be agnostic to the mechanism used to +// record custody and spend authorization. For instance, they can be recorded +// in the shielded pool, where custody is based on off-chain keys, or they could +// be recorded in a programmatic on-chain account (in the future, e.g., to +// support interchain accounts). This also means that LP-related actions don't +// require any cryptographic implementation (proofs, signatures, etc), other +// than hooking into the value commitment mechanism used for transaction +// balances. +type LpNft struct { + PositionId *PositionId `protobuf:"bytes,1,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty"` + State *PositionState `protobuf:"bytes,2,opt,name=state,proto3" json:"state,omitempty"` +} + +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} +} +func (m *LpNft) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LpNft) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LpNft.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 *LpNft) XXX_Merge(src proto.Message) { + xxx_messageInfo_LpNft.Merge(m, src) +} +func (m *LpNft) XXX_Size() int { + return m.Size() +} +func (m *LpNft) XXX_DiscardUnknown() { + xxx_messageInfo_LpNft.DiscardUnknown(m) +} + +var xxx_messageInfo_LpNft proto.InternalMessageInfo + +func (m *LpNft) GetPositionId() *PositionId { + if m != nil { + return m.PositionId + } + return nil +} + +func (m *LpNft) GetState() *PositionState { + if m != nil { + return m.State + } + return nil +} + +// A transaction action that opens a new position. +// +// This action's contribution to the transaction's value balance is to consume +// the initial reserves and contribute an opened position NFT. +type 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 *Position `protobuf:"bytes,1,opt,name=position,proto3" json:"position,omitempty"` +} + +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} +} +func (m *PositionOpen) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PositionOpen) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_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 *PositionOpen) XXX_Merge(src proto.Message) { + xxx_messageInfo_PositionOpen.Merge(m, src) +} +func (m *PositionOpen) XXX_Size() int { + return m.Size() +} +func (m *PositionOpen) XXX_DiscardUnknown() { + xxx_messageInfo_PositionOpen.DiscardUnknown(m) +} + +var xxx_messageInfo_PositionOpen proto.InternalMessageInfo + +func (m *PositionOpen) GetPosition() *Position { + if m != nil { + return m.Position + } + return nil +} + +// A transaction action that closes a position. +// +// This action's contribution to the transaction's value balance is to consume +// an opened position NFT and contribute a closed position NFT. +// +// Closing a position does not immediately withdraw funds, because Penumbra +// transactions (like any ZK transaction model) are early-binding: the prover +// must know the state transition they prove knowledge of, and they cannot know +// the final reserves with certainty until after the position has been deactivated. +type PositionClose struct { + PositionId *PositionId `protobuf:"bytes,1,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty"` +} + +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} +} +func (m *PositionClose) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PositionClose) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PositionClose.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 *PositionClose) XXX_Merge(src proto.Message) { + xxx_messageInfo_PositionClose.Merge(m, src) +} +func (m *PositionClose) XXX_Size() int { + return m.Size() +} +func (m *PositionClose) XXX_DiscardUnknown() { + xxx_messageInfo_PositionClose.DiscardUnknown(m) +} + +var xxx_messageInfo_PositionClose proto.InternalMessageInfo + +func (m *PositionClose) GetPositionId() *PositionId { + if m != nil { + return m.PositionId + } + return nil +} + +// A transaction action that withdraws funds from a closed position. +// +// This action's contribution to the transaction's value balance is to consume a +// closed position NFT and contribute a withdrawn position NFT, as well as all +// of the funds that were in the position at the time of closing. +type PositionWithdraw 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 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"` +} + +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} +} +func (m *PositionWithdraw) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PositionWithdraw) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PositionWithdraw.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 *PositionWithdraw) XXX_Merge(src proto.Message) { + xxx_messageInfo_PositionWithdraw.Merge(m, src) +} +func (m *PositionWithdraw) XXX_Size() int { + return m.Size() +} +func (m *PositionWithdraw) XXX_DiscardUnknown() { + xxx_messageInfo_PositionWithdraw.DiscardUnknown(m) +} + +var xxx_messageInfo_PositionWithdraw proto.InternalMessageInfo + +func (m *PositionWithdraw) GetPositionId() *PositionId { + if m != nil { + return m.PositionId + } + return nil +} + +func (m *PositionWithdraw) GetReservesCommitment() *v1alpha14.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. +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"` +} + +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} +} +func (m *PositionRewardClaim) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PositionRewardClaim) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PositionRewardClaim.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 *PositionRewardClaim) XXX_Merge(src proto.Message) { + xxx_messageInfo_PositionRewardClaim.Merge(m, src) +} +func (m *PositionRewardClaim) XXX_Size() int { + return m.Size() +} +func (m *PositionRewardClaim) XXX_DiscardUnknown() { + xxx_messageInfo_PositionRewardClaim.DiscardUnknown(m) +} + +var xxx_messageInfo_PositionRewardClaim proto.InternalMessageInfo + +func (m *PositionRewardClaim) GetPositionId() *PositionId { + if m != nil { + return m.PositionId + } + return nil +} + +func (m *PositionRewardClaim) GetRewardsCommitment() *v1alpha14.BalanceCommitment { + if m != nil { + return m.RewardsCommitment + } + return nil +} + +// Contains the entire execution of a particular swap. +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"` + // The total output amount for this execution. + Output *v1alpha14.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} +} +func (m *SwapExecution) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SwapExecution) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SwapExecution.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 *SwapExecution) XXX_Merge(src proto.Message) { + xxx_messageInfo_SwapExecution.Merge(m, src) +} +func (m *SwapExecution) XXX_Size() int { + return m.Size() +} +func (m *SwapExecution) XXX_DiscardUnknown() { + xxx_messageInfo_SwapExecution.DiscardUnknown(m) +} + +var xxx_messageInfo_SwapExecution proto.InternalMessageInfo + +func (m *SwapExecution) GetTraces() []*SwapExecution_Trace { + if m != nil { + return m.Traces + } + return nil +} + +func (m *SwapExecution) GetInput() *v1alpha14.Value { + if m != nil { + return m.Input + } + return nil +} + +func (m *SwapExecution) GetOutput() *v1alpha14.Value { + if m != nil { + return m.Output + } + return nil +} + +// 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"` +} + +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} +} +func (m *SwapExecution_Trace) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SwapExecution_Trace) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SwapExecution_Trace.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 *SwapExecution_Trace) XXX_Merge(src proto.Message) { + xxx_messageInfo_SwapExecution_Trace.Merge(m, src) +} +func (m *SwapExecution_Trace) XXX_Size() int { + return m.Size() +} +func (m *SwapExecution_Trace) XXX_DiscardUnknown() { + xxx_messageInfo_SwapExecution_Trace.DiscardUnknown(m) +} + +var xxx_messageInfo_SwapExecution_Trace proto.InternalMessageInfo + +func (m *SwapExecution_Trace) GetValue() []*v1alpha14.Value { + if m != nil { + return m.Value + } + return nil +} + +// Contains private and public data for withdrawing funds from a closed position. +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"` +} + +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} +} +func (m *PositionWithdrawPlan) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PositionWithdrawPlan) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PositionWithdrawPlan.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 *PositionWithdrawPlan) XXX_Merge(src proto.Message) { + xxx_messageInfo_PositionWithdrawPlan.Merge(m, src) +} +func (m *PositionWithdrawPlan) XXX_Size() int { + return m.Size() +} +func (m *PositionWithdrawPlan) XXX_DiscardUnknown() { + xxx_messageInfo_PositionWithdrawPlan.DiscardUnknown(m) +} + +var xxx_messageInfo_PositionWithdrawPlan proto.InternalMessageInfo + +func (m *PositionWithdrawPlan) GetReserves() *Reserves { + if m != nil { + return m.Reserves + } + return nil +} + +func (m *PositionWithdrawPlan) GetPositionId() *PositionId { + if m != nil { + return m.PositionId + } + return nil +} + +func (m *PositionWithdrawPlan) GetPair() *TradingPair { + if m != nil { + return m.Pair + } + return nil +} + +// Contains private and public data for claiming rewards from a position. +type PositionRewardClaimPlan struct { + Reserves *Reserves `protobuf:"bytes,1,opt,name=reserves,proto3" json:"reserves,omitempty"` +} + +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} +} +func (m *PositionRewardClaimPlan) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PositionRewardClaimPlan) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PositionRewardClaimPlan.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 *PositionRewardClaimPlan) XXX_Merge(src proto.Message) { + xxx_messageInfo_PositionRewardClaimPlan.Merge(m, src) +} +func (m *PositionRewardClaimPlan) XXX_Size() int { + return m.Size() +} +func (m *PositionRewardClaimPlan) XXX_DiscardUnknown() { + xxx_messageInfo_PositionRewardClaimPlan.DiscardUnknown(m) +} + +var xxx_messageInfo_PositionRewardClaimPlan proto.InternalMessageInfo + +func (m *PositionRewardClaimPlan) GetReserves() *Reserves { + if m != nil { + return m.Reserves + } + return nil +} + +// 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"` +} + +func (m *BatchSwapOutputDataRequest) Reset() { *m = BatchSwapOutputDataRequest{} } +func (m *BatchSwapOutputDataRequest) String() string { return proto.CompactTextString(m) } +func (*BatchSwapOutputDataRequest) ProtoMessage() {} +func (*BatchSwapOutputDataRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_259f31b405eaa9a9, []int{29} +} +func (m *BatchSwapOutputDataRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BatchSwapOutputDataRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BatchSwapOutputDataRequest.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 *BatchSwapOutputDataRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_BatchSwapOutputDataRequest.Merge(m, src) +} +func (m *BatchSwapOutputDataRequest) XXX_Size() int { + return m.Size() +} +func (m *BatchSwapOutputDataRequest) XXX_DiscardUnknown() { + xxx_messageInfo_BatchSwapOutputDataRequest.DiscardUnknown(m) +} + +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 + } + return 0 +} + +func (m *BatchSwapOutputDataRequest) GetTradingPair() *TradingPair { + if m != nil { + return m.TradingPair + } + return nil +} + +type BatchSwapOutputDataResponse struct { + Data *BatchSwapOutputData `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` +} + +func (m *BatchSwapOutputDataResponse) Reset() { *m = BatchSwapOutputDataResponse{} } +func (m *BatchSwapOutputDataResponse) String() string { return proto.CompactTextString(m) } +func (*BatchSwapOutputDataResponse) ProtoMessage() {} +func (*BatchSwapOutputDataResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_259f31b405eaa9a9, []int{30} +} +func (m *BatchSwapOutputDataResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BatchSwapOutputDataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BatchSwapOutputDataResponse.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 *BatchSwapOutputDataResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_BatchSwapOutputDataResponse.Merge(m, src) +} +func (m *BatchSwapOutputDataResponse) XXX_Size() int { + return m.Size() +} +func (m *BatchSwapOutputDataResponse) XXX_DiscardUnknown() { + xxx_messageInfo_BatchSwapOutputDataResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_BatchSwapOutputDataResponse proto.InternalMessageInfo + +func (m *BatchSwapOutputDataResponse) GetData() *BatchSwapOutputData { + if m != nil { + return m.Data + } + return nil +} + +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"` +} + +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} +} +func (m *SwapExecutionRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SwapExecutionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SwapExecutionRequest.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 *SwapExecutionRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_SwapExecutionRequest.Merge(m, src) +} +func (m *SwapExecutionRequest) XXX_Size() int { + return m.Size() +} +func (m *SwapExecutionRequest) XXX_DiscardUnknown() { + xxx_messageInfo_SwapExecutionRequest.DiscardUnknown(m) +} + +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 + } + return 0 +} + +func (m *SwapExecutionRequest) GetTradingPair() *DirectedTradingPair { + if m != nil { + return m.TradingPair + } + return nil +} + +type SwapExecutionResponse struct { + SwapExecution *SwapExecution `protobuf:"bytes,1,opt,name=swap_execution,json=swapExecution,proto3" json:"swap_execution,omitempty"` +} + +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} +} +func (m *SwapExecutionResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SwapExecutionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SwapExecutionResponse.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 *SwapExecutionResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_SwapExecutionResponse.Merge(m, src) +} +func (m *SwapExecutionResponse) XXX_Size() int { + return m.Size() +} +func (m *SwapExecutionResponse) XXX_DiscardUnknown() { + xxx_messageInfo_SwapExecutionResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_SwapExecutionResponse proto.InternalMessageInfo + +func (m *SwapExecutionResponse) GetSwapExecution() *SwapExecution { + if m != nil { + return m.SwapExecution + } + return nil +} + +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"` +} + +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} +} +func (m *ArbExecutionRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ArbExecutionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ArbExecutionRequest.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 *ArbExecutionRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ArbExecutionRequest.Merge(m, src) +} +func (m *ArbExecutionRequest) XXX_Size() int { + return m.Size() +} +func (m *ArbExecutionRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ArbExecutionRequest.DiscardUnknown(m) +} + +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 + } + return 0 +} + +type ArbExecutionResponse struct { + SwapExecution *SwapExecution `protobuf:"bytes,1,opt,name=swap_execution,json=swapExecution,proto3" json:"swap_execution,omitempty"` + Height uint64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` +} + +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} +} +func (m *ArbExecutionResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ArbExecutionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ArbExecutionResponse.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 *ArbExecutionResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ArbExecutionResponse.Merge(m, src) +} +func (m *ArbExecutionResponse) XXX_Size() int { + return m.Size() +} +func (m *ArbExecutionResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ArbExecutionResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ArbExecutionResponse proto.InternalMessageInfo + +func (m *ArbExecutionResponse) GetSwapExecution() *SwapExecution { + if m != nil { + return m.SwapExecution + } + return nil +} + +func (m *ArbExecutionResponse) GetHeight() uint64 { + if m != nil { + return m.Height + } + return 0 +} + +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. + EndHeight uint64 `protobuf:"varint,3,opt,name=end_height,json=endHeight,proto3" json:"end_height,omitempty"` + // If present, filter swap executions by the given trading pair. + TradingPair *DirectedTradingPair `protobuf:"bytes,4,opt,name=trading_pair,json=tradingPair,proto3" json:"trading_pair,omitempty"` +} + +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} +} +func (m *SwapExecutionsRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SwapExecutionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SwapExecutionsRequest.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 *SwapExecutionsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_SwapExecutionsRequest.Merge(m, src) +} +func (m *SwapExecutionsRequest) XXX_Size() int { + return m.Size() +} +func (m *SwapExecutionsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_SwapExecutionsRequest.DiscardUnknown(m) +} + +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 + } + return 0 +} + +func (m *SwapExecutionsRequest) GetEndHeight() uint64 { + if m != nil { + return m.EndHeight + } + return 0 +} + +func (m *SwapExecutionsRequest) GetTradingPair() *DirectedTradingPair { + if m != nil { + return m.TradingPair + } + return nil +} + +type SwapExecutionsResponse struct { + SwapExecution *SwapExecution `protobuf:"bytes,1,opt,name=swap_execution,json=swapExecution,proto3" json:"swap_execution,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"` +} + +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} +} +func (m *SwapExecutionsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SwapExecutionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SwapExecutionsResponse.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 *SwapExecutionsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_SwapExecutionsResponse.Merge(m, src) +} +func (m *SwapExecutionsResponse) XXX_Size() int { + return m.Size() +} +func (m *SwapExecutionsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_SwapExecutionsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_SwapExecutionsResponse proto.InternalMessageInfo + +func (m *SwapExecutionsResponse) GetSwapExecution() *SwapExecution { + if m != nil { + return m.SwapExecution + } + return nil +} + +func (m *SwapExecutionsResponse) GetHeight() uint64 { + if m != nil { + return m.Height + } + return 0 +} + +func (m *SwapExecutionsResponse) GetTradingPair() *DirectedTradingPair { + if m != nil { + return m.TradingPair + } + return nil +} + +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. + EndHeight uint64 `protobuf:"varint,3,opt,name=end_height,json=endHeight,proto3" json:"end_height,omitempty"` +} + +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} +} +func (m *ArbExecutionsRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ArbExecutionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ArbExecutionsRequest.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 *ArbExecutionsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ArbExecutionsRequest.Merge(m, src) +} +func (m *ArbExecutionsRequest) XXX_Size() int { + return m.Size() +} +func (m *ArbExecutionsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ArbExecutionsRequest.DiscardUnknown(m) +} + +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 + } + return 0 +} + +func (m *ArbExecutionsRequest) GetEndHeight() uint64 { + if m != nil { + return m.EndHeight + } + return 0 +} + +type ArbExecutionsResponse struct { + SwapExecution *SwapExecution `protobuf:"bytes,1,opt,name=swap_execution,json=swapExecution,proto3" json:"swap_execution,omitempty"` + Height uint64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` +} + +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} +} +func (m *ArbExecutionsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ArbExecutionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ArbExecutionsResponse.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 *ArbExecutionsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ArbExecutionsResponse.Merge(m, src) +} +func (m *ArbExecutionsResponse) XXX_Size() int { + return m.Size() +} +func (m *ArbExecutionsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ArbExecutionsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ArbExecutionsResponse proto.InternalMessageInfo + +func (m *ArbExecutionsResponse) GetSwapExecution() *SwapExecution { + if m != nil { + return m.SwapExecution + } + return nil +} + +func (m *ArbExecutionsResponse) GetHeight() uint64 { + if m != nil { + return m.Height + } + return 0 +} + +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"` +} + +func (m *LiquidityPositionsRequest) Reset() { *m = LiquidityPositionsRequest{} } +func (m *LiquidityPositionsRequest) String() string { return proto.CompactTextString(m) } +func (*LiquidityPositionsRequest) ProtoMessage() {} +func (*LiquidityPositionsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_259f31b405eaa9a9, []int{39} +} +func (m *LiquidityPositionsRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LiquidityPositionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LiquidityPositionsRequest.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 *LiquidityPositionsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_LiquidityPositionsRequest.Merge(m, src) +} +func (m *LiquidityPositionsRequest) XXX_Size() int { + return m.Size() +} +func (m *LiquidityPositionsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_LiquidityPositionsRequest.DiscardUnknown(m) +} + +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 + } + return false +} + +type LiquidityPositionsResponse struct { + Data *Position `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` +} + +func (m *LiquidityPositionsResponse) Reset() { *m = LiquidityPositionsResponse{} } +func (m *LiquidityPositionsResponse) String() string { return proto.CompactTextString(m) } +func (*LiquidityPositionsResponse) ProtoMessage() {} +func (*LiquidityPositionsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_259f31b405eaa9a9, []int{40} +} +func (m *LiquidityPositionsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LiquidityPositionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LiquidityPositionsResponse.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 *LiquidityPositionsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_LiquidityPositionsResponse.Merge(m, src) +} +func (m *LiquidityPositionsResponse) XXX_Size() int { + return m.Size() +} +func (m *LiquidityPositionsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_LiquidityPositionsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_LiquidityPositionsResponse proto.InternalMessageInfo + +func (m *LiquidityPositionsResponse) GetData() *Position { + if m != nil { + return m.Data + } + return nil +} + +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"` +} + +func (m *LiquidityPositionByIdRequest) Reset() { *m = LiquidityPositionByIdRequest{} } +func (m *LiquidityPositionByIdRequest) String() string { return proto.CompactTextString(m) } +func (*LiquidityPositionByIdRequest) ProtoMessage() {} +func (*LiquidityPositionByIdRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_259f31b405eaa9a9, []int{41} +} +func (m *LiquidityPositionByIdRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LiquidityPositionByIdRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LiquidityPositionByIdRequest.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 *LiquidityPositionByIdRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_LiquidityPositionByIdRequest.Merge(m, src) +} +func (m *LiquidityPositionByIdRequest) XXX_Size() int { + return m.Size() +} +func (m *LiquidityPositionByIdRequest) XXX_DiscardUnknown() { + xxx_messageInfo_LiquidityPositionByIdRequest.DiscardUnknown(m) +} + +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 + } + return nil +} + +type LiquidityPositionByIdResponse struct { + Data *Position `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` +} + +func (m *LiquidityPositionByIdResponse) Reset() { *m = LiquidityPositionByIdResponse{} } +func (m *LiquidityPositionByIdResponse) String() string { return proto.CompactTextString(m) } +func (*LiquidityPositionByIdResponse) ProtoMessage() {} +func (*LiquidityPositionByIdResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_259f31b405eaa9a9, []int{42} +} +func (m *LiquidityPositionByIdResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LiquidityPositionByIdResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LiquidityPositionByIdResponse.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 *LiquidityPositionByIdResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_LiquidityPositionByIdResponse.Merge(m, src) +} +func (m *LiquidityPositionByIdResponse) XXX_Size() int { + return m.Size() +} +func (m *LiquidityPositionByIdResponse) XXX_DiscardUnknown() { + xxx_messageInfo_LiquidityPositionByIdResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_LiquidityPositionByIdResponse proto.InternalMessageInfo + +func (m *LiquidityPositionByIdResponse) GetData() *Position { + if m != nil { + return m.Data + } + return nil +} + +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"` +} + +func (m *LiquidityPositionsByIdRequest) Reset() { *m = LiquidityPositionsByIdRequest{} } +func (m *LiquidityPositionsByIdRequest) String() string { return proto.CompactTextString(m) } +func (*LiquidityPositionsByIdRequest) ProtoMessage() {} +func (*LiquidityPositionsByIdRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_259f31b405eaa9a9, []int{43} +} +func (m *LiquidityPositionsByIdRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LiquidityPositionsByIdRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LiquidityPositionsByIdRequest.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 *LiquidityPositionsByIdRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_LiquidityPositionsByIdRequest.Merge(m, src) +} +func (m *LiquidityPositionsByIdRequest) XXX_Size() int { + return m.Size() +} +func (m *LiquidityPositionsByIdRequest) XXX_DiscardUnknown() { + xxx_messageInfo_LiquidityPositionsByIdRequest.DiscardUnknown(m) +} + +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 + } + return nil +} + +type LiquidityPositionsByIdResponse struct { + Data *Position `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` +} + +func (m *LiquidityPositionsByIdResponse) Reset() { *m = LiquidityPositionsByIdResponse{} } +func (m *LiquidityPositionsByIdResponse) String() string { return proto.CompactTextString(m) } +func (*LiquidityPositionsByIdResponse) ProtoMessage() {} +func (*LiquidityPositionsByIdResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_259f31b405eaa9a9, []int{44} +} +func (m *LiquidityPositionsByIdResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LiquidityPositionsByIdResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LiquidityPositionsByIdResponse.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 *LiquidityPositionsByIdResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_LiquidityPositionsByIdResponse.Merge(m, src) +} +func (m *LiquidityPositionsByIdResponse) XXX_Size() int { + return m.Size() +} +func (m *LiquidityPositionsByIdResponse) XXX_DiscardUnknown() { + xxx_messageInfo_LiquidityPositionsByIdResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_LiquidityPositionsByIdResponse proto.InternalMessageInfo + +func (m *LiquidityPositionsByIdResponse) GetData() *Position { + if m != nil { + return m.Data + } + return nil +} + +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. + Limit uint64 `protobuf:"varint,5,opt,name=limit,proto3" json:"limit,omitempty"` +} + +func (m *LiquidityPositionsByPriceRequest) Reset() { *m = LiquidityPositionsByPriceRequest{} } +func (m *LiquidityPositionsByPriceRequest) String() string { return proto.CompactTextString(m) } +func (*LiquidityPositionsByPriceRequest) ProtoMessage() {} +func (*LiquidityPositionsByPriceRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_259f31b405eaa9a9, []int{45} +} +func (m *LiquidityPositionsByPriceRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LiquidityPositionsByPriceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LiquidityPositionsByPriceRequest.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 *LiquidityPositionsByPriceRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_LiquidityPositionsByPriceRequest.Merge(m, src) +} +func (m *LiquidityPositionsByPriceRequest) XXX_Size() int { + return m.Size() +} +func (m *LiquidityPositionsByPriceRequest) XXX_DiscardUnknown() { + xxx_messageInfo_LiquidityPositionsByPriceRequest.DiscardUnknown(m) +} + +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 + } + return nil +} + +func (m *LiquidityPositionsByPriceRequest) GetLimit() uint64 { + if m != nil { + return m.Limit + } + return 0 +} + +type LiquidityPositionsByPriceResponse struct { + Data *Position `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` +} + +func (m *LiquidityPositionsByPriceResponse) Reset() { *m = LiquidityPositionsByPriceResponse{} } +func (m *LiquidityPositionsByPriceResponse) String() string { return proto.CompactTextString(m) } +func (*LiquidityPositionsByPriceResponse) ProtoMessage() {} +func (*LiquidityPositionsByPriceResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_259f31b405eaa9a9, []int{46} +} +func (m *LiquidityPositionsByPriceResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LiquidityPositionsByPriceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LiquidityPositionsByPriceResponse.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 *LiquidityPositionsByPriceResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_LiquidityPositionsByPriceResponse.Merge(m, src) +} +func (m *LiquidityPositionsByPriceResponse) XXX_Size() int { + return m.Size() +} +func (m *LiquidityPositionsByPriceResponse) XXX_DiscardUnknown() { + xxx_messageInfo_LiquidityPositionsByPriceResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_LiquidityPositionsByPriceResponse proto.InternalMessageInfo + +func (m *LiquidityPositionsByPriceResponse) GetData() *Position { + if m != nil { + return m.Data + } + return nil +} + +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"` +} + +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} +} +func (m *SpreadRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SpreadRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SpreadRequest.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 *SpreadRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_SpreadRequest.Merge(m, src) +} +func (m *SpreadRequest) XXX_Size() int { + return m.Size() +} +func (m *SpreadRequest) XXX_DiscardUnknown() { + xxx_messageInfo_SpreadRequest.DiscardUnknown(m) +} + +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 + } + return nil +} + +type SpreadResponse struct { + // The best position when trading 1 => 2. + Best_1To_2Position *Position `protobuf:"bytes,1,opt,name=best_1_to_2_position,json=best1To2Position,proto3" json:"best_1_to_2_position,omitempty"` + // The best position when trading 2 => 1. + Best_2To_1Position *Position `protobuf:"bytes,2,opt,name=best_2_to_1_position,json=best2To1Position,proto3" json:"best_2_to_1_position,omitempty"` + // An approximation of the effective price when trading 1 => 2. + ApproxEffectivePrice_1To_2 float64 `protobuf:"fixed64,3,opt,name=approx_effective_price_1_to_2,json=approxEffectivePrice1To2,proto3" json:"approx_effective_price_1_to_2,omitempty"` + // An approximation of the effective price when trading 2 => 1. + ApproxEffectivePrice_2To_1 float64 `protobuf:"fixed64,4,opt,name=approx_effective_price_2_to_1,json=approxEffectivePrice2To1,proto3" json:"approx_effective_price_2_to_1,omitempty"` +} + +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} +} +func (m *SpreadResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SpreadResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SpreadResponse.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 *SpreadResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_SpreadResponse.Merge(m, src) +} +func (m *SpreadResponse) XXX_Size() int { + return m.Size() +} +func (m *SpreadResponse) XXX_DiscardUnknown() { + xxx_messageInfo_SpreadResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_SpreadResponse proto.InternalMessageInfo + +func (m *SpreadResponse) GetBest_1To_2Position() *Position { + if m != nil { + return m.Best_1To_2Position + } + return nil +} + +func (m *SpreadResponse) GetBest_2To_1Position() *Position { + if m != nil { + return m.Best_2To_1Position + } + return nil +} + +func (m *SpreadResponse) GetApproxEffectivePrice_1To_2() float64 { + if m != nil { + return m.ApproxEffectivePrice_1To_2 + } + return 0 +} + +func (m *SpreadResponse) GetApproxEffectivePrice_2To_1() float64 { + if m != nil { + return m.ApproxEffectivePrice_2To_1 + } + return 0 +} + +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"` + Routing *SimulateTradeRequest_Routing `protobuf:"bytes,3,opt,name=routing,proto3" json:"routing,omitempty"` +} + +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} +} +func (m *SimulateTradeRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SimulateTradeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SimulateTradeRequest.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 *SimulateTradeRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_SimulateTradeRequest.Merge(m, src) +} +func (m *SimulateTradeRequest) XXX_Size() int { + return m.Size() +} +func (m *SimulateTradeRequest) XXX_DiscardUnknown() { + xxx_messageInfo_SimulateTradeRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_SimulateTradeRequest proto.InternalMessageInfo + +func (m *SimulateTradeRequest) GetInput() *v1alpha14.Value { + if m != nil { + return m.Input + } + return nil +} + +func (m *SimulateTradeRequest) GetOutput() *v1alpha14.AssetId { + if m != nil { + return m.Output + } + return nil +} + +func (m *SimulateTradeRequest) GetRouting() *SimulateTradeRequest_Routing { + if m != nil { + return m.Routing + } + return nil +} + +type SimulateTradeRequest_Routing struct { + // Types that are valid to be assigned to Setting: + // + // *SimulateTradeRequest_Routing_Default_ + // *SimulateTradeRequest_Routing_SingleHop_ + Setting isSimulateTradeRequest_Routing_Setting `protobuf_oneof:"setting"` +} + +func (m *SimulateTradeRequest_Routing) Reset() { *m = SimulateTradeRequest_Routing{} } +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} +} +func (m *SimulateTradeRequest_Routing) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SimulateTradeRequest_Routing) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SimulateTradeRequest_Routing.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 *SimulateTradeRequest_Routing) XXX_Merge(src proto.Message) { + xxx_messageInfo_SimulateTradeRequest_Routing.Merge(m, src) +} +func (m *SimulateTradeRequest_Routing) XXX_Size() int { + return m.Size() +} +func (m *SimulateTradeRequest_Routing) XXX_DiscardUnknown() { + xxx_messageInfo_SimulateTradeRequest_Routing.DiscardUnknown(m) +} + +var xxx_messageInfo_SimulateTradeRequest_Routing proto.InternalMessageInfo + +type isSimulateTradeRequest_Routing_Setting interface { + isSimulateTradeRequest_Routing_Setting() + MarshalTo([]byte) (int, error) + Size() int +} + +type SimulateTradeRequest_Routing_Default_ struct { + Default *SimulateTradeRequest_Routing_Default `protobuf:"bytes,1,opt,name=default,proto3,oneof" json:"default,omitempty"` +} +type SimulateTradeRequest_Routing_SingleHop_ struct { + SingleHop *SimulateTradeRequest_Routing_SingleHop `protobuf:"bytes,2,opt,name=single_hop,json=singleHop,proto3,oneof" json:"single_hop,omitempty"` +} + +func (*SimulateTradeRequest_Routing_Default_) isSimulateTradeRequest_Routing_Setting() {} +func (*SimulateTradeRequest_Routing_SingleHop_) isSimulateTradeRequest_Routing_Setting() {} + +func (m *SimulateTradeRequest_Routing) GetSetting() isSimulateTradeRequest_Routing_Setting { + if m != nil { + return m.Setting + } + return nil +} + +func (m *SimulateTradeRequest_Routing) GetDefault() *SimulateTradeRequest_Routing_Default { + if x, ok := m.GetSetting().(*SimulateTradeRequest_Routing_Default_); ok { + return x.Default + } + return nil +} + +func (m *SimulateTradeRequest_Routing) GetSingleHop() *SimulateTradeRequest_Routing_SingleHop { + if x, ok := m.GetSetting().(*SimulateTradeRequest_Routing_SingleHop_); ok { + return x.SingleHop + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*SimulateTradeRequest_Routing) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*SimulateTradeRequest_Routing_Default_)(nil), + (*SimulateTradeRequest_Routing_SingleHop_)(nil), + } +} + +type SimulateTradeRequest_Routing_SingleHop struct { +} + +func (m *SimulateTradeRequest_Routing_SingleHop) Reset() { + *m = SimulateTradeRequest_Routing_SingleHop{} +} +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} +} +func (m *SimulateTradeRequest_Routing_SingleHop) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SimulateTradeRequest_Routing_SingleHop) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SimulateTradeRequest_Routing_SingleHop.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 *SimulateTradeRequest_Routing_SingleHop) XXX_Merge(src proto.Message) { + xxx_messageInfo_SimulateTradeRequest_Routing_SingleHop.Merge(m, src) +} +func (m *SimulateTradeRequest_Routing_SingleHop) XXX_Size() int { + return m.Size() +} +func (m *SimulateTradeRequest_Routing_SingleHop) XXX_DiscardUnknown() { + xxx_messageInfo_SimulateTradeRequest_Routing_SingleHop.DiscardUnknown(m) +} + +var xxx_messageInfo_SimulateTradeRequest_Routing_SingleHop proto.InternalMessageInfo + +type SimulateTradeRequest_Routing_Default struct { +} + +func (m *SimulateTradeRequest_Routing_Default) Reset() { *m = SimulateTradeRequest_Routing_Default{} } +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} +} +func (m *SimulateTradeRequest_Routing_Default) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SimulateTradeRequest_Routing_Default) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SimulateTradeRequest_Routing_Default.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 *SimulateTradeRequest_Routing_Default) XXX_Merge(src proto.Message) { + xxx_messageInfo_SimulateTradeRequest_Routing_Default.Merge(m, src) +} +func (m *SimulateTradeRequest_Routing_Default) XXX_Size() int { + return m.Size() +} +func (m *SimulateTradeRequest_Routing_Default) XXX_DiscardUnknown() { + xxx_messageInfo_SimulateTradeRequest_Routing_Default.DiscardUnknown(m) +} + +var xxx_messageInfo_SimulateTradeRequest_Routing_Default proto.InternalMessageInfo + +type SimulateTradeResponse struct { + Output *SwapExecution `protobuf:"bytes,1,opt,name=output,proto3" json:"output,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} +} +func (m *SimulateTradeResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SimulateTradeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SimulateTradeResponse.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 *SimulateTradeResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_SimulateTradeResponse.Merge(m, src) +} +func (m *SimulateTradeResponse) XXX_Size() int { + return m.Size() +} +func (m *SimulateTradeResponse) XXX_DiscardUnknown() { + xxx_messageInfo_SimulateTradeResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_SimulateTradeResponse proto.InternalMessageInfo + +func (m *SimulateTradeResponse) GetOutput() *SwapExecution { + if m != nil { + return m.Output + } + 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") +} + +func init() { + proto.RegisterFile("penumbra/core/component/dex/v1alpha1/dex.proto", fileDescriptor_259f31b405eaa9a9) +} + +var fileDescriptor_259f31b405eaa9a9 = []byte{ + // 2769 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x5b, 0x4d, 0x6c, 0x1b, 0xc7, + 0x15, 0xd6, 0x90, 0x94, 0x48, 0x3e, 0x4a, 0x8a, 0x3c, 0x92, 0x53, 0x85, 0xa9, 0x15, 0x7b, 0xe3, + 0x04, 0x6a, 0x81, 0x52, 0xe6, 0xa6, 0x69, 0x1b, 0xa9, 0xf9, 0x11, 0x45, 0xca, 0x62, 0x62, 0x4b, + 0xcc, 0x52, 0xb1, 0x0b, 0x57, 0xc9, 0x66, 0xc5, 0x1d, 0x9a, 0x8b, 0x2e, 0x77, 0xd7, 0xbb, 0x4b, + 0x59, 0xba, 0x15, 0x08, 0x02, 0x14, 0x69, 0x53, 0x14, 0xe8, 0xa9, 0x3d, 0x04, 0x45, 0xd1, 0xa0, + 0x40, 0x0b, 0x04, 0xc8, 0x21, 0xb7, 0xde, 0x9b, 0xf6, 0x14, 0xe4, 0xd4, 0x4b, 0x7f, 0x60, 0x5f, + 0x8a, 0x9c, 0x7b, 0xec, 0xa1, 0x98, 0xd9, 0xd9, 0xe5, 0x92, 0x5e, 0xba, 0xbb, 0x24, 0xdd, 0x00, + 0xbd, 0x18, 0x9a, 0xd9, 0xf7, 0xbe, 0xf9, 0xde, 0xcf, 0xbc, 0x79, 0x33, 0x84, 0xa1, 0x64, 0x11, + 0xa3, 0xd7, 0x3d, 0xb6, 0x95, 0x8d, 0x96, 0x69, 0x93, 0x8d, 0x96, 0xd9, 0xb5, 0x4c, 0x83, 0x18, + 0xee, 0x86, 0x4a, 0x4e, 0x37, 0x4e, 0xca, 0x8a, 0x6e, 0x75, 0x94, 0x32, 0x1d, 0x94, 0x2c, 0xdb, + 0x74, 0x4d, 0x7c, 0xd9, 0x97, 0x2f, 0x51, 0xf9, 0x52, 0x20, 0x5f, 0xa2, 0x22, 0xbe, 0x7c, 0xf1, + 0xd9, 0x3e, 0xaa, 0x7d, 0x66, 0xb9, 0xe6, 0x86, 0xdb, 0x72, 0xfb, 0x68, 0x6e, 0xcb, 0xf5, 0xd0, + 0x8a, 0x97, 0x07, 0x57, 0x37, 0x7a, 0xdd, 0xbe, 0x94, 0xd1, 0xeb, 0x72, 0xa9, 0xf5, 0x41, 0x29, + 0xc5, 0x71, 0x48, 0x08, 0x8d, 0x0d, 0xb9, 0xe4, 0xb3, 0x83, 0x92, 0x3f, 0x20, 0x67, 0x4e, 0x5f, + 0x90, 0x8e, 0xb8, 0xdc, 0x48, 0xab, 0x9d, 0x30, 0x4f, 0x27, 0xe0, 0x39, 0x52, 0xbe, 0x4d, 0x48, + 0x5f, 0xbe, 0x4d, 0x08, 0x97, 0xaf, 0x8c, 0xc4, 0xef, 0x68, 0x44, 0x57, 0x89, 0x2a, 0x5b, 0xa6, + 0xa9, 0x87, 0x56, 0x0a, 0x4f, 0x7b, 0x18, 0xc2, 0xd3, 0x50, 0xb8, 0xf5, 0x5a, 0xf3, 0xae, 0x62, + 0x35, 0x6c, 0xd3, 0x6c, 0xe3, 0x15, 0x98, 0xd5, 0x0c, 0x83, 0xd8, 0xab, 0xe8, 0x22, 0x5a, 0x9f, + 0x97, 0xbc, 0x81, 0xb0, 0x0e, 0x4b, 0x9e, 0xd0, 0x8e, 0xae, 0x68, 0xdd, 0x87, 0x49, 0xfe, 0x1c, + 0x41, 0x86, 0x0a, 0xe2, 0xab, 0x30, 0x6b, 0x51, 0x39, 0xf6, 0xb9, 0x20, 0x96, 0x4b, 0x71, 0x22, + 0x5a, 0x0a, 0x51, 0x91, 0x3c, 0x7d, 0x5c, 0x81, 0xcc, 0xb1, 0xa9, 0x9e, 0xad, 0x66, 0x18, 0x4e, + 0x29, 0x1e, 0x0e, 0x45, 0xa9, 0x98, 0xea, 0x99, 0xc4, 0x74, 0x85, 0x3f, 0x21, 0xc8, 0x07, 0xf4, + 0xf1, 0xb5, 0x41, 0x6a, 0xdf, 0x4a, 0x42, 0xad, 0xef, 0x00, 0x9f, 0xdf, 0x55, 0xce, 0x2f, 0xc5, + 0xc0, 0x9e, 0x8b, 0xcf, 0x8f, 0x41, 0xf5, 0x49, 0xe2, 0x67, 0x60, 0x91, 0x58, 0x66, 0xab, 0x23, + 0xab, 0x3d, 0x5b, 0x71, 0x35, 0xd3, 0x58, 0xcd, 0x5e, 0x44, 0xeb, 0x19, 0x69, 0x81, 0xcd, 0x56, + 0xf9, 0xa4, 0xf0, 0x49, 0x1a, 0x16, 0x06, 0xd4, 0xf1, 0x75, 0xc8, 0x1b, 0x3d, 0x5d, 0xd7, 0xda, + 0x1a, 0x8f, 0x46, 0x41, 0xdc, 0x18, 0x49, 0x83, 0x66, 0x5b, 0x40, 0x63, 0xdf, 0x57, 0x93, 0xfa, + 0x08, 0x78, 0x0b, 0xd2, 0x6d, 0x42, 0xb8, 0x3d, 0x5f, 0x1b, 0x09, 0x44, 0xd3, 0x30, 0x00, 0xda, + 0x25, 0x44, 0xa2, 0x5a, 0xf8, 0x4d, 0x58, 0x36, 0x7b, 0xae, 0xd5, 0x73, 0xe5, 0xb2, 0xdc, 0x32, + 0xbb, 0x5d, 0xcd, 0xed, 0x12, 0xc3, 0x5d, 0x4d, 0x33, 0xb0, 0x6f, 0x84, 0xc0, 0xd8, 0x86, 0x2d, + 0xb9, 0x61, 0x36, 0x4d, 0x57, 0x71, 0xc9, 0x4e, 0xa0, 0x24, 0x9d, 0xf3, 0x90, 0xca, 0xfd, 0xa9, + 0x10, 0xbc, 0x18, 0x86, 0xcf, 0x4c, 0x00, 0x2f, 0x86, 0xe0, 0x6f, 0x41, 0x81, 0xc3, 0xab, 0x8a, + 0xab, 0xac, 0xce, 0x31, 0xd8, 0x17, 0xe2, 0x85, 0xb4, 0xa2, 0xb8, 0xad, 0x0e, 0x0d, 0xcc, 0x01, + 0x43, 0xa8, 0x2a, 0xae, 0x22, 0x81, 0x19, 0xfc, 0x2d, 0xbc, 0x9b, 0x86, 0x9c, 0x9f, 0x96, 0xf8, + 0x10, 0xe6, 0x5d, 0x5b, 0x51, 0x35, 0xe3, 0xb6, 0x6c, 0x29, 0x9a, 0x9d, 0x6c, 0x93, 0x1c, 0x7a, + 0x9a, 0x0d, 0x45, 0xb3, 0xa5, 0x82, 0xdb, 0x1f, 0xe0, 0x97, 0x20, 0xaf, 0x12, 0xdd, 0x55, 0xe4, + 0xb2, 0xac, 0xf1, 0xf8, 0x09, 0x43, 0x90, 0xb4, 0xdc, 0x05, 0x40, 0xdb, 0x5d, 0xb3, 0x67, 0xb8, + 0x52, 0x96, 0x29, 0x95, 0xeb, 0x7d, 0x7d, 0x51, 0xd6, 0x78, 0xc8, 0xe2, 0xeb, 0x8b, 0x75, 0x7c, + 0x03, 0x16, 0xdb, 0x84, 0x3c, 0x18, 0x98, 0xe1, 0x6c, 0xf4, 0x6a, 0x69, 0xc8, 0x73, 0xba, 0x62, + 0xb4, 0xc2, 0xa1, 0x59, 0x68, 0x93, 0xd0, 0x10, 0xbf, 0x06, 0x59, 0x4b, 0x39, 0xd3, 0x4d, 0x45, + 0x5d, 0x9d, 0x4d, 0xe2, 0x28, 0x56, 0x4b, 0x3c, 0x45, 0xc9, 0x47, 0x10, 0xde, 0x41, 0x50, 0x08, + 0x7d, 0xc0, 0xd7, 0x01, 0x42, 0x84, 0xd1, 0x38, 0x99, 0x14, 0x02, 0x60, 0xbb, 0xd8, 0x60, 0x4a, + 0x44, 0x95, 0x9d, 0xbb, 0x8a, 0xc5, 0x02, 0x31, 0x2f, 0x2d, 0x04, 0xb3, 0x74, 0x71, 0xe1, 0xa7, + 0x7c, 0x17, 0x37, 0x74, 0x45, 0x33, 0x5c, 0x72, 0xea, 0xfe, 0x9f, 0xa6, 0xc4, 0x2e, 0xe4, 0x5b, + 0xb4, 0x50, 0xc9, 0xb4, 0xa4, 0x64, 0x92, 0x96, 0x94, 0x1c, 0xd3, 0xdd, 0x25, 0x04, 0xd7, 0x61, + 0xc1, 0xc3, 0x51, 0x54, 0xd5, 0x26, 0x8e, 0xc3, 0x13, 0xe1, 0xf2, 0x10, 0x16, 0x3b, 0x7c, 0xfb, + 0x64, 0x3c, 0x59, 0x69, 0x9e, 0xa9, 0xf2, 0x11, 0x3d, 0xb8, 0x6c, 0x87, 0x10, 0x95, 0x6d, 0xef, + 0x79, 0xc9, 0x1b, 0x08, 0x7f, 0x45, 0xde, 0xf6, 0x6c, 0xe8, 0x8a, 0x81, 0x6f, 0xc1, 0x22, 0x0d, + 0x9d, 0x6c, 0xf9, 0xd1, 0xe1, 0xd1, 0x48, 0x50, 0xdd, 0x83, 0xc0, 0x4a, 0x0b, 0xce, 0x40, 0x9c, + 0x2f, 0xc1, 0x3c, 0xdd, 0x24, 0xc7, 0xba, 0x66, 0xd0, 0x28, 0xf1, 0xf4, 0x28, 0xb4, 0x09, 0xa9, + 0xf0, 0x29, 0xbc, 0x0e, 0x4b, 0xec, 0x6c, 0x09, 0x84, 0x64, 0x9b, 0xf9, 0x7e, 0x5e, 0x5a, 0x64, + 0xf3, 0xbe, 0xa0, 0x14, 0x21, 0xe9, 0x30, 0x2f, 0x0f, 0x4b, 0x36, 0x85, 0xbf, 0xa5, 0x42, 0xc7, + 0xc6, 0x23, 0x37, 0xb2, 0x08, 0x39, 0xcb, 0x74, 0x34, 0x76, 0x8a, 0xa5, 0xd8, 0x29, 0x16, 0x8c, + 0x87, 0x8b, 0x6c, 0x7a, 0x8a, 0x45, 0x36, 0xe2, 0x0c, 0xcd, 0x44, 0x9c, 0xa1, 0x91, 0x0e, 0x9e, + 0x8d, 0xed, 0xe0, 0xb9, 0x48, 0x07, 0x7f, 0xc4, 0xeb, 0xfb, 0x0d, 0x8d, 0xdc, 0xc5, 0x12, 0x64, + 0x4f, 0x34, 0x47, 0x3b, 0xd6, 0x49, 0xb2, 0x26, 0xc3, 0x07, 0x28, 0xdd, 0xf0, 0xb4, 0xf7, 0x66, + 0x24, 0x1f, 0x08, 0x1f, 0xc0, 0x9c, 0x69, 0x29, 0x77, 0x7a, 0xfe, 0xd1, 0xfc, 0x7c, 0x42, 0xc8, + 0x03, 0xa6, 0xbc, 0x37, 0x23, 0x71, 0x98, 0xe2, 0x87, 0x08, 0xb2, 0x7c, 0x1d, 0xfc, 0x12, 0x64, + 0x58, 0xb1, 0xf2, 0xd8, 0x7e, 0x3d, 0x3e, 0xb4, 0xc4, 0xf4, 0x22, 0x92, 0x29, 0x3d, 0xad, 0x64, + 0x2a, 0xee, 0xc1, 0x9c, 0xc7, 0x7d, 0x52, 0x96, 0x95, 0x02, 0xe4, 0x19, 0xcb, 0x13, 0x8d, 0xdc, + 0x15, 0x3e, 0xce, 0x84, 0x76, 0x04, 0x8b, 0xda, 0xcd, 0xe1, 0xa8, 0x6d, 0x25, 0xec, 0xe6, 0x46, + 0x85, 0xee, 0x70, 0x28, 0x74, 0x9b, 0xe3, 0xe0, 0x3e, 0x10, 0xbf, 0x77, 0x52, 0xfd, 0xf8, 0xed, + 0x03, 0x30, 0xcb, 0x58, 0xa5, 0xfb, 0xaf, 0x4d, 0x60, 0xf4, 0x2a, 0x12, 0x73, 0x8e, 0xd7, 0x23, + 0x37, 0x21, 0xe7, 0xf7, 0x71, 0x9c, 0xf3, 0x77, 0x46, 0xb7, 0x94, 0x03, 0xd7, 0x8a, 0x7e, 0x73, + 0x69, 0xba, 0x84, 0x12, 0x97, 0xb2, 0xbc, 0x8f, 0x0b, 0x81, 0x8a, 0x3c, 0x3d, 0x26, 0x06, 0x15, + 0x8b, 0xdf, 0x0b, 0xb2, 0x63, 0xca, 0x3e, 0xa8, 0x9c, 0x83, 0xc7, 0xfa, 0x78, 0x5e, 0xce, 0xbc, + 0x8f, 0xa0, 0x70, 0x38, 0x70, 0xbc, 0x66, 0x59, 0x33, 0x23, 0x97, 0xf9, 0x7a, 0xcf, 0x3c, 0xbc, + 0xd5, 0xd9, 0xa6, 0xc3, 0xba, 0x2a, 0xcd, 0xb1, 0xf9, 0x72, 0x5f, 0x5f, 0xe4, 0x5e, 0x4e, 0xa4, + 0x2f, 0x0a, 0x3f, 0x46, 0xb0, 0x5c, 0xd5, 0x6c, 0xd2, 0x72, 0x89, 0x1a, 0xe6, 0xb5, 0x05, 0xb3, + 0x8e, 0xab, 0xd8, 0x6e, 0x32, 0x56, 0x9e, 0x0e, 0xfe, 0x36, 0xa4, 0x89, 0xa1, 0x26, 0x23, 0x44, + 0x35, 0x84, 0x4f, 0x32, 0xb0, 0x1c, 0x51, 0xa1, 0xf1, 0x16, 0x64, 0x79, 0x13, 0xc2, 0xf9, 0xc4, + 0x69, 0x21, 0xe6, 0xbc, 0x16, 0xa4, 0xaf, 0x2c, 0x26, 0xe8, 0x5f, 0x3c, 0x65, 0x11, 0xbf, 0x08, + 0x39, 0x5d, 0xe9, 0x1e, 0xab, 0x74, 0xe9, 0x04, 0xdd, 0x8b, 0xa7, 0x53, 0x0e, 0xa9, 0x8b, 0xbc, + 0x79, 0x49, 0xa0, 0x2e, 0xe2, 0x6d, 0x80, 0x9e, 0xd1, 0xd6, 0x74, 0x9d, 0xa8, 0x72, 0x99, 0x77, + 0x2c, 0x71, 0x00, 0xf2, 0xbe, 0x56, 0x79, 0x00, 0x42, 0xe4, 0x17, 0x92, 0x44, 0x10, 0x22, 0x7e, + 0x1c, 0xe6, 0x3a, 0x44, 0xbb, 0xdd, 0x71, 0xf9, 0x7d, 0x92, 0x8f, 0x1e, 0x68, 0x38, 0x73, 0x53, + 0x69, 0x38, 0x45, 0x38, 0xef, 0x9d, 0xc0, 0x2c, 0x97, 0x28, 0x38, 0x5f, 0x3c, 0xcf, 0x16, 0x5f, + 0x66, 0x1f, 0x9b, 0xfc, 0xdb, 0x1e, 0xfb, 0x24, 0x7c, 0x8c, 0xe0, 0x31, 0x0e, 0xb8, 0xdb, 0x33, + 0x5a, 0xec, 0x88, 0xbe, 0x09, 0xf9, 0x60, 0x69, 0x9e, 0x35, 0xb1, 0x7b, 0x04, 0x9b, 0x0c, 0xa1, + 0x49, 0x7d, 0x2c, 0x5c, 0x83, 0x0c, 0x33, 0x37, 0x35, 0xae, 0xb9, 0x4c, 0x9d, 0xed, 0xbc, 0x88, + 0x95, 0xf0, 0x92, 0x77, 0x7b, 0xa6, 0x8c, 0x17, 0xbc, 0x2b, 0xf1, 0x15, 0x40, 0x56, 0x82, 0xd4, + 0x45, 0x16, 0xd5, 0xb8, 0x93, 0x20, 0x5d, 0xd1, 0x1d, 0xc1, 0x86, 0x9c, 0x44, 0x1c, 0x62, 0x9f, + 0x10, 0x07, 0x8b, 0x90, 0xb2, 0x93, 0x6c, 0xb4, 0x94, 0x5d, 0x66, 0x3a, 0x49, 0xf6, 0x57, 0xca, + 0x16, 0x85, 0xdf, 0xa4, 0x20, 0xd7, 0xf0, 0x9b, 0xba, 0xab, 0x90, 0xb6, 0x3a, 0x1a, 0x5f, 0xf5, + 0xf9, 0x44, 0x4e, 0x0d, 0x82, 0x44, 0x11, 0x68, 0x77, 0x6e, 0x98, 0x46, 0x8b, 0xf0, 0xbe, 0xd8, + 0x1b, 0xe0, 0x3a, 0xab, 0x67, 0x2e, 0x49, 0xd6, 0x55, 0xf8, 0xec, 0xd8, 0x7d, 0x4d, 0xf2, 0x10, + 0xf0, 0xab, 0x90, 0xb3, 0xb9, 0xab, 0x92, 0xbd, 0x29, 0xf9, 0x0e, 0x96, 0x02, 0x7d, 0x2c, 0xd0, + 0x5b, 0x89, 0xe9, 0x10, 0xd9, 0x34, 0x64, 0xba, 0xdd, 0xd8, 0x1e, 0xcf, 0x49, 0x05, 0x36, 0x79, + 0x60, 0xec, 0x6a, 0xba, 0x2e, 0xec, 0x00, 0xf8, 0x3c, 0xea, 0x6a, 0xf4, 0xab, 0x19, 0x7e, 0x0a, + 0x0a, 0x8a, 0xee, 0xca, 0xc7, 0xa4, 0xd5, 0x79, 0x4e, 0xec, 0x32, 0xd3, 0xf3, 0x12, 0x28, 0xba, + 0x5b, 0xf1, 0x66, 0x84, 0xdf, 0xa7, 0x60, 0x61, 0xc0, 0x1a, 0xfc, 0x7d, 0xdf, 0x23, 0x14, 0x68, + 0x51, 0xac, 0x8d, 0xe1, 0x91, 0xc1, 0x51, 0xcd, 0xe8, 0x75, 0xb9, 0x8f, 0x84, 0x3f, 0x20, 0x38, + 0xf7, 0xc0, 0x47, 0xfc, 0x34, 0x3c, 0xd5, 0x38, 0x68, 0xd6, 0x0f, 0xeb, 0x07, 0xfb, 0x72, 0xf3, + 0x70, 0xfb, 0xb0, 0x26, 0xd7, 0xf6, 0xdf, 0xb8, 0x2e, 0xbf, 0xb1, 0xdf, 0x6c, 0xd4, 0x76, 0xea, + 0xbb, 0xf5, 0x5a, 0x75, 0x69, 0x06, 0xaf, 0x41, 0x31, 0x4a, 0xe8, 0xa0, 0x51, 0xdb, 0xaf, 0x55, + 0x97, 0xd0, 0xa8, 0xef, 0x3b, 0xd7, 0x0e, 0x9a, 0xb5, 0xea, 0x52, 0x0a, 0x5f, 0x82, 0x0b, 0x51, + 0xdf, 0x6f, 0xd6, 0x0f, 0xf7, 0xaa, 0xd2, 0xf6, 0xcd, 0xfd, 0xa5, 0x34, 0x7e, 0x0a, 0x9e, 0x8c, + 0x86, 0xd8, 0xae, 0x5f, 0xaf, 0x55, 0x97, 0x32, 0xc2, 0x87, 0x08, 0x66, 0xaf, 0x59, 0xfb, 0x6d, + 0x17, 0xbf, 0x0e, 0x05, 0xff, 0xde, 0x21, 0x6b, 0x2a, 0x4f, 0xcf, 0x2b, 0xc9, 0x7c, 0x55, 0x57, + 0x25, 0xb0, 0xfa, 0x11, 0x0c, 0x52, 0x31, 0x35, 0x69, 0x2a, 0x0a, 0xb7, 0x60, 0xde, 0x9f, 0x3f, + 0xb0, 0x88, 0x41, 0x53, 0x33, 0xb8, 0x35, 0xa1, 0x24, 0xa9, 0xe9, 0xa3, 0xf4, 0x6f, 0x59, 0xc2, + 0x71, 0x3f, 0x61, 0x76, 0x68, 0x36, 0x3e, 0x02, 0x57, 0x08, 0x7f, 0x44, 0xb0, 0xe4, 0x7f, 0xba, + 0xa9, 0xb9, 0x1d, 0xd5, 0x56, 0xee, 0x3e, 0x0a, 0x97, 0xbf, 0x0d, 0xcb, 0xfe, 0x96, 0x0b, 0x3f, + 0x2e, 0xa5, 0xc6, 0x7b, 0x5c, 0xc2, 0x3e, 0x56, 0x7f, 0x4e, 0xf8, 0x14, 0xc1, 0x72, 0xe0, 0x44, + 0x72, 0x57, 0xb1, 0x55, 0xaf, 0x0d, 0x7e, 0x04, 0xc6, 0xbc, 0x05, 0xd8, 0x66, 0x2b, 0x4c, 0xc3, + 0x96, 0x73, 0x1c, 0x2a, 0x64, 0xca, 0x07, 0xfc, 0xa2, 0x5f, 0x3b, 0x25, 0xad, 0x1e, 0xab, 0xcd, + 0xaf, 0xc3, 0x9c, 0x6b, 0x2b, 0x2d, 0xe2, 0xac, 0xa2, 0x8b, 0xe9, 0xf8, 0xe7, 0xe8, 0x00, 0x08, + 0x2d, 0xd6, 0x2d, 0x22, 0x71, 0x20, 0xfc, 0x02, 0x2d, 0x63, 0x56, 0xcf, 0xe7, 0xfd, 0xf4, 0xc3, + 0x79, 0xdf, 0x50, 0xf4, 0x1e, 0x91, 0x3c, 0x0d, 0xbc, 0x05, 0x73, 0x5e, 0xeb, 0xce, 0x6b, 0x79, + 0x2c, 0x5d, 0xae, 0x52, 0xac, 0xc0, 0x2c, 0x23, 0x42, 0x09, 0x9c, 0xd0, 0x2f, 0xdc, 0xa4, 0x78, + 0x04, 0x98, 0x86, 0xf0, 0x6f, 0x04, 0x2b, 0xc3, 0x59, 0xcb, 0x1e, 0x44, 0xc2, 0x27, 0x03, 0x9a, + 0xf0, 0x64, 0x18, 0x4a, 0x9c, 0xd4, 0x14, 0x12, 0xc7, 0x6f, 0x5c, 0xd2, 0x93, 0x35, 0x2e, 0x04, + 0xbe, 0x12, 0x91, 0xe9, 0xd3, 0x76, 0x00, 0xad, 0xc1, 0xc5, 0xa8, 0xd7, 0x1a, 0x72, 0xa7, 0x47, + 0x1c, 0x17, 0x3f, 0x01, 0xb9, 0x56, 0x47, 0xd1, 0x82, 0x5d, 0x95, 0x97, 0xb2, 0x6c, 0x5c, 0x57, + 0x43, 0xfd, 0x6a, 0xea, 0xa1, 0xfd, 0x6a, 0x7a, 0x1a, 0xfd, 0xaa, 0xa0, 0xc3, 0x93, 0x91, 0x34, + 0x1d, 0xcb, 0x34, 0x1c, 0x82, 0xaf, 0x43, 0x86, 0xbd, 0x52, 0xa1, 0x49, 0x5f, 0xa9, 0x18, 0x8c, + 0xf0, 0x5b, 0x04, 0x2b, 0x03, 0xfb, 0x6a, 0x02, 0x7f, 0x1c, 0x45, 0xfa, 0x23, 0x26, 0xc5, 0x88, + 0x4b, 0xe3, 0xa0, 0x5f, 0x1c, 0x38, 0x3f, 0x44, 0x94, 0x7b, 0xc4, 0x7f, 0xe9, 0x21, 0xfe, 0x97, + 0xe4, 0xcf, 0x86, 0x7d, 0x50, 0xf6, 0xd2, 0x13, 0x0c, 0x85, 0x3d, 0x58, 0xde, 0xb6, 0x8f, 0xa7, + 0xe0, 0x1c, 0xe1, 0x3d, 0x04, 0x2b, 0x83, 0x50, 0x8f, 0x9e, 0xfe, 0x48, 0x32, 0x9f, 0xa3, 0x21, + 0x67, 0x3a, 0x31, 0x2c, 0xbb, 0x04, 0xf3, 0xec, 0x0a, 0x25, 0x0f, 0x40, 0x16, 0xd8, 0x9c, 0x77, + 0x6f, 0xc2, 0x17, 0x00, 0x88, 0xa1, 0xfa, 0x02, 0x69, 0x26, 0x90, 0x27, 0x86, 0xba, 0x17, 0x9d, + 0x20, 0x99, 0xa9, 0x26, 0xc8, 0x17, 0x08, 0x1e, 0x1f, 0x36, 0xea, 0xcb, 0xf3, 0xf1, 0x23, 0xdf, + 0x0d, 0x03, 0xd9, 0xf4, 0x3f, 0x89, 0x1f, 0xbd, 0x62, 0x9e, 0x1f, 0x5a, 0xf5, 0x4b, 0x4c, 0xe2, + 0x37, 0xe1, 0x89, 0x6b, 0xda, 0x9d, 0x9e, 0xa6, 0x6a, 0xee, 0x99, 0x7f, 0x80, 0xc4, 0xf1, 0xc3, + 0x33, 0xb0, 0xa8, 0x19, 0x2d, 0xbd, 0xa7, 0x12, 0x99, 0x5d, 0x8b, 0x54, 0x96, 0x87, 0x39, 0x69, + 0x81, 0xcf, 0xb2, 0xee, 0x54, 0x15, 0xde, 0x86, 0x62, 0x14, 0x3c, 0x37, 0xb8, 0x32, 0x50, 0x86, + 0x93, 0x76, 0xc5, 0x5e, 0xed, 0xfd, 0x09, 0x82, 0xaf, 0x3e, 0xb0, 0x44, 0xe5, 0xac, 0xae, 0xc6, + 0x30, 0x62, 0xfa, 0xc7, 0xb9, 0xd0, 0x82, 0x0b, 0x23, 0xd8, 0x4c, 0xd1, 0xe6, 0xf7, 0x51, 0xc4, + 0x2a, 0xce, 0xb8, 0x46, 0xa7, 0x27, 0x36, 0x5a, 0x85, 0xb5, 0x51, 0x74, 0xa6, 0x68, 0xf5, 0xc7, + 0x08, 0x2e, 0x46, 0x2d, 0xd3, 0xb0, 0xb5, 0x16, 0x89, 0x61, 0xf8, 0x70, 0x2d, 0x49, 0x4d, 0xb3, + 0x96, 0xe0, 0x15, 0x98, 0xd5, 0xb5, 0xae, 0xe6, 0xb2, 0xc7, 0x82, 0x8c, 0xe4, 0x0d, 0x84, 0xdb, + 0x70, 0xe9, 0x21, 0x94, 0xa7, 0xe8, 0x9c, 0x1f, 0x22, 0x58, 0x68, 0x5a, 0x36, 0x51, 0xe2, 0xa4, + 0xc0, 0x61, 0xa4, 0x27, 0x26, 0xed, 0xb9, 0x3e, 0x4f, 0xc1, 0xa2, 0x4f, 0x81, 0x5b, 0xf6, 0x16, + 0xac, 0x1c, 0x13, 0xc7, 0x95, 0xcb, 0xb2, 0x6b, 0xca, 0xa2, 0x3c, 0xe1, 0x35, 0x78, 0x89, 0x62, + 0x95, 0x0f, 0x4d, 0x31, 0x78, 0x9f, 0xf2, 0xf1, 0x45, 0x8a, 0x5f, 0x96, 0x07, 0x7e, 0x9c, 0x1c, + 0x13, 0x5f, 0x3c, 0x34, 0xcb, 0x01, 0xfe, 0xcb, 0x70, 0x41, 0xb1, 0x2c, 0xdb, 0x3c, 0x95, 0x49, + 0xbb, 0x4d, 0x5a, 0xae, 0x76, 0x42, 0x64, 0x8b, 0xc6, 0x8e, 0x5b, 0xc4, 0xaa, 0x3b, 0x92, 0x56, + 0x3d, 0xa1, 0x9a, 0x2f, 0xc3, 0xc2, 0x4b, 0x89, 0x3e, 0x04, 0xc0, 0xa3, 0xcc, 0xaa, 0xe6, 0x08, + 0x00, 0xca, 0x44, 0xf8, 0x57, 0x1a, 0x56, 0x9a, 0x5a, 0xb7, 0xa7, 0x2b, 0x2e, 0x7b, 0x94, 0x0c, + 0x12, 0x3d, 0xb8, 0xab, 0xa1, 0xc4, 0x77, 0xb5, 0x17, 0x83, 0xbb, 0x5a, 0xb2, 0x5f, 0x27, 0x3c, + 0x25, 0x7c, 0x04, 0x59, 0xdb, 0xec, 0xb9, 0x9a, 0x71, 0x9b, 0x1f, 0xc7, 0x95, 0x98, 0xe7, 0x53, + 0x84, 0x19, 0x25, 0xc9, 0x43, 0x92, 0x7c, 0x48, 0xf6, 0xf3, 0x17, 0x9f, 0xc4, 0x6d, 0xc8, 0xaa, + 0xa4, 0xad, 0xf4, 0x74, 0xdf, 0xca, 0x57, 0x27, 0x5f, 0xa9, 0x54, 0xf5, 0x10, 0xf7, 0x66, 0x24, + 0x1f, 0x1c, 0x77, 0x01, 0x1c, 0xcd, 0xb8, 0xad, 0x13, 0xb9, 0x63, 0xfa, 0x8f, 0xba, 0xd7, 0xa6, + 0xb0, 0x54, 0x93, 0x81, 0xee, 0x99, 0xd6, 0xde, 0x8c, 0x94, 0x77, 0xfc, 0x41, 0xb1, 0x00, 0xf9, + 0xe0, 0x4b, 0x31, 0x0f, 0x59, 0xce, 0xa8, 0x92, 0x87, 0xac, 0x43, 0x5c, 0xaa, 0x29, 0xa8, 0x70, + 0x7e, 0x08, 0x99, 0xef, 0xa8, 0xd7, 0x82, 0xd8, 0x4d, 0xd0, 0x1b, 0x70, 0x08, 0xf1, 0x9f, 0x05, + 0x98, 0x7f, 0xbd, 0x47, 0xec, 0xb3, 0x26, 0xb1, 0x4f, 0xb4, 0x16, 0xc1, 0xbf, 0x44, 0xd1, 0x3f, + 0xf5, 0xbc, 0x32, 0xfe, 0x0d, 0xc9, 0x73, 0x49, 0x71, 0x7b, 0x02, 0x04, 0x6e, 0xfa, 0x8f, 0xd0, + 0xf0, 0x13, 0xc8, 0xe6, 0x38, 0xc6, 0x73, 0x42, 0x5b, 0x63, 0xe9, 0x72, 0x2a, 0xef, 0x22, 0x98, + 0x0f, 0xf7, 0x70, 0x38, 0xe6, 0x29, 0x12, 0x71, 0x0d, 0x2a, 0x6e, 0x8e, 0xa3, 0xca, 0x79, 0xbc, + 0x8f, 0x60, 0x71, 0xb0, 0x5b, 0xc7, 0xe3, 0xd8, 0xe5, 0x37, 0x7c, 0xc5, 0xef, 0x8e, 0xa7, 0xec, + 0xb1, 0xb9, 0x82, 0xf0, 0x7b, 0x08, 0x16, 0x06, 0x7a, 0x5b, 0x3c, 0x86, 0x75, 0x4e, 0xc2, 0x10, + 0x45, 0x36, 0xd3, 0x57, 0x10, 0xfe, 0x05, 0x02, 0xfc, 0xe0, 0xe1, 0x8b, 0x5f, 0x8e, 0x87, 0x3a, + 0xb2, 0x2b, 0x2e, 0xbe, 0x32, 0x3e, 0x40, 0xc0, 0xed, 0x57, 0x08, 0xce, 0x47, 0xf6, 0x89, 0xb8, + 0x32, 0x26, 0x7a, 0xa8, 0xfb, 0x2b, 0xee, 0x4c, 0x84, 0xc1, 0x73, 0xeb, 0x43, 0x04, 0x8f, 0x47, + 0x77, 0x75, 0x78, 0x5c, 0xfc, 0x70, 0x8b, 0x5a, 0xac, 0x4e, 0x06, 0x12, 0xb8, 0xf2, 0x23, 0x14, + 0x75, 0x85, 0xe1, 0x3d, 0x16, 0xde, 0x1d, 0x7f, 0x95, 0x70, 0x5f, 0x59, 0xbc, 0x3a, 0x31, 0x4e, + 0x40, 0xd8, 0x81, 0x39, 0xaf, 0x4d, 0xc2, 0x71, 0x8b, 0x77, 0xb8, 0xaf, 0x2b, 0x7e, 0x33, 0x99, + 0x92, 0xb7, 0xac, 0xf8, 0x01, 0x82, 0x73, 0xfc, 0x44, 0xd1, 0x4c, 0xc3, 0xaf, 0xf7, 0xac, 0xa4, + 0x86, 0xcf, 0x99, 0xd8, 0x25, 0x35, 0xe2, 0xd8, 0x8b, 0x5d, 0x52, 0xa3, 0x0e, 0xb6, 0xca, 0xdf, + 0x53, 0x9f, 0xde, 0x5b, 0x43, 0x9f, 0xdd, 0x5b, 0x43, 0xff, 0xb8, 0xb7, 0x86, 0x7e, 0x76, 0x7f, + 0x6d, 0xe6, 0xb3, 0xfb, 0x6b, 0x33, 0x7f, 0xb9, 0xbf, 0x36, 0x03, 0xeb, 0x2d, 0xb3, 0x1b, 0x0b, + 0xba, 0x92, 0xab, 0x92, 0xd3, 0x86, 0x6d, 0xba, 0x66, 0x03, 0xdd, 0x3a, 0xba, 0xad, 0xb9, 0x9d, + 0xde, 0x31, 0x15, 0xdd, 0x68, 0x99, 0x4e, 0xd7, 0x74, 0x36, 0x6c, 0xa2, 0x2b, 0x67, 0xc4, 0xde, + 0x38, 0x11, 0x83, 0x3f, 0x59, 0x4b, 0xec, 0x6c, 0xc4, 0xf9, 0x8f, 0x0c, 0x5b, 0x2a, 0x39, 0xf5, + 0xff, 0xfe, 0x75, 0x2a, 0xd3, 0xd8, 0xd9, 0xa9, 0xfe, 0x2e, 0x75, 0xb9, 0xe1, 0xf3, 0xda, 0xa1, + 0xbc, 0x76, 0x02, 0x5e, 0x55, 0x72, 0x5a, 0xba, 0xc1, 0xa5, 0xff, 0xdc, 0x17, 0x3b, 0xa2, 0x62, + 0x47, 0x81, 0xd8, 0x51, 0x95, 0x9c, 0x1e, 0xf9, 0x62, 0xf7, 0x52, 0x57, 0xe2, 0x88, 0x1d, 0x5d, + 0x6d, 0x54, 0xae, 0x13, 0x57, 0xa1, 0x7d, 0xff, 0x17, 0xa9, 0x75, 0x5f, 0x65, 0x73, 0x93, 0xea, + 0xd0, 0x7f, 0xb9, 0xd2, 0xe6, 0x66, 0x95, 0x9c, 0x6e, 0x6e, 0xfa, 0x6a, 0xc7, 0x73, 0xec, 0xbf, + 0x06, 0x3c, 0xf7, 0x9f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xf2, 0xf1, 0x71, 0xaf, 0xb6, 0x31, 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 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 queryServiceClient struct { + cc grpc1.ClientConn +} + +func NewQueryServiceClient(cc grpc1.ClientConn) QueryServiceClient { + return &queryServiceClient{cc} +} + +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 + } + 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.v1alpha1.QueryService/SwapExecution", in, out, opts...) + if err != nil { + return nil, err + } + return out, 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 + } + return out, 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 + } + return x, nil +} + +type QueryService_SwapExecutionsClient interface { + Recv() (*SwapExecutionsResponse, error) + grpc.ClientStream +} + +type queryServiceSwapExecutionsClient struct { + grpc.ClientStream +} + +func (x *queryServiceSwapExecutionsClient) Recv() (*SwapExecutionsResponse, error) { + m := new(SwapExecutionsResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +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 + } + return x, nil +} + +type QueryService_ArbExecutionsClient interface { + Recv() (*ArbExecutionsResponse, error) + grpc.ClientStream +} + +type queryServiceArbExecutionsClient struct { + grpc.ClientStream +} + +func (x *queryServiceArbExecutionsClient) Recv() (*ArbExecutionsResponse, error) { + m := new(ArbExecutionsResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + 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.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 + } + return x, nil +} + +type QueryService_LiquidityPositionsClient interface { + Recv() (*LiquidityPositionsResponse, error) + grpc.ClientStream +} + +type queryServiceLiquidityPositionsClient struct { + grpc.ClientStream +} + +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 *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 + } + return out, nil +} + +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 + } + return x, nil +} + +type QueryService_LiquidityPositionsByIdClient interface { + Recv() (*LiquidityPositionsByIdResponse, error) + grpc.ClientStream +} + +type queryServiceLiquidityPositionsByIdClient struct { + grpc.ClientStream +} + +func (x *queryServiceLiquidityPositionsByIdClient) Recv() (*LiquidityPositionsByIdResponse, error) { + m := new(LiquidityPositionsByIdResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, 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.v1alpha1.QueryService/LiquidityPositionsByPrice", opts...) + if err != nil { + return nil, err + } + x := &queryServiceLiquidityPositionsByPriceClient{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_LiquidityPositionsByPriceClient interface { + Recv() (*LiquidityPositionsByPriceResponse, error) + grpc.ClientStream +} + +type queryServiceLiquidityPositionsByPriceClient struct { + grpc.ClientStream +} + +func (x *queryServiceLiquidityPositionsByPriceClient) Recv() (*LiquidityPositionsByPriceResponse, error) { + m := new(LiquidityPositionsByPriceResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +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 + } + return out, 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) +} + +// UnimplementedQueryServiceServer can be embedded to have forward compatible implementations. +type UnimplementedQueryServiceServer struct { +} + +func (*UnimplementedQueryServiceServer) BatchSwapOutputData(ctx context.Context, req *BatchSwapOutputDataRequest) (*BatchSwapOutputDataResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method BatchSwapOutputData not implemented") +} +func (*UnimplementedQueryServiceServer) SwapExecution(ctx context.Context, req *SwapExecutionRequest) (*SwapExecutionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SwapExecution not implemented") +} +func (*UnimplementedQueryServiceServer) ArbExecution(ctx context.Context, req *ArbExecutionRequest) (*ArbExecutionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ArbExecution not implemented") +} +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 RegisterQueryServiceServer(s grpc1.Server, srv QueryServiceServer) { + s.RegisterService(&_QueryService_serviceDesc, srv) +} + +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 _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 _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)) + } + 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}) +} + +type QueryService_SwapExecutionsServer interface { + Send(*SwapExecutionsResponse) error + grpc.ServerStream +} + +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 + } + return srv.(QueryServiceServer).ArbExecutions(m, &queryServiceArbExecutionsServer{stream}) +} + +type QueryService_ArbExecutionsServer interface { + Send(*ArbExecutionsResponse) error + grpc.ServerStream +} + +type queryServiceArbExecutionsServer struct { + grpc.ServerStream +} + +func (x *queryServiceArbExecutionsServer) Send(m *ArbExecutionsResponse) error { + return x.ServerStream.SendMsg(m) +} + +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}) +} + +type QueryService_LiquidityPositionsServer interface { + Send(*LiquidityPositionsResponse) error + grpc.ServerStream +} + +type queryServiceLiquidityPositionsServer struct { + grpc.ServerStream +} + +func (x *queryServiceLiquidityPositionsServer) Send(m *LiquidityPositionsResponse) error { + return x.ServerStream.SendMsg(m) +} + +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 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 interceptor(ctx, in, info, handler) +} + +func _QueryService_LiquidityPositionsById_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(LiquidityPositionsByIdRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(QueryServiceServer).LiquidityPositionsById(m, &queryServiceLiquidityPositionsByIdServer{stream}) +} + +type QueryService_LiquidityPositionsByIdServer interface { + Send(*LiquidityPositionsByIdResponse) error + grpc.ServerStream +} + +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 + } + 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 interceptor == nil { + return srv.(QueryServiceServer).Spread(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/penumbra.core.component.dex.v1alpha1.QueryService/Spread", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServiceServer).Spread(ctx, req.(*SpreadRequest)) + } + 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", +} + +// 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.v1alpha1.SimulationService/SimulateTrade", 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) +} + +// UnimplementedSimulationServiceServer can be embedded to have forward compatible implementations. +type UnimplementedSimulationServiceServer struct { +} + +func (*UnimplementedSimulationServiceServer) SimulateTrade(ctx context.Context, req *SimulateTradeRequest) (*SimulateTradeResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SimulateTrade not implemented") +} + +func RegisterSimulationServiceServer(s grpc1.Server, srv SimulationServiceServer) { + s.RegisterService(&_SimulationService_serviceDesc, srv) +} + +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.v1alpha1.SimulationService/SimulateTrade", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SimulationServiceServer).SimulateTrade(ctx, req.(*SimulateTradeRequest)) + } + 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", +} + +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 +} + +func (m *ZKSwapProof) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +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 + } + return len(dAtA) - i, nil +} + +func (m *ZKSwapClaimProof) 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 *ZKSwapClaimProof) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +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 +} + +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 (m *Swap) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +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 (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 (m *SwapClaim) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +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 + } + 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 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 (m *SwapClaimBody) 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 *SwapClaimBody) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +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 + } + 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 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 + } + 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 + } + return len(dAtA) - i, nil +} + +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 + } + return dAtA[:n], nil +} + +func (m *SwapBody) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +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 + } + 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 +} + +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 +} + +func (m *SwapPayload) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +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 (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 + } + return dAtA[:n], nil +} + +func (m *SwapPlaintext) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +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 +} + +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 +} + +func (m *SwapPlan) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +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 + } + 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.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 + } + return len(dAtA) - i, nil +} + +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 + } + return dAtA[:n], nil +} + +func (m *SwapClaimPlan) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +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 + } + 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 + } + if m.EpochDuration != 0 { + i = encodeVarintDex(dAtA, i, uint64(m.EpochDuration)) + i-- + dAtA[i] = 0x20 + } + 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 + } + if m.Position != 0 { + i = encodeVarintDex(dAtA, i, uint64(m.Position)) + i-- + dAtA[i] = 0x10 + } + 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 + } + return len(dAtA) - i, nil +} + +func (m *SwapView) 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 *SwapView) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +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 +} + +func (m *SwapView_Visible_) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +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 *SwapView_Opaque_) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + 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] = 0x12 + } + return len(dAtA) - i, nil +} +func (m *SwapView_Visible) 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 *SwapView_Visible) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SwapView_Visible) 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)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *SwapView_Opaque) 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 *SwapView_Opaque) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SwapView_Opaque) 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)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *SwapClaimView) 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 *SwapClaimView) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SwapClaimView) 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 { + { + 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 *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.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 +} +func (m *SwapClaimView_Visible) 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 *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) + _ = 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)) + } + i-- + dAtA[i] = 0x1a + } + if m.Output_1 != nil { + { + 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] = 0x12 + } + if m.SwapClaim != nil { + { + size, err := m.SwapClaim.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) 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 *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) + _ = i + var l int + _ = l + if m.SwapClaim != nil { + { + size, err := m.SwapClaim.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 *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 + } + 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 { + { + size, err := m.Asset_2.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDex(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.Asset_1 != nil { + { + size, err := m.Asset_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 *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 + } + 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 { + { + 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 + } + i -= size + i = encodeVarintDex(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *BatchSwapOutputData) 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 *BatchSwapOutputData) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +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]) + 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 { + { + 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 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 *TradingFunction) 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 *TradingFunction) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TradingFunction) 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] = 0x12 + } + if m.Component != nil { + { + size, err := m.Component.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 *BareTradingFunction) 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 *BareTradingFunction) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BareTradingFunction) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Q != nil { + { + size, err := m.Q.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDex(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + 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] = 0x12 + } + if m.Fee != 0 { + i = encodeVarintDex(dAtA, i, uint64(m.Fee)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *Reserves) 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 *Reserves) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Reserves) 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)) + } + i-- + dAtA[i] = 0x12 + } + if m.R1 != nil { + { + size, err := m.R1.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 *Position) 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 *Position) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Position) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.CloseOnFill { + i-- + if m.CloseOnFill { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x28 + } + 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] = 0x22 + } + 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 + } + 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] = 0x12 + } + if m.Phi != nil { + { + size, err := m.Phi.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 *PositionId) 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 *PositionId) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PositionId) 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 + } + return len(dAtA) - i, nil +} + +func (m *PositionState) 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 *PositionState) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PositionState) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.State != 0 { + i = encodeVarintDex(dAtA, i, uint64(m.State)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *LpNft) 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 *LpNft) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LpNft) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + 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] = 0x12 + } + 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 *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 *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 { + { + size, err := m.Position.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 *PositionClose) 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 *PositionClose) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PositionClose) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = 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 len(dAtA) - i, nil +} + +func (m *PositionWithdraw) 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 *PositionWithdraw) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PositionWithdraw) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.ReservesCommitment != nil { + { + 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 + } + 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) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PositionRewardClaim) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.RewardsCommitment != nil { + { + size, err := m.RewardsCommitment.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 + } + i -= size + i = encodeVarintDex(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *SwapExecution) 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 *SwapExecution) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SwapExecution) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = 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] = 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 *SwapExecution_Trace) 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 *SwapExecution_Trace) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SwapExecution_Trace) 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)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *PositionWithdrawPlan) 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 *PositionWithdrawPlan) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PositionWithdrawPlan) 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 { + { + size, err := m.PositionId.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDex(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + 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 *PositionRewardClaimPlan) 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 *PositionRewardClaimPlan) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PositionRewardClaimPlan) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + 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 *BatchSwapOutputDataRequest) 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 *BatchSwapOutputDataRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BatchSwapOutputDataRequest) 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)) + i-- + dAtA[i] = 0x10 + } + 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 *BatchSwapOutputDataResponse) 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 *BatchSwapOutputDataResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BatchSwapOutputDataResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Data != nil { + { + size, err := m.Data.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 *SwapExecutionRequest) 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 *SwapExecutionRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SwapExecutionRequest) 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)) + i-- + dAtA[i] = 0x10 + } + 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 *SwapExecutionResponse) 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 *SwapExecutionResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SwapExecutionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = 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] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ArbExecutionRequest) 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 *ArbExecutionRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +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 + } + 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 *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 + } + 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)) + 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 *SwapExecutionsRequest) 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 *SwapExecutionsRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SwapExecutionsRequest) 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)) + i-- + dAtA[i] = 0x10 + } + 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 *SwapExecutionsResponse) 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 *SwapExecutionsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SwapExecutionsResponse) 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)) + 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 *ArbExecutionsRequest) 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 *ArbExecutionsRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ArbExecutionsRequest) 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)) + i-- + dAtA[i] = 0x10 + } + 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 *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] = 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 *LiquidityPositionsRequest) 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 *LiquidityPositionsRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LiquidityPositionsRequest) 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 + } + 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) { + 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 *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.Data.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 *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]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDex(dAtA, i, uint64(size)) + } + 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))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *LiquidityPositionByIdResponse) 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 *LiquidityPositionByIdResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LiquidityPositionByIdResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Data != nil { + { + size, err := m.Data.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) { + 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 *LiquidityPositionsByIdRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LiquidityPositionsByIdRequest) 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-- { + { + size, err := m.PositionId[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDex(dAtA, i, uint64(size)) + } + 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))) + i-- + dAtA[i] = 0xa + } + 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.Data.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 *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 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 *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.Data.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 *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 + } + return dAtA[:n], nil +} + +func (m *SpreadRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SpreadRequest) 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] = 0x12 + } + 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 *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 dAtA[:n], nil +} + +func (m *SpreadResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SpreadResponse) 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 { + { + 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 len(dAtA) - i, nil +} + +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.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.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)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +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 dAtA[:n], nil +} + +func (m *SimulateTradeRequest_Routing) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SimulateTradeRequest_Routing) 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 { + { + 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 + } + 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) { + 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_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 + return len(dAtA) - i, nil +} + +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 + return len(dAtA) - i, nil +} + +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.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 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++ + } + dAtA[offset] = uint8(v) + return base +} +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 *ZKSwapClaimProof) 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 *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)) + } + return n +} + +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 *SwapClaimBody) Size() (n int) { + if m == nil { + return 0 + } + 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.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.OutputData != nil { + l = m.OutputData.Size() + n += 1 + l + sovDex(uint64(l)) + } + return n +} + +func (m *SwapBody) 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.FeeCommitment != nil { + l = m.FeeCommitment.Size() + n += 1 + l + sovDex(uint64(l)) + } + if m.Payload != nil { + l = m.Payload.Size() + n += 1 + l + sovDex(uint64(l)) + } + return n +} + +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)) + } + return n +} + +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 *SwapPlan) 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)) + } + 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)) + } + return n +} + +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)) + } + 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 *SwapView) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.SwapView != nil { + n += m.SwapView.Size() + } + return n +} + +func (m *SwapView_Visible_) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Visible != nil { + l = m.Visible.Size() + n += 1 + l + sovDex(uint64(l)) + } + return n +} +func (m *SwapView_Opaque_) Size() (n int) { + if m == nil { + return 0 + } + 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.SwapPlaintext != nil { + l = m.SwapPlaintext.Size() + n += 1 + l + sovDex(uint64(l)) + } + return n +} + +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)) + } + return n +} + +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 *SwapClaimView_Visible_) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Visible != nil { + l = m.Visible.Size() + n += 1 + l + sovDex(uint64(l)) + } + return n +} +func (m *SwapClaimView_Opaque_) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Opaque != nil { + l = m.Opaque.Size() + n += 1 + l + sovDex(uint64(l)) + } + return n +} +func (m *SwapClaimView_Visible) 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)) + } + 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)) + } + return n +} + +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)) + } + return n +} + +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 *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.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.Pair != nil { + l = m.Pair.Size() + n += 1 + l + sovDex(uint64(l)) + } + 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 *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)) + } + return n +} + +func (m *LpNft) 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.State != nil { + l = m.State.Size() + n += 1 + l + sovDex(uint64(l)) + } + 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)) + } + 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)) + } + 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)) + } + return n +} + +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 *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)) + } + 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 + l = len(m.ChainId) + 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 *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 + l = len(m.ChainId) + 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) { + 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 + l = len(m.ChainId) + if l > 0 { + n += 1 + l + sovDex(uint64(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 + l = len(m.ChainId) + if l > 0 { + n += 1 + l + sovDex(uint64(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 + l = len(m.ChainId) + if l > 0 { + n += 1 + l + sovDex(uint64(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 + l = len(m.ChainId) + if l > 0 { + n += 1 + l + sovDex(uint64(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 + l = len(m.ChainId) + if l > 0 { + n += 1 + l + sovDex(uint64(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 + l = len(m.ChainId) + 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)) + } + } + 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 + l = len(m.ChainId) + if l > 0 { + n += 1 + l + sovDex(uint64(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 + l = len(m.ChainId) + if l > 0 { + n += 1 + l + sovDex(uint64(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)) + } + 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 = &v1alpha1.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 = &v1alpha11.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 = &v1alpha12.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 = &v1alpha12.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 = &v1alpha13.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 = &v1alpha13.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 = &v1alpha14.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 = &v1alpha12.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 + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SwapPlaintext) 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: SwapPlaintext: wiretype end group for non-group") + } + if fieldNum <= 0 { + 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 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 = &v1alpha13.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 = &v1alpha13.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 = &v1alpha11.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 = &v1alpha15.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 { + 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.Rseed = append(m.Rseed[:0], dAtA[iNdEx:postIndex]...) + if m.Rseed == nil { + m.Rseed = []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 *SwapPlan) 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: SwapPlan: wiretype end group for non-group") + } + if fieldNum <= 0 { + 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 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 { + 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.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: + 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 *SwapClaimPlan) 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: SwapClaimPlan: wiretype end group for non-group") + } + if fieldNum <= 0 { + 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 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 { + 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 + 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 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 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: + 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 *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: + 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 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 + } + 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 Opaque", 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 + } + v := &SwapView_Opaque{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.SwapView = &SwapView_Opaque_{v} + 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 *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 + } + 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: 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: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Swap", 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.Swap == nil { + m.Swap = &Swap{} + } + 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 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 + 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 *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 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: 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 Swap", 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.Swap == nil { + m.Swap = &Swap{} + } + if err := m.Swap.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 *SwapClaimView) 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: SwapClaimView: wiretype end group for non-group") + } + if fieldNum <= 0 { + 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 Visible", 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 + } + 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 Opaque", 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 + } + v := &SwapClaimView_Opaque{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.SwapClaimView = &SwapClaimView_Opaque_{v} + 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 *SwapClaimView_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 + } + 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: 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: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SwapClaim", 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.SwapClaim == nil { + m.SwapClaim = &SwapClaim{} + } + 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 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) + } + 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_2 == nil { + m.Output_2 = &v1alpha16.NoteView{} + } + if err := m.Output_2.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 *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 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: 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 SwapClaim", 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.SwapClaim == nil { + m.SwapClaim = &SwapClaim{} + } + if err := m.SwapClaim.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 *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 + } + 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: 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: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Asset_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.Asset_1 == nil { + m.Asset_1 = &v1alpha14.AssetId{} + } + 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 Asset_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.Asset_2 == nil { + m.Asset_2 = &v1alpha14.AssetId{} + } + if err := m.Asset_2.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 *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 Start", 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.Start == nil { + m.Start = &v1alpha14.AssetId{} + } + if err := m.Start.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field End", 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.End == nil { + m.End = &v1alpha14.AssetId{} + } + if err := m.End.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 *BatchSwapOutputData) 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: BatchSwapOutputData: wiretype end group for non-group") + } + if fieldNum <= 0 { + 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 Delta_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.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) + } + 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.Lambda_1 == nil { + m.Lambda_1 = &v1alpha13.Amount{} + } + if err := m.Lambda_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 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 { + return ErrInvalidLengthDex + } + if postIndex > 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 + } + if postIndex > 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 + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Unfilled_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.Unfilled_2 == nil { + m.Unfilled_2 = &v1alpha13.Amount{} + } + if err := m.Unfilled_2.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: + 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 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:]) + 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 *TradingFunction) 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: TradingFunction: wiretype end group for non-group") + } + if fieldNum <= 0 { + 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 Component", 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.Component == nil { + m.Component = &BareTradingFunction{} + } + 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 + 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 *BareTradingFunction) 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: BareTradingFunction: wiretype end group for non-group") + } + if fieldNum <= 0 { + 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 P", 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.P == nil { + m.P = &v1alpha13.Amount{} + } + if err := m.P.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Q", 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.Q == nil { + m.Q = &v1alpha13.Amount{} + } + if err := m.Q.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 *Reserves) 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: Reserves: wiretype end group for non-group") + } + if fieldNum <= 0 { + 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 R1", 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.R1 == nil { + m.R1 = &v1alpha13.Amount{} + } + 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 R2", 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.R2 == nil { + m.R2 = &v1alpha13.Amount{} + } + if err := m.R2.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 *Position) 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: Position: wiretype end group for non-group") + } + if fieldNum <= 0 { + 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 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: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Nonce", 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.Nonce = append(m.Nonce[:0], dAtA[iNdEx:postIndex]...) + if m.Nonce == nil { + m.Nonce = []byte{} + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", 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.State == nil { + m.State = &PositionState{} + } + if err := m.State.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", 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 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:]) + 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 *PositionId) 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: PositionId: wiretype end group for non-group") + } + if fieldNum <= 0 { + 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 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 + 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.AltBech32M = string(dAtA[iNdEx:postIndex]) + 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 *PositionState) 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: PositionState: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PositionState: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + m.State = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDex + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.State |= PositionState_PositionStateEnum(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 *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 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: 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 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) + } + 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.State == nil { + m.State = &PositionState{} + } + if err := m.State.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 *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 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: 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 Position", 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.Position == nil { + m.Position = &Position{} + } + if err := m.Position.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 *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 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 + 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 *PositionWithdraw) 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: PositionWithdraw: wiretype end group for non-group") + } + if fieldNum <= 0 { + 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 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 ReservesCommitment", 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.ReservesCommitment == nil { + m.ReservesCommitment = &v1alpha14.BalanceCommitment{} + } + if err := m.ReservesCommitment.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 *PositionRewardClaim) 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: PositionRewardClaim: wiretype end group for non-group") + } + if fieldNum <= 0 { + 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 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) + } + 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.RewardsCommitment == nil { + m.RewardsCommitment = &v1alpha14.BalanceCommitment{} + } + if err := m.RewardsCommitment.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 *SwapExecution) 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: SwapExecution: wiretype end group for non-group") + } + if fieldNum <= 0 { + 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 Traces", 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.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 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Input", 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.Input == nil { + m.Input = &v1alpha14.Value{} + } + if err := m.Input.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) + } + 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 == 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:]) + 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 *SwapExecution_Trace) 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: Trace: wiretype end group for non-group") + } + if fieldNum <= 0 { + 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 Value", 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.Value = append(m.Value, &v1alpha14.Value{}) + if err := m.Value[len(m.Value)-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 *PositionWithdrawPlan) 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: PositionWithdrawPlan: wiretype end group for non-group") + } + if fieldNum <= 0 { + 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 + 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 *PositionRewardClaimPlan) 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: PositionRewardClaimPlan: wiretype end group for non-group") + } + if fieldNum <= 0 { + 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 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 + 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 *BatchSwapOutputDataRequest) 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: BatchSwapOutputDataRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BatchSwapOutputDataRequest: 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) + } + 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:]) + 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 *BatchSwapOutputDataResponse) 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: BatchSwapOutputDataResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + 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 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 = &BatchSwapOutputData{} + } + if err := m.Data.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 *SwapExecutionRequest) 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: SwapExecutionRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + 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 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) + } + 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 = &DirectedTradingPair{} + } + if err := m.TradingPair.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 *SwapExecutionResponse) 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: SwapExecutionResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + 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 SwapExecution", 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 == nil { + m.SwapExecution = &SwapExecution{} + } + if err := m.SwapExecution.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 *ArbExecutionRequest) 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: ArbExecutionRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + 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 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 + } + } + 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 *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 + } + 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 SwapExecution", 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 == nil { + m.SwapExecution = &SwapExecution{} + } + if err := m.SwapExecution.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:]) + 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 *SwapExecutionsRequest) 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: 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 + } + } + case 4: + 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 = &DirectedTradingPair{} + } + if err := m.TradingPair.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 *SwapExecutionsResponse) 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: SwapExecutionsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + 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 SwapExecution", 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 == nil { + m.SwapExecution = &SwapExecution{} + } + if err := m.SwapExecution.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 + } + } + 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 = &DirectedTradingPair{} + } + if err := m.TradingPair.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 *ArbExecutionsRequest) 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: ArbExecutionsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + 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 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 + } + } + 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 *ArbExecutionsResponse) 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: ArbExecutionsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + 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 SwapExecution", 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 == nil { + m.SwapExecution = &SwapExecution{} + } + if err := m.SwapExecution.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:]) + 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 *LiquidityPositionsRequest) 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: LiquidityPositionsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + 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 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 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IncludeClosed", 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.IncludeClosed = bool(v != 0) + 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 *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 + } + 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: 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: + 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:]) + 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 *LiquidityPositionByIdRequest) 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: LiquidityPositionByIdRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: LiquidityPositionByIdRequest: 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 + } + if m.PositionId == nil { + m.PositionId = &PositionId{} + } + 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 + } + 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 *LiquidityPositionByIdResponse) 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: LiquidityPositionByIdResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + 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 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:]) + 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 *LiquidityPositionsByIdRequest) 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: LiquidityPositionsByIdRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: LiquidityPositionsByIdRequest: 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:]) + 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 *LiquidityPositionsByIdResponse) 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: 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 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:]) + 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 *LiquidityPositionsByPriceRequest) 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: LiquidityPositionsByPriceRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: LiquidityPositionsByPriceRequest: 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 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 = &DirectedTradingPair{} + } + if err := m.TradingPair.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) + } + m.Limit = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDex + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Limit |= 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 *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 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:]) + 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 *SpreadRequest) 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: SpreadRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SpreadRequest: 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 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:]) + 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: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Best_1To_2Position", 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.Best_1To_2Position == nil { + m.Best_1To_2Position = &Position{} + } + if err := m.Best_1To_2Position.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Best_2To_1Position", 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.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:]) + 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 *SimulateTradeRequest) 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: SimulateTradeRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + 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 Input", 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.Input == nil { + m.Input = &v1alpha14.Value{} + } + if err := m.Input.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", 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 == nil { + m.Output = &v1alpha14.AssetId{} + } + if err := m.Output.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Routing", 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.Routing == nil { + m.Routing = &SimulateTradeRequest_Routing{} + } + if err := m.Routing.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 *SimulateTradeRequest_Routing) 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: Routing: wiretype end group for non-group") + } + if fieldNum <= 0 { + 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 Default", 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 + } + 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 + } + 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 + 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 *SimulateTradeRequest_Routing_SingleHop) 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: SingleHop: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SingleHop: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + 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 *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 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: 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:]) + 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 *SimulateTradeResponse) 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: SimulateTradeResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + 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 Output", 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 == nil { + m.Output = &SwapExecution{} + } + if err := m.Output.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 skipDex(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, ErrIntOverflowDex + } + 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, ErrIntOverflowDex + } + 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, ErrIntOverflowDex + } + 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, ErrInvalidLengthDex + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupDex + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthDex + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthDex = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowDex = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupDex = fmt.Errorf("proto: unexpected end of group") +) diff --git a/relayer/chains/penumbra/core/component/distributions/v1alpha1/distributions.pb.go b/relayer/chains/penumbra/core/component/distributions/v1alpha1/distributions.pb.go new file mode 100644 index 000000000..3c7152a5f --- /dev/null +++ b/relayer/chains/penumbra/core/component/distributions/v1alpha1/distributions.pb.go @@ -0,0 +1,46 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: penumbra/core/component/distributions/v1alpha1/distributions.proto + +package distributionsv1alpha1 + +import ( + fmt "fmt" + proto "github.com/cosmos/gogoproto/proto" + math "math" +) + +// 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 + +func init() { + proto.RegisterFile("penumbra/core/component/distributions/v1alpha1/distributions.proto", fileDescriptor_5006eea51ea29289) +} + +var fileDescriptor_5006eea51ea29289 = []byte{ + // 267 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0xd1, 0xb1, 0x4a, 0xc4, 0x30, + 0x1c, 0x06, 0xf0, 0x6b, 0x15, 0x87, 0x1b, 0xef, 0x01, 0xf2, 0x08, 0x09, 0x57, 0xb7, 0xb8, 0xb5, + 0x07, 0x4e, 0x42, 0x26, 0x07, 0xc9, 0x92, 0xe6, 0x82, 0x0d, 0x5c, 0xf3, 0x0f, 0x49, 0x7a, 0xe0, + 0x5b, 0xf8, 0x0c, 0x8e, 0x2e, 0xbe, 0x86, 0x38, 0xdd, 0xe8, 0x28, 0xed, 0xe6, 0x53, 0x48, 0xe4, + 0x52, 0xcd, 0xd8, 0xa5, 0x94, 0x8f, 0xfc, 0x3e, 0x3e, 0x92, 0x75, 0x6d, 0x95, 0x19, 0xfa, 0xd6, + 0x09, 0x22, 0xc1, 0x29, 0x22, 0xa1, 0xb7, 0x60, 0x94, 0x09, 0x64, 0xaf, 0x7d, 0x70, 0xba, 0x1d, + 0x82, 0x06, 0xe3, 0xc9, 0x71, 0x2b, 0x0e, 0xb6, 0x13, 0xdb, 0x3c, 0xc6, 0xd6, 0x41, 0x80, 0x0d, + 0x4e, 0x1d, 0x38, 0x76, 0xe0, 0xb9, 0x03, 0xe7, 0x87, 0x53, 0x47, 0xfd, 0x76, 0xf1, 0x3e, 0xa2, + 0xe2, 0x34, 0xa2, 0xe2, 0x6b, 0x44, 0xc5, 0xf3, 0x84, 0x56, 0xa7, 0x09, 0xad, 0x3e, 0x27, 0xb4, + 0x5a, 0x57, 0x12, 0xfa, 0xa5, 0x75, 0x9b, 0xdd, 0xff, 0x9c, 0xc5, 0x49, 0xac, 0x78, 0xb0, 0x8f, + 0x3a, 0x74, 0x43, 0x1b, 0x39, 0x91, 0xe0, 0x7b, 0xf0, 0xc4, 0xa9, 0x83, 0x78, 0x52, 0x8e, 0x1c, + 0xab, 0xf9, 0x57, 0x76, 0x42, 0x1b, 0x4f, 0x96, 0x5d, 0xc2, 0x4d, 0x16, 0xa7, 0xf4, 0xa5, 0xbc, + 0x64, 0x4d, 0xb3, 0x7b, 0x2d, 0x31, 0x4b, 0xfb, 0x9b, 0xb8, 0xbf, 0x99, 0xf7, 0x67, 0x3b, 0xf1, + 0xfd, 0xd9, 0x7d, 0xfc, 0x01, 0x1e, 0x01, 0x9f, 0x01, 0xcf, 0x00, 0x4f, 0x60, 0x2c, 0xe9, 0x32, + 0xc0, 0x6f, 0x59, 0x7d, 0xa7, 0x82, 0xd8, 0x8b, 0x20, 0xbe, 0xcb, 0x2a, 0x61, 0x4a, 0xa3, 0x8e, + 0xdf, 0x33, 0xa7, 0x34, 0xf3, 0x94, 0xa6, 0x82, 0xf6, 0xea, 0xf7, 0xa1, 0xaf, 0x7f, 0x02, 0x00, + 0x00, 0xff, 0xff, 0x1a, 0x29, 0xaf, 0x4c, 0x2e, 0x02, 0x00, 0x00, +} diff --git a/relayer/chains/penumbra/core/component/fee/v1alpha1/fee.pb.go b/relayer/chains/penumbra/core/component/fee/v1alpha1/fee.pb.go new file mode 100644 index 000000000..01914d657 --- /dev/null +++ b/relayer/chains/penumbra/core/component/fee/v1alpha1/fee.pb.go @@ -0,0 +1,404 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: penumbra/core/component/fee/v1alpha1/fee.proto + +package feev1alpha1 + +import ( + fmt "fmt" + 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" + 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 + +// 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"` + // 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"` +} + +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} +} +func (m *Fee) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Fee) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Fee.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 *Fee) XXX_Merge(src proto.Message) { + xxx_messageInfo_Fee.Merge(m, src) +} +func (m *Fee) XXX_Size() int { + return m.Size() +} +func (m *Fee) XXX_DiscardUnknown() { + xxx_messageInfo_Fee.DiscardUnknown(m) +} + +var xxx_messageInfo_Fee proto.InternalMessageInfo + +func (m *Fee) GetAmount() *v1alpha1.Amount { + if m != nil { + return m.Amount + } + return nil +} + +func (m *Fee) GetAssetId() *v1alpha11.AssetId { + if m != nil { + return m.AssetId + } + return nil +} + +func init() { + proto.RegisterType((*Fee)(nil), "penumbra.core.component.fee.v1alpha1.Fee") +} + +func init() { + proto.RegisterFile("penumbra/core/component/fee/v1alpha1/fee.proto", fileDescriptor_03007f6a7f31c8af) +} + +var fileDescriptor_03007f6a7f31c8af = []byte{ + // 354 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x91, 0x31, 0x4b, 0xf3, 0x40, + 0x18, 0xc7, 0x7b, 0x79, 0x5f, 0x6a, 0x89, 0x5b, 0xa7, 0xd2, 0x21, 0x48, 0xa9, 0x90, 0xe9, 0xce, + 0xd6, 0xed, 0x5c, 0xb4, 0x81, 0x88, 0x83, 0x10, 0x3a, 0x38, 0x48, 0x40, 0xae, 0xe9, 0x53, 0x5b, + 0xe8, 0xdd, 0x85, 0xe4, 0x52, 0x70, 0xf6, 0x0b, 0xf8, 0x19, 0x1c, 0xfd, 0x24, 0xe2, 0xd4, 0xd1, + 0x4d, 0x49, 0x37, 0x3f, 0x85, 0x5c, 0xd2, 0x4b, 0xa8, 0x53, 0x96, 0xf0, 0x3c, 0xf0, 0xfb, 0xfd, + 0xf3, 0x4f, 0x1e, 0x1b, 0xc7, 0x20, 0x32, 0x3e, 0x4b, 0x18, 0x89, 0x64, 0x02, 0x24, 0x92, 0x3c, + 0x96, 0x02, 0x84, 0x22, 0x0b, 0x00, 0xb2, 0x19, 0xb1, 0x75, 0xbc, 0x64, 0x23, 0xbd, 0xe0, 0x38, + 0x91, 0x4a, 0x76, 0x87, 0x86, 0xc7, 0x9a, 0xc7, 0x15, 0x8f, 0x35, 0x62, 0xf8, 0xfe, 0xf0, 0x30, + 0x55, 0x64, 0xbc, 0xce, 0x12, 0x19, 0x2f, 0xb3, 0xfa, 0xee, 0x21, 0xc5, 0xd2, 0x14, 0x54, 0xcd, + 0x15, 0x6b, 0x49, 0x0e, 0x9e, 0x91, 0xfd, 0xcf, 0x07, 0xe8, 0x52, 0xbb, 0xcd, 0xb8, 0xcc, 0x84, + 0xea, 0xa1, 0x13, 0xe4, 0x1e, 0x8f, 0x07, 0xf8, 0xb0, 0x8e, 0xce, 0x36, 0x01, 0xf8, 0xaa, 0x20, + 0xa7, 0x7b, 0xa3, 0x7b, 0x69, 0x77, 0x8a, 0xc8, 0x87, 0xd5, 0xbc, 0x67, 0x15, 0xf6, 0xe9, 0x1f, + 0xbb, 0x7c, 0x63, 0xed, 0xeb, 0xf5, 0x66, 0x3e, 0x3d, 0x62, 0xe5, 0x30, 0xf9, 0xb2, 0xde, 0x73, + 0x07, 0x6d, 0x73, 0x07, 0x7d, 0xe7, 0x0e, 0x7a, 0xd9, 0x39, 0xad, 0xed, 0xce, 0x69, 0x7d, 0xee, + 0x9c, 0x96, 0xed, 0x46, 0x92, 0xe3, 0x26, 0xbf, 0x66, 0xd2, 0xf1, 0x01, 0x02, 0xfd, 0x51, 0x01, + 0xba, 0x0f, 0x1f, 0x57, 0x6a, 0x99, 0xcd, 0x34, 0x4a, 0x22, 0x99, 0x72, 0x99, 0x92, 0x04, 0xd6, + 0xec, 0x09, 0x12, 0xb2, 0x19, 0x57, 0x63, 0xb4, 0x64, 0x2b, 0x91, 0x92, 0x26, 0x87, 0xba, 0x58, + 0x00, 0x98, 0xf9, 0xd5, 0xfa, 0x1f, 0x78, 0x9e, 0xff, 0x66, 0x0d, 0x03, 0xd3, 0xcb, 0xd3, 0xbd, + 0xbc, 0xaa, 0x97, 0x0f, 0x80, 0xef, 0xf6, 0xf4, 0x47, 0x8d, 0x85, 0x1a, 0x0b, 0x2b, 0x2c, 0xf4, + 0x01, 0x42, 0x83, 0xe5, 0xd6, 0x59, 0x13, 0x2c, 0xbc, 0x0e, 0x26, 0xb7, 0xa0, 0xd8, 0x9c, 0x29, + 0xf6, 0x63, 0xb9, 0x46, 0xa1, 0x54, 0x3b, 0xfa, 0xb9, 0x97, 0x28, 0xf5, 0x01, 0x28, 0x35, 0xda, + 0xac, 0x5d, 0x9c, 0xfb, 0xfc, 0x37, 0x00, 0x00, 0xff, 0xff, 0x9e, 0x46, 0xb3, 0xcc, 0x96, 0x02, + 0x00, 0x00, +} + +func (m *Fee) 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 *Fee) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Fee) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.AssetId != nil { + { + size, err := m.AssetId.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintFee(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.Amount != nil { + { + size, err := m.Amount.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 +} + +func encodeVarintFee(dAtA []byte, offset int, v uint64) int { + offset -= sovFee(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *Fee) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Amount != nil { + l = m.Amount.Size() + n += 1 + l + sovFee(uint64(l)) + } + if m.AssetId != nil { + l = m.AssetId.Size() + n += 1 + l + sovFee(uint64(l)) + } + return n +} + +func sovFee(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozFee(x uint64) (n int) { + return sovFee(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *Fee) 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: Fee: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Fee: 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) + } + 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.Amount == nil { + m.Amount = &v1alpha1.Amount{} + } + 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 AssetId", 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.AssetId == nil { + m.AssetId = &v1alpha11.AssetId{} + } + if err := m.AssetId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + 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 skipFee(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, ErrIntOverflowFee + } + 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, ErrIntOverflowFee + } + 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, ErrIntOverflowFee + } + 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, ErrInvalidLengthFee + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupFee + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthFee + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthFee = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowFee = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupFee = 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/v1alpha1/governance.pb.go new file mode 100644 index 000000000..2f7ccb622 --- /dev/null +++ b/relayer/chains/penumbra/core/component/governance/v1alpha1/governance.pb.go @@ -0,0 +1,10264 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: penumbra/core/component/governance/v1alpha1/governance.proto + +package governancev1alpha1 + +import ( + context "context" + fmt "fmt" + 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" + v1alpha15 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/component/chain/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" + 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" + 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 + +// A vote. +type Vote_Vote int32 + +const ( + Vote_VOTE_UNSPECIFIED Vote_Vote = 0 + Vote_VOTE_ABSTAIN Vote_Vote = 1 + Vote_VOTE_YES Vote_Vote = 2 + Vote_VOTE_NO Vote_Vote = 3 +) + +var Vote_Vote_name = map[int32]string{ + 0: "VOTE_UNSPECIFIED", + 1: "VOTE_ABSTAIN", + 2: "VOTE_YES", + 3: "VOTE_NO", +} + +var Vote_Vote_value = map[string]int32{ + "VOTE_UNSPECIFIED": 0, + "VOTE_ABSTAIN": 1, + "VOTE_YES": 2, + "VOTE_NO": 3, +} + +func (x Vote_Vote) String() string { + return proto.EnumName(Vote_Vote_name, int32(x)) +} + +func (Vote_Vote) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_67f269dcda22019a, []int{14, 0} +} + +// A Penumbra ZK delegator vote proof. +type ZKDelegatorVoteProof struct { + Inner []byte `protobuf:"bytes,1,opt,name=inner,proto3" json:"inner,omitempty"` +} + +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} +} +func (m *ZKDelegatorVoteProof) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ZKDelegatorVoteProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ZKDelegatorVoteProof.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 *ZKDelegatorVoteProof) XXX_Merge(src proto.Message) { + xxx_messageInfo_ZKDelegatorVoteProof.Merge(m, src) +} +func (m *ZKDelegatorVoteProof) XXX_Size() int { + return m.Size() +} +func (m *ZKDelegatorVoteProof) XXX_DiscardUnknown() { + xxx_messageInfo_ZKDelegatorVoteProof.DiscardUnknown(m) +} + +var xxx_messageInfo_ZKDelegatorVoteProof proto.InternalMessageInfo + +func (m *ZKDelegatorVoteProof) GetInner() []byte { + if m != nil { + return m.Inner + } + return nil +} + +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"` +} + +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} +} +func (m *ProposalSubmit) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ProposalSubmit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ProposalSubmit.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 *ProposalSubmit) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProposalSubmit.Merge(m, src) +} +func (m *ProposalSubmit) XXX_Size() int { + return m.Size() +} +func (m *ProposalSubmit) XXX_DiscardUnknown() { + xxx_messageInfo_ProposalSubmit.DiscardUnknown(m) +} + +var xxx_messageInfo_ProposalSubmit proto.InternalMessageInfo + +func (m *ProposalSubmit) GetProposal() *Proposal { + if m != nil { + return m.Proposal + } + return nil +} + +func (m *ProposalSubmit) GetDepositAmount() *v1alpha1.Amount { + if m != nil { + return m.DepositAmount + } + return nil +} + +type ProposalWithdraw struct { + // The proposal to be withdrawn. + Proposal uint64 `protobuf:"varint,1,opt,name=proposal,proto3" json:"proposal,omitempty"` + // The reason for the proposal being withdrawn. + Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"` +} + +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} +} +func (m *ProposalWithdraw) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ProposalWithdraw) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ProposalWithdraw.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 *ProposalWithdraw) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProposalWithdraw.Merge(m, src) +} +func (m *ProposalWithdraw) XXX_Size() int { + return m.Size() +} +func (m *ProposalWithdraw) XXX_DiscardUnknown() { + xxx_messageInfo_ProposalWithdraw.DiscardUnknown(m) +} + +var xxx_messageInfo_ProposalWithdraw proto.InternalMessageInfo + +func (m *ProposalWithdraw) GetProposal() uint64 { + if m != nil { + return m.Proposal + } + return 0 +} + +func (m *ProposalWithdraw) GetReason() string { + if m != nil { + return m.Reason + } + return "" +} + +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"` + // The outcome of the proposal. + Outcome *ProposalOutcome `protobuf:"bytes,3,opt,name=outcome,proto3" json:"outcome,omitempty"` +} + +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} +} +func (m *ProposalDepositClaim) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ProposalDepositClaim) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ProposalDepositClaim.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 *ProposalDepositClaim) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProposalDepositClaim.Merge(m, src) +} +func (m *ProposalDepositClaim) XXX_Size() int { + return m.Size() +} +func (m *ProposalDepositClaim) XXX_DiscardUnknown() { + xxx_messageInfo_ProposalDepositClaim.DiscardUnknown(m) +} + +var xxx_messageInfo_ProposalDepositClaim proto.InternalMessageInfo + +func (m *ProposalDepositClaim) GetProposal() uint64 { + if m != nil { + return m.Proposal + } + return 0 +} + +func (m *ProposalDepositClaim) GetDepositAmount() *v1alpha1.Amount { + if m != nil { + return m.DepositAmount + } + return nil +} + +func (m *ProposalDepositClaim) GetOutcome() *ProposalOutcome { + if m != nil { + return m.Outcome + } + return nil +} + +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"` +} + +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} +} +func (m *ValidatorVote) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ValidatorVote) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ValidatorVote.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 *ValidatorVote) XXX_Merge(src proto.Message) { + xxx_messageInfo_ValidatorVote.Merge(m, src) +} +func (m *ValidatorVote) XXX_Size() int { + return m.Size() +} +func (m *ValidatorVote) XXX_DiscardUnknown() { + xxx_messageInfo_ValidatorVote.DiscardUnknown(m) +} + +var xxx_messageInfo_ValidatorVote proto.InternalMessageInfo + +func (m *ValidatorVote) GetBody() *ValidatorVoteBody { + if m != nil { + return m.Body + } + return nil +} + +func (m *ValidatorVote) GetAuthSig() *v1alpha11.SpendAuthSignature { + if m != nil { + return m.AuthSig + } + return nil +} + +type ValidatorVoteReason struct { + Reason string `protobuf:"bytes,1,opt,name=reason,proto3" json:"reason,omitempty"` +} + +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} +} +func (m *ValidatorVoteReason) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ValidatorVoteReason) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ValidatorVoteReason.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 *ValidatorVoteReason) XXX_Merge(src proto.Message) { + xxx_messageInfo_ValidatorVoteReason.Merge(m, src) +} +func (m *ValidatorVoteReason) XXX_Size() int { + return m.Size() +} +func (m *ValidatorVoteReason) XXX_DiscardUnknown() { + xxx_messageInfo_ValidatorVoteReason.DiscardUnknown(m) +} + +var xxx_messageInfo_ValidatorVoteReason proto.InternalMessageInfo + +func (m *ValidatorVoteReason) GetReason() string { + if m != nil { + return m.Reason + } + return "" +} + +type ValidatorVoteBody struct { + // The proposal being voted on. + Proposal uint64 `protobuf:"varint,1,opt,name=proposal,proto3" json:"proposal,omitempty"` + // 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"` + // The validator governance key. + GovernanceKey *v1alpha12.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"` +} + +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} +} +func (m *ValidatorVoteBody) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ValidatorVoteBody) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ValidatorVoteBody.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 *ValidatorVoteBody) XXX_Merge(src proto.Message) { + xxx_messageInfo_ValidatorVoteBody.Merge(m, src) +} +func (m *ValidatorVoteBody) XXX_Size() int { + return m.Size() +} +func (m *ValidatorVoteBody) XXX_DiscardUnknown() { + xxx_messageInfo_ValidatorVoteBody.DiscardUnknown(m) +} + +var xxx_messageInfo_ValidatorVoteBody proto.InternalMessageInfo + +func (m *ValidatorVoteBody) GetProposal() uint64 { + if m != nil { + return m.Proposal + } + return 0 +} + +func (m *ValidatorVoteBody) GetVote() *Vote { + if m != nil { + return m.Vote + } + return nil +} + +func (m *ValidatorVoteBody) GetIdentityKey() *v1alpha12.IdentityKey { + if m != nil { + return m.IdentityKey + } + return nil +} + +func (m *ValidatorVoteBody) GetGovernanceKey() *v1alpha12.GovernanceKey { + if m != nil { + return m.GovernanceKey + } + return nil +} + +func (m *ValidatorVoteBody) GetReason() *ValidatorVoteReason { + if m != nil { + return m.Reason + } + return nil +} + +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"` + // The vote proof is authorizing data. + Proof *ZKDelegatorVoteProof `protobuf:"bytes,3,opt,name=proof,proto3" json:"proof,omitempty"` +} + +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} +} +func (m *DelegatorVote) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DelegatorVote) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DelegatorVote.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 *DelegatorVote) XXX_Merge(src proto.Message) { + xxx_messageInfo_DelegatorVote.Merge(m, src) +} +func (m *DelegatorVote) XXX_Size() int { + return m.Size() +} +func (m *DelegatorVote) XXX_DiscardUnknown() { + xxx_messageInfo_DelegatorVote.DiscardUnknown(m) +} + +var xxx_messageInfo_DelegatorVote proto.InternalMessageInfo + +func (m *DelegatorVote) GetBody() *DelegatorVoteBody { + if m != nil { + return m.Body + } + return nil +} + +func (m *DelegatorVote) GetAuthSig() *v1alpha11.SpendAuthSignature { + if m != nil { + return m.AuthSig + } + return nil +} + +func (m *DelegatorVote) GetProof() *ZKDelegatorVoteProof { + if m != nil { + return m.Proof + } + return nil +} + +type DelegatorVoteBody struct { + // The proposal being voted on. + Proposal uint64 `protobuf:"varint,1,opt,name=proposal,proto3" json:"proposal,omitempty"` + // The start position of the proposal in the TCT. + StartPosition uint64 `protobuf:"varint,2,opt,name=start_position,json=startPosition,proto3" json:"start_position,omitempty"` + // 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"` + // 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"` + // The nullifier of the input note. + Nullifier []byte `protobuf:"bytes,6,opt,name=nullifier,proto3" json:"nullifier,omitempty"` + // The randomized validating key for the spend authorization signature. + Rk []byte `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} +} +func (m *DelegatorVoteBody) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DelegatorVoteBody) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DelegatorVoteBody.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 *DelegatorVoteBody) XXX_Merge(src proto.Message) { + xxx_messageInfo_DelegatorVoteBody.Merge(m, src) +} +func (m *DelegatorVoteBody) XXX_Size() int { + return m.Size() +} +func (m *DelegatorVoteBody) XXX_DiscardUnknown() { + xxx_messageInfo_DelegatorVoteBody.DiscardUnknown(m) +} + +var xxx_messageInfo_DelegatorVoteBody proto.InternalMessageInfo + +func (m *DelegatorVoteBody) GetProposal() uint64 { + if m != nil { + return m.Proposal + } + return 0 +} + +func (m *DelegatorVoteBody) GetStartPosition() uint64 { + if m != nil { + return m.StartPosition + } + return 0 +} + +func (m *DelegatorVoteBody) GetVote() *Vote { + if m != nil { + return m.Vote + } + return nil +} + +func (m *DelegatorVoteBody) GetValue() *v1alpha13.Value { + if m != nil { + return m.Value + } + return nil +} + +func (m *DelegatorVoteBody) GetUnbondedAmount() *v1alpha1.Amount { + if m != nil { + return m.UnbondedAmount + } + return nil +} + +func (m *DelegatorVoteBody) GetNullifier() []byte { + if m != nil { + return m.Nullifier + } + return nil +} + +func (m *DelegatorVoteBody) GetRk() []byte { + if m != nil { + return m.Rk + } + return nil +} + +type DelegatorVoteView struct { + // Types that are valid to be assigned to DelegatorVote: + // *DelegatorVoteView_Visible_ + // *DelegatorVoteView_Opaque_ + DelegatorVote isDelegatorVoteView_DelegatorVote `protobuf_oneof:"delegator_vote"` +} + +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} +} +func (m *DelegatorVoteView) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DelegatorVoteView) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DelegatorVoteView.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 *DelegatorVoteView) XXX_Merge(src proto.Message) { + xxx_messageInfo_DelegatorVoteView.Merge(m, src) +} +func (m *DelegatorVoteView) XXX_Size() int { + return m.Size() +} +func (m *DelegatorVoteView) XXX_DiscardUnknown() { + xxx_messageInfo_DelegatorVoteView.DiscardUnknown(m) +} + +var xxx_messageInfo_DelegatorVoteView proto.InternalMessageInfo + +type isDelegatorVoteView_DelegatorVote interface { + isDelegatorVoteView_DelegatorVote() + MarshalTo([]byte) (int, error) + Size() int +} + +type DelegatorVoteView_Visible_ struct { + Visible *DelegatorVoteView_Visible `protobuf:"bytes,1,opt,name=visible,proto3,oneof" json:"visible,omitempty"` +} +type DelegatorVoteView_Opaque_ struct { + Opaque *DelegatorVoteView_Opaque `protobuf:"bytes,2,opt,name=opaque,proto3,oneof" json:"opaque,omitempty"` +} + +func (*DelegatorVoteView_Visible_) isDelegatorVoteView_DelegatorVote() {} +func (*DelegatorVoteView_Opaque_) isDelegatorVoteView_DelegatorVote() {} + +func (m *DelegatorVoteView) GetDelegatorVote() isDelegatorVoteView_DelegatorVote { + if m != nil { + return m.DelegatorVote + } + return nil +} + +func (m *DelegatorVoteView) GetVisible() *DelegatorVoteView_Visible { + if x, ok := m.GetDelegatorVote().(*DelegatorVoteView_Visible_); ok { + return x.Visible + } + return nil +} + +func (m *DelegatorVoteView) GetOpaque() *DelegatorVoteView_Opaque { + if x, ok := m.GetDelegatorVote().(*DelegatorVoteView_Opaque_); ok { + return x.Opaque + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*DelegatorVoteView) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*DelegatorVoteView_Visible_)(nil), + (*DelegatorVoteView_Opaque_)(nil), + } +} + +type DelegatorVoteView_Visible struct { + DelegatorVote *DelegatorVote `protobuf:"bytes,1,opt,name=delegator_vote,json=delegatorVote,proto3" json:"delegator_vote,omitempty"` + Note *v1alpha14.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} +} +func (m *DelegatorVoteView_Visible) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DelegatorVoteView_Visible) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DelegatorVoteView_Visible.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 *DelegatorVoteView_Visible) XXX_Merge(src proto.Message) { + xxx_messageInfo_DelegatorVoteView_Visible.Merge(m, src) +} +func (m *DelegatorVoteView_Visible) XXX_Size() int { + return m.Size() +} +func (m *DelegatorVoteView_Visible) XXX_DiscardUnknown() { + xxx_messageInfo_DelegatorVoteView_Visible.DiscardUnknown(m) +} + +var xxx_messageInfo_DelegatorVoteView_Visible proto.InternalMessageInfo + +func (m *DelegatorVoteView_Visible) GetDelegatorVote() *DelegatorVote { + if m != nil { + return m.DelegatorVote + } + return nil +} + +func (m *DelegatorVoteView_Visible) GetNote() *v1alpha14.NoteView { + if m != nil { + return m.Note + } + return nil +} + +type DelegatorVoteView_Opaque struct { + DelegatorVote *DelegatorVote `protobuf:"bytes,1,opt,name=delegator_vote,json=delegatorVote,proto3" json:"delegator_vote,omitempty"` +} + +func (m *DelegatorVoteView_Opaque) Reset() { *m = DelegatorVoteView_Opaque{} } +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} +} +func (m *DelegatorVoteView_Opaque) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DelegatorVoteView_Opaque) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DelegatorVoteView_Opaque.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 *DelegatorVoteView_Opaque) XXX_Merge(src proto.Message) { + xxx_messageInfo_DelegatorVoteView_Opaque.Merge(m, src) +} +func (m *DelegatorVoteView_Opaque) XXX_Size() int { + return m.Size() +} +func (m *DelegatorVoteView_Opaque) XXX_DiscardUnknown() { + xxx_messageInfo_DelegatorVoteView_Opaque.DiscardUnknown(m) +} + +var xxx_messageInfo_DelegatorVoteView_Opaque proto.InternalMessageInfo + +func (m *DelegatorVoteView_Opaque) GetDelegatorVote() *DelegatorVote { + if m != nil { + return m.DelegatorVote + } + return nil +} + +type DelegatorVotePlan struct { + // The proposal to vote on. + Proposal uint64 `protobuf:"varint,1,opt,name=proposal,proto3" json:"proposal,omitempty"` + // The start position of the proposal in the TCT. + StartPosition uint64 `protobuf:"varint,2,opt,name=start_position,json=startPosition,proto3" json:"start_position,omitempty"` + // 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 *v1alpha14.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"` + // 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. + ProofBlindingR []byte `protobuf:"bytes,8,opt,name=proof_blinding_r,json=proofBlindingR,proto3" json:"proof_blinding_r,omitempty"` + // The second blinding factor to use for the ZK delegator vote proof. + ProofBlindingS []byte `protobuf:"bytes,9,opt,name=proof_blinding_s,json=proofBlindingS,proto3" json:"proof_blinding_s,omitempty"` +} + +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} +} +func (m *DelegatorVotePlan) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DelegatorVotePlan) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DelegatorVotePlan.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 *DelegatorVotePlan) XXX_Merge(src proto.Message) { + xxx_messageInfo_DelegatorVotePlan.Merge(m, src) +} +func (m *DelegatorVotePlan) XXX_Size() int { + return m.Size() +} +func (m *DelegatorVotePlan) XXX_DiscardUnknown() { + xxx_messageInfo_DelegatorVotePlan.DiscardUnknown(m) +} + +var xxx_messageInfo_DelegatorVotePlan proto.InternalMessageInfo + +func (m *DelegatorVotePlan) GetProposal() uint64 { + if m != nil { + return m.Proposal + } + return 0 +} + +func (m *DelegatorVotePlan) GetStartPosition() uint64 { + if m != nil { + return m.StartPosition + } + return 0 +} + +func (m *DelegatorVotePlan) GetVote() *Vote { + if m != nil { + return m.Vote + } + return nil +} + +func (m *DelegatorVotePlan) GetStakedNote() *v1alpha14.Note { + if m != nil { + return m.StakedNote + } + return nil +} + +func (m *DelegatorVotePlan) GetStakedNotePosition() uint64 { + if m != nil { + return m.StakedNotePosition + } + return 0 +} + +func (m *DelegatorVotePlan) GetUnbondedAmount() *v1alpha1.Amount { + if m != nil { + return m.UnbondedAmount + } + return nil +} + +func (m *DelegatorVotePlan) GetRandomizer() []byte { + if m != nil { + return m.Randomizer + } + return nil +} + +func (m *DelegatorVotePlan) GetProofBlindingR() []byte { + if m != nil { + return m.ProofBlindingR + } + return nil +} + +func (m *DelegatorVotePlan) GetProofBlindingS() []byte { + if m != nil { + return m.ProofBlindingS + } + return nil +} + +type DaoDeposit struct { + // The value to deposit into the DAO. + Value *v1alpha13.Value `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` +} + +func (m *DaoDeposit) Reset() { *m = DaoDeposit{} } +func (m *DaoDeposit) String() string { return proto.CompactTextString(m) } +func (*DaoDeposit) ProtoMessage() {} +func (*DaoDeposit) Descriptor() ([]byte, []int) { + return fileDescriptor_67f269dcda22019a, []int{11} +} +func (m *DaoDeposit) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DaoDeposit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DaoDeposit.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 *DaoDeposit) XXX_Merge(src proto.Message) { + xxx_messageInfo_DaoDeposit.Merge(m, src) +} +func (m *DaoDeposit) XXX_Size() int { + return m.Size() +} +func (m *DaoDeposit) XXX_DiscardUnknown() { + xxx_messageInfo_DaoDeposit.DiscardUnknown(m) +} + +var xxx_messageInfo_DaoDeposit proto.InternalMessageInfo + +func (m *DaoDeposit) GetValue() *v1alpha13.Value { + if m != nil { + return m.Value + } + return nil +} + +type DaoSpend struct { + // The value to spend from the DAO. + Value *v1alpha13.Value `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` +} + +func (m *DaoSpend) Reset() { *m = DaoSpend{} } +func (m *DaoSpend) String() string { return proto.CompactTextString(m) } +func (*DaoSpend) ProtoMessage() {} +func (*DaoSpend) Descriptor() ([]byte, []int) { + return fileDescriptor_67f269dcda22019a, []int{12} +} +func (m *DaoSpend) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DaoSpend) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DaoSpend.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 *DaoSpend) XXX_Merge(src proto.Message) { + xxx_messageInfo_DaoSpend.Merge(m, src) +} +func (m *DaoSpend) XXX_Size() int { + return m.Size() +} +func (m *DaoSpend) XXX_DiscardUnknown() { + xxx_messageInfo_DaoSpend.DiscardUnknown(m) +} + +var xxx_messageInfo_DaoSpend proto.InternalMessageInfo + +func (m *DaoSpend) GetValue() *v1alpha13.Value { + if m != nil { + return m.Value + } + return nil +} + +type DaoOutput struct { + // The value to output from the DAO. + Value *v1alpha13.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"` +} + +func (m *DaoOutput) Reset() { *m = DaoOutput{} } +func (m *DaoOutput) String() string { return proto.CompactTextString(m) } +func (*DaoOutput) ProtoMessage() {} +func (*DaoOutput) Descriptor() ([]byte, []int) { + return fileDescriptor_67f269dcda22019a, []int{13} +} +func (m *DaoOutput) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DaoOutput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DaoOutput.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 *DaoOutput) XXX_Merge(src proto.Message) { + xxx_messageInfo_DaoOutput.Merge(m, src) +} +func (m *DaoOutput) XXX_Size() int { + return m.Size() +} +func (m *DaoOutput) XXX_DiscardUnknown() { + xxx_messageInfo_DaoOutput.DiscardUnknown(m) +} + +var xxx_messageInfo_DaoOutput proto.InternalMessageInfo + +func (m *DaoOutput) GetValue() *v1alpha13.Value { + if m != nil { + return m.Value + } + return nil +} + +func (m *DaoOutput) GetAddress() *v1alpha12.Address { + if m != nil { + return m.Address + } + return nil +} + +// 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"` +} + +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} +} +func (m *Vote) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Vote) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Vote.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 *Vote) XXX_Merge(src proto.Message) { + xxx_messageInfo_Vote.Merge(m, src) +} +func (m *Vote) XXX_Size() int { + return m.Size() +} +func (m *Vote) XXX_DiscardUnknown() { + xxx_messageInfo_Vote.DiscardUnknown(m) +} + +var xxx_messageInfo_Vote proto.InternalMessageInfo + +func (m *Vote) GetVote() Vote_Vote { + if m != nil { + return m.Vote + } + return Vote_VOTE_UNSPECIFIED +} + +// The current state of a proposal. +type ProposalState struct { + // The state of the proposal. + // + // Types that are valid to be assigned to State: + // + // *ProposalState_Voting_ + // *ProposalState_Withdrawn_ + // *ProposalState_Finished_ + // *ProposalState_Claimed_ + State isProposalState_State `protobuf_oneof:"state"` +} + +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} +} +func (m *ProposalState) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ProposalState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ProposalState.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 *ProposalState) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProposalState.Merge(m, src) +} +func (m *ProposalState) XXX_Size() int { + return m.Size() +} +func (m *ProposalState) XXX_DiscardUnknown() { + xxx_messageInfo_ProposalState.DiscardUnknown(m) +} + +var xxx_messageInfo_ProposalState proto.InternalMessageInfo + +type isProposalState_State interface { + isProposalState_State() + MarshalTo([]byte) (int, error) + Size() int +} + +type ProposalState_Voting_ struct { + Voting *ProposalState_Voting `protobuf:"bytes,2,opt,name=voting,proto3,oneof" json:"voting,omitempty"` +} +type ProposalState_Withdrawn_ struct { + Withdrawn *ProposalState_Withdrawn `protobuf:"bytes,3,opt,name=withdrawn,proto3,oneof" json:"withdrawn,omitempty"` +} +type ProposalState_Finished_ struct { + Finished *ProposalState_Finished `protobuf:"bytes,4,opt,name=finished,proto3,oneof" json:"finished,omitempty"` +} +type ProposalState_Claimed_ struct { + Claimed *ProposalState_Claimed `protobuf:"bytes,5,opt,name=claimed,proto3,oneof" json:"claimed,omitempty"` +} + +func (*ProposalState_Voting_) isProposalState_State() {} +func (*ProposalState_Withdrawn_) isProposalState_State() {} +func (*ProposalState_Finished_) isProposalState_State() {} +func (*ProposalState_Claimed_) isProposalState_State() {} + +func (m *ProposalState) GetState() isProposalState_State { + if m != nil { + return m.State + } + return nil +} + +func (m *ProposalState) GetVoting() *ProposalState_Voting { + if x, ok := m.GetState().(*ProposalState_Voting_); ok { + return x.Voting + } + return nil +} + +func (m *ProposalState) GetWithdrawn() *ProposalState_Withdrawn { + if x, ok := m.GetState().(*ProposalState_Withdrawn_); ok { + return x.Withdrawn + } + return nil +} + +func (m *ProposalState) GetFinished() *ProposalState_Finished { + if x, ok := m.GetState().(*ProposalState_Finished_); ok { + return x.Finished + } + return nil +} + +func (m *ProposalState) GetClaimed() *ProposalState_Claimed { + if x, ok := m.GetState().(*ProposalState_Claimed_); ok { + return x.Claimed + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*ProposalState) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*ProposalState_Voting_)(nil), + (*ProposalState_Withdrawn_)(nil), + (*ProposalState_Finished_)(nil), + (*ProposalState_Claimed_)(nil), + } +} + +// Voting is in progress and the proposal has not yet concluded voting or been withdrawn. +type ProposalState_Voting struct { +} + +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} +} +func (m *ProposalState_Voting) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ProposalState_Voting) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ProposalState_Voting.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 *ProposalState_Voting) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProposalState_Voting.Merge(m, src) +} +func (m *ProposalState_Voting) XXX_Size() int { + return m.Size() +} +func (m *ProposalState_Voting) XXX_DiscardUnknown() { + xxx_messageInfo_ProposalState_Voting.DiscardUnknown(m) +} + +var xxx_messageInfo_ProposalState_Voting proto.InternalMessageInfo + +// The proposal has been withdrawn but the voting period is not yet concluded. +type ProposalState_Withdrawn struct { + // The reason for the withdrawal. + Reason string `protobuf:"bytes,1,opt,name=reason,proto3" json:"reason,omitempty"` +} + +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} +} +func (m *ProposalState_Withdrawn) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ProposalState_Withdrawn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ProposalState_Withdrawn.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 *ProposalState_Withdrawn) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProposalState_Withdrawn.Merge(m, src) +} +func (m *ProposalState_Withdrawn) XXX_Size() int { + return m.Size() +} +func (m *ProposalState_Withdrawn) XXX_DiscardUnknown() { + xxx_messageInfo_ProposalState_Withdrawn.DiscardUnknown(m) +} + +var xxx_messageInfo_ProposalState_Withdrawn proto.InternalMessageInfo + +func (m *ProposalState_Withdrawn) GetReason() string { + if m != nil { + return m.Reason + } + return "" +} + +// The voting period has ended, and the proposal has been assigned an outcome. +type ProposalState_Finished struct { + Outcome *ProposalOutcome `protobuf:"bytes,1,opt,name=outcome,proto3" json:"outcome,omitempty"` +} + +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} +} +func (m *ProposalState_Finished) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ProposalState_Finished) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ProposalState_Finished.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 *ProposalState_Finished) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProposalState_Finished.Merge(m, src) +} +func (m *ProposalState_Finished) XXX_Size() int { + return m.Size() +} +func (m *ProposalState_Finished) XXX_DiscardUnknown() { + xxx_messageInfo_ProposalState_Finished.DiscardUnknown(m) +} + +var xxx_messageInfo_ProposalState_Finished proto.InternalMessageInfo + +func (m *ProposalState_Finished) GetOutcome() *ProposalOutcome { + if m != nil { + return m.Outcome + } + return nil +} + +// The voting period has ended, and the original proposer has claimed their deposit. +type ProposalState_Claimed struct { + Outcome *ProposalOutcome `protobuf:"bytes,1,opt,name=outcome,proto3" json:"outcome,omitempty"` +} + +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} +} +func (m *ProposalState_Claimed) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ProposalState_Claimed) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ProposalState_Claimed.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 *ProposalState_Claimed) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProposalState_Claimed.Merge(m, src) +} +func (m *ProposalState_Claimed) XXX_Size() int { + return m.Size() +} +func (m *ProposalState_Claimed) XXX_DiscardUnknown() { + xxx_messageInfo_ProposalState_Claimed.DiscardUnknown(m) +} + +var xxx_messageInfo_ProposalState_Claimed proto.InternalMessageInfo + +func (m *ProposalState_Claimed) GetOutcome() *ProposalOutcome { + if m != nil { + return m.Outcome + } + return nil +} + +// The outcome of a concluded proposal. +type ProposalOutcome struct { + // Types that are valid to be assigned to Outcome: + // + // *ProposalOutcome_Passed_ + // *ProposalOutcome_Failed_ + // *ProposalOutcome_Slashed_ + Outcome isProposalOutcome_Outcome `protobuf_oneof:"outcome"` +} + +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} +} +func (m *ProposalOutcome) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ProposalOutcome) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ProposalOutcome.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 *ProposalOutcome) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProposalOutcome.Merge(m, src) +} +func (m *ProposalOutcome) XXX_Size() int { + return m.Size() +} +func (m *ProposalOutcome) XXX_DiscardUnknown() { + xxx_messageInfo_ProposalOutcome.DiscardUnknown(m) +} + +var xxx_messageInfo_ProposalOutcome proto.InternalMessageInfo + +type isProposalOutcome_Outcome interface { + isProposalOutcome_Outcome() + MarshalTo([]byte) (int, error) + Size() int +} + +type ProposalOutcome_Passed_ struct { + Passed *ProposalOutcome_Passed `protobuf:"bytes,1,opt,name=passed,proto3,oneof" json:"passed,omitempty"` +} +type ProposalOutcome_Failed_ struct { + Failed *ProposalOutcome_Failed `protobuf:"bytes,2,opt,name=failed,proto3,oneof" json:"failed,omitempty"` +} +type ProposalOutcome_Slashed_ struct { + Slashed *ProposalOutcome_Slashed `protobuf:"bytes,3,opt,name=slashed,proto3,oneof" json:"slashed,omitempty"` +} + +func (*ProposalOutcome_Passed_) isProposalOutcome_Outcome() {} +func (*ProposalOutcome_Failed_) isProposalOutcome_Outcome() {} +func (*ProposalOutcome_Slashed_) isProposalOutcome_Outcome() {} + +func (m *ProposalOutcome) GetOutcome() isProposalOutcome_Outcome { + if m != nil { + return m.Outcome + } + return nil +} + +func (m *ProposalOutcome) GetPassed() *ProposalOutcome_Passed { + if x, ok := m.GetOutcome().(*ProposalOutcome_Passed_); ok { + return x.Passed + } + return nil +} + +func (m *ProposalOutcome) GetFailed() *ProposalOutcome_Failed { + if x, ok := m.GetOutcome().(*ProposalOutcome_Failed_); ok { + return x.Failed + } + return nil +} + +func (m *ProposalOutcome) GetSlashed() *ProposalOutcome_Slashed { + if x, ok := m.GetOutcome().(*ProposalOutcome_Slashed_); ok { + return x.Slashed + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*ProposalOutcome) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*ProposalOutcome_Passed_)(nil), + (*ProposalOutcome_Failed_)(nil), + (*ProposalOutcome_Slashed_)(nil), + } +} + +// Whether or not the proposal was withdrawn. +type ProposalOutcome_Withdrawn struct { + // The reason for withdrawing the proposal during the voting period. + Reason string `protobuf:"bytes,1,opt,name=reason,proto3" json:"reason,omitempty"` +} + +func (m *ProposalOutcome_Withdrawn) Reset() { *m = ProposalOutcome_Withdrawn{} } +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} +} +func (m *ProposalOutcome_Withdrawn) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ProposalOutcome_Withdrawn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ProposalOutcome_Withdrawn.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 *ProposalOutcome_Withdrawn) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProposalOutcome_Withdrawn.Merge(m, src) +} +func (m *ProposalOutcome_Withdrawn) XXX_Size() int { + return m.Size() +} +func (m *ProposalOutcome_Withdrawn) XXX_DiscardUnknown() { + xxx_messageInfo_ProposalOutcome_Withdrawn.DiscardUnknown(m) +} + +var xxx_messageInfo_ProposalOutcome_Withdrawn proto.InternalMessageInfo + +func (m *ProposalOutcome_Withdrawn) GetReason() string { + if m != nil { + return m.Reason + } + return "" +} + +// The proposal was passed. +type ProposalOutcome_Passed struct { +} + +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} +} +func (m *ProposalOutcome_Passed) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ProposalOutcome_Passed) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ProposalOutcome_Passed.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 *ProposalOutcome_Passed) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProposalOutcome_Passed.Merge(m, src) +} +func (m *ProposalOutcome_Passed) XXX_Size() int { + return m.Size() +} +func (m *ProposalOutcome_Passed) XXX_DiscardUnknown() { + xxx_messageInfo_ProposalOutcome_Passed.DiscardUnknown(m) +} + +var xxx_messageInfo_ProposalOutcome_Passed proto.InternalMessageInfo + +// The proposal did not pass. +type ProposalOutcome_Failed struct { + // Present if the proposal was withdrawn during the voting period. + Withdrawn *ProposalOutcome_Withdrawn `protobuf:"bytes,1,opt,name=withdrawn,proto3" json:"withdrawn,omitempty"` +} + +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} +} +func (m *ProposalOutcome_Failed) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ProposalOutcome_Failed) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ProposalOutcome_Failed.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 *ProposalOutcome_Failed) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProposalOutcome_Failed.Merge(m, src) +} +func (m *ProposalOutcome_Failed) XXX_Size() int { + return m.Size() +} +func (m *ProposalOutcome_Failed) XXX_DiscardUnknown() { + xxx_messageInfo_ProposalOutcome_Failed.DiscardUnknown(m) +} + +var xxx_messageInfo_ProposalOutcome_Failed proto.InternalMessageInfo + +func (m *ProposalOutcome_Failed) GetWithdrawn() *ProposalOutcome_Withdrawn { + if m != nil { + return m.Withdrawn + } + return nil +} + +// The proposal did not pass, and was slashed. +type ProposalOutcome_Slashed struct { + // Present if the proposal was withdrawn during the voting period. + Withdrawn *ProposalOutcome_Withdrawn `protobuf:"bytes,1,opt,name=withdrawn,proto3" json:"withdrawn,omitempty"` +} + +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} +} +func (m *ProposalOutcome_Slashed) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ProposalOutcome_Slashed) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ProposalOutcome_Slashed.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 *ProposalOutcome_Slashed) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProposalOutcome_Slashed.Merge(m, src) +} +func (m *ProposalOutcome_Slashed) XXX_Size() int { + return m.Size() +} +func (m *ProposalOutcome_Slashed) XXX_DiscardUnknown() { + xxx_messageInfo_ProposalOutcome_Slashed.DiscardUnknown(m) +} + +var xxx_messageInfo_ProposalOutcome_Slashed proto.InternalMessageInfo + +func (m *ProposalOutcome_Slashed) GetWithdrawn() *ProposalOutcome_Withdrawn { + if m != nil { + return m.Withdrawn + } + return nil +} + +// A tally of votes on a proposal. +type Tally struct { + // The number of votes in favor of the proposal. + Yes uint64 `protobuf:"varint,1,opt,name=yes,proto3" json:"yes,omitempty"` + // The number of votes against the proposal. + No uint64 `protobuf:"varint,2,opt,name=no,proto3" json:"no,omitempty"` + // The number of abstentions. + Abstain uint64 `protobuf:"varint,3,opt,name=abstain,proto3" json:"abstain,omitempty"` +} + +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} +} +func (m *Tally) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Tally) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Tally.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 *Tally) XXX_Merge(src proto.Message) { + xxx_messageInfo_Tally.Merge(m, src) +} +func (m *Tally) XXX_Size() int { + return m.Size() +} +func (m *Tally) XXX_DiscardUnknown() { + xxx_messageInfo_Tally.DiscardUnknown(m) +} + +var xxx_messageInfo_Tally proto.InternalMessageInfo + +func (m *Tally) GetYes() uint64 { + if m != nil { + return m.Yes + } + return 0 +} + +func (m *Tally) GetNo() uint64 { + if m != nil { + return m.No + } + return 0 +} + +func (m *Tally) GetAbstain() uint64 { + if m != nil { + return m.Abstain + } + return 0 +} + +// A proposal to be voted upon. +type Proposal struct { + // The unique identifier of the proposal. + Id uint64 `protobuf:"varint,4,opt,name=id,proto3" json:"id,omitempty"` + // A short title for the proposal. + 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"` + DaoSpend *Proposal_DaoSpend `protobuf:"bytes,8,opt,name=dao_spend,json=daoSpend,proto3" json:"dao_spend,omitempty"` + UpgradePlan *Proposal_UpgradePlan `protobuf:"bytes,9,opt,name=upgrade_plan,json=upgradePlan,proto3" json:"upgrade_plan,omitempty"` +} + +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} +} +func (m *Proposal) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Proposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Proposal.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 *Proposal) XXX_Merge(src proto.Message) { + xxx_messageInfo_Proposal.Merge(m, src) +} +func (m *Proposal) XXX_Size() int { + return m.Size() +} +func (m *Proposal) XXX_DiscardUnknown() { + xxx_messageInfo_Proposal.DiscardUnknown(m) +} + +var xxx_messageInfo_Proposal proto.InternalMessageInfo + +func (m *Proposal) GetId() uint64 { + if m != nil { + return m.Id + } + return 0 +} + +func (m *Proposal) GetTitle() string { + if m != nil { + return m.Title + } + return "" +} + +func (m *Proposal) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +func (m *Proposal) GetSignaling() *Proposal_Signaling { + if m != nil { + return m.Signaling + } + return nil +} + +func (m *Proposal) GetEmergency() *Proposal_Emergency { + if m != nil { + return m.Emergency + } + return nil +} + +func (m *Proposal) GetParameterChange() *Proposal_ParameterChange { + if m != nil { + return m.ParameterChange + } + return nil +} + +func (m *Proposal) GetDaoSpend() *Proposal_DaoSpend { + if m != nil { + return m.DaoSpend + } + return nil +} + +func (m *Proposal) GetUpgradePlan() *Proposal_UpgradePlan { + if m != nil { + return m.UpgradePlan + } + return nil +} + +// A signaling proposal is meant to register a vote on-chain, but does not have an automatic +// effect when passed. +// +// It optionally contains a reference to a commit which contains code to upgrade the chain. +type Proposal_Signaling struct { + // The commit to be voted upon, if any is relevant. + Commit string `protobuf:"bytes,1,opt,name=commit,proto3" json:"commit,omitempty"` +} + +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} +} +func (m *Proposal_Signaling) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Proposal_Signaling) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Proposal_Signaling.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 *Proposal_Signaling) XXX_Merge(src proto.Message) { + xxx_messageInfo_Proposal_Signaling.Merge(m, src) +} +func (m *Proposal_Signaling) XXX_Size() int { + return m.Size() +} +func (m *Proposal_Signaling) XXX_DiscardUnknown() { + xxx_messageInfo_Proposal_Signaling.DiscardUnknown(m) +} + +var xxx_messageInfo_Proposal_Signaling proto.InternalMessageInfo + +func (m *Proposal_Signaling) GetCommit() string { + if m != nil { + return m.Commit + } + return "" +} + +// An emergency proposal can be passed instantaneously by a 2/3 majority of validators, without +// waiting for the voting period to expire. +// +// If the boolean `halt_chain` is set to `true`, then the chain will halt immediately when the +// proposal is passed. +type Proposal_Emergency struct { + // If `true`, the chain will halt immediately when the proposal is passed. + HaltChain bool `protobuf:"varint,1,opt,name=halt_chain,json=haltChain,proto3" json:"halt_chain,omitempty"` +} + +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} +} +func (m *Proposal_Emergency) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Proposal_Emergency) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Proposal_Emergency.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 *Proposal_Emergency) XXX_Merge(src proto.Message) { + xxx_messageInfo_Proposal_Emergency.Merge(m, src) +} +func (m *Proposal_Emergency) XXX_Size() int { + return m.Size() +} +func (m *Proposal_Emergency) XXX_DiscardUnknown() { + xxx_messageInfo_Proposal_Emergency.DiscardUnknown(m) +} + +var xxx_messageInfo_Proposal_Emergency proto.InternalMessageInfo + +func (m *Proposal_Emergency) GetHaltChain() bool { + if m != nil { + return m.HaltChain + } + return false +} + +// A parameter change proposal describes a replacement of the chain parameters, which should take +// effect when the proposal is passed. +type Proposal_ParameterChange struct { + // The old chain parameters to be replaced: even if the proposal passes, the update will not be + // applied if the chain parameters have changed *at all* from these chain parameters. Usually, + // this should be set to the current chain parameters at time of proposal. + OldParameters *v1alpha15.ChainParameters `protobuf:"bytes,1,opt,name=old_parameters,json=oldParameters,proto3" json:"old_parameters,omitempty"` + // The new chain parameters to be set: the *entire* chain parameters will be replaced with these + // at the time the proposal is passed. + NewParameters *v1alpha15.ChainParameters `protobuf:"bytes,2,opt,name=new_parameters,json=newParameters,proto3" json:"new_parameters,omitempty"` +} + +func (m *Proposal_ParameterChange) Reset() { *m = Proposal_ParameterChange{} } +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} +} +func (m *Proposal_ParameterChange) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Proposal_ParameterChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Proposal_ParameterChange.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 *Proposal_ParameterChange) XXX_Merge(src proto.Message) { + xxx_messageInfo_Proposal_ParameterChange.Merge(m, src) +} +func (m *Proposal_ParameterChange) XXX_Size() int { + return m.Size() +} +func (m *Proposal_ParameterChange) XXX_DiscardUnknown() { + xxx_messageInfo_Proposal_ParameterChange.DiscardUnknown(m) +} + +var xxx_messageInfo_Proposal_ParameterChange proto.InternalMessageInfo + +func (m *Proposal_ParameterChange) GetOldParameters() *v1alpha15.ChainParameters { + if m != nil { + return m.OldParameters + } + return nil +} + +func (m *Proposal_ParameterChange) GetNewParameters() *v1alpha15.ChainParameters { + if m != nil { + return m.NewParameters + } + return nil +} + +// A DAO spend proposal describes zero or more transactions to execute on behalf of the DAO, with +// access to its funds, and zero or more scheduled transactions from previous passed proposals to +// cancel. +type Proposal_DaoSpend struct { + // The transaction plan to be executed at the time the proposal is passed. This must be a + // transaction plan which can be executed by the DAO, which means it can't require any witness + // data or authorization signatures, but it may use the `DaoSpend` action. + TransactionPlan *types.Any `protobuf:"bytes,2,opt,name=transaction_plan,json=transactionPlan,proto3" json:"transaction_plan,omitempty"` +} + +func (m *Proposal_DaoSpend) Reset() { *m = Proposal_DaoSpend{} } +func (m *Proposal_DaoSpend) String() string { return proto.CompactTextString(m) } +func (*Proposal_DaoSpend) ProtoMessage() {} +func (*Proposal_DaoSpend) Descriptor() ([]byte, []int) { + return fileDescriptor_67f269dcda22019a, []int{18, 3} +} +func (m *Proposal_DaoSpend) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Proposal_DaoSpend) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Proposal_DaoSpend.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 *Proposal_DaoSpend) XXX_Merge(src proto.Message) { + xxx_messageInfo_Proposal_DaoSpend.Merge(m, src) +} +func (m *Proposal_DaoSpend) XXX_Size() int { + return m.Size() +} +func (m *Proposal_DaoSpend) XXX_DiscardUnknown() { + xxx_messageInfo_Proposal_DaoSpend.DiscardUnknown(m) +} + +var xxx_messageInfo_Proposal_DaoSpend proto.InternalMessageInfo + +func (m *Proposal_DaoSpend) GetTransactionPlan() *types.Any { + if m != nil { + return m.TransactionPlan + } + return nil +} + +// An upgrade plan describes a candidate upgrade to be executed at a certain height. If passed, the chain +// will halt at the specified height. +type Proposal_UpgradePlan struct { + Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` +} + +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} +} +func (m *Proposal_UpgradePlan) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Proposal_UpgradePlan) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Proposal_UpgradePlan.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 *Proposal_UpgradePlan) XXX_Merge(src proto.Message) { + xxx_messageInfo_Proposal_UpgradePlan.Merge(m, src) +} +func (m *Proposal_UpgradePlan) XXX_Size() int { + return m.Size() +} +func (m *Proposal_UpgradePlan) XXX_DiscardUnknown() { + xxx_messageInfo_Proposal_UpgradePlan.DiscardUnknown(m) +} + +var xxx_messageInfo_Proposal_UpgradePlan proto.InternalMessageInfo + +func (m *Proposal_UpgradePlan) GetHeight() uint64 { + if m != nil { + return m.Height + } + return 0 +} + +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"` +} + +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} +} +func (m *ProposalInfoRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ProposalInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ProposalInfoRequest.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 *ProposalInfoRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProposalInfoRequest.Merge(m, src) +} +func (m *ProposalInfoRequest) XXX_Size() int { + return m.Size() +} +func (m *ProposalInfoRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ProposalInfoRequest.DiscardUnknown(m) +} + +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 + } + return 0 +} + +type ProposalInfoResponse struct { + // The block height at which the proposal started voting. + StartBlockHeight uint64 `protobuf:"varint,1,opt,name=start_block_height,json=startBlockHeight,proto3" json:"start_block_height,omitempty"` + // The position of the state commitment tree at which the proposal is considered to have started voting. + StartPosition uint64 `protobuf:"varint,2,opt,name=start_position,json=startPosition,proto3" json:"start_position,omitempty"` +} + +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} +} +func (m *ProposalInfoResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ProposalInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ProposalInfoResponse.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 *ProposalInfoResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProposalInfoResponse.Merge(m, src) +} +func (m *ProposalInfoResponse) XXX_Size() int { + return m.Size() +} +func (m *ProposalInfoResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ProposalInfoResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ProposalInfoResponse proto.InternalMessageInfo + +func (m *ProposalInfoResponse) GetStartBlockHeight() uint64 { + if m != nil { + return m.StartBlockHeight + } + return 0 +} + +func (m *ProposalInfoResponse) GetStartPosition() uint64 { + if m != nil { + return m.StartPosition + } + return 0 +} + +// 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"` +} + +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{21} +} +func (m *ProposalRateDataRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ProposalRateDataRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ProposalRateDataRequest.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 *ProposalRateDataRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProposalRateDataRequest.Merge(m, src) +} +func (m *ProposalRateDataRequest) XXX_Size() int { + return m.Size() +} +func (m *ProposalRateDataRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ProposalRateDataRequest.DiscardUnknown(m) +} + +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 + } + return 0 +} + +// 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"` +} + +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{22} +} +func (m *ProposalRateDataResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ProposalRateDataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ProposalRateDataResponse.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 *ProposalRateDataResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProposalRateDataResponse.Merge(m, src) +} +func (m *ProposalRateDataResponse) XXX_Size() int { + return m.Size() +} +func (m *ProposalRateDataResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ProposalRateDataResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ProposalRateDataResponse proto.InternalMessageInfo + +func (m *ProposalRateDataResponse) GetRateData() *v1alpha16.RateData { + if m != nil { + return m.RateData + } + return nil +} + +// Governance configuration data. +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"` + // 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"` + // The threshold for a proposal to pass voting, as a ratio of "yes" votes over "no" votes. + ProposalPassThreshold string `protobuf:"bytes,4,opt,name=proposal_pass_threshold,json=proposalPassThreshold,proto3" json:"proposal_pass_threshold,omitempty"` + // The threshold for a proposal to be slashed, regardless of whether the "yes" and "no" votes + // would have passed it, as a ratio of "no" votes over all total votes. + ProposalSlashThreshold string `protobuf:"bytes,5,opt,name=proposal_slash_threshold,json=proposalSlashThreshold,proto3" json:"proposal_slash_threshold,omitempty"` +} + +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{23} +} +func (m *GovernanceParameters) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GovernanceParameters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GovernanceParameters.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 *GovernanceParameters) XXX_Merge(src proto.Message) { + xxx_messageInfo_GovernanceParameters.Merge(m, src) +} +func (m *GovernanceParameters) XXX_Size() int { + return m.Size() +} +func (m *GovernanceParameters) XXX_DiscardUnknown() { + xxx_messageInfo_GovernanceParameters.DiscardUnknown(m) +} + +var xxx_messageInfo_GovernanceParameters proto.InternalMessageInfo + +func (m *GovernanceParameters) GetProposalVotingBlocks() uint64 { + if m != nil { + return m.ProposalVotingBlocks + } + return 0 +} + +func (m *GovernanceParameters) GetProposalDepositAmount() *v1alpha1.Amount { + if m != nil { + return m.ProposalDepositAmount + } + return nil +} + +func (m *GovernanceParameters) GetProposalValidQuorum() string { + if m != nil { + return m.ProposalValidQuorum + } + return "" +} + +func (m *GovernanceParameters) GetProposalPassThreshold() string { + if m != nil { + return m.ProposalPassThreshold + } + return "" +} + +func (m *GovernanceParameters) GetProposalSlashThreshold() string { + if m != nil { + return m.ProposalSlashThreshold + } + return "" +} + +// Governance genesis state. +type GenesisContent struct { + // Governance parameters. + GovernanceParams *GovernanceParameters `protobuf:"bytes,1,opt,name=governance_params,json=governanceParams,proto3" json:"governance_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_67f269dcda22019a, []int{24} +} +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) GetGovernanceParams() *GovernanceParameters { + if m != nil { + return m.GovernanceParams + } + return nil +} + +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((*DaoDeposit)(nil), "penumbra.core.component.governance.v1alpha1.DaoDeposit") + proto.RegisterType((*DaoSpend)(nil), "penumbra.core.component.governance.v1alpha1.DaoSpend") + proto.RegisterType((*DaoOutput)(nil), "penumbra.core.component.governance.v1alpha1.DaoOutput") + 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_DaoSpend)(nil), "penumbra.core.component.governance.v1alpha1.Proposal.DaoSpend") + proto.RegisterType((*Proposal_UpgradePlan)(nil), "penumbra.core.component.governance.v1alpha1.Proposal.UpgradePlan") + proto.RegisterType((*ProposalInfoRequest)(nil), "penumbra.core.component.governance.v1alpha1.ProposalInfoRequest") + proto.RegisterType((*ProposalInfoResponse)(nil), "penumbra.core.component.governance.v1alpha1.ProposalInfoResponse") + proto.RegisterType((*ProposalRateDataRequest)(nil), "penumbra.core.component.governance.v1alpha1.ProposalRateDataRequest") + proto.RegisterType((*ProposalRateDataResponse)(nil), "penumbra.core.component.governance.v1alpha1.ProposalRateDataResponse") + proto.RegisterType((*GovernanceParameters)(nil), "penumbra.core.component.governance.v1alpha1.GovernanceParameters") + proto.RegisterType((*GenesisContent)(nil), "penumbra.core.component.governance.v1alpha1.GenesisContent") +} + +func init() { + proto.RegisterFile("penumbra/core/component/governance/v1alpha1/governance.proto", fileDescriptor_67f269dcda22019a) +} + +var fileDescriptor_67f269dcda22019a = []byte{ + // 2158 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x59, 0x5b, 0x6f, 0x1b, 0xc7, + 0xf5, 0xd7, 0x52, 0xbc, 0x1e, 0xdd, 0xe8, 0xb1, 0x92, 0x30, 0xc4, 0xff, 0xaf, 0x1a, 0x9b, 0xa4, + 0x30, 0x92, 0x94, 0xb4, 0x95, 0x34, 0x4e, 0xd5, 0x20, 0x89, 0x48, 0xc9, 0xb6, 0xea, 0xc6, 0xa6, + 0x97, 0xb6, 0xd2, 0x3a, 0x4e, 0xb6, 0x43, 0xee, 0x88, 0xdc, 0x6a, 0x39, 0xb3, 0xde, 0x9d, 0x95, + 0xc1, 0x3e, 0xf5, 0xa9, 0xcf, 0x05, 0x12, 0xa0, 0x4f, 0x7d, 0x68, 0x1f, 0xfb, 0xd0, 0x0f, 0x90, + 0x4f, 0x10, 0x14, 0x45, 0x91, 0xa2, 0x28, 0xd0, 0xa7, 0xa2, 0xb0, 0x1f, 0x0a, 0xf4, 0xa9, 0x1f, + 0xa1, 0x98, 0xcb, 0x5e, 0x48, 0x5b, 0xaa, 0x49, 0x26, 0x41, 0x5f, 0x04, 0xce, 0xd9, 0x73, 0x7e, + 0xe7, 0xcc, 0xb9, 0xcd, 0x99, 0x11, 0xbc, 0xe3, 0x13, 0x1a, 0x8d, 0x7a, 0x01, 0x6e, 0xf6, 0x59, + 0x40, 0x9a, 0x7d, 0x36, 0xf2, 0x19, 0x25, 0x94, 0x37, 0x07, 0xec, 0x84, 0x04, 0x14, 0xd3, 0x3e, + 0x69, 0x9e, 0x5c, 0xc6, 0x9e, 0x3f, 0xc4, 0x97, 0x33, 0xb4, 0x86, 0x1f, 0x30, 0xce, 0xd0, 0x6b, + 0xb1, 0x74, 0x43, 0x48, 0x37, 0x12, 0xe9, 0x46, 0x86, 0x33, 0x96, 0xae, 0xbf, 0x38, 0x60, 0x6c, + 0xe0, 0x91, 0xa6, 0x14, 0xed, 0x45, 0x47, 0x4d, 0x4c, 0xc7, 0x0a, 0xa7, 0xbe, 0x93, 0x5a, 0x11, + 0x8c, 0x7d, 0xce, 0x9a, 0x0e, 0xe9, 0xe3, 0xa3, 0x37, 0xae, 0x5c, 0xb1, 0x03, 0x27, 0xc4, 0xa9, + 0x01, 0x13, 0x64, 0x2d, 0xfb, 0xf2, 0xe4, 0x0e, 0x68, 0x34, 0x4a, 0xf9, 0x69, 0x34, 0xd2, 0x5c, + 0x17, 0x27, 0xb9, 0x70, 0x18, 0x12, 0x9e, 0xf2, 0xc9, 0xa5, 0xe6, 0xfc, 0xf6, 0x24, 0xe7, 0x31, + 0x19, 0x87, 0x29, 0xa3, 0x58, 0x69, 0xbe, 0xd6, 0x69, 0x9e, 0x0b, 0x87, 0x2e, 0xf1, 0x1c, 0xe2, + 0xd8, 0x3e, 0x63, 0x5e, 0x2a, 0x3a, 0x41, 0xd6, 0x18, 0xdb, 0xa7, 0x62, 0x70, 0x7c, 0x9c, 0x71, + 0xbc, 0x5c, 0xfe, 0x37, 0x99, 0xfe, 0x10, 0xbb, 0x34, 0x95, 0x91, 0x4b, 0x25, 0x63, 0xbe, 0x0e, + 0x9b, 0xf7, 0x6e, 0xec, 0x11, 0x8f, 0x0c, 0x30, 0x67, 0xc1, 0x21, 0xe3, 0xa4, 0x13, 0x30, 0x76, + 0x84, 0x36, 0xa1, 0xe0, 0x52, 0x4a, 0x82, 0x9a, 0x71, 0xc1, 0xb8, 0xb8, 0x6a, 0xa9, 0x85, 0xf9, + 0x7b, 0x03, 0xd6, 0x3b, 0x01, 0xf3, 0x59, 0x88, 0xbd, 0x6e, 0xd4, 0x1b, 0xb9, 0x1c, 0xdd, 0x86, + 0xb2, 0xaf, 0x29, 0x92, 0x77, 0x65, 0xfb, 0xbb, 0x8d, 0x19, 0x62, 0xdf, 0x88, 0xe1, 0xac, 0x04, + 0x06, 0x1d, 0xc0, 0xba, 0x43, 0x7c, 0x16, 0xba, 0xdc, 0xc6, 0x23, 0x16, 0x51, 0x5e, 0x5b, 0x96, + 0xc0, 0xe6, 0x14, 0xb0, 0x88, 0x61, 0x82, 0xb3, 0x2b, 0x39, 0xad, 0x35, 0x2d, 0xa9, 0x96, 0xe6, + 0x55, 0xa8, 0xc6, 0x0a, 0x3e, 0x74, 0xf9, 0xd0, 0x09, 0xf0, 0x43, 0x54, 0x9f, 0xb2, 0x38, 0x9f, + 0x51, 0xfd, 0x3c, 0x14, 0x03, 0x82, 0x43, 0x46, 0x6b, 0xb9, 0x0b, 0xc6, 0xc5, 0x8a, 0xa5, 0x57, + 0xe6, 0x5f, 0x0d, 0xd8, 0x8c, 0x81, 0xf6, 0x94, 0x86, 0xb6, 0x87, 0xdd, 0xd1, 0x99, 0x60, 0x4f, + 0xee, 0x23, 0x37, 0xe7, 0x3e, 0xd0, 0x21, 0x94, 0x58, 0xc4, 0xfb, 0x6c, 0x44, 0xb4, 0x2f, 0xde, + 0x99, 0xcb, 0xc9, 0xb7, 0x14, 0x86, 0x15, 0x83, 0x99, 0x9f, 0x1b, 0xb0, 0x76, 0x88, 0x3d, 0xd7, + 0x89, 0xa3, 0x8f, 0x2c, 0xc8, 0xf7, 0x98, 0x33, 0xd6, 0xb1, 0x7c, 0x77, 0x26, 0x35, 0x13, 0x48, + 0x2d, 0xe6, 0x8c, 0x2d, 0x89, 0x85, 0xee, 0x42, 0x19, 0x47, 0x7c, 0x68, 0x87, 0xee, 0x40, 0xbb, + 0x60, 0x27, 0x83, 0x2b, 0xeb, 0xba, 0x31, 0x59, 0xc0, 0x09, 0x64, 0xd7, 0x27, 0xd4, 0xd9, 0x8d, + 0xf8, 0xb0, 0xeb, 0x0e, 0x28, 0xe6, 0x51, 0x40, 0xac, 0x12, 0x56, 0x4b, 0xf3, 0x3b, 0x70, 0x7e, + 0x42, 0xa3, 0x25, 0x63, 0x95, 0x89, 0xa1, 0x31, 0x11, 0xc3, 0x7f, 0xe7, 0xe0, 0xdc, 0x13, 0x16, + 0x9e, 0x19, 0xc0, 0x7d, 0xc8, 0x9f, 0x30, 0x4e, 0xb4, 0xcd, 0x97, 0x67, 0xf3, 0x85, 0x30, 0x48, + 0x8a, 0xa3, 0x1b, 0xb0, 0xea, 0x3a, 0x84, 0x72, 0x97, 0x8f, 0xed, 0x63, 0x32, 0xd6, 0x11, 0xbc, + 0x38, 0x05, 0x27, 0x1b, 0x48, 0x22, 0x7e, 0xa0, 0x05, 0x6e, 0x90, 0xb1, 0xb5, 0xe2, 0xa6, 0x0b, + 0x74, 0x1b, 0xd6, 0x53, 0x75, 0x12, 0x2e, 0x2f, 0xe1, 0x5e, 0x3d, 0x13, 0xee, 0x5a, 0x22, 0x22, + 0x00, 0xd7, 0x06, 0xd9, 0x25, 0xfa, 0x51, 0xe2, 0xb0, 0x82, 0x84, 0x7a, 0x7f, 0xfe, 0xa0, 0xab, + 0x10, 0x24, 0x2e, 0xff, 0x34, 0x07, 0x6b, 0x13, 0xcd, 0x65, 0xa1, 0xf4, 0x9a, 0x40, 0xfa, 0xda, + 0xd3, 0x0b, 0x7d, 0x08, 0x05, 0x5f, 0xf4, 0x42, 0x1d, 0xaf, 0xdd, 0x99, 0x6c, 0x7d, 0x5a, 0x53, + 0xb5, 0x14, 0x9e, 0xf9, 0x97, 0x1c, 0x9c, 0x7b, 0x62, 0x2f, 0x67, 0x26, 0xe2, 0x2b, 0xb0, 0x1e, + 0x72, 0x1c, 0x70, 0x5b, 0xf6, 0x04, 0x57, 0xb7, 0xa7, 0xbc, 0xb5, 0x26, 0xa9, 0x1d, 0x4d, 0x4c, + 0xf2, 0x75, 0x79, 0xb1, 0x7c, 0xfd, 0x1e, 0x14, 0x4e, 0xb0, 0x17, 0x11, 0x9d, 0x59, 0x2f, 0x4d, + 0xe1, 0xa8, 0x23, 0x31, 0x1b, 0xff, 0x88, 0x58, 0x4a, 0x02, 0xdd, 0x80, 0x8d, 0x88, 0xf6, 0x18, + 0x15, 0xa7, 0x99, 0xee, 0x79, 0x85, 0x67, 0xee, 0x79, 0xeb, 0xb1, 0xa8, 0x6e, 0x7a, 0xff, 0x07, + 0x15, 0x1a, 0x79, 0x9e, 0x7b, 0xe4, 0x92, 0xa0, 0x56, 0x94, 0xe7, 0x50, 0x4a, 0x40, 0xeb, 0x90, + 0x0b, 0x8e, 0x6b, 0x25, 0x49, 0xce, 0x05, 0xc7, 0xe6, 0x67, 0xf9, 0x29, 0xaf, 0x1e, 0xba, 0xe4, + 0x21, 0xea, 0x41, 0xe9, 0xc4, 0x0d, 0xdd, 0x9e, 0x47, 0x74, 0xca, 0x5d, 0x9d, 0x3f, 0xe5, 0x04, + 0x60, 0xe3, 0x50, 0xa1, 0x5d, 0x5f, 0xb2, 0x62, 0x60, 0x64, 0x43, 0x91, 0xf9, 0xf8, 0x41, 0x14, + 0x37, 0x8a, 0xfd, 0x05, 0x55, 0xdc, 0x92, 0x60, 0xd7, 0x97, 0x2c, 0x0d, 0x5b, 0xff, 0xdc, 0x80, + 0x92, 0xd6, 0x8b, 0xb0, 0x38, 0x54, 0xb4, 0x84, 0x2d, 0xa3, 0x6d, 0x3c, 0x91, 0xf2, 0x33, 0x2a, + 0x15, 0x87, 0x4d, 0xb6, 0x46, 0x7f, 0x08, 0x79, 0x9a, 0xb6, 0xbd, 0xb7, 0x4f, 0x05, 0x9e, 0x9c, + 0x5b, 0x12, 0xec, 0x9b, 0x7a, 0x1f, 0x96, 0x44, 0xa9, 0x1f, 0x43, 0x51, 0x6d, 0xe8, 0x1b, 0x30, + 0xbd, 0x55, 0x9d, 0x56, 0x61, 0xfe, 0x73, 0x79, 0x2a, 0x2d, 0x3a, 0x1e, 0xa6, 0xff, 0x43, 0xc5, + 0x76, 0x17, 0x56, 0xe4, 0x0c, 0xe7, 0xd8, 0xd2, 0xe7, 0xaa, 0xe4, 0xde, 0x9c, 0xc7, 0xe7, 0x16, + 0x28, 0x20, 0xf1, 0x1b, 0x5d, 0x82, 0xcd, 0x0c, 0x6c, 0xba, 0x95, 0x82, 0xdc, 0x0a, 0x4a, 0x39, + 0x93, 0xfd, 0x3c, 0xa5, 0x74, 0x8b, 0x73, 0x97, 0xee, 0x16, 0x40, 0x80, 0xa9, 0xc3, 0x46, 0xee, + 0xcf, 0x48, 0xa0, 0x8b, 0x34, 0x43, 0x41, 0x17, 0xa1, 0x2a, 0x7b, 0xa1, 0xdd, 0xf3, 0x5c, 0xea, + 0xb8, 0x74, 0x60, 0x07, 0xb5, 0xb2, 0xe4, 0x5a, 0x97, 0xf4, 0x96, 0x26, 0x5b, 0x4f, 0xe1, 0x0c, + 0x6b, 0x95, 0xa7, 0x70, 0x76, 0xcd, 0x6b, 0x00, 0x7b, 0x98, 0xe9, 0xe9, 0x2c, 0x6d, 0x62, 0xc6, + 0xac, 0x4d, 0xcc, 0xdc, 0x87, 0xf2, 0x1e, 0x66, 0xf2, 0x68, 0x58, 0x04, 0xe6, 0x17, 0x06, 0x54, + 0xf6, 0x30, 0xbb, 0x15, 0x71, 0x3f, 0x5a, 0xc4, 0x1e, 0xf4, 0x2e, 0x94, 0xb0, 0xe3, 0x04, 0x24, + 0x0c, 0x75, 0x49, 0xbe, 0x7c, 0xe6, 0x59, 0xbf, 0xab, 0x78, 0xad, 0x58, 0xc8, 0xfc, 0xb5, 0x01, + 0x79, 0x59, 0xd8, 0x3f, 0xd0, 0x29, 0x2b, 0x4c, 0x58, 0xdf, 0x7e, 0x6b, 0xe6, 0x94, 0xcd, 0xe4, + 0xad, 0x79, 0xa0, 0x31, 0x37, 0xa1, 0x7a, 0x78, 0xeb, 0xce, 0xbe, 0x7d, 0xf7, 0x66, 0xb7, 0xb3, + 0xdf, 0x3e, 0xb8, 0x7a, 0xb0, 0xbf, 0x57, 0x5d, 0x42, 0x55, 0x58, 0x95, 0xd4, 0xdd, 0x56, 0xf7, + 0xce, 0xee, 0xc1, 0xcd, 0xaa, 0x81, 0x56, 0xa1, 0x2c, 0x29, 0x3f, 0xde, 0xef, 0x56, 0x73, 0x68, + 0x05, 0x4a, 0x72, 0x75, 0xf3, 0x56, 0x75, 0xd9, 0xfc, 0xac, 0x00, 0x6b, 0xc9, 0xad, 0x82, 0x63, + 0x4e, 0xd0, 0x47, 0x50, 0x3c, 0x61, 0xdc, 0xa5, 0xf1, 0x79, 0xbe, 0x3b, 0xd7, 0xb4, 0x2b, 0xb1, + 0x84, 0xcd, 0x2e, 0x1d, 0x88, 0x6e, 0xaa, 0x20, 0x91, 0x03, 0x95, 0x87, 0xfa, 0x2e, 0x40, 0x75, + 0xf5, 0xee, 0x2d, 0x80, 0x1f, 0xdf, 0x2b, 0xe8, 0xf5, 0x25, 0x2b, 0x05, 0x46, 0x18, 0xca, 0x47, + 0x2e, 0x75, 0xc3, 0x21, 0x71, 0x74, 0x51, 0xb7, 0x17, 0x50, 0x72, 0x55, 0x43, 0x5d, 0x5f, 0xb2, + 0x12, 0x58, 0xf4, 0x09, 0x94, 0xfa, 0xe2, 0x12, 0x42, 0x1c, 0x7d, 0xc8, 0xb6, 0x16, 0xd0, 0xd0, + 0x56, 0x48, 0xe2, 0x5c, 0xd3, 0xa0, 0xf5, 0x32, 0x14, 0x95, 0xf3, 0xea, 0x2f, 0x41, 0x25, 0xd9, + 0xe6, 0x69, 0xf3, 0x75, 0xbd, 0x07, 0xe5, 0xd8, 0xcc, 0xec, 0x7d, 0xc5, 0xf8, 0x0a, 0xef, 0x2b, + 0x75, 0x0c, 0x25, 0x6d, 0xe8, 0xd7, 0xa5, 0xa2, 0x55, 0x82, 0x42, 0x28, 0x3c, 0x62, 0xfe, 0x31, + 0x0f, 0x1b, 0x53, 0x5c, 0xe8, 0x63, 0x28, 0xfa, 0xa2, 0x54, 0x1d, 0xad, 0xb3, 0xbd, 0x88, 0xce, + 0x46, 0x47, 0x42, 0x89, 0xd4, 0x54, 0xa0, 0x02, 0xfe, 0x08, 0xbb, 0x1e, 0x71, 0x74, 0xde, 0x2f, + 0x06, 0x7f, 0x55, 0x42, 0x09, 0x78, 0x05, 0x8a, 0x7e, 0x02, 0xa5, 0xd0, 0xc3, 0x32, 0x25, 0x17, + 0xc9, 0xfb, 0x18, 0xbf, 0xab, 0xb0, 0x44, 0xca, 0x68, 0xd8, 0x67, 0x4b, 0x94, 0x32, 0x14, 0xd5, + 0xce, 0xeb, 0x14, 0x8a, 0xca, 0xc8, 0xc9, 0xa2, 0x9c, 0x67, 0x52, 0x9b, 0x36, 0x2e, 0x31, 0x23, + 0x53, 0x94, 0x75, 0x06, 0x25, 0x6d, 0xf4, 0x37, 0xa3, 0xb0, 0x55, 0x49, 0x92, 0xd4, 0x6c, 0x43, + 0xe1, 0x0e, 0xf6, 0xbc, 0x31, 0xaa, 0xc2, 0xf2, 0x98, 0x84, 0x7a, 0xec, 0x10, 0x3f, 0xc5, 0x28, + 0x4b, 0x99, 0x9e, 0x32, 0x72, 0x94, 0xa1, 0x1a, 0x94, 0x70, 0x2f, 0xe4, 0xd8, 0x55, 0xfd, 0x29, + 0x6f, 0xc5, 0x4b, 0xf3, 0xef, 0x25, 0x28, 0xc7, 0x8a, 0x85, 0x98, 0xab, 0x9a, 0x4b, 0xde, 0xca, + 0xb9, 0x0e, 0xda, 0x84, 0x02, 0x77, 0xb9, 0x9e, 0x74, 0x2b, 0x96, 0x5a, 0xa0, 0x0b, 0xb0, 0xe2, + 0x90, 0xb0, 0x1f, 0xb8, 0x7e, 0x32, 0xcb, 0x54, 0xac, 0x2c, 0x09, 0x7d, 0x0c, 0x95, 0x50, 0x5c, + 0x7f, 0x3c, 0xd1, 0x70, 0x55, 0x27, 0x79, 0x6f, 0x2e, 0x57, 0x34, 0xba, 0x31, 0x8c, 0x95, 0x22, + 0x0a, 0x78, 0x32, 0x22, 0xc1, 0x80, 0xd0, 0xfe, 0x58, 0x8f, 0x14, 0x73, 0xc2, 0xef, 0xc7, 0x30, + 0x56, 0x8a, 0x88, 0x7c, 0xa8, 0xfa, 0x38, 0xc0, 0x23, 0xc2, 0x49, 0x60, 0xf7, 0x87, 0x98, 0x0e, + 0x88, 0x1c, 0x38, 0x66, 0x9d, 0xc3, 0x13, 0x2d, 0x9d, 0x18, 0xad, 0x2d, 0xc1, 0xac, 0x0d, 0x7f, + 0x92, 0x80, 0x3e, 0x82, 0x8a, 0x83, 0x99, 0x1d, 0x8a, 0x01, 0x41, 0x4e, 0x2d, 0xb3, 0x5e, 0x64, + 0x13, 0x55, 0xf1, 0x98, 0x61, 0x95, 0x9d, 0x78, 0xe0, 0x70, 0x60, 0x35, 0xf2, 0x07, 0x01, 0x76, + 0x88, 0xed, 0x7b, 0x98, 0xca, 0x59, 0x67, 0xde, 0x03, 0xb0, 0x71, 0x57, 0x21, 0x89, 0x91, 0xd7, + 0x5a, 0x89, 0xd2, 0x85, 0xa8, 0xd3, 0x24, 0x56, 0xa2, 0x4e, 0xfb, 0x6c, 0x34, 0x72, 0x79, 0x5c, + 0xa7, 0x6a, 0x55, 0x7f, 0x15, 0x2a, 0x89, 0xc7, 0xd1, 0xff, 0x03, 0x0c, 0xb1, 0xc7, 0x6d, 0xf9, + 0x78, 0x28, 0x19, 0xcb, 0x56, 0x45, 0x50, 0xda, 0x82, 0x50, 0xff, 0xb3, 0x01, 0x1b, 0x53, 0x8e, + 0x43, 0x9f, 0xc0, 0x3a, 0xf3, 0x1c, 0x3b, 0x71, 0x5f, 0xa8, 0xeb, 0xec, 0xca, 0xa9, 0x9b, 0x51, + 0x2f, 0x93, 0xc9, 0x3e, 0x24, 0x74, 0x82, 0x1a, 0x5a, 0x6b, 0xcc, 0x73, 0xd2, 0xa5, 0xc0, 0xa7, + 0xe4, 0x61, 0x16, 0x3f, 0xb7, 0x20, 0x3e, 0x25, 0x0f, 0xd3, 0x65, 0xfd, 0x46, 0x66, 0x0e, 0x7c, + 0x0f, 0xaa, 0x3c, 0xc0, 0x34, 0xc4, 0x7d, 0x51, 0x32, 0x2a, 0x34, 0x4a, 0xdb, 0x66, 0x43, 0xbd, + 0x5e, 0x37, 0xe2, 0xd7, 0xeb, 0xc6, 0x2e, 0x1d, 0x5b, 0x1b, 0x19, 0x6e, 0xe9, 0xf1, 0x57, 0x60, + 0x25, 0x13, 0x0d, 0xe1, 0xf3, 0x21, 0x71, 0x07, 0x43, 0xae, 0xfb, 0x80, 0x5e, 0x99, 0xb7, 0xe1, + 0x7c, 0x1c, 0xbd, 0x03, 0x7a, 0xc4, 0x2c, 0xf2, 0x20, 0x22, 0x21, 0x47, 0x2f, 0x42, 0x59, 0xda, + 0x6e, 0xbb, 0x8e, 0x0e, 0x52, 0x49, 0xae, 0x0f, 0x1c, 0xf4, 0x2d, 0x58, 0x89, 0xaf, 0x2e, 0xe2, + 0xab, 0xea, 0x22, 0x10, 0x93, 0x0e, 0x1c, 0xf3, 0x38, 0x7d, 0xba, 0x54, 0x90, 0xa1, 0xcf, 0x68, + 0x48, 0xd0, 0xeb, 0x80, 0xd4, 0x3d, 0xa7, 0xe7, 0xb1, 0xfe, 0xb1, 0x3d, 0x61, 0x4e, 0x55, 0x7e, + 0x69, 0x89, 0x0f, 0xd7, 0x25, 0xfd, 0x19, 0x6f, 0x45, 0xe6, 0x5d, 0x78, 0x21, 0x79, 0xd1, 0xc5, + 0x9c, 0xec, 0x61, 0x8e, 0xbf, 0x8a, 0x3d, 0xb8, 0x50, 0x7b, 0x12, 0x56, 0xef, 0xe3, 0x03, 0xa8, + 0x04, 0x98, 0x13, 0xdb, 0xc1, 0x1c, 0xeb, 0x0c, 0xbb, 0x74, 0xfa, 0xfd, 0x49, 0xbe, 0x97, 0x27, + 0x19, 0x90, 0x80, 0x95, 0x03, 0xfd, 0xcb, 0xfc, 0x53, 0x0e, 0x36, 0xd3, 0xe7, 0xb2, 0x4c, 0xba, + 0xbd, 0x09, 0xcf, 0x27, 0x46, 0xaa, 0x51, 0x52, 0x79, 0x2e, 0x6e, 0xe5, 0x9b, 0xf1, 0x57, 0x35, + 0x34, 0x49, 0xe7, 0x85, 0xe8, 0x1e, 0xbc, 0x90, 0x48, 0xcd, 0xfd, 0x1a, 0xfc, 0x9c, 0x3f, 0xf9, + 0xf6, 0xac, 0x6f, 0x59, 0xdb, 0xf0, 0x5c, 0x6a, 0x11, 0xf6, 0x5c, 0xc7, 0x7e, 0x10, 0xb1, 0x20, + 0x1a, 0xc9, 0x53, 0xa3, 0x62, 0x9d, 0x4f, 0x0c, 0x12, 0xdf, 0x6e, 0xcb, 0x4f, 0xe8, 0xad, 0x8c, + 0x3d, 0x62, 0xea, 0xb0, 0xf9, 0x30, 0x20, 0xe1, 0x90, 0x79, 0xea, 0x24, 0xa9, 0xa4, 0xba, 0xc4, + 0x19, 0x7d, 0x27, 0xfe, 0x88, 0xde, 0x86, 0x5a, 0x22, 0x27, 0x4f, 0xfb, 0x8c, 0x60, 0x41, 0x0a, + 0x26, 0xde, 0x91, 0x47, 0x6c, 0x22, 0x69, 0xfe, 0xdc, 0x80, 0xf5, 0x6b, 0x84, 0x92, 0xd0, 0x0d, + 0xdb, 0x8c, 0x72, 0x42, 0x39, 0xa2, 0x70, 0x2e, 0xf3, 0x88, 0x29, 0x0b, 0x38, 0x6e, 0x0e, 0xb3, + 0x75, 0xba, 0xa7, 0x05, 0xca, 0xaa, 0x0e, 0x26, 0xa9, 0xe1, 0xf6, 0x17, 0x39, 0x58, 0xbd, 0x1d, + 0x91, 0x60, 0xdc, 0x25, 0xc1, 0x89, 0xdb, 0x27, 0xe8, 0x53, 0x03, 0x56, 0xb3, 0x45, 0x81, 0xde, + 0x9f, 0xab, 0xc1, 0x66, 0x4a, 0xb4, 0xbe, 0xbb, 0x00, 0x82, 0xce, 0xe4, 0xdf, 0x18, 0xe9, 0xbf, + 0x2b, 0xe2, 0xcc, 0x44, 0xf3, 0xcd, 0x68, 0x53, 0xc5, 0x57, 0xdf, 0x5f, 0x10, 0x45, 0x59, 0x78, + 0xc9, 0x68, 0xfd, 0x6a, 0xf9, 0x8b, 0x47, 0x5b, 0xc6, 0x97, 0x8f, 0xb6, 0x8c, 0x7f, 0x3c, 0xda, + 0x32, 0x7e, 0xf9, 0x78, 0x6b, 0xe9, 0xcb, 0xc7, 0x5b, 0x4b, 0x7f, 0x7b, 0xbc, 0xb5, 0x04, 0xcd, + 0x3e, 0x1b, 0xcd, 0xa2, 0xa6, 0xb5, 0x91, 0x09, 0x9f, 0x68, 0x9e, 0x1d, 0xe3, 0xde, 0x4f, 0x07, + 0x2e, 0x1f, 0x46, 0x3d, 0x21, 0xd8, 0xec, 0xb3, 0x70, 0xc4, 0xc2, 0x66, 0x40, 0x3c, 0x3c, 0x26, + 0x41, 0xf3, 0x64, 0x3b, 0xf9, 0x29, 0xfb, 0x46, 0xd8, 0x9c, 0xe1, 0x3f, 0x94, 0xdf, 0x4f, 0x69, + 0x31, 0xe9, 0xb7, 0xb9, 0x7c, 0xa7, 0xdd, 0xbe, 0xf6, 0xbb, 0xdc, 0x6b, 0x9d, 0xd8, 0xe6, 0xb6, + 0xb0, 0xb9, 0x9d, 0xd8, 0x9c, 0x9a, 0xd7, 0x38, 0xd4, 0x42, 0x7f, 0x48, 0xb9, 0xef, 0x0b, 0xee, + 0xfb, 0x09, 0xf7, 0xfd, 0x94, 0xfb, 0x7e, 0xcc, 0xfd, 0x28, 0x77, 0x65, 0x06, 0xee, 0xfb, 0xd7, + 0x3a, 0xad, 0x0f, 0x08, 0xc7, 0xa2, 0x91, 0xfd, 0x2b, 0xd7, 0x8c, 0x25, 0x77, 0x76, 0x84, 0xa8, + 0xf8, 0xab, 0x65, 0x77, 0x76, 0x52, 0xe1, 0x9d, 0x9d, 0x58, 0xba, 0x57, 0x94, 0x07, 0xd0, 0x1b, + 0xff, 0x09, 0x00, 0x00, 0xff, 0xff, 0xc9, 0xb2, 0x92, 0x0d, 0xb9, 0x1d, 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 { + ProposalInfo(ctx context.Context, in *ProposalInfoRequest, opts ...grpc.CallOption) (*ProposalInfoResponse, error) + // Used for computing voting power ? + ProposalRateData(ctx context.Context, in *ProposalRateDataRequest, opts ...grpc.CallOption) (QueryService_ProposalRateDataClient, error) +} + +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.v1alpha1.QueryService/ProposalInfo", in, out, opts...) + if err != nil { + return nil, err + } + return out, 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[0], "/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 + } + 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) + // 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) 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.v1alpha1.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_ProposalRateData_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(ProposalRateDataRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(QueryServiceServer).ProposalRateData(m, &queryServiceProposalRateDataServer{stream}) +} + +type QueryService_ProposalRateDataServer interface { + Send(*ProposalRateDataResponse) error + grpc.ServerStream +} + +type queryServiceProposalRateDataServer struct { + grpc.ServerStream +} + +func (x *queryServiceProposalRateDataServer) Send(m *ProposalRateDataResponse) error { + return x.ServerStream.SendMsg(m) +} + +var _QueryService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "penumbra.core.component.governance.v1alpha1.QueryService", + HandlerType: (*QueryServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "ProposalInfo", + Handler: _QueryService_ProposalInfo_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "ProposalRateData", + Handler: _QueryService_ProposalRateData_Handler, + ServerStreams: true, + }, + }, + Metadata: "penumbra/core/component/governance/v1alpha1/governance.proto", +} + +func (m *ZKDelegatorVoteProof) 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 *ZKDelegatorVoteProof) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ZKDelegatorVoteProof) 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 = encodeVarintGovernance(dAtA, i, uint64(len(m.Inner))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ProposalSubmit) 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 *ProposalSubmit) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ProposalSubmit) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.DepositAmount != nil { + { + size, err := m.DepositAmount.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGovernance(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + 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 len(dAtA) - i, nil +} + +func (m *ProposalWithdraw) 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 *ProposalWithdraw) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ProposalWithdraw) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Reason) > 0 { + i -= len(m.Reason) + copy(dAtA[i:], m.Reason) + i = encodeVarintGovernance(dAtA, i, uint64(len(m.Reason))) + i-- + dAtA[i] = 0x12 + } + if m.Proposal != 0 { + i = encodeVarintGovernance(dAtA, i, uint64(m.Proposal)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *ProposalDepositClaim) 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 *ProposalDepositClaim) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ProposalDepositClaim) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Outcome != nil { + { + size, err := m.Outcome.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGovernance(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if m.DepositAmount != nil { + { + size, err := m.DepositAmount.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGovernance(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.Proposal != 0 { + i = encodeVarintGovernance(dAtA, i, uint64(m.Proposal)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *ValidatorVote) 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 *ValidatorVote) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ValidatorVote) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.AuthSig != nil { + { + size, err := m.AuthSig.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGovernance(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.Body != nil { + { + size, err := m.Body.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGovernance(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ValidatorVoteReason) 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 *ValidatorVoteReason) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ValidatorVoteReason) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Reason) > 0 { + i -= len(m.Reason) + copy(dAtA[i:], m.Reason) + i = encodeVarintGovernance(dAtA, i, uint64(len(m.Reason))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ValidatorVoteBody) 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 *ValidatorVoteBody) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ValidatorVoteBody) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Reason != nil { + { + size, err := m.Reason.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGovernance(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + if m.GovernanceKey != nil { + { + size, err := m.GovernanceKey.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGovernance(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + if m.IdentityKey != nil { + { + size, err := m.IdentityKey.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGovernance(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + 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] = 0x12 + } + if m.Proposal != 0 { + i = encodeVarintGovernance(dAtA, i, uint64(m.Proposal)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *DelegatorVote) 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 *DelegatorVote) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DelegatorVote) 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 = encodeVarintGovernance(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if m.AuthSig != nil { + { + size, err := m.AuthSig.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGovernance(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.Body != nil { + { + size, err := m.Body.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGovernance(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *DelegatorVoteBody) 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 *DelegatorVoteBody) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DelegatorVoteBody) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Rk) > 0 { + i -= len(m.Rk) + copy(dAtA[i:], m.Rk) + i = encodeVarintGovernance(dAtA, i, uint64(len(m.Rk))) + i-- + dAtA[i] = 0x3a + } + if len(m.Nullifier) > 0 { + i -= len(m.Nullifier) + copy(dAtA[i:], m.Nullifier) + i = encodeVarintGovernance(dAtA, i, uint64(len(m.Nullifier))) + i-- + dAtA[i] = 0x32 + } + if m.UnbondedAmount != nil { + { + size, err := m.UnbondedAmount.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGovernance(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + if m.Value != nil { + { + size, err := m.Value.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGovernance(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + 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] = 0x1a + } + if m.StartPosition != 0 { + i = encodeVarintGovernance(dAtA, i, uint64(m.StartPosition)) + i-- + dAtA[i] = 0x10 + } + if m.Proposal != 0 { + i = encodeVarintGovernance(dAtA, i, uint64(m.Proposal)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *DelegatorVoteView) 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 *DelegatorVoteView) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DelegatorVoteView) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.DelegatorVote != nil { + { + size := m.DelegatorVote.Size() + i -= size + if _, err := m.DelegatorVote.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } + } + return len(dAtA) - i, nil +} + +func (m *DelegatorVoteView_Visible_) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DelegatorVoteView_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 = encodeVarintGovernance(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} +func (m *DelegatorVoteView_Opaque_) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DelegatorVoteView_Opaque_) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Opaque != nil { + { + size, err := m.Opaque.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGovernance(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + return len(dAtA) - i, nil +} +func (m *DelegatorVoteView_Visible) 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 *DelegatorVoteView_Visible) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DelegatorVoteView_Visible) 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 = encodeVarintGovernance(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.DelegatorVote != nil { + { + size, err := m.DelegatorVote.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGovernance(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *DelegatorVoteView_Opaque) 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 *DelegatorVoteView_Opaque) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DelegatorVoteView_Opaque) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.DelegatorVote != nil { + { + size, err := m.DelegatorVote.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGovernance(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *DelegatorVotePlan) 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 *DelegatorVotePlan) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DelegatorVotePlan) 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 = encodeVarintGovernance(dAtA, i, uint64(len(m.ProofBlindingS))) + i-- + dAtA[i] = 0x4a + } + if len(m.ProofBlindingR) > 0 { + i -= len(m.ProofBlindingR) + copy(dAtA[i:], m.ProofBlindingR) + i = encodeVarintGovernance(dAtA, i, uint64(len(m.ProofBlindingR))) + i-- + dAtA[i] = 0x42 + } + if len(m.Randomizer) > 0 { + i -= len(m.Randomizer) + copy(dAtA[i:], m.Randomizer) + i = encodeVarintGovernance(dAtA, i, uint64(len(m.Randomizer))) + i-- + dAtA[i] = 0x3a + } + if m.UnbondedAmount != nil { + { + size, err := m.UnbondedAmount.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGovernance(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + if m.StakedNotePosition != 0 { + i = encodeVarintGovernance(dAtA, i, uint64(m.StakedNotePosition)) + i-- + dAtA[i] = 0x28 + } + if m.StakedNote != nil { + { + size, err := m.StakedNote.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGovernance(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + 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] = 0x1a + } + if m.StartPosition != 0 { + i = encodeVarintGovernance(dAtA, i, uint64(m.StartPosition)) + i-- + dAtA[i] = 0x10 + } + if m.Proposal != 0 { + i = encodeVarintGovernance(dAtA, i, uint64(m.Proposal)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *DaoDeposit) 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 *DaoDeposit) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DaoDeposit) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Value != nil { + { + size, err := m.Value.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGovernance(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *DaoSpend) 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 *DaoSpend) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DaoSpend) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Value != nil { + { + size, err := m.Value.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGovernance(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *DaoOutput) 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 *DaoOutput) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DaoOutput) 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 = encodeVarintGovernance(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 = encodeVarintGovernance(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Vote) 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 *Vote) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Vote) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Vote != 0 { + i = encodeVarintGovernance(dAtA, i, uint64(m.Vote)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *ProposalState) 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 *ProposalState) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ProposalState) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.State != nil { + { + size := m.State.Size() + i -= size + if _, err := m.State.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } + } + return len(dAtA) - i, nil +} + +func (m *ProposalState_Voting_) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ProposalState_Voting_) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Voting != nil { + { + size, err := m.Voting.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGovernance(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + return len(dAtA) - i, nil +} +func (m *ProposalState_Withdrawn_) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ProposalState_Withdrawn_) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Withdrawn != nil { + { + size, err := m.Withdrawn.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGovernance(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + return len(dAtA) - i, nil +} +func (m *ProposalState_Finished_) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ProposalState_Finished_) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Finished != nil { + { + size, err := m.Finished.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGovernance(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + return len(dAtA) - i, nil +} +func (m *ProposalState_Claimed_) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ProposalState_Claimed_) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Claimed != nil { + { + size, err := m.Claimed.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGovernance(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + return len(dAtA) - i, nil +} +func (m *ProposalState_Voting) 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 *ProposalState_Voting) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ProposalState_Voting) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *ProposalState_Withdrawn) 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 *ProposalState_Withdrawn) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ProposalState_Withdrawn) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Reason) > 0 { + i -= len(m.Reason) + copy(dAtA[i:], m.Reason) + i = encodeVarintGovernance(dAtA, i, uint64(len(m.Reason))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ProposalState_Finished) 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 *ProposalState_Finished) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ProposalState_Finished) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Outcome != nil { + { + size, err := m.Outcome.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGovernance(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ProposalState_Claimed) 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 *ProposalState_Claimed) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ProposalState_Claimed) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Outcome != nil { + { + size, err := m.Outcome.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGovernance(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ProposalOutcome) 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 *ProposalOutcome) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ProposalOutcome) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Outcome != nil { + { + size := m.Outcome.Size() + i -= size + if _, err := m.Outcome.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } + } + return len(dAtA) - i, nil +} + +func (m *ProposalOutcome_Passed_) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ProposalOutcome_Passed_) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Passed != nil { + { + size, err := m.Passed.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGovernance(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} +func (m *ProposalOutcome_Failed_) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ProposalOutcome_Failed_) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Failed != nil { + { + size, err := m.Failed.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGovernance(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + return len(dAtA) - i, nil +} +func (m *ProposalOutcome_Slashed_) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ProposalOutcome_Slashed_) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Slashed != nil { + { + size, err := m.Slashed.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGovernance(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + return len(dAtA) - i, nil +} +func (m *ProposalOutcome_Withdrawn) 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 *ProposalOutcome_Withdrawn) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ProposalOutcome_Withdrawn) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Reason) > 0 { + i -= len(m.Reason) + copy(dAtA[i:], m.Reason) + i = encodeVarintGovernance(dAtA, i, uint64(len(m.Reason))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ProposalOutcome_Passed) 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 *ProposalOutcome_Passed) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ProposalOutcome_Passed) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *ProposalOutcome_Failed) 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 *ProposalOutcome_Failed) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ProposalOutcome_Failed) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Withdrawn != nil { + { + size, err := m.Withdrawn.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGovernance(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ProposalOutcome_Slashed) 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 *ProposalOutcome_Slashed) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ProposalOutcome_Slashed) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Withdrawn != nil { + { + size, err := m.Withdrawn.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGovernance(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Tally) 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 *Tally) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Tally) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Abstain != 0 { + i = encodeVarintGovernance(dAtA, i, uint64(m.Abstain)) + i-- + dAtA[i] = 0x18 + } + if m.No != 0 { + i = encodeVarintGovernance(dAtA, i, uint64(m.No)) + i-- + dAtA[i] = 0x10 + } + if m.Yes != 0 { + i = encodeVarintGovernance(dAtA, i, uint64(m.Yes)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *Proposal) 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 *Proposal) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Proposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.UpgradePlan != nil { + { + size, err := m.UpgradePlan.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGovernance(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x4a + } + if m.DaoSpend != nil { + { + size, err := m.DaoSpend.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGovernance(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x42 + } + if m.ParameterChange != nil { + { + size, err := m.ParameterChange.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGovernance(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + } + if m.Emergency != nil { + { + size, err := m.Emergency.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGovernance(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + 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] = 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 + } + return len(dAtA) - i, nil +} + +func (m *Proposal_Signaling) 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 *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) + _ = i + var l int + _ = l + if len(m.Commit) > 0 { + i -= len(m.Commit) + copy(dAtA[i:], m.Commit) + i = encodeVarintGovernance(dAtA, i, uint64(len(m.Commit))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Proposal_Emergency) 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 *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) + _ = i + var l int + _ = l + if m.HaltChain { + i-- + if m.HaltChain { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *Proposal_ParameterChange) 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 *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) + _ = i + var l int + _ = l + if m.NewParameters != nil { + { + size, err := m.NewParameters.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGovernance(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.OldParameters != nil { + { + size, err := m.OldParameters.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGovernance(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Proposal_DaoSpend) 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 *Proposal_DaoSpend) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Proposal_DaoSpend) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.TransactionPlan != nil { + { + size, err := m.TransactionPlan.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGovernance(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + return len(dAtA) - i, nil +} + +func (m *Proposal_UpgradePlan) 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 *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) + _ = i + var l int + _ = l + if m.Height != 0 { + i = encodeVarintGovernance(dAtA, i, uint64(m.Height)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *ProposalInfoRequest) 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 *ProposalInfoRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ProposalInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.ProposalId != 0 { + i = encodeVarintGovernance(dAtA, i, uint64(m.ProposalId)) + 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 +} + +func (m *ProposalInfoResponse) 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 *ProposalInfoResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ProposalInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.StartPosition != 0 { + i = encodeVarintGovernance(dAtA, i, uint64(m.StartPosition)) + i-- + dAtA[i] = 0x10 + } + if m.StartBlockHeight != 0 { + i = encodeVarintGovernance(dAtA, i, uint64(m.StartBlockHeight)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *ProposalRateDataRequest) 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 *ProposalRateDataRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ProposalRateDataRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.ProposalId != 0 { + i = encodeVarintGovernance(dAtA, i, uint64(m.ProposalId)) + 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 +} + +func (m *ProposalRateDataResponse) 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 *ProposalRateDataResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ProposalRateDataResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.RateData != nil { + { + size, err := m.RateData.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGovernance(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *GovernanceParameters) 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 *GovernanceParameters) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GovernanceParameters) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ProposalSlashThreshold) > 0 { + i -= len(m.ProposalSlashThreshold) + copy(dAtA[i:], m.ProposalSlashThreshold) + i = encodeVarintGovernance(dAtA, i, uint64(len(m.ProposalSlashThreshold))) + i-- + dAtA[i] = 0x2a + } + if len(m.ProposalPassThreshold) > 0 { + i -= len(m.ProposalPassThreshold) + copy(dAtA[i:], m.ProposalPassThreshold) + i = encodeVarintGovernance(dAtA, i, uint64(len(m.ProposalPassThreshold))) + i-- + dAtA[i] = 0x22 + } + if len(m.ProposalValidQuorum) > 0 { + i -= len(m.ProposalValidQuorum) + copy(dAtA[i:], m.ProposalValidQuorum) + i = encodeVarintGovernance(dAtA, i, uint64(len(m.ProposalValidQuorum))) + i-- + dAtA[i] = 0x1a + } + if m.ProposalDepositAmount != nil { + { + size, err := m.ProposalDepositAmount.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGovernance(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.ProposalVotingBlocks != 0 { + i = encodeVarintGovernance(dAtA, i, uint64(m.ProposalVotingBlocks)) + 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.GovernanceParams != nil { + { + size, err := m.GovernanceParams.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGovernance(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + 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++ + } + dAtA[offset] = uint8(v) + return base +} +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 *ProposalSubmit) 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.DepositAmount != nil { + l = m.DepositAmount.Size() + n += 1 + l + sovGovernance(uint64(l)) + } + return n +} + +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)) + } + return n +} + +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 *ValidatorVote) Size() (n int) { + if m == nil { + return 0 + } + 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)) + } + return n +} + +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)) + } + return n +} + +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 *DelegatorVote) Size() (n int) { + if m == nil { + return 0 + } + 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)) + } + return n +} + +func (m *DelegatorVoteBody) 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.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)) + } + l = len(m.Nullifier) + if l > 0 { + n += 1 + l + sovGovernance(uint64(l)) + } + l = len(m.Rk) + if l > 0 { + n += 1 + l + sovGovernance(uint64(l)) + } + return n +} + +func (m *DelegatorVoteView) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.DelegatorVote != nil { + n += m.DelegatorVote.Size() + } + return n +} + +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 *DelegatorVoteView_Opaque_) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Opaque != nil { + l = m.Opaque.Size() + n += 1 + l + sovGovernance(uint64(l)) + } + return n +} +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)) + } + return n +} + +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 *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 *DaoDeposit) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Value != nil { + l = m.Value.Size() + n += 1 + l + sovGovernance(uint64(l)) + } + return n +} + +func (m *DaoSpend) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Value != nil { + l = m.Value.Size() + n += 1 + l + sovGovernance(uint64(l)) + } + return n +} + +func (m *DaoOutput) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Value != nil { + l = m.Value.Size() + n += 1 + l + sovGovernance(uint64(l)) + } + if m.Address != nil { + l = m.Address.Size() + n += 1 + l + sovGovernance(uint64(l)) + } + return n +} + +func (m *Vote) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Vote != 0 { + n += 1 + sovGovernance(uint64(m.Vote)) + } + return n +} + +func (m *ProposalState) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + n += m.State.Size() + } + return n +} + +func (m *ProposalState_Voting_) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Voting != nil { + l = m.Voting.Size() + n += 1 + l + sovGovernance(uint64(l)) + } + return n +} +func (m *ProposalState_Withdrawn_) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Withdrawn != nil { + l = m.Withdrawn.Size() + n += 1 + l + sovGovernance(uint64(l)) + } + 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 *ProposalState_Claimed_) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Claimed != nil { + l = m.Claimed.Size() + n += 1 + l + sovGovernance(uint64(l)) + } + return n +} +func (m *ProposalState_Voting) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *ProposalState_Withdrawn) 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)) + } + return n +} + +func (m *ProposalState_Finished) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Outcome != nil { + l = m.Outcome.Size() + n += 1 + l + sovGovernance(uint64(l)) + } + return n +} + +func (m *ProposalState_Claimed) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Outcome != nil { + l = m.Outcome.Size() + n += 1 + l + sovGovernance(uint64(l)) + } + return n +} + +func (m *ProposalOutcome) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Outcome != nil { + n += m.Outcome.Size() + } + return n +} + +func (m *ProposalOutcome_Passed_) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Passed != nil { + l = m.Passed.Size() + n += 1 + l + sovGovernance(uint64(l)) + } + return n +} +func (m *ProposalOutcome_Failed_) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Failed != nil { + l = m.Failed.Size() + n += 1 + l + sovGovernance(uint64(l)) + } + return n +} +func (m *ProposalOutcome_Slashed_) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Slashed != nil { + l = m.Slashed.Size() + n += 1 + l + sovGovernance(uint64(l)) + } + return n +} +func (m *ProposalOutcome_Withdrawn) 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)) + } + return n +} + +func (m *ProposalOutcome_Passed) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *ProposalOutcome_Failed) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Withdrawn != nil { + l = m.Withdrawn.Size() + n += 1 + l + sovGovernance(uint64(l)) + } + return n +} + +func (m *ProposalOutcome_Slashed) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Withdrawn != nil { + l = m.Withdrawn.Size() + n += 1 + l + sovGovernance(uint64(l)) + } + return n +} + +func (m *Tally) 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.Abstain != 0 { + n += 1 + sovGovernance(uint64(m.Abstain)) + } + return n +} + +func (m *Proposal) 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.DaoSpend != nil { + l = m.DaoSpend.Size() + n += 1 + l + sovGovernance(uint64(l)) + } + if m.UpgradePlan != nil { + l = m.UpgradePlan.Size() + n += 1 + l + sovGovernance(uint64(l)) + } + return n +} + +func (m *Proposal_Signaling) 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)) + } + return n +} + +func (m *Proposal_Emergency) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.HaltChain { + n += 2 + } + return n +} + +func (m *Proposal_ParameterChange) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.OldParameters != nil { + l = m.OldParameters.Size() + n += 1 + l + sovGovernance(uint64(l)) + } + if m.NewParameters != nil { + l = m.NewParameters.Size() + n += 1 + l + sovGovernance(uint64(l)) + } + return n +} + +func (m *Proposal_DaoSpend) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.TransactionPlan != nil { + l = m.TransactionPlan.Size() + n += 1 + l + sovGovernance(uint64(l)) + } + return n +} + +func (m *Proposal_UpgradePlan) 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 *ProposalInfoRequest) 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 *ProposalInfoResponse) 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)) + } + return n +} + +func (m *ProposalRateDataRequest) 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 *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 *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 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 { + 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 = &v1alpha1.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 = &v1alpha1.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 = &v1alpha11.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 = &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: + 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 = &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) + } + 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 = &v1alpha13.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 = &v1alpha1.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 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.Nullifier = append(m.Nullifier[:0], dAtA[iNdEx:postIndex]...) + if m.Nullifier == nil { + m.Nullifier = []byte{} + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Rk", 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.Rk = append(m.Rk[:0], dAtA[iNdEx:postIndex]...) + if m.Rk == nil { + m.Rk = []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 *DelegatorVoteView) 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: DelegatorVoteView: wiretype end group for non-group") + } + if fieldNum <= 0 { + 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 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 + } + } + if msglen < 0 { + return ErrInvalidLengthGovernance + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGovernance + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + 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 + 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_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 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: 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: + 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) + } + 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.Note == nil { + m.Note = &v1alpha14.NoteView{} + } + if err := m.Note.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_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 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: 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 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 + 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 *DelegatorVotePlan) 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: DelegatorVotePlan: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DelegatorVotePlan: 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 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 = &v1alpha14.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 { + 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 = &v1alpha1.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 + byteLen + if postIndex < 0 { + return ErrInvalidLengthGovernance + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Randomizer = append(m.Randomizer[:0], dAtA[iNdEx:postIndex]...) + if m.Randomizer == nil { + m.Randomizer = []byte{} + } + iNdEx = postIndex + case 8: + 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 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.ProofBlindingR = append(m.ProofBlindingR[:0], dAtA[iNdEx:postIndex]...) + if m.ProofBlindingR == nil { + m.ProofBlindingR = []byte{} + } + 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 + } + } + if byteLen < 0 { + return ErrInvalidLengthGovernance + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthGovernance + } + 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 := 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 *DaoDeposit) 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: DaoDeposit: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DaoDeposit: 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 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 = &v1alpha13.Value{} + } + if err := m.Value.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 *DaoSpend) 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: DaoSpend: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DaoSpend: 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 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 = &v1alpha13.Value{} + } + if err := m.Value.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 *DaoOutput) 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: DaoOutput: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DaoOutput: 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 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 = &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) + } + 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.Address == nil { + m.Address = &v1alpha12.Address{} + } + if err := m.Address.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 *Vote) 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: Vote: wiretype end group for non-group") + } + if fieldNum <= 0 { + 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 Vote", wireType) + } + m.Vote = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGovernance + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Vote |= Vote_Vote(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 *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 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: 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 Voting", 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 := &ProposalState_Voting{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.State = &ProposalState_Voting_{v} + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Withdrawn", 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 := &ProposalState_Withdrawn{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.State = &ProposalState_Withdrawn_{v} + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Finished", 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 := &ProposalState_Finished{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.State = &ProposalState_Finished_{v} + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Claimed", 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 := &ProposalState_Claimed{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.State = &ProposalState_Claimed_{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 + } + } + 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 + } + 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_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 + } + 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: 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 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 *ProposalState_Finished) 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: Finished: wiretype end group for non-group") + } + if fieldNum <= 0 { + 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 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 *ProposalState_Claimed) 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: Claimed: wiretype end group for non-group") + } + if fieldNum <= 0 { + 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 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 *ProposalOutcome) 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: ProposalOutcome: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ProposalOutcome: 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) + } + 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 := &ProposalOutcome_Passed{} + if err := v.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) + } + 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 := &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 + } + v := &ProposalOutcome_Slashed{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Outcome = &ProposalOutcome_Slashed_{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 *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 + } + 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: 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 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 *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 + } + 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: 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:]) + 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 *ProposalOutcome_Failed) 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: Failed: wiretype end group for non-group") + } + if fieldNum <= 0 { + 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 Withdrawn", 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.Withdrawn == nil { + m.Withdrawn = &ProposalOutcome_Withdrawn{} + } + if err := m.Withdrawn.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 *ProposalOutcome_Slashed) 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: Slashed: wiretype end group for non-group") + } + if fieldNum <= 0 { + 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 Withdrawn", 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.Withdrawn == nil { + m.Withdrawn = &ProposalOutcome_Withdrawn{} + } + if err := m.Withdrawn.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 *Tally) 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: Tally: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Tally: 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) + } + m.Yes = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGovernance + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Yes |= 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) + } + 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 + } + } + 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 *Proposal) 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: Proposal: wiretype end group for non-group") + } + if fieldNum <= 0 { + 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 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) + } + 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.Signaling == nil { + m.Signaling = &Proposal_Signaling{} + } + if err := m.Signaling.Unmarshal(dAtA[iNdEx:postIndex]); 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 { + return ErrInvalidLengthGovernance + } + if postIndex > 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 + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ParameterChange == nil { + m.ParameterChange = &Proposal_ParameterChange{} + } + if err := m.ParameterChange.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DaoSpend", 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.DaoSpend == nil { + m.DaoSpend = &Proposal_DaoSpend{} + } + if err := m.DaoSpend.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) + } + 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.UpgradePlan == nil { + m.UpgradePlan = &Proposal_UpgradePlan{} + } + if err := m.UpgradePlan.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 *Proposal_Signaling) 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: Signaling: wiretype end group for non-group") + } + if fieldNum <= 0 { + 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 Commit", 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.Commit = 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 *Proposal_Emergency) 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: Emergency: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Emergency: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HaltChain", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGovernance + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.HaltChain = bool(v != 0) + 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 *Proposal_ParameterChange) 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: ParameterChange: wiretype end group for non-group") + } + if fieldNum <= 0 { + 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 OldParameters", 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.OldParameters == nil { + m.OldParameters = &v1alpha15.ChainParameters{} + } + if err := m.OldParameters.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NewParameters", 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 = &v1alpha15.ChainParameters{} + } + if err := m.NewParameters.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 *Proposal_DaoSpend) 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: DaoSpend: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DaoSpend: 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) + } + 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.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:]) + 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 *Proposal_UpgradePlan) 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: UpgradePlan: wiretype end group for non-group") + } + if fieldNum <= 0 { + 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:]) + 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 *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 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 + } + } + 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 *ProposalInfoResponse) 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: ProposalInfoResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + 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 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 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 + } + } + 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 *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 + } + 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: 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 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 + } + } + 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 RateData", 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.RateData == nil { + m.RateData = &v1alpha16.RateData{} + } + if err := m.RateData.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 *GovernanceParameters) 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: 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 + } + m.ProposalSlashThreshold = 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 *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 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: 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 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 + 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 skipGovernance(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, ErrIntOverflowGovernance + } + 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, ErrIntOverflowGovernance + } + 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, ErrIntOverflowGovernance + } + 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, ErrInvalidLengthGovernance + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupGovernance + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthGovernance + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthGovernance = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowGovernance = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupGovernance = fmt.Errorf("proto: unexpected end of group") +) diff --git a/relayer/chains/penumbra/core/component/ibc/v1alpha1/ibc.pb.go b/relayer/chains/penumbra/core/component/ibc/v1alpha1/ibc.pb.go new file mode 100644 index 000000000..545271ad6 --- /dev/null +++ b/relayer/chains/penumbra/core/component/ibc/v1alpha1/ibc.pb.go @@ -0,0 +1,2798 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: penumbra/core/component/ibc/v1alpha1/ibc.proto + +package ibcv1alpha1 + +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" + 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 + +type IbcAction struct { + RawAction *types.Any `protobuf:"bytes,1,opt,name=raw_action,json=rawAction,proto3" json:"raw_action,omitempty"` +} + +func (m *IbcAction) Reset() { *m = IbcAction{} } +func (m *IbcAction) String() string { return proto.CompactTextString(m) } +func (*IbcAction) ProtoMessage() {} +func (*IbcAction) Descriptor() ([]byte, []int) { + return fileDescriptor_86476aff0cbfadc3, []int{0} +} +func (m *IbcAction) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *IbcAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_IbcAction.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 *IbcAction) XXX_Merge(src proto.Message) { + xxx_messageInfo_IbcAction.Merge(m, src) +} +func (m *IbcAction) XXX_Size() int { + return m.Size() +} +func (m *IbcAction) XXX_DiscardUnknown() { + xxx_messageInfo_IbcAction.DiscardUnknown(m) +} + +var xxx_messageInfo_IbcAction proto.InternalMessageInfo + +func (m *IbcAction) GetRawAction() *types.Any { + if m != nil { + return m.RawAction + } + return nil +} + +// FungibleTokenPacketData defines a struct for the packet payload +// See FungibleTokenPacketData spec: +// https://github.com/cosmos/ibc/tree/master/spec/app/ics-020-fungible-token-transfer#data-structures +type FungibleTokenPacketData struct { + // the token denomination to be transferred + Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"` + // the token amount to be transferred + Amount string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"` + // the sender address + 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"` +} + +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} +} +func (m *FungibleTokenPacketData) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FungibleTokenPacketData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_FungibleTokenPacketData.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 *FungibleTokenPacketData) XXX_Merge(src proto.Message) { + xxx_messageInfo_FungibleTokenPacketData.Merge(m, src) +} +func (m *FungibleTokenPacketData) XXX_Size() int { + return m.Size() +} +func (m *FungibleTokenPacketData) XXX_DiscardUnknown() { + xxx_messageInfo_FungibleTokenPacketData.DiscardUnknown(m) +} + +var xxx_messageInfo_FungibleTokenPacketData proto.InternalMessageInfo + +func (m *FungibleTokenPacketData) GetDenom() string { + if m != nil { + return m.Denom + } + return "" +} + +func (m *FungibleTokenPacketData) GetAmount() string { + if m != nil { + return m.Amount + } + return "" +} + +func (m *FungibleTokenPacketData) GetSender() string { + if m != nil { + return m.Sender + } + return "" +} + +func (m *FungibleTokenPacketData) GetReceiver() string { + if m != nil { + return m.Receiver + } + 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"` + // 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"` + // 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"` + // the timestamp at which this transfer expires. + TimeoutTime uint64 `protobuf:"varint,6,opt,name=timeout_time,json=timeoutTime,proto3" json:"timeout_time,omitempty"` + // the source channel used for the withdrawal + SourceChannel string `protobuf:"bytes,7,opt,name=source_channel,json=sourceChannel,proto3" json:"source_channel,omitempty"` +} + +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} +} +func (m *Ics20Withdrawal) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Ics20Withdrawal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Ics20Withdrawal.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 *Ics20Withdrawal) XXX_Merge(src proto.Message) { + xxx_messageInfo_Ics20Withdrawal.Merge(m, src) +} +func (m *Ics20Withdrawal) XXX_Size() int { + return m.Size() +} +func (m *Ics20Withdrawal) XXX_DiscardUnknown() { + xxx_messageInfo_Ics20Withdrawal.DiscardUnknown(m) +} + +var xxx_messageInfo_Ics20Withdrawal proto.InternalMessageInfo + +func (m *Ics20Withdrawal) GetAmount() *v1alpha1.Amount { + if m != nil { + return m.Amount + } + return nil +} + +func (m *Ics20Withdrawal) GetDenom() *v1alpha11.Denom { + if m != nil { + return m.Denom + } + return nil +} + +func (m *Ics20Withdrawal) GetDestinationChainAddress() string { + if m != nil { + return m.DestinationChainAddress + } + return "" +} + +func (m *Ics20Withdrawal) GetReturnAddress() *v1alpha12.Address { + if m != nil { + return m.ReturnAddress + } + return nil +} + +func (m *Ics20Withdrawal) GetTimeoutHeight() *types1.Height { + if m != nil { + return m.TimeoutHeight + } + return nil +} + +func (m *Ics20Withdrawal) GetTimeoutTime() uint64 { + if m != nil { + return m.TimeoutTime + } + return 0 +} + +func (m *Ics20Withdrawal) GetSourceChannel() string { + if m != nil { + return m.SourceChannel + } + return "" +} + +type ClientData struct { + ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` + ClientState *types.Any `protobuf:"bytes,2,opt,name=client_state,json=clientState,proto3" json:"client_state,omitempty"` + ProcessedTime string `protobuf:"bytes,3,opt,name=processed_time,json=processedTime,proto3" json:"processed_time,omitempty"` + ProcessedHeight uint64 `protobuf:"varint,4,opt,name=processed_height,json=processedHeight,proto3" json:"processed_height,omitempty"` +} + +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} +} +func (m *ClientData) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ClientData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ClientData.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 *ClientData) XXX_Merge(src proto.Message) { + xxx_messageInfo_ClientData.Merge(m, src) +} +func (m *ClientData) XXX_Size() int { + return m.Size() +} +func (m *ClientData) XXX_DiscardUnknown() { + xxx_messageInfo_ClientData.DiscardUnknown(m) +} + +var xxx_messageInfo_ClientData proto.InternalMessageInfo + +func (m *ClientData) GetClientId() string { + if m != nil { + return m.ClientId + } + return "" +} + +func (m *ClientData) GetClientState() *types.Any { + if m != nil { + return m.ClientState + } + return nil +} + +func (m *ClientData) GetProcessedTime() string { + if m != nil { + return m.ProcessedTime + } + return "" +} + +func (m *ClientData) GetProcessedHeight() uint64 { + if m != nil { + return m.ProcessedHeight + } + return 0 +} + +type ClientCounter struct { + Counter uint64 `protobuf:"varint,1,opt,name=counter,proto3" json:"counter,omitempty"` +} + +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} +} +func (m *ClientCounter) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ClientCounter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ClientCounter.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 *ClientCounter) XXX_Merge(src proto.Message) { + xxx_messageInfo_ClientCounter.Merge(m, src) +} +func (m *ClientCounter) XXX_Size() int { + return m.Size() +} +func (m *ClientCounter) XXX_DiscardUnknown() { + xxx_messageInfo_ClientCounter.DiscardUnknown(m) +} + +var xxx_messageInfo_ClientCounter proto.InternalMessageInfo + +func (m *ClientCounter) GetCounter() uint64 { + if m != nil { + return m.Counter + } + return 0 +} + +type ConsensusState struct { + ConsensusState *types.Any `protobuf:"bytes,1,opt,name=consensus_state,json=consensusState,proto3" json:"consensus_state,omitempty"` +} + +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} +} +func (m *ConsensusState) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ConsensusState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ConsensusState.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 *ConsensusState) XXX_Merge(src proto.Message) { + xxx_messageInfo_ConsensusState.Merge(m, src) +} +func (m *ConsensusState) XXX_Size() int { + return m.Size() +} +func (m *ConsensusState) XXX_DiscardUnknown() { + xxx_messageInfo_ConsensusState.DiscardUnknown(m) +} + +var xxx_messageInfo_ConsensusState proto.InternalMessageInfo + +func (m *ConsensusState) GetConsensusState() *types.Any { + if m != nil { + return m.ConsensusState + } + return nil +} + +type VerifiedHeights struct { + Heights []*types1.Height `protobuf:"bytes,1,rep,name=heights,proto3" json:"heights,omitempty"` +} + +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} +} +func (m *VerifiedHeights) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *VerifiedHeights) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_VerifiedHeights.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 *VerifiedHeights) XXX_Merge(src proto.Message) { + xxx_messageInfo_VerifiedHeights.Merge(m, src) +} +func (m *VerifiedHeights) XXX_Size() int { + return m.Size() +} +func (m *VerifiedHeights) XXX_DiscardUnknown() { + xxx_messageInfo_VerifiedHeights.DiscardUnknown(m) +} + +var xxx_messageInfo_VerifiedHeights proto.InternalMessageInfo + +func (m *VerifiedHeights) GetHeights() []*types1.Height { + if m != nil { + return m.Heights + } + return nil +} + +type ConnectionCounter struct { + Counter uint64 `protobuf:"varint,1,opt,name=counter,proto3" json:"counter,omitempty"` +} + +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} +} +func (m *ConnectionCounter) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ConnectionCounter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ConnectionCounter.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 *ConnectionCounter) XXX_Merge(src proto.Message) { + xxx_messageInfo_ConnectionCounter.Merge(m, src) +} +func (m *ConnectionCounter) XXX_Size() int { + return m.Size() +} +func (m *ConnectionCounter) XXX_DiscardUnknown() { + xxx_messageInfo_ConnectionCounter.DiscardUnknown(m) +} + +var xxx_messageInfo_ConnectionCounter proto.InternalMessageInfo + +func (m *ConnectionCounter) GetCounter() uint64 { + if m != nil { + return m.Counter + } + return 0 +} + +type ClientConnections struct { + Connections []string `protobuf:"bytes,1,rep,name=connections,proto3" json:"connections,omitempty"` +} + +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} +} +func (m *ClientConnections) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ClientConnections) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ClientConnections.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 *ClientConnections) XXX_Merge(src proto.Message) { + xxx_messageInfo_ClientConnections.Merge(m, src) +} +func (m *ClientConnections) XXX_Size() int { + return m.Size() +} +func (m *ClientConnections) XXX_DiscardUnknown() { + xxx_messageInfo_ClientConnections.DiscardUnknown(m) +} + +var xxx_messageInfo_ClientConnections proto.InternalMessageInfo + +func (m *ClientConnections) GetConnections() []string { + if m != nil { + return m.Connections + } + return nil +} + +// IBC configuration data. +type IbcParameters struct { + // Whether IBC (forming connections, processing IBC packets) is enabled. + IbcEnabled bool `protobuf:"varint,1,opt,name=ibc_enabled,json=ibcEnabled,proto3" json:"ibc_enabled,omitempty"` + // Whether inbound ICS-20 transfers are enabled + InboundIcs20TransfersEnabled bool `protobuf:"varint,2,opt,name=inbound_ics20_transfers_enabled,json=inboundIcs20TransfersEnabled,proto3" json:"inbound_ics20_transfers_enabled,omitempty"` + // Whether outbound ICS-20 transfers are enabled + OutboundIcs20TransfersEnabled bool `protobuf:"varint,3,opt,name=outbound_ics20_transfers_enabled,json=outboundIcs20TransfersEnabled,proto3" json:"outbound_ics20_transfers_enabled,omitempty"` +} + +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} +} +func (m *IbcParameters) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *IbcParameters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_IbcParameters.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 *IbcParameters) XXX_Merge(src proto.Message) { + xxx_messageInfo_IbcParameters.Merge(m, src) +} +func (m *IbcParameters) XXX_Size() int { + return m.Size() +} +func (m *IbcParameters) XXX_DiscardUnknown() { + xxx_messageInfo_IbcParameters.DiscardUnknown(m) +} + +var xxx_messageInfo_IbcParameters proto.InternalMessageInfo + +func (m *IbcParameters) GetIbcEnabled() bool { + if m != nil { + return m.IbcEnabled + } + return false +} + +func (m *IbcParameters) GetInboundIcs20TransfersEnabled() bool { + if m != nil { + return m.InboundIcs20TransfersEnabled + } + return false +} + +func (m *IbcParameters) GetOutboundIcs20TransfersEnabled() bool { + if m != nil { + return m.OutboundIcs20TransfersEnabled + } + return false +} + +// IBC genesis state. +type GenesisContent struct { + // IBC parameters. + IbcParams *IbcParameters `protobuf:"bytes,1,opt,name=ibc_params,json=ibcParams,proto3" json:"ibc_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_86476aff0cbfadc3, []int{10} +} +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) GetIbcParams() *IbcParameters { + if m != nil { + return m.IbcParams + } + return nil +} + +func init() { + proto.RegisterType((*IbcAction)(nil), "penumbra.core.component.ibc.v1alpha1.IbcAction") + 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") +} + +func init() { + proto.RegisterFile("penumbra/core/component/ibc/v1alpha1/ibc.proto", fileDescriptor_86476aff0cbfadc3) +} + +var fileDescriptor_86476aff0cbfadc3 = []byte{ + // 938 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x95, 0xc1, 0x6f, 0x23, 0xb5, + 0x17, 0xc7, 0x3b, 0x69, 0xb6, 0x6d, 0xdc, 0x4d, 0xfa, 0xdb, 0xd1, 0xea, 0xb7, 0xd9, 0x02, 0x69, + 0x19, 0x0a, 0xca, 0x1e, 0x98, 0xd9, 0xb6, 0x20, 0x44, 0x10, 0x12, 0xe9, 0xec, 0x52, 0x22, 0x84, + 0x88, 0x86, 0x6a, 0x91, 0x50, 0xa4, 0xc8, 0xe3, 0x79, 0x4d, 0xac, 0x66, 0xec, 0xc8, 0xf6, 0xa4, + 0xaa, 0xf8, 0x27, 0xf8, 0x0b, 0x38, 0x70, 0xe4, 0xcc, 0x1f, 0xc0, 0x11, 0x71, 0xda, 0x23, 0x37, + 0x50, 0x7b, 0xe3, 0xaf, 0x40, 0xb6, 0xc7, 0x93, 0xcd, 0x6a, 0xb5, 0xdb, 0x4b, 0xeb, 0xf7, 0xfc, + 0x79, 0xcf, 0xdf, 0xf7, 0xfc, 0x9c, 0x41, 0xe1, 0x1c, 0x58, 0x91, 0xa7, 0x02, 0x47, 0x84, 0x0b, + 0x88, 0x08, 0xcf, 0xe7, 0x9c, 0x01, 0x53, 0x11, 0x4d, 0x49, 0xb4, 0x38, 0xc4, 0xb3, 0xf9, 0x14, + 0x1f, 0x6a, 0x23, 0x9c, 0x0b, 0xae, 0xb8, 0x7f, 0xe0, 0xf8, 0x50, 0xf3, 0x61, 0xc5, 0x87, 0x1a, + 0x71, 0xfc, 0xee, 0x9e, 0x8e, 0xb6, 0x09, 0x67, 0x54, 0x67, 0x5b, 0x1c, 0x96, 0x2b, 0x9b, 0x66, + 0xf7, 0xe1, 0x84, 0xf3, 0xc9, 0x0c, 0x22, 0x63, 0xa5, 0xc5, 0x79, 0x84, 0xd9, 0x55, 0xb9, 0xf5, + 0xc1, 0xaa, 0xa2, 0x0b, 0xb8, 0x92, 0x4b, 0x21, 0xda, 0x2a, 0xb9, 0x83, 0x55, 0x8e, 0x15, 0xf9, + 0x12, 0x63, 0x45, 0x5e, 0x52, 0xdd, 0x55, 0x0a, 0x4b, 0x09, 0x6a, 0xc9, 0x19, 0xd3, 0x92, 0xc1, + 0x17, 0xa8, 0x31, 0x48, 0x49, 0x9f, 0x28, 0xca, 0x99, 0x7f, 0x8c, 0x90, 0xc0, 0x97, 0x63, 0x6c, + 0xac, 0xb6, 0xb7, 0xef, 0x75, 0xb7, 0x8f, 0xee, 0x87, 0x56, 0x74, 0xe8, 0x44, 0x87, 0x7d, 0x76, + 0x95, 0x34, 0x04, 0xbe, 0xb4, 0x41, 0xc1, 0x8f, 0xe8, 0xc1, 0x97, 0x05, 0x9b, 0xd0, 0x74, 0x06, + 0x67, 0xfc, 0x02, 0xd8, 0x10, 0x93, 0x0b, 0x50, 0x4f, 0xb0, 0xc2, 0xfe, 0x7d, 0x74, 0x27, 0x03, + 0xc6, 0x73, 0x93, 0xaa, 0x91, 0x58, 0xc3, 0xff, 0x3f, 0xda, 0xc0, 0x39, 0x2f, 0x98, 0x6a, 0xd7, + 0x8c, 0xbb, 0xb4, 0xb4, 0x5f, 0x02, 0xcb, 0x40, 0xb4, 0xd7, 0xad, 0xdf, 0x5a, 0xfe, 0x2e, 0xda, + 0x12, 0x40, 0x80, 0x2e, 0x40, 0xb4, 0xeb, 0x66, 0xa7, 0xb2, 0x83, 0x9f, 0xd7, 0xd1, 0xce, 0x80, + 0xc8, 0xa3, 0xc7, 0xdf, 0x53, 0x35, 0xcd, 0x04, 0xbe, 0xc4, 0x33, 0xbf, 0x57, 0xe5, 0xb7, 0x15, + 0x04, 0xe1, 0xea, 0xed, 0xe9, 0x36, 0xb9, 0x5e, 0x84, 0x7d, 0x43, 0x56, 0x1a, 0x3e, 0x75, 0x8a, + 0x6b, 0x26, 0xf4, 0xbd, 0x97, 0x42, 0x6d, 0xe7, 0xaa, 0xe0, 0x27, 0x1a, 0x75, 0x65, 0xf5, 0xd0, + 0xc3, 0x0c, 0xa4, 0xa2, 0x0c, 0xeb, 0xb6, 0x8c, 0xc9, 0x14, 0x53, 0x36, 0xc6, 0x59, 0x26, 0x40, + 0xca, 0xb2, 0xa2, 0x07, 0x2f, 0x00, 0xb1, 0xde, 0xef, 0xdb, 0x6d, 0xff, 0x6b, 0xd4, 0x12, 0xa0, + 0x0a, 0xb1, 0x0c, 0xa8, 0x9b, 0xf3, 0x0f, 0x5e, 0x3a, 0xdf, 0x0c, 0xc2, 0x52, 0xbb, 0x65, 0x93, + 0xa6, 0x8d, 0x75, 0xc9, 0xfa, 0xa8, 0xa5, 0x68, 0x0e, 0xbc, 0x50, 0xe3, 0x29, 0xd0, 0xc9, 0x54, + 0xb5, 0xef, 0x98, 0x64, 0xbb, 0x66, 0x5a, 0xed, 0x00, 0xdb, 0xa9, 0x5c, 0x1c, 0x86, 0x5f, 0x19, + 0x22, 0x69, 0x96, 0x11, 0xd6, 0xf4, 0xdf, 0x45, 0x77, 0x5d, 0x0a, 0xfd, 0xbf, 0xbd, 0xb1, 0xef, + 0x75, 0xeb, 0xc9, 0x76, 0xe9, 0x3b, 0xa3, 0x39, 0xf8, 0xef, 0xa3, 0x96, 0xe4, 0x85, 0x20, 0xa0, + 0x2b, 0x65, 0x0c, 0x66, 0xed, 0x4d, 0x53, 0x63, 0xd3, 0x7a, 0x63, 0xeb, 0x0c, 0x7e, 0xf3, 0x10, + 0x8a, 0xcd, 0x69, 0x66, 0x22, 0xde, 0x42, 0x0d, 0x7b, 0xf6, 0x98, 0x66, 0xe5, 0x54, 0x6c, 0x59, + 0xc7, 0x20, 0xf3, 0x3f, 0x41, 0x77, 0xcb, 0x4d, 0xa9, 0xb0, 0x82, 0xf2, 0x0e, 0x5e, 0x3d, 0x80, + 0xdb, 0x96, 0xfc, 0x4e, 0x83, 0x5a, 0xcb, 0x5c, 0x70, 0x02, 0x52, 0x42, 0x66, 0x05, 0xdb, 0x7e, + 0x37, 0x2b, 0xaf, 0x91, 0xfc, 0x08, 0xfd, 0x6f, 0x89, 0x95, 0xad, 0xa9, 0x9b, 0xca, 0x76, 0x2a, + 0xbf, 0x6d, 0x40, 0xf0, 0x08, 0x35, 0xad, 0xea, 0x58, 0x8f, 0x05, 0x08, 0xbf, 0x8d, 0x36, 0x89, + 0x5d, 0x1a, 0xd9, 0xf5, 0xc4, 0x99, 0xc1, 0xb7, 0xa8, 0x15, 0x73, 0x26, 0x81, 0xc9, 0x42, 0x5a, + 0x39, 0x9f, 0xa3, 0x1d, 0xe2, 0x3c, 0x65, 0x29, 0xaf, 0x7b, 0x4b, 0x2d, 0xb2, 0x12, 0x1e, 0x9c, + 0xa2, 0x9d, 0x67, 0x20, 0xe8, 0x39, 0x75, 0x6a, 0xa4, 0xff, 0x11, 0xda, 0xb4, 0x7a, 0x65, 0xdb, + 0xdb, 0x5f, 0x7f, 0xc3, 0x5d, 0x3a, 0x34, 0xf8, 0x10, 0xdd, 0x8b, 0x39, 0x63, 0x60, 0xde, 0xe9, + 0x9b, 0x0b, 0xf9, 0x18, 0xdd, 0x73, 0x35, 0xbb, 0x20, 0xe9, 0xef, 0xa3, 0x6d, 0xb2, 0x34, 0xcd, + 0xe9, 0x8d, 0xe4, 0x45, 0x57, 0xf0, 0xbb, 0x87, 0x9a, 0x83, 0x94, 0x0c, 0xb1, 0xc0, 0x39, 0x28, + 0x10, 0xd2, 0xdf, 0x43, 0xdb, 0x34, 0x25, 0x63, 0x60, 0x38, 0x9d, 0x81, 0xbd, 0xe6, 0xad, 0x04, + 0xd1, 0x94, 0x3c, 0xb5, 0x1e, 0xff, 0x29, 0xda, 0xa3, 0x2c, 0xe5, 0x05, 0xcb, 0xc6, 0x54, 0x3f, + 0xde, 0xb1, 0x12, 0x98, 0xc9, 0x73, 0x10, 0xb2, 0x0a, 0xaa, 0x99, 0xa0, 0xb7, 0x4b, 0xcc, 0x3c, + 0xf1, 0x33, 0x07, 0xb9, 0x34, 0xa7, 0x68, 0x9f, 0x17, 0xea, 0xf5, 0x79, 0xd6, 0x4d, 0x9e, 0x77, + 0x1c, 0xf7, 0xca, 0x44, 0x41, 0x86, 0x5a, 0xa7, 0xc0, 0x40, 0x52, 0x19, 0x73, 0xa6, 0x80, 0x29, + 0x3f, 0x41, 0x5a, 0xef, 0x78, 0xae, 0x8b, 0x92, 0xe5, 0xed, 0x1d, 0x87, 0xb7, 0xf9, 0x0a, 0x84, + 0x2b, 0xbd, 0x48, 0x1a, 0xb4, 0x34, 0xe5, 0xc9, 0xdf, 0xb5, 0x3f, 0xae, 0x3b, 0xde, 0xf3, 0xeb, + 0x8e, 0xf7, 0xcf, 0x75, 0xc7, 0xfb, 0xe9, 0xa6, 0xb3, 0xf6, 0xfc, 0xa6, 0xb3, 0xf6, 0xd7, 0x4d, + 0x67, 0x0d, 0x75, 0x09, 0xcf, 0x6f, 0x95, 0xfd, 0x64, 0x4b, 0xa7, 0xd7, 0xd3, 0x33, 0xf4, 0x7e, + 0x18, 0x4d, 0xa8, 0x9a, 0x16, 0xa9, 0x46, 0x23, 0xc2, 0x65, 0xce, 0x65, 0x24, 0x60, 0x86, 0xaf, + 0x40, 0x44, 0x8b, 0xa3, 0x6a, 0x69, 0x7e, 0x88, 0x64, 0x74, 0x9b, 0x2f, 0xde, 0x67, 0x34, 0x25, + 0x6e, 0xfd, 0x4b, 0xad, 0x3e, 0x8c, 0xe3, 0xc1, 0xaf, 0xb5, 0x83, 0xa1, 0xd3, 0x15, 0x6b, 0x5d, + 0x71, 0xa5, 0x6b, 0x90, 0x92, 0xf0, 0x59, 0x49, 0xff, 0xb9, 0xc4, 0x46, 0x1a, 0x1b, 0x55, 0xd8, + 0x68, 0x90, 0x92, 0x91, 0xc3, 0xae, 0x6b, 0x8f, 0x6f, 0x83, 0x8d, 0x4e, 0x87, 0x27, 0xdf, 0x80, + 0xc2, 0x19, 0x56, 0xf8, 0xdf, 0x5a, 0xd7, 0x85, 0xf4, 0x7a, 0x3a, 0x46, 0xff, 0x2d, 0x83, 0x7a, + 0xbd, 0x41, 0x4a, 0x7a, 0x3d, 0x17, 0x96, 0x6e, 0x98, 0x77, 0x75, 0xfc, 0x5f, 0x00, 0x00, 0x00, + 0xff, 0xff, 0xf3, 0x62, 0x17, 0x31, 0xdf, 0x07, 0x00, 0x00, +} + +func (m *IbcAction) 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 *IbcAction) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *IbcAction) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.RawAction != nil { + { + size, err := m.RawAction.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintIbc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *FungibleTokenPacketData) 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 *FungibleTokenPacketData) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FungibleTokenPacketData) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Receiver) > 0 { + i -= len(m.Receiver) + copy(dAtA[i:], m.Receiver) + i = encodeVarintIbc(dAtA, i, uint64(len(m.Receiver))) + i-- + dAtA[i] = 0x22 + } + if len(m.Sender) > 0 { + i -= len(m.Sender) + copy(dAtA[i:], m.Sender) + i = encodeVarintIbc(dAtA, i, uint64(len(m.Sender))) + i-- + dAtA[i] = 0x1a + } + if len(m.Amount) > 0 { + i -= len(m.Amount) + copy(dAtA[i:], m.Amount) + i = encodeVarintIbc(dAtA, i, uint64(len(m.Amount))) + i-- + dAtA[i] = 0x12 + } + if len(m.Denom) > 0 { + i -= len(m.Denom) + copy(dAtA[i:], m.Denom) + i = encodeVarintIbc(dAtA, i, uint64(len(m.Denom))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Ics20Withdrawal) 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 *Ics20Withdrawal) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Ics20Withdrawal) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.SourceChannel) > 0 { + i -= len(m.SourceChannel) + copy(dAtA[i:], m.SourceChannel) + i = encodeVarintIbc(dAtA, i, uint64(len(m.SourceChannel))) + i-- + dAtA[i] = 0x3a + } + if m.TimeoutTime != 0 { + i = encodeVarintIbc(dAtA, i, uint64(m.TimeoutTime)) + i-- + dAtA[i] = 0x30 + } + if m.TimeoutHeight != nil { + { + size, err := m.TimeoutHeight.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintIbc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + if m.ReturnAddress != nil { + { + size, err := m.ReturnAddress.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintIbc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + if len(m.DestinationChainAddress) > 0 { + i -= len(m.DestinationChainAddress) + copy(dAtA[i:], m.DestinationChainAddress) + i = encodeVarintIbc(dAtA, i, uint64(len(m.DestinationChainAddress))) + i-- + dAtA[i] = 0x1a + } + if m.Denom != nil { + { + size, err := m.Denom.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintIbc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.Amount != nil { + { + size, err := m.Amount.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintIbc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ClientData) 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 *ClientData) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ClientData) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.ProcessedHeight != 0 { + i = encodeVarintIbc(dAtA, i, uint64(m.ProcessedHeight)) + i-- + dAtA[i] = 0x20 + } + if len(m.ProcessedTime) > 0 { + i -= len(m.ProcessedTime) + copy(dAtA[i:], m.ProcessedTime) + i = encodeVarintIbc(dAtA, i, uint64(len(m.ProcessedTime))) + i-- + dAtA[i] = 0x1a + } + if m.ClientState != nil { + { + size, err := m.ClientState.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintIbc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if len(m.ClientId) > 0 { + i -= len(m.ClientId) + copy(dAtA[i:], m.ClientId) + i = encodeVarintIbc(dAtA, i, uint64(len(m.ClientId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ClientCounter) 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 *ClientCounter) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ClientCounter) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Counter != 0 { + i = encodeVarintIbc(dAtA, i, uint64(m.Counter)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *ConsensusState) 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 *ConsensusState) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ConsensusState) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.ConsensusState != nil { + { + size, err := m.ConsensusState.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintIbc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *VerifiedHeights) 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 *VerifiedHeights) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *VerifiedHeights) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Heights) > 0 { + for iNdEx := len(m.Heights) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Heights[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintIbc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *ConnectionCounter) 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 *ConnectionCounter) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ConnectionCounter) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Counter != 0 { + i = encodeVarintIbc(dAtA, i, uint64(m.Counter)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *ClientConnections) 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 *ClientConnections) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ClientConnections) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Connections) > 0 { + for iNdEx := len(m.Connections) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Connections[iNdEx]) + copy(dAtA[i:], m.Connections[iNdEx]) + i = encodeVarintIbc(dAtA, i, uint64(len(m.Connections[iNdEx]))) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *IbcParameters) 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 *IbcParameters) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *IbcParameters) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.OutboundIcs20TransfersEnabled { + i-- + if m.OutboundIcs20TransfersEnabled { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + } + if m.InboundIcs20TransfersEnabled { + i-- + if m.InboundIcs20TransfersEnabled { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x10 + } + if m.IbcEnabled { + i-- + if m.IbcEnabled { + 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.IbcParams != nil { + { + size, err := m.IbcParams.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintIbc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintIbc(dAtA []byte, offset int, v uint64) int { + offset -= sovIbc(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *IbcAction) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.RawAction != nil { + l = m.RawAction.Size() + n += 1 + l + sovIbc(uint64(l)) + } + return n +} + +func (m *FungibleTokenPacketData) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Denom) + if l > 0 { + n += 1 + l + sovIbc(uint64(l)) + } + l = len(m.Amount) + if l > 0 { + n += 1 + l + sovIbc(uint64(l)) + } + l = len(m.Sender) + if l > 0 { + n += 1 + l + sovIbc(uint64(l)) + } + l = len(m.Receiver) + if l > 0 { + n += 1 + l + sovIbc(uint64(l)) + } + return n +} + +func (m *Ics20Withdrawal) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Amount != nil { + l = m.Amount.Size() + n += 1 + l + sovIbc(uint64(l)) + } + if m.Denom != nil { + l = m.Denom.Size() + n += 1 + l + sovIbc(uint64(l)) + } + l = len(m.DestinationChainAddress) + if l > 0 { + n += 1 + l + sovIbc(uint64(l)) + } + if m.ReturnAddress != nil { + l = m.ReturnAddress.Size() + n += 1 + l + sovIbc(uint64(l)) + } + if m.TimeoutHeight != nil { + l = m.TimeoutHeight.Size() + n += 1 + l + sovIbc(uint64(l)) + } + if m.TimeoutTime != 0 { + n += 1 + sovIbc(uint64(m.TimeoutTime)) + } + l = len(m.SourceChannel) + if l > 0 { + n += 1 + l + sovIbc(uint64(l)) + } + return n +} + +func (m *ClientData) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ClientId) + if l > 0 { + n += 1 + l + sovIbc(uint64(l)) + } + if m.ClientState != nil { + l = m.ClientState.Size() + n += 1 + l + sovIbc(uint64(l)) + } + l = len(m.ProcessedTime) + if l > 0 { + n += 1 + l + sovIbc(uint64(l)) + } + if m.ProcessedHeight != 0 { + n += 1 + sovIbc(uint64(m.ProcessedHeight)) + } + return n +} + +func (m *ClientCounter) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Counter != 0 { + n += 1 + sovIbc(uint64(m.Counter)) + } + return n +} + +func (m *ConsensusState) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ConsensusState != nil { + l = m.ConsensusState.Size() + n += 1 + l + sovIbc(uint64(l)) + } + return n +} + +func (m *VerifiedHeights) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Heights) > 0 { + for _, e := range m.Heights { + l = e.Size() + n += 1 + l + sovIbc(uint64(l)) + } + } + return n +} + +func (m *ConnectionCounter) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Counter != 0 { + n += 1 + sovIbc(uint64(m.Counter)) + } + return n +} + +func (m *ClientConnections) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Connections) > 0 { + for _, s := range m.Connections { + l = len(s) + n += 1 + l + sovIbc(uint64(l)) + } + } + return n +} + +func (m *IbcParameters) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.IbcEnabled { + n += 2 + } + if m.InboundIcs20TransfersEnabled { + n += 2 + } + if m.OutboundIcs20TransfersEnabled { + n += 2 + } + return n +} + +func (m *GenesisContent) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.IbcParams != nil { + l = m.IbcParams.Size() + n += 1 + l + sovIbc(uint64(l)) + } + return n +} + +func sovIbc(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozIbc(x uint64) (n int) { + return sovIbc(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *IbcAction) 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 ErrIntOverflowIbc + } + 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: IbcAction: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: IbcAction: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RawAction", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIbc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthIbc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthIbc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.RawAction == nil { + m.RawAction = &types.Any{} + } + if err := m.RawAction.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipIbc(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthIbc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *FungibleTokenPacketData) 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 ErrIntOverflowIbc + } + 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: FungibleTokenPacketData: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FungibleTokenPacketData: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + 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 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.Denom = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Amount", 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.Amount = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Sender", 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.Sender = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Receiver", 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.Receiver = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipIbc(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthIbc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Ics20Withdrawal) 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 ErrIntOverflowIbc + } + 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: Ics20Withdrawal: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Ics20Withdrawal: 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) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIbc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthIbc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthIbc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Amount == nil { + m.Amount = &v1alpha1.Amount{} + } + 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 Denom", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIbc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthIbc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthIbc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Denom == nil { + m.Denom = &v1alpha11.Denom{} + } + if err := m.Denom.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DestinationChainAddress", 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.DestinationChainAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ReturnAddress", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIbc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthIbc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthIbc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ReturnAddress == nil { + m.ReturnAddress = &v1alpha12.Address{} + } + if err := m.ReturnAddress.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TimeoutHeight", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIbc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthIbc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthIbc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.TimeoutHeight == nil { + m.TimeoutHeight = &types1.Height{} + } + if err := m.TimeoutHeight.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TimeoutTime", wireType) + } + m.TimeoutTime = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIbc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TimeoutTime |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SourceChannel", 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.SourceChannel = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipIbc(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthIbc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ClientData) 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 ErrIntOverflowIbc + } + 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: ClientData: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ClientData: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClientId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 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.ClientId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClientState", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIbc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthIbc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthIbc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ClientState == nil { + m.ClientState = &types.Any{} + } + if err := m.ClientState.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ProcessedTime", 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.ProcessedTime = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ProcessedHeight", wireType) + } + m.ProcessedHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIbc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ProcessedHeight |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipIbc(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthIbc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ClientCounter) 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 ErrIntOverflowIbc + } + 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: ClientCounter: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ClientCounter: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Counter", wireType) + } + m.Counter = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIbc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Counter |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipIbc(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthIbc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ConsensusState) 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 ErrIntOverflowIbc + } + 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: ConsensusState: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ConsensusState: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ConsensusState", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIbc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthIbc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthIbc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ConsensusState == nil { + m.ConsensusState = &types.Any{} + } + if err := m.ConsensusState.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipIbc(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthIbc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *VerifiedHeights) 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 ErrIntOverflowIbc + } + 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: VerifiedHeights: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: VerifiedHeights: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Heights", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIbc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthIbc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthIbc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Heights = append(m.Heights, &types1.Height{}) + if err := m.Heights[len(m.Heights)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipIbc(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthIbc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ConnectionCounter) 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 ErrIntOverflowIbc + } + 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: ConnectionCounter: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ConnectionCounter: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Counter", wireType) + } + m.Counter = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIbc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Counter |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipIbc(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthIbc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ClientConnections) 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 ErrIntOverflowIbc + } + 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: ClientConnections: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ClientConnections: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Connections", 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.Connections = append(m.Connections, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipIbc(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthIbc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *IbcParameters) 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 ErrIntOverflowIbc + } + 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: IbcParameters: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: IbcParameters: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IbcEnabled", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIbc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IbcEnabled = bool(v != 0) + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InboundIcs20TransfersEnabled", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIbc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InboundIcs20TransfersEnabled = bool(v != 0) + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OutboundIcs20TransfersEnabled", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIbc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OutboundIcs20TransfersEnabled = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipIbc(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthIbc + } + 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 ErrIntOverflowIbc + } + 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 IbcParams", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIbc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthIbc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthIbc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.IbcParams == nil { + m.IbcParams = &IbcParameters{} + } + if err := m.IbcParams.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipIbc(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthIbc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipIbc(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, ErrIntOverflowIbc + } + 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, ErrIntOverflowIbc + } + 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, ErrIntOverflowIbc + } + 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, ErrInvalidLengthIbc + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupIbc + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthIbc + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthIbc = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowIbc = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupIbc = fmt.Errorf("proto: unexpected end of group") +) diff --git a/relayer/chains/penumbra/core/component/sct/v1alpha1/sct.pb.go b/relayer/chains/penumbra/core/component/sct/v1alpha1/sct.pb.go new file mode 100644 index 000000000..2fa5c96e6 --- /dev/null +++ b/relayer/chains/penumbra/core/component/sct/v1alpha1/sct.pb.go @@ -0,0 +1,838 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: penumbra/core/component/sct/v1alpha1/sct.proto + +package sctv1alpha1 + +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/component/chain/v1alpha1" + v1alpha1 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/crypto/tct/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 + +type Nullifier struct { + Inner []byte `protobuf:"bytes,1,opt,name=inner,proto3" json:"inner,omitempty"` +} + +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{0} +} +func (m *Nullifier) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Nullifier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Nullifier.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 *Nullifier) XXX_Merge(src proto.Message) { + xxx_messageInfo_Nullifier.Merge(m, src) +} +func (m *Nullifier) XXX_Size() int { + return m.Size() +} +func (m *Nullifier) XXX_DiscardUnknown() { + xxx_messageInfo_Nullifier.DiscardUnknown(m) +} + +var xxx_messageInfo_Nullifier proto.InternalMessageInfo + +func (m *Nullifier) GetInner() []byte { + if m != nil { + return m.Inner + } + return nil +} + +type TransactionByNoteRequest 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"` + NoteCommitment *v1alpha1.StateCommitment `protobuf:"bytes,2,opt,name=note_commitment,json=noteCommitment,proto3" json:"note_commitment,omitempty"` +} + +func (m *TransactionByNoteRequest) Reset() { *m = TransactionByNoteRequest{} } +func (m *TransactionByNoteRequest) String() string { return proto.CompactTextString(m) } +func (*TransactionByNoteRequest) ProtoMessage() {} +func (*TransactionByNoteRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_e99589ee3b6c1a3a, []int{1} +} +func (m *TransactionByNoteRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TransactionByNoteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TransactionByNoteRequest.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 *TransactionByNoteRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_TransactionByNoteRequest.Merge(m, src) +} +func (m *TransactionByNoteRequest) XXX_Size() int { + return m.Size() +} +func (m *TransactionByNoteRequest) XXX_DiscardUnknown() { + xxx_messageInfo_TransactionByNoteRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_TransactionByNoteRequest proto.InternalMessageInfo + +func (m *TransactionByNoteRequest) GetChainId() string { + if m != nil { + return m.ChainId + } + return "" +} + +func (m *TransactionByNoteRequest) GetNoteCommitment() *v1alpha1.StateCommitment { + if m != nil { + return m.NoteCommitment + } + return nil +} + +type TransactionByNoteResponse struct { + NoteSource *v1alpha11.NoteSource `protobuf:"bytes,1,opt,name=note_source,json=noteSource,proto3" json:"note_source,omitempty"` +} + +func (m *TransactionByNoteResponse) Reset() { *m = TransactionByNoteResponse{} } +func (m *TransactionByNoteResponse) String() string { return proto.CompactTextString(m) } +func (*TransactionByNoteResponse) ProtoMessage() {} +func (*TransactionByNoteResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_e99589ee3b6c1a3a, []int{2} +} +func (m *TransactionByNoteResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TransactionByNoteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TransactionByNoteResponse.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 *TransactionByNoteResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_TransactionByNoteResponse.Merge(m, src) +} +func (m *TransactionByNoteResponse) XXX_Size() int { + return m.Size() +} +func (m *TransactionByNoteResponse) XXX_DiscardUnknown() { + xxx_messageInfo_TransactionByNoteResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_TransactionByNoteResponse proto.InternalMessageInfo + +func (m *TransactionByNoteResponse) GetNoteSource() *v1alpha11.NoteSource { + if m != nil { + return m.NoteSource + } + return nil +} + +func init() { + proto.RegisterType((*Nullifier)(nil), "penumbra.core.component.sct.v1alpha1.Nullifier") + proto.RegisterType((*TransactionByNoteRequest)(nil), "penumbra.core.component.sct.v1alpha1.TransactionByNoteRequest") + proto.RegisterType((*TransactionByNoteResponse)(nil), "penumbra.core.component.sct.v1alpha1.TransactionByNoteResponse") +} + +func init() { + proto.RegisterFile("penumbra/core/component/sct/v1alpha1/sct.proto", fileDescriptor_e99589ee3b6c1a3a) +} + +var fileDescriptor_e99589ee3b6c1a3a = []byte{ + // 486 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x93, 0xcf, 0x8a, 0x13, 0x41, + 0x10, 0xc6, 0xd3, 0x83, 0x7f, 0x76, 0x3b, 0x8b, 0xe2, 0xe0, 0x21, 0x9b, 0xc3, 0xb0, 0x86, 0x45, + 0x72, 0xb1, 0xc7, 0x1d, 0x6f, 0x23, 0x28, 0x24, 0x07, 0xf1, 0xe0, 0x12, 0x33, 0xb2, 0x07, 0x19, + 0x58, 0x3a, 0x9d, 0xd2, 0x0c, 0x64, 0xba, 0xc7, 0xee, 0x9a, 0x40, 0x1e, 0x42, 0xf0, 0xe0, 0x13, + 0x08, 0x5e, 0x7c, 0x12, 0xf1, 0xb4, 0x47, 0x6f, 0x4a, 0x72, 0xf3, 0x29, 0xa4, 0x3b, 0x3b, 0x33, + 0x0b, 0x1a, 0x08, 0x7b, 0x09, 0x55, 0xf0, 0xfb, 0xbe, 0xfa, 0xaa, 0xd2, 0x43, 0x59, 0x01, 0xb2, + 0xcc, 0x27, 0x9a, 0x87, 0x42, 0x69, 0x08, 0x85, 0xca, 0x0b, 0x25, 0x41, 0x62, 0x68, 0x04, 0x86, + 0x8b, 0x13, 0x3e, 0x2f, 0x66, 0xfc, 0xc4, 0x36, 0xac, 0xd0, 0x0a, 0x95, 0x7f, 0x5c, 0xf1, 0xcc, + 0xf2, 0xac, 0xe6, 0x99, 0x45, 0x2a, 0xbe, 0xfb, 0xb0, 0x71, 0xd5, 0xcb, 0x02, 0x55, 0x88, 0x57, + 0xdd, 0xb0, 0x72, 0xeb, 0x46, 0xdb, 0xa6, 0x8b, 0x19, 0xcf, 0x64, 0xa3, 0x70, 0xed, 0x46, 0xd3, + 0x7b, 0x40, 0xf7, 0x4f, 0xcb, 0xf9, 0x3c, 0x7b, 0x97, 0x81, 0xf6, 0xef, 0xd3, 0x9b, 0x99, 0x94, + 0xa0, 0x3b, 0xe4, 0x88, 0xf4, 0x0f, 0xc6, 0x9b, 0xa6, 0xf7, 0x91, 0xd0, 0xce, 0x1b, 0xcd, 0xa5, + 0xe1, 0x02, 0x33, 0x25, 0x07, 0xcb, 0x53, 0x85, 0x30, 0x86, 0x0f, 0x25, 0x18, 0xf4, 0x0f, 0xe9, + 0x9e, 0xb3, 0x3b, 0xcf, 0xa6, 0x4e, 0xb5, 0x3f, 0xbe, 0xed, 0xfa, 0x97, 0x53, 0xff, 0x8c, 0xde, + 0x95, 0x0a, 0xe1, 0x5c, 0xa8, 0x3c, 0xcf, 0x30, 0x07, 0x89, 0x1d, 0xef, 0x88, 0xf4, 0xdb, 0xd1, + 0x23, 0xd6, 0xac, 0xed, 0x16, 0x62, 0x78, 0x65, 0x5d, 0x96, 0x20, 0x47, 0x18, 0xd6, 0xa2, 0xf1, + 0x1d, 0xeb, 0xd2, 0xf4, 0xbd, 0x82, 0x1e, 0xfe, 0x27, 0x8e, 0x29, 0x94, 0x34, 0xe0, 0x27, 0xb4, + 0xed, 0x86, 0x1a, 0x55, 0x6a, 0x01, 0x2e, 0x52, 0x3b, 0x8a, 0xd8, 0xb6, 0x3b, 0x6f, 0x4e, 0x51, + 0x8f, 0xb6, 0x56, 0x89, 0x53, 0x8e, 0xa9, 0xac, 0xeb, 0xe8, 0x2b, 0xa1, 0x07, 0xaf, 0x4b, 0xd0, + 0xcb, 0x04, 0xf4, 0x22, 0x13, 0xe0, 0x7f, 0x26, 0xf4, 0xde, 0x3f, 0x19, 0xfc, 0x67, 0x6c, 0x97, + 0xbf, 0x93, 0x6d, 0xbb, 0x65, 0xf7, 0xf9, 0xb5, 0xf5, 0x9b, 0xe5, 0x07, 0xbf, 0xbc, 0xef, 0xab, + 0x80, 0x5c, 0xac, 0x02, 0xf2, 0x7b, 0x15, 0x90, 0x4f, 0xeb, 0xa0, 0x75, 0xb1, 0x0e, 0x5a, 0x3f, + 0xd7, 0x41, 0x8b, 0xf6, 0x85, 0xca, 0x77, 0xb2, 0x1f, 0xec, 0x25, 0x02, 0x47, 0xf6, 0x6d, 0x8c, + 0xc8, 0xdb, 0xf4, 0x7d, 0x86, 0xb3, 0x72, 0x62, 0xd1, 0x50, 0x28, 0x93, 0x2b, 0x13, 0x6a, 0x98, + 0xf3, 0x25, 0xe8, 0x70, 0x11, 0xd5, 0xa5, 0x3b, 0xa2, 0x09, 0x77, 0x79, 0xfb, 0x4f, 0x8d, 0xc0, + 0xaa, 0xfe, 0xe2, 0xdd, 0x18, 0x0d, 0x87, 0xc9, 0x37, 0xef, 0x78, 0x54, 0xe5, 0x1a, 0xda, 0x5c, + 0xc3, 0x3a, 0x57, 0x22, 0x90, 0x9d, 0x5d, 0xd2, 0x3f, 0x1a, 0x2c, 0xb5, 0x58, 0x5a, 0x63, 0x69, + 0x22, 0x30, 0xad, 0xb0, 0x95, 0xf7, 0x78, 0x17, 0x2c, 0x7d, 0x31, 0x1a, 0xbc, 0x02, 0xe4, 0x53, + 0x8e, 0xfc, 0x8f, 0xd7, 0xaf, 0x24, 0x71, 0x6c, 0x35, 0xf6, 0xf7, 0x52, 0x14, 0xc7, 0x89, 0xc0, + 0x38, 0xae, 0x64, 0x93, 0x5b, 0xee, 0xab, 0x79, 0xf2, 0x37, 0x00, 0x00, 0xff, 0xff, 0x68, 0xc4, + 0x34, 0xb6, 0xe9, 0x03, 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: change to generic tx-by-commitment + TransactionByNote(ctx context.Context, in *TransactionByNoteRequest, opts ...grpc.CallOption) (*TransactionByNoteResponse, error) +} + +type queryServiceClient struct { + cc grpc1.ClientConn +} + +func NewQueryServiceClient(cc grpc1.ClientConn) QueryServiceClient { + return &queryServiceClient{cc} +} + +func (c *queryServiceClient) TransactionByNote(ctx context.Context, in *TransactionByNoteRequest, opts ...grpc.CallOption) (*TransactionByNoteResponse, error) { + out := new(TransactionByNoteResponse) + err := c.cc.Invoke(ctx, "/penumbra.core.component.sct.v1alpha1.QueryService/TransactionByNote", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// QueryServiceServer is the server API for QueryService service. +type QueryServiceServer interface { + // TODO: change to generic tx-by-commitment + TransactionByNote(context.Context, *TransactionByNoteRequest) (*TransactionByNoteResponse, error) +} + +// UnimplementedQueryServiceServer can be embedded to have forward compatible implementations. +type UnimplementedQueryServiceServer struct { +} + +func (*UnimplementedQueryServiceServer) TransactionByNote(ctx context.Context, req *TransactionByNoteRequest) (*TransactionByNoteResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method TransactionByNote not implemented") +} + +func RegisterQueryServiceServer(s grpc1.Server, srv QueryServiceServer) { + s.RegisterService(&_QueryService_serviceDesc, srv) +} + +func _QueryService_TransactionByNote_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TransactionByNoteRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServiceServer).TransactionByNote(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/penumbra.core.component.sct.v1alpha1.QueryService/TransactionByNote", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServiceServer).TransactionByNote(ctx, req.(*TransactionByNoteRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _QueryService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "penumbra.core.component.sct.v1alpha1.QueryService", + HandlerType: (*QueryServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "TransactionByNote", + Handler: _QueryService_TransactionByNote_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "penumbra/core/component/sct/v1alpha1/sct.proto", +} + +func (m *Nullifier) 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 *Nullifier) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Nullifier) 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 = encodeVarintSct(dAtA, i, uint64(len(m.Inner))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *TransactionByNoteRequest) 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 *TransactionByNoteRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TransactionByNoteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.NoteCommitment != nil { + { + size, err := m.NoteCommitment.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSct(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if len(m.ChainId) > 0 { + i -= len(m.ChainId) + copy(dAtA[i:], m.ChainId) + i = encodeVarintSct(dAtA, i, uint64(len(m.ChainId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *TransactionByNoteResponse) 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 *TransactionByNoteResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TransactionByNoteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.NoteSource != nil { + { + size, err := m.NoteSource.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 + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *Nullifier) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Inner) + if l > 0 { + n += 1 + l + sovSct(uint64(l)) + } + return n +} + +func (m *TransactionByNoteRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ChainId) + if l > 0 { + n += 1 + l + sovSct(uint64(l)) + } + if m.NoteCommitment != nil { + l = m.NoteCommitment.Size() + n += 1 + l + sovSct(uint64(l)) + } + return n +} + +func (m *TransactionByNoteResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.NoteSource != nil { + l = m.NoteSource.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 *Nullifier) 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: Nullifier: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Nullifier: 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 ErrIntOverflowSct + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthSct + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthSct + } + 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 := 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 *TransactionByNoteRequest) 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: TransactionByNoteRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TransactionByNoteRequest: 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 ErrIntOverflowSct + } + 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 ErrInvalidLengthSct + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSct + } + 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 NoteCommitment", 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.NoteCommitment == nil { + m.NoteCommitment = &v1alpha1.StateCommitment{} + } + if err := m.NoteCommitment.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 (m *TransactionByNoteResponse) 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: TransactionByNoteResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TransactionByNoteResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NoteSource", 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.NoteSource == nil { + m.NoteSource = &v1alpha11.NoteSource{} + } + if err := m.NoteSource.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 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowSct + } + 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, ErrIntOverflowSct + } + 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, ErrIntOverflowSct + } + 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, ErrInvalidLengthSct + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupSct + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthSct + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthSct = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowSct = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupSct = fmt.Errorf("proto: unexpected end of group") +) diff --git a/relayer/chains/penumbra/core/component/shielded_pool/v1alpha1/shielded_pool.pb.go b/relayer/chains/penumbra/core/component/shielded_pool/v1alpha1/shielded_pool.pb.go new file mode 100644 index 000000000..5ad539eeb --- /dev/null +++ b/relayer/chains/penumbra/core/component/shielded_pool/v1alpha1/shielded_pool.pb.go @@ -0,0 +1,6386 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: penumbra/core/component/shielded_pool/v1alpha1/shielded_pool.proto + +package shielded_poolv1alpha1 + +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" + v1alpha11 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/keys/v1alpha1" + v1alpha14 "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" + 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 + +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"` +} + +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} +} +func (m *Note) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Note) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Note.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 *Note) XXX_Merge(src proto.Message) { + xxx_messageInfo_Note.Merge(m, src) +} +func (m *Note) XXX_Size() int { + return m.Size() +} +func (m *Note) XXX_DiscardUnknown() { + xxx_messageInfo_Note.DiscardUnknown(m) +} + +var xxx_messageInfo_Note proto.InternalMessageInfo + +func (m *Note) GetValue() *v1alpha1.Value { + if m != nil { + return m.Value + } + return nil +} + +func (m *Note) GetRseed() []byte { + if m != nil { + return m.Rseed + } + return nil +} + +func (m *Note) GetAddress() *v1alpha11.Address { + if m != nil { + return m.Address + } + return nil +} + +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"` +} + +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} +} +func (m *NoteView) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NoteView) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NoteView.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 *NoteView) XXX_Merge(src proto.Message) { + xxx_messageInfo_NoteView.Merge(m, src) +} +func (m *NoteView) XXX_Size() int { + return m.Size() +} +func (m *NoteView) XXX_DiscardUnknown() { + xxx_messageInfo_NoteView.DiscardUnknown(m) +} + +var xxx_messageInfo_NoteView proto.InternalMessageInfo + +func (m *NoteView) GetValue() *v1alpha1.ValueView { + if m != nil { + return m.Value + } + return nil +} + +func (m *NoteView) GetRseed() []byte { + if m != nil { + return m.Rseed + } + return nil +} + +func (m *NoteView) GetAddress() *v1alpha11.AddressView { + if m != nil { + return m.Address + } + return nil +} + +// An encrypted note. +// 132 = 1(type) + 11(d) + 8(amount) + 32(asset_id) + 32(rcm) + 32(pk_d) + 16(MAC) bytes. +type NoteCiphertext struct { + Inner []byte `protobuf:"bytes,1,opt,name=inner,proto3" json:"inner,omitempty"` +} + +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} +} +func (m *NoteCiphertext) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NoteCiphertext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NoteCiphertext.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 *NoteCiphertext) XXX_Merge(src proto.Message) { + xxx_messageInfo_NoteCiphertext.Merge(m, src) +} +func (m *NoteCiphertext) XXX_Size() int { + return m.Size() +} +func (m *NoteCiphertext) XXX_DiscardUnknown() { + xxx_messageInfo_NoteCiphertext.DiscardUnknown(m) +} + +var xxx_messageInfo_NoteCiphertext proto.InternalMessageInfo + +func (m *NoteCiphertext) GetInner() []byte { + if m != nil { + return m.Inner + } + return nil +} + +// The body of an output description, including only the minimal +// 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"` + // 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. + EncryptedNote *NoteCiphertext `protobuf:"bytes,3,opt,name=encrypted_note,json=encryptedNote,proto3" json:"encrypted_note,omitempty"` +} + +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} +} +func (m *NotePayload) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NotePayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NotePayload.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 *NotePayload) XXX_Merge(src proto.Message) { + xxx_messageInfo_NotePayload.Merge(m, src) +} +func (m *NotePayload) XXX_Size() int { + return m.Size() +} +func (m *NotePayload) XXX_DiscardUnknown() { + xxx_messageInfo_NotePayload.DiscardUnknown(m) +} + +var xxx_messageInfo_NotePayload proto.InternalMessageInfo + +func (m *NotePayload) GetNoteCommitment() *v1alpha12.StateCommitment { + if m != nil { + return m.NoteCommitment + } + return nil +} + +func (m *NotePayload) GetEphemeralKey() []byte { + if m != nil { + return m.EphemeralKey + } + return nil +} + +func (m *NotePayload) GetEncryptedNote() *NoteCiphertext { + if m != nil { + return m.EncryptedNote + } + return nil +} + +// A Penumbra ZK output proof. +type ZKOutputProof struct { + Inner []byte `protobuf:"bytes,1,opt,name=inner,proto3" json:"inner,omitempty"` +} + +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} +} +func (m *ZKOutputProof) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ZKOutputProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ZKOutputProof.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 *ZKOutputProof) XXX_Merge(src proto.Message) { + xxx_messageInfo_ZKOutputProof.Merge(m, src) +} +func (m *ZKOutputProof) XXX_Size() int { + return m.Size() +} +func (m *ZKOutputProof) XXX_DiscardUnknown() { + xxx_messageInfo_ZKOutputProof.DiscardUnknown(m) +} + +var xxx_messageInfo_ZKOutputProof proto.InternalMessageInfo + +func (m *ZKOutputProof) GetInner() []byte { + if m != nil { + return m.Inner + } + return nil +} + +// A Penumbra ZK spend proof. +type ZKSpendProof struct { + Inner []byte `protobuf:"bytes,1,opt,name=inner,proto3" json:"inner,omitempty"` +} + +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} +} +func (m *ZKSpendProof) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ZKSpendProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ZKSpendProof.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 *ZKSpendProof) XXX_Merge(src proto.Message) { + xxx_messageInfo_ZKSpendProof.Merge(m, src) +} +func (m *ZKSpendProof) XXX_Size() int { + return m.Size() +} +func (m *ZKSpendProof) XXX_DiscardUnknown() { + xxx_messageInfo_ZKSpendProof.DiscardUnknown(m) +} + +var xxx_messageInfo_ZKSpendProof proto.InternalMessageInfo + +func (m *ZKSpendProof) GetInner() []byte { + if m != nil { + return m.Inner + } + return nil +} + +// A Penumbra ZK nullifier derivation proof. +type ZKNullifierDerivationProof struct { + Inner []byte `protobuf:"bytes,1,opt,name=inner,proto3" json:"inner,omitempty"` +} + +func (m *ZKNullifierDerivationProof) Reset() { *m = ZKNullifierDerivationProof{} } +func (m *ZKNullifierDerivationProof) String() string { return proto.CompactTextString(m) } +func (*ZKNullifierDerivationProof) ProtoMessage() {} +func (*ZKNullifierDerivationProof) Descriptor() ([]byte, []int) { + return fileDescriptor_aa12195337df7d3c, []int{6} +} +func (m *ZKNullifierDerivationProof) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ZKNullifierDerivationProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ZKNullifierDerivationProof.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 *ZKNullifierDerivationProof) XXX_Merge(src proto.Message) { + xxx_messageInfo_ZKNullifierDerivationProof.Merge(m, src) +} +func (m *ZKNullifierDerivationProof) XXX_Size() int { + return m.Size() +} +func (m *ZKNullifierDerivationProof) XXX_DiscardUnknown() { + xxx_messageInfo_ZKNullifierDerivationProof.DiscardUnknown(m) +} + +var xxx_messageInfo_ZKNullifierDerivationProof proto.InternalMessageInfo + +func (m *ZKNullifierDerivationProof) GetInner() []byte { + if m != nil { + return m.Inner + } + return nil +} + +// Spends a shielded note. +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"` + // The proof that the spend is well-formed is authorizing data. + Proof *ZKSpendProof `protobuf:"bytes,3,opt,name=proof,proto3" json:"proof,omitempty"` +} + +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} +} +func (m *Spend) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Spend) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Spend.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 *Spend) XXX_Merge(src proto.Message) { + xxx_messageInfo_Spend.Merge(m, src) +} +func (m *Spend) XXX_Size() int { + return m.Size() +} +func (m *Spend) XXX_DiscardUnknown() { + xxx_messageInfo_Spend.DiscardUnknown(m) +} + +var xxx_messageInfo_Spend proto.InternalMessageInfo + +func (m *Spend) GetBody() *SpendBody { + if m != nil { + return m.Body + } + return nil +} + +func (m *Spend) GetAuthSig() *v1alpha13.SpendAuthSignature { + if m != nil { + return m.AuthSig + } + return nil +} + +func (m *Spend) GetProof() *ZKSpendProof { + if m != nil { + return m.Proof + } + return nil +} + +// The body of a spend description, containing only the effecting data +// describing changes to the ledger, and not the authorizing data that allows +// 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"` + // The nullifier of the input note. + Nullifier []byte `protobuf:"bytes,3,opt,name=nullifier,proto3" json:"nullifier,omitempty"` + // The randomized validating key for the spend authorization signature. + Rk []byte `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{8} +} +func (m *SpendBody) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SpendBody) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SpendBody.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 *SpendBody) XXX_Merge(src proto.Message) { + xxx_messageInfo_SpendBody.Merge(m, src) +} +func (m *SpendBody) XXX_Size() int { + return m.Size() +} +func (m *SpendBody) XXX_DiscardUnknown() { + xxx_messageInfo_SpendBody.DiscardUnknown(m) +} + +var xxx_messageInfo_SpendBody proto.InternalMessageInfo + +func (m *SpendBody) GetBalanceCommitment() *v1alpha1.BalanceCommitment { + if m != nil { + return m.BalanceCommitment + } + return nil +} + +func (m *SpendBody) GetNullifier() []byte { + if m != nil { + return m.Nullifier + } + return nil +} + +func (m *SpendBody) GetRk() []byte { + if m != nil { + return m.Rk + } + return nil +} + +type SpendView struct { + // Types that are valid to be assigned to SpendView: + // + // *SpendView_Visible_ + // *SpendView_Opaque_ + SpendView isSpendView_SpendView `protobuf_oneof:"spend_view"` +} + +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{9} +} +func (m *SpendView) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SpendView) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SpendView.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 *SpendView) XXX_Merge(src proto.Message) { + xxx_messageInfo_SpendView.Merge(m, src) +} +func (m *SpendView) XXX_Size() int { + return m.Size() +} +func (m *SpendView) XXX_DiscardUnknown() { + xxx_messageInfo_SpendView.DiscardUnknown(m) +} + +var xxx_messageInfo_SpendView proto.InternalMessageInfo + +type isSpendView_SpendView interface { + isSpendView_SpendView() + MarshalTo([]byte) (int, error) + Size() int +} + +type SpendView_Visible_ struct { + Visible *SpendView_Visible `protobuf:"bytes,1,opt,name=visible,proto3,oneof" json:"visible,omitempty"` +} +type SpendView_Opaque_ struct { + Opaque *SpendView_Opaque `protobuf:"bytes,2,opt,name=opaque,proto3,oneof" json:"opaque,omitempty"` +} + +func (*SpendView_Visible_) isSpendView_SpendView() {} +func (*SpendView_Opaque_) isSpendView_SpendView() {} + +func (m *SpendView) GetSpendView() isSpendView_SpendView { + if m != nil { + return m.SpendView + } + return nil +} + +func (m *SpendView) GetVisible() *SpendView_Visible { + if x, ok := m.GetSpendView().(*SpendView_Visible_); ok { + return x.Visible + } + return nil +} + +func (m *SpendView) GetOpaque() *SpendView_Opaque { + if x, ok := m.GetSpendView().(*SpendView_Opaque_); ok { + return x.Opaque + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*SpendView) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*SpendView_Visible_)(nil), + (*SpendView_Opaque_)(nil), + } +} + +type SpendView_Visible struct { + Spend *Spend `protobuf:"bytes,1,opt,name=spend,proto3" json:"spend,omitempty"` + Note *NoteView `protobuf:"bytes,2,opt,name=note,proto3" json:"note,omitempty"` +} + +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{9, 0} +} +func (m *SpendView_Visible) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SpendView_Visible) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SpendView_Visible.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 *SpendView_Visible) XXX_Merge(src proto.Message) { + xxx_messageInfo_SpendView_Visible.Merge(m, src) +} +func (m *SpendView_Visible) XXX_Size() int { + return m.Size() +} +func (m *SpendView_Visible) XXX_DiscardUnknown() { + xxx_messageInfo_SpendView_Visible.DiscardUnknown(m) +} + +var xxx_messageInfo_SpendView_Visible proto.InternalMessageInfo + +func (m *SpendView_Visible) GetSpend() *Spend { + if m != nil { + return m.Spend + } + return nil +} + +func (m *SpendView_Visible) GetNote() *NoteView { + if m != nil { + return m.Note + } + return nil +} + +type SpendView_Opaque struct { + Spend *Spend `protobuf:"bytes,1,opt,name=spend,proto3" json:"spend,omitempty"` +} + +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{9, 1} +} +func (m *SpendView_Opaque) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SpendView_Opaque) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SpendView_Opaque.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 *SpendView_Opaque) XXX_Merge(src proto.Message) { + xxx_messageInfo_SpendView_Opaque.Merge(m, src) +} +func (m *SpendView_Opaque) XXX_Size() int { + return m.Size() +} +func (m *SpendView_Opaque) XXX_DiscardUnknown() { + xxx_messageInfo_SpendView_Opaque.DiscardUnknown(m) +} + +var xxx_messageInfo_SpendView_Opaque proto.InternalMessageInfo + +func (m *SpendView_Opaque) GetSpend() *Spend { + if m != nil { + return m.Spend + } + return nil +} + +type SpendPlan struct { + // The plaintext note we plan to spend. + Note *Note `protobuf:"bytes,1,opt,name=note,proto3" json:"note,omitempty"` + // The position of the note we plan to spend. + Position uint64 `protobuf:"varint,2,opt,name=position,proto3" json:"position,omitempty"` + // The randomizer to use for the spend. + Randomizer []byte `protobuf:"bytes,3,opt,name=randomizer,proto3" json:"randomizer,omitempty"` + // The blinding factor to use for the value commitment. + ValueBlinding []byte `protobuf:"bytes,4,opt,name=value_blinding,json=valueBlinding,proto3" json:"value_blinding,omitempty"` + // The first blinding factor to use for the ZK spend proof. + ProofBlindingR []byte `protobuf:"bytes,5,opt,name=proof_blinding_r,json=proofBlindingR,proto3" json:"proof_blinding_r,omitempty"` + // The second blinding factor to use for the ZK spend proof. + ProofBlindingS []byte `protobuf:"bytes,6,opt,name=proof_blinding_s,json=proofBlindingS,proto3" json:"proof_blinding_s,omitempty"` +} + +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{10} +} +func (m *SpendPlan) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SpendPlan) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SpendPlan.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 *SpendPlan) XXX_Merge(src proto.Message) { + xxx_messageInfo_SpendPlan.Merge(m, src) +} +func (m *SpendPlan) XXX_Size() int { + return m.Size() +} +func (m *SpendPlan) XXX_DiscardUnknown() { + xxx_messageInfo_SpendPlan.DiscardUnknown(m) +} + +var xxx_messageInfo_SpendPlan proto.InternalMessageInfo + +func (m *SpendPlan) GetNote() *Note { + if m != nil { + return m.Note + } + return nil +} + +func (m *SpendPlan) GetPosition() uint64 { + if m != nil { + return m.Position + } + return 0 +} + +func (m *SpendPlan) GetRandomizer() []byte { + if m != nil { + return m.Randomizer + } + return nil +} + +func (m *SpendPlan) GetValueBlinding() []byte { + if m != nil { + return m.ValueBlinding + } + return nil +} + +func (m *SpendPlan) GetProofBlindingR() []byte { + if m != nil { + return m.ProofBlindingR + } + return nil +} + +func (m *SpendPlan) GetProofBlindingS() []byte { + if m != nil { + return m.ProofBlindingS + } + return nil +} + +// Creates a new shielded note. +type Output struct { + // The effecting data for the output. + Body *OutputBody `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"` + // The output proof is authorizing data. + Proof *ZKOutputProof `protobuf:"bytes,2,opt,name=proof,proto3" json:"proof,omitempty"` +} + +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{11} +} +func (m *Output) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Output) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Output.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 *Output) XXX_Merge(src proto.Message) { + xxx_messageInfo_Output.Merge(m, src) +} +func (m *Output) XXX_Size() int { + return m.Size() +} +func (m *Output) XXX_DiscardUnknown() { + xxx_messageInfo_Output.DiscardUnknown(m) +} + +var xxx_messageInfo_Output proto.InternalMessageInfo + +func (m *Output) GetBody() *OutputBody { + if m != nil { + return m.Body + } + return nil +} + +func (m *Output) GetProof() *ZKOutputProof { + if m != nil { + return m.Proof + } + return nil +} + +// The body of an output description, containing only the effecting data +// describing changes to the ledger, and not the authorizing data that allows +// those changes to be performed. +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"` + // 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 + // sender's outgoing viewing key. 80 bytes. + OvkWrappedKey []byte `protobuf:"bytes,4,opt,name=ovk_wrapped_key,json=ovkWrappedKey,proto3" json:"ovk_wrapped_key,omitempty"` +} + +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{12} +} +func (m *OutputBody) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *OutputBody) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_OutputBody.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 *OutputBody) XXX_Merge(src proto.Message) { + xxx_messageInfo_OutputBody.Merge(m, src) +} +func (m *OutputBody) XXX_Size() int { + return m.Size() +} +func (m *OutputBody) XXX_DiscardUnknown() { + xxx_messageInfo_OutputBody.DiscardUnknown(m) +} + +var xxx_messageInfo_OutputBody proto.InternalMessageInfo + +func (m *OutputBody) GetNotePayload() *NotePayload { + if m != nil { + return m.NotePayload + } + return nil +} + +func (m *OutputBody) GetBalanceCommitment() *v1alpha1.BalanceCommitment { + if m != nil { + return m.BalanceCommitment + } + return nil +} + +func (m *OutputBody) GetWrappedMemoKey() []byte { + if m != nil { + return m.WrappedMemoKey + } + return nil +} + +func (m *OutputBody) GetOvkWrappedKey() []byte { + if m != nil { + return m.OvkWrappedKey + } + return nil +} + +type OutputView struct { + // Types that are valid to be assigned to OutputView: + // + // *OutputView_Visible_ + // *OutputView_Opaque_ + OutputView isOutputView_OutputView `protobuf_oneof:"output_view"` +} + +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{13} +} +func (m *OutputView) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *OutputView) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_OutputView.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 *OutputView) XXX_Merge(src proto.Message) { + xxx_messageInfo_OutputView.Merge(m, src) +} +func (m *OutputView) XXX_Size() int { + return m.Size() +} +func (m *OutputView) XXX_DiscardUnknown() { + xxx_messageInfo_OutputView.DiscardUnknown(m) +} + +var xxx_messageInfo_OutputView proto.InternalMessageInfo + +type isOutputView_OutputView interface { + isOutputView_OutputView() + MarshalTo([]byte) (int, error) + Size() int +} + +type OutputView_Visible_ struct { + Visible *OutputView_Visible `protobuf:"bytes,1,opt,name=visible,proto3,oneof" json:"visible,omitempty"` +} +type OutputView_Opaque_ struct { + Opaque *OutputView_Opaque `protobuf:"bytes,2,opt,name=opaque,proto3,oneof" json:"opaque,omitempty"` +} + +func (*OutputView_Visible_) isOutputView_OutputView() {} +func (*OutputView_Opaque_) isOutputView_OutputView() {} + +func (m *OutputView) GetOutputView() isOutputView_OutputView { + if m != nil { + return m.OutputView + } + return nil +} + +func (m *OutputView) GetVisible() *OutputView_Visible { + if x, ok := m.GetOutputView().(*OutputView_Visible_); ok { + return x.Visible + } + return nil +} + +func (m *OutputView) GetOpaque() *OutputView_Opaque { + if x, ok := m.GetOutputView().(*OutputView_Opaque_); ok { + return x.Opaque + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*OutputView) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*OutputView_Visible_)(nil), + (*OutputView_Opaque_)(nil), + } +} + +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"` +} + +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{13, 0} +} +func (m *OutputView_Visible) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *OutputView_Visible) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_OutputView_Visible.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 *OutputView_Visible) XXX_Merge(src proto.Message) { + xxx_messageInfo_OutputView_Visible.Merge(m, src) +} +func (m *OutputView_Visible) XXX_Size() int { + return m.Size() +} +func (m *OutputView_Visible) XXX_DiscardUnknown() { + xxx_messageInfo_OutputView_Visible.DiscardUnknown(m) +} + +var xxx_messageInfo_OutputView_Visible proto.InternalMessageInfo + +func (m *OutputView_Visible) GetOutput() *Output { + if m != nil { + return m.Output + } + return nil +} + +func (m *OutputView_Visible) GetNote() *NoteView { + if m != nil { + return m.Note + } + return nil +} + +func (m *OutputView_Visible) GetPayloadKey() *v1alpha11.PayloadKey { + if m != nil { + return m.PayloadKey + } + return nil +} + +type OutputView_Opaque struct { + Output *Output `protobuf:"bytes,1,opt,name=output,proto3" json:"output,omitempty"` +} + +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{13, 1} +} +func (m *OutputView_Opaque) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *OutputView_Opaque) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_OutputView_Opaque.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 *OutputView_Opaque) XXX_Merge(src proto.Message) { + xxx_messageInfo_OutputView_Opaque.Merge(m, src) +} +func (m *OutputView_Opaque) XXX_Size() int { + return m.Size() +} +func (m *OutputView_Opaque) XXX_DiscardUnknown() { + xxx_messageInfo_OutputView_Opaque.DiscardUnknown(m) +} + +var xxx_messageInfo_OutputView_Opaque proto.InternalMessageInfo + +func (m *OutputView_Opaque) GetOutput() *Output { + if m != nil { + return m.Output + } + return nil +} + +type OutputPlan struct { + // The value to send to this output. + Value *v1alpha1.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"` + // 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. + ValueBlinding []byte `protobuf:"bytes,4,opt,name=value_blinding,json=valueBlinding,proto3" json:"value_blinding,omitempty"` + // The first blinding factor to use for the ZK output proof. + ProofBlindingR []byte `protobuf:"bytes,5,opt,name=proof_blinding_r,json=proofBlindingR,proto3" json:"proof_blinding_r,omitempty"` + // The second blinding factor to use for the ZK output proof. + ProofBlindingS []byte `protobuf:"bytes,6,opt,name=proof_blinding_s,json=proofBlindingS,proto3" json:"proof_blinding_s,omitempty"` +} + +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{14} +} +func (m *OutputPlan) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *OutputPlan) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_OutputPlan.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 *OutputPlan) XXX_Merge(src proto.Message) { + xxx_messageInfo_OutputPlan.Merge(m, src) +} +func (m *OutputPlan) XXX_Size() int { + return m.Size() +} +func (m *OutputPlan) XXX_DiscardUnknown() { + xxx_messageInfo_OutputPlan.DiscardUnknown(m) +} + +var xxx_messageInfo_OutputPlan proto.InternalMessageInfo + +func (m *OutputPlan) GetValue() *v1alpha1.Value { + if m != nil { + return m.Value + } + return nil +} + +func (m *OutputPlan) GetDestAddress() *v1alpha11.Address { + if m != nil { + return m.DestAddress + } + return nil +} + +func (m *OutputPlan) GetRseed() []byte { + if m != nil { + return m.Rseed + } + return nil +} + +func (m *OutputPlan) GetValueBlinding() []byte { + if m != nil { + return m.ValueBlinding + } + return nil +} + +func (m *OutputPlan) GetProofBlindingR() []byte { + if m != nil { + return m.ProofBlindingR + } + return nil +} + +func (m *OutputPlan) GetProofBlindingS() []byte { + if m != nil { + return m.ProofBlindingS + } + return nil +} + +// 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"` + // The asset id to request information on. + AssetId *v1alpha1.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{15} +} +func (m *DenomMetadataByIdRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DenomMetadataByIdRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DenomMetadataByIdRequest.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 *DenomMetadataByIdRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_DenomMetadataByIdRequest.Merge(m, src) +} +func (m *DenomMetadataByIdRequest) XXX_Size() int { + return m.Size() +} +func (m *DenomMetadataByIdRequest) XXX_DiscardUnknown() { + xxx_messageInfo_DenomMetadataByIdRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_DenomMetadataByIdRequest proto.InternalMessageInfo + +func (m *DenomMetadataByIdRequest) GetChainId() string { + if m != nil { + return m.ChainId + } + return "" +} + +func (m *DenomMetadataByIdRequest) GetAssetId() *v1alpha1.AssetId { + if m != nil { + return m.AssetId + } + return nil +} + +type DenomMetadataByIdResponse 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"` +} + +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{16} +} +func (m *DenomMetadataByIdResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DenomMetadataByIdResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DenomMetadataByIdResponse.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 *DenomMetadataByIdResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_DenomMetadataByIdResponse.Merge(m, src) +} +func (m *DenomMetadataByIdResponse) XXX_Size() int { + return m.Size() +} +func (m *DenomMetadataByIdResponse) XXX_DiscardUnknown() { + xxx_messageInfo_DenomMetadataByIdResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_DenomMetadataByIdResponse proto.InternalMessageInfo + +func (m *DenomMetadataByIdResponse) GetDenomMetadata() *v1alpha1.DenomMetadata { + 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 (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{17} +} +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) GetAllocations() []*GenesisContent_Allocation { + if m != nil { + return m.Allocations + } + return nil +} + +type GenesisContent_Allocation struct { + Amount *v1alpha14.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"` +} + +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{17, 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() *v1alpha14.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() *v1alpha11.Address { + if m != nil { + return m.Address + } + 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((*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") +} + +func init() { + proto.RegisterFile("penumbra/core/component/shielded_pool/v1alpha1/shielded_pool.proto", fileDescriptor_aa12195337df7d3c) +} + +var fileDescriptor_aa12195337df7d3c = []byte{ + // 1410 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x58, 0xcd, 0x6f, 0x1b, 0x45, + 0x14, 0xcf, 0x3a, 0x8e, 0x93, 0x3c, 0x3b, 0x6e, 0x3b, 0xe2, 0xe0, 0x5a, 0xc8, 0xaa, 0xdc, 0x36, + 0x58, 0x42, 0xb5, 0x55, 0x17, 0x28, 0x75, 0x69, 0xd5, 0xd8, 0x95, 0x9a, 0xc8, 0x34, 0x35, 0x6b, + 0x35, 0xa0, 0x10, 0xba, 0x1a, 0x7b, 0xa7, 0xf1, 0xca, 0xbb, 0x3b, 0xdb, 0xfd, 0x70, 0x30, 0x37, + 0xee, 0x1c, 0xb8, 0x21, 0x2e, 0x95, 0xf8, 0x10, 0x42, 0x95, 0xf8, 0x03, 0xf8, 0x0f, 0x10, 0xa7, + 0x8a, 0x13, 0x47, 0x94, 0xde, 0xb8, 0xf5, 0x3f, 0x40, 0xf3, 0xb1, 0xeb, 0x5d, 0x27, 0x8d, 0x6a, + 0x37, 0x12, 0x17, 0x6b, 0xe7, 0xed, 0xef, 0xfd, 0xde, 0xe7, 0xbc, 0x99, 0x35, 0x34, 0x1d, 0x62, + 0x07, 0x56, 0xcf, 0xc5, 0xb5, 0x3e, 0x75, 0x49, 0xad, 0x4f, 0x2d, 0x87, 0xda, 0xc4, 0xf6, 0x6b, + 0xde, 0xc0, 0x20, 0xa6, 0x4e, 0x74, 0xcd, 0xa1, 0xd4, 0xac, 0x8d, 0xae, 0x62, 0xd3, 0x19, 0xe0, + 0xab, 0x49, 0x71, 0xd5, 0x71, 0xa9, 0x4f, 0x51, 0x35, 0xe4, 0xa8, 0x32, 0x8e, 0x6a, 0xc4, 0x51, + 0x4d, 0x82, 0x43, 0x8e, 0xe2, 0xfa, 0xc4, 0xa6, 0x3b, 0x76, 0x7c, 0x5a, 0xf3, 0xfb, 0xfe, 0xc4, + 0x82, 0xdf, 0xf7, 0x05, 0x6f, 0xb1, 0x31, 0x8d, 0xd3, 0x49, 0x1f, 0x3f, 0xbe, 0x76, 0xfd, 0xba, + 0xe6, 0xea, 0x1e, 0x9e, 0x68, 0x24, 0xc4, 0x52, 0xb7, 0x92, 0x8c, 0x0b, 0x7b, 0x1e, 0x89, 0xd9, + 0xe0, 0x4b, 0x89, 0x5c, 0x4f, 0x22, 0x87, 0x64, 0xec, 0x4d, 0x80, 0x6c, 0x25, 0x71, 0x97, 0x92, + 0x38, 0x3b, 0xb0, 0x26, 0x30, 0x3b, 0xb0, 0x04, 0xaa, 0xfc, 0x9d, 0x02, 0xe9, 0x6d, 0xea, 0x13, + 0x74, 0x03, 0x96, 0x46, 0xd8, 0x0c, 0x48, 0x41, 0xb9, 0xa0, 0x54, 0xb2, 0xf5, 0x8b, 0x53, 0x49, + 0x12, 0x1e, 0x84, 0x04, 0xd5, 0x1d, 0x06, 0x55, 0x85, 0x06, 0x7a, 0x0b, 0x96, 0x5c, 0x8f, 0x10, + 0xbd, 0x90, 0xba, 0xa0, 0x54, 0x72, 0xaa, 0x58, 0xa0, 0xdb, 0xb0, 0x8c, 0x75, 0xdd, 0x25, 0x9e, + 0x57, 0x58, 0xe4, 0x94, 0x97, 0xa6, 0x28, 0xb9, 0xaf, 0x11, 0xe3, 0x86, 0xc0, 0xaa, 0xa1, 0x52, + 0xf9, 0x27, 0x05, 0x56, 0x98, 0x67, 0x3b, 0x06, 0x39, 0x40, 0xb7, 0x92, 0xde, 0xbd, 0xf3, 0x1a, + 0xde, 0x31, 0xbd, 0x93, 0x3d, 0x6c, 0x4e, 0x7b, 0x58, 0x79, 0x1d, 0x0f, 0x39, 0x6f, 0xe4, 0xe5, + 0x3a, 0xe4, 0x99, 0x93, 0x2d, 0xc3, 0x19, 0x10, 0xd7, 0x27, 0x5f, 0xfa, 0xcc, 0x96, 0x61, 0xdb, + 0xc4, 0xe5, 0xae, 0xe6, 0x54, 0xb1, 0x28, 0xbf, 0x54, 0x20, 0xcb, 0x80, 0x1d, 0x3c, 0x36, 0x29, + 0xd6, 0xd1, 0x0e, 0x9c, 0xb1, 0xa9, 0x4f, 0xb4, 0x3e, 0xb5, 0x2c, 0xc3, 0xb7, 0x88, 0xed, 0xcb, + 0xd0, 0xae, 0xc4, 0x7c, 0xe0, 0x5d, 0x54, 0x65, 0x0d, 0x16, 0x39, 0xd1, 0xf5, 0xb1, 0x4f, 0x5a, + 0x91, 0x92, 0x9a, 0x67, 0x2c, 0x93, 0x35, 0xba, 0x08, 0x6b, 0xc4, 0x19, 0x10, 0x8b, 0xb8, 0xd8, + 0xd4, 0x86, 0x64, 0x2c, 0x23, 0xce, 0x45, 0xc2, 0x36, 0x19, 0x23, 0x02, 0x79, 0x62, 0x73, 0x76, + 0xa2, 0x6b, 0x8c, 0x40, 0xc6, 0x7f, 0x7b, 0xc6, 0x9d, 0x51, 0x4d, 0x86, 0xae, 0xae, 0x45, 0xac, + 0xec, 0x45, 0xf9, 0x32, 0xac, 0xed, 0xb6, 0x1f, 0x04, 0xbe, 0x13, 0xf8, 0x1d, 0x97, 0xd2, 0xc7, + 0xaf, 0x48, 0xcd, 0x25, 0xc8, 0xed, 0xb6, 0xbb, 0x0e, 0xb1, 0xf5, 0x93, 0x50, 0x75, 0x28, 0xee, + 0xb6, 0xb7, 0x03, 0xd3, 0x34, 0x1e, 0x1b, 0xc4, 0xbd, 0x4b, 0x5c, 0x63, 0x84, 0x7d, 0x83, 0xda, + 0x27, 0xe9, 0x7c, 0x9d, 0x82, 0x25, 0x4e, 0x8c, 0xee, 0x43, 0xba, 0x47, 0xf5, 0xb1, 0xcc, 0xf1, + 0x8d, 0x59, 0xe3, 0xe4, 0x24, 0x4d, 0xaa, 0x8f, 0x55, 0x4e, 0x83, 0x1e, 0xc2, 0x0a, 0x0e, 0xfc, + 0x81, 0xe6, 0x19, 0xfb, 0x3c, 0xc1, 0xd9, 0x7a, 0xe3, 0x48, 0xd9, 0x92, 0xbb, 0x3c, 0x49, 0xb5, + 0x11, 0xf8, 0x83, 0xae, 0xb1, 0x6f, 0x63, 0x3f, 0x70, 0x89, 0xba, 0x8c, 0xc5, 0x12, 0xa9, 0xb0, + 0xe4, 0xb0, 0x70, 0x64, 0x39, 0x3e, 0x9a, 0xd5, 0xcd, 0x78, 0x1a, 0x55, 0x41, 0x55, 0xfe, 0x5e, + 0x81, 0xd5, 0xc8, 0x7d, 0xf4, 0x08, 0x50, 0x0f, 0x9b, 0xd8, 0xee, 0x1f, 0xd3, 0x79, 0xb5, 0x93, + 0x37, 0x55, 0x53, 0xe8, 0xc5, 0x7a, 0xef, 0x5c, 0x6f, 0x5a, 0x84, 0xde, 0x86, 0x55, 0x3b, 0xac, + 0x11, 0x8f, 0x22, 0xa7, 0x4e, 0x04, 0x28, 0x0f, 0x29, 0x77, 0x58, 0x48, 0x73, 0x71, 0xca, 0x1d, + 0x96, 0xff, 0x5a, 0x94, 0xbe, 0xf1, 0x3d, 0xfe, 0x05, 0x2c, 0x8f, 0x0c, 0xcf, 0xe8, 0x99, 0xe1, + 0x2e, 0xdf, 0x98, 0xab, 0x4c, 0x8c, 0xab, 0xba, 0x23, 0x88, 0x36, 0x17, 0xd4, 0x90, 0x13, 0xed, + 0x42, 0x86, 0x3a, 0xf8, 0x49, 0x40, 0x64, 0xc5, 0xee, 0xcc, 0xcf, 0xfe, 0x80, 0xf3, 0x6c, 0x2e, + 0xa8, 0x92, 0xb1, 0xf8, 0xb3, 0x02, 0xcb, 0xd2, 0x24, 0x6a, 0xc3, 0x92, 0xc7, 0x90, 0x32, 0x88, + 0xf7, 0xe7, 0x32, 0xa3, 0x0a, 0x0e, 0xf4, 0x31, 0xa4, 0xf9, 0xfe, 0x14, 0x2e, 0x7f, 0x38, 0xcf, + 0xfe, 0xe4, 0xf3, 0x8a, 0xb3, 0x14, 0x1f, 0x42, 0x46, 0xb8, 0x7e, 0xaa, 0x4e, 0x36, 0x73, 0x00, + 0xfc, 0x41, 0x1b, 0x19, 0xe4, 0xa0, 0xfc, 0x4d, 0x4a, 0x16, 0xb5, 0x63, 0x62, 0x1b, 0x6d, 0xca, + 0x00, 0x84, 0x9d, 0xf7, 0xe6, 0x09, 0x40, 0x38, 0x8f, 0x8a, 0xb0, 0xe2, 0x50, 0xcf, 0x60, 0x7b, + 0x9e, 0xa7, 0x23, 0xad, 0x46, 0x6b, 0x54, 0x02, 0x70, 0xb1, 0xad, 0x53, 0xcb, 0xf8, 0x2a, 0xea, + 0xbb, 0x98, 0x04, 0x5d, 0x86, 0x3c, 0x3f, 0x08, 0xb4, 0x9e, 0x69, 0xd8, 0xba, 0x61, 0xef, 0xcb, + 0x26, 0x5c, 0xe3, 0xd2, 0xa6, 0x14, 0xa2, 0x0a, 0x9c, 0xe5, 0x9b, 0x26, 0x82, 0x69, 0x6e, 0x61, + 0x89, 0x03, 0xf3, 0x5c, 0x1e, 0x02, 0xd5, 0x63, 0x90, 0x5e, 0x21, 0x73, 0x0c, 0xb2, 0x5b, 0xfe, + 0x4d, 0x81, 0x8c, 0x98, 0x81, 0x68, 0x3b, 0x31, 0x84, 0x1a, 0xb3, 0xe6, 0x42, 0xb0, 0xc4, 0xa6, + 0x50, 0x37, 0x1c, 0x17, 0xa2, 0x3b, 0x6e, 0xcd, 0x3e, 0x2e, 0x62, 0xc3, 0x39, 0x9c, 0x17, 0x4f, + 0x53, 0x00, 0x13, 0x4b, 0xe8, 0x11, 0xe4, 0xf8, 0x39, 0xe5, 0x88, 0x73, 0x4b, 0xfa, 0x7e, 0x73, + 0x9e, 0x3a, 0xca, 0xa3, 0x4f, 0xcd, 0xda, 0xb1, 0x73, 0xf0, 0xf8, 0x81, 0x94, 0x3a, 0xb5, 0x81, + 0x54, 0x81, 0xb3, 0x07, 0x2e, 0x76, 0x1c, 0xa2, 0x6b, 0x16, 0xb1, 0x28, 0x3f, 0x12, 0x45, 0x7f, + 0xe4, 0xa5, 0xfc, 0x3e, 0xb1, 0x28, 0x3b, 0x14, 0xd7, 0xe1, 0x0c, 0x1d, 0x0d, 0xb5, 0x10, 0xcd, + 0x80, 0xb2, 0x49, 0xe8, 0x68, 0xf8, 0xa9, 0x90, 0xb6, 0xc9, 0xb8, 0xfc, 0x4b, 0x3a, 0x4c, 0x10, + 0x9f, 0x5a, 0x8f, 0xa6, 0xa7, 0x56, 0x73, 0xbe, 0xba, 0xbe, 0x6a, 0x6c, 0x7d, 0x3e, 0x35, 0xb6, + 0x36, 0xde, 0x80, 0xfe, 0xc8, 0xdc, 0x7a, 0x19, 0x9b, 0x5b, 0xdb, 0x90, 0xa1, 0x1c, 0x2a, 0xe3, + 0xf8, 0x60, 0x3e, 0x43, 0xaa, 0x64, 0x39, 0xdd, 0xd1, 0x85, 0x36, 0x21, 0x2b, 0x5b, 0x30, 0x2a, + 0xe1, 0xd1, 0x6b, 0x60, 0xf2, 0xbe, 0x26, 0x5b, 0xac, 0x4d, 0xc6, 0x2a, 0x38, 0xd1, 0x73, 0xf1, + 0xb3, 0x68, 0x08, 0x9e, 0x72, 0xc4, 0xcd, 0x35, 0xc8, 0x8a, 0x27, 0x31, 0x08, 0x7f, 0x88, 0x76, + 0x12, 0x9f, 0x84, 0x6f, 0x70, 0xc1, 0xbe, 0x07, 0x39, 0x9d, 0x78, 0xbe, 0x16, 0xde, 0x56, 0x53, + 0x33, 0xdc, 0xa7, 0xb3, 0x4c, 0x53, 0x2e, 0x26, 0xf7, 0xe0, 0xc5, 0xf8, 0x3d, 0xf8, 0x7f, 0x9c, + 0x8e, 0x07, 0x50, 0xb8, 0x4b, 0x6c, 0x6a, 0xdd, 0x27, 0x3e, 0xd6, 0xb1, 0x8f, 0x9b, 0xe3, 0x2d, + 0x5d, 0x25, 0x4f, 0x02, 0xe2, 0xf9, 0xe8, 0x3c, 0xac, 0xf4, 0x07, 0xd8, 0xb0, 0x35, 0x43, 0x8c, + 0x9d, 0x55, 0x75, 0x99, 0xaf, 0xb7, 0x74, 0x74, 0x07, 0x56, 0x78, 0xbe, 0xd8, 0x2b, 0x91, 0x8c, + 0xcb, 0x27, 0xa7, 0x73, 0x83, 0x2d, 0xb7, 0x74, 0x75, 0x19, 0x8b, 0x87, 0x32, 0x85, 0xf3, 0xc7, + 0x18, 0xf6, 0x1c, 0x6a, 0x7b, 0x04, 0xa9, 0x90, 0xd7, 0xd9, 0x4b, 0xcd, 0x92, 0x6f, 0x65, 0xcd, + 0xde, 0x3d, 0xd9, 0x48, 0x82, 0x50, 0x5d, 0xd3, 0xe3, 0x4b, 0x36, 0x57, 0xf3, 0xf7, 0x88, 0x4d, + 0x3c, 0xc3, 0x6b, 0x51, 0xdb, 0x67, 0xb3, 0x69, 0x08, 0x59, 0x6c, 0x9a, 0xb4, 0xcf, 0xef, 0xb1, + 0xac, 0xaa, 0x8b, 0x95, 0x6c, 0x7d, 0x6b, 0xd6, 0x26, 0x4c, 0x92, 0x56, 0x37, 0x22, 0x46, 0x35, + 0xce, 0x5e, 0x7c, 0xaa, 0x00, 0x4c, 0xde, 0xa1, 0x06, 0x64, 0xb0, 0x45, 0x83, 0xe8, 0xf2, 0x57, + 0x9e, 0x32, 0xcb, 0xbe, 0x10, 0x27, 0xd9, 0xe3, 0x48, 0x55, 0x6a, 0xb0, 0x2e, 0xe2, 0xb1, 0xf1, + 0xd4, 0xaf, 0xaa, 0x62, 0xf1, 0xa6, 0xdf, 0x7b, 0xf5, 0xdf, 0x15, 0xc8, 0x7d, 0x12, 0x10, 0x77, + 0xdc, 0x25, 0xee, 0xc8, 0xe8, 0x13, 0xf4, 0xab, 0x02, 0xe7, 0x8e, 0xd4, 0x08, 0x6d, 0xce, 0x9a, + 0x9f, 0x57, 0xf5, 0x57, 0x71, 0xeb, 0x14, 0x98, 0x44, 0xc3, 0x34, 0x9f, 0x2d, 0xfe, 0x71, 0x58, + 0x52, 0x9e, 0x1f, 0x96, 0x94, 0x7f, 0x0e, 0x4b, 0xca, 0xb7, 0x2f, 0x4a, 0x0b, 0xcf, 0x5f, 0x94, + 0x16, 0xfe, 0x7e, 0x51, 0x5a, 0x80, 0x7a, 0x9f, 0x5a, 0x33, 0x1a, 0x6a, 0x9e, 0xeb, 0x4a, 0x79, + 0x87, 0x52, 0xb3, 0xc3, 0xbe, 0xd3, 0x3b, 0xca, 0xae, 0xb3, 0x6f, 0xf8, 0x83, 0xa0, 0xc7, 0xb4, + 0x6b, 0x7d, 0xea, 0x59, 0xd4, 0xab, 0xb9, 0xc4, 0xc4, 0x63, 0xe2, 0xd6, 0x46, 0xf5, 0xe8, 0x91, + 0xef, 0x10, 0xaf, 0x36, 0xdb, 0xbf, 0x24, 0x37, 0x13, 0xe2, 0x50, 0xfa, 0x63, 0x2a, 0xdd, 0x69, + 0xb5, 0xba, 0xcf, 0x52, 0x57, 0x3a, 0xa1, 0xfb, 0x2d, 0xe6, 0x7e, 0x2b, 0x72, 0x3f, 0xee, 0x66, + 0x75, 0x47, 0xaa, 0xfd, 0x39, 0xc1, 0xef, 0x31, 0xfc, 0x5e, 0x84, 0xdf, 0x8b, 0xe3, 0xf7, 0x42, + 0xfc, 0x61, 0xea, 0xc6, 0x4c, 0xf8, 0xbd, 0x7b, 0x9d, 0x66, 0x58, 0x84, 0x7f, 0x53, 0x57, 0x43, + 0xdd, 0x46, 0x83, 0x29, 0xb3, 0x5f, 0xa9, 0xdd, 0x68, 0xc4, 0xd5, 0x1b, 0x8d, 0x50, 0xbf, 0x97, + 0xe1, 0xff, 0x7c, 0x5c, 0xfb, 0x2f, 0x00, 0x00, 0xff, 0xff, 0xc9, 0xf4, 0x69, 0xcc, 0x4b, 0x12, + 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 { + DenomMetadataById(ctx context.Context, in *DenomMetadataByIdRequest, opts ...grpc.CallOption) (*DenomMetadataByIdResponse, error) +} + +type queryServiceClient struct { + cc grpc1.ClientConn +} + +func NewQueryServiceClient(cc grpc1.ClientConn) QueryServiceClient { + return &queryServiceClient{cc} +} + +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...) + if err != nil { + return nil, err + } + return out, nil +} + +// QueryServiceServer is the server API for QueryService service. +type QueryServiceServer interface { + DenomMetadataById(context.Context, *DenomMetadataByIdRequest) (*DenomMetadataByIdResponse, error) +} + +// UnimplementedQueryServiceServer can be embedded to have forward compatible implementations. +type UnimplementedQueryServiceServer struct { +} + +func (*UnimplementedQueryServiceServer) DenomMetadataById(ctx context.Context, req *DenomMetadataByIdRequest) (*DenomMetadataByIdResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DenomMetadataById not implemented") +} + +func RegisterQueryServiceServer(s grpc1.Server, srv QueryServiceServer) { + s.RegisterService(&_QueryService_serviceDesc, srv) +} + +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 + } + if interceptor == nil { + return srv.(QueryServiceServer).DenomMetadataById(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/penumbra.core.component.shielded_pool.v1alpha1.QueryService/DenomMetadataById", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServiceServer).DenomMetadataById(ctx, req.(*DenomMetadataByIdRequest)) + } + return interceptor(ctx, in, info, handler) +} + +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 *Note) 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 *Note) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Note) 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 len(m.Rseed) > 0 { + i -= len(m.Rseed) + copy(dAtA[i:], m.Rseed) + i = encodeVarintShieldedPool(dAtA, i, uint64(len(m.Rseed))) + i-- + dAtA[i] = 0x12 + } + if m.Value != nil { + { + size, err := m.Value.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 (m *NoteView) 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 *NoteView) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NoteView) 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 len(m.Rseed) > 0 { + i -= len(m.Rseed) + copy(dAtA[i:], m.Rseed) + i = encodeVarintShieldedPool(dAtA, i, uint64(len(m.Rseed))) + i-- + dAtA[i] = 0x12 + } + if m.Value != nil { + { + size, err := m.Value.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 (m *NoteCiphertext) 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 *NoteCiphertext) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NoteCiphertext) 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 = encodeVarintShieldedPool(dAtA, i, uint64(len(m.Inner))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *NotePayload) 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 *NotePayload) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NotePayload) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.EncryptedNote != nil { + { + size, err := m.EncryptedNote.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintShieldedPool(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if len(m.EphemeralKey) > 0 { + i -= len(m.EphemeralKey) + copy(dAtA[i:], m.EphemeralKey) + i = encodeVarintShieldedPool(dAtA, i, uint64(len(m.EphemeralKey))) + i-- + dAtA[i] = 0x12 + } + if m.NoteCommitment != nil { + { + size, err := m.NoteCommitment.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 (m *ZKOutputProof) 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 *ZKOutputProof) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ZKOutputProof) 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 = encodeVarintShieldedPool(dAtA, i, uint64(len(m.Inner))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ZKSpendProof) 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 *ZKSpendProof) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ZKSpendProof) 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 = encodeVarintShieldedPool(dAtA, i, uint64(len(m.Inner))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ZKNullifierDerivationProof) 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 *ZKNullifierDerivationProof) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ZKNullifierDerivationProof) 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 = encodeVarintShieldedPool(dAtA, i, uint64(len(m.Inner))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Spend) 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 *Spend) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Spend) 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 = encodeVarintShieldedPool(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if m.AuthSig != nil { + { + size, err := m.AuthSig.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintShieldedPool(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.Body != nil { + { + size, err := m.Body.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 (m *SpendBody) 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 *SpendBody) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SpendBody) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Rk) > 0 { + i -= len(m.Rk) + copy(dAtA[i:], m.Rk) + i = encodeVarintShieldedPool(dAtA, i, uint64(len(m.Rk))) + i-- + dAtA[i] = 0x22 + } + if len(m.Nullifier) > 0 { + i -= len(m.Nullifier) + copy(dAtA[i:], m.Nullifier) + i = encodeVarintShieldedPool(dAtA, i, uint64(len(m.Nullifier))) + i-- + dAtA[i] = 0x1a + } + if m.BalanceCommitment != nil { + { + size, err := m.BalanceCommitment.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 (m *SpendView) 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 *SpendView) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SpendView) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.SpendView != nil { + { + size := m.SpendView.Size() + i -= size + if _, err := m.SpendView.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } + } + return len(dAtA) - i, nil +} + +func (m *SpendView_Visible_) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SpendView_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 = encodeVarintShieldedPool(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} +func (m *SpendView_Opaque_) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SpendView_Opaque_) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Opaque != nil { + { + size, err := m.Opaque.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintShieldedPool(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + return len(dAtA) - i, nil +} +func (m *SpendView_Visible) 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 *SpendView_Visible) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SpendView_Visible) 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 = encodeVarintShieldedPool(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.Spend != nil { + { + size, err := m.Spend.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 (m *SpendView_Opaque) 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 *SpendView_Opaque) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SpendView_Opaque) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Spend != nil { + { + size, err := m.Spend.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 (m *SpendPlan) 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 *SpendPlan) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SpendPlan) 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 = encodeVarintShieldedPool(dAtA, i, uint64(len(m.ProofBlindingS))) + i-- + dAtA[i] = 0x32 + } + if len(m.ProofBlindingR) > 0 { + i -= len(m.ProofBlindingR) + copy(dAtA[i:], m.ProofBlindingR) + i = encodeVarintShieldedPool(dAtA, i, uint64(len(m.ProofBlindingR))) + i-- + dAtA[i] = 0x2a + } + if len(m.ValueBlinding) > 0 { + i -= len(m.ValueBlinding) + copy(dAtA[i:], m.ValueBlinding) + i = encodeVarintShieldedPool(dAtA, i, uint64(len(m.ValueBlinding))) + i-- + dAtA[i] = 0x22 + } + if len(m.Randomizer) > 0 { + i -= len(m.Randomizer) + copy(dAtA[i:], m.Randomizer) + i = encodeVarintShieldedPool(dAtA, i, uint64(len(m.Randomizer))) + i-- + dAtA[i] = 0x1a + } + if m.Position != 0 { + i = encodeVarintShieldedPool(dAtA, i, uint64(m.Position)) + i-- + dAtA[i] = 0x10 + } + if m.Note != nil { + { + size, err := m.Note.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 (m *Output) 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 *Output) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Output) 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 = encodeVarintShieldedPool(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.Body != nil { + { + size, err := m.Body.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 (m *OutputBody) 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 *OutputBody) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *OutputBody) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.OvkWrappedKey) > 0 { + i -= len(m.OvkWrappedKey) + copy(dAtA[i:], m.OvkWrappedKey) + i = encodeVarintShieldedPool(dAtA, i, uint64(len(m.OvkWrappedKey))) + i-- + dAtA[i] = 0x22 + } + if len(m.WrappedMemoKey) > 0 { + i -= len(m.WrappedMemoKey) + copy(dAtA[i:], m.WrappedMemoKey) + i = encodeVarintShieldedPool(dAtA, i, uint64(len(m.WrappedMemoKey))) + i-- + dAtA[i] = 0x1a + } + if m.BalanceCommitment != nil { + { + size, err := m.BalanceCommitment.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintShieldedPool(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.NotePayload != nil { + { + size, err := m.NotePayload.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 (m *OutputView) 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 *OutputView) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *OutputView) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.OutputView != nil { + { + size := m.OutputView.Size() + i -= size + if _, err := m.OutputView.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } + } + return len(dAtA) - i, nil +} + +func (m *OutputView_Visible_) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *OutputView_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 = encodeVarintShieldedPool(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} +func (m *OutputView_Opaque_) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *OutputView_Opaque_) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Opaque != nil { + { + size, err := m.Opaque.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintShieldedPool(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + return len(dAtA) - i, nil +} +func (m *OutputView_Visible) 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 *OutputView_Visible) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *OutputView_Visible) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.PayloadKey != nil { + { + size, err := m.PayloadKey.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintShieldedPool(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if m.Note != nil { + { + size, err := m.Note.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintShieldedPool(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.Output != nil { + { + size, err := m.Output.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 (m *OutputView_Opaque) 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 *OutputView_Opaque) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *OutputView_Opaque) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Output != nil { + { + size, err := m.Output.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 (m *OutputPlan) 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 *OutputPlan) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *OutputPlan) 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 = encodeVarintShieldedPool(dAtA, i, uint64(len(m.ProofBlindingS))) + i-- + dAtA[i] = 0x32 + } + if len(m.ProofBlindingR) > 0 { + i -= len(m.ProofBlindingR) + copy(dAtA[i:], m.ProofBlindingR) + i = encodeVarintShieldedPool(dAtA, i, uint64(len(m.ProofBlindingR))) + i-- + dAtA[i] = 0x2a + } + if len(m.ValueBlinding) > 0 { + i -= len(m.ValueBlinding) + copy(dAtA[i:], m.ValueBlinding) + i = encodeVarintShieldedPool(dAtA, i, uint64(len(m.ValueBlinding))) + i-- + dAtA[i] = 0x22 + } + if len(m.Rseed) > 0 { + i -= len(m.Rseed) + copy(dAtA[i:], m.Rseed) + i = encodeVarintShieldedPool(dAtA, i, uint64(len(m.Rseed))) + i-- + dAtA[i] = 0x1a + } + if m.DestAddress != nil { + { + size, err := m.DestAddress.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintShieldedPool(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 = encodeVarintShieldedPool(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *DenomMetadataByIdRequest) 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 *DenomMetadataByIdRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DenomMetadataByIdRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.AssetId != nil { + { + size, err := m.AssetId.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintShieldedPool(dAtA, i, uint64(size)) + } + 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) { + 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 *DenomMetadataByIdResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DenomMetadataByIdResponse) 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 = encodeVarintShieldedPool(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + 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 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 + } + } + return len(dAtA) - i, nil +} + +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 (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 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 + } + 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 + } + return len(dAtA) - i, nil +} + +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++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *Note) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Value != nil { + l = m.Value.Size() + n += 1 + l + sovShieldedPool(uint64(l)) + } + l = len(m.Rseed) + 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 (m *NoteView) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Value != nil { + l = m.Value.Size() + n += 1 + l + sovShieldedPool(uint64(l)) + } + l = len(m.Rseed) + 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 (m *NoteCiphertext) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Inner) + if l > 0 { + n += 1 + l + sovShieldedPool(uint64(l)) + } + return n +} + +func (m *NotePayload) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.NoteCommitment != nil { + l = m.NoteCommitment.Size() + n += 1 + l + sovShieldedPool(uint64(l)) + } + l = len(m.EphemeralKey) + if l > 0 { + n += 1 + l + sovShieldedPool(uint64(l)) + } + if m.EncryptedNote != nil { + l = m.EncryptedNote.Size() + n += 1 + l + sovShieldedPool(uint64(l)) + } + return n +} + +func (m *ZKOutputProof) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Inner) + if l > 0 { + n += 1 + l + sovShieldedPool(uint64(l)) + } + return n +} + +func (m *ZKSpendProof) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Inner) + if l > 0 { + n += 1 + l + sovShieldedPool(uint64(l)) + } + return n +} + +func (m *ZKNullifierDerivationProof) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Inner) + if l > 0 { + n += 1 + l + sovShieldedPool(uint64(l)) + } + return n +} + +func (m *Spend) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Body != nil { + l = m.Body.Size() + n += 1 + l + sovShieldedPool(uint64(l)) + } + if m.AuthSig != nil { + l = m.AuthSig.Size() + n += 1 + l + sovShieldedPool(uint64(l)) + } + if m.Proof != nil { + l = m.Proof.Size() + n += 1 + l + sovShieldedPool(uint64(l)) + } + return n +} + +func (m *SpendBody) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.BalanceCommitment != nil { + l = m.BalanceCommitment.Size() + n += 1 + l + sovShieldedPool(uint64(l)) + } + l = len(m.Nullifier) + if l > 0 { + n += 1 + l + sovShieldedPool(uint64(l)) + } + l = len(m.Rk) + if l > 0 { + n += 1 + l + sovShieldedPool(uint64(l)) + } + return n +} + +func (m *SpendView) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.SpendView != nil { + n += m.SpendView.Size() + } + return n +} + +func (m *SpendView_Visible_) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Visible != nil { + l = m.Visible.Size() + n += 1 + l + sovShieldedPool(uint64(l)) + } + return n +} +func (m *SpendView_Opaque_) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Opaque != nil { + l = m.Opaque.Size() + n += 1 + l + sovShieldedPool(uint64(l)) + } + return n +} +func (m *SpendView_Visible) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Spend != nil { + l = m.Spend.Size() + n += 1 + l + sovShieldedPool(uint64(l)) + } + if m.Note != nil { + l = m.Note.Size() + n += 1 + l + sovShieldedPool(uint64(l)) + } + return n +} + +func (m *SpendView_Opaque) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Spend != nil { + l = m.Spend.Size() + n += 1 + l + sovShieldedPool(uint64(l)) + } + return n +} + +func (m *SpendPlan) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Note != nil { + l = m.Note.Size() + n += 1 + l + sovShieldedPool(uint64(l)) + } + if m.Position != 0 { + n += 1 + sovShieldedPool(uint64(m.Position)) + } + l = len(m.Randomizer) + if l > 0 { + n += 1 + l + sovShieldedPool(uint64(l)) + } + l = len(m.ValueBlinding) + if l > 0 { + n += 1 + l + sovShieldedPool(uint64(l)) + } + l = len(m.ProofBlindingR) + if l > 0 { + n += 1 + l + sovShieldedPool(uint64(l)) + } + l = len(m.ProofBlindingS) + if l > 0 { + n += 1 + l + sovShieldedPool(uint64(l)) + } + return n +} + +func (m *Output) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Body != nil { + l = m.Body.Size() + n += 1 + l + sovShieldedPool(uint64(l)) + } + if m.Proof != nil { + l = m.Proof.Size() + n += 1 + l + sovShieldedPool(uint64(l)) + } + return n +} + +func (m *OutputBody) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.NotePayload != nil { + l = m.NotePayload.Size() + n += 1 + l + sovShieldedPool(uint64(l)) + } + if m.BalanceCommitment != nil { + l = m.BalanceCommitment.Size() + n += 1 + l + sovShieldedPool(uint64(l)) + } + l = len(m.WrappedMemoKey) + if l > 0 { + n += 1 + l + sovShieldedPool(uint64(l)) + } + l = len(m.OvkWrappedKey) + if l > 0 { + n += 1 + l + sovShieldedPool(uint64(l)) + } + return n +} + +func (m *OutputView) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.OutputView != nil { + n += m.OutputView.Size() + } + return n +} + +func (m *OutputView_Visible_) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Visible != nil { + l = m.Visible.Size() + n += 1 + l + sovShieldedPool(uint64(l)) + } + return n +} +func (m *OutputView_Opaque_) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Opaque != nil { + l = m.Opaque.Size() + n += 1 + l + sovShieldedPool(uint64(l)) + } + return n +} +func (m *OutputView_Visible) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Output != nil { + l = m.Output.Size() + n += 1 + l + sovShieldedPool(uint64(l)) + } + if m.Note != nil { + l = m.Note.Size() + n += 1 + l + sovShieldedPool(uint64(l)) + } + if m.PayloadKey != nil { + l = m.PayloadKey.Size() + n += 1 + l + sovShieldedPool(uint64(l)) + } + return n +} + +func (m *OutputView_Opaque) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Output != nil { + l = m.Output.Size() + n += 1 + l + sovShieldedPool(uint64(l)) + } + return n +} + +func (m *OutputPlan) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Value != nil { + l = m.Value.Size() + n += 1 + l + sovShieldedPool(uint64(l)) + } + if m.DestAddress != nil { + l = m.DestAddress.Size() + n += 1 + l + sovShieldedPool(uint64(l)) + } + l = len(m.Rseed) + if l > 0 { + n += 1 + l + sovShieldedPool(uint64(l)) + } + l = len(m.ValueBlinding) + if l > 0 { + n += 1 + l + sovShieldedPool(uint64(l)) + } + l = len(m.ProofBlindingR) + if l > 0 { + n += 1 + l + sovShieldedPool(uint64(l)) + } + l = len(m.ProofBlindingS) + if l > 0 { + n += 1 + l + sovShieldedPool(uint64(l)) + } + return n +} + +func (m *DenomMetadataByIdRequest) 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)) + } + return n +} + +func (m *DenomMetadataByIdResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.DenomMetadata != nil { + l = m.DenomMetadata.Size() + n += 1 + l + sovShieldedPool(uint64(l)) + } + 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 { + 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: Note: wiretype end group for non-group") + } + if fieldNum <= 0 { + 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 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 = &v1alpha1.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 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 3: + 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 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.Address == nil { + m.Address = &v1alpha11.Address{} + } + if err := m.Address.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + 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 *NoteView) 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: NoteView: wiretype end group for non-group") + } + if fieldNum <= 0 { + 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 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 = &v1alpha1.ValueView{} + } + 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 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 3: + 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 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.Address == nil { + m.Address = &v1alpha11.AddressView{} + } + if err := m.Address.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + 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 *NoteCiphertext) 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: NoteCiphertext: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NoteCiphertext: 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 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.Inner = append(m.Inner[:0], dAtA[iNdEx:postIndex]...) + if m.Inner == nil { + m.Inner = []byte{} + } + iNdEx = postIndex + 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 *NotePayload) 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: NotePayload: wiretype end group for non-group") + } + if fieldNum <= 0 { + 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 NoteCommitment", 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.NoteCommitment == nil { + m.NoteCommitment = &v1alpha12.StateCommitment{} + } + 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 EphemeralKey", 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.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 EncryptedNote", 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.EncryptedNote == nil { + m.EncryptedNote = &NoteCiphertext{} + } + if err := m.EncryptedNote.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + 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 *ZKOutputProof) 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: ZKOutputProof: wiretype end group for non-group") + } + if fieldNum <= 0 { + 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 Inner", 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.Inner = append(m.Inner[:0], dAtA[iNdEx:postIndex]...) + if m.Inner == nil { + m.Inner = []byte{} + } + iNdEx = postIndex + 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 *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 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: 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: + 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 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.Inner = append(m.Inner[:0], dAtA[iNdEx:postIndex]...) + if m.Inner == nil { + m.Inner = []byte{} + } + iNdEx = postIndex + 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 *ZKNullifierDerivationProof) 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: ZKNullifierDerivationProof: wiretype end group for non-group") + } + if fieldNum <= 0 { + 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 Inner", 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.Inner = append(m.Inner[:0], dAtA[iNdEx:postIndex]...) + if m.Inner == nil { + m.Inner = []byte{} + } + iNdEx = postIndex + 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 *Spend) 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: Spend: wiretype end group for non-group") + } + if fieldNum <= 0 { + 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 Body", 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.Body == nil { + m.Body = &SpendBody{} + } + 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 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.AuthSig == nil { + m.AuthSig = &v1alpha13.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 + } + iNdEx = postIndex + 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 *SpendBody) 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: SpendBody: wiretype end group for non-group") + } + if fieldNum <= 0 { + 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 BalanceCommitment", 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.BalanceCommitment == nil { + m.BalanceCommitment = &v1alpha1.BalanceCommitment{} + } + 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 Nullifier", 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.Nullifier = append(m.Nullifier[:0], dAtA[iNdEx:postIndex]...) + if m.Nullifier == nil { + m.Nullifier = []byte{} + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Rk", 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.Rk = append(m.Rk[:0], dAtA[iNdEx:postIndex]...) + if m.Rk == nil { + m.Rk = []byte{} + } + iNdEx = postIndex + 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 *SpendView) 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: SpendView: wiretype end group for non-group") + } + if fieldNum <= 0 { + 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 Visible", 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 := &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 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 := &SpendView_Opaque{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.SpendView = &SpendView_Opaque_{v} + iNdEx = postIndex + 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 *SpendView_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 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: 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: + 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) + } + 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.Note == nil { + m.Note = &NoteView{} + } + if err := m.Note.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + 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 *SpendView_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 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: 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 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 + 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 *SpendPlan) 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: SpendPlan: wiretype end group for non-group") + } + if fieldNum <= 0 { + 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 Note", 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.Note == nil { + m.Note = &Note{} + } + if err := m.Note.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: + 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 + byteLen + 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{} + } + 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:]) + 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 *Output) 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: Output: wiretype end group for non-group") + } + if fieldNum <= 0 { + 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 Body", 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.Body == nil { + m.Body = &OutputBody{} + } + 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 + 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 *OutputBody) 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: OutputBody: wiretype end group for non-group") + } + if fieldNum <= 0 { + 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 NotePayload", 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.NotePayload == nil { + m.NotePayload = &NotePayload{} + } + 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 BalanceCommitment", 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.BalanceCommitment == nil { + m.BalanceCommitment = &v1alpha1.BalanceCommitment{} + } + 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 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:]) + 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 *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 + } + 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 Visible", 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_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 + 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 *OutputView_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 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: 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: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Output", 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.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 Note", 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.Note == nil { + m.Note = &NoteView{} + } + 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 = &v1alpha11.PayloadKey{} + } + if err := m.PayloadKey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + 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 *OutputView_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 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: 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 Output", 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.Output == nil { + m.Output = &Output{} + } + if err := m.Output.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + 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 *OutputPlan) 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: OutputPlan: wiretype end group for non-group") + } + if fieldNum <= 0 { + 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 = &v1alpha1.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 DestAddress", 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.DestAddress == nil { + m.DestAddress = &v1alpha11.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:]) + 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 *DenomMetadataByIdRequest) 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: DenomMetadataByIdRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DenomMetadataByIdRequest: 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 ErrIntOverflowShieldedPool + } + 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 ErrInvalidLengthShieldedPool + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthShieldedPool + } + 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 AssetId", 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.AssetId == nil { + m.AssetId = &v1alpha1.AssetId{} + } + if err := m.AssetId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + 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 *DenomMetadataByIdResponse) 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: DenomMetadataByIdResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DenomMetadataByIdResponse: 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) + } + 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.DenomMetadata == nil { + m.DenomMetadata = &v1alpha1.DenomMetadata{} + } + if err := m.DenomMetadata.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + 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 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Allocations", 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 + } + 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 + 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_Allocation) 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: Allocation: wiretype end group for non-group") + } + if fieldNum <= 0 { + 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 Amount", 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.Amount == nil { + m.Amount = &v1alpha14.Amount{} + } + 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 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 + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthShieldedPool + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthShieldedPool + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Denom = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + 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 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.Address == nil { + m.Address = &v1alpha11.Address{} + } + if err := m.Address.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + 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 skipShieldedPool(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, ErrIntOverflowShieldedPool + } + 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, ErrIntOverflowShieldedPool + } + 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, ErrIntOverflowShieldedPool + } + 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, ErrInvalidLengthShieldedPool + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupShieldedPool + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthShieldedPool + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthShieldedPool = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowShieldedPool = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupShieldedPool = fmt.Errorf("proto: unexpected end of group") +) diff --git a/relayer/chains/penumbra/core/component/stake/v1alpha1/stake.pb.go b/relayer/chains/penumbra/core/component/stake/v1alpha1/stake.pb.go new file mode 100644 index 000000000..fed951ad8 --- /dev/null +++ b/relayer/chains/penumbra/core/component/stake/v1alpha1/stake.pb.go @@ -0,0 +1,9272 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: penumbra/core/component/stake/v1alpha1/stake.proto + +package stakev1alpha1 + +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" + 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 + +type BondingState_BondingStateEnum int32 + +const ( + BondingState_BONDING_STATE_ENUM_UNSPECIFIED BondingState_BondingStateEnum = 0 + BondingState_BONDING_STATE_ENUM_BONDED BondingState_BondingStateEnum = 1 + BondingState_BONDING_STATE_ENUM_UNBONDING BondingState_BondingStateEnum = 2 + BondingState_BONDING_STATE_ENUM_UNBONDED BondingState_BondingStateEnum = 3 +) + +var BondingState_BondingStateEnum_name = map[int32]string{ + 0: "BONDING_STATE_ENUM_UNSPECIFIED", + 1: "BONDING_STATE_ENUM_BONDED", + 2: "BONDING_STATE_ENUM_UNBONDING", + 3: "BONDING_STATE_ENUM_UNBONDED", +} + +var BondingState_BondingStateEnum_value = map[string]int32{ + "BONDING_STATE_ENUM_UNSPECIFIED": 0, + "BONDING_STATE_ENUM_BONDED": 1, + "BONDING_STATE_ENUM_UNBONDING": 2, + "BONDING_STATE_ENUM_UNBONDED": 3, +} + +func (x BondingState_BondingStateEnum) String() string { + return proto.EnumName(BondingState_BondingStateEnum_name, int32(x)) +} + +func (BondingState_BondingStateEnum) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_b49c30b9d712baf6, []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 +) + +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", +} + +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, +} + +func (x ValidatorState_ValidatorStateEnum) String() string { + return proto.EnumName(ValidatorState_ValidatorStateEnum_name, int32(x)) +} + +func (ValidatorState_ValidatorStateEnum) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_b49c30b9d712baf6, []int{8, 0} +} + +// A Penumbra ZK undelegate claim proof. +type ZKUndelegateClaimProof struct { + Inner []byte `protobuf:"bytes,1,opt,name=inner,proto3" json:"inner,omitempty"` +} + +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} +} +func (m *ZKUndelegateClaimProof) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ZKUndelegateClaimProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ZKUndelegateClaimProof.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 *ZKUndelegateClaimProof) XXX_Merge(src proto.Message) { + xxx_messageInfo_ZKUndelegateClaimProof.Merge(m, src) +} +func (m *ZKUndelegateClaimProof) XXX_Size() int { + return m.Size() +} +func (m *ZKUndelegateClaimProof) XXX_DiscardUnknown() { + xxx_messageInfo_ZKUndelegateClaimProof.DiscardUnknown(m) +} + +var xxx_messageInfo_ZKUndelegateClaimProof proto.InternalMessageInfo + +func (m *ZKUndelegateClaimProof) GetInner() []byte { + if m != nil { + return m.Inner + } + return nil +} + +// 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"` + // 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. + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + // The validator's website. + Website string `protobuf:"bytes,4,opt,name=website,proto3" json:"website,omitempty"` + // The validator's description. + Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` + // Whether the validator is enabled or not. + // + // Disabled validators cannot be delegated to, and immediately begin unbonding. + Enabled bool `protobuf:"varint,8,opt,name=enabled,proto3" json:"enabled,omitempty"` + // A list of funding streams describing the validator's commission. + FundingStreams []*FundingStream `protobuf:"bytes,6,rep,name=funding_streams,json=fundingStreams,proto3" json:"funding_streams,omitempty"` + // The sequence number determines which validator data takes priority, and + // prevents replay attacks. The chain only accepts new validator definitions + // 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"` +} + +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} +} +func (m *Validator) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Validator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Validator.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 *Validator) XXX_Merge(src proto.Message) { + xxx_messageInfo_Validator.Merge(m, src) +} +func (m *Validator) XXX_Size() int { + return m.Size() +} +func (m *Validator) XXX_DiscardUnknown() { + xxx_messageInfo_Validator.DiscardUnknown(m) +} + +var xxx_messageInfo_Validator proto.InternalMessageInfo + +func (m *Validator) GetIdentityKey() *v1alpha1.IdentityKey { + if m != nil { + return m.IdentityKey + } + return nil +} + +func (m *Validator) GetConsensusKey() []byte { + if m != nil { + return m.ConsensusKey + } + return nil +} + +func (m *Validator) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *Validator) GetWebsite() string { + if m != nil { + return m.Website + } + return "" +} + +func (m *Validator) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +func (m *Validator) GetEnabled() bool { + if m != nil { + return m.Enabled + } + return false +} + +func (m *Validator) GetFundingStreams() []*FundingStream { + if m != nil { + return m.FundingStreams + } + return nil +} + +func (m *Validator) GetSequenceNumber() uint32 { + if m != nil { + return m.SequenceNumber + } + return 0 +} + +func (m *Validator) GetGovernanceKey() *v1alpha1.GovernanceKey { + if m != nil { + return m.GovernanceKey + } + return nil +} + +// 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"` +} + +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} +} +func (m *ValidatorList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ValidatorList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ValidatorList.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 *ValidatorList) XXX_Merge(src proto.Message) { + xxx_messageInfo_ValidatorList.Merge(m, src) +} +func (m *ValidatorList) XXX_Size() int { + return m.Size() +} +func (m *ValidatorList) XXX_DiscardUnknown() { + xxx_messageInfo_ValidatorList.DiscardUnknown(m) +} + +var xxx_messageInfo_ValidatorList proto.InternalMessageInfo + +func (m *ValidatorList) GetValidatorKeys() []*v1alpha1.IdentityKey { + if m != nil { + return m.ValidatorKeys + } + return nil +} + +// A portion of a validator's commission. +type FundingStream struct { + // The recipient of the funding stream. + // + // Types that are valid to be assigned to Recipient: + // *FundingStream_ToAddress_ + // *FundingStream_ToDao_ + Recipient isFundingStream_Recipient `protobuf_oneof:"recipient"` +} + +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} +} +func (m *FundingStream) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FundingStream) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_FundingStream.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 *FundingStream) XXX_Merge(src proto.Message) { + xxx_messageInfo_FundingStream.Merge(m, src) +} +func (m *FundingStream) XXX_Size() int { + return m.Size() +} +func (m *FundingStream) XXX_DiscardUnknown() { + xxx_messageInfo_FundingStream.DiscardUnknown(m) +} + +var xxx_messageInfo_FundingStream proto.InternalMessageInfo + +type isFundingStream_Recipient interface { + isFundingStream_Recipient() + MarshalTo([]byte) (int, error) + Size() int +} + +type FundingStream_ToAddress_ struct { + ToAddress *FundingStream_ToAddress `protobuf:"bytes,1,opt,name=to_address,json=toAddress,proto3,oneof" json:"to_address,omitempty"` +} +type FundingStream_ToDao_ struct { + ToDao *FundingStream_ToDao `protobuf:"bytes,2,opt,name=to_dao,json=toDao,proto3,oneof" json:"to_dao,omitempty"` +} + +func (*FundingStream_ToAddress_) isFundingStream_Recipient() {} +func (*FundingStream_ToDao_) isFundingStream_Recipient() {} + +func (m *FundingStream) GetRecipient() isFundingStream_Recipient { + if m != nil { + return m.Recipient + } + return nil +} + +func (m *FundingStream) GetToAddress() *FundingStream_ToAddress { + if x, ok := m.GetRecipient().(*FundingStream_ToAddress_); ok { + return x.ToAddress + } + return nil +} + +func (m *FundingStream) GetToDao() *FundingStream_ToDao { + if x, ok := m.GetRecipient().(*FundingStream_ToDao_); ok { + return x.ToDao + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*FundingStream) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*FundingStream_ToAddress_)(nil), + (*FundingStream_ToDao_)(nil), + } +} + +type FundingStream_ToAddress struct { + // The destination address for the funding stream. + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + // The portion of the staking reward for the entire delegation pool + // allocated to this funding stream, specified in basis points. + RateBps uint32 `protobuf:"varint,2,opt,name=rate_bps,json=rateBps,proto3" json:"rate_bps,omitempty"` +} + +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} +} +func (m *FundingStream_ToAddress) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FundingStream_ToAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_FundingStream_ToAddress.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 *FundingStream_ToAddress) XXX_Merge(src proto.Message) { + xxx_messageInfo_FundingStream_ToAddress.Merge(m, src) +} +func (m *FundingStream_ToAddress) XXX_Size() int { + return m.Size() +} +func (m *FundingStream_ToAddress) XXX_DiscardUnknown() { + xxx_messageInfo_FundingStream_ToAddress.DiscardUnknown(m) +} + +var xxx_messageInfo_FundingStream_ToAddress proto.InternalMessageInfo + +func (m *FundingStream_ToAddress) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +func (m *FundingStream_ToAddress) GetRateBps() uint32 { + if m != nil { + return m.RateBps + } + return 0 +} + +type FundingStream_ToDao struct { + // The portion of the staking reward for the entire delegation pool + // allocated to this funding stream, specified in basis points. + RateBps uint32 `protobuf:"varint,2,opt,name=rate_bps,json=rateBps,proto3" json:"rate_bps,omitempty"` +} + +func (m *FundingStream_ToDao) Reset() { *m = FundingStream_ToDao{} } +func (m *FundingStream_ToDao) String() string { return proto.CompactTextString(m) } +func (*FundingStream_ToDao) ProtoMessage() {} +func (*FundingStream_ToDao) Descriptor() ([]byte, []int) { + return fileDescriptor_b49c30b9d712baf6, []int{3, 1} +} +func (m *FundingStream_ToDao) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FundingStream_ToDao) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_FundingStream_ToDao.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 *FundingStream_ToDao) XXX_Merge(src proto.Message) { + xxx_messageInfo_FundingStream_ToDao.Merge(m, src) +} +func (m *FundingStream_ToDao) XXX_Size() int { + return m.Size() +} +func (m *FundingStream_ToDao) XXX_DiscardUnknown() { + xxx_messageInfo_FundingStream_ToDao.DiscardUnknown(m) +} + +var xxx_messageInfo_FundingStream_ToDao proto.InternalMessageInfo + +func (m *FundingStream_ToDao) GetRateBps() uint32 { + if m != nil { + return m.RateBps + } + return 0 +} + +// 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"` +} + +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} +} +func (m *RateData) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RateData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RateData.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 *RateData) XXX_Merge(src proto.Message) { + xxx_messageInfo_RateData.Merge(m, src) +} +func (m *RateData) XXX_Size() int { + return m.Size() +} +func (m *RateData) XXX_DiscardUnknown() { + xxx_messageInfo_RateData.DiscardUnknown(m) +} + +var xxx_messageInfo_RateData proto.InternalMessageInfo + +func (m *RateData) GetIdentityKey() *v1alpha1.IdentityKey { + if m != nil { + return m.IdentityKey + } + return nil +} + +func (m *RateData) GetEpochIndex() uint64 { + if m != nil { + return m.EpochIndex + } + return 0 +} + +func (m *RateData) GetValidatorRewardRate() uint64 { + if m != nil { + return m.ValidatorRewardRate + } + return 0 +} + +func (m *RateData) GetValidatorExchangeRate() uint64 { + if m != nil { + return m.ValidatorExchangeRate + } + return 0 +} + +// 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"` +} + +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} +} +func (m *BaseRateData) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BaseRateData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BaseRateData.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 *BaseRateData) XXX_Merge(src proto.Message) { + xxx_messageInfo_BaseRateData.Merge(m, src) +} +func (m *BaseRateData) XXX_Size() int { + return m.Size() +} +func (m *BaseRateData) XXX_DiscardUnknown() { + xxx_messageInfo_BaseRateData.DiscardUnknown(m) +} + +var xxx_messageInfo_BaseRateData proto.InternalMessageInfo + +func (m *BaseRateData) GetEpochIndex() uint64 { + if m != nil { + return m.EpochIndex + } + return 0 +} + +func (m *BaseRateData) GetBaseRewardRate() uint64 { + if m != nil { + return m.BaseRewardRate + } + return 0 +} + +func (m *BaseRateData) GetBaseExchangeRate() uint64 { + if m != nil { + return m.BaseExchangeRate + } + return 0 +} + +// 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"` +} + +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} +} +func (m *ValidatorStatus) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ValidatorStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ValidatorStatus.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 *ValidatorStatus) XXX_Merge(src proto.Message) { + xxx_messageInfo_ValidatorStatus.Merge(m, src) +} +func (m *ValidatorStatus) XXX_Size() int { + return m.Size() +} +func (m *ValidatorStatus) XXX_DiscardUnknown() { + xxx_messageInfo_ValidatorStatus.DiscardUnknown(m) +} + +var xxx_messageInfo_ValidatorStatus proto.InternalMessageInfo + +func (m *ValidatorStatus) GetIdentityKey() *v1alpha1.IdentityKey { + if m != nil { + return m.IdentityKey + } + return nil +} + +func (m *ValidatorStatus) GetState() *ValidatorState { + if m != nil { + return m.State + } + return nil +} + +func (m *ValidatorStatus) GetVotingPower() uint64 { + if m != nil { + return m.VotingPower + } + return 0 +} + +func (m *ValidatorStatus) GetBondingState() *BondingState { + if m != nil { + return m.BondingState + } + return nil +} + +// 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"` +} + +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} +} +func (m *BondingState) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BondingState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BondingState.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 *BondingState) XXX_Merge(src proto.Message) { + xxx_messageInfo_BondingState.Merge(m, src) +} +func (m *BondingState) XXX_Size() int { + return m.Size() +} +func (m *BondingState) XXX_DiscardUnknown() { + xxx_messageInfo_BondingState.DiscardUnknown(m) +} + +var xxx_messageInfo_BondingState proto.InternalMessageInfo + +func (m *BondingState) GetState() BondingState_BondingStateEnum { + if m != nil { + return m.State + } + return BondingState_BONDING_STATE_ENUM_UNSPECIFIED +} + +func (m *BondingState) GetUnbondingEpoch() uint64 { + if m != nil { + return m.UnbondingEpoch + } + 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"` +} + +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} +} +func (m *ValidatorState) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ValidatorState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ValidatorState.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 *ValidatorState) XXX_Merge(src proto.Message) { + xxx_messageInfo_ValidatorState.Merge(m, src) +} +func (m *ValidatorState) XXX_Size() int { + return m.Size() +} +func (m *ValidatorState) XXX_DiscardUnknown() { + xxx_messageInfo_ValidatorState.DiscardUnknown(m) +} + +var xxx_messageInfo_ValidatorState proto.InternalMessageInfo + +func (m *ValidatorState) GetState() ValidatorState_ValidatorStateEnum { + if m != nil { + return m.State + } + return ValidatorState_VALIDATOR_STATE_ENUM_UNSPECIFIED +} + +// Combines all validator info into a single packet. +type ValidatorInfo struct { + Validator *Validator `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator,omitempty"` + Status *ValidatorStatus `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` + RateData *RateData `protobuf:"bytes,3,opt,name=rate_data,json=rateData,proto3" json:"rate_data,omitempty"` +} + +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} +} +func (m *ValidatorInfo) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ValidatorInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ValidatorInfo.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 *ValidatorInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_ValidatorInfo.Merge(m, src) +} +func (m *ValidatorInfo) XXX_Size() int { + return m.Size() +} +func (m *ValidatorInfo) XXX_DiscardUnknown() { + xxx_messageInfo_ValidatorInfo.DiscardUnknown(m) +} + +var xxx_messageInfo_ValidatorInfo proto.InternalMessageInfo + +func (m *ValidatorInfo) GetValidator() *Validator { + if m != nil { + return m.Validator + } + return nil +} + +func (m *ValidatorInfo) GetStatus() *ValidatorStatus { + if m != nil { + return m.Status + } + return nil +} + +func (m *ValidatorInfo) GetRateData() *RateData { + if m != nil { + return m.RateData + } + return nil +} + +// A transaction action (re)defining a validator. +type ValidatorDefinition struct { + // The configuration data for the validator. + Validator *Validator `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator,omitempty"` + // A signature by the validator's identity key over the validator data. + AuthSig []byte `protobuf:"bytes,2,opt,name=auth_sig,json=authSig,proto3" json:"auth_sig,omitempty"` +} + +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} +} +func (m *ValidatorDefinition) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ValidatorDefinition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ValidatorDefinition.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 *ValidatorDefinition) XXX_Merge(src proto.Message) { + xxx_messageInfo_ValidatorDefinition.Merge(m, src) +} +func (m *ValidatorDefinition) XXX_Size() int { + return m.Size() +} +func (m *ValidatorDefinition) XXX_DiscardUnknown() { + xxx_messageInfo_ValidatorDefinition.DiscardUnknown(m) +} + +var xxx_messageInfo_ValidatorDefinition proto.InternalMessageInfo + +func (m *ValidatorDefinition) GetValidator() *Validator { + if m != nil { + return m.Validator + } + return nil +} + +func (m *ValidatorDefinition) GetAuthSig() []byte { + if m != nil { + return m.AuthSig + } + return nil +} + +// 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"` + // 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"` + // 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"` +} + +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} +} +func (m *Delegate) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Delegate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Delegate.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 *Delegate) XXX_Merge(src proto.Message) { + xxx_messageInfo_Delegate.Merge(m, src) +} +func (m *Delegate) XXX_Size() int { + return m.Size() +} +func (m *Delegate) XXX_DiscardUnknown() { + xxx_messageInfo_Delegate.DiscardUnknown(m) +} + +var xxx_messageInfo_Delegate proto.InternalMessageInfo + +func (m *Delegate) GetValidatorIdentity() *v1alpha1.IdentityKey { + if m != nil { + return m.ValidatorIdentity + } + return nil +} + +func (m *Delegate) GetEpochIndex() uint64 { + if m != nil { + return m.EpochIndex + } + return 0 +} + +func (m *Delegate) GetUnbondedAmount() *v1alpha11.Amount { + if m != nil { + return m.UnbondedAmount + } + return nil +} + +func (m *Delegate) GetDelegationAmount() *v1alpha11.Amount { + if m != nil { + return m.DelegationAmount + } + return nil +} + +// 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"` + // 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"` + // 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"` + // 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"` +} + +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} +} +func (m *Undelegate) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Undelegate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Undelegate.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 *Undelegate) XXX_Merge(src proto.Message) { + xxx_messageInfo_Undelegate.Merge(m, src) +} +func (m *Undelegate) XXX_Size() int { + return m.Size() +} +func (m *Undelegate) XXX_DiscardUnknown() { + xxx_messageInfo_Undelegate.DiscardUnknown(m) +} + +var xxx_messageInfo_Undelegate proto.InternalMessageInfo + +func (m *Undelegate) GetValidatorIdentity() *v1alpha1.IdentityKey { + if m != nil { + return m.ValidatorIdentity + } + return nil +} + +func (m *Undelegate) GetStartEpochIndex() uint64 { + if m != nil { + return m.StartEpochIndex + } + return 0 +} + +func (m *Undelegate) GetUnbondedAmount() *v1alpha11.Amount { + if m != nil { + return m.UnbondedAmount + } + return nil +} + +func (m *Undelegate) GetDelegationAmount() *v1alpha11.Amount { + if m != nil { + return m.DelegationAmount + } + return nil +} + +// A transaction action finishing an undelegation, converting (slashable) +// "unbonding tokens" to (unslashable) staking tokens. +type UndelegateClaim struct { + Body *UndelegateClaimBody `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"` + Proof []byte `protobuf:"bytes,2,opt,name=proof,proto3" json:"proof,omitempty"` +} + +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} +} +func (m *UndelegateClaim) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *UndelegateClaim) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_UndelegateClaim.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 *UndelegateClaim) XXX_Merge(src proto.Message) { + xxx_messageInfo_UndelegateClaim.Merge(m, src) +} +func (m *UndelegateClaim) XXX_Size() int { + return m.Size() +} +func (m *UndelegateClaim) XXX_DiscardUnknown() { + xxx_messageInfo_UndelegateClaim.DiscardUnknown(m) +} + +var xxx_messageInfo_UndelegateClaim proto.InternalMessageInfo + +func (m *UndelegateClaim) GetBody() *UndelegateClaimBody { + if m != nil { + return m.Body + } + return nil +} + +func (m *UndelegateClaim) GetProof() []byte { + if m != nil { + return m.Proof + } + return nil +} + +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"` + // 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"` + // 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"` +} + +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} +} +func (m *UndelegateClaimBody) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *UndelegateClaimBody) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_UndelegateClaimBody.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 *UndelegateClaimBody) XXX_Merge(src proto.Message) { + xxx_messageInfo_UndelegateClaimBody.Merge(m, src) +} +func (m *UndelegateClaimBody) XXX_Size() int { + return m.Size() +} +func (m *UndelegateClaimBody) XXX_DiscardUnknown() { + xxx_messageInfo_UndelegateClaimBody.DiscardUnknown(m) +} + +var xxx_messageInfo_UndelegateClaimBody proto.InternalMessageInfo + +func (m *UndelegateClaimBody) GetValidatorIdentity() *v1alpha1.IdentityKey { + if m != nil { + return m.ValidatorIdentity + } + return nil +} + +func (m *UndelegateClaimBody) GetStartEpochIndex() uint64 { + if m != nil { + return m.StartEpochIndex + } + return 0 +} + +func (m *UndelegateClaimBody) GetPenalty() *Penalty { + if m != nil { + return m.Penalty + } + return nil +} + +func (m *UndelegateClaimBody) GetBalanceCommitment() *v1alpha12.BalanceCommitment { + if m != nil { + return m.BalanceCommitment + } + return nil +} + +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"` + // 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"` + // 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"` + // 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"` +} + +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} +} +func (m *UndelegateClaimPlan) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *UndelegateClaimPlan) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_UndelegateClaimPlan.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 *UndelegateClaimPlan) XXX_Merge(src proto.Message) { + xxx_messageInfo_UndelegateClaimPlan.Merge(m, src) +} +func (m *UndelegateClaimPlan) XXX_Size() int { + return m.Size() +} +func (m *UndelegateClaimPlan) XXX_DiscardUnknown() { + xxx_messageInfo_UndelegateClaimPlan.DiscardUnknown(m) +} + +var xxx_messageInfo_UndelegateClaimPlan proto.InternalMessageInfo + +func (m *UndelegateClaimPlan) GetValidatorIdentity() *v1alpha1.IdentityKey { + if m != nil { + return m.ValidatorIdentity + } + return nil +} + +func (m *UndelegateClaimPlan) GetStartEpochIndex() uint64 { + if m != nil { + return m.StartEpochIndex + } + return 0 +} + +func (m *UndelegateClaimPlan) GetPenalty() *Penalty { + if m != nil { + return m.Penalty + } + return nil +} + +func (m *UndelegateClaimPlan) GetUnbondingAmount() *v1alpha11.Amount { + if m != nil { + return m.UnbondingAmount + } + return nil +} + +func (m *UndelegateClaimPlan) GetBalanceBlinding() []byte { + if m != nil { + return m.BalanceBlinding + } + return nil +} + +func (m *UndelegateClaimPlan) GetProofBlindingR() []byte { + if m != nil { + return m.ProofBlindingR + } + return nil +} + +func (m *UndelegateClaimPlan) GetProofBlindingS() []byte { + if m != nil { + return m.ProofBlindingS + } + return nil +} + +// A list of pending delegations and undelegations. +type DelegationChanges struct { + Delegations []*Delegate `protobuf:"bytes,1,rep,name=delegations,proto3" json:"delegations,omitempty"` + Undelegations []*Undelegate `protobuf:"bytes,2,rep,name=undelegations,proto3" json:"undelegations,omitempty"` +} + +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} +} +func (m *DelegationChanges) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DelegationChanges) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DelegationChanges.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 *DelegationChanges) XXX_Merge(src proto.Message) { + xxx_messageInfo_DelegationChanges.Merge(m, src) +} +func (m *DelegationChanges) XXX_Size() int { + return m.Size() +} +func (m *DelegationChanges) XXX_DiscardUnknown() { + xxx_messageInfo_DelegationChanges.DiscardUnknown(m) +} + +var xxx_messageInfo_DelegationChanges proto.InternalMessageInfo + +func (m *DelegationChanges) GetDelegations() []*Delegate { + if m != nil { + return m.Delegations + } + return nil +} + +func (m *DelegationChanges) GetUndelegations() []*Undelegate { + if m != nil { + return m.Undelegations + } + return nil +} + +// Track's a validator's uptime. +type Uptime struct { + AsOfBlockHeight uint64 `protobuf:"varint,1,opt,name=as_of_block_height,json=asOfBlockHeight,proto3" json:"as_of_block_height,omitempty"` + WindowLen uint32 `protobuf:"varint,2,opt,name=window_len,json=windowLen,proto3" json:"window_len,omitempty"` + Bitvec []byte `protobuf:"bytes,3,opt,name=bitvec,proto3" json:"bitvec,omitempty"` +} + +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} +} +func (m *Uptime) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Uptime) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Uptime.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 *Uptime) XXX_Merge(src proto.Message) { + xxx_messageInfo_Uptime.Merge(m, src) +} +func (m *Uptime) XXX_Size() int { + return m.Size() +} +func (m *Uptime) XXX_DiscardUnknown() { + xxx_messageInfo_Uptime.DiscardUnknown(m) +} + +var xxx_messageInfo_Uptime proto.InternalMessageInfo + +func (m *Uptime) GetAsOfBlockHeight() uint64 { + if m != nil { + return m.AsOfBlockHeight + } + return 0 +} + +func (m *Uptime) GetWindowLen() uint32 { + if m != nil { + return m.WindowLen + } + return 0 +} + +func (m *Uptime) GetBitvec() []byte { + if m != nil { + return m.Bitvec + } + return nil +} + +// 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"` +} + +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} +} +func (m *CurrentConsensusKeys) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CurrentConsensusKeys) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CurrentConsensusKeys.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 *CurrentConsensusKeys) XXX_Merge(src proto.Message) { + xxx_messageInfo_CurrentConsensusKeys.Merge(m, src) +} +func (m *CurrentConsensusKeys) XXX_Size() int { + return m.Size() +} +func (m *CurrentConsensusKeys) XXX_DiscardUnknown() { + xxx_messageInfo_CurrentConsensusKeys.DiscardUnknown(m) +} + +var xxx_messageInfo_CurrentConsensusKeys proto.InternalMessageInfo + +func (m *CurrentConsensusKeys) GetConsensusKeys() []*v1alpha1.ConsensusKey { + if m != nil { + return m.ConsensusKeys + } + return nil +} + +// Tracks slashing penalties applied to a validator in some epoch. +type Penalty struct { + Inner uint64 `protobuf:"varint,1,opt,name=inner,proto3" json:"inner,omitempty"` +} + +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} +} +func (m *Penalty) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Penalty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Penalty.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 *Penalty) XXX_Merge(src proto.Message) { + xxx_messageInfo_Penalty.Merge(m, src) +} +func (m *Penalty) XXX_Size() int { + return m.Size() +} +func (m *Penalty) XXX_DiscardUnknown() { + xxx_messageInfo_Penalty.DiscardUnknown(m) +} + +var xxx_messageInfo_Penalty proto.InternalMessageInfo + +func (m *Penalty) GetInner() uint64 { + if m != nil { + return m.Inner + } + return 0 +} + +// 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"` +} + +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} +} +func (m *ValidatorInfoRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ValidatorInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ValidatorInfoRequest.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 *ValidatorInfoRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ValidatorInfoRequest.Merge(m, src) +} +func (m *ValidatorInfoRequest) XXX_Size() int { + return m.Size() +} +func (m *ValidatorInfoRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ValidatorInfoRequest.DiscardUnknown(m) +} + +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 + } + return false +} + +type ValidatorInfoResponse struct { + ValidatorInfo *ValidatorInfo `protobuf:"bytes,1,opt,name=validator_info,json=validatorInfo,proto3" json:"validator_info,omitempty"` +} + +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} +} +func (m *ValidatorInfoResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ValidatorInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ValidatorInfoResponse.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 *ValidatorInfoResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ValidatorInfoResponse.Merge(m, src) +} +func (m *ValidatorInfoResponse) XXX_Size() int { + return m.Size() +} +func (m *ValidatorInfoResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ValidatorInfoResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ValidatorInfoResponse proto.InternalMessageInfo + +func (m *ValidatorInfoResponse) GetValidatorInfo() *ValidatorInfo { + if m != nil { + return m.ValidatorInfo + } + return nil +} + +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"` +} + +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} +} +func (m *ValidatorStatusRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ValidatorStatusRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ValidatorStatusRequest.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 *ValidatorStatusRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ValidatorStatusRequest.Merge(m, src) +} +func (m *ValidatorStatusRequest) XXX_Size() int { + return m.Size() +} +func (m *ValidatorStatusRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ValidatorStatusRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ValidatorStatusRequest proto.InternalMessageInfo + +func (m *ValidatorStatusRequest) GetChainId() string { + if m != nil { + return m.ChainId + } + return "" +} + +func (m *ValidatorStatusRequest) GetIdentityKey() *v1alpha1.IdentityKey { + if m != nil { + return m.IdentityKey + } + return nil +} + +type ValidatorStatusResponse struct { + Status *ValidatorStatus `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` +} + +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} +} +func (m *ValidatorStatusResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ValidatorStatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ValidatorStatusResponse.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 *ValidatorStatusResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ValidatorStatusResponse.Merge(m, src) +} +func (m *ValidatorStatusResponse) XXX_Size() int { + return m.Size() +} +func (m *ValidatorStatusResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ValidatorStatusResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ValidatorStatusResponse proto.InternalMessageInfo + +func (m *ValidatorStatusResponse) GetStatus() *ValidatorStatus { + if m != nil { + return m.Status + } + return nil +} + +// 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"` +} + +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} +} +func (m *ValidatorPenaltyRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ValidatorPenaltyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ValidatorPenaltyRequest.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 *ValidatorPenaltyRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ValidatorPenaltyRequest.Merge(m, src) +} +func (m *ValidatorPenaltyRequest) XXX_Size() int { + return m.Size() +} +func (m *ValidatorPenaltyRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ValidatorPenaltyRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ValidatorPenaltyRequest proto.InternalMessageInfo + +func (m *ValidatorPenaltyRequest) GetChainId() string { + if m != nil { + return m.ChainId + } + return "" +} + +func (m *ValidatorPenaltyRequest) GetIdentityKey() *v1alpha1.IdentityKey { + if m != nil { + return m.IdentityKey + } + return nil +} + +func (m *ValidatorPenaltyRequest) GetStartEpochIndex() uint64 { + if m != nil { + return m.StartEpochIndex + } + return 0 +} + +func (m *ValidatorPenaltyRequest) GetEndEpochIndex() uint64 { + if m != nil { + return m.EndEpochIndex + } + return 0 +} + +type ValidatorPenaltyResponse struct { + Penalty *Penalty `protobuf:"bytes,1,opt,name=penalty,proto3" json:"penalty,omitempty"` +} + +func (m *ValidatorPenaltyResponse) Reset() { *m = ValidatorPenaltyResponse{} } +func (m *ValidatorPenaltyResponse) String() string { return proto.CompactTextString(m) } +func (*ValidatorPenaltyResponse) ProtoMessage() {} +func (*ValidatorPenaltyResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_b49c30b9d712baf6, []int{25} +} +func (m *ValidatorPenaltyResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ValidatorPenaltyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ValidatorPenaltyResponse.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 *ValidatorPenaltyResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ValidatorPenaltyResponse.Merge(m, src) +} +func (m *ValidatorPenaltyResponse) XXX_Size() int { + return m.Size() +} +func (m *ValidatorPenaltyResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ValidatorPenaltyResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ValidatorPenaltyResponse proto.InternalMessageInfo + +func (m *ValidatorPenaltyResponse) GetPenalty() *Penalty { + if m != nil { + return m.Penalty + } + return nil +} + +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"` +} + +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} +} +func (m *CurrentValidatorRateRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CurrentValidatorRateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CurrentValidatorRateRequest.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 *CurrentValidatorRateRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CurrentValidatorRateRequest.Merge(m, src) +} +func (m *CurrentValidatorRateRequest) XXX_Size() int { + return m.Size() +} +func (m *CurrentValidatorRateRequest) XXX_DiscardUnknown() { + xxx_messageInfo_CurrentValidatorRateRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_CurrentValidatorRateRequest proto.InternalMessageInfo + +func (m *CurrentValidatorRateRequest) GetChainId() string { + if m != nil { + return m.ChainId + } + return "" +} + +func (m *CurrentValidatorRateRequest) GetIdentityKey() *v1alpha1.IdentityKey { + if m != nil { + return m.IdentityKey + } + return nil +} + +type CurrentValidatorRateResponse struct { + Data *RateData `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` +} + +func (m *CurrentValidatorRateResponse) Reset() { *m = CurrentValidatorRateResponse{} } +func (m *CurrentValidatorRateResponse) String() string { return proto.CompactTextString(m) } +func (*CurrentValidatorRateResponse) ProtoMessage() {} +func (*CurrentValidatorRateResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_b49c30b9d712baf6, []int{27} +} +func (m *CurrentValidatorRateResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CurrentValidatorRateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CurrentValidatorRateResponse.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 *CurrentValidatorRateResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_CurrentValidatorRateResponse.Merge(m, src) +} +func (m *CurrentValidatorRateResponse) XXX_Size() int { + return m.Size() +} +func (m *CurrentValidatorRateResponse) XXX_DiscardUnknown() { + xxx_messageInfo_CurrentValidatorRateResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_CurrentValidatorRateResponse proto.InternalMessageInfo + +func (m *CurrentValidatorRateResponse) GetData() *RateData { + if m != nil { + return m.Data + } + return nil +} + +type NextValidatorRateRequest 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"` +} + +func (m *NextValidatorRateRequest) Reset() { *m = NextValidatorRateRequest{} } +func (m *NextValidatorRateRequest) String() string { return proto.CompactTextString(m) } +func (*NextValidatorRateRequest) ProtoMessage() {} +func (*NextValidatorRateRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_b49c30b9d712baf6, []int{28} +} +func (m *NextValidatorRateRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NextValidatorRateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NextValidatorRateRequest.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 *NextValidatorRateRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_NextValidatorRateRequest.Merge(m, src) +} +func (m *NextValidatorRateRequest) XXX_Size() int { + return m.Size() +} +func (m *NextValidatorRateRequest) XXX_DiscardUnknown() { + xxx_messageInfo_NextValidatorRateRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_NextValidatorRateRequest proto.InternalMessageInfo + +func (m *NextValidatorRateRequest) GetChainId() string { + if m != nil { + return m.ChainId + } + return "" +} + +func (m *NextValidatorRateRequest) GetIdentityKey() *v1alpha1.IdentityKey { + if m != nil { + return m.IdentityKey + } + return nil +} + +type NextValidatorRateResponse struct { + Data *RateData `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` +} + +func (m *NextValidatorRateResponse) Reset() { *m = NextValidatorRateResponse{} } +func (m *NextValidatorRateResponse) String() string { return proto.CompactTextString(m) } +func (*NextValidatorRateResponse) ProtoMessage() {} +func (*NextValidatorRateResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_b49c30b9d712baf6, []int{29} +} +func (m *NextValidatorRateResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NextValidatorRateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NextValidatorRateResponse.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 *NextValidatorRateResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_NextValidatorRateResponse.Merge(m, src) +} +func (m *NextValidatorRateResponse) XXX_Size() int { + return m.Size() +} +func (m *NextValidatorRateResponse) XXX_DiscardUnknown() { + xxx_messageInfo_NextValidatorRateResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_NextValidatorRateResponse proto.InternalMessageInfo + +func (m *NextValidatorRateResponse) GetData() *RateData { + if m != nil { + return m.Data + } + return nil +} + +// 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"` + // 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 + BaseRewardRate uint64 `protobuf:"varint,3,opt,name=base_reward_rate,json=baseRewardRate,proto3" json:"base_reward_rate,omitempty"` + // The penalty for slashing due to misbehavior. + SlashingPenaltyMisbehavior uint64 `protobuf:"varint,4,opt,name=slashing_penalty_misbehavior,json=slashingPenaltyMisbehavior,proto3" json:"slashing_penalty_misbehavior,omitempty"` + // The penalty for slashing due to downtime. + SlashingPenaltyDowntime uint64 `protobuf:"varint,5,opt,name=slashing_penalty_downtime,json=slashingPenaltyDowntime,proto3" json:"slashing_penalty_downtime,omitempty"` + // The number of blocks in the window to check for downtime. + 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"` +} + +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{30} +} +func (m *StakeParameters) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *StakeParameters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_StakeParameters.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 *StakeParameters) XXX_Merge(src proto.Message) { + xxx_messageInfo_StakeParameters.Merge(m, src) +} +func (m *StakeParameters) XXX_Size() int { + return m.Size() +} +func (m *StakeParameters) XXX_DiscardUnknown() { + xxx_messageInfo_StakeParameters.DiscardUnknown(m) +} + +var xxx_messageInfo_StakeParameters proto.InternalMessageInfo + +func (m *StakeParameters) GetUnbondingEpochs() uint64 { + if m != nil { + return m.UnbondingEpochs + } + return 0 +} + +func (m *StakeParameters) GetActiveValidatorLimit() uint64 { + if m != nil { + return m.ActiveValidatorLimit + } + return 0 +} + +func (m *StakeParameters) GetBaseRewardRate() uint64 { + if m != nil { + return m.BaseRewardRate + } + return 0 +} + +func (m *StakeParameters) GetSlashingPenaltyMisbehavior() uint64 { + if m != nil { + return m.SlashingPenaltyMisbehavior + } + return 0 +} + +func (m *StakeParameters) GetSlashingPenaltyDowntime() uint64 { + if m != nil { + return m.SlashingPenaltyDowntime + } + return 0 +} + +func (m *StakeParameters) GetSignedBlocksWindowLen() uint64 { + if m != nil { + return m.SignedBlocksWindowLen + } + return 0 +} + +func (m *StakeParameters) GetMissedBlocksMaximum() uint64 { + if m != nil { + return m.MissedBlocksMaximum + } + return 0 +} + +// Genesis data for the staking component. +type GenesisContent struct { + // The configuration parameters for the staking component present at genesis + StakeParams *StakeParameters `protobuf:"bytes,1,opt,name=stake_params,json=stakeParams,proto3" json:"stake_params,omitempty"` + // The list of validators present at genesis. + Validators []*Validator `protobuf:"bytes,2,rep,name=validators,proto3" json:"validators,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_b49c30b9d712baf6, []int{31} +} +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) GetStakeParams() *StakeParameters { + if m != nil { + return m.StakeParams + } + return nil +} + +func (m *GenesisContent) GetValidators() []*Validator { + if m != nil { + return m.Validators + } + return nil +} + +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_ToDao)(nil), "penumbra.core.component.stake.v1alpha1.FundingStream.ToDao") + 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((*NextValidatorRateRequest)(nil), "penumbra.core.component.stake.v1alpha1.NextValidatorRateRequest") + proto.RegisterType((*NextValidatorRateResponse)(nil), "penumbra.core.component.stake.v1alpha1.NextValidatorRateResponse") + proto.RegisterType((*StakeParameters)(nil), "penumbra.core.component.stake.v1alpha1.StakeParameters") + proto.RegisterType((*GenesisContent)(nil), "penumbra.core.component.stake.v1alpha1.GenesisContent") +} + +func init() { + proto.RegisterFile("penumbra/core/component/stake/v1alpha1/stake.proto", fileDescriptor_b49c30b9d712baf6) +} + +var fileDescriptor_b49c30b9d712baf6 = []byte{ + // 2171 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x59, 0xcd, 0x6f, 0x1b, 0xc7, + 0x15, 0xd7, 0x52, 0xd4, 0xd7, 0x23, 0x29, 0x51, 0xe3, 0x2f, 0x5a, 0xb1, 0x65, 0x65, 0x1d, 0x38, + 0x8a, 0x5b, 0x50, 0x31, 0x9b, 0x0f, 0x40, 0x69, 0x1b, 0x8b, 0x1f, 0xb1, 0x59, 0x5b, 0x12, 0xbd, + 0x94, 0x9d, 0xd6, 0x15, 0xb2, 0x1e, 0x72, 0x47, 0xe2, 0xd4, 0xdc, 0x59, 0x66, 0x67, 0x28, 0x59, + 0xb7, 0xb4, 0x40, 0x91, 0x43, 0x81, 0xa2, 0x28, 0x50, 0x20, 0xd7, 0xe6, 0x98, 0x4b, 0x0f, 0xbd, + 0xf5, 0x52, 0x14, 0x45, 0x81, 0xa2, 0xa7, 0x5c, 0x0a, 0x14, 0xe8, 0xa5, 0xb0, 0x0b, 0x14, 0xe8, + 0xa5, 0xff, 0x42, 0x31, 0xb3, 0xb3, 0xbb, 0x24, 0x45, 0x3b, 0x14, 0xed, 0xa6, 0xc9, 0x85, 0xd8, + 0xf7, 0xe6, 0xf7, 0xde, 0xbc, 0xf7, 0x66, 0xe6, 0xbd, 0x37, 0x43, 0x28, 0x74, 0x08, 0xeb, 0xba, + 0x0d, 0x1f, 0xaf, 0x35, 0x3d, 0x9f, 0xac, 0x35, 0x3d, 0xb7, 0xe3, 0x31, 0xc2, 0xc4, 0x1a, 0x17, + 0xf8, 0x21, 0x59, 0x3b, 0xb8, 0x86, 0xdb, 0x9d, 0x16, 0xbe, 0x16, 0x90, 0xf9, 0x8e, 0xef, 0x09, + 0x0f, 0x5d, 0x09, 0x65, 0xf2, 0x52, 0x26, 0x1f, 0xc9, 0xe4, 0x03, 0x50, 0x28, 0xb3, 0x74, 0xa5, + 0x5f, 0xf7, 0x43, 0x72, 0xc4, 0x63, 0x85, 0x92, 0x0a, 0xf4, 0x2d, 0xbd, 0xd2, 0x8f, 0x63, 0x5d, + 0x37, 0x86, 0xb1, 0xae, 0xab, 0x51, 0xab, 0xfd, 0x28, 0xcc, 0x39, 0x11, 0x31, 0x4e, 0x91, 0x01, + 0xd2, 0xcc, 0xc3, 0xd9, 0xfb, 0xb7, 0xee, 0x32, 0x87, 0xb4, 0xc9, 0x3e, 0x16, 0xa4, 0xd4, 0xc6, + 0xd4, 0xad, 0xf9, 0x9e, 0xb7, 0x87, 0x4e, 0xc3, 0x14, 0x65, 0x8c, 0xf8, 0x39, 0x63, 0xc5, 0x58, + 0x4d, 0x5b, 0x01, 0x61, 0xfe, 0x71, 0x12, 0xe6, 0xee, 0xe1, 0x36, 0x75, 0xb0, 0xf0, 0x7c, 0x74, + 0x0b, 0xd2, 0xd4, 0x21, 0x4c, 0x50, 0x71, 0x64, 0x3f, 0x24, 0x47, 0x0a, 0x9a, 0x2a, 0xac, 0xe6, + 0xfb, 0x9d, 0x56, 0xe6, 0x87, 0xb3, 0xe7, 0xab, 0x5a, 0xe0, 0x16, 0x39, 0xb2, 0x52, 0x34, 0x26, + 0xd0, 0x65, 0xc8, 0x34, 0x3d, 0xc6, 0x09, 0xe3, 0x5d, 0xae, 0xb4, 0x25, 0xd4, 0xc4, 0xe9, 0x88, + 0x29, 0x41, 0x08, 0x92, 0x0c, 0xbb, 0x24, 0x37, 0xb9, 0x62, 0xac, 0xce, 0x59, 0xea, 0x1b, 0xe5, + 0x60, 0xe6, 0x90, 0x34, 0x38, 0x15, 0x24, 0x97, 0x54, 0xec, 0x90, 0x44, 0x2b, 0x90, 0x72, 0x08, + 0x6f, 0xfa, 0xb4, 0x23, 0xa8, 0xc7, 0x72, 0x53, 0x6a, 0xb4, 0x97, 0x25, 0x65, 0x09, 0xc3, 0x8d, + 0x36, 0x71, 0x72, 0xb3, 0x2b, 0xc6, 0xea, 0xac, 0x15, 0x92, 0xe8, 0x03, 0x58, 0xd8, 0xeb, 0x32, + 0x87, 0xb2, 0x7d, 0x9b, 0x0b, 0x9f, 0x60, 0x97, 0xe7, 0xa6, 0x57, 0x26, 0x57, 0x53, 0x85, 0x37, + 0xf3, 0xa3, 0xad, 0x69, 0xfe, 0xbd, 0x40, 0xbc, 0xae, 0xa4, 0xad, 0xf9, 0xbd, 0x5e, 0x92, 0xa3, + 0x57, 0x61, 0x81, 0x93, 0x0f, 0xbb, 0x84, 0x35, 0x89, 0x2d, 0xd5, 0x11, 0x3f, 0x37, 0xb3, 0x62, + 0xac, 0x66, 0xac, 0xf9, 0x90, 0xbd, 0xa5, 0xb8, 0xe8, 0x0e, 0xcc, 0xef, 0x7b, 0x07, 0xc4, 0x67, + 0x58, 0x42, 0x65, 0x60, 0xe6, 0x54, 0x98, 0xaf, 0x3e, 0x33, 0xcc, 0x37, 0x22, 0x11, 0x19, 0xe8, + 0xcc, 0x7e, 0x2f, 0x69, 0x3e, 0x80, 0x4c, 0xb4, 0x88, 0xb7, 0x29, 0x17, 0x68, 0x1b, 0xe6, 0x0f, + 0x42, 0x86, 0x9c, 0x82, 0xe7, 0x0c, 0xe5, 0xeb, 0xe8, 0x4b, 0x99, 0x89, 0xe4, 0x6f, 0x91, 0x23, + 0x6e, 0xfe, 0x2e, 0x01, 0x99, 0x3e, 0xff, 0xd1, 0x03, 0x00, 0xe1, 0xd9, 0xd8, 0x71, 0x7c, 0xc2, + 0xb9, 0xde, 0x29, 0xef, 0x8e, 0x15, 0xca, 0xfc, 0x8e, 0xb7, 0x11, 0xa8, 0xb9, 0x39, 0x61, 0xcd, + 0x89, 0x90, 0x40, 0x3b, 0x30, 0x2d, 0x3c, 0xdb, 0xc1, 0x9e, 0xda, 0x39, 0xa9, 0xc2, 0x3b, 0xe3, + 0x6a, 0x2f, 0x63, 0xef, 0xe6, 0x84, 0x35, 0x25, 0xe4, 0xc7, 0xd2, 0x75, 0x98, 0x8b, 0xe6, 0x93, + 0xdb, 0xa5, 0xd7, 0x83, 0x39, 0x2b, 0x24, 0xd1, 0x79, 0x98, 0xf5, 0xb1, 0x20, 0x76, 0xa3, 0xc3, + 0xd5, 0xf4, 0x19, 0x6b, 0x46, 0xd2, 0xc5, 0x0e, 0x5f, 0x32, 0x61, 0x4a, 0xe9, 0x7c, 0x06, 0xa6, + 0x98, 0x82, 0x39, 0x9f, 0x34, 0x69, 0x87, 0x12, 0x26, 0xcc, 0x7f, 0x1a, 0x30, 0x6b, 0x61, 0x41, + 0xca, 0x58, 0xe0, 0x17, 0x7b, 0xc6, 0x2e, 0x41, 0x8a, 0x74, 0xbc, 0x66, 0xcb, 0xa6, 0xcc, 0x21, + 0x8f, 0x94, 0x11, 0x49, 0x0b, 0x14, 0xab, 0x2a, 0x39, 0xa8, 0x00, 0x67, 0xe2, 0x8d, 0xe0, 0x93, + 0x43, 0xec, 0x3b, 0xb6, 0xb4, 0x51, 0x9d, 0xac, 0xa4, 0x75, 0x2a, 0x1a, 0xb4, 0xd4, 0x98, 0xb4, + 0x12, 0xbd, 0x05, 0xe7, 0x62, 0x19, 0xf2, 0xa8, 0xd9, 0xc2, 0x6c, 0x9f, 0x04, 0x52, 0x53, 0x4a, + 0x2a, 0x56, 0x59, 0xd1, 0xa3, 0x52, 0xce, 0xfc, 0xd8, 0x80, 0x74, 0x11, 0x73, 0x12, 0xb9, 0x3a, + 0x60, 0x9d, 0x71, 0xcc, 0xba, 0x55, 0xc8, 0x36, 0x30, 0x27, 0x7d, 0x86, 0x05, 0x3e, 0xcc, 0x4b, + 0x7e, 0x8f, 0x4d, 0xdf, 0x04, 0xa4, 0x90, 0xfd, 0xe6, 0x4c, 0x2a, 0xac, 0xd2, 0xd1, 0x67, 0xc9, + 0x67, 0x09, 0x58, 0x88, 0x0e, 0x44, 0x5d, 0x60, 0xd1, 0xe5, 0x2f, 0x36, 0xee, 0xb7, 0x61, 0x8a, + 0x8b, 0xd0, 0xda, 0x54, 0xe1, 0xad, 0x51, 0x77, 0x66, 0x9f, 0x51, 0xc4, 0x0a, 0x94, 0xa0, 0x97, + 0x21, 0x7d, 0xe0, 0x09, 0x99, 0x99, 0x3a, 0xde, 0x21, 0xf1, 0xb5, 0x5b, 0xa9, 0x80, 0x57, 0x93, + 0x2c, 0xf4, 0x03, 0xc8, 0x34, 0xbc, 0x30, 0x7b, 0x85, 0xeb, 0x97, 0x2a, 0xbc, 0x31, 0xea, 0xc4, + 0x45, 0x4f, 0x1f, 0x09, 0x39, 0x6d, 0xba, 0xd1, 0x43, 0x99, 0xbf, 0x49, 0x40, 0xba, 0x77, 0x18, + 0xfd, 0x30, 0x74, 0x4e, 0x86, 0x68, 0xbe, 0x50, 0x19, 0x67, 0x8e, 0x3e, 0xa2, 0xc2, 0xba, 0x6e, + 0xe8, 0xeb, 0xab, 0xb0, 0xd0, 0x65, 0xa1, 0x2b, 0x6a, 0x2b, 0x84, 0x2b, 0x1e, 0xb1, 0x2b, 0x92, + 0x6b, 0x7e, 0x62, 0x40, 0x76, 0x50, 0x09, 0x32, 0x61, 0xb9, 0xb8, 0xbd, 0x55, 0xae, 0x6e, 0xdd, + 0xb0, 0xeb, 0x3b, 0x1b, 0x3b, 0x15, 0xbb, 0xb2, 0x75, 0x77, 0xd3, 0xbe, 0xbb, 0x55, 0xaf, 0x55, + 0x4a, 0xd5, 0xf7, 0xaa, 0x95, 0x72, 0x76, 0x02, 0x5d, 0x84, 0xf3, 0x43, 0x30, 0x92, 0x55, 0x29, + 0x67, 0x0d, 0xb4, 0x02, 0x17, 0x86, 0xaa, 0xd0, 0xcc, 0x6c, 0x02, 0x5d, 0x82, 0x97, 0x9e, 0x8a, + 0xa8, 0x94, 0xb3, 0x93, 0xe6, 0xdf, 0x13, 0x30, 0xdf, 0xbf, 0x92, 0xc8, 0xee, 0x8f, 0x59, 0x75, + 0xbc, 0x0d, 0x31, 0x40, 0xf6, 0xc4, 0xcd, 0xfc, 0x97, 0x01, 0xe8, 0xf8, 0x28, 0x7a, 0x05, 0x56, + 0xee, 0x6d, 0xdc, 0xae, 0x96, 0x37, 0x76, 0xb6, 0xad, 0xa7, 0x87, 0xe4, 0x65, 0xb8, 0x38, 0x14, + 0x55, 0xdd, 0xda, 0x28, 0xed, 0x54, 0xef, 0x55, 0xb2, 0x86, 0x74, 0x7a, 0x28, 0x44, 0x03, 0x12, + 0x4f, 0x05, 0x7c, 0x6f, 0xa3, 0x7a, 0x5b, 0x46, 0x05, 0x5d, 0x86, 0x4b, 0x43, 0x01, 0x3b, 0xdb, + 0x9b, 0xc5, 0xfa, 0xce, 0xf6, 0x56, 0xa5, 0x9c, 0x4d, 0x3e, 0xd5, 0x92, 0x72, 0xb5, 0xbe, 0x51, + 0x94, 0x7a, 0xa6, 0xcc, 0x8f, 0x12, 0x3d, 0xd5, 0xac, 0xca, 0xf6, 0x3c, 0xb4, 0x0d, 0x73, 0x51, + 0xc6, 0xd1, 0xe7, 0xf6, 0xda, 0x89, 0x03, 0x6c, 0xc5, 0x3a, 0xd0, 0x36, 0x4c, 0x73, 0x95, 0x15, + 0xf4, 0xf9, 0x7d, 0x7b, 0xac, 0xe5, 0xea, 0x72, 0x4b, 0xab, 0x41, 0x9b, 0x30, 0xa7, 0x2a, 0x81, + 0x83, 0x05, 0x56, 0xc7, 0x37, 0x55, 0x78, 0x7d, 0x54, 0x9d, 0x61, 0xba, 0xb4, 0x54, 0x31, 0x91, + 0x5f, 0xe6, 0x8f, 0x0d, 0x38, 0x15, 0x4d, 0x55, 0x26, 0x7b, 0x94, 0x51, 0xd5, 0xdd, 0xbc, 0xf0, + 0x40, 0x9c, 0x87, 0x59, 0xdc, 0x15, 0x2d, 0x9b, 0xd3, 0x7d, 0xdd, 0x9e, 0xcd, 0x48, 0xba, 0x4e, + 0xf7, 0xcd, 0x4f, 0x13, 0x30, 0x5b, 0xd6, 0x6d, 0x24, 0x7a, 0x1f, 0x50, 0x5c, 0x12, 0xc2, 0x44, + 0x78, 0xe2, 0x14, 0xba, 0x18, 0xe9, 0x08, 0xb9, 0x5f, 0x5c, 0xc0, 0x6e, 0x85, 0xf9, 0x82, 0x38, + 0x36, 0x76, 0xbd, 0x2e, 0x13, 0x3a, 0xbe, 0xe6, 0xc0, 0xb4, 0xb2, 0x5b, 0x8e, 0x66, 0xdd, 0x50, + 0xc8, 0x30, 0xa7, 0x10, 0x27, 0xa0, 0xd1, 0x36, 0x2c, 0xea, 0xce, 0x98, 0x7a, 0x2c, 0x54, 0x97, + 0x1c, 0x59, 0x5d, 0x36, 0x16, 0x0e, 0x38, 0x32, 0x77, 0x42, 0xdc, 0x6d, 0xff, 0xef, 0xc2, 0x74, + 0x15, 0x16, 0xb9, 0xc0, 0xbe, 0xb0, 0x8f, 0x07, 0x6b, 0x41, 0x0d, 0x54, 0xbe, 0x2e, 0x11, 0x7b, + 0x04, 0x0b, 0x03, 0xd7, 0x13, 0xb4, 0x0d, 0xc9, 0x86, 0xe7, 0x84, 0x71, 0x1a, 0xb9, 0xcb, 0x1b, + 0x50, 0x53, 0xf4, 0x9c, 0x23, 0x4b, 0x29, 0x92, 0x57, 0x9d, 0x8e, 0xbc, 0xf3, 0xe8, 0x2d, 0x1d, + 0x10, 0xe6, 0x9f, 0x12, 0x70, 0x6a, 0x88, 0xcc, 0x57, 0x63, 0xd1, 0xaa, 0x30, 0xd3, 0x21, 0x0c, + 0xb7, 0xc5, 0x91, 0x5e, 0xac, 0xb5, 0x51, 0xc3, 0x50, 0x0b, 0xc4, 0xac, 0x50, 0x1e, 0x7d, 0x20, + 0x5b, 0xa5, 0xb6, 0xba, 0x5c, 0x34, 0x3d, 0xd7, 0xa5, 0xc2, 0x25, 0xd1, 0x9a, 0x0d, 0x6a, 0x0d, + 0xae, 0x8e, 0x71, 0x05, 0x0f, 0xe4, 0x4a, 0x91, 0x98, 0xb5, 0xd8, 0x18, 0x64, 0x99, 0xbf, 0x9d, + 0x3c, 0x16, 0xc7, 0x5a, 0x1b, 0xb3, 0xaf, 0x5c, 0x1c, 0x93, 0xcf, 0x19, 0xc7, 0x4d, 0xc8, 0xc6, + 0x9d, 0x8a, 0xde, 0xf9, 0x53, 0x23, 0xef, 0xfc, 0xb8, 0xcb, 0xd1, 0x27, 0xe9, 0x35, 0xd9, 0xeb, + 0x06, 0xcb, 0xd2, 0x68, 0x53, 0x35, 0x92, 0x9b, 0x56, 0xfb, 0x73, 0x41, 0xf3, 0x8b, 0x9a, 0x2d, + 0xdb, 0x62, 0xb5, 0x65, 0x23, 0xa0, 0x1d, 0xdc, 0x25, 0xd3, 0xd6, 0xbc, 0xe2, 0x87, 0x40, 0x6b, + 0x08, 0x92, 0xab, 0x7b, 0xef, 0x20, 0xb2, 0x6e, 0xfe, 0xc1, 0x80, 0xc5, 0x72, 0x74, 0x18, 0x4b, + 0xaa, 0x57, 0xe6, 0xc8, 0x92, 0x17, 0xea, 0x90, 0x19, 0x5e, 0x12, 0x47, 0xae, 0x5c, 0x61, 0x79, + 0xb0, 0x7a, 0x95, 0xa0, 0xef, 0x43, 0xa6, 0xcb, 0x7a, 0xb5, 0x26, 0x94, 0xd6, 0xc2, 0xc9, 0xcf, + 0xb5, 0xd5, 0xaf, 0xc8, 0x6c, 0xc3, 0xf4, 0xdd, 0x8e, 0xa0, 0x2e, 0x41, 0xdf, 0x00, 0x84, 0xb9, + 0xad, 0xfc, 0xf6, 0x9a, 0x0f, 0xed, 0x16, 0xa1, 0xfb, 0x2d, 0xa1, 0x2f, 0x18, 0x0b, 0x98, 0x6f, + 0xef, 0x15, 0x25, 0xff, 0xa6, 0x62, 0xa3, 0x8b, 0x00, 0x87, 0x94, 0x39, 0xde, 0xa1, 0xdd, 0x26, + 0x4c, 0x5f, 0xd4, 0xe6, 0x02, 0xce, 0x6d, 0xc2, 0xd0, 0x59, 0x98, 0x6e, 0x50, 0x71, 0x40, 0x9a, + 0xea, 0xe4, 0xa5, 0x2d, 0x4d, 0x99, 0x2d, 0x38, 0x5d, 0xea, 0xfa, 0x3e, 0x61, 0xa2, 0xd4, 0xf3, + 0x62, 0xc1, 0x51, 0x0d, 0xe6, 0xfb, 0xde, 0x35, 0xc2, 0xb0, 0xbd, 0xf6, 0xcc, 0x3d, 0xde, 0xab, + 0xc3, 0xca, 0xf4, 0xbe, 0x81, 0x70, 0xf3, 0x12, 0xcc, 0xe8, 0xdd, 0xd7, 0xff, 0x4a, 0x93, 0x0c, + 0x5f, 0x69, 0xee, 0xc1, 0xe9, 0xbe, 0x8e, 0xc8, 0x22, 0x1f, 0x76, 0x09, 0x17, 0xb2, 0x7c, 0x37, + 0x5b, 0x98, 0x32, 0x9b, 0x3a, 0xe1, 0xfd, 0x55, 0xd1, 0x55, 0x07, 0x5d, 0x86, 0x0c, 0x6f, 0x79, + 0x87, 0x36, 0x65, 0xb8, 0x29, 0xe8, 0x41, 0x70, 0x53, 0x99, 0xb5, 0xd2, 0x92, 0x59, 0xd5, 0x3c, + 0xb3, 0x0b, 0x67, 0x06, 0xf4, 0xf2, 0x8e, 0xb4, 0x0c, 0xed, 0xf6, 0xbe, 0x1f, 0x50, 0xb6, 0xe7, + 0xe9, 0x73, 0xfc, 0xe6, 0x89, 0xbb, 0x0d, 0xa5, 0x36, 0x7e, 0x4c, 0x90, 0xa4, 0xf9, 0x91, 0x01, + 0x67, 0x07, 0x3b, 0xa9, 0x2f, 0xf6, 0x68, 0xf0, 0x02, 0x97, 0x78, 0x8e, 0x0b, 0x9c, 0xf9, 0x23, + 0x38, 0x77, 0xcc, 0x02, 0xed, 0x7b, 0xdc, 0x1c, 0x1a, 0x2f, 0xa4, 0x39, 0x34, 0xff, 0x6a, 0xf4, + 0x4c, 0x16, 0xa6, 0x99, 0x2f, 0xd7, 0xdf, 0xe1, 0x39, 0x74, 0x72, 0x78, 0x0e, 0xbd, 0x02, 0x0b, + 0x84, 0x39, 0x7d, 0xc8, 0xe0, 0xb5, 0x20, 0x43, 0x98, 0x13, 0xe3, 0x4c, 0x02, 0xb9, 0xe3, 0x6e, + 0xe9, 0x20, 0xf6, 0xe4, 0x61, 0xe3, 0xf9, 0xf2, 0xb0, 0xf9, 0x53, 0x03, 0x5e, 0xd2, 0x07, 0x31, + 0xee, 0x61, 0x65, 0x76, 0xf8, 0x92, 0xb7, 0x8c, 0x03, 0x17, 0x86, 0x9b, 0xa1, 0x5d, 0x2e, 0x43, + 0x52, 0xb5, 0xff, 0xc6, 0x98, 0xed, 0xbf, 0x92, 0x36, 0x7f, 0x62, 0x40, 0x6e, 0x8b, 0x3c, 0xfa, + 0xff, 0xba, 0x8a, 0xe1, 0xfc, 0x10, 0x1b, 0x5e, 0xa8, 0x9f, 0x1f, 0x4f, 0xc2, 0x42, 0x5d, 0x22, + 0x6a, 0xd8, 0xc7, 0x2e, 0x11, 0xc4, 0xe7, 0xb2, 0x44, 0x0e, 0xbc, 0x0d, 0xf0, 0x30, 0xa7, 0xf7, + 0x3f, 0x0e, 0x70, 0xf4, 0x06, 0x9c, 0x0d, 0x72, 0x98, 0x1d, 0xe7, 0xa9, 0x36, 0x75, 0xa9, 0xd0, + 0x8d, 0xc1, 0xe9, 0x60, 0xb4, 0xe7, 0x55, 0xd4, 0xa5, 0x62, 0xe8, 0x7b, 0xd3, 0xe4, 0xd0, 0xf7, + 0xa6, 0xeb, 0x70, 0x81, 0xb7, 0x31, 0x6f, 0xa9, 0x47, 0x99, 0x60, 0x23, 0xda, 0x2e, 0xe5, 0x0d, + 0xd2, 0xc2, 0x07, 0xd4, 0xf3, 0xf5, 0x81, 0x58, 0x0a, 0x31, 0x7a, 0xd3, 0x6e, 0xc6, 0x08, 0xb4, + 0x0e, 0xe7, 0x8f, 0x69, 0x70, 0xbc, 0x43, 0x26, 0xeb, 0x97, 0x7e, 0x47, 0x3b, 0x37, 0x20, 0x5e, + 0xd6, 0xc3, 0xe8, 0x6d, 0xc8, 0x71, 0xba, 0xcf, 0x88, 0x13, 0xd4, 0x37, 0x6e, 0xf7, 0xd4, 0xaf, + 0xe9, 0xe0, 0x09, 0x2e, 0x18, 0x57, 0x65, 0x8e, 0xbf, 0x1f, 0xd5, 0xb2, 0x02, 0x9c, 0x71, 0x29, + 0xe7, 0xb1, 0xa0, 0x8b, 0x1f, 0x51, 0xb7, 0xeb, 0xaa, 0xf6, 0x21, 0x69, 0x9d, 0x0a, 0x06, 0x03, + 0xa9, 0xcd, 0x60, 0xc8, 0xfc, 0xbd, 0x01, 0xf3, 0x37, 0x08, 0x23, 0x9c, 0xf2, 0x92, 0xc7, 0x04, + 0x61, 0x02, 0xdd, 0x87, 0xb4, 0x5a, 0x3d, 0xbb, 0x23, 0x17, 0xe7, 0xc4, 0x89, 0x70, 0x60, 0x5d, + 0xad, 0x14, 0x8f, 0x18, 0x1c, 0xdd, 0x01, 0x88, 0x96, 0x2c, 0xec, 0x0d, 0xc6, 0xb8, 0xc4, 0xf6, + 0x28, 0x29, 0xfc, 0x6c, 0x1a, 0xd2, 0x77, 0xba, 0xc4, 0x3f, 0xaa, 0x13, 0xff, 0x80, 0x36, 0x09, + 0xfa, 0xb9, 0x31, 0xf8, 0x84, 0xf0, 0xed, 0xf1, 0x0a, 0x57, 0x70, 0xee, 0x96, 0xbe, 0x33, 0xa6, + 0x74, 0x70, 0x62, 0x5e, 0x37, 0xd0, 0x2f, 0x8d, 0xe3, 0x0f, 0x92, 0xdf, 0x1d, 0xb7, 0xae, 0x68, + 0xa3, 0xde, 0x1d, 0x5b, 0x5e, 0x1f, 0xe4, 0x5f, 0x19, 0x90, 0x1d, 0x4c, 0xe0, 0xe8, 0xe4, 0x5a, + 0xfb, 0x2b, 0xda, 0xd2, 0xf5, 0xf1, 0x15, 0x68, 0xbb, 0x7e, 0x6d, 0x44, 0x9d, 0x57, 0x5f, 0x06, + 0x42, 0xa5, 0x51, 0x55, 0x3f, 0xa3, 0x5c, 0x2c, 0x95, 0x9f, 0x4f, 0x89, 0xb6, 0xf1, 0x13, 0x03, + 0x16, 0x8f, 0xa5, 0x48, 0x34, 0xb2, 0xef, 0x4f, 0xcb, 0xf0, 0x4b, 0x1b, 0xcf, 0xa1, 0x21, 0x30, + 0xad, 0xf8, 0x9f, 0xc4, 0x9f, 0x1f, 0x2f, 0x1b, 0x9f, 0x3f, 0x5e, 0x36, 0xfe, 0xf1, 0x78, 0xd9, + 0xf8, 0xc5, 0x93, 0xe5, 0x89, 0xcf, 0x9f, 0x2c, 0x4f, 0xfc, 0xed, 0xc9, 0xf2, 0x04, 0x5c, 0x6d, + 0x7a, 0xee, 0x88, 0x13, 0x14, 0x21, 0x38, 0xc5, 0xbe, 0x27, 0xbc, 0x9a, 0x71, 0xff, 0xc1, 0x3e, + 0x15, 0xad, 0x6e, 0x43, 0xc2, 0xd7, 0x9a, 0x1e, 0x77, 0x3d, 0xbe, 0xe6, 0x93, 0x36, 0x3e, 0x22, + 0xfe, 0xda, 0x41, 0x21, 0xfa, 0x54, 0xc5, 0x88, 0xaf, 0x8d, 0xf6, 0xbf, 0xea, 0x3b, 0x8a, 0x0c, + 0xa9, 0x4f, 0x13, 0xc9, 0x5a, 0xa9, 0x54, 0xff, 0x2c, 0x71, 0xa5, 0x16, 0xda, 0x57, 0x92, 0xf6, + 0x95, 0x22, 0xfb, 0x94, 0x3d, 0xf9, 0x7b, 0x1a, 0xff, 0x97, 0x18, 0xb8, 0x2b, 0x81, 0xbb, 0x11, + 0x70, 0x57, 0x01, 0x77, 0x43, 0xe0, 0xe3, 0x44, 0x61, 0x34, 0xe0, 0xee, 0x8d, 0x5a, 0x71, 0x93, + 0x08, 0x2c, 0xcb, 0xd3, 0xbf, 0x13, 0x57, 0x43, 0xa1, 0xf5, 0x75, 0x29, 0x25, 0x7f, 0xb5, 0xd8, + 0xfa, 0xba, 0x92, 0x5b, 0x5f, 0x0f, 0x05, 0x1b, 0xd3, 0xea, 0xbf, 0xd7, 0x6f, 0xfd, 0x37, 0x00, + 0x00, 0xff, 0xff, 0x38, 0x58, 0x1d, 0xfa, 0x51, 0x1e, 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 { + // Queries the current validator set, with filtering. + ValidatorInfo(ctx context.Context, in *ValidatorInfoRequest, opts ...grpc.CallOption) (QueryService_ValidatorInfoClient, error) + ValidatorStatus(ctx context.Context, in *ValidatorStatusRequest, opts ...grpc.CallOption) (*ValidatorStatusResponse, error) + ValidatorPenalty(ctx context.Context, in *ValidatorPenaltyRequest, opts ...grpc.CallOption) (*ValidatorPenaltyResponse, error) + CurrentValidatorRate(ctx context.Context, in *CurrentValidatorRateRequest, opts ...grpc.CallOption) (*CurrentValidatorRateResponse, error) + NextValidatorRate(ctx context.Context, in *NextValidatorRateRequest, opts ...grpc.CallOption) (*NextValidatorRateResponse, error) +} + +type queryServiceClient struct { + cc grpc1.ClientConn +} + +func NewQueryServiceClient(cc grpc1.ClientConn) QueryServiceClient { + return &queryServiceClient{cc} +} + +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...) + if err != nil { + return nil, err + } + x := &queryServiceValidatorInfoClient{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_ValidatorInfoClient interface { + Recv() (*ValidatorInfoResponse, error) + grpc.ClientStream +} + +type queryServiceValidatorInfoClient struct { + grpc.ClientStream +} + +func (x *queryServiceValidatorInfoClient) Recv() (*ValidatorInfoResponse, error) { + m := new(ValidatorInfoResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +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...) + if err != nil { + return nil, err + } + return out, nil +} + +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...) + if err != nil { + return nil, err + } + return out, nil +} + +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...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryServiceClient) NextValidatorRate(ctx context.Context, in *NextValidatorRateRequest, opts ...grpc.CallOption) (*NextValidatorRateResponse, error) { + out := new(NextValidatorRateResponse) + err := c.cc.Invoke(ctx, "/penumbra.core.component.stake.v1alpha1.QueryService/NextValidatorRate", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// QueryServiceServer is the server API for QueryService service. +type QueryServiceServer interface { + // Queries the current validator set, with filtering. + ValidatorInfo(*ValidatorInfoRequest, QueryService_ValidatorInfoServer) error + ValidatorStatus(context.Context, *ValidatorStatusRequest) (*ValidatorStatusResponse, error) + ValidatorPenalty(context.Context, *ValidatorPenaltyRequest) (*ValidatorPenaltyResponse, error) + CurrentValidatorRate(context.Context, *CurrentValidatorRateRequest) (*CurrentValidatorRateResponse, error) + NextValidatorRate(context.Context, *NextValidatorRateRequest) (*NextValidatorRateResponse, error) +} + +// UnimplementedQueryServiceServer can be embedded to have forward compatible implementations. +type UnimplementedQueryServiceServer struct { +} + +func (*UnimplementedQueryServiceServer) ValidatorInfo(req *ValidatorInfoRequest, srv QueryService_ValidatorInfoServer) error { + return status.Errorf(codes.Unimplemented, "method ValidatorInfo not implemented") +} +func (*UnimplementedQueryServiceServer) ValidatorStatus(ctx context.Context, req *ValidatorStatusRequest) (*ValidatorStatusResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ValidatorStatus not implemented") +} +func (*UnimplementedQueryServiceServer) ValidatorPenalty(ctx context.Context, req *ValidatorPenaltyRequest) (*ValidatorPenaltyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ValidatorPenalty not implemented") +} +func (*UnimplementedQueryServiceServer) CurrentValidatorRate(ctx context.Context, req *CurrentValidatorRateRequest) (*CurrentValidatorRateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CurrentValidatorRate not implemented") +} +func (*UnimplementedQueryServiceServer) NextValidatorRate(ctx context.Context, req *NextValidatorRateRequest) (*NextValidatorRateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method NextValidatorRate not implemented") +} + +func RegisterQueryServiceServer(s grpc1.Server, srv QueryServiceServer) { + s.RegisterService(&_QueryService_serviceDesc, srv) +} + +func _QueryService_ValidatorInfo_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(ValidatorInfoRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(QueryServiceServer).ValidatorInfo(m, &queryServiceValidatorInfoServer{stream}) +} + +type QueryService_ValidatorInfoServer interface { + Send(*ValidatorInfoResponse) error + grpc.ServerStream +} + +type queryServiceValidatorInfoServer struct { + grpc.ServerStream +} + +func (x *queryServiceValidatorInfoServer) Send(m *ValidatorInfoResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _QueryService_ValidatorStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ValidatorStatusRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServiceServer).ValidatorStatus(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/penumbra.core.component.stake.v1alpha1.QueryService/ValidatorStatus", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServiceServer).ValidatorStatus(ctx, req.(*ValidatorStatusRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _QueryService_ValidatorPenalty_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ValidatorPenaltyRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServiceServer).ValidatorPenalty(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/penumbra.core.component.stake.v1alpha1.QueryService/ValidatorPenalty", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServiceServer).ValidatorPenalty(ctx, req.(*ValidatorPenaltyRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _QueryService_CurrentValidatorRate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CurrentValidatorRateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServiceServer).CurrentValidatorRate(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/penumbra.core.component.stake.v1alpha1.QueryService/CurrentValidatorRate", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServiceServer).CurrentValidatorRate(ctx, req.(*CurrentValidatorRateRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _QueryService_NextValidatorRate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(NextValidatorRateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServiceServer).NextValidatorRate(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/penumbra.core.component.stake.v1alpha1.QueryService/NextValidatorRate", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServiceServer).NextValidatorRate(ctx, req.(*NextValidatorRateRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _QueryService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "penumbra.core.component.stake.v1alpha1.QueryService", + HandlerType: (*QueryServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "ValidatorStatus", + Handler: _QueryService_ValidatorStatus_Handler, + }, + { + MethodName: "ValidatorPenalty", + Handler: _QueryService_ValidatorPenalty_Handler, + }, + { + MethodName: "CurrentValidatorRate", + Handler: _QueryService_CurrentValidatorRate_Handler, + }, + { + MethodName: "NextValidatorRate", + Handler: _QueryService_NextValidatorRate_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "ValidatorInfo", + Handler: _QueryService_ValidatorInfo_Handler, + ServerStreams: true, + }, + }, + Metadata: "penumbra/core/component/stake/v1alpha1/stake.proto", +} + +func (m *ZKUndelegateClaimProof) 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 *ZKUndelegateClaimProof) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ZKUndelegateClaimProof) 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 = encodeVarintStake(dAtA, i, uint64(len(m.Inner))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Validator) 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 *Validator) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Validator) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.GovernanceKey != nil { + { + size, err := m.GovernanceKey.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintStake(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x4a + } + if m.Enabled { + i-- + if m.Enabled { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x40 + } + if m.SequenceNumber != 0 { + i = encodeVarintStake(dAtA, i, uint64(m.SequenceNumber)) + i-- + dAtA[i] = 0x38 + } + if len(m.FundingStreams) > 0 { + for iNdEx := len(m.FundingStreams) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.FundingStreams[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintStake(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + } + if len(m.Description) > 0 { + i -= len(m.Description) + copy(dAtA[i:], m.Description) + i = encodeVarintStake(dAtA, i, uint64(len(m.Description))) + i-- + dAtA[i] = 0x2a + } + if len(m.Website) > 0 { + i -= len(m.Website) + copy(dAtA[i:], m.Website) + i = encodeVarintStake(dAtA, i, uint64(len(m.Website))) + i-- + dAtA[i] = 0x22 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintStake(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x1a + } + if len(m.ConsensusKey) > 0 { + i -= len(m.ConsensusKey) + copy(dAtA[i:], m.ConsensusKey) + i = encodeVarintStake(dAtA, i, uint64(len(m.ConsensusKey))) + i-- + dAtA[i] = 0x12 + } + if m.IdentityKey != nil { + { + size, err := m.IdentityKey.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintStake(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ValidatorList) 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 *ValidatorList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ValidatorList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ValidatorKeys) > 0 { + for iNdEx := len(m.ValidatorKeys) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.ValidatorKeys[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintStake(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *FundingStream) 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 *FundingStream) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FundingStream) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Recipient != nil { + { + size := m.Recipient.Size() + i -= size + if _, err := m.Recipient.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } + } + return len(dAtA) - i, nil +} + +func (m *FundingStream_ToAddress_) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FundingStream_ToAddress_) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.ToAddress != nil { + { + size, err := m.ToAddress.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintStake(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} +func (m *FundingStream_ToDao_) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FundingStream_ToDao_) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.ToDao != nil { + { + size, err := m.ToDao.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintStake(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + return len(dAtA) - i, nil +} +func (m *FundingStream_ToAddress) 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 *FundingStream_ToAddress) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FundingStream_ToAddress) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.RateBps != 0 { + i = encodeVarintStake(dAtA, i, uint64(m.RateBps)) + i-- + dAtA[i] = 0x10 + } + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintStake(dAtA, i, uint64(len(m.Address))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *FundingStream_ToDao) 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 *FundingStream_ToDao) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FundingStream_ToDao) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.RateBps != 0 { + i = encodeVarintStake(dAtA, i, uint64(m.RateBps)) + i-- + dAtA[i] = 0x10 + } + return len(dAtA) - i, nil +} + +func (m *RateData) 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 *RateData) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RateData) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.ValidatorExchangeRate != 0 { + i = encodeVarintStake(dAtA, i, uint64(m.ValidatorExchangeRate)) + i-- + dAtA[i] = 0x28 + } + if m.ValidatorRewardRate != 0 { + i = encodeVarintStake(dAtA, i, uint64(m.ValidatorRewardRate)) + i-- + dAtA[i] = 0x20 + } + if m.EpochIndex != 0 { + i = encodeVarintStake(dAtA, i, uint64(m.EpochIndex)) + i-- + dAtA[i] = 0x10 + } + if m.IdentityKey != nil { + { + size, err := m.IdentityKey.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintStake(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *BaseRateData) 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 *BaseRateData) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BaseRateData) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.BaseExchangeRate != 0 { + i = encodeVarintStake(dAtA, i, uint64(m.BaseExchangeRate)) + i-- + dAtA[i] = 0x18 + } + if m.BaseRewardRate != 0 { + i = encodeVarintStake(dAtA, i, uint64(m.BaseRewardRate)) + i-- + dAtA[i] = 0x10 + } + if m.EpochIndex != 0 { + i = encodeVarintStake(dAtA, i, uint64(m.EpochIndex)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *ValidatorStatus) 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 *ValidatorStatus) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ValidatorStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.BondingState != nil { + { + size, err := m.BondingState.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintStake(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + if m.VotingPower != 0 { + i = encodeVarintStake(dAtA, i, uint64(m.VotingPower)) + i-- + dAtA[i] = 0x18 + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintStake(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.IdentityKey != nil { + { + size, err := m.IdentityKey.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintStake(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *BondingState) 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 *BondingState) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BondingState) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.UnbondingEpoch != 0 { + i = encodeVarintStake(dAtA, i, uint64(m.UnbondingEpoch)) + i-- + dAtA[i] = 0x10 + } + if m.State != 0 { + i = encodeVarintStake(dAtA, i, uint64(m.State)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *ValidatorState) 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 *ValidatorState) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ValidatorState) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.State != 0 { + i = encodeVarintStake(dAtA, i, uint64(m.State)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *ValidatorInfo) 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 *ValidatorInfo) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ValidatorInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.RateData != nil { + { + size, err := m.RateData.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintStake(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if m.Status != nil { + { + size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintStake(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.Validator != nil { + { + size, err := m.Validator.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintStake(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ValidatorDefinition) 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 *ValidatorDefinition) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ValidatorDefinition) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.AuthSig) > 0 { + i -= len(m.AuthSig) + copy(dAtA[i:], m.AuthSig) + i = encodeVarintStake(dAtA, i, uint64(len(m.AuthSig))) + i-- + dAtA[i] = 0x12 + } + if m.Validator != nil { + { + size, err := m.Validator.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintStake(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Delegate) 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 *Delegate) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Delegate) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.DelegationAmount != nil { + { + size, err := m.DelegationAmount.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintStake(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + if m.UnbondedAmount != nil { + { + size, err := m.UnbondedAmount.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintStake(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if m.EpochIndex != 0 { + i = encodeVarintStake(dAtA, i, uint64(m.EpochIndex)) + i-- + dAtA[i] = 0x10 + } + if m.ValidatorIdentity != nil { + { + size, err := m.ValidatorIdentity.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintStake(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Undelegate) 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 *Undelegate) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Undelegate) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.DelegationAmount != nil { + { + size, err := m.DelegationAmount.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintStake(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + if m.UnbondedAmount != nil { + { + size, err := m.UnbondedAmount.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintStake(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if m.StartEpochIndex != 0 { + i = encodeVarintStake(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 = encodeVarintStake(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *UndelegateClaim) 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 *UndelegateClaim) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UndelegateClaim) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Proof) > 0 { + i -= len(m.Proof) + copy(dAtA[i:], m.Proof) + i = encodeVarintStake(dAtA, i, uint64(len(m.Proof))) + i-- + dAtA[i] = 0x12 + } + if m.Body != nil { + { + size, err := m.Body.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintStake(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *UndelegateClaimBody) 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 *UndelegateClaimBody) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UndelegateClaimBody) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.BalanceCommitment != nil { + { + size, err := m.BalanceCommitment.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintStake(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 = encodeVarintStake(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if m.StartEpochIndex != 0 { + i = encodeVarintStake(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 = encodeVarintStake(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *UndelegateClaimPlan) 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 *UndelegateClaimPlan) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UndelegateClaimPlan) 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 = encodeVarintStake(dAtA, i, uint64(len(m.ProofBlindingS))) + i-- + dAtA[i] = 0x42 + } + if len(m.ProofBlindingR) > 0 { + i -= len(m.ProofBlindingR) + copy(dAtA[i:], m.ProofBlindingR) + i = encodeVarintStake(dAtA, i, uint64(len(m.ProofBlindingR))) + i-- + dAtA[i] = 0x3a + } + if len(m.BalanceBlinding) > 0 { + i -= len(m.BalanceBlinding) + copy(dAtA[i:], m.BalanceBlinding) + i = encodeVarintStake(dAtA, i, uint64(len(m.BalanceBlinding))) + i-- + dAtA[i] = 0x32 + } + if m.UnbondingAmount != nil { + { + size, err := m.UnbondingAmount.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintStake(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + if m.Penalty != nil { + { + size, err := m.Penalty.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintStake(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + if m.StartEpochIndex != 0 { + i = encodeVarintStake(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 = encodeVarintStake(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *DelegationChanges) 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 *DelegationChanges) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DelegationChanges) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Undelegations) > 0 { + for iNdEx := len(m.Undelegations) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Undelegations[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintStake(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.Delegations) > 0 { + for iNdEx := len(m.Delegations) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Delegations[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintStake(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *Uptime) 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 *Uptime) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Uptime) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Bitvec) > 0 { + i -= len(m.Bitvec) + copy(dAtA[i:], m.Bitvec) + i = encodeVarintStake(dAtA, i, uint64(len(m.Bitvec))) + i-- + dAtA[i] = 0x1a + } + if m.WindowLen != 0 { + i = encodeVarintStake(dAtA, i, uint64(m.WindowLen)) + i-- + dAtA[i] = 0x10 + } + if m.AsOfBlockHeight != 0 { + i = encodeVarintStake(dAtA, i, uint64(m.AsOfBlockHeight)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *CurrentConsensusKeys) 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 *CurrentConsensusKeys) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CurrentConsensusKeys) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ConsensusKeys) > 0 { + for iNdEx := len(m.ConsensusKeys) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.ConsensusKeys[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintStake(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *Penalty) 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 *Penalty) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Penalty) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Inner != 0 { + i = encodeVarintStake(dAtA, i, uint64(m.Inner)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *ValidatorInfoRequest) 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 *ValidatorInfoRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ValidatorInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.ShowInactive { + i-- + if m.ShowInactive { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + 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 +} + +func (m *ValidatorInfoResponse) 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 *ValidatorInfoResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ValidatorInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.ValidatorInfo != nil { + { + size, err := m.ValidatorInfo.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintStake(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ValidatorStatusRequest) 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 *ValidatorStatusRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ValidatorStatusRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.IdentityKey != nil { + { + size, err := m.IdentityKey.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintStake(dAtA, i, uint64(size)) + } + 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 +} + +func (m *ValidatorStatusResponse) 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 *ValidatorStatusResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ValidatorStatusResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Status != nil { + { + size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintStake(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ValidatorPenaltyRequest) 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 *ValidatorPenaltyRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ValidatorPenaltyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.EndEpochIndex != 0 { + i = encodeVarintStake(dAtA, i, uint64(m.EndEpochIndex)) + i-- + dAtA[i] = 0x20 + } + if m.StartEpochIndex != 0 { + i = encodeVarintStake(dAtA, i, uint64(m.StartEpochIndex)) + i-- + dAtA[i] = 0x18 + } + if m.IdentityKey != nil { + { + size, err := m.IdentityKey.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintStake(dAtA, i, uint64(size)) + } + 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 +} + +func (m *ValidatorPenaltyResponse) 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 *ValidatorPenaltyResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ValidatorPenaltyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Penalty != nil { + { + size, err := m.Penalty.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintStake(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *CurrentValidatorRateRequest) 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 *CurrentValidatorRateRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CurrentValidatorRateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.IdentityKey != nil { + { + size, err := m.IdentityKey.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintStake(dAtA, i, uint64(size)) + } + 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 +} + +func (m *CurrentValidatorRateResponse) 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 *CurrentValidatorRateResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CurrentValidatorRateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Data != nil { + { + size, err := m.Data.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintStake(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *NextValidatorRateRequest) 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 *NextValidatorRateRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NextValidatorRateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.IdentityKey != nil { + { + size, err := m.IdentityKey.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintStake(dAtA, i, uint64(size)) + } + 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 +} + +func (m *NextValidatorRateResponse) 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 *NextValidatorRateResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NextValidatorRateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Data != nil { + { + size, err := m.Data.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintStake(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *StakeParameters) 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 *StakeParameters) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StakeParameters) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.MissedBlocksMaximum != 0 { + i = encodeVarintStake(dAtA, i, uint64(m.MissedBlocksMaximum)) + i-- + dAtA[i] = 0x38 + } + if m.SignedBlocksWindowLen != 0 { + i = encodeVarintStake(dAtA, i, uint64(m.SignedBlocksWindowLen)) + i-- + dAtA[i] = 0x30 + } + if m.SlashingPenaltyDowntime != 0 { + i = encodeVarintStake(dAtA, i, uint64(m.SlashingPenaltyDowntime)) + i-- + dAtA[i] = 0x28 + } + if m.SlashingPenaltyMisbehavior != 0 { + i = encodeVarintStake(dAtA, i, uint64(m.SlashingPenaltyMisbehavior)) + i-- + dAtA[i] = 0x20 + } + if m.BaseRewardRate != 0 { + i = encodeVarintStake(dAtA, i, uint64(m.BaseRewardRate)) + i-- + dAtA[i] = 0x18 + } + if m.ActiveValidatorLimit != 0 { + i = encodeVarintStake(dAtA, i, uint64(m.ActiveValidatorLimit)) + i-- + dAtA[i] = 0x10 + } + if m.UnbondingEpochs != 0 { + i = encodeVarintStake(dAtA, i, uint64(m.UnbondingEpochs)) + 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 len(m.Validators) > 0 { + for iNdEx := len(m.Validators) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Validators[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintStake(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if m.StakeParams != nil { + { + size, err := m.StakeParams.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintStake(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintStake(dAtA []byte, offset int, v uint64) int { + offset -= sovStake(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *ZKUndelegateClaimProof) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Inner) + if l > 0 { + n += 1 + l + sovStake(uint64(l)) + } + return n +} + +func (m *Validator) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.IdentityKey != nil { + l = m.IdentityKey.Size() + n += 1 + l + sovStake(uint64(l)) + } + l = len(m.ConsensusKey) + if l > 0 { + n += 1 + l + sovStake(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sovStake(uint64(l)) + } + l = len(m.Website) + if l > 0 { + n += 1 + l + sovStake(uint64(l)) + } + l = len(m.Description) + if l > 0 { + n += 1 + l + sovStake(uint64(l)) + } + if len(m.FundingStreams) > 0 { + for _, e := range m.FundingStreams { + l = e.Size() + n += 1 + l + sovStake(uint64(l)) + } + } + if m.SequenceNumber != 0 { + n += 1 + sovStake(uint64(m.SequenceNumber)) + } + if m.Enabled { + n += 2 + } + if m.GovernanceKey != nil { + l = m.GovernanceKey.Size() + n += 1 + l + sovStake(uint64(l)) + } + return n +} + +func (m *ValidatorList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.ValidatorKeys) > 0 { + for _, e := range m.ValidatorKeys { + l = e.Size() + n += 1 + l + sovStake(uint64(l)) + } + } + return n +} + +func (m *FundingStream) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Recipient != nil { + n += m.Recipient.Size() + } + return n +} + +func (m *FundingStream_ToAddress_) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ToAddress != nil { + l = m.ToAddress.Size() + n += 1 + l + sovStake(uint64(l)) + } + return n +} +func (m *FundingStream_ToDao_) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ToDao != nil { + l = m.ToDao.Size() + n += 1 + l + sovStake(uint64(l)) + } + return n +} +func (m *FundingStream_ToAddress) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Address) + if l > 0 { + n += 1 + l + sovStake(uint64(l)) + } + if m.RateBps != 0 { + n += 1 + sovStake(uint64(m.RateBps)) + } + return n +} + +func (m *FundingStream_ToDao) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.RateBps != 0 { + n += 1 + sovStake(uint64(m.RateBps)) + } + return n +} + +func (m *RateData) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.IdentityKey != nil { + l = m.IdentityKey.Size() + n += 1 + l + sovStake(uint64(l)) + } + if m.EpochIndex != 0 { + n += 1 + sovStake(uint64(m.EpochIndex)) + } + if m.ValidatorRewardRate != 0 { + n += 1 + sovStake(uint64(m.ValidatorRewardRate)) + } + if m.ValidatorExchangeRate != 0 { + n += 1 + sovStake(uint64(m.ValidatorExchangeRate)) + } + return n +} + +func (m *BaseRateData) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.EpochIndex != 0 { + n += 1 + sovStake(uint64(m.EpochIndex)) + } + if m.BaseRewardRate != 0 { + n += 1 + sovStake(uint64(m.BaseRewardRate)) + } + if m.BaseExchangeRate != 0 { + n += 1 + sovStake(uint64(m.BaseExchangeRate)) + } + return n +} + +func (m *ValidatorStatus) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.IdentityKey != nil { + l = m.IdentityKey.Size() + n += 1 + l + sovStake(uint64(l)) + } + if m.State != nil { + l = m.State.Size() + n += 1 + l + sovStake(uint64(l)) + } + if m.VotingPower != 0 { + n += 1 + sovStake(uint64(m.VotingPower)) + } + if m.BondingState != nil { + l = m.BondingState.Size() + n += 1 + l + sovStake(uint64(l)) + } + return n +} + +func (m *BondingState) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != 0 { + n += 1 + sovStake(uint64(m.State)) + } + if m.UnbondingEpoch != 0 { + n += 1 + sovStake(uint64(m.UnbondingEpoch)) + } + return n +} + +func (m *ValidatorState) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != 0 { + n += 1 + sovStake(uint64(m.State)) + } + return n +} + +func (m *ValidatorInfo) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Validator != nil { + l = m.Validator.Size() + n += 1 + l + sovStake(uint64(l)) + } + if m.Status != nil { + l = m.Status.Size() + n += 1 + l + sovStake(uint64(l)) + } + if m.RateData != nil { + l = m.RateData.Size() + n += 1 + l + sovStake(uint64(l)) + } + return n +} + +func (m *ValidatorDefinition) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Validator != nil { + l = m.Validator.Size() + n += 1 + l + sovStake(uint64(l)) + } + l = len(m.AuthSig) + if l > 0 { + n += 1 + l + sovStake(uint64(l)) + } + return n +} + +func (m *Delegate) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ValidatorIdentity != nil { + l = m.ValidatorIdentity.Size() + n += 1 + l + sovStake(uint64(l)) + } + if m.EpochIndex != 0 { + n += 1 + sovStake(uint64(m.EpochIndex)) + } + if m.UnbondedAmount != nil { + l = m.UnbondedAmount.Size() + n += 1 + l + sovStake(uint64(l)) + } + if m.DelegationAmount != nil { + l = m.DelegationAmount.Size() + n += 1 + l + sovStake(uint64(l)) + } + return n +} + +func (m *Undelegate) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ValidatorIdentity != nil { + l = m.ValidatorIdentity.Size() + n += 1 + l + sovStake(uint64(l)) + } + if m.StartEpochIndex != 0 { + n += 1 + sovStake(uint64(m.StartEpochIndex)) + } + if m.UnbondedAmount != nil { + l = m.UnbondedAmount.Size() + n += 1 + l + sovStake(uint64(l)) + } + if m.DelegationAmount != nil { + l = m.DelegationAmount.Size() + n += 1 + l + sovStake(uint64(l)) + } + return n +} + +func (m *UndelegateClaim) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Body != nil { + l = m.Body.Size() + n += 1 + l + sovStake(uint64(l)) + } + l = len(m.Proof) + if l > 0 { + n += 1 + l + sovStake(uint64(l)) + } + return n +} + +func (m *UndelegateClaimBody) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ValidatorIdentity != nil { + l = m.ValidatorIdentity.Size() + n += 1 + l + sovStake(uint64(l)) + } + if m.StartEpochIndex != 0 { + n += 1 + sovStake(uint64(m.StartEpochIndex)) + } + if m.Penalty != nil { + l = m.Penalty.Size() + n += 1 + l + sovStake(uint64(l)) + } + if m.BalanceCommitment != nil { + l = m.BalanceCommitment.Size() + n += 1 + l + sovStake(uint64(l)) + } + return n +} + +func (m *UndelegateClaimPlan) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ValidatorIdentity != nil { + l = m.ValidatorIdentity.Size() + n += 1 + l + sovStake(uint64(l)) + } + if m.StartEpochIndex != 0 { + n += 1 + sovStake(uint64(m.StartEpochIndex)) + } + if m.Penalty != nil { + l = m.Penalty.Size() + n += 1 + l + sovStake(uint64(l)) + } + if m.UnbondingAmount != nil { + l = m.UnbondingAmount.Size() + n += 1 + l + sovStake(uint64(l)) + } + l = len(m.BalanceBlinding) + if l > 0 { + n += 1 + l + sovStake(uint64(l)) + } + l = len(m.ProofBlindingR) + if l > 0 { + n += 1 + l + sovStake(uint64(l)) + } + l = len(m.ProofBlindingS) + if l > 0 { + n += 1 + l + sovStake(uint64(l)) + } + return n +} + +func (m *DelegationChanges) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Delegations) > 0 { + for _, e := range m.Delegations { + l = e.Size() + n += 1 + l + sovStake(uint64(l)) + } + } + if len(m.Undelegations) > 0 { + for _, e := range m.Undelegations { + l = e.Size() + n += 1 + l + sovStake(uint64(l)) + } + } + return n +} + +func (m *Uptime) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.AsOfBlockHeight != 0 { + n += 1 + sovStake(uint64(m.AsOfBlockHeight)) + } + if m.WindowLen != 0 { + n += 1 + sovStake(uint64(m.WindowLen)) + } + l = len(m.Bitvec) + if l > 0 { + n += 1 + l + sovStake(uint64(l)) + } + return n +} + +func (m *CurrentConsensusKeys) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.ConsensusKeys) > 0 { + for _, e := range m.ConsensusKeys { + l = e.Size() + n += 1 + l + sovStake(uint64(l)) + } + } + return n +} + +func (m *Penalty) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Inner != 0 { + n += 1 + sovStake(uint64(m.Inner)) + } + return n +} + +func (m *ValidatorInfoRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ChainId) + if l > 0 { + n += 1 + l + sovStake(uint64(l)) + } + if m.ShowInactive { + n += 2 + } + return n +} + +func (m *ValidatorInfoResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ValidatorInfo != nil { + l = m.ValidatorInfo.Size() + n += 1 + l + sovStake(uint64(l)) + } + return n +} + +func (m *ValidatorStatusRequest) Size() (n int) { + if m == nil { + return 0 + } + 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)) + } + return n +} + +func (m *ValidatorStatusResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Status != nil { + l = m.Status.Size() + n += 1 + l + sovStake(uint64(l)) + } + return n +} + +func (m *ValidatorPenaltyRequest) Size() (n int) { + if m == nil { + return 0 + } + 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)) + } + if m.StartEpochIndex != 0 { + n += 1 + sovStake(uint64(m.StartEpochIndex)) + } + if m.EndEpochIndex != 0 { + n += 1 + sovStake(uint64(m.EndEpochIndex)) + } + return n +} + +func (m *ValidatorPenaltyResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Penalty != nil { + l = m.Penalty.Size() + n += 1 + l + sovStake(uint64(l)) + } + return n +} + +func (m *CurrentValidatorRateRequest) Size() (n int) { + if m == nil { + return 0 + } + 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)) + } + return n +} + +func (m *CurrentValidatorRateResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Data != nil { + l = m.Data.Size() + n += 1 + l + sovStake(uint64(l)) + } + return n +} + +func (m *NextValidatorRateRequest) Size() (n int) { + if m == nil { + return 0 + } + 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)) + } + return n +} + +func (m *NextValidatorRateResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Data != nil { + l = m.Data.Size() + n += 1 + l + sovStake(uint64(l)) + } + return n +} + +func (m *StakeParameters) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.UnbondingEpochs != 0 { + n += 1 + sovStake(uint64(m.UnbondingEpochs)) + } + if m.ActiveValidatorLimit != 0 { + n += 1 + sovStake(uint64(m.ActiveValidatorLimit)) + } + if m.BaseRewardRate != 0 { + n += 1 + sovStake(uint64(m.BaseRewardRate)) + } + if m.SlashingPenaltyMisbehavior != 0 { + n += 1 + sovStake(uint64(m.SlashingPenaltyMisbehavior)) + } + if m.SlashingPenaltyDowntime != 0 { + n += 1 + sovStake(uint64(m.SlashingPenaltyDowntime)) + } + if m.SignedBlocksWindowLen != 0 { + n += 1 + sovStake(uint64(m.SignedBlocksWindowLen)) + } + if m.MissedBlocksMaximum != 0 { + n += 1 + sovStake(uint64(m.MissedBlocksMaximum)) + } + return n +} + +func (m *GenesisContent) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.StakeParams != nil { + l = m.StakeParams.Size() + n += 1 + l + sovStake(uint64(l)) + } + if len(m.Validators) > 0 { + for _, e := range m.Validators { + l = e.Size() + n += 1 + l + sovStake(uint64(l)) + } + } + return n +} + +func sovStake(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozStake(x uint64) (n int) { + return sovStake(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *ZKUndelegateClaimProof) 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 ErrIntOverflowStake + } + 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: ZKUndelegateClaimProof: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ZKUndelegateClaimProof: 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 ErrIntOverflowStake + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthStake + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthStake + } + 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 := skipStake(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthStake + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Validator) 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 ErrIntOverflowStake + } + 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: Validator: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Validator: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + 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 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.IdentityKey == nil { + m.IdentityKey = &v1alpha1.IdentityKey{} + } + if err := m.IdentityKey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ConsensusKey", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowStake + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthStake + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthStake + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ConsensusKey = append(m.ConsensusKey[:0], dAtA[iNdEx:postIndex]...) + if m.ConsensusKey == nil { + m.ConsensusKey = []byte{} + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", 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.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Website", 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.Website = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + 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 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.Description = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FundingStreams", 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 + } + m.FundingStreams = append(m.FundingStreams, &FundingStream{}) + if err := m.FundingStreams[len(m.FundingStreams)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SequenceNumber", wireType) + } + m.SequenceNumber = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowStake + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.SequenceNumber |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Enabled", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowStake + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Enabled = bool(v != 0) + case 9: + 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 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.GovernanceKey == nil { + m.GovernanceKey = &v1alpha1.GovernanceKey{} + } + if err := m.GovernanceKey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipStake(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthStake + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ValidatorList) 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 ErrIntOverflowStake + } + 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: ValidatorList: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ValidatorList: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ValidatorKeys", 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 + } + m.ValidatorKeys = append(m.ValidatorKeys, &v1alpha1.IdentityKey{}) + if err := m.ValidatorKeys[len(m.ValidatorKeys)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipStake(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthStake + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *FundingStream) 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 ErrIntOverflowStake + } + 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: FundingStream: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FundingStream: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ToAddress", 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 + } + v := &FundingStream_ToAddress{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Recipient = &FundingStream_ToAddress_{v} + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ToDao", 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 + } + v := &FundingStream_ToDao{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Recipient = &FundingStream_ToDao_{v} + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipStake(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthStake + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *FundingStream_ToAddress) 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 ErrIntOverflowStake + } + 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: ToAddress: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ToAddress: 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) + } + 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.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RateBps", wireType) + } + m.RateBps = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowStake + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.RateBps |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipStake(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthStake + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *FundingStream_ToDao) 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 ErrIntOverflowStake + } + 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: ToDao: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ToDao: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RateBps", wireType) + } + m.RateBps = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowStake + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.RateBps |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipStake(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthStake + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RateData) 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 ErrIntOverflowStake + } + 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: RateData: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RateData: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + 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 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.IdentityKey == nil { + m.IdentityKey = &v1alpha1.IdentityKey{} + } + if err := m.IdentityKey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + 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 ErrIntOverflowStake + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.EpochIndex |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ValidatorRewardRate", wireType) + } + m.ValidatorRewardRate = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowStake + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ValidatorRewardRate |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ValidatorExchangeRate", wireType) + } + m.ValidatorExchangeRate = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowStake + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ValidatorExchangeRate |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipStake(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthStake + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BaseRateData) 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 ErrIntOverflowStake + } + 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: BaseRateData: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BaseRateData: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + 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 ErrIntOverflowStake + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.EpochIndex |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BaseRewardRate", wireType) + } + m.BaseRewardRate = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowStake + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.BaseRewardRate |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BaseExchangeRate", wireType) + } + m.BaseExchangeRate = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowStake + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.BaseExchangeRate |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipStake(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthStake + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ValidatorStatus) 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 ErrIntOverflowStake + } + 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: ValidatorStatus: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ValidatorStatus: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + 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 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.IdentityKey == nil { + m.IdentityKey = &v1alpha1.IdentityKey{} + } + if err := m.IdentityKey.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) + } + 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.State == nil { + m.State = &ValidatorState{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field VotingPower", wireType) + } + m.VotingPower = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowStake + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.VotingPower |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BondingState", 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.BondingState == nil { + m.BondingState = &BondingState{} + } + if err := m.BondingState.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipStake(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthStake + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BondingState) 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 ErrIntOverflowStake + } + 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: BondingState: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BondingState: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + m.State = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowStake + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.State |= BondingState_BondingStateEnum(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UnbondingEpoch", wireType) + } + m.UnbondingEpoch = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowStake + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.UnbondingEpoch |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipStake(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthStake + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ValidatorState) 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 ErrIntOverflowStake + } + 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: ValidatorState: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ValidatorState: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + m.State = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowStake + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.State |= ValidatorState_ValidatorStateEnum(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipStake(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthStake + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ValidatorInfo) 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 ErrIntOverflowStake + } + 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: ValidatorInfo: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ValidatorInfo: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Validator", 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.Validator == nil { + m.Validator = &Validator{} + } + if err := m.Validator.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", 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.Status == nil { + m.Status = &ValidatorStatus{} + } + if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RateData", 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.RateData == nil { + m.RateData = &RateData{} + } + if err := m.RateData.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipStake(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthStake + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ValidatorDefinition) 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 ErrIntOverflowStake + } + 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: ValidatorDefinition: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ValidatorDefinition: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Validator", 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.Validator == nil { + m.Validator = &Validator{} + } + if err := m.Validator.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 byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowStake + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthStake + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthStake + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AuthSig = append(m.AuthSig[:0], dAtA[iNdEx:postIndex]...) + if m.AuthSig == nil { + m.AuthSig = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipStake(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthStake + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Delegate) 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 ErrIntOverflowStake + } + 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: Delegate: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Delegate: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ValidatorIdentity", 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.ValidatorIdentity == nil { + m.ValidatorIdentity = &v1alpha1.IdentityKey{} + } + if err := m.ValidatorIdentity.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + 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 ErrIntOverflowStake + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.EpochIndex |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + 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 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.UnbondedAmount == nil { + m.UnbondedAmount = &v1alpha11.Amount{} + } + if err := m.UnbondedAmount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DelegationAmount", 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.DelegationAmount == nil { + m.DelegationAmount = &v1alpha11.Amount{} + } + if err := m.DelegationAmount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipStake(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthStake + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *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 ErrIntOverflowStake + } + 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: 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 ValidatorIdentity", 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.ValidatorIdentity == nil { + m.ValidatorIdentity = &v1alpha1.IdentityKey{} + } + if err := m.ValidatorIdentity.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field StartEpochIndex", wireType) + } + m.StartEpochIndex = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowStake + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.StartEpochIndex |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + 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 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.UnbondedAmount == nil { + m.UnbondedAmount = &v1alpha11.Amount{} + } + if err := m.UnbondedAmount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DelegationAmount", 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.DelegationAmount == nil { + m.DelegationAmount = &v1alpha11.Amount{} + } + if err := m.DelegationAmount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipStake(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthStake + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *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 ErrIntOverflowStake + } + 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: 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 Body", 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.Body == nil { + m.Body = &UndelegateClaimBody{} + } + 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 byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowStake + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthStake + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthStake + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Proof = append(m.Proof[:0], dAtA[iNdEx:postIndex]...) + if m.Proof == nil { + m.Proof = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipStake(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthStake + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UndelegateClaimBody) 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 ErrIntOverflowStake + } + 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: UndelegateClaimBody: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UndelegateClaimBody: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ValidatorIdentity", 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.ValidatorIdentity == nil { + m.ValidatorIdentity = &v1alpha1.IdentityKey{} + } + if err := m.ValidatorIdentity.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field StartEpochIndex", wireType) + } + m.StartEpochIndex = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowStake + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.StartEpochIndex |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Penalty", 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.Penalty == nil { + m.Penalty = &Penalty{} + } + if err := m.Penalty.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BalanceCommitment", 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.BalanceCommitment == nil { + m.BalanceCommitment = &v1alpha12.BalanceCommitment{} + } + if err := m.BalanceCommitment.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipStake(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthStake + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UndelegateClaimPlan) 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 ErrIntOverflowStake + } + 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: UndelegateClaimPlan: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UndelegateClaimPlan: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ValidatorIdentity", 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.ValidatorIdentity == nil { + m.ValidatorIdentity = &v1alpha1.IdentityKey{} + } + if err := m.ValidatorIdentity.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field StartEpochIndex", wireType) + } + m.StartEpochIndex = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowStake + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.StartEpochIndex |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Penalty", 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.Penalty == nil { + m.Penalty = &Penalty{} + } + if err := m.Penalty.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UnbondingAmount", 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.UnbondingAmount == nil { + m.UnbondingAmount = &v1alpha11.Amount{} + } + if err := m.UnbondingAmount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BalanceBlinding", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowStake + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthStake + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthStake + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.BalanceBlinding = append(m.BalanceBlinding[:0], dAtA[iNdEx:postIndex]...) + if m.BalanceBlinding == nil { + m.BalanceBlinding = []byte{} + } + iNdEx = postIndex + case 7: + 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 ErrIntOverflowStake + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthStake + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthStake + } + 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 8: + 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 ErrIntOverflowStake + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthStake + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthStake + } + 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 := skipStake(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthStake + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DelegationChanges) 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 ErrIntOverflowStake + } + 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: DelegationChanges: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DelegationChanges: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + 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 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 + } + m.Delegations = append(m.Delegations, &Delegate{}) + if err := m.Delegations[len(m.Delegations)-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 Undelegations", 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 + } + m.Undelegations = append(m.Undelegations, &Undelegate{}) + if err := m.Undelegations[len(m.Undelegations)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipStake(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthStake + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Uptime) 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 ErrIntOverflowStake + } + 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: Uptime: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Uptime: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + 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 ErrIntOverflowStake + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.AsOfBlockHeight |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field WindowLen", wireType) + } + m.WindowLen = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowStake + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.WindowLen |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Bitvec", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowStake + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthStake + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthStake + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Bitvec = append(m.Bitvec[:0], dAtA[iNdEx:postIndex]...) + if m.Bitvec == nil { + m.Bitvec = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipStake(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthStake + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CurrentConsensusKeys) 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 ErrIntOverflowStake + } + 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: CurrentConsensusKeys: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CurrentConsensusKeys: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ConsensusKeys", 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 + } + m.ConsensusKeys = append(m.ConsensusKeys, &v1alpha1.ConsensusKey{}) + if err := m.ConsensusKeys[len(m.ConsensusKeys)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipStake(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthStake + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Penalty) 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 ErrIntOverflowStake + } + 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: Penalty: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Penalty: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Inner", wireType) + } + m.Inner = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowStake + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Inner |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipStake(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthStake + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ValidatorInfoRequest) 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 ErrIntOverflowStake + } + 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: ValidatorInfoRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + 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) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowStake + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ShowInactive = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipStake(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthStake + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ValidatorInfoResponse) 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 ErrIntOverflowStake + } + 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: ValidatorInfoResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ValidatorInfoResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ValidatorInfo", 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.ValidatorInfo == nil { + m.ValidatorInfo = &ValidatorInfo{} + } + if err := m.ValidatorInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipStake(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthStake + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ValidatorStatusRequest) 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 ErrIntOverflowStake + } + 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: ValidatorStatusRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + 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) + } + 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.IdentityKey == nil { + m.IdentityKey = &v1alpha1.IdentityKey{} + } + if err := m.IdentityKey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipStake(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthStake + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ValidatorStatusResponse) 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 ErrIntOverflowStake + } + 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: ValidatorStatusResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ValidatorStatusResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", 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.Status == nil { + m.Status = &ValidatorStatus{} + } + if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipStake(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthStake + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ValidatorPenaltyRequest) 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 ErrIntOverflowStake + } + 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: ValidatorPenaltyRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + 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) + } + 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.IdentityKey == nil { + m.IdentityKey = &v1alpha1.IdentityKey{} + } + if err := m.IdentityKey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field StartEpochIndex", wireType) + } + m.StartEpochIndex = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowStake + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.StartEpochIndex |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EndEpochIndex", wireType) + } + m.EndEpochIndex = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowStake + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.EndEpochIndex |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipStake(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthStake + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ValidatorPenaltyResponse) 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 ErrIntOverflowStake + } + 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: ValidatorPenaltyResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ValidatorPenaltyResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Penalty", 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.Penalty == nil { + m.Penalty = &Penalty{} + } + if err := m.Penalty.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipStake(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthStake + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CurrentValidatorRateRequest) 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 ErrIntOverflowStake + } + 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: CurrentValidatorRateRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + 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) + } + 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.IdentityKey == nil { + m.IdentityKey = &v1alpha1.IdentityKey{} + } + if err := m.IdentityKey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipStake(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthStake + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CurrentValidatorRateResponse) 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 ErrIntOverflowStake + } + 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: CurrentValidatorRateResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CurrentValidatorRateResponse: 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 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.Data == nil { + m.Data = &RateData{} + } + if err := m.Data.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipStake(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthStake + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NextValidatorRateRequest) 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 ErrIntOverflowStake + } + 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: NextValidatorRateRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NextValidatorRateRequest: 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) + } + 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.IdentityKey == nil { + m.IdentityKey = &v1alpha1.IdentityKey{} + } + if err := m.IdentityKey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipStake(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthStake + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NextValidatorRateResponse) 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 ErrIntOverflowStake + } + 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: NextValidatorRateResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NextValidatorRateResponse: 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 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.Data == nil { + m.Data = &RateData{} + } + if err := m.Data.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipStake(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthStake + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *StakeParameters) 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 ErrIntOverflowStake + } + 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: StakeParameters: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: StakeParameters: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UnbondingEpochs", wireType) + } + m.UnbondingEpochs = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowStake + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.UnbondingEpochs |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ActiveValidatorLimit", wireType) + } + m.ActiveValidatorLimit = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowStake + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ActiveValidatorLimit |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BaseRewardRate", wireType) + } + m.BaseRewardRate = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowStake + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.BaseRewardRate |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SlashingPenaltyMisbehavior", wireType) + } + m.SlashingPenaltyMisbehavior = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowStake + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.SlashingPenaltyMisbehavior |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SlashingPenaltyDowntime", wireType) + } + m.SlashingPenaltyDowntime = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowStake + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.SlashingPenaltyDowntime |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SignedBlocksWindowLen", wireType) + } + m.SignedBlocksWindowLen = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowStake + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.SignedBlocksWindowLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MissedBlocksMaximum", wireType) + } + m.MissedBlocksMaximum = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowStake + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MissedBlocksMaximum |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipStake(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthStake + } + 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 ErrIntOverflowStake + } + 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 StakeParams", 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.StakeParams == nil { + m.StakeParams = &StakeParameters{} + } + if err := m.StakeParams.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Validators", 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 + } + m.Validators = append(m.Validators, &Validator{}) + if err := m.Validators[len(m.Validators)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipStake(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthStake + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipStake(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, ErrIntOverflowStake + } + 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, ErrIntOverflowStake + } + 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, ErrIntOverflowStake + } + 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, ErrInvalidLengthStake + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupStake + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthStake + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthStake = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowStake = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupStake = fmt.Errorf("proto: unexpected end of group") +) diff --git a/relayer/chains/penumbra/core/keys/v1alpha1/keys.pb.go b/relayer/chains/penumbra/core/keys/v1alpha1/keys.pb.go new file mode 100644 index 000000000..c50d641ad --- /dev/null +++ b/relayer/chains/penumbra/core/keys/v1alpha1/keys.pb.go @@ -0,0 +1,2960 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: penumbra/core/keys/v1alpha1/keys.proto + +package keysv1alpha1 + +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 + +// A Penumbra address. An address in Penumbra is a Bech32m-encoded +// string, with the human-readable prefix (HRP) `penumbrav2t`. +type Address struct { + // The bytes of the address. Must be represented as a series of + // `uint8` (i.e. values 0 through 255), with a length of 80 elements. + Inner []byte `protobuf:"bytes,1,opt,name=inner,proto3" json:"inner,omitempty"` + // Alternatively, a Bech32m-encoded string representation of the `inner` + // bytes. + // + // NOTE: implementations are not required to support parsing this field. + // Implementations should prefer to encode the bytes in all messages they + // produce. Implementations must not accept messages with both `inner` and + // `alt_bech32m` set. + AltBech32M string `protobuf:"bytes,2,opt,name=alt_bech32m,json=altBech32m,proto3" json:"alt_bech32m,omitempty"` +} + +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} +} +func (m *Address) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Address) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Address.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 *Address) XXX_Merge(src proto.Message) { + xxx_messageInfo_Address.Merge(m, src) +} +func (m *Address) XXX_Size() int { + return m.Size() +} +func (m *Address) XXX_DiscardUnknown() { + xxx_messageInfo_Address.DiscardUnknown(m) +} + +var xxx_messageInfo_Address proto.InternalMessageInfo + +func (m *Address) GetInner() []byte { + if m != nil { + return m.Inner + } + return nil +} + +func (m *Address) GetAltBech32M() string { + if m != nil { + return m.AltBech32M + } + return "" +} + +type AddressView struct { + // Types that are valid to be assigned to AddressView: + // + // *AddressView_Visible_ + // *AddressView_Opaque_ + AddressView isAddressView_AddressView `protobuf_oneof:"address_view"` +} + +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} +} +func (m *AddressView) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AddressView) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AddressView.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 *AddressView) XXX_Merge(src proto.Message) { + xxx_messageInfo_AddressView.Merge(m, src) +} +func (m *AddressView) XXX_Size() int { + return m.Size() +} +func (m *AddressView) XXX_DiscardUnknown() { + xxx_messageInfo_AddressView.DiscardUnknown(m) +} + +var xxx_messageInfo_AddressView proto.InternalMessageInfo + +type isAddressView_AddressView interface { + isAddressView_AddressView() + MarshalTo([]byte) (int, error) + Size() int +} + +type AddressView_Visible_ struct { + Visible *AddressView_Visible `protobuf:"bytes,1,opt,name=visible,proto3,oneof" json:"visible,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_Opaque_) isAddressView_AddressView() {} + +func (m *AddressView) GetAddressView() isAddressView_AddressView { + if m != nil { + return m.AddressView + } + return nil +} + +func (m *AddressView) GetVisible() *AddressView_Visible { + if x, ok := m.GetAddressView().(*AddressView_Visible_); ok { + return x.Visible + } + return nil +} + +func (m *AddressView) GetOpaque() *AddressView_Opaque { + if x, ok := m.GetAddressView().(*AddressView_Opaque_); ok { + return x.Opaque + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*AddressView) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*AddressView_Visible_)(nil), + (*AddressView_Opaque_)(nil), + } +} + +type AddressView_Visible 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"` + AccountGroupId *AccountGroupId `protobuf:"bytes,3,opt,name=account_group_id,json=accountGroupId,proto3" json:"account_group_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_Visible) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AddressView_Visible) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AddressView_Visible.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 *AddressView_Visible) XXX_Merge(src proto.Message) { + xxx_messageInfo_AddressView_Visible.Merge(m, src) +} +func (m *AddressView_Visible) XXX_Size() int { + return m.Size() +} +func (m *AddressView_Visible) XXX_DiscardUnknown() { + xxx_messageInfo_AddressView_Visible.DiscardUnknown(m) +} + +var xxx_messageInfo_AddressView_Visible proto.InternalMessageInfo + +func (m *AddressView_Visible) GetAddress() *Address { + if m != nil { + return m.Address + } + return nil +} + +func (m *AddressView_Visible) GetIndex() *AddressIndex { + if m != nil { + return m.Index + } + return nil +} + +func (m *AddressView_Visible) GetAccountGroupId() *AccountGroupId { + if m != nil { + return m.AccountGroupId + } + return nil +} + +type AddressView_Opaque struct { + Address *Address `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` +} + +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} +} +func (m *AddressView_Opaque) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AddressView_Opaque) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AddressView_Opaque.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 *AddressView_Opaque) XXX_Merge(src proto.Message) { + xxx_messageInfo_AddressView_Opaque.Merge(m, src) +} +func (m *AddressView_Opaque) XXX_Size() int { + return m.Size() +} +func (m *AddressView_Opaque) XXX_DiscardUnknown() { + xxx_messageInfo_AddressView_Opaque.DiscardUnknown(m) +} + +var xxx_messageInfo_AddressView_Opaque proto.InternalMessageInfo + +func (m *AddressView_Opaque) GetAddress() *Address { + if m != nil { + return m.Address + } + return nil +} + +type PayloadKey struct { + Inner []byte `protobuf:"bytes,1,opt,name=inner,proto3" json:"inner,omitempty"` +} + +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} +} +func (m *PayloadKey) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PayloadKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PayloadKey.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 *PayloadKey) XXX_Merge(src proto.Message) { + xxx_messageInfo_PayloadKey.Merge(m, src) +} +func (m *PayloadKey) XXX_Size() int { + return m.Size() +} +func (m *PayloadKey) XXX_DiscardUnknown() { + xxx_messageInfo_PayloadKey.DiscardUnknown(m) +} + +var xxx_messageInfo_PayloadKey proto.InternalMessageInfo + +func (m *PayloadKey) GetInner() []byte { + if m != nil { + return m.Inner + } + return nil +} + +type SpendKey struct { + Inner []byte `protobuf:"bytes,1,opt,name=inner,proto3" json:"inner,omitempty"` +} + +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} +} +func (m *SpendKey) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SpendKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SpendKey.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 *SpendKey) XXX_Merge(src proto.Message) { + xxx_messageInfo_SpendKey.Merge(m, src) +} +func (m *SpendKey) XXX_Size() int { + return m.Size() +} +func (m *SpendKey) XXX_DiscardUnknown() { + xxx_messageInfo_SpendKey.DiscardUnknown(m) +} + +var xxx_messageInfo_SpendKey proto.InternalMessageInfo + +func (m *SpendKey) GetInner() []byte { + if m != nil { + return m.Inner + } + return nil +} + +type SpendVerificationKey struct { + Inner []byte `protobuf:"bytes,1,opt,name=inner,proto3" json:"inner,omitempty"` +} + +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_1a822d221e23f7f7, []int{4} +} +func (m *SpendVerificationKey) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SpendVerificationKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SpendVerificationKey.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 *SpendVerificationKey) XXX_Merge(src proto.Message) { + xxx_messageInfo_SpendVerificationKey.Merge(m, src) +} +func (m *SpendVerificationKey) XXX_Size() int { + return m.Size() +} +func (m *SpendVerificationKey) XXX_DiscardUnknown() { + xxx_messageInfo_SpendVerificationKey.DiscardUnknown(m) +} + +var xxx_messageInfo_SpendVerificationKey proto.InternalMessageInfo + +func (m *SpendVerificationKey) GetInner() []byte { + if m != nil { + return m.Inner + } + return nil +} + +type FullViewingKey struct { + Inner []byte `protobuf:"bytes,1,opt,name=inner,proto3" json:"inner,omitempty"` +} + +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{5} +} +func (m *FullViewingKey) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FullViewingKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_FullViewingKey.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 *FullViewingKey) XXX_Merge(src proto.Message) { + xxx_messageInfo_FullViewingKey.Merge(m, src) +} +func (m *FullViewingKey) XXX_Size() int { + return m.Size() +} +func (m *FullViewingKey) XXX_DiscardUnknown() { + xxx_messageInfo_FullViewingKey.DiscardUnknown(m) +} + +var xxx_messageInfo_FullViewingKey proto.InternalMessageInfo + +func (m *FullViewingKey) GetInner() []byte { + if m != nil { + return m.Inner + } + return nil +} + +type AccountGroupId struct { + Inner []byte `protobuf:"bytes,1,opt,name=inner,proto3" json:"inner,omitempty"` +} + +func (m *AccountGroupId) Reset() { *m = AccountGroupId{} } +func (m *AccountGroupId) String() string { return proto.CompactTextString(m) } +func (*AccountGroupId) ProtoMessage() {} +func (*AccountGroupId) Descriptor() ([]byte, []int) { + return fileDescriptor_1a822d221e23f7f7, []int{6} +} +func (m *AccountGroupId) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AccountGroupId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AccountGroupId.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 *AccountGroupId) XXX_Merge(src proto.Message) { + xxx_messageInfo_AccountGroupId.Merge(m, src) +} +func (m *AccountGroupId) XXX_Size() int { + return m.Size() +} +func (m *AccountGroupId) XXX_DiscardUnknown() { + xxx_messageInfo_AccountGroupId.DiscardUnknown(m) +} + +var xxx_messageInfo_AccountGroupId proto.InternalMessageInfo + +func (m *AccountGroupId) GetInner() []byte { + if m != nil { + return m.Inner + } + return nil +} + +type Diversifier struct { + Inner []byte `protobuf:"bytes,1,opt,name=inner,proto3" json:"inner,omitempty"` +} + +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{7} +} +func (m *Diversifier) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Diversifier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Diversifier.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 *Diversifier) XXX_Merge(src proto.Message) { + xxx_messageInfo_Diversifier.Merge(m, src) +} +func (m *Diversifier) XXX_Size() int { + return m.Size() +} +func (m *Diversifier) XXX_DiscardUnknown() { + xxx_messageInfo_Diversifier.DiscardUnknown(m) +} + +var xxx_messageInfo_Diversifier proto.InternalMessageInfo + +func (m *Diversifier) GetInner() []byte { + if m != nil { + return m.Inner + } + return nil +} + +type AddressIndex struct { + Account uint32 `protobuf:"varint,2,opt,name=account,proto3" json:"account,omitempty"` + Randomizer []byte `protobuf:"bytes,3,opt,name=randomizer,proto3" json:"randomizer,omitempty"` +} + +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{8} +} +func (m *AddressIndex) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AddressIndex) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AddressIndex.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 *AddressIndex) XXX_Merge(src proto.Message) { + xxx_messageInfo_AddressIndex.Merge(m, src) +} +func (m *AddressIndex) XXX_Size() int { + return m.Size() +} +func (m *AddressIndex) XXX_DiscardUnknown() { + xxx_messageInfo_AddressIndex.DiscardUnknown(m) +} + +var xxx_messageInfo_AddressIndex proto.InternalMessageInfo + +func (m *AddressIndex) GetAccount() uint32 { + if m != nil { + return m.Account + } + return 0 +} + +func (m *AddressIndex) GetRandomizer() []byte { + if m != nil { + return m.Randomizer + } + return nil +} + +// A validator's identity key (decaf377-rdsa spendauth verification key). +type IdentityKey struct { + Ik []byte `protobuf:"bytes,1,opt,name=ik,proto3" json:"ik,omitempty"` +} + +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{9} +} +func (m *IdentityKey) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *IdentityKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_IdentityKey.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 *IdentityKey) XXX_Merge(src proto.Message) { + xxx_messageInfo_IdentityKey.Merge(m, src) +} +func (m *IdentityKey) XXX_Size() int { + return m.Size() +} +func (m *IdentityKey) XXX_DiscardUnknown() { + xxx_messageInfo_IdentityKey.DiscardUnknown(m) +} + +var xxx_messageInfo_IdentityKey proto.InternalMessageInfo + +func (m *IdentityKey) GetIk() []byte { + if m != nil { + return m.Ik + } + return nil +} + +// A validator's governance key (decaf377-rdsa spendauth verification key). +type GovernanceKey struct { + Gk []byte `protobuf:"bytes,1,opt,name=gk,proto3" json:"gk,omitempty"` +} + +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{10} +} +func (m *GovernanceKey) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GovernanceKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GovernanceKey.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 *GovernanceKey) XXX_Merge(src proto.Message) { + xxx_messageInfo_GovernanceKey.Merge(m, src) +} +func (m *GovernanceKey) XXX_Size() int { + return m.Size() +} +func (m *GovernanceKey) XXX_DiscardUnknown() { + xxx_messageInfo_GovernanceKey.DiscardUnknown(m) +} + +var xxx_messageInfo_GovernanceKey proto.InternalMessageInfo + +func (m *GovernanceKey) GetGk() []byte { + if m != nil { + return m.Gk + } + return nil +} + +type ConsensusKey struct { + Inner []byte `protobuf:"bytes,1,opt,name=inner,proto3" json:"inner,omitempty"` +} + +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{11} +} +func (m *ConsensusKey) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ConsensusKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ConsensusKey.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 *ConsensusKey) XXX_Merge(src proto.Message) { + xxx_messageInfo_ConsensusKey.Merge(m, src) +} +func (m *ConsensusKey) XXX_Size() int { + return m.Size() +} +func (m *ConsensusKey) XXX_DiscardUnknown() { + xxx_messageInfo_ConsensusKey.DiscardUnknown(m) +} + +var xxx_messageInfo_ConsensusKey proto.InternalMessageInfo + +func (m *ConsensusKey) GetInner() []byte { + if m != nil { + return m.Inner + } + return nil +} + +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((*SpendVerificationKey)(nil), "penumbra.core.keys.v1alpha1.SpendVerificationKey") + proto.RegisterType((*FullViewingKey)(nil), "penumbra.core.keys.v1alpha1.FullViewingKey") + proto.RegisterType((*AccountGroupId)(nil), "penumbra.core.keys.v1alpha1.AccountGroupId") + 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{ + // 608 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x94, 0xcd, 0x6e, 0xd3, 0x40, + 0x10, 0xc7, 0x63, 0x57, 0x34, 0x74, 0x92, 0x46, 0xc8, 0xea, 0x21, 0x6a, 0x85, 0x5b, 0x99, 0xaa, + 0x14, 0x81, 0x6c, 0x9a, 0xde, 0x82, 0xc4, 0x47, 0x8a, 0x68, 0xa2, 0x82, 0x88, 0x0c, 0xe4, 0x80, + 0x22, 0x45, 0x1b, 0x7b, 0x9a, 0xac, 0xe2, 0xec, 0x86, 0x5d, 0x3b, 0x25, 0x3c, 0x05, 0xcf, 0xc0, + 0x0d, 0x9e, 0x04, 0x71, 0xea, 0x91, 0x23, 0xa4, 0x9c, 0x78, 0x0a, 0xb4, 0xfe, 0x28, 0xad, 0x44, + 0xac, 0x4a, 0xdc, 0x3c, 0x3b, 0xbf, 0xff, 0x7f, 0x66, 0x77, 0xac, 0x81, 0x9d, 0x09, 0xb2, 0x68, + 0xdc, 0x17, 0xc4, 0xf1, 0xb8, 0x40, 0x67, 0x84, 0x33, 0xe9, 0x4c, 0xf7, 0x48, 0x30, 0x19, 0x92, + 0xbd, 0x38, 0xb2, 0x27, 0x82, 0x87, 0xdc, 0xd8, 0xc8, 0x38, 0x5b, 0x71, 0x76, 0x9c, 0xc9, 0x38, + 0xeb, 0x31, 0x14, 0x9f, 0xf8, 0xbe, 0x40, 0x29, 0x8d, 0x35, 0xb8, 0x46, 0x19, 0x43, 0x51, 0xd5, + 0xb6, 0xb4, 0xdd, 0xb2, 0x9b, 0x04, 0xc6, 0x26, 0x94, 0x48, 0x10, 0xf6, 0xfa, 0xe8, 0x0d, 0xf7, + 0x6b, 0xe3, 0xaa, 0xbe, 0xa5, 0xed, 0xae, 0xb8, 0x40, 0x82, 0xb0, 0x91, 0x9c, 0x58, 0xbf, 0x96, + 0xa0, 0x94, 0x5a, 0x74, 0x28, 0x9e, 0x18, 0xcf, 0xa1, 0x38, 0xa5, 0x92, 0xf6, 0x03, 0x8c, 0x8d, + 0x4a, 0xb5, 0xfb, 0x76, 0x4e, 0x03, 0xf6, 0x05, 0xa9, 0xdd, 0x49, 0x74, 0xcd, 0x82, 0x9b, 0x59, + 0x18, 0x2d, 0x58, 0xe6, 0x13, 0xf2, 0x2e, 0xc2, 0xb8, 0x72, 0xa9, 0xe6, 0x5c, 0xd9, 0xec, 0x65, + 0x2c, 0x6b, 0x16, 0xdc, 0xd4, 0x60, 0xfd, 0xa7, 0x06, 0xc5, 0xb4, 0x82, 0xf1, 0x10, 0x8a, 0x24, + 0x61, 0xd3, 0x26, 0xb7, 0xaf, 0xe2, 0xeb, 0x66, 0x22, 0xe3, 0x91, 0x7a, 0x2b, 0x1f, 0xdf, 0xa7, + 0x5d, 0xdd, 0xb9, 0x8a, 0xba, 0xa5, 0x04, 0x6e, 0xa2, 0x33, 0xde, 0xc0, 0x0d, 0xe2, 0x79, 0x3c, + 0x62, 0x61, 0x6f, 0x20, 0x78, 0x34, 0xe9, 0x51, 0xbf, 0xba, 0x14, 0x7b, 0xdd, 0xcd, 0xf7, 0x4a, + 0x44, 0x87, 0x4a, 0xd3, 0xf2, 0xdd, 0x0a, 0xb9, 0x14, 0xaf, 0x37, 0x61, 0x39, 0xb9, 0xf7, 0xff, + 0xde, 0xb0, 0x51, 0x81, 0x72, 0xfa, 0xd9, 0x9b, 0x52, 0x3c, 0xb1, 0x2c, 0x80, 0x36, 0x99, 0x05, + 0x9c, 0xf8, 0x47, 0x38, 0xfb, 0xf7, 0xbf, 0x62, 0x6d, 0xc1, 0xf5, 0x57, 0x13, 0x64, 0x39, 0xc4, + 0x3d, 0x58, 0x8b, 0x89, 0x0e, 0x0a, 0x7a, 0x4c, 0x3d, 0x12, 0x52, 0xce, 0x16, 0xd3, 0x3b, 0x50, + 0x79, 0x16, 0x05, 0x81, 0x1a, 0x27, 0x65, 0x83, 0x5c, 0xee, 0xf2, 0xbb, 0x2c, 0xe0, 0x6e, 0x41, + 0xe9, 0x29, 0x9d, 0xa2, 0x90, 0xf4, 0x98, 0xa2, 0x58, 0x00, 0x35, 0xa1, 0x7c, 0x71, 0x60, 0x46, + 0x15, 0x8a, 0xe9, 0x23, 0xc7, 0xc3, 0x5e, 0x75, 0xb3, 0xd0, 0x30, 0x01, 0x04, 0x61, 0x3e, 0x1f, + 0xd3, 0x0f, 0x28, 0xe2, 0xe9, 0x95, 0xdd, 0x0b, 0x27, 0xd6, 0x4d, 0x28, 0xb5, 0x7c, 0x64, 0x21, + 0x0d, 0x67, 0xaa, 0xf7, 0x0a, 0xe8, 0x74, 0x94, 0xd6, 0xd2, 0xe9, 0xc8, 0xda, 0x84, 0xd5, 0x43, + 0x3e, 0x45, 0xc1, 0x08, 0xf3, 0x30, 0x05, 0x06, 0xe7, 0xc0, 0x60, 0x64, 0x6d, 0x43, 0xf9, 0x80, + 0x33, 0x89, 0x4c, 0x46, 0x72, 0xe1, 0xe5, 0x1b, 0x9f, 0xf5, 0xaf, 0x73, 0x53, 0x3b, 0x9d, 0x9b, + 0xda, 0x8f, 0xb9, 0xa9, 0x7d, 0x3c, 0x33, 0x0b, 0xa7, 0x67, 0x66, 0xe1, 0xfb, 0x99, 0x59, 0x80, + 0x4d, 0x8f, 0x8f, 0xf3, 0xa6, 0xde, 0x58, 0x39, 0xc2, 0x99, 0x6c, 0xab, 0x2d, 0xd1, 0xd6, 0xde, + 0xbe, 0x1e, 0xd0, 0x70, 0x18, 0xf5, 0x6d, 0x8f, 0x8f, 0x1d, 0x8f, 0xcb, 0x31, 0x97, 0x8e, 0xc0, + 0x80, 0xcc, 0x50, 0x38, 0xd3, 0xda, 0xf9, 0xa7, 0x37, 0x24, 0x94, 0x49, 0x27, 0x67, 0xf7, 0x3c, + 0x50, 0x51, 0x16, 0x7c, 0xd2, 0x97, 0xda, 0x07, 0x47, 0x5f, 0xf4, 0x8d, 0x76, 0xd6, 0xc6, 0x81, + 0x6a, 0x43, 0xd5, 0xb5, 0x3b, 0x29, 0xf3, 0xed, 0x6f, 0xb6, 0xab, 0xb2, 0x5d, 0x95, 0xed, 0x66, + 0xd9, 0xb9, 0x7e, 0x3b, 0x27, 0xdb, 0x3d, 0x6c, 0x37, 0x5e, 0x60, 0x48, 0x7c, 0x12, 0x92, 0xdf, + 0xba, 0x99, 0x91, 0xf5, 0xba, 0x42, 0xeb, 0x75, 0xc5, 0xd6, 0xeb, 0x19, 0xdc, 0x5f, 0x8e, 0x37, + 0xe2, 0xfe, 0x9f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xb4, 0x27, 0x51, 0x38, 0x3b, 0x05, 0x00, 0x00, +} + +func (m *Address) 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 *Address) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Address) 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 = encodeVarintKeys(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 = encodeVarintKeys(dAtA, i, uint64(len(m.Inner))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *AddressView) 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 *AddressView) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AddressView) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.AddressView != nil { + { + size := m.AddressView.Size() + i -= size + if _, err := m.AddressView.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } + } + return len(dAtA) - i, nil +} + +func (m *AddressView_Visible_) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AddressView_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 = encodeVarintKeys(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} +func (m *AddressView_Opaque_) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AddressView_Opaque_) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Opaque != nil { + { + size, err := m.Opaque.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKeys(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + return len(dAtA) - i, nil +} +func (m *AddressView_Visible) 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 *AddressView_Visible) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AddressView_Visible) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.AccountGroupId != nil { + { + size, err := m.AccountGroupId.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKeys(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if m.Index != nil { + { + size, err := m.Index.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKeys(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.Address != nil { + { + size, err := m.Address.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKeys(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *AddressView_Opaque) 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 *AddressView_Opaque) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AddressView_Opaque) 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 = encodeVarintKeys(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *PayloadKey) 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 *PayloadKey) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PayloadKey) 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 = encodeVarintKeys(dAtA, i, uint64(len(m.Inner))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *SpendKey) 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 *SpendKey) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SpendKey) 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 = encodeVarintKeys(dAtA, i, uint64(len(m.Inner))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *SpendVerificationKey) 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 *SpendVerificationKey) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SpendVerificationKey) 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 = encodeVarintKeys(dAtA, i, uint64(len(m.Inner))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *FullViewingKey) 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 *FullViewingKey) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FullViewingKey) 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 = encodeVarintKeys(dAtA, i, uint64(len(m.Inner))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *AccountGroupId) 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 *AccountGroupId) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AccountGroupId) 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 = encodeVarintKeys(dAtA, i, uint64(len(m.Inner))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Diversifier) 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 *Diversifier) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Diversifier) 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 = encodeVarintKeys(dAtA, i, uint64(len(m.Inner))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *AddressIndex) 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 *AddressIndex) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AddressIndex) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Randomizer) > 0 { + i -= len(m.Randomizer) + copy(dAtA[i:], m.Randomizer) + i = encodeVarintKeys(dAtA, i, uint64(len(m.Randomizer))) + i-- + dAtA[i] = 0x1a + } + if m.Account != 0 { + i = encodeVarintKeys(dAtA, i, uint64(m.Account)) + i-- + dAtA[i] = 0x10 + } + return len(dAtA) - i, nil +} + +func (m *IdentityKey) 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 *IdentityKey) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *IdentityKey) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Ik) > 0 { + i -= len(m.Ik) + copy(dAtA[i:], m.Ik) + i = encodeVarintKeys(dAtA, i, uint64(len(m.Ik))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *GovernanceKey) 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 *GovernanceKey) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GovernanceKey) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Gk) > 0 { + i -= len(m.Gk) + copy(dAtA[i:], m.Gk) + i = encodeVarintKeys(dAtA, i, uint64(len(m.Gk))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ConsensusKey) 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 *ConsensusKey) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ConsensusKey) 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 = encodeVarintKeys(dAtA, i, uint64(len(m.Inner))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintKeys(dAtA []byte, offset int, v uint64) int { + offset -= sovKeys(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *Address) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Inner) + if l > 0 { + n += 1 + l + sovKeys(uint64(l)) + } + l = len(m.AltBech32M) + if l > 0 { + n += 1 + l + sovKeys(uint64(l)) + } + return n +} + +func (m *AddressView) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.AddressView != nil { + n += m.AddressView.Size() + } + return n +} + +func (m *AddressView_Visible_) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Visible != nil { + l = m.Visible.Size() + n += 1 + l + sovKeys(uint64(l)) + } + return n +} +func (m *AddressView_Opaque_) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Opaque != nil { + l = m.Opaque.Size() + n += 1 + l + sovKeys(uint64(l)) + } + return n +} +func (m *AddressView_Visible) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Address != nil { + l = m.Address.Size() + n += 1 + l + sovKeys(uint64(l)) + } + if m.Index != nil { + l = m.Index.Size() + n += 1 + l + sovKeys(uint64(l)) + } + if m.AccountGroupId != nil { + l = m.AccountGroupId.Size() + n += 1 + l + sovKeys(uint64(l)) + } + return n +} + +func (m *AddressView_Opaque) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Address != nil { + l = m.Address.Size() + n += 1 + l + sovKeys(uint64(l)) + } + return n +} + +func (m *PayloadKey) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Inner) + if l > 0 { + n += 1 + l + sovKeys(uint64(l)) + } + return n +} + +func (m *SpendKey) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Inner) + if l > 0 { + n += 1 + l + sovKeys(uint64(l)) + } + return n +} + +func (m *SpendVerificationKey) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Inner) + if l > 0 { + n += 1 + l + sovKeys(uint64(l)) + } + return n +} + +func (m *FullViewingKey) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Inner) + if l > 0 { + n += 1 + l + sovKeys(uint64(l)) + } + return n +} + +func (m *AccountGroupId) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Inner) + if l > 0 { + n += 1 + l + sovKeys(uint64(l)) + } + return n +} + +func (m *Diversifier) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Inner) + if l > 0 { + n += 1 + l + sovKeys(uint64(l)) + } + return n +} + +func (m *AddressIndex) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Account != 0 { + n += 1 + sovKeys(uint64(m.Account)) + } + l = len(m.Randomizer) + if l > 0 { + n += 1 + l + sovKeys(uint64(l)) + } + return n +} + +func (m *IdentityKey) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Ik) + if l > 0 { + n += 1 + l + sovKeys(uint64(l)) + } + return n +} + +func (m *GovernanceKey) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Gk) + if l > 0 { + n += 1 + l + sovKeys(uint64(l)) + } + return n +} + +func (m *ConsensusKey) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Inner) + if l > 0 { + n += 1 + l + sovKeys(uint64(l)) + } + return n +} + +func sovKeys(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozKeys(x uint64) (n int) { + return sovKeys(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *Address) 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 ErrIntOverflowKeys + } + 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: Address: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Address: 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 ErrIntOverflowKeys + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthKeys + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKeys + } + 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 ErrIntOverflowKeys + } + 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 ErrInvalidLengthKeys + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthKeys + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AltBech32M = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipKeys(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthKeys + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AddressView) 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 ErrIntOverflowKeys + } + 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: AddressView: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AddressView: 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 ErrIntOverflowKeys + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthKeys + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKeys + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &AddressView_Visible{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.AddressView = &AddressView_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 ErrIntOverflowKeys + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthKeys + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKeys + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &AddressView_Opaque{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.AddressView = &AddressView_Opaque_{v} + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipKeys(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthKeys + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AddressView_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 ErrIntOverflowKeys + } + 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: 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: + 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 ErrIntOverflowKeys + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthKeys + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKeys + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Address == nil { + m.Address = &Address{} + } + if err := m.Address.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKeys + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthKeys + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKeys + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Index == nil { + m.Index = &AddressIndex{} + } + if err := m.Index.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AccountGroupId", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKeys + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthKeys + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKeys + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.AccountGroupId == nil { + m.AccountGroupId = &AccountGroupId{} + } + if err := m.AccountGroupId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipKeys(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthKeys + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AddressView_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 ErrIntOverflowKeys + } + 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: 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 Address", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKeys + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthKeys + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKeys + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Address == nil { + m.Address = &Address{} + } + if err := m.Address.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipKeys(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthKeys + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *PayloadKey) 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 ErrIntOverflowKeys + } + 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: PayloadKey: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PayloadKey: 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 ErrIntOverflowKeys + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthKeys + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKeys + } + 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 := skipKeys(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthKeys + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SpendKey) 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 ErrIntOverflowKeys + } + 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: SpendKey: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SpendKey: 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 ErrIntOverflowKeys + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthKeys + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKeys + } + 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 := skipKeys(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthKeys + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SpendVerificationKey) 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 ErrIntOverflowKeys + } + 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: SpendVerificationKey: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SpendVerificationKey: 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 ErrIntOverflowKeys + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthKeys + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKeys + } + 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 := skipKeys(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthKeys + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *FullViewingKey) 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 ErrIntOverflowKeys + } + 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: FullViewingKey: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FullViewingKey: 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 ErrIntOverflowKeys + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthKeys + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKeys + } + 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 := skipKeys(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthKeys + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AccountGroupId) 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 ErrIntOverflowKeys + } + 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: AccountGroupId: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AccountGroupId: 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 ErrIntOverflowKeys + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthKeys + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKeys + } + 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 := skipKeys(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthKeys + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Diversifier) 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 ErrIntOverflowKeys + } + 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: Diversifier: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Diversifier: 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 ErrIntOverflowKeys + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthKeys + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKeys + } + 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 := skipKeys(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthKeys + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AddressIndex) 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 ErrIntOverflowKeys + } + 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: AddressIndex: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AddressIndex: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Account", wireType) + } + m.Account = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKeys + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Account |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + 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 ErrIntOverflowKeys + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthKeys + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKeys + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Randomizer = append(m.Randomizer[:0], dAtA[iNdEx:postIndex]...) + if m.Randomizer == nil { + m.Randomizer = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipKeys(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthKeys + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *IdentityKey) 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 ErrIntOverflowKeys + } + 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: IdentityKey: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: IdentityKey: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ik", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKeys + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthKeys + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKeys + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Ik = append(m.Ik[:0], dAtA[iNdEx:postIndex]...) + if m.Ik == nil { + m.Ik = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipKeys(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthKeys + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GovernanceKey) 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 ErrIntOverflowKeys + } + 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: GovernanceKey: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GovernanceKey: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Gk", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKeys + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthKeys + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKeys + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Gk = append(m.Gk[:0], dAtA[iNdEx:postIndex]...) + if m.Gk == nil { + m.Gk = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipKeys(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthKeys + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ConsensusKey) 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 ErrIntOverflowKeys + } + 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: ConsensusKey: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ConsensusKey: 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 ErrIntOverflowKeys + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthKeys + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthKeys + } + 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 := skipKeys(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthKeys + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipKeys(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, ErrIntOverflowKeys + } + 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, ErrIntOverflowKeys + } + 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, ErrIntOverflowKeys + } + 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, ErrInvalidLengthKeys + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupKeys + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthKeys + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthKeys = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowKeys = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupKeys = fmt.Errorf("proto: unexpected end of group") +) diff --git a/relayer/chains/penumbra/core/num/v1alpha1/num.pb.go b/relayer/chains/penumbra/core/num/v1alpha1/num.pb.go new file mode 100644 index 000000000..d4613a05e --- /dev/null +++ b/relayer/chains/penumbra/core/num/v1alpha1/num.pb.go @@ -0,0 +1,348 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: penumbra/core/num/v1alpha1/num.proto + +package numv1alpha1 + +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 + +// The quantity of a particular Asset. Represented as a 128-bit unsigned integer, +// split over two fields, `lo` and `hi`, representing the low- and high-order bytes +// of the 128-bit value, respectively. Clients must assemble these bits in their +// implementation into a `uint128` or comparable data structure, in order to model +// the Amount accurately. +type Amount struct { + Lo uint64 `protobuf:"varint,1,opt,name=lo,proto3" json:"lo,omitempty"` + Hi uint64 `protobuf:"varint,2,opt,name=hi,proto3" json:"hi,omitempty"` +} + +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} +} +func (m *Amount) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Amount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Amount.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 *Amount) XXX_Merge(src proto.Message) { + xxx_messageInfo_Amount.Merge(m, src) +} +func (m *Amount) XXX_Size() int { + return m.Size() +} +func (m *Amount) XXX_DiscardUnknown() { + xxx_messageInfo_Amount.DiscardUnknown(m) +} + +var xxx_messageInfo_Amount proto.InternalMessageInfo + +func (m *Amount) GetLo() uint64 { + if m != nil { + return m.Lo + } + return 0 +} + +func (m *Amount) GetHi() uint64 { + if m != nil { + return m.Hi + } + return 0 +} + +func init() { + proto.RegisterType((*Amount)(nil), "penumbra.core.num.v1alpha1.Amount") +} + +func init() { + proto.RegisterFile("penumbra/core/num/v1alpha1/num.proto", fileDescriptor_a515e4f6cefdd105) +} + +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, +} + +func (m *Amount) 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 *Amount) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Amount) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Hi != 0 { + i = encodeVarintNum(dAtA, i, uint64(m.Hi)) + i-- + dAtA[i] = 0x10 + } + if m.Lo != 0 { + i = encodeVarintNum(dAtA, i, uint64(m.Lo)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func encodeVarintNum(dAtA []byte, offset int, v uint64) int { + offset -= sovNum(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *Amount) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Lo != 0 { + n += 1 + sovNum(uint64(m.Lo)) + } + if m.Hi != 0 { + n += 1 + sovNum(uint64(m.Hi)) + } + return n +} + +func sovNum(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozNum(x uint64) (n int) { + return sovNum(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *Amount) 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 ErrIntOverflowNum + } + 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: Amount: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Amount: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Lo", wireType) + } + m.Lo = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNum + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Lo |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Hi", wireType) + } + m.Hi = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNum + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Hi |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipNum(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNum + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipNum(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, ErrIntOverflowNum + } + 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, ErrIntOverflowNum + } + 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, ErrIntOverflowNum + } + 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, ErrInvalidLengthNum + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupNum + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthNum + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthNum = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowNum = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupNum = fmt.Errorf("proto: unexpected end of group") +) diff --git a/relayer/chains/penumbra/crypto/decaf377_fmd/v1alpha1/decaf377_fmd.pb.go b/relayer/chains/penumbra/crypto/decaf377_fmd/v1alpha1/decaf377_fmd.pb.go new file mode 100644 index 000000000..7172af1e0 --- /dev/null +++ b/relayer/chains/penumbra/crypto/decaf377_fmd/v1alpha1/decaf377_fmd.pb.go @@ -0,0 +1,327 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: penumbra/crypto/decaf377_fmd/v1alpha1/decaf377_fmd.proto + +package decaf377_fmdv1alpha1 + +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 + +// A clue for use with Fuzzy Message Detection. +type Clue struct { + Inner []byte `protobuf:"bytes,1,opt,name=inner,proto3" json:"inner,omitempty"` +} + +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} +} +func (m *Clue) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Clue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Clue.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 *Clue) XXX_Merge(src proto.Message) { + xxx_messageInfo_Clue.Merge(m, src) +} +func (m *Clue) XXX_Size() int { + return m.Size() +} +func (m *Clue) XXX_DiscardUnknown() { + xxx_messageInfo_Clue.DiscardUnknown(m) +} + +var xxx_messageInfo_Clue proto.InternalMessageInfo + +func (m *Clue) GetInner() []byte { + if m != nil { + return m.Inner + } + return nil +} + +func init() { + proto.RegisterType((*Clue)(nil), "penumbra.crypto.decaf377_fmd.v1alpha1.Clue") +} + +func init() { + proto.RegisterFile("penumbra/crypto/decaf377_fmd/v1alpha1/decaf377_fmd.proto", fileDescriptor_5575e9604747910d) +} + +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, + 0xcd, 0x4d, 0x2a, 0x4a, 0xd4, 0x4f, 0x2e, 0xaa, 0x2c, 0x28, 0xc9, 0xd7, 0x4f, 0x49, 0x4d, 0x4e, + 0x4c, 0x33, 0x36, 0x37, 0x8f, 0x4f, 0xcb, 0x4d, 0xd1, 0x2f, 0x33, 0x4c, 0xcc, 0x29, 0xc8, 0x48, + 0x34, 0x44, 0x11, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x52, 0x85, 0xe9, 0xd4, 0x83, 0xe8, + 0xd4, 0x43, 0x51, 0x03, 0xd3, 0xa9, 0x24, 0xc3, 0xc5, 0xe2, 0x9c, 0x53, 0x9a, 0x2a, 0x24, 0xc2, + 0xc5, 0x9a, 0x99, 0x97, 0x97, 0x5a, 0x24, 0xc1, 0xa8, 0xc0, 0xa8, 0xc1, 0x13, 0x04, 0xe1, 0x38, + 0x7d, 0x60, 0x3a, 0xf1, 0x48, 0x8e, 0xf1, 0xc2, 0x23, 0x39, 0xc6, 0x07, 0x8f, 0xe4, 0x18, 0x27, + 0x3c, 0x96, 0x63, 0xb8, 0xf0, 0x58, 0x8e, 0xe1, 0xc6, 0x63, 0x39, 0x06, 0x2e, 0xcd, 0xe4, 0xfc, + 0x5c, 0x3d, 0xa2, 0xec, 0x70, 0x12, 0x70, 0x81, 0x0a, 0xbb, 0xe5, 0xa6, 0x04, 0x80, 0x1c, 0x17, + 0xc0, 0x18, 0x95, 0x96, 0x9e, 0x59, 0x92, 0x51, 0x9a, 0xa4, 0x97, 0x9c, 0x9f, 0xab, 0x9f, 0x9c, + 0x5f, 0x9c, 0x9b, 0x5f, 0xac, 0x5f, 0x94, 0x9a, 0x93, 0x58, 0x99, 0x5a, 0xa4, 0x5f, 0x66, 0x04, + 0x67, 0x26, 0x67, 0x24, 0x66, 0xe6, 0x15, 0xeb, 0x13, 0x15, 0x08, 0xd6, 0xc8, 0xa2, 0x30, 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, +} + +func (m *Clue) 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 *Clue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Clue) 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 = encodeVarintDecaf377Fmd(dAtA, i, uint64(len(m.Inner))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintDecaf377Fmd(dAtA []byte, offset int, v uint64) int { + offset -= sovDecaf377Fmd(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *Clue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Inner) + if l > 0 { + n += 1 + l + sovDecaf377Fmd(uint64(l)) + } + return n +} + +func sovDecaf377Fmd(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozDecaf377Fmd(x uint64) (n int) { + return sovDecaf377Fmd(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *Clue) 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 ErrIntOverflowDecaf377Fmd + } + 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: Clue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Clue: 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 ErrIntOverflowDecaf377Fmd + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthDecaf377Fmd + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthDecaf377Fmd + } + 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 := skipDecaf377Fmd(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthDecaf377Fmd + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipDecaf377Fmd(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, ErrIntOverflowDecaf377Fmd + } + 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, ErrIntOverflowDecaf377Fmd + } + 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, ErrIntOverflowDecaf377Fmd + } + 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, ErrInvalidLengthDecaf377Fmd + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupDecaf377Fmd + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthDecaf377Fmd + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthDecaf377Fmd = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowDecaf377Fmd = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupDecaf377Fmd = fmt.Errorf("proto: unexpected end of group") +) diff --git a/relayer/chains/penumbra/crypto/decaf377_rdsa/v1alpha1/decaf377_rdsa.pb.go b/relayer/chains/penumbra/crypto/decaf377_rdsa/v1alpha1/decaf377_rdsa.pb.go new file mode 100644 index 000000000..b038e7d14 --- /dev/null +++ b/relayer/chains/penumbra/crypto/decaf377_rdsa/v1alpha1/decaf377_rdsa.pb.go @@ -0,0 +1,500 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: penumbra/crypto/decaf377_rdsa/v1alpha1/decaf377_rdsa.proto + +package decaf377_rdsav1alpha1 + +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 + +type SpendAuthSignature struct { + Inner []byte `protobuf:"bytes,1,opt,name=inner,proto3" json:"inner,omitempty"` +} + +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} +} +func (m *SpendAuthSignature) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SpendAuthSignature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SpendAuthSignature.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 *SpendAuthSignature) XXX_Merge(src proto.Message) { + xxx_messageInfo_SpendAuthSignature.Merge(m, src) +} +func (m *SpendAuthSignature) XXX_Size() int { + return m.Size() +} +func (m *SpendAuthSignature) XXX_DiscardUnknown() { + xxx_messageInfo_SpendAuthSignature.DiscardUnknown(m) +} + +var xxx_messageInfo_SpendAuthSignature proto.InternalMessageInfo + +func (m *SpendAuthSignature) GetInner() []byte { + if m != nil { + return m.Inner + } + return nil +} + +type BindingSignature struct { + Inner []byte `protobuf:"bytes,1,opt,name=inner,proto3" json:"inner,omitempty"` +} + +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} +} +func (m *BindingSignature) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BindingSignature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BindingSignature.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 *BindingSignature) XXX_Merge(src proto.Message) { + xxx_messageInfo_BindingSignature.Merge(m, src) +} +func (m *BindingSignature) XXX_Size() int { + return m.Size() +} +func (m *BindingSignature) XXX_DiscardUnknown() { + xxx_messageInfo_BindingSignature.DiscardUnknown(m) +} + +var xxx_messageInfo_BindingSignature proto.InternalMessageInfo + +func (m *BindingSignature) GetInner() []byte { + if m != nil { + return m.Inner + } + return nil +} + +func init() { + proto.RegisterType((*SpendAuthSignature)(nil), "penumbra.crypto.decaf377_rdsa.v1alpha1.SpendAuthSignature") + proto.RegisterType((*BindingSignature)(nil), "penumbra.crypto.decaf377_rdsa.v1alpha1.BindingSignature") +} + +func init() { + proto.RegisterFile("penumbra/crypto/decaf377_rdsa/v1alpha1/decaf377_rdsa.proto", fileDescriptor_5769d4d01f5df277) +} + +var fileDescriptor_5769d4d01f5df277 = []byte{ + // 309 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xb2, 0x2a, 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, 0x4c, 0xcc, 0x29, 0xc8, + 0x48, 0x34, 0x44, 0x15, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x52, 0x83, 0xe9, 0xd5, 0x83, + 0xe8, 0xd5, 0x43, 0x55, 0x04, 0xd3, 0xab, 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, 0x50, 0xe9, 0xf4, 0x83, 0xe9, 0xc4, + 0x23, 0x39, 0xc6, 0x0b, 0x8f, 0xe4, 0x18, 0x1f, 0x3c, 0x92, 0x63, 0x9c, 0xf0, 0x58, 0x8e, 0xe1, + 0xc2, 0x63, 0x39, 0x86, 0x1b, 0x8f, 0xe5, 0x18, 0xb8, 0xb4, 0x92, 0xf3, 0x73, 0xf5, 0x88, 0x73, + 0x9c, 0x93, 0xa0, 0x0b, 0x54, 0x3c, 0x28, 0xa5, 0x38, 0x31, 0x00, 0xe4, 0xaf, 0x00, 0xc6, 0xa8, + 0x8c, 0xf4, 0xcc, 0x92, 0x8c, 0xd2, 0x24, 0xbd, 0xe4, 0xfc, 0x5c, 0xfd, 0xe4, 0xfc, 0xe2, 0xdc, + 0xfc, 0x62, 0xfd, 0xa2, 0xd4, 0x9c, 0xc4, 0xca, 0xd4, 0x22, 0xfd, 0x32, 0x23, 0x38, 0x33, 0x39, + 0x23, 0x31, 0x33, 0xaf, 0x58, 0x9f, 0xb8, 0x10, 0xb4, 0x46, 0x11, 0x86, 0x89, 0x2e, 0x62, 0x62, + 0x0e, 0x70, 0x76, 0x59, 0xc5, 0xa4, 0x1a, 0x00, 0x73, 0xad, 0x33, 0xc4, 0xb5, 0xc8, 0xae, 0xd2, + 0x0b, 0x83, 0xaa, 0x3e, 0x85, 0x50, 0x17, 0x03, 0x51, 0x17, 0x83, 0xac, 0x2e, 0x06, 0xa6, 0xee, + 0x11, 0x93, 0x21, 0x51, 0xea, 0x62, 0xdc, 0x03, 0x9c, 0x7c, 0x53, 0x4b, 0x12, 0x53, 0x12, 0x4b, + 0x12, 0x5f, 0x31, 0x69, 0xc0, 0xf4, 0x58, 0x59, 0x41, 0x34, 0x59, 0x59, 0x21, 0xeb, 0xb2, 0xb2, + 0x82, 0x69, 0x4b, 0x62, 0x03, 0xc7, 0xbf, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, 0x76, 0xf0, 0x63, + 0xf8, 0x3d, 0x02, 0x00, 0x00, +} + +func (m *SpendAuthSignature) 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 *SpendAuthSignature) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SpendAuthSignature) 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 = encodeVarintDecaf377Rdsa(dAtA, i, uint64(len(m.Inner))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *BindingSignature) 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 *BindingSignature) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BindingSignature) 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 = encodeVarintDecaf377Rdsa(dAtA, i, uint64(len(m.Inner))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintDecaf377Rdsa(dAtA []byte, offset int, v uint64) int { + offset -= sovDecaf377Rdsa(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *SpendAuthSignature) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Inner) + if l > 0 { + n += 1 + l + sovDecaf377Rdsa(uint64(l)) + } + return n +} + +func (m *BindingSignature) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Inner) + if l > 0 { + n += 1 + l + sovDecaf377Rdsa(uint64(l)) + } + return n +} + +func sovDecaf377Rdsa(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozDecaf377Rdsa(x uint64) (n int) { + return sovDecaf377Rdsa(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *SpendAuthSignature) 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 ErrIntOverflowDecaf377Rdsa + } + 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: SpendAuthSignature: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SpendAuthSignature: 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 ErrIntOverflowDecaf377Rdsa + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthDecaf377Rdsa + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthDecaf377Rdsa + } + 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 := skipDecaf377Rdsa(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthDecaf377Rdsa + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BindingSignature) 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 ErrIntOverflowDecaf377Rdsa + } + 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: BindingSignature: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BindingSignature: 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 ErrIntOverflowDecaf377Rdsa + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthDecaf377Rdsa + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthDecaf377Rdsa + } + 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 := skipDecaf377Rdsa(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthDecaf377Rdsa + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipDecaf377Rdsa(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, ErrIntOverflowDecaf377Rdsa + } + 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, ErrIntOverflowDecaf377Rdsa + } + 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, ErrIntOverflowDecaf377Rdsa + } + 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, ErrInvalidLengthDecaf377Rdsa + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupDecaf377Rdsa + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthDecaf377Rdsa + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthDecaf377Rdsa = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowDecaf377Rdsa = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupDecaf377Rdsa = fmt.Errorf("proto: unexpected end of group") +) diff --git a/relayer/chains/penumbra/crypto/tct/v1alpha1/tct.pb.go b/relayer/chains/penumbra/crypto/tct/v1alpha1/tct.pb.go new file mode 100644 index 000000000..bb44d538d --- /dev/null +++ b/relayer/chains/penumbra/crypto/tct/v1alpha1/tct.pb.go @@ -0,0 +1,1063 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: penumbra/crypto/tct/v1alpha1/tct.proto + +package tctv1alpha1 + +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 + +type StateCommitment struct { + Inner []byte `protobuf:"bytes,1,opt,name=inner,proto3" json:"inner,omitempty"` +} + +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} +} +func (m *StateCommitment) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *StateCommitment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_StateCommitment.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 *StateCommitment) XXX_Merge(src proto.Message) { + xxx_messageInfo_StateCommitment.Merge(m, src) +} +func (m *StateCommitment) XXX_Size() int { + return m.Size() +} +func (m *StateCommitment) XXX_DiscardUnknown() { + xxx_messageInfo_StateCommitment.DiscardUnknown(m) +} + +var xxx_messageInfo_StateCommitment proto.InternalMessageInfo + +func (m *StateCommitment) GetInner() []byte { + if m != nil { + return m.Inner + } + return nil +} + +type MerkleRoot struct { + Inner []byte `protobuf:"bytes,1,opt,name=inner,proto3" json:"inner,omitempty"` +} + +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} +} +func (m *MerkleRoot) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MerkleRoot) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MerkleRoot.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 *MerkleRoot) XXX_Merge(src proto.Message) { + xxx_messageInfo_MerkleRoot.Merge(m, src) +} +func (m *MerkleRoot) XXX_Size() int { + return m.Size() +} +func (m *MerkleRoot) XXX_DiscardUnknown() { + xxx_messageInfo_MerkleRoot.DiscardUnknown(m) +} + +var xxx_messageInfo_MerkleRoot proto.InternalMessageInfo + +func (m *MerkleRoot) GetInner() []byte { + if m != nil { + return m.Inner + } + return nil +} + +// An authentication path from a state commitment to the root of the state commitment tree. +type StateCommitmentProof struct { + NoteCommitment *StateCommitment `protobuf:"bytes,1,opt,name=note_commitment,json=noteCommitment,proto3" json:"note_commitment,omitempty"` + Position uint64 `protobuf:"varint,2,opt,name=position,proto3" json:"position,omitempty"` + AuthPath []*MerklePathChunk `protobuf:"bytes,3,rep,name=auth_path,json=authPath,proto3" json:"auth_path,omitempty"` +} + +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} +} +func (m *StateCommitmentProof) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *StateCommitmentProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_StateCommitmentProof.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 *StateCommitmentProof) XXX_Merge(src proto.Message) { + xxx_messageInfo_StateCommitmentProof.Merge(m, src) +} +func (m *StateCommitmentProof) XXX_Size() int { + return m.Size() +} +func (m *StateCommitmentProof) XXX_DiscardUnknown() { + xxx_messageInfo_StateCommitmentProof.DiscardUnknown(m) +} + +var xxx_messageInfo_StateCommitmentProof proto.InternalMessageInfo + +func (m *StateCommitmentProof) GetNoteCommitment() *StateCommitment { + if m != nil { + return m.NoteCommitment + } + return nil +} + +func (m *StateCommitmentProof) GetPosition() uint64 { + if m != nil { + return m.Position + } + return 0 +} + +func (m *StateCommitmentProof) GetAuthPath() []*MerklePathChunk { + if m != nil { + return m.AuthPath + } + return nil +} + +// A set of 3 sibling hashes in the auth path for some note commitment. +type MerklePathChunk struct { + Sibling_1 []byte `protobuf:"bytes,1,opt,name=sibling_1,json=sibling1,proto3" json:"sibling_1,omitempty"` + Sibling_2 []byte `protobuf:"bytes,2,opt,name=sibling_2,json=sibling2,proto3" json:"sibling_2,omitempty"` + Sibling_3 []byte `protobuf:"bytes,3,opt,name=sibling_3,json=sibling3,proto3" json:"sibling_3,omitempty"` +} + +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} +} +func (m *MerklePathChunk) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MerklePathChunk) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MerklePathChunk.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 *MerklePathChunk) XXX_Merge(src proto.Message) { + xxx_messageInfo_MerklePathChunk.Merge(m, src) +} +func (m *MerklePathChunk) XXX_Size() int { + return m.Size() +} +func (m *MerklePathChunk) XXX_DiscardUnknown() { + xxx_messageInfo_MerklePathChunk.DiscardUnknown(m) +} + +var xxx_messageInfo_MerklePathChunk proto.InternalMessageInfo + +func (m *MerklePathChunk) GetSibling_1() []byte { + if m != nil { + return m.Sibling_1 + } + return nil +} + +func (m *MerklePathChunk) GetSibling_2() []byte { + if m != nil { + return m.Sibling_2 + } + return nil +} + +func (m *MerklePathChunk) GetSibling_3() []byte { + if m != nil { + return m.Sibling_3 + } + return nil +} + +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") +} + +func init() { + proto.RegisterFile("penumbra/crypto/tct/v1alpha1/tct.proto", fileDescriptor_7a94190b2b9c1621) +} + +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, 0x78, 0x14, 0xfc, 0x1e, + 0xe2, 0x69, 0x4f, 0xe2, 0x51, 0xd2, 0x9b, 0x9f, 0x42, 0xd2, 0x34, 0xdd, 0x5a, 0x30, 0x7b, 0x9b, + 0x37, 0xbf, 0xdf, 0xbc, 0xf9, 0xcf, 0xf0, 0xe8, 0xcb, 0x5c, 0xe8, 0x32, 0x4b, 0x0c, 0xf3, 0xb8, + 0xb9, 0xc9, 0x11, 0x3c, 0xe4, 0xe8, 0x5d, 0xcf, 0x58, 0x9a, 0x4b, 0x36, 0xab, 0x0b, 0x37, 0x37, + 0x80, 0x60, 0x9f, 0xb5, 0x9e, 0xdb, 0x78, 0x6e, 0x8d, 0x5a, 0x6f, 0xf2, 0x8a, 0x0e, 0xdf, 0x23, + 0x43, 0xb1, 0x82, 0x2c, 0x53, 0x98, 0x09, 0x8d, 0xf6, 0x29, 0x7d, 0xa8, 0xb4, 0x16, 0x66, 0x44, + 0xc6, 0x64, 0xfa, 0x24, 0x6c, 0x8a, 0xc9, 0x84, 0xd2, 0x73, 0x61, 0xae, 0x52, 0x11, 0x02, 0xfc, + 0xcf, 0xf9, 0x49, 0xe8, 0xe9, 0x51, 0xb7, 0xc0, 0x00, 0x7c, 0xb2, 0x2f, 0xe8, 0x50, 0x03, 0x8a, + 0x35, 0xdf, 0xef, 0x6f, 0x0f, 0x3e, 0x9e, 0xbf, 0x76, 0xbb, 0xd2, 0xb9, 0x47, 0xcd, 0xc2, 0xa7, + 0x75, 0x97, 0x83, 0xa8, 0xcf, 0xe8, 0x20, 0x87, 0x42, 0xa1, 0x02, 0x3d, 0xb2, 0xc6, 0x64, 0xfa, + 0x20, 0xdc, 0xd7, 0xf6, 0x3b, 0x7a, 0xc2, 0x4a, 0x94, 0xeb, 0x9c, 0xa1, 0x1c, 0xf5, 0xc7, 0xfd, + 0xfb, 0x6f, 0x6b, 0xde, 0x17, 0x30, 0x94, 0x2b, 0x59, 0xea, 0xab, 0x70, 0x50, 0x9f, 0xaf, 0xcb, + 0x89, 0xa4, 0xc3, 0x23, 0x68, 0x3f, 0xa7, 0x27, 0x85, 0x4a, 0x52, 0xa5, 0x2f, 0xd7, 0xb3, 0xdd, + 0x2f, 0x0c, 0x76, 0x1b, 0xb3, 0x43, 0x38, 0xdf, 0x06, 0xbb, 0x83, 0xf3, 0x43, 0xb8, 0x18, 0xf5, + 0xff, 0x81, 0x8b, 0xe5, 0x37, 0xeb, 0x7b, 0xe5, 0x90, 0xdb, 0xca, 0x21, 0xbf, 0x2b, 0x87, 0x7c, + 0xde, 0x38, 0xbd, 0xdb, 0x8d, 0xd3, 0xfb, 0xb5, 0x71, 0x7a, 0x74, 0xcc, 0x21, 0xeb, 0x7c, 0xc0, + 0x72, 0x10, 0xf1, 0xfa, 0xc3, 0x11, 0x02, 0xf2, 0x21, 0xba, 0x54, 0x28, 0xcb, 0xc4, 0xe5, 0x90, + 0x79, 0x1c, 0x8a, 0x0c, 0x0a, 0xcf, 0x88, 0x94, 0xdd, 0x08, 0xe3, 0x5d, 0xcf, 0xf7, 0x4b, 0x2e, + 0x99, 0xd2, 0x85, 0xd7, 0x35, 0x4a, 0x6f, 0x90, 0x63, 0xbb, 0xfe, 0x62, 0xf5, 0x83, 0x55, 0xf4, + 0xd5, 0x3a, 0x0b, 0xda, 0x18, 0xab, 0x26, 0x46, 0xc4, 0xd1, 0xbd, 0xd8, 0x49, 0x3f, 0xee, 0x70, + 0xdc, 0xe0, 0x38, 0xe2, 0x18, 0xb7, 0xb8, 0xb2, 0xa6, 0x5d, 0x38, 0x7e, 0x1b, 0x2c, 0xcf, 0x05, + 0xb2, 0x8f, 0x0c, 0xd9, 0x1f, 0xeb, 0x45, 0xab, 0xfa, 0x7e, 0xe3, 0xfa, 0x7e, 0xc4, 0xd1, 0xf7, + 0x5b, 0x3b, 0x79, 0xb4, 0x1d, 0xf2, 0xc5, 0xdf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x14, 0x6c, 0x76, + 0x9e, 0x0e, 0x03, 0x00, 0x00, +} + +func (m *StateCommitment) 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 *StateCommitment) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StateCommitment) 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 = encodeVarintTct(dAtA, i, uint64(len(m.Inner))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MerkleRoot) 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 *MerkleRoot) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MerkleRoot) 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 = encodeVarintTct(dAtA, i, uint64(len(m.Inner))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *StateCommitmentProof) 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 *StateCommitmentProof) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StateCommitmentProof) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.AuthPath) > 0 { + for iNdEx := len(m.AuthPath) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.AuthPath[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTct(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if m.Position != 0 { + i = encodeVarintTct(dAtA, i, uint64(m.Position)) + i-- + dAtA[i] = 0x10 + } + if m.NoteCommitment != nil { + { + size, err := m.NoteCommitment.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTct(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MerklePathChunk) 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 *MerklePathChunk) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MerklePathChunk) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Sibling_3) > 0 { + i -= len(m.Sibling_3) + copy(dAtA[i:], m.Sibling_3) + i = encodeVarintTct(dAtA, i, uint64(len(m.Sibling_3))) + i-- + dAtA[i] = 0x1a + } + if len(m.Sibling_2) > 0 { + i -= len(m.Sibling_2) + copy(dAtA[i:], m.Sibling_2) + i = encodeVarintTct(dAtA, i, uint64(len(m.Sibling_2))) + i-- + dAtA[i] = 0x12 + } + if len(m.Sibling_1) > 0 { + i -= len(m.Sibling_1) + copy(dAtA[i:], m.Sibling_1) + i = encodeVarintTct(dAtA, i, uint64(len(m.Sibling_1))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintTct(dAtA []byte, offset int, v uint64) int { + offset -= sovTct(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *StateCommitment) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Inner) + if l > 0 { + n += 1 + l + sovTct(uint64(l)) + } + return n +} + +func (m *MerkleRoot) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Inner) + if l > 0 { + n += 1 + l + sovTct(uint64(l)) + } + return n +} + +func (m *StateCommitmentProof) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.NoteCommitment != nil { + l = m.NoteCommitment.Size() + n += 1 + l + sovTct(uint64(l)) + } + if m.Position != 0 { + n += 1 + sovTct(uint64(m.Position)) + } + if len(m.AuthPath) > 0 { + for _, e := range m.AuthPath { + l = e.Size() + n += 1 + l + sovTct(uint64(l)) + } + } + return n +} + +func (m *MerklePathChunk) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Sibling_1) + if l > 0 { + n += 1 + l + sovTct(uint64(l)) + } + l = len(m.Sibling_2) + if l > 0 { + n += 1 + l + sovTct(uint64(l)) + } + l = len(m.Sibling_3) + if l > 0 { + n += 1 + l + sovTct(uint64(l)) + } + return n +} + +func sovTct(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozTct(x uint64) (n int) { + return sovTct(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *StateCommitment) 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 ErrIntOverflowTct + } + 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: StateCommitment: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: StateCommitment: 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 ErrIntOverflowTct + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthTct + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthTct + } + 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 := skipTct(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTct + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MerkleRoot) 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 ErrIntOverflowTct + } + 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: MerkleRoot: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MerkleRoot: 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 ErrIntOverflowTct + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthTct + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthTct + } + 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 := skipTct(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTct + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *StateCommitmentProof) 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 ErrIntOverflowTct + } + 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: StateCommitmentProof: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: StateCommitmentProof: 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) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTct + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTct + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTct + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.NoteCommitment == nil { + m.NoteCommitment = &StateCommitment{} + } + if err := m.NoteCommitment.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 ErrIntOverflowTct + } + 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 AuthPath", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTct + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTct + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTct + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AuthPath = append(m.AuthPath, &MerklePathChunk{}) + if err := m.AuthPath[len(m.AuthPath)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTct(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTct + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MerklePathChunk) 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 ErrIntOverflowTct + } + 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: MerklePathChunk: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MerklePathChunk: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Sibling_1", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTct + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthTct + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthTct + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Sibling_1 = append(m.Sibling_1[:0], dAtA[iNdEx:postIndex]...) + if m.Sibling_1 == nil { + m.Sibling_1 = []byte{} + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Sibling_2", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTct + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthTct + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthTct + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Sibling_2 = append(m.Sibling_2[:0], dAtA[iNdEx:postIndex]...) + if m.Sibling_2 == nil { + m.Sibling_2 = []byte{} + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Sibling_3", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTct + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthTct + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthTct + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Sibling_3 = append(m.Sibling_3[:0], dAtA[iNdEx:postIndex]...) + if m.Sibling_3 == nil { + m.Sibling_3 = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTct(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTct + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipTct(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, ErrIntOverflowTct + } + 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, ErrIntOverflowTct + } + 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, ErrIntOverflowTct + } + 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, ErrInvalidLengthTct + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupTct + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthTct + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthTct = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowTct = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupTct = fmt.Errorf("proto: unexpected end of group") +) diff --git a/relayer/chains/penumbra/narsil/ledger/v1alpha1/ledger.pb.go b/relayer/chains/penumbra/narsil/ledger/v1alpha1/ledger.pb.go new file mode 100644 index 000000000..f8e9fce76 --- /dev/null +++ b/relayer/chains/penumbra/narsil/ledger/v1alpha1/ledger.pb.go @@ -0,0 +1,10257 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: penumbra/narsil/ledger/v1alpha1/ledger.proto + +package ledgerv1alpha1 + +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/component/chain/v1alpha1" + v1alpha1 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/keys/v1alpha1" + v1alpha12 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/core/transaction/v1alpha1" + v1alpha13 "github.com/cosmos/relayer/v2/relayer/chains/penumbra/custody/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 + +// Requests information about the chain state as known by the node. +type InfoRequest struct { + // The Tendermint software semantic version. + Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` + // The Tendermint block protocol version. + BlockVersion uint64 `protobuf:"varint,2,opt,name=block_version,json=blockVersion,proto3" json:"block_version,omitempty"` + // The Tendermint p2p protocol version. + P2PVersion uint64 `protobuf:"varint,3,opt,name=p2p_version,json=p2pVersion,proto3" json:"p2p_version,omitempty"` + // The ABCI semantic version number. + AbciVersion string `protobuf:"bytes,4,opt,name=abci_version,json=abciVersion,proto3" json:"abci_version,omitempty"` +} + +func (m *InfoRequest) Reset() { *m = InfoRequest{} } +func (m *InfoRequest) String() string { return proto.CompactTextString(m) } +func (*InfoRequest) ProtoMessage() {} +func (*InfoRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_e17e78e0f19a1ac0, []int{0} +} +func (m *InfoRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InfoRequest.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 *InfoRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_InfoRequest.Merge(m, src) +} +func (m *InfoRequest) XXX_Size() int { + return m.Size() +} +func (m *InfoRequest) XXX_DiscardUnknown() { + xxx_messageInfo_InfoRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_InfoRequest proto.InternalMessageInfo + +func (m *InfoRequest) GetVersion() string { + if m != nil { + return m.Version + } + return "" +} + +func (m *InfoRequest) GetBlockVersion() uint64 { + if m != nil { + return m.BlockVersion + } + return 0 +} + +func (m *InfoRequest) GetP2PVersion() uint64 { + if m != nil { + return m.P2PVersion + } + return 0 +} + +func (m *InfoRequest) GetAbciVersion() string { + if m != nil { + return m.AbciVersion + } + return "" +} + +// Contains information about the chain state as known by the node. +type InfoResponse struct { + // Some arbitrary information. + Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` + // The application software semantic version. + Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` + // The application protocol version. + AppVersion uint64 `protobuf:"varint,3,opt,name=app_version,json=appVersion,proto3" json:"app_version,omitempty"` + // The latest block for which the app has called [`Commit`](super::super::Request::Commit). + LastBlockHeight uint64 `protobuf:"varint,4,opt,name=last_block_height,json=lastBlockHeight,proto3" json:"last_block_height,omitempty"` + // The latest result of [`Commit`](super::super::Request::Commit). + LastBlockAppHash []byte `protobuf:"bytes,5,opt,name=last_block_app_hash,json=lastBlockAppHash,proto3" json:"last_block_app_hash,omitempty"` +} + +func (m *InfoResponse) Reset() { *m = InfoResponse{} } +func (m *InfoResponse) String() string { return proto.CompactTextString(m) } +func (*InfoResponse) ProtoMessage() {} +func (*InfoResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_e17e78e0f19a1ac0, []int{1} +} +func (m *InfoResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InfoResponse.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 *InfoResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_InfoResponse.Merge(m, src) +} +func (m *InfoResponse) XXX_Size() int { + return m.Size() +} +func (m *InfoResponse) XXX_DiscardUnknown() { + xxx_messageInfo_InfoResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_InfoResponse proto.InternalMessageInfo + +func (m *InfoResponse) GetData() []byte { + if m != nil { + return m.Data + } + return nil +} + +func (m *InfoResponse) GetVersion() string { + if m != nil { + return m.Version + } + return "" +} + +func (m *InfoResponse) GetAppVersion() uint64 { + if m != nil { + return m.AppVersion + } + return 0 +} + +func (m *InfoResponse) GetLastBlockHeight() uint64 { + if m != nil { + return m.LastBlockHeight + } + return 0 +} + +func (m *InfoResponse) GetLastBlockAppHash() []byte { + if m != nil { + return m.LastBlockAppHash + } + return nil +} + +// The root identity key material for a shard operator. +type ShardIdentityKey struct { + // An Ed25519 key. + Inner []byte `protobuf:"bytes,1,opt,name=inner,proto3" json:"inner,omitempty"` +} + +func (m *ShardIdentityKey) Reset() { *m = ShardIdentityKey{} } +func (m *ShardIdentityKey) String() string { return proto.CompactTextString(m) } +func (*ShardIdentityKey) ProtoMessage() {} +func (*ShardIdentityKey) Descriptor() ([]byte, []int) { + return fileDescriptor_e17e78e0f19a1ac0, []int{2} +} +func (m *ShardIdentityKey) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ShardIdentityKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ShardIdentityKey.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 *ShardIdentityKey) XXX_Merge(src proto.Message) { + xxx_messageInfo_ShardIdentityKey.Merge(m, src) +} +func (m *ShardIdentityKey) XXX_Size() int { + return m.Size() +} +func (m *ShardIdentityKey) XXX_DiscardUnknown() { + xxx_messageInfo_ShardIdentityKey.DiscardUnknown(m) +} + +var xxx_messageInfo_ShardIdentityKey proto.InternalMessageInfo + +func (m *ShardIdentityKey) GetInner() []byte { + if m != nil { + return m.Inner + } + return nil +} + +// The key that Tendermint will use to identify a validator. +type ConsensusKey struct { + // An Ed25519 key. + Inner []byte `protobuf:"bytes,1,opt,name=inner,proto3" json:"inner,omitempty"` +} + +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_e17e78e0f19a1ac0, []int{3} +} +func (m *ConsensusKey) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ConsensusKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ConsensusKey.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 *ConsensusKey) XXX_Merge(src proto.Message) { + xxx_messageInfo_ConsensusKey.Merge(m, src) +} +func (m *ConsensusKey) XXX_Size() int { + return m.Size() +} +func (m *ConsensusKey) XXX_DiscardUnknown() { + xxx_messageInfo_ConsensusKey.DiscardUnknown(m) +} + +var xxx_messageInfo_ConsensusKey proto.InternalMessageInfo + +func (m *ConsensusKey) GetInner() []byte { + if m != nil { + return m.Inner + } + return nil +} + +// A subkey a shard uses to sign messages sent to the ledger. +type ShardMessageKey struct { + // An Ed25519 key. + Inner []byte `protobuf:"bytes,1,opt,name=inner,proto3" json:"inner,omitempty"` +} + +func (m *ShardMessageKey) Reset() { *m = ShardMessageKey{} } +func (m *ShardMessageKey) String() string { return proto.CompactTextString(m) } +func (*ShardMessageKey) ProtoMessage() {} +func (*ShardMessageKey) Descriptor() ([]byte, []int) { + return fileDescriptor_e17e78e0f19a1ac0, []int{4} +} +func (m *ShardMessageKey) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ShardMessageKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ShardMessageKey.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 *ShardMessageKey) XXX_Merge(src proto.Message) { + xxx_messageInfo_ShardMessageKey.Merge(m, src) +} +func (m *ShardMessageKey) XXX_Size() int { + return m.Size() +} +func (m *ShardMessageKey) XXX_DiscardUnknown() { + xxx_messageInfo_ShardMessageKey.DiscardUnknown(m) +} + +var xxx_messageInfo_ShardMessageKey proto.InternalMessageInfo + +func (m *ShardMessageKey) GetInner() []byte { + if m != nil { + return m.Inner + } + return nil +} + +// The threshold key share controlled by a shard operator. +type ShardKey struct { + // A decaf377 scalar. + Inner []byte `protobuf:"bytes,1,opt,name=inner,proto3" json:"inner,omitempty"` +} + +func (m *ShardKey) Reset() { *m = ShardKey{} } +func (m *ShardKey) String() string { return proto.CompactTextString(m) } +func (*ShardKey) ProtoMessage() {} +func (*ShardKey) Descriptor() ([]byte, []int) { + return fileDescriptor_e17e78e0f19a1ac0, []int{5} +} +func (m *ShardKey) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ShardKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ShardKey.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 *ShardKey) XXX_Merge(src proto.Message) { + xxx_messageInfo_ShardKey.Merge(m, src) +} +func (m *ShardKey) XXX_Size() int { + return m.Size() +} +func (m *ShardKey) XXX_DiscardUnknown() { + xxx_messageInfo_ShardKey.DiscardUnknown(m) +} + +var xxx_messageInfo_ShardKey proto.InternalMessageInfo + +func (m *ShardKey) GetInner() []byte { + if m != nil { + return m.Inner + } + return nil +} + +// A signature over a message sent to the ledger by a shard. +type ShardMessageSignature struct { + // An Ed25519 signature. + Inner []byte `protobuf:"bytes,1,opt,name=inner,proto3" json:"inner,omitempty"` +} + +func (m *ShardMessageSignature) Reset() { *m = ShardMessageSignature{} } +func (m *ShardMessageSignature) String() string { return proto.CompactTextString(m) } +func (*ShardMessageSignature) ProtoMessage() {} +func (*ShardMessageSignature) Descriptor() ([]byte, []int) { + return fileDescriptor_e17e78e0f19a1ac0, []int{6} +} +func (m *ShardMessageSignature) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ShardMessageSignature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ShardMessageSignature.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 *ShardMessageSignature) XXX_Merge(src proto.Message) { + xxx_messageInfo_ShardMessageSignature.Merge(m, src) +} +func (m *ShardMessageSignature) XXX_Size() int { + return m.Size() +} +func (m *ShardMessageSignature) XXX_DiscardUnknown() { + xxx_messageInfo_ShardMessageSignature.DiscardUnknown(m) +} + +var xxx_messageInfo_ShardMessageSignature proto.InternalMessageInfo + +func (m *ShardMessageSignature) GetInner() []byte { + if m != nil { + return m.Inner + } + return nil +} + +// A description of one of the operators of a threshold key share (shard). +// +// The `ShardOperator` message doesn't have the threshold key share itself, +// because the workflow is that the set of operators is going to be configured +// first, as part of the genesis / chain configuration, and then the shards +// perform DKG as the chain boots, using the chain as the messaging layer for +// the DKG messages. This means there's no interactive setup procedure for the +// shard operators. +type ShardDescription struct { + // The shard operator's offline identity key material which is the root of their authority. + IdentityKey *ShardIdentityKey `protobuf:"bytes,1,opt,name=identity_key,json=identityKey,proto3" json:"identity_key,omitempty"` + // A subkey used for signing messages sent to the ledger. + MessageKey *ShardMessageKey `protobuf:"bytes,2,opt,name=message_key,json=messageKey,proto3" json:"message_key,omitempty"` + // The validator's consensus pubkey for use in Tendermint (ed25519) + ConsensusKey *ConsensusKey `protobuf:"bytes,3,opt,name=consensus_key,json=consensusKey,proto3" json:"consensus_key,omitempty"` + // A label for the shard. + Label string `protobuf:"bytes,4,opt,name=label,proto3" json:"label,omitempty"` +} + +func (m *ShardDescription) Reset() { *m = ShardDescription{} } +func (m *ShardDescription) String() string { return proto.CompactTextString(m) } +func (*ShardDescription) ProtoMessage() {} +func (*ShardDescription) Descriptor() ([]byte, []int) { + return fileDescriptor_e17e78e0f19a1ac0, []int{7} +} +func (m *ShardDescription) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ShardDescription) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ShardDescription.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 *ShardDescription) XXX_Merge(src proto.Message) { + xxx_messageInfo_ShardDescription.Merge(m, src) +} +func (m *ShardDescription) XXX_Size() int { + return m.Size() +} +func (m *ShardDescription) XXX_DiscardUnknown() { + xxx_messageInfo_ShardDescription.DiscardUnknown(m) +} + +var xxx_messageInfo_ShardDescription proto.InternalMessageInfo + +func (m *ShardDescription) GetIdentityKey() *ShardIdentityKey { + if m != nil { + return m.IdentityKey + } + return nil +} + +func (m *ShardDescription) GetMessageKey() *ShardMessageKey { + if m != nil { + return m.MessageKey + } + return nil +} + +func (m *ShardDescription) GetConsensusKey() *ConsensusKey { + if m != nil { + return m.ConsensusKey + } + return nil +} + +func (m *ShardDescription) GetLabel() string { + if m != nil { + return m.Label + } + return "" +} + +// A self-authenticating `ShardDescription`, signed with the `ShardIdentityKey`. +type ShardOperator struct { + Description *ShardDescription `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"` + Sig []byte `protobuf:"bytes,2,opt,name=sig,proto3" json:"sig,omitempty"` +} + +func (m *ShardOperator) Reset() { *m = ShardOperator{} } +func (m *ShardOperator) String() string { return proto.CompactTextString(m) } +func (*ShardOperator) ProtoMessage() {} +func (*ShardOperator) Descriptor() ([]byte, []int) { + return fileDescriptor_e17e78e0f19a1ac0, []int{8} +} +func (m *ShardOperator) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ShardOperator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ShardOperator.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 *ShardOperator) XXX_Merge(src proto.Message) { + xxx_messageInfo_ShardOperator.Merge(m, src) +} +func (m *ShardOperator) XXX_Size() int { + return m.Size() +} +func (m *ShardOperator) XXX_DiscardUnknown() { + xxx_messageInfo_ShardOperator.DiscardUnknown(m) +} + +var xxx_messageInfo_ShardOperator proto.InternalMessageInfo + +func (m *ShardOperator) GetDescription() *ShardDescription { + if m != nil { + return m.Description + } + return nil +} + +func (m *ShardOperator) GetSig() []byte { + if m != nil { + return m.Sig + } + return nil +} + +// The genesis data describing the set of shard operators who jointly control +// the Narsil instance. +// +// The genesis data does not specify the threshold key shares themselves, +// because these will be computed as the ledger boots up and the shard operators +// perform the DKG to generate the shared key, described by the `ShardInfo`. +type GenesisData struct { + // The set of shard operators (implicitly specifying the `n` in `t-of-n`). + Operators []*ShardOperator `protobuf:"bytes,1,rep,name=operators,proto3" json:"operators,omitempty"` + // The number of shards required to sign a message (the `t` in `t-of-n`). + Threshold uint32 `protobuf:"varint,2,opt,name=threshold,proto3" json:"threshold,omitempty"` +} + +func (m *GenesisData) Reset() { *m = GenesisData{} } +func (m *GenesisData) String() string { return proto.CompactTextString(m) } +func (*GenesisData) ProtoMessage() {} +func (*GenesisData) Descriptor() ([]byte, []int) { + return fileDescriptor_e17e78e0f19a1ac0, []int{9} +} +func (m *GenesisData) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GenesisData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GenesisData.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 *GenesisData) XXX_Merge(src proto.Message) { + xxx_messageInfo_GenesisData.Merge(m, src) +} +func (m *GenesisData) XXX_Size() int { + return m.Size() +} +func (m *GenesisData) XXX_DiscardUnknown() { + xxx_messageInfo_GenesisData.DiscardUnknown(m) +} + +var xxx_messageInfo_GenesisData proto.InternalMessageInfo + +func (m *GenesisData) GetOperators() []*ShardOperator { + if m != nil { + return m.Operators + } + return nil +} + +func (m *GenesisData) GetThreshold() uint32 { + if m != nil { + return m.Threshold + } + return 0 +} + +// Describes the Penumbra account group jointly controlled by the Narsil instance. +type AccountGroupInfo struct { + // The full viewing key for the shared account. + // + // In the Penumbra key hierarchy, this is the highest-authority key below + // spend authority, and allows deriving all subkeys for all accounts in the + // account group. It is replicated across all shards. + // + // The spend verification key component is the `PK` in the FROST I-D. + FullViewingKey *v1alpha1.FullViewingKey `protobuf:"bytes,1,opt,name=full_viewing_key,json=fullViewingKey,proto3" json:"full_viewing_key,omitempty"` + // Describes the participants in the account group. + Participants []*ShardInfo `protobuf:"bytes,2,rep,name=participants,proto3" json:"participants,omitempty"` +} + +func (m *AccountGroupInfo) Reset() { *m = AccountGroupInfo{} } +func (m *AccountGroupInfo) String() string { return proto.CompactTextString(m) } +func (*AccountGroupInfo) ProtoMessage() {} +func (*AccountGroupInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_e17e78e0f19a1ac0, []int{10} +} +func (m *AccountGroupInfo) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AccountGroupInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AccountGroupInfo.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 *AccountGroupInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_AccountGroupInfo.Merge(m, src) +} +func (m *AccountGroupInfo) XXX_Size() int { + return m.Size() +} +func (m *AccountGroupInfo) XXX_DiscardUnknown() { + xxx_messageInfo_AccountGroupInfo.DiscardUnknown(m) +} + +var xxx_messageInfo_AccountGroupInfo proto.InternalMessageInfo + +func (m *AccountGroupInfo) GetFullViewingKey() *v1alpha1.FullViewingKey { + if m != nil { + return m.FullViewingKey + } + return nil +} + +func (m *AccountGroupInfo) GetParticipants() []*ShardInfo { + if m != nil { + return m.Participants + } + return nil +} + +// Describes a single shard of the Narsil instance. +type ShardInfo struct { + // The index of the shard, used for FROST accounting purposes. + Index uint32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` + // The shard verification key, corresponding to `PK_i` in the FROST I-D. + ShardVerificationKey *v1alpha1.SpendVerificationKey `protobuf:"bytes,2,opt,name=shard_verification_key,json=shardVerificationKey,proto3" json:"shard_verification_key,omitempty"` + // The shard operator's identity key, used to identify the operator of this shard. + IdentityKey *ShardIdentityKey `protobuf:"bytes,3,opt,name=identity_key,json=identityKey,proto3" json:"identity_key,omitempty"` +} + +func (m *ShardInfo) Reset() { *m = ShardInfo{} } +func (m *ShardInfo) String() string { return proto.CompactTextString(m) } +func (*ShardInfo) ProtoMessage() {} +func (*ShardInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_e17e78e0f19a1ac0, []int{11} +} +func (m *ShardInfo) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ShardInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ShardInfo.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 *ShardInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_ShardInfo.Merge(m, src) +} +func (m *ShardInfo) XXX_Size() int { + return m.Size() +} +func (m *ShardInfo) XXX_DiscardUnknown() { + xxx_messageInfo_ShardInfo.DiscardUnknown(m) +} + +var xxx_messageInfo_ShardInfo proto.InternalMessageInfo + +func (m *ShardInfo) GetIndex() uint32 { + if m != nil { + return m.Index + } + return 0 +} + +func (m *ShardInfo) GetShardVerificationKey() *v1alpha1.SpendVerificationKey { + if m != nil { + return m.ShardVerificationKey + } + return nil +} + +func (m *ShardInfo) GetIdentityKey() *ShardIdentityKey { + if m != nil { + return m.IdentityKey + } + return nil +} + +// Transaction authorization requests are identified by the proposed +// transaction's effect hash. +// +// This acts as a form of content addressing, providing a number of useful +// behaviors: +// +// - Multiple users can request authorization of the same `TransactionPlan`, and +// the ledger can stack their pre-authorizations until some threshold is met. +// - Rather than having to hold open a connection, clients can re-request +// authorization of the same `TransactionPlan` after it has been signed, and the +// ledger can immediately return the already-existing authorization data. +type RequestIndex struct { + EffectHash *v1alpha11.EffectHash `protobuf:"bytes,1,opt,name=effect_hash,json=effectHash,proto3" json:"effect_hash,omitempty"` +} + +func (m *RequestIndex) Reset() { *m = RequestIndex{} } +func (m *RequestIndex) String() string { return proto.CompactTextString(m) } +func (*RequestIndex) ProtoMessage() {} +func (*RequestIndex) Descriptor() ([]byte, []int) { + return fileDescriptor_e17e78e0f19a1ac0, []int{12} +} +func (m *RequestIndex) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RequestIndex) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RequestIndex.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 *RequestIndex) XXX_Merge(src proto.Message) { + xxx_messageInfo_RequestIndex.Merge(m, src) +} +func (m *RequestIndex) XXX_Size() int { + return m.Size() +} +func (m *RequestIndex) XXX_DiscardUnknown() { + xxx_messageInfo_RequestIndex.DiscardUnknown(m) +} + +var xxx_messageInfo_RequestIndex proto.InternalMessageInfo + +func (m *RequestIndex) GetEffectHash() *v1alpha11.EffectHash { + if m != nil { + return m.EffectHash + } + return nil +} + +// Identifies a particular signing ceremony. +// +// Ceremonies are identified first by request index and then by a sub-index for +// the ceremony. This allows failed or timed-out ceremonies to be repeated. +type CeremonyIndex struct { + RequestIndex *RequestIndex `protobuf:"bytes,1,opt,name=request_index,json=requestIndex,proto3" json:"request_index,omitempty"` + CeremonyIndex uint64 `protobuf:"varint,2,opt,name=ceremony_index,json=ceremonyIndex,proto3" json:"ceremony_index,omitempty"` +} + +func (m *CeremonyIndex) Reset() { *m = CeremonyIndex{} } +func (m *CeremonyIndex) String() string { return proto.CompactTextString(m) } +func (*CeremonyIndex) ProtoMessage() {} +func (*CeremonyIndex) Descriptor() ([]byte, []int) { + return fileDescriptor_e17e78e0f19a1ac0, []int{13} +} +func (m *CeremonyIndex) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CeremonyIndex) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CeremonyIndex.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 *CeremonyIndex) XXX_Merge(src proto.Message) { + xxx_messageInfo_CeremonyIndex.Merge(m, src) +} +func (m *CeremonyIndex) XXX_Size() int { + return m.Size() +} +func (m *CeremonyIndex) XXX_DiscardUnknown() { + xxx_messageInfo_CeremonyIndex.DiscardUnknown(m) +} + +var xxx_messageInfo_CeremonyIndex proto.InternalMessageInfo + +func (m *CeremonyIndex) GetRequestIndex() *RequestIndex { + if m != nil { + return m.RequestIndex + } + return nil +} + +func (m *CeremonyIndex) GetCeremonyIndex() uint64 { + if m != nil { + return m.CeremonyIndex + } + return 0 +} + +// A committee of shards assigned to carry out a particular signing ceremony. +type Committee struct { + Ceremony *CeremonyIndex `protobuf:"bytes,1,opt,name=ceremony,proto3" json:"ceremony,omitempty"` + Participants []*ShardInfo `protobuf:"bytes,2,rep,name=participants,proto3" json:"participants,omitempty"` +} + +func (m *Committee) Reset() { *m = Committee{} } +func (m *Committee) String() string { return proto.CompactTextString(m) } +func (*Committee) ProtoMessage() {} +func (*Committee) Descriptor() ([]byte, []int) { + return fileDescriptor_e17e78e0f19a1ac0, []int{14} +} +func (m *Committee) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Committee) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Committee.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 *Committee) XXX_Merge(src proto.Message) { + xxx_messageInfo_Committee.Merge(m, src) +} +func (m *Committee) XXX_Size() int { + return m.Size() +} +func (m *Committee) XXX_DiscardUnknown() { + xxx_messageInfo_Committee.DiscardUnknown(m) +} + +var xxx_messageInfo_Committee proto.InternalMessageInfo + +func (m *Committee) GetCeremony() *CeremonyIndex { + if m != nil { + return m.Ceremony + } + return nil +} + +func (m *Committee) GetParticipants() []*ShardInfo { + if m != nil { + return m.Participants + } + return nil +} + +// Records a failed ceremony and the reason why it failed. +// +// TODO: consider filling these in with structured info about the failure +type CeremonyFailure struct { + // Types that are valid to be assigned to Failure: + // *CeremonyFailure_Timeout_ + // *CeremonyFailure_BadCommitment_ + // *CeremonyFailure_BadShare_ + // *CeremonyFailure_Canceled_ + Failure isCeremonyFailure_Failure `protobuf_oneof:"failure"` +} + +func (m *CeremonyFailure) Reset() { *m = CeremonyFailure{} } +func (m *CeremonyFailure) String() string { return proto.CompactTextString(m) } +func (*CeremonyFailure) ProtoMessage() {} +func (*CeremonyFailure) Descriptor() ([]byte, []int) { + return fileDescriptor_e17e78e0f19a1ac0, []int{15} +} +func (m *CeremonyFailure) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CeremonyFailure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CeremonyFailure.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 *CeremonyFailure) XXX_Merge(src proto.Message) { + xxx_messageInfo_CeremonyFailure.Merge(m, src) +} +func (m *CeremonyFailure) XXX_Size() int { + return m.Size() +} +func (m *CeremonyFailure) XXX_DiscardUnknown() { + xxx_messageInfo_CeremonyFailure.DiscardUnknown(m) +} + +var xxx_messageInfo_CeremonyFailure proto.InternalMessageInfo + +type isCeremonyFailure_Failure interface { + isCeremonyFailure_Failure() + MarshalTo([]byte) (int, error) + Size() int +} + +type CeremonyFailure_Timeout_ struct { + Timeout *CeremonyFailure_Timeout `protobuf:"bytes,1,opt,name=timeout,proto3,oneof" json:"timeout,omitempty"` +} +type CeremonyFailure_BadCommitment_ struct { + BadCommitment *CeremonyFailure_BadCommitment `protobuf:"bytes,2,opt,name=bad_commitment,json=badCommitment,proto3,oneof" json:"bad_commitment,omitempty"` +} +type CeremonyFailure_BadShare_ struct { + BadShare *CeremonyFailure_BadShare `protobuf:"bytes,3,opt,name=bad_share,json=badShare,proto3,oneof" json:"bad_share,omitempty"` +} +type CeremonyFailure_Canceled_ struct { + Canceled *CeremonyFailure_Canceled `protobuf:"bytes,4,opt,name=canceled,proto3,oneof" json:"canceled,omitempty"` +} + +func (*CeremonyFailure_Timeout_) isCeremonyFailure_Failure() {} +func (*CeremonyFailure_BadCommitment_) isCeremonyFailure_Failure() {} +func (*CeremonyFailure_BadShare_) isCeremonyFailure_Failure() {} +func (*CeremonyFailure_Canceled_) isCeremonyFailure_Failure() {} + +func (m *CeremonyFailure) GetFailure() isCeremonyFailure_Failure { + if m != nil { + return m.Failure + } + return nil +} + +func (m *CeremonyFailure) GetTimeout() *CeremonyFailure_Timeout { + if x, ok := m.GetFailure().(*CeremonyFailure_Timeout_); ok { + return x.Timeout + } + return nil +} + +func (m *CeremonyFailure) GetBadCommitment() *CeremonyFailure_BadCommitment { + if x, ok := m.GetFailure().(*CeremonyFailure_BadCommitment_); ok { + return x.BadCommitment + } + return nil +} + +func (m *CeremonyFailure) GetBadShare() *CeremonyFailure_BadShare { + if x, ok := m.GetFailure().(*CeremonyFailure_BadShare_); ok { + return x.BadShare + } + return nil +} + +func (m *CeremonyFailure) GetCanceled() *CeremonyFailure_Canceled { + if x, ok := m.GetFailure().(*CeremonyFailure_Canceled_); ok { + return x.Canceled + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*CeremonyFailure) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*CeremonyFailure_Timeout_)(nil), + (*CeremonyFailure_BadCommitment_)(nil), + (*CeremonyFailure_BadShare_)(nil), + (*CeremonyFailure_Canceled_)(nil), + } +} + +type CeremonyFailure_Timeout struct { +} + +func (m *CeremonyFailure_Timeout) Reset() { *m = CeremonyFailure_Timeout{} } +func (m *CeremonyFailure_Timeout) String() string { return proto.CompactTextString(m) } +func (*CeremonyFailure_Timeout) ProtoMessage() {} +func (*CeremonyFailure_Timeout) Descriptor() ([]byte, []int) { + return fileDescriptor_e17e78e0f19a1ac0, []int{15, 0} +} +func (m *CeremonyFailure_Timeout) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CeremonyFailure_Timeout) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CeremonyFailure_Timeout.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 *CeremonyFailure_Timeout) XXX_Merge(src proto.Message) { + xxx_messageInfo_CeremonyFailure_Timeout.Merge(m, src) +} +func (m *CeremonyFailure_Timeout) XXX_Size() int { + return m.Size() +} +func (m *CeremonyFailure_Timeout) XXX_DiscardUnknown() { + xxx_messageInfo_CeremonyFailure_Timeout.DiscardUnknown(m) +} + +var xxx_messageInfo_CeremonyFailure_Timeout proto.InternalMessageInfo + +type CeremonyFailure_BadCommitment struct { +} + +func (m *CeremonyFailure_BadCommitment) Reset() { *m = CeremonyFailure_BadCommitment{} } +func (m *CeremonyFailure_BadCommitment) String() string { return proto.CompactTextString(m) } +func (*CeremonyFailure_BadCommitment) ProtoMessage() {} +func (*CeremonyFailure_BadCommitment) Descriptor() ([]byte, []int) { + return fileDescriptor_e17e78e0f19a1ac0, []int{15, 1} +} +func (m *CeremonyFailure_BadCommitment) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CeremonyFailure_BadCommitment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CeremonyFailure_BadCommitment.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 *CeremonyFailure_BadCommitment) XXX_Merge(src proto.Message) { + xxx_messageInfo_CeremonyFailure_BadCommitment.Merge(m, src) +} +func (m *CeremonyFailure_BadCommitment) XXX_Size() int { + return m.Size() +} +func (m *CeremonyFailure_BadCommitment) XXX_DiscardUnknown() { + xxx_messageInfo_CeremonyFailure_BadCommitment.DiscardUnknown(m) +} + +var xxx_messageInfo_CeremonyFailure_BadCommitment proto.InternalMessageInfo + +type CeremonyFailure_BadShare struct { +} + +func (m *CeremonyFailure_BadShare) Reset() { *m = CeremonyFailure_BadShare{} } +func (m *CeremonyFailure_BadShare) String() string { return proto.CompactTextString(m) } +func (*CeremonyFailure_BadShare) ProtoMessage() {} +func (*CeremonyFailure_BadShare) Descriptor() ([]byte, []int) { + return fileDescriptor_e17e78e0f19a1ac0, []int{15, 2} +} +func (m *CeremonyFailure_BadShare) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CeremonyFailure_BadShare) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CeremonyFailure_BadShare.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 *CeremonyFailure_BadShare) XXX_Merge(src proto.Message) { + xxx_messageInfo_CeremonyFailure_BadShare.Merge(m, src) +} +func (m *CeremonyFailure_BadShare) XXX_Size() int { + return m.Size() +} +func (m *CeremonyFailure_BadShare) XXX_DiscardUnknown() { + xxx_messageInfo_CeremonyFailure_BadShare.DiscardUnknown(m) +} + +var xxx_messageInfo_CeremonyFailure_BadShare proto.InternalMessageInfo + +type CeremonyFailure_Canceled struct { +} + +func (m *CeremonyFailure_Canceled) Reset() { *m = CeremonyFailure_Canceled{} } +func (m *CeremonyFailure_Canceled) String() string { return proto.CompactTextString(m) } +func (*CeremonyFailure_Canceled) ProtoMessage() {} +func (*CeremonyFailure_Canceled) Descriptor() ([]byte, []int) { + return fileDescriptor_e17e78e0f19a1ac0, []int{15, 3} +} +func (m *CeremonyFailure_Canceled) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CeremonyFailure_Canceled) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CeremonyFailure_Canceled.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 *CeremonyFailure_Canceled) XXX_Merge(src proto.Message) { + xxx_messageInfo_CeremonyFailure_Canceled.Merge(m, src) +} +func (m *CeremonyFailure_Canceled) XXX_Size() int { + return m.Size() +} +func (m *CeremonyFailure_Canceled) XXX_DiscardUnknown() { + xxx_messageInfo_CeremonyFailure_Canceled.DiscardUnknown(m) +} + +var xxx_messageInfo_CeremonyFailure_Canceled proto.InternalMessageInfo + +// The data recorded on-chain about the current state of a signing ceremony. +// +// The state machine of a signing ceremony is depicted in the following diagram: +// ``` +// ┌───────┐ ┌─────────────┐ ┌─────────────┐ ┌────────┐ +// │Pending│──▶│StartedRound1│──▶│StartedRound2│──▶│Finished│ +// └───────┘ └─────────────┘ └─────────────┘ ├────────┤ +// +// │ │ │ │AuthData│ +// │ │ │ └────────┘ +// │ │ │ +// │ │ │ ┌────────┐ +// └──────────────┴─────────────────┴─────────▶│ Failed │ +// └────────┘ +// +// ``` +// +// The ceremony steps are described in the FROST I-D: +// https://www.ietf.org/archive/id/draft-irtf-cfrg-frost-11.html +type CeremonyState struct { + // Types that are valid to be assigned to State: + // *CeremonyState_Pending_ + // *CeremonyState_StartedRound_1 + // *CeremonyState_StartedRound_2 + // *CeremonyState_Finished_ + // *CeremonyState_Failed_ + State isCeremonyState_State `protobuf_oneof:"state"` +} + +func (m *CeremonyState) Reset() { *m = CeremonyState{} } +func (m *CeremonyState) String() string { return proto.CompactTextString(m) } +func (*CeremonyState) ProtoMessage() {} +func (*CeremonyState) Descriptor() ([]byte, []int) { + return fileDescriptor_e17e78e0f19a1ac0, []int{16} +} +func (m *CeremonyState) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CeremonyState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CeremonyState.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 *CeremonyState) XXX_Merge(src proto.Message) { + xxx_messageInfo_CeremonyState.Merge(m, src) +} +func (m *CeremonyState) XXX_Size() int { + return m.Size() +} +func (m *CeremonyState) XXX_DiscardUnknown() { + xxx_messageInfo_CeremonyState.DiscardUnknown(m) +} + +var xxx_messageInfo_CeremonyState proto.InternalMessageInfo + +type isCeremonyState_State interface { + isCeremonyState_State() + MarshalTo([]byte) (int, error) + Size() int +} + +type CeremonyState_Pending_ struct { + Pending *CeremonyState_Pending `protobuf:"bytes,1,opt,name=pending,proto3,oneof" json:"pending,omitempty"` +} +type CeremonyState_StartedRound_1 struct { + StartedRound_1 *CeremonyState_StartedRound1 `protobuf:"bytes,2,opt,name=started_round_1,json=startedRound1,proto3,oneof" json:"started_round_1,omitempty"` +} +type CeremonyState_StartedRound_2 struct { + StartedRound_2 *CeremonyState_StartedRound2 `protobuf:"bytes,3,opt,name=started_round_2,json=startedRound2,proto3,oneof" json:"started_round_2,omitempty"` +} +type CeremonyState_Finished_ struct { + Finished *CeremonyState_Finished `protobuf:"bytes,4,opt,name=finished,proto3,oneof" json:"finished,omitempty"` +} +type CeremonyState_Failed_ struct { + Failed *CeremonyState_Failed `protobuf:"bytes,5,opt,name=failed,proto3,oneof" json:"failed,omitempty"` +} + +func (*CeremonyState_Pending_) isCeremonyState_State() {} +func (*CeremonyState_StartedRound_1) isCeremonyState_State() {} +func (*CeremonyState_StartedRound_2) isCeremonyState_State() {} +func (*CeremonyState_Finished_) isCeremonyState_State() {} +func (*CeremonyState_Failed_) isCeremonyState_State() {} + +func (m *CeremonyState) GetState() isCeremonyState_State { + if m != nil { + return m.State + } + return nil +} + +func (m *CeremonyState) GetPending() *CeremonyState_Pending { + if x, ok := m.GetState().(*CeremonyState_Pending_); ok { + return x.Pending + } + return nil +} + +func (m *CeremonyState) GetStartedRound_1() *CeremonyState_StartedRound1 { + if x, ok := m.GetState().(*CeremonyState_StartedRound_1); ok { + return x.StartedRound_1 + } + return nil +} + +func (m *CeremonyState) GetStartedRound_2() *CeremonyState_StartedRound2 { + if x, ok := m.GetState().(*CeremonyState_StartedRound_2); ok { + return x.StartedRound_2 + } + return nil +} + +func (m *CeremonyState) GetFinished() *CeremonyState_Finished { + if x, ok := m.GetState().(*CeremonyState_Finished_); ok { + return x.Finished + } + return nil +} + +func (m *CeremonyState) GetFailed() *CeremonyState_Failed { + if x, ok := m.GetState().(*CeremonyState_Failed_); ok { + return x.Failed + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*CeremonyState) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*CeremonyState_Pending_)(nil), + (*CeremonyState_StartedRound_1)(nil), + (*CeremonyState_StartedRound_2)(nil), + (*CeremonyState_Finished_)(nil), + (*CeremonyState_Failed_)(nil), + } +} + +// A ceremony that has not yet started. +// +// For instance, a request could be queued until sufficient pre-authorizations were recorded on the ledger. +type CeremonyState_Pending struct { +} + +func (m *CeremonyState_Pending) Reset() { *m = CeremonyState_Pending{} } +func (m *CeremonyState_Pending) String() string { return proto.CompactTextString(m) } +func (*CeremonyState_Pending) ProtoMessage() {} +func (*CeremonyState_Pending) Descriptor() ([]byte, []int) { + return fileDescriptor_e17e78e0f19a1ac0, []int{16, 0} +} +func (m *CeremonyState_Pending) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CeremonyState_Pending) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CeremonyState_Pending.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 *CeremonyState_Pending) XXX_Merge(src proto.Message) { + xxx_messageInfo_CeremonyState_Pending.Merge(m, src) +} +func (m *CeremonyState_Pending) XXX_Size() int { + return m.Size() +} +func (m *CeremonyState_Pending) XXX_DiscardUnknown() { + xxx_messageInfo_CeremonyState_Pending.DiscardUnknown(m) +} + +var xxx_messageInfo_CeremonyState_Pending proto.InternalMessageInfo + +// A ceremony that has started round 1. +// +// The committee has been chosen and the ledger is waiting to record round 1 contributions from all committee members. +type CeremonyState_StartedRound1 struct { + // The committee performing the ceremony. + Committee *Committee `protobuf:"bytes,1,opt,name=committee,proto3" json:"committee,omitempty"` + // A list of commitment messages received so far (begins empty). + Commitments []*AuthorizeCommitment `protobuf:"bytes,2,rep,name=commitments,proto3" json:"commitments,omitempty"` +} + +func (m *CeremonyState_StartedRound1) Reset() { *m = CeremonyState_StartedRound1{} } +func (m *CeremonyState_StartedRound1) String() string { return proto.CompactTextString(m) } +func (*CeremonyState_StartedRound1) ProtoMessage() {} +func (*CeremonyState_StartedRound1) Descriptor() ([]byte, []int) { + return fileDescriptor_e17e78e0f19a1ac0, []int{16, 1} +} +func (m *CeremonyState_StartedRound1) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CeremonyState_StartedRound1) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CeremonyState_StartedRound1.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 *CeremonyState_StartedRound1) XXX_Merge(src proto.Message) { + xxx_messageInfo_CeremonyState_StartedRound1.Merge(m, src) +} +func (m *CeremonyState_StartedRound1) XXX_Size() int { + return m.Size() +} +func (m *CeremonyState_StartedRound1) XXX_DiscardUnknown() { + xxx_messageInfo_CeremonyState_StartedRound1.DiscardUnknown(m) +} + +var xxx_messageInfo_CeremonyState_StartedRound1 proto.InternalMessageInfo + +func (m *CeremonyState_StartedRound1) GetCommittee() *Committee { + if m != nil { + return m.Committee + } + return nil +} + +func (m *CeremonyState_StartedRound1) GetCommitments() []*AuthorizeCommitment { + if m != nil { + return m.Commitments + } + return nil +} + +// A ceremony that has started round 2. +// +// The committee has been chosen, all round 1 commitments have been recorded, and the ledger is waiting to record round 1 contributions from all committee members. +type CeremonyState_StartedRound2 struct { + // The committee performing the ceremony. + Committee *Committee `protobuf:"bytes,1,opt,name=committee,proto3" json:"committee,omitempty"` + // A list of commitment messages received in round 1. + Commitments []*AuthorizeCommitment `protobuf:"bytes,2,rep,name=commitments,proto3" json:"commitments,omitempty"` + // A list of authorization share messages received so far (begins empty). + Shares []*AuthorizeShare `protobuf:"bytes,3,rep,name=shares,proto3" json:"shares,omitempty"` +} + +func (m *CeremonyState_StartedRound2) Reset() { *m = CeremonyState_StartedRound2{} } +func (m *CeremonyState_StartedRound2) String() string { return proto.CompactTextString(m) } +func (*CeremonyState_StartedRound2) ProtoMessage() {} +func (*CeremonyState_StartedRound2) Descriptor() ([]byte, []int) { + return fileDescriptor_e17e78e0f19a1ac0, []int{16, 2} +} +func (m *CeremonyState_StartedRound2) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CeremonyState_StartedRound2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CeremonyState_StartedRound2.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 *CeremonyState_StartedRound2) XXX_Merge(src proto.Message) { + xxx_messageInfo_CeremonyState_StartedRound2.Merge(m, src) +} +func (m *CeremonyState_StartedRound2) XXX_Size() int { + return m.Size() +} +func (m *CeremonyState_StartedRound2) XXX_DiscardUnknown() { + xxx_messageInfo_CeremonyState_StartedRound2.DiscardUnknown(m) +} + +var xxx_messageInfo_CeremonyState_StartedRound2 proto.InternalMessageInfo + +func (m *CeremonyState_StartedRound2) GetCommittee() *Committee { + if m != nil { + return m.Committee + } + return nil +} + +func (m *CeremonyState_StartedRound2) GetCommitments() []*AuthorizeCommitment { + if m != nil { + return m.Commitments + } + return nil +} + +func (m *CeremonyState_StartedRound2) GetShares() []*AuthorizeShare { + if m != nil { + return m.Shares + } + return nil +} + +// A ceremony that has successfully finished. +// +// The transcript of the ceremony is recorded along with the resulting `AuthorizationData`. +type CeremonyState_Finished struct { + // The committee performing the ceremony. + Committee *Committee `protobuf:"bytes,1,opt,name=committee,proto3" json:"committee,omitempty"` + // A list of commitment messages received in round 1. + Commitments []*AuthorizeCommitment `protobuf:"bytes,2,rep,name=commitments,proto3" json:"commitments,omitempty"` + // A list of authorization share messages received in round 2. + Shares []*AuthorizeShare `protobuf:"bytes,3,rep,name=shares,proto3" json:"shares,omitempty"` + // The authorization data resulting from the ceremony. + AuthData *v1alpha12.AuthorizationData `protobuf:"bytes,4,opt,name=auth_data,json=authData,proto3" json:"auth_data,omitempty"` +} + +func (m *CeremonyState_Finished) Reset() { *m = CeremonyState_Finished{} } +func (m *CeremonyState_Finished) String() string { return proto.CompactTextString(m) } +func (*CeremonyState_Finished) ProtoMessage() {} +func (*CeremonyState_Finished) Descriptor() ([]byte, []int) { + return fileDescriptor_e17e78e0f19a1ac0, []int{16, 3} +} +func (m *CeremonyState_Finished) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CeremonyState_Finished) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CeremonyState_Finished.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 *CeremonyState_Finished) XXX_Merge(src proto.Message) { + xxx_messageInfo_CeremonyState_Finished.Merge(m, src) +} +func (m *CeremonyState_Finished) XXX_Size() int { + return m.Size() +} +func (m *CeremonyState_Finished) XXX_DiscardUnknown() { + xxx_messageInfo_CeremonyState_Finished.DiscardUnknown(m) +} + +var xxx_messageInfo_CeremonyState_Finished proto.InternalMessageInfo + +func (m *CeremonyState_Finished) GetCommittee() *Committee { + if m != nil { + return m.Committee + } + return nil +} + +func (m *CeremonyState_Finished) GetCommitments() []*AuthorizeCommitment { + if m != nil { + return m.Commitments + } + return nil +} + +func (m *CeremonyState_Finished) GetShares() []*AuthorizeShare { + if m != nil { + return m.Shares + } + return nil +} + +func (m *CeremonyState_Finished) GetAuthData() *v1alpha12.AuthorizationData { + if m != nil { + return m.AuthData + } + return nil +} + +// A ceremony that failed. +// +// The transcript of the ceremony is recorded along with the reason for the failure. +type CeremonyState_Failed struct { + // The committee performing the ceremony. + Committee *Committee `protobuf:"bytes,1,opt,name=committee,proto3" json:"committee,omitempty"` + // A list of commitment messages received in round 1, if any. + Commitments []*AuthorizeCommitment `protobuf:"bytes,2,rep,name=commitments,proto3" json:"commitments,omitempty"` + // A list of authorization share messages received in round 2, if any. + Shares []*AuthorizeShare `protobuf:"bytes,3,rep,name=shares,proto3" json:"shares,omitempty"` + // A description of the failure. + Failure *CeremonyFailure `protobuf:"bytes,4,opt,name=failure,proto3" json:"failure,omitempty"` +} + +func (m *CeremonyState_Failed) Reset() { *m = CeremonyState_Failed{} } +func (m *CeremonyState_Failed) String() string { return proto.CompactTextString(m) } +func (*CeremonyState_Failed) ProtoMessage() {} +func (*CeremonyState_Failed) Descriptor() ([]byte, []int) { + return fileDescriptor_e17e78e0f19a1ac0, []int{16, 4} +} +func (m *CeremonyState_Failed) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CeremonyState_Failed) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CeremonyState_Failed.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 *CeremonyState_Failed) XXX_Merge(src proto.Message) { + xxx_messageInfo_CeremonyState_Failed.Merge(m, src) +} +func (m *CeremonyState_Failed) XXX_Size() int { + return m.Size() +} +func (m *CeremonyState_Failed) XXX_DiscardUnknown() { + xxx_messageInfo_CeremonyState_Failed.DiscardUnknown(m) +} + +var xxx_messageInfo_CeremonyState_Failed proto.InternalMessageInfo + +func (m *CeremonyState_Failed) GetCommittee() *Committee { + if m != nil { + return m.Committee + } + return nil +} + +func (m *CeremonyState_Failed) GetCommitments() []*AuthorizeCommitment { + if m != nil { + return m.Commitments + } + return nil +} + +func (m *CeremonyState_Failed) GetShares() []*AuthorizeShare { + if m != nil { + return m.Shares + } + return nil +} + +func (m *CeremonyState_Failed) GetFailure() *CeremonyFailure { + if m != nil { + return m.Failure + } + return nil +} + +// A packet of data sent to the Narsil ledger. +// +// This structure is what Narsil uses as a Tendermint transaction. However, we +// use the word "packet" rather than "transaction" here so that it's always +// unambiguous whether we're referring to data posted to the Penumbra chain or +// to a Narsil instance. +type NarsilPacket struct { + // Types that are valid to be assigned to Packet: + // *NarsilPacket_AuthorizeRequest + // *NarsilPacket_AuthorizeCommitment + // *NarsilPacket_AuthorizeShare + // *NarsilPacket_DkgRound_1 + // *NarsilPacket_DkgRound_2 + Packet isNarsilPacket_Packet `protobuf_oneof:"packet"` +} + +func (m *NarsilPacket) Reset() { *m = NarsilPacket{} } +func (m *NarsilPacket) String() string { return proto.CompactTextString(m) } +func (*NarsilPacket) ProtoMessage() {} +func (*NarsilPacket) Descriptor() ([]byte, []int) { + return fileDescriptor_e17e78e0f19a1ac0, []int{17} +} +func (m *NarsilPacket) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NarsilPacket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NarsilPacket.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 *NarsilPacket) XXX_Merge(src proto.Message) { + xxx_messageInfo_NarsilPacket.Merge(m, src) +} +func (m *NarsilPacket) XXX_Size() int { + return m.Size() +} +func (m *NarsilPacket) XXX_DiscardUnknown() { + xxx_messageInfo_NarsilPacket.DiscardUnknown(m) +} + +var xxx_messageInfo_NarsilPacket proto.InternalMessageInfo + +type isNarsilPacket_Packet interface { + isNarsilPacket_Packet() + MarshalTo([]byte) (int, error) + Size() int +} + +type NarsilPacket_AuthorizeRequest struct { + AuthorizeRequest *v1alpha13.AuthorizeRequest `protobuf:"bytes,1,opt,name=authorize_request,json=authorizeRequest,proto3,oneof" json:"authorize_request,omitempty"` +} +type NarsilPacket_AuthorizeCommitment struct { + AuthorizeCommitment *AuthorizeCommitment `protobuf:"bytes,2,opt,name=authorize_commitment,json=authorizeCommitment,proto3,oneof" json:"authorize_commitment,omitempty"` +} +type NarsilPacket_AuthorizeShare struct { + AuthorizeShare *AuthorizeShare `protobuf:"bytes,3,opt,name=authorize_share,json=authorizeShare,proto3,oneof" json:"authorize_share,omitempty"` +} +type NarsilPacket_DkgRound_1 struct { + DkgRound_1 *DkgRound1 `protobuf:"bytes,1000,opt,name=dkg_round_1,json=dkgRound1,proto3,oneof" json:"dkg_round_1,omitempty"` +} +type NarsilPacket_DkgRound_2 struct { + DkgRound_2 *DkgRound2 `protobuf:"bytes,1001,opt,name=dkg_round_2,json=dkgRound2,proto3,oneof" json:"dkg_round_2,omitempty"` +} + +func (*NarsilPacket_AuthorizeRequest) isNarsilPacket_Packet() {} +func (*NarsilPacket_AuthorizeCommitment) isNarsilPacket_Packet() {} +func (*NarsilPacket_AuthorizeShare) isNarsilPacket_Packet() {} +func (*NarsilPacket_DkgRound_1) isNarsilPacket_Packet() {} +func (*NarsilPacket_DkgRound_2) isNarsilPacket_Packet() {} + +func (m *NarsilPacket) GetPacket() isNarsilPacket_Packet { + if m != nil { + return m.Packet + } + return nil +} + +func (m *NarsilPacket) GetAuthorizeRequest() *v1alpha13.AuthorizeRequest { + if x, ok := m.GetPacket().(*NarsilPacket_AuthorizeRequest); ok { + return x.AuthorizeRequest + } + return nil +} + +func (m *NarsilPacket) GetAuthorizeCommitment() *AuthorizeCommitment { + if x, ok := m.GetPacket().(*NarsilPacket_AuthorizeCommitment); ok { + return x.AuthorizeCommitment + } + return nil +} + +func (m *NarsilPacket) GetAuthorizeShare() *AuthorizeShare { + if x, ok := m.GetPacket().(*NarsilPacket_AuthorizeShare); ok { + return x.AuthorizeShare + } + return nil +} + +func (m *NarsilPacket) GetDkgRound_1() *DkgRound1 { + if x, ok := m.GetPacket().(*NarsilPacket_DkgRound_1); ok { + return x.DkgRound_1 + } + return nil +} + +func (m *NarsilPacket) GetDkgRound_2() *DkgRound2 { + if x, ok := m.GetPacket().(*NarsilPacket_DkgRound_2); ok { + return x.DkgRound_2 + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*NarsilPacket) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*NarsilPacket_AuthorizeRequest)(nil), + (*NarsilPacket_AuthorizeCommitment)(nil), + (*NarsilPacket_AuthorizeShare)(nil), + (*NarsilPacket_DkgRound_1)(nil), + (*NarsilPacket_DkgRound_2)(nil), + } +} + +// A wrapper around the FROST commitment message, exchanged in round 1 of the +// signing protocol for a single signature. +type FrostCommitment struct { + Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` +} + +func (m *FrostCommitment) Reset() { *m = FrostCommitment{} } +func (m *FrostCommitment) String() string { return proto.CompactTextString(m) } +func (*FrostCommitment) ProtoMessage() {} +func (*FrostCommitment) Descriptor() ([]byte, []int) { + return fileDescriptor_e17e78e0f19a1ac0, []int{18} +} +func (m *FrostCommitment) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FrostCommitment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_FrostCommitment.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 *FrostCommitment) XXX_Merge(src proto.Message) { + xxx_messageInfo_FrostCommitment.Merge(m, src) +} +func (m *FrostCommitment) XXX_Size() int { + return m.Size() +} +func (m *FrostCommitment) XXX_DiscardUnknown() { + xxx_messageInfo_FrostCommitment.DiscardUnknown(m) +} + +var xxx_messageInfo_FrostCommitment proto.InternalMessageInfo + +func (m *FrostCommitment) GetPayload() []byte { + if m != nil { + return m.Payload + } + return nil +} + +// A wrapper around the FROST signature share, exchanged in round 2 of the +// signing protocol for a single signature. +type FrostSignatureShare struct { + Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` +} + +func (m *FrostSignatureShare) Reset() { *m = FrostSignatureShare{} } +func (m *FrostSignatureShare) String() string { return proto.CompactTextString(m) } +func (*FrostSignatureShare) ProtoMessage() {} +func (*FrostSignatureShare) Descriptor() ([]byte, []int) { + return fileDescriptor_e17e78e0f19a1ac0, []int{19} +} +func (m *FrostSignatureShare) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FrostSignatureShare) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_FrostSignatureShare.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 *FrostSignatureShare) XXX_Merge(src proto.Message) { + xxx_messageInfo_FrostSignatureShare.Merge(m, src) +} +func (m *FrostSignatureShare) XXX_Size() int { + return m.Size() +} +func (m *FrostSignatureShare) XXX_DiscardUnknown() { + xxx_messageInfo_FrostSignatureShare.DiscardUnknown(m) +} + +var xxx_messageInfo_FrostSignatureShare proto.InternalMessageInfo + +func (m *FrostSignatureShare) GetPayload() []byte { + if m != nil { + return m.Payload + } + return nil +} + +// A Narsil shard's commitment message for a single ceremony, which may perform +// multiple signatures (one for each spend in the `AuthorizeRequest`'s +// `TransactionPlan`). +// +// This bundle of messages is signed with the shard's `ShardMessageKey` to +// prevent tampering (e.g., reordering of the internal FROST messages, etc). +type AuthorizeCommitment struct { + Body *AuthorizeCommitment_Body `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"` + Signer *ShardMessageKey `protobuf:"bytes,2,opt,name=signer,proto3" json:"signer,omitempty"` + Signature *ShardMessageSignature `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"` +} + +func (m *AuthorizeCommitment) Reset() { *m = AuthorizeCommitment{} } +func (m *AuthorizeCommitment) String() string { return proto.CompactTextString(m) } +func (*AuthorizeCommitment) ProtoMessage() {} +func (*AuthorizeCommitment) Descriptor() ([]byte, []int) { + return fileDescriptor_e17e78e0f19a1ac0, []int{20} +} +func (m *AuthorizeCommitment) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AuthorizeCommitment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AuthorizeCommitment.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 *AuthorizeCommitment) XXX_Merge(src proto.Message) { + xxx_messageInfo_AuthorizeCommitment.Merge(m, src) +} +func (m *AuthorizeCommitment) XXX_Size() int { + return m.Size() +} +func (m *AuthorizeCommitment) XXX_DiscardUnknown() { + xxx_messageInfo_AuthorizeCommitment.DiscardUnknown(m) +} + +var xxx_messageInfo_AuthorizeCommitment proto.InternalMessageInfo + +func (m *AuthorizeCommitment) GetBody() *AuthorizeCommitment_Body { + if m != nil { + return m.Body + } + return nil +} + +func (m *AuthorizeCommitment) GetSigner() *ShardMessageKey { + if m != nil { + return m.Signer + } + return nil +} + +func (m *AuthorizeCommitment) GetSignature() *ShardMessageSignature { + if m != nil { + return m.Signature + } + return nil +} + +type AuthorizeCommitment_Body struct { + CeremonyIndex *CeremonyIndex `protobuf:"bytes,1,opt,name=ceremony_index,json=ceremonyIndex,proto3" json:"ceremony_index,omitempty"` + Commitments []*FrostCommitment `protobuf:"bytes,2,rep,name=commitments,proto3" json:"commitments,omitempty"` +} + +func (m *AuthorizeCommitment_Body) Reset() { *m = AuthorizeCommitment_Body{} } +func (m *AuthorizeCommitment_Body) String() string { return proto.CompactTextString(m) } +func (*AuthorizeCommitment_Body) ProtoMessage() {} +func (*AuthorizeCommitment_Body) Descriptor() ([]byte, []int) { + return fileDescriptor_e17e78e0f19a1ac0, []int{20, 0} +} +func (m *AuthorizeCommitment_Body) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AuthorizeCommitment_Body) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AuthorizeCommitment_Body.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 *AuthorizeCommitment_Body) XXX_Merge(src proto.Message) { + xxx_messageInfo_AuthorizeCommitment_Body.Merge(m, src) +} +func (m *AuthorizeCommitment_Body) XXX_Size() int { + return m.Size() +} +func (m *AuthorizeCommitment_Body) XXX_DiscardUnknown() { + xxx_messageInfo_AuthorizeCommitment_Body.DiscardUnknown(m) +} + +var xxx_messageInfo_AuthorizeCommitment_Body proto.InternalMessageInfo + +func (m *AuthorizeCommitment_Body) GetCeremonyIndex() *CeremonyIndex { + if m != nil { + return m.CeremonyIndex + } + return nil +} + +func (m *AuthorizeCommitment_Body) GetCommitments() []*FrostCommitment { + if m != nil { + return m.Commitments + } + return nil +} + +// A Narsil shard's signature share message for a single ceremony, which may perform +// multiple signatures (one for each spend in the `AuthorizeRequest`'s +// `TransactionPlan`). +// +// This bundle of messages is signed with the shard's `ShardMessageKey` to +// prevent tampering (e.g., reordering of the internal FROST messages, etc). +type AuthorizeShare struct { + Body *AuthorizeShare_Body `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"` + Signer *ShardMessageKey `protobuf:"bytes,2,opt,name=signer,proto3" json:"signer,omitempty"` + Signature *ShardMessageSignature `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"` +} + +func (m *AuthorizeShare) Reset() { *m = AuthorizeShare{} } +func (m *AuthorizeShare) String() string { return proto.CompactTextString(m) } +func (*AuthorizeShare) ProtoMessage() {} +func (*AuthorizeShare) Descriptor() ([]byte, []int) { + return fileDescriptor_e17e78e0f19a1ac0, []int{21} +} +func (m *AuthorizeShare) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AuthorizeShare) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AuthorizeShare.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 *AuthorizeShare) XXX_Merge(src proto.Message) { + xxx_messageInfo_AuthorizeShare.Merge(m, src) +} +func (m *AuthorizeShare) XXX_Size() int { + return m.Size() +} +func (m *AuthorizeShare) XXX_DiscardUnknown() { + xxx_messageInfo_AuthorizeShare.DiscardUnknown(m) +} + +var xxx_messageInfo_AuthorizeShare proto.InternalMessageInfo + +func (m *AuthorizeShare) GetBody() *AuthorizeShare_Body { + if m != nil { + return m.Body + } + return nil +} + +func (m *AuthorizeShare) GetSigner() *ShardMessageKey { + if m != nil { + return m.Signer + } + return nil +} + +func (m *AuthorizeShare) GetSignature() *ShardMessageSignature { + if m != nil { + return m.Signature + } + return nil +} + +type AuthorizeShare_Body struct { + CeremonyIndex *CeremonyIndex `protobuf:"bytes,1,opt,name=ceremony_index,json=ceremonyIndex,proto3" json:"ceremony_index,omitempty"` + Commitments []*FrostCommitment `protobuf:"bytes,2,rep,name=commitments,proto3" json:"commitments,omitempty"` +} + +func (m *AuthorizeShare_Body) Reset() { *m = AuthorizeShare_Body{} } +func (m *AuthorizeShare_Body) String() string { return proto.CompactTextString(m) } +func (*AuthorizeShare_Body) ProtoMessage() {} +func (*AuthorizeShare_Body) Descriptor() ([]byte, []int) { + return fileDescriptor_e17e78e0f19a1ac0, []int{21, 0} +} +func (m *AuthorizeShare_Body) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AuthorizeShare_Body) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AuthorizeShare_Body.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 *AuthorizeShare_Body) XXX_Merge(src proto.Message) { + xxx_messageInfo_AuthorizeShare_Body.Merge(m, src) +} +func (m *AuthorizeShare_Body) XXX_Size() int { + return m.Size() +} +func (m *AuthorizeShare_Body) XXX_DiscardUnknown() { + xxx_messageInfo_AuthorizeShare_Body.DiscardUnknown(m) +} + +var xxx_messageInfo_AuthorizeShare_Body proto.InternalMessageInfo + +func (m *AuthorizeShare_Body) GetCeremonyIndex() *CeremonyIndex { + if m != nil { + return m.CeremonyIndex + } + return nil +} + +func (m *AuthorizeShare_Body) GetCommitments() []*FrostCommitment { + if m != nil { + return m.Commitments + } + return nil +} + +// A shard operator's round 1 contribution to the DKG ceremony. +type DkgRound1 struct { + Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` + Signer *ShardMessageKey `protobuf:"bytes,2,opt,name=signer,proto3" json:"signer,omitempty"` + Signature *ShardMessageSignature `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"` +} + +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_e17e78e0f19a1ac0, []int{22} +} +func (m *DkgRound1) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DkgRound1) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DkgRound1.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 *DkgRound1) XXX_Merge(src proto.Message) { + xxx_messageInfo_DkgRound1.Merge(m, src) +} +func (m *DkgRound1) XXX_Size() int { + return m.Size() +} +func (m *DkgRound1) XXX_DiscardUnknown() { + xxx_messageInfo_DkgRound1.DiscardUnknown(m) +} + +var xxx_messageInfo_DkgRound1 proto.InternalMessageInfo + +func (m *DkgRound1) GetPayload() []byte { + if m != nil { + return m.Payload + } + return nil +} + +func (m *DkgRound1) GetSigner() *ShardMessageKey { + if m != nil { + return m.Signer + } + return nil +} + +func (m *DkgRound1) GetSignature() *ShardMessageSignature { + if m != nil { + return m.Signature + } + return nil +} + +// A shard operator's round 2 contribution to the DKG ceremony. +type DkgRound2 struct { + Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` + Signer *ShardMessageKey `protobuf:"bytes,2,opt,name=signer,proto3" json:"signer,omitempty"` + Signature *ShardMessageSignature `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"` +} + +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_e17e78e0f19a1ac0, []int{23} +} +func (m *DkgRound2) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DkgRound2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DkgRound2.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 *DkgRound2) XXX_Merge(src proto.Message) { + xxx_messageInfo_DkgRound2.Merge(m, src) +} +func (m *DkgRound2) XXX_Size() int { + return m.Size() +} +func (m *DkgRound2) XXX_DiscardUnknown() { + xxx_messageInfo_DkgRound2.DiscardUnknown(m) +} + +var xxx_messageInfo_DkgRound2 proto.InternalMessageInfo + +func (m *DkgRound2) GetPayload() []byte { + if m != nil { + return m.Payload + } + return nil +} + +func (m *DkgRound2) GetSigner() *ShardMessageKey { + if m != nil { + return m.Signer + } + return nil +} + +func (m *DkgRound2) GetSignature() *ShardMessageSignature { + if m != nil { + return m.Signature + } + return nil +} + +// The data recorded on-chain about the current state of the DKG ceremony. +type DkgState struct { +} + +func (m *DkgState) Reset() { *m = DkgState{} } +func (m *DkgState) String() string { return proto.CompactTextString(m) } +func (*DkgState) ProtoMessage() {} +func (*DkgState) Descriptor() ([]byte, []int) { + return fileDescriptor_e17e78e0f19a1ac0, []int{24} +} +func (m *DkgState) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DkgState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DkgState.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 *DkgState) XXX_Merge(src proto.Message) { + xxx_messageInfo_DkgState.Merge(m, src) +} +func (m *DkgState) XXX_Size() int { + return m.Size() +} +func (m *DkgState) XXX_DiscardUnknown() { + xxx_messageInfo_DkgState.DiscardUnknown(m) +} + +var xxx_messageInfo_DkgState proto.InternalMessageInfo + +// The DKG has started round 1, and the ledger is waiting to record contributions from shard operators. +type DkgState_StartedRound1 struct { + // A list of round 1 messages received so far (begins empty). + Round_1Messages []*DkgRound1 `protobuf:"bytes,1,rep,name=round_1_messages,json=round1Messages,proto3" json:"round_1_messages,omitempty"` +} + +func (m *DkgState_StartedRound1) Reset() { *m = DkgState_StartedRound1{} } +func (m *DkgState_StartedRound1) String() string { return proto.CompactTextString(m) } +func (*DkgState_StartedRound1) ProtoMessage() {} +func (*DkgState_StartedRound1) Descriptor() ([]byte, []int) { + return fileDescriptor_e17e78e0f19a1ac0, []int{24, 0} +} +func (m *DkgState_StartedRound1) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DkgState_StartedRound1) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DkgState_StartedRound1.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 *DkgState_StartedRound1) XXX_Merge(src proto.Message) { + xxx_messageInfo_DkgState_StartedRound1.Merge(m, src) +} +func (m *DkgState_StartedRound1) XXX_Size() int { + return m.Size() +} +func (m *DkgState_StartedRound1) XXX_DiscardUnknown() { + xxx_messageInfo_DkgState_StartedRound1.DiscardUnknown(m) +} + +var xxx_messageInfo_DkgState_StartedRound1 proto.InternalMessageInfo + +func (m *DkgState_StartedRound1) GetRound_1Messages() []*DkgRound1 { + if m != nil { + return m.Round_1Messages + } + return nil +} + +// The DKG has started round 2, and the ledger is waiting to record contributions from shard operators. +type DkgState_StartedRound2 struct { + // A list of messages received during round 1. + Round_1Messages []*DkgRound1 `protobuf:"bytes,1,rep,name=round_1_messages,json=round1Messages,proto3" json:"round_1_messages,omitempty"` + // A list of round 2 messages received so far (begins empty). + Round_2Messages []*DkgRound2 `protobuf:"bytes,2,rep,name=round_2_messages,json=round2Messages,proto3" json:"round_2_messages,omitempty"` +} + +func (m *DkgState_StartedRound2) Reset() { *m = DkgState_StartedRound2{} } +func (m *DkgState_StartedRound2) String() string { return proto.CompactTextString(m) } +func (*DkgState_StartedRound2) ProtoMessage() {} +func (*DkgState_StartedRound2) Descriptor() ([]byte, []int) { + return fileDescriptor_e17e78e0f19a1ac0, []int{24, 1} +} +func (m *DkgState_StartedRound2) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DkgState_StartedRound2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DkgState_StartedRound2.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 *DkgState_StartedRound2) XXX_Merge(src proto.Message) { + xxx_messageInfo_DkgState_StartedRound2.Merge(m, src) +} +func (m *DkgState_StartedRound2) XXX_Size() int { + return m.Size() +} +func (m *DkgState_StartedRound2) XXX_DiscardUnknown() { + xxx_messageInfo_DkgState_StartedRound2.DiscardUnknown(m) +} + +var xxx_messageInfo_DkgState_StartedRound2 proto.InternalMessageInfo + +func (m *DkgState_StartedRound2) GetRound_1Messages() []*DkgRound1 { + if m != nil { + return m.Round_1Messages + } + return nil +} + +func (m *DkgState_StartedRound2) GetRound_2Messages() []*DkgRound2 { + if m != nil { + return m.Round_2Messages + } + return nil +} + +// The DKG has finished successfully, producing the jointly-controlled `AccountGroupInfo`. +// +// Unlike the signing ceremony, we don't record a failure case here: if the DKG fails, we abort the entire ledger. +type DkgState_Finished struct { + // A list of messages received during round 1. + Round_1Messages []*DkgRound1 `protobuf:"bytes,1,rep,name=round_1_messages,json=round1Messages,proto3" json:"round_1_messages,omitempty"` + // A list of messages received during round 2. + Round_2Messages []*DkgRound2 `protobuf:"bytes,2,rep,name=round_2_messages,json=round2Messages,proto3" json:"round_2_messages,omitempty"` + // The jointly-controlled `AccountGroupInfo` resulting from the DKG. + AccountGroupInfo *AccountGroupInfo `protobuf:"bytes,3,opt,name=account_group_info,json=accountGroupInfo,proto3" json:"account_group_info,omitempty"` +} + +func (m *DkgState_Finished) Reset() { *m = DkgState_Finished{} } +func (m *DkgState_Finished) String() string { return proto.CompactTextString(m) } +func (*DkgState_Finished) ProtoMessage() {} +func (*DkgState_Finished) Descriptor() ([]byte, []int) { + return fileDescriptor_e17e78e0f19a1ac0, []int{24, 2} +} +func (m *DkgState_Finished) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DkgState_Finished) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DkgState_Finished.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 *DkgState_Finished) XXX_Merge(src proto.Message) { + xxx_messageInfo_DkgState_Finished.Merge(m, src) +} +func (m *DkgState_Finished) XXX_Size() int { + return m.Size() +} +func (m *DkgState_Finished) XXX_DiscardUnknown() { + xxx_messageInfo_DkgState_Finished.DiscardUnknown(m) +} + +var xxx_messageInfo_DkgState_Finished proto.InternalMessageInfo + +func (m *DkgState_Finished) GetRound_1Messages() []*DkgRound1 { + if m != nil { + return m.Round_1Messages + } + return nil +} + +func (m *DkgState_Finished) GetRound_2Messages() []*DkgRound2 { + if m != nil { + return m.Round_2Messages + } + return nil +} + +func (m *DkgState_Finished) GetAccountGroupInfo() *AccountGroupInfo { + if m != nil { + return m.AccountGroupInfo + } + return nil +} + +func init() { + proto.RegisterType((*InfoRequest)(nil), "penumbra.narsil.ledger.v1alpha1.InfoRequest") + proto.RegisterType((*InfoResponse)(nil), "penumbra.narsil.ledger.v1alpha1.InfoResponse") + proto.RegisterType((*ShardIdentityKey)(nil), "penumbra.narsil.ledger.v1alpha1.ShardIdentityKey") + proto.RegisterType((*ConsensusKey)(nil), "penumbra.narsil.ledger.v1alpha1.ConsensusKey") + proto.RegisterType((*ShardMessageKey)(nil), "penumbra.narsil.ledger.v1alpha1.ShardMessageKey") + proto.RegisterType((*ShardKey)(nil), "penumbra.narsil.ledger.v1alpha1.ShardKey") + proto.RegisterType((*ShardMessageSignature)(nil), "penumbra.narsil.ledger.v1alpha1.ShardMessageSignature") + proto.RegisterType((*ShardDescription)(nil), "penumbra.narsil.ledger.v1alpha1.ShardDescription") + proto.RegisterType((*ShardOperator)(nil), "penumbra.narsil.ledger.v1alpha1.ShardOperator") + proto.RegisterType((*GenesisData)(nil), "penumbra.narsil.ledger.v1alpha1.GenesisData") + proto.RegisterType((*AccountGroupInfo)(nil), "penumbra.narsil.ledger.v1alpha1.AccountGroupInfo") + proto.RegisterType((*ShardInfo)(nil), "penumbra.narsil.ledger.v1alpha1.ShardInfo") + proto.RegisterType((*RequestIndex)(nil), "penumbra.narsil.ledger.v1alpha1.RequestIndex") + proto.RegisterType((*CeremonyIndex)(nil), "penumbra.narsil.ledger.v1alpha1.CeremonyIndex") + proto.RegisterType((*Committee)(nil), "penumbra.narsil.ledger.v1alpha1.Committee") + proto.RegisterType((*CeremonyFailure)(nil), "penumbra.narsil.ledger.v1alpha1.CeremonyFailure") + proto.RegisterType((*CeremonyFailure_Timeout)(nil), "penumbra.narsil.ledger.v1alpha1.CeremonyFailure.Timeout") + proto.RegisterType((*CeremonyFailure_BadCommitment)(nil), "penumbra.narsil.ledger.v1alpha1.CeremonyFailure.BadCommitment") + proto.RegisterType((*CeremonyFailure_BadShare)(nil), "penumbra.narsil.ledger.v1alpha1.CeremonyFailure.BadShare") + proto.RegisterType((*CeremonyFailure_Canceled)(nil), "penumbra.narsil.ledger.v1alpha1.CeremonyFailure.Canceled") + proto.RegisterType((*CeremonyState)(nil), "penumbra.narsil.ledger.v1alpha1.CeremonyState") + proto.RegisterType((*CeremonyState_Pending)(nil), "penumbra.narsil.ledger.v1alpha1.CeremonyState.Pending") + proto.RegisterType((*CeremonyState_StartedRound1)(nil), "penumbra.narsil.ledger.v1alpha1.CeremonyState.StartedRound1") + proto.RegisterType((*CeremonyState_StartedRound2)(nil), "penumbra.narsil.ledger.v1alpha1.CeremonyState.StartedRound2") + proto.RegisterType((*CeremonyState_Finished)(nil), "penumbra.narsil.ledger.v1alpha1.CeremonyState.Finished") + proto.RegisterType((*CeremonyState_Failed)(nil), "penumbra.narsil.ledger.v1alpha1.CeremonyState.Failed") + proto.RegisterType((*NarsilPacket)(nil), "penumbra.narsil.ledger.v1alpha1.NarsilPacket") + proto.RegisterType((*FrostCommitment)(nil), "penumbra.narsil.ledger.v1alpha1.FrostCommitment") + proto.RegisterType((*FrostSignatureShare)(nil), "penumbra.narsil.ledger.v1alpha1.FrostSignatureShare") + proto.RegisterType((*AuthorizeCommitment)(nil), "penumbra.narsil.ledger.v1alpha1.AuthorizeCommitment") + proto.RegisterType((*AuthorizeCommitment_Body)(nil), "penumbra.narsil.ledger.v1alpha1.AuthorizeCommitment.Body") + proto.RegisterType((*AuthorizeShare)(nil), "penumbra.narsil.ledger.v1alpha1.AuthorizeShare") + proto.RegisterType((*AuthorizeShare_Body)(nil), "penumbra.narsil.ledger.v1alpha1.AuthorizeShare.Body") + proto.RegisterType((*DkgRound1)(nil), "penumbra.narsil.ledger.v1alpha1.DkgRound1") + proto.RegisterType((*DkgRound2)(nil), "penumbra.narsil.ledger.v1alpha1.DkgRound2") + proto.RegisterType((*DkgState)(nil), "penumbra.narsil.ledger.v1alpha1.DkgState") + proto.RegisterType((*DkgState_StartedRound1)(nil), "penumbra.narsil.ledger.v1alpha1.DkgState.StartedRound1") + proto.RegisterType((*DkgState_StartedRound2)(nil), "penumbra.narsil.ledger.v1alpha1.DkgState.StartedRound2") + proto.RegisterType((*DkgState_Finished)(nil), "penumbra.narsil.ledger.v1alpha1.DkgState.Finished") +} + +func init() { + proto.RegisterFile("penumbra/narsil/ledger/v1alpha1/ledger.proto", fileDescriptor_e17e78e0f19a1ac0) +} + +var fileDescriptor_e17e78e0f19a1ac0 = []byte{ + // 1781 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x59, 0xcd, 0x8f, 0x1b, 0x49, + 0x15, 0xf7, 0x57, 0x66, 0xec, 0x67, 0x7b, 0x66, 0xb6, 0x12, 0xd0, 0xc8, 0x42, 0x93, 0xd0, 0x0b, + 0x6c, 0x94, 0x6c, 0xec, 0x9d, 0x26, 0x2c, 0xec, 0x80, 0x90, 0xe2, 0x09, 0x89, 0xb3, 0x24, 0xd9, + 0xa1, 0x3c, 0x19, 0x50, 0x14, 0xc9, 0x2a, 0x77, 0x97, 0xed, 0xd6, 0xb4, 0xbb, 0x9a, 0xae, 0xf2, + 0x80, 0xf9, 0x13, 0x38, 0xed, 0x8d, 0x3b, 0x12, 0x42, 0xe2, 0xb0, 0x12, 0xb7, 0x45, 0x1c, 0x90, + 0x90, 0x56, 0x62, 0x39, 0xed, 0x11, 0x6e, 0xab, 0xe4, 0x02, 0xfc, 0x09, 0x9c, 0x50, 0x7d, 0xf4, + 0x87, 0xed, 0x0c, 0xb6, 0x87, 0x5d, 0x69, 0x57, 0xcb, 0xad, 0xab, 0xfa, 0xbd, 0xdf, 0xfb, 0xbd, + 0x8f, 0x7a, 0x55, 0xd5, 0x0d, 0xaf, 0x87, 0x34, 0x98, 0x8c, 0xfb, 0x11, 0x69, 0x05, 0x24, 0xe2, + 0x9e, 0xdf, 0xf2, 0xa9, 0x3b, 0xa4, 0x51, 0xeb, 0x6c, 0x9f, 0xf8, 0xe1, 0x88, 0xec, 0x9b, 0x71, + 0x33, 0x8c, 0x98, 0x60, 0xe8, 0x6a, 0x2c, 0xdd, 0xd4, 0xd2, 0x4d, 0xf3, 0x36, 0x96, 0x6e, 0x7c, + 0x23, 0x81, 0x73, 0x58, 0x44, 0x5b, 0xa7, 0x74, 0xca, 0x53, 0x28, 0x39, 0xd2, 0x40, 0x8d, 0xdb, + 0xb3, 0x72, 0x22, 0x22, 0x01, 0x27, 0x8e, 0xf0, 0x58, 0x90, 0x8a, 0x67, 0x26, 0x8d, 0x96, 0x3d, + 0xab, 0xe5, 0xb0, 0x71, 0xc8, 0x02, 0x1a, 0x88, 0x96, 0x33, 0x22, 0x5e, 0x46, 0x53, 0x0d, 0x8d, + 0xce, 0x6b, 0xa9, 0xce, 0x84, 0x0b, 0xe6, 0x4e, 0x33, 0x62, 0x7a, 0x42, 0x0b, 0x5a, 0xef, 0xe6, + 0xa1, 0xfa, 0x20, 0x18, 0x30, 0x4c, 0x7f, 0x3a, 0xa1, 0x5c, 0xa0, 0x5d, 0xd8, 0x3c, 0xa3, 0x11, + 0xf7, 0x58, 0xb0, 0x9b, 0xbf, 0x96, 0xbf, 0x5e, 0xc1, 0xf1, 0x10, 0xbd, 0x0a, 0xf5, 0xbe, 0xcf, + 0x9c, 0xd3, 0x5e, 0xfc, 0xbe, 0x70, 0x2d, 0x7f, 0xbd, 0x84, 0x6b, 0x6a, 0xf2, 0xc4, 0x08, 0x5d, + 0x85, 0x6a, 0x68, 0x87, 0x89, 0x48, 0x51, 0x89, 0x40, 0x68, 0x87, 0xb1, 0xc0, 0x57, 0xa1, 0x46, + 0xfa, 0x8e, 0x97, 0x48, 0x94, 0x94, 0x91, 0xaa, 0x9c, 0x33, 0x22, 0xd6, 0xfb, 0x79, 0xa8, 0x69, + 0x4a, 0x3c, 0x64, 0x01, 0xa7, 0x08, 0x41, 0xc9, 0x25, 0x82, 0x28, 0x42, 0x35, 0xac, 0x9e, 0xb3, + 0x3c, 0x0b, 0xb3, 0x3c, 0xaf, 0x42, 0x95, 0x84, 0x0b, 0x14, 0x48, 0x98, 0x50, 0xb8, 0x01, 0xaf, + 0xf8, 0x84, 0x8b, 0x9e, 0xf6, 0x66, 0x44, 0xbd, 0xe1, 0x48, 0x28, 0x1e, 0x25, 0xbc, 0x2d, 0x5f, + 0xb4, 0xe5, 0x7c, 0x47, 0x4d, 0xa3, 0x5b, 0x70, 0x39, 0x23, 0x2b, 0x71, 0x47, 0x84, 0x8f, 0x76, + 0x2f, 0x29, 0x26, 0x3b, 0x89, 0xf4, 0x9d, 0x30, 0xec, 0x10, 0x3e, 0xb2, 0xae, 0xc3, 0x4e, 0x77, + 0x44, 0x22, 0xf7, 0x81, 0x4b, 0x03, 0xe1, 0x89, 0xe9, 0x0f, 0xe9, 0x14, 0x5d, 0x81, 0x4b, 0x5e, + 0x10, 0xd0, 0xc8, 0xd0, 0xd7, 0x03, 0xeb, 0x6b, 0x50, 0x3b, 0x94, 0xce, 0x05, 0x7c, 0xc2, 0xcf, + 0x97, 0x7a, 0x0d, 0xb6, 0x15, 0xde, 0x23, 0xca, 0x39, 0x19, 0xd2, 0xf3, 0x05, 0xaf, 0x41, 0x59, + 0x09, 0x9e, 0x2f, 0x71, 0x0b, 0xbe, 0x94, 0x85, 0xea, 0x7a, 0xc3, 0x80, 0x88, 0x49, 0x44, 0xcf, + 0x11, 0xff, 0x4d, 0xc1, 0xb8, 0x72, 0x97, 0x72, 0x27, 0xf2, 0x42, 0x59, 0x8f, 0xe8, 0x18, 0x6a, + 0x9e, 0xf1, 0xac, 0x77, 0x4a, 0xa7, 0x4a, 0xa3, 0x6a, 0xef, 0x37, 0x97, 0xac, 0x8f, 0xe6, 0x7c, + 0x4c, 0x70, 0xd5, 0xcb, 0x04, 0xe8, 0x47, 0x50, 0x1d, 0x6b, 0x52, 0x0a, 0xb4, 0xa0, 0x40, 0xdf, + 0x58, 0x0d, 0x34, 0x0d, 0x0c, 0x86, 0x71, 0x1a, 0x24, 0x0c, 0x75, 0x27, 0x8e, 0xae, 0x02, 0x2d, + 0x2a, 0xd0, 0x5b, 0x4b, 0x41, 0xb3, 0x39, 0xc1, 0x35, 0x67, 0x2e, 0x43, 0x3e, 0xe9, 0x53, 0xdf, + 0x94, 0xac, 0x1e, 0x58, 0x67, 0x50, 0x57, 0x44, 0xde, 0x09, 0x69, 0x44, 0x04, 0x8b, 0x50, 0x17, + 0xaa, 0x6e, 0x1a, 0xb2, 0xf5, 0x42, 0x94, 0x89, 0x35, 0xce, 0xa2, 0xa0, 0x1d, 0x28, 0x72, 0x6f, + 0xa8, 0x42, 0x53, 0xc3, 0xf2, 0xd1, 0x9a, 0x42, 0xf5, 0x3e, 0x0d, 0x28, 0xf7, 0xf8, 0x5d, 0xb9, + 0x1c, 0x1e, 0x42, 0x85, 0x19, 0x06, 0x7c, 0x37, 0x7f, 0xad, 0x78, 0xbd, 0x6a, 0x37, 0x57, 0xb3, + 0x19, 0x13, 0xc7, 0x29, 0x00, 0xfa, 0x0a, 0x54, 0xc4, 0x28, 0xa2, 0x7c, 0xc4, 0x7c, 0x57, 0x19, + 0xad, 0xe3, 0x74, 0xc2, 0xfa, 0x43, 0x1e, 0x76, 0xee, 0x38, 0x0e, 0x9b, 0x04, 0xe2, 0x7e, 0xc4, + 0x26, 0xa1, 0x5c, 0xab, 0xe8, 0x09, 0xec, 0x0c, 0x26, 0xbe, 0xdf, 0x3b, 0xf3, 0xe8, 0xcf, 0xbc, + 0x60, 0x98, 0x29, 0x8f, 0x9b, 0x29, 0x0f, 0xd9, 0xbf, 0x9a, 0xaa, 0x1f, 0x26, 0x1c, 0xee, 0x4d, + 0x7c, 0xff, 0x44, 0xeb, 0xc8, 0x90, 0x6f, 0x0d, 0x66, 0xc6, 0xe8, 0x31, 0xd4, 0x42, 0x12, 0x09, + 0xcf, 0xf1, 0x42, 0x12, 0x08, 0xbe, 0x5b, 0x50, 0xae, 0xdd, 0x58, 0xb1, 0xe2, 0x64, 0x13, 0x99, + 0xd1, 0xb7, 0x3e, 0xce, 0x43, 0x25, 0x79, 0xa7, 0x4b, 0xdf, 0xa5, 0x3f, 0x57, 0x4c, 0xeb, 0x58, + 0x0f, 0xd0, 0x10, 0xbe, 0xcc, 0xa5, 0x88, 0x6c, 0x21, 0xde, 0xc0, 0x73, 0x88, 0x4c, 0x41, 0xa6, + 0x34, 0xf7, 0xff, 0xab, 0x43, 0xdd, 0x90, 0x06, 0xee, 0x49, 0x46, 0x53, 0xba, 0x75, 0x45, 0x01, + 0xce, 0xcd, 0x2e, 0x2c, 0xa7, 0xe2, 0x27, 0xb1, 0x9c, 0x2c, 0x07, 0x6a, 0xa6, 0x99, 0x3f, 0x50, + 0xee, 0x74, 0xa1, 0x4a, 0x07, 0x03, 0xea, 0x08, 0xdd, 0xba, 0x74, 0x52, 0xec, 0x39, 0x1f, 0x92, + 0x4d, 0xa5, 0xa9, 0x77, 0x91, 0xc4, 0xd6, 0x0f, 0x94, 0xaa, 0x6c, 0x6e, 0x18, 0x68, 0xf2, 0x6c, + 0xfd, 0x32, 0x0f, 0xf5, 0x43, 0x1a, 0xd1, 0x31, 0x0b, 0xa6, 0xda, 0x0c, 0x86, 0x7a, 0xa4, 0xcd, + 0xf6, 0xd2, 0x98, 0xae, 0xb2, 0xe4, 0xb2, 0x64, 0x71, 0x2d, 0xca, 0x52, 0xff, 0x3a, 0x6c, 0x39, + 0xc6, 0x88, 0x01, 0xd5, 0x7b, 0x4e, 0xdd, 0xc9, 0x9a, 0xb6, 0x7e, 0x9b, 0x87, 0xca, 0x21, 0x1b, + 0x8f, 0x3d, 0x21, 0x28, 0x45, 0x6f, 0x43, 0x39, 0x7e, 0x6d, 0x38, 0x2c, 0x5f, 0x09, 0x33, 0xae, + 0xe0, 0x44, 0xff, 0x13, 0x2f, 0xbf, 0x3f, 0x17, 0x61, 0x3b, 0xb6, 0x75, 0x8f, 0x78, 0xbe, 0xec, + 0xbf, 0xc7, 0xb0, 0x29, 0xbc, 0x31, 0x65, 0x13, 0x61, 0xe8, 0x7e, 0x67, 0x65, 0xba, 0x06, 0xa2, + 0x79, 0xac, 0xf5, 0x3b, 0x39, 0x1c, 0x43, 0xa1, 0x21, 0x6c, 0xf5, 0x89, 0xdb, 0x73, 0x54, 0x58, + 0xc6, 0x34, 0x10, 0xa6, 0x78, 0xbf, 0xbf, 0x36, 0x78, 0x9b, 0xb8, 0x87, 0x09, 0x4a, 0x27, 0x87, + 0xeb, 0xfd, 0xec, 0x04, 0xfa, 0x09, 0x54, 0xa4, 0x21, 0x59, 0xe0, 0xd4, 0x54, 0xf0, 0x5b, 0x17, + 0xb1, 0x21, 0x43, 0x46, 0x3b, 0x39, 0x5c, 0xee, 0x9b, 0x67, 0xf4, 0x63, 0x28, 0x3b, 0x24, 0x70, + 0xa8, 0x4f, 0x5d, 0xd5, 0x73, 0x2f, 0x02, 0x7c, 0x68, 0x00, 0x24, 0x70, 0x0c, 0xd6, 0xa8, 0xc0, + 0xa6, 0x89, 0x58, 0x63, 0x1b, 0xea, 0x33, 0xfe, 0x35, 0x00, 0xca, 0x31, 0x19, 0xf9, 0x1c, 0xeb, + 0xb7, 0x2b, 0xb0, 0x39, 0xd0, 0x98, 0xd6, 0x7b, 0xb5, 0xb4, 0xf6, 0xbb, 0x82, 0x08, 0x8a, 0x30, + 0x6c, 0xca, 0x55, 0xef, 0x05, 0x43, 0x93, 0xc2, 0x37, 0x57, 0x26, 0xaa, 0x00, 0x9a, 0x47, 0x5a, + 0x5b, 0x26, 0xd0, 0x00, 0xa1, 0x01, 0x6c, 0x73, 0x41, 0x22, 0x41, 0xdd, 0x5e, 0xc4, 0x26, 0x81, + 0xdb, 0xdb, 0x37, 0x19, 0xfc, 0xde, 0x9a, 0xd8, 0x5d, 0x8d, 0x82, 0x25, 0xc8, 0xbe, 0xcc, 0x1f, + 0xcf, 0x4e, 0x2c, 0xda, 0xb1, 0x4d, 0x16, 0xff, 0x17, 0x3b, 0xf6, 0xbc, 0x1d, 0x1b, 0x3d, 0x81, + 0xf2, 0xc0, 0x0b, 0x3c, 0x3e, 0x4a, 0xb2, 0xf9, 0xed, 0x35, 0x0d, 0xdc, 0x33, 0xea, 0x32, 0x97, + 0x31, 0x14, 0x7a, 0x07, 0x36, 0x64, 0x5e, 0xa8, 0xab, 0xce, 0x64, 0x55, 0xfb, 0x5b, 0xeb, 0x82, + 0x2a, 0xe5, 0x4e, 0x0e, 0x1b, 0x18, 0x59, 0x1c, 0x26, 0x1b, 0x8d, 0xdf, 0xe7, 0xa1, 0x3e, 0x13, + 0x3d, 0xd4, 0x81, 0x8a, 0x13, 0x37, 0x1a, 0x93, 0xea, 0x1b, 0x2b, 0x9c, 0x29, 0x8c, 0x06, 0x4e, + 0x95, 0xd1, 0x09, 0x54, 0xd3, 0xb5, 0x19, 0x37, 0x96, 0xdb, 0x4b, 0xb1, 0xee, 0x4c, 0xc4, 0x88, + 0x45, 0xde, 0x2f, 0x68, 0x5a, 0xb2, 0x38, 0x0b, 0xd4, 0xf8, 0xf7, 0x1c, 0x67, 0xfb, 0xb3, 0xcf, + 0x19, 0xdd, 0x87, 0x0d, 0xd5, 0x3e, 0xf8, 0x6e, 0x51, 0x41, 0xb6, 0x56, 0x87, 0x54, 0x0b, 0x15, + 0x1b, 0xf5, 0xc6, 0x87, 0x05, 0x28, 0xc7, 0x55, 0xf2, 0x05, 0xf2, 0x1b, 0x61, 0xa8, 0x90, 0x89, + 0x18, 0xf5, 0xd4, 0x2d, 0xa9, 0x34, 0xbf, 0x0e, 0xd4, 0x06, 0x9f, 0xbd, 0x56, 0x2e, 0xc0, 0xa9, + 0x13, 0x89, 0x3c, 0x47, 0xe2, 0xb2, 0xc4, 0x91, 0x4f, 0x8d, 0x3f, 0x15, 0x60, 0x43, 0x2f, 0x8e, + 0x2f, 0x52, 0x24, 0xdf, 0x4e, 0xda, 0xbc, 0x89, 0xe3, 0x1b, 0xeb, 0x6e, 0x39, 0x38, 0x06, 0x68, + 0x6f, 0xc2, 0x25, 0x2e, 0x7b, 0x8c, 0xf5, 0xf7, 0x22, 0xd4, 0x1e, 0x2b, 0xe5, 0x23, 0xe2, 0x9c, + 0x52, 0x81, 0x9e, 0xc2, 0x2b, 0x24, 0xb6, 0xdf, 0x33, 0x27, 0x9e, 0x97, 0x9c, 0x96, 0xcd, 0x45, + 0x7d, 0x91, 0xb3, 0x39, 0x32, 0x75, 0x72, 0x78, 0x87, 0xcc, 0xcd, 0x21, 0x0f, 0xae, 0xa4, 0xd8, + 0x0b, 0xdb, 0xff, 0x85, 0x62, 0xdd, 0xc9, 0xe1, 0xcb, 0x64, 0x71, 0x1a, 0x3d, 0x85, 0xed, 0xd4, + 0x54, 0xf6, 0x00, 0xb0, 0x6e, 0xf8, 0x3b, 0x39, 0xbc, 0x45, 0x66, 0x66, 0xd0, 0x23, 0xa8, 0xba, + 0xa7, 0xc3, 0x64, 0xeb, 0xfb, 0xc7, 0xe6, 0x8a, 0x65, 0x77, 0xf7, 0x74, 0x98, 0xec, 0x74, 0x15, + 0x37, 0x1e, 0xcc, 0xc2, 0xd9, 0xbb, 0xff, 0x5c, 0x17, 0xce, 0xce, 0xc2, 0xd9, 0xed, 0x32, 0x6c, + 0x84, 0x2a, 0x95, 0xd6, 0x4d, 0xd8, 0xbe, 0x17, 0x31, 0x2e, 0x32, 0x61, 0xd9, 0x85, 0xcd, 0x90, + 0x4c, 0x7d, 0x46, 0x5c, 0x73, 0xa5, 0x8e, 0x87, 0x56, 0x0b, 0x2e, 0x2b, 0xe1, 0xe4, 0xf2, 0xad, + 0x7d, 0x3d, 0x5f, 0xe1, 0xfd, 0x22, 0x5c, 0x7e, 0x49, 0x42, 0xd0, 0x23, 0x28, 0xf5, 0x99, 0x1b, + 0x9f, 0x6f, 0xdf, 0xba, 0x48, 0x52, 0x9b, 0x6d, 0xe6, 0x4e, 0xb1, 0x82, 0x41, 0x1d, 0xd8, 0xe0, + 0xde, 0x30, 0xa0, 0xd1, 0x85, 0x2f, 0xdf, 0x46, 0x1f, 0x1d, 0x43, 0x85, 0xc7, 0xce, 0x99, 0x62, + 0x78, 0x73, 0x2d, 0xb0, 0x24, 0x34, 0x38, 0x05, 0x92, 0x1b, 0x71, 0x49, 0xd2, 0x45, 0x4f, 0x16, + 0x2e, 0x04, 0x17, 0x3b, 0xe1, 0xcf, 0x5e, 0x20, 0x10, 0x7e, 0x59, 0x5b, 0x5a, 0x1e, 0x84, 0xb9, + 0xc4, 0xcf, 0xb4, 0x24, 0xeb, 0xbd, 0x22, 0x6c, 0xcd, 0x56, 0x39, 0xea, 0xcc, 0x64, 0xed, 0xf6, + 0x9a, 0x8b, 0xe4, 0xff, 0x09, 0xfb, 0x74, 0x13, 0xf6, 0x41, 0x1e, 0x2a, 0x49, 0xf7, 0x38, 0x7f, + 0x4d, 0x7e, 0xd6, 0x63, 0x3f, 0xe3, 0x87, 0xfd, 0x39, 0xf6, 0xe3, 0xc3, 0x12, 0x94, 0xef, 0x9e, + 0x0e, 0xd5, 0x31, 0xbd, 0x41, 0xe7, 0x4f, 0xe2, 0xc7, 0xb0, 0x63, 0xf6, 0x86, 0x9e, 0xf9, 0xee, + 0x17, 0x7f, 0xf7, 0x5a, 0x63, 0x8f, 0xc0, 0x5b, 0x0a, 0x63, 0xdf, 0xd0, 0xe0, 0x8d, 0x3f, 0x2e, + 0x9c, 0x9e, 0x3f, 0x15, 0x3b, 0x29, 0xaa, 0x9d, 0xa2, 0x16, 0xd6, 0x44, 0xb5, 0x0d, 0xaa, 0x9d, + 0xb0, 0xff, 0x55, 0xf6, 0xf8, 0xfb, 0x39, 0x22, 0x8e, 0x7a, 0x80, 0x88, 0xfe, 0xa0, 0xd8, 0x1b, + 0x46, 0x6c, 0x12, 0xf6, 0xbc, 0x60, 0xc0, 0x56, 0xfe, 0x1c, 0x36, 0xff, 0x2d, 0x12, 0xef, 0x90, + 0xb9, 0x19, 0x5b, 0x40, 0xfd, 0xa1, 0xd2, 0xea, 0xd2, 0xe8, 0xcc, 0x73, 0x28, 0x72, 0xa0, 0xa4, + 0xbe, 0x00, 0xbe, 0xbe, 0x14, 0x3d, 0xf3, 0x73, 0xa4, 0x71, 0x6b, 0x45, 0x69, 0xfd, 0xdf, 0xa2, + 0xfd, 0x41, 0xe1, 0x2f, 0xcf, 0xf7, 0xf2, 0x1f, 0x3d, 0xdf, 0xcb, 0x7f, 0xfc, 0x7c, 0x2f, 0xff, + 0xee, 0x8b, 0xbd, 0xdc, 0x47, 0x2f, 0xf6, 0x72, 0x7f, 0x7b, 0xb1, 0x97, 0x83, 0x57, 0x1d, 0x36, + 0x5e, 0x06, 0xd6, 0xae, 0x6a, 0xce, 0x47, 0x11, 0x13, 0xec, 0x28, 0xff, 0xf4, 0xe9, 0xd0, 0x13, + 0xa3, 0x49, 0xbf, 0xe9, 0xb0, 0x71, 0xcb, 0x61, 0x7c, 0xcc, 0x78, 0x2b, 0xa2, 0x3e, 0x99, 0xd2, + 0xa8, 0x75, 0x66, 0x27, 0x8f, 0xea, 0xfb, 0x1d, 0x6f, 0x2d, 0xf9, 0xc1, 0xf5, 0x5d, 0x3d, 0x8e, + 0x87, 0xbf, 0x2e, 0x14, 0x8f, 0x1e, 0x3f, 0xfc, 0x5d, 0xe1, 0xea, 0x51, 0x4c, 0x49, 0x9f, 0x57, + 0x9b, 0x9a, 0x41, 0xf3, 0xc4, 0xc8, 0xfd, 0x35, 0x95, 0x78, 0xa6, 0x25, 0x9e, 0x69, 0x89, 0x67, + 0xb1, 0xc4, 0xf3, 0xc2, 0xcd, 0x25, 0x12, 0xcf, 0xee, 0x1f, 0xb5, 0x1f, 0x51, 0x41, 0xe4, 0x65, + 0xe5, 0x5f, 0x05, 0x2b, 0x96, 0x3e, 0x38, 0xd0, 0xe2, 0x07, 0x07, 0x5a, 0xfe, 0xe0, 0x20, 0x56, + 0xe8, 0x6f, 0xa8, 0x5f, 0x55, 0xdf, 0xfc, 0x4f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x4f, 0xd8, 0xd6, + 0x4a, 0xb6, 0x1b, 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 + +// LedgerServiceClient is the client API for LedgerService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type LedgerServiceClient interface { + Info(ctx context.Context, in *InfoRequest, opts ...grpc.CallOption) (*InfoResponse, error) +} + +type ledgerServiceClient struct { + cc grpc1.ClientConn +} + +func NewLedgerServiceClient(cc grpc1.ClientConn) LedgerServiceClient { + return &ledgerServiceClient{cc} +} + +func (c *ledgerServiceClient) Info(ctx context.Context, in *InfoRequest, opts ...grpc.CallOption) (*InfoResponse, error) { + out := new(InfoResponse) + err := c.cc.Invoke(ctx, "/penumbra.narsil.ledger.v1alpha1.LedgerService/Info", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// LedgerServiceServer is the server API for LedgerService service. +type LedgerServiceServer interface { + Info(context.Context, *InfoRequest) (*InfoResponse, error) +} + +// UnimplementedLedgerServiceServer can be embedded to have forward compatible implementations. +type UnimplementedLedgerServiceServer struct { +} + +func (*UnimplementedLedgerServiceServer) Info(ctx context.Context, req *InfoRequest) (*InfoResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Info not implemented") +} + +func RegisterLedgerServiceServer(s grpc1.Server, srv LedgerServiceServer) { + s.RegisterService(&_LedgerService_serviceDesc, srv) +} + +func _LedgerService_Info_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(InfoRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(LedgerServiceServer).Info(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/penumbra.narsil.ledger.v1alpha1.LedgerService/Info", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(LedgerServiceServer).Info(ctx, req.(*InfoRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _LedgerService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "penumbra.narsil.ledger.v1alpha1.LedgerService", + HandlerType: (*LedgerServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Info", + Handler: _LedgerService_Info_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "penumbra/narsil/ledger/v1alpha1/ledger.proto", +} + +func (m *InfoRequest) 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 *InfoRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.AbciVersion) > 0 { + i -= len(m.AbciVersion) + copy(dAtA[i:], m.AbciVersion) + i = encodeVarintLedger(dAtA, i, uint64(len(m.AbciVersion))) + i-- + dAtA[i] = 0x22 + } + if m.P2PVersion != 0 { + i = encodeVarintLedger(dAtA, i, uint64(m.P2PVersion)) + i-- + dAtA[i] = 0x18 + } + if m.BlockVersion != 0 { + i = encodeVarintLedger(dAtA, i, uint64(m.BlockVersion)) + i-- + dAtA[i] = 0x10 + } + if len(m.Version) > 0 { + i -= len(m.Version) + copy(dAtA[i:], m.Version) + i = encodeVarintLedger(dAtA, i, uint64(len(m.Version))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *InfoResponse) 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 *InfoResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.LastBlockAppHash) > 0 { + i -= len(m.LastBlockAppHash) + copy(dAtA[i:], m.LastBlockAppHash) + i = encodeVarintLedger(dAtA, i, uint64(len(m.LastBlockAppHash))) + i-- + dAtA[i] = 0x2a + } + if m.LastBlockHeight != 0 { + i = encodeVarintLedger(dAtA, i, uint64(m.LastBlockHeight)) + i-- + dAtA[i] = 0x20 + } + if m.AppVersion != 0 { + i = encodeVarintLedger(dAtA, i, uint64(m.AppVersion)) + i-- + dAtA[i] = 0x18 + } + if len(m.Version) > 0 { + i -= len(m.Version) + copy(dAtA[i:], m.Version) + i = encodeVarintLedger(dAtA, i, uint64(len(m.Version))) + i-- + dAtA[i] = 0x12 + } + if len(m.Data) > 0 { + i -= len(m.Data) + copy(dAtA[i:], m.Data) + i = encodeVarintLedger(dAtA, i, uint64(len(m.Data))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ShardIdentityKey) 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 *ShardIdentityKey) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ShardIdentityKey) 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 = encodeVarintLedger(dAtA, i, uint64(len(m.Inner))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ConsensusKey) 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 *ConsensusKey) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ConsensusKey) 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 = encodeVarintLedger(dAtA, i, uint64(len(m.Inner))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ShardMessageKey) 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 *ShardMessageKey) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ShardMessageKey) 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 = encodeVarintLedger(dAtA, i, uint64(len(m.Inner))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ShardKey) 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 *ShardKey) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ShardKey) 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 = encodeVarintLedger(dAtA, i, uint64(len(m.Inner))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ShardMessageSignature) 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 *ShardMessageSignature) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ShardMessageSignature) 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 = encodeVarintLedger(dAtA, i, uint64(len(m.Inner))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ShardDescription) 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 *ShardDescription) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ShardDescription) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Label) > 0 { + i -= len(m.Label) + copy(dAtA[i:], m.Label) + i = encodeVarintLedger(dAtA, i, uint64(len(m.Label))) + i-- + dAtA[i] = 0x22 + } + if m.ConsensusKey != nil { + { + size, err := m.ConsensusKey.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLedger(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if m.MessageKey != nil { + { + size, err := m.MessageKey.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLedger(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.IdentityKey != nil { + { + size, err := m.IdentityKey.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLedger(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ShardOperator) 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 *ShardOperator) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ShardOperator) 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 = encodeVarintLedger(dAtA, i, uint64(len(m.Sig))) + i-- + dAtA[i] = 0x12 + } + if m.Description != nil { + { + size, err := m.Description.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLedger(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *GenesisData) 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 *GenesisData) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GenesisData) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Threshold != 0 { + i = encodeVarintLedger(dAtA, i, uint64(m.Threshold)) + i-- + dAtA[i] = 0x10 + } + if len(m.Operators) > 0 { + for iNdEx := len(m.Operators) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Operators[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLedger(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *AccountGroupInfo) 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 *AccountGroupInfo) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AccountGroupInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Participants) > 0 { + for iNdEx := len(m.Participants) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Participants[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLedger(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if m.FullViewingKey != nil { + { + size, err := m.FullViewingKey.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLedger(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ShardInfo) 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 *ShardInfo) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ShardInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.IdentityKey != nil { + { + size, err := m.IdentityKey.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLedger(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if m.ShardVerificationKey != nil { + { + size, err := m.ShardVerificationKey.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLedger(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.Index != 0 { + i = encodeVarintLedger(dAtA, i, uint64(m.Index)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *RequestIndex) 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 *RequestIndex) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RequestIndex) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.EffectHash != nil { + { + size, err := m.EffectHash.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLedger(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *CeremonyIndex) 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 *CeremonyIndex) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CeremonyIndex) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.CeremonyIndex != 0 { + i = encodeVarintLedger(dAtA, i, uint64(m.CeremonyIndex)) + i-- + dAtA[i] = 0x10 + } + if m.RequestIndex != nil { + { + size, err := m.RequestIndex.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLedger(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Committee) 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 *Committee) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Committee) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Participants) > 0 { + for iNdEx := len(m.Participants) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Participants[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLedger(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if m.Ceremony != nil { + { + size, err := m.Ceremony.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLedger(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *CeremonyFailure) 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 *CeremonyFailure) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CeremonyFailure) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Failure != nil { + { + size := m.Failure.Size() + i -= size + if _, err := m.Failure.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } + } + return len(dAtA) - i, nil +} + +func (m *CeremonyFailure_Timeout_) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CeremonyFailure_Timeout_) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Timeout != nil { + { + size, err := m.Timeout.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLedger(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} +func (m *CeremonyFailure_BadCommitment_) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CeremonyFailure_BadCommitment_) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.BadCommitment != nil { + { + size, err := m.BadCommitment.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLedger(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + return len(dAtA) - i, nil +} +func (m *CeremonyFailure_BadShare_) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CeremonyFailure_BadShare_) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.BadShare != nil { + { + size, err := m.BadShare.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLedger(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + return len(dAtA) - i, nil +} +func (m *CeremonyFailure_Canceled_) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CeremonyFailure_Canceled_) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Canceled != nil { + { + size, err := m.Canceled.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLedger(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + return len(dAtA) - i, nil +} +func (m *CeremonyFailure_Timeout) 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 *CeremonyFailure_Timeout) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CeremonyFailure_Timeout) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *CeremonyFailure_BadCommitment) 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 *CeremonyFailure_BadCommitment) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CeremonyFailure_BadCommitment) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *CeremonyFailure_BadShare) 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 *CeremonyFailure_BadShare) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CeremonyFailure_BadShare) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *CeremonyFailure_Canceled) 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 *CeremonyFailure_Canceled) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CeremonyFailure_Canceled) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *CeremonyState) 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 *CeremonyState) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CeremonyState) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.State != nil { + { + size := m.State.Size() + i -= size + if _, err := m.State.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } + } + return len(dAtA) - i, nil +} + +func (m *CeremonyState_Pending_) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CeremonyState_Pending_) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Pending != nil { + { + size, err := m.Pending.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLedger(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} +func (m *CeremonyState_StartedRound_1) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CeremonyState_StartedRound_1) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.StartedRound_1 != nil { + { + size, err := m.StartedRound_1.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLedger(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + return len(dAtA) - i, nil +} +func (m *CeremonyState_StartedRound_2) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CeremonyState_StartedRound_2) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.StartedRound_2 != nil { + { + size, err := m.StartedRound_2.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLedger(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + return len(dAtA) - i, nil +} +func (m *CeremonyState_Finished_) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CeremonyState_Finished_) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Finished != nil { + { + size, err := m.Finished.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLedger(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + return len(dAtA) - i, nil +} +func (m *CeremonyState_Failed_) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CeremonyState_Failed_) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Failed != nil { + { + size, err := m.Failed.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLedger(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + return len(dAtA) - i, nil +} +func (m *CeremonyState_Pending) 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 *CeremonyState_Pending) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CeremonyState_Pending) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *CeremonyState_StartedRound1) 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 *CeremonyState_StartedRound1) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CeremonyState_StartedRound1) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Commitments) > 0 { + for iNdEx := len(m.Commitments) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Commitments[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLedger(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if m.Committee != nil { + { + size, err := m.Committee.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLedger(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *CeremonyState_StartedRound2) 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 *CeremonyState_StartedRound2) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CeremonyState_StartedRound2) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Shares) > 0 { + for iNdEx := len(m.Shares) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Shares[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLedger(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if len(m.Commitments) > 0 { + for iNdEx := len(m.Commitments) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Commitments[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLedger(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if m.Committee != nil { + { + size, err := m.Committee.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLedger(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *CeremonyState_Finished) 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 *CeremonyState_Finished) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CeremonyState_Finished) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.AuthData != nil { + { + size, err := m.AuthData.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLedger(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + if len(m.Shares) > 0 { + for iNdEx := len(m.Shares) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Shares[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLedger(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if len(m.Commitments) > 0 { + for iNdEx := len(m.Commitments) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Commitments[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLedger(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if m.Committee != nil { + { + size, err := m.Committee.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLedger(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *CeremonyState_Failed) 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 *CeremonyState_Failed) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CeremonyState_Failed) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Failure != nil { + { + size, err := m.Failure.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLedger(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + if len(m.Shares) > 0 { + for iNdEx := len(m.Shares) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Shares[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLedger(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if len(m.Commitments) > 0 { + for iNdEx := len(m.Commitments) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Commitments[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLedger(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if m.Committee != nil { + { + size, err := m.Committee.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLedger(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *NarsilPacket) 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 *NarsilPacket) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NarsilPacket) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Packet != nil { + { + size := m.Packet.Size() + i -= size + if _, err := m.Packet.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } + } + return len(dAtA) - i, nil +} + +func (m *NarsilPacket_AuthorizeRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NarsilPacket_AuthorizeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.AuthorizeRequest != nil { + { + size, err := m.AuthorizeRequest.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLedger(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} +func (m *NarsilPacket_AuthorizeCommitment) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NarsilPacket_AuthorizeCommitment) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.AuthorizeCommitment != nil { + { + size, err := m.AuthorizeCommitment.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLedger(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + return len(dAtA) - i, nil +} +func (m *NarsilPacket_AuthorizeShare) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NarsilPacket_AuthorizeShare) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.AuthorizeShare != nil { + { + size, err := m.AuthorizeShare.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLedger(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + return len(dAtA) - i, nil +} +func (m *NarsilPacket_DkgRound_1) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NarsilPacket_DkgRound_1) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.DkgRound_1 != nil { + { + size, err := m.DkgRound_1.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLedger(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3e + i-- + dAtA[i] = 0xc2 + } + return len(dAtA) - i, nil +} +func (m *NarsilPacket_DkgRound_2) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NarsilPacket_DkgRound_2) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.DkgRound_2 != nil { + { + size, err := m.DkgRound_2.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLedger(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3e + i-- + dAtA[i] = 0xca + } + return len(dAtA) - i, nil +} +func (m *FrostCommitment) 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 *FrostCommitment) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FrostCommitment) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Payload) > 0 { + i -= len(m.Payload) + copy(dAtA[i:], m.Payload) + i = encodeVarintLedger(dAtA, i, uint64(len(m.Payload))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *FrostSignatureShare) 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 *FrostSignatureShare) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FrostSignatureShare) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Payload) > 0 { + i -= len(m.Payload) + copy(dAtA[i:], m.Payload) + i = encodeVarintLedger(dAtA, i, uint64(len(m.Payload))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *AuthorizeCommitment) 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 *AuthorizeCommitment) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AuthorizeCommitment) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Signature != nil { + { + size, err := m.Signature.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLedger(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if m.Signer != nil { + { + size, err := m.Signer.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLedger(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.Body != nil { + { + size, err := m.Body.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLedger(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *AuthorizeCommitment_Body) 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 *AuthorizeCommitment_Body) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AuthorizeCommitment_Body) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Commitments) > 0 { + for iNdEx := len(m.Commitments) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Commitments[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLedger(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if m.CeremonyIndex != nil { + { + size, err := m.CeremonyIndex.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLedger(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *AuthorizeShare) 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 *AuthorizeShare) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AuthorizeShare) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Signature != nil { + { + size, err := m.Signature.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLedger(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if m.Signer != nil { + { + size, err := m.Signer.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLedger(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.Body != nil { + { + size, err := m.Body.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLedger(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *AuthorizeShare_Body) 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 *AuthorizeShare_Body) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AuthorizeShare_Body) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Commitments) > 0 { + for iNdEx := len(m.Commitments) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Commitments[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLedger(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if m.CeremonyIndex != nil { + { + size, err := m.CeremonyIndex.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLedger(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *DkgRound1) 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 *DkgRound1) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DkgRound1) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Signature != nil { + { + size, err := m.Signature.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLedger(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if m.Signer != nil { + { + size, err := m.Signer.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLedger(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if len(m.Payload) > 0 { + i -= len(m.Payload) + copy(dAtA[i:], m.Payload) + i = encodeVarintLedger(dAtA, i, uint64(len(m.Payload))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *DkgRound2) 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 *DkgRound2) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DkgRound2) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Signature != nil { + { + size, err := m.Signature.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLedger(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if m.Signer != nil { + { + size, err := m.Signer.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLedger(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if len(m.Payload) > 0 { + i -= len(m.Payload) + copy(dAtA[i:], m.Payload) + i = encodeVarintLedger(dAtA, i, uint64(len(m.Payload))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *DkgState) 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 *DkgState) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DkgState) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *DkgState_StartedRound1) 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 *DkgState_StartedRound1) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DkgState_StartedRound1) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Round_1Messages) > 0 { + for iNdEx := len(m.Round_1Messages) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Round_1Messages[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLedger(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *DkgState_StartedRound2) 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 *DkgState_StartedRound2) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DkgState_StartedRound2) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Round_2Messages) > 0 { + for iNdEx := len(m.Round_2Messages) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Round_2Messages[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLedger(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.Round_1Messages) > 0 { + for iNdEx := len(m.Round_1Messages) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Round_1Messages[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLedger(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *DkgState_Finished) 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 *DkgState_Finished) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DkgState_Finished) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.AccountGroupInfo != nil { + { + size, err := m.AccountGroupInfo.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLedger(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if len(m.Round_2Messages) > 0 { + for iNdEx := len(m.Round_2Messages) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Round_2Messages[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLedger(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.Round_1Messages) > 0 { + for iNdEx := len(m.Round_1Messages) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Round_1Messages[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLedger(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func encodeVarintLedger(dAtA []byte, offset int, v uint64) int { + offset -= sovLedger(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *InfoRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Version) + if l > 0 { + n += 1 + l + sovLedger(uint64(l)) + } + if m.BlockVersion != 0 { + n += 1 + sovLedger(uint64(m.BlockVersion)) + } + if m.P2PVersion != 0 { + n += 1 + sovLedger(uint64(m.P2PVersion)) + } + l = len(m.AbciVersion) + if l > 0 { + n += 1 + l + sovLedger(uint64(l)) + } + return n +} + +func (m *InfoResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Data) + if l > 0 { + n += 1 + l + sovLedger(uint64(l)) + } + l = len(m.Version) + if l > 0 { + n += 1 + l + sovLedger(uint64(l)) + } + if m.AppVersion != 0 { + n += 1 + sovLedger(uint64(m.AppVersion)) + } + if m.LastBlockHeight != 0 { + n += 1 + sovLedger(uint64(m.LastBlockHeight)) + } + l = len(m.LastBlockAppHash) + if l > 0 { + n += 1 + l + sovLedger(uint64(l)) + } + return n +} + +func (m *ShardIdentityKey) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Inner) + if l > 0 { + n += 1 + l + sovLedger(uint64(l)) + } + return n +} + +func (m *ConsensusKey) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Inner) + if l > 0 { + n += 1 + l + sovLedger(uint64(l)) + } + return n +} + +func (m *ShardMessageKey) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Inner) + if l > 0 { + n += 1 + l + sovLedger(uint64(l)) + } + return n +} + +func (m *ShardKey) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Inner) + if l > 0 { + n += 1 + l + sovLedger(uint64(l)) + } + return n +} + +func (m *ShardMessageSignature) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Inner) + if l > 0 { + n += 1 + l + sovLedger(uint64(l)) + } + return n +} + +func (m *ShardDescription) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.IdentityKey != nil { + l = m.IdentityKey.Size() + n += 1 + l + sovLedger(uint64(l)) + } + if m.MessageKey != nil { + l = m.MessageKey.Size() + n += 1 + l + sovLedger(uint64(l)) + } + if m.ConsensusKey != nil { + l = m.ConsensusKey.Size() + n += 1 + l + sovLedger(uint64(l)) + } + l = len(m.Label) + if l > 0 { + n += 1 + l + sovLedger(uint64(l)) + } + return n +} + +func (m *ShardOperator) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Description != nil { + l = m.Description.Size() + n += 1 + l + sovLedger(uint64(l)) + } + l = len(m.Sig) + if l > 0 { + n += 1 + l + sovLedger(uint64(l)) + } + return n +} + +func (m *GenesisData) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Operators) > 0 { + for _, e := range m.Operators { + l = e.Size() + n += 1 + l + sovLedger(uint64(l)) + } + } + if m.Threshold != 0 { + n += 1 + sovLedger(uint64(m.Threshold)) + } + return n +} + +func (m *AccountGroupInfo) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.FullViewingKey != nil { + l = m.FullViewingKey.Size() + n += 1 + l + sovLedger(uint64(l)) + } + if len(m.Participants) > 0 { + for _, e := range m.Participants { + l = e.Size() + n += 1 + l + sovLedger(uint64(l)) + } + } + return n +} + +func (m *ShardInfo) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Index != 0 { + n += 1 + sovLedger(uint64(m.Index)) + } + if m.ShardVerificationKey != nil { + l = m.ShardVerificationKey.Size() + n += 1 + l + sovLedger(uint64(l)) + } + if m.IdentityKey != nil { + l = m.IdentityKey.Size() + n += 1 + l + sovLedger(uint64(l)) + } + return n +} + +func (m *RequestIndex) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.EffectHash != nil { + l = m.EffectHash.Size() + n += 1 + l + sovLedger(uint64(l)) + } + return n +} + +func (m *CeremonyIndex) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.RequestIndex != nil { + l = m.RequestIndex.Size() + n += 1 + l + sovLedger(uint64(l)) + } + if m.CeremonyIndex != 0 { + n += 1 + sovLedger(uint64(m.CeremonyIndex)) + } + return n +} + +func (m *Committee) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Ceremony != nil { + l = m.Ceremony.Size() + n += 1 + l + sovLedger(uint64(l)) + } + if len(m.Participants) > 0 { + for _, e := range m.Participants { + l = e.Size() + n += 1 + l + sovLedger(uint64(l)) + } + } + return n +} + +func (m *CeremonyFailure) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Failure != nil { + n += m.Failure.Size() + } + return n +} + +func (m *CeremonyFailure_Timeout_) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Timeout != nil { + l = m.Timeout.Size() + n += 1 + l + sovLedger(uint64(l)) + } + return n +} +func (m *CeremonyFailure_BadCommitment_) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.BadCommitment != nil { + l = m.BadCommitment.Size() + n += 1 + l + sovLedger(uint64(l)) + } + return n +} +func (m *CeremonyFailure_BadShare_) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.BadShare != nil { + l = m.BadShare.Size() + n += 1 + l + sovLedger(uint64(l)) + } + return n +} +func (m *CeremonyFailure_Canceled_) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Canceled != nil { + l = m.Canceled.Size() + n += 1 + l + sovLedger(uint64(l)) + } + return n +} +func (m *CeremonyFailure_Timeout) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *CeremonyFailure_BadCommitment) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *CeremonyFailure_BadShare) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *CeremonyFailure_Canceled) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *CeremonyState) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + n += m.State.Size() + } + return n +} + +func (m *CeremonyState_Pending_) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Pending != nil { + l = m.Pending.Size() + n += 1 + l + sovLedger(uint64(l)) + } + return n +} +func (m *CeremonyState_StartedRound_1) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.StartedRound_1 != nil { + l = m.StartedRound_1.Size() + n += 1 + l + sovLedger(uint64(l)) + } + return n +} +func (m *CeremonyState_StartedRound_2) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.StartedRound_2 != nil { + l = m.StartedRound_2.Size() + n += 1 + l + sovLedger(uint64(l)) + } + return n +} +func (m *CeremonyState_Finished_) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Finished != nil { + l = m.Finished.Size() + n += 1 + l + sovLedger(uint64(l)) + } + return n +} +func (m *CeremonyState_Failed_) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Failed != nil { + l = m.Failed.Size() + n += 1 + l + sovLedger(uint64(l)) + } + return n +} +func (m *CeremonyState_Pending) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *CeremonyState_StartedRound1) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Committee != nil { + l = m.Committee.Size() + n += 1 + l + sovLedger(uint64(l)) + } + if len(m.Commitments) > 0 { + for _, e := range m.Commitments { + l = e.Size() + n += 1 + l + sovLedger(uint64(l)) + } + } + return n +} + +func (m *CeremonyState_StartedRound2) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Committee != nil { + l = m.Committee.Size() + n += 1 + l + sovLedger(uint64(l)) + } + if len(m.Commitments) > 0 { + for _, e := range m.Commitments { + l = e.Size() + n += 1 + l + sovLedger(uint64(l)) + } + } + if len(m.Shares) > 0 { + for _, e := range m.Shares { + l = e.Size() + n += 1 + l + sovLedger(uint64(l)) + } + } + return n +} + +func (m *CeremonyState_Finished) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Committee != nil { + l = m.Committee.Size() + n += 1 + l + sovLedger(uint64(l)) + } + if len(m.Commitments) > 0 { + for _, e := range m.Commitments { + l = e.Size() + n += 1 + l + sovLedger(uint64(l)) + } + } + if len(m.Shares) > 0 { + for _, e := range m.Shares { + l = e.Size() + n += 1 + l + sovLedger(uint64(l)) + } + } + if m.AuthData != nil { + l = m.AuthData.Size() + n += 1 + l + sovLedger(uint64(l)) + } + return n +} + +func (m *CeremonyState_Failed) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Committee != nil { + l = m.Committee.Size() + n += 1 + l + sovLedger(uint64(l)) + } + if len(m.Commitments) > 0 { + for _, e := range m.Commitments { + l = e.Size() + n += 1 + l + sovLedger(uint64(l)) + } + } + if len(m.Shares) > 0 { + for _, e := range m.Shares { + l = e.Size() + n += 1 + l + sovLedger(uint64(l)) + } + } + if m.Failure != nil { + l = m.Failure.Size() + n += 1 + l + sovLedger(uint64(l)) + } + return n +} + +func (m *NarsilPacket) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Packet != nil { + n += m.Packet.Size() + } + return n +} + +func (m *NarsilPacket_AuthorizeRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.AuthorizeRequest != nil { + l = m.AuthorizeRequest.Size() + n += 1 + l + sovLedger(uint64(l)) + } + return n +} +func (m *NarsilPacket_AuthorizeCommitment) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.AuthorizeCommitment != nil { + l = m.AuthorizeCommitment.Size() + n += 1 + l + sovLedger(uint64(l)) + } + return n +} +func (m *NarsilPacket_AuthorizeShare) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.AuthorizeShare != nil { + l = m.AuthorizeShare.Size() + n += 1 + l + sovLedger(uint64(l)) + } + return n +} +func (m *NarsilPacket_DkgRound_1) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.DkgRound_1 != nil { + l = m.DkgRound_1.Size() + n += 2 + l + sovLedger(uint64(l)) + } + return n +} +func (m *NarsilPacket_DkgRound_2) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.DkgRound_2 != nil { + l = m.DkgRound_2.Size() + n += 2 + l + sovLedger(uint64(l)) + } + return n +} +func (m *FrostCommitment) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Payload) + if l > 0 { + n += 1 + l + sovLedger(uint64(l)) + } + return n +} + +func (m *FrostSignatureShare) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Payload) + if l > 0 { + n += 1 + l + sovLedger(uint64(l)) + } + return n +} + +func (m *AuthorizeCommitment) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Body != nil { + l = m.Body.Size() + n += 1 + l + sovLedger(uint64(l)) + } + if m.Signer != nil { + l = m.Signer.Size() + n += 1 + l + sovLedger(uint64(l)) + } + if m.Signature != nil { + l = m.Signature.Size() + n += 1 + l + sovLedger(uint64(l)) + } + return n +} + +func (m *AuthorizeCommitment_Body) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.CeremonyIndex != nil { + l = m.CeremonyIndex.Size() + n += 1 + l + sovLedger(uint64(l)) + } + if len(m.Commitments) > 0 { + for _, e := range m.Commitments { + l = e.Size() + n += 1 + l + sovLedger(uint64(l)) + } + } + return n +} + +func (m *AuthorizeShare) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Body != nil { + l = m.Body.Size() + n += 1 + l + sovLedger(uint64(l)) + } + if m.Signer != nil { + l = m.Signer.Size() + n += 1 + l + sovLedger(uint64(l)) + } + if m.Signature != nil { + l = m.Signature.Size() + n += 1 + l + sovLedger(uint64(l)) + } + return n +} + +func (m *AuthorizeShare_Body) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.CeremonyIndex != nil { + l = m.CeremonyIndex.Size() + n += 1 + l + sovLedger(uint64(l)) + } + if len(m.Commitments) > 0 { + for _, e := range m.Commitments { + l = e.Size() + n += 1 + l + sovLedger(uint64(l)) + } + } + return n +} + +func (m *DkgRound1) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Payload) + if l > 0 { + n += 1 + l + sovLedger(uint64(l)) + } + if m.Signer != nil { + l = m.Signer.Size() + n += 1 + l + sovLedger(uint64(l)) + } + if m.Signature != nil { + l = m.Signature.Size() + n += 1 + l + sovLedger(uint64(l)) + } + return n +} + +func (m *DkgRound2) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Payload) + if l > 0 { + n += 1 + l + sovLedger(uint64(l)) + } + if m.Signer != nil { + l = m.Signer.Size() + n += 1 + l + sovLedger(uint64(l)) + } + if m.Signature != nil { + l = m.Signature.Size() + n += 1 + l + sovLedger(uint64(l)) + } + return n +} + +func (m *DkgState) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *DkgState_StartedRound1) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Round_1Messages) > 0 { + for _, e := range m.Round_1Messages { + l = e.Size() + n += 1 + l + sovLedger(uint64(l)) + } + } + return n +} + +func (m *DkgState_StartedRound2) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Round_1Messages) > 0 { + for _, e := range m.Round_1Messages { + l = e.Size() + n += 1 + l + sovLedger(uint64(l)) + } + } + if len(m.Round_2Messages) > 0 { + for _, e := range m.Round_2Messages { + l = e.Size() + n += 1 + l + sovLedger(uint64(l)) + } + } + return n +} + +func (m *DkgState_Finished) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Round_1Messages) > 0 { + for _, e := range m.Round_1Messages { + l = e.Size() + n += 1 + l + sovLedger(uint64(l)) + } + } + if len(m.Round_2Messages) > 0 { + for _, e := range m.Round_2Messages { + l = e.Size() + n += 1 + l + sovLedger(uint64(l)) + } + } + if m.AccountGroupInfo != nil { + l = m.AccountGroupInfo.Size() + n += 1 + l + sovLedger(uint64(l)) + } + return n +} + +func sovLedger(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozLedger(x uint64) (n int) { + return sovLedger(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *InfoRequest) 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 ErrIntOverflowLedger + } + 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: InfoRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: InfoRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLedger + } + 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 ErrInvalidLengthLedger + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthLedger + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Version = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BlockVersion", wireType) + } + m.BlockVersion = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLedger + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.BlockVersion |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field P2PVersion", wireType) + } + m.P2PVersion = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLedger + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.P2PVersion |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AbciVersion", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLedger + } + 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 ErrInvalidLengthLedger + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthLedger + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AbciVersion = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipLedger(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthLedger + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InfoResponse) 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 ErrIntOverflowLedger + } + 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: InfoResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: InfoResponse: 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 byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLedger + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthLedger + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthLedger + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...) + if m.Data == nil { + m.Data = []byte{} + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLedger + } + 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 ErrInvalidLengthLedger + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthLedger + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Version = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AppVersion", wireType) + } + m.AppVersion = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLedger + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.AppVersion |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LastBlockHeight", wireType) + } + m.LastBlockHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLedger + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.LastBlockHeight |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LastBlockAppHash", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLedger + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthLedger + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthLedger + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.LastBlockAppHash = append(m.LastBlockAppHash[:0], dAtA[iNdEx:postIndex]...) + if m.LastBlockAppHash == nil { + m.LastBlockAppHash = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipLedger(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthLedger + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ShardIdentityKey) 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 ErrIntOverflowLedger + } + 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: ShardIdentityKey: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ShardIdentityKey: 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 ErrIntOverflowLedger + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthLedger + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthLedger + } + 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 := skipLedger(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthLedger + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ConsensusKey) 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 ErrIntOverflowLedger + } + 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: ConsensusKey: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ConsensusKey: 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 ErrIntOverflowLedger + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthLedger + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthLedger + } + 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 := skipLedger(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthLedger + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ShardMessageKey) 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 ErrIntOverflowLedger + } + 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: ShardMessageKey: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ShardMessageKey: 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 ErrIntOverflowLedger + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthLedger + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthLedger + } + 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 := skipLedger(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthLedger + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ShardKey) 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 ErrIntOverflowLedger + } + 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: ShardKey: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ShardKey: 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 ErrIntOverflowLedger + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthLedger + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthLedger + } + 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 := skipLedger(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthLedger + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ShardMessageSignature) 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 ErrIntOverflowLedger + } + 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: ShardMessageSignature: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ShardMessageSignature: 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 ErrIntOverflowLedger + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthLedger + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthLedger + } + 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 := skipLedger(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthLedger + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ShardDescription) 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 ErrIntOverflowLedger + } + 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: ShardDescription: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ShardDescription: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + 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 ErrIntOverflowLedger + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLedger + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLedger + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.IdentityKey == nil { + m.IdentityKey = &ShardIdentityKey{} + } + if err := m.IdentityKey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MessageKey", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLedger + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLedger + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLedger + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.MessageKey == nil { + m.MessageKey = &ShardMessageKey{} + } + if err := m.MessageKey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ConsensusKey", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLedger + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLedger + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLedger + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ConsensusKey == nil { + m.ConsensusKey = &ConsensusKey{} + } + if err := m.ConsensusKey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Label", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLedger + } + 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 ErrInvalidLengthLedger + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthLedger + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Label = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipLedger(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthLedger + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ShardOperator) 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 ErrIntOverflowLedger + } + 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: ShardOperator: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ShardOperator: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLedger + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLedger + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLedger + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Description == nil { + m.Description = &ShardDescription{} + } + if err := m.Description.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Sig", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLedger + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthLedger + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthLedger + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Sig = append(m.Sig[:0], dAtA[iNdEx:postIndex]...) + if m.Sig == nil { + m.Sig = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipLedger(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthLedger + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GenesisData) 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 ErrIntOverflowLedger + } + 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: GenesisData: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GenesisData: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Operators", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLedger + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLedger + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLedger + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Operators = append(m.Operators, &ShardOperator{}) + if err := m.Operators[len(m.Operators)-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 Threshold", wireType) + } + m.Threshold = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLedger + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Threshold |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipLedger(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthLedger + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AccountGroupInfo) 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 ErrIntOverflowLedger + } + 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: AccountGroupInfo: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AccountGroupInfo: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FullViewingKey", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLedger + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLedger + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLedger + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.FullViewingKey == nil { + m.FullViewingKey = &v1alpha1.FullViewingKey{} + } + if err := m.FullViewingKey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Participants", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLedger + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLedger + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLedger + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Participants = append(m.Participants, &ShardInfo{}) + if err := m.Participants[len(m.Participants)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipLedger(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthLedger + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ShardInfo) 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 ErrIntOverflowLedger + } + 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: ShardInfo: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ShardInfo: 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 ErrIntOverflowLedger + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Index |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ShardVerificationKey", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLedger + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLedger + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLedger + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ShardVerificationKey == nil { + m.ShardVerificationKey = &v1alpha1.SpendVerificationKey{} + } + if err := m.ShardVerificationKey.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 ErrIntOverflowLedger + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLedger + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLedger + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.IdentityKey == nil { + m.IdentityKey = &ShardIdentityKey{} + } + if err := m.IdentityKey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipLedger(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthLedger + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RequestIndex) 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 ErrIntOverflowLedger + } + 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: RequestIndex: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RequestIndex: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EffectHash", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLedger + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLedger + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLedger + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.EffectHash == nil { + m.EffectHash = &v1alpha11.EffectHash{} + } + if err := m.EffectHash.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipLedger(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthLedger + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CeremonyIndex) 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 ErrIntOverflowLedger + } + 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: CeremonyIndex: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CeremonyIndex: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RequestIndex", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLedger + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLedger + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLedger + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.RequestIndex == nil { + m.RequestIndex = &RequestIndex{} + } + if err := m.RequestIndex.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CeremonyIndex", wireType) + } + m.CeremonyIndex = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLedger + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.CeremonyIndex |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipLedger(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthLedger + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Committee) 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 ErrIntOverflowLedger + } + 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: Committee: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Committee: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ceremony", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLedger + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLedger + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLedger + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Ceremony == nil { + m.Ceremony = &CeremonyIndex{} + } + if err := m.Ceremony.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Participants", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLedger + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLedger + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLedger + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Participants = append(m.Participants, &ShardInfo{}) + if err := m.Participants[len(m.Participants)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipLedger(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthLedger + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CeremonyFailure) 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 ErrIntOverflowLedger + } + 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: CeremonyFailure: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CeremonyFailure: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Timeout", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLedger + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLedger + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLedger + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &CeremonyFailure_Timeout{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Failure = &CeremonyFailure_Timeout_{v} + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BadCommitment", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLedger + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLedger + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLedger + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &CeremonyFailure_BadCommitment{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Failure = &CeremonyFailure_BadCommitment_{v} + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BadShare", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLedger + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLedger + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLedger + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &CeremonyFailure_BadShare{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Failure = &CeremonyFailure_BadShare_{v} + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Canceled", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLedger + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLedger + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLedger + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &CeremonyFailure_Canceled{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Failure = &CeremonyFailure_Canceled_{v} + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipLedger(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthLedger + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CeremonyFailure_Timeout) 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 ErrIntOverflowLedger + } + 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: Timeout: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Timeout: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipLedger(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthLedger + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CeremonyFailure_BadCommitment) 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 ErrIntOverflowLedger + } + 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: BadCommitment: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BadCommitment: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipLedger(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthLedger + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CeremonyFailure_BadShare) 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 ErrIntOverflowLedger + } + 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: BadShare: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BadShare: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipLedger(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthLedger + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CeremonyFailure_Canceled) 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 ErrIntOverflowLedger + } + 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: Canceled: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Canceled: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipLedger(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthLedger + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CeremonyState) 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 ErrIntOverflowLedger + } + 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: CeremonyState: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CeremonyState: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pending", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLedger + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLedger + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLedger + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &CeremonyState_Pending{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.State = &CeremonyState_Pending_{v} + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StartedRound_1", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLedger + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLedger + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLedger + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &CeremonyState_StartedRound1{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.State = &CeremonyState_StartedRound_1{v} + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StartedRound_2", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLedger + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLedger + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLedger + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &CeremonyState_StartedRound2{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.State = &CeremonyState_StartedRound_2{v} + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Finished", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLedger + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLedger + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLedger + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &CeremonyState_Finished{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.State = &CeremonyState_Finished_{v} + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Failed", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLedger + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLedger + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLedger + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &CeremonyState_Failed{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.State = &CeremonyState_Failed_{v} + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipLedger(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthLedger + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CeremonyState_Pending) 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 ErrIntOverflowLedger + } + 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: Pending: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Pending: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipLedger(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthLedger + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CeremonyState_StartedRound1) 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 ErrIntOverflowLedger + } + 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: StartedRound1: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: StartedRound1: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Committee", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLedger + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLedger + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLedger + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Committee == nil { + m.Committee = &Committee{} + } + if err := m.Committee.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Commitments", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLedger + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLedger + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLedger + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Commitments = append(m.Commitments, &AuthorizeCommitment{}) + if err := m.Commitments[len(m.Commitments)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipLedger(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthLedger + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CeremonyState_StartedRound2) 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 ErrIntOverflowLedger + } + 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: StartedRound2: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: StartedRound2: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Committee", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLedger + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLedger + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLedger + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Committee == nil { + m.Committee = &Committee{} + } + if err := m.Committee.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Commitments", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLedger + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLedger + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLedger + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Commitments = append(m.Commitments, &AuthorizeCommitment{}) + if err := m.Commitments[len(m.Commitments)-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 Shares", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLedger + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLedger + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLedger + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Shares = append(m.Shares, &AuthorizeShare{}) + if err := m.Shares[len(m.Shares)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipLedger(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthLedger + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CeremonyState_Finished) 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 ErrIntOverflowLedger + } + 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: Finished: wiretype end group for non-group") + } + if fieldNum <= 0 { + 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 Committee", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLedger + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLedger + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLedger + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Committee == nil { + m.Committee = &Committee{} + } + if err := m.Committee.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Commitments", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLedger + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLedger + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLedger + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Commitments = append(m.Commitments, &AuthorizeCommitment{}) + if err := m.Commitments[len(m.Commitments)-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 Shares", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLedger + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLedger + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLedger + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Shares = append(m.Shares, &AuthorizeShare{}) + if err := m.Shares[len(m.Shares)-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 AuthData", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLedger + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLedger + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLedger + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.AuthData == nil { + m.AuthData = &v1alpha12.AuthorizationData{} + } + if err := m.AuthData.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipLedger(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthLedger + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CeremonyState_Failed) 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 ErrIntOverflowLedger + } + 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: Failed: wiretype end group for non-group") + } + if fieldNum <= 0 { + 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 Committee", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLedger + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLedger + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLedger + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Committee == nil { + m.Committee = &Committee{} + } + if err := m.Committee.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Commitments", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLedger + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLedger + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLedger + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Commitments = append(m.Commitments, &AuthorizeCommitment{}) + if err := m.Commitments[len(m.Commitments)-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 Shares", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLedger + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLedger + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLedger + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Shares = append(m.Shares, &AuthorizeShare{}) + if err := m.Shares[len(m.Shares)-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 Failure", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLedger + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLedger + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLedger + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Failure == nil { + m.Failure = &CeremonyFailure{} + } + if err := m.Failure.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipLedger(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthLedger + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NarsilPacket) 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 ErrIntOverflowLedger + } + 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: NarsilPacket: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NarsilPacket: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AuthorizeRequest", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLedger + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLedger + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLedger + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &v1alpha13.AuthorizeRequest{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Packet = &NarsilPacket_AuthorizeRequest{v} + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AuthorizeCommitment", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLedger + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLedger + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLedger + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &AuthorizeCommitment{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Packet = &NarsilPacket_AuthorizeCommitment{v} + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AuthorizeShare", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLedger + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLedger + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLedger + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &AuthorizeShare{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Packet = &NarsilPacket_AuthorizeShare{v} + iNdEx = postIndex + case 1000: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DkgRound_1", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLedger + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLedger + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLedger + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &DkgRound1{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Packet = &NarsilPacket_DkgRound_1{v} + iNdEx = postIndex + case 1001: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DkgRound_2", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLedger + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLedger + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLedger + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &DkgRound2{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Packet = &NarsilPacket_DkgRound_2{v} + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipLedger(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthLedger + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *FrostCommitment) 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 ErrIntOverflowLedger + } + 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: FrostCommitment: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FrostCommitment: 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) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLedger + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthLedger + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthLedger + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Payload = append(m.Payload[:0], dAtA[iNdEx:postIndex]...) + if m.Payload == nil { + m.Payload = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipLedger(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthLedger + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *FrostSignatureShare) 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 ErrIntOverflowLedger + } + 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: FrostSignatureShare: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FrostSignatureShare: 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) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLedger + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthLedger + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthLedger + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Payload = append(m.Payload[:0], dAtA[iNdEx:postIndex]...) + if m.Payload == nil { + m.Payload = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipLedger(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthLedger + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AuthorizeCommitment) 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 ErrIntOverflowLedger + } + 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: AuthorizeCommitment: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AuthorizeCommitment: 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 ErrIntOverflowLedger + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLedger + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLedger + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Body == nil { + m.Body = &AuthorizeCommitment_Body{} + } + 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 Signer", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLedger + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLedger + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLedger + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Signer == nil { + m.Signer = &ShardMessageKey{} + } + if err := m.Signer.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Signature", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLedger + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLedger + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLedger + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Signature == nil { + m.Signature = &ShardMessageSignature{} + } + if err := m.Signature.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipLedger(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthLedger + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AuthorizeCommitment_Body) 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 ErrIntOverflowLedger + } + 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: Body: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Body: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CeremonyIndex", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLedger + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLedger + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLedger + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.CeremonyIndex == nil { + m.CeremonyIndex = &CeremonyIndex{} + } + if err := m.CeremonyIndex.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Commitments", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLedger + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLedger + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLedger + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Commitments = append(m.Commitments, &FrostCommitment{}) + if err := m.Commitments[len(m.Commitments)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipLedger(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthLedger + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AuthorizeShare) 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 ErrIntOverflowLedger + } + 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: AuthorizeShare: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AuthorizeShare: 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 ErrIntOverflowLedger + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLedger + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLedger + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Body == nil { + m.Body = &AuthorizeShare_Body{} + } + 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 Signer", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLedger + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLedger + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLedger + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Signer == nil { + m.Signer = &ShardMessageKey{} + } + if err := m.Signer.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Signature", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLedger + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLedger + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLedger + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Signature == nil { + m.Signature = &ShardMessageSignature{} + } + if err := m.Signature.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipLedger(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthLedger + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AuthorizeShare_Body) 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 ErrIntOverflowLedger + } + 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: Body: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Body: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CeremonyIndex", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLedger + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLedger + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLedger + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.CeremonyIndex == nil { + m.CeremonyIndex = &CeremonyIndex{} + } + if err := m.CeremonyIndex.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Commitments", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLedger + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLedger + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLedger + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Commitments = append(m.Commitments, &FrostCommitment{}) + if err := m.Commitments[len(m.Commitments)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipLedger(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthLedger + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DkgRound1) 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 ErrIntOverflowLedger + } + 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: DkgRound1: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DkgRound1: 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) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLedger + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthLedger + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthLedger + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Payload = append(m.Payload[:0], dAtA[iNdEx:postIndex]...) + if m.Payload == nil { + m.Payload = []byte{} + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Signer", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLedger + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLedger + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLedger + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Signer == nil { + m.Signer = &ShardMessageKey{} + } + if err := m.Signer.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Signature", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLedger + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLedger + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLedger + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Signature == nil { + m.Signature = &ShardMessageSignature{} + } + if err := m.Signature.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipLedger(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthLedger + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DkgRound2) 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 ErrIntOverflowLedger + } + 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: DkgRound2: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DkgRound2: 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) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLedger + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthLedger + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthLedger + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Payload = append(m.Payload[:0], dAtA[iNdEx:postIndex]...) + if m.Payload == nil { + m.Payload = []byte{} + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Signer", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLedger + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLedger + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLedger + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Signer == nil { + m.Signer = &ShardMessageKey{} + } + if err := m.Signer.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Signature", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLedger + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLedger + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLedger + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Signature == nil { + m.Signature = &ShardMessageSignature{} + } + if err := m.Signature.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipLedger(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthLedger + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DkgState) 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 ErrIntOverflowLedger + } + 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: DkgState: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DkgState: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipLedger(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthLedger + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DkgState_StartedRound1) 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 ErrIntOverflowLedger + } + 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: StartedRound1: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: StartedRound1: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Round_1Messages", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLedger + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLedger + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLedger + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Round_1Messages = append(m.Round_1Messages, &DkgRound1{}) + if err := m.Round_1Messages[len(m.Round_1Messages)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipLedger(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthLedger + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DkgState_StartedRound2) 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 ErrIntOverflowLedger + } + 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: StartedRound2: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: StartedRound2: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Round_1Messages", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLedger + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLedger + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLedger + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Round_1Messages = append(m.Round_1Messages, &DkgRound1{}) + if err := m.Round_1Messages[len(m.Round_1Messages)-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 Round_2Messages", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLedger + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLedger + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLedger + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Round_2Messages = append(m.Round_2Messages, &DkgRound2{}) + if err := m.Round_2Messages[len(m.Round_2Messages)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipLedger(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthLedger + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DkgState_Finished) 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 ErrIntOverflowLedger + } + 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: Finished: wiretype end group for non-group") + } + if fieldNum <= 0 { + 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 Round_1Messages", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLedger + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLedger + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLedger + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Round_1Messages = append(m.Round_1Messages, &DkgRound1{}) + if err := m.Round_1Messages[len(m.Round_1Messages)-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 Round_2Messages", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLedger + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLedger + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLedger + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Round_2Messages = append(m.Round_2Messages, &DkgRound2{}) + if err := m.Round_2Messages[len(m.Round_2Messages)-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 AccountGroupInfo", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLedger + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLedger + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLedger + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.AccountGroupInfo == nil { + m.AccountGroupInfo = &AccountGroupInfo{} + } + if err := m.AccountGroupInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipLedger(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthLedger + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipLedger(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, ErrIntOverflowLedger + } + 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, ErrIntOverflowLedger + } + 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, ErrIntOverflowLedger + } + 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, ErrInvalidLengthLedger + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupLedger + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthLedger + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthLedger = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowLedger = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupLedger = fmt.Errorf("proto: unexpected end of group") +) diff --git a/relayer/chains/penumbra/storage/v1alpha1/storage.pb.go b/relayer/chains/penumbra/storage/v1alpha1/storage.pb.go new file mode 100644 index 000000000..667b4ace1 --- /dev/null +++ b/relayer/chains/penumbra/storage/v1alpha1/storage.pb.go @@ -0,0 +1,43 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: penumbra/storage/v1alpha1/storage.proto + +package storagev1alpha1 + +import ( + fmt "fmt" + proto "github.com/cosmos/gogoproto/proto" + math "math" +) + +// 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 + +func init() { + proto.RegisterFile("penumbra/storage/v1alpha1/storage.proto", fileDescriptor_02c76aead37ce84a) +} + +var fileDescriptor_02c76aead37ce84a = []byte{ + // 223 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x2f, 0x48, 0xcd, 0x2b, + 0xcd, 0x4d, 0x2a, 0x4a, 0xd4, 0x2f, 0x2e, 0xc9, 0x2f, 0x4a, 0x4c, 0x4f, 0xd5, 0x2f, 0x33, 0x4c, + 0xcc, 0x29, 0xc8, 0x48, 0x34, 0x84, 0x09, 0xe8, 0x15, 0x14, 0xe5, 0x97, 0xe4, 0x0b, 0x49, 0xc2, + 0x14, 0xea, 0xc1, 0xc4, 0x61, 0x0a, 0x9d, 0x16, 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, 0x6c, 0x72, 0x7e, 0xae, 0x1e, 0x6e, 0x9d, 0x3c, 0xc1, 0x10, 0x91, 0x00, + 0x90, 0x15, 0x01, 0x8c, 0x51, 0xa1, 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, 0x4e, 0x97, 0x5b, 0x43, 0x05, + 0x60, 0xfc, 0x45, 0x4c, 0xcc, 0x01, 0xc1, 0x11, 0xab, 0x98, 0x24, 0x03, 0x60, 0x0e, 0x81, 0x5a, + 0xab, 0x17, 0x06, 0x55, 0x71, 0x0a, 0x21, 0x17, 0x03, 0x95, 0x8b, 0x81, 0xc9, 0x3d, 0x62, 0x52, + 0xc5, 0x29, 0x17, 0xe3, 0x1e, 0xe0, 0xe4, 0x9b, 0x5a, 0x92, 0x98, 0x92, 0x58, 0x92, 0xf8, 0x8a, + 0x49, 0x1a, 0xa6, 0xce, 0xca, 0x0a, 0xaa, 0xd0, 0xca, 0x0a, 0xa6, 0x32, 0x89, 0x0d, 0x1c, 0x8c, + 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0xc9, 0x9e, 0x17, 0xb7, 0x71, 0x01, 0x00, 0x00, +} diff --git a/relayer/chains/penumbra/tools/summoning/v1alpha1/summoning.pb.go b/relayer/chains/penumbra/tools/summoning/v1alpha1/summoning.pb.go new file mode 100644 index 000000000..4b53bb93e --- /dev/null +++ b/relayer/chains/penumbra/tools/summoning/v1alpha1/summoning.pb.go @@ -0,0 +1,3694 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: penumbra/tools/summoning/v1alpha1/summoning.proto + +package summoningv1alpha1 + +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" + 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 + +type ParticipateRequest struct { + // Types that are valid to be assigned to Msg: + // *ParticipateRequest_Identify_ + // *ParticipateRequest_Contribution_ + Msg isParticipateRequest_Msg `protobuf_oneof:"msg"` +} + +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} +} +func (m *ParticipateRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ParticipateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ParticipateRequest.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 *ParticipateRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ParticipateRequest.Merge(m, src) +} +func (m *ParticipateRequest) XXX_Size() int { + return m.Size() +} +func (m *ParticipateRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ParticipateRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ParticipateRequest proto.InternalMessageInfo + +type isParticipateRequest_Msg interface { + isParticipateRequest_Msg() + MarshalTo([]byte) (int, error) + Size() int +} + +type ParticipateRequest_Identify_ struct { + Identify *ParticipateRequest_Identify `protobuf:"bytes,1,opt,name=identify,proto3,oneof" json:"identify,omitempty"` +} +type ParticipateRequest_Contribution_ struct { + Contribution *ParticipateRequest_Contribution `protobuf:"bytes,2,opt,name=contribution,proto3,oneof" json:"contribution,omitempty"` +} + +func (*ParticipateRequest_Identify_) isParticipateRequest_Msg() {} +func (*ParticipateRequest_Contribution_) isParticipateRequest_Msg() {} + +func (m *ParticipateRequest) GetMsg() isParticipateRequest_Msg { + if m != nil { + return m.Msg + } + return nil +} + +func (m *ParticipateRequest) GetIdentify() *ParticipateRequest_Identify { + if x, ok := m.GetMsg().(*ParticipateRequest_Identify_); ok { + return x.Identify + } + return nil +} + +func (m *ParticipateRequest) GetContribution() *ParticipateRequest_Contribution { + if x, ok := m.GetMsg().(*ParticipateRequest_Contribution_); ok { + return x.Contribution + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*ParticipateRequest) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*ParticipateRequest_Identify_)(nil), + (*ParticipateRequest_Contribution_)(nil), + } +} + +// 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"` +} + +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} +} +func (m *ParticipateRequest_Identify) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ParticipateRequest_Identify) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ParticipateRequest_Identify.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 *ParticipateRequest_Identify) XXX_Merge(src proto.Message) { + xxx_messageInfo_ParticipateRequest_Identify.Merge(m, src) +} +func (m *ParticipateRequest_Identify) XXX_Size() int { + return m.Size() +} +func (m *ParticipateRequest_Identify) XXX_DiscardUnknown() { + xxx_messageInfo_ParticipateRequest_Identify.DiscardUnknown(m) +} + +var xxx_messageInfo_ParticipateRequest_Identify proto.InternalMessageInfo + +func (m *ParticipateRequest_Identify) GetAddress() *v1alpha1.Address { + if m != nil { + return m.Address + } + return nil +} + +// Sent by the participant after getting a `ContributeNow` message. +type ParticipateRequest_Contribution struct { + Updated *CeremonyCrs `protobuf:"bytes,1,opt,name=updated,proto3" json:"updated,omitempty"` + UpdateProofs *CeremonyLinkingProof `protobuf:"bytes,2,opt,name=update_proofs,json=updateProofs,proto3" json:"update_proofs,omitempty"` + ParentHashes *CeremonyParentHashes `protobuf:"bytes,3,opt,name=parent_hashes,json=parentHashes,proto3" json:"parent_hashes,omitempty"` +} + +func (m *ParticipateRequest_Contribution) Reset() { *m = ParticipateRequest_Contribution{} } +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} +} +func (m *ParticipateRequest_Contribution) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ParticipateRequest_Contribution) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ParticipateRequest_Contribution.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 *ParticipateRequest_Contribution) XXX_Merge(src proto.Message) { + xxx_messageInfo_ParticipateRequest_Contribution.Merge(m, src) +} +func (m *ParticipateRequest_Contribution) XXX_Size() int { + return m.Size() +} +func (m *ParticipateRequest_Contribution) XXX_DiscardUnknown() { + xxx_messageInfo_ParticipateRequest_Contribution.DiscardUnknown(m) +} + +var xxx_messageInfo_ParticipateRequest_Contribution proto.InternalMessageInfo + +func (m *ParticipateRequest_Contribution) GetUpdated() *CeremonyCrs { + if m != nil { + return m.Updated + } + return nil +} + +func (m *ParticipateRequest_Contribution) GetUpdateProofs() *CeremonyLinkingProof { + if m != nil { + return m.UpdateProofs + } + return nil +} + +func (m *ParticipateRequest_Contribution) GetParentHashes() *CeremonyParentHashes { + if m != nil { + return m.ParentHashes + } + return nil +} + +type CeremonyCrs struct { + Spend []byte `protobuf:"bytes,100,opt,name=spend,proto3" json:"spend,omitempty"` + Output []byte `protobuf:"bytes,101,opt,name=output,proto3" json:"output,omitempty"` + DelegatorVote []byte `protobuf:"bytes,102,opt,name=delegator_vote,json=delegatorVote,proto3" json:"delegator_vote,omitempty"` + UndelegateClaim []byte `protobuf:"bytes,103,opt,name=undelegate_claim,json=undelegateClaim,proto3" json:"undelegate_claim,omitempty"` + Swap []byte `protobuf:"bytes,104,opt,name=swap,proto3" json:"swap,omitempty"` + SwapClaim []byte `protobuf:"bytes,105,opt,name=swap_claim,json=swapClaim,proto3" json:"swap_claim,omitempty"` + NulliferDerivationCrs []byte `protobuf:"bytes,106,opt,name=nullifer_derivation_crs,json=nulliferDerivationCrs,proto3" json:"nullifer_derivation_crs,omitempty"` +} + +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} +} +func (m *CeremonyCrs) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CeremonyCrs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CeremonyCrs.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 *CeremonyCrs) XXX_Merge(src proto.Message) { + xxx_messageInfo_CeremonyCrs.Merge(m, src) +} +func (m *CeremonyCrs) XXX_Size() int { + return m.Size() +} +func (m *CeremonyCrs) XXX_DiscardUnknown() { + xxx_messageInfo_CeremonyCrs.DiscardUnknown(m) +} + +var xxx_messageInfo_CeremonyCrs proto.InternalMessageInfo + +func (m *CeremonyCrs) GetSpend() []byte { + if m != nil { + return m.Spend + } + return nil +} + +func (m *CeremonyCrs) GetOutput() []byte { + if m != nil { + return m.Output + } + return nil +} + +func (m *CeremonyCrs) GetDelegatorVote() []byte { + if m != nil { + return m.DelegatorVote + } + return nil +} + +func (m *CeremonyCrs) GetUndelegateClaim() []byte { + if m != nil { + return m.UndelegateClaim + } + return nil +} + +func (m *CeremonyCrs) GetSwap() []byte { + if m != nil { + return m.Swap + } + return nil +} + +func (m *CeremonyCrs) GetSwapClaim() []byte { + if m != nil { + return m.SwapClaim + } + return nil +} + +func (m *CeremonyCrs) GetNulliferDerivationCrs() []byte { + if m != nil { + return m.NulliferDerivationCrs + } + return nil +} + +type CeremonyLinkingProof struct { + Spend []byte `protobuf:"bytes,100,opt,name=spend,proto3" json:"spend,omitempty"` + Output []byte `protobuf:"bytes,101,opt,name=output,proto3" json:"output,omitempty"` + DelegatorVote []byte `protobuf:"bytes,102,opt,name=delegator_vote,json=delegatorVote,proto3" json:"delegator_vote,omitempty"` + UndelegateClaim []byte `protobuf:"bytes,103,opt,name=undelegate_claim,json=undelegateClaim,proto3" json:"undelegate_claim,omitempty"` + Swap []byte `protobuf:"bytes,104,opt,name=swap,proto3" json:"swap,omitempty"` + SwapClaim []byte `protobuf:"bytes,105,opt,name=swap_claim,json=swapClaim,proto3" json:"swap_claim,omitempty"` + NulliferDerivationCrs []byte `protobuf:"bytes,106,opt,name=nullifer_derivation_crs,json=nulliferDerivationCrs,proto3" json:"nullifer_derivation_crs,omitempty"` +} + +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} +} +func (m *CeremonyLinkingProof) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CeremonyLinkingProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CeremonyLinkingProof.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 *CeremonyLinkingProof) XXX_Merge(src proto.Message) { + xxx_messageInfo_CeremonyLinkingProof.Merge(m, src) +} +func (m *CeremonyLinkingProof) XXX_Size() int { + return m.Size() +} +func (m *CeremonyLinkingProof) XXX_DiscardUnknown() { + xxx_messageInfo_CeremonyLinkingProof.DiscardUnknown(m) +} + +var xxx_messageInfo_CeremonyLinkingProof proto.InternalMessageInfo + +func (m *CeremonyLinkingProof) GetSpend() []byte { + if m != nil { + return m.Spend + } + return nil +} + +func (m *CeremonyLinkingProof) GetOutput() []byte { + if m != nil { + return m.Output + } + return nil +} + +func (m *CeremonyLinkingProof) GetDelegatorVote() []byte { + if m != nil { + return m.DelegatorVote + } + return nil +} + +func (m *CeremonyLinkingProof) GetUndelegateClaim() []byte { + if m != nil { + return m.UndelegateClaim + } + return nil +} + +func (m *CeremonyLinkingProof) GetSwap() []byte { + if m != nil { + return m.Swap + } + return nil +} + +func (m *CeremonyLinkingProof) GetSwapClaim() []byte { + if m != nil { + return m.SwapClaim + } + return nil +} + +func (m *CeremonyLinkingProof) GetNulliferDerivationCrs() []byte { + if m != nil { + return m.NulliferDerivationCrs + } + return nil +} + +type CeremonyParentHashes struct { + Spend []byte `protobuf:"bytes,100,opt,name=spend,proto3" json:"spend,omitempty"` + Output []byte `protobuf:"bytes,101,opt,name=output,proto3" json:"output,omitempty"` + DelegatorVote []byte `protobuf:"bytes,102,opt,name=delegator_vote,json=delegatorVote,proto3" json:"delegator_vote,omitempty"` + UndelegateClaim []byte `protobuf:"bytes,103,opt,name=undelegate_claim,json=undelegateClaim,proto3" json:"undelegate_claim,omitempty"` + Swap []byte `protobuf:"bytes,104,opt,name=swap,proto3" json:"swap,omitempty"` + SwapClaim []byte `protobuf:"bytes,105,opt,name=swap_claim,json=swapClaim,proto3" json:"swap_claim,omitempty"` + NulliferDerivationCrs []byte `protobuf:"bytes,106,opt,name=nullifer_derivation_crs,json=nulliferDerivationCrs,proto3" json:"nullifer_derivation_crs,omitempty"` +} + +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} +} +func (m *CeremonyParentHashes) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CeremonyParentHashes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CeremonyParentHashes.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 *CeremonyParentHashes) XXX_Merge(src proto.Message) { + xxx_messageInfo_CeremonyParentHashes.Merge(m, src) +} +func (m *CeremonyParentHashes) XXX_Size() int { + return m.Size() +} +func (m *CeremonyParentHashes) XXX_DiscardUnknown() { + xxx_messageInfo_CeremonyParentHashes.DiscardUnknown(m) +} + +var xxx_messageInfo_CeremonyParentHashes proto.InternalMessageInfo + +func (m *CeremonyParentHashes) GetSpend() []byte { + if m != nil { + return m.Spend + } + return nil +} + +func (m *CeremonyParentHashes) GetOutput() []byte { + if m != nil { + return m.Output + } + return nil +} + +func (m *CeremonyParentHashes) GetDelegatorVote() []byte { + if m != nil { + return m.DelegatorVote + } + return nil +} + +func (m *CeremonyParentHashes) GetUndelegateClaim() []byte { + if m != nil { + return m.UndelegateClaim + } + return nil +} + +func (m *CeremonyParentHashes) GetSwap() []byte { + if m != nil { + return m.Swap + } + return nil +} + +func (m *CeremonyParentHashes) GetSwapClaim() []byte { + if m != nil { + return m.SwapClaim + } + return nil +} + +func (m *CeremonyParentHashes) GetNulliferDerivationCrs() []byte { + if m != nil { + return m.NulliferDerivationCrs + } + return nil +} + +type ParticipateResponse struct { + // Types that are valid to be assigned to Msg: + // + // *ParticipateResponse_Position_ + // *ParticipateResponse_ContributeNow_ + // *ParticipateResponse_Confirm_ + Msg isParticipateResponse_Msg `protobuf_oneof:"msg"` +} + +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} +} +func (m *ParticipateResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ParticipateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ParticipateResponse.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 *ParticipateResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ParticipateResponse.Merge(m, src) +} +func (m *ParticipateResponse) XXX_Size() int { + return m.Size() +} +func (m *ParticipateResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ParticipateResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ParticipateResponse proto.InternalMessageInfo + +type isParticipateResponse_Msg interface { + isParticipateResponse_Msg() + MarshalTo([]byte) (int, error) + Size() int +} + +type ParticipateResponse_Position_ struct { + Position *ParticipateResponse_Position `protobuf:"bytes,1,opt,name=position,proto3,oneof" json:"position,omitempty"` +} +type ParticipateResponse_ContributeNow_ struct { + ContributeNow *ParticipateResponse_ContributeNow `protobuf:"bytes,2,opt,name=contribute_now,json=contributeNow,proto3,oneof" json:"contribute_now,omitempty"` +} +type ParticipateResponse_Confirm_ struct { + Confirm *ParticipateResponse_Confirm `protobuf:"bytes,3,opt,name=confirm,proto3,oneof" json:"confirm,omitempty"` +} + +func (*ParticipateResponse_Position_) isParticipateResponse_Msg() {} +func (*ParticipateResponse_ContributeNow_) isParticipateResponse_Msg() {} +func (*ParticipateResponse_Confirm_) isParticipateResponse_Msg() {} + +func (m *ParticipateResponse) GetMsg() isParticipateResponse_Msg { + if m != nil { + return m.Msg + } + return nil +} + +func (m *ParticipateResponse) GetPosition() *ParticipateResponse_Position { + if x, ok := m.GetMsg().(*ParticipateResponse_Position_); ok { + return x.Position + } + return nil +} + +func (m *ParticipateResponse) GetContributeNow() *ParticipateResponse_ContributeNow { + if x, ok := m.GetMsg().(*ParticipateResponse_ContributeNow_); ok { + return x.ContributeNow + } + return nil +} + +func (m *ParticipateResponse) GetConfirm() *ParticipateResponse_Confirm { + if x, ok := m.GetMsg().(*ParticipateResponse_Confirm_); ok { + return x.Confirm + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*ParticipateResponse) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*ParticipateResponse_Position_)(nil), + (*ParticipateResponse_ContributeNow_)(nil), + (*ParticipateResponse_Confirm_)(nil), + } +} + +// Streamed to the participant to inform them of their position in the queue. +type ParticipateResponse_Position struct { + // The position of the participant in the queue. + Position uint32 `protobuf:"varint,1,opt,name=position,proto3" json:"position,omitempty"` + // 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"` + // The participant's current bid. + YourBid *v1alpha11.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} +} +func (m *ParticipateResponse_Position) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ParticipateResponse_Position) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ParticipateResponse_Position.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 *ParticipateResponse_Position) XXX_Merge(src proto.Message) { + xxx_messageInfo_ParticipateResponse_Position.Merge(m, src) +} +func (m *ParticipateResponse_Position) XXX_Size() int { + return m.Size() +} +func (m *ParticipateResponse_Position) XXX_DiscardUnknown() { + xxx_messageInfo_ParticipateResponse_Position.DiscardUnknown(m) +} + +var xxx_messageInfo_ParticipateResponse_Position proto.InternalMessageInfo + +func (m *ParticipateResponse_Position) GetPosition() uint32 { + if m != nil { + return m.Position + } + return 0 +} + +func (m *ParticipateResponse_Position) GetConnectedParticipants() uint32 { + if m != nil { + return m.ConnectedParticipants + } + return 0 +} + +func (m *ParticipateResponse_Position) GetLastSlotBid() *v1alpha11.Amount { + if m != nil { + return m.LastSlotBid + } + return nil +} + +func (m *ParticipateResponse_Position) GetYourBid() *v1alpha11.Amount { + if m != nil { + return m.YourBid + } + return nil +} + +// Sent to the participant to inform them that they should contribute now. +type ParticipateResponse_ContributeNow struct { + // The most recent CRS, which the participant should update. + Parent *CeremonyCrs `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` +} + +func (m *ParticipateResponse_ContributeNow) Reset() { *m = ParticipateResponse_ContributeNow{} } +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} +} +func (m *ParticipateResponse_ContributeNow) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ParticipateResponse_ContributeNow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ParticipateResponse_ContributeNow.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 *ParticipateResponse_ContributeNow) XXX_Merge(src proto.Message) { + xxx_messageInfo_ParticipateResponse_ContributeNow.Merge(m, src) +} +func (m *ParticipateResponse_ContributeNow) XXX_Size() int { + return m.Size() +} +func (m *ParticipateResponse_ContributeNow) XXX_DiscardUnknown() { + xxx_messageInfo_ParticipateResponse_ContributeNow.DiscardUnknown(m) +} + +var xxx_messageInfo_ParticipateResponse_ContributeNow proto.InternalMessageInfo + +func (m *ParticipateResponse_ContributeNow) GetParent() *CeremonyCrs { + if m != nil { + return m.Parent + } + return nil +} + +// Sent to the participant to confim their contribution was accepted. +type ParticipateResponse_Confirm struct { + Slot uint64 `protobuf:"varint,1,opt,name=slot,proto3" json:"slot,omitempty"` +} + +func (m *ParticipateResponse_Confirm) Reset() { *m = ParticipateResponse_Confirm{} } +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} +} +func (m *ParticipateResponse_Confirm) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ParticipateResponse_Confirm) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ParticipateResponse_Confirm.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 *ParticipateResponse_Confirm) XXX_Merge(src proto.Message) { + xxx_messageInfo_ParticipateResponse_Confirm.Merge(m, src) +} +func (m *ParticipateResponse_Confirm) XXX_Size() int { + return m.Size() +} +func (m *ParticipateResponse_Confirm) XXX_DiscardUnknown() { + xxx_messageInfo_ParticipateResponse_Confirm.DiscardUnknown(m) +} + +var xxx_messageInfo_ParticipateResponse_Confirm proto.InternalMessageInfo + +func (m *ParticipateResponse_Confirm) GetSlot() uint64 { + if m != nil { + return m.Slot + } + return 0 +} + +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") +} + +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, 0x05, 0x1b, 0x91, 0x9c, 0xef, 0xfd, 0x6b, 0xc0, 0x4e, 0xad, 0x37, 0x74, + 0x0d, 0xb6, 0x64, 0x4c, 0x58, 0x60, 0x06, 0xb7, 0x8c, 0x83, 0x8e, 0x9b, 0x6d, 0xd0, 0x0d, 0xd8, + 0xe6, 0x89, 0x8a, 0x13, 0x65, 0x12, 0x1d, 0xce, 0x77, 0xe8, 0x0e, 0xec, 0x06, 0x24, 0x24, 0x73, + 0xac, 0xb8, 0xf0, 0x96, 0x5c, 0x11, 0x73, 0xa6, 0xf3, 0xdd, 0x32, 0xfa, 0x88, 0x2b, 0x82, 0xde, + 0x82, 0xd7, 0x12, 0x96, 0x87, 0x88, 0xe7, 0x87, 0x98, 0x46, 0xe6, 0x5c, 0x03, 0x5f, 0xad, 0xe2, + 0xa3, 0x34, 0x8c, 0x10, 0x6c, 0xca, 0x53, 0x1c, 0x9b, 0x0b, 0x9d, 0xd6, 0x6b, 0x74, 0x13, 0x20, + 0xfd, 0xcd, 0x89, 0x54, 0x67, 0x5e, 0x49, 0x23, 0x19, 0xe5, 0x1e, 0xbc, 0xc1, 0x92, 0x30, 0xa4, + 0x33, 0x22, 0xbc, 0x80, 0x08, 0xba, 0xc4, 0xe9, 0x63, 0xf6, 0x7c, 0x21, 0xcd, 0xaf, 0x35, 0xf6, + 0x7a, 0x91, 0xbe, 0x5f, 0x66, 0x47, 0x42, 0xee, 0x7d, 0xd7, 0x84, 0x6b, 0xcf, 0x7b, 0x0c, 0x2f, + 0xeb, 0x0c, 0xea, 0x2f, 0xcb, 0xcb, 0x34, 0x83, 0x9f, 0xb7, 0xe0, 0xf5, 0x0b, 0x06, 0x25, 0x63, + 0xce, 0x24, 0x41, 0x5f, 0x41, 0x3b, 0xe6, 0x92, 0x6a, 0xab, 0xcb, 0x8c, 0xe2, 0xc3, 0xab, 0x5a, + 0x5d, 0xa6, 0x64, 0x3b, 0xb9, 0x4c, 0xea, 0xa6, 0x85, 0x24, 0x8a, 0x60, 0xb7, 0xf4, 0x3c, 0xe2, + 0x31, 0x7e, 0x9a, 0xbb, 0xc7, 0xfd, 0x35, 0x8b, 0x94, 0x1e, 0x47, 0xbe, 0xe0, 0xa7, 0xe3, 0x86, + 0xdb, 0xf5, 0xeb, 0x01, 0xf4, 0x18, 0x5a, 0x3e, 0x67, 0x33, 0x2a, 0xa2, 0xdc, 0x47, 0x8e, 0xd7, + 0xaf, 0x93, 0xaa, 0x8c, 0x1b, 0x6e, 0x21, 0x68, 0xfd, 0x6d, 0x40, 0xbb, 0xe8, 0x11, 0x59, 0xcf, + 0x8c, 0xad, 0x5b, 0xeb, 0xf9, 0x2e, 0xdc, 0xf0, 0x39, 0x63, 0xc4, 0x57, 0x24, 0xf0, 0xe2, 0x42, + 0x9c, 0xa9, 0xcc, 0x39, 0xbb, 0xee, 0xf5, 0x32, 0xeb, 0xd4, 0x92, 0xe8, 0x01, 0x74, 0x43, 0x2c, + 0x95, 0x27, 0x43, 0xae, 0xbc, 0x29, 0x0d, 0xf2, 0x0e, 0xf6, 0x9e, 0xb9, 0x08, 0xd2, 0xeb, 0xb1, + 0xba, 0x07, 0x22, 0x9e, 0x30, 0xe5, 0xee, 0xa4, 0xc4, 0x93, 0x90, 0xab, 0x21, 0x0d, 0xd0, 0x07, + 0xd0, 0x5e, 0xf1, 0x44, 0x68, 0x89, 0xcd, 0x17, 0x96, 0x68, 0xa5, 0x9c, 0x21, 0x0d, 0xac, 0x2f, + 0xa1, 0x7b, 0x61, 0xc8, 0xe8, 0x01, 0x6c, 0x67, 0x9e, 0xba, 0xe6, 0x45, 0x92, 0xb3, 0xad, 0x9b, + 0xd0, 0xca, 0xa7, 0xaa, 0xdf, 0xfb, 0x90, 0x67, 0x82, 0x9b, 0xae, 0x5e, 0xe7, 0x56, 0x7d, 0xf4, + 0xa3, 0x01, 0x56, 0xc9, 0xe6, 0x5c, 0x04, 0x94, 0xa5, 0xff, 0xac, 0x13, 0x22, 0x96, 0xd4, 0x27, + 0xe8, 0x5b, 0x03, 0x76, 0x6a, 0xcf, 0x0b, 0xdd, 0x5d, 0xeb, 0x5e, 0xb6, 0xee, 0xad, 0xf7, 0x5a, + 0x1c, 0x18, 0xef, 0x18, 0xc3, 0x3f, 0x9a, 0xbf, 0x9d, 0xf5, 0x8c, 0xa7, 0x67, 0x3d, 0xe3, 0xaf, + 0xb3, 0x9e, 0xf1, 0xfd, 0x79, 0xaf, 0xf1, 0xf4, 0xbc, 0xd7, 0xf8, 0xf3, 0xbc, 0xd7, 0x80, 0x3b, + 0x3e, 0x8f, 0x2e, 0x57, 0x1e, 0xee, 0x9e, 0x14, 0x31, 0x27, 0xfd, 0xce, 0x71, 0x8c, 0xc7, 0xde, + 0x9c, 0xaa, 0x45, 0x32, 0xb5, 0x7d, 0x1e, 0xf5, 0x7d, 0x2e, 0x23, 0x2e, 0xfb, 0x82, 0x84, 0x78, + 0x45, 0x44, 0x7f, 0x79, 0x54, 0x2e, 0xfd, 0x05, 0xa6, 0x4c, 0xf6, 0x2f, 0xfd, 0x72, 0x7b, 0xbf, + 0x0c, 0x15, 0x91, 0x9f, 0x9a, 0x1b, 0xce, 0xc3, 0x93, 0x5f, 0x9a, 0xb7, 0x9d, 0xe2, 0x70, 0x0f, + 0xf5, 0xe1, 0xca, 0x83, 0xd8, 0x8f, 0x72, 0xe4, 0xef, 0x15, 0x66, 0xa2, 0x31, 0x93, 0x12, 0x33, + 0x29, 0x30, 0x67, 0xcd, 0xb7, 0x2f, 0xc5, 0x4c, 0x3e, 0x76, 0x86, 0x9f, 0x13, 0x85, 0x03, 0xac, + 0xf0, 0x3f, 0xcd, 0xfd, 0x02, 0x3f, 0x18, 0x68, 0xc2, 0x60, 0x50, 0x32, 0x06, 0x83, 0x82, 0x32, + 0xdd, 0xd6, 0x9f, 0x7d, 0xef, 0xfe, 0x17, 0x00, 0x00, 0xff, 0xff, 0x3a, 0xc3, 0x4c, 0x79, 0x9c, + 0x0a, 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 + +// CeremonyCoordinatorServiceClient is the client API for CeremonyCoordinatorService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type CeremonyCoordinatorServiceClient interface { + // The protocol used to participate in the ceremony. + // + // The message flow is + // ``` + // Client Server + // + // Identify ===========> + // <=========== Position (repeated) + // <=========== ContributeNow + // Contribution ===========> + // <=========== Confirm + // + // ``` + Participate(ctx context.Context, opts ...grpc.CallOption) (CeremonyCoordinatorService_ParticipateClient, error) +} + +type ceremonyCoordinatorServiceClient struct { + cc grpc1.ClientConn +} + +func NewCeremonyCoordinatorServiceClient(cc grpc1.ClientConn) CeremonyCoordinatorServiceClient { + return &ceremonyCoordinatorServiceClient{cc} +} + +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...) + if err != nil { + return nil, err + } + x := &ceremonyCoordinatorServiceParticipateClient{stream} + return x, nil +} + +type CeremonyCoordinatorService_ParticipateClient interface { + Send(*ParticipateRequest) error + Recv() (*ParticipateResponse, error) + grpc.ClientStream +} + +type ceremonyCoordinatorServiceParticipateClient struct { + grpc.ClientStream +} + +func (x *ceremonyCoordinatorServiceParticipateClient) Send(m *ParticipateRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *ceremonyCoordinatorServiceParticipateClient) Recv() (*ParticipateResponse, error) { + m := new(ParticipateResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +// CeremonyCoordinatorServiceServer is the server API for CeremonyCoordinatorService service. +type CeremonyCoordinatorServiceServer interface { + // The protocol used to participate in the ceremony. + // + // The message flow is + // ``` + // Client Server + // + // Identify ===========> + // <=========== Position (repeated) + // <=========== ContributeNow + // Contribution ===========> + // <=========== Confirm + // + // ``` + Participate(CeremonyCoordinatorService_ParticipateServer) error +} + +// UnimplementedCeremonyCoordinatorServiceServer can be embedded to have forward compatible implementations. +type UnimplementedCeremonyCoordinatorServiceServer struct { +} + +func (*UnimplementedCeremonyCoordinatorServiceServer) Participate(srv CeremonyCoordinatorService_ParticipateServer) error { + return status.Errorf(codes.Unimplemented, "method Participate not implemented") +} + +func RegisterCeremonyCoordinatorServiceServer(s grpc1.Server, srv CeremonyCoordinatorServiceServer) { + s.RegisterService(&_CeremonyCoordinatorService_serviceDesc, srv) +} + +func _CeremonyCoordinatorService_Participate_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(CeremonyCoordinatorServiceServer).Participate(&ceremonyCoordinatorServiceParticipateServer{stream}) +} + +type CeremonyCoordinatorService_ParticipateServer interface { + Send(*ParticipateResponse) error + Recv() (*ParticipateRequest, error) + grpc.ServerStream +} + +type ceremonyCoordinatorServiceParticipateServer struct { + grpc.ServerStream +} + +func (x *ceremonyCoordinatorServiceParticipateServer) Send(m *ParticipateResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *ceremonyCoordinatorServiceParticipateServer) Recv() (*ParticipateRequest, error) { + m := new(ParticipateRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +var _CeremonyCoordinatorService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "penumbra.tools.summoning.v1alpha1.CeremonyCoordinatorService", + HandlerType: (*CeremonyCoordinatorServiceServer)(nil), + Methods: []grpc.MethodDesc{}, + Streams: []grpc.StreamDesc{ + { + StreamName: "Participate", + Handler: _CeremonyCoordinatorService_Participate_Handler, + ServerStreams: true, + ClientStreams: true, + }, + }, + Metadata: "penumbra/tools/summoning/v1alpha1/summoning.proto", +} + +func (m *ParticipateRequest) 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 *ParticipateRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ParticipateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Msg != nil { + { + size := m.Msg.Size() + i -= size + if _, err := m.Msg.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } + } + return len(dAtA) - i, nil +} + +func (m *ParticipateRequest_Identify_) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ParticipateRequest_Identify_) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Identify != nil { + { + size, err := m.Identify.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSummoning(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} +func (m *ParticipateRequest_Contribution_) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ParticipateRequest_Contribution_) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Contribution != nil { + { + size, err := m.Contribution.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSummoning(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + return len(dAtA) - i, nil +} +func (m *ParticipateRequest_Identify) 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 *ParticipateRequest_Identify) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ParticipateRequest_Identify) 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 = encodeVarintSummoning(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ParticipateRequest_Contribution) 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 *ParticipateRequest_Contribution) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ParticipateRequest_Contribution) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.ParentHashes != nil { + { + size, err := m.ParentHashes.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSummoning(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if m.UpdateProofs != nil { + { + size, err := m.UpdateProofs.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSummoning(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.Updated != nil { + { + size, err := m.Updated.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSummoning(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *CeremonyCrs) 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 *CeremonyCrs) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CeremonyCrs) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.NulliferDerivationCrs) > 0 { + i -= len(m.NulliferDerivationCrs) + copy(dAtA[i:], m.NulliferDerivationCrs) + i = encodeVarintSummoning(dAtA, i, uint64(len(m.NulliferDerivationCrs))) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xd2 + } + if len(m.SwapClaim) > 0 { + i -= len(m.SwapClaim) + copy(dAtA[i:], m.SwapClaim) + i = encodeVarintSummoning(dAtA, i, uint64(len(m.SwapClaim))) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xca + } + if len(m.Swap) > 0 { + i -= len(m.Swap) + copy(dAtA[i:], m.Swap) + i = encodeVarintSummoning(dAtA, i, uint64(len(m.Swap))) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xc2 + } + if len(m.UndelegateClaim) > 0 { + i -= len(m.UndelegateClaim) + copy(dAtA[i:], m.UndelegateClaim) + i = encodeVarintSummoning(dAtA, i, uint64(len(m.UndelegateClaim))) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xba + } + if len(m.DelegatorVote) > 0 { + i -= len(m.DelegatorVote) + copy(dAtA[i:], m.DelegatorVote) + i = encodeVarintSummoning(dAtA, i, uint64(len(m.DelegatorVote))) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xb2 + } + if len(m.Output) > 0 { + i -= len(m.Output) + copy(dAtA[i:], m.Output) + i = encodeVarintSummoning(dAtA, i, uint64(len(m.Output))) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xaa + } + if len(m.Spend) > 0 { + i -= len(m.Spend) + copy(dAtA[i:], m.Spend) + i = encodeVarintSummoning(dAtA, i, uint64(len(m.Spend))) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xa2 + } + return len(dAtA) - i, nil +} + +func (m *CeremonyLinkingProof) 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 *CeremonyLinkingProof) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CeremonyLinkingProof) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.NulliferDerivationCrs) > 0 { + i -= len(m.NulliferDerivationCrs) + copy(dAtA[i:], m.NulliferDerivationCrs) + i = encodeVarintSummoning(dAtA, i, uint64(len(m.NulliferDerivationCrs))) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xd2 + } + if len(m.SwapClaim) > 0 { + i -= len(m.SwapClaim) + copy(dAtA[i:], m.SwapClaim) + i = encodeVarintSummoning(dAtA, i, uint64(len(m.SwapClaim))) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xca + } + if len(m.Swap) > 0 { + i -= len(m.Swap) + copy(dAtA[i:], m.Swap) + i = encodeVarintSummoning(dAtA, i, uint64(len(m.Swap))) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xc2 + } + if len(m.UndelegateClaim) > 0 { + i -= len(m.UndelegateClaim) + copy(dAtA[i:], m.UndelegateClaim) + i = encodeVarintSummoning(dAtA, i, uint64(len(m.UndelegateClaim))) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xba + } + if len(m.DelegatorVote) > 0 { + i -= len(m.DelegatorVote) + copy(dAtA[i:], m.DelegatorVote) + i = encodeVarintSummoning(dAtA, i, uint64(len(m.DelegatorVote))) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xb2 + } + if len(m.Output) > 0 { + i -= len(m.Output) + copy(dAtA[i:], m.Output) + i = encodeVarintSummoning(dAtA, i, uint64(len(m.Output))) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xaa + } + if len(m.Spend) > 0 { + i -= len(m.Spend) + copy(dAtA[i:], m.Spend) + i = encodeVarintSummoning(dAtA, i, uint64(len(m.Spend))) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xa2 + } + return len(dAtA) - i, nil +} + +func (m *CeremonyParentHashes) 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 *CeremonyParentHashes) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CeremonyParentHashes) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.NulliferDerivationCrs) > 0 { + i -= len(m.NulliferDerivationCrs) + copy(dAtA[i:], m.NulliferDerivationCrs) + i = encodeVarintSummoning(dAtA, i, uint64(len(m.NulliferDerivationCrs))) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xd2 + } + if len(m.SwapClaim) > 0 { + i -= len(m.SwapClaim) + copy(dAtA[i:], m.SwapClaim) + i = encodeVarintSummoning(dAtA, i, uint64(len(m.SwapClaim))) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xca + } + if len(m.Swap) > 0 { + i -= len(m.Swap) + copy(dAtA[i:], m.Swap) + i = encodeVarintSummoning(dAtA, i, uint64(len(m.Swap))) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xc2 + } + if len(m.UndelegateClaim) > 0 { + i -= len(m.UndelegateClaim) + copy(dAtA[i:], m.UndelegateClaim) + i = encodeVarintSummoning(dAtA, i, uint64(len(m.UndelegateClaim))) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xba + } + if len(m.DelegatorVote) > 0 { + i -= len(m.DelegatorVote) + copy(dAtA[i:], m.DelegatorVote) + i = encodeVarintSummoning(dAtA, i, uint64(len(m.DelegatorVote))) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xb2 + } + if len(m.Output) > 0 { + i -= len(m.Output) + copy(dAtA[i:], m.Output) + i = encodeVarintSummoning(dAtA, i, uint64(len(m.Output))) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xaa + } + if len(m.Spend) > 0 { + i -= len(m.Spend) + copy(dAtA[i:], m.Spend) + i = encodeVarintSummoning(dAtA, i, uint64(len(m.Spend))) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xa2 + } + return len(dAtA) - i, nil +} + +func (m *ParticipateResponse) 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 *ParticipateResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ParticipateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Msg != nil { + { + size := m.Msg.Size() + i -= size + if _, err := m.Msg.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } + } + return len(dAtA) - i, nil +} + +func (m *ParticipateResponse_Position_) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ParticipateResponse_Position_) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Position != nil { + { + size, err := m.Position.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSummoning(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} +func (m *ParticipateResponse_ContributeNow_) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ParticipateResponse_ContributeNow_) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.ContributeNow != nil { + { + size, err := m.ContributeNow.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSummoning(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + return len(dAtA) - i, nil +} +func (m *ParticipateResponse_Confirm_) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ParticipateResponse_Confirm_) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Confirm != nil { + { + size, err := m.Confirm.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSummoning(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + return len(dAtA) - i, nil +} +func (m *ParticipateResponse_Position) 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 *ParticipateResponse_Position) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ParticipateResponse_Position) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.YourBid != nil { + { + size, err := m.YourBid.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSummoning(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + if m.LastSlotBid != nil { + { + size, err := m.LastSlotBid.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSummoning(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if m.ConnectedParticipants != 0 { + i = encodeVarintSummoning(dAtA, i, uint64(m.ConnectedParticipants)) + i-- + dAtA[i] = 0x10 + } + if m.Position != 0 { + i = encodeVarintSummoning(dAtA, i, uint64(m.Position)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *ParticipateResponse_ContributeNow) 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 *ParticipateResponse_ContributeNow) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ParticipateResponse_ContributeNow) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Parent != nil { + { + size, err := m.Parent.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSummoning(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ParticipateResponse_Confirm) 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 *ParticipateResponse_Confirm) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ParticipateResponse_Confirm) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Slot != 0 { + i = encodeVarintSummoning(dAtA, i, uint64(m.Slot)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func encodeVarintSummoning(dAtA []byte, offset int, v uint64) int { + offset -= sovSummoning(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *ParticipateRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Msg != nil { + n += m.Msg.Size() + } + return n +} + +func (m *ParticipateRequest_Identify_) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Identify != nil { + l = m.Identify.Size() + n += 1 + l + sovSummoning(uint64(l)) + } + return n +} +func (m *ParticipateRequest_Contribution_) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Contribution != nil { + l = m.Contribution.Size() + n += 1 + l + sovSummoning(uint64(l)) + } + return n +} +func (m *ParticipateRequest_Identify) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Address != nil { + l = m.Address.Size() + n += 1 + l + sovSummoning(uint64(l)) + } + return n +} + +func (m *ParticipateRequest_Contribution) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Updated != nil { + l = m.Updated.Size() + n += 1 + l + sovSummoning(uint64(l)) + } + if m.UpdateProofs != nil { + l = m.UpdateProofs.Size() + n += 1 + l + sovSummoning(uint64(l)) + } + if m.ParentHashes != nil { + l = m.ParentHashes.Size() + n += 1 + l + sovSummoning(uint64(l)) + } + return n +} + +func (m *CeremonyCrs) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Spend) + if l > 0 { + n += 2 + l + sovSummoning(uint64(l)) + } + l = len(m.Output) + if l > 0 { + n += 2 + l + sovSummoning(uint64(l)) + } + l = len(m.DelegatorVote) + if l > 0 { + n += 2 + l + sovSummoning(uint64(l)) + } + l = len(m.UndelegateClaim) + if l > 0 { + n += 2 + l + sovSummoning(uint64(l)) + } + l = len(m.Swap) + if l > 0 { + n += 2 + l + sovSummoning(uint64(l)) + } + l = len(m.SwapClaim) + if l > 0 { + n += 2 + l + sovSummoning(uint64(l)) + } + l = len(m.NulliferDerivationCrs) + if l > 0 { + n += 2 + l + sovSummoning(uint64(l)) + } + return n +} + +func (m *CeremonyLinkingProof) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Spend) + if l > 0 { + n += 2 + l + sovSummoning(uint64(l)) + } + l = len(m.Output) + if l > 0 { + n += 2 + l + sovSummoning(uint64(l)) + } + l = len(m.DelegatorVote) + if l > 0 { + n += 2 + l + sovSummoning(uint64(l)) + } + l = len(m.UndelegateClaim) + if l > 0 { + n += 2 + l + sovSummoning(uint64(l)) + } + l = len(m.Swap) + if l > 0 { + n += 2 + l + sovSummoning(uint64(l)) + } + l = len(m.SwapClaim) + if l > 0 { + n += 2 + l + sovSummoning(uint64(l)) + } + l = len(m.NulliferDerivationCrs) + if l > 0 { + n += 2 + l + sovSummoning(uint64(l)) + } + return n +} + +func (m *CeremonyParentHashes) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Spend) + if l > 0 { + n += 2 + l + sovSummoning(uint64(l)) + } + l = len(m.Output) + if l > 0 { + n += 2 + l + sovSummoning(uint64(l)) + } + l = len(m.DelegatorVote) + if l > 0 { + n += 2 + l + sovSummoning(uint64(l)) + } + l = len(m.UndelegateClaim) + if l > 0 { + n += 2 + l + sovSummoning(uint64(l)) + } + l = len(m.Swap) + if l > 0 { + n += 2 + l + sovSummoning(uint64(l)) + } + l = len(m.SwapClaim) + if l > 0 { + n += 2 + l + sovSummoning(uint64(l)) + } + l = len(m.NulliferDerivationCrs) + if l > 0 { + n += 2 + l + sovSummoning(uint64(l)) + } + return n +} + +func (m *ParticipateResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Msg != nil { + n += m.Msg.Size() + } + return n +} + +func (m *ParticipateResponse_Position_) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Position != nil { + l = m.Position.Size() + n += 1 + l + sovSummoning(uint64(l)) + } + return n +} +func (m *ParticipateResponse_ContributeNow_) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ContributeNow != nil { + l = m.ContributeNow.Size() + n += 1 + l + sovSummoning(uint64(l)) + } + return n +} +func (m *ParticipateResponse_Confirm_) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Confirm != nil { + l = m.Confirm.Size() + n += 1 + l + sovSummoning(uint64(l)) + } + return n +} +func (m *ParticipateResponse_Position) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Position != 0 { + n += 1 + sovSummoning(uint64(m.Position)) + } + if m.ConnectedParticipants != 0 { + n += 1 + sovSummoning(uint64(m.ConnectedParticipants)) + } + if m.LastSlotBid != nil { + l = m.LastSlotBid.Size() + n += 1 + l + sovSummoning(uint64(l)) + } + if m.YourBid != nil { + l = m.YourBid.Size() + n += 1 + l + sovSummoning(uint64(l)) + } + return n +} + +func (m *ParticipateResponse_ContributeNow) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Parent != nil { + l = m.Parent.Size() + n += 1 + l + sovSummoning(uint64(l)) + } + return n +} + +func (m *ParticipateResponse_Confirm) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Slot != 0 { + n += 1 + sovSummoning(uint64(m.Slot)) + } + return n +} + +func sovSummoning(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozSummoning(x uint64) (n int) { + return sovSummoning(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *ParticipateRequest) 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 ErrIntOverflowSummoning + } + 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: ParticipateRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ParticipateRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Identify", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSummoning + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSummoning + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSummoning + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &ParticipateRequest_Identify{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Msg = &ParticipateRequest_Identify_{v} + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Contribution", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSummoning + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSummoning + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSummoning + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &ParticipateRequest_Contribution{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Msg = &ParticipateRequest_Contribution_{v} + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSummoning(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthSummoning + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ParticipateRequest_Identify) 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 ErrIntOverflowSummoning + } + 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: Identify: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Identify: 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) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSummoning + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSummoning + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSummoning + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Address == nil { + m.Address = &v1alpha1.Address{} + } + if err := m.Address.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSummoning(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthSummoning + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ParticipateRequest_Contribution) 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 ErrIntOverflowSummoning + } + 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: Contribution: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Contribution: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Updated", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSummoning + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSummoning + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSummoning + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Updated == nil { + m.Updated = &CeremonyCrs{} + } + if err := m.Updated.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UpdateProofs", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSummoning + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSummoning + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSummoning + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.UpdateProofs == nil { + m.UpdateProofs = &CeremonyLinkingProof{} + } + if err := m.UpdateProofs.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ParentHashes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSummoning + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSummoning + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSummoning + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ParentHashes == nil { + m.ParentHashes = &CeremonyParentHashes{} + } + if err := m.ParentHashes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSummoning(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthSummoning + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CeremonyCrs) 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 ErrIntOverflowSummoning + } + 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: CeremonyCrs: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CeremonyCrs: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 100: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Spend", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSummoning + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthSummoning + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthSummoning + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Spend = append(m.Spend[:0], dAtA[iNdEx:postIndex]...) + if m.Spend == nil { + m.Spend = []byte{} + } + iNdEx = postIndex + case 101: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Output", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSummoning + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthSummoning + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthSummoning + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Output = append(m.Output[:0], dAtA[iNdEx:postIndex]...) + if m.Output == nil { + m.Output = []byte{} + } + iNdEx = postIndex + case 102: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DelegatorVote", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSummoning + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthSummoning + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthSummoning + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DelegatorVote = append(m.DelegatorVote[:0], dAtA[iNdEx:postIndex]...) + if m.DelegatorVote == nil { + m.DelegatorVote = []byte{} + } + iNdEx = postIndex + case 103: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UndelegateClaim", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSummoning + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthSummoning + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthSummoning + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.UndelegateClaim = append(m.UndelegateClaim[:0], dAtA[iNdEx:postIndex]...) + if m.UndelegateClaim == nil { + m.UndelegateClaim = []byte{} + } + iNdEx = postIndex + case 104: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Swap", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSummoning + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthSummoning + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthSummoning + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Swap = append(m.Swap[:0], dAtA[iNdEx:postIndex]...) + if m.Swap == nil { + m.Swap = []byte{} + } + iNdEx = postIndex + case 105: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SwapClaim", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSummoning + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthSummoning + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthSummoning + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SwapClaim = append(m.SwapClaim[:0], dAtA[iNdEx:postIndex]...) + if m.SwapClaim == nil { + m.SwapClaim = []byte{} + } + iNdEx = postIndex + case 106: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NulliferDerivationCrs", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSummoning + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthSummoning + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthSummoning + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NulliferDerivationCrs = append(m.NulliferDerivationCrs[:0], dAtA[iNdEx:postIndex]...) + if m.NulliferDerivationCrs == nil { + m.NulliferDerivationCrs = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSummoning(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthSummoning + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CeremonyLinkingProof) 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 ErrIntOverflowSummoning + } + 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: CeremonyLinkingProof: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CeremonyLinkingProof: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 100: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Spend", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSummoning + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthSummoning + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthSummoning + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Spend = append(m.Spend[:0], dAtA[iNdEx:postIndex]...) + if m.Spend == nil { + m.Spend = []byte{} + } + iNdEx = postIndex + case 101: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Output", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSummoning + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthSummoning + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthSummoning + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Output = append(m.Output[:0], dAtA[iNdEx:postIndex]...) + if m.Output == nil { + m.Output = []byte{} + } + iNdEx = postIndex + case 102: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DelegatorVote", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSummoning + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthSummoning + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthSummoning + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DelegatorVote = append(m.DelegatorVote[:0], dAtA[iNdEx:postIndex]...) + if m.DelegatorVote == nil { + m.DelegatorVote = []byte{} + } + iNdEx = postIndex + case 103: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UndelegateClaim", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSummoning + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthSummoning + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthSummoning + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.UndelegateClaim = append(m.UndelegateClaim[:0], dAtA[iNdEx:postIndex]...) + if m.UndelegateClaim == nil { + m.UndelegateClaim = []byte{} + } + iNdEx = postIndex + case 104: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Swap", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSummoning + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthSummoning + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthSummoning + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Swap = append(m.Swap[:0], dAtA[iNdEx:postIndex]...) + if m.Swap == nil { + m.Swap = []byte{} + } + iNdEx = postIndex + case 105: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SwapClaim", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSummoning + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthSummoning + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthSummoning + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SwapClaim = append(m.SwapClaim[:0], dAtA[iNdEx:postIndex]...) + if m.SwapClaim == nil { + m.SwapClaim = []byte{} + } + iNdEx = postIndex + case 106: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NulliferDerivationCrs", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSummoning + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthSummoning + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthSummoning + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NulliferDerivationCrs = append(m.NulliferDerivationCrs[:0], dAtA[iNdEx:postIndex]...) + if m.NulliferDerivationCrs == nil { + m.NulliferDerivationCrs = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSummoning(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthSummoning + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CeremonyParentHashes) 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 ErrIntOverflowSummoning + } + 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: CeremonyParentHashes: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CeremonyParentHashes: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 100: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Spend", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSummoning + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthSummoning + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthSummoning + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Spend = append(m.Spend[:0], dAtA[iNdEx:postIndex]...) + if m.Spend == nil { + m.Spend = []byte{} + } + iNdEx = postIndex + case 101: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Output", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSummoning + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthSummoning + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthSummoning + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Output = append(m.Output[:0], dAtA[iNdEx:postIndex]...) + if m.Output == nil { + m.Output = []byte{} + } + iNdEx = postIndex + case 102: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DelegatorVote", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSummoning + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthSummoning + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthSummoning + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DelegatorVote = append(m.DelegatorVote[:0], dAtA[iNdEx:postIndex]...) + if m.DelegatorVote == nil { + m.DelegatorVote = []byte{} + } + iNdEx = postIndex + case 103: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UndelegateClaim", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSummoning + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthSummoning + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthSummoning + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.UndelegateClaim = append(m.UndelegateClaim[:0], dAtA[iNdEx:postIndex]...) + if m.UndelegateClaim == nil { + m.UndelegateClaim = []byte{} + } + iNdEx = postIndex + case 104: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Swap", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSummoning + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthSummoning + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthSummoning + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Swap = append(m.Swap[:0], dAtA[iNdEx:postIndex]...) + if m.Swap == nil { + m.Swap = []byte{} + } + iNdEx = postIndex + case 105: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SwapClaim", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSummoning + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthSummoning + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthSummoning + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SwapClaim = append(m.SwapClaim[:0], dAtA[iNdEx:postIndex]...) + if m.SwapClaim == nil { + m.SwapClaim = []byte{} + } + iNdEx = postIndex + case 106: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NulliferDerivationCrs", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSummoning + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthSummoning + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthSummoning + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NulliferDerivationCrs = append(m.NulliferDerivationCrs[:0], dAtA[iNdEx:postIndex]...) + if m.NulliferDerivationCrs == nil { + m.NulliferDerivationCrs = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSummoning(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthSummoning + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ParticipateResponse) 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 ErrIntOverflowSummoning + } + 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: ParticipateResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ParticipateResponse: 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) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSummoning + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSummoning + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSummoning + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &ParticipateResponse_Position{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Msg = &ParticipateResponse_Position_{v} + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContributeNow", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSummoning + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSummoning + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSummoning + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &ParticipateResponse_ContributeNow{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Msg = &ParticipateResponse_ContributeNow_{v} + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Confirm", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSummoning + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSummoning + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSummoning + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &ParticipateResponse_Confirm{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Msg = &ParticipateResponse_Confirm_{v} + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSummoning(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthSummoning + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ParticipateResponse_Position) 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 ErrIntOverflowSummoning + } + 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: Position: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Position: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + 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 ErrIntOverflowSummoning + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Position |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ConnectedParticipants", wireType) + } + m.ConnectedParticipants = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSummoning + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ConnectedParticipants |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LastSlotBid", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSummoning + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSummoning + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSummoning + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.LastSlotBid == nil { + m.LastSlotBid = &v1alpha11.Amount{} + } + if err := m.LastSlotBid.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field YourBid", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSummoning + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSummoning + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSummoning + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.YourBid == nil { + m.YourBid = &v1alpha11.Amount{} + } + if err := m.YourBid.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSummoning(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthSummoning + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ParticipateResponse_ContributeNow) 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 ErrIntOverflowSummoning + } + 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: ContributeNow: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ContributeNow: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Parent", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSummoning + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSummoning + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSummoning + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Parent == nil { + m.Parent = &CeremonyCrs{} + } + if err := m.Parent.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSummoning(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthSummoning + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ParticipateResponse_Confirm) 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 ErrIntOverflowSummoning + } + 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: Confirm: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Confirm: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Slot", wireType) + } + m.Slot = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSummoning + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Slot |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipSummoning(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthSummoning + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipSummoning(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, ErrIntOverflowSummoning + } + 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, ErrIntOverflowSummoning + } + 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, ErrIntOverflowSummoning + } + 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, ErrInvalidLengthSummoning + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupSummoning + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthSummoning + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthSummoning = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowSummoning = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupSummoning = fmt.Errorf("proto: unexpected end of group") +) diff --git a/relayer/chains/penumbra/util/tendermint_proxy/v1alpha1/tendermint_proxy.pb.go b/relayer/chains/penumbra/util/tendermint_proxy/v1alpha1/tendermint_proxy.pb.go new file mode 100644 index 000000000..aad816a9a --- /dev/null +++ b/relayer/chains/penumbra/util/tendermint_proxy/v1alpha1/tendermint_proxy.pb.go @@ -0,0 +1,4706 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: penumbra/util/tendermint_proxy/v1alpha1/tendermint_proxy.proto + +package tendermint_proxyv1alpha1 + +import ( + context "context" + fmt "fmt" + crypto "github.com/cometbft/cometbft/proto/tendermint/crypto" + p2p "github.com/cometbft/cometbft/proto/tendermint/p2p" + types "github.com/cometbft/cometbft/proto/tendermint/types" + grpc1 "github.com/cosmos/gogoproto/grpc" + proto "github.com/cosmos/gogoproto/proto" + types1 "github.com/cosmos/gogoproto/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 + +// GetTxRequest is the request type for the GetTx RPC method. +type GetTxRequest struct { + // Hash of transaction to retrieve + Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` + // Include proofs of the transaction's inclusion in the block + Prove bool `protobuf:"varint,2,opt,name=prove,proto3" json:"prove,omitempty"` +} + +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} +} +func (m *GetTxRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetTxRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetTxRequest.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 *GetTxRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetTxRequest.Merge(m, src) +} +func (m *GetTxRequest) XXX_Size() int { + return m.Size() +} +func (m *GetTxRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetTxRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GetTxRequest proto.InternalMessageInfo + +func (m *GetTxRequest) GetHash() []byte { + if m != nil { + return m.Hash + } + return nil +} + +func (m *GetTxRequest) GetProve() bool { + if m != nil { + return m.Prove + } + return false +} + +// GetTxResponse is the response type for the GetTx RPC method. +type GetTxResponse struct { + // Hash of transaction + Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` + Height uint64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` + Index uint64 `protobuf:"varint,3,opt,name=index,proto3" json:"index,omitempty"` + TxResult *TxResult `protobuf:"bytes,4,opt,name=tx_result,json=txResult,proto3" json:"tx_result,omitempty"` + Tx []byte `protobuf:"bytes,5,opt,name=tx,proto3" json:"tx,omitempty"` +} + +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} +} +func (m *GetTxResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetTxResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetTxResponse.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 *GetTxResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetTxResponse.Merge(m, src) +} +func (m *GetTxResponse) XXX_Size() int { + return m.Size() +} +func (m *GetTxResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetTxResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_GetTxResponse proto.InternalMessageInfo + +func (m *GetTxResponse) GetHash() []byte { + if m != nil { + return m.Hash + } + return nil +} + +func (m *GetTxResponse) GetHeight() uint64 { + if m != nil { + return m.Height + } + return 0 +} + +func (m *GetTxResponse) GetIndex() uint64 { + if m != nil { + return m.Index + } + return 0 +} + +func (m *GetTxResponse) GetTxResult() *TxResult { + if m != nil { + return m.TxResult + } + return nil +} + +func (m *GetTxResponse) GetTx() []byte { + if m != nil { + return m.Tx + } + return nil +} + +type TxResult struct { + Log string `protobuf:"bytes,1,opt,name=log,proto3" json:"log,omitempty"` + GasWanted uint64 `protobuf:"varint,2,opt,name=gas_wanted,json=gasWanted,proto3" json:"gas_wanted,omitempty"` + GasUsed uint64 `protobuf:"varint,3,opt,name=gas_used,json=gasUsed,proto3" json:"gas_used,omitempty"` + Tags []*Tag `protobuf:"bytes,4,rep,name=tags,proto3" json:"tags,omitempty"` +} + +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} +} +func (m *TxResult) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TxResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TxResult.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 *TxResult) XXX_Merge(src proto.Message) { + xxx_messageInfo_TxResult.Merge(m, src) +} +func (m *TxResult) XXX_Size() int { + return m.Size() +} +func (m *TxResult) XXX_DiscardUnknown() { + xxx_messageInfo_TxResult.DiscardUnknown(m) +} + +var xxx_messageInfo_TxResult proto.InternalMessageInfo + +func (m *TxResult) GetLog() string { + if m != nil { + return m.Log + } + return "" +} + +func (m *TxResult) GetGasWanted() uint64 { + if m != nil { + return m.GasWanted + } + return 0 +} + +func (m *TxResult) GetGasUsed() uint64 { + if m != nil { + return m.GasUsed + } + return 0 +} + +func (m *TxResult) GetTags() []*Tag { + if m != nil { + return m.Tags + } + return nil +} + +type Tag struct { + Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` + Index bool `protobuf:"varint,3,opt,name=index,proto3" json:"index,omitempty"` +} + +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} +} +func (m *Tag) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Tag) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Tag.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 *Tag) XXX_Merge(src proto.Message) { + xxx_messageInfo_Tag.Merge(m, src) +} +func (m *Tag) XXX_Size() int { + return m.Size() +} +func (m *Tag) XXX_DiscardUnknown() { + xxx_messageInfo_Tag.DiscardUnknown(m) +} + +var xxx_messageInfo_Tag proto.InternalMessageInfo + +func (m *Tag) GetKey() []byte { + if m != nil { + return m.Key + } + return nil +} + +func (m *Tag) GetValue() []byte { + if m != nil { + return m.Value + } + return nil +} + +func (m *Tag) GetIndex() bool { + if m != nil { + return m.Index + } + return false +} + +// BroadcastTxAsyncRequest is the request type for the BroadcastTxAsync RPC method. +type BroadcastTxAsyncRequest struct { + Params []byte `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` + ReqId uint64 `protobuf:"varint,2,opt,name=req_id,json=reqId,proto3" json:"req_id,omitempty"` +} + +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} +} +func (m *BroadcastTxAsyncRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BroadcastTxAsyncRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BroadcastTxAsyncRequest.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 *BroadcastTxAsyncRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_BroadcastTxAsyncRequest.Merge(m, src) +} +func (m *BroadcastTxAsyncRequest) XXX_Size() int { + return m.Size() +} +func (m *BroadcastTxAsyncRequest) XXX_DiscardUnknown() { + xxx_messageInfo_BroadcastTxAsyncRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_BroadcastTxAsyncRequest proto.InternalMessageInfo + +func (m *BroadcastTxAsyncRequest) GetParams() []byte { + if m != nil { + return m.Params + } + return nil +} + +func (m *BroadcastTxAsyncRequest) GetReqId() uint64 { + if m != nil { + return m.ReqId + } + return 0 +} + +// BroadcastTxAsyncResponse is the response type for the BroadcastTxAsync RPC method. +type BroadcastTxAsyncResponse struct { + Code uint64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` + Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` + Log string `protobuf:"bytes,3,opt,name=log,proto3" json:"log,omitempty"` + Hash []byte `protobuf:"bytes,4,opt,name=hash,proto3" json:"hash,omitempty"` +} + +func (m *BroadcastTxAsyncResponse) Reset() { *m = BroadcastTxAsyncResponse{} } +func (m *BroadcastTxAsyncResponse) String() string { return proto.CompactTextString(m) } +func (*BroadcastTxAsyncResponse) ProtoMessage() {} +func (*BroadcastTxAsyncResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_7e4c505f155f813d, []int{5} +} +func (m *BroadcastTxAsyncResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BroadcastTxAsyncResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BroadcastTxAsyncResponse.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 *BroadcastTxAsyncResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_BroadcastTxAsyncResponse.Merge(m, src) +} +func (m *BroadcastTxAsyncResponse) XXX_Size() int { + return m.Size() +} +func (m *BroadcastTxAsyncResponse) XXX_DiscardUnknown() { + xxx_messageInfo_BroadcastTxAsyncResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_BroadcastTxAsyncResponse proto.InternalMessageInfo + +func (m *BroadcastTxAsyncResponse) GetCode() uint64 { + if m != nil { + return m.Code + } + return 0 +} + +func (m *BroadcastTxAsyncResponse) GetData() []byte { + if m != nil { + return m.Data + } + return nil +} + +func (m *BroadcastTxAsyncResponse) GetLog() string { + if m != nil { + return m.Log + } + return "" +} + +func (m *BroadcastTxAsyncResponse) GetHash() []byte { + if m != nil { + return m.Hash + } + return nil +} + +// BroadcastTxSyncRequest is the request type for the BroadcastTxSync RPC method. +type BroadcastTxSyncRequest struct { + Params []byte `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` + ReqId uint64 `protobuf:"varint,2,opt,name=req_id,json=reqId,proto3" json:"req_id,omitempty"` +} + +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} +} +func (m *BroadcastTxSyncRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BroadcastTxSyncRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BroadcastTxSyncRequest.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 *BroadcastTxSyncRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_BroadcastTxSyncRequest.Merge(m, src) +} +func (m *BroadcastTxSyncRequest) XXX_Size() int { + return m.Size() +} +func (m *BroadcastTxSyncRequest) XXX_DiscardUnknown() { + xxx_messageInfo_BroadcastTxSyncRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_BroadcastTxSyncRequest proto.InternalMessageInfo + +func (m *BroadcastTxSyncRequest) GetParams() []byte { + if m != nil { + return m.Params + } + return nil +} + +func (m *BroadcastTxSyncRequest) GetReqId() uint64 { + if m != nil { + return m.ReqId + } + return 0 +} + +// BroadcastTxSyncResponse is the response type for the BroadcastTxSync RPC method. +type BroadcastTxSyncResponse struct { + Code uint64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` + Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` + Log string `protobuf:"bytes,3,opt,name=log,proto3" json:"log,omitempty"` + Hash []byte `protobuf:"bytes,4,opt,name=hash,proto3" json:"hash,omitempty"` +} + +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} +} +func (m *BroadcastTxSyncResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BroadcastTxSyncResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BroadcastTxSyncResponse.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 *BroadcastTxSyncResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_BroadcastTxSyncResponse.Merge(m, src) +} +func (m *BroadcastTxSyncResponse) XXX_Size() int { + return m.Size() +} +func (m *BroadcastTxSyncResponse) XXX_DiscardUnknown() { + xxx_messageInfo_BroadcastTxSyncResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_BroadcastTxSyncResponse proto.InternalMessageInfo + +func (m *BroadcastTxSyncResponse) GetCode() uint64 { + if m != nil { + return m.Code + } + return 0 +} + +func (m *BroadcastTxSyncResponse) GetData() []byte { + if m != nil { + return m.Data + } + return nil +} + +func (m *BroadcastTxSyncResponse) GetLog() string { + if m != nil { + return m.Log + } + return "" +} + +func (m *BroadcastTxSyncResponse) GetHash() []byte { + if m != nil { + return m.Hash + } + return nil +} + +// GetStatusRequest is the request type for the Query/GetStatus RPC method. +type GetStatusRequest struct { +} + +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} +} +func (m *GetStatusRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetStatusRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetStatusRequest.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 *GetStatusRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetStatusRequest.Merge(m, src) +} +func (m *GetStatusRequest) XXX_Size() int { + return m.Size() +} +func (m *GetStatusRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetStatusRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GetStatusRequest proto.InternalMessageInfo + +// GetStatusResponse is the response type for the Query/GetStatus RPC method. +type GetStatusResponse struct { + NodeInfo *p2p.DefaultNodeInfo `protobuf:"bytes,1,opt,name=node_info,json=nodeInfo,proto3" json:"node_info,omitempty"` + SyncInfo *SyncInfo `protobuf:"bytes,2,opt,name=sync_info,json=syncInfo,proto3" json:"sync_info,omitempty"` + ValidatorInfo *types.Validator `protobuf:"bytes,3,opt,name=validator_info,json=validatorInfo,proto3" json:"validator_info,omitempty"` +} + +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} +} +func (m *GetStatusResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetStatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetStatusResponse.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 *GetStatusResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetStatusResponse.Merge(m, src) +} +func (m *GetStatusResponse) XXX_Size() int { + return m.Size() +} +func (m *GetStatusResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetStatusResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_GetStatusResponse proto.InternalMessageInfo + +func (m *GetStatusResponse) GetNodeInfo() *p2p.DefaultNodeInfo { + if m != nil { + return m.NodeInfo + } + return nil +} + +func (m *GetStatusResponse) GetSyncInfo() *SyncInfo { + if m != nil { + return m.SyncInfo + } + return nil +} + +func (m *GetStatusResponse) GetValidatorInfo() *types.Validator { + if m != nil { + return m.ValidatorInfo + } + return nil +} + +type SyncInfo struct { + LatestBlockHash []byte `protobuf:"bytes,1,opt,name=latest_block_hash,json=latestBlockHash,proto3" json:"latest_block_hash,omitempty"` + LatestAppHash []byte `protobuf:"bytes,2,opt,name=latest_app_hash,json=latestAppHash,proto3" json:"latest_app_hash,omitempty"` + LatestBlockHeight uint64 `protobuf:"varint,3,opt,name=latest_block_height,json=latestBlockHeight,proto3" json:"latest_block_height,omitempty"` + LatestBlockTime *types1.Timestamp `protobuf:"bytes,4,opt,name=latest_block_time,json=latestBlockTime,proto3" json:"latest_block_time,omitempty"` + // These are implemented in tendermint, but not + // in tendermint-rpc. + // bytes earliest_block_hash = 5; + // bytes earliest_app_hash = 6; + // uint64 earliest_block_height = 7; + // google.protobuf.Timestamp earliest_block_time = 8; + CatchingUp bool `protobuf:"varint,9,opt,name=catching_up,json=catchingUp,proto3" json:"catching_up,omitempty"` +} + +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} +} +func (m *SyncInfo) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SyncInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SyncInfo.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 *SyncInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_SyncInfo.Merge(m, src) +} +func (m *SyncInfo) XXX_Size() int { + return m.Size() +} +func (m *SyncInfo) XXX_DiscardUnknown() { + xxx_messageInfo_SyncInfo.DiscardUnknown(m) +} + +var xxx_messageInfo_SyncInfo proto.InternalMessageInfo + +func (m *SyncInfo) GetLatestBlockHash() []byte { + if m != nil { + return m.LatestBlockHash + } + return nil +} + +func (m *SyncInfo) GetLatestAppHash() []byte { + if m != nil { + return m.LatestAppHash + } + return nil +} + +func (m *SyncInfo) GetLatestBlockHeight() uint64 { + if m != nil { + return m.LatestBlockHeight + } + return 0 +} + +func (m *SyncInfo) GetLatestBlockTime() *types1.Timestamp { + if m != nil { + return m.LatestBlockTime + } + return nil +} + +func (m *SyncInfo) GetCatchingUp() bool { + if m != nil { + return m.CatchingUp + } + return false +} + +// ABCIQueryRequest defines the request structure for the ABCIQuery gRPC query. +type ABCIQueryRequest struct { + Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` + Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` + Height int64 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"` + Prove bool `protobuf:"varint,4,opt,name=prove,proto3" json:"prove,omitempty"` +} + +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} +} +func (m *ABCIQueryRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ABCIQueryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ABCIQueryRequest.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 *ABCIQueryRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ABCIQueryRequest.Merge(m, src) +} +func (m *ABCIQueryRequest) XXX_Size() int { + return m.Size() +} +func (m *ABCIQueryRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ABCIQueryRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ABCIQueryRequest proto.InternalMessageInfo + +func (m *ABCIQueryRequest) GetData() []byte { + if m != nil { + return m.Data + } + return nil +} + +func (m *ABCIQueryRequest) GetPath() string { + if m != nil { + return m.Path + } + return "" +} + +func (m *ABCIQueryRequest) GetHeight() int64 { + if m != nil { + return m.Height + } + return 0 +} + +func (m *ABCIQueryRequest) GetProve() bool { + if m != nil { + return m.Prove + } + return false +} + +// ABCIQueryResponse defines the response structure for the ABCIQuery gRPC query. +// +// Note: This type is a duplicate of the ResponseQuery proto type defined in +// Tendermint. +type ABCIQueryResponse struct { + Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` + Log string `protobuf:"bytes,3,opt,name=log,proto3" json:"log,omitempty"` + Info string `protobuf:"bytes,4,opt,name=info,proto3" json:"info,omitempty"` + Index int64 `protobuf:"varint,5,opt,name=index,proto3" json:"index,omitempty"` + Key []byte `protobuf:"bytes,6,opt,name=key,proto3" json:"key,omitempty"` + Value []byte `protobuf:"bytes,7,opt,name=value,proto3" json:"value,omitempty"` + ProofOps *crypto.ProofOps `protobuf:"bytes,8,opt,name=proof_ops,json=proofOps,proto3" json:"proof_ops,omitempty"` + Height int64 `protobuf:"varint,9,opt,name=height,proto3" json:"height,omitempty"` + Codespace string `protobuf:"bytes,10,opt,name=codespace,proto3" json:"codespace,omitempty"` +} + +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} +} +func (m *ABCIQueryResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ABCIQueryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ABCIQueryResponse.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 *ABCIQueryResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ABCIQueryResponse.Merge(m, src) +} +func (m *ABCIQueryResponse) XXX_Size() int { + return m.Size() +} +func (m *ABCIQueryResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ABCIQueryResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ABCIQueryResponse proto.InternalMessageInfo + +func (m *ABCIQueryResponse) GetCode() uint32 { + if m != nil { + return m.Code + } + return 0 +} + +func (m *ABCIQueryResponse) GetLog() string { + if m != nil { + return m.Log + } + return "" +} + +func (m *ABCIQueryResponse) GetInfo() string { + if m != nil { + return m.Info + } + return "" +} + +func (m *ABCIQueryResponse) GetIndex() int64 { + if m != nil { + return m.Index + } + return 0 +} + +func (m *ABCIQueryResponse) GetKey() []byte { + if m != nil { + return m.Key + } + return nil +} + +func (m *ABCIQueryResponse) GetValue() []byte { + if m != nil { + return m.Value + } + return nil +} + +func (m *ABCIQueryResponse) GetProofOps() *crypto.ProofOps { + if m != nil { + return m.ProofOps + } + return nil +} + +func (m *ABCIQueryResponse) GetHeight() int64 { + if m != nil { + return m.Height + } + return 0 +} + +func (m *ABCIQueryResponse) GetCodespace() string { + if m != nil { + return m.Codespace + } + return "" +} + +// GetBlockByHeightRequest is the request type for the Query/GetBlockByHeight RPC method. +type GetBlockByHeightRequest struct { + Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` +} + +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} +} +func (m *GetBlockByHeightRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetBlockByHeightRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetBlockByHeightRequest.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 *GetBlockByHeightRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetBlockByHeightRequest.Merge(m, src) +} +func (m *GetBlockByHeightRequest) XXX_Size() int { + return m.Size() +} +func (m *GetBlockByHeightRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetBlockByHeightRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GetBlockByHeightRequest proto.InternalMessageInfo + +func (m *GetBlockByHeightRequest) GetHeight() int64 { + if m != nil { + return m.Height + } + return 0 +} + +// GetBlockByHeightResponse is the response type for the Query/GetBlockByHeight RPC method. +type GetBlockByHeightResponse struct { + BlockId *types.BlockID `protobuf:"bytes,1,opt,name=block_id,json=blockId,proto3" json:"block_id,omitempty"` + Block *types.Block `protobuf:"bytes,2,opt,name=block,proto3" json:"block,omitempty"` +} + +func (m *GetBlockByHeightResponse) Reset() { *m = GetBlockByHeightResponse{} } +func (m *GetBlockByHeightResponse) String() string { return proto.CompactTextString(m) } +func (*GetBlockByHeightResponse) ProtoMessage() {} +func (*GetBlockByHeightResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_7e4c505f155f813d, []int{14} +} +func (m *GetBlockByHeightResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetBlockByHeightResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetBlockByHeightResponse.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 *GetBlockByHeightResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetBlockByHeightResponse.Merge(m, src) +} +func (m *GetBlockByHeightResponse) XXX_Size() int { + return m.Size() +} +func (m *GetBlockByHeightResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetBlockByHeightResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_GetBlockByHeightResponse proto.InternalMessageInfo + +func (m *GetBlockByHeightResponse) GetBlockId() *types.BlockID { + if m != nil { + return m.BlockId + } + return nil +} + +func (m *GetBlockByHeightResponse) GetBlock() *types.Block { + if m != nil { + return m.Block + } + return nil +} + +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") +} + +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, 0xc9, 0xce, 0xac, 0xb1, 0x4f, 0x08, + 0xa9, 0x7f, 0x00, 0x27, 0x04, 0x57, 0x8e, 0xdc, 0xf8, 0x2f, 0x10, 0xa7, 0x1e, 0x39, 0xa2, 0x44, + 0x5c, 0xb8, 0x71, 0xe2, 0x8a, 0xe6, 0x63, 0xed, 0x8d, 0x9d, 0x48, 0x76, 0x10, 0xb7, 0xb7, 0xf3, + 0xde, 0xef, 0xcd, 0x6f, 0xde, 0xbc, 0xf7, 0x1b, 0x1b, 0x3e, 0x22, 0x38, 0x4c, 0xfa, 0x87, 0x31, + 0xb2, 0x12, 0xe6, 0x07, 0x16, 0xc3, 0xa1, 0x8b, 0xe3, 0xbe, 0x1f, 0xb2, 0x2e, 0x89, 0xa3, 0xe1, + 0xc8, 0x1a, 0x6c, 0xa1, 0x80, 0xf4, 0xd0, 0xd6, 0x8c, 0xc7, 0x24, 0x71, 0xc4, 0x22, 0xfd, 0xd5, + 0x14, 0x6f, 0x72, 0xbc, 0x39, 0x13, 0x95, 0xe2, 0x6b, 0x77, 0xbd, 0x28, 0xf2, 0x02, 0x6c, 0x09, + 0xd8, 0x61, 0x72, 0x64, 0x31, 0xbf, 0x8f, 0x29, 0x43, 0x7d, 0x22, 0x33, 0xd5, 0xee, 0x4c, 0xb0, + 0x96, 0x13, 0x8f, 0x08, 0x8b, 0x78, 0x6c, 0x74, 0xa4, 0xdc, 0xb5, 0x8c, 0x9b, 0x34, 0x88, 0xc5, + 0x46, 0x04, 0x53, 0xe5, 0xbb, 0x9d, 0xf1, 0x89, 0x75, 0xeb, 0x30, 0x88, 0x9c, 0x67, 0x17, 0x7a, + 0xb3, 0xd8, 0x8d, 0x19, 0xef, 0x00, 0x05, 0xbe, 0x8b, 0x58, 0x14, 0xcb, 0x08, 0xe3, 0x3e, 0x5c, + 0xdd, 0xc1, 0xac, 0x33, 0xb4, 0xf1, 0x71, 0x82, 0x29, 0xd3, 0x75, 0x28, 0xf4, 0x10, 0xed, 0x55, + 0xb5, 0x0d, 0x6d, 0xf3, 0xaa, 0x2d, 0x6c, 0xfd, 0x06, 0x14, 0x49, 0x1c, 0x0d, 0x70, 0x35, 0xb7, + 0xa1, 0x6d, 0x96, 0x6d, 0xf9, 0x61, 0xfc, 0xa2, 0xc1, 0x8a, 0x82, 0x52, 0x12, 0x85, 0x14, 0x9f, + 0x8b, 0x5d, 0x87, 0x52, 0x0f, 0xfb, 0x5e, 0x8f, 0x09, 0x70, 0xc1, 0x56, 0x5f, 0x3c, 0xa7, 0x1f, + 0xba, 0x78, 0x58, 0xcd, 0x8b, 0x65, 0xf9, 0xa1, 0x3f, 0x81, 0x0a, 0x1b, 0x76, 0x63, 0x4c, 0x93, + 0x80, 0x55, 0x0b, 0x1b, 0xda, 0xe6, 0x72, 0x63, 0xcb, 0x9c, 0xf3, 0x12, 0x4c, 0xc1, 0x24, 0x09, + 0x98, 0x5d, 0x66, 0xca, 0xd2, 0xaf, 0x41, 0x8e, 0x0d, 0xab, 0x45, 0xc1, 0x27, 0xc7, 0x86, 0xc6, + 0x0f, 0x1a, 0x94, 0xd3, 0x30, 0x7d, 0x15, 0xf2, 0x41, 0xe4, 0x09, 0xb6, 0x15, 0x9b, 0x9b, 0xfa, + 0x1d, 0x00, 0x0f, 0xd1, 0xee, 0xd7, 0x28, 0x64, 0xd8, 0x55, 0x84, 0x2b, 0x1e, 0xa2, 0x5f, 0x8a, + 0x05, 0xfd, 0x16, 0x94, 0xb9, 0x3b, 0xa1, 0xd8, 0x55, 0xb4, 0xaf, 0x78, 0x88, 0xee, 0x53, 0xec, + 0xea, 0x0f, 0xa0, 0xc0, 0x90, 0x47, 0xab, 0x85, 0x8d, 0xfc, 0xe6, 0x72, 0xe3, 0xcd, 0xf9, 0x39, + 0x23, 0xcf, 0x16, 0x48, 0xe3, 0x21, 0xe4, 0x3b, 0xc8, 0xe3, 0xa4, 0x9e, 0xe1, 0x91, 0x2a, 0x21, + 0x37, 0x79, 0xa5, 0x06, 0x28, 0x48, 0x64, 0xf5, 0xaf, 0xda, 0xf2, 0xe3, 0x6c, 0xfd, 0xca, 0xaa, + 0x7e, 0xc6, 0x63, 0xb8, 0xd9, 0x8a, 0x23, 0xe4, 0x3a, 0x88, 0xb2, 0xce, 0x70, 0x9b, 0x8e, 0x42, + 0x27, 0xbd, 0xd8, 0x75, 0x28, 0x11, 0x14, 0xa3, 0x3e, 0x55, 0xb9, 0xd5, 0x97, 0xfe, 0x32, 0x94, + 0x62, 0x7c, 0xdc, 0xf5, 0xd3, 0xf3, 0x16, 0x63, 0x7c, 0xbc, 0xeb, 0x1a, 0x3d, 0xa8, 0xce, 0x66, + 0x9a, 0xdc, 0xb3, 0x13, 0xb9, 0x58, 0x24, 0x2a, 0xd8, 0xc2, 0xe6, 0x6b, 0x2e, 0x62, 0x48, 0x91, + 0x14, 0x76, 0x5a, 0xe0, 0xfc, 0xa4, 0xc0, 0x69, 0x87, 0x14, 0x26, 0x1d, 0x62, 0xec, 0xc0, 0x7a, + 0x66, 0xa7, 0xbd, 0xcb, 0x53, 0xf6, 0xce, 0x1c, 0x7e, 0xef, 0xff, 0x63, 0xac, 0xc3, 0xea, 0x0e, + 0x66, 0x7b, 0x0c, 0xb1, 0x84, 0x2a, 0xae, 0xc6, 0x9f, 0x1a, 0xac, 0x65, 0x16, 0xd5, 0xbe, 0x1f, + 0x42, 0x25, 0x8c, 0x5c, 0xdc, 0xf5, 0xc3, 0xa3, 0x48, 0x6c, 0xbe, 0xdc, 0xb8, 0x9b, 0xe9, 0x06, + 0x93, 0x34, 0x88, 0xf9, 0x08, 0x1f, 0xa1, 0x24, 0x60, 0x4f, 0x22, 0x17, 0xef, 0x86, 0x47, 0x91, + 0x5d, 0x0e, 0x95, 0xc5, 0xa7, 0x81, 0xd7, 0x5d, 0xa2, 0x73, 0x0b, 0x4e, 0x03, 0x3f, 0xbf, 0xcc, + 0x47, 0x95, 0xa5, 0xb7, 0xe0, 0xda, 0x78, 0xfc, 0x65, 0xd2, 0xbc, 0x48, 0xfa, 0x4a, 0x96, 0x92, + 0x94, 0x8f, 0xa7, 0x69, 0x9c, 0xbd, 0x32, 0x86, 0xf0, 0x1c, 0xc6, 0x3f, 0x1a, 0x94, 0xd3, 0xd4, + 0xfa, 0xeb, 0xb0, 0x16, 0x20, 0x86, 0x29, 0xeb, 0x0a, 0x49, 0xea, 0x66, 0xa6, 0xff, 0xba, 0x74, + 0xb4, 0xf8, 0xfa, 0x63, 0x2e, 0x04, 0xf7, 0x40, 0x2d, 0x75, 0x11, 0x21, 0x32, 0x52, 0x56, 0x7e, + 0x45, 0x2e, 0x6f, 0x13, 0x22, 0xe2, 0x4c, 0x78, 0xe9, 0x6c, 0x4e, 0xa9, 0x1e, 0x72, 0xde, 0xd6, + 0xb2, 0x59, 0xa5, 0x90, 0x7c, 0x32, 0xc5, 0x81, 0x2b, 0xaf, 0x92, 0x8e, 0x9a, 0x29, 0x65, 0xd9, + 0x4c, 0x65, 0xd9, 0xec, 0xa4, 0xb2, 0x7c, 0x86, 0x1f, 0x5f, 0xd5, 0xef, 0xc2, 0xb2, 0x83, 0x98, + 0xd3, 0xf3, 0x43, 0xaf, 0x9b, 0x90, 0x6a, 0x45, 0x8c, 0x15, 0xa4, 0x4b, 0xfb, 0xc4, 0xe8, 0xc1, + 0xea, 0x76, 0xeb, 0xe1, 0xee, 0x17, 0x09, 0x8e, 0x47, 0x19, 0xb5, 0x14, 0x3d, 0xa4, 0x65, 0x7a, + 0x48, 0x87, 0x02, 0x41, 0x4c, 0x9e, 0xae, 0x62, 0x0b, 0x3b, 0xa3, 0x82, 0xfc, 0x1c, 0xf9, 0xac, + 0x0a, 0x4a, 0x65, 0x2d, 0x64, 0x95, 0xf5, 0xdb, 0x1c, 0xac, 0x65, 0xb6, 0x3a, 0xa7, 0x87, 0x57, + 0x54, 0x0f, 0x9f, 0xdb, 0xaf, 0xe2, 0x66, 0x0b, 0x72, 0x77, 0x6e, 0x4f, 0xb4, 0xa2, 0x28, 0x36, + 0x57, 0x5a, 0xab, 0x94, 0xa6, 0x74, 0x8e, 0xd2, 0x5c, 0xc9, 0x2a, 0xcd, 0x7d, 0xa8, 0x88, 0xa7, + 0xaa, 0x1b, 0x11, 0x5a, 0x2d, 0xcf, 0x36, 0x8c, 0x7c, 0xce, 0xcc, 0x36, 0x8f, 0xf9, 0x9c, 0x50, + 0xbb, 0x4c, 0x94, 0x95, 0x39, 0x75, 0xe5, 0xcc, 0xa9, 0x6f, 0x43, 0x85, 0xb3, 0xa7, 0x04, 0x39, + 0xb8, 0x0a, 0x82, 0xe8, 0x64, 0xe1, 0xd3, 0x42, 0x39, 0xb7, 0x9a, 0x37, 0xb6, 0xe0, 0xe6, 0x0e, + 0x96, 0xd7, 0xd3, 0x1a, 0xc9, 0xab, 0xce, 0xc8, 0x82, 0x4a, 0xab, 0x65, 0xd3, 0x1a, 0xdf, 0x40, + 0x75, 0x16, 0xa2, 0x8a, 0xf7, 0x0e, 0x94, 0x65, 0x7b, 0xf8, 0xae, 0x9a, 0xc3, 0x5b, 0xb3, 0x4d, + 0x2f, 0xa0, 0xbb, 0x8f, 0xec, 0x2b, 0x22, 0x74, 0xd7, 0xd5, 0xdf, 0x82, 0xa2, 0x30, 0xd5, 0xf0, + 0xdd, 0xbc, 0x00, 0x62, 0xcb, 0xa8, 0xc6, 0xdf, 0x25, 0x58, 0xef, 0x8c, 0x23, 0xda, 0x7c, 0x1e, + 0xf7, 0x70, 0x3c, 0xf0, 0x1d, 0xac, 0x3f, 0xd7, 0xa0, 0x32, 0x96, 0x07, 0xfd, 0xfd, 0xb9, 0xa7, + 0x78, 0x5a, 0x67, 0x6a, 0xcd, 0xcb, 0x40, 0x65, 0x11, 0x8c, 0x25, 0xfd, 0x47, 0x0d, 0x56, 0xa7, + 0x65, 0x5d, 0x7f, 0x30, 0x77, 0xca, 0x0b, 0xde, 0x96, 0xda, 0xf6, 0x7f, 0xc8, 0x30, 0xe6, 0xf6, + 0xbd, 0x06, 0xd7, 0xa7, 0xf4, 0x5b, 0xff, 0xf8, 0x32, 0x89, 0x33, 0x4f, 0x48, 0xed, 0xc1, 0xe5, + 0x13, 0x8c, 0x89, 0x0d, 0xa1, 0x28, 0x7e, 0xe7, 0xe8, 0xef, 0x2e, 0x52, 0xfb, 0xf1, 0x4f, 0xaa, + 0xda, 0x7b, 0x8b, 0xc2, 0xc6, 0x3b, 0xf3, 0xae, 0x19, 0x0b, 0xc1, 0x02, 0x5d, 0x33, 0xad, 0x53, + 0x0b, 0x74, 0xcd, 0x8c, 0xee, 0xa8, 0xae, 0x99, 0x9e, 0xac, 0x05, 0xba, 0xe6, 0x82, 0x39, 0x5e, + 0xa0, 0x6b, 0x2e, 0x1a, 0x6b, 0x63, 0xa9, 0xf5, 0x3c, 0xff, 0xeb, 0x49, 0x5d, 0x7b, 0x71, 0x52, + 0xd7, 0xfe, 0x38, 0xa9, 0x6b, 0xdf, 0x9d, 0xd6, 0x97, 0x5e, 0x9c, 0xd6, 0x97, 0x7e, 0x3f, 0xad, + 0x2f, 0xc1, 0x1b, 0x4e, 0xd4, 0x9f, 0x77, 0x8b, 0xd6, 0x8d, 0xa9, 0xc1, 0x6d, 0xf3, 0x27, 0xa3, + 0xad, 0x7d, 0x15, 0x78, 0x3e, 0xeb, 0x25, 0x87, 0xa6, 0x13, 0xf5, 0x2d, 0x27, 0xa2, 0xfd, 0x88, + 0x5a, 0x31, 0x0e, 0xd0, 0x08, 0xc7, 0xd6, 0xa0, 0x31, 0x36, 0x9d, 0x1e, 0xf2, 0x43, 0x6a, 0xcd, + 0xf9, 0x77, 0xe3, 0x83, 0x69, 0x4f, 0xea, 0xf8, 0x29, 0x97, 0x6f, 0xef, 0x77, 0x7e, 0xce, 0xdd, + 0x6b, 0xa7, 0xac, 0xf7, 0x39, 0xeb, 0x29, 0x6a, 0xe6, 0x53, 0x15, 0xfe, 0xdb, 0x24, 0xf0, 0x80, + 0x07, 0x1e, 0x4c, 0x05, 0x1e, 0xa4, 0x81, 0x27, 0xb9, 0xc6, 0x7c, 0x81, 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, +} + +// 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 + +// TendermintProxyServiceClient is the client API for TendermintProxyService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type TendermintProxyServiceClient interface { + // Status queries the current status. + GetStatus(ctx context.Context, in *GetStatusRequest, opts ...grpc.CallOption) (*GetStatusResponse, error) + // Broadcast a transaction asynchronously. + BroadcastTxAsync(ctx context.Context, in *BroadcastTxAsyncRequest, opts ...grpc.CallOption) (*BroadcastTxAsyncResponse, error) + // Broadcast a transaction synchronously. + BroadcastTxSync(ctx context.Context, in *BroadcastTxSyncRequest, opts ...grpc.CallOption) (*BroadcastTxSyncResponse, error) + // Fetch a transaction by hash. + GetTx(ctx context.Context, in *GetTxRequest, opts ...grpc.CallOption) (*GetTxResponse, error) + // ABCIQuery defines a query handler that supports ABCI queries directly to the + // application, bypassing Tendermint completely. The ABCI query must contain + // a valid and supported path, including app, custom, p2p, and store. + ABCIQuery(ctx context.Context, in *ABCIQueryRequest, opts ...grpc.CallOption) (*ABCIQueryResponse, error) + // GetBlockByHeight queries block for given height. + GetBlockByHeight(ctx context.Context, in *GetBlockByHeightRequest, opts ...grpc.CallOption) (*GetBlockByHeightResponse, error) +} + +type tendermintProxyServiceClient struct { + cc grpc1.ClientConn +} + +func NewTendermintProxyServiceClient(cc grpc1.ClientConn) TendermintProxyServiceClient { + return &tendermintProxyServiceClient{cc} +} + +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...) + if err != nil { + return nil, err + } + return out, nil +} + +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...) + if err != nil { + return nil, err + } + return out, nil +} + +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...) + if err != nil { + return nil, err + } + return out, nil +} + +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...) + if err != nil { + return nil, err + } + return out, nil +} + +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...) + if err != nil { + return nil, err + } + return out, nil +} + +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...) + if err != nil { + return nil, err + } + return out, nil +} + +// TendermintProxyServiceServer is the server API for TendermintProxyService service. +type TendermintProxyServiceServer interface { + // Status queries the current status. + GetStatus(context.Context, *GetStatusRequest) (*GetStatusResponse, error) + // Broadcast a transaction asynchronously. + BroadcastTxAsync(context.Context, *BroadcastTxAsyncRequest) (*BroadcastTxAsyncResponse, error) + // Broadcast a transaction synchronously. + BroadcastTxSync(context.Context, *BroadcastTxSyncRequest) (*BroadcastTxSyncResponse, error) + // Fetch a transaction by hash. + GetTx(context.Context, *GetTxRequest) (*GetTxResponse, error) + // ABCIQuery defines a query handler that supports ABCI queries directly to the + // application, bypassing Tendermint completely. The ABCI query must contain + // a valid and supported path, including app, custom, p2p, and store. + ABCIQuery(context.Context, *ABCIQueryRequest) (*ABCIQueryResponse, error) + // GetBlockByHeight queries block for given height. + GetBlockByHeight(context.Context, *GetBlockByHeightRequest) (*GetBlockByHeightResponse, error) +} + +// UnimplementedTendermintProxyServiceServer can be embedded to have forward compatible implementations. +type UnimplementedTendermintProxyServiceServer struct { +} + +func (*UnimplementedTendermintProxyServiceServer) GetStatus(ctx context.Context, req *GetStatusRequest) (*GetStatusResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetStatus not implemented") +} +func (*UnimplementedTendermintProxyServiceServer) BroadcastTxAsync(ctx context.Context, req *BroadcastTxAsyncRequest) (*BroadcastTxAsyncResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method BroadcastTxAsync not implemented") +} +func (*UnimplementedTendermintProxyServiceServer) BroadcastTxSync(ctx context.Context, req *BroadcastTxSyncRequest) (*BroadcastTxSyncResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method BroadcastTxSync not implemented") +} +func (*UnimplementedTendermintProxyServiceServer) GetTx(ctx context.Context, req *GetTxRequest) (*GetTxResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetTx not implemented") +} +func (*UnimplementedTendermintProxyServiceServer) ABCIQuery(ctx context.Context, req *ABCIQueryRequest) (*ABCIQueryResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ABCIQuery not implemented") +} +func (*UnimplementedTendermintProxyServiceServer) GetBlockByHeight(ctx context.Context, req *GetBlockByHeightRequest) (*GetBlockByHeightResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetBlockByHeight not implemented") +} + +func RegisterTendermintProxyServiceServer(s grpc1.Server, srv TendermintProxyServiceServer) { + s.RegisterService(&_TendermintProxyService_serviceDesc, srv) +} + +func _TendermintProxyService_GetStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetStatusRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(TendermintProxyServiceServer).GetStatus(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/penumbra.util.tendermint_proxy.v1alpha1.TendermintProxyService/GetStatus", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(TendermintProxyServiceServer).GetStatus(ctx, req.(*GetStatusRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _TendermintProxyService_BroadcastTxAsync_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(BroadcastTxAsyncRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(TendermintProxyServiceServer).BroadcastTxAsync(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/penumbra.util.tendermint_proxy.v1alpha1.TendermintProxyService/BroadcastTxAsync", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(TendermintProxyServiceServer).BroadcastTxAsync(ctx, req.(*BroadcastTxAsyncRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _TendermintProxyService_BroadcastTxSync_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(BroadcastTxSyncRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(TendermintProxyServiceServer).BroadcastTxSync(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/penumbra.util.tendermint_proxy.v1alpha1.TendermintProxyService/BroadcastTxSync", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(TendermintProxyServiceServer).BroadcastTxSync(ctx, req.(*BroadcastTxSyncRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _TendermintProxyService_GetTx_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetTxRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(TendermintProxyServiceServer).GetTx(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/penumbra.util.tendermint_proxy.v1alpha1.TendermintProxyService/GetTx", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(TendermintProxyServiceServer).GetTx(ctx, req.(*GetTxRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _TendermintProxyService_ABCIQuery_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ABCIQueryRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(TendermintProxyServiceServer).ABCIQuery(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/penumbra.util.tendermint_proxy.v1alpha1.TendermintProxyService/ABCIQuery", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(TendermintProxyServiceServer).ABCIQuery(ctx, req.(*ABCIQueryRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _TendermintProxyService_GetBlockByHeight_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetBlockByHeightRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(TendermintProxyServiceServer).GetBlockByHeight(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/penumbra.util.tendermint_proxy.v1alpha1.TendermintProxyService/GetBlockByHeight", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(TendermintProxyServiceServer).GetBlockByHeight(ctx, req.(*GetBlockByHeightRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _TendermintProxyService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "penumbra.util.tendermint_proxy.v1alpha1.TendermintProxyService", + HandlerType: (*TendermintProxyServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "GetStatus", + Handler: _TendermintProxyService_GetStatus_Handler, + }, + { + MethodName: "BroadcastTxAsync", + Handler: _TendermintProxyService_BroadcastTxAsync_Handler, + }, + { + MethodName: "BroadcastTxSync", + Handler: _TendermintProxyService_BroadcastTxSync_Handler, + }, + { + MethodName: "GetTx", + Handler: _TendermintProxyService_GetTx_Handler, + }, + { + MethodName: "ABCIQuery", + Handler: _TendermintProxyService_ABCIQuery_Handler, + }, + { + MethodName: "GetBlockByHeight", + Handler: _TendermintProxyService_GetBlockByHeight_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "penumbra/util/tendermint_proxy/v1alpha1/tendermint_proxy.proto", +} + +func (m *GetTxRequest) 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 *GetTxRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetTxRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Prove { + i-- + if m.Prove { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x10 + } + if len(m.Hash) > 0 { + i -= len(m.Hash) + copy(dAtA[i:], m.Hash) + i = encodeVarintTendermintProxy(dAtA, i, uint64(len(m.Hash))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *GetTxResponse) 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 *GetTxResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetTxResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Tx) > 0 { + i -= len(m.Tx) + copy(dAtA[i:], m.Tx) + i = encodeVarintTendermintProxy(dAtA, i, uint64(len(m.Tx))) + i-- + dAtA[i] = 0x2a + } + if m.TxResult != nil { + { + size, err := m.TxResult.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTendermintProxy(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + if m.Index != 0 { + i = encodeVarintTendermintProxy(dAtA, i, uint64(m.Index)) + i-- + dAtA[i] = 0x18 + } + if m.Height != 0 { + i = encodeVarintTendermintProxy(dAtA, i, uint64(m.Height)) + i-- + dAtA[i] = 0x10 + } + if len(m.Hash) > 0 { + i -= len(m.Hash) + copy(dAtA[i:], m.Hash) + i = encodeVarintTendermintProxy(dAtA, i, uint64(len(m.Hash))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *TxResult) 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 *TxResult) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TxResult) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Tags) > 0 { + for iNdEx := len(m.Tags) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Tags[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTendermintProxy(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if m.GasUsed != 0 { + i = encodeVarintTendermintProxy(dAtA, i, uint64(m.GasUsed)) + i-- + dAtA[i] = 0x18 + } + if m.GasWanted != 0 { + i = encodeVarintTendermintProxy(dAtA, i, uint64(m.GasWanted)) + i-- + dAtA[i] = 0x10 + } + if len(m.Log) > 0 { + i -= len(m.Log) + copy(dAtA[i:], m.Log) + i = encodeVarintTendermintProxy(dAtA, i, uint64(len(m.Log))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Tag) 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 *Tag) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Tag) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Index { + i-- + if m.Index { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + } + if len(m.Value) > 0 { + i -= len(m.Value) + copy(dAtA[i:], m.Value) + i = encodeVarintTendermintProxy(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 = encodeVarintTendermintProxy(dAtA, i, uint64(len(m.Key))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *BroadcastTxAsyncRequest) 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 *BroadcastTxAsyncRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BroadcastTxAsyncRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.ReqId != 0 { + i = encodeVarintTendermintProxy(dAtA, i, uint64(m.ReqId)) + i-- + dAtA[i] = 0x10 + } + if len(m.Params) > 0 { + i -= len(m.Params) + copy(dAtA[i:], m.Params) + i = encodeVarintTendermintProxy(dAtA, i, uint64(len(m.Params))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *BroadcastTxAsyncResponse) 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 *BroadcastTxAsyncResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BroadcastTxAsyncResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Hash) > 0 { + i -= len(m.Hash) + copy(dAtA[i:], m.Hash) + i = encodeVarintTendermintProxy(dAtA, i, uint64(len(m.Hash))) + i-- + dAtA[i] = 0x22 + } + if len(m.Log) > 0 { + i -= len(m.Log) + copy(dAtA[i:], m.Log) + i = encodeVarintTendermintProxy(dAtA, i, uint64(len(m.Log))) + i-- + dAtA[i] = 0x1a + } + if len(m.Data) > 0 { + i -= len(m.Data) + copy(dAtA[i:], m.Data) + i = encodeVarintTendermintProxy(dAtA, i, uint64(len(m.Data))) + i-- + dAtA[i] = 0x12 + } + if m.Code != 0 { + i = encodeVarintTendermintProxy(dAtA, i, uint64(m.Code)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *BroadcastTxSyncRequest) 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 *BroadcastTxSyncRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BroadcastTxSyncRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.ReqId != 0 { + i = encodeVarintTendermintProxy(dAtA, i, uint64(m.ReqId)) + i-- + dAtA[i] = 0x10 + } + if len(m.Params) > 0 { + i -= len(m.Params) + copy(dAtA[i:], m.Params) + i = encodeVarintTendermintProxy(dAtA, i, uint64(len(m.Params))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *BroadcastTxSyncResponse) 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 *BroadcastTxSyncResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BroadcastTxSyncResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Hash) > 0 { + i -= len(m.Hash) + copy(dAtA[i:], m.Hash) + i = encodeVarintTendermintProxy(dAtA, i, uint64(len(m.Hash))) + i-- + dAtA[i] = 0x22 + } + if len(m.Log) > 0 { + i -= len(m.Log) + copy(dAtA[i:], m.Log) + i = encodeVarintTendermintProxy(dAtA, i, uint64(len(m.Log))) + i-- + dAtA[i] = 0x1a + } + if len(m.Data) > 0 { + i -= len(m.Data) + copy(dAtA[i:], m.Data) + i = encodeVarintTendermintProxy(dAtA, i, uint64(len(m.Data))) + i-- + dAtA[i] = 0x12 + } + if m.Code != 0 { + i = encodeVarintTendermintProxy(dAtA, i, uint64(m.Code)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *GetStatusRequest) 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 *GetStatusRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetStatusRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *GetStatusResponse) 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 *GetStatusResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetStatusResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.ValidatorInfo != nil { + { + size, err := m.ValidatorInfo.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTendermintProxy(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if m.SyncInfo != nil { + { + size, err := m.SyncInfo.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTendermintProxy(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.NodeInfo != nil { + { + size, err := m.NodeInfo.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTendermintProxy(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *SyncInfo) 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 *SyncInfo) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SyncInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.CatchingUp { + i-- + if m.CatchingUp { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x48 + } + if m.LatestBlockTime != nil { + { + size, err := m.LatestBlockTime.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTendermintProxy(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + if m.LatestBlockHeight != 0 { + i = encodeVarintTendermintProxy(dAtA, i, uint64(m.LatestBlockHeight)) + i-- + dAtA[i] = 0x18 + } + if len(m.LatestAppHash) > 0 { + i -= len(m.LatestAppHash) + copy(dAtA[i:], m.LatestAppHash) + i = encodeVarintTendermintProxy(dAtA, i, uint64(len(m.LatestAppHash))) + i-- + dAtA[i] = 0x12 + } + if len(m.LatestBlockHash) > 0 { + i -= len(m.LatestBlockHash) + copy(dAtA[i:], m.LatestBlockHash) + i = encodeVarintTendermintProxy(dAtA, i, uint64(len(m.LatestBlockHash))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ABCIQueryRequest) 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 *ABCIQueryRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ABCIQueryRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Prove { + i-- + if m.Prove { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x20 + } + if m.Height != 0 { + i = encodeVarintTendermintProxy(dAtA, i, uint64(m.Height)) + i-- + dAtA[i] = 0x18 + } + if len(m.Path) > 0 { + i -= len(m.Path) + copy(dAtA[i:], m.Path) + i = encodeVarintTendermintProxy(dAtA, i, uint64(len(m.Path))) + i-- + dAtA[i] = 0x12 + } + if len(m.Data) > 0 { + i -= len(m.Data) + copy(dAtA[i:], m.Data) + i = encodeVarintTendermintProxy(dAtA, i, uint64(len(m.Data))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ABCIQueryResponse) 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 *ABCIQueryResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ABCIQueryResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Codespace) > 0 { + i -= len(m.Codespace) + copy(dAtA[i:], m.Codespace) + i = encodeVarintTendermintProxy(dAtA, i, uint64(len(m.Codespace))) + i-- + dAtA[i] = 0x52 + } + if m.Height != 0 { + i = encodeVarintTendermintProxy(dAtA, i, uint64(m.Height)) + i-- + dAtA[i] = 0x48 + } + if m.ProofOps != nil { + { + size, err := m.ProofOps.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTendermintProxy(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x42 + } + if len(m.Value) > 0 { + i -= len(m.Value) + copy(dAtA[i:], m.Value) + i = encodeVarintTendermintProxy(dAtA, i, uint64(len(m.Value))) + i-- + dAtA[i] = 0x3a + } + if len(m.Key) > 0 { + i -= len(m.Key) + copy(dAtA[i:], m.Key) + i = encodeVarintTendermintProxy(dAtA, i, uint64(len(m.Key))) + i-- + dAtA[i] = 0x32 + } + if m.Index != 0 { + i = encodeVarintTendermintProxy(dAtA, i, uint64(m.Index)) + i-- + dAtA[i] = 0x28 + } + if len(m.Info) > 0 { + i -= len(m.Info) + copy(dAtA[i:], m.Info) + i = encodeVarintTendermintProxy(dAtA, i, uint64(len(m.Info))) + i-- + dAtA[i] = 0x22 + } + if len(m.Log) > 0 { + i -= len(m.Log) + copy(dAtA[i:], m.Log) + i = encodeVarintTendermintProxy(dAtA, i, uint64(len(m.Log))) + i-- + dAtA[i] = 0x1a + } + if m.Code != 0 { + i = encodeVarintTendermintProxy(dAtA, i, uint64(m.Code)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *GetBlockByHeightRequest) 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 *GetBlockByHeightRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetBlockByHeightRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Height != 0 { + i = encodeVarintTendermintProxy(dAtA, i, uint64(m.Height)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *GetBlockByHeightResponse) 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 *GetBlockByHeightResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetBlockByHeightResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Block != nil { + { + size, err := m.Block.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTendermintProxy(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.BlockId != nil { + { + size, err := m.BlockId.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTendermintProxy(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintTendermintProxy(dAtA []byte, offset int, v uint64) int { + offset -= sovTendermintProxy(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *GetTxRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Hash) + if l > 0 { + n += 1 + l + sovTendermintProxy(uint64(l)) + } + if m.Prove { + n += 2 + } + return n +} + +func (m *GetTxResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Hash) + if l > 0 { + n += 1 + l + sovTendermintProxy(uint64(l)) + } + if m.Height != 0 { + n += 1 + sovTendermintProxy(uint64(m.Height)) + } + if m.Index != 0 { + n += 1 + sovTendermintProxy(uint64(m.Index)) + } + if m.TxResult != nil { + l = m.TxResult.Size() + n += 1 + l + sovTendermintProxy(uint64(l)) + } + l = len(m.Tx) + if l > 0 { + n += 1 + l + sovTendermintProxy(uint64(l)) + } + return n +} + +func (m *TxResult) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Log) + if l > 0 { + n += 1 + l + sovTendermintProxy(uint64(l)) + } + if m.GasWanted != 0 { + n += 1 + sovTendermintProxy(uint64(m.GasWanted)) + } + if m.GasUsed != 0 { + n += 1 + sovTendermintProxy(uint64(m.GasUsed)) + } + if len(m.Tags) > 0 { + for _, e := range m.Tags { + l = e.Size() + n += 1 + l + sovTendermintProxy(uint64(l)) + } + } + return n +} + +func (m *Tag) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Key) + if l > 0 { + n += 1 + l + sovTendermintProxy(uint64(l)) + } + l = len(m.Value) + if l > 0 { + n += 1 + l + sovTendermintProxy(uint64(l)) + } + if m.Index { + n += 2 + } + return n +} + +func (m *BroadcastTxAsyncRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Params) + if l > 0 { + n += 1 + l + sovTendermintProxy(uint64(l)) + } + if m.ReqId != 0 { + n += 1 + sovTendermintProxy(uint64(m.ReqId)) + } + return n +} + +func (m *BroadcastTxAsyncResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Code != 0 { + n += 1 + sovTendermintProxy(uint64(m.Code)) + } + l = len(m.Data) + if l > 0 { + n += 1 + l + sovTendermintProxy(uint64(l)) + } + l = len(m.Log) + if l > 0 { + n += 1 + l + sovTendermintProxy(uint64(l)) + } + l = len(m.Hash) + if l > 0 { + n += 1 + l + sovTendermintProxy(uint64(l)) + } + return n +} + +func (m *BroadcastTxSyncRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Params) + if l > 0 { + n += 1 + l + sovTendermintProxy(uint64(l)) + } + if m.ReqId != 0 { + n += 1 + sovTendermintProxy(uint64(m.ReqId)) + } + return n +} + +func (m *BroadcastTxSyncResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Code != 0 { + n += 1 + sovTendermintProxy(uint64(m.Code)) + } + l = len(m.Data) + if l > 0 { + n += 1 + l + sovTendermintProxy(uint64(l)) + } + l = len(m.Log) + if l > 0 { + n += 1 + l + sovTendermintProxy(uint64(l)) + } + l = len(m.Hash) + if l > 0 { + n += 1 + l + sovTendermintProxy(uint64(l)) + } + return n +} + +func (m *GetStatusRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *GetStatusResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.NodeInfo != nil { + l = m.NodeInfo.Size() + n += 1 + l + sovTendermintProxy(uint64(l)) + } + if m.SyncInfo != nil { + l = m.SyncInfo.Size() + n += 1 + l + sovTendermintProxy(uint64(l)) + } + if m.ValidatorInfo != nil { + l = m.ValidatorInfo.Size() + n += 1 + l + sovTendermintProxy(uint64(l)) + } + return n +} + +func (m *SyncInfo) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.LatestBlockHash) + if l > 0 { + n += 1 + l + sovTendermintProxy(uint64(l)) + } + l = len(m.LatestAppHash) + if l > 0 { + n += 1 + l + sovTendermintProxy(uint64(l)) + } + if m.LatestBlockHeight != 0 { + n += 1 + sovTendermintProxy(uint64(m.LatestBlockHeight)) + } + if m.LatestBlockTime != nil { + l = m.LatestBlockTime.Size() + n += 1 + l + sovTendermintProxy(uint64(l)) + } + if m.CatchingUp { + n += 2 + } + return n +} + +func (m *ABCIQueryRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Data) + if l > 0 { + n += 1 + l + sovTendermintProxy(uint64(l)) + } + l = len(m.Path) + if l > 0 { + n += 1 + l + sovTendermintProxy(uint64(l)) + } + if m.Height != 0 { + n += 1 + sovTendermintProxy(uint64(m.Height)) + } + if m.Prove { + n += 2 + } + return n +} + +func (m *ABCIQueryResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Code != 0 { + n += 1 + sovTendermintProxy(uint64(m.Code)) + } + l = len(m.Log) + if l > 0 { + n += 1 + l + sovTendermintProxy(uint64(l)) + } + l = len(m.Info) + if l > 0 { + n += 1 + l + sovTendermintProxy(uint64(l)) + } + if m.Index != 0 { + n += 1 + sovTendermintProxy(uint64(m.Index)) + } + l = len(m.Key) + if l > 0 { + n += 1 + l + sovTendermintProxy(uint64(l)) + } + l = len(m.Value) + if l > 0 { + n += 1 + l + sovTendermintProxy(uint64(l)) + } + if m.ProofOps != nil { + l = m.ProofOps.Size() + n += 1 + l + sovTendermintProxy(uint64(l)) + } + if m.Height != 0 { + n += 1 + sovTendermintProxy(uint64(m.Height)) + } + l = len(m.Codespace) + if l > 0 { + n += 1 + l + sovTendermintProxy(uint64(l)) + } + return n +} + +func (m *GetBlockByHeightRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Height != 0 { + n += 1 + sovTendermintProxy(uint64(m.Height)) + } + return n +} + +func (m *GetBlockByHeightResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.BlockId != nil { + l = m.BlockId.Size() + n += 1 + l + sovTendermintProxy(uint64(l)) + } + if m.Block != nil { + l = m.Block.Size() + n += 1 + l + sovTendermintProxy(uint64(l)) + } + return n +} + +func sovTendermintProxy(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozTendermintProxy(x uint64) (n int) { + return sovTendermintProxy(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *GetTxRequest) 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 ErrIntOverflowTendermintProxy + } + 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: GetTxRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetTxRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Hash", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTendermintProxy + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthTendermintProxy + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthTendermintProxy + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Hash = append(m.Hash[:0], dAtA[iNdEx:postIndex]...) + if m.Hash == nil { + m.Hash = []byte{} + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Prove", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTendermintProxy + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Prove = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipTendermintProxy(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTendermintProxy + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetTxResponse) 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 ErrIntOverflowTendermintProxy + } + 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: GetTxResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetTxResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Hash", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTendermintProxy + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthTendermintProxy + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthTendermintProxy + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Hash = append(m.Hash[:0], dAtA[iNdEx:postIndex]...) + if m.Hash == nil { + m.Hash = []byte{} + } + 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 ErrIntOverflowTendermintProxy + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Height |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + 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 ErrIntOverflowTendermintProxy + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Index |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TxResult", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTendermintProxy + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTendermintProxy + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTendermintProxy + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.TxResult == nil { + m.TxResult = &TxResult{} + } + if err := m.TxResult.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Tx", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTendermintProxy + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthTendermintProxy + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthTendermintProxy + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Tx = append(m.Tx[:0], dAtA[iNdEx:postIndex]...) + if m.Tx == nil { + m.Tx = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTendermintProxy(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTendermintProxy + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *TxResult) 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 ErrIntOverflowTendermintProxy + } + 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: TxResult: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TxResult: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Log", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTendermintProxy + } + 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 ErrInvalidLengthTendermintProxy + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTendermintProxy + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Log = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GasWanted", wireType) + } + m.GasWanted = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTendermintProxy + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.GasWanted |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GasUsed", wireType) + } + m.GasUsed = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTendermintProxy + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.GasUsed |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Tags", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTendermintProxy + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTendermintProxy + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTendermintProxy + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Tags = append(m.Tags, &Tag{}) + if err := m.Tags[len(m.Tags)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTendermintProxy(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTendermintProxy + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Tag) 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 ErrIntOverflowTendermintProxy + } + 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: Tag: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Tag: 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 byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTendermintProxy + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthTendermintProxy + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthTendermintProxy + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Key = append(m.Key[:0], dAtA[iNdEx:postIndex]...) + if m.Key == nil { + m.Key = []byte{} + } + 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 ErrIntOverflowTendermintProxy + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthTendermintProxy + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthTendermintProxy + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Value = append(m.Value[:0], dAtA[iNdEx:postIndex]...) + if m.Value == nil { + m.Value = []byte{} + } + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTendermintProxy + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Index = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipTendermintProxy(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTendermintProxy + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BroadcastTxAsyncRequest) 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 ErrIntOverflowTendermintProxy + } + 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: BroadcastTxAsyncRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BroadcastTxAsyncRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTendermintProxy + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthTendermintProxy + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthTendermintProxy + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Params = append(m.Params[:0], dAtA[iNdEx:postIndex]...) + if m.Params == nil { + m.Params = []byte{} + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ReqId", wireType) + } + m.ReqId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTendermintProxy + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ReqId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipTendermintProxy(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTendermintProxy + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BroadcastTxAsyncResponse) 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 ErrIntOverflowTendermintProxy + } + 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: BroadcastTxAsyncResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BroadcastTxAsyncResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) + } + m.Code = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTendermintProxy + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Code |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTendermintProxy + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthTendermintProxy + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthTendermintProxy + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...) + if m.Data == nil { + m.Data = []byte{} + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Log", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTendermintProxy + } + 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 ErrInvalidLengthTendermintProxy + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTendermintProxy + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Log = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Hash", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTendermintProxy + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthTendermintProxy + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthTendermintProxy + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Hash = append(m.Hash[:0], dAtA[iNdEx:postIndex]...) + if m.Hash == nil { + m.Hash = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTendermintProxy(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTendermintProxy + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BroadcastTxSyncRequest) 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 ErrIntOverflowTendermintProxy + } + 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: BroadcastTxSyncRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BroadcastTxSyncRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTendermintProxy + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthTendermintProxy + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthTendermintProxy + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Params = append(m.Params[:0], dAtA[iNdEx:postIndex]...) + if m.Params == nil { + m.Params = []byte{} + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ReqId", wireType) + } + m.ReqId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTendermintProxy + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ReqId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipTendermintProxy(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTendermintProxy + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BroadcastTxSyncResponse) 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 ErrIntOverflowTendermintProxy + } + 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: BroadcastTxSyncResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BroadcastTxSyncResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) + } + m.Code = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTendermintProxy + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Code |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTendermintProxy + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthTendermintProxy + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthTendermintProxy + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...) + if m.Data == nil { + m.Data = []byte{} + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Log", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTendermintProxy + } + 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 ErrInvalidLengthTendermintProxy + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTendermintProxy + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Log = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Hash", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTendermintProxy + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthTendermintProxy + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthTendermintProxy + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Hash = append(m.Hash[:0], dAtA[iNdEx:postIndex]...) + if m.Hash == nil { + m.Hash = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTendermintProxy(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTendermintProxy + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetStatusRequest) 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 ErrIntOverflowTendermintProxy + } + 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: GetStatusRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetStatusRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTendermintProxy(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTendermintProxy + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetStatusResponse) 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 ErrIntOverflowTendermintProxy + } + 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: GetStatusResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetStatusResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NodeInfo", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTendermintProxy + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTendermintProxy + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTendermintProxy + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.NodeInfo == nil { + m.NodeInfo = &p2p.DefaultNodeInfo{} + } + if err := m.NodeInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SyncInfo", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTendermintProxy + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTendermintProxy + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTendermintProxy + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SyncInfo == nil { + m.SyncInfo = &SyncInfo{} + } + if err := m.SyncInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ValidatorInfo", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTendermintProxy + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTendermintProxy + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTendermintProxy + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ValidatorInfo == nil { + m.ValidatorInfo = &types.Validator{} + } + if err := m.ValidatorInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTendermintProxy(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTendermintProxy + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SyncInfo) 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 ErrIntOverflowTendermintProxy + } + 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: SyncInfo: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SyncInfo: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LatestBlockHash", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTendermintProxy + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthTendermintProxy + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthTendermintProxy + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.LatestBlockHash = append(m.LatestBlockHash[:0], dAtA[iNdEx:postIndex]...) + if m.LatestBlockHash == nil { + m.LatestBlockHash = []byte{} + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LatestAppHash", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTendermintProxy + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthTendermintProxy + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthTendermintProxy + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.LatestAppHash = append(m.LatestAppHash[:0], dAtA[iNdEx:postIndex]...) + if m.LatestAppHash == nil { + m.LatestAppHash = []byte{} + } + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LatestBlockHeight", wireType) + } + m.LatestBlockHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTendermintProxy + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.LatestBlockHeight |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LatestBlockTime", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTendermintProxy + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTendermintProxy + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTendermintProxy + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.LatestBlockTime == nil { + m.LatestBlockTime = &types1.Timestamp{} + } + if err := m.LatestBlockTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CatchingUp", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTendermintProxy + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.CatchingUp = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipTendermintProxy(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTendermintProxy + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ABCIQueryRequest) 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 ErrIntOverflowTendermintProxy + } + 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: ABCIQueryRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ABCIQueryRequest: 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 byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTendermintProxy + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthTendermintProxy + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthTendermintProxy + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...) + if m.Data == nil { + m.Data = []byte{} + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTendermintProxy + } + 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 ErrInvalidLengthTendermintProxy + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTendermintProxy + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Path = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + 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 ErrIntOverflowTendermintProxy + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Height |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Prove", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTendermintProxy + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Prove = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipTendermintProxy(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTendermintProxy + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ABCIQueryResponse) 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 ErrIntOverflowTendermintProxy + } + 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: ABCIQueryResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ABCIQueryResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) + } + m.Code = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTendermintProxy + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Code |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Log", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTendermintProxy + } + 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 ErrInvalidLengthTendermintProxy + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTendermintProxy + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Log = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTendermintProxy + } + 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 ErrInvalidLengthTendermintProxy + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTendermintProxy + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Info = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + 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 ErrIntOverflowTendermintProxy + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Index |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTendermintProxy + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthTendermintProxy + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthTendermintProxy + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Key = append(m.Key[:0], dAtA[iNdEx:postIndex]...) + if m.Key == nil { + m.Key = []byte{} + } + iNdEx = postIndex + case 7: + 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 ErrIntOverflowTendermintProxy + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthTendermintProxy + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthTendermintProxy + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Value = append(m.Value[:0], dAtA[iNdEx:postIndex]...) + if m.Value == nil { + m.Value = []byte{} + } + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ProofOps", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTendermintProxy + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTendermintProxy + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTendermintProxy + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ProofOps == nil { + m.ProofOps = &crypto.ProofOps{} + } + if err := m.ProofOps.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 9: + 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 ErrIntOverflowTendermintProxy + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Height |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Codespace", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTendermintProxy + } + 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 ErrInvalidLengthTendermintProxy + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTendermintProxy + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Codespace = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTendermintProxy(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTendermintProxy + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetBlockByHeightRequest) 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 ErrIntOverflowTendermintProxy + } + 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: GetBlockByHeightRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetBlockByHeightRequest: 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 ErrIntOverflowTendermintProxy + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Height |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipTendermintProxy(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTendermintProxy + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetBlockByHeightResponse) 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 ErrIntOverflowTendermintProxy + } + 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: GetBlockByHeightResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetBlockByHeightResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BlockId", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTendermintProxy + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTendermintProxy + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTendermintProxy + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.BlockId == nil { + m.BlockId = &types.BlockID{} + } + if err := m.BlockId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Block", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTendermintProxy + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTendermintProxy + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTendermintProxy + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Block == nil { + m.Block = &types.Block{} + } + if err := m.Block.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTendermintProxy(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTendermintProxy + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipTendermintProxy(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, ErrIntOverflowTendermintProxy + } + 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, ErrIntOverflowTendermintProxy + } + 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, ErrIntOverflowTendermintProxy + } + 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, ErrInvalidLengthTendermintProxy + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupTendermintProxy + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthTendermintProxy + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthTendermintProxy = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowTendermintProxy = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupTendermintProxy = fmt.Errorf("proto: unexpected end of group") +)