2021-04-17 10:00:07 +00:00
|
|
|
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
2021-05-10 16:34:00 +00:00
|
|
|
// source: ethermint/evm/v1alpha1/query.proto
|
2021-04-17 10:00:07 +00:00
|
|
|
|
|
|
|
package types
|
|
|
|
|
|
|
|
import (
|
|
|
|
context "context"
|
|
|
|
fmt "fmt"
|
|
|
|
_ "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"
|
|
|
|
io "io"
|
|
|
|
math "math"
|
|
|
|
math_bits "math/bits"
|
|
|
|
)
|
|
|
|
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
|
|
var _ = proto.Marshal
|
|
|
|
var _ = fmt.Errorf
|
|
|
|
var _ = math.Inf
|
|
|
|
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
|
|
// is compatible with the proto package it is being compiled against.
|
|
|
|
// A compilation error at this line likely means your copy of the
|
|
|
|
// proto package needs to be updated.
|
|
|
|
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
|
|
|
|
|
|
|
|
// QueryAccountRequest is the request type for the Query/Account RPC method.
|
|
|
|
type QueryAccountRequest struct {
|
|
|
|
// address is the ethereum hex address to query the account for.
|
|
|
|
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryAccountRequest) Reset() { *m = QueryAccountRequest{} }
|
|
|
|
func (m *QueryAccountRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*QueryAccountRequest) ProtoMessage() {}
|
|
|
|
func (*QueryAccountRequest) Descriptor() ([]byte, []int) {
|
2021-05-10 16:34:00 +00:00
|
|
|
return fileDescriptor_8bbc79ec2b6c5cb2, []int{0}
|
2021-04-17 10:00:07 +00:00
|
|
|
}
|
|
|
|
func (m *QueryAccountRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *QueryAccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
if deterministic {
|
|
|
|
return xxx_messageInfo_QueryAccountRequest.Marshal(b, m, deterministic)
|
|
|
|
} else {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
func (m *QueryAccountRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_QueryAccountRequest.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *QueryAccountRequest) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *QueryAccountRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_QueryAccountRequest.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_QueryAccountRequest proto.InternalMessageInfo
|
|
|
|
|
|
|
|
// QueryAccountResponse is the response type for the Query/Account RPC method.
|
|
|
|
type QueryAccountResponse struct {
|
|
|
|
// balance is the balance of the EVM denomination.
|
|
|
|
Balance string `protobuf:"bytes,1,opt,name=balance,proto3" json:"balance,omitempty"`
|
|
|
|
// code_hash is the code bytes from the EOA.
|
|
|
|
CodeHash []byte `protobuf:"bytes,2,opt,name=code_hash,json=codeHash,proto3" json:"code_hash,omitempty"`
|
|
|
|
// nonce is the account's sequence number.
|
|
|
|
Nonce uint64 `protobuf:"varint,3,opt,name=nonce,proto3" json:"nonce,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryAccountResponse) Reset() { *m = QueryAccountResponse{} }
|
|
|
|
func (m *QueryAccountResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*QueryAccountResponse) ProtoMessage() {}
|
|
|
|
func (*QueryAccountResponse) Descriptor() ([]byte, []int) {
|
2021-05-10 16:34:00 +00:00
|
|
|
return fileDescriptor_8bbc79ec2b6c5cb2, []int{1}
|
2021-04-17 10:00:07 +00:00
|
|
|
}
|
|
|
|
func (m *QueryAccountResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *QueryAccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
if deterministic {
|
|
|
|
return xxx_messageInfo_QueryAccountResponse.Marshal(b, m, deterministic)
|
|
|
|
} else {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
func (m *QueryAccountResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_QueryAccountResponse.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *QueryAccountResponse) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *QueryAccountResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_QueryAccountResponse.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_QueryAccountResponse proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *QueryAccountResponse) GetBalance() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Balance
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryAccountResponse) GetCodeHash() []byte {
|
|
|
|
if m != nil {
|
|
|
|
return m.CodeHash
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryAccountResponse) GetNonce() uint64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.Nonce
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2021-04-18 15:54:18 +00:00
|
|
|
// QueryCosmosAccountRequest is the request type for the Query/CosmosAccount RPC method.
|
|
|
|
type QueryCosmosAccountRequest struct {
|
|
|
|
// address is the ethereum hex address to query the account for.
|
|
|
|
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryCosmosAccountRequest) Reset() { *m = QueryCosmosAccountRequest{} }
|
|
|
|
func (m *QueryCosmosAccountRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*QueryCosmosAccountRequest) ProtoMessage() {}
|
|
|
|
func (*QueryCosmosAccountRequest) Descriptor() ([]byte, []int) {
|
2021-05-10 16:34:00 +00:00
|
|
|
return fileDescriptor_8bbc79ec2b6c5cb2, []int{2}
|
2021-04-18 15:54:18 +00:00
|
|
|
}
|
|
|
|
func (m *QueryCosmosAccountRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *QueryCosmosAccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
if deterministic {
|
|
|
|
return xxx_messageInfo_QueryCosmosAccountRequest.Marshal(b, m, deterministic)
|
|
|
|
} else {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
func (m *QueryCosmosAccountRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_QueryCosmosAccountRequest.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *QueryCosmosAccountRequest) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *QueryCosmosAccountRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_QueryCosmosAccountRequest.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_QueryCosmosAccountRequest proto.InternalMessageInfo
|
|
|
|
|
|
|
|
// QueryCosmosAccountResponse is the response type for the Query/CosmosAccount RPC method.
|
|
|
|
type QueryCosmosAccountResponse struct {
|
|
|
|
// cosmos_address is the cosmos address of the account.
|
|
|
|
CosmosAddress string `protobuf:"bytes,1,opt,name=cosmos_address,json=cosmosAddress,proto3" json:"cosmos_address,omitempty"`
|
|
|
|
// sequence is the account's sequence number.
|
|
|
|
Sequence uint64 `protobuf:"varint,2,opt,name=sequence,proto3" json:"sequence,omitempty"`
|
|
|
|
// account_number is the account numbert
|
|
|
|
AccountNumber uint64 `protobuf:"varint,3,opt,name=account_number,json=accountNumber,proto3" json:"account_number,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryCosmosAccountResponse) Reset() { *m = QueryCosmosAccountResponse{} }
|
|
|
|
func (m *QueryCosmosAccountResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*QueryCosmosAccountResponse) ProtoMessage() {}
|
|
|
|
func (*QueryCosmosAccountResponse) Descriptor() ([]byte, []int) {
|
2021-05-10 16:34:00 +00:00
|
|
|
return fileDescriptor_8bbc79ec2b6c5cb2, []int{3}
|
2021-04-18 15:54:18 +00:00
|
|
|
}
|
|
|
|
func (m *QueryCosmosAccountResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *QueryCosmosAccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
if deterministic {
|
|
|
|
return xxx_messageInfo_QueryCosmosAccountResponse.Marshal(b, m, deterministic)
|
|
|
|
} else {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
func (m *QueryCosmosAccountResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_QueryCosmosAccountResponse.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *QueryCosmosAccountResponse) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *QueryCosmosAccountResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_QueryCosmosAccountResponse.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_QueryCosmosAccountResponse proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *QueryCosmosAccountResponse) GetCosmosAddress() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.CosmosAddress
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryCosmosAccountResponse) GetSequence() uint64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.Sequence
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryCosmosAccountResponse) GetAccountNumber() uint64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.AccountNumber
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2021-04-17 10:00:07 +00:00
|
|
|
// QueryBalanceRequest is the request type for the Query/Balance RPC method.
|
|
|
|
type QueryBalanceRequest struct {
|
|
|
|
// address is the ethereum hex address to query the balance for.
|
|
|
|
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryBalanceRequest) Reset() { *m = QueryBalanceRequest{} }
|
|
|
|
func (m *QueryBalanceRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*QueryBalanceRequest) ProtoMessage() {}
|
|
|
|
func (*QueryBalanceRequest) Descriptor() ([]byte, []int) {
|
2021-05-10 16:34:00 +00:00
|
|
|
return fileDescriptor_8bbc79ec2b6c5cb2, []int{4}
|
2021-04-17 10:00:07 +00:00
|
|
|
}
|
|
|
|
func (m *QueryBalanceRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *QueryBalanceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
if deterministic {
|
|
|
|
return xxx_messageInfo_QueryBalanceRequest.Marshal(b, m, deterministic)
|
|
|
|
} else {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
func (m *QueryBalanceRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_QueryBalanceRequest.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *QueryBalanceRequest) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *QueryBalanceRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_QueryBalanceRequest.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_QueryBalanceRequest proto.InternalMessageInfo
|
|
|
|
|
|
|
|
// QueryBalanceResponse is the response type for the Query/Balance RPC method.
|
|
|
|
type QueryBalanceResponse struct {
|
|
|
|
// balance is the balance of the EVM denomination.
|
|
|
|
Balance string `protobuf:"bytes,1,opt,name=balance,proto3" json:"balance,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryBalanceResponse) Reset() { *m = QueryBalanceResponse{} }
|
|
|
|
func (m *QueryBalanceResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*QueryBalanceResponse) ProtoMessage() {}
|
|
|
|
func (*QueryBalanceResponse) Descriptor() ([]byte, []int) {
|
2021-05-10 16:34:00 +00:00
|
|
|
return fileDescriptor_8bbc79ec2b6c5cb2, []int{5}
|
2021-04-17 10:00:07 +00:00
|
|
|
}
|
|
|
|
func (m *QueryBalanceResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *QueryBalanceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
if deterministic {
|
|
|
|
return xxx_messageInfo_QueryBalanceResponse.Marshal(b, m, deterministic)
|
|
|
|
} else {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
func (m *QueryBalanceResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_QueryBalanceResponse.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *QueryBalanceResponse) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *QueryBalanceResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_QueryBalanceResponse.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_QueryBalanceResponse proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *QueryBalanceResponse) GetBalance() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Balance
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
// QueryStorageRequest is the request type for the Query/Storage RPC method.
|
|
|
|
type QueryStorageRequest struct {
|
|
|
|
/// address is the ethereum hex address to query the storage state for.
|
|
|
|
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
|
|
|
|
// key defines the key of the storage state
|
|
|
|
Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryStorageRequest) Reset() { *m = QueryStorageRequest{} }
|
|
|
|
func (m *QueryStorageRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*QueryStorageRequest) ProtoMessage() {}
|
|
|
|
func (*QueryStorageRequest) Descriptor() ([]byte, []int) {
|
2021-05-10 16:34:00 +00:00
|
|
|
return fileDescriptor_8bbc79ec2b6c5cb2, []int{6}
|
2021-04-17 10:00:07 +00:00
|
|
|
}
|
|
|
|
func (m *QueryStorageRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *QueryStorageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
if deterministic {
|
|
|
|
return xxx_messageInfo_QueryStorageRequest.Marshal(b, m, deterministic)
|
|
|
|
} else {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
func (m *QueryStorageRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_QueryStorageRequest.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *QueryStorageRequest) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *QueryStorageRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_QueryStorageRequest.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_QueryStorageRequest proto.InternalMessageInfo
|
|
|
|
|
|
|
|
// QueryStorageResponse is the response type for the Query/Storage RPC
|
|
|
|
// method.
|
|
|
|
type QueryStorageResponse struct {
|
|
|
|
// key defines the storage state value hash associated with the given key.
|
|
|
|
Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryStorageResponse) Reset() { *m = QueryStorageResponse{} }
|
|
|
|
func (m *QueryStorageResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*QueryStorageResponse) ProtoMessage() {}
|
|
|
|
func (*QueryStorageResponse) Descriptor() ([]byte, []int) {
|
2021-05-10 16:34:00 +00:00
|
|
|
return fileDescriptor_8bbc79ec2b6c5cb2, []int{7}
|
2021-04-17 10:00:07 +00:00
|
|
|
}
|
|
|
|
func (m *QueryStorageResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *QueryStorageResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
if deterministic {
|
|
|
|
return xxx_messageInfo_QueryStorageResponse.Marshal(b, m, deterministic)
|
|
|
|
} else {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
func (m *QueryStorageResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_QueryStorageResponse.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *QueryStorageResponse) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *QueryStorageResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_QueryStorageResponse.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_QueryStorageResponse proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *QueryStorageResponse) GetValue() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Value
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
// QueryCodeRequest is the request type for the Query/Code RPC method.
|
|
|
|
type QueryCodeRequest struct {
|
|
|
|
// address is the ethereum hex address to query the code for.
|
|
|
|
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryCodeRequest) Reset() { *m = QueryCodeRequest{} }
|
|
|
|
func (m *QueryCodeRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*QueryCodeRequest) ProtoMessage() {}
|
|
|
|
func (*QueryCodeRequest) Descriptor() ([]byte, []int) {
|
2021-05-10 16:34:00 +00:00
|
|
|
return fileDescriptor_8bbc79ec2b6c5cb2, []int{8}
|
2021-04-17 10:00:07 +00:00
|
|
|
}
|
|
|
|
func (m *QueryCodeRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *QueryCodeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
if deterministic {
|
|
|
|
return xxx_messageInfo_QueryCodeRequest.Marshal(b, m, deterministic)
|
|
|
|
} else {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
func (m *QueryCodeRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_QueryCodeRequest.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *QueryCodeRequest) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *QueryCodeRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_QueryCodeRequest.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_QueryCodeRequest proto.InternalMessageInfo
|
|
|
|
|
|
|
|
// QueryCodeResponse is the response type for the Query/Code RPC
|
|
|
|
// method.
|
|
|
|
type QueryCodeResponse struct {
|
|
|
|
// code represents the code bytes from an ethereum address.
|
|
|
|
Code []byte `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryCodeResponse) Reset() { *m = QueryCodeResponse{} }
|
|
|
|
func (m *QueryCodeResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*QueryCodeResponse) ProtoMessage() {}
|
|
|
|
func (*QueryCodeResponse) Descriptor() ([]byte, []int) {
|
2021-05-10 16:34:00 +00:00
|
|
|
return fileDescriptor_8bbc79ec2b6c5cb2, []int{9}
|
2021-04-17 10:00:07 +00:00
|
|
|
}
|
|
|
|
func (m *QueryCodeResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *QueryCodeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
if deterministic {
|
|
|
|
return xxx_messageInfo_QueryCodeResponse.Marshal(b, m, deterministic)
|
|
|
|
} else {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
func (m *QueryCodeResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_QueryCodeResponse.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *QueryCodeResponse) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *QueryCodeResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_QueryCodeResponse.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_QueryCodeResponse proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *QueryCodeResponse) GetCode() []byte {
|
|
|
|
if m != nil {
|
|
|
|
return m.Code
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// QueryTxLogsRequest is the request type for the Query/TxLogs RPC method.
|
|
|
|
type QueryTxLogsRequest struct {
|
|
|
|
// hash is the ethereum transaction hex hash to query the logs for.
|
|
|
|
Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryTxLogsRequest) Reset() { *m = QueryTxLogsRequest{} }
|
|
|
|
func (m *QueryTxLogsRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*QueryTxLogsRequest) ProtoMessage() {}
|
|
|
|
func (*QueryTxLogsRequest) Descriptor() ([]byte, []int) {
|
2021-05-10 16:34:00 +00:00
|
|
|
return fileDescriptor_8bbc79ec2b6c5cb2, []int{10}
|
2021-04-17 10:00:07 +00:00
|
|
|
}
|
|
|
|
func (m *QueryTxLogsRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *QueryTxLogsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
if deterministic {
|
|
|
|
return xxx_messageInfo_QueryTxLogsRequest.Marshal(b, m, deterministic)
|
|
|
|
} else {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
func (m *QueryTxLogsRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_QueryTxLogsRequest.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *QueryTxLogsRequest) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *QueryTxLogsRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_QueryTxLogsRequest.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_QueryTxLogsRequest proto.InternalMessageInfo
|
|
|
|
|
|
|
|
// QueryTxLogs is the response type for the Query/TxLogs RPC method.
|
|
|
|
type QueryTxLogsResponse struct {
|
|
|
|
// logs represents the ethereum logs generated from the given transaction.
|
|
|
|
Logs []*Log `protobuf:"bytes,1,rep,name=logs,proto3" json:"logs,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryTxLogsResponse) Reset() { *m = QueryTxLogsResponse{} }
|
|
|
|
func (m *QueryTxLogsResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*QueryTxLogsResponse) ProtoMessage() {}
|
|
|
|
func (*QueryTxLogsResponse) Descriptor() ([]byte, []int) {
|
2021-05-10 16:34:00 +00:00
|
|
|
return fileDescriptor_8bbc79ec2b6c5cb2, []int{11}
|
2021-04-17 10:00:07 +00:00
|
|
|
}
|
|
|
|
func (m *QueryTxLogsResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *QueryTxLogsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
if deterministic {
|
|
|
|
return xxx_messageInfo_QueryTxLogsResponse.Marshal(b, m, deterministic)
|
|
|
|
} else {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
func (m *QueryTxLogsResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_QueryTxLogsResponse.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *QueryTxLogsResponse) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *QueryTxLogsResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_QueryTxLogsResponse.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_QueryTxLogsResponse proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *QueryTxLogsResponse) GetLogs() []*Log {
|
|
|
|
if m != nil {
|
|
|
|
return m.Logs
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2021-04-18 15:54:18 +00:00
|
|
|
// QueryTxReceiptRequest is the request type for the Query/TxReceipt RPC method.
|
|
|
|
type QueryTxReceiptRequest struct {
|
|
|
|
// hash is the ethereum transaction hex hash to query the receipt for.
|
|
|
|
Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryTxReceiptRequest) Reset() { *m = QueryTxReceiptRequest{} }
|
|
|
|
func (m *QueryTxReceiptRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*QueryTxReceiptRequest) ProtoMessage() {}
|
|
|
|
func (*QueryTxReceiptRequest) Descriptor() ([]byte, []int) {
|
2021-05-10 16:34:00 +00:00
|
|
|
return fileDescriptor_8bbc79ec2b6c5cb2, []int{12}
|
2021-04-18 15:54:18 +00:00
|
|
|
}
|
|
|
|
func (m *QueryTxReceiptRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *QueryTxReceiptRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
if deterministic {
|
|
|
|
return xxx_messageInfo_QueryTxReceiptRequest.Marshal(b, m, deterministic)
|
|
|
|
} else {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
func (m *QueryTxReceiptRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_QueryTxReceiptRequest.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *QueryTxReceiptRequest) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *QueryTxReceiptRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_QueryTxReceiptRequest.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_QueryTxReceiptRequest proto.InternalMessageInfo
|
|
|
|
|
|
|
|
// QueryTxReceiptResponse is the response type for the Query/TxReceipt RPC method.
|
|
|
|
type QueryTxReceiptResponse struct {
|
|
|
|
// receipt represents the ethereum receipt for the given transaction.
|
|
|
|
Receipt *TxReceipt `protobuf:"bytes,1,opt,name=receipt,proto3" json:"receipt,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryTxReceiptResponse) Reset() { *m = QueryTxReceiptResponse{} }
|
|
|
|
func (m *QueryTxReceiptResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*QueryTxReceiptResponse) ProtoMessage() {}
|
|
|
|
func (*QueryTxReceiptResponse) Descriptor() ([]byte, []int) {
|
2021-05-10 16:34:00 +00:00
|
|
|
return fileDescriptor_8bbc79ec2b6c5cb2, []int{13}
|
2021-04-18 15:54:18 +00:00
|
|
|
}
|
|
|
|
func (m *QueryTxReceiptResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *QueryTxReceiptResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
if deterministic {
|
|
|
|
return xxx_messageInfo_QueryTxReceiptResponse.Marshal(b, m, deterministic)
|
|
|
|
} else {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
func (m *QueryTxReceiptResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_QueryTxReceiptResponse.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *QueryTxReceiptResponse) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *QueryTxReceiptResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_QueryTxReceiptResponse.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_QueryTxReceiptResponse proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *QueryTxReceiptResponse) GetReceipt() *TxReceipt {
|
|
|
|
if m != nil {
|
|
|
|
return m.Receipt
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// QueryTxReceiptsByBlockHeightRequest is the request type for the Query/TxReceiptsByBlockHeight RPC method.
|
|
|
|
type QueryTxReceiptsByBlockHeightRequest struct {
|
|
|
|
// height is the block height to query tx receipts for
|
|
|
|
Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryTxReceiptsByBlockHeightRequest) Reset() { *m = QueryTxReceiptsByBlockHeightRequest{} }
|
|
|
|
func (m *QueryTxReceiptsByBlockHeightRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*QueryTxReceiptsByBlockHeightRequest) ProtoMessage() {}
|
|
|
|
func (*QueryTxReceiptsByBlockHeightRequest) Descriptor() ([]byte, []int) {
|
2021-05-10 16:34:00 +00:00
|
|
|
return fileDescriptor_8bbc79ec2b6c5cb2, []int{14}
|
2021-04-18 15:54:18 +00:00
|
|
|
}
|
|
|
|
func (m *QueryTxReceiptsByBlockHeightRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *QueryTxReceiptsByBlockHeightRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
if deterministic {
|
|
|
|
return xxx_messageInfo_QueryTxReceiptsByBlockHeightRequest.Marshal(b, m, deterministic)
|
|
|
|
} else {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
func (m *QueryTxReceiptsByBlockHeightRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_QueryTxReceiptsByBlockHeightRequest.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *QueryTxReceiptsByBlockHeightRequest) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *QueryTxReceiptsByBlockHeightRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_QueryTxReceiptsByBlockHeightRequest.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_QueryTxReceiptsByBlockHeightRequest proto.InternalMessageInfo
|
|
|
|
|
|
|
|
// QueryTxReceiptsByBlockHeightResponse is the response type for the Query/TxReceiptsByBlockHeight RPC method.
|
|
|
|
type QueryTxReceiptsByBlockHeightResponse struct {
|
|
|
|
// tx receipts list for the block
|
|
|
|
Receipts []*TxReceipt `protobuf:"bytes,1,rep,name=receipts,proto3" json:"receipts,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryTxReceiptsByBlockHeightResponse) Reset() { *m = QueryTxReceiptsByBlockHeightResponse{} }
|
|
|
|
func (m *QueryTxReceiptsByBlockHeightResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*QueryTxReceiptsByBlockHeightResponse) ProtoMessage() {}
|
|
|
|
func (*QueryTxReceiptsByBlockHeightResponse) Descriptor() ([]byte, []int) {
|
2021-05-10 16:34:00 +00:00
|
|
|
return fileDescriptor_8bbc79ec2b6c5cb2, []int{15}
|
2021-04-18 15:54:18 +00:00
|
|
|
}
|
|
|
|
func (m *QueryTxReceiptsByBlockHeightResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *QueryTxReceiptsByBlockHeightResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
if deterministic {
|
|
|
|
return xxx_messageInfo_QueryTxReceiptsByBlockHeightResponse.Marshal(b, m, deterministic)
|
|
|
|
} else {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
func (m *QueryTxReceiptsByBlockHeightResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_QueryTxReceiptsByBlockHeightResponse.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *QueryTxReceiptsByBlockHeightResponse) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *QueryTxReceiptsByBlockHeightResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_QueryTxReceiptsByBlockHeightResponse.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_QueryTxReceiptsByBlockHeightResponse proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *QueryTxReceiptsByBlockHeightResponse) GetReceipts() []*TxReceipt {
|
|
|
|
if m != nil {
|
|
|
|
return m.Receipts
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// QueryTxReceiptsByBlockHashRequest is the request type for the Query/TxReceiptsByBlockHash RPC method.
|
|
|
|
type QueryTxReceiptsByBlockHashRequest struct {
|
|
|
|
// hash is the ethereum transaction hex hash to query the receipt for.
|
|
|
|
Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryTxReceiptsByBlockHashRequest) Reset() { *m = QueryTxReceiptsByBlockHashRequest{} }
|
|
|
|
func (m *QueryTxReceiptsByBlockHashRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*QueryTxReceiptsByBlockHashRequest) ProtoMessage() {}
|
|
|
|
func (*QueryTxReceiptsByBlockHashRequest) Descriptor() ([]byte, []int) {
|
2021-05-10 16:34:00 +00:00
|
|
|
return fileDescriptor_8bbc79ec2b6c5cb2, []int{16}
|
2021-04-18 15:54:18 +00:00
|
|
|
}
|
|
|
|
func (m *QueryTxReceiptsByBlockHashRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *QueryTxReceiptsByBlockHashRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
if deterministic {
|
|
|
|
return xxx_messageInfo_QueryTxReceiptsByBlockHashRequest.Marshal(b, m, deterministic)
|
|
|
|
} else {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
func (m *QueryTxReceiptsByBlockHashRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_QueryTxReceiptsByBlockHashRequest.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *QueryTxReceiptsByBlockHashRequest) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *QueryTxReceiptsByBlockHashRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_QueryTxReceiptsByBlockHashRequest.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_QueryTxReceiptsByBlockHashRequest proto.InternalMessageInfo
|
|
|
|
|
|
|
|
// QueryTxReceiptsByBlockHashResponse is the response type for the Query/TxReceiptsByBlockHash RPC method.
|
|
|
|
type QueryTxReceiptsByBlockHashResponse struct {
|
|
|
|
// tx receipts list for the block
|
|
|
|
Receipts []*TxReceipt `protobuf:"bytes,1,rep,name=receipts,proto3" json:"receipts,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryTxReceiptsByBlockHashResponse) Reset() { *m = QueryTxReceiptsByBlockHashResponse{} }
|
|
|
|
func (m *QueryTxReceiptsByBlockHashResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*QueryTxReceiptsByBlockHashResponse) ProtoMessage() {}
|
|
|
|
func (*QueryTxReceiptsByBlockHashResponse) Descriptor() ([]byte, []int) {
|
2021-05-10 16:34:00 +00:00
|
|
|
return fileDescriptor_8bbc79ec2b6c5cb2, []int{17}
|
2021-04-18 15:54:18 +00:00
|
|
|
}
|
|
|
|
func (m *QueryTxReceiptsByBlockHashResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *QueryTxReceiptsByBlockHashResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
if deterministic {
|
|
|
|
return xxx_messageInfo_QueryTxReceiptsByBlockHashResponse.Marshal(b, m, deterministic)
|
|
|
|
} else {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
func (m *QueryTxReceiptsByBlockHashResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_QueryTxReceiptsByBlockHashResponse.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *QueryTxReceiptsByBlockHashResponse) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *QueryTxReceiptsByBlockHashResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_QueryTxReceiptsByBlockHashResponse.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_QueryTxReceiptsByBlockHashResponse proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *QueryTxReceiptsByBlockHashResponse) GetReceipts() []*TxReceipt {
|
|
|
|
if m != nil {
|
|
|
|
return m.Receipts
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2021-04-17 10:00:07 +00:00
|
|
|
// QueryBlockLogsRequest is the request type for the Query/BlockLogs RPC method.
|
|
|
|
type QueryBlockLogsRequest struct {
|
|
|
|
// hash is the block hash to query the logs for.
|
|
|
|
Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryBlockLogsRequest) Reset() { *m = QueryBlockLogsRequest{} }
|
|
|
|
func (m *QueryBlockLogsRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*QueryBlockLogsRequest) ProtoMessage() {}
|
|
|
|
func (*QueryBlockLogsRequest) Descriptor() ([]byte, []int) {
|
2021-05-10 16:34:00 +00:00
|
|
|
return fileDescriptor_8bbc79ec2b6c5cb2, []int{18}
|
2021-04-17 10:00:07 +00:00
|
|
|
}
|
|
|
|
func (m *QueryBlockLogsRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *QueryBlockLogsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
if deterministic {
|
|
|
|
return xxx_messageInfo_QueryBlockLogsRequest.Marshal(b, m, deterministic)
|
|
|
|
} else {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
func (m *QueryBlockLogsRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_QueryBlockLogsRequest.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *QueryBlockLogsRequest) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *QueryBlockLogsRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_QueryBlockLogsRequest.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_QueryBlockLogsRequest proto.InternalMessageInfo
|
|
|
|
|
|
|
|
// QueryTxLogs is the response type for the Query/BlockLogs RPC method.
|
|
|
|
type QueryBlockLogsResponse struct {
|
|
|
|
// logs represents the ethereum logs generated at the given block hash.
|
|
|
|
TxLogs []TransactionLogs `protobuf:"bytes,1,rep,name=tx_logs,json=txLogs,proto3" json:"tx_logs"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryBlockLogsResponse) Reset() { *m = QueryBlockLogsResponse{} }
|
|
|
|
func (m *QueryBlockLogsResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*QueryBlockLogsResponse) ProtoMessage() {}
|
|
|
|
func (*QueryBlockLogsResponse) Descriptor() ([]byte, []int) {
|
2021-05-10 16:34:00 +00:00
|
|
|
return fileDescriptor_8bbc79ec2b6c5cb2, []int{19}
|
2021-04-17 10:00:07 +00:00
|
|
|
}
|
|
|
|
func (m *QueryBlockLogsResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *QueryBlockLogsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
if deterministic {
|
|
|
|
return xxx_messageInfo_QueryBlockLogsResponse.Marshal(b, m, deterministic)
|
|
|
|
} else {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
func (m *QueryBlockLogsResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_QueryBlockLogsResponse.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *QueryBlockLogsResponse) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *QueryBlockLogsResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_QueryBlockLogsResponse.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_QueryBlockLogsResponse proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *QueryBlockLogsResponse) GetTxLogs() []TransactionLogs {
|
|
|
|
if m != nil {
|
|
|
|
return m.TxLogs
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// QueryBlockBloomRequest is the request type for the Query/BlockBloom RPC
|
|
|
|
// method.
|
|
|
|
type QueryBlockBloomRequest struct {
|
2021-04-18 15:54:18 +00:00
|
|
|
Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
|
2021-04-17 10:00:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryBlockBloomRequest) Reset() { *m = QueryBlockBloomRequest{} }
|
|
|
|
func (m *QueryBlockBloomRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*QueryBlockBloomRequest) ProtoMessage() {}
|
|
|
|
func (*QueryBlockBloomRequest) Descriptor() ([]byte, []int) {
|
2021-05-10 16:34:00 +00:00
|
|
|
return fileDescriptor_8bbc79ec2b6c5cb2, []int{20}
|
2021-04-17 10:00:07 +00:00
|
|
|
}
|
|
|
|
func (m *QueryBlockBloomRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *QueryBlockBloomRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
if deterministic {
|
|
|
|
return xxx_messageInfo_QueryBlockBloomRequest.Marshal(b, m, deterministic)
|
|
|
|
} else {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
func (m *QueryBlockBloomRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_QueryBlockBloomRequest.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *QueryBlockBloomRequest) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *QueryBlockBloomRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_QueryBlockBloomRequest.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_QueryBlockBloomRequest proto.InternalMessageInfo
|
|
|
|
|
2021-04-18 15:54:18 +00:00
|
|
|
func (m *QueryBlockBloomRequest) GetHeight() int64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.Height
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2021-04-17 10:00:07 +00:00
|
|
|
// QueryBlockBloomResponse is the response type for the Query/BlockBloom RPC
|
|
|
|
// method.
|
|
|
|
type QueryBlockBloomResponse struct {
|
|
|
|
// bloom represents bloom filter for the given block hash.
|
|
|
|
Bloom []byte `protobuf:"bytes,1,opt,name=bloom,proto3" json:"bloom,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryBlockBloomResponse) Reset() { *m = QueryBlockBloomResponse{} }
|
|
|
|
func (m *QueryBlockBloomResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*QueryBlockBloomResponse) ProtoMessage() {}
|
|
|
|
func (*QueryBlockBloomResponse) Descriptor() ([]byte, []int) {
|
2021-05-10 16:34:00 +00:00
|
|
|
return fileDescriptor_8bbc79ec2b6c5cb2, []int{21}
|
2021-04-17 10:00:07 +00:00
|
|
|
}
|
|
|
|
func (m *QueryBlockBloomResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *QueryBlockBloomResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
if deterministic {
|
|
|
|
return xxx_messageInfo_QueryBlockBloomResponse.Marshal(b, m, deterministic)
|
|
|
|
} else {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
func (m *QueryBlockBloomResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_QueryBlockBloomResponse.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *QueryBlockBloomResponse) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *QueryBlockBloomResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_QueryBlockBloomResponse.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_QueryBlockBloomResponse proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *QueryBlockBloomResponse) GetBloom() []byte {
|
|
|
|
if m != nil {
|
|
|
|
return m.Bloom
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// QueryParamsRequest defines the request type for querying x/evm parameters.
|
|
|
|
type QueryParamsRequest struct {
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryParamsRequest) Reset() { *m = QueryParamsRequest{} }
|
|
|
|
func (m *QueryParamsRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*QueryParamsRequest) ProtoMessage() {}
|
|
|
|
func (*QueryParamsRequest) Descriptor() ([]byte, []int) {
|
2021-05-10 16:34:00 +00:00
|
|
|
return fileDescriptor_8bbc79ec2b6c5cb2, []int{22}
|
2021-04-17 10:00:07 +00:00
|
|
|
}
|
|
|
|
func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
if deterministic {
|
|
|
|
return xxx_messageInfo_QueryParamsRequest.Marshal(b, m, deterministic)
|
|
|
|
} else {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
func (m *QueryParamsRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_QueryParamsRequest.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *QueryParamsRequest) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *QueryParamsRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_QueryParamsRequest.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_QueryParamsRequest proto.InternalMessageInfo
|
|
|
|
|
|
|
|
// QueryParamsResponse defines the response type for querying x/evm parameters.
|
|
|
|
type QueryParamsResponse struct {
|
|
|
|
// params define the evm module parameters.
|
|
|
|
Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryParamsResponse) Reset() { *m = QueryParamsResponse{} }
|
|
|
|
func (m *QueryParamsResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*QueryParamsResponse) ProtoMessage() {}
|
|
|
|
func (*QueryParamsResponse) Descriptor() ([]byte, []int) {
|
2021-05-10 16:34:00 +00:00
|
|
|
return fileDescriptor_8bbc79ec2b6c5cb2, []int{23}
|
2021-04-17 10:00:07 +00:00
|
|
|
}
|
|
|
|
func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
if deterministic {
|
|
|
|
return xxx_messageInfo_QueryParamsResponse.Marshal(b, m, deterministic)
|
|
|
|
} else {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
func (m *QueryParamsResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_QueryParamsResponse.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *QueryParamsResponse) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *QueryParamsResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_QueryParamsResponse.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_QueryParamsResponse proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *QueryParamsResponse) GetParams() Params {
|
|
|
|
if m != nil {
|
|
|
|
return m.Params
|
|
|
|
}
|
|
|
|
return Params{}
|
|
|
|
}
|
|
|
|
|
2021-04-18 15:54:18 +00:00
|
|
|
// QueryStaticCallRequest defines static call request
|
|
|
|
type QueryStaticCallRequest struct {
|
|
|
|
// address is the ethereum contract hex address to for static call.
|
|
|
|
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
|
|
|
|
// static call input generated from abi
|
|
|
|
Input []byte `protobuf:"bytes,2,opt,name=input,proto3" json:"input,omitempty"`
|
2021-04-17 10:00:07 +00:00
|
|
|
}
|
|
|
|
|
2021-04-18 15:54:18 +00:00
|
|
|
func (m *QueryStaticCallRequest) Reset() { *m = QueryStaticCallRequest{} }
|
|
|
|
func (m *QueryStaticCallRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*QueryStaticCallRequest) ProtoMessage() {}
|
|
|
|
func (*QueryStaticCallRequest) Descriptor() ([]byte, []int) {
|
2021-05-10 16:34:00 +00:00
|
|
|
return fileDescriptor_8bbc79ec2b6c5cb2, []int{24}
|
2021-04-17 10:00:07 +00:00
|
|
|
}
|
2021-04-18 15:54:18 +00:00
|
|
|
func (m *QueryStaticCallRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
2021-04-17 10:00:07 +00:00
|
|
|
}
|
2021-04-18 15:54:18 +00:00
|
|
|
func (m *QueryStaticCallRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
if deterministic {
|
|
|
|
return xxx_messageInfo_QueryStaticCallRequest.Marshal(b, m, deterministic)
|
|
|
|
} else {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
2021-04-17 10:00:07 +00:00
|
|
|
}
|
2021-04-18 15:54:18 +00:00
|
|
|
func (m *QueryStaticCallRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_QueryStaticCallRequest.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *QueryStaticCallRequest) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *QueryStaticCallRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_QueryStaticCallRequest.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_QueryStaticCallRequest proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *QueryStaticCallRequest) GetAddress() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Address
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryStaticCallRequest) GetInput() []byte {
|
|
|
|
if m != nil {
|
|
|
|
return m.Input
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// // QueryStaticCallRequest defines static call response
|
|
|
|
type QueryStaticCallResponse struct {
|
|
|
|
Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryStaticCallResponse) Reset() { *m = QueryStaticCallResponse{} }
|
|
|
|
func (m *QueryStaticCallResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*QueryStaticCallResponse) ProtoMessage() {}
|
|
|
|
func (*QueryStaticCallResponse) Descriptor() ([]byte, []int) {
|
2021-05-10 16:34:00 +00:00
|
|
|
return fileDescriptor_8bbc79ec2b6c5cb2, []int{25}
|
2021-04-18 15:54:18 +00:00
|
|
|
}
|
|
|
|
func (m *QueryStaticCallResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *QueryStaticCallResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
if deterministic {
|
|
|
|
return xxx_messageInfo_QueryStaticCallResponse.Marshal(b, m, deterministic)
|
|
|
|
} else {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
func (m *QueryStaticCallResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_QueryStaticCallResponse.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *QueryStaticCallResponse) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *QueryStaticCallResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_QueryStaticCallResponse.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_QueryStaticCallResponse proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *QueryStaticCallResponse) GetData() []byte {
|
|
|
|
if m != nil {
|
|
|
|
return m.Data
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func init() {
|
2021-05-10 16:34:00 +00:00
|
|
|
proto.RegisterType((*QueryAccountRequest)(nil), "ethermint.evm.v1alpha1.QueryAccountRequest")
|
|
|
|
proto.RegisterType((*QueryAccountResponse)(nil), "ethermint.evm.v1alpha1.QueryAccountResponse")
|
|
|
|
proto.RegisterType((*QueryCosmosAccountRequest)(nil), "ethermint.evm.v1alpha1.QueryCosmosAccountRequest")
|
|
|
|
proto.RegisterType((*QueryCosmosAccountResponse)(nil), "ethermint.evm.v1alpha1.QueryCosmosAccountResponse")
|
|
|
|
proto.RegisterType((*QueryBalanceRequest)(nil), "ethermint.evm.v1alpha1.QueryBalanceRequest")
|
|
|
|
proto.RegisterType((*QueryBalanceResponse)(nil), "ethermint.evm.v1alpha1.QueryBalanceResponse")
|
|
|
|
proto.RegisterType((*QueryStorageRequest)(nil), "ethermint.evm.v1alpha1.QueryStorageRequest")
|
|
|
|
proto.RegisterType((*QueryStorageResponse)(nil), "ethermint.evm.v1alpha1.QueryStorageResponse")
|
|
|
|
proto.RegisterType((*QueryCodeRequest)(nil), "ethermint.evm.v1alpha1.QueryCodeRequest")
|
|
|
|
proto.RegisterType((*QueryCodeResponse)(nil), "ethermint.evm.v1alpha1.QueryCodeResponse")
|
|
|
|
proto.RegisterType((*QueryTxLogsRequest)(nil), "ethermint.evm.v1alpha1.QueryTxLogsRequest")
|
|
|
|
proto.RegisterType((*QueryTxLogsResponse)(nil), "ethermint.evm.v1alpha1.QueryTxLogsResponse")
|
|
|
|
proto.RegisterType((*QueryTxReceiptRequest)(nil), "ethermint.evm.v1alpha1.QueryTxReceiptRequest")
|
|
|
|
proto.RegisterType((*QueryTxReceiptResponse)(nil), "ethermint.evm.v1alpha1.QueryTxReceiptResponse")
|
|
|
|
proto.RegisterType((*QueryTxReceiptsByBlockHeightRequest)(nil), "ethermint.evm.v1alpha1.QueryTxReceiptsByBlockHeightRequest")
|
|
|
|
proto.RegisterType((*QueryTxReceiptsByBlockHeightResponse)(nil), "ethermint.evm.v1alpha1.QueryTxReceiptsByBlockHeightResponse")
|
|
|
|
proto.RegisterType((*QueryTxReceiptsByBlockHashRequest)(nil), "ethermint.evm.v1alpha1.QueryTxReceiptsByBlockHashRequest")
|
|
|
|
proto.RegisterType((*QueryTxReceiptsByBlockHashResponse)(nil), "ethermint.evm.v1alpha1.QueryTxReceiptsByBlockHashResponse")
|
|
|
|
proto.RegisterType((*QueryBlockLogsRequest)(nil), "ethermint.evm.v1alpha1.QueryBlockLogsRequest")
|
|
|
|
proto.RegisterType((*QueryBlockLogsResponse)(nil), "ethermint.evm.v1alpha1.QueryBlockLogsResponse")
|
|
|
|
proto.RegisterType((*QueryBlockBloomRequest)(nil), "ethermint.evm.v1alpha1.QueryBlockBloomRequest")
|
|
|
|
proto.RegisterType((*QueryBlockBloomResponse)(nil), "ethermint.evm.v1alpha1.QueryBlockBloomResponse")
|
|
|
|
proto.RegisterType((*QueryParamsRequest)(nil), "ethermint.evm.v1alpha1.QueryParamsRequest")
|
|
|
|
proto.RegisterType((*QueryParamsResponse)(nil), "ethermint.evm.v1alpha1.QueryParamsResponse")
|
|
|
|
proto.RegisterType((*QueryStaticCallRequest)(nil), "ethermint.evm.v1alpha1.QueryStaticCallRequest")
|
|
|
|
proto.RegisterType((*QueryStaticCallResponse)(nil), "ethermint.evm.v1alpha1.QueryStaticCallResponse")
|
|
|
|
}
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
proto.RegisterFile("ethermint/evm/v1alpha1/query.proto", fileDescriptor_8bbc79ec2b6c5cb2)
|
|
|
|
}
|
|
|
|
|
|
|
|
var fileDescriptor_8bbc79ec2b6c5cb2 = []byte{
|
|
|
|
// 1157 bytes of a gzipped FileDescriptorProto
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x57, 0x4f, 0x6f, 0x1b, 0xc5,
|
|
|
|
0x1b, 0xf6, 0x26, 0x8e, 0x9d, 0xbc, 0x6d, 0x7e, 0xca, 0x6f, 0x70, 0xd3, 0xb0, 0x45, 0x4e, 0x3a,
|
|
|
|
0xa5, 0x8d, 0xd3, 0xa4, 0xde, 0xc4, 0x50, 0x4a, 0xd3, 0x56, 0x28, 0xae, 0x54, 0x22, 0x51, 0x21,
|
|
|
|
0x70, 0xe0, 0xc2, 0xc5, 0x8c, 0xd7, 0x2b, 0xdb, 0xca, 0x7a, 0xc7, 0xf5, 0xae, 0xa3, 0x44, 0x51,
|
|
|
|
0x2e, 0x1c, 0x10, 0x48, 0x1c, 0x40, 0x1c, 0x40, 0x48, 0x48, 0xfd, 0x08, 0x7c, 0x8c, 0x5e, 0x90,
|
|
|
|
0x22, 0x71, 0x41, 0x42, 0x42, 0x28, 0xe1, 0xc0, 0xc7, 0x40, 0x33, 0xf3, 0xee, 0x7a, 0x37, 0xf1,
|
|
|
|
0x7a, 0x37, 0x11, 0xb7, 0x9d, 0xf1, 0xfb, 0xbc, 0xcf, 0xf3, 0xbe, 0xf3, 0xe7, 0x19, 0x03, 0xb5,
|
|
|
|
0xbc, 0xb6, 0xd5, 0xef, 0x76, 0x1c, 0xcf, 0xb0, 0xf6, 0xba, 0xc6, 0xde, 0x06, 0xb3, 0x7b, 0x6d,
|
|
|
|
0xb6, 0x61, 0xbc, 0x18, 0x58, 0xfd, 0x83, 0x72, 0xaf, 0xcf, 0x3d, 0x4e, 0xe6, 0x83, 0x98, 0xb2,
|
|
|
|
0xb5, 0xd7, 0x2d, 0xfb, 0x31, 0x7a, 0xa1, 0xc5, 0x5b, 0x5c, 0x86, 0x18, 0xe2, 0x4b, 0x45, 0xeb,
|
|
|
|
0x6f, 0xb4, 0x38, 0x6f, 0xd9, 0x96, 0xc1, 0x7a, 0x1d, 0x83, 0x39, 0x0e, 0xf7, 0x98, 0xd7, 0xe1,
|
|
|
|
0x8e, 0x8b, 0xbf, 0x2e, 0xc5, 0xf0, 0x89, 0xc4, 0x32, 0x82, 0x3e, 0x84, 0xd7, 0x3e, 0x16, 0xe4,
|
|
|
|
0x5b, 0xa6, 0xc9, 0x07, 0x8e, 0x57, 0xb3, 0x5e, 0x0c, 0x2c, 0xd7, 0x23, 0x0b, 0x90, 0x67, 0xcd,
|
|
|
|
0x66, 0xdf, 0x72, 0xdd, 0x05, 0x6d, 0x49, 0x2b, 0xcd, 0xd4, 0xfc, 0xe1, 0xe6, 0xf4, 0x57, 0x2f,
|
|
|
|
0x17, 0x33, 0xff, 0xbc, 0x5c, 0xcc, 0x50, 0x13, 0x0a, 0x51, 0xa8, 0xdb, 0xe3, 0x8e, 0x6b, 0x09,
|
|
|
|
0x6c, 0x83, 0xd9, 0xcc, 0x31, 0x2d, 0x1f, 0x8b, 0x43, 0x72, 0x03, 0x66, 0x4c, 0xde, 0xb4, 0xea,
|
|
|
|
0x6d, 0xe6, 0xb6, 0x17, 0x26, 0x96, 0xb4, 0xd2, 0xd5, 0xda, 0xb4, 0x98, 0xd8, 0x66, 0x6e, 0x9b,
|
|
|
|
0x14, 0x60, 0xca, 0xe1, 0x02, 0x34, 0xb9, 0xa4, 0x95, 0xb2, 0x35, 0x35, 0xa0, 0xef, 0xc1, 0xeb,
|
|
|
|
0x92, 0xe4, 0x29, 0x77, 0xbb, 0xdc, 0xbd, 0x84, 0xca, 0x2f, 0x35, 0xd0, 0x47, 0x65, 0x40, 0xb1,
|
|
|
|
0xb7, 0xe1, 0x7f, 0xa6, 0xfc, 0xa1, 0x1e, 0xcd, 0x34, 0xab, 0x66, 0xb7, 0xd4, 0x24, 0xd1, 0x61,
|
|
|
|
0xda, 0x15, 0xa4, 0x42, 0xdf, 0x84, 0xd4, 0x17, 0x8c, 0x45, 0x0a, 0xa6, 0xb2, 0xd6, 0x9d, 0x41,
|
|
|
|
0xb7, 0x61, 0xf5, 0xb1, 0x82, 0x59, 0x9c, 0xfd, 0x50, 0x4e, 0x06, 0x9d, 0xae, 0xaa, 0x66, 0x5c,
|
|
|
|
0xa4, 0x86, 0x75, 0xec, 0x74, 0x00, 0x4d, 0xea, 0x34, 0xfd, 0x00, 0xc9, 0x76, 0x3c, 0xde, 0x67,
|
|
|
|
0xad, 0x64, 0x32, 0x32, 0x07, 0x93, 0xbb, 0xd6, 0x81, 0xac, 0x6d, 0xa6, 0x26, 0x3e, 0x43, 0xf4,
|
|
|
|
0x6b, 0x48, 0x1f, 0x24, 0x43, 0xfa, 0x02, 0x4c, 0xed, 0x31, 0x7b, 0xe0, 0x93, 0xab, 0x01, 0x7d,
|
|
|
|
0x07, 0xe6, 0xb0, 0xdf, 0xcd, 0x0b, 0x15, 0xb9, 0x0c, 0xff, 0x0f, 0xe1, 0x90, 0x82, 0x40, 0x56,
|
|
|
|
0x6c, 0x10, 0x89, 0xba, 0x5a, 0x93, 0xdf, 0xb4, 0x02, 0x44, 0x06, 0x7e, 0xb2, 0xff, 0x9c, 0xb7,
|
|
|
|
0x5c, 0x9f, 0x82, 0x40, 0x56, 0x6e, 0x2b, 0x95, 0x5f, 0x7e, 0x87, 0x92, 0x3f, 0xc3, 0x7e, 0xf8,
|
|
|
|
0x18, 0x4c, 0x6f, 0x40, 0xd6, 0xe6, 0x2d, 0x21, 0x6a, 0xb2, 0x74, 0xa5, 0x72, 0xa3, 0x3c, 0xfa,
|
|
|
|
0xe8, 0x95, 0x9f, 0xf3, 0x56, 0x4d, 0x06, 0xd2, 0xfb, 0x70, 0x0d, 0xf3, 0xd4, 0x2c, 0xd3, 0xea,
|
|
|
|
0xf4, 0xbc, 0x74, 0xf4, 0x9f, 0xc2, 0xfc, 0x59, 0x18, 0x2a, 0x78, 0x04, 0xf9, 0xbe, 0x9a, 0x92,
|
|
|
|
0xd0, 0x2b, 0x95, 0x9b, 0x71, 0x22, 0x86, 0x58, 0x1f, 0x41, 0xdf, 0x87, 0x5b, 0xd1, 0xb4, 0x6e,
|
|
|
|
0xf5, 0xa0, 0x6a, 0x73, 0x73, 0x77, 0xdb, 0xea, 0xb4, 0xda, 0x81, 0xb6, 0x79, 0xc8, 0xb5, 0xe5,
|
|
|
|
0x84, 0xa4, 0x98, 0xac, 0xe1, 0x28, 0xa4, 0xcf, 0x82, 0x37, 0xc7, 0x27, 0x42, 0xb5, 0x4f, 0x60,
|
|
|
|
0x1a, 0xb9, 0xfd, 0x9e, 0xa5, 0x90, 0x1b, 0x40, 0xe8, 0x16, 0xdc, 0x8c, 0xa1, 0x61, 0x6e, 0x3b,
|
|
|
|
0x5d, 0x27, 0x4d, 0xa0, 0xe3, 0x52, 0xfc, 0x37, 0x3a, 0xfd, 0x55, 0x96, 0x89, 0xd3, 0x6f, 0xb2,
|
|
|
|
0xcf, 0x71, 0x95, 0x43, 0x30, 0xd4, 0xf3, 0x0c, 0xf2, 0xde, 0x7e, 0x3d, 0xb4, 0xd5, 0x96, 0x63,
|
|
|
|
0xe5, 0xf4, 0x99, 0xe3, 0x32, 0x53, 0x5c, 0xe2, 0x22, 0x43, 0x35, 0xfb, 0xea, 0xcf, 0xc5, 0x4c,
|
|
|
|
0x2d, 0xe7, 0xc9, 0x7d, 0x4b, 0xd7, 0xc3, 0x0c, 0x55, 0x9b, 0xf3, 0x6e, 0xc2, 0x1a, 0x53, 0x03,
|
|
|
|
0xae, 0x9f, 0x43, 0x0c, 0x8f, 0x6f, 0x43, 0x4c, 0xe0, 0xe1, 0x52, 0x03, 0x5a, 0xc0, 0xd3, 0xf5,
|
|
|
|
0x11, 0xeb, 0xb3, 0xae, 0x5f, 0x38, 0xdd, 0xc1, 0xf3, 0xe3, 0xcf, 0x62, 0x8a, 0xc7, 0x90, 0xeb,
|
|
|
|
0xc9, 0x19, 0xdc, 0xbc, 0xc5, 0xb8, 0xb2, 0x14, 0xce, 0xaf, 0x46, 0x61, 0xe8, 0x36, 0x56, 0xb3,
|
|
|
|
0x23, 0x4c, 0xcb, 0x7c, 0xca, 0x6c, 0x3b, 0xf9, 0x9e, 0x2a, 0xc0, 0x54, 0xc7, 0xe9, 0x0d, 0x3c,
|
|
|
|
0xb4, 0x0f, 0x35, 0xa0, 0xf7, 0xb0, 0xca, 0x70, 0xa6, 0xe1, 0x0d, 0xd2, 0x64, 0x1e, 0xf3, 0x6f,
|
|
|
|
0x10, 0xf1, 0x5d, 0xf9, 0x63, 0x0e, 0xa6, 0x64, 0x3c, 0xf9, 0x41, 0x83, 0x3c, 0x5a, 0x02, 0x59,
|
|
|
|
0x8d, 0x13, 0x3f, 0xc2, 0x20, 0xf5, 0xb5, 0x74, 0xc1, 0x4a, 0x04, 0xdd, 0xf8, 0xe2, 0xb7, 0xbf,
|
|
|
|
0xbf, 0x9f, 0x58, 0x25, 0x2b, 0x46, 0x8c, 0x21, 0xa3, 0x55, 0x18, 0x87, 0x58, 0xe7, 0x11, 0xf9,
|
|
|
|
0x45, 0x83, 0xd9, 0x88, 0x65, 0x91, 0x8d, 0xb1, 0x94, 0xa3, 0x0c, 0x52, 0xaf, 0x5c, 0x04, 0x82,
|
|
|
|
0x5a, 0xdf, 0x95, 0x5a, 0x2b, 0x64, 0x3d, 0x4e, 0xab, 0xef, 0x97, 0xe7, 0x24, 0xff, 0xa8, 0x41,
|
|
|
|
0x1e, 0x2d, 0x2a, 0xa1, 0x99, 0x51, 0x0f, 0x4c, 0x68, 0xe6, 0x19, 0xd7, 0xa3, 0x15, 0x29, 0x70,
|
|
|
|
0x8d, 0xdc, 0x8d, 0x13, 0x88, 0x26, 0xe8, 0x86, 0xa4, 0xfd, 0xac, 0x41, 0x1e, 0xed, 0x2b, 0x41,
|
|
|
|
0x5a, 0xd4, 0x31, 0x13, 0xa4, 0x9d, 0x71, 0x44, 0xfa, 0x40, 0x4a, 0xdb, 0x20, 0x46, 0x9c, 0x34,
|
|
|
|
0x57, 0x01, 0x86, 0xca, 0x8c, 0xc3, 0x5d, 0xeb, 0xe0, 0x88, 0x7c, 0xa3, 0x41, 0x56, 0x18, 0x1f,
|
|
|
|
0x29, 0x25, 0xac, 0x58, 0xe0, 0xa9, 0xfa, 0x4a, 0x8a, 0x48, 0x94, 0x65, 0x48, 0x59, 0x2b, 0x64,
|
|
|
|
0x39, 0x7e, 0x49, 0x9b, 0x91, 0x76, 0x7d, 0xa7, 0x41, 0x4e, 0x59, 0x25, 0xb9, 0x3b, 0x96, 0x26,
|
|
|
|
0xe2, 0xc1, 0xfa, 0x6a, 0xaa, 0x58, 0x14, 0x55, 0x96, 0xa2, 0x4a, 0xe4, 0x4e, 0x9c, 0x28, 0xbc,
|
|
|
|
0x31, 0x8d, 0x43, 0x71, 0xcd, 0xca, 0x25, 0x9c, 0x09, 0x2e, 0x6b, 0x72, 0x2f, 0x81, 0x2a, 0x6a,
|
|
|
|
0xcf, 0x7a, 0x39, 0x6d, 0x78, 0xda, 0x03, 0xeb, 0xed, 0xd7, 0xd1, 0x2e, 0x7c, 0x7d, 0xc7, 0x1a,
|
|
|
|
0x5c, 0x8f, 0xf1, 0x4f, 0xf2, 0x28, 0x1d, 0xfd, 0x48, 0xfb, 0xd6, 0x1f, 0x5f, 0x0e, 0x8c, 0x95,
|
|
|
|
0x6c, 0xca, 0x4a, 0xde, 0x26, 0x95, 0xe4, 0x4a, 0xdc, 0x7a, 0x43, 0x24, 0x30, 0x0e, 0x95, 0x77,
|
|
|
|
0x1c, 0x91, 0x5f, 0x35, 0xb8, 0x36, 0xd2, 0x68, 0xc9, 0xc3, 0x0b, 0x6a, 0x1a, 0xfa, 0xbb, 0xbe,
|
|
|
|
0x79, 0x19, 0x28, 0x16, 0xf3, 0x44, 0x16, 0xf3, 0x80, 0xdc, 0x4f, 0x5d, 0x8c, 0xfc, 0xaf, 0x11,
|
|
|
|
0xde, 0x42, 0x81, 0x39, 0x27, 0x6c, 0xa1, 0xb3, 0xde, 0x9f, 0xb0, 0x85, 0xce, 0x79, 0x7e, 0xf2,
|
|
|
|
0x16, 0x52, 0xfa, 0xc2, 0x5b, 0xfc, 0x27, 0x0d, 0x60, 0x68, 0xd4, 0x24, 0x05, 0x63, 0xf8, 0x0d,
|
|
|
|
0xa0, 0x1b, 0xa9, 0xe3, 0x51, 0xe2, 0xaa, 0x94, 0x78, 0x9b, 0xdc, 0x1a, 0x2f, 0x51, 0x3e, 0x0c,
|
|
|
|
0xc8, 0xd7, 0x1a, 0xe4, 0x94, 0x8d, 0x27, 0xdc, 0x09, 0x91, 0x97, 0x43, 0xc2, 0x9d, 0x10, 0x7d,
|
|
|
|
0x4f, 0xd0, 0x3b, 0x52, 0xd0, 0x12, 0x29, 0xc6, 0x09, 0x52, 0x2f, 0x07, 0xd9, 0xa8, 0xa1, 0xd7,
|
|
|
|
0x27, 0x34, 0xea, 0xdc, 0xf3, 0x22, 0xa1, 0x51, 0xe7, 0x1f, 0x11, 0xc9, 0x8d, 0x72, 0x25, 0xa6,
|
|
|
|
0x6e, 0x32, 0xdb, 0xae, 0x6e, 0xbd, 0x3a, 0x29, 0x6a, 0xc7, 0x27, 0x45, 0xed, 0xaf, 0x93, 0xa2,
|
|
|
|
0xf6, 0xed, 0x69, 0x31, 0x73, 0x7c, 0x5a, 0xcc, 0xfc, 0x7e, 0x5a, 0xcc, 0x7c, 0xb6, 0xdc, 0xea,
|
|
|
|
0x78, 0xed, 0x41, 0xa3, 0x6c, 0xf2, 0x2e, 0xba, 0x68, 0x28, 0xdf, 0xbe, 0xcc, 0xe8, 0x1d, 0xf4,
|
|
|
|
0x2c, 0xb7, 0x91, 0x93, 0x7f, 0xce, 0xdf, 0xfa, 0x37, 0x00, 0x00, 0xff, 0xff, 0x3e, 0xd1, 0xd3,
|
|
|
|
0x05, 0x30, 0x10, 0x00, 0x00,
|
2021-04-18 15:54:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// 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 {
|
|
|
|
// Account queries an Ethereum account.
|
|
|
|
Account(ctx context.Context, in *QueryAccountRequest, opts ...grpc.CallOption) (*QueryAccountResponse, error)
|
|
|
|
// Account queries an Ethereum account's Cosmos Address.
|
|
|
|
CosmosAccount(ctx context.Context, in *QueryCosmosAccountRequest, opts ...grpc.CallOption) (*QueryCosmosAccountResponse, error)
|
|
|
|
// Balance queries the balance of a the EVM denomination for a single
|
|
|
|
// EthAccount.
|
|
|
|
Balance(ctx context.Context, in *QueryBalanceRequest, opts ...grpc.CallOption) (*QueryBalanceResponse, error)
|
|
|
|
// Storage queries the balance of all coins for a single account.
|
|
|
|
Storage(ctx context.Context, in *QueryStorageRequest, opts ...grpc.CallOption) (*QueryStorageResponse, error)
|
|
|
|
// Code queries the balance of all coins for a single account.
|
|
|
|
Code(ctx context.Context, in *QueryCodeRequest, opts ...grpc.CallOption) (*QueryCodeResponse, error)
|
|
|
|
// TxLogs queries ethereum logs from a transaction.
|
|
|
|
TxLogs(ctx context.Context, in *QueryTxLogsRequest, opts ...grpc.CallOption) (*QueryTxLogsResponse, error)
|
|
|
|
// TxReceipt queries a receipt by a transaction hash.
|
|
|
|
TxReceipt(ctx context.Context, in *QueryTxReceiptRequest, opts ...grpc.CallOption) (*QueryTxReceiptResponse, error)
|
|
|
|
// TxReceiptsByBlockHeight queries tx receipts by a block height.
|
|
|
|
TxReceiptsByBlockHeight(ctx context.Context, in *QueryTxReceiptsByBlockHeightRequest, opts ...grpc.CallOption) (*QueryTxReceiptsByBlockHeightResponse, error)
|
|
|
|
// TxReceiptsByBlockHash queries tx receipts by a block hash.
|
|
|
|
TxReceiptsByBlockHash(ctx context.Context, in *QueryTxReceiptsByBlockHashRequest, opts ...grpc.CallOption) (*QueryTxReceiptsByBlockHashResponse, error)
|
|
|
|
// BlockLogs queries all the ethereum logs for a given block hash.
|
|
|
|
BlockLogs(ctx context.Context, in *QueryBlockLogsRequest, opts ...grpc.CallOption) (*QueryBlockLogsResponse, error)
|
|
|
|
// BlockBloom queries the block bloom filter bytes at a given height.
|
|
|
|
BlockBloom(ctx context.Context, in *QueryBlockBloomRequest, opts ...grpc.CallOption) (*QueryBlockBloomResponse, error)
|
|
|
|
// Params queries the parameters of x/evm module.
|
|
|
|
Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
|
|
|
|
// StaticCall queries the static call value of x/evm module.
|
|
|
|
StaticCall(ctx context.Context, in *QueryStaticCallRequest, opts ...grpc.CallOption) (*QueryStaticCallResponse, error)
|
|
|
|
}
|
|
|
|
|
|
|
|
type queryClient struct {
|
|
|
|
cc grpc1.ClientConn
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewQueryClient(cc grpc1.ClientConn) QueryClient {
|
|
|
|
return &queryClient{cc}
|
2021-04-17 10:00:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (c *queryClient) Account(ctx context.Context, in *QueryAccountRequest, opts ...grpc.CallOption) (*QueryAccountResponse, error) {
|
|
|
|
out := new(QueryAccountResponse)
|
2021-05-10 16:34:00 +00:00
|
|
|
err := c.cc.Invoke(ctx, "/ethermint.evm.v1alpha1.Query/Account", in, out, opts...)
|
2021-04-18 15:54:18 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *queryClient) CosmosAccount(ctx context.Context, in *QueryCosmosAccountRequest, opts ...grpc.CallOption) (*QueryCosmosAccountResponse, error) {
|
|
|
|
out := new(QueryCosmosAccountResponse)
|
2021-05-10 16:34:00 +00:00
|
|
|
err := c.cc.Invoke(ctx, "/ethermint.evm.v1alpha1.Query/CosmosAccount", in, out, opts...)
|
2021-04-17 10:00:07 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *queryClient) Balance(ctx context.Context, in *QueryBalanceRequest, opts ...grpc.CallOption) (*QueryBalanceResponse, error) {
|
|
|
|
out := new(QueryBalanceResponse)
|
2021-05-10 16:34:00 +00:00
|
|
|
err := c.cc.Invoke(ctx, "/ethermint.evm.v1alpha1.Query/Balance", in, out, opts...)
|
2021-04-17 10:00:07 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *queryClient) Storage(ctx context.Context, in *QueryStorageRequest, opts ...grpc.CallOption) (*QueryStorageResponse, error) {
|
|
|
|
out := new(QueryStorageResponse)
|
2021-05-10 16:34:00 +00:00
|
|
|
err := c.cc.Invoke(ctx, "/ethermint.evm.v1alpha1.Query/Storage", in, out, opts...)
|
2021-04-17 10:00:07 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *queryClient) Code(ctx context.Context, in *QueryCodeRequest, opts ...grpc.CallOption) (*QueryCodeResponse, error) {
|
|
|
|
out := new(QueryCodeResponse)
|
2021-05-10 16:34:00 +00:00
|
|
|
err := c.cc.Invoke(ctx, "/ethermint.evm.v1alpha1.Query/Code", in, out, opts...)
|
2021-04-17 10:00:07 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *queryClient) TxLogs(ctx context.Context, in *QueryTxLogsRequest, opts ...grpc.CallOption) (*QueryTxLogsResponse, error) {
|
|
|
|
out := new(QueryTxLogsResponse)
|
2021-05-10 16:34:00 +00:00
|
|
|
err := c.cc.Invoke(ctx, "/ethermint.evm.v1alpha1.Query/TxLogs", in, out, opts...)
|
2021-04-18 15:54:18 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *queryClient) TxReceipt(ctx context.Context, in *QueryTxReceiptRequest, opts ...grpc.CallOption) (*QueryTxReceiptResponse, error) {
|
|
|
|
out := new(QueryTxReceiptResponse)
|
2021-05-10 16:34:00 +00:00
|
|
|
err := c.cc.Invoke(ctx, "/ethermint.evm.v1alpha1.Query/TxReceipt", in, out, opts...)
|
2021-04-18 15:54:18 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *queryClient) TxReceiptsByBlockHeight(ctx context.Context, in *QueryTxReceiptsByBlockHeightRequest, opts ...grpc.CallOption) (*QueryTxReceiptsByBlockHeightResponse, error) {
|
|
|
|
out := new(QueryTxReceiptsByBlockHeightResponse)
|
2021-05-10 16:34:00 +00:00
|
|
|
err := c.cc.Invoke(ctx, "/ethermint.evm.v1alpha1.Query/TxReceiptsByBlockHeight", in, out, opts...)
|
2021-04-18 15:54:18 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *queryClient) TxReceiptsByBlockHash(ctx context.Context, in *QueryTxReceiptsByBlockHashRequest, opts ...grpc.CallOption) (*QueryTxReceiptsByBlockHashResponse, error) {
|
|
|
|
out := new(QueryTxReceiptsByBlockHashResponse)
|
2021-05-10 16:34:00 +00:00
|
|
|
err := c.cc.Invoke(ctx, "/ethermint.evm.v1alpha1.Query/TxReceiptsByBlockHash", in, out, opts...)
|
2021-04-17 10:00:07 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *queryClient) BlockLogs(ctx context.Context, in *QueryBlockLogsRequest, opts ...grpc.CallOption) (*QueryBlockLogsResponse, error) {
|
|
|
|
out := new(QueryBlockLogsResponse)
|
2021-05-10 16:34:00 +00:00
|
|
|
err := c.cc.Invoke(ctx, "/ethermint.evm.v1alpha1.Query/BlockLogs", in, out, opts...)
|
2021-04-17 10:00:07 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *queryClient) BlockBloom(ctx context.Context, in *QueryBlockBloomRequest, opts ...grpc.CallOption) (*QueryBlockBloomResponse, error) {
|
|
|
|
out := new(QueryBlockBloomResponse)
|
2021-05-10 16:34:00 +00:00
|
|
|
err := c.cc.Invoke(ctx, "/ethermint.evm.v1alpha1.Query/BlockBloom", in, out, opts...)
|
2021-04-17 10:00:07 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) {
|
|
|
|
out := new(QueryParamsResponse)
|
2021-05-10 16:34:00 +00:00
|
|
|
err := c.cc.Invoke(ctx, "/ethermint.evm.v1alpha1.Query/Params", in, out, opts...)
|
2021-04-18 15:54:18 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *queryClient) StaticCall(ctx context.Context, in *QueryStaticCallRequest, opts ...grpc.CallOption) (*QueryStaticCallResponse, error) {
|
|
|
|
out := new(QueryStaticCallResponse)
|
2021-05-10 16:34:00 +00:00
|
|
|
err := c.cc.Invoke(ctx, "/ethermint.evm.v1alpha1.Query/StaticCall", in, out, opts...)
|
2021-04-17 10:00:07 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// QueryServer is the server API for Query service.
|
|
|
|
type QueryServer interface {
|
|
|
|
// Account queries an Ethereum account.
|
|
|
|
Account(context.Context, *QueryAccountRequest) (*QueryAccountResponse, error)
|
2021-04-18 15:54:18 +00:00
|
|
|
// Account queries an Ethereum account's Cosmos Address.
|
|
|
|
CosmosAccount(context.Context, *QueryCosmosAccountRequest) (*QueryCosmosAccountResponse, error)
|
2021-04-17 10:00:07 +00:00
|
|
|
// Balance queries the balance of a the EVM denomination for a single
|
|
|
|
// EthAccount.
|
|
|
|
Balance(context.Context, *QueryBalanceRequest) (*QueryBalanceResponse, error)
|
|
|
|
// Storage queries the balance of all coins for a single account.
|
|
|
|
Storage(context.Context, *QueryStorageRequest) (*QueryStorageResponse, error)
|
|
|
|
// Code queries the balance of all coins for a single account.
|
|
|
|
Code(context.Context, *QueryCodeRequest) (*QueryCodeResponse, error)
|
|
|
|
// TxLogs queries ethereum logs from a transaction.
|
|
|
|
TxLogs(context.Context, *QueryTxLogsRequest) (*QueryTxLogsResponse, error)
|
2021-04-18 15:54:18 +00:00
|
|
|
// TxReceipt queries a receipt by a transaction hash.
|
|
|
|
TxReceipt(context.Context, *QueryTxReceiptRequest) (*QueryTxReceiptResponse, error)
|
|
|
|
// TxReceiptsByBlockHeight queries tx receipts by a block height.
|
|
|
|
TxReceiptsByBlockHeight(context.Context, *QueryTxReceiptsByBlockHeightRequest) (*QueryTxReceiptsByBlockHeightResponse, error)
|
|
|
|
// TxReceiptsByBlockHash queries tx receipts by a block hash.
|
|
|
|
TxReceiptsByBlockHash(context.Context, *QueryTxReceiptsByBlockHashRequest) (*QueryTxReceiptsByBlockHashResponse, error)
|
2021-04-17 10:00:07 +00:00
|
|
|
// BlockLogs queries all the ethereum logs for a given block hash.
|
|
|
|
BlockLogs(context.Context, *QueryBlockLogsRequest) (*QueryBlockLogsResponse, error)
|
|
|
|
// BlockBloom queries the block bloom filter bytes at a given height.
|
|
|
|
BlockBloom(context.Context, *QueryBlockBloomRequest) (*QueryBlockBloomResponse, error)
|
|
|
|
// Params queries the parameters of x/evm module.
|
|
|
|
Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
|
2021-04-18 15:54:18 +00:00
|
|
|
// StaticCall queries the static call value of x/evm module.
|
|
|
|
StaticCall(context.Context, *QueryStaticCallRequest) (*QueryStaticCallResponse, error)
|
2021-04-17 10:00:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnimplementedQueryServer can be embedded to have forward compatible implementations.
|
|
|
|
type UnimplementedQueryServer struct {
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*UnimplementedQueryServer) Account(ctx context.Context, req *QueryAccountRequest) (*QueryAccountResponse, error) {
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method Account not implemented")
|
|
|
|
}
|
2021-04-18 15:54:18 +00:00
|
|
|
func (*UnimplementedQueryServer) CosmosAccount(ctx context.Context, req *QueryCosmosAccountRequest) (*QueryCosmosAccountResponse, error) {
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method CosmosAccount not implemented")
|
|
|
|
}
|
2021-04-17 10:00:07 +00:00
|
|
|
func (*UnimplementedQueryServer) Balance(ctx context.Context, req *QueryBalanceRequest) (*QueryBalanceResponse, error) {
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method Balance not implemented")
|
|
|
|
}
|
|
|
|
func (*UnimplementedQueryServer) Storage(ctx context.Context, req *QueryStorageRequest) (*QueryStorageResponse, error) {
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method Storage not implemented")
|
|
|
|
}
|
|
|
|
func (*UnimplementedQueryServer) Code(ctx context.Context, req *QueryCodeRequest) (*QueryCodeResponse, error) {
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method Code not implemented")
|
|
|
|
}
|
|
|
|
func (*UnimplementedQueryServer) TxLogs(ctx context.Context, req *QueryTxLogsRequest) (*QueryTxLogsResponse, error) {
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method TxLogs not implemented")
|
|
|
|
}
|
2021-04-18 15:54:18 +00:00
|
|
|
func (*UnimplementedQueryServer) TxReceipt(ctx context.Context, req *QueryTxReceiptRequest) (*QueryTxReceiptResponse, error) {
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method TxReceipt not implemented")
|
|
|
|
}
|
|
|
|
func (*UnimplementedQueryServer) TxReceiptsByBlockHeight(ctx context.Context, req *QueryTxReceiptsByBlockHeightRequest) (*QueryTxReceiptsByBlockHeightResponse, error) {
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method TxReceiptsByBlockHeight not implemented")
|
|
|
|
}
|
|
|
|
func (*UnimplementedQueryServer) TxReceiptsByBlockHash(ctx context.Context, req *QueryTxReceiptsByBlockHashRequest) (*QueryTxReceiptsByBlockHashResponse, error) {
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method TxReceiptsByBlockHash not implemented")
|
|
|
|
}
|
2021-04-17 10:00:07 +00:00
|
|
|
func (*UnimplementedQueryServer) BlockLogs(ctx context.Context, req *QueryBlockLogsRequest) (*QueryBlockLogsResponse, error) {
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method BlockLogs not implemented")
|
|
|
|
}
|
|
|
|
func (*UnimplementedQueryServer) BlockBloom(ctx context.Context, req *QueryBlockBloomRequest) (*QueryBlockBloomResponse, error) {
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method BlockBloom not implemented")
|
|
|
|
}
|
|
|
|
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error) {
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method Params not implemented")
|
|
|
|
}
|
2021-04-18 15:54:18 +00:00
|
|
|
func (*UnimplementedQueryServer) StaticCall(ctx context.Context, req *QueryStaticCallRequest) (*QueryStaticCallResponse, error) {
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method StaticCall not implemented")
|
|
|
|
}
|
2021-04-17 10:00:07 +00:00
|
|
|
|
|
|
|
func RegisterQueryServer(s grpc1.Server, srv QueryServer) {
|
|
|
|
s.RegisterService(&_Query_serviceDesc, srv)
|
|
|
|
}
|
|
|
|
|
|
|
|
func _Query_Account_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(QueryAccountRequest)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(QueryServer).Account(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
2021-05-10 16:34:00 +00:00
|
|
|
FullMethod: "/ethermint.evm.v1alpha1.Query/Account",
|
2021-04-17 10:00:07 +00:00
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(QueryServer).Account(ctx, req.(*QueryAccountRequest))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
2021-04-18 15:54:18 +00:00
|
|
|
func _Query_CosmosAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(QueryCosmosAccountRequest)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(QueryServer).CosmosAccount(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
2021-05-10 16:34:00 +00:00
|
|
|
FullMethod: "/ethermint.evm.v1alpha1.Query/CosmosAccount",
|
2021-04-18 15:54:18 +00:00
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(QueryServer).CosmosAccount(ctx, req.(*QueryCosmosAccountRequest))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
2021-04-17 10:00:07 +00:00
|
|
|
func _Query_Balance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(QueryBalanceRequest)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(QueryServer).Balance(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
2021-05-10 16:34:00 +00:00
|
|
|
FullMethod: "/ethermint.evm.v1alpha1.Query/Balance",
|
2021-04-17 10:00:07 +00:00
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(QueryServer).Balance(ctx, req.(*QueryBalanceRequest))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
|
|
|
func _Query_Storage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(QueryStorageRequest)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(QueryServer).Storage(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
2021-05-10 16:34:00 +00:00
|
|
|
FullMethod: "/ethermint.evm.v1alpha1.Query/Storage",
|
2021-04-17 10:00:07 +00:00
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(QueryServer).Storage(ctx, req.(*QueryStorageRequest))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
|
|
|
func _Query_Code_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(QueryCodeRequest)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(QueryServer).Code(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
2021-05-10 16:34:00 +00:00
|
|
|
FullMethod: "/ethermint.evm.v1alpha1.Query/Code",
|
2021-04-17 10:00:07 +00:00
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(QueryServer).Code(ctx, req.(*QueryCodeRequest))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
|
|
|
func _Query_TxLogs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(QueryTxLogsRequest)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(QueryServer).TxLogs(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
2021-05-10 16:34:00 +00:00
|
|
|
FullMethod: "/ethermint.evm.v1alpha1.Query/TxLogs",
|
2021-04-17 10:00:07 +00:00
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(QueryServer).TxLogs(ctx, req.(*QueryTxLogsRequest))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
2021-04-18 15:54:18 +00:00
|
|
|
func _Query_TxReceipt_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(QueryTxReceiptRequest)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(QueryServer).TxReceipt(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
2021-05-10 16:34:00 +00:00
|
|
|
FullMethod: "/ethermint.evm.v1alpha1.Query/TxReceipt",
|
2021-04-18 15:54:18 +00:00
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(QueryServer).TxReceipt(ctx, req.(*QueryTxReceiptRequest))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
|
|
|
func _Query_TxReceiptsByBlockHeight_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(QueryTxReceiptsByBlockHeightRequest)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(QueryServer).TxReceiptsByBlockHeight(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
2021-05-10 16:34:00 +00:00
|
|
|
FullMethod: "/ethermint.evm.v1alpha1.Query/TxReceiptsByBlockHeight",
|
2021-04-18 15:54:18 +00:00
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(QueryServer).TxReceiptsByBlockHeight(ctx, req.(*QueryTxReceiptsByBlockHeightRequest))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
|
|
|
func _Query_TxReceiptsByBlockHash_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(QueryTxReceiptsByBlockHashRequest)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(QueryServer).TxReceiptsByBlockHash(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
2021-05-10 16:34:00 +00:00
|
|
|
FullMethod: "/ethermint.evm.v1alpha1.Query/TxReceiptsByBlockHash",
|
2021-04-18 15:54:18 +00:00
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(QueryServer).TxReceiptsByBlockHash(ctx, req.(*QueryTxReceiptsByBlockHashRequest))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
2021-04-17 10:00:07 +00:00
|
|
|
func _Query_BlockLogs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(QueryBlockLogsRequest)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(QueryServer).BlockLogs(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
2021-05-10 16:34:00 +00:00
|
|
|
FullMethod: "/ethermint.evm.v1alpha1.Query/BlockLogs",
|
2021-04-17 10:00:07 +00:00
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(QueryServer).BlockLogs(ctx, req.(*QueryBlockLogsRequest))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
|
|
|
func _Query_BlockBloom_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(QueryBlockBloomRequest)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(QueryServer).BlockBloom(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
2021-05-10 16:34:00 +00:00
|
|
|
FullMethod: "/ethermint.evm.v1alpha1.Query/BlockBloom",
|
2021-04-17 10:00:07 +00:00
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(QueryServer).BlockBloom(ctx, req.(*QueryBlockBloomRequest))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
|
|
|
func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(QueryParamsRequest)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(QueryServer).Params(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
2021-05-10 16:34:00 +00:00
|
|
|
FullMethod: "/ethermint.evm.v1alpha1.Query/Params",
|
2021-04-17 10:00:07 +00:00
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
2021-04-18 15:54:18 +00:00
|
|
|
func _Query_StaticCall_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(QueryStaticCallRequest)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(QueryServer).StaticCall(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
2021-05-10 16:34:00 +00:00
|
|
|
FullMethod: "/ethermint.evm.v1alpha1.Query/StaticCall",
|
2021-04-18 15:54:18 +00:00
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(QueryServer).StaticCall(ctx, req.(*QueryStaticCallRequest))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
2021-04-17 10:00:07 +00:00
|
|
|
var _Query_serviceDesc = grpc.ServiceDesc{
|
2021-05-10 16:34:00 +00:00
|
|
|
ServiceName: "ethermint.evm.v1alpha1.Query",
|
2021-04-17 10:00:07 +00:00
|
|
|
HandlerType: (*QueryServer)(nil),
|
|
|
|
Methods: []grpc.MethodDesc{
|
|
|
|
{
|
|
|
|
MethodName: "Account",
|
|
|
|
Handler: _Query_Account_Handler,
|
|
|
|
},
|
2021-04-18 15:54:18 +00:00
|
|
|
{
|
|
|
|
MethodName: "CosmosAccount",
|
|
|
|
Handler: _Query_CosmosAccount_Handler,
|
|
|
|
},
|
2021-04-17 10:00:07 +00:00
|
|
|
{
|
|
|
|
MethodName: "Balance",
|
|
|
|
Handler: _Query_Balance_Handler,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
MethodName: "Storage",
|
|
|
|
Handler: _Query_Storage_Handler,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
MethodName: "Code",
|
|
|
|
Handler: _Query_Code_Handler,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
MethodName: "TxLogs",
|
|
|
|
Handler: _Query_TxLogs_Handler,
|
|
|
|
},
|
2021-04-18 15:54:18 +00:00
|
|
|
{
|
|
|
|
MethodName: "TxReceipt",
|
|
|
|
Handler: _Query_TxReceipt_Handler,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
MethodName: "TxReceiptsByBlockHeight",
|
|
|
|
Handler: _Query_TxReceiptsByBlockHeight_Handler,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
MethodName: "TxReceiptsByBlockHash",
|
|
|
|
Handler: _Query_TxReceiptsByBlockHash_Handler,
|
|
|
|
},
|
2021-04-17 10:00:07 +00:00
|
|
|
{
|
|
|
|
MethodName: "BlockLogs",
|
|
|
|
Handler: _Query_BlockLogs_Handler,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
MethodName: "BlockBloom",
|
|
|
|
Handler: _Query_BlockBloom_Handler,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
MethodName: "Params",
|
|
|
|
Handler: _Query_Params_Handler,
|
|
|
|
},
|
2021-04-18 15:54:18 +00:00
|
|
|
{
|
|
|
|
MethodName: "StaticCall",
|
|
|
|
Handler: _Query_StaticCall_Handler,
|
|
|
|
},
|
2021-04-17 10:00:07 +00:00
|
|
|
},
|
|
|
|
Streams: []grpc.StreamDesc{},
|
2021-05-10 16:34:00 +00:00
|
|
|
Metadata: "ethermint/evm/v1alpha1/query.proto",
|
2021-04-17 10:00:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryAccountRequest) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryAccountRequest) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryAccountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if len(m.Address) > 0 {
|
|
|
|
i -= len(m.Address)
|
|
|
|
copy(dAtA[i:], m.Address)
|
|
|
|
i = encodeVarintQuery(dAtA, i, uint64(len(m.Address)))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
}
|
|
|
|
return len(dAtA) - i, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryAccountResponse) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryAccountResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryAccountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if m.Nonce != 0 {
|
|
|
|
i = encodeVarintQuery(dAtA, i, uint64(m.Nonce))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x18
|
|
|
|
}
|
|
|
|
if len(m.CodeHash) > 0 {
|
|
|
|
i -= len(m.CodeHash)
|
|
|
|
copy(dAtA[i:], m.CodeHash)
|
|
|
|
i = encodeVarintQuery(dAtA, i, uint64(len(m.CodeHash)))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x12
|
|
|
|
}
|
|
|
|
if len(m.Balance) > 0 {
|
|
|
|
i -= len(m.Balance)
|
|
|
|
copy(dAtA[i:], m.Balance)
|
|
|
|
i = encodeVarintQuery(dAtA, i, uint64(len(m.Balance)))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
}
|
|
|
|
return len(dAtA) - i, nil
|
|
|
|
}
|
|
|
|
|
2021-04-18 15:54:18 +00:00
|
|
|
func (m *QueryCosmosAccountRequest) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryCosmosAccountRequest) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryCosmosAccountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if len(m.Address) > 0 {
|
|
|
|
i -= len(m.Address)
|
|
|
|
copy(dAtA[i:], m.Address)
|
|
|
|
i = encodeVarintQuery(dAtA, i, uint64(len(m.Address)))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
}
|
|
|
|
return len(dAtA) - i, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryCosmosAccountResponse) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryCosmosAccountResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryCosmosAccountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if m.AccountNumber != 0 {
|
|
|
|
i = encodeVarintQuery(dAtA, i, uint64(m.AccountNumber))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x18
|
|
|
|
}
|
|
|
|
if m.Sequence != 0 {
|
|
|
|
i = encodeVarintQuery(dAtA, i, uint64(m.Sequence))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x10
|
|
|
|
}
|
|
|
|
if len(m.CosmosAddress) > 0 {
|
|
|
|
i -= len(m.CosmosAddress)
|
|
|
|
copy(dAtA[i:], m.CosmosAddress)
|
|
|
|
i = encodeVarintQuery(dAtA, i, uint64(len(m.CosmosAddress)))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
}
|
|
|
|
return len(dAtA) - i, nil
|
|
|
|
}
|
|
|
|
|
2021-04-17 10:00:07 +00:00
|
|
|
func (m *QueryBalanceRequest) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryBalanceRequest) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryBalanceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if len(m.Address) > 0 {
|
|
|
|
i -= len(m.Address)
|
|
|
|
copy(dAtA[i:], m.Address)
|
|
|
|
i = encodeVarintQuery(dAtA, i, uint64(len(m.Address)))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
}
|
|
|
|
return len(dAtA) - i, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryBalanceResponse) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryBalanceResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryBalanceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if len(m.Balance) > 0 {
|
|
|
|
i -= len(m.Balance)
|
|
|
|
copy(dAtA[i:], m.Balance)
|
|
|
|
i = encodeVarintQuery(dAtA, i, uint64(len(m.Balance)))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
}
|
|
|
|
return len(dAtA) - i, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryStorageRequest) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryStorageRequest) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryStorageRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if len(m.Key) > 0 {
|
|
|
|
i -= len(m.Key)
|
|
|
|
copy(dAtA[i:], m.Key)
|
|
|
|
i = encodeVarintQuery(dAtA, i, uint64(len(m.Key)))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x12
|
|
|
|
}
|
|
|
|
if len(m.Address) > 0 {
|
|
|
|
i -= len(m.Address)
|
|
|
|
copy(dAtA[i:], m.Address)
|
|
|
|
i = encodeVarintQuery(dAtA, i, uint64(len(m.Address)))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
}
|
|
|
|
return len(dAtA) - i, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryStorageResponse) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryStorageResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryStorageResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if len(m.Value) > 0 {
|
|
|
|
i -= len(m.Value)
|
|
|
|
copy(dAtA[i:], m.Value)
|
|
|
|
i = encodeVarintQuery(dAtA, i, uint64(len(m.Value)))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
}
|
|
|
|
return len(dAtA) - i, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryCodeRequest) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryCodeRequest) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryCodeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if len(m.Address) > 0 {
|
|
|
|
i -= len(m.Address)
|
|
|
|
copy(dAtA[i:], m.Address)
|
|
|
|
i = encodeVarintQuery(dAtA, i, uint64(len(m.Address)))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
}
|
|
|
|
return len(dAtA) - i, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryCodeResponse) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryCodeResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryCodeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if len(m.Code) > 0 {
|
|
|
|
i -= len(m.Code)
|
|
|
|
copy(dAtA[i:], m.Code)
|
|
|
|
i = encodeVarintQuery(dAtA, i, uint64(len(m.Code)))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
}
|
|
|
|
return len(dAtA) - i, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryTxLogsRequest) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryTxLogsRequest) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryTxLogsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if len(m.Hash) > 0 {
|
|
|
|
i -= len(m.Hash)
|
|
|
|
copy(dAtA[i:], m.Hash)
|
|
|
|
i = encodeVarintQuery(dAtA, i, uint64(len(m.Hash)))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
}
|
|
|
|
return len(dAtA) - i, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryTxLogsResponse) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryTxLogsResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryTxLogsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if len(m.Logs) > 0 {
|
|
|
|
for iNdEx := len(m.Logs) - 1; iNdEx >= 0; iNdEx-- {
|
|
|
|
{
|
|
|
|
size, err := m.Logs[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
|
|
|
|
}
|
|
|
|
|
2021-04-18 15:54:18 +00:00
|
|
|
func (m *QueryTxReceiptRequest) Marshal() (dAtA []byte, err error) {
|
2021-04-17 10:00:07 +00:00
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
2021-04-18 15:54:18 +00:00
|
|
|
func (m *QueryTxReceiptRequest) MarshalTo(dAtA []byte) (int, error) {
|
2021-04-17 10:00:07 +00:00
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
2021-04-18 15:54:18 +00:00
|
|
|
func (m *QueryTxReceiptRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
2021-04-17 10:00:07 +00:00
|
|
|
i := len(dAtA)
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if len(m.Hash) > 0 {
|
|
|
|
i -= len(m.Hash)
|
|
|
|
copy(dAtA[i:], m.Hash)
|
|
|
|
i = encodeVarintQuery(dAtA, i, uint64(len(m.Hash)))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
}
|
|
|
|
return len(dAtA) - i, nil
|
|
|
|
}
|
|
|
|
|
2021-04-18 15:54:18 +00:00
|
|
|
func (m *QueryTxReceiptResponse) Marshal() (dAtA []byte, err error) {
|
2021-04-17 10:00:07 +00:00
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
2021-04-18 15:54:18 +00:00
|
|
|
func (m *QueryTxReceiptResponse) MarshalTo(dAtA []byte) (int, error) {
|
2021-04-17 10:00:07 +00:00
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
2021-04-18 15:54:18 +00:00
|
|
|
func (m *QueryTxReceiptResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
2021-04-17 10:00:07 +00:00
|
|
|
i := len(dAtA)
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
2021-04-18 15:54:18 +00:00
|
|
|
if m.Receipt != nil {
|
|
|
|
{
|
|
|
|
size, err := m.Receipt.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 *QueryTxReceiptsByBlockHeightRequest) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryTxReceiptsByBlockHeightRequest) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryTxReceiptsByBlockHeightRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if m.Height != 0 {
|
|
|
|
i = encodeVarintQuery(dAtA, i, uint64(m.Height))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x8
|
|
|
|
}
|
|
|
|
return len(dAtA) - i, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryTxReceiptsByBlockHeightResponse) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryTxReceiptsByBlockHeightResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryTxReceiptsByBlockHeightResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if len(m.Receipts) > 0 {
|
|
|
|
for iNdEx := len(m.Receipts) - 1; iNdEx >= 0; iNdEx-- {
|
|
|
|
{
|
|
|
|
size, err := m.Receipts[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 *QueryTxReceiptsByBlockHashRequest) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryTxReceiptsByBlockHashRequest) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryTxReceiptsByBlockHashRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if len(m.Hash) > 0 {
|
|
|
|
i -= len(m.Hash)
|
|
|
|
copy(dAtA[i:], m.Hash)
|
|
|
|
i = encodeVarintQuery(dAtA, i, uint64(len(m.Hash)))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
}
|
|
|
|
return len(dAtA) - i, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryTxReceiptsByBlockHashResponse) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryTxReceiptsByBlockHashResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryTxReceiptsByBlockHashResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if len(m.Receipts) > 0 {
|
|
|
|
for iNdEx := len(m.Receipts) - 1; iNdEx >= 0; iNdEx-- {
|
|
|
|
{
|
|
|
|
size, err := m.Receipts[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 *QueryBlockLogsRequest) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryBlockLogsRequest) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryBlockLogsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if len(m.Hash) > 0 {
|
|
|
|
i -= len(m.Hash)
|
|
|
|
copy(dAtA[i:], m.Hash)
|
|
|
|
i = encodeVarintQuery(dAtA, i, uint64(len(m.Hash)))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
}
|
|
|
|
return len(dAtA) - i, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryBlockLogsResponse) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryBlockLogsResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryBlockLogsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if len(m.TxLogs) > 0 {
|
|
|
|
for iNdEx := len(m.TxLogs) - 1; iNdEx >= 0; iNdEx-- {
|
|
|
|
{
|
2021-04-17 10:00:07 +00:00
|
|
|
size, err := m.TxLogs[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 *QueryBlockBloomRequest) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryBlockBloomRequest) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryBlockBloomRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
2021-04-18 15:54:18 +00:00
|
|
|
if m.Height != 0 {
|
|
|
|
i = encodeVarintQuery(dAtA, i, uint64(m.Height))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x8
|
|
|
|
}
|
2021-04-17 10:00:07 +00:00
|
|
|
return len(dAtA) - i, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryBlockBloomResponse) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryBlockBloomResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryBlockBloomResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if len(m.Bloom) > 0 {
|
|
|
|
i -= len(m.Bloom)
|
|
|
|
copy(dAtA[i:], m.Bloom)
|
|
|
|
i = encodeVarintQuery(dAtA, i, uint64(len(m.Bloom)))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
}
|
|
|
|
return len(dAtA) - i, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
return len(dAtA) - i, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
{
|
|
|
|
size, err := m.Params.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
|
|
|
|
}
|
|
|
|
|
2021-04-18 15:54:18 +00:00
|
|
|
func (m *QueryStaticCallRequest) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryStaticCallRequest) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryStaticCallRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if len(m.Input) > 0 {
|
|
|
|
i -= len(m.Input)
|
|
|
|
copy(dAtA[i:], m.Input)
|
|
|
|
i = encodeVarintQuery(dAtA, i, uint64(len(m.Input)))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x12
|
|
|
|
}
|
|
|
|
if len(m.Address) > 0 {
|
|
|
|
i -= len(m.Address)
|
|
|
|
copy(dAtA[i:], m.Address)
|
|
|
|
i = encodeVarintQuery(dAtA, i, uint64(len(m.Address)))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
}
|
|
|
|
return len(dAtA) - i, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryStaticCallResponse) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryStaticCallResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryStaticCallResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if len(m.Data) > 0 {
|
|
|
|
i -= len(m.Data)
|
|
|
|
copy(dAtA[i:], m.Data)
|
|
|
|
i = encodeVarintQuery(dAtA, i, uint64(len(m.Data)))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
}
|
|
|
|
return len(dAtA) - i, nil
|
|
|
|
}
|
|
|
|
|
2021-04-17 10:00:07 +00:00
|
|
|
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 *QueryAccountRequest) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = len(m.Address)
|
|
|
|
if l > 0 {
|
|
|
|
n += 1 + l + sovQuery(uint64(l))
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryAccountResponse) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = len(m.Balance)
|
|
|
|
if l > 0 {
|
|
|
|
n += 1 + l + sovQuery(uint64(l))
|
|
|
|
}
|
|
|
|
l = len(m.CodeHash)
|
|
|
|
if l > 0 {
|
|
|
|
n += 1 + l + sovQuery(uint64(l))
|
|
|
|
}
|
|
|
|
if m.Nonce != 0 {
|
|
|
|
n += 1 + sovQuery(uint64(m.Nonce))
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
2021-04-18 15:54:18 +00:00
|
|
|
func (m *QueryCosmosAccountRequest) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = len(m.Address)
|
|
|
|
if l > 0 {
|
|
|
|
n += 1 + l + sovQuery(uint64(l))
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryCosmosAccountResponse) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = len(m.CosmosAddress)
|
|
|
|
if l > 0 {
|
|
|
|
n += 1 + l + sovQuery(uint64(l))
|
|
|
|
}
|
|
|
|
if m.Sequence != 0 {
|
|
|
|
n += 1 + sovQuery(uint64(m.Sequence))
|
|
|
|
}
|
|
|
|
if m.AccountNumber != 0 {
|
|
|
|
n += 1 + sovQuery(uint64(m.AccountNumber))
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
2021-04-17 10:00:07 +00:00
|
|
|
func (m *QueryBalanceRequest) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = len(m.Address)
|
|
|
|
if l > 0 {
|
|
|
|
n += 1 + l + sovQuery(uint64(l))
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryBalanceResponse) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = len(m.Balance)
|
|
|
|
if l > 0 {
|
|
|
|
n += 1 + l + sovQuery(uint64(l))
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryStorageRequest) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = len(m.Address)
|
|
|
|
if l > 0 {
|
|
|
|
n += 1 + l + sovQuery(uint64(l))
|
|
|
|
}
|
|
|
|
l = len(m.Key)
|
|
|
|
if l > 0 {
|
|
|
|
n += 1 + l + sovQuery(uint64(l))
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryStorageResponse) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = len(m.Value)
|
|
|
|
if l > 0 {
|
|
|
|
n += 1 + l + sovQuery(uint64(l))
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryCodeRequest) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = len(m.Address)
|
|
|
|
if l > 0 {
|
|
|
|
n += 1 + l + sovQuery(uint64(l))
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryCodeResponse) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = len(m.Code)
|
|
|
|
if l > 0 {
|
|
|
|
n += 1 + l + sovQuery(uint64(l))
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryTxLogsRequest) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = len(m.Hash)
|
|
|
|
if l > 0 {
|
|
|
|
n += 1 + l + sovQuery(uint64(l))
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryTxLogsResponse) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if len(m.Logs) > 0 {
|
|
|
|
for _, e := range m.Logs {
|
|
|
|
l = e.Size()
|
|
|
|
n += 1 + l + sovQuery(uint64(l))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
2021-04-18 15:54:18 +00:00
|
|
|
func (m *QueryTxReceiptRequest) Size() (n int) {
|
2021-04-17 10:00:07 +00:00
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = len(m.Hash)
|
|
|
|
if l > 0 {
|
|
|
|
n += 1 + l + sovQuery(uint64(l))
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
2021-04-18 15:54:18 +00:00
|
|
|
func (m *QueryTxReceiptResponse) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if m.Receipt != nil {
|
|
|
|
l = m.Receipt.Size()
|
|
|
|
n += 1 + l + sovQuery(uint64(l))
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryTxReceiptsByBlockHeightRequest) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if m.Height != 0 {
|
|
|
|
n += 1 + sovQuery(uint64(m.Height))
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryTxReceiptsByBlockHeightResponse) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if len(m.Receipts) > 0 {
|
|
|
|
for _, e := range m.Receipts {
|
|
|
|
l = e.Size()
|
|
|
|
n += 1 + l + sovQuery(uint64(l))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryTxReceiptsByBlockHashRequest) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = len(m.Hash)
|
|
|
|
if l > 0 {
|
|
|
|
n += 1 + l + sovQuery(uint64(l))
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryTxReceiptsByBlockHashResponse) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if len(m.Receipts) > 0 {
|
|
|
|
for _, e := range m.Receipts {
|
|
|
|
l = e.Size()
|
|
|
|
n += 1 + l + sovQuery(uint64(l))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryBlockLogsRequest) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = len(m.Hash)
|
|
|
|
if l > 0 {
|
|
|
|
n += 1 + l + sovQuery(uint64(l))
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryBlockLogsResponse) Size() (n int) {
|
2021-04-17 10:00:07 +00:00
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if len(m.TxLogs) > 0 {
|
|
|
|
for _, e := range m.TxLogs {
|
|
|
|
l = e.Size()
|
|
|
|
n += 1 + l + sovQuery(uint64(l))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryBlockBloomRequest) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
2021-04-18 15:54:18 +00:00
|
|
|
if m.Height != 0 {
|
|
|
|
n += 1 + sovQuery(uint64(m.Height))
|
|
|
|
}
|
2021-04-17 10:00:07 +00:00
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryBlockBloomResponse) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = len(m.Bloom)
|
|
|
|
if l > 0 {
|
|
|
|
n += 1 + l + sovQuery(uint64(l))
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryParamsRequest) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryParamsResponse) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = m.Params.Size()
|
|
|
|
n += 1 + l + sovQuery(uint64(l))
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
2021-04-18 15:54:18 +00:00
|
|
|
func (m *QueryStaticCallRequest) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = len(m.Address)
|
|
|
|
if l > 0 {
|
|
|
|
n += 1 + l + sovQuery(uint64(l))
|
|
|
|
}
|
|
|
|
l = len(m.Input)
|
|
|
|
if l > 0 {
|
|
|
|
n += 1 + l + sovQuery(uint64(l))
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryStaticCallResponse) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = len(m.Data)
|
|
|
|
if l > 0 {
|
|
|
|
n += 1 + l + sovQuery(uint64(l))
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
2021-04-17 10:00:07 +00:00
|
|
|
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))))
|
|
|
|
}
|
2021-04-18 15:54:18 +00:00
|
|
|
func (m *QueryAccountRequest) Unmarshal(dAtA []byte) 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: QueryAccountRequest: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: QueryAccountRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType)
|
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return 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.Address = string(dAtA[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipQuery(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-10 16:34:00 +00:00
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthQuery
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) < 0 {
|
2021-04-18 15:54:18 +00:00
|
|
|
return ErrInvalidLengthQuery
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *QueryAccountResponse) Unmarshal(dAtA []byte) 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: QueryAccountResponse: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: QueryAccountResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Balance", wireType)
|
|
|
|
}
|
|
|
|
var 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.Balance = string(dAtA[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field CodeHash", wireType)
|
|
|
|
}
|
|
|
|
var byteLen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowQuery
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
byteLen |= int(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if byteLen < 0 {
|
|
|
|
return ErrInvalidLengthQuery
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + byteLen
|
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthQuery
|
|
|
|
}
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.CodeHash = append(m.CodeHash[:0], dAtA[iNdEx:postIndex]...)
|
|
|
|
if m.CodeHash == nil {
|
|
|
|
m.CodeHash = []byte{}
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 3:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Nonce", wireType)
|
|
|
|
}
|
|
|
|
m.Nonce = 0
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowQuery
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
m.Nonce |= uint64(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipQuery(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-10 16:34:00 +00:00
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthQuery
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) < 0 {
|
2021-04-18 15:54:18 +00:00
|
|
|
return ErrInvalidLengthQuery
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *QueryCosmosAccountRequest) Unmarshal(dAtA []byte) 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: QueryCosmosAccountRequest: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: QueryCosmosAccountRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType)
|
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return 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.Address = string(dAtA[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipQuery(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-10 16:34:00 +00:00
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthQuery
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) < 0 {
|
2021-04-18 15:54:18 +00:00
|
|
|
return ErrInvalidLengthQuery
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *QueryCosmosAccountResponse) Unmarshal(dAtA []byte) 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: QueryCosmosAccountResponse: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: QueryCosmosAccountResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field CosmosAddress", 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.CosmosAddress = string(dAtA[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Sequence", wireType)
|
|
|
|
}
|
|
|
|
m.Sequence = 0
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowQuery
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
m.Sequence |= uint64(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
case 3:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field AccountNumber", wireType)
|
|
|
|
}
|
|
|
|
m.AccountNumber = 0
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowQuery
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
m.AccountNumber |= uint64(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipQuery(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-10 16:34:00 +00:00
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthQuery
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) < 0 {
|
2021-04-18 15:54:18 +00:00
|
|
|
return ErrInvalidLengthQuery
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *QueryBalanceRequest) Unmarshal(dAtA []byte) 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: QueryBalanceRequest: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: QueryBalanceRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType)
|
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return 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.Address = string(dAtA[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipQuery(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-10 16:34:00 +00:00
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthQuery
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) < 0 {
|
2021-04-18 15:54:18 +00:00
|
|
|
return ErrInvalidLengthQuery
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *QueryBalanceResponse) Unmarshal(dAtA []byte) 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: QueryBalanceResponse: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: QueryBalanceResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Balance", wireType)
|
|
|
|
}
|
|
|
|
var 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.Balance = string(dAtA[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipQuery(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-10 16:34:00 +00:00
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthQuery
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) < 0 {
|
2021-04-18 15:54:18 +00:00
|
|
|
return ErrInvalidLengthQuery
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *QueryStorageRequest) Unmarshal(dAtA []byte) 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: QueryStorageRequest: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: QueryStorageRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType)
|
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return 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.Address = string(dAtA[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType)
|
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return 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.Key = string(dAtA[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipQuery(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-10 16:34:00 +00:00
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthQuery
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) < 0 {
|
2021-04-18 15:54:18 +00:00
|
|
|
return ErrInvalidLengthQuery
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *QueryStorageResponse) Unmarshal(dAtA []byte) error {
|
2021-04-17 10:00:07 +00:00
|
|
|
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 {
|
2021-04-18 15:54:18 +00:00
|
|
|
return fmt.Errorf("proto: QueryStorageResponse: wiretype end group for non-group")
|
2021-04-17 10:00:07 +00:00
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
2021-04-18 15:54:18 +00:00
|
|
|
return fmt.Errorf("proto: QueryStorageResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
2021-04-17 10:00:07 +00:00
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
2021-04-18 15:54:18 +00:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType)
|
2021-04-17 10:00:07 +00:00
|
|
|
}
|
|
|
|
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
|
|
|
|
}
|
2021-04-18 15:54:18 +00:00
|
|
|
m.Value = string(dAtA[iNdEx:postIndex])
|
2021-04-17 10:00:07 +00:00
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipQuery(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-10 16:34:00 +00:00
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthQuery
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) < 0 {
|
2021-04-17 10:00:07 +00:00
|
|
|
return ErrInvalidLengthQuery
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
2021-04-18 15:54:18 +00:00
|
|
|
func (m *QueryCodeRequest) Unmarshal(dAtA []byte) error {
|
2021-04-17 10:00:07 +00:00
|
|
|
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 {
|
2021-04-18 15:54:18 +00:00
|
|
|
return fmt.Errorf("proto: QueryCodeRequest: wiretype end group for non-group")
|
2021-04-17 10:00:07 +00:00
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
2021-04-18 15:54:18 +00:00
|
|
|
return fmt.Errorf("proto: QueryCodeRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
2021-04-17 10:00:07 +00:00
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
2021-04-18 15:54:18 +00:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType)
|
2021-04-17 10:00:07 +00:00
|
|
|
}
|
|
|
|
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
|
|
|
|
}
|
2021-04-18 15:54:18 +00:00
|
|
|
m.Address = string(dAtA[iNdEx:postIndex])
|
2021-04-17 10:00:07 +00:00
|
|
|
iNdEx = postIndex
|
2021-04-18 15:54:18 +00:00
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipQuery(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-10 16:34:00 +00:00
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthQuery
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) < 0 {
|
2021-04-18 15:54:18 +00:00
|
|
|
return ErrInvalidLengthQuery
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *QueryCodeResponse) Unmarshal(dAtA []byte) 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: QueryCodeResponse: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: QueryCodeResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
2021-04-17 10:00:07 +00:00
|
|
|
if wireType != 2 {
|
2021-04-18 15:54:18 +00:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType)
|
2021-04-17 10:00:07 +00:00
|
|
|
}
|
|
|
|
var byteLen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowQuery
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
byteLen |= int(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if byteLen < 0 {
|
|
|
|
return ErrInvalidLengthQuery
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + byteLen
|
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthQuery
|
|
|
|
}
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2021-04-18 15:54:18 +00:00
|
|
|
m.Code = append(m.Code[:0], dAtA[iNdEx:postIndex]...)
|
|
|
|
if m.Code == nil {
|
|
|
|
m.Code = []byte{}
|
2021-04-17 10:00:07 +00:00
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
2021-04-18 15:54:18 +00:00
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipQuery(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
2021-04-17 10:00:07 +00:00
|
|
|
}
|
2021-05-10 16:34:00 +00:00
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthQuery
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) < 0 {
|
2021-04-18 15:54:18 +00:00
|
|
|
return ErrInvalidLengthQuery
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *QueryTxLogsRequest) Unmarshal(dAtA []byte) 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: QueryTxLogsRequest: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: QueryTxLogsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Hash", wireType)
|
|
|
|
}
|
|
|
|
var stringLen uint64
|
2021-04-17 10:00:07 +00:00
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowQuery
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2021-04-18 15:54:18 +00:00
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
2021-04-17 10:00:07 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
2021-04-18 15:54:18 +00:00
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthQuery
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthQuery
|
|
|
|
}
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Hash = string(dAtA[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
2021-04-17 10:00:07 +00:00
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipQuery(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-10 16:34:00 +00:00
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthQuery
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) < 0 {
|
2021-04-17 10:00:07 +00:00
|
|
|
return ErrInvalidLengthQuery
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
2021-04-18 15:54:18 +00:00
|
|
|
func (m *QueryTxLogsResponse) Unmarshal(dAtA []byte) error {
|
2021-04-17 10:00:07 +00:00
|
|
|
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 {
|
2021-04-18 15:54:18 +00:00
|
|
|
return fmt.Errorf("proto: QueryTxLogsResponse: wiretype end group for non-group")
|
2021-04-17 10:00:07 +00:00
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
2021-04-18 15:54:18 +00:00
|
|
|
return fmt.Errorf("proto: QueryTxLogsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
2021-04-17 10:00:07 +00:00
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
2021-04-18 15:54:18 +00:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Logs", wireType)
|
2021-04-17 10:00:07 +00:00
|
|
|
}
|
2021-04-18 15:54:18 +00:00
|
|
|
var msglen int
|
2021-04-17 10:00:07 +00:00
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowQuery
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2021-04-18 15:54:18 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2021-04-17 10:00:07 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
2021-04-18 15:54:18 +00:00
|
|
|
if msglen < 0 {
|
2021-04-17 10:00:07 +00:00
|
|
|
return ErrInvalidLengthQuery
|
|
|
|
}
|
2021-04-18 15:54:18 +00:00
|
|
|
postIndex := iNdEx + msglen
|
2021-04-17 10:00:07 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthQuery
|
|
|
|
}
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2021-04-18 15:54:18 +00:00
|
|
|
m.Logs = append(m.Logs, &Log{})
|
|
|
|
if err := m.Logs[len(m.Logs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-04-17 10:00:07 +00:00
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipQuery(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-10 16:34:00 +00:00
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthQuery
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) < 0 {
|
2021-04-17 10:00:07 +00:00
|
|
|
return ErrInvalidLengthQuery
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
2021-04-18 15:54:18 +00:00
|
|
|
func (m *QueryTxReceiptRequest) Unmarshal(dAtA []byte) error {
|
2021-04-17 10:00:07 +00:00
|
|
|
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 {
|
2021-04-18 15:54:18 +00:00
|
|
|
return fmt.Errorf("proto: QueryTxReceiptRequest: wiretype end group for non-group")
|
2021-04-17 10:00:07 +00:00
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
2021-04-18 15:54:18 +00:00
|
|
|
return fmt.Errorf("proto: QueryTxReceiptRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
2021-04-17 10:00:07 +00:00
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
2021-04-18 15:54:18 +00:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Hash", wireType)
|
2021-04-17 10:00:07 +00:00
|
|
|
}
|
|
|
|
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
|
|
|
|
}
|
2021-04-18 15:54:18 +00:00
|
|
|
m.Hash = string(dAtA[iNdEx:postIndex])
|
2021-04-17 10:00:07 +00:00
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipQuery(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-10 16:34:00 +00:00
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthQuery
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) < 0 {
|
2021-04-17 10:00:07 +00:00
|
|
|
return ErrInvalidLengthQuery
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
2021-04-18 15:54:18 +00:00
|
|
|
func (m *QueryTxReceiptResponse) Unmarshal(dAtA []byte) error {
|
2021-04-17 10:00:07 +00:00
|
|
|
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 {
|
2021-04-18 15:54:18 +00:00
|
|
|
return fmt.Errorf("proto: QueryTxReceiptResponse: wiretype end group for non-group")
|
2021-04-17 10:00:07 +00:00
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
2021-04-18 15:54:18 +00:00
|
|
|
return fmt.Errorf("proto: QueryTxReceiptResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
2021-04-17 10:00:07 +00:00
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
2021-04-18 15:54:18 +00:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Receipt", wireType)
|
2021-04-17 10:00:07 +00:00
|
|
|
}
|
2021-04-18 15:54:18 +00:00
|
|
|
var msglen int
|
2021-04-17 10:00:07 +00:00
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowQuery
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2021-04-18 15:54:18 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2021-04-17 10:00:07 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
2021-04-18 15:54:18 +00:00
|
|
|
if msglen < 0 {
|
2021-04-17 10:00:07 +00:00
|
|
|
return ErrInvalidLengthQuery
|
|
|
|
}
|
2021-04-18 15:54:18 +00:00
|
|
|
postIndex := iNdEx + msglen
|
2021-04-17 10:00:07 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthQuery
|
|
|
|
}
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2021-04-18 15:54:18 +00:00
|
|
|
if m.Receipt == nil {
|
|
|
|
m.Receipt = &TxReceipt{}
|
|
|
|
}
|
|
|
|
if err := m.Receipt.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-04-17 10:00:07 +00:00
|
|
|
iNdEx = postIndex
|
2021-04-18 15:54:18 +00:00
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipQuery(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-10 16:34:00 +00:00
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthQuery
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) < 0 {
|
2021-04-18 15:54:18 +00:00
|
|
|
return ErrInvalidLengthQuery
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *QueryTxReceiptsByBlockHeightRequest) Unmarshal(dAtA []byte) 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: QueryTxReceiptsByBlockHeightRequest: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: QueryTxReceiptsByBlockHeightRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType)
|
2021-04-17 10:00:07 +00:00
|
|
|
}
|
2021-04-18 15:54:18 +00:00
|
|
|
m.Height = 0
|
2021-04-17 10:00:07 +00:00
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowQuery
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2021-04-18 15:54:18 +00:00
|
|
|
m.Height |= int64(b&0x7F) << shift
|
2021-04-17 10:00:07 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipQuery(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-10 16:34:00 +00:00
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthQuery
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) < 0 {
|
2021-04-17 10:00:07 +00:00
|
|
|
return ErrInvalidLengthQuery
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
2021-04-18 15:54:18 +00:00
|
|
|
func (m *QueryTxReceiptsByBlockHeightResponse) Unmarshal(dAtA []byte) error {
|
2021-04-17 10:00:07 +00:00
|
|
|
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 {
|
2021-04-18 15:54:18 +00:00
|
|
|
return fmt.Errorf("proto: QueryTxReceiptsByBlockHeightResponse: wiretype end group for non-group")
|
2021-04-17 10:00:07 +00:00
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
2021-04-18 15:54:18 +00:00
|
|
|
return fmt.Errorf("proto: QueryTxReceiptsByBlockHeightResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
2021-04-17 10:00:07 +00:00
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
2021-04-18 15:54:18 +00:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Receipts", wireType)
|
2021-04-17 10:00:07 +00:00
|
|
|
}
|
2021-04-18 15:54:18 +00:00
|
|
|
var msglen int
|
2021-04-17 10:00:07 +00:00
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowQuery
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2021-04-18 15:54:18 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2021-04-17 10:00:07 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
2021-04-18 15:54:18 +00:00
|
|
|
if msglen < 0 {
|
2021-04-17 10:00:07 +00:00
|
|
|
return ErrInvalidLengthQuery
|
|
|
|
}
|
2021-04-18 15:54:18 +00:00
|
|
|
postIndex := iNdEx + msglen
|
2021-04-17 10:00:07 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthQuery
|
|
|
|
}
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2021-04-18 15:54:18 +00:00
|
|
|
m.Receipts = append(m.Receipts, &TxReceipt{})
|
|
|
|
if err := m.Receipts[len(m.Receipts)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-04-17 10:00:07 +00:00
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipQuery(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-10 16:34:00 +00:00
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthQuery
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) < 0 {
|
2021-04-17 10:00:07 +00:00
|
|
|
return ErrInvalidLengthQuery
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
2021-04-18 15:54:18 +00:00
|
|
|
func (m *QueryTxReceiptsByBlockHashRequest) Unmarshal(dAtA []byte) error {
|
2021-04-17 10:00:07 +00:00
|
|
|
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 {
|
2021-04-18 15:54:18 +00:00
|
|
|
return fmt.Errorf("proto: QueryTxReceiptsByBlockHashRequest: wiretype end group for non-group")
|
2021-04-17 10:00:07 +00:00
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
2021-04-18 15:54:18 +00:00
|
|
|
return fmt.Errorf("proto: QueryTxReceiptsByBlockHashRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
2021-04-17 10:00:07 +00:00
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
2021-04-18 15:54:18 +00:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Hash", wireType)
|
2021-04-17 10:00:07 +00:00
|
|
|
}
|
|
|
|
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
|
|
|
|
}
|
2021-04-18 15:54:18 +00:00
|
|
|
m.Hash = string(dAtA[iNdEx:postIndex])
|
2021-04-17 10:00:07 +00:00
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipQuery(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-10 16:34:00 +00:00
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthQuery
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) < 0 {
|
2021-04-17 10:00:07 +00:00
|
|
|
return ErrInvalidLengthQuery
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
2021-04-18 15:54:18 +00:00
|
|
|
func (m *QueryTxReceiptsByBlockHashResponse) Unmarshal(dAtA []byte) error {
|
2021-04-17 10:00:07 +00:00
|
|
|
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 {
|
2021-04-18 15:54:18 +00:00
|
|
|
return fmt.Errorf("proto: QueryTxReceiptsByBlockHashResponse: wiretype end group for non-group")
|
2021-04-17 10:00:07 +00:00
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
2021-04-18 15:54:18 +00:00
|
|
|
return fmt.Errorf("proto: QueryTxReceiptsByBlockHashResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
2021-04-17 10:00:07 +00:00
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
2021-04-18 15:54:18 +00:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Receipts", wireType)
|
2021-04-17 10:00:07 +00:00
|
|
|
}
|
2021-04-18 15:54:18 +00:00
|
|
|
var msglen int
|
2021-04-17 10:00:07 +00:00
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowQuery
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2021-04-18 15:54:18 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2021-04-17 10:00:07 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
2021-04-18 15:54:18 +00:00
|
|
|
if msglen < 0 {
|
2021-04-17 10:00:07 +00:00
|
|
|
return ErrInvalidLengthQuery
|
|
|
|
}
|
2021-04-18 15:54:18 +00:00
|
|
|
postIndex := iNdEx + msglen
|
2021-04-17 10:00:07 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthQuery
|
|
|
|
}
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2021-04-18 15:54:18 +00:00
|
|
|
m.Receipts = append(m.Receipts, &TxReceipt{})
|
|
|
|
if err := m.Receipts[len(m.Receipts)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
2021-04-17 10:00:07 +00:00
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipQuery(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-10 16:34:00 +00:00
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthQuery
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) < 0 {
|
2021-04-17 10:00:07 +00:00
|
|
|
return ErrInvalidLengthQuery
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
2021-04-18 15:54:18 +00:00
|
|
|
func (m *QueryBlockLogsRequest) Unmarshal(dAtA []byte) error {
|
2021-04-17 10:00:07 +00:00
|
|
|
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 {
|
2021-04-18 15:54:18 +00:00
|
|
|
return fmt.Errorf("proto: QueryBlockLogsRequest: wiretype end group for non-group")
|
2021-04-17 10:00:07 +00:00
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
2021-04-18 15:54:18 +00:00
|
|
|
return fmt.Errorf("proto: QueryBlockLogsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
2021-04-17 10:00:07 +00:00
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Hash", 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.Hash = string(dAtA[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipQuery(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-10 16:34:00 +00:00
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthQuery
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) < 0 {
|
2021-04-17 10:00:07 +00:00
|
|
|
return ErrInvalidLengthQuery
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
2021-04-18 15:54:18 +00:00
|
|
|
func (m *QueryBlockLogsResponse) Unmarshal(dAtA []byte) error {
|
2021-04-17 10:00:07 +00:00
|
|
|
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 {
|
2021-04-18 15:54:18 +00:00
|
|
|
return fmt.Errorf("proto: QueryBlockLogsResponse: wiretype end group for non-group")
|
2021-04-17 10:00:07 +00:00
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
2021-04-18 15:54:18 +00:00
|
|
|
return fmt.Errorf("proto: QueryBlockLogsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
2021-04-17 10:00:07 +00:00
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
2021-04-18 15:54:18 +00:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field TxLogs", wireType)
|
2021-04-17 10:00:07 +00:00
|
|
|
}
|
|
|
|
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
|
|
|
|
}
|
2021-04-18 15:54:18 +00:00
|
|
|
m.TxLogs = append(m.TxLogs, TransactionLogs{})
|
|
|
|
if err := m.TxLogs[len(m.TxLogs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
2021-04-17 10:00:07 +00:00
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipQuery(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-10 16:34:00 +00:00
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthQuery
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) < 0 {
|
2021-04-17 10:00:07 +00:00
|
|
|
return ErrInvalidLengthQuery
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
2021-04-18 15:54:18 +00:00
|
|
|
func (m *QueryBlockBloomRequest) Unmarshal(dAtA []byte) error {
|
2021-04-17 10:00:07 +00:00
|
|
|
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 {
|
2021-04-18 15:54:18 +00:00
|
|
|
return fmt.Errorf("proto: QueryBlockBloomRequest: wiretype end group for non-group")
|
2021-04-17 10:00:07 +00:00
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
2021-04-18 15:54:18 +00:00
|
|
|
return fmt.Errorf("proto: QueryBlockBloomRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
2021-04-17 10:00:07 +00:00
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
2021-04-18 15:54:18 +00:00
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType)
|
2021-04-17 10:00:07 +00:00
|
|
|
}
|
2021-04-18 15:54:18 +00:00
|
|
|
m.Height = 0
|
2021-04-17 10:00:07 +00:00
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowQuery
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2021-04-18 15:54:18 +00:00
|
|
|
m.Height |= int64(b&0x7F) << shift
|
2021-04-17 10:00:07 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipQuery(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-10 16:34:00 +00:00
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthQuery
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) < 0 {
|
2021-04-17 10:00:07 +00:00
|
|
|
return ErrInvalidLengthQuery
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
2021-04-18 15:54:18 +00:00
|
|
|
func (m *QueryBlockBloomResponse) Unmarshal(dAtA []byte) error {
|
2021-04-17 10:00:07 +00:00
|
|
|
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 {
|
2021-04-18 15:54:18 +00:00
|
|
|
return fmt.Errorf("proto: QueryBlockBloomResponse: wiretype end group for non-group")
|
2021-04-17 10:00:07 +00:00
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
2021-04-18 15:54:18 +00:00
|
|
|
return fmt.Errorf("proto: QueryBlockBloomResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
2021-04-17 10:00:07 +00:00
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
2021-04-18 15:54:18 +00:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Bloom", wireType)
|
2021-04-17 10:00:07 +00:00
|
|
|
}
|
2021-04-18 15:54:18 +00:00
|
|
|
var byteLen int
|
2021-04-17 10:00:07 +00:00
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowQuery
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2021-04-18 15:54:18 +00:00
|
|
|
byteLen |= int(b&0x7F) << shift
|
2021-04-17 10:00:07 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
2021-04-18 15:54:18 +00:00
|
|
|
if byteLen < 0 {
|
2021-04-17 10:00:07 +00:00
|
|
|
return ErrInvalidLengthQuery
|
|
|
|
}
|
2021-04-18 15:54:18 +00:00
|
|
|
postIndex := iNdEx + byteLen
|
2021-04-17 10:00:07 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthQuery
|
|
|
|
}
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2021-04-18 15:54:18 +00:00
|
|
|
m.Bloom = append(m.Bloom[:0], dAtA[iNdEx:postIndex]...)
|
|
|
|
if m.Bloom == nil {
|
|
|
|
m.Bloom = []byte{}
|
2021-04-17 10:00:07 +00:00
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipQuery(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-10 16:34:00 +00:00
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthQuery
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) < 0 {
|
2021-04-17 10:00:07 +00:00
|
|
|
return ErrInvalidLengthQuery
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
2021-04-18 15:54:18 +00:00
|
|
|
func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error {
|
2021-04-17 10:00:07 +00:00
|
|
|
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 {
|
2021-04-18 15:54:18 +00:00
|
|
|
return fmt.Errorf("proto: QueryParamsRequest: wiretype end group for non-group")
|
2021-04-17 10:00:07 +00:00
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
2021-04-18 15:54:18 +00:00
|
|
|
return fmt.Errorf("proto: QueryParamsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
2021-04-17 10:00:07 +00:00
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipQuery(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-10 16:34:00 +00:00
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthQuery
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) < 0 {
|
2021-04-17 10:00:07 +00:00
|
|
|
return ErrInvalidLengthQuery
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
2021-04-18 15:54:18 +00:00
|
|
|
func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error {
|
2021-04-17 10:00:07 +00:00
|
|
|
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 {
|
2021-04-18 15:54:18 +00:00
|
|
|
return fmt.Errorf("proto: QueryParamsResponse: wiretype end group for non-group")
|
2021-04-17 10:00:07 +00:00
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
2021-04-18 15:54:18 +00:00
|
|
|
return fmt.Errorf("proto: QueryParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
2021-04-17 10:00:07 +00:00
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
2021-04-18 15:54:18 +00:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType)
|
2021-04-17 10:00:07 +00:00
|
|
|
}
|
2021-04-18 15:54:18 +00:00
|
|
|
var msglen int
|
2021-04-17 10:00:07 +00:00
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowQuery
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2021-04-18 15:54:18 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2021-04-17 10:00:07 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
2021-04-18 15:54:18 +00:00
|
|
|
if msglen < 0 {
|
2021-04-17 10:00:07 +00:00
|
|
|
return ErrInvalidLengthQuery
|
|
|
|
}
|
2021-04-18 15:54:18 +00:00
|
|
|
postIndex := iNdEx + msglen
|
2021-04-17 10:00:07 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthQuery
|
|
|
|
}
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2021-04-18 15:54:18 +00:00
|
|
|
if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
2021-04-17 10:00:07 +00:00
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipQuery(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-10 16:34:00 +00:00
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthQuery
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) < 0 {
|
2021-04-17 10:00:07 +00:00
|
|
|
return ErrInvalidLengthQuery
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
2021-04-18 15:54:18 +00:00
|
|
|
func (m *QueryStaticCallRequest) Unmarshal(dAtA []byte) error {
|
2021-04-17 10:00:07 +00:00
|
|
|
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 {
|
2021-04-18 15:54:18 +00:00
|
|
|
return fmt.Errorf("proto: QueryStaticCallRequest: wiretype end group for non-group")
|
2021-04-17 10:00:07 +00:00
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
2021-04-18 15:54:18 +00:00
|
|
|
return fmt.Errorf("proto: QueryStaticCallRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
2021-04-17 10:00:07 +00:00
|
|
|
}
|
|
|
|
switch fieldNum {
|
2021-04-18 15:54:18 +00:00
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType)
|
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return 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.Address = string(dAtA[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Input", wireType)
|
|
|
|
}
|
|
|
|
var byteLen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowQuery
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
byteLen |= int(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if byteLen < 0 {
|
|
|
|
return ErrInvalidLengthQuery
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + byteLen
|
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthQuery
|
|
|
|
}
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Input = append(m.Input[:0], dAtA[iNdEx:postIndex]...)
|
|
|
|
if m.Input == nil {
|
|
|
|
m.Input = []byte{}
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
2021-04-17 10:00:07 +00:00
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipQuery(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-10 16:34:00 +00:00
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthQuery
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) < 0 {
|
2021-04-17 10:00:07 +00:00
|
|
|
return ErrInvalidLengthQuery
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
2021-04-18 15:54:18 +00:00
|
|
|
func (m *QueryStaticCallResponse) Unmarshal(dAtA []byte) error {
|
2021-04-17 10:00:07 +00:00
|
|
|
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 {
|
2021-04-18 15:54:18 +00:00
|
|
|
return fmt.Errorf("proto: QueryStaticCallResponse: wiretype end group for non-group")
|
2021-04-17 10:00:07 +00:00
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
2021-04-18 15:54:18 +00:00
|
|
|
return fmt.Errorf("proto: QueryStaticCallResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
2021-04-17 10:00:07 +00:00
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
2021-04-18 15:54:18 +00:00
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
|
2021-04-17 10:00:07 +00:00
|
|
|
}
|
2021-04-18 15:54:18 +00:00
|
|
|
var byteLen int
|
2021-04-17 10:00:07 +00:00
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowQuery
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2021-04-18 15:54:18 +00:00
|
|
|
byteLen |= int(b&0x7F) << shift
|
2021-04-17 10:00:07 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
2021-04-18 15:54:18 +00:00
|
|
|
if byteLen < 0 {
|
2021-04-17 10:00:07 +00:00
|
|
|
return ErrInvalidLengthQuery
|
|
|
|
}
|
2021-04-18 15:54:18 +00:00
|
|
|
postIndex := iNdEx + byteLen
|
2021-04-17 10:00:07 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthQuery
|
|
|
|
}
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2021-04-18 15:54:18 +00:00
|
|
|
m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...)
|
|
|
|
if m.Data == nil {
|
|
|
|
m.Data = []byte{}
|
2021-04-17 10:00:07 +00:00
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipQuery(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-10 16:34:00 +00:00
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthQuery
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) < 0 {
|
2021-04-17 10:00:07 +00:00
|
|
|
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")
|
|
|
|
)
|