3084 lines
87 KiB
Go
3084 lines
87 KiB
Go
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
|
// source: tokenbridge/query.proto
|
|
|
|
package types
|
|
|
|
import (
|
|
context "context"
|
|
fmt "fmt"
|
|
io "io"
|
|
math "math"
|
|
math_bits "math/bits"
|
|
|
|
query "github.com/cosmos/cosmos-sdk/types/query"
|
|
_ "github.com/gogo/protobuf/gogoproto"
|
|
grpc1 "github.com/gogo/protobuf/grpc"
|
|
proto "github.com/gogo/protobuf/proto"
|
|
_ "google.golang.org/genproto/googleapis/api/annotations"
|
|
grpc "google.golang.org/grpc"
|
|
codes "google.golang.org/grpc/codes"
|
|
status "google.golang.org/grpc/status"
|
|
)
|
|
|
|
// 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 QueryGetConfigRequest struct {
|
|
}
|
|
|
|
func (m *QueryGetConfigRequest) Reset() { *m = QueryGetConfigRequest{} }
|
|
func (m *QueryGetConfigRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*QueryGetConfigRequest) ProtoMessage() {}
|
|
func (*QueryGetConfigRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_132b8bb15c7c6368, []int{0}
|
|
}
|
|
func (m *QueryGetConfigRequest) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *QueryGetConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_QueryGetConfigRequest.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *QueryGetConfigRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_QueryGetConfigRequest.Merge(m, src)
|
|
}
|
|
func (m *QueryGetConfigRequest) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *QueryGetConfigRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_QueryGetConfigRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_QueryGetConfigRequest proto.InternalMessageInfo
|
|
|
|
type QueryGetConfigResponse struct {
|
|
Config Config `protobuf:"bytes,1,opt,name=Config,proto3" json:"Config"`
|
|
}
|
|
|
|
func (m *QueryGetConfigResponse) Reset() { *m = QueryGetConfigResponse{} }
|
|
func (m *QueryGetConfigResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*QueryGetConfigResponse) ProtoMessage() {}
|
|
func (*QueryGetConfigResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_132b8bb15c7c6368, []int{1}
|
|
}
|
|
func (m *QueryGetConfigResponse) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *QueryGetConfigResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_QueryGetConfigResponse.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *QueryGetConfigResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_QueryGetConfigResponse.Merge(m, src)
|
|
}
|
|
func (m *QueryGetConfigResponse) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *QueryGetConfigResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_QueryGetConfigResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_QueryGetConfigResponse proto.InternalMessageInfo
|
|
|
|
func (m *QueryGetConfigResponse) GetConfig() Config {
|
|
if m != nil {
|
|
return m.Config
|
|
}
|
|
return Config{}
|
|
}
|
|
|
|
type QueryGetReplayProtectionRequest struct {
|
|
Index string `protobuf:"bytes,1,opt,name=index,proto3" json:"index,omitempty"`
|
|
}
|
|
|
|
func (m *QueryGetReplayProtectionRequest) Reset() { *m = QueryGetReplayProtectionRequest{} }
|
|
func (m *QueryGetReplayProtectionRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*QueryGetReplayProtectionRequest) ProtoMessage() {}
|
|
func (*QueryGetReplayProtectionRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_132b8bb15c7c6368, []int{2}
|
|
}
|
|
func (m *QueryGetReplayProtectionRequest) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *QueryGetReplayProtectionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_QueryGetReplayProtectionRequest.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *QueryGetReplayProtectionRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_QueryGetReplayProtectionRequest.Merge(m, src)
|
|
}
|
|
func (m *QueryGetReplayProtectionRequest) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *QueryGetReplayProtectionRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_QueryGetReplayProtectionRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_QueryGetReplayProtectionRequest proto.InternalMessageInfo
|
|
|
|
func (m *QueryGetReplayProtectionRequest) GetIndex() string {
|
|
if m != nil {
|
|
return m.Index
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type QueryGetReplayProtectionResponse struct {
|
|
ReplayProtection ReplayProtection `protobuf:"bytes,1,opt,name=replayProtection,proto3" json:"replayProtection"`
|
|
}
|
|
|
|
func (m *QueryGetReplayProtectionResponse) Reset() { *m = QueryGetReplayProtectionResponse{} }
|
|
func (m *QueryGetReplayProtectionResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*QueryGetReplayProtectionResponse) ProtoMessage() {}
|
|
func (*QueryGetReplayProtectionResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_132b8bb15c7c6368, []int{3}
|
|
}
|
|
func (m *QueryGetReplayProtectionResponse) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *QueryGetReplayProtectionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_QueryGetReplayProtectionResponse.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *QueryGetReplayProtectionResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_QueryGetReplayProtectionResponse.Merge(m, src)
|
|
}
|
|
func (m *QueryGetReplayProtectionResponse) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *QueryGetReplayProtectionResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_QueryGetReplayProtectionResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_QueryGetReplayProtectionResponse proto.InternalMessageInfo
|
|
|
|
func (m *QueryGetReplayProtectionResponse) GetReplayProtection() ReplayProtection {
|
|
if m != nil {
|
|
return m.ReplayProtection
|
|
}
|
|
return ReplayProtection{}
|
|
}
|
|
|
|
type QueryAllReplayProtectionRequest struct {
|
|
Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
|
|
}
|
|
|
|
func (m *QueryAllReplayProtectionRequest) Reset() { *m = QueryAllReplayProtectionRequest{} }
|
|
func (m *QueryAllReplayProtectionRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*QueryAllReplayProtectionRequest) ProtoMessage() {}
|
|
func (*QueryAllReplayProtectionRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_132b8bb15c7c6368, []int{4}
|
|
}
|
|
func (m *QueryAllReplayProtectionRequest) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *QueryAllReplayProtectionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_QueryAllReplayProtectionRequest.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *QueryAllReplayProtectionRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_QueryAllReplayProtectionRequest.Merge(m, src)
|
|
}
|
|
func (m *QueryAllReplayProtectionRequest) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *QueryAllReplayProtectionRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_QueryAllReplayProtectionRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_QueryAllReplayProtectionRequest proto.InternalMessageInfo
|
|
|
|
func (m *QueryAllReplayProtectionRequest) GetPagination() *query.PageRequest {
|
|
if m != nil {
|
|
return m.Pagination
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type QueryAllReplayProtectionResponse struct {
|
|
ReplayProtection []ReplayProtection `protobuf:"bytes,1,rep,name=replayProtection,proto3" json:"replayProtection"`
|
|
Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
|
|
}
|
|
|
|
func (m *QueryAllReplayProtectionResponse) Reset() { *m = QueryAllReplayProtectionResponse{} }
|
|
func (m *QueryAllReplayProtectionResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*QueryAllReplayProtectionResponse) ProtoMessage() {}
|
|
func (*QueryAllReplayProtectionResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_132b8bb15c7c6368, []int{5}
|
|
}
|
|
func (m *QueryAllReplayProtectionResponse) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *QueryAllReplayProtectionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_QueryAllReplayProtectionResponse.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *QueryAllReplayProtectionResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_QueryAllReplayProtectionResponse.Merge(m, src)
|
|
}
|
|
func (m *QueryAllReplayProtectionResponse) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *QueryAllReplayProtectionResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_QueryAllReplayProtectionResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_QueryAllReplayProtectionResponse proto.InternalMessageInfo
|
|
|
|
func (m *QueryAllReplayProtectionResponse) GetReplayProtection() []ReplayProtection {
|
|
if m != nil {
|
|
return m.ReplayProtection
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *QueryAllReplayProtectionResponse) GetPagination() *query.PageResponse {
|
|
if m != nil {
|
|
return m.Pagination
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type QueryGetChainRegistrationRequest struct {
|
|
ChainID uint32 `protobuf:"varint,1,opt,name=chainID,proto3" json:"chainID,omitempty"`
|
|
}
|
|
|
|
func (m *QueryGetChainRegistrationRequest) Reset() { *m = QueryGetChainRegistrationRequest{} }
|
|
func (m *QueryGetChainRegistrationRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*QueryGetChainRegistrationRequest) ProtoMessage() {}
|
|
func (*QueryGetChainRegistrationRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_132b8bb15c7c6368, []int{6}
|
|
}
|
|
func (m *QueryGetChainRegistrationRequest) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *QueryGetChainRegistrationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_QueryGetChainRegistrationRequest.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *QueryGetChainRegistrationRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_QueryGetChainRegistrationRequest.Merge(m, src)
|
|
}
|
|
func (m *QueryGetChainRegistrationRequest) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *QueryGetChainRegistrationRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_QueryGetChainRegistrationRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_QueryGetChainRegistrationRequest proto.InternalMessageInfo
|
|
|
|
func (m *QueryGetChainRegistrationRequest) GetChainID() uint32 {
|
|
if m != nil {
|
|
return m.ChainID
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type QueryGetChainRegistrationResponse struct {
|
|
ChainRegistration ChainRegistration `protobuf:"bytes,1,opt,name=chainRegistration,proto3" json:"chainRegistration"`
|
|
}
|
|
|
|
func (m *QueryGetChainRegistrationResponse) Reset() { *m = QueryGetChainRegistrationResponse{} }
|
|
func (m *QueryGetChainRegistrationResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*QueryGetChainRegistrationResponse) ProtoMessage() {}
|
|
func (*QueryGetChainRegistrationResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_132b8bb15c7c6368, []int{7}
|
|
}
|
|
func (m *QueryGetChainRegistrationResponse) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *QueryGetChainRegistrationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_QueryGetChainRegistrationResponse.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *QueryGetChainRegistrationResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_QueryGetChainRegistrationResponse.Merge(m, src)
|
|
}
|
|
func (m *QueryGetChainRegistrationResponse) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *QueryGetChainRegistrationResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_QueryGetChainRegistrationResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_QueryGetChainRegistrationResponse proto.InternalMessageInfo
|
|
|
|
func (m *QueryGetChainRegistrationResponse) GetChainRegistration() ChainRegistration {
|
|
if m != nil {
|
|
return m.ChainRegistration
|
|
}
|
|
return ChainRegistration{}
|
|
}
|
|
|
|
type QueryAllChainRegistrationRequest struct {
|
|
Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
|
|
}
|
|
|
|
func (m *QueryAllChainRegistrationRequest) Reset() { *m = QueryAllChainRegistrationRequest{} }
|
|
func (m *QueryAllChainRegistrationRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*QueryAllChainRegistrationRequest) ProtoMessage() {}
|
|
func (*QueryAllChainRegistrationRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_132b8bb15c7c6368, []int{8}
|
|
}
|
|
func (m *QueryAllChainRegistrationRequest) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *QueryAllChainRegistrationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_QueryAllChainRegistrationRequest.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *QueryAllChainRegistrationRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_QueryAllChainRegistrationRequest.Merge(m, src)
|
|
}
|
|
func (m *QueryAllChainRegistrationRequest) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *QueryAllChainRegistrationRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_QueryAllChainRegistrationRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_QueryAllChainRegistrationRequest proto.InternalMessageInfo
|
|
|
|
func (m *QueryAllChainRegistrationRequest) GetPagination() *query.PageRequest {
|
|
if m != nil {
|
|
return m.Pagination
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type QueryAllChainRegistrationResponse struct {
|
|
ChainRegistration []ChainRegistration `protobuf:"bytes,1,rep,name=chainRegistration,proto3" json:"chainRegistration"`
|
|
Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
|
|
}
|
|
|
|
func (m *QueryAllChainRegistrationResponse) Reset() { *m = QueryAllChainRegistrationResponse{} }
|
|
func (m *QueryAllChainRegistrationResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*QueryAllChainRegistrationResponse) ProtoMessage() {}
|
|
func (*QueryAllChainRegistrationResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_132b8bb15c7c6368, []int{9}
|
|
}
|
|
func (m *QueryAllChainRegistrationResponse) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *QueryAllChainRegistrationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_QueryAllChainRegistrationResponse.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *QueryAllChainRegistrationResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_QueryAllChainRegistrationResponse.Merge(m, src)
|
|
}
|
|
func (m *QueryAllChainRegistrationResponse) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *QueryAllChainRegistrationResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_QueryAllChainRegistrationResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_QueryAllChainRegistrationResponse proto.InternalMessageInfo
|
|
|
|
func (m *QueryAllChainRegistrationResponse) GetChainRegistration() []ChainRegistration {
|
|
if m != nil {
|
|
return m.ChainRegistration
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *QueryAllChainRegistrationResponse) GetPagination() *query.PageResponse {
|
|
if m != nil {
|
|
return m.Pagination
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type QueryGetCoinMetaRollbackProtectionRequest struct {
|
|
Index string `protobuf:"bytes,1,opt,name=index,proto3" json:"index,omitempty"`
|
|
}
|
|
|
|
func (m *QueryGetCoinMetaRollbackProtectionRequest) Reset() {
|
|
*m = QueryGetCoinMetaRollbackProtectionRequest{}
|
|
}
|
|
func (m *QueryGetCoinMetaRollbackProtectionRequest) String() string {
|
|
return proto.CompactTextString(m)
|
|
}
|
|
func (*QueryGetCoinMetaRollbackProtectionRequest) ProtoMessage() {}
|
|
func (*QueryGetCoinMetaRollbackProtectionRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_132b8bb15c7c6368, []int{10}
|
|
}
|
|
func (m *QueryGetCoinMetaRollbackProtectionRequest) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *QueryGetCoinMetaRollbackProtectionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_QueryGetCoinMetaRollbackProtectionRequest.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *QueryGetCoinMetaRollbackProtectionRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_QueryGetCoinMetaRollbackProtectionRequest.Merge(m, src)
|
|
}
|
|
func (m *QueryGetCoinMetaRollbackProtectionRequest) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *QueryGetCoinMetaRollbackProtectionRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_QueryGetCoinMetaRollbackProtectionRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_QueryGetCoinMetaRollbackProtectionRequest proto.InternalMessageInfo
|
|
|
|
func (m *QueryGetCoinMetaRollbackProtectionRequest) GetIndex() string {
|
|
if m != nil {
|
|
return m.Index
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type QueryGetCoinMetaRollbackProtectionResponse struct {
|
|
CoinMetaRollbackProtection CoinMetaRollbackProtection `protobuf:"bytes,1,opt,name=coinMetaRollbackProtection,proto3" json:"coinMetaRollbackProtection"`
|
|
}
|
|
|
|
func (m *QueryGetCoinMetaRollbackProtectionResponse) Reset() {
|
|
*m = QueryGetCoinMetaRollbackProtectionResponse{}
|
|
}
|
|
func (m *QueryGetCoinMetaRollbackProtectionResponse) String() string {
|
|
return proto.CompactTextString(m)
|
|
}
|
|
func (*QueryGetCoinMetaRollbackProtectionResponse) ProtoMessage() {}
|
|
func (*QueryGetCoinMetaRollbackProtectionResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_132b8bb15c7c6368, []int{11}
|
|
}
|
|
func (m *QueryGetCoinMetaRollbackProtectionResponse) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *QueryGetCoinMetaRollbackProtectionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_QueryGetCoinMetaRollbackProtectionResponse.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *QueryGetCoinMetaRollbackProtectionResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_QueryGetCoinMetaRollbackProtectionResponse.Merge(m, src)
|
|
}
|
|
func (m *QueryGetCoinMetaRollbackProtectionResponse) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *QueryGetCoinMetaRollbackProtectionResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_QueryGetCoinMetaRollbackProtectionResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_QueryGetCoinMetaRollbackProtectionResponse proto.InternalMessageInfo
|
|
|
|
func (m *QueryGetCoinMetaRollbackProtectionResponse) GetCoinMetaRollbackProtection() CoinMetaRollbackProtection {
|
|
if m != nil {
|
|
return m.CoinMetaRollbackProtection
|
|
}
|
|
return CoinMetaRollbackProtection{}
|
|
}
|
|
|
|
type QueryAllCoinMetaRollbackProtectionRequest struct {
|
|
Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
|
|
}
|
|
|
|
func (m *QueryAllCoinMetaRollbackProtectionRequest) Reset() {
|
|
*m = QueryAllCoinMetaRollbackProtectionRequest{}
|
|
}
|
|
func (m *QueryAllCoinMetaRollbackProtectionRequest) String() string {
|
|
return proto.CompactTextString(m)
|
|
}
|
|
func (*QueryAllCoinMetaRollbackProtectionRequest) ProtoMessage() {}
|
|
func (*QueryAllCoinMetaRollbackProtectionRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_132b8bb15c7c6368, []int{12}
|
|
}
|
|
func (m *QueryAllCoinMetaRollbackProtectionRequest) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *QueryAllCoinMetaRollbackProtectionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_QueryAllCoinMetaRollbackProtectionRequest.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *QueryAllCoinMetaRollbackProtectionRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_QueryAllCoinMetaRollbackProtectionRequest.Merge(m, src)
|
|
}
|
|
func (m *QueryAllCoinMetaRollbackProtectionRequest) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *QueryAllCoinMetaRollbackProtectionRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_QueryAllCoinMetaRollbackProtectionRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_QueryAllCoinMetaRollbackProtectionRequest proto.InternalMessageInfo
|
|
|
|
func (m *QueryAllCoinMetaRollbackProtectionRequest) GetPagination() *query.PageRequest {
|
|
if m != nil {
|
|
return m.Pagination
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type QueryAllCoinMetaRollbackProtectionResponse struct {
|
|
CoinMetaRollbackProtection []CoinMetaRollbackProtection `protobuf:"bytes,1,rep,name=coinMetaRollbackProtection,proto3" json:"coinMetaRollbackProtection"`
|
|
Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
|
|
}
|
|
|
|
func (m *QueryAllCoinMetaRollbackProtectionResponse) Reset() {
|
|
*m = QueryAllCoinMetaRollbackProtectionResponse{}
|
|
}
|
|
func (m *QueryAllCoinMetaRollbackProtectionResponse) String() string {
|
|
return proto.CompactTextString(m)
|
|
}
|
|
func (*QueryAllCoinMetaRollbackProtectionResponse) ProtoMessage() {}
|
|
func (*QueryAllCoinMetaRollbackProtectionResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_132b8bb15c7c6368, []int{13}
|
|
}
|
|
func (m *QueryAllCoinMetaRollbackProtectionResponse) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *QueryAllCoinMetaRollbackProtectionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_QueryAllCoinMetaRollbackProtectionResponse.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *QueryAllCoinMetaRollbackProtectionResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_QueryAllCoinMetaRollbackProtectionResponse.Merge(m, src)
|
|
}
|
|
func (m *QueryAllCoinMetaRollbackProtectionResponse) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *QueryAllCoinMetaRollbackProtectionResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_QueryAllCoinMetaRollbackProtectionResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_QueryAllCoinMetaRollbackProtectionResponse proto.InternalMessageInfo
|
|
|
|
func (m *QueryAllCoinMetaRollbackProtectionResponse) GetCoinMetaRollbackProtection() []CoinMetaRollbackProtection {
|
|
if m != nil {
|
|
return m.CoinMetaRollbackProtection
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *QueryAllCoinMetaRollbackProtectionResponse) GetPagination() *query.PageResponse {
|
|
if m != nil {
|
|
return m.Pagination
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterType((*QueryGetConfigRequest)(nil), "certusone.wormholechain.tokenbridge.QueryGetConfigRequest")
|
|
proto.RegisterType((*QueryGetConfigResponse)(nil), "certusone.wormholechain.tokenbridge.QueryGetConfigResponse")
|
|
proto.RegisterType((*QueryGetReplayProtectionRequest)(nil), "certusone.wormholechain.tokenbridge.QueryGetReplayProtectionRequest")
|
|
proto.RegisterType((*QueryGetReplayProtectionResponse)(nil), "certusone.wormholechain.tokenbridge.QueryGetReplayProtectionResponse")
|
|
proto.RegisterType((*QueryAllReplayProtectionRequest)(nil), "certusone.wormholechain.tokenbridge.QueryAllReplayProtectionRequest")
|
|
proto.RegisterType((*QueryAllReplayProtectionResponse)(nil), "certusone.wormholechain.tokenbridge.QueryAllReplayProtectionResponse")
|
|
proto.RegisterType((*QueryGetChainRegistrationRequest)(nil), "certusone.wormholechain.tokenbridge.QueryGetChainRegistrationRequest")
|
|
proto.RegisterType((*QueryGetChainRegistrationResponse)(nil), "certusone.wormholechain.tokenbridge.QueryGetChainRegistrationResponse")
|
|
proto.RegisterType((*QueryAllChainRegistrationRequest)(nil), "certusone.wormholechain.tokenbridge.QueryAllChainRegistrationRequest")
|
|
proto.RegisterType((*QueryAllChainRegistrationResponse)(nil), "certusone.wormholechain.tokenbridge.QueryAllChainRegistrationResponse")
|
|
proto.RegisterType((*QueryGetCoinMetaRollbackProtectionRequest)(nil), "certusone.wormholechain.tokenbridge.QueryGetCoinMetaRollbackProtectionRequest")
|
|
proto.RegisterType((*QueryGetCoinMetaRollbackProtectionResponse)(nil), "certusone.wormholechain.tokenbridge.QueryGetCoinMetaRollbackProtectionResponse")
|
|
proto.RegisterType((*QueryAllCoinMetaRollbackProtectionRequest)(nil), "certusone.wormholechain.tokenbridge.QueryAllCoinMetaRollbackProtectionRequest")
|
|
proto.RegisterType((*QueryAllCoinMetaRollbackProtectionResponse)(nil), "certusone.wormholechain.tokenbridge.QueryAllCoinMetaRollbackProtectionResponse")
|
|
}
|
|
|
|
func init() { proto.RegisterFile("tokenbridge/query.proto", fileDescriptor_132b8bb15c7c6368) }
|
|
|
|
var fileDescriptor_132b8bb15c7c6368 = []byte{
|
|
// 835 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x97, 0x4d, 0x4f, 0xd4, 0x5c,
|
|
0x14, 0xc7, 0xe7, 0x0e, 0x0f, 0x3c, 0xf1, 0x1a, 0x12, 0xb8, 0xa2, 0x90, 0x46, 0x07, 0x2c, 0xc6,
|
|
0x17, 0x08, 0x6d, 0x80, 0x00, 0x46, 0x45, 0x1c, 0xde, 0x46, 0x16, 0xf2, 0xd2, 0xa5, 0x9b, 0x49,
|
|
0xa7, 0x5c, 0x4b, 0xa1, 0xd3, 0x3b, 0xb4, 0x1d, 0x85, 0x10, 0x16, 0x9a, 0xb8, 0x30, 0x26, 0x6a,
|
|
0xe2, 0x57, 0x31, 0x7e, 0x06, 0x96, 0x24, 0xba, 0x60, 0x65, 0x14, 0xd4, 0x95, 0x5f, 0xc1, 0xc4,
|
|
0xf4, 0xf6, 0x96, 0xe9, 0x74, 0xa6, 0x33, 0x2d, 0x53, 0xdd, 0xb5, 0xbd, 0x3d, 0xff, 0x73, 0x7e,
|
|
0xe7, 0x9c, 0x9e, 0x33, 0x03, 0x7b, 0x6d, 0xb2, 0x85, 0x8d, 0x82, 0xa9, 0xad, 0xab, 0x58, 0xdc,
|
|
0x2e, 0x63, 0x73, 0x57, 0x28, 0x99, 0xc4, 0x26, 0x68, 0x50, 0xc1, 0xa6, 0x5d, 0xb6, 0x88, 0x81,
|
|
0x85, 0x67, 0xc4, 0x2c, 0x6e, 0x10, 0x1d, 0x2b, 0x1b, 0xb2, 0x66, 0x08, 0x3e, 0x03, 0xee, 0xb2,
|
|
0x4a, 0x88, 0xaa, 0x63, 0x51, 0x2e, 0x69, 0xa2, 0x6c, 0x18, 0xc4, 0x96, 0x6d, 0x8d, 0x18, 0x96,
|
|
0x2b, 0xc1, 0x0d, 0x29, 0xc4, 0x2a, 0x12, 0x4b, 0x2c, 0xc8, 0x16, 0xd3, 0x16, 0x9f, 0x8e, 0x16,
|
|
0xb0, 0x2d, 0x8f, 0x8a, 0x25, 0x59, 0xd5, 0x0c, 0xfa, 0x32, 0x7b, 0xb7, 0xcf, 0x1f, 0x87, 0x42,
|
|
0x8c, 0x27, 0x9a, 0xca, 0x4e, 0x06, 0xfd, 0x27, 0x26, 0x2e, 0xe9, 0xf2, 0x6e, 0xde, 0x39, 0xc1,
|
|
0x8a, 0xcf, 0xfc, 0x5a, 0x95, 0xb9, 0x13, 0x67, 0xde, 0xc4, 0xaa, 0x66, 0xd9, 0xa6, 0xdf, 0x89,
|
|
0x58, 0xed, 0x44, 0x33, 0xf2, 0x45, 0x6c, 0xcb, 0x79, 0x93, 0xe8, 0x7a, 0x41, 0x56, 0xb6, 0x6a,
|
|
0x65, 0x7b, 0x54, 0xa2, 0x12, 0x7a, 0x29, 0x3a, 0x57, 0xee, 0x53, 0xbe, 0x17, 0x5e, 0x5c, 0x73,
|
|
0x68, 0x72, 0xd8, 0x9e, 0xa3, 0x91, 0x4a, 0x78, 0xbb, 0x8c, 0x2d, 0x9b, 0x57, 0xe0, 0xa5, 0xe0,
|
|
0x81, 0x55, 0x22, 0x86, 0x85, 0xd1, 0x12, 0xec, 0x70, 0x9f, 0xf4, 0x81, 0x01, 0x70, 0xf3, 0xfc,
|
|
0xd8, 0xb0, 0x10, 0x21, 0xbd, 0x82, 0x6b, 0x32, 0xfb, 0xdf, 0xc1, 0x97, 0xfe, 0x94, 0xc4, 0x04,
|
|
0xf8, 0x29, 0xd8, 0xef, 0x39, 0x91, 0x68, 0x36, 0x56, 0x4f, 0xa3, 0x66, 0x71, 0xa0, 0x1e, 0xd8,
|
|
0xae, 0x19, 0xeb, 0x78, 0x87, 0x3a, 0x3b, 0x27, 0xb9, 0x37, 0xfc, 0x6b, 0x00, 0x07, 0xc2, 0x2d,
|
|
0x59, 0xa0, 0x2a, 0xec, 0x32, 0x03, 0x67, 0x2c, 0xe4, 0x89, 0x48, 0x21, 0x07, 0x85, 0x59, 0xf0,
|
|
0x35, 0xa2, 0xbc, 0xc6, 0x30, 0xb2, 0xba, 0x1e, 0x86, 0xb1, 0x08, 0x61, 0xa5, 0x4f, 0x58, 0x14,
|
|
0xd7, 0x05, 0xb7, 0xa9, 0x04, 0xa7, 0xa9, 0x04, 0xb7, 0x61, 0x59, 0x53, 0x09, 0xab, 0xb2, 0x8a,
|
|
0x99, 0xad, 0xe4, 0xb3, 0xe4, 0x3f, 0x7b, 0xe0, 0x75, 0x7d, 0x35, 0x04, 0x6f, 0x4b, 0x1c, 0x1c,
|
|
0xe5, 0xaa, 0xa8, 0xd2, 0x94, 0xea, 0x46, 0x53, 0x2a, 0x37, 0xca, 0x2a, 0xac, 0x7b, 0x95, 0x72,
|
|
0xce, 0x39, 0xe1, 0x48, 0xbe, 0x86, 0xf7, 0x52, 0xd8, 0x07, 0xff, 0xa7, 0xa1, 0x2e, 0xcd, 0xd3,
|
|
0xfc, 0x75, 0x4a, 0xde, 0x2d, 0xff, 0x16, 0xc0, 0xab, 0x0d, 0xcc, 0x59, 0x56, 0x36, 0x61, 0xb7,
|
|
0x12, 0x3c, 0x64, 0x95, 0x98, 0x8c, 0xd6, 0xc2, 0x41, 0x6b, 0x96, 0x97, 0x5a, 0x59, 0x7e, 0xb3,
|
|
0x52, 0xa5, 0x50, 0x9e, 0xa4, 0x5a, 0xe2, 0xc8, 0xa3, 0xaf, 0xef, 0xac, 0x31, 0x7d, 0xdb, 0x5f,
|
|
0xa0, 0x4f, 0xae, 0x2d, 0xb2, 0xf0, 0x56, 0x65, 0x08, 0x69, 0xc6, 0x23, 0x6c, 0xcb, 0x12, 0x1b,
|
|
0x70, 0x51, 0x27, 0xc5, 0x07, 0x00, 0x87, 0xa2, 0x68, 0xb0, 0x34, 0xbd, 0x04, 0x90, 0x53, 0x42,
|
|
0x5f, 0x63, 0x55, 0x9a, 0x89, 0x38, 0xf1, 0xc2, 0x64, 0x58, 0xe6, 0x1a, 0x38, 0xe2, 0x2d, 0x46,
|
|
0xee, 0xd4, 0xb4, 0x29, 0x79, 0x52, 0x9d, 0xf4, 0xdb, 0xcb, 0x55, 0x13, 0xaf, 0x51, 0x73, 0xd5,
|
|
0xf6, 0x4f, 0x72, 0x95, 0x58, 0xbb, 0x8d, 0x3d, 0xef, 0x84, 0xed, 0x94, 0x1f, 0x7d, 0x04, 0xde,
|
|
0x92, 0x43, 0x77, 0x22, 0x01, 0xd4, 0x5d, 0xa2, 0xdc, 0xdd, 0x33, 0xd9, 0xba, 0x91, 0xf1, 0xe3,
|
|
0x2f, 0x3e, 0x7d, 0x7f, 0x9f, 0x1e, 0x41, 0xc3, 0xe2, 0xa9, 0x88, 0x58, 0x25, 0x22, 0xd6, 0xfe,
|
|
0xce, 0x40, 0x3f, 0x01, 0xec, 0x0a, 0x8e, 0x6f, 0x34, 0x1f, 0x2b, 0x8c, 0x90, 0x15, 0xc6, 0x2d,
|
|
0xb4, 0xa8, 0xc2, 0xb0, 0x16, 0x28, 0xd6, 0x0c, 0x9a, 0x8e, 0x84, 0x15, 0x5c, 0x39, 0xe2, 0x1e,
|
|
0xfd, 0xac, 0xf7, 0xd1, 0x37, 0x00, 0x2f, 0x04, 0x7d, 0x64, 0x75, 0x3d, 0x0e, 0x6b, 0xf8, 0xba,
|
|
0x8e, 0xc3, 0xda, 0x60, 0x11, 0xf3, 0xd3, 0x94, 0x75, 0x0a, 0x4d, 0x9c, 0x89, 0x15, 0xfd, 0x02,
|
|
0xb0, 0xbb, 0x66, 0xec, 0xa2, 0x78, 0x75, 0x08, 0x5b, 0x3f, 0xdc, 0x62, 0xab, 0x32, 0x8c, 0xf1,
|
|
0x21, 0x65, 0x9c, 0x45, 0x0f, 0xa2, 0xb5, 0x69, 0x50, 0x47, 0xdc, 0x63, 0x5b, 0x7c, 0x1f, 0xfd,
|
|
0x00, 0xb0, 0xa7, 0xc6, 0x8f, 0x53, 0xd3, 0x78, 0xd5, 0x48, 0x82, 0xb8, 0xd1, 0x2a, 0xe5, 0xef,
|
|
0x53, 0xe2, 0xdb, 0x68, 0xf2, 0x6c, 0xc4, 0xe8, 0x4d, 0x1a, 0x72, 0xe1, 0x03, 0x0f, 0x2d, 0xc7,
|
|
0x1c, 0x1a, 0x4d, 0xb6, 0x03, 0xb7, 0x92, 0x98, 0x1e, 0xe3, 0x5f, 0xa1, 0xfc, 0x4b, 0x28, 0x17,
|
|
0x71, 0x30, 0x85, 0x09, 0x9e, 0x7e, 0xcb, 0xaf, 0xd2, 0xf0, 0x4a, 0xb8, 0x5f, 0xa7, 0x03, 0x96,
|
|
0xe3, 0x95, 0x2e, 0xc9, 0x9c, 0x44, 0xda, 0x85, 0x7c, 0x8e, 0xe6, 0x24, 0x8b, 0x66, 0x5a, 0xcc,
|
|
0xc9, 0xec, 0xda, 0xc1, 0x71, 0x06, 0x1c, 0x1e, 0x67, 0xc0, 0xd7, 0xe3, 0x0c, 0x78, 0x77, 0x92,
|
|
0x49, 0x1d, 0x9e, 0x64, 0x52, 0x47, 0x27, 0x99, 0xd4, 0xe3, 0x29, 0x55, 0xb3, 0x37, 0xca, 0x05,
|
|
0x41, 0x21, 0xc5, 0x3a, 0x4e, 0x46, 0x5c, 0x2f, 0x3b, 0x55, 0x7e, 0xec, 0xdd, 0x12, 0xb6, 0x0a,
|
|
0x1d, 0xf4, 0xaf, 0xde, 0xf8, 0x9f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x58, 0x00, 0xf8, 0x00, 0x20,
|
|
0x0f, 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
|
|
|
|
// QueryClient is the client API for Query service.
|
|
//
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
type QueryClient interface {
|
|
// Queries a config by index.
|
|
Config(ctx context.Context, in *QueryGetConfigRequest, opts ...grpc.CallOption) (*QueryGetConfigResponse, error)
|
|
// Queries a replayProtection by index.
|
|
ReplayProtection(ctx context.Context, in *QueryGetReplayProtectionRequest, opts ...grpc.CallOption) (*QueryGetReplayProtectionResponse, error)
|
|
// Queries a list of replayProtection items.
|
|
ReplayProtectionAll(ctx context.Context, in *QueryAllReplayProtectionRequest, opts ...grpc.CallOption) (*QueryAllReplayProtectionResponse, error)
|
|
// Queries a chainRegistration by index.
|
|
ChainRegistration(ctx context.Context, in *QueryGetChainRegistrationRequest, opts ...grpc.CallOption) (*QueryGetChainRegistrationResponse, error)
|
|
// Queries a list of chainRegistration items.
|
|
ChainRegistrationAll(ctx context.Context, in *QueryAllChainRegistrationRequest, opts ...grpc.CallOption) (*QueryAllChainRegistrationResponse, error)
|
|
// Queries a coinMetaRollbackProtection by index.
|
|
CoinMetaRollbackProtection(ctx context.Context, in *QueryGetCoinMetaRollbackProtectionRequest, opts ...grpc.CallOption) (*QueryGetCoinMetaRollbackProtectionResponse, error)
|
|
// Queries a list of coinMetaRollbackProtection items.
|
|
CoinMetaRollbackProtectionAll(ctx context.Context, in *QueryAllCoinMetaRollbackProtectionRequest, opts ...grpc.CallOption) (*QueryAllCoinMetaRollbackProtectionResponse, error)
|
|
}
|
|
|
|
type queryClient struct {
|
|
cc grpc1.ClientConn
|
|
}
|
|
|
|
func NewQueryClient(cc grpc1.ClientConn) QueryClient {
|
|
return &queryClient{cc}
|
|
}
|
|
|
|
func (c *queryClient) Config(ctx context.Context, in *QueryGetConfigRequest, opts ...grpc.CallOption) (*QueryGetConfigResponse, error) {
|
|
out := new(QueryGetConfigResponse)
|
|
err := c.cc.Invoke(ctx, "/certusone.wormholechain.tokenbridge.Query/Config", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *queryClient) ReplayProtection(ctx context.Context, in *QueryGetReplayProtectionRequest, opts ...grpc.CallOption) (*QueryGetReplayProtectionResponse, error) {
|
|
out := new(QueryGetReplayProtectionResponse)
|
|
err := c.cc.Invoke(ctx, "/certusone.wormholechain.tokenbridge.Query/ReplayProtection", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *queryClient) ReplayProtectionAll(ctx context.Context, in *QueryAllReplayProtectionRequest, opts ...grpc.CallOption) (*QueryAllReplayProtectionResponse, error) {
|
|
out := new(QueryAllReplayProtectionResponse)
|
|
err := c.cc.Invoke(ctx, "/certusone.wormholechain.tokenbridge.Query/ReplayProtectionAll", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *queryClient) ChainRegistration(ctx context.Context, in *QueryGetChainRegistrationRequest, opts ...grpc.CallOption) (*QueryGetChainRegistrationResponse, error) {
|
|
out := new(QueryGetChainRegistrationResponse)
|
|
err := c.cc.Invoke(ctx, "/certusone.wormholechain.tokenbridge.Query/ChainRegistration", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *queryClient) ChainRegistrationAll(ctx context.Context, in *QueryAllChainRegistrationRequest, opts ...grpc.CallOption) (*QueryAllChainRegistrationResponse, error) {
|
|
out := new(QueryAllChainRegistrationResponse)
|
|
err := c.cc.Invoke(ctx, "/certusone.wormholechain.tokenbridge.Query/ChainRegistrationAll", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *queryClient) CoinMetaRollbackProtection(ctx context.Context, in *QueryGetCoinMetaRollbackProtectionRequest, opts ...grpc.CallOption) (*QueryGetCoinMetaRollbackProtectionResponse, error) {
|
|
out := new(QueryGetCoinMetaRollbackProtectionResponse)
|
|
err := c.cc.Invoke(ctx, "/certusone.wormholechain.tokenbridge.Query/CoinMetaRollbackProtection", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *queryClient) CoinMetaRollbackProtectionAll(ctx context.Context, in *QueryAllCoinMetaRollbackProtectionRequest, opts ...grpc.CallOption) (*QueryAllCoinMetaRollbackProtectionResponse, error) {
|
|
out := new(QueryAllCoinMetaRollbackProtectionResponse)
|
|
err := c.cc.Invoke(ctx, "/certusone.wormholechain.tokenbridge.Query/CoinMetaRollbackProtectionAll", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
// QueryServer is the server API for Query service.
|
|
type QueryServer interface {
|
|
// Queries a config by index.
|
|
Config(context.Context, *QueryGetConfigRequest) (*QueryGetConfigResponse, error)
|
|
// Queries a replayProtection by index.
|
|
ReplayProtection(context.Context, *QueryGetReplayProtectionRequest) (*QueryGetReplayProtectionResponse, error)
|
|
// Queries a list of replayProtection items.
|
|
ReplayProtectionAll(context.Context, *QueryAllReplayProtectionRequest) (*QueryAllReplayProtectionResponse, error)
|
|
// Queries a chainRegistration by index.
|
|
ChainRegistration(context.Context, *QueryGetChainRegistrationRequest) (*QueryGetChainRegistrationResponse, error)
|
|
// Queries a list of chainRegistration items.
|
|
ChainRegistrationAll(context.Context, *QueryAllChainRegistrationRequest) (*QueryAllChainRegistrationResponse, error)
|
|
// Queries a coinMetaRollbackProtection by index.
|
|
CoinMetaRollbackProtection(context.Context, *QueryGetCoinMetaRollbackProtectionRequest) (*QueryGetCoinMetaRollbackProtectionResponse, error)
|
|
// Queries a list of coinMetaRollbackProtection items.
|
|
CoinMetaRollbackProtectionAll(context.Context, *QueryAllCoinMetaRollbackProtectionRequest) (*QueryAllCoinMetaRollbackProtectionResponse, error)
|
|
}
|
|
|
|
// UnimplementedQueryServer can be embedded to have forward compatible implementations.
|
|
type UnimplementedQueryServer struct {
|
|
}
|
|
|
|
func (*UnimplementedQueryServer) Config(ctx context.Context, req *QueryGetConfigRequest) (*QueryGetConfigResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method Config not implemented")
|
|
}
|
|
func (*UnimplementedQueryServer) ReplayProtection(ctx context.Context, req *QueryGetReplayProtectionRequest) (*QueryGetReplayProtectionResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method ReplayProtection not implemented")
|
|
}
|
|
func (*UnimplementedQueryServer) ReplayProtectionAll(ctx context.Context, req *QueryAllReplayProtectionRequest) (*QueryAllReplayProtectionResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method ReplayProtectionAll not implemented")
|
|
}
|
|
func (*UnimplementedQueryServer) ChainRegistration(ctx context.Context, req *QueryGetChainRegistrationRequest) (*QueryGetChainRegistrationResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method ChainRegistration not implemented")
|
|
}
|
|
func (*UnimplementedQueryServer) ChainRegistrationAll(ctx context.Context, req *QueryAllChainRegistrationRequest) (*QueryAllChainRegistrationResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method ChainRegistrationAll not implemented")
|
|
}
|
|
func (*UnimplementedQueryServer) CoinMetaRollbackProtection(ctx context.Context, req *QueryGetCoinMetaRollbackProtectionRequest) (*QueryGetCoinMetaRollbackProtectionResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method CoinMetaRollbackProtection not implemented")
|
|
}
|
|
func (*UnimplementedQueryServer) CoinMetaRollbackProtectionAll(ctx context.Context, req *QueryAllCoinMetaRollbackProtectionRequest) (*QueryAllCoinMetaRollbackProtectionResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method CoinMetaRollbackProtectionAll not implemented")
|
|
}
|
|
|
|
func RegisterQueryServer(s grpc1.Server, srv QueryServer) {
|
|
s.RegisterService(&_Query_serviceDesc, srv)
|
|
}
|
|
|
|
func _Query_Config_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(QueryGetConfigRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(QueryServer).Config(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/certusone.wormholechain.tokenbridge.Query/Config",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(QueryServer).Config(ctx, req.(*QueryGetConfigRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Query_ReplayProtection_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(QueryGetReplayProtectionRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(QueryServer).ReplayProtection(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/certusone.wormholechain.tokenbridge.Query/ReplayProtection",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(QueryServer).ReplayProtection(ctx, req.(*QueryGetReplayProtectionRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Query_ReplayProtectionAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(QueryAllReplayProtectionRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(QueryServer).ReplayProtectionAll(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/certusone.wormholechain.tokenbridge.Query/ReplayProtectionAll",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(QueryServer).ReplayProtectionAll(ctx, req.(*QueryAllReplayProtectionRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Query_ChainRegistration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(QueryGetChainRegistrationRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(QueryServer).ChainRegistration(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/certusone.wormholechain.tokenbridge.Query/ChainRegistration",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(QueryServer).ChainRegistration(ctx, req.(*QueryGetChainRegistrationRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Query_ChainRegistrationAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(QueryAllChainRegistrationRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(QueryServer).ChainRegistrationAll(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/certusone.wormholechain.tokenbridge.Query/ChainRegistrationAll",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(QueryServer).ChainRegistrationAll(ctx, req.(*QueryAllChainRegistrationRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Query_CoinMetaRollbackProtection_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(QueryGetCoinMetaRollbackProtectionRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(QueryServer).CoinMetaRollbackProtection(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/certusone.wormholechain.tokenbridge.Query/CoinMetaRollbackProtection",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(QueryServer).CoinMetaRollbackProtection(ctx, req.(*QueryGetCoinMetaRollbackProtectionRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Query_CoinMetaRollbackProtectionAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(QueryAllCoinMetaRollbackProtectionRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(QueryServer).CoinMetaRollbackProtectionAll(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/certusone.wormholechain.tokenbridge.Query/CoinMetaRollbackProtectionAll",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(QueryServer).CoinMetaRollbackProtectionAll(ctx, req.(*QueryAllCoinMetaRollbackProtectionRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
var _Query_serviceDesc = grpc.ServiceDesc{
|
|
ServiceName: "certusone.wormholechain.tokenbridge.Query",
|
|
HandlerType: (*QueryServer)(nil),
|
|
Methods: []grpc.MethodDesc{
|
|
{
|
|
MethodName: "Config",
|
|
Handler: _Query_Config_Handler,
|
|
},
|
|
{
|
|
MethodName: "ReplayProtection",
|
|
Handler: _Query_ReplayProtection_Handler,
|
|
},
|
|
{
|
|
MethodName: "ReplayProtectionAll",
|
|
Handler: _Query_ReplayProtectionAll_Handler,
|
|
},
|
|
{
|
|
MethodName: "ChainRegistration",
|
|
Handler: _Query_ChainRegistration_Handler,
|
|
},
|
|
{
|
|
MethodName: "ChainRegistrationAll",
|
|
Handler: _Query_ChainRegistrationAll_Handler,
|
|
},
|
|
{
|
|
MethodName: "CoinMetaRollbackProtection",
|
|
Handler: _Query_CoinMetaRollbackProtection_Handler,
|
|
},
|
|
{
|
|
MethodName: "CoinMetaRollbackProtectionAll",
|
|
Handler: _Query_CoinMetaRollbackProtectionAll_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{},
|
|
Metadata: "tokenbridge/query.proto",
|
|
}
|
|
|
|
func (m *QueryGetConfigRequest) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *QueryGetConfigRequest) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *QueryGetConfigRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *QueryGetConfigResponse) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *QueryGetConfigResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *QueryGetConfigResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
{
|
|
size, err := m.Config.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintQuery(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0xa
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *QueryGetReplayProtectionRequest) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *QueryGetReplayProtectionRequest) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *QueryGetReplayProtectionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if len(m.Index) > 0 {
|
|
i -= len(m.Index)
|
|
copy(dAtA[i:], m.Index)
|
|
i = encodeVarintQuery(dAtA, i, uint64(len(m.Index)))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *QueryGetReplayProtectionResponse) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *QueryGetReplayProtectionResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *QueryGetReplayProtectionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
{
|
|
size, err := m.ReplayProtection.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintQuery(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0xa
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *QueryAllReplayProtectionRequest) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *QueryAllReplayProtectionRequest) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *QueryAllReplayProtectionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if m.Pagination != nil {
|
|
{
|
|
size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintQuery(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *QueryAllReplayProtectionResponse) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *QueryAllReplayProtectionResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *QueryAllReplayProtectionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if m.Pagination != nil {
|
|
{
|
|
size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintQuery(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
if len(m.ReplayProtection) > 0 {
|
|
for iNdEx := len(m.ReplayProtection) - 1; iNdEx >= 0; iNdEx-- {
|
|
{
|
|
size, err := m.ReplayProtection[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintQuery(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *QueryGetChainRegistrationRequest) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *QueryGetChainRegistrationRequest) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *QueryGetChainRegistrationRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if m.ChainID != 0 {
|
|
i = encodeVarintQuery(dAtA, i, uint64(m.ChainID))
|
|
i--
|
|
dAtA[i] = 0x8
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *QueryGetChainRegistrationResponse) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *QueryGetChainRegistrationResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *QueryGetChainRegistrationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
{
|
|
size, err := m.ChainRegistration.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintQuery(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0xa
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *QueryAllChainRegistrationRequest) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *QueryAllChainRegistrationRequest) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *QueryAllChainRegistrationRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if m.Pagination != nil {
|
|
{
|
|
size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintQuery(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *QueryAllChainRegistrationResponse) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *QueryAllChainRegistrationResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *QueryAllChainRegistrationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if m.Pagination != nil {
|
|
{
|
|
size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintQuery(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
if len(m.ChainRegistration) > 0 {
|
|
for iNdEx := len(m.ChainRegistration) - 1; iNdEx >= 0; iNdEx-- {
|
|
{
|
|
size, err := m.ChainRegistration[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintQuery(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *QueryGetCoinMetaRollbackProtectionRequest) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *QueryGetCoinMetaRollbackProtectionRequest) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *QueryGetCoinMetaRollbackProtectionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if len(m.Index) > 0 {
|
|
i -= len(m.Index)
|
|
copy(dAtA[i:], m.Index)
|
|
i = encodeVarintQuery(dAtA, i, uint64(len(m.Index)))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *QueryGetCoinMetaRollbackProtectionResponse) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *QueryGetCoinMetaRollbackProtectionResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *QueryGetCoinMetaRollbackProtectionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
{
|
|
size, err := m.CoinMetaRollbackProtection.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintQuery(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0xa
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *QueryAllCoinMetaRollbackProtectionRequest) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *QueryAllCoinMetaRollbackProtectionRequest) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *QueryAllCoinMetaRollbackProtectionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if m.Pagination != nil {
|
|
{
|
|
size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintQuery(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *QueryAllCoinMetaRollbackProtectionResponse) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *QueryAllCoinMetaRollbackProtectionResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *QueryAllCoinMetaRollbackProtectionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if m.Pagination != nil {
|
|
{
|
|
size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintQuery(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
if len(m.CoinMetaRollbackProtection) > 0 {
|
|
for iNdEx := len(m.CoinMetaRollbackProtection) - 1; iNdEx >= 0; iNdEx-- {
|
|
{
|
|
size, err := m.CoinMetaRollbackProtection[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintQuery(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func encodeVarintQuery(dAtA []byte, offset int, v uint64) int {
|
|
offset -= sovQuery(v)
|
|
base := offset
|
|
for v >= 1<<7 {
|
|
dAtA[offset] = uint8(v&0x7f | 0x80)
|
|
v >>= 7
|
|
offset++
|
|
}
|
|
dAtA[offset] = uint8(v)
|
|
return base
|
|
}
|
|
func (m *QueryGetConfigRequest) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
return n
|
|
}
|
|
|
|
func (m *QueryGetConfigResponse) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
l = m.Config.Size()
|
|
n += 1 + l + sovQuery(uint64(l))
|
|
return n
|
|
}
|
|
|
|
func (m *QueryGetReplayProtectionRequest) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
l = len(m.Index)
|
|
if l > 0 {
|
|
n += 1 + l + sovQuery(uint64(l))
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *QueryGetReplayProtectionResponse) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
l = m.ReplayProtection.Size()
|
|
n += 1 + l + sovQuery(uint64(l))
|
|
return n
|
|
}
|
|
|
|
func (m *QueryAllReplayProtectionRequest) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if m.Pagination != nil {
|
|
l = m.Pagination.Size()
|
|
n += 1 + l + sovQuery(uint64(l))
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *QueryAllReplayProtectionResponse) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if len(m.ReplayProtection) > 0 {
|
|
for _, e := range m.ReplayProtection {
|
|
l = e.Size()
|
|
n += 1 + l + sovQuery(uint64(l))
|
|
}
|
|
}
|
|
if m.Pagination != nil {
|
|
l = m.Pagination.Size()
|
|
n += 1 + l + sovQuery(uint64(l))
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *QueryGetChainRegistrationRequest) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if m.ChainID != 0 {
|
|
n += 1 + sovQuery(uint64(m.ChainID))
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *QueryGetChainRegistrationResponse) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
l = m.ChainRegistration.Size()
|
|
n += 1 + l + sovQuery(uint64(l))
|
|
return n
|
|
}
|
|
|
|
func (m *QueryAllChainRegistrationRequest) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if m.Pagination != nil {
|
|
l = m.Pagination.Size()
|
|
n += 1 + l + sovQuery(uint64(l))
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *QueryAllChainRegistrationResponse) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if len(m.ChainRegistration) > 0 {
|
|
for _, e := range m.ChainRegistration {
|
|
l = e.Size()
|
|
n += 1 + l + sovQuery(uint64(l))
|
|
}
|
|
}
|
|
if m.Pagination != nil {
|
|
l = m.Pagination.Size()
|
|
n += 1 + l + sovQuery(uint64(l))
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *QueryGetCoinMetaRollbackProtectionRequest) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
l = len(m.Index)
|
|
if l > 0 {
|
|
n += 1 + l + sovQuery(uint64(l))
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *QueryGetCoinMetaRollbackProtectionResponse) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
l = m.CoinMetaRollbackProtection.Size()
|
|
n += 1 + l + sovQuery(uint64(l))
|
|
return n
|
|
}
|
|
|
|
func (m *QueryAllCoinMetaRollbackProtectionRequest) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if m.Pagination != nil {
|
|
l = m.Pagination.Size()
|
|
n += 1 + l + sovQuery(uint64(l))
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *QueryAllCoinMetaRollbackProtectionResponse) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if len(m.CoinMetaRollbackProtection) > 0 {
|
|
for _, e := range m.CoinMetaRollbackProtection {
|
|
l = e.Size()
|
|
n += 1 + l + sovQuery(uint64(l))
|
|
}
|
|
}
|
|
if m.Pagination != nil {
|
|
l = m.Pagination.Size()
|
|
n += 1 + l + sovQuery(uint64(l))
|
|
}
|
|
return n
|
|
}
|
|
|
|
func sovQuery(x uint64) (n int) {
|
|
return (math_bits.Len64(x|1) + 6) / 7
|
|
}
|
|
func sozQuery(x uint64) (n int) {
|
|
return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63))))
|
|
}
|
|
func (m *QueryGetConfigRequest) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowQuery
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: QueryGetConfigRequest: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: QueryGetConfigRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipQuery(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthQuery
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *QueryGetConfigResponse) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowQuery
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: QueryGetConfigResponse: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: QueryGetConfigResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Config", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowQuery
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthQuery
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthQuery
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if err := m.Config.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipQuery(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthQuery
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *QueryGetReplayProtectionRequest) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowQuery
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: QueryGetReplayProtectionRequest: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: QueryGetReplayProtectionRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowQuery
|
|
}
|
|
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 ErrInvalidLengthQuery
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthQuery
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Index = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipQuery(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthQuery
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *QueryGetReplayProtectionResponse) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowQuery
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: QueryGetReplayProtectionResponse: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: QueryGetReplayProtectionResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ReplayProtection", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowQuery
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthQuery
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthQuery
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if err := m.ReplayProtection.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipQuery(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthQuery
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *QueryAllReplayProtectionRequest) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowQuery
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: QueryAllReplayProtectionRequest: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: QueryAllReplayProtectionRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowQuery
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthQuery
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthQuery
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if m.Pagination == nil {
|
|
m.Pagination = &query.PageRequest{}
|
|
}
|
|
if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipQuery(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthQuery
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *QueryAllReplayProtectionResponse) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowQuery
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: QueryAllReplayProtectionResponse: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: QueryAllReplayProtectionResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ReplayProtection", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowQuery
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthQuery
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthQuery
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.ReplayProtection = append(m.ReplayProtection, ReplayProtection{})
|
|
if err := m.ReplayProtection[len(m.ReplayProtection)-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 Pagination", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowQuery
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthQuery
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthQuery
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if m.Pagination == nil {
|
|
m.Pagination = &query.PageResponse{}
|
|
}
|
|
if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipQuery(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthQuery
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *QueryGetChainRegistrationRequest) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowQuery
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: QueryGetChainRegistrationRequest: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: QueryGetChainRegistrationRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ChainID", wireType)
|
|
}
|
|
m.ChainID = 0
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowQuery
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
m.ChainID |= uint32(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipQuery(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthQuery
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *QueryGetChainRegistrationResponse) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowQuery
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: QueryGetChainRegistrationResponse: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: QueryGetChainRegistrationResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ChainRegistration", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowQuery
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthQuery
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthQuery
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if err := m.ChainRegistration.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipQuery(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthQuery
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *QueryAllChainRegistrationRequest) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowQuery
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: QueryAllChainRegistrationRequest: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: QueryAllChainRegistrationRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowQuery
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthQuery
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthQuery
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if m.Pagination == nil {
|
|
m.Pagination = &query.PageRequest{}
|
|
}
|
|
if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipQuery(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthQuery
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *QueryAllChainRegistrationResponse) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowQuery
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: QueryAllChainRegistrationResponse: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: QueryAllChainRegistrationResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ChainRegistration", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowQuery
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthQuery
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthQuery
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.ChainRegistration = append(m.ChainRegistration, ChainRegistration{})
|
|
if err := m.ChainRegistration[len(m.ChainRegistration)-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 Pagination", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowQuery
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthQuery
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthQuery
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if m.Pagination == nil {
|
|
m.Pagination = &query.PageResponse{}
|
|
}
|
|
if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipQuery(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthQuery
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *QueryGetCoinMetaRollbackProtectionRequest) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowQuery
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: QueryGetCoinMetaRollbackProtectionRequest: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: QueryGetCoinMetaRollbackProtectionRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowQuery
|
|
}
|
|
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 ErrInvalidLengthQuery
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthQuery
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Index = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipQuery(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthQuery
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *QueryGetCoinMetaRollbackProtectionResponse) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowQuery
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: QueryGetCoinMetaRollbackProtectionResponse: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: QueryGetCoinMetaRollbackProtectionResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field CoinMetaRollbackProtection", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowQuery
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthQuery
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthQuery
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if err := m.CoinMetaRollbackProtection.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipQuery(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthQuery
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *QueryAllCoinMetaRollbackProtectionRequest) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowQuery
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: QueryAllCoinMetaRollbackProtectionRequest: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: QueryAllCoinMetaRollbackProtectionRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowQuery
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthQuery
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthQuery
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if m.Pagination == nil {
|
|
m.Pagination = &query.PageRequest{}
|
|
}
|
|
if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipQuery(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthQuery
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *QueryAllCoinMetaRollbackProtectionResponse) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowQuery
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: QueryAllCoinMetaRollbackProtectionResponse: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: QueryAllCoinMetaRollbackProtectionResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field CoinMetaRollbackProtection", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowQuery
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthQuery
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthQuery
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.CoinMetaRollbackProtection = append(m.CoinMetaRollbackProtection, CoinMetaRollbackProtection{})
|
|
if err := m.CoinMetaRollbackProtection[len(m.CoinMetaRollbackProtection)-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 Pagination", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowQuery
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthQuery
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthQuery
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if m.Pagination == nil {
|
|
m.Pagination = &query.PageResponse{}
|
|
}
|
|
if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipQuery(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthQuery
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func skipQuery(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, ErrIntOverflowQuery
|
|
}
|
|
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, ErrIntOverflowQuery
|
|
}
|
|
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, ErrIntOverflowQuery
|
|
}
|
|
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, ErrInvalidLengthQuery
|
|
}
|
|
iNdEx += length
|
|
case 3:
|
|
depth++
|
|
case 4:
|
|
if depth == 0 {
|
|
return 0, ErrUnexpectedEndOfGroupQuery
|
|
}
|
|
depth--
|
|
case 5:
|
|
iNdEx += 4
|
|
default:
|
|
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
|
|
}
|
|
if iNdEx < 0 {
|
|
return 0, ErrInvalidLengthQuery
|
|
}
|
|
if depth == 0 {
|
|
return iNdEx, nil
|
|
}
|
|
}
|
|
return 0, io.ErrUnexpectedEOF
|
|
}
|
|
|
|
var (
|
|
ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling")
|
|
ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow")
|
|
ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
|
|
)
|