mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-31 23:41:22 +00:00
afc3b3168a
* Add Back Accounts Backup Validator RPC Functionality
This reverts commit a39db494eb
.
* Fix
7380 lines
200 KiB
Go
Executable File
Generated
7380 lines
200 KiB
Go
Executable File
Generated
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
|
// source: proto/validator/accounts/v2/web_api.proto
|
|
|
|
package ethereum_validator_accounts_v2
|
|
|
|
import (
|
|
context "context"
|
|
fmt "fmt"
|
|
_ "github.com/gogo/protobuf/gogoproto"
|
|
proto "github.com/gogo/protobuf/proto"
|
|
types "github.com/gogo/protobuf/types"
|
|
v1alpha1 "github.com/prysmaticlabs/ethereumapis/eth/v1alpha1"
|
|
v1 "github.com/prysmaticlabs/prysm/proto/beacon/rpc/v1"
|
|
_ "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
|
|
|
|
type KeymanagerKind int32
|
|
|
|
const (
|
|
KeymanagerKind_DERIVED KeymanagerKind = 0
|
|
KeymanagerKind_IMPORTED KeymanagerKind = 1
|
|
KeymanagerKind_REMOTE KeymanagerKind = 2
|
|
)
|
|
|
|
var KeymanagerKind_name = map[int32]string{
|
|
0: "DERIVED",
|
|
1: "IMPORTED",
|
|
2: "REMOTE",
|
|
}
|
|
|
|
var KeymanagerKind_value = map[string]int32{
|
|
"DERIVED": 0,
|
|
"IMPORTED": 1,
|
|
"REMOTE": 2,
|
|
}
|
|
|
|
func (x KeymanagerKind) String() string {
|
|
return proto.EnumName(KeymanagerKind_name, int32(x))
|
|
}
|
|
|
|
func (KeymanagerKind) EnumDescriptor() ([]byte, []int) {
|
|
return fileDescriptor_8a5153635bfe042e, []int{0}
|
|
}
|
|
|
|
type CreateWalletRequest struct {
|
|
Keymanager KeymanagerKind `protobuf:"varint,1,opt,name=keymanager,proto3,enum=ethereum.validator.accounts.v2.KeymanagerKind" json:"keymanager,omitempty"`
|
|
WalletPassword string `protobuf:"bytes,2,opt,name=wallet_password,json=walletPassword,proto3" json:"wallet_password,omitempty"`
|
|
Mnemonic string `protobuf:"bytes,3,opt,name=mnemonic,proto3" json:"mnemonic,omitempty"`
|
|
NumAccounts uint64 `protobuf:"varint,4,opt,name=num_accounts,json=numAccounts,proto3" json:"num_accounts,omitempty"`
|
|
RemoteAddr string `protobuf:"bytes,5,opt,name=remote_addr,json=remoteAddr,proto3" json:"remote_addr,omitempty"`
|
|
RemoteCrtPath string `protobuf:"bytes,6,opt,name=remote_crt_path,json=remoteCrtPath,proto3" json:"remote_crt_path,omitempty"`
|
|
RemoteKeyPath string `protobuf:"bytes,7,opt,name=remote_key_path,json=remoteKeyPath,proto3" json:"remote_key_path,omitempty"`
|
|
RemoteCaCrtPath string `protobuf:"bytes,8,opt,name=remote_ca_crt_path,json=remoteCaCrtPath,proto3" json:"remote_ca_crt_path,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *CreateWalletRequest) Reset() { *m = CreateWalletRequest{} }
|
|
func (m *CreateWalletRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*CreateWalletRequest) ProtoMessage() {}
|
|
func (*CreateWalletRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_8a5153635bfe042e, []int{0}
|
|
}
|
|
func (m *CreateWalletRequest) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *CreateWalletRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_CreateWalletRequest.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *CreateWalletRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_CreateWalletRequest.Merge(m, src)
|
|
}
|
|
func (m *CreateWalletRequest) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *CreateWalletRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_CreateWalletRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_CreateWalletRequest proto.InternalMessageInfo
|
|
|
|
func (m *CreateWalletRequest) GetKeymanager() KeymanagerKind {
|
|
if m != nil {
|
|
return m.Keymanager
|
|
}
|
|
return KeymanagerKind_DERIVED
|
|
}
|
|
|
|
func (m *CreateWalletRequest) GetWalletPassword() string {
|
|
if m != nil {
|
|
return m.WalletPassword
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *CreateWalletRequest) GetMnemonic() string {
|
|
if m != nil {
|
|
return m.Mnemonic
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *CreateWalletRequest) GetNumAccounts() uint64 {
|
|
if m != nil {
|
|
return m.NumAccounts
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *CreateWalletRequest) GetRemoteAddr() string {
|
|
if m != nil {
|
|
return m.RemoteAddr
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *CreateWalletRequest) GetRemoteCrtPath() string {
|
|
if m != nil {
|
|
return m.RemoteCrtPath
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *CreateWalletRequest) GetRemoteKeyPath() string {
|
|
if m != nil {
|
|
return m.RemoteKeyPath
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *CreateWalletRequest) GetRemoteCaCrtPath() string {
|
|
if m != nil {
|
|
return m.RemoteCaCrtPath
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type CreateWalletResponse struct {
|
|
Wallet *WalletResponse `protobuf:"bytes,1,opt,name=wallet,proto3" json:"wallet,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *CreateWalletResponse) Reset() { *m = CreateWalletResponse{} }
|
|
func (m *CreateWalletResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*CreateWalletResponse) ProtoMessage() {}
|
|
func (*CreateWalletResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_8a5153635bfe042e, []int{1}
|
|
}
|
|
func (m *CreateWalletResponse) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *CreateWalletResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_CreateWalletResponse.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *CreateWalletResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_CreateWalletResponse.Merge(m, src)
|
|
}
|
|
func (m *CreateWalletResponse) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *CreateWalletResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_CreateWalletResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_CreateWalletResponse proto.InternalMessageInfo
|
|
|
|
func (m *CreateWalletResponse) GetWallet() *WalletResponse {
|
|
if m != nil {
|
|
return m.Wallet
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type EditWalletConfigRequest struct {
|
|
RemoteAddr string `protobuf:"bytes,1,opt,name=remote_addr,json=remoteAddr,proto3" json:"remote_addr,omitempty"`
|
|
RemoteCrtPath string `protobuf:"bytes,2,opt,name=remote_crt_path,json=remoteCrtPath,proto3" json:"remote_crt_path,omitempty"`
|
|
RemoteKeyPath string `protobuf:"bytes,3,opt,name=remote_key_path,json=remoteKeyPath,proto3" json:"remote_key_path,omitempty"`
|
|
RemoteCaCrtPath string `protobuf:"bytes,4,opt,name=remote_ca_crt_path,json=remoteCaCrtPath,proto3" json:"remote_ca_crt_path,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *EditWalletConfigRequest) Reset() { *m = EditWalletConfigRequest{} }
|
|
func (m *EditWalletConfigRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*EditWalletConfigRequest) ProtoMessage() {}
|
|
func (*EditWalletConfigRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_8a5153635bfe042e, []int{2}
|
|
}
|
|
func (m *EditWalletConfigRequest) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *EditWalletConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_EditWalletConfigRequest.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *EditWalletConfigRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_EditWalletConfigRequest.Merge(m, src)
|
|
}
|
|
func (m *EditWalletConfigRequest) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *EditWalletConfigRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_EditWalletConfigRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_EditWalletConfigRequest proto.InternalMessageInfo
|
|
|
|
func (m *EditWalletConfigRequest) GetRemoteAddr() string {
|
|
if m != nil {
|
|
return m.RemoteAddr
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *EditWalletConfigRequest) GetRemoteCrtPath() string {
|
|
if m != nil {
|
|
return m.RemoteCrtPath
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *EditWalletConfigRequest) GetRemoteKeyPath() string {
|
|
if m != nil {
|
|
return m.RemoteKeyPath
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *EditWalletConfigRequest) GetRemoteCaCrtPath() string {
|
|
if m != nil {
|
|
return m.RemoteCaCrtPath
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GenerateMnemonicResponse struct {
|
|
Mnemonic string `protobuf:"bytes,1,opt,name=mnemonic,proto3" json:"mnemonic,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *GenerateMnemonicResponse) Reset() { *m = GenerateMnemonicResponse{} }
|
|
func (m *GenerateMnemonicResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*GenerateMnemonicResponse) ProtoMessage() {}
|
|
func (*GenerateMnemonicResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_8a5153635bfe042e, []int{3}
|
|
}
|
|
func (m *GenerateMnemonicResponse) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *GenerateMnemonicResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_GenerateMnemonicResponse.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *GenerateMnemonicResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_GenerateMnemonicResponse.Merge(m, src)
|
|
}
|
|
func (m *GenerateMnemonicResponse) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *GenerateMnemonicResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_GenerateMnemonicResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_GenerateMnemonicResponse proto.InternalMessageInfo
|
|
|
|
func (m *GenerateMnemonicResponse) GetMnemonic() string {
|
|
if m != nil {
|
|
return m.Mnemonic
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type WalletResponse struct {
|
|
WalletPath string `protobuf:"bytes,1,opt,name=wallet_path,json=walletPath,proto3" json:"wallet_path,omitempty"`
|
|
KeymanagerKind KeymanagerKind `protobuf:"varint,2,opt,name=keymanager_kind,json=keymanagerKind,proto3,enum=ethereum.validator.accounts.v2.KeymanagerKind" json:"keymanager_kind,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *WalletResponse) Reset() { *m = WalletResponse{} }
|
|
func (m *WalletResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*WalletResponse) ProtoMessage() {}
|
|
func (*WalletResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_8a5153635bfe042e, []int{4}
|
|
}
|
|
func (m *WalletResponse) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *WalletResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_WalletResponse.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *WalletResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_WalletResponse.Merge(m, src)
|
|
}
|
|
func (m *WalletResponse) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *WalletResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_WalletResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_WalletResponse proto.InternalMessageInfo
|
|
|
|
func (m *WalletResponse) GetWalletPath() string {
|
|
if m != nil {
|
|
return m.WalletPath
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *WalletResponse) GetKeymanagerKind() KeymanagerKind {
|
|
if m != nil {
|
|
return m.KeymanagerKind
|
|
}
|
|
return KeymanagerKind_DERIVED
|
|
}
|
|
|
|
type ListAccountsRequest struct {
|
|
GetDepositTxData bool `protobuf:"varint,1,opt,name=get_deposit_tx_data,json=getDepositTxData,proto3" json:"get_deposit_tx_data,omitempty"`
|
|
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
|
|
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
|
|
All bool `protobuf:"varint,4,opt,name=all,proto3" json:"all,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *ListAccountsRequest) Reset() { *m = ListAccountsRequest{} }
|
|
func (m *ListAccountsRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*ListAccountsRequest) ProtoMessage() {}
|
|
func (*ListAccountsRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_8a5153635bfe042e, []int{5}
|
|
}
|
|
func (m *ListAccountsRequest) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *ListAccountsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_ListAccountsRequest.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *ListAccountsRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ListAccountsRequest.Merge(m, src)
|
|
}
|
|
func (m *ListAccountsRequest) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *ListAccountsRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ListAccountsRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ListAccountsRequest proto.InternalMessageInfo
|
|
|
|
func (m *ListAccountsRequest) GetGetDepositTxData() bool {
|
|
if m != nil {
|
|
return m.GetDepositTxData
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (m *ListAccountsRequest) GetPageSize() int32 {
|
|
if m != nil {
|
|
return m.PageSize
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *ListAccountsRequest) GetPageToken() string {
|
|
if m != nil {
|
|
return m.PageToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *ListAccountsRequest) GetAll() bool {
|
|
if m != nil {
|
|
return m.All
|
|
}
|
|
return false
|
|
}
|
|
|
|
type ListAccountsResponse struct {
|
|
Accounts []*Account `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts,omitempty"`
|
|
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
|
|
TotalSize int32 `protobuf:"varint,3,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *ListAccountsResponse) Reset() { *m = ListAccountsResponse{} }
|
|
func (m *ListAccountsResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*ListAccountsResponse) ProtoMessage() {}
|
|
func (*ListAccountsResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_8a5153635bfe042e, []int{6}
|
|
}
|
|
func (m *ListAccountsResponse) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *ListAccountsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_ListAccountsResponse.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *ListAccountsResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ListAccountsResponse.Merge(m, src)
|
|
}
|
|
func (m *ListAccountsResponse) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *ListAccountsResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ListAccountsResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ListAccountsResponse proto.InternalMessageInfo
|
|
|
|
func (m *ListAccountsResponse) GetAccounts() []*Account {
|
|
if m != nil {
|
|
return m.Accounts
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *ListAccountsResponse) GetNextPageToken() string {
|
|
if m != nil {
|
|
return m.NextPageToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *ListAccountsResponse) GetTotalSize() int32 {
|
|
if m != nil {
|
|
return m.TotalSize
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type Account struct {
|
|
ValidatingPublicKey []byte `protobuf:"bytes,1,opt,name=validating_public_key,json=validatingPublicKey,proto3" json:"validating_public_key,omitempty"`
|
|
AccountName string `protobuf:"bytes,2,opt,name=account_name,json=accountName,proto3" json:"account_name,omitempty"`
|
|
DepositTxData []byte `protobuf:"bytes,3,opt,name=deposit_tx_data,json=depositTxData,proto3" json:"deposit_tx_data,omitempty"`
|
|
DerivationPath string `protobuf:"bytes,4,opt,name=derivation_path,json=derivationPath,proto3" json:"derivation_path,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *Account) Reset() { *m = Account{} }
|
|
func (m *Account) String() string { return proto.CompactTextString(m) }
|
|
func (*Account) ProtoMessage() {}
|
|
func (*Account) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_8a5153635bfe042e, []int{7}
|
|
}
|
|
func (m *Account) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *Account) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_Account.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *Account) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Account.Merge(m, src)
|
|
}
|
|
func (m *Account) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *Account) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_Account.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_Account proto.InternalMessageInfo
|
|
|
|
func (m *Account) GetValidatingPublicKey() []byte {
|
|
if m != nil {
|
|
return m.ValidatingPublicKey
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Account) GetAccountName() string {
|
|
if m != nil {
|
|
return m.AccountName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Account) GetDepositTxData() []byte {
|
|
if m != nil {
|
|
return m.DepositTxData
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Account) GetDerivationPath() string {
|
|
if m != nil {
|
|
return m.DerivationPath
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type AccountRequest struct {
|
|
PublicKeys [][]byte `protobuf:"bytes,1,rep,name=public_keys,json=publicKeys,proto3" json:"public_keys,omitempty"`
|
|
Indices []uint64 `protobuf:"varint,2,rep,packed,name=indices,proto3" json:"indices,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *AccountRequest) Reset() { *m = AccountRequest{} }
|
|
func (m *AccountRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*AccountRequest) ProtoMessage() {}
|
|
func (*AccountRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_8a5153635bfe042e, []int{8}
|
|
}
|
|
func (m *AccountRequest) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *AccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_AccountRequest.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *AccountRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_AccountRequest.Merge(m, src)
|
|
}
|
|
func (m *AccountRequest) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *AccountRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_AccountRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_AccountRequest proto.InternalMessageInfo
|
|
|
|
func (m *AccountRequest) GetPublicKeys() [][]byte {
|
|
if m != nil {
|
|
return m.PublicKeys
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *AccountRequest) GetIndices() []uint64 {
|
|
if m != nil {
|
|
return m.Indices
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type AuthRequest struct {
|
|
Password string `protobuf:"bytes,1,opt,name=password,proto3" json:"password,omitempty"`
|
|
PasswordConfirmation string `protobuf:"bytes,2,opt,name=password_confirmation,json=passwordConfirmation,proto3" json:"password_confirmation,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *AuthRequest) Reset() { *m = AuthRequest{} }
|
|
func (m *AuthRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*AuthRequest) ProtoMessage() {}
|
|
func (*AuthRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_8a5153635bfe042e, []int{9}
|
|
}
|
|
func (m *AuthRequest) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *AuthRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_AuthRequest.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *AuthRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_AuthRequest.Merge(m, src)
|
|
}
|
|
func (m *AuthRequest) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *AuthRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_AuthRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_AuthRequest proto.InternalMessageInfo
|
|
|
|
func (m *AuthRequest) GetPassword() string {
|
|
if m != nil {
|
|
return m.Password
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *AuthRequest) GetPasswordConfirmation() string {
|
|
if m != nil {
|
|
return m.PasswordConfirmation
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type AuthResponse struct {
|
|
Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
|
|
TokenExpiration uint64 `protobuf:"varint,2,opt,name=token_expiration,json=tokenExpiration,proto3" json:"token_expiration,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *AuthResponse) Reset() { *m = AuthResponse{} }
|
|
func (m *AuthResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*AuthResponse) ProtoMessage() {}
|
|
func (*AuthResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_8a5153635bfe042e, []int{10}
|
|
}
|
|
func (m *AuthResponse) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *AuthResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_AuthResponse.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *AuthResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_AuthResponse.Merge(m, src)
|
|
}
|
|
func (m *AuthResponse) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *AuthResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_AuthResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_AuthResponse proto.InternalMessageInfo
|
|
|
|
func (m *AuthResponse) GetToken() string {
|
|
if m != nil {
|
|
return m.Token
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *AuthResponse) GetTokenExpiration() uint64 {
|
|
if m != nil {
|
|
return m.TokenExpiration
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type NodeConnectionResponse struct {
|
|
BeaconNodeEndpoint string `protobuf:"bytes,1,opt,name=beacon_node_endpoint,json=beaconNodeEndpoint,proto3" json:"beacon_node_endpoint,omitempty"`
|
|
Connected bool `protobuf:"varint,2,opt,name=connected,proto3" json:"connected,omitempty"`
|
|
Syncing bool `protobuf:"varint,3,opt,name=syncing,proto3" json:"syncing,omitempty"`
|
|
GenesisTime uint64 `protobuf:"varint,4,opt,name=genesis_time,json=genesisTime,proto3" json:"genesis_time,omitempty"`
|
|
DepositContractAddress []byte `protobuf:"bytes,5,opt,name=deposit_contract_address,json=depositContractAddress,proto3" json:"deposit_contract_address,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *NodeConnectionResponse) Reset() { *m = NodeConnectionResponse{} }
|
|
func (m *NodeConnectionResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*NodeConnectionResponse) ProtoMessage() {}
|
|
func (*NodeConnectionResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_8a5153635bfe042e, []int{11}
|
|
}
|
|
func (m *NodeConnectionResponse) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *NodeConnectionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_NodeConnectionResponse.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *NodeConnectionResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_NodeConnectionResponse.Merge(m, src)
|
|
}
|
|
func (m *NodeConnectionResponse) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *NodeConnectionResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_NodeConnectionResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_NodeConnectionResponse proto.InternalMessageInfo
|
|
|
|
func (m *NodeConnectionResponse) GetBeaconNodeEndpoint() string {
|
|
if m != nil {
|
|
return m.BeaconNodeEndpoint
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *NodeConnectionResponse) GetConnected() bool {
|
|
if m != nil {
|
|
return m.Connected
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (m *NodeConnectionResponse) GetSyncing() bool {
|
|
if m != nil {
|
|
return m.Syncing
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (m *NodeConnectionResponse) GetGenesisTime() uint64 {
|
|
if m != nil {
|
|
return m.GenesisTime
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *NodeConnectionResponse) GetDepositContractAddress() []byte {
|
|
if m != nil {
|
|
return m.DepositContractAddress
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type LogsEndpointResponse struct {
|
|
ValidatorLogsEndpoint string `protobuf:"bytes,1,opt,name=validator_logs_endpoint,json=validatorLogsEndpoint,proto3" json:"validator_logs_endpoint,omitempty"`
|
|
BeaconLogsEndpoint string `protobuf:"bytes,2,opt,name=beacon_logs_endpoint,json=beaconLogsEndpoint,proto3" json:"beacon_logs_endpoint,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *LogsEndpointResponse) Reset() { *m = LogsEndpointResponse{} }
|
|
func (m *LogsEndpointResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*LogsEndpointResponse) ProtoMessage() {}
|
|
func (*LogsEndpointResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_8a5153635bfe042e, []int{12}
|
|
}
|
|
func (m *LogsEndpointResponse) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *LogsEndpointResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_LogsEndpointResponse.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *LogsEndpointResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_LogsEndpointResponse.Merge(m, src)
|
|
}
|
|
func (m *LogsEndpointResponse) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *LogsEndpointResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_LogsEndpointResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_LogsEndpointResponse proto.InternalMessageInfo
|
|
|
|
func (m *LogsEndpointResponse) GetValidatorLogsEndpoint() string {
|
|
if m != nil {
|
|
return m.ValidatorLogsEndpoint
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *LogsEndpointResponse) GetBeaconLogsEndpoint() string {
|
|
if m != nil {
|
|
return m.BeaconLogsEndpoint
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type VersionResponse struct {
|
|
Beacon string `protobuf:"bytes,1,opt,name=beacon,proto3" json:"beacon,omitempty"`
|
|
Validator string `protobuf:"bytes,2,opt,name=validator,proto3" json:"validator,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *VersionResponse) Reset() { *m = VersionResponse{} }
|
|
func (m *VersionResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*VersionResponse) ProtoMessage() {}
|
|
func (*VersionResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_8a5153635bfe042e, []int{13}
|
|
}
|
|
func (m *VersionResponse) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *VersionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_VersionResponse.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *VersionResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_VersionResponse.Merge(m, src)
|
|
}
|
|
func (m *VersionResponse) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *VersionResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_VersionResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_VersionResponse proto.InternalMessageInfo
|
|
|
|
func (m *VersionResponse) GetBeacon() string {
|
|
if m != nil {
|
|
return m.Beacon
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *VersionResponse) GetValidator() string {
|
|
if m != nil {
|
|
return m.Validator
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type ChangePasswordRequest struct {
|
|
CurrentPassword string `protobuf:"bytes,1,opt,name=current_password,json=currentPassword,proto3" json:"current_password,omitempty"`
|
|
Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
|
|
PasswordConfirmation string `protobuf:"bytes,3,opt,name=password_confirmation,json=passwordConfirmation,proto3" json:"password_confirmation,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *ChangePasswordRequest) Reset() { *m = ChangePasswordRequest{} }
|
|
func (m *ChangePasswordRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*ChangePasswordRequest) ProtoMessage() {}
|
|
func (*ChangePasswordRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_8a5153635bfe042e, []int{14}
|
|
}
|
|
func (m *ChangePasswordRequest) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *ChangePasswordRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_ChangePasswordRequest.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *ChangePasswordRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ChangePasswordRequest.Merge(m, src)
|
|
}
|
|
func (m *ChangePasswordRequest) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *ChangePasswordRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ChangePasswordRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ChangePasswordRequest proto.InternalMessageInfo
|
|
|
|
func (m *ChangePasswordRequest) GetCurrentPassword() string {
|
|
if m != nil {
|
|
return m.CurrentPassword
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *ChangePasswordRequest) GetPassword() string {
|
|
if m != nil {
|
|
return m.Password
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *ChangePasswordRequest) GetPasswordConfirmation() string {
|
|
if m != nil {
|
|
return m.PasswordConfirmation
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type HasWalletResponse struct {
|
|
WalletExists bool `protobuf:"varint,1,opt,name=wallet_exists,json=walletExists,proto3" json:"wallet_exists,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *HasWalletResponse) Reset() { *m = HasWalletResponse{} }
|
|
func (m *HasWalletResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*HasWalletResponse) ProtoMessage() {}
|
|
func (*HasWalletResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_8a5153635bfe042e, []int{15}
|
|
}
|
|
func (m *HasWalletResponse) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *HasWalletResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_HasWalletResponse.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *HasWalletResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_HasWalletResponse.Merge(m, src)
|
|
}
|
|
func (m *HasWalletResponse) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *HasWalletResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_HasWalletResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_HasWalletResponse proto.InternalMessageInfo
|
|
|
|
func (m *HasWalletResponse) GetWalletExists() bool {
|
|
if m != nil {
|
|
return m.WalletExists
|
|
}
|
|
return false
|
|
}
|
|
|
|
type ImportKeystoresRequest struct {
|
|
KeystoresImported []string `protobuf:"bytes,1,rep,name=keystores_imported,json=keystoresImported,proto3" json:"keystores_imported,omitempty"`
|
|
KeystoresPassword string `protobuf:"bytes,2,opt,name=keystores_password,json=keystoresPassword,proto3" json:"keystores_password,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *ImportKeystoresRequest) Reset() { *m = ImportKeystoresRequest{} }
|
|
func (m *ImportKeystoresRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*ImportKeystoresRequest) ProtoMessage() {}
|
|
func (*ImportKeystoresRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_8a5153635bfe042e, []int{16}
|
|
}
|
|
func (m *ImportKeystoresRequest) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *ImportKeystoresRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_ImportKeystoresRequest.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *ImportKeystoresRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ImportKeystoresRequest.Merge(m, src)
|
|
}
|
|
func (m *ImportKeystoresRequest) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *ImportKeystoresRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ImportKeystoresRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ImportKeystoresRequest proto.InternalMessageInfo
|
|
|
|
func (m *ImportKeystoresRequest) GetKeystoresImported() []string {
|
|
if m != nil {
|
|
return m.KeystoresImported
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *ImportKeystoresRequest) GetKeystoresPassword() string {
|
|
if m != nil {
|
|
return m.KeystoresPassword
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type ImportKeystoresResponse struct {
|
|
ImportedPublicKeys [][]byte `protobuf:"bytes,1,rep,name=imported_public_keys,json=importedPublicKeys,proto3" json:"imported_public_keys,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *ImportKeystoresResponse) Reset() { *m = ImportKeystoresResponse{} }
|
|
func (m *ImportKeystoresResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*ImportKeystoresResponse) ProtoMessage() {}
|
|
func (*ImportKeystoresResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_8a5153635bfe042e, []int{17}
|
|
}
|
|
func (m *ImportKeystoresResponse) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *ImportKeystoresResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_ImportKeystoresResponse.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *ImportKeystoresResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ImportKeystoresResponse.Merge(m, src)
|
|
}
|
|
func (m *ImportKeystoresResponse) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *ImportKeystoresResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ImportKeystoresResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ImportKeystoresResponse proto.InternalMessageInfo
|
|
|
|
func (m *ImportKeystoresResponse) GetImportedPublicKeys() [][]byte {
|
|
if m != nil {
|
|
return m.ImportedPublicKeys
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type HasUsedWebResponse struct {
|
|
HasSignedUp bool `protobuf:"varint,1,opt,name=has_signed_up,json=hasSignedUp,proto3" json:"has_signed_up,omitempty"`
|
|
HasWallet bool `protobuf:"varint,2,opt,name=has_wallet,json=hasWallet,proto3" json:"has_wallet,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *HasUsedWebResponse) Reset() { *m = HasUsedWebResponse{} }
|
|
func (m *HasUsedWebResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*HasUsedWebResponse) ProtoMessage() {}
|
|
func (*HasUsedWebResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_8a5153635bfe042e, []int{18}
|
|
}
|
|
func (m *HasUsedWebResponse) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *HasUsedWebResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_HasUsedWebResponse.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *HasUsedWebResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_HasUsedWebResponse.Merge(m, src)
|
|
}
|
|
func (m *HasUsedWebResponse) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *HasUsedWebResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_HasUsedWebResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_HasUsedWebResponse proto.InternalMessageInfo
|
|
|
|
func (m *HasUsedWebResponse) GetHasSignedUp() bool {
|
|
if m != nil {
|
|
return m.HasSignedUp
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (m *HasUsedWebResponse) GetHasWallet() bool {
|
|
if m != nil {
|
|
return m.HasWallet
|
|
}
|
|
return false
|
|
}
|
|
|
|
type LogsResponse struct {
|
|
Logs []string `protobuf:"bytes,1,rep,name=logs,proto3" json:"logs,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *LogsResponse) Reset() { *m = LogsResponse{} }
|
|
func (m *LogsResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*LogsResponse) ProtoMessage() {}
|
|
func (*LogsResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_8a5153635bfe042e, []int{19}
|
|
}
|
|
func (m *LogsResponse) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *LogsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_LogsResponse.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *LogsResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_LogsResponse.Merge(m, src)
|
|
}
|
|
func (m *LogsResponse) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *LogsResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_LogsResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_LogsResponse proto.InternalMessageInfo
|
|
|
|
func (m *LogsResponse) GetLogs() []string {
|
|
if m != nil {
|
|
return m.Logs
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type BeaconStatusResponse struct {
|
|
BeaconNodeEndpoint string `protobuf:"bytes,1,opt,name=beacon_node_endpoint,json=beaconNodeEndpoint,proto3" json:"beacon_node_endpoint,omitempty"`
|
|
Connected bool `protobuf:"varint,2,opt,name=connected,proto3" json:"connected,omitempty"`
|
|
Syncing bool `protobuf:"varint,3,opt,name=syncing,proto3" json:"syncing,omitempty"`
|
|
GenesisTime uint64 `protobuf:"varint,4,opt,name=genesis_time,json=genesisTime,proto3" json:"genesis_time,omitempty"`
|
|
DepositContractAddress []byte `protobuf:"bytes,5,opt,name=deposit_contract_address,json=depositContractAddress,proto3" json:"deposit_contract_address,omitempty"`
|
|
ChainHead *v1alpha1.ChainHead `protobuf:"bytes,6,opt,name=chain_head,json=chainHead,proto3" json:"chain_head,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *BeaconStatusResponse) Reset() { *m = BeaconStatusResponse{} }
|
|
func (m *BeaconStatusResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*BeaconStatusResponse) ProtoMessage() {}
|
|
func (*BeaconStatusResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_8a5153635bfe042e, []int{20}
|
|
}
|
|
func (m *BeaconStatusResponse) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *BeaconStatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_BeaconStatusResponse.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *BeaconStatusResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_BeaconStatusResponse.Merge(m, src)
|
|
}
|
|
func (m *BeaconStatusResponse) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *BeaconStatusResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_BeaconStatusResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_BeaconStatusResponse proto.InternalMessageInfo
|
|
|
|
func (m *BeaconStatusResponse) GetBeaconNodeEndpoint() string {
|
|
if m != nil {
|
|
return m.BeaconNodeEndpoint
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *BeaconStatusResponse) GetConnected() bool {
|
|
if m != nil {
|
|
return m.Connected
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (m *BeaconStatusResponse) GetSyncing() bool {
|
|
if m != nil {
|
|
return m.Syncing
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (m *BeaconStatusResponse) GetGenesisTime() uint64 {
|
|
if m != nil {
|
|
return m.GenesisTime
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *BeaconStatusResponse) GetDepositContractAddress() []byte {
|
|
if m != nil {
|
|
return m.DepositContractAddress
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *BeaconStatusResponse) GetChainHead() *v1alpha1.ChainHead {
|
|
if m != nil {
|
|
return m.ChainHead
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type BackupAccountsRequest struct {
|
|
PublicKeys [][]byte `protobuf:"bytes,1,rep,name=public_keys,json=publicKeys,proto3" json:"public_keys,omitempty"`
|
|
BackupPassword string `protobuf:"bytes,2,opt,name=backup_password,json=backupPassword,proto3" json:"backup_password,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *BackupAccountsRequest) Reset() { *m = BackupAccountsRequest{} }
|
|
func (m *BackupAccountsRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*BackupAccountsRequest) ProtoMessage() {}
|
|
func (*BackupAccountsRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_8a5153635bfe042e, []int{21}
|
|
}
|
|
func (m *BackupAccountsRequest) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *BackupAccountsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_BackupAccountsRequest.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *BackupAccountsRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_BackupAccountsRequest.Merge(m, src)
|
|
}
|
|
func (m *BackupAccountsRequest) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *BackupAccountsRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_BackupAccountsRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_BackupAccountsRequest proto.InternalMessageInfo
|
|
|
|
func (m *BackupAccountsRequest) GetPublicKeys() [][]byte {
|
|
if m != nil {
|
|
return m.PublicKeys
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *BackupAccountsRequest) GetBackupPassword() string {
|
|
if m != nil {
|
|
return m.BackupPassword
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type BackupAccountsResponse struct {
|
|
ZipFile []byte `protobuf:"bytes,1,opt,name=zip_file,json=zipFile,proto3" json:"zip_file,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *BackupAccountsResponse) Reset() { *m = BackupAccountsResponse{} }
|
|
func (m *BackupAccountsResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*BackupAccountsResponse) ProtoMessage() {}
|
|
func (*BackupAccountsResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_8a5153635bfe042e, []int{22}
|
|
}
|
|
func (m *BackupAccountsResponse) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *BackupAccountsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_BackupAccountsResponse.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *BackupAccountsResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_BackupAccountsResponse.Merge(m, src)
|
|
}
|
|
func (m *BackupAccountsResponse) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *BackupAccountsResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_BackupAccountsResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_BackupAccountsResponse proto.InternalMessageInfo
|
|
|
|
func (m *BackupAccountsResponse) GetZipFile() []byte {
|
|
if m != nil {
|
|
return m.ZipFile
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterEnum("ethereum.validator.accounts.v2.KeymanagerKind", KeymanagerKind_name, KeymanagerKind_value)
|
|
proto.RegisterType((*CreateWalletRequest)(nil), "ethereum.validator.accounts.v2.CreateWalletRequest")
|
|
proto.RegisterType((*CreateWalletResponse)(nil), "ethereum.validator.accounts.v2.CreateWalletResponse")
|
|
proto.RegisterType((*EditWalletConfigRequest)(nil), "ethereum.validator.accounts.v2.EditWalletConfigRequest")
|
|
proto.RegisterType((*GenerateMnemonicResponse)(nil), "ethereum.validator.accounts.v2.GenerateMnemonicResponse")
|
|
proto.RegisterType((*WalletResponse)(nil), "ethereum.validator.accounts.v2.WalletResponse")
|
|
proto.RegisterType((*ListAccountsRequest)(nil), "ethereum.validator.accounts.v2.ListAccountsRequest")
|
|
proto.RegisterType((*ListAccountsResponse)(nil), "ethereum.validator.accounts.v2.ListAccountsResponse")
|
|
proto.RegisterType((*Account)(nil), "ethereum.validator.accounts.v2.Account")
|
|
proto.RegisterType((*AccountRequest)(nil), "ethereum.validator.accounts.v2.AccountRequest")
|
|
proto.RegisterType((*AuthRequest)(nil), "ethereum.validator.accounts.v2.AuthRequest")
|
|
proto.RegisterType((*AuthResponse)(nil), "ethereum.validator.accounts.v2.AuthResponse")
|
|
proto.RegisterType((*NodeConnectionResponse)(nil), "ethereum.validator.accounts.v2.NodeConnectionResponse")
|
|
proto.RegisterType((*LogsEndpointResponse)(nil), "ethereum.validator.accounts.v2.LogsEndpointResponse")
|
|
proto.RegisterType((*VersionResponse)(nil), "ethereum.validator.accounts.v2.VersionResponse")
|
|
proto.RegisterType((*ChangePasswordRequest)(nil), "ethereum.validator.accounts.v2.ChangePasswordRequest")
|
|
proto.RegisterType((*HasWalletResponse)(nil), "ethereum.validator.accounts.v2.HasWalletResponse")
|
|
proto.RegisterType((*ImportKeystoresRequest)(nil), "ethereum.validator.accounts.v2.ImportKeystoresRequest")
|
|
proto.RegisterType((*ImportKeystoresResponse)(nil), "ethereum.validator.accounts.v2.ImportKeystoresResponse")
|
|
proto.RegisterType((*HasUsedWebResponse)(nil), "ethereum.validator.accounts.v2.HasUsedWebResponse")
|
|
proto.RegisterType((*LogsResponse)(nil), "ethereum.validator.accounts.v2.LogsResponse")
|
|
proto.RegisterType((*BeaconStatusResponse)(nil), "ethereum.validator.accounts.v2.BeaconStatusResponse")
|
|
proto.RegisterType((*BackupAccountsRequest)(nil), "ethereum.validator.accounts.v2.BackupAccountsRequest")
|
|
proto.RegisterType((*BackupAccountsResponse)(nil), "ethereum.validator.accounts.v2.BackupAccountsResponse")
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterFile("proto/validator/accounts/v2/web_api.proto", fileDescriptor_8a5153635bfe042e)
|
|
}
|
|
|
|
var fileDescriptor_8a5153635bfe042e = []byte{
|
|
// 2138 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x58, 0xcd, 0x6f, 0x1c, 0x49,
|
|
0x15, 0xa7, 0x6d, 0xc7, 0x19, 0x3f, 0x4f, 0x6c, 0x6f, 0xd9, 0x71, 0x26, 0x8e, 0x63, 0x3b, 0x95,
|
|
0x0f, 0x3b, 0x4e, 0x76, 0x26, 0x99, 0xb0, 0x49, 0x94, 0x0b, 0x8a, 0x9d, 0xd9, 0x24, 0x72, 0x3e,
|
|
0x4c, 0x27, 0x9b, 0x88, 0xcb, 0xb6, 0xca, 0xdd, 0x95, 0x99, 0x92, 0x67, 0xba, 0x7b, 0xbb, 0x6b,
|
|
0x26, 0x71, 0xb8, 0xc0, 0xb2, 0x12, 0x02, 0x89, 0x03, 0xec, 0x01, 0x21, 0x21, 0x24, 0xb8, 0x21,
|
|
0x71, 0x41, 0x42, 0xda, 0x7f, 0x01, 0x6e, 0x48, 0x5c, 0x91, 0x40, 0x11, 0x17, 0xe0, 0x9f, 0x40,
|
|
0xf5, 0xd5, 0x1f, 0x93, 0xe9, 0x6d, 0x5b, 0x88, 0x0b, 0xb7, 0xae, 0xf7, 0xf9, 0xab, 0x57, 0xaf,
|
|
0x5e, 0xbd, 0xd7, 0x70, 0x39, 0x8c, 0x02, 0x1e, 0x34, 0x06, 0xa4, 0xcb, 0x3c, 0xc2, 0x83, 0xa8,
|
|
0x41, 0x5c, 0x37, 0xe8, 0xfb, 0x3c, 0x6e, 0x0c, 0x9a, 0x8d, 0xd7, 0x74, 0xcf, 0x21, 0x21, 0xab,
|
|
0x4b, 0x19, 0xb4, 0x42, 0x79, 0x87, 0x46, 0xb4, 0xdf, 0xab, 0x27, 0xd2, 0x75, 0x23, 0x5d, 0x1f,
|
|
0x34, 0x97, 0xd6, 0x94, 0xa9, 0x3d, 0x4a, 0xdc, 0xc0, 0x6f, 0x44, 0xa1, 0xdb, 0x18, 0x5c, 0x6f,
|
|
0x74, 0x28, 0xe9, 0xf2, 0x8e, 0xb2, 0xb0, 0xb4, 0x4a, 0x79, 0xa7, 0x31, 0xb8, 0x4e, 0xba, 0x61,
|
|
0x87, 0x5c, 0xd7, 0x82, 0x8e, 0xdb, 0x21, 0xcc, 0xd7, 0x02, 0xa7, 0x72, 0x02, 0x7e, 0xe0, 0x51,
|
|
0xcd, 0x58, 0xce, 0x31, 0x52, 0xff, 0x9a, 0xdb, 0x0e, 0x82, 0x76, 0x97, 0x36, 0x48, 0xc8, 0x1a,
|
|
0xc4, 0xf7, 0x03, 0x4e, 0x38, 0x0b, 0xfc, 0x58, 0x73, 0xcf, 0x68, 0xae, 0x5c, 0xed, 0xf5, 0x5f,
|
|
0x35, 0x68, 0x2f, 0xe4, 0x07, 0x9a, 0xf9, 0x61, 0x9b, 0xf1, 0x4e, 0x7f, 0xaf, 0xee, 0x06, 0xbd,
|
|
0x46, 0x3b, 0x68, 0x07, 0xa9, 0x94, 0x58, 0xa9, 0x1d, 0x89, 0x2f, 0x25, 0x8e, 0xff, 0x3d, 0x06,
|
|
0xf3, 0xdb, 0x11, 0x25, 0x9c, 0xbe, 0x24, 0xdd, 0x2e, 0xe5, 0x36, 0xfd, 0xac, 0x4f, 0x63, 0x8e,
|
|
0x9e, 0x00, 0xec, 0xd3, 0x83, 0x1e, 0xf1, 0x49, 0x9b, 0x46, 0x35, 0x6b, 0xcd, 0xda, 0x98, 0x69,
|
|
0xd6, 0xeb, 0x5f, 0x1f, 0xb0, 0xfa, 0x4e, 0xa2, 0xb1, 0xc3, 0x7c, 0xcf, 0xce, 0x58, 0x40, 0xeb,
|
|
0x30, 0xfb, 0x5a, 0x3a, 0x70, 0x42, 0x12, 0xc7, 0xaf, 0x83, 0xc8, 0xab, 0x8d, 0xad, 0x59, 0x1b,
|
|
0x53, 0xf6, 0x8c, 0x22, 0xef, 0x6a, 0x2a, 0x5a, 0x82, 0x4a, 0xcf, 0xa7, 0xbd, 0xc0, 0x67, 0x6e,
|
|
0x6d, 0x5c, 0x4a, 0x24, 0x6b, 0x74, 0x0e, 0xaa, 0x7e, 0xbf, 0xe7, 0x18, 0x97, 0xb5, 0x89, 0x35,
|
|
0x6b, 0x63, 0xc2, 0x9e, 0xf6, 0xfb, 0xbd, 0xbb, 0x9a, 0x84, 0x56, 0x61, 0x3a, 0xa2, 0xbd, 0x80,
|
|
0x53, 0x87, 0x78, 0x5e, 0x54, 0x3b, 0x26, 0x2d, 0x80, 0x22, 0xdd, 0xf5, 0xbc, 0x08, 0x5d, 0x82,
|
|
0x59, 0x2d, 0xe0, 0x46, 0x02, 0x0c, 0xef, 0xd4, 0x26, 0xa5, 0xd0, 0x09, 0x45, 0xde, 0x8e, 0xf8,
|
|
0x2e, 0xe1, 0x9d, 0x8c, 0xdc, 0x3e, 0x3d, 0x50, 0x72, 0xc7, 0xb3, 0x72, 0x3b, 0xf4, 0x40, 0xca,
|
|
0x5d, 0x01, 0x64, 0xec, 0x91, 0xd4, 0x64, 0x45, 0x8a, 0x6a, 0x0b, 0xdb, 0x44, 0x1b, 0xc5, 0x9f,
|
|
0xc2, 0x42, 0x3e, 0xd8, 0x71, 0x18, 0xf8, 0x31, 0x45, 0x1f, 0xc3, 0xa4, 0x0a, 0x83, 0x8c, 0xf4,
|
|
0x74, 0x79, 0xa4, 0xf3, 0xfa, 0xb6, 0xd6, 0xc6, 0x5f, 0x59, 0x70, 0xaa, 0xe5, 0x31, 0xae, 0xd8,
|
|
0xdb, 0x81, 0xff, 0x8a, 0xb5, 0xcd, 0x89, 0x0e, 0x45, 0xc6, 0x3a, 0x4c, 0x64, 0xc6, 0x0e, 0x19,
|
|
0x99, 0xf1, 0xc3, 0x47, 0x66, 0x62, 0x74, 0x64, 0x6e, 0x42, 0xed, 0x3e, 0xf5, 0x69, 0x44, 0x38,
|
|
0x7d, 0xac, 0x8f, 0x3b, 0x89, 0x4e, 0x36, 0x25, 0xac, 0x7c, 0x4a, 0xe0, 0x1f, 0x5b, 0x30, 0x33,
|
|
0x14, 0xcc, 0x55, 0x98, 0x4e, 0x52, 0x8d, 0x77, 0xcc, 0x46, 0x4d, 0x9a, 0xf1, 0x0e, 0x7a, 0x09,
|
|
0xb3, 0x69, 0x66, 0x3a, 0xfb, 0xcc, 0x57, 0xb9, 0x78, 0xf4, 0x04, 0x9f, 0xd9, 0xcf, 0xad, 0xf1,
|
|
0xcf, 0x2c, 0x98, 0x7f, 0xc4, 0x62, 0x6e, 0xb2, 0xd1, 0x84, 0xfe, 0x43, 0x98, 0x6f, 0x53, 0xee,
|
|
0x78, 0x34, 0x0c, 0x62, 0xc6, 0x1d, 0xfe, 0xc6, 0xf1, 0x08, 0x27, 0x12, 0x59, 0xc5, 0x9e, 0x6b,
|
|
0x53, 0x7e, 0x4f, 0x71, 0x9e, 0xbf, 0xb9, 0x47, 0x38, 0x41, 0x67, 0x60, 0x2a, 0x24, 0x6d, 0xea,
|
|
0xc4, 0xec, 0x2d, 0x95, 0xc8, 0x8e, 0xd9, 0x15, 0x41, 0x78, 0xc6, 0xde, 0x52, 0x74, 0x16, 0x40,
|
|
0x32, 0x79, 0xb0, 0x4f, 0x7d, 0x1d, 0x78, 0x29, 0xfe, 0x5c, 0x10, 0xd0, 0x1c, 0x8c, 0x93, 0x6e,
|
|
0x57, 0x46, 0xb9, 0x62, 0x8b, 0x4f, 0xfc, 0x1b, 0x0b, 0x16, 0xf2, 0xa0, 0x74, 0x9c, 0xb6, 0xa1,
|
|
0x92, 0xdc, 0x24, 0x6b, 0x6d, 0x7c, 0x63, 0xba, 0xb9, 0x5e, 0xb6, 0x7f, 0x6d, 0xc3, 0x4e, 0x14,
|
|
0x45, 0x32, 0xf8, 0xf4, 0x8d, 0x08, 0x75, 0x82, 0x49, 0x27, 0x8d, 0x20, 0xef, 0x26, 0xb8, 0xce,
|
|
0x02, 0xf0, 0x80, 0x93, 0xae, 0xda, 0xd4, 0xb8, 0xdc, 0xd4, 0x94, 0xa4, 0x88, 0x5d, 0xe1, 0xdf,
|
|
0x5b, 0x70, 0x5c, 0x1b, 0x47, 0x4d, 0x38, 0xa9, 0xbd, 0x33, 0xbf, 0xed, 0x84, 0xfd, 0xbd, 0x2e,
|
|
0x73, 0x45, 0xaa, 0xc9, 0x78, 0x55, 0xed, 0xf9, 0x94, 0xb9, 0x2b, 0x79, 0x3b, 0xf4, 0x40, 0x54,
|
|
0x06, 0x0d, 0xc9, 0xf1, 0x49, 0x8f, 0x6a, 0x0c, 0xd3, 0x9a, 0xf6, 0x84, 0xf4, 0xa8, 0x40, 0x3a,
|
|
0x7c, 0x00, 0xe3, 0xd2, 0xe0, 0x09, 0x2f, 0x17, 0xfd, 0x75, 0x21, 0x17, 0xb1, 0x81, 0x2c, 0xb9,
|
|
0xd9, 0x9c, 0x9d, 0x49, 0xc9, 0x32, 0x65, 0x77, 0x60, 0xc6, 0xc4, 0x23, 0xbd, 0x62, 0x29, 0x5c,
|
|
0x15, 0xd4, 0xaa, 0x0d, 0xa1, 0x41, 0x19, 0xa3, 0x1a, 0x1c, 0x67, 0xbe, 0xc7, 0x5c, 0x1a, 0xd7,
|
|
0xc6, 0xd6, 0xc6, 0x37, 0x26, 0x6c, 0xb3, 0xc4, 0x9f, 0xc2, 0xf4, 0xdd, 0x3e, 0xef, 0x18, 0x4b,
|
|
0x4b, 0x50, 0x49, 0xea, 0xa4, 0x4e, 0x79, 0xb3, 0x46, 0x37, 0xe0, 0xa4, 0xf9, 0x76, 0x5c, 0x71,
|
|
0xc5, 0xa3, 0x9e, 0x04, 0xa5, 0x37, 0xbd, 0x60, 0x98, 0xdb, 0x19, 0x1e, 0x7e, 0x0a, 0x55, 0x65,
|
|
0x5f, 0x1f, 0xfe, 0x02, 0x1c, 0x53, 0xa7, 0xa5, 0xac, 0xab, 0x05, 0xba, 0x0c, 0x73, 0xf2, 0xc3,
|
|
0xa1, 0x6f, 0x42, 0x16, 0xa5, 0x56, 0x27, 0xec, 0x59, 0x49, 0x6f, 0x25, 0x64, 0xfc, 0x37, 0x0b,
|
|
0x16, 0x9f, 0x04, 0x1e, 0xdd, 0x0e, 0x7c, 0x9f, 0xba, 0x82, 0x94, 0xd8, 0xbe, 0x06, 0x0b, 0xfa,
|
|
0x29, 0x14, 0x0f, 0x9e, 0x43, 0x7d, 0x2f, 0x0c, 0x98, 0xcf, 0xb5, 0x2b, 0xa4, 0x78, 0x42, 0xb7,
|
|
0xa5, 0x39, 0x68, 0x19, 0xa6, 0x5c, 0x65, 0x87, 0xaa, 0xbb, 0x58, 0xb1, 0x53, 0x82, 0x88, 0x5a,
|
|
0x7c, 0xe0, 0xbb, 0xcc, 0x6f, 0xcb, 0x13, 0xab, 0xd8, 0x66, 0x29, 0x8e, 0xbd, 0x4d, 0x7d, 0x1a,
|
|
0xb3, 0xd8, 0xe1, 0xac, 0x47, 0xcd, 0x83, 0xa0, 0x69, 0xcf, 0x59, 0x8f, 0xa2, 0xdb, 0x50, 0x33,
|
|
0xc7, 0xee, 0x06, 0x3e, 0x8f, 0x88, 0xcb, 0x65, 0x01, 0xa4, 0x71, 0x2c, 0x5f, 0x87, 0xaa, 0xbd,
|
|
0xa8, 0xf9, 0xdb, 0x9a, 0x7d, 0x57, 0x71, 0xf1, 0xf7, 0xc4, 0xc5, 0x09, 0xda, 0xb1, 0x41, 0x99,
|
|
0xec, 0xef, 0x26, 0x9c, 0x4a, 0xae, 0x87, 0xd3, 0x0d, 0xda, 0xf1, 0xf0, 0x16, 0x4f, 0x26, 0xec,
|
|
0xac, 0x7e, 0x26, 0x2e, 0x79, 0xa5, 0xb1, 0x6c, 0x5c, 0xb2, 0x1a, 0xf8, 0x3e, 0xcc, 0xbe, 0xa0,
|
|
0x51, 0x9c, 0x0d, 0xee, 0x22, 0x4c, 0x2a, 0x41, 0xed, 0x4b, 0xaf, 0x44, 0x08, 0x13, 0xaf, 0xda,
|
|
0x62, 0x4a, 0xc0, 0x5f, 0x5a, 0x70, 0x72, 0xbb, 0x43, 0xfc, 0x36, 0x35, 0x0f, 0xad, 0xc9, 0xb4,
|
|
0xcb, 0x30, 0xe7, 0xf6, 0xa3, 0x88, 0xfa, 0x99, 0x97, 0x59, 0x59, 0x9e, 0xd5, 0xf4, 0xec, 0xd3,
|
|
0x3c, 0xf4, 0x78, 0x1f, 0x22, 0x29, 0xc7, 0xbf, 0x26, 0x29, 0x6f, 0xc3, 0x07, 0x0f, 0x48, 0x3c,
|
|
0x54, 0xbe, 0xcf, 0xc3, 0x09, 0x5d, 0xbe, 0xe9, 0x1b, 0x16, 0xcb, 0xda, 0x24, 0xce, 0xbc, 0xaa,
|
|
0x88, 0x2d, 0x49, 0xc3, 0x03, 0x58, 0x7c, 0xd8, 0x0b, 0x83, 0x88, 0x8b, 0x6b, 0xc5, 0x83, 0x88,
|
|
0x66, 0x6a, 0x2d, 0xda, 0x37, 0x34, 0x87, 0x49, 0x19, 0xea, 0xc9, 0xab, 0x38, 0x65, 0x7f, 0x90,
|
|
0x70, 0x1e, 0x6a, 0x46, 0x5e, 0x7c, 0x68, 0x77, 0xa9, 0xb8, 0x09, 0x01, 0xde, 0x81, 0x53, 0xef,
|
|
0xf9, 0x4d, 0xb3, 0xde, 0xb8, 0x73, 0xde, 0xaf, 0x02, 0xc8, 0xf0, 0x92, 0x9a, 0x15, 0xe3, 0x97,
|
|
0x80, 0x1e, 0x90, 0xf8, 0x93, 0x98, 0x7a, 0x2f, 0xe9, 0x5e, 0x62, 0x07, 0xc3, 0x89, 0x0e, 0x89,
|
|
0x9d, 0x98, 0xb5, 0x7d, 0xea, 0x39, 0xfd, 0x50, 0xef, 0x7f, 0xba, 0x43, 0xe2, 0x67, 0x92, 0xf6,
|
|
0x49, 0x28, 0xaa, 0xa9, 0x90, 0xd1, 0x3d, 0x83, 0xbe, 0x30, 0x1d, 0x13, 0x4a, 0x8c, 0xa1, 0x2a,
|
|
0xd2, 0x28, 0x31, 0x89, 0x60, 0x42, 0x64, 0x9c, 0x8e, 0x82, 0xfc, 0xc6, 0xbf, 0x1a, 0x83, 0x85,
|
|
0x2d, 0x99, 0x3a, 0xcf, 0x38, 0xe1, 0xfd, 0xf8, 0xff, 0xec, 0xf6, 0xa2, 0x6f, 0x01, 0xc8, 0x46,
|
|
0xdc, 0xe9, 0x50, 0xe2, 0xc9, 0x16, 0x6f, 0xba, 0xb9, 0x96, 0xbe, 0x6f, 0x94, 0x77, 0xea, 0xa6,
|
|
0xfd, 0xae, 0x6f, 0x0b, 0xc1, 0x07, 0x94, 0x78, 0xf6, 0x94, 0x6b, 0x3e, 0x31, 0x81, 0x93, 0x5b,
|
|
0xc4, 0xdd, 0xef, 0x87, 0xc3, 0xaf, 0x79, 0x69, 0x95, 0x5f, 0x87, 0xd9, 0x3d, 0xa9, 0xf9, 0x5e,
|
|
0xaf, 0xab, 0xc8, 0x49, 0x36, 0xdd, 0x80, 0xc5, 0x61, 0x17, 0xfa, 0x10, 0x4e, 0x43, 0xe5, 0x2d,
|
|
0x0b, 0x9d, 0x57, 0xac, 0x4b, 0xf5, 0xb3, 0x77, 0xfc, 0x2d, 0x0b, 0x3f, 0x66, 0x5d, 0xba, 0x79,
|
|
0x0b, 0x66, 0xf2, 0x6d, 0x08, 0x9a, 0x86, 0xe3, 0xf7, 0x5a, 0xf6, 0xc3, 0x17, 0xad, 0x7b, 0x73,
|
|
0xdf, 0x40, 0x55, 0xa8, 0x3c, 0x7c, 0xbc, 0xfb, 0xd4, 0x7e, 0xde, 0xba, 0x37, 0x67, 0x21, 0x80,
|
|
0x49, 0xbb, 0xf5, 0xf8, 0xe9, 0xf3, 0xd6, 0xdc, 0x58, 0xf3, 0x9f, 0x13, 0x30, 0xa9, 0x12, 0x04,
|
|
0xfd, 0xda, 0x82, 0x6a, 0xb6, 0x11, 0x45, 0x37, 0xca, 0x5e, 0xfe, 0x11, 0x33, 0xc2, 0xd2, 0x37,
|
|
0x8f, 0xa6, 0xa4, 0xb6, 0x86, 0x2f, 0x7d, 0xfe, 0x97, 0x7f, 0x7c, 0x39, 0xb6, 0x86, 0xcf, 0x88,
|
|
0x81, 0x2c, 0x1d, 0xd3, 0x54, 0x2e, 0x37, 0x5c, 0xa9, 0x72, 0xc7, 0xda, 0x44, 0x1c, 0xaa, 0xd9,
|
|
0x36, 0x16, 0x2d, 0xd6, 0xd5, 0xd8, 0x53, 0x37, 0x03, 0x4d, 0xbd, 0x25, 0xc6, 0x9e, 0xa5, 0x23,
|
|
0xf6, 0xca, 0x78, 0x59, 0xfa, 0x5f, 0x44, 0x0b, 0xa3, 0xfc, 0xa3, 0x9f, 0x58, 0x30, 0x37, 0xdc,
|
|
0x88, 0x16, 0xba, 0xbe, 0x5d, 0xe6, 0xba, 0xa8, 0xa5, 0xc5, 0xeb, 0x12, 0xc4, 0x39, 0xb4, 0x9a,
|
|
0x07, 0x61, 0xda, 0xda, 0x46, 0x5b, 0x2b, 0xa2, 0x3f, 0x58, 0x30, 0x3b, 0x54, 0x71, 0xd0, 0xcd,
|
|
0x32, 0xb7, 0xa3, 0x4b, 0xe3, 0xd2, 0xad, 0x23, 0xeb, 0x69, 0xb4, 0xd7, 0x24, 0xda, 0x4d, 0x7c,
|
|
0x71, 0xe4, 0x91, 0x25, 0x55, 0xb2, 0xa1, 0x6a, 0xdc, 0x1d, 0x6b, 0xb3, 0xf9, 0xd7, 0x71, 0xa8,
|
|
0x24, 0x33, 0xd9, 0x2f, 0x2c, 0xa8, 0x66, 0x3b, 0xd0, 0xf2, 0x6c, 0x1b, 0xd1, 0x44, 0x97, 0x67,
|
|
0xdb, 0xa8, 0x26, 0x17, 0xaf, 0x48, 0xe8, 0x35, 0xb4, 0x98, 0x87, 0x9e, 0xf4, 0xaf, 0xbf, 0xb5,
|
|
0x60, 0x26, 0x7f, 0x07, 0xd1, 0x47, 0x65, 0x8e, 0x46, 0x96, 0x85, 0xa5, 0x9b, 0x47, 0x55, 0xd3,
|
|
0x08, 0x37, 0x24, 0x42, 0x8c, 0xcf, 0x8e, 0x46, 0xd8, 0x50, 0x35, 0x43, 0xdc, 0x88, 0x1f, 0x5a,
|
|
0x30, 0x93, 0x7f, 0xc4, 0xcb, 0xb1, 0x8e, 0x7c, 0xf4, 0x97, 0x0a, 0x12, 0xba, 0xe8, 0x6e, 0x9a,
|
|
0x32, 0xd6, 0xa0, 0x1e, 0x93, 0xc7, 0xfb, 0xfd, 0x0a, 0x4c, 0xaa, 0xc7, 0x03, 0x7d, 0x61, 0xc1,
|
|
0xec, 0x7d, 0xca, 0xb3, 0x4f, 0x49, 0xe1, 0x7d, 0x29, 0x3d, 0xc2, 0x51, 0x0f, 0x12, 0x3e, 0x2f,
|
|
0x41, 0x9d, 0x45, 0x43, 0xa0, 0xf4, 0x6f, 0x99, 0x58, 0xb9, 0xfc, 0xca, 0x82, 0xd3, 0xf7, 0x29,
|
|
0x7f, 0x61, 0xd8, 0xbb, 0x24, 0xe2, 0xcc, 0x65, 0xa1, 0x6c, 0x34, 0xd0, 0xad, 0x82, 0xc2, 0x5f,
|
|
0xa8, 0x61, 0x02, 0xf5, 0x51, 0x81, 0x62, 0x91, 0x96, 0x86, 0xbc, 0x29, 0x21, 0x5f, 0x40, 0x78,
|
|
0x24, 0xe4, 0x30, 0x87, 0xed, 0x77, 0x16, 0x9c, 0xca, 0xe1, 0xa0, 0xd1, 0xab, 0x20, 0xea, 0x11,
|
|
0xdf, 0xa5, 0xa8, 0x59, 0xea, 0x3e, 0x15, 0x36, 0x90, 0x6f, 0x1c, 0x49, 0x27, 0x9f, 0x84, 0x68,
|
|
0x6d, 0x34, 0xe0, 0x0c, 0xa4, 0x1f, 0x59, 0x70, 0x22, 0x0b, 0x37, 0x46, 0x57, 0x0b, 0x1c, 0x8a,
|
|
0xfb, 0x98, 0x8a, 0x19, 0x78, 0xe7, 0xca, 0xe0, 0xc5, 0x45, 0xc5, 0x51, 0x83, 0x19, 0xa4, 0x9e,
|
|
0x7f, 0x69, 0xc1, 0x42, 0x16, 0xcb, 0x16, 0xe9, 0x0a, 0x8c, 0xb9, 0x02, 0x53, 0x0c, 0xc9, 0x48,
|
|
0x1b, 0x64, 0x1b, 0x65, 0xc8, 0x8c, 0x02, 0xbe, 0x28, 0x01, 0xae, 0xa2, 0xb3, 0x23, 0x01, 0xee,
|
|
0x19, 0x14, 0x03, 0xf8, 0x20, 0x8b, 0xee, 0xdb, 0x7d, 0xda, 0xa7, 0x85, 0x77, 0xe3, 0x62, 0x99,
|
|
0x77, 0xa9, 0x8e, 0xb1, 0x74, 0xbd, 0x8c, 0x96, 0x46, 0xba, 0xfe, 0x4c, 0xba, 0xf0, 0xa0, 0x72,
|
|
0x9f, 0xf2, 0x5d, 0x4a, 0xa3, 0xe2, 0xab, 0xb8, 0x5c, 0xe0, 0x4e, 0x6a, 0x95, 0x78, 0x09, 0x85,
|
|
0x4c, 0xf3, 0x4f, 0xc7, 0x60, 0xf2, 0x81, 0xfc, 0x19, 0x8a, 0x7e, 0xae, 0x52, 0x78, 0x2b, 0x69,
|
|
0x0d, 0xd3, 0xa1, 0xb0, 0x10, 0x40, 0x69, 0xb9, 0x1c, 0x3d, 0x5c, 0xe2, 0xab, 0x12, 0xda, 0x25,
|
|
0x74, 0x21, 0x0f, 0x4d, 0xfd, 0x96, 0x95, 0x7f, 0x58, 0x1d, 0x37, 0xf5, 0xae, 0x9e, 0x73, 0x9e,
|
|
0x1d, 0xaa, 0xfe, 0x8b, 0xf2, 0x34, 0x6a, 0x1a, 0xc4, 0x57, 0x24, 0xa0, 0x8b, 0xe8, 0xfc, 0x48,
|
|
0x40, 0xa2, 0xd7, 0x6e, 0xd0, 0xc4, 0xf5, 0x77, 0x01, 0x44, 0x4a, 0xa8, 0x99, 0xae, 0x10, 0x48,
|
|
0xa3, 0x0c, 0xc8, 0xd0, 0x50, 0x88, 0x2f, 0x48, 0x0c, 0x2b, 0x68, 0x79, 0x24, 0x86, 0x81, 0x76,
|
|
0xf7, 0x03, 0x0b, 0xe6, 0x9e, 0xf1, 0x88, 0x92, 0xde, 0x56, 0x32, 0x6a, 0x16, 0x62, 0xb8, 0x90,
|
|
0x62, 0x50, 0xc7, 0x5e, 0x8f, 0x42, 0xb7, 0x3e, 0xb8, 0x5e, 0xcf, 0x4e, 0x16, 0xb8, 0x21, 0x1d,
|
|
0x5f, 0x46, 0xeb, 0xc5, 0x9b, 0x4f, 0xea, 0xb4, 0x70, 0x7c, 0xcd, 0x42, 0x3f, 0xb5, 0x60, 0x5e,
|
|
0xa1, 0x78, 0x91, 0x9d, 0x92, 0x0b, 0x81, 0x5c, 0x3d, 0xcc, 0xa9, 0x24, 0x80, 0x9a, 0x12, 0xd0,
|
|
0x55, 0xb4, 0x59, 0x0c, 0x28, 0xa5, 0x1a, 0x4c, 0xcd, 0x7f, 0x8d, 0xc3, 0xc4, 0xdd, 0x3e, 0xef,
|
|
0x88, 0xf3, 0x49, 0x47, 0xb2, 0x42, 0x48, 0xcd, 0x32, 0x48, 0xef, 0x8f, 0x75, 0xf8, 0x9c, 0x04,
|
|
0x76, 0x06, 0x9d, 0xce, 0x03, 0x63, 0x3e, 0xe3, 0x8c, 0x74, 0xd9, 0x5b, 0xea, 0xa1, 0xcf, 0x2d,
|
|
0x38, 0xf6, 0x28, 0x68, 0x33, 0x1f, 0x5d, 0x29, 0xfd, 0x11, 0x97, 0xfe, 0x2b, 0x2a, 0x0f, 0x50,
|
|
0xf6, 0xc7, 0x8f, 0x69, 0x88, 0xf0, 0x7c, 0x1e, 0x47, 0x57, 0xf8, 0x15, 0x4d, 0xc6, 0x17, 0x16,
|
|
0x4c, 0x8a, 0x39, 0xb3, 0x1f, 0xfe, 0x2f, 0x51, 0xac, 0x4a, 0x14, 0xa7, 0xf1, 0x50, 0x13, 0x1e,
|
|
0x4b, 0xc7, 0x02, 0xc6, 0x77, 0x60, 0xf2, 0x51, 0xd0, 0x0e, 0xfa, 0xbc, 0xf0, 0x10, 0x8a, 0x7a,
|
|
0x98, 0x02, 0xd3, 0x5d, 0x69, 0xed, 0x8e, 0xb5, 0xb9, 0x55, 0xfd, 0xe3, 0xbb, 0x15, 0xeb, 0xcf,
|
|
0xef, 0x56, 0xac, 0xbf, 0xbf, 0x5b, 0xb1, 0xf6, 0x26, 0xa5, 0xfa, 0x8d, 0xff, 0x04, 0x00, 0x00,
|
|
0xff, 0xff, 0x0c, 0xa0, 0x62, 0x84, 0x38, 0x1a, 0x00, 0x00,
|
|
}
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ context.Context
|
|
var _ grpc.ClientConn
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the grpc package it is being compiled against.
|
|
const _ = grpc.SupportPackageIsVersion4
|
|
|
|
// WalletClient is the client API for Wallet service.
|
|
//
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
type WalletClient interface {
|
|
CreateWallet(ctx context.Context, in *CreateWalletRequest, opts ...grpc.CallOption) (*CreateWalletResponse, error)
|
|
WalletConfig(ctx context.Context, in *types.Empty, opts ...grpc.CallOption) (*WalletResponse, error)
|
|
GenerateMnemonic(ctx context.Context, in *types.Empty, opts ...grpc.CallOption) (*GenerateMnemonicResponse, error)
|
|
ImportKeystores(ctx context.Context, in *ImportKeystoresRequest, opts ...grpc.CallOption) (*ImportKeystoresResponse, error)
|
|
}
|
|
|
|
type walletClient struct {
|
|
cc *grpc.ClientConn
|
|
}
|
|
|
|
func NewWalletClient(cc *grpc.ClientConn) WalletClient {
|
|
return &walletClient{cc}
|
|
}
|
|
|
|
func (c *walletClient) CreateWallet(ctx context.Context, in *CreateWalletRequest, opts ...grpc.CallOption) (*CreateWalletResponse, error) {
|
|
out := new(CreateWalletResponse)
|
|
err := c.cc.Invoke(ctx, "/ethereum.validator.accounts.v2.Wallet/CreateWallet", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *walletClient) WalletConfig(ctx context.Context, in *types.Empty, opts ...grpc.CallOption) (*WalletResponse, error) {
|
|
out := new(WalletResponse)
|
|
err := c.cc.Invoke(ctx, "/ethereum.validator.accounts.v2.Wallet/WalletConfig", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *walletClient) GenerateMnemonic(ctx context.Context, in *types.Empty, opts ...grpc.CallOption) (*GenerateMnemonicResponse, error) {
|
|
out := new(GenerateMnemonicResponse)
|
|
err := c.cc.Invoke(ctx, "/ethereum.validator.accounts.v2.Wallet/GenerateMnemonic", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *walletClient) ImportKeystores(ctx context.Context, in *ImportKeystoresRequest, opts ...grpc.CallOption) (*ImportKeystoresResponse, error) {
|
|
out := new(ImportKeystoresResponse)
|
|
err := c.cc.Invoke(ctx, "/ethereum.validator.accounts.v2.Wallet/ImportKeystores", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
// WalletServer is the server API for Wallet service.
|
|
type WalletServer interface {
|
|
CreateWallet(context.Context, *CreateWalletRequest) (*CreateWalletResponse, error)
|
|
WalletConfig(context.Context, *types.Empty) (*WalletResponse, error)
|
|
GenerateMnemonic(context.Context, *types.Empty) (*GenerateMnemonicResponse, error)
|
|
ImportKeystores(context.Context, *ImportKeystoresRequest) (*ImportKeystoresResponse, error)
|
|
}
|
|
|
|
// UnimplementedWalletServer can be embedded to have forward compatible implementations.
|
|
type UnimplementedWalletServer struct {
|
|
}
|
|
|
|
func (*UnimplementedWalletServer) CreateWallet(ctx context.Context, req *CreateWalletRequest) (*CreateWalletResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method CreateWallet not implemented")
|
|
}
|
|
func (*UnimplementedWalletServer) WalletConfig(ctx context.Context, req *types.Empty) (*WalletResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method WalletConfig not implemented")
|
|
}
|
|
func (*UnimplementedWalletServer) GenerateMnemonic(ctx context.Context, req *types.Empty) (*GenerateMnemonicResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method GenerateMnemonic not implemented")
|
|
}
|
|
func (*UnimplementedWalletServer) ImportKeystores(ctx context.Context, req *ImportKeystoresRequest) (*ImportKeystoresResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method ImportKeystores not implemented")
|
|
}
|
|
|
|
func RegisterWalletServer(s *grpc.Server, srv WalletServer) {
|
|
s.RegisterService(&_Wallet_serviceDesc, srv)
|
|
}
|
|
|
|
func _Wallet_CreateWallet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(CreateWalletRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(WalletServer).CreateWallet(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/ethereum.validator.accounts.v2.Wallet/CreateWallet",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(WalletServer).CreateWallet(ctx, req.(*CreateWalletRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Wallet_WalletConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(types.Empty)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(WalletServer).WalletConfig(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/ethereum.validator.accounts.v2.Wallet/WalletConfig",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(WalletServer).WalletConfig(ctx, req.(*types.Empty))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Wallet_GenerateMnemonic_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(types.Empty)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(WalletServer).GenerateMnemonic(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/ethereum.validator.accounts.v2.Wallet/GenerateMnemonic",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(WalletServer).GenerateMnemonic(ctx, req.(*types.Empty))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Wallet_ImportKeystores_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(ImportKeystoresRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(WalletServer).ImportKeystores(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/ethereum.validator.accounts.v2.Wallet/ImportKeystores",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(WalletServer).ImportKeystores(ctx, req.(*ImportKeystoresRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
var _Wallet_serviceDesc = grpc.ServiceDesc{
|
|
ServiceName: "ethereum.validator.accounts.v2.Wallet",
|
|
HandlerType: (*WalletServer)(nil),
|
|
Methods: []grpc.MethodDesc{
|
|
{
|
|
MethodName: "CreateWallet",
|
|
Handler: _Wallet_CreateWallet_Handler,
|
|
},
|
|
{
|
|
MethodName: "WalletConfig",
|
|
Handler: _Wallet_WalletConfig_Handler,
|
|
},
|
|
{
|
|
MethodName: "GenerateMnemonic",
|
|
Handler: _Wallet_GenerateMnemonic_Handler,
|
|
},
|
|
{
|
|
MethodName: "ImportKeystores",
|
|
Handler: _Wallet_ImportKeystores_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{},
|
|
Metadata: "proto/validator/accounts/v2/web_api.proto",
|
|
}
|
|
|
|
// AccountsClient is the client API for Accounts service.
|
|
//
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
type AccountsClient interface {
|
|
ListAccounts(ctx context.Context, in *ListAccountsRequest, opts ...grpc.CallOption) (*ListAccountsResponse, error)
|
|
BackupAccounts(ctx context.Context, in *BackupAccountsRequest, opts ...grpc.CallOption) (*BackupAccountsResponse, error)
|
|
ChangePassword(ctx context.Context, in *ChangePasswordRequest, opts ...grpc.CallOption) (*types.Empty, error)
|
|
}
|
|
|
|
type accountsClient struct {
|
|
cc *grpc.ClientConn
|
|
}
|
|
|
|
func NewAccountsClient(cc *grpc.ClientConn) AccountsClient {
|
|
return &accountsClient{cc}
|
|
}
|
|
|
|
func (c *accountsClient) ListAccounts(ctx context.Context, in *ListAccountsRequest, opts ...grpc.CallOption) (*ListAccountsResponse, error) {
|
|
out := new(ListAccountsResponse)
|
|
err := c.cc.Invoke(ctx, "/ethereum.validator.accounts.v2.Accounts/ListAccounts", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *accountsClient) BackupAccounts(ctx context.Context, in *BackupAccountsRequest, opts ...grpc.CallOption) (*BackupAccountsResponse, error) {
|
|
out := new(BackupAccountsResponse)
|
|
err := c.cc.Invoke(ctx, "/ethereum.validator.accounts.v2.Accounts/BackupAccounts", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *accountsClient) ChangePassword(ctx context.Context, in *ChangePasswordRequest, opts ...grpc.CallOption) (*types.Empty, error) {
|
|
out := new(types.Empty)
|
|
err := c.cc.Invoke(ctx, "/ethereum.validator.accounts.v2.Accounts/ChangePassword", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
// AccountsServer is the server API for Accounts service.
|
|
type AccountsServer interface {
|
|
ListAccounts(context.Context, *ListAccountsRequest) (*ListAccountsResponse, error)
|
|
BackupAccounts(context.Context, *BackupAccountsRequest) (*BackupAccountsResponse, error)
|
|
ChangePassword(context.Context, *ChangePasswordRequest) (*types.Empty, error)
|
|
}
|
|
|
|
// UnimplementedAccountsServer can be embedded to have forward compatible implementations.
|
|
type UnimplementedAccountsServer struct {
|
|
}
|
|
|
|
func (*UnimplementedAccountsServer) ListAccounts(ctx context.Context, req *ListAccountsRequest) (*ListAccountsResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method ListAccounts not implemented")
|
|
}
|
|
func (*UnimplementedAccountsServer) BackupAccounts(ctx context.Context, req *BackupAccountsRequest) (*BackupAccountsResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method BackupAccounts not implemented")
|
|
}
|
|
func (*UnimplementedAccountsServer) ChangePassword(ctx context.Context, req *ChangePasswordRequest) (*types.Empty, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method ChangePassword not implemented")
|
|
}
|
|
|
|
func RegisterAccountsServer(s *grpc.Server, srv AccountsServer) {
|
|
s.RegisterService(&_Accounts_serviceDesc, srv)
|
|
}
|
|
|
|
func _Accounts_ListAccounts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(ListAccountsRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(AccountsServer).ListAccounts(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/ethereum.validator.accounts.v2.Accounts/ListAccounts",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(AccountsServer).ListAccounts(ctx, req.(*ListAccountsRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Accounts_BackupAccounts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(BackupAccountsRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(AccountsServer).BackupAccounts(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/ethereum.validator.accounts.v2.Accounts/BackupAccounts",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(AccountsServer).BackupAccounts(ctx, req.(*BackupAccountsRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Accounts_ChangePassword_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(ChangePasswordRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(AccountsServer).ChangePassword(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/ethereum.validator.accounts.v2.Accounts/ChangePassword",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(AccountsServer).ChangePassword(ctx, req.(*ChangePasswordRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
var _Accounts_serviceDesc = grpc.ServiceDesc{
|
|
ServiceName: "ethereum.validator.accounts.v2.Accounts",
|
|
HandlerType: (*AccountsServer)(nil),
|
|
Methods: []grpc.MethodDesc{
|
|
{
|
|
MethodName: "ListAccounts",
|
|
Handler: _Accounts_ListAccounts_Handler,
|
|
},
|
|
{
|
|
MethodName: "BackupAccounts",
|
|
Handler: _Accounts_BackupAccounts_Handler,
|
|
},
|
|
{
|
|
MethodName: "ChangePassword",
|
|
Handler: _Accounts_ChangePassword_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{},
|
|
Metadata: "proto/validator/accounts/v2/web_api.proto",
|
|
}
|
|
|
|
// BeaconClient is the client API for Beacon service.
|
|
//
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
type BeaconClient interface {
|
|
GetBeaconStatus(ctx context.Context, in *types.Empty, opts ...grpc.CallOption) (*BeaconStatusResponse, error)
|
|
GetValidatorParticipation(ctx context.Context, in *v1alpha1.GetValidatorParticipationRequest, opts ...grpc.CallOption) (*v1alpha1.ValidatorParticipationResponse, error)
|
|
GetValidatorPerformance(ctx context.Context, in *v1alpha1.ValidatorPerformanceRequest, opts ...grpc.CallOption) (*v1alpha1.ValidatorPerformanceResponse, error)
|
|
GetValidators(ctx context.Context, in *v1alpha1.ListValidatorsRequest, opts ...grpc.CallOption) (*v1alpha1.Validators, error)
|
|
GetValidatorBalances(ctx context.Context, in *v1alpha1.ListValidatorBalancesRequest, opts ...grpc.CallOption) (*v1alpha1.ValidatorBalances, error)
|
|
GetValidatorQueue(ctx context.Context, in *types.Empty, opts ...grpc.CallOption) (*v1alpha1.ValidatorQueue, error)
|
|
GetPeers(ctx context.Context, in *types.Empty, opts ...grpc.CallOption) (*v1alpha1.Peers, error)
|
|
}
|
|
|
|
type beaconClient struct {
|
|
cc *grpc.ClientConn
|
|
}
|
|
|
|
func NewBeaconClient(cc *grpc.ClientConn) BeaconClient {
|
|
return &beaconClient{cc}
|
|
}
|
|
|
|
func (c *beaconClient) GetBeaconStatus(ctx context.Context, in *types.Empty, opts ...grpc.CallOption) (*BeaconStatusResponse, error) {
|
|
out := new(BeaconStatusResponse)
|
|
err := c.cc.Invoke(ctx, "/ethereum.validator.accounts.v2.Beacon/GetBeaconStatus", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *beaconClient) GetValidatorParticipation(ctx context.Context, in *v1alpha1.GetValidatorParticipationRequest, opts ...grpc.CallOption) (*v1alpha1.ValidatorParticipationResponse, error) {
|
|
out := new(v1alpha1.ValidatorParticipationResponse)
|
|
err := c.cc.Invoke(ctx, "/ethereum.validator.accounts.v2.Beacon/GetValidatorParticipation", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *beaconClient) GetValidatorPerformance(ctx context.Context, in *v1alpha1.ValidatorPerformanceRequest, opts ...grpc.CallOption) (*v1alpha1.ValidatorPerformanceResponse, error) {
|
|
out := new(v1alpha1.ValidatorPerformanceResponse)
|
|
err := c.cc.Invoke(ctx, "/ethereum.validator.accounts.v2.Beacon/GetValidatorPerformance", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *beaconClient) GetValidators(ctx context.Context, in *v1alpha1.ListValidatorsRequest, opts ...grpc.CallOption) (*v1alpha1.Validators, error) {
|
|
out := new(v1alpha1.Validators)
|
|
err := c.cc.Invoke(ctx, "/ethereum.validator.accounts.v2.Beacon/GetValidators", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *beaconClient) GetValidatorBalances(ctx context.Context, in *v1alpha1.ListValidatorBalancesRequest, opts ...grpc.CallOption) (*v1alpha1.ValidatorBalances, error) {
|
|
out := new(v1alpha1.ValidatorBalances)
|
|
err := c.cc.Invoke(ctx, "/ethereum.validator.accounts.v2.Beacon/GetValidatorBalances", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *beaconClient) GetValidatorQueue(ctx context.Context, in *types.Empty, opts ...grpc.CallOption) (*v1alpha1.ValidatorQueue, error) {
|
|
out := new(v1alpha1.ValidatorQueue)
|
|
err := c.cc.Invoke(ctx, "/ethereum.validator.accounts.v2.Beacon/GetValidatorQueue", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *beaconClient) GetPeers(ctx context.Context, in *types.Empty, opts ...grpc.CallOption) (*v1alpha1.Peers, error) {
|
|
out := new(v1alpha1.Peers)
|
|
err := c.cc.Invoke(ctx, "/ethereum.validator.accounts.v2.Beacon/GetPeers", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
// BeaconServer is the server API for Beacon service.
|
|
type BeaconServer interface {
|
|
GetBeaconStatus(context.Context, *types.Empty) (*BeaconStatusResponse, error)
|
|
GetValidatorParticipation(context.Context, *v1alpha1.GetValidatorParticipationRequest) (*v1alpha1.ValidatorParticipationResponse, error)
|
|
GetValidatorPerformance(context.Context, *v1alpha1.ValidatorPerformanceRequest) (*v1alpha1.ValidatorPerformanceResponse, error)
|
|
GetValidators(context.Context, *v1alpha1.ListValidatorsRequest) (*v1alpha1.Validators, error)
|
|
GetValidatorBalances(context.Context, *v1alpha1.ListValidatorBalancesRequest) (*v1alpha1.ValidatorBalances, error)
|
|
GetValidatorQueue(context.Context, *types.Empty) (*v1alpha1.ValidatorQueue, error)
|
|
GetPeers(context.Context, *types.Empty) (*v1alpha1.Peers, error)
|
|
}
|
|
|
|
// UnimplementedBeaconServer can be embedded to have forward compatible implementations.
|
|
type UnimplementedBeaconServer struct {
|
|
}
|
|
|
|
func (*UnimplementedBeaconServer) GetBeaconStatus(ctx context.Context, req *types.Empty) (*BeaconStatusResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetBeaconStatus not implemented")
|
|
}
|
|
func (*UnimplementedBeaconServer) GetValidatorParticipation(ctx context.Context, req *v1alpha1.GetValidatorParticipationRequest) (*v1alpha1.ValidatorParticipationResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetValidatorParticipation not implemented")
|
|
}
|
|
func (*UnimplementedBeaconServer) GetValidatorPerformance(ctx context.Context, req *v1alpha1.ValidatorPerformanceRequest) (*v1alpha1.ValidatorPerformanceResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetValidatorPerformance not implemented")
|
|
}
|
|
func (*UnimplementedBeaconServer) GetValidators(ctx context.Context, req *v1alpha1.ListValidatorsRequest) (*v1alpha1.Validators, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetValidators not implemented")
|
|
}
|
|
func (*UnimplementedBeaconServer) GetValidatorBalances(ctx context.Context, req *v1alpha1.ListValidatorBalancesRequest) (*v1alpha1.ValidatorBalances, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetValidatorBalances not implemented")
|
|
}
|
|
func (*UnimplementedBeaconServer) GetValidatorQueue(ctx context.Context, req *types.Empty) (*v1alpha1.ValidatorQueue, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetValidatorQueue not implemented")
|
|
}
|
|
func (*UnimplementedBeaconServer) GetPeers(ctx context.Context, req *types.Empty) (*v1alpha1.Peers, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetPeers not implemented")
|
|
}
|
|
|
|
func RegisterBeaconServer(s *grpc.Server, srv BeaconServer) {
|
|
s.RegisterService(&_Beacon_serviceDesc, srv)
|
|
}
|
|
|
|
func _Beacon_GetBeaconStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(types.Empty)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(BeaconServer).GetBeaconStatus(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/ethereum.validator.accounts.v2.Beacon/GetBeaconStatus",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(BeaconServer).GetBeaconStatus(ctx, req.(*types.Empty))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Beacon_GetValidatorParticipation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(v1alpha1.GetValidatorParticipationRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(BeaconServer).GetValidatorParticipation(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/ethereum.validator.accounts.v2.Beacon/GetValidatorParticipation",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(BeaconServer).GetValidatorParticipation(ctx, req.(*v1alpha1.GetValidatorParticipationRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Beacon_GetValidatorPerformance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(v1alpha1.ValidatorPerformanceRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(BeaconServer).GetValidatorPerformance(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/ethereum.validator.accounts.v2.Beacon/GetValidatorPerformance",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(BeaconServer).GetValidatorPerformance(ctx, req.(*v1alpha1.ValidatorPerformanceRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Beacon_GetValidators_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(v1alpha1.ListValidatorsRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(BeaconServer).GetValidators(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/ethereum.validator.accounts.v2.Beacon/GetValidators",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(BeaconServer).GetValidators(ctx, req.(*v1alpha1.ListValidatorsRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Beacon_GetValidatorBalances_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(v1alpha1.ListValidatorBalancesRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(BeaconServer).GetValidatorBalances(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/ethereum.validator.accounts.v2.Beacon/GetValidatorBalances",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(BeaconServer).GetValidatorBalances(ctx, req.(*v1alpha1.ListValidatorBalancesRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Beacon_GetValidatorQueue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(types.Empty)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(BeaconServer).GetValidatorQueue(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/ethereum.validator.accounts.v2.Beacon/GetValidatorQueue",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(BeaconServer).GetValidatorQueue(ctx, req.(*types.Empty))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Beacon_GetPeers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(types.Empty)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(BeaconServer).GetPeers(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/ethereum.validator.accounts.v2.Beacon/GetPeers",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(BeaconServer).GetPeers(ctx, req.(*types.Empty))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
var _Beacon_serviceDesc = grpc.ServiceDesc{
|
|
ServiceName: "ethereum.validator.accounts.v2.Beacon",
|
|
HandlerType: (*BeaconServer)(nil),
|
|
Methods: []grpc.MethodDesc{
|
|
{
|
|
MethodName: "GetBeaconStatus",
|
|
Handler: _Beacon_GetBeaconStatus_Handler,
|
|
},
|
|
{
|
|
MethodName: "GetValidatorParticipation",
|
|
Handler: _Beacon_GetValidatorParticipation_Handler,
|
|
},
|
|
{
|
|
MethodName: "GetValidatorPerformance",
|
|
Handler: _Beacon_GetValidatorPerformance_Handler,
|
|
},
|
|
{
|
|
MethodName: "GetValidators",
|
|
Handler: _Beacon_GetValidators_Handler,
|
|
},
|
|
{
|
|
MethodName: "GetValidatorBalances",
|
|
Handler: _Beacon_GetValidatorBalances_Handler,
|
|
},
|
|
{
|
|
MethodName: "GetValidatorQueue",
|
|
Handler: _Beacon_GetValidatorQueue_Handler,
|
|
},
|
|
{
|
|
MethodName: "GetPeers",
|
|
Handler: _Beacon_GetPeers_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{},
|
|
Metadata: "proto/validator/accounts/v2/web_api.proto",
|
|
}
|
|
|
|
// HealthClient is the client API for Health service.
|
|
//
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
type HealthClient interface {
|
|
GetBeaconNodeConnection(ctx context.Context, in *types.Empty, opts ...grpc.CallOption) (*NodeConnectionResponse, error)
|
|
GetLogsEndpoints(ctx context.Context, in *types.Empty, opts ...grpc.CallOption) (*LogsEndpointResponse, error)
|
|
GetVersion(ctx context.Context, in *types.Empty, opts ...grpc.CallOption) (*VersionResponse, error)
|
|
StreamBeaconLogs(ctx context.Context, in *types.Empty, opts ...grpc.CallOption) (Health_StreamBeaconLogsClient, error)
|
|
StreamValidatorLogs(ctx context.Context, in *types.Empty, opts ...grpc.CallOption) (Health_StreamValidatorLogsClient, error)
|
|
}
|
|
|
|
type healthClient struct {
|
|
cc *grpc.ClientConn
|
|
}
|
|
|
|
func NewHealthClient(cc *grpc.ClientConn) HealthClient {
|
|
return &healthClient{cc}
|
|
}
|
|
|
|
func (c *healthClient) GetBeaconNodeConnection(ctx context.Context, in *types.Empty, opts ...grpc.CallOption) (*NodeConnectionResponse, error) {
|
|
out := new(NodeConnectionResponse)
|
|
err := c.cc.Invoke(ctx, "/ethereum.validator.accounts.v2.Health/GetBeaconNodeConnection", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *healthClient) GetLogsEndpoints(ctx context.Context, in *types.Empty, opts ...grpc.CallOption) (*LogsEndpointResponse, error) {
|
|
out := new(LogsEndpointResponse)
|
|
err := c.cc.Invoke(ctx, "/ethereum.validator.accounts.v2.Health/GetLogsEndpoints", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *healthClient) GetVersion(ctx context.Context, in *types.Empty, opts ...grpc.CallOption) (*VersionResponse, error) {
|
|
out := new(VersionResponse)
|
|
err := c.cc.Invoke(ctx, "/ethereum.validator.accounts.v2.Health/GetVersion", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *healthClient) StreamBeaconLogs(ctx context.Context, in *types.Empty, opts ...grpc.CallOption) (Health_StreamBeaconLogsClient, error) {
|
|
stream, err := c.cc.NewStream(ctx, &_Health_serviceDesc.Streams[0], "/ethereum.validator.accounts.v2.Health/StreamBeaconLogs", opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
x := &healthStreamBeaconLogsClient{stream}
|
|
if err := x.ClientStream.SendMsg(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if err := x.ClientStream.CloseSend(); err != nil {
|
|
return nil, err
|
|
}
|
|
return x, nil
|
|
}
|
|
|
|
type Health_StreamBeaconLogsClient interface {
|
|
Recv() (*v1.LogsResponse, error)
|
|
grpc.ClientStream
|
|
}
|
|
|
|
type healthStreamBeaconLogsClient struct {
|
|
grpc.ClientStream
|
|
}
|
|
|
|
func (x *healthStreamBeaconLogsClient) Recv() (*v1.LogsResponse, error) {
|
|
m := new(v1.LogsResponse)
|
|
if err := x.ClientStream.RecvMsg(m); err != nil {
|
|
return nil, err
|
|
}
|
|
return m, nil
|
|
}
|
|
|
|
func (c *healthClient) StreamValidatorLogs(ctx context.Context, in *types.Empty, opts ...grpc.CallOption) (Health_StreamValidatorLogsClient, error) {
|
|
stream, err := c.cc.NewStream(ctx, &_Health_serviceDesc.Streams[1], "/ethereum.validator.accounts.v2.Health/StreamValidatorLogs", opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
x := &healthStreamValidatorLogsClient{stream}
|
|
if err := x.ClientStream.SendMsg(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if err := x.ClientStream.CloseSend(); err != nil {
|
|
return nil, err
|
|
}
|
|
return x, nil
|
|
}
|
|
|
|
type Health_StreamValidatorLogsClient interface {
|
|
Recv() (*LogsResponse, error)
|
|
grpc.ClientStream
|
|
}
|
|
|
|
type healthStreamValidatorLogsClient struct {
|
|
grpc.ClientStream
|
|
}
|
|
|
|
func (x *healthStreamValidatorLogsClient) Recv() (*LogsResponse, error) {
|
|
m := new(LogsResponse)
|
|
if err := x.ClientStream.RecvMsg(m); err != nil {
|
|
return nil, err
|
|
}
|
|
return m, nil
|
|
}
|
|
|
|
// HealthServer is the server API for Health service.
|
|
type HealthServer interface {
|
|
GetBeaconNodeConnection(context.Context, *types.Empty) (*NodeConnectionResponse, error)
|
|
GetLogsEndpoints(context.Context, *types.Empty) (*LogsEndpointResponse, error)
|
|
GetVersion(context.Context, *types.Empty) (*VersionResponse, error)
|
|
StreamBeaconLogs(*types.Empty, Health_StreamBeaconLogsServer) error
|
|
StreamValidatorLogs(*types.Empty, Health_StreamValidatorLogsServer) error
|
|
}
|
|
|
|
// UnimplementedHealthServer can be embedded to have forward compatible implementations.
|
|
type UnimplementedHealthServer struct {
|
|
}
|
|
|
|
func (*UnimplementedHealthServer) GetBeaconNodeConnection(ctx context.Context, req *types.Empty) (*NodeConnectionResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetBeaconNodeConnection not implemented")
|
|
}
|
|
func (*UnimplementedHealthServer) GetLogsEndpoints(ctx context.Context, req *types.Empty) (*LogsEndpointResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetLogsEndpoints not implemented")
|
|
}
|
|
func (*UnimplementedHealthServer) GetVersion(ctx context.Context, req *types.Empty) (*VersionResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetVersion not implemented")
|
|
}
|
|
func (*UnimplementedHealthServer) StreamBeaconLogs(req *types.Empty, srv Health_StreamBeaconLogsServer) error {
|
|
return status.Errorf(codes.Unimplemented, "method StreamBeaconLogs not implemented")
|
|
}
|
|
func (*UnimplementedHealthServer) StreamValidatorLogs(req *types.Empty, srv Health_StreamValidatorLogsServer) error {
|
|
return status.Errorf(codes.Unimplemented, "method StreamValidatorLogs not implemented")
|
|
}
|
|
|
|
func RegisterHealthServer(s *grpc.Server, srv HealthServer) {
|
|
s.RegisterService(&_Health_serviceDesc, srv)
|
|
}
|
|
|
|
func _Health_GetBeaconNodeConnection_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(types.Empty)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(HealthServer).GetBeaconNodeConnection(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/ethereum.validator.accounts.v2.Health/GetBeaconNodeConnection",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(HealthServer).GetBeaconNodeConnection(ctx, req.(*types.Empty))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Health_GetLogsEndpoints_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(types.Empty)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(HealthServer).GetLogsEndpoints(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/ethereum.validator.accounts.v2.Health/GetLogsEndpoints",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(HealthServer).GetLogsEndpoints(ctx, req.(*types.Empty))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Health_GetVersion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(types.Empty)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(HealthServer).GetVersion(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/ethereum.validator.accounts.v2.Health/GetVersion",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(HealthServer).GetVersion(ctx, req.(*types.Empty))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Health_StreamBeaconLogs_Handler(srv interface{}, stream grpc.ServerStream) error {
|
|
m := new(types.Empty)
|
|
if err := stream.RecvMsg(m); err != nil {
|
|
return err
|
|
}
|
|
return srv.(HealthServer).StreamBeaconLogs(m, &healthStreamBeaconLogsServer{stream})
|
|
}
|
|
|
|
type Health_StreamBeaconLogsServer interface {
|
|
Send(*v1.LogsResponse) error
|
|
grpc.ServerStream
|
|
}
|
|
|
|
type healthStreamBeaconLogsServer struct {
|
|
grpc.ServerStream
|
|
}
|
|
|
|
func (x *healthStreamBeaconLogsServer) Send(m *v1.LogsResponse) error {
|
|
return x.ServerStream.SendMsg(m)
|
|
}
|
|
|
|
func _Health_StreamValidatorLogs_Handler(srv interface{}, stream grpc.ServerStream) error {
|
|
m := new(types.Empty)
|
|
if err := stream.RecvMsg(m); err != nil {
|
|
return err
|
|
}
|
|
return srv.(HealthServer).StreamValidatorLogs(m, &healthStreamValidatorLogsServer{stream})
|
|
}
|
|
|
|
type Health_StreamValidatorLogsServer interface {
|
|
Send(*LogsResponse) error
|
|
grpc.ServerStream
|
|
}
|
|
|
|
type healthStreamValidatorLogsServer struct {
|
|
grpc.ServerStream
|
|
}
|
|
|
|
func (x *healthStreamValidatorLogsServer) Send(m *LogsResponse) error {
|
|
return x.ServerStream.SendMsg(m)
|
|
}
|
|
|
|
var _Health_serviceDesc = grpc.ServiceDesc{
|
|
ServiceName: "ethereum.validator.accounts.v2.Health",
|
|
HandlerType: (*HealthServer)(nil),
|
|
Methods: []grpc.MethodDesc{
|
|
{
|
|
MethodName: "GetBeaconNodeConnection",
|
|
Handler: _Health_GetBeaconNodeConnection_Handler,
|
|
},
|
|
{
|
|
MethodName: "GetLogsEndpoints",
|
|
Handler: _Health_GetLogsEndpoints_Handler,
|
|
},
|
|
{
|
|
MethodName: "GetVersion",
|
|
Handler: _Health_GetVersion_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{
|
|
{
|
|
StreamName: "StreamBeaconLogs",
|
|
Handler: _Health_StreamBeaconLogs_Handler,
|
|
ServerStreams: true,
|
|
},
|
|
{
|
|
StreamName: "StreamValidatorLogs",
|
|
Handler: _Health_StreamValidatorLogs_Handler,
|
|
ServerStreams: true,
|
|
},
|
|
},
|
|
Metadata: "proto/validator/accounts/v2/web_api.proto",
|
|
}
|
|
|
|
// AuthClient is the client API for Auth service.
|
|
//
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
type AuthClient interface {
|
|
HasUsedWeb(ctx context.Context, in *types.Empty, opts ...grpc.CallOption) (*HasUsedWebResponse, error)
|
|
Login(ctx context.Context, in *AuthRequest, opts ...grpc.CallOption) (*AuthResponse, error)
|
|
Signup(ctx context.Context, in *AuthRequest, opts ...grpc.CallOption) (*AuthResponse, error)
|
|
Logout(ctx context.Context, in *types.Empty, opts ...grpc.CallOption) (*types.Empty, error)
|
|
}
|
|
|
|
type authClient struct {
|
|
cc *grpc.ClientConn
|
|
}
|
|
|
|
func NewAuthClient(cc *grpc.ClientConn) AuthClient {
|
|
return &authClient{cc}
|
|
}
|
|
|
|
func (c *authClient) HasUsedWeb(ctx context.Context, in *types.Empty, opts ...grpc.CallOption) (*HasUsedWebResponse, error) {
|
|
out := new(HasUsedWebResponse)
|
|
err := c.cc.Invoke(ctx, "/ethereum.validator.accounts.v2.Auth/HasUsedWeb", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *authClient) Login(ctx context.Context, in *AuthRequest, opts ...grpc.CallOption) (*AuthResponse, error) {
|
|
out := new(AuthResponse)
|
|
err := c.cc.Invoke(ctx, "/ethereum.validator.accounts.v2.Auth/Login", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *authClient) Signup(ctx context.Context, in *AuthRequest, opts ...grpc.CallOption) (*AuthResponse, error) {
|
|
out := new(AuthResponse)
|
|
err := c.cc.Invoke(ctx, "/ethereum.validator.accounts.v2.Auth/Signup", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *authClient) Logout(ctx context.Context, in *types.Empty, opts ...grpc.CallOption) (*types.Empty, error) {
|
|
out := new(types.Empty)
|
|
err := c.cc.Invoke(ctx, "/ethereum.validator.accounts.v2.Auth/Logout", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
// AuthServer is the server API for Auth service.
|
|
type AuthServer interface {
|
|
HasUsedWeb(context.Context, *types.Empty) (*HasUsedWebResponse, error)
|
|
Login(context.Context, *AuthRequest) (*AuthResponse, error)
|
|
Signup(context.Context, *AuthRequest) (*AuthResponse, error)
|
|
Logout(context.Context, *types.Empty) (*types.Empty, error)
|
|
}
|
|
|
|
// UnimplementedAuthServer can be embedded to have forward compatible implementations.
|
|
type UnimplementedAuthServer struct {
|
|
}
|
|
|
|
func (*UnimplementedAuthServer) HasUsedWeb(ctx context.Context, req *types.Empty) (*HasUsedWebResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method HasUsedWeb not implemented")
|
|
}
|
|
func (*UnimplementedAuthServer) Login(ctx context.Context, req *AuthRequest) (*AuthResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method Login not implemented")
|
|
}
|
|
func (*UnimplementedAuthServer) Signup(ctx context.Context, req *AuthRequest) (*AuthResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method Signup not implemented")
|
|
}
|
|
func (*UnimplementedAuthServer) Logout(ctx context.Context, req *types.Empty) (*types.Empty, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method Logout not implemented")
|
|
}
|
|
|
|
func RegisterAuthServer(s *grpc.Server, srv AuthServer) {
|
|
s.RegisterService(&_Auth_serviceDesc, srv)
|
|
}
|
|
|
|
func _Auth_HasUsedWeb_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(types.Empty)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(AuthServer).HasUsedWeb(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/ethereum.validator.accounts.v2.Auth/HasUsedWeb",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(AuthServer).HasUsedWeb(ctx, req.(*types.Empty))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Auth_Login_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(AuthRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(AuthServer).Login(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/ethereum.validator.accounts.v2.Auth/Login",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(AuthServer).Login(ctx, req.(*AuthRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Auth_Signup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(AuthRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(AuthServer).Signup(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/ethereum.validator.accounts.v2.Auth/Signup",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(AuthServer).Signup(ctx, req.(*AuthRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Auth_Logout_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(types.Empty)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(AuthServer).Logout(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/ethereum.validator.accounts.v2.Auth/Logout",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(AuthServer).Logout(ctx, req.(*types.Empty))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
var _Auth_serviceDesc = grpc.ServiceDesc{
|
|
ServiceName: "ethereum.validator.accounts.v2.Auth",
|
|
HandlerType: (*AuthServer)(nil),
|
|
Methods: []grpc.MethodDesc{
|
|
{
|
|
MethodName: "HasUsedWeb",
|
|
Handler: _Auth_HasUsedWeb_Handler,
|
|
},
|
|
{
|
|
MethodName: "Login",
|
|
Handler: _Auth_Login_Handler,
|
|
},
|
|
{
|
|
MethodName: "Signup",
|
|
Handler: _Auth_Signup_Handler,
|
|
},
|
|
{
|
|
MethodName: "Logout",
|
|
Handler: _Auth_Logout_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{},
|
|
Metadata: "proto/validator/accounts/v2/web_api.proto",
|
|
}
|
|
|
|
func (m *CreateWalletRequest) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *CreateWalletRequest) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *CreateWalletRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if m.XXX_unrecognized != nil {
|
|
i -= len(m.XXX_unrecognized)
|
|
copy(dAtA[i:], m.XXX_unrecognized)
|
|
}
|
|
if len(m.RemoteCaCrtPath) > 0 {
|
|
i -= len(m.RemoteCaCrtPath)
|
|
copy(dAtA[i:], m.RemoteCaCrtPath)
|
|
i = encodeVarintWebApi(dAtA, i, uint64(len(m.RemoteCaCrtPath)))
|
|
i--
|
|
dAtA[i] = 0x42
|
|
}
|
|
if len(m.RemoteKeyPath) > 0 {
|
|
i -= len(m.RemoteKeyPath)
|
|
copy(dAtA[i:], m.RemoteKeyPath)
|
|
i = encodeVarintWebApi(dAtA, i, uint64(len(m.RemoteKeyPath)))
|
|
i--
|
|
dAtA[i] = 0x3a
|
|
}
|
|
if len(m.RemoteCrtPath) > 0 {
|
|
i -= len(m.RemoteCrtPath)
|
|
copy(dAtA[i:], m.RemoteCrtPath)
|
|
i = encodeVarintWebApi(dAtA, i, uint64(len(m.RemoteCrtPath)))
|
|
i--
|
|
dAtA[i] = 0x32
|
|
}
|
|
if len(m.RemoteAddr) > 0 {
|
|
i -= len(m.RemoteAddr)
|
|
copy(dAtA[i:], m.RemoteAddr)
|
|
i = encodeVarintWebApi(dAtA, i, uint64(len(m.RemoteAddr)))
|
|
i--
|
|
dAtA[i] = 0x2a
|
|
}
|
|
if m.NumAccounts != 0 {
|
|
i = encodeVarintWebApi(dAtA, i, uint64(m.NumAccounts))
|
|
i--
|
|
dAtA[i] = 0x20
|
|
}
|
|
if len(m.Mnemonic) > 0 {
|
|
i -= len(m.Mnemonic)
|
|
copy(dAtA[i:], m.Mnemonic)
|
|
i = encodeVarintWebApi(dAtA, i, uint64(len(m.Mnemonic)))
|
|
i--
|
|
dAtA[i] = 0x1a
|
|
}
|
|
if len(m.WalletPassword) > 0 {
|
|
i -= len(m.WalletPassword)
|
|
copy(dAtA[i:], m.WalletPassword)
|
|
i = encodeVarintWebApi(dAtA, i, uint64(len(m.WalletPassword)))
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
if m.Keymanager != 0 {
|
|
i = encodeVarintWebApi(dAtA, i, uint64(m.Keymanager))
|
|
i--
|
|
dAtA[i] = 0x8
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *CreateWalletResponse) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *CreateWalletResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *CreateWalletResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if m.XXX_unrecognized != nil {
|
|
i -= len(m.XXX_unrecognized)
|
|
copy(dAtA[i:], m.XXX_unrecognized)
|
|
}
|
|
if m.Wallet != nil {
|
|
{
|
|
size, err := m.Wallet.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintWebApi(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *EditWalletConfigRequest) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *EditWalletConfigRequest) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *EditWalletConfigRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if m.XXX_unrecognized != nil {
|
|
i -= len(m.XXX_unrecognized)
|
|
copy(dAtA[i:], m.XXX_unrecognized)
|
|
}
|
|
if len(m.RemoteCaCrtPath) > 0 {
|
|
i -= len(m.RemoteCaCrtPath)
|
|
copy(dAtA[i:], m.RemoteCaCrtPath)
|
|
i = encodeVarintWebApi(dAtA, i, uint64(len(m.RemoteCaCrtPath)))
|
|
i--
|
|
dAtA[i] = 0x22
|
|
}
|
|
if len(m.RemoteKeyPath) > 0 {
|
|
i -= len(m.RemoteKeyPath)
|
|
copy(dAtA[i:], m.RemoteKeyPath)
|
|
i = encodeVarintWebApi(dAtA, i, uint64(len(m.RemoteKeyPath)))
|
|
i--
|
|
dAtA[i] = 0x1a
|
|
}
|
|
if len(m.RemoteCrtPath) > 0 {
|
|
i -= len(m.RemoteCrtPath)
|
|
copy(dAtA[i:], m.RemoteCrtPath)
|
|
i = encodeVarintWebApi(dAtA, i, uint64(len(m.RemoteCrtPath)))
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
if len(m.RemoteAddr) > 0 {
|
|
i -= len(m.RemoteAddr)
|
|
copy(dAtA[i:], m.RemoteAddr)
|
|
i = encodeVarintWebApi(dAtA, i, uint64(len(m.RemoteAddr)))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *GenerateMnemonicResponse) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *GenerateMnemonicResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *GenerateMnemonicResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if m.XXX_unrecognized != nil {
|
|
i -= len(m.XXX_unrecognized)
|
|
copy(dAtA[i:], m.XXX_unrecognized)
|
|
}
|
|
if len(m.Mnemonic) > 0 {
|
|
i -= len(m.Mnemonic)
|
|
copy(dAtA[i:], m.Mnemonic)
|
|
i = encodeVarintWebApi(dAtA, i, uint64(len(m.Mnemonic)))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *WalletResponse) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *WalletResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *WalletResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if m.XXX_unrecognized != nil {
|
|
i -= len(m.XXX_unrecognized)
|
|
copy(dAtA[i:], m.XXX_unrecognized)
|
|
}
|
|
if m.KeymanagerKind != 0 {
|
|
i = encodeVarintWebApi(dAtA, i, uint64(m.KeymanagerKind))
|
|
i--
|
|
dAtA[i] = 0x10
|
|
}
|
|
if len(m.WalletPath) > 0 {
|
|
i -= len(m.WalletPath)
|
|
copy(dAtA[i:], m.WalletPath)
|
|
i = encodeVarintWebApi(dAtA, i, uint64(len(m.WalletPath)))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *ListAccountsRequest) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *ListAccountsRequest) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *ListAccountsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if m.XXX_unrecognized != nil {
|
|
i -= len(m.XXX_unrecognized)
|
|
copy(dAtA[i:], m.XXX_unrecognized)
|
|
}
|
|
if m.All {
|
|
i--
|
|
if m.All {
|
|
dAtA[i] = 1
|
|
} else {
|
|
dAtA[i] = 0
|
|
}
|
|
i--
|
|
dAtA[i] = 0x20
|
|
}
|
|
if len(m.PageToken) > 0 {
|
|
i -= len(m.PageToken)
|
|
copy(dAtA[i:], m.PageToken)
|
|
i = encodeVarintWebApi(dAtA, i, uint64(len(m.PageToken)))
|
|
i--
|
|
dAtA[i] = 0x1a
|
|
}
|
|
if m.PageSize != 0 {
|
|
i = encodeVarintWebApi(dAtA, i, uint64(m.PageSize))
|
|
i--
|
|
dAtA[i] = 0x10
|
|
}
|
|
if m.GetDepositTxData {
|
|
i--
|
|
if m.GetDepositTxData {
|
|
dAtA[i] = 1
|
|
} else {
|
|
dAtA[i] = 0
|
|
}
|
|
i--
|
|
dAtA[i] = 0x8
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *ListAccountsResponse) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *ListAccountsResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *ListAccountsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if m.XXX_unrecognized != nil {
|
|
i -= len(m.XXX_unrecognized)
|
|
copy(dAtA[i:], m.XXX_unrecognized)
|
|
}
|
|
if m.TotalSize != 0 {
|
|
i = encodeVarintWebApi(dAtA, i, uint64(m.TotalSize))
|
|
i--
|
|
dAtA[i] = 0x18
|
|
}
|
|
if len(m.NextPageToken) > 0 {
|
|
i -= len(m.NextPageToken)
|
|
copy(dAtA[i:], m.NextPageToken)
|
|
i = encodeVarintWebApi(dAtA, i, uint64(len(m.NextPageToken)))
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
if len(m.Accounts) > 0 {
|
|
for iNdEx := len(m.Accounts) - 1; iNdEx >= 0; iNdEx-- {
|
|
{
|
|
size, err := m.Accounts[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintWebApi(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *Account) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *Account) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *Account) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if m.XXX_unrecognized != nil {
|
|
i -= len(m.XXX_unrecognized)
|
|
copy(dAtA[i:], m.XXX_unrecognized)
|
|
}
|
|
if len(m.DerivationPath) > 0 {
|
|
i -= len(m.DerivationPath)
|
|
copy(dAtA[i:], m.DerivationPath)
|
|
i = encodeVarintWebApi(dAtA, i, uint64(len(m.DerivationPath)))
|
|
i--
|
|
dAtA[i] = 0x22
|
|
}
|
|
if len(m.DepositTxData) > 0 {
|
|
i -= len(m.DepositTxData)
|
|
copy(dAtA[i:], m.DepositTxData)
|
|
i = encodeVarintWebApi(dAtA, i, uint64(len(m.DepositTxData)))
|
|
i--
|
|
dAtA[i] = 0x1a
|
|
}
|
|
if len(m.AccountName) > 0 {
|
|
i -= len(m.AccountName)
|
|
copy(dAtA[i:], m.AccountName)
|
|
i = encodeVarintWebApi(dAtA, i, uint64(len(m.AccountName)))
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
if len(m.ValidatingPublicKey) > 0 {
|
|
i -= len(m.ValidatingPublicKey)
|
|
copy(dAtA[i:], m.ValidatingPublicKey)
|
|
i = encodeVarintWebApi(dAtA, i, uint64(len(m.ValidatingPublicKey)))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *AccountRequest) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *AccountRequest) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *AccountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if m.XXX_unrecognized != nil {
|
|
i -= len(m.XXX_unrecognized)
|
|
copy(dAtA[i:], m.XXX_unrecognized)
|
|
}
|
|
if len(m.Indices) > 0 {
|
|
dAtA3 := make([]byte, len(m.Indices)*10)
|
|
var j2 int
|
|
for _, num := range m.Indices {
|
|
for num >= 1<<7 {
|
|
dAtA3[j2] = uint8(uint64(num)&0x7f | 0x80)
|
|
num >>= 7
|
|
j2++
|
|
}
|
|
dAtA3[j2] = uint8(num)
|
|
j2++
|
|
}
|
|
i -= j2
|
|
copy(dAtA[i:], dAtA3[:j2])
|
|
i = encodeVarintWebApi(dAtA, i, uint64(j2))
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
if len(m.PublicKeys) > 0 {
|
|
for iNdEx := len(m.PublicKeys) - 1; iNdEx >= 0; iNdEx-- {
|
|
i -= len(m.PublicKeys[iNdEx])
|
|
copy(dAtA[i:], m.PublicKeys[iNdEx])
|
|
i = encodeVarintWebApi(dAtA, i, uint64(len(m.PublicKeys[iNdEx])))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *AuthRequest) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *AuthRequest) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *AuthRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if m.XXX_unrecognized != nil {
|
|
i -= len(m.XXX_unrecognized)
|
|
copy(dAtA[i:], m.XXX_unrecognized)
|
|
}
|
|
if len(m.PasswordConfirmation) > 0 {
|
|
i -= len(m.PasswordConfirmation)
|
|
copy(dAtA[i:], m.PasswordConfirmation)
|
|
i = encodeVarintWebApi(dAtA, i, uint64(len(m.PasswordConfirmation)))
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
if len(m.Password) > 0 {
|
|
i -= len(m.Password)
|
|
copy(dAtA[i:], m.Password)
|
|
i = encodeVarintWebApi(dAtA, i, uint64(len(m.Password)))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *AuthResponse) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *AuthResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *AuthResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if m.XXX_unrecognized != nil {
|
|
i -= len(m.XXX_unrecognized)
|
|
copy(dAtA[i:], m.XXX_unrecognized)
|
|
}
|
|
if m.TokenExpiration != 0 {
|
|
i = encodeVarintWebApi(dAtA, i, uint64(m.TokenExpiration))
|
|
i--
|
|
dAtA[i] = 0x10
|
|
}
|
|
if len(m.Token) > 0 {
|
|
i -= len(m.Token)
|
|
copy(dAtA[i:], m.Token)
|
|
i = encodeVarintWebApi(dAtA, i, uint64(len(m.Token)))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *NodeConnectionResponse) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *NodeConnectionResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *NodeConnectionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if m.XXX_unrecognized != nil {
|
|
i -= len(m.XXX_unrecognized)
|
|
copy(dAtA[i:], m.XXX_unrecognized)
|
|
}
|
|
if len(m.DepositContractAddress) > 0 {
|
|
i -= len(m.DepositContractAddress)
|
|
copy(dAtA[i:], m.DepositContractAddress)
|
|
i = encodeVarintWebApi(dAtA, i, uint64(len(m.DepositContractAddress)))
|
|
i--
|
|
dAtA[i] = 0x2a
|
|
}
|
|
if m.GenesisTime != 0 {
|
|
i = encodeVarintWebApi(dAtA, i, uint64(m.GenesisTime))
|
|
i--
|
|
dAtA[i] = 0x20
|
|
}
|
|
if m.Syncing {
|
|
i--
|
|
if m.Syncing {
|
|
dAtA[i] = 1
|
|
} else {
|
|
dAtA[i] = 0
|
|
}
|
|
i--
|
|
dAtA[i] = 0x18
|
|
}
|
|
if m.Connected {
|
|
i--
|
|
if m.Connected {
|
|
dAtA[i] = 1
|
|
} else {
|
|
dAtA[i] = 0
|
|
}
|
|
i--
|
|
dAtA[i] = 0x10
|
|
}
|
|
if len(m.BeaconNodeEndpoint) > 0 {
|
|
i -= len(m.BeaconNodeEndpoint)
|
|
copy(dAtA[i:], m.BeaconNodeEndpoint)
|
|
i = encodeVarintWebApi(dAtA, i, uint64(len(m.BeaconNodeEndpoint)))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *LogsEndpointResponse) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *LogsEndpointResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *LogsEndpointResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if m.XXX_unrecognized != nil {
|
|
i -= len(m.XXX_unrecognized)
|
|
copy(dAtA[i:], m.XXX_unrecognized)
|
|
}
|
|
if len(m.BeaconLogsEndpoint) > 0 {
|
|
i -= len(m.BeaconLogsEndpoint)
|
|
copy(dAtA[i:], m.BeaconLogsEndpoint)
|
|
i = encodeVarintWebApi(dAtA, i, uint64(len(m.BeaconLogsEndpoint)))
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
if len(m.ValidatorLogsEndpoint) > 0 {
|
|
i -= len(m.ValidatorLogsEndpoint)
|
|
copy(dAtA[i:], m.ValidatorLogsEndpoint)
|
|
i = encodeVarintWebApi(dAtA, i, uint64(len(m.ValidatorLogsEndpoint)))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *VersionResponse) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *VersionResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *VersionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if m.XXX_unrecognized != nil {
|
|
i -= len(m.XXX_unrecognized)
|
|
copy(dAtA[i:], m.XXX_unrecognized)
|
|
}
|
|
if len(m.Validator) > 0 {
|
|
i -= len(m.Validator)
|
|
copy(dAtA[i:], m.Validator)
|
|
i = encodeVarintWebApi(dAtA, i, uint64(len(m.Validator)))
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
if len(m.Beacon) > 0 {
|
|
i -= len(m.Beacon)
|
|
copy(dAtA[i:], m.Beacon)
|
|
i = encodeVarintWebApi(dAtA, i, uint64(len(m.Beacon)))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *ChangePasswordRequest) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *ChangePasswordRequest) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *ChangePasswordRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if m.XXX_unrecognized != nil {
|
|
i -= len(m.XXX_unrecognized)
|
|
copy(dAtA[i:], m.XXX_unrecognized)
|
|
}
|
|
if len(m.PasswordConfirmation) > 0 {
|
|
i -= len(m.PasswordConfirmation)
|
|
copy(dAtA[i:], m.PasswordConfirmation)
|
|
i = encodeVarintWebApi(dAtA, i, uint64(len(m.PasswordConfirmation)))
|
|
i--
|
|
dAtA[i] = 0x1a
|
|
}
|
|
if len(m.Password) > 0 {
|
|
i -= len(m.Password)
|
|
copy(dAtA[i:], m.Password)
|
|
i = encodeVarintWebApi(dAtA, i, uint64(len(m.Password)))
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
if len(m.CurrentPassword) > 0 {
|
|
i -= len(m.CurrentPassword)
|
|
copy(dAtA[i:], m.CurrentPassword)
|
|
i = encodeVarintWebApi(dAtA, i, uint64(len(m.CurrentPassword)))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *HasWalletResponse) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *HasWalletResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *HasWalletResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if m.XXX_unrecognized != nil {
|
|
i -= len(m.XXX_unrecognized)
|
|
copy(dAtA[i:], m.XXX_unrecognized)
|
|
}
|
|
if m.WalletExists {
|
|
i--
|
|
if m.WalletExists {
|
|
dAtA[i] = 1
|
|
} else {
|
|
dAtA[i] = 0
|
|
}
|
|
i--
|
|
dAtA[i] = 0x8
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *ImportKeystoresRequest) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *ImportKeystoresRequest) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *ImportKeystoresRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if m.XXX_unrecognized != nil {
|
|
i -= len(m.XXX_unrecognized)
|
|
copy(dAtA[i:], m.XXX_unrecognized)
|
|
}
|
|
if len(m.KeystoresPassword) > 0 {
|
|
i -= len(m.KeystoresPassword)
|
|
copy(dAtA[i:], m.KeystoresPassword)
|
|
i = encodeVarintWebApi(dAtA, i, uint64(len(m.KeystoresPassword)))
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
if len(m.KeystoresImported) > 0 {
|
|
for iNdEx := len(m.KeystoresImported) - 1; iNdEx >= 0; iNdEx-- {
|
|
i -= len(m.KeystoresImported[iNdEx])
|
|
copy(dAtA[i:], m.KeystoresImported[iNdEx])
|
|
i = encodeVarintWebApi(dAtA, i, uint64(len(m.KeystoresImported[iNdEx])))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *ImportKeystoresResponse) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *ImportKeystoresResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *ImportKeystoresResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if m.XXX_unrecognized != nil {
|
|
i -= len(m.XXX_unrecognized)
|
|
copy(dAtA[i:], m.XXX_unrecognized)
|
|
}
|
|
if len(m.ImportedPublicKeys) > 0 {
|
|
for iNdEx := len(m.ImportedPublicKeys) - 1; iNdEx >= 0; iNdEx-- {
|
|
i -= len(m.ImportedPublicKeys[iNdEx])
|
|
copy(dAtA[i:], m.ImportedPublicKeys[iNdEx])
|
|
i = encodeVarintWebApi(dAtA, i, uint64(len(m.ImportedPublicKeys[iNdEx])))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *HasUsedWebResponse) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *HasUsedWebResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *HasUsedWebResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if m.XXX_unrecognized != nil {
|
|
i -= len(m.XXX_unrecognized)
|
|
copy(dAtA[i:], m.XXX_unrecognized)
|
|
}
|
|
if m.HasWallet {
|
|
i--
|
|
if m.HasWallet {
|
|
dAtA[i] = 1
|
|
} else {
|
|
dAtA[i] = 0
|
|
}
|
|
i--
|
|
dAtA[i] = 0x10
|
|
}
|
|
if m.HasSignedUp {
|
|
i--
|
|
if m.HasSignedUp {
|
|
dAtA[i] = 1
|
|
} else {
|
|
dAtA[i] = 0
|
|
}
|
|
i--
|
|
dAtA[i] = 0x8
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *LogsResponse) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *LogsResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *LogsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if m.XXX_unrecognized != nil {
|
|
i -= len(m.XXX_unrecognized)
|
|
copy(dAtA[i:], m.XXX_unrecognized)
|
|
}
|
|
if len(m.Logs) > 0 {
|
|
for iNdEx := len(m.Logs) - 1; iNdEx >= 0; iNdEx-- {
|
|
i -= len(m.Logs[iNdEx])
|
|
copy(dAtA[i:], m.Logs[iNdEx])
|
|
i = encodeVarintWebApi(dAtA, i, uint64(len(m.Logs[iNdEx])))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *BeaconStatusResponse) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *BeaconStatusResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *BeaconStatusResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if m.XXX_unrecognized != nil {
|
|
i -= len(m.XXX_unrecognized)
|
|
copy(dAtA[i:], m.XXX_unrecognized)
|
|
}
|
|
if m.ChainHead != nil {
|
|
{
|
|
size, err := m.ChainHead.MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintWebApi(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0x32
|
|
}
|
|
if len(m.DepositContractAddress) > 0 {
|
|
i -= len(m.DepositContractAddress)
|
|
copy(dAtA[i:], m.DepositContractAddress)
|
|
i = encodeVarintWebApi(dAtA, i, uint64(len(m.DepositContractAddress)))
|
|
i--
|
|
dAtA[i] = 0x2a
|
|
}
|
|
if m.GenesisTime != 0 {
|
|
i = encodeVarintWebApi(dAtA, i, uint64(m.GenesisTime))
|
|
i--
|
|
dAtA[i] = 0x20
|
|
}
|
|
if m.Syncing {
|
|
i--
|
|
if m.Syncing {
|
|
dAtA[i] = 1
|
|
} else {
|
|
dAtA[i] = 0
|
|
}
|
|
i--
|
|
dAtA[i] = 0x18
|
|
}
|
|
if m.Connected {
|
|
i--
|
|
if m.Connected {
|
|
dAtA[i] = 1
|
|
} else {
|
|
dAtA[i] = 0
|
|
}
|
|
i--
|
|
dAtA[i] = 0x10
|
|
}
|
|
if len(m.BeaconNodeEndpoint) > 0 {
|
|
i -= len(m.BeaconNodeEndpoint)
|
|
copy(dAtA[i:], m.BeaconNodeEndpoint)
|
|
i = encodeVarintWebApi(dAtA, i, uint64(len(m.BeaconNodeEndpoint)))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *BackupAccountsRequest) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *BackupAccountsRequest) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *BackupAccountsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if m.XXX_unrecognized != nil {
|
|
i -= len(m.XXX_unrecognized)
|
|
copy(dAtA[i:], m.XXX_unrecognized)
|
|
}
|
|
if len(m.BackupPassword) > 0 {
|
|
i -= len(m.BackupPassword)
|
|
copy(dAtA[i:], m.BackupPassword)
|
|
i = encodeVarintWebApi(dAtA, i, uint64(len(m.BackupPassword)))
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
if len(m.PublicKeys) > 0 {
|
|
for iNdEx := len(m.PublicKeys) - 1; iNdEx >= 0; iNdEx-- {
|
|
i -= len(m.PublicKeys[iNdEx])
|
|
copy(dAtA[i:], m.PublicKeys[iNdEx])
|
|
i = encodeVarintWebApi(dAtA, i, uint64(len(m.PublicKeys[iNdEx])))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *BackupAccountsResponse) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *BackupAccountsResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *BackupAccountsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if m.XXX_unrecognized != nil {
|
|
i -= len(m.XXX_unrecognized)
|
|
copy(dAtA[i:], m.XXX_unrecognized)
|
|
}
|
|
if len(m.ZipFile) > 0 {
|
|
i -= len(m.ZipFile)
|
|
copy(dAtA[i:], m.ZipFile)
|
|
i = encodeVarintWebApi(dAtA, i, uint64(len(m.ZipFile)))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func encodeVarintWebApi(dAtA []byte, offset int, v uint64) int {
|
|
offset -= sovWebApi(v)
|
|
base := offset
|
|
for v >= 1<<7 {
|
|
dAtA[offset] = uint8(v&0x7f | 0x80)
|
|
v >>= 7
|
|
offset++
|
|
}
|
|
dAtA[offset] = uint8(v)
|
|
return base
|
|
}
|
|
func (m *CreateWalletRequest) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if m.Keymanager != 0 {
|
|
n += 1 + sovWebApi(uint64(m.Keymanager))
|
|
}
|
|
l = len(m.WalletPassword)
|
|
if l > 0 {
|
|
n += 1 + l + sovWebApi(uint64(l))
|
|
}
|
|
l = len(m.Mnemonic)
|
|
if l > 0 {
|
|
n += 1 + l + sovWebApi(uint64(l))
|
|
}
|
|
if m.NumAccounts != 0 {
|
|
n += 1 + sovWebApi(uint64(m.NumAccounts))
|
|
}
|
|
l = len(m.RemoteAddr)
|
|
if l > 0 {
|
|
n += 1 + l + sovWebApi(uint64(l))
|
|
}
|
|
l = len(m.RemoteCrtPath)
|
|
if l > 0 {
|
|
n += 1 + l + sovWebApi(uint64(l))
|
|
}
|
|
l = len(m.RemoteKeyPath)
|
|
if l > 0 {
|
|
n += 1 + l + sovWebApi(uint64(l))
|
|
}
|
|
l = len(m.RemoteCaCrtPath)
|
|
if l > 0 {
|
|
n += 1 + l + sovWebApi(uint64(l))
|
|
}
|
|
if m.XXX_unrecognized != nil {
|
|
n += len(m.XXX_unrecognized)
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *CreateWalletResponse) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if m.Wallet != nil {
|
|
l = m.Wallet.Size()
|
|
n += 1 + l + sovWebApi(uint64(l))
|
|
}
|
|
if m.XXX_unrecognized != nil {
|
|
n += len(m.XXX_unrecognized)
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *EditWalletConfigRequest) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
l = len(m.RemoteAddr)
|
|
if l > 0 {
|
|
n += 1 + l + sovWebApi(uint64(l))
|
|
}
|
|
l = len(m.RemoteCrtPath)
|
|
if l > 0 {
|
|
n += 1 + l + sovWebApi(uint64(l))
|
|
}
|
|
l = len(m.RemoteKeyPath)
|
|
if l > 0 {
|
|
n += 1 + l + sovWebApi(uint64(l))
|
|
}
|
|
l = len(m.RemoteCaCrtPath)
|
|
if l > 0 {
|
|
n += 1 + l + sovWebApi(uint64(l))
|
|
}
|
|
if m.XXX_unrecognized != nil {
|
|
n += len(m.XXX_unrecognized)
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *GenerateMnemonicResponse) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
l = len(m.Mnemonic)
|
|
if l > 0 {
|
|
n += 1 + l + sovWebApi(uint64(l))
|
|
}
|
|
if m.XXX_unrecognized != nil {
|
|
n += len(m.XXX_unrecognized)
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *WalletResponse) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
l = len(m.WalletPath)
|
|
if l > 0 {
|
|
n += 1 + l + sovWebApi(uint64(l))
|
|
}
|
|
if m.KeymanagerKind != 0 {
|
|
n += 1 + sovWebApi(uint64(m.KeymanagerKind))
|
|
}
|
|
if m.XXX_unrecognized != nil {
|
|
n += len(m.XXX_unrecognized)
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *ListAccountsRequest) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if m.GetDepositTxData {
|
|
n += 2
|
|
}
|
|
if m.PageSize != 0 {
|
|
n += 1 + sovWebApi(uint64(m.PageSize))
|
|
}
|
|
l = len(m.PageToken)
|
|
if l > 0 {
|
|
n += 1 + l + sovWebApi(uint64(l))
|
|
}
|
|
if m.All {
|
|
n += 2
|
|
}
|
|
if m.XXX_unrecognized != nil {
|
|
n += len(m.XXX_unrecognized)
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *ListAccountsResponse) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if len(m.Accounts) > 0 {
|
|
for _, e := range m.Accounts {
|
|
l = e.Size()
|
|
n += 1 + l + sovWebApi(uint64(l))
|
|
}
|
|
}
|
|
l = len(m.NextPageToken)
|
|
if l > 0 {
|
|
n += 1 + l + sovWebApi(uint64(l))
|
|
}
|
|
if m.TotalSize != 0 {
|
|
n += 1 + sovWebApi(uint64(m.TotalSize))
|
|
}
|
|
if m.XXX_unrecognized != nil {
|
|
n += len(m.XXX_unrecognized)
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *Account) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
l = len(m.ValidatingPublicKey)
|
|
if l > 0 {
|
|
n += 1 + l + sovWebApi(uint64(l))
|
|
}
|
|
l = len(m.AccountName)
|
|
if l > 0 {
|
|
n += 1 + l + sovWebApi(uint64(l))
|
|
}
|
|
l = len(m.DepositTxData)
|
|
if l > 0 {
|
|
n += 1 + l + sovWebApi(uint64(l))
|
|
}
|
|
l = len(m.DerivationPath)
|
|
if l > 0 {
|
|
n += 1 + l + sovWebApi(uint64(l))
|
|
}
|
|
if m.XXX_unrecognized != nil {
|
|
n += len(m.XXX_unrecognized)
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *AccountRequest) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if len(m.PublicKeys) > 0 {
|
|
for _, b := range m.PublicKeys {
|
|
l = len(b)
|
|
n += 1 + l + sovWebApi(uint64(l))
|
|
}
|
|
}
|
|
if len(m.Indices) > 0 {
|
|
l = 0
|
|
for _, e := range m.Indices {
|
|
l += sovWebApi(uint64(e))
|
|
}
|
|
n += 1 + sovWebApi(uint64(l)) + l
|
|
}
|
|
if m.XXX_unrecognized != nil {
|
|
n += len(m.XXX_unrecognized)
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *AuthRequest) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
l = len(m.Password)
|
|
if l > 0 {
|
|
n += 1 + l + sovWebApi(uint64(l))
|
|
}
|
|
l = len(m.PasswordConfirmation)
|
|
if l > 0 {
|
|
n += 1 + l + sovWebApi(uint64(l))
|
|
}
|
|
if m.XXX_unrecognized != nil {
|
|
n += len(m.XXX_unrecognized)
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *AuthResponse) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
l = len(m.Token)
|
|
if l > 0 {
|
|
n += 1 + l + sovWebApi(uint64(l))
|
|
}
|
|
if m.TokenExpiration != 0 {
|
|
n += 1 + sovWebApi(uint64(m.TokenExpiration))
|
|
}
|
|
if m.XXX_unrecognized != nil {
|
|
n += len(m.XXX_unrecognized)
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *NodeConnectionResponse) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
l = len(m.BeaconNodeEndpoint)
|
|
if l > 0 {
|
|
n += 1 + l + sovWebApi(uint64(l))
|
|
}
|
|
if m.Connected {
|
|
n += 2
|
|
}
|
|
if m.Syncing {
|
|
n += 2
|
|
}
|
|
if m.GenesisTime != 0 {
|
|
n += 1 + sovWebApi(uint64(m.GenesisTime))
|
|
}
|
|
l = len(m.DepositContractAddress)
|
|
if l > 0 {
|
|
n += 1 + l + sovWebApi(uint64(l))
|
|
}
|
|
if m.XXX_unrecognized != nil {
|
|
n += len(m.XXX_unrecognized)
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *LogsEndpointResponse) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
l = len(m.ValidatorLogsEndpoint)
|
|
if l > 0 {
|
|
n += 1 + l + sovWebApi(uint64(l))
|
|
}
|
|
l = len(m.BeaconLogsEndpoint)
|
|
if l > 0 {
|
|
n += 1 + l + sovWebApi(uint64(l))
|
|
}
|
|
if m.XXX_unrecognized != nil {
|
|
n += len(m.XXX_unrecognized)
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *VersionResponse) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
l = len(m.Beacon)
|
|
if l > 0 {
|
|
n += 1 + l + sovWebApi(uint64(l))
|
|
}
|
|
l = len(m.Validator)
|
|
if l > 0 {
|
|
n += 1 + l + sovWebApi(uint64(l))
|
|
}
|
|
if m.XXX_unrecognized != nil {
|
|
n += len(m.XXX_unrecognized)
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *ChangePasswordRequest) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
l = len(m.CurrentPassword)
|
|
if l > 0 {
|
|
n += 1 + l + sovWebApi(uint64(l))
|
|
}
|
|
l = len(m.Password)
|
|
if l > 0 {
|
|
n += 1 + l + sovWebApi(uint64(l))
|
|
}
|
|
l = len(m.PasswordConfirmation)
|
|
if l > 0 {
|
|
n += 1 + l + sovWebApi(uint64(l))
|
|
}
|
|
if m.XXX_unrecognized != nil {
|
|
n += len(m.XXX_unrecognized)
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *HasWalletResponse) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if m.WalletExists {
|
|
n += 2
|
|
}
|
|
if m.XXX_unrecognized != nil {
|
|
n += len(m.XXX_unrecognized)
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *ImportKeystoresRequest) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if len(m.KeystoresImported) > 0 {
|
|
for _, s := range m.KeystoresImported {
|
|
l = len(s)
|
|
n += 1 + l + sovWebApi(uint64(l))
|
|
}
|
|
}
|
|
l = len(m.KeystoresPassword)
|
|
if l > 0 {
|
|
n += 1 + l + sovWebApi(uint64(l))
|
|
}
|
|
if m.XXX_unrecognized != nil {
|
|
n += len(m.XXX_unrecognized)
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *ImportKeystoresResponse) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if len(m.ImportedPublicKeys) > 0 {
|
|
for _, b := range m.ImportedPublicKeys {
|
|
l = len(b)
|
|
n += 1 + l + sovWebApi(uint64(l))
|
|
}
|
|
}
|
|
if m.XXX_unrecognized != nil {
|
|
n += len(m.XXX_unrecognized)
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *HasUsedWebResponse) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if m.HasSignedUp {
|
|
n += 2
|
|
}
|
|
if m.HasWallet {
|
|
n += 2
|
|
}
|
|
if m.XXX_unrecognized != nil {
|
|
n += len(m.XXX_unrecognized)
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *LogsResponse) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if len(m.Logs) > 0 {
|
|
for _, s := range m.Logs {
|
|
l = len(s)
|
|
n += 1 + l + sovWebApi(uint64(l))
|
|
}
|
|
}
|
|
if m.XXX_unrecognized != nil {
|
|
n += len(m.XXX_unrecognized)
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *BeaconStatusResponse) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
l = len(m.BeaconNodeEndpoint)
|
|
if l > 0 {
|
|
n += 1 + l + sovWebApi(uint64(l))
|
|
}
|
|
if m.Connected {
|
|
n += 2
|
|
}
|
|
if m.Syncing {
|
|
n += 2
|
|
}
|
|
if m.GenesisTime != 0 {
|
|
n += 1 + sovWebApi(uint64(m.GenesisTime))
|
|
}
|
|
l = len(m.DepositContractAddress)
|
|
if l > 0 {
|
|
n += 1 + l + sovWebApi(uint64(l))
|
|
}
|
|
if m.ChainHead != nil {
|
|
l = m.ChainHead.Size()
|
|
n += 1 + l + sovWebApi(uint64(l))
|
|
}
|
|
if m.XXX_unrecognized != nil {
|
|
n += len(m.XXX_unrecognized)
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *BackupAccountsRequest) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if len(m.PublicKeys) > 0 {
|
|
for _, b := range m.PublicKeys {
|
|
l = len(b)
|
|
n += 1 + l + sovWebApi(uint64(l))
|
|
}
|
|
}
|
|
l = len(m.BackupPassword)
|
|
if l > 0 {
|
|
n += 1 + l + sovWebApi(uint64(l))
|
|
}
|
|
if m.XXX_unrecognized != nil {
|
|
n += len(m.XXX_unrecognized)
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *BackupAccountsResponse) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
l = len(m.ZipFile)
|
|
if l > 0 {
|
|
n += 1 + l + sovWebApi(uint64(l))
|
|
}
|
|
if m.XXX_unrecognized != nil {
|
|
n += len(m.XXX_unrecognized)
|
|
}
|
|
return n
|
|
}
|
|
|
|
func sovWebApi(x uint64) (n int) {
|
|
return (math_bits.Len64(x|1) + 6) / 7
|
|
}
|
|
func sozWebApi(x uint64) (n int) {
|
|
return sovWebApi(uint64((x << 1) ^ uint64((int64(x) >> 63))))
|
|
}
|
|
func (m *CreateWalletRequest) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowWebApi
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: CreateWalletRequest: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: CreateWalletRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Keymanager", wireType)
|
|
}
|
|
m.Keymanager = 0
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowWebApi
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
m.Keymanager |= KeymanagerKind(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
case 2:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field WalletPassword", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowWebApi
|
|
}
|
|
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 ErrInvalidLengthWebApi
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthWebApi
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.WalletPassword = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 3:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Mnemonic", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowWebApi
|
|
}
|
|
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 ErrInvalidLengthWebApi
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthWebApi
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Mnemonic = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 4:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field NumAccounts", wireType)
|
|
}
|
|
m.NumAccounts = 0
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowWebApi
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
m.NumAccounts |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
case 5:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field RemoteAddr", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowWebApi
|
|
}
|
|
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 ErrInvalidLengthWebApi
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthWebApi
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.RemoteAddr = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 6:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field RemoteCrtPath", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowWebApi
|
|
}
|
|
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 ErrInvalidLengthWebApi
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthWebApi
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.RemoteCrtPath = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 7:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field RemoteKeyPath", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowWebApi
|
|
}
|
|
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 ErrInvalidLengthWebApi
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthWebApi
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.RemoteKeyPath = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 8:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field RemoteCaCrtPath", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowWebApi
|
|
}
|
|
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 ErrInvalidLengthWebApi
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthWebApi
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.RemoteCaCrtPath = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipWebApi(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthWebApi
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *CreateWalletResponse) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowWebApi
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: CreateWalletResponse: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: CreateWalletResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Wallet", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowWebApi
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthWebApi
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthWebApi
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if m.Wallet == nil {
|
|
m.Wallet = &WalletResponse{}
|
|
}
|
|
if err := m.Wallet.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipWebApi(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthWebApi
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *EditWalletConfigRequest) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowWebApi
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: EditWalletConfigRequest: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: EditWalletConfigRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field RemoteAddr", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowWebApi
|
|
}
|
|
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 ErrInvalidLengthWebApi
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthWebApi
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.RemoteAddr = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 2:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field RemoteCrtPath", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowWebApi
|
|
}
|
|
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 ErrInvalidLengthWebApi
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthWebApi
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.RemoteCrtPath = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 3:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field RemoteKeyPath", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowWebApi
|
|
}
|
|
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 ErrInvalidLengthWebApi
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthWebApi
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.RemoteKeyPath = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 4:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field RemoteCaCrtPath", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowWebApi
|
|
}
|
|
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 ErrInvalidLengthWebApi
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthWebApi
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.RemoteCaCrtPath = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipWebApi(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthWebApi
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *GenerateMnemonicResponse) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowWebApi
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: GenerateMnemonicResponse: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: GenerateMnemonicResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Mnemonic", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowWebApi
|
|
}
|
|
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 ErrInvalidLengthWebApi
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthWebApi
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Mnemonic = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipWebApi(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthWebApi
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *WalletResponse) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowWebApi
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: WalletResponse: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: WalletResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field WalletPath", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowWebApi
|
|
}
|
|
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 ErrInvalidLengthWebApi
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthWebApi
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.WalletPath = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 2:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field KeymanagerKind", wireType)
|
|
}
|
|
m.KeymanagerKind = 0
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowWebApi
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
m.KeymanagerKind |= KeymanagerKind(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipWebApi(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthWebApi
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *ListAccountsRequest) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowWebApi
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: ListAccountsRequest: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: ListAccountsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field GetDepositTxData", wireType)
|
|
}
|
|
var v int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowWebApi
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
v |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
m.GetDepositTxData = bool(v != 0)
|
|
case 2:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field PageSize", wireType)
|
|
}
|
|
m.PageSize = 0
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowWebApi
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
m.PageSize |= int32(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
case 3:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field PageToken", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowWebApi
|
|
}
|
|
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 ErrInvalidLengthWebApi
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthWebApi
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.PageToken = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 4:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field All", wireType)
|
|
}
|
|
var v int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowWebApi
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
v |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
m.All = bool(v != 0)
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipWebApi(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthWebApi
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *ListAccountsResponse) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowWebApi
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: ListAccountsResponse: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: ListAccountsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Accounts", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowWebApi
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthWebApi
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthWebApi
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Accounts = append(m.Accounts, &Account{})
|
|
if err := m.Accounts[len(m.Accounts)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
case 2:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field NextPageToken", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowWebApi
|
|
}
|
|
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 ErrInvalidLengthWebApi
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthWebApi
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.NextPageToken = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 3:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field TotalSize", wireType)
|
|
}
|
|
m.TotalSize = 0
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowWebApi
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
m.TotalSize |= int32(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipWebApi(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthWebApi
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *Account) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowWebApi
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: Account: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: Account: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ValidatingPublicKey", wireType)
|
|
}
|
|
var byteLen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowWebApi
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
byteLen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if byteLen < 0 {
|
|
return ErrInvalidLengthWebApi
|
|
}
|
|
postIndex := iNdEx + byteLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthWebApi
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.ValidatingPublicKey = append(m.ValidatingPublicKey[:0], dAtA[iNdEx:postIndex]...)
|
|
if m.ValidatingPublicKey == nil {
|
|
m.ValidatingPublicKey = []byte{}
|
|
}
|
|
iNdEx = postIndex
|
|
case 2:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field AccountName", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowWebApi
|
|
}
|
|
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 ErrInvalidLengthWebApi
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthWebApi
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.AccountName = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 3:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field DepositTxData", wireType)
|
|
}
|
|
var byteLen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowWebApi
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
byteLen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if byteLen < 0 {
|
|
return ErrInvalidLengthWebApi
|
|
}
|
|
postIndex := iNdEx + byteLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthWebApi
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.DepositTxData = append(m.DepositTxData[:0], dAtA[iNdEx:postIndex]...)
|
|
if m.DepositTxData == nil {
|
|
m.DepositTxData = []byte{}
|
|
}
|
|
iNdEx = postIndex
|
|
case 4:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field DerivationPath", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowWebApi
|
|
}
|
|
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 ErrInvalidLengthWebApi
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthWebApi
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.DerivationPath = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipWebApi(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthWebApi
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *AccountRequest) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowWebApi
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: AccountRequest: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: AccountRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field PublicKeys", wireType)
|
|
}
|
|
var byteLen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowWebApi
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
byteLen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if byteLen < 0 {
|
|
return ErrInvalidLengthWebApi
|
|
}
|
|
postIndex := iNdEx + byteLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthWebApi
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.PublicKeys = append(m.PublicKeys, make([]byte, postIndex-iNdEx))
|
|
copy(m.PublicKeys[len(m.PublicKeys)-1], dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 2:
|
|
if wireType == 0 {
|
|
var v uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowWebApi
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
v |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
m.Indices = append(m.Indices, v)
|
|
} else if wireType == 2 {
|
|
var packedLen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowWebApi
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
packedLen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if packedLen < 0 {
|
|
return ErrInvalidLengthWebApi
|
|
}
|
|
postIndex := iNdEx + packedLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthWebApi
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
var elementCount int
|
|
var count int
|
|
for _, integer := range dAtA[iNdEx:postIndex] {
|
|
if integer < 128 {
|
|
count++
|
|
}
|
|
}
|
|
elementCount = count
|
|
if elementCount != 0 && len(m.Indices) == 0 {
|
|
m.Indices = make([]uint64, 0, elementCount)
|
|
}
|
|
for iNdEx < postIndex {
|
|
var v uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowWebApi
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
v |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
m.Indices = append(m.Indices, v)
|
|
}
|
|
} else {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Indices", wireType)
|
|
}
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipWebApi(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthWebApi
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *AuthRequest) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowWebApi
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: AuthRequest: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: AuthRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Password", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowWebApi
|
|
}
|
|
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 ErrInvalidLengthWebApi
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthWebApi
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Password = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 2:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field PasswordConfirmation", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowWebApi
|
|
}
|
|
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 ErrInvalidLengthWebApi
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthWebApi
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.PasswordConfirmation = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipWebApi(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthWebApi
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *AuthResponse) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowWebApi
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: AuthResponse: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: AuthResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Token", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowWebApi
|
|
}
|
|
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 ErrInvalidLengthWebApi
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthWebApi
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Token = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 2:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field TokenExpiration", wireType)
|
|
}
|
|
m.TokenExpiration = 0
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowWebApi
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
m.TokenExpiration |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipWebApi(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthWebApi
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *NodeConnectionResponse) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowWebApi
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: NodeConnectionResponse: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: NodeConnectionResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field BeaconNodeEndpoint", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowWebApi
|
|
}
|
|
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 ErrInvalidLengthWebApi
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthWebApi
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.BeaconNodeEndpoint = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 2:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Connected", wireType)
|
|
}
|
|
var v int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowWebApi
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
v |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
m.Connected = bool(v != 0)
|
|
case 3:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Syncing", wireType)
|
|
}
|
|
var v int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowWebApi
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
v |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
m.Syncing = bool(v != 0)
|
|
case 4:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field GenesisTime", wireType)
|
|
}
|
|
m.GenesisTime = 0
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowWebApi
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
m.GenesisTime |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
case 5:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field DepositContractAddress", wireType)
|
|
}
|
|
var byteLen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowWebApi
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
byteLen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if byteLen < 0 {
|
|
return ErrInvalidLengthWebApi
|
|
}
|
|
postIndex := iNdEx + byteLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthWebApi
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.DepositContractAddress = append(m.DepositContractAddress[:0], dAtA[iNdEx:postIndex]...)
|
|
if m.DepositContractAddress == nil {
|
|
m.DepositContractAddress = []byte{}
|
|
}
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipWebApi(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthWebApi
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *LogsEndpointResponse) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowWebApi
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: LogsEndpointResponse: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: LogsEndpointResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ValidatorLogsEndpoint", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowWebApi
|
|
}
|
|
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 ErrInvalidLengthWebApi
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthWebApi
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.ValidatorLogsEndpoint = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 2:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field BeaconLogsEndpoint", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowWebApi
|
|
}
|
|
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 ErrInvalidLengthWebApi
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthWebApi
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.BeaconLogsEndpoint = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipWebApi(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthWebApi
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *VersionResponse) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowWebApi
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: VersionResponse: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: VersionResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Beacon", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowWebApi
|
|
}
|
|
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 ErrInvalidLengthWebApi
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthWebApi
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Beacon = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 2:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Validator", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowWebApi
|
|
}
|
|
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 ErrInvalidLengthWebApi
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthWebApi
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Validator = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipWebApi(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthWebApi
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *ChangePasswordRequest) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowWebApi
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: ChangePasswordRequest: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: ChangePasswordRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field CurrentPassword", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowWebApi
|
|
}
|
|
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 ErrInvalidLengthWebApi
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthWebApi
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.CurrentPassword = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 2:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Password", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowWebApi
|
|
}
|
|
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 ErrInvalidLengthWebApi
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthWebApi
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Password = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 3:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field PasswordConfirmation", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowWebApi
|
|
}
|
|
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 ErrInvalidLengthWebApi
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthWebApi
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.PasswordConfirmation = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipWebApi(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthWebApi
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *HasWalletResponse) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowWebApi
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: HasWalletResponse: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: HasWalletResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field WalletExists", wireType)
|
|
}
|
|
var v int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowWebApi
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
v |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
m.WalletExists = bool(v != 0)
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipWebApi(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthWebApi
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *ImportKeystoresRequest) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowWebApi
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: ImportKeystoresRequest: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: ImportKeystoresRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field KeystoresImported", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowWebApi
|
|
}
|
|
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 ErrInvalidLengthWebApi
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthWebApi
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.KeystoresImported = append(m.KeystoresImported, string(dAtA[iNdEx:postIndex]))
|
|
iNdEx = postIndex
|
|
case 2:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field KeystoresPassword", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowWebApi
|
|
}
|
|
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 ErrInvalidLengthWebApi
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthWebApi
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.KeystoresPassword = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipWebApi(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthWebApi
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *ImportKeystoresResponse) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowWebApi
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: ImportKeystoresResponse: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: ImportKeystoresResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ImportedPublicKeys", wireType)
|
|
}
|
|
var byteLen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowWebApi
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
byteLen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if byteLen < 0 {
|
|
return ErrInvalidLengthWebApi
|
|
}
|
|
postIndex := iNdEx + byteLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthWebApi
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.ImportedPublicKeys = append(m.ImportedPublicKeys, make([]byte, postIndex-iNdEx))
|
|
copy(m.ImportedPublicKeys[len(m.ImportedPublicKeys)-1], dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipWebApi(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthWebApi
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *HasUsedWebResponse) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowWebApi
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: HasUsedWebResponse: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: HasUsedWebResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field HasSignedUp", wireType)
|
|
}
|
|
var v int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowWebApi
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
v |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
m.HasSignedUp = bool(v != 0)
|
|
case 2:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field HasWallet", wireType)
|
|
}
|
|
var v int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowWebApi
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
v |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
m.HasWallet = bool(v != 0)
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipWebApi(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthWebApi
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *LogsResponse) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowWebApi
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: LogsResponse: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: LogsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Logs", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowWebApi
|
|
}
|
|
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 ErrInvalidLengthWebApi
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthWebApi
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Logs = append(m.Logs, string(dAtA[iNdEx:postIndex]))
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipWebApi(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthWebApi
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *BeaconStatusResponse) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowWebApi
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: BeaconStatusResponse: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: BeaconStatusResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field BeaconNodeEndpoint", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowWebApi
|
|
}
|
|
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 ErrInvalidLengthWebApi
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthWebApi
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.BeaconNodeEndpoint = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 2:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Connected", wireType)
|
|
}
|
|
var v int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowWebApi
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
v |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
m.Connected = bool(v != 0)
|
|
case 3:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Syncing", wireType)
|
|
}
|
|
var v int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowWebApi
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
v |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
m.Syncing = bool(v != 0)
|
|
case 4:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field GenesisTime", wireType)
|
|
}
|
|
m.GenesisTime = 0
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowWebApi
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
m.GenesisTime |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
case 5:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field DepositContractAddress", wireType)
|
|
}
|
|
var byteLen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowWebApi
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
byteLen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if byteLen < 0 {
|
|
return ErrInvalidLengthWebApi
|
|
}
|
|
postIndex := iNdEx + byteLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthWebApi
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.DepositContractAddress = append(m.DepositContractAddress[:0], dAtA[iNdEx:postIndex]...)
|
|
if m.DepositContractAddress == nil {
|
|
m.DepositContractAddress = []byte{}
|
|
}
|
|
iNdEx = postIndex
|
|
case 6:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ChainHead", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowWebApi
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthWebApi
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthWebApi
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
if m.ChainHead == nil {
|
|
m.ChainHead = &v1alpha1.ChainHead{}
|
|
}
|
|
if err := m.ChainHead.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipWebApi(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthWebApi
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *BackupAccountsRequest) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowWebApi
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: BackupAccountsRequest: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: BackupAccountsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field PublicKeys", wireType)
|
|
}
|
|
var byteLen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowWebApi
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
byteLen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if byteLen < 0 {
|
|
return ErrInvalidLengthWebApi
|
|
}
|
|
postIndex := iNdEx + byteLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthWebApi
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.PublicKeys = append(m.PublicKeys, make([]byte, postIndex-iNdEx))
|
|
copy(m.PublicKeys[len(m.PublicKeys)-1], dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 2:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field BackupPassword", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowWebApi
|
|
}
|
|
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 ErrInvalidLengthWebApi
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthWebApi
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.BackupPassword = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipWebApi(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthWebApi
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *BackupAccountsResponse) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowWebApi
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: BackupAccountsResponse: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: BackupAccountsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ZipFile", wireType)
|
|
}
|
|
var byteLen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowWebApi
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
byteLen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if byteLen < 0 {
|
|
return ErrInvalidLengthWebApi
|
|
}
|
|
postIndex := iNdEx + byteLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthWebApi
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.ZipFile = append(m.ZipFile[:0], dAtA[iNdEx:postIndex]...)
|
|
if m.ZipFile == nil {
|
|
m.ZipFile = []byte{}
|
|
}
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipWebApi(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthWebApi
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func skipWebApi(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, ErrIntOverflowWebApi
|
|
}
|
|
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, ErrIntOverflowWebApi
|
|
}
|
|
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, ErrIntOverflowWebApi
|
|
}
|
|
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, ErrInvalidLengthWebApi
|
|
}
|
|
iNdEx += length
|
|
case 3:
|
|
depth++
|
|
case 4:
|
|
if depth == 0 {
|
|
return 0, ErrUnexpectedEndOfGroupWebApi
|
|
}
|
|
depth--
|
|
case 5:
|
|
iNdEx += 4
|
|
default:
|
|
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
|
|
}
|
|
if iNdEx < 0 {
|
|
return 0, ErrInvalidLengthWebApi
|
|
}
|
|
if depth == 0 {
|
|
return iNdEx, nil
|
|
}
|
|
}
|
|
return 0, io.ErrUnexpectedEOF
|
|
}
|
|
|
|
var (
|
|
ErrInvalidLengthWebApi = fmt.Errorf("proto: negative length found during unmarshaling")
|
|
ErrIntOverflowWebApi = fmt.Errorf("proto: integer overflow")
|
|
ErrUnexpectedEndOfGroupWebApi = fmt.Errorf("proto: unexpected end of group")
|
|
)
|