From d41647cc8063c9c74c1b514ad85e0dc2cda2cf46 Mon Sep 17 00:00:00 2001 From: Alex Yocom-Piatt Date: Mon, 9 Sep 2024 12:38:57 -0400 Subject: [PATCH] wallet: Major rpc version bump --- app/index.js | 2 +- app/middleware/api.proto | 186 +- app/middleware/grpc/client.js | 4 +- app/middleware/walletrpc/api_grpc_pb.js | 502 +- app/middleware/walletrpc/api_pb.js | 6171 ++++++----------------- app/wallet/service.js | 2 +- 6 files changed, 1730 insertions(+), 5137 deletions(-) diff --git a/app/index.js b/app/index.js index 20493999a4..ed874de00f 100644 --- a/app/index.js +++ b/app/index.js @@ -131,7 +131,7 @@ const initialState = { }, version: { // RequiredVersion - requiredVersion: "7.12.0", + requiredVersion: "8.0.0", versionInvalid: false, versionInvalidError: null, // VersionService diff --git a/app/middleware/api.proto b/app/middleware/api.proto index b5810166f1..02db110f19 100644 --- a/app/middleware/api.proto +++ b/app/middleware/api.proto @@ -2,7 +2,7 @@ syntax = "proto3"; package walletrpc; -option go_package = "decred.org/dcrwallet/rpc/walletrpc"; +option go_package = "decred.org/dcrwallet/v5/rpc/walletrpc"; service VersionService { rpc Version (VersionRequest) returns (VersionResponse); @@ -25,6 +25,7 @@ service WalletService { rpc CoinType (CoinTypeRequest) returns (CoinTypeResponse); rpc AccountNumber (AccountNumberRequest) returns (AccountNumberResponse); rpc Accounts (AccountsRequest) returns (AccountsResponse); + rpc Address (AddressRequest) returns (AddressResponse); rpc Balance (BalanceRequest) returns (BalanceResponse); rpc GetAccountExtendedPubKey (GetAccountExtendedPubKeyRequest) returns (GetAccountExtendedPubKeyResponse); rpc GetAccountExtendedPrivKey (GetAccountExtendedPrivKeyRequest) returns (GetAccountExtendedPrivKeyResponse); @@ -39,6 +40,8 @@ service WalletService { rpc Spender (SpenderRequest) returns (SpenderResponse); rpc GetCFilters (GetCFiltersRequest) returns (stream GetCFiltersResponse); rpc GetPeerInfo(GetPeerInfoRequest) returns (GetPeerInfoResponse); + rpc DumpPrivateKey (DumpPrivateKeyRequest) returns (DumpPrivateKeyResponse); + rpc BirthBlock (BirthBlockRequest) returns (BirthBlockResponse); // Notifications rpc TransactionNotifications (TransactionNotificationsRequest) returns (stream TransactionNotificationsResponse); @@ -103,23 +106,8 @@ service WalletLoaderService { service AccountMixerService { rpc RunAccountMixer (RunAccountMixerRequest) returns (stream RunAccountMixerResponse); } -service TicketBuyerV2Service { - rpc RunTicketBuyer (RunTicketBuyerRequest) returns (stream RunTicketBuyerResponse); -} - service TicketBuyerService { - rpc StartAutoBuyer (StartAutoBuyerRequest) returns (StartAutoBuyerResponse); - rpc StopAutoBuyer (StopAutoBuyerRequest) returns (StopAutoBuyerResponse); - rpc TicketBuyerConfig (TicketBuyerConfigRequest) returns (TicketBuyerConfigResponse); - rpc SetAccount (SetAccountRequest) returns (SetAccountResponse); - rpc SetBalanceToMaintain (SetBalanceToMaintainRequest) returns (SetBalanceToMaintainResponse); - rpc SetMaxFee (SetMaxFeeRequest) returns (SetMaxFeeResponse); - rpc SetMaxPriceRelative (SetMaxPriceRelativeRequest) returns (SetMaxPriceRelativeResponse); - rpc SetMaxPriceAbsolute (SetMaxPriceAbsoluteRequest) returns (SetMaxPriceAbsoluteResponse); - rpc SetVotingAddress (SetVotingAddressRequest) returns (SetVotingAddressResponse); - rpc SetPoolAddress (SetPoolAddressRequest) returns (SetPoolAddressResponse); - rpc SetPoolFees (SetPoolFeesRequest) returns (SetPoolFeesResponse); - rpc SetMaxPerBlock (SetMaxPerBlockRequest) returns (SetMaxPerBlockResponse); + rpc RunTicketBuyer (RunTicketBuyerRequest) returns (stream RunTicketBuyerResponse); } service SeedService { @@ -236,6 +224,21 @@ message AccountsResponse { int32 current_block_height = 3; } +message AddressRequest { + uint32 account = 1; + enum Kind { + BIP0044_EXTERNAL = 0; + BIP0044_INTERNAL = 1; + } + Kind kind = 2; + uint32 index = 3; +} +message AddressResponse { + string address = 1; + string public_key = 2; +} + + message RenameAccountRequest { uint32 account_number = 1; string new_name = 2; @@ -297,6 +300,20 @@ message ImportExtendedPublicKeyRequest { message ImportExtendedPublicKeyResponse { } +message DumpPrivateKeyRequest { + string address = 1; +} +message DumpPrivateKeyResponse { + string private_key_wif = 1; +} + +message BirthBlockRequest { +} +message BirthBlockResponse { + bytes hash = 1; + uint32 height = 2; +} + message ImportVotingAccountFromSeedRequest { bytes seed = 1; string name = 2; @@ -616,19 +633,19 @@ message PurchaseTicketsRequest { uint32 required_confirmations = 4; string ticket_address = 5; uint32 num_tickets = 6; - string pool_address = 7; - double pool_fees = 8; - uint32 expiry = 9; - int64 tx_fee = 10; - int64 ticket_fee = 11; - bool dont_sign_tx = 12; - string cspp_server = 13; - uint32 mixed_account = 14; - uint32 mixed_account_branch = 15; - uint32 mixed_split_account = 16; - uint32 change_account = 17; - string vsp_host = 18; - string vsp_pubkey = 19; + uint32 expiry = 7; + int64 tx_fee = 8; + int64 ticket_fee = 9; + bool dont_sign_tx = 10; + string cspp_server = 11; + uint32 mixed_account = 12; + uint32 mixed_account_branch = 13; + uint32 mixed_split_account = 14; + uint32 change_account = 15; + string vsp_host = 16; + string vsp_pubkey = 17; + bool use_voting_account = 18; + uint32 voting_account = 19; } message PurchaseTicketsResponse { repeated bytes ticket_hashes = 1; @@ -726,6 +743,10 @@ message CreateWalletRequest { bytes public_passphrase = 1; bytes private_passphrase = 2; bytes seed = 3; + bool set_birth_time = 4; + int64 birth_time = 5; + bool set_birth_height = 6; + uint32 birth_height = 7; } message CreateWalletResponse {} @@ -875,16 +896,14 @@ message RunTicketBuyerRequest { uint32 voting_account = 3; int64 balance_to_maintain = 4; string voting_address = 5; - string pool_address = 6; - double pool_fees = 7; - string vsp_host = 8; - string vsp_pubkey = 9; - int32 limit = 10; - string cspp_server = 11; - uint32 mixed_account = 12; - uint32 mixed_account_branch = 13; - uint32 mixed_split_account = 14; - uint32 change_account = 15; + string vsp_host = 6; + string vsp_pubkey = 7; + int32 limit = 8; + string cspp_server = 9; + uint32 mixed_account = 10; + uint32 mixed_account_branch = 11; + uint32 mixed_split_account = 12; + uint32 change_account = 13; } message RunTicketBuyerResponse {} @@ -899,93 +918,6 @@ message RunAccountMixerRequest { message RunAccountMixerResponse {} -message StartAutoBuyerRequest { - bytes passphrase = 1; - uint32 account = 2; - int64 balance_to_maintain = 3; - int64 max_fee_per_kb = 4; - double max_price_relative = 5; - int64 max_price_absolute = 6; - string voting_address = 7; - string pool_address = 8; - double pool_fees = 9; - int64 max_per_block = 10; -} -message StartAutoBuyerResponse {} - -message StopAutoBuyerRequest {} -message StopAutoBuyerResponse {} -message TicketBuyerConfigRequest{ -} - -message TicketBuyerConfigResponse{ - uint32 account = 1; - string avg_price_mode = 2; - int64 avg_priceVWAP_delta = 3; - int64 balance_to_maintain = 4; - int64 blocks_to_avg = 5; - bool dont_wait_for_tickets = 6; - int64 expiry_delta = 7; - string fee_source = 8; - double fee_target_scaling = 9; - int64 min_fee = 10; - int64 max_fee = 12; - int64 max_per_block = 13; - int64 max_price_absolute = 14; - double max_price_relative = 15; - int64 max_in_mempool = 17; - string pool_address = 18; - double pool_fees = 19; - bool spread_ticket_purchases = 20; - string voting_address = 21; - int64 tx_fee = 22; -} - -message SetAccountRequest{ - uint32 account = 1; -} -message SetAccountResponse{} - -message SetBalanceToMaintainRequest{ - int64 balance_to_maintain = 1; -} -message SetBalanceToMaintainResponse{} - -message SetMaxFeeRequest{ - int64 max_fee_per_kb = 1; -} -message SetMaxFeeResponse{} - -message SetMaxPriceRelativeRequest{ - double max_price_relative = 1; -} -message SetMaxPriceRelativeResponse{} - -message SetMaxPriceAbsoluteRequest{ - int64 max_price_absolute = 1; -} -message SetMaxPriceAbsoluteResponse{} - -message SetVotingAddressRequest{ - string voting_address = 1; -} -message SetVotingAddressResponse{} - -message SetPoolAddressRequest{ - string pool_address = 1; -} -message SetPoolAddressResponse{} - -message SetPoolFeesRequest{ - double pool_fees = 1; -} -message SetPoolFeesResponse{} - -message SetMaxPerBlockRequest{ - int64 max_per_block = 1; -} -message SetMaxPerBlockResponse{} - message AgendasRequest {} message AgendasResponse { message Agenda { diff --git a/app/middleware/grpc/client.js b/app/middleware/grpc/client.js index 32427cc2a4..3dddccc48e 100644 --- a/app/middleware/grpc/client.js +++ b/app/middleware/grpc/client.js @@ -44,8 +44,8 @@ const getServiceClient = }; export const getWalletService = getServiceClient(services.WalletService); -export const getTicketBuyerV2Service = getServiceClient( - services.TicketBuyerV2Service +export const getTicketBuyerService = getServiceClient( + services.TicketBuyerService ); export const loader = getServiceClient(services.WalletLoaderService); export const getSeedService = getServiceClient(services.SeedService); diff --git a/app/middleware/walletrpc/api_grpc_pb.js b/app/middleware/walletrpc/api_grpc_pb.js index d277d9405a..9a7bdc1dfa 100644 --- a/app/middleware/walletrpc/api_grpc_pb.js +++ b/app/middleware/walletrpc/api_grpc_pb.js @@ -113,6 +113,28 @@ function deserialize_walletrpc_AccountsResponse(buffer_arg) { return api_pb.AccountsResponse.deserializeBinary(new Uint8Array(buffer_arg)); } +function serialize_walletrpc_AddressRequest(arg) { + if (!(arg instanceof api_pb.AddressRequest)) { + throw new Error('Expected argument of type walletrpc.AddressRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_walletrpc_AddressRequest(buffer_arg) { + return api_pb.AddressRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_walletrpc_AddressResponse(arg) { + if (!(arg instanceof api_pb.AddressResponse)) { + throw new Error('Expected argument of type walletrpc.AddressResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_walletrpc_AddressResponse(buffer_arg) { + return api_pb.AddressResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + function serialize_walletrpc_AgendasRequest(arg) { if (!(arg instanceof api_pb.AgendasRequest)) { throw new Error('Expected argument of type walletrpc.AgendasRequest'); @@ -179,6 +201,28 @@ function deserialize_walletrpc_BestBlockResponse(buffer_arg) { return api_pb.BestBlockResponse.deserializeBinary(new Uint8Array(buffer_arg)); } +function serialize_walletrpc_BirthBlockRequest(arg) { + if (!(arg instanceof api_pb.BirthBlockRequest)) { + throw new Error('Expected argument of type walletrpc.BirthBlockRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_walletrpc_BirthBlockRequest(buffer_arg) { + return api_pb.BirthBlockRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_walletrpc_BirthBlockResponse(arg) { + if (!(arg instanceof api_pb.BirthBlockResponse)) { + throw new Error('Expected argument of type walletrpc.BirthBlockResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_walletrpc_BirthBlockResponse(buffer_arg) { + return api_pb.BirthBlockResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + function serialize_walletrpc_BlockInfoRequest(arg) { if (!(arg instanceof api_pb.BlockInfoRequest)) { throw new Error('Expected argument of type walletrpc.BlockInfoRequest'); @@ -465,6 +509,28 @@ function deserialize_walletrpc_DiscoverUsageResponse(buffer_arg) { return api_pb.DiscoverUsageResponse.deserializeBinary(new Uint8Array(buffer_arg)); } +function serialize_walletrpc_DumpPrivateKeyRequest(arg) { + if (!(arg instanceof api_pb.DumpPrivateKeyRequest)) { + throw new Error('Expected argument of type walletrpc.DumpPrivateKeyRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_walletrpc_DumpPrivateKeyRequest(buffer_arg) { + return api_pb.DumpPrivateKeyRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_walletrpc_DumpPrivateKeyResponse(arg) { + if (!(arg instanceof api_pb.DumpPrivateKeyResponse)) { + throw new Error('Expected argument of type walletrpc.DumpPrivateKeyResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_walletrpc_DumpPrivateKeyResponse(buffer_arg) { + return api_pb.DumpPrivateKeyResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + function serialize_walletrpc_FundTransactionRequest(arg) { if (!(arg instanceof api_pb.FundTransactionRequest)) { throw new Error('Expected argument of type walletrpc.FundTransactionRequest'); @@ -1334,182 +1400,6 @@ function deserialize_walletrpc_SetAccountPassphraseResponse(buffer_arg) { return api_pb.SetAccountPassphraseResponse.deserializeBinary(new Uint8Array(buffer_arg)); } -function serialize_walletrpc_SetAccountRequest(arg) { - if (!(arg instanceof api_pb.SetAccountRequest)) { - throw new Error('Expected argument of type walletrpc.SetAccountRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_walletrpc_SetAccountRequest(buffer_arg) { - return api_pb.SetAccountRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_walletrpc_SetAccountResponse(arg) { - if (!(arg instanceof api_pb.SetAccountResponse)) { - throw new Error('Expected argument of type walletrpc.SetAccountResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_walletrpc_SetAccountResponse(buffer_arg) { - return api_pb.SetAccountResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_walletrpc_SetBalanceToMaintainRequest(arg) { - if (!(arg instanceof api_pb.SetBalanceToMaintainRequest)) { - throw new Error('Expected argument of type walletrpc.SetBalanceToMaintainRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_walletrpc_SetBalanceToMaintainRequest(buffer_arg) { - return api_pb.SetBalanceToMaintainRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_walletrpc_SetBalanceToMaintainResponse(arg) { - if (!(arg instanceof api_pb.SetBalanceToMaintainResponse)) { - throw new Error('Expected argument of type walletrpc.SetBalanceToMaintainResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_walletrpc_SetBalanceToMaintainResponse(buffer_arg) { - return api_pb.SetBalanceToMaintainResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_walletrpc_SetMaxFeeRequest(arg) { - if (!(arg instanceof api_pb.SetMaxFeeRequest)) { - throw new Error('Expected argument of type walletrpc.SetMaxFeeRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_walletrpc_SetMaxFeeRequest(buffer_arg) { - return api_pb.SetMaxFeeRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_walletrpc_SetMaxFeeResponse(arg) { - if (!(arg instanceof api_pb.SetMaxFeeResponse)) { - throw new Error('Expected argument of type walletrpc.SetMaxFeeResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_walletrpc_SetMaxFeeResponse(buffer_arg) { - return api_pb.SetMaxFeeResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_walletrpc_SetMaxPerBlockRequest(arg) { - if (!(arg instanceof api_pb.SetMaxPerBlockRequest)) { - throw new Error('Expected argument of type walletrpc.SetMaxPerBlockRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_walletrpc_SetMaxPerBlockRequest(buffer_arg) { - return api_pb.SetMaxPerBlockRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_walletrpc_SetMaxPerBlockResponse(arg) { - if (!(arg instanceof api_pb.SetMaxPerBlockResponse)) { - throw new Error('Expected argument of type walletrpc.SetMaxPerBlockResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_walletrpc_SetMaxPerBlockResponse(buffer_arg) { - return api_pb.SetMaxPerBlockResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_walletrpc_SetMaxPriceAbsoluteRequest(arg) { - if (!(arg instanceof api_pb.SetMaxPriceAbsoluteRequest)) { - throw new Error('Expected argument of type walletrpc.SetMaxPriceAbsoluteRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_walletrpc_SetMaxPriceAbsoluteRequest(buffer_arg) { - return api_pb.SetMaxPriceAbsoluteRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_walletrpc_SetMaxPriceAbsoluteResponse(arg) { - if (!(arg instanceof api_pb.SetMaxPriceAbsoluteResponse)) { - throw new Error('Expected argument of type walletrpc.SetMaxPriceAbsoluteResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_walletrpc_SetMaxPriceAbsoluteResponse(buffer_arg) { - return api_pb.SetMaxPriceAbsoluteResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_walletrpc_SetMaxPriceRelativeRequest(arg) { - if (!(arg instanceof api_pb.SetMaxPriceRelativeRequest)) { - throw new Error('Expected argument of type walletrpc.SetMaxPriceRelativeRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_walletrpc_SetMaxPriceRelativeRequest(buffer_arg) { - return api_pb.SetMaxPriceRelativeRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_walletrpc_SetMaxPriceRelativeResponse(arg) { - if (!(arg instanceof api_pb.SetMaxPriceRelativeResponse)) { - throw new Error('Expected argument of type walletrpc.SetMaxPriceRelativeResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_walletrpc_SetMaxPriceRelativeResponse(buffer_arg) { - return api_pb.SetMaxPriceRelativeResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_walletrpc_SetPoolAddressRequest(arg) { - if (!(arg instanceof api_pb.SetPoolAddressRequest)) { - throw new Error('Expected argument of type walletrpc.SetPoolAddressRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_walletrpc_SetPoolAddressRequest(buffer_arg) { - return api_pb.SetPoolAddressRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_walletrpc_SetPoolAddressResponse(arg) { - if (!(arg instanceof api_pb.SetPoolAddressResponse)) { - throw new Error('Expected argument of type walletrpc.SetPoolAddressResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_walletrpc_SetPoolAddressResponse(buffer_arg) { - return api_pb.SetPoolAddressResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_walletrpc_SetPoolFeesRequest(arg) { - if (!(arg instanceof api_pb.SetPoolFeesRequest)) { - throw new Error('Expected argument of type walletrpc.SetPoolFeesRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_walletrpc_SetPoolFeesRequest(buffer_arg) { - return api_pb.SetPoolFeesRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_walletrpc_SetPoolFeesResponse(arg) { - if (!(arg instanceof api_pb.SetPoolFeesResponse)) { - throw new Error('Expected argument of type walletrpc.SetPoolFeesResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_walletrpc_SetPoolFeesResponse(buffer_arg) { - return api_pb.SetPoolFeesResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - function serialize_walletrpc_SetTSpendPolicyRequest(arg) { if (!(arg instanceof api_pb.SetTSpendPolicyRequest)) { throw new Error('Expected argument of type walletrpc.SetTSpendPolicyRequest'); @@ -1576,28 +1466,6 @@ function deserialize_walletrpc_SetVoteChoicesResponse(buffer_arg) { return api_pb.SetVoteChoicesResponse.deserializeBinary(new Uint8Array(buffer_arg)); } -function serialize_walletrpc_SetVotingAddressRequest(arg) { - if (!(arg instanceof api_pb.SetVotingAddressRequest)) { - throw new Error('Expected argument of type walletrpc.SetVotingAddressRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_walletrpc_SetVotingAddressRequest(buffer_arg) { - return api_pb.SetVotingAddressRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_walletrpc_SetVotingAddressResponse(arg) { - if (!(arg instanceof api_pb.SetVotingAddressResponse)) { - throw new Error('Expected argument of type walletrpc.SetVotingAddressResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_walletrpc_SetVotingAddressResponse(buffer_arg) { - return api_pb.SetVotingAddressResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - function serialize_walletrpc_SetVspdVoteChoicesRequest(arg) { if (!(arg instanceof api_pb.SetVspdVoteChoicesRequest)) { throw new Error('Expected argument of type walletrpc.SetVspdVoteChoicesRequest'); @@ -1796,50 +1664,6 @@ function deserialize_walletrpc_StakeInfoResponse(buffer_arg) { return api_pb.StakeInfoResponse.deserializeBinary(new Uint8Array(buffer_arg)); } -function serialize_walletrpc_StartAutoBuyerRequest(arg) { - if (!(arg instanceof api_pb.StartAutoBuyerRequest)) { - throw new Error('Expected argument of type walletrpc.StartAutoBuyerRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_walletrpc_StartAutoBuyerRequest(buffer_arg) { - return api_pb.StartAutoBuyerRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_walletrpc_StartAutoBuyerResponse(arg) { - if (!(arg instanceof api_pb.StartAutoBuyerResponse)) { - throw new Error('Expected argument of type walletrpc.StartAutoBuyerResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_walletrpc_StartAutoBuyerResponse(buffer_arg) { - return api_pb.StartAutoBuyerResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_walletrpc_StopAutoBuyerRequest(arg) { - if (!(arg instanceof api_pb.StopAutoBuyerRequest)) { - throw new Error('Expected argument of type walletrpc.StopAutoBuyerRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_walletrpc_StopAutoBuyerRequest(buffer_arg) { - return api_pb.StopAutoBuyerRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_walletrpc_StopAutoBuyerResponse(arg) { - if (!(arg instanceof api_pb.StopAutoBuyerResponse)) { - throw new Error('Expected argument of type walletrpc.StopAutoBuyerResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_walletrpc_StopAutoBuyerResponse(buffer_arg) { - return api_pb.StopAutoBuyerResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - function serialize_walletrpc_SweepAccountRequest(arg) { if (!(arg instanceof api_pb.SweepAccountRequest)) { throw new Error('Expected argument of type walletrpc.SweepAccountRequest'); @@ -1906,28 +1730,6 @@ function deserialize_walletrpc_TSpendPoliciesResponse(buffer_arg) { return api_pb.TSpendPoliciesResponse.deserializeBinary(new Uint8Array(buffer_arg)); } -function serialize_walletrpc_TicketBuyerConfigRequest(arg) { - if (!(arg instanceof api_pb.TicketBuyerConfigRequest)) { - throw new Error('Expected argument of type walletrpc.TicketBuyerConfigRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_walletrpc_TicketBuyerConfigRequest(buffer_arg) { - return api_pb.TicketBuyerConfigRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_walletrpc_TicketBuyerConfigResponse(arg) { - if (!(arg instanceof api_pb.TicketBuyerConfigResponse)) { - throw new Error('Expected argument of type walletrpc.TicketBuyerConfigResponse'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_walletrpc_TicketBuyerConfigResponse(buffer_arg) { - return api_pb.TicketBuyerConfigResponse.deserializeBinary(new Uint8Array(buffer_arg)); -} - function serialize_walletrpc_TicketPriceRequest(arg) { if (!(arg instanceof api_pb.TicketPriceRequest)) { throw new Error('Expected argument of type walletrpc.TicketPriceRequest'); @@ -2242,6 +2044,17 @@ ping: { responseSerialize: serialize_walletrpc_AccountsResponse, responseDeserialize: deserialize_walletrpc_AccountsResponse, }, + address: { + path: '/walletrpc.WalletService/Address', + requestStream: false, + responseStream: false, + requestType: api_pb.AddressRequest, + responseType: api_pb.AddressResponse, + requestSerialize: serialize_walletrpc_AddressRequest, + requestDeserialize: deserialize_walletrpc_AddressRequest, + responseSerialize: serialize_walletrpc_AddressResponse, + responseDeserialize: deserialize_walletrpc_AddressResponse, + }, balance: { path: '/walletrpc.WalletService/Balance', requestStream: false, @@ -2396,6 +2209,28 @@ ping: { responseSerialize: serialize_walletrpc_GetPeerInfoResponse, responseDeserialize: deserialize_walletrpc_GetPeerInfoResponse, }, + dumpPrivateKey: { + path: '/walletrpc.WalletService/DumpPrivateKey', + requestStream: false, + responseStream: false, + requestType: api_pb.DumpPrivateKeyRequest, + responseType: api_pb.DumpPrivateKeyResponse, + requestSerialize: serialize_walletrpc_DumpPrivateKeyRequest, + requestDeserialize: deserialize_walletrpc_DumpPrivateKeyRequest, + responseSerialize: serialize_walletrpc_DumpPrivateKeyResponse, + responseDeserialize: deserialize_walletrpc_DumpPrivateKeyResponse, + }, + birthBlock: { + path: '/walletrpc.WalletService/BirthBlock', + requestStream: false, + responseStream: false, + requestType: api_pb.BirthBlockRequest, + responseType: api_pb.BirthBlockResponse, + requestSerialize: serialize_walletrpc_BirthBlockRequest, + requestDeserialize: deserialize_walletrpc_BirthBlockRequest, + responseSerialize: serialize_walletrpc_BirthBlockResponse, + responseDeserialize: deserialize_walletrpc_BirthBlockResponse, + }, // Notifications transactionNotifications: { path: '/walletrpc.WalletService/TransactionNotifications', @@ -3000,9 +2835,9 @@ var AccountMixerServiceService = exports['walletrpc.AccountMixerService'] = { }, }; -var TicketBuyerV2ServiceService = exports['walletrpc.TicketBuyerV2Service'] = { +var TicketBuyerServiceService = exports['walletrpc.TicketBuyerService'] = { runTicketBuyer: { - path: '/walletrpc.TicketBuyerV2Service/RunTicketBuyer', + path: '/walletrpc.TicketBuyerService/RunTicketBuyer', requestStream: false, responseStream: true, requestType: api_pb.RunTicketBuyerRequest, @@ -3014,141 +2849,6 @@ var TicketBuyerV2ServiceService = exports['walletrpc.TicketBuyerV2Service'] = { }, }; -var TicketBuyerServiceService = exports['walletrpc.TicketBuyerService'] = { - startAutoBuyer: { - path: '/walletrpc.TicketBuyerService/StartAutoBuyer', - requestStream: false, - responseStream: false, - requestType: api_pb.StartAutoBuyerRequest, - responseType: api_pb.StartAutoBuyerResponse, - requestSerialize: serialize_walletrpc_StartAutoBuyerRequest, - requestDeserialize: deserialize_walletrpc_StartAutoBuyerRequest, - responseSerialize: serialize_walletrpc_StartAutoBuyerResponse, - responseDeserialize: deserialize_walletrpc_StartAutoBuyerResponse, - }, - stopAutoBuyer: { - path: '/walletrpc.TicketBuyerService/StopAutoBuyer', - requestStream: false, - responseStream: false, - requestType: api_pb.StopAutoBuyerRequest, - responseType: api_pb.StopAutoBuyerResponse, - requestSerialize: serialize_walletrpc_StopAutoBuyerRequest, - requestDeserialize: deserialize_walletrpc_StopAutoBuyerRequest, - responseSerialize: serialize_walletrpc_StopAutoBuyerResponse, - responseDeserialize: deserialize_walletrpc_StopAutoBuyerResponse, - }, - ticketBuyerConfig: { - path: '/walletrpc.TicketBuyerService/TicketBuyerConfig', - requestStream: false, - responseStream: false, - requestType: api_pb.TicketBuyerConfigRequest, - responseType: api_pb.TicketBuyerConfigResponse, - requestSerialize: serialize_walletrpc_TicketBuyerConfigRequest, - requestDeserialize: deserialize_walletrpc_TicketBuyerConfigRequest, - responseSerialize: serialize_walletrpc_TicketBuyerConfigResponse, - responseDeserialize: deserialize_walletrpc_TicketBuyerConfigResponse, - }, - setAccount: { - path: '/walletrpc.TicketBuyerService/SetAccount', - requestStream: false, - responseStream: false, - requestType: api_pb.SetAccountRequest, - responseType: api_pb.SetAccountResponse, - requestSerialize: serialize_walletrpc_SetAccountRequest, - requestDeserialize: deserialize_walletrpc_SetAccountRequest, - responseSerialize: serialize_walletrpc_SetAccountResponse, - responseDeserialize: deserialize_walletrpc_SetAccountResponse, - }, - setBalanceToMaintain: { - path: '/walletrpc.TicketBuyerService/SetBalanceToMaintain', - requestStream: false, - responseStream: false, - requestType: api_pb.SetBalanceToMaintainRequest, - responseType: api_pb.SetBalanceToMaintainResponse, - requestSerialize: serialize_walletrpc_SetBalanceToMaintainRequest, - requestDeserialize: deserialize_walletrpc_SetBalanceToMaintainRequest, - responseSerialize: serialize_walletrpc_SetBalanceToMaintainResponse, - responseDeserialize: deserialize_walletrpc_SetBalanceToMaintainResponse, - }, - setMaxFee: { - path: '/walletrpc.TicketBuyerService/SetMaxFee', - requestStream: false, - responseStream: false, - requestType: api_pb.SetMaxFeeRequest, - responseType: api_pb.SetMaxFeeResponse, - requestSerialize: serialize_walletrpc_SetMaxFeeRequest, - requestDeserialize: deserialize_walletrpc_SetMaxFeeRequest, - responseSerialize: serialize_walletrpc_SetMaxFeeResponse, - responseDeserialize: deserialize_walletrpc_SetMaxFeeResponse, - }, - setMaxPriceRelative: { - path: '/walletrpc.TicketBuyerService/SetMaxPriceRelative', - requestStream: false, - responseStream: false, - requestType: api_pb.SetMaxPriceRelativeRequest, - responseType: api_pb.SetMaxPriceRelativeResponse, - requestSerialize: serialize_walletrpc_SetMaxPriceRelativeRequest, - requestDeserialize: deserialize_walletrpc_SetMaxPriceRelativeRequest, - responseSerialize: serialize_walletrpc_SetMaxPriceRelativeResponse, - responseDeserialize: deserialize_walletrpc_SetMaxPriceRelativeResponse, - }, - setMaxPriceAbsolute: { - path: '/walletrpc.TicketBuyerService/SetMaxPriceAbsolute', - requestStream: false, - responseStream: false, - requestType: api_pb.SetMaxPriceAbsoluteRequest, - responseType: api_pb.SetMaxPriceAbsoluteResponse, - requestSerialize: serialize_walletrpc_SetMaxPriceAbsoluteRequest, - requestDeserialize: deserialize_walletrpc_SetMaxPriceAbsoluteRequest, - responseSerialize: serialize_walletrpc_SetMaxPriceAbsoluteResponse, - responseDeserialize: deserialize_walletrpc_SetMaxPriceAbsoluteResponse, - }, - setVotingAddress: { - path: '/walletrpc.TicketBuyerService/SetVotingAddress', - requestStream: false, - responseStream: false, - requestType: api_pb.SetVotingAddressRequest, - responseType: api_pb.SetVotingAddressResponse, - requestSerialize: serialize_walletrpc_SetVotingAddressRequest, - requestDeserialize: deserialize_walletrpc_SetVotingAddressRequest, - responseSerialize: serialize_walletrpc_SetVotingAddressResponse, - responseDeserialize: deserialize_walletrpc_SetVotingAddressResponse, - }, - setPoolAddress: { - path: '/walletrpc.TicketBuyerService/SetPoolAddress', - requestStream: false, - responseStream: false, - requestType: api_pb.SetPoolAddressRequest, - responseType: api_pb.SetPoolAddressResponse, - requestSerialize: serialize_walletrpc_SetPoolAddressRequest, - requestDeserialize: deserialize_walletrpc_SetPoolAddressRequest, - responseSerialize: serialize_walletrpc_SetPoolAddressResponse, - responseDeserialize: deserialize_walletrpc_SetPoolAddressResponse, - }, - setPoolFees: { - path: '/walletrpc.TicketBuyerService/SetPoolFees', - requestStream: false, - responseStream: false, - requestType: api_pb.SetPoolFeesRequest, - responseType: api_pb.SetPoolFeesResponse, - requestSerialize: serialize_walletrpc_SetPoolFeesRequest, - requestDeserialize: deserialize_walletrpc_SetPoolFeesRequest, - responseSerialize: serialize_walletrpc_SetPoolFeesResponse, - responseDeserialize: deserialize_walletrpc_SetPoolFeesResponse, - }, - setMaxPerBlock: { - path: '/walletrpc.TicketBuyerService/SetMaxPerBlock', - requestStream: false, - responseStream: false, - requestType: api_pb.SetMaxPerBlockRequest, - responseType: api_pb.SetMaxPerBlockResponse, - requestSerialize: serialize_walletrpc_SetMaxPerBlockRequest, - requestDeserialize: deserialize_walletrpc_SetMaxPerBlockRequest, - responseSerialize: serialize_walletrpc_SetMaxPerBlockResponse, - responseDeserialize: deserialize_walletrpc_SetMaxPerBlockResponse, - }, -}; - var SeedServiceService = exports['walletrpc.SeedService'] = { generateRandomSeed: { path: '/walletrpc.SeedService/GenerateRandomSeed', diff --git a/app/middleware/walletrpc/api_pb.js b/app/middleware/walletrpc/api_pb.js index 6b40e71159..8a5941f89b 100644 --- a/app/middleware/walletrpc/api_pb.js +++ b/app/middleware/walletrpc/api_pb.js @@ -27,6 +27,9 @@ goog.exportSymbol('walletrpc.AccountUnlockedResponse', null, proto); goog.exportSymbol('walletrpc.AccountsRequest', null, proto); goog.exportSymbol('walletrpc.AccountsResponse', null, proto); goog.exportSymbol('walletrpc.AccountsResponse.Account', null, proto); +goog.exportSymbol('walletrpc.AddressRequest', null, proto); +goog.exportSymbol('walletrpc.AddressRequest.Kind', null, proto); +goog.exportSymbol('walletrpc.AddressResponse', null, proto); goog.exportSymbol('walletrpc.AgendasRequest', null, proto); goog.exportSymbol('walletrpc.AgendasResponse', null, proto); goog.exportSymbol('walletrpc.AgendasResponse.Agenda', null, proto); @@ -35,6 +38,8 @@ goog.exportSymbol('walletrpc.BalanceRequest', null, proto); goog.exportSymbol('walletrpc.BalanceResponse', null, proto); goog.exportSymbol('walletrpc.BestBlockRequest', null, proto); goog.exportSymbol('walletrpc.BestBlockResponse', null, proto); +goog.exportSymbol('walletrpc.BirthBlockRequest', null, proto); +goog.exportSymbol('walletrpc.BirthBlockResponse', null, proto); goog.exportSymbol('walletrpc.BlockDetails', null, proto); goog.exportSymbol('walletrpc.BlockInfoRequest', null, proto); goog.exportSymbol('walletrpc.BlockInfoResponse', null, proto); @@ -77,6 +82,8 @@ goog.exportSymbol('walletrpc.DiscoverAddressesRequest', null, proto); goog.exportSymbol('walletrpc.DiscoverAddressesResponse', null, proto); goog.exportSymbol('walletrpc.DiscoverUsageRequest', null, proto); goog.exportSymbol('walletrpc.DiscoverUsageResponse', null, proto); +goog.exportSymbol('walletrpc.DumpPrivateKeyRequest', null, proto); +goog.exportSymbol('walletrpc.DumpPrivateKeyResponse', null, proto); goog.exportSymbol('walletrpc.FetchHeadersNotification', null, proto); goog.exportSymbol('walletrpc.FetchHeadersRequest', null, proto); goog.exportSymbol('walletrpc.FetchHeadersResponse', null, proto); @@ -174,22 +181,6 @@ goog.exportSymbol('walletrpc.RunTicketBuyerRequest', null, proto); goog.exportSymbol('walletrpc.RunTicketBuyerResponse', null, proto); goog.exportSymbol('walletrpc.SetAccountPassphraseRequest', null, proto); goog.exportSymbol('walletrpc.SetAccountPassphraseResponse', null, proto); -goog.exportSymbol('walletrpc.SetAccountRequest', null, proto); -goog.exportSymbol('walletrpc.SetAccountResponse', null, proto); -goog.exportSymbol('walletrpc.SetBalanceToMaintainRequest', null, proto); -goog.exportSymbol('walletrpc.SetBalanceToMaintainResponse', null, proto); -goog.exportSymbol('walletrpc.SetMaxFeeRequest', null, proto); -goog.exportSymbol('walletrpc.SetMaxFeeResponse', null, proto); -goog.exportSymbol('walletrpc.SetMaxPerBlockRequest', null, proto); -goog.exportSymbol('walletrpc.SetMaxPerBlockResponse', null, proto); -goog.exportSymbol('walletrpc.SetMaxPriceAbsoluteRequest', null, proto); -goog.exportSymbol('walletrpc.SetMaxPriceAbsoluteResponse', null, proto); -goog.exportSymbol('walletrpc.SetMaxPriceRelativeRequest', null, proto); -goog.exportSymbol('walletrpc.SetMaxPriceRelativeResponse', null, proto); -goog.exportSymbol('walletrpc.SetPoolAddressRequest', null, proto); -goog.exportSymbol('walletrpc.SetPoolAddressResponse', null, proto); -goog.exportSymbol('walletrpc.SetPoolFeesRequest', null, proto); -goog.exportSymbol('walletrpc.SetPoolFeesResponse', null, proto); goog.exportSymbol('walletrpc.SetTSpendPolicyRequest', null, proto); goog.exportSymbol('walletrpc.SetTSpendPolicyResponse', null, proto); goog.exportSymbol('walletrpc.SetTreasuryPolicyRequest', null, proto); @@ -197,8 +188,6 @@ goog.exportSymbol('walletrpc.SetTreasuryPolicyResponse', null, proto); goog.exportSymbol('walletrpc.SetVoteChoicesRequest', null, proto); goog.exportSymbol('walletrpc.SetVoteChoicesRequest.Choice', null, proto); goog.exportSymbol('walletrpc.SetVoteChoicesResponse', null, proto); -goog.exportSymbol('walletrpc.SetVotingAddressRequest', null, proto); -goog.exportSymbol('walletrpc.SetVotingAddressResponse', null, proto); goog.exportSymbol('walletrpc.SetVspdVoteChoicesRequest', null, proto); goog.exportSymbol('walletrpc.SetVspdVoteChoicesResponse', null, proto); goog.exportSymbol('walletrpc.SignHashesRequest', null, proto); @@ -223,12 +212,8 @@ goog.exportSymbol('walletrpc.SpvSyncRequest', null, proto); goog.exportSymbol('walletrpc.SpvSyncResponse', null, proto); goog.exportSymbol('walletrpc.StakeInfoRequest', null, proto); goog.exportSymbol('walletrpc.StakeInfoResponse', null, proto); -goog.exportSymbol('walletrpc.StartAutoBuyerRequest', null, proto); -goog.exportSymbol('walletrpc.StartAutoBuyerResponse', null, proto); goog.exportSymbol('walletrpc.StartConsensusRpcRequest', null, proto); goog.exportSymbol('walletrpc.StartConsensusRpcResponse', null, proto); -goog.exportSymbol('walletrpc.StopAutoBuyerRequest', null, proto); -goog.exportSymbol('walletrpc.StopAutoBuyerResponse', null, proto); goog.exportSymbol('walletrpc.SubscribeToBlockNotificationsRequest', null, proto); goog.exportSymbol('walletrpc.SubscribeToBlockNotificationsResponse', null, proto); goog.exportSymbol('walletrpc.SweepAccountRequest', null, proto); @@ -239,8 +224,6 @@ goog.exportSymbol('walletrpc.SyncVSPTicketsResponse', null, proto); goog.exportSymbol('walletrpc.TSpendPoliciesRequest', null, proto); goog.exportSymbol('walletrpc.TSpendPoliciesResponse', null, proto); goog.exportSymbol('walletrpc.TSpendPoliciesResponse.Policy', null, proto); -goog.exportSymbol('walletrpc.TicketBuyerConfigRequest', null, proto); -goog.exportSymbol('walletrpc.TicketBuyerConfigResponse', null, proto); goog.exportSymbol('walletrpc.TicketPriceRequest', null, proto); goog.exportSymbol('walletrpc.TicketPriceResponse', null, proto); goog.exportSymbol('walletrpc.TransactionDetails', null, proto); @@ -670,6 +653,48 @@ if (goog.DEBUG && !COMPILED) { */ proto.walletrpc.AccountsResponse.Account.displayName = 'proto.walletrpc.AccountsResponse.Account'; } +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.walletrpc.AddressRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.walletrpc.AddressRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.walletrpc.AddressRequest.displayName = 'proto.walletrpc.AddressRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.walletrpc.AddressResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.walletrpc.AddressResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.walletrpc.AddressResponse.displayName = 'proto.walletrpc.AddressResponse'; +} /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -922,6 +947,90 @@ if (goog.DEBUG && !COMPILED) { */ proto.walletrpc.ImportExtendedPublicKeyResponse.displayName = 'proto.walletrpc.ImportExtendedPublicKeyResponse'; } +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.walletrpc.DumpPrivateKeyRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.walletrpc.DumpPrivateKeyRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.walletrpc.DumpPrivateKeyRequest.displayName = 'proto.walletrpc.DumpPrivateKeyRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.walletrpc.DumpPrivateKeyResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.walletrpc.DumpPrivateKeyResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.walletrpc.DumpPrivateKeyResponse.displayName = 'proto.walletrpc.DumpPrivateKeyResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.walletrpc.BirthBlockRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.walletrpc.BirthBlockRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.walletrpc.BirthBlockRequest.displayName = 'proto.walletrpc.BirthBlockRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.walletrpc.BirthBlockResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.walletrpc.BirthBlockResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.walletrpc.BirthBlockResponse.displayName = 'proto.walletrpc.BirthBlockResponse'; +} /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -3137,16 +3246,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.walletrpc.StartAutoBuyerRequest = function(opt_data) { +proto.walletrpc.AgendasRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.walletrpc.StartAutoBuyerRequest, jspb.Message); +goog.inherits(proto.walletrpc.AgendasRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.walletrpc.StartAutoBuyerRequest.displayName = 'proto.walletrpc.StartAutoBuyerRequest'; + proto.walletrpc.AgendasRequest.displayName = 'proto.walletrpc.AgendasRequest'; } /** * Generated by JsPbCodeGenerator. @@ -3158,16 +3267,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.walletrpc.StartAutoBuyerResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.walletrpc.AgendasResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.walletrpc.AgendasResponse.repeatedFields_, null); }; -goog.inherits(proto.walletrpc.StartAutoBuyerResponse, jspb.Message); +goog.inherits(proto.walletrpc.AgendasResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.walletrpc.StartAutoBuyerResponse.displayName = 'proto.walletrpc.StartAutoBuyerResponse'; + proto.walletrpc.AgendasResponse.displayName = 'proto.walletrpc.AgendasResponse'; } /** * Generated by JsPbCodeGenerator. @@ -3179,16 +3288,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.walletrpc.StopAutoBuyerRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.walletrpc.AgendasResponse.Agenda = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.walletrpc.AgendasResponse.Agenda.repeatedFields_, null); }; -goog.inherits(proto.walletrpc.StopAutoBuyerRequest, jspb.Message); +goog.inherits(proto.walletrpc.AgendasResponse.Agenda, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.walletrpc.StopAutoBuyerRequest.displayName = 'proto.walletrpc.StopAutoBuyerRequest'; + proto.walletrpc.AgendasResponse.Agenda.displayName = 'proto.walletrpc.AgendasResponse.Agenda'; } /** * Generated by JsPbCodeGenerator. @@ -3200,16 +3309,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.walletrpc.StopAutoBuyerResponse = function(opt_data) { +proto.walletrpc.AgendasResponse.Choice = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.walletrpc.StopAutoBuyerResponse, jspb.Message); +goog.inherits(proto.walletrpc.AgendasResponse.Choice, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.walletrpc.StopAutoBuyerResponse.displayName = 'proto.walletrpc.StopAutoBuyerResponse'; + proto.walletrpc.AgendasResponse.Choice.displayName = 'proto.walletrpc.AgendasResponse.Choice'; } /** * Generated by JsPbCodeGenerator. @@ -3221,16 +3330,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.walletrpc.TicketBuyerConfigRequest = function(opt_data) { +proto.walletrpc.VoteChoicesRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.walletrpc.TicketBuyerConfigRequest, jspb.Message); +goog.inherits(proto.walletrpc.VoteChoicesRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.walletrpc.TicketBuyerConfigRequest.displayName = 'proto.walletrpc.TicketBuyerConfigRequest'; + proto.walletrpc.VoteChoicesRequest.displayName = 'proto.walletrpc.VoteChoicesRequest'; } /** * Generated by JsPbCodeGenerator. @@ -3242,16 +3351,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.walletrpc.TicketBuyerConfigResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.walletrpc.VoteChoicesResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.walletrpc.VoteChoicesResponse.repeatedFields_, null); }; -goog.inherits(proto.walletrpc.TicketBuyerConfigResponse, jspb.Message); +goog.inherits(proto.walletrpc.VoteChoicesResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.walletrpc.TicketBuyerConfigResponse.displayName = 'proto.walletrpc.TicketBuyerConfigResponse'; + proto.walletrpc.VoteChoicesResponse.displayName = 'proto.walletrpc.VoteChoicesResponse'; } /** * Generated by JsPbCodeGenerator. @@ -3263,16 +3372,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.walletrpc.SetAccountRequest = function(opt_data) { +proto.walletrpc.VoteChoicesResponse.Choice = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.walletrpc.SetAccountRequest, jspb.Message); +goog.inherits(proto.walletrpc.VoteChoicesResponse.Choice, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.walletrpc.SetAccountRequest.displayName = 'proto.walletrpc.SetAccountRequest'; + proto.walletrpc.VoteChoicesResponse.Choice.displayName = 'proto.walletrpc.VoteChoicesResponse.Choice'; } /** * Generated by JsPbCodeGenerator. @@ -3284,16 +3393,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.walletrpc.SetAccountResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.walletrpc.SetVoteChoicesRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.walletrpc.SetVoteChoicesRequest.repeatedFields_, null); }; -goog.inherits(proto.walletrpc.SetAccountResponse, jspb.Message); +goog.inherits(proto.walletrpc.SetVoteChoicesRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.walletrpc.SetAccountResponse.displayName = 'proto.walletrpc.SetAccountResponse'; + proto.walletrpc.SetVoteChoicesRequest.displayName = 'proto.walletrpc.SetVoteChoicesRequest'; } /** * Generated by JsPbCodeGenerator. @@ -3305,16 +3414,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.walletrpc.SetBalanceToMaintainRequest = function(opt_data) { +proto.walletrpc.SetVoteChoicesRequest.Choice = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.walletrpc.SetBalanceToMaintainRequest, jspb.Message); +goog.inherits(proto.walletrpc.SetVoteChoicesRequest.Choice, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.walletrpc.SetBalanceToMaintainRequest.displayName = 'proto.walletrpc.SetBalanceToMaintainRequest'; + proto.walletrpc.SetVoteChoicesRequest.Choice.displayName = 'proto.walletrpc.SetVoteChoicesRequest.Choice'; } /** * Generated by JsPbCodeGenerator. @@ -3326,16 +3435,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.walletrpc.SetBalanceToMaintainResponse = function(opt_data) { +proto.walletrpc.SetVoteChoicesResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.walletrpc.SetBalanceToMaintainResponse, jspb.Message); +goog.inherits(proto.walletrpc.SetVoteChoicesResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.walletrpc.SetBalanceToMaintainResponse.displayName = 'proto.walletrpc.SetBalanceToMaintainResponse'; + proto.walletrpc.SetVoteChoicesResponse.displayName = 'proto.walletrpc.SetVoteChoicesResponse'; } /** * Generated by JsPbCodeGenerator. @@ -3347,16 +3456,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.walletrpc.SetMaxFeeRequest = function(opt_data) { +proto.walletrpc.TSpendPoliciesRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.walletrpc.SetMaxFeeRequest, jspb.Message); +goog.inherits(proto.walletrpc.TSpendPoliciesRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.walletrpc.SetMaxFeeRequest.displayName = 'proto.walletrpc.SetMaxFeeRequest'; + proto.walletrpc.TSpendPoliciesRequest.displayName = 'proto.walletrpc.TSpendPoliciesRequest'; } /** * Generated by JsPbCodeGenerator. @@ -3368,16 +3477,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.walletrpc.SetMaxFeeResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.walletrpc.TSpendPoliciesResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.walletrpc.TSpendPoliciesResponse.repeatedFields_, null); }; -goog.inherits(proto.walletrpc.SetMaxFeeResponse, jspb.Message); +goog.inherits(proto.walletrpc.TSpendPoliciesResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.walletrpc.SetMaxFeeResponse.displayName = 'proto.walletrpc.SetMaxFeeResponse'; + proto.walletrpc.TSpendPoliciesResponse.displayName = 'proto.walletrpc.TSpendPoliciesResponse'; } /** * Generated by JsPbCodeGenerator. @@ -3389,16 +3498,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.walletrpc.SetMaxPriceRelativeRequest = function(opt_data) { +proto.walletrpc.TSpendPoliciesResponse.Policy = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.walletrpc.SetMaxPriceRelativeRequest, jspb.Message); +goog.inherits(proto.walletrpc.TSpendPoliciesResponse.Policy, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.walletrpc.SetMaxPriceRelativeRequest.displayName = 'proto.walletrpc.SetMaxPriceRelativeRequest'; + proto.walletrpc.TSpendPoliciesResponse.Policy.displayName = 'proto.walletrpc.TSpendPoliciesResponse.Policy'; } /** * Generated by JsPbCodeGenerator. @@ -3410,16 +3519,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.walletrpc.SetMaxPriceRelativeResponse = function(opt_data) { +proto.walletrpc.SetTSpendPolicyRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.walletrpc.SetMaxPriceRelativeResponse, jspb.Message); +goog.inherits(proto.walletrpc.SetTSpendPolicyRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.walletrpc.SetMaxPriceRelativeResponse.displayName = 'proto.walletrpc.SetMaxPriceRelativeResponse'; + proto.walletrpc.SetTSpendPolicyRequest.displayName = 'proto.walletrpc.SetTSpendPolicyRequest'; } /** * Generated by JsPbCodeGenerator. @@ -3431,16 +3540,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.walletrpc.SetMaxPriceAbsoluteRequest = function(opt_data) { +proto.walletrpc.SetTSpendPolicyResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.walletrpc.SetMaxPriceAbsoluteRequest, jspb.Message); +goog.inherits(proto.walletrpc.SetTSpendPolicyResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.walletrpc.SetMaxPriceAbsoluteRequest.displayName = 'proto.walletrpc.SetMaxPriceAbsoluteRequest'; + proto.walletrpc.SetTSpendPolicyResponse.displayName = 'proto.walletrpc.SetTSpendPolicyResponse'; } /** * Generated by JsPbCodeGenerator. @@ -3452,16 +3561,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.walletrpc.SetMaxPriceAbsoluteResponse = function(opt_data) { +proto.walletrpc.TreasuryPoliciesRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.walletrpc.SetMaxPriceAbsoluteResponse, jspb.Message); +goog.inherits(proto.walletrpc.TreasuryPoliciesRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.walletrpc.SetMaxPriceAbsoluteResponse.displayName = 'proto.walletrpc.SetMaxPriceAbsoluteResponse'; + proto.walletrpc.TreasuryPoliciesRequest.displayName = 'proto.walletrpc.TreasuryPoliciesRequest'; } /** * Generated by JsPbCodeGenerator. @@ -3473,16 +3582,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.walletrpc.SetVotingAddressRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.walletrpc.TreasuryPoliciesResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.walletrpc.TreasuryPoliciesResponse.repeatedFields_, null); }; -goog.inherits(proto.walletrpc.SetVotingAddressRequest, jspb.Message); +goog.inherits(proto.walletrpc.TreasuryPoliciesResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.walletrpc.SetVotingAddressRequest.displayName = 'proto.walletrpc.SetVotingAddressRequest'; + proto.walletrpc.TreasuryPoliciesResponse.displayName = 'proto.walletrpc.TreasuryPoliciesResponse'; } /** * Generated by JsPbCodeGenerator. @@ -3494,16 +3603,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.walletrpc.SetVotingAddressResponse = function(opt_data) { +proto.walletrpc.TreasuryPoliciesResponse.Policy = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.walletrpc.SetVotingAddressResponse, jspb.Message); +goog.inherits(proto.walletrpc.TreasuryPoliciesResponse.Policy, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.walletrpc.SetVotingAddressResponse.displayName = 'proto.walletrpc.SetVotingAddressResponse'; + proto.walletrpc.TreasuryPoliciesResponse.Policy.displayName = 'proto.walletrpc.TreasuryPoliciesResponse.Policy'; } /** * Generated by JsPbCodeGenerator. @@ -3515,16 +3624,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.walletrpc.SetPoolAddressRequest = function(opt_data) { +proto.walletrpc.SetTreasuryPolicyRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.walletrpc.SetPoolAddressRequest, jspb.Message); +goog.inherits(proto.walletrpc.SetTreasuryPolicyRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.walletrpc.SetPoolAddressRequest.displayName = 'proto.walletrpc.SetPoolAddressRequest'; + proto.walletrpc.SetTreasuryPolicyRequest.displayName = 'proto.walletrpc.SetTreasuryPolicyRequest'; } /** * Generated by JsPbCodeGenerator. @@ -3536,16 +3645,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.walletrpc.SetPoolAddressResponse = function(opt_data) { +proto.walletrpc.SetTreasuryPolicyResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.walletrpc.SetPoolAddressResponse, jspb.Message); +goog.inherits(proto.walletrpc.SetTreasuryPolicyResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.walletrpc.SetPoolAddressResponse.displayName = 'proto.walletrpc.SetPoolAddressResponse'; + proto.walletrpc.SetTreasuryPolicyResponse.displayName = 'proto.walletrpc.SetTreasuryPolicyResponse'; } /** * Generated by JsPbCodeGenerator. @@ -3557,16 +3666,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.walletrpc.SetPoolFeesRequest = function(opt_data) { +proto.walletrpc.VerifyMessageRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.walletrpc.SetPoolFeesRequest, jspb.Message); +goog.inherits(proto.walletrpc.VerifyMessageRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.walletrpc.SetPoolFeesRequest.displayName = 'proto.walletrpc.SetPoolFeesRequest'; + proto.walletrpc.VerifyMessageRequest.displayName = 'proto.walletrpc.VerifyMessageRequest'; } /** * Generated by JsPbCodeGenerator. @@ -3578,16 +3687,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.walletrpc.SetPoolFeesResponse = function(opt_data) { +proto.walletrpc.VerifyMessageResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.walletrpc.SetPoolFeesResponse, jspb.Message); +goog.inherits(proto.walletrpc.VerifyMessageResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.walletrpc.SetPoolFeesResponse.displayName = 'proto.walletrpc.SetPoolFeesResponse'; + proto.walletrpc.VerifyMessageResponse.displayName = 'proto.walletrpc.VerifyMessageResponse'; } /** * Generated by JsPbCodeGenerator. @@ -3599,16 +3708,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.walletrpc.SetMaxPerBlockRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.walletrpc.DecodedTransaction = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.walletrpc.DecodedTransaction.repeatedFields_, null); }; -goog.inherits(proto.walletrpc.SetMaxPerBlockRequest, jspb.Message); +goog.inherits(proto.walletrpc.DecodedTransaction, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.walletrpc.SetMaxPerBlockRequest.displayName = 'proto.walletrpc.SetMaxPerBlockRequest'; + proto.walletrpc.DecodedTransaction.displayName = 'proto.walletrpc.DecodedTransaction'; } /** * Generated by JsPbCodeGenerator. @@ -3620,16 +3729,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.walletrpc.SetMaxPerBlockResponse = function(opt_data) { +proto.walletrpc.DecodedTransaction.Input = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.walletrpc.SetMaxPerBlockResponse, jspb.Message); +goog.inherits(proto.walletrpc.DecodedTransaction.Input, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.walletrpc.SetMaxPerBlockResponse.displayName = 'proto.walletrpc.SetMaxPerBlockResponse'; + proto.walletrpc.DecodedTransaction.Input.displayName = 'proto.walletrpc.DecodedTransaction.Input'; } /** * Generated by JsPbCodeGenerator. @@ -3641,16 +3750,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.walletrpc.AgendasRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.walletrpc.DecodedTransaction.Output = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.walletrpc.DecodedTransaction.Output.repeatedFields_, null); }; -goog.inherits(proto.walletrpc.AgendasRequest, jspb.Message); +goog.inherits(proto.walletrpc.DecodedTransaction.Output, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.walletrpc.AgendasRequest.displayName = 'proto.walletrpc.AgendasRequest'; + proto.walletrpc.DecodedTransaction.Output.displayName = 'proto.walletrpc.DecodedTransaction.Output'; } /** * Generated by JsPbCodeGenerator. @@ -3662,16 +3771,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.walletrpc.AgendasResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.walletrpc.AgendasResponse.repeatedFields_, null); +proto.walletrpc.DecodeRawTransactionRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.walletrpc.AgendasResponse, jspb.Message); +goog.inherits(proto.walletrpc.DecodeRawTransactionRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.walletrpc.AgendasResponse.displayName = 'proto.walletrpc.AgendasResponse'; + proto.walletrpc.DecodeRawTransactionRequest.displayName = 'proto.walletrpc.DecodeRawTransactionRequest'; } /** * Generated by JsPbCodeGenerator. @@ -3683,16 +3792,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.walletrpc.AgendasResponse.Agenda = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.walletrpc.AgendasResponse.Agenda.repeatedFields_, null); +proto.walletrpc.DecodeRawTransactionResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.walletrpc.AgendasResponse.Agenda, jspb.Message); +goog.inherits(proto.walletrpc.DecodeRawTransactionResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.walletrpc.AgendasResponse.Agenda.displayName = 'proto.walletrpc.AgendasResponse.Agenda'; + proto.walletrpc.DecodeRawTransactionResponse.displayName = 'proto.walletrpc.DecodeRawTransactionResponse'; } /** * Generated by JsPbCodeGenerator. @@ -3704,16 +3813,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.walletrpc.AgendasResponse.Choice = function(opt_data) { +proto.walletrpc.ValidateAddressRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.walletrpc.AgendasResponse.Choice, jspb.Message); +goog.inherits(proto.walletrpc.ValidateAddressRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.walletrpc.AgendasResponse.Choice.displayName = 'proto.walletrpc.AgendasResponse.Choice'; + proto.walletrpc.ValidateAddressRequest.displayName = 'proto.walletrpc.ValidateAddressRequest'; } /** * Generated by JsPbCodeGenerator. @@ -3725,16 +3834,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.walletrpc.VoteChoicesRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.walletrpc.ValidateAddressResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.walletrpc.ValidateAddressResponse.repeatedFields_, null); }; -goog.inherits(proto.walletrpc.VoteChoicesRequest, jspb.Message); +goog.inherits(proto.walletrpc.ValidateAddressResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.walletrpc.VoteChoicesRequest.displayName = 'proto.walletrpc.VoteChoicesRequest'; + proto.walletrpc.ValidateAddressResponse.displayName = 'proto.walletrpc.ValidateAddressResponse'; } /** * Generated by JsPbCodeGenerator. @@ -3746,16 +3855,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.walletrpc.VoteChoicesResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.walletrpc.VoteChoicesResponse.repeatedFields_, null); +proto.walletrpc.CommittedTicketsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.walletrpc.CommittedTicketsRequest.repeatedFields_, null); }; -goog.inherits(proto.walletrpc.VoteChoicesResponse, jspb.Message); +goog.inherits(proto.walletrpc.CommittedTicketsRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.walletrpc.VoteChoicesResponse.displayName = 'proto.walletrpc.VoteChoicesResponse'; + proto.walletrpc.CommittedTicketsRequest.displayName = 'proto.walletrpc.CommittedTicketsRequest'; } /** * Generated by JsPbCodeGenerator. @@ -3767,16 +3876,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.walletrpc.VoteChoicesResponse.Choice = function(opt_data) { +proto.walletrpc.GetAccountExtendedPubKeyRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.walletrpc.VoteChoicesResponse.Choice, jspb.Message); +goog.inherits(proto.walletrpc.GetAccountExtendedPubKeyRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.walletrpc.VoteChoicesResponse.Choice.displayName = 'proto.walletrpc.VoteChoicesResponse.Choice'; + proto.walletrpc.GetAccountExtendedPubKeyRequest.displayName = 'proto.walletrpc.GetAccountExtendedPubKeyRequest'; } /** * Generated by JsPbCodeGenerator. @@ -3788,16 +3897,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.walletrpc.SetVoteChoicesRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.walletrpc.SetVoteChoicesRequest.repeatedFields_, null); +proto.walletrpc.GetAccountExtendedPubKeyResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.walletrpc.SetVoteChoicesRequest, jspb.Message); +goog.inherits(proto.walletrpc.GetAccountExtendedPubKeyResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.walletrpc.SetVoteChoicesRequest.displayName = 'proto.walletrpc.SetVoteChoicesRequest'; + proto.walletrpc.GetAccountExtendedPubKeyResponse.displayName = 'proto.walletrpc.GetAccountExtendedPubKeyResponse'; } /** * Generated by JsPbCodeGenerator. @@ -3809,16 +3918,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.walletrpc.SetVoteChoicesRequest.Choice = function(opt_data) { +proto.walletrpc.GetAccountExtendedPrivKeyRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.walletrpc.SetVoteChoicesRequest.Choice, jspb.Message); +goog.inherits(proto.walletrpc.GetAccountExtendedPrivKeyRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.walletrpc.SetVoteChoicesRequest.Choice.displayName = 'proto.walletrpc.SetVoteChoicesRequest.Choice'; + proto.walletrpc.GetAccountExtendedPrivKeyRequest.displayName = 'proto.walletrpc.GetAccountExtendedPrivKeyRequest'; } /** * Generated by JsPbCodeGenerator. @@ -3830,16 +3939,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.walletrpc.SetVoteChoicesResponse = function(opt_data) { +proto.walletrpc.GetAccountExtendedPrivKeyResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.walletrpc.SetVoteChoicesResponse, jspb.Message); +goog.inherits(proto.walletrpc.GetAccountExtendedPrivKeyResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.walletrpc.SetVoteChoicesResponse.displayName = 'proto.walletrpc.SetVoteChoicesResponse'; + proto.walletrpc.GetAccountExtendedPrivKeyResponse.displayName = 'proto.walletrpc.GetAccountExtendedPrivKeyResponse'; } /** * Generated by JsPbCodeGenerator. @@ -3851,16 +3960,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.walletrpc.TSpendPoliciesRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.walletrpc.CommittedTicketsResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.walletrpc.CommittedTicketsResponse.repeatedFields_, null); }; -goog.inherits(proto.walletrpc.TSpendPoliciesRequest, jspb.Message); +goog.inherits(proto.walletrpc.CommittedTicketsResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.walletrpc.TSpendPoliciesRequest.displayName = 'proto.walletrpc.TSpendPoliciesRequest'; + proto.walletrpc.CommittedTicketsResponse.displayName = 'proto.walletrpc.CommittedTicketsResponse'; } /** * Generated by JsPbCodeGenerator. @@ -3872,16 +3981,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.walletrpc.TSpendPoliciesResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.walletrpc.TSpendPoliciesResponse.repeatedFields_, null); +proto.walletrpc.CommittedTicketsResponse.TicketAddress = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.walletrpc.TSpendPoliciesResponse, jspb.Message); +goog.inherits(proto.walletrpc.CommittedTicketsResponse.TicketAddress, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.walletrpc.TSpendPoliciesResponse.displayName = 'proto.walletrpc.TSpendPoliciesResponse'; + proto.walletrpc.CommittedTicketsResponse.TicketAddress.displayName = 'proto.walletrpc.CommittedTicketsResponse.TicketAddress'; } /** * Generated by JsPbCodeGenerator. @@ -3893,16 +4002,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.walletrpc.TSpendPoliciesResponse.Policy = function(opt_data) { +proto.walletrpc.BestBlockRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.walletrpc.TSpendPoliciesResponse.Policy, jspb.Message); +goog.inherits(proto.walletrpc.BestBlockRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.walletrpc.TSpendPoliciesResponse.Policy.displayName = 'proto.walletrpc.TSpendPoliciesResponse.Policy'; + proto.walletrpc.BestBlockRequest.displayName = 'proto.walletrpc.BestBlockRequest'; } /** * Generated by JsPbCodeGenerator. @@ -3914,16 +4023,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.walletrpc.SetTSpendPolicyRequest = function(opt_data) { +proto.walletrpc.BestBlockResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.walletrpc.SetTSpendPolicyRequest, jspb.Message); +goog.inherits(proto.walletrpc.BestBlockResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.walletrpc.SetTSpendPolicyRequest.displayName = 'proto.walletrpc.SetTSpendPolicyRequest'; + proto.walletrpc.BestBlockResponse.displayName = 'proto.walletrpc.BestBlockResponse'; } /** * Generated by JsPbCodeGenerator. @@ -3935,16 +4044,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.walletrpc.SetTSpendPolicyResponse = function(opt_data) { +proto.walletrpc.SweepAccountRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.walletrpc.SetTSpendPolicyResponse, jspb.Message); +goog.inherits(proto.walletrpc.SweepAccountRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.walletrpc.SetTSpendPolicyResponse.displayName = 'proto.walletrpc.SetTSpendPolicyResponse'; + proto.walletrpc.SweepAccountRequest.displayName = 'proto.walletrpc.SweepAccountRequest'; } /** * Generated by JsPbCodeGenerator. @@ -3956,16 +4065,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.walletrpc.TreasuryPoliciesRequest = function(opt_data) { +proto.walletrpc.SweepAccountResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.walletrpc.TreasuryPoliciesRequest, jspb.Message); +goog.inherits(proto.walletrpc.SweepAccountResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.walletrpc.TreasuryPoliciesRequest.displayName = 'proto.walletrpc.TreasuryPoliciesRequest'; + proto.walletrpc.SweepAccountResponse.displayName = 'proto.walletrpc.SweepAccountResponse'; } /** * Generated by JsPbCodeGenerator. @@ -3977,16 +4086,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.walletrpc.TreasuryPoliciesResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.walletrpc.TreasuryPoliciesResponse.repeatedFields_, null); +proto.walletrpc.AbandonTransactionRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.walletrpc.TreasuryPoliciesResponse, jspb.Message); +goog.inherits(proto.walletrpc.AbandonTransactionRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.walletrpc.TreasuryPoliciesResponse.displayName = 'proto.walletrpc.TreasuryPoliciesResponse'; + proto.walletrpc.AbandonTransactionRequest.displayName = 'proto.walletrpc.AbandonTransactionRequest'; } /** * Generated by JsPbCodeGenerator. @@ -3998,16 +4107,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.walletrpc.TreasuryPoliciesResponse.Policy = function(opt_data) { +proto.walletrpc.AbandonTransactionResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.walletrpc.TreasuryPoliciesResponse.Policy, jspb.Message); +goog.inherits(proto.walletrpc.AbandonTransactionResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.walletrpc.TreasuryPoliciesResponse.Policy.displayName = 'proto.walletrpc.TreasuryPoliciesResponse.Policy'; + proto.walletrpc.AbandonTransactionResponse.displayName = 'proto.walletrpc.AbandonTransactionResponse'; } /** * Generated by JsPbCodeGenerator. @@ -4019,16 +4128,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.walletrpc.SetTreasuryPolicyRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.walletrpc.SignHashesRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.walletrpc.SignHashesRequest.repeatedFields_, null); }; -goog.inherits(proto.walletrpc.SetTreasuryPolicyRequest, jspb.Message); +goog.inherits(proto.walletrpc.SignHashesRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.walletrpc.SetTreasuryPolicyRequest.displayName = 'proto.walletrpc.SetTreasuryPolicyRequest'; + proto.walletrpc.SignHashesRequest.displayName = 'proto.walletrpc.SignHashesRequest'; } /** * Generated by JsPbCodeGenerator. @@ -4040,16 +4149,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.walletrpc.SetTreasuryPolicyResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.walletrpc.SignHashesResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.walletrpc.SignHashesResponse.repeatedFields_, null); }; -goog.inherits(proto.walletrpc.SetTreasuryPolicyResponse, jspb.Message); +goog.inherits(proto.walletrpc.SignHashesResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.walletrpc.SetTreasuryPolicyResponse.displayName = 'proto.walletrpc.SetTreasuryPolicyResponse'; + proto.walletrpc.SignHashesResponse.displayName = 'proto.walletrpc.SignHashesResponse'; } /** * Generated by JsPbCodeGenerator. @@ -4061,16 +4170,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.walletrpc.VerifyMessageRequest = function(opt_data) { +proto.walletrpc.SpenderRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.walletrpc.VerifyMessageRequest, jspb.Message); +goog.inherits(proto.walletrpc.SpenderRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.walletrpc.VerifyMessageRequest.displayName = 'proto.walletrpc.VerifyMessageRequest'; + proto.walletrpc.SpenderRequest.displayName = 'proto.walletrpc.SpenderRequest'; } /** * Generated by JsPbCodeGenerator. @@ -4082,16 +4191,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.walletrpc.VerifyMessageResponse = function(opt_data) { +proto.walletrpc.SpenderResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.walletrpc.VerifyMessageResponse, jspb.Message); +goog.inherits(proto.walletrpc.SpenderResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.walletrpc.VerifyMessageResponse.displayName = 'proto.walletrpc.VerifyMessageResponse'; + proto.walletrpc.SpenderResponse.displayName = 'proto.walletrpc.SpenderResponse'; } /** * Generated by JsPbCodeGenerator. @@ -4103,16 +4212,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.walletrpc.DecodedTransaction = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.walletrpc.DecodedTransaction.repeatedFields_, null); +proto.walletrpc.GetCFiltersRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.walletrpc.DecodedTransaction, jspb.Message); +goog.inherits(proto.walletrpc.GetCFiltersRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.walletrpc.DecodedTransaction.displayName = 'proto.walletrpc.DecodedTransaction'; + proto.walletrpc.GetCFiltersRequest.displayName = 'proto.walletrpc.GetCFiltersRequest'; } /** * Generated by JsPbCodeGenerator. @@ -4124,16 +4233,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.walletrpc.DecodedTransaction.Input = function(opt_data) { +proto.walletrpc.GetCFiltersResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.walletrpc.DecodedTransaction.Input, jspb.Message); +goog.inherits(proto.walletrpc.GetCFiltersResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.walletrpc.DecodedTransaction.Input.displayName = 'proto.walletrpc.DecodedTransaction.Input'; + proto.walletrpc.GetCFiltersResponse.displayName = 'proto.walletrpc.GetCFiltersResponse'; } /** * Generated by JsPbCodeGenerator. @@ -4145,16 +4254,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.walletrpc.DecodedTransaction.Output = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.walletrpc.DecodedTransaction.Output.repeatedFields_, null); +proto.walletrpc.GetRawBlockRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.walletrpc.DecodedTransaction.Output, jspb.Message); +goog.inherits(proto.walletrpc.GetRawBlockRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.walletrpc.DecodedTransaction.Output.displayName = 'proto.walletrpc.DecodedTransaction.Output'; + proto.walletrpc.GetRawBlockRequest.displayName = 'proto.walletrpc.GetRawBlockRequest'; } /** * Generated by JsPbCodeGenerator. @@ -4166,16 +4275,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.walletrpc.DecodeRawTransactionRequest = function(opt_data) { +proto.walletrpc.GetRawBlockResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.walletrpc.DecodeRawTransactionRequest, jspb.Message); +goog.inherits(proto.walletrpc.GetRawBlockResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.walletrpc.DecodeRawTransactionRequest.displayName = 'proto.walletrpc.DecodeRawTransactionRequest'; + proto.walletrpc.GetRawBlockResponse.displayName = 'proto.walletrpc.GetRawBlockResponse'; } /** * Generated by JsPbCodeGenerator. @@ -4187,16 +4296,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.walletrpc.DecodeRawTransactionResponse = function(opt_data) { +proto.walletrpc.GetCoinjoinOutputspByAcctRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.walletrpc.DecodeRawTransactionResponse, jspb.Message); +goog.inherits(proto.walletrpc.GetCoinjoinOutputspByAcctRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.walletrpc.DecodeRawTransactionResponse.displayName = 'proto.walletrpc.DecodeRawTransactionResponse'; + proto.walletrpc.GetCoinjoinOutputspByAcctRequest.displayName = 'proto.walletrpc.GetCoinjoinOutputspByAcctRequest'; } /** * Generated by JsPbCodeGenerator. @@ -4208,16 +4317,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.walletrpc.ValidateAddressRequest = function(opt_data) { +proto.walletrpc.coinjoinTxsSumByAcct = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.walletrpc.ValidateAddressRequest, jspb.Message); +goog.inherits(proto.walletrpc.coinjoinTxsSumByAcct, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.walletrpc.ValidateAddressRequest.displayName = 'proto.walletrpc.ValidateAddressRequest'; + proto.walletrpc.coinjoinTxsSumByAcct.displayName = 'proto.walletrpc.coinjoinTxsSumByAcct'; } /** * Generated by JsPbCodeGenerator. @@ -4229,16 +4338,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.walletrpc.ValidateAddressResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.walletrpc.ValidateAddressResponse.repeatedFields_, null); +proto.walletrpc.GetCoinjoinOutputspByAcctResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.walletrpc.GetCoinjoinOutputspByAcctResponse.repeatedFields_, null); }; -goog.inherits(proto.walletrpc.ValidateAddressResponse, jspb.Message); +goog.inherits(proto.walletrpc.GetCoinjoinOutputspByAcctResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.walletrpc.ValidateAddressResponse.displayName = 'proto.walletrpc.ValidateAddressResponse'; + proto.walletrpc.GetCoinjoinOutputspByAcctResponse.displayName = 'proto.walletrpc.GetCoinjoinOutputspByAcctResponse'; } /** * Generated by JsPbCodeGenerator. @@ -4250,16 +4359,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.walletrpc.CommittedTicketsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.walletrpc.CommittedTicketsRequest.repeatedFields_, null); +proto.walletrpc.SetAccountPassphraseRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.walletrpc.CommittedTicketsRequest, jspb.Message); +goog.inherits(proto.walletrpc.SetAccountPassphraseRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.walletrpc.CommittedTicketsRequest.displayName = 'proto.walletrpc.CommittedTicketsRequest'; + proto.walletrpc.SetAccountPassphraseRequest.displayName = 'proto.walletrpc.SetAccountPassphraseRequest'; } /** * Generated by JsPbCodeGenerator. @@ -4271,16 +4380,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.walletrpc.GetAccountExtendedPubKeyRequest = function(opt_data) { +proto.walletrpc.UnlockAccountRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.walletrpc.GetAccountExtendedPubKeyRequest, jspb.Message); +goog.inherits(proto.walletrpc.UnlockAccountRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.walletrpc.GetAccountExtendedPubKeyRequest.displayName = 'proto.walletrpc.GetAccountExtendedPubKeyRequest'; + proto.walletrpc.UnlockAccountRequest.displayName = 'proto.walletrpc.UnlockAccountRequest'; } /** * Generated by JsPbCodeGenerator. @@ -4292,16 +4401,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.walletrpc.GetAccountExtendedPubKeyResponse = function(opt_data) { +proto.walletrpc.LockAccountRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.walletrpc.GetAccountExtendedPubKeyResponse, jspb.Message); +goog.inherits(proto.walletrpc.LockAccountRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.walletrpc.GetAccountExtendedPubKeyResponse.displayName = 'proto.walletrpc.GetAccountExtendedPubKeyResponse'; + proto.walletrpc.LockAccountRequest.displayName = 'proto.walletrpc.LockAccountRequest'; } /** * Generated by JsPbCodeGenerator. @@ -4313,16 +4422,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.walletrpc.GetAccountExtendedPrivKeyRequest = function(opt_data) { +proto.walletrpc.SetAccountPassphraseResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.walletrpc.GetAccountExtendedPrivKeyRequest, jspb.Message); +goog.inherits(proto.walletrpc.SetAccountPassphraseResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.walletrpc.GetAccountExtendedPrivKeyRequest.displayName = 'proto.walletrpc.GetAccountExtendedPrivKeyRequest'; + proto.walletrpc.SetAccountPassphraseResponse.displayName = 'proto.walletrpc.SetAccountPassphraseResponse'; } /** * Generated by JsPbCodeGenerator. @@ -4334,16 +4443,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.walletrpc.GetAccountExtendedPrivKeyResponse = function(opt_data) { +proto.walletrpc.UnlockAccountResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.walletrpc.GetAccountExtendedPrivKeyResponse, jspb.Message); +goog.inherits(proto.walletrpc.UnlockAccountResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.walletrpc.GetAccountExtendedPrivKeyResponse.displayName = 'proto.walletrpc.GetAccountExtendedPrivKeyResponse'; + proto.walletrpc.UnlockAccountResponse.displayName = 'proto.walletrpc.UnlockAccountResponse'; } /** * Generated by JsPbCodeGenerator. @@ -4355,16 +4464,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.walletrpc.CommittedTicketsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.walletrpc.CommittedTicketsResponse.repeatedFields_, null); +proto.walletrpc.LockAccountResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.walletrpc.CommittedTicketsResponse, jspb.Message); +goog.inherits(proto.walletrpc.LockAccountResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.walletrpc.CommittedTicketsResponse.displayName = 'proto.walletrpc.CommittedTicketsResponse'; + proto.walletrpc.LockAccountResponse.displayName = 'proto.walletrpc.LockAccountResponse'; } /** * Generated by JsPbCodeGenerator. @@ -4376,16 +4485,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.walletrpc.CommittedTicketsResponse.TicketAddress = function(opt_data) { +proto.walletrpc.AccountUnlockedRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.walletrpc.CommittedTicketsResponse.TicketAddress, jspb.Message); +goog.inherits(proto.walletrpc.AccountUnlockedRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.walletrpc.CommittedTicketsResponse.TicketAddress.displayName = 'proto.walletrpc.CommittedTicketsResponse.TicketAddress'; + proto.walletrpc.AccountUnlockedRequest.displayName = 'proto.walletrpc.AccountUnlockedRequest'; } /** * Generated by JsPbCodeGenerator. @@ -4397,16 +4506,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.walletrpc.BestBlockRequest = function(opt_data) { +proto.walletrpc.AccountUnlockedResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.walletrpc.BestBlockRequest, jspb.Message); +goog.inherits(proto.walletrpc.AccountUnlockedResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.walletrpc.BestBlockRequest.displayName = 'proto.walletrpc.BestBlockRequest'; + proto.walletrpc.AccountUnlockedResponse.displayName = 'proto.walletrpc.AccountUnlockedResponse'; } /** * Generated by JsPbCodeGenerator. @@ -4418,16 +4527,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.walletrpc.BestBlockResponse = function(opt_data) { +proto.walletrpc.UnlockWalletRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.walletrpc.BestBlockResponse, jspb.Message); +goog.inherits(proto.walletrpc.UnlockWalletRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.walletrpc.BestBlockResponse.displayName = 'proto.walletrpc.BestBlockResponse'; + proto.walletrpc.UnlockWalletRequest.displayName = 'proto.walletrpc.UnlockWalletRequest'; } /** * Generated by JsPbCodeGenerator. @@ -4439,16 +4548,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.walletrpc.SweepAccountRequest = function(opt_data) { +proto.walletrpc.UnlockWalletResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.walletrpc.SweepAccountRequest, jspb.Message); +goog.inherits(proto.walletrpc.UnlockWalletResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.walletrpc.SweepAccountRequest.displayName = 'proto.walletrpc.SweepAccountRequest'; + proto.walletrpc.UnlockWalletResponse.displayName = 'proto.walletrpc.UnlockWalletResponse'; } /** * Generated by JsPbCodeGenerator. @@ -4460,16 +4569,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.walletrpc.SweepAccountResponse = function(opt_data) { +proto.walletrpc.LockWalletRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.walletrpc.SweepAccountResponse, jspb.Message); +goog.inherits(proto.walletrpc.LockWalletRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.walletrpc.SweepAccountResponse.displayName = 'proto.walletrpc.SweepAccountResponse'; + proto.walletrpc.LockWalletRequest.displayName = 'proto.walletrpc.LockWalletRequest'; } /** * Generated by JsPbCodeGenerator. @@ -4481,16 +4590,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.walletrpc.AbandonTransactionRequest = function(opt_data) { +proto.walletrpc.LockWalletResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.walletrpc.AbandonTransactionRequest, jspb.Message); +goog.inherits(proto.walletrpc.LockWalletResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.walletrpc.AbandonTransactionRequest.displayName = 'proto.walletrpc.AbandonTransactionRequest'; + proto.walletrpc.LockWalletResponse.displayName = 'proto.walletrpc.LockWalletResponse'; } /** * Generated by JsPbCodeGenerator. @@ -4502,16 +4611,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.walletrpc.AbandonTransactionResponse = function(opt_data) { +proto.walletrpc.GetPeerInfoRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.walletrpc.AbandonTransactionResponse, jspb.Message); +goog.inherits(proto.walletrpc.GetPeerInfoRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.walletrpc.AbandonTransactionResponse.displayName = 'proto.walletrpc.AbandonTransactionResponse'; + proto.walletrpc.GetPeerInfoRequest.displayName = 'proto.walletrpc.GetPeerInfoRequest'; } /** * Generated by JsPbCodeGenerator. @@ -4523,16 +4632,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.walletrpc.SignHashesRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.walletrpc.SignHashesRequest.repeatedFields_, null); +proto.walletrpc.GetPeerInfoResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.walletrpc.GetPeerInfoResponse.repeatedFields_, null); }; -goog.inherits(proto.walletrpc.SignHashesRequest, jspb.Message); +goog.inherits(proto.walletrpc.GetPeerInfoResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.walletrpc.SignHashesRequest.displayName = 'proto.walletrpc.SignHashesRequest'; + proto.walletrpc.GetPeerInfoResponse.displayName = 'proto.walletrpc.GetPeerInfoResponse'; } /** * Generated by JsPbCodeGenerator. @@ -4544,16 +4653,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.walletrpc.SignHashesResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.walletrpc.SignHashesResponse.repeatedFields_, null); +proto.walletrpc.GetPeerInfoResponse.PeerInfo = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.walletrpc.SignHashesResponse, jspb.Message); +goog.inherits(proto.walletrpc.GetPeerInfoResponse.PeerInfo, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.walletrpc.SignHashesResponse.displayName = 'proto.walletrpc.SignHashesResponse'; + proto.walletrpc.GetPeerInfoResponse.PeerInfo.displayName = 'proto.walletrpc.GetPeerInfoResponse.PeerInfo'; } /** * Generated by JsPbCodeGenerator. @@ -4565,16 +4674,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.walletrpc.SpenderRequest = function(opt_data) { +proto.walletrpc.SyncVSPTicketsRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.walletrpc.SpenderRequest, jspb.Message); +goog.inherits(proto.walletrpc.SyncVSPTicketsRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.walletrpc.SpenderRequest.displayName = 'proto.walletrpc.SpenderRequest'; + proto.walletrpc.SyncVSPTicketsRequest.displayName = 'proto.walletrpc.SyncVSPTicketsRequest'; } /** * Generated by JsPbCodeGenerator. @@ -4586,16 +4695,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.walletrpc.SpenderResponse = function(opt_data) { +proto.walletrpc.SyncVSPTicketsResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.walletrpc.SpenderResponse, jspb.Message); +goog.inherits(proto.walletrpc.SyncVSPTicketsResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.walletrpc.SpenderResponse.displayName = 'proto.walletrpc.SpenderResponse'; + proto.walletrpc.SyncVSPTicketsResponse.displayName = 'proto.walletrpc.SyncVSPTicketsResponse'; } /** * Generated by JsPbCodeGenerator. @@ -4607,520 +4716,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.walletrpc.GetCFiltersRequest = function(opt_data) { +proto.walletrpc.GetVSPTicketsByFeeStatusRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.walletrpc.GetCFiltersRequest, jspb.Message); +goog.inherits(proto.walletrpc.GetVSPTicketsByFeeStatusRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.walletrpc.GetCFiltersRequest.displayName = 'proto.walletrpc.GetCFiltersRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.walletrpc.GetCFiltersResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.walletrpc.GetCFiltersResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.walletrpc.GetCFiltersResponse.displayName = 'proto.walletrpc.GetCFiltersResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.walletrpc.GetRawBlockRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.walletrpc.GetRawBlockRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.walletrpc.GetRawBlockRequest.displayName = 'proto.walletrpc.GetRawBlockRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.walletrpc.GetRawBlockResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.walletrpc.GetRawBlockResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.walletrpc.GetRawBlockResponse.displayName = 'proto.walletrpc.GetRawBlockResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.walletrpc.GetCoinjoinOutputspByAcctRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.walletrpc.GetCoinjoinOutputspByAcctRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.walletrpc.GetCoinjoinOutputspByAcctRequest.displayName = 'proto.walletrpc.GetCoinjoinOutputspByAcctRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.walletrpc.coinjoinTxsSumByAcct = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.walletrpc.coinjoinTxsSumByAcct, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.walletrpc.coinjoinTxsSumByAcct.displayName = 'proto.walletrpc.coinjoinTxsSumByAcct'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.walletrpc.GetCoinjoinOutputspByAcctResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.walletrpc.GetCoinjoinOutputspByAcctResponse.repeatedFields_, null); -}; -goog.inherits(proto.walletrpc.GetCoinjoinOutputspByAcctResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.walletrpc.GetCoinjoinOutputspByAcctResponse.displayName = 'proto.walletrpc.GetCoinjoinOutputspByAcctResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.walletrpc.SetAccountPassphraseRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.walletrpc.SetAccountPassphraseRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.walletrpc.SetAccountPassphraseRequest.displayName = 'proto.walletrpc.SetAccountPassphraseRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.walletrpc.UnlockAccountRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.walletrpc.UnlockAccountRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.walletrpc.UnlockAccountRequest.displayName = 'proto.walletrpc.UnlockAccountRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.walletrpc.LockAccountRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.walletrpc.LockAccountRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.walletrpc.LockAccountRequest.displayName = 'proto.walletrpc.LockAccountRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.walletrpc.SetAccountPassphraseResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.walletrpc.SetAccountPassphraseResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.walletrpc.SetAccountPassphraseResponse.displayName = 'proto.walletrpc.SetAccountPassphraseResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.walletrpc.UnlockAccountResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.walletrpc.UnlockAccountResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.walletrpc.UnlockAccountResponse.displayName = 'proto.walletrpc.UnlockAccountResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.walletrpc.LockAccountResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.walletrpc.LockAccountResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.walletrpc.LockAccountResponse.displayName = 'proto.walletrpc.LockAccountResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.walletrpc.AccountUnlockedRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.walletrpc.AccountUnlockedRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.walletrpc.AccountUnlockedRequest.displayName = 'proto.walletrpc.AccountUnlockedRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.walletrpc.AccountUnlockedResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.walletrpc.AccountUnlockedResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.walletrpc.AccountUnlockedResponse.displayName = 'proto.walletrpc.AccountUnlockedResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.walletrpc.UnlockWalletRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.walletrpc.UnlockWalletRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.walletrpc.UnlockWalletRequest.displayName = 'proto.walletrpc.UnlockWalletRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.walletrpc.UnlockWalletResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.walletrpc.UnlockWalletResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.walletrpc.UnlockWalletResponse.displayName = 'proto.walletrpc.UnlockWalletResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.walletrpc.LockWalletRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.walletrpc.LockWalletRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.walletrpc.LockWalletRequest.displayName = 'proto.walletrpc.LockWalletRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.walletrpc.LockWalletResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.walletrpc.LockWalletResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.walletrpc.LockWalletResponse.displayName = 'proto.walletrpc.LockWalletResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.walletrpc.GetPeerInfoRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.walletrpc.GetPeerInfoRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.walletrpc.GetPeerInfoRequest.displayName = 'proto.walletrpc.GetPeerInfoRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.walletrpc.GetPeerInfoResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.walletrpc.GetPeerInfoResponse.repeatedFields_, null); -}; -goog.inherits(proto.walletrpc.GetPeerInfoResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.walletrpc.GetPeerInfoResponse.displayName = 'proto.walletrpc.GetPeerInfoResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.walletrpc.GetPeerInfoResponse.PeerInfo = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.walletrpc.GetPeerInfoResponse.PeerInfo, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.walletrpc.GetPeerInfoResponse.PeerInfo.displayName = 'proto.walletrpc.GetPeerInfoResponse.PeerInfo'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.walletrpc.SyncVSPTicketsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.walletrpc.SyncVSPTicketsRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.walletrpc.SyncVSPTicketsRequest.displayName = 'proto.walletrpc.SyncVSPTicketsRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.walletrpc.SyncVSPTicketsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.walletrpc.SyncVSPTicketsResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.walletrpc.SyncVSPTicketsResponse.displayName = 'proto.walletrpc.SyncVSPTicketsResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.walletrpc.GetVSPTicketsByFeeStatusRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.walletrpc.GetVSPTicketsByFeeStatusRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.walletrpc.GetVSPTicketsByFeeStatusRequest.displayName = 'proto.walletrpc.GetVSPTicketsByFeeStatusRequest'; + proto.walletrpc.GetVSPTicketsByFeeStatusRequest.displayName = 'proto.walletrpc.GetVSPTicketsByFeeStatusRequest'; } /** * Generated by JsPbCodeGenerator. @@ -9090,6 +8695,364 @@ proto.walletrpc.AccountsResponse.prototype.setCurrentBlockHeight = function(valu +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.walletrpc.AddressRequest.prototype.toObject = function(opt_includeInstance) { + return proto.walletrpc.AddressRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.walletrpc.AddressRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.walletrpc.AddressRequest.toObject = function(includeInstance, msg) { + var f, obj = { + account: jspb.Message.getFieldWithDefault(msg, 1, 0), + kind: jspb.Message.getFieldWithDefault(msg, 2, 0), + index: jspb.Message.getFieldWithDefault(msg, 3, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.walletrpc.AddressRequest} + */ +proto.walletrpc.AddressRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.walletrpc.AddressRequest; + return proto.walletrpc.AddressRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.walletrpc.AddressRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.walletrpc.AddressRequest} + */ +proto.walletrpc.AddressRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readUint32()); + msg.setAccount(value); + break; + case 2: + var value = /** @type {!proto.walletrpc.AddressRequest.Kind} */ (reader.readEnum()); + msg.setKind(value); + break; + case 3: + var value = /** @type {number} */ (reader.readUint32()); + msg.setIndex(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.walletrpc.AddressRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.walletrpc.AddressRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.walletrpc.AddressRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.walletrpc.AddressRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getAccount(); + if (f !== 0) { + writer.writeUint32( + 1, + f + ); + } + f = message.getKind(); + if (f !== 0.0) { + writer.writeEnum( + 2, + f + ); + } + f = message.getIndex(); + if (f !== 0) { + writer.writeUint32( + 3, + f + ); + } +}; + + +/** + * @enum {number} + */ +proto.walletrpc.AddressRequest.Kind = { + BIP0044_EXTERNAL: 0, + BIP0044_INTERNAL: 1 +}; + +/** + * optional uint32 account = 1; + * @return {number} + */ +proto.walletrpc.AddressRequest.prototype.getAccount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.walletrpc.AddressRequest} returns this + */ +proto.walletrpc.AddressRequest.prototype.setAccount = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional Kind kind = 2; + * @return {!proto.walletrpc.AddressRequest.Kind} + */ +proto.walletrpc.AddressRequest.prototype.getKind = function() { + return /** @type {!proto.walletrpc.AddressRequest.Kind} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {!proto.walletrpc.AddressRequest.Kind} value + * @return {!proto.walletrpc.AddressRequest} returns this + */ +proto.walletrpc.AddressRequest.prototype.setKind = function(value) { + return jspb.Message.setProto3EnumField(this, 2, value); +}; + + +/** + * optional uint32 index = 3; + * @return {number} + */ +proto.walletrpc.AddressRequest.prototype.getIndex = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.walletrpc.AddressRequest} returns this + */ +proto.walletrpc.AddressRequest.prototype.setIndex = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.walletrpc.AddressResponse.prototype.toObject = function(opt_includeInstance) { + return proto.walletrpc.AddressResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.walletrpc.AddressResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.walletrpc.AddressResponse.toObject = function(includeInstance, msg) { + var f, obj = { + address: jspb.Message.getFieldWithDefault(msg, 1, ""), + publicKey: jspb.Message.getFieldWithDefault(msg, 2, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.walletrpc.AddressResponse} + */ +proto.walletrpc.AddressResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.walletrpc.AddressResponse; + return proto.walletrpc.AddressResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.walletrpc.AddressResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.walletrpc.AddressResponse} + */ +proto.walletrpc.AddressResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setAddress(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setPublicKey(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.walletrpc.AddressResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.walletrpc.AddressResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.walletrpc.AddressResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.walletrpc.AddressResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getAddress(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getPublicKey(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } +}; + + +/** + * optional string address = 1; + * @return {string} + */ +proto.walletrpc.AddressResponse.prototype.getAddress = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.walletrpc.AddressResponse} returns this + */ +proto.walletrpc.AddressResponse.prototype.setAddress = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string public_key = 2; + * @return {string} + */ +proto.walletrpc.AddressResponse.prototype.getPublicKey = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.walletrpc.AddressResponse} returns this + */ +proto.walletrpc.AddressResponse.prototype.setPublicKey = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + + + + if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. @@ -11043,6 +11006,551 @@ proto.walletrpc.ImportExtendedPublicKeyResponse.serializeBinaryToWriter = functi +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.walletrpc.DumpPrivateKeyRequest.prototype.toObject = function(opt_includeInstance) { + return proto.walletrpc.DumpPrivateKeyRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.walletrpc.DumpPrivateKeyRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.walletrpc.DumpPrivateKeyRequest.toObject = function(includeInstance, msg) { + var f, obj = { + address: jspb.Message.getFieldWithDefault(msg, 1, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.walletrpc.DumpPrivateKeyRequest} + */ +proto.walletrpc.DumpPrivateKeyRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.walletrpc.DumpPrivateKeyRequest; + return proto.walletrpc.DumpPrivateKeyRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.walletrpc.DumpPrivateKeyRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.walletrpc.DumpPrivateKeyRequest} + */ +proto.walletrpc.DumpPrivateKeyRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setAddress(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.walletrpc.DumpPrivateKeyRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.walletrpc.DumpPrivateKeyRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.walletrpc.DumpPrivateKeyRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.walletrpc.DumpPrivateKeyRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getAddress(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string address = 1; + * @return {string} + */ +proto.walletrpc.DumpPrivateKeyRequest.prototype.getAddress = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.walletrpc.DumpPrivateKeyRequest} returns this + */ +proto.walletrpc.DumpPrivateKeyRequest.prototype.setAddress = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.walletrpc.DumpPrivateKeyResponse.prototype.toObject = function(opt_includeInstance) { + return proto.walletrpc.DumpPrivateKeyResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.walletrpc.DumpPrivateKeyResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.walletrpc.DumpPrivateKeyResponse.toObject = function(includeInstance, msg) { + var f, obj = { + privateKeyWif: jspb.Message.getFieldWithDefault(msg, 1, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.walletrpc.DumpPrivateKeyResponse} + */ +proto.walletrpc.DumpPrivateKeyResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.walletrpc.DumpPrivateKeyResponse; + return proto.walletrpc.DumpPrivateKeyResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.walletrpc.DumpPrivateKeyResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.walletrpc.DumpPrivateKeyResponse} + */ +proto.walletrpc.DumpPrivateKeyResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setPrivateKeyWif(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.walletrpc.DumpPrivateKeyResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.walletrpc.DumpPrivateKeyResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.walletrpc.DumpPrivateKeyResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.walletrpc.DumpPrivateKeyResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getPrivateKeyWif(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string private_key_wif = 1; + * @return {string} + */ +proto.walletrpc.DumpPrivateKeyResponse.prototype.getPrivateKeyWif = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.walletrpc.DumpPrivateKeyResponse} returns this + */ +proto.walletrpc.DumpPrivateKeyResponse.prototype.setPrivateKeyWif = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.walletrpc.BirthBlockRequest.prototype.toObject = function(opt_includeInstance) { + return proto.walletrpc.BirthBlockRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.walletrpc.BirthBlockRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.walletrpc.BirthBlockRequest.toObject = function(includeInstance, msg) { + var f, obj = { + + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.walletrpc.BirthBlockRequest} + */ +proto.walletrpc.BirthBlockRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.walletrpc.BirthBlockRequest; + return proto.walletrpc.BirthBlockRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.walletrpc.BirthBlockRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.walletrpc.BirthBlockRequest} + */ +proto.walletrpc.BirthBlockRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.walletrpc.BirthBlockRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.walletrpc.BirthBlockRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.walletrpc.BirthBlockRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.walletrpc.BirthBlockRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.walletrpc.BirthBlockResponse.prototype.toObject = function(opt_includeInstance) { + return proto.walletrpc.BirthBlockResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.walletrpc.BirthBlockResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.walletrpc.BirthBlockResponse.toObject = function(includeInstance, msg) { + var f, obj = { + hash: msg.getHash_asB64(), + height: jspb.Message.getFieldWithDefault(msg, 2, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.walletrpc.BirthBlockResponse} + */ +proto.walletrpc.BirthBlockResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.walletrpc.BirthBlockResponse; + return proto.walletrpc.BirthBlockResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.walletrpc.BirthBlockResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.walletrpc.BirthBlockResponse} + */ +proto.walletrpc.BirthBlockResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setHash(value); + break; + case 2: + var value = /** @type {number} */ (reader.readUint32()); + msg.setHeight(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.walletrpc.BirthBlockResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.walletrpc.BirthBlockResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.walletrpc.BirthBlockResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.walletrpc.BirthBlockResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getHash_asU8(); + if (f.length > 0) { + writer.writeBytes( + 1, + f + ); + } + f = message.getHeight(); + if (f !== 0) { + writer.writeUint32( + 2, + f + ); + } +}; + + +/** + * optional bytes hash = 1; + * @return {!(string|Uint8Array)} + */ +proto.walletrpc.BirthBlockResponse.prototype.getHash = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * optional bytes hash = 1; + * This is a type-conversion wrapper around `getHash()` + * @return {string} + */ +proto.walletrpc.BirthBlockResponse.prototype.getHash_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getHash())); +}; + + +/** + * optional bytes hash = 1; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getHash()` + * @return {!Uint8Array} + */ +proto.walletrpc.BirthBlockResponse.prototype.getHash_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getHash())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.walletrpc.BirthBlockResponse} returns this + */ +proto.walletrpc.BirthBlockResponse.prototype.setHash = function(value) { + return jspb.Message.setProto3BytesField(this, 1, value); +}; + + +/** + * optional uint32 height = 2; + * @return {number} + */ +proto.walletrpc.BirthBlockResponse.prototype.getHeight = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.walletrpc.BirthBlockResponse} returns this + */ +proto.walletrpc.BirthBlockResponse.prototype.setHeight = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + + + + if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. @@ -21636,19 +22144,19 @@ proto.walletrpc.PurchaseTicketsRequest.toObject = function(includeInstance, msg) requiredConfirmations: jspb.Message.getFieldWithDefault(msg, 4, 0), ticketAddress: jspb.Message.getFieldWithDefault(msg, 5, ""), numTickets: jspb.Message.getFieldWithDefault(msg, 6, 0), - poolAddress: jspb.Message.getFieldWithDefault(msg, 7, ""), - poolFees: jspb.Message.getFloatingPointFieldWithDefault(msg, 8, 0.0), - expiry: jspb.Message.getFieldWithDefault(msg, 9, 0), - txFee: jspb.Message.getFieldWithDefault(msg, 10, 0), - ticketFee: jspb.Message.getFieldWithDefault(msg, 11, 0), - dontSignTx: jspb.Message.getBooleanFieldWithDefault(msg, 12, false), - csppServer: jspb.Message.getFieldWithDefault(msg, 13, ""), - mixedAccount: jspb.Message.getFieldWithDefault(msg, 14, 0), - mixedAccountBranch: jspb.Message.getFieldWithDefault(msg, 15, 0), - mixedSplitAccount: jspb.Message.getFieldWithDefault(msg, 16, 0), - changeAccount: jspb.Message.getFieldWithDefault(msg, 17, 0), - vspHost: jspb.Message.getFieldWithDefault(msg, 18, ""), - vspPubkey: jspb.Message.getFieldWithDefault(msg, 19, "") + expiry: jspb.Message.getFieldWithDefault(msg, 7, 0), + txFee: jspb.Message.getFieldWithDefault(msg, 8, 0), + ticketFee: jspb.Message.getFieldWithDefault(msg, 9, 0), + dontSignTx: jspb.Message.getBooleanFieldWithDefault(msg, 10, false), + csppServer: jspb.Message.getFieldWithDefault(msg, 11, ""), + mixedAccount: jspb.Message.getFieldWithDefault(msg, 12, 0), + mixedAccountBranch: jspb.Message.getFieldWithDefault(msg, 13, 0), + mixedSplitAccount: jspb.Message.getFieldWithDefault(msg, 14, 0), + changeAccount: jspb.Message.getFieldWithDefault(msg, 15, 0), + vspHost: jspb.Message.getFieldWithDefault(msg, 16, ""), + vspPubkey: jspb.Message.getFieldWithDefault(msg, 17, ""), + useVotingAccount: jspb.Message.getBooleanFieldWithDefault(msg, 18, false), + votingAccount: jspb.Message.getFieldWithDefault(msg, 19, 0) }; if (includeInstance) { @@ -21710,57 +22218,57 @@ proto.walletrpc.PurchaseTicketsRequest.deserializeBinaryFromReader = function(ms msg.setNumTickets(value); break; case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setPoolAddress(value); - break; - case 8: - var value = /** @type {number} */ (reader.readDouble()); - msg.setPoolFees(value); - break; - case 9: var value = /** @type {number} */ (reader.readUint32()); msg.setExpiry(value); break; - case 10: + case 8: var value = /** @type {number} */ (reader.readInt64()); msg.setTxFee(value); break; - case 11: + case 9: var value = /** @type {number} */ (reader.readInt64()); msg.setTicketFee(value); break; - case 12: + case 10: var value = /** @type {boolean} */ (reader.readBool()); msg.setDontSignTx(value); break; - case 13: + case 11: var value = /** @type {string} */ (reader.readString()); msg.setCsppServer(value); break; - case 14: + case 12: var value = /** @type {number} */ (reader.readUint32()); msg.setMixedAccount(value); break; - case 15: + case 13: var value = /** @type {number} */ (reader.readUint32()); msg.setMixedAccountBranch(value); break; - case 16: + case 14: var value = /** @type {number} */ (reader.readUint32()); msg.setMixedSplitAccount(value); break; - case 17: + case 15: var value = /** @type {number} */ (reader.readUint32()); msg.setChangeAccount(value); break; - case 18: + case 16: var value = /** @type {string} */ (reader.readString()); msg.setVspHost(value); break; - case 19: + case 17: var value = /** @type {string} */ (reader.readString()); msg.setVspPubkey(value); break; + case 18: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setUseVotingAccount(value); + break; + case 19: + var value = /** @type {number} */ (reader.readUint32()); + msg.setVotingAccount(value); + break; default: reader.skipField(); break; @@ -21832,93 +22340,93 @@ proto.walletrpc.PurchaseTicketsRequest.serializeBinaryToWriter = function(messag f ); } - f = message.getPoolAddress(); - if (f.length > 0) { - writer.writeString( - 7, - f - ); - } - f = message.getPoolFees(); - if (f !== 0.0) { - writer.writeDouble( - 8, - f - ); - } f = message.getExpiry(); if (f !== 0) { writer.writeUint32( - 9, + 7, f ); } f = message.getTxFee(); if (f !== 0) { writer.writeInt64( - 10, + 8, f ); } f = message.getTicketFee(); if (f !== 0) { writer.writeInt64( - 11, + 9, f ); } f = message.getDontSignTx(); if (f) { writer.writeBool( - 12, + 10, f ); } f = message.getCsppServer(); if (f.length > 0) { writer.writeString( - 13, + 11, f ); } f = message.getMixedAccount(); if (f !== 0) { writer.writeUint32( - 14, + 12, f ); } f = message.getMixedAccountBranch(); if (f !== 0) { writer.writeUint32( - 15, + 13, f ); } f = message.getMixedSplitAccount(); if (f !== 0) { writer.writeUint32( - 16, + 14, f ); } f = message.getChangeAccount(); if (f !== 0) { writer.writeUint32( - 17, + 15, f ); } f = message.getVspHost(); if (f.length > 0) { writer.writeString( - 18, + 16, f ); } f = message.getVspPubkey(); if (f.length > 0) { writer.writeString( + 17, + f + ); + } + f = message.getUseVotingAccount(); + if (f) { + writer.writeBool( + 18, + f + ); + } + f = message.getVotingAccount(); + if (f !== 0) { + writer.writeUint32( 19, f ); @@ -22059,47 +22567,11 @@ proto.walletrpc.PurchaseTicketsRequest.prototype.setNumTickets = function(value) /** - * optional string pool_address = 7; - * @return {string} - */ -proto.walletrpc.PurchaseTicketsRequest.prototype.getPoolAddress = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - - -/** - * @param {string} value - * @return {!proto.walletrpc.PurchaseTicketsRequest} returns this - */ -proto.walletrpc.PurchaseTicketsRequest.prototype.setPoolAddress = function(value) { - return jspb.Message.setProto3StringField(this, 7, value); -}; - - -/** - * optional double pool_fees = 8; - * @return {number} - */ -proto.walletrpc.PurchaseTicketsRequest.prototype.getPoolFees = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 8, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.walletrpc.PurchaseTicketsRequest} returns this - */ -proto.walletrpc.PurchaseTicketsRequest.prototype.setPoolFees = function(value) { - return jspb.Message.setProto3FloatField(this, 8, value); -}; - - -/** - * optional uint32 expiry = 9; + * optional uint32 expiry = 7; * @return {number} */ proto.walletrpc.PurchaseTicketsRequest.prototype.getExpiry = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); }; @@ -22108,16 +22580,16 @@ proto.walletrpc.PurchaseTicketsRequest.prototype.getExpiry = function() { * @return {!proto.walletrpc.PurchaseTicketsRequest} returns this */ proto.walletrpc.PurchaseTicketsRequest.prototype.setExpiry = function(value) { - return jspb.Message.setProto3IntField(this, 9, value); + return jspb.Message.setProto3IntField(this, 7, value); }; /** - * optional int64 tx_fee = 10; + * optional int64 tx_fee = 8; * @return {number} */ proto.walletrpc.PurchaseTicketsRequest.prototype.getTxFee = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0)); + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); }; @@ -22126,16 +22598,16 @@ proto.walletrpc.PurchaseTicketsRequest.prototype.getTxFee = function() { * @return {!proto.walletrpc.PurchaseTicketsRequest} returns this */ proto.walletrpc.PurchaseTicketsRequest.prototype.setTxFee = function(value) { - return jspb.Message.setProto3IntField(this, 10, value); + return jspb.Message.setProto3IntField(this, 8, value); }; /** - * optional int64 ticket_fee = 11; + * optional int64 ticket_fee = 9; * @return {number} */ proto.walletrpc.PurchaseTicketsRequest.prototype.getTicketFee = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 0)); + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); }; @@ -22144,16 +22616,16 @@ proto.walletrpc.PurchaseTicketsRequest.prototype.getTicketFee = function() { * @return {!proto.walletrpc.PurchaseTicketsRequest} returns this */ proto.walletrpc.PurchaseTicketsRequest.prototype.setTicketFee = function(value) { - return jspb.Message.setProto3IntField(this, 11, value); + return jspb.Message.setProto3IntField(this, 9, value); }; /** - * optional bool dont_sign_tx = 12; + * optional bool dont_sign_tx = 10; * @return {boolean} */ proto.walletrpc.PurchaseTicketsRequest.prototype.getDontSignTx = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 12, false)); + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 10, false)); }; @@ -22162,16 +22634,16 @@ proto.walletrpc.PurchaseTicketsRequest.prototype.getDontSignTx = function() { * @return {!proto.walletrpc.PurchaseTicketsRequest} returns this */ proto.walletrpc.PurchaseTicketsRequest.prototype.setDontSignTx = function(value) { - return jspb.Message.setProto3BooleanField(this, 12, value); + return jspb.Message.setProto3BooleanField(this, 10, value); }; /** - * optional string cspp_server = 13; + * optional string cspp_server = 11; * @return {string} */ proto.walletrpc.PurchaseTicketsRequest.prototype.getCsppServer = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, "")); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, "")); }; @@ -22180,16 +22652,16 @@ proto.walletrpc.PurchaseTicketsRequest.prototype.getCsppServer = function() { * @return {!proto.walletrpc.PurchaseTicketsRequest} returns this */ proto.walletrpc.PurchaseTicketsRequest.prototype.setCsppServer = function(value) { - return jspb.Message.setProto3StringField(this, 13, value); + return jspb.Message.setProto3StringField(this, 11, value); }; /** - * optional uint32 mixed_account = 14; + * optional uint32 mixed_account = 12; * @return {number} */ proto.walletrpc.PurchaseTicketsRequest.prototype.getMixedAccount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 14, 0)); + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 12, 0)); }; @@ -22198,16 +22670,16 @@ proto.walletrpc.PurchaseTicketsRequest.prototype.getMixedAccount = function() { * @return {!proto.walletrpc.PurchaseTicketsRequest} returns this */ proto.walletrpc.PurchaseTicketsRequest.prototype.setMixedAccount = function(value) { - return jspb.Message.setProto3IntField(this, 14, value); + return jspb.Message.setProto3IntField(this, 12, value); }; /** - * optional uint32 mixed_account_branch = 15; + * optional uint32 mixed_account_branch = 13; * @return {number} */ proto.walletrpc.PurchaseTicketsRequest.prototype.getMixedAccountBranch = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 15, 0)); + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 13, 0)); }; @@ -22216,16 +22688,16 @@ proto.walletrpc.PurchaseTicketsRequest.prototype.getMixedAccountBranch = functio * @return {!proto.walletrpc.PurchaseTicketsRequest} returns this */ proto.walletrpc.PurchaseTicketsRequest.prototype.setMixedAccountBranch = function(value) { - return jspb.Message.setProto3IntField(this, 15, value); + return jspb.Message.setProto3IntField(this, 13, value); }; /** - * optional uint32 mixed_split_account = 16; + * optional uint32 mixed_split_account = 14; * @return {number} */ proto.walletrpc.PurchaseTicketsRequest.prototype.getMixedSplitAccount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 16, 0)); + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 14, 0)); }; @@ -22234,16 +22706,16 @@ proto.walletrpc.PurchaseTicketsRequest.prototype.getMixedSplitAccount = function * @return {!proto.walletrpc.PurchaseTicketsRequest} returns this */ proto.walletrpc.PurchaseTicketsRequest.prototype.setMixedSplitAccount = function(value) { - return jspb.Message.setProto3IntField(this, 16, value); + return jspb.Message.setProto3IntField(this, 14, value); }; /** - * optional uint32 change_account = 17; + * optional uint32 change_account = 15; * @return {number} */ proto.walletrpc.PurchaseTicketsRequest.prototype.getChangeAccount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 17, 0)); + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 15, 0)); }; @@ -22252,16 +22724,16 @@ proto.walletrpc.PurchaseTicketsRequest.prototype.getChangeAccount = function() { * @return {!proto.walletrpc.PurchaseTicketsRequest} returns this */ proto.walletrpc.PurchaseTicketsRequest.prototype.setChangeAccount = function(value) { - return jspb.Message.setProto3IntField(this, 17, value); + return jspb.Message.setProto3IntField(this, 15, value); }; /** - * optional string vsp_host = 18; + * optional string vsp_host = 16; * @return {string} */ proto.walletrpc.PurchaseTicketsRequest.prototype.getVspHost = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 18, "")); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, "")); }; @@ -22270,16 +22742,16 @@ proto.walletrpc.PurchaseTicketsRequest.prototype.getVspHost = function() { * @return {!proto.walletrpc.PurchaseTicketsRequest} returns this */ proto.walletrpc.PurchaseTicketsRequest.prototype.setVspHost = function(value) { - return jspb.Message.setProto3StringField(this, 18, value); + return jspb.Message.setProto3StringField(this, 16, value); }; /** - * optional string vsp_pubkey = 19; + * optional string vsp_pubkey = 17; * @return {string} */ proto.walletrpc.PurchaseTicketsRequest.prototype.getVspPubkey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 19, "")); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 17, "")); }; @@ -22288,7 +22760,43 @@ proto.walletrpc.PurchaseTicketsRequest.prototype.getVspPubkey = function() { * @return {!proto.walletrpc.PurchaseTicketsRequest} returns this */ proto.walletrpc.PurchaseTicketsRequest.prototype.setVspPubkey = function(value) { - return jspb.Message.setProto3StringField(this, 19, value); + return jspb.Message.setProto3StringField(this, 17, value); +}; + + +/** + * optional bool use_voting_account = 18; + * @return {boolean} + */ +proto.walletrpc.PurchaseTicketsRequest.prototype.getUseVotingAccount = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 18, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.walletrpc.PurchaseTicketsRequest} returns this + */ +proto.walletrpc.PurchaseTicketsRequest.prototype.setUseVotingAccount = function(value) { + return jspb.Message.setProto3BooleanField(this, 18, value); +}; + + +/** + * optional uint32 voting_account = 19; + * @return {number} + */ +proto.walletrpc.PurchaseTicketsRequest.prototype.getVotingAccount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 19, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.walletrpc.PurchaseTicketsRequest} returns this + */ +proto.walletrpc.PurchaseTicketsRequest.prototype.setVotingAccount = function(value) { + return jspb.Message.setProto3IntField(this, 19, value); }; @@ -25933,7 +26441,11 @@ proto.walletrpc.CreateWalletRequest.toObject = function(includeInstance, msg) { var f, obj = { publicPassphrase: msg.getPublicPassphrase_asB64(), privatePassphrase: msg.getPrivatePassphrase_asB64(), - seed: msg.getSeed_asB64() + seed: msg.getSeed_asB64(), + setBirthTime: jspb.Message.getBooleanFieldWithDefault(msg, 4, false), + birthTime: jspb.Message.getFieldWithDefault(msg, 5, 0), + setBirthHeight: jspb.Message.getBooleanFieldWithDefault(msg, 6, false), + birthHeight: jspb.Message.getFieldWithDefault(msg, 7, 0) }; if (includeInstance) { @@ -25982,6 +26494,22 @@ proto.walletrpc.CreateWalletRequest.deserializeBinaryFromReader = function(msg, var value = /** @type {!Uint8Array} */ (reader.readBytes()); msg.setSeed(value); break; + case 4: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setSetBirthTime(value); + break; + case 5: + var value = /** @type {number} */ (reader.readInt64()); + msg.setBirthTime(value); + break; + case 6: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setSetBirthHeight(value); + break; + case 7: + var value = /** @type {number} */ (reader.readUint32()); + msg.setBirthHeight(value); + break; default: reader.skipField(); break; @@ -26032,6 +26560,34 @@ proto.walletrpc.CreateWalletRequest.serializeBinaryToWriter = function(message, f ); } + f = message.getSetBirthTime(); + if (f) { + writer.writeBool( + 4, + f + ); + } + f = message.getBirthTime(); + if (f !== 0) { + writer.writeInt64( + 5, + f + ); + } + f = message.getSetBirthHeight(); + if (f) { + writer.writeBool( + 6, + f + ); + } + f = message.getBirthHeight(); + if (f !== 0) { + writer.writeUint32( + 7, + f + ); + } }; @@ -26161,6 +26717,78 @@ proto.walletrpc.CreateWalletRequest.prototype.setSeed = function(value) { }; +/** + * optional bool set_birth_time = 4; + * @return {boolean} + */ +proto.walletrpc.CreateWalletRequest.prototype.getSetBirthTime = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.walletrpc.CreateWalletRequest} returns this + */ +proto.walletrpc.CreateWalletRequest.prototype.setSetBirthTime = function(value) { + return jspb.Message.setProto3BooleanField(this, 4, value); +}; + + +/** + * optional int64 birth_time = 5; + * @return {number} + */ +proto.walletrpc.CreateWalletRequest.prototype.getBirthTime = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.walletrpc.CreateWalletRequest} returns this + */ +proto.walletrpc.CreateWalletRequest.prototype.setBirthTime = function(value) { + return jspb.Message.setProto3IntField(this, 5, value); +}; + + +/** + * optional bool set_birth_height = 6; + * @return {boolean} + */ +proto.walletrpc.CreateWalletRequest.prototype.getSetBirthHeight = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.walletrpc.CreateWalletRequest} returns this + */ +proto.walletrpc.CreateWalletRequest.prototype.setSetBirthHeight = function(value) { + return jspb.Message.setProto3BooleanField(this, 6, value); +}; + + +/** + * optional uint32 birth_height = 7; + * @return {number} + */ +proto.walletrpc.CreateWalletRequest.prototype.getBirthHeight = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.walletrpc.CreateWalletRequest} returns this + */ +proto.walletrpc.CreateWalletRequest.prototype.setBirthHeight = function(value) { + return jspb.Message.setProto3IntField(this, 7, value); +}; + + @@ -31625,16 +32253,14 @@ proto.walletrpc.RunTicketBuyerRequest.toObject = function(includeInstance, msg) votingAccount: jspb.Message.getFieldWithDefault(msg, 3, 0), balanceToMaintain: jspb.Message.getFieldWithDefault(msg, 4, 0), votingAddress: jspb.Message.getFieldWithDefault(msg, 5, ""), - poolAddress: jspb.Message.getFieldWithDefault(msg, 6, ""), - poolFees: jspb.Message.getFloatingPointFieldWithDefault(msg, 7, 0.0), - vspHost: jspb.Message.getFieldWithDefault(msg, 8, ""), - vspPubkey: jspb.Message.getFieldWithDefault(msg, 9, ""), - limit: jspb.Message.getFieldWithDefault(msg, 10, 0), - csppServer: jspb.Message.getFieldWithDefault(msg, 11, ""), - mixedAccount: jspb.Message.getFieldWithDefault(msg, 12, 0), - mixedAccountBranch: jspb.Message.getFieldWithDefault(msg, 13, 0), - mixedSplitAccount: jspb.Message.getFieldWithDefault(msg, 14, 0), - changeAccount: jspb.Message.getFieldWithDefault(msg, 15, 0) + vspHost: jspb.Message.getFieldWithDefault(msg, 6, ""), + vspPubkey: jspb.Message.getFieldWithDefault(msg, 7, ""), + limit: jspb.Message.getFieldWithDefault(msg, 8, 0), + csppServer: jspb.Message.getFieldWithDefault(msg, 9, ""), + mixedAccount: jspb.Message.getFieldWithDefault(msg, 10, 0), + mixedAccountBranch: jspb.Message.getFieldWithDefault(msg, 11, 0), + mixedSplitAccount: jspb.Message.getFieldWithDefault(msg, 12, 0), + changeAccount: jspb.Message.getFieldWithDefault(msg, 13, 0) }; if (includeInstance) { @@ -31692,42 +32318,34 @@ proto.walletrpc.RunTicketBuyerRequest.deserializeBinaryFromReader = function(msg msg.setVotingAddress(value); break; case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setPoolAddress(value); - break; - case 7: - var value = /** @type {number} */ (reader.readDouble()); - msg.setPoolFees(value); - break; - case 8: var value = /** @type {string} */ (reader.readString()); msg.setVspHost(value); break; - case 9: + case 7: var value = /** @type {string} */ (reader.readString()); msg.setVspPubkey(value); break; - case 10: + case 8: var value = /** @type {number} */ (reader.readInt32()); msg.setLimit(value); break; - case 11: + case 9: var value = /** @type {string} */ (reader.readString()); msg.setCsppServer(value); break; - case 12: + case 10: var value = /** @type {number} */ (reader.readUint32()); msg.setMixedAccount(value); break; - case 13: + case 11: var value = /** @type {number} */ (reader.readUint32()); msg.setMixedAccountBranch(value); break; - case 14: + case 12: var value = /** @type {number} */ (reader.readUint32()); msg.setMixedSplitAccount(value); break; - case 15: + case 13: var value = /** @type {number} */ (reader.readUint32()); msg.setChangeAccount(value); break; @@ -31795,73 +32413,59 @@ proto.walletrpc.RunTicketBuyerRequest.serializeBinaryToWriter = function(message f ); } - f = message.getPoolAddress(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } - f = message.getPoolFees(); - if (f !== 0.0) { - writer.writeDouble( - 7, - f - ); - } f = message.getVspHost(); if (f.length > 0) { writer.writeString( - 8, + 6, f ); } f = message.getVspPubkey(); if (f.length > 0) { writer.writeString( - 9, + 7, f ); } f = message.getLimit(); if (f !== 0) { writer.writeInt32( - 10, + 8, f ); } f = message.getCsppServer(); if (f.length > 0) { writer.writeString( - 11, + 9, f ); } f = message.getMixedAccount(); if (f !== 0) { writer.writeUint32( - 12, + 10, f ); } f = message.getMixedAccountBranch(); if (f !== 0) { writer.writeUint32( - 13, + 11, f ); } f = message.getMixedSplitAccount(); if (f !== 0) { writer.writeUint32( - 14, + 12, f ); } f = message.getChangeAccount(); if (f !== 0) { writer.writeUint32( - 15, + 13, f ); } @@ -31983,47 +32587,11 @@ proto.walletrpc.RunTicketBuyerRequest.prototype.setVotingAddress = function(valu /** - * optional string pool_address = 6; - * @return {string} - */ -proto.walletrpc.RunTicketBuyerRequest.prototype.getPoolAddress = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * @param {string} value - * @return {!proto.walletrpc.RunTicketBuyerRequest} returns this - */ -proto.walletrpc.RunTicketBuyerRequest.prototype.setPoolAddress = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); -}; - - -/** - * optional double pool_fees = 7; - * @return {number} - */ -proto.walletrpc.RunTicketBuyerRequest.prototype.getPoolFees = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 7, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.walletrpc.RunTicketBuyerRequest} returns this - */ -proto.walletrpc.RunTicketBuyerRequest.prototype.setPoolFees = function(value) { - return jspb.Message.setProto3FloatField(this, 7, value); -}; - - -/** - * optional string vsp_host = 8; + * optional string vsp_host = 6; * @return {string} */ proto.walletrpc.RunTicketBuyerRequest.prototype.getVspHost = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); }; @@ -32032,16 +32600,16 @@ proto.walletrpc.RunTicketBuyerRequest.prototype.getVspHost = function() { * @return {!proto.walletrpc.RunTicketBuyerRequest} returns this */ proto.walletrpc.RunTicketBuyerRequest.prototype.setVspHost = function(value) { - return jspb.Message.setProto3StringField(this, 8, value); + return jspb.Message.setProto3StringField(this, 6, value); }; /** - * optional string vsp_pubkey = 9; + * optional string vsp_pubkey = 7; * @return {string} */ proto.walletrpc.RunTicketBuyerRequest.prototype.getVspPubkey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); }; @@ -32050,16 +32618,16 @@ proto.walletrpc.RunTicketBuyerRequest.prototype.getVspPubkey = function() { * @return {!proto.walletrpc.RunTicketBuyerRequest} returns this */ proto.walletrpc.RunTicketBuyerRequest.prototype.setVspPubkey = function(value) { - return jspb.Message.setProto3StringField(this, 9, value); + return jspb.Message.setProto3StringField(this, 7, value); }; /** - * optional int32 limit = 10; + * optional int32 limit = 8; * @return {number} */ proto.walletrpc.RunTicketBuyerRequest.prototype.getLimit = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0)); + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); }; @@ -32068,16 +32636,16 @@ proto.walletrpc.RunTicketBuyerRequest.prototype.getLimit = function() { * @return {!proto.walletrpc.RunTicketBuyerRequest} returns this */ proto.walletrpc.RunTicketBuyerRequest.prototype.setLimit = function(value) { - return jspb.Message.setProto3IntField(this, 10, value); + return jspb.Message.setProto3IntField(this, 8, value); }; /** - * optional string cspp_server = 11; + * optional string cspp_server = 9; * @return {string} */ proto.walletrpc.RunTicketBuyerRequest.prototype.getCsppServer = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, "")); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); }; @@ -32086,16 +32654,16 @@ proto.walletrpc.RunTicketBuyerRequest.prototype.getCsppServer = function() { * @return {!proto.walletrpc.RunTicketBuyerRequest} returns this */ proto.walletrpc.RunTicketBuyerRequest.prototype.setCsppServer = function(value) { - return jspb.Message.setProto3StringField(this, 11, value); + return jspb.Message.setProto3StringField(this, 9, value); }; /** - * optional uint32 mixed_account = 12; + * optional uint32 mixed_account = 10; * @return {number} */ proto.walletrpc.RunTicketBuyerRequest.prototype.getMixedAccount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 12, 0)); + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0)); }; @@ -32104,16 +32672,16 @@ proto.walletrpc.RunTicketBuyerRequest.prototype.getMixedAccount = function() { * @return {!proto.walletrpc.RunTicketBuyerRequest} returns this */ proto.walletrpc.RunTicketBuyerRequest.prototype.setMixedAccount = function(value) { - return jspb.Message.setProto3IntField(this, 12, value); + return jspb.Message.setProto3IntField(this, 10, value); }; /** - * optional uint32 mixed_account_branch = 13; + * optional uint32 mixed_account_branch = 11; * @return {number} */ proto.walletrpc.RunTicketBuyerRequest.prototype.getMixedAccountBranch = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 13, 0)); + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 0)); }; @@ -32122,16 +32690,16 @@ proto.walletrpc.RunTicketBuyerRequest.prototype.getMixedAccountBranch = function * @return {!proto.walletrpc.RunTicketBuyerRequest} returns this */ proto.walletrpc.RunTicketBuyerRequest.prototype.setMixedAccountBranch = function(value) { - return jspb.Message.setProto3IntField(this, 13, value); + return jspb.Message.setProto3IntField(this, 11, value); }; /** - * optional uint32 mixed_split_account = 14; + * optional uint32 mixed_split_account = 12; * @return {number} */ proto.walletrpc.RunTicketBuyerRequest.prototype.getMixedSplitAccount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 14, 0)); + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 12, 0)); }; @@ -32140,16 +32708,16 @@ proto.walletrpc.RunTicketBuyerRequest.prototype.getMixedSplitAccount = function( * @return {!proto.walletrpc.RunTicketBuyerRequest} returns this */ proto.walletrpc.RunTicketBuyerRequest.prototype.setMixedSplitAccount = function(value) { - return jspb.Message.setProto3IntField(this, 14, value); + return jspb.Message.setProto3IntField(this, 12, value); }; /** - * optional uint32 change_account = 15; + * optional uint32 change_account = 13; * @return {number} */ proto.walletrpc.RunTicketBuyerRequest.prototype.getChangeAccount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 15, 0)); + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 13, 0)); }; @@ -32158,7 +32726,7 @@ proto.walletrpc.RunTicketBuyerRequest.prototype.getChangeAccount = function() { * @return {!proto.walletrpc.RunTicketBuyerRequest} returns this */ proto.walletrpc.RunTicketBuyerRequest.prototype.setChangeAccount = function(value) { - return jspb.Message.setProto3IntField(this, 15, value); + return jspb.Message.setProto3IntField(this, 13, value); }; @@ -32641,3613 +33209,6 @@ proto.walletrpc.RunAccountMixerResponse.serializeBinaryToWriter = function(messa -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.walletrpc.StartAutoBuyerRequest.prototype.toObject = function(opt_includeInstance) { - return proto.walletrpc.StartAutoBuyerRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.walletrpc.StartAutoBuyerRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.walletrpc.StartAutoBuyerRequest.toObject = function(includeInstance, msg) { - var f, obj = { - passphrase: msg.getPassphrase_asB64(), - account: jspb.Message.getFieldWithDefault(msg, 2, 0), - balanceToMaintain: jspb.Message.getFieldWithDefault(msg, 3, 0), - maxFeePerKb: jspb.Message.getFieldWithDefault(msg, 4, 0), - maxPriceRelative: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0), - maxPriceAbsolute: jspb.Message.getFieldWithDefault(msg, 6, 0), - votingAddress: jspb.Message.getFieldWithDefault(msg, 7, ""), - poolAddress: jspb.Message.getFieldWithDefault(msg, 8, ""), - poolFees: jspb.Message.getFloatingPointFieldWithDefault(msg, 9, 0.0), - maxPerBlock: jspb.Message.getFieldWithDefault(msg, 10, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.walletrpc.StartAutoBuyerRequest} - */ -proto.walletrpc.StartAutoBuyerRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.walletrpc.StartAutoBuyerRequest; - return proto.walletrpc.StartAutoBuyerRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.walletrpc.StartAutoBuyerRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.walletrpc.StartAutoBuyerRequest} - */ -proto.walletrpc.StartAutoBuyerRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setPassphrase(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint32()); - msg.setAccount(value); - break; - case 3: - var value = /** @type {number} */ (reader.readInt64()); - msg.setBalanceToMaintain(value); - break; - case 4: - var value = /** @type {number} */ (reader.readInt64()); - msg.setMaxFeePerKb(value); - break; - case 5: - var value = /** @type {number} */ (reader.readDouble()); - msg.setMaxPriceRelative(value); - break; - case 6: - var value = /** @type {number} */ (reader.readInt64()); - msg.setMaxPriceAbsolute(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setVotingAddress(value); - break; - case 8: - var value = /** @type {string} */ (reader.readString()); - msg.setPoolAddress(value); - break; - case 9: - var value = /** @type {number} */ (reader.readDouble()); - msg.setPoolFees(value); - break; - case 10: - var value = /** @type {number} */ (reader.readInt64()); - msg.setMaxPerBlock(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.walletrpc.StartAutoBuyerRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.walletrpc.StartAutoBuyerRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.walletrpc.StartAutoBuyerRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.walletrpc.StartAutoBuyerRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPassphrase_asU8(); - if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } - f = message.getAccount(); - if (f !== 0) { - writer.writeUint32( - 2, - f - ); - } - f = message.getBalanceToMaintain(); - if (f !== 0) { - writer.writeInt64( - 3, - f - ); - } - f = message.getMaxFeePerKb(); - if (f !== 0) { - writer.writeInt64( - 4, - f - ); - } - f = message.getMaxPriceRelative(); - if (f !== 0.0) { - writer.writeDouble( - 5, - f - ); - } - f = message.getMaxPriceAbsolute(); - if (f !== 0) { - writer.writeInt64( - 6, - f - ); - } - f = message.getVotingAddress(); - if (f.length > 0) { - writer.writeString( - 7, - f - ); - } - f = message.getPoolAddress(); - if (f.length > 0) { - writer.writeString( - 8, - f - ); - } - f = message.getPoolFees(); - if (f !== 0.0) { - writer.writeDouble( - 9, - f - ); - } - f = message.getMaxPerBlock(); - if (f !== 0) { - writer.writeInt64( - 10, - f - ); - } -}; - - -/** - * optional bytes passphrase = 1; - * @return {!(string|Uint8Array)} - */ -proto.walletrpc.StartAutoBuyerRequest.prototype.getPassphrase = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes passphrase = 1; - * This is a type-conversion wrapper around `getPassphrase()` - * @return {string} - */ -proto.walletrpc.StartAutoBuyerRequest.prototype.getPassphrase_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getPassphrase())); -}; - - -/** - * optional bytes passphrase = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getPassphrase()` - * @return {!Uint8Array} - */ -proto.walletrpc.StartAutoBuyerRequest.prototype.getPassphrase_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getPassphrase())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.walletrpc.StartAutoBuyerRequest} returns this - */ -proto.walletrpc.StartAutoBuyerRequest.prototype.setPassphrase = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); -}; - - -/** - * optional uint32 account = 2; - * @return {number} - */ -proto.walletrpc.StartAutoBuyerRequest.prototype.getAccount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.walletrpc.StartAutoBuyerRequest} returns this - */ -proto.walletrpc.StartAutoBuyerRequest.prototype.setAccount = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional int64 balance_to_maintain = 3; - * @return {number} - */ -proto.walletrpc.StartAutoBuyerRequest.prototype.getBalanceToMaintain = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.walletrpc.StartAutoBuyerRequest} returns this - */ -proto.walletrpc.StartAutoBuyerRequest.prototype.setBalanceToMaintain = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * optional int64 max_fee_per_kb = 4; - * @return {number} - */ -proto.walletrpc.StartAutoBuyerRequest.prototype.getMaxFeePerKb = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.walletrpc.StartAutoBuyerRequest} returns this - */ -proto.walletrpc.StartAutoBuyerRequest.prototype.setMaxFeePerKb = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); -}; - - -/** - * optional double max_price_relative = 5; - * @return {number} - */ -proto.walletrpc.StartAutoBuyerRequest.prototype.getMaxPriceRelative = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.walletrpc.StartAutoBuyerRequest} returns this - */ -proto.walletrpc.StartAutoBuyerRequest.prototype.setMaxPriceRelative = function(value) { - return jspb.Message.setProto3FloatField(this, 5, value); -}; - - -/** - * optional int64 max_price_absolute = 6; - * @return {number} - */ -proto.walletrpc.StartAutoBuyerRequest.prototype.getMaxPriceAbsolute = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.walletrpc.StartAutoBuyerRequest} returns this - */ -proto.walletrpc.StartAutoBuyerRequest.prototype.setMaxPriceAbsolute = function(value) { - return jspb.Message.setProto3IntField(this, 6, value); -}; - - -/** - * optional string voting_address = 7; - * @return {string} - */ -proto.walletrpc.StartAutoBuyerRequest.prototype.getVotingAddress = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - - -/** - * @param {string} value - * @return {!proto.walletrpc.StartAutoBuyerRequest} returns this - */ -proto.walletrpc.StartAutoBuyerRequest.prototype.setVotingAddress = function(value) { - return jspb.Message.setProto3StringField(this, 7, value); -}; - - -/** - * optional string pool_address = 8; - * @return {string} - */ -proto.walletrpc.StartAutoBuyerRequest.prototype.getPoolAddress = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); -}; - - -/** - * @param {string} value - * @return {!proto.walletrpc.StartAutoBuyerRequest} returns this - */ -proto.walletrpc.StartAutoBuyerRequest.prototype.setPoolAddress = function(value) { - return jspb.Message.setProto3StringField(this, 8, value); -}; - - -/** - * optional double pool_fees = 9; - * @return {number} - */ -proto.walletrpc.StartAutoBuyerRequest.prototype.getPoolFees = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 9, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.walletrpc.StartAutoBuyerRequest} returns this - */ -proto.walletrpc.StartAutoBuyerRequest.prototype.setPoolFees = function(value) { - return jspb.Message.setProto3FloatField(this, 9, value); -}; - - -/** - * optional int64 max_per_block = 10; - * @return {number} - */ -proto.walletrpc.StartAutoBuyerRequest.prototype.getMaxPerBlock = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.walletrpc.StartAutoBuyerRequest} returns this - */ -proto.walletrpc.StartAutoBuyerRequest.prototype.setMaxPerBlock = function(value) { - return jspb.Message.setProto3IntField(this, 10, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.walletrpc.StartAutoBuyerResponse.prototype.toObject = function(opt_includeInstance) { - return proto.walletrpc.StartAutoBuyerResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.walletrpc.StartAutoBuyerResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.walletrpc.StartAutoBuyerResponse.toObject = function(includeInstance, msg) { - var f, obj = { - - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.walletrpc.StartAutoBuyerResponse} - */ -proto.walletrpc.StartAutoBuyerResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.walletrpc.StartAutoBuyerResponse; - return proto.walletrpc.StartAutoBuyerResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.walletrpc.StartAutoBuyerResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.walletrpc.StartAutoBuyerResponse} - */ -proto.walletrpc.StartAutoBuyerResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.walletrpc.StartAutoBuyerResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.walletrpc.StartAutoBuyerResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.walletrpc.StartAutoBuyerResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.walletrpc.StartAutoBuyerResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.walletrpc.StopAutoBuyerRequest.prototype.toObject = function(opt_includeInstance) { - return proto.walletrpc.StopAutoBuyerRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.walletrpc.StopAutoBuyerRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.walletrpc.StopAutoBuyerRequest.toObject = function(includeInstance, msg) { - var f, obj = { - - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.walletrpc.StopAutoBuyerRequest} - */ -proto.walletrpc.StopAutoBuyerRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.walletrpc.StopAutoBuyerRequest; - return proto.walletrpc.StopAutoBuyerRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.walletrpc.StopAutoBuyerRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.walletrpc.StopAutoBuyerRequest} - */ -proto.walletrpc.StopAutoBuyerRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.walletrpc.StopAutoBuyerRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.walletrpc.StopAutoBuyerRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.walletrpc.StopAutoBuyerRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.walletrpc.StopAutoBuyerRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.walletrpc.StopAutoBuyerResponse.prototype.toObject = function(opt_includeInstance) { - return proto.walletrpc.StopAutoBuyerResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.walletrpc.StopAutoBuyerResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.walletrpc.StopAutoBuyerResponse.toObject = function(includeInstance, msg) { - var f, obj = { - - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.walletrpc.StopAutoBuyerResponse} - */ -proto.walletrpc.StopAutoBuyerResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.walletrpc.StopAutoBuyerResponse; - return proto.walletrpc.StopAutoBuyerResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.walletrpc.StopAutoBuyerResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.walletrpc.StopAutoBuyerResponse} - */ -proto.walletrpc.StopAutoBuyerResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.walletrpc.StopAutoBuyerResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.walletrpc.StopAutoBuyerResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.walletrpc.StopAutoBuyerResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.walletrpc.StopAutoBuyerResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.walletrpc.TicketBuyerConfigRequest.prototype.toObject = function(opt_includeInstance) { - return proto.walletrpc.TicketBuyerConfigRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.walletrpc.TicketBuyerConfigRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.walletrpc.TicketBuyerConfigRequest.toObject = function(includeInstance, msg) { - var f, obj = { - - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.walletrpc.TicketBuyerConfigRequest} - */ -proto.walletrpc.TicketBuyerConfigRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.walletrpc.TicketBuyerConfigRequest; - return proto.walletrpc.TicketBuyerConfigRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.walletrpc.TicketBuyerConfigRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.walletrpc.TicketBuyerConfigRequest} - */ -proto.walletrpc.TicketBuyerConfigRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.walletrpc.TicketBuyerConfigRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.walletrpc.TicketBuyerConfigRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.walletrpc.TicketBuyerConfigRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.walletrpc.TicketBuyerConfigRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.walletrpc.TicketBuyerConfigResponse.prototype.toObject = function(opt_includeInstance) { - return proto.walletrpc.TicketBuyerConfigResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.walletrpc.TicketBuyerConfigResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.walletrpc.TicketBuyerConfigResponse.toObject = function(includeInstance, msg) { - var f, obj = { - account: jspb.Message.getFieldWithDefault(msg, 1, 0), - avgPriceMode: jspb.Message.getFieldWithDefault(msg, 2, ""), - avgPricevwapDelta: jspb.Message.getFieldWithDefault(msg, 3, 0), - balanceToMaintain: jspb.Message.getFieldWithDefault(msg, 4, 0), - blocksToAvg: jspb.Message.getFieldWithDefault(msg, 5, 0), - dontWaitForTickets: jspb.Message.getBooleanFieldWithDefault(msg, 6, false), - expiryDelta: jspb.Message.getFieldWithDefault(msg, 7, 0), - feeSource: jspb.Message.getFieldWithDefault(msg, 8, ""), - feeTargetScaling: jspb.Message.getFloatingPointFieldWithDefault(msg, 9, 0.0), - minFee: jspb.Message.getFieldWithDefault(msg, 10, 0), - maxFee: jspb.Message.getFieldWithDefault(msg, 12, 0), - maxPerBlock: jspb.Message.getFieldWithDefault(msg, 13, 0), - maxPriceAbsolute: jspb.Message.getFieldWithDefault(msg, 14, 0), - maxPriceRelative: jspb.Message.getFloatingPointFieldWithDefault(msg, 15, 0.0), - maxInMempool: jspb.Message.getFieldWithDefault(msg, 17, 0), - poolAddress: jspb.Message.getFieldWithDefault(msg, 18, ""), - poolFees: jspb.Message.getFloatingPointFieldWithDefault(msg, 19, 0.0), - spreadTicketPurchases: jspb.Message.getBooleanFieldWithDefault(msg, 20, false), - votingAddress: jspb.Message.getFieldWithDefault(msg, 21, ""), - txFee: jspb.Message.getFieldWithDefault(msg, 22, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.walletrpc.TicketBuyerConfigResponse} - */ -proto.walletrpc.TicketBuyerConfigResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.walletrpc.TicketBuyerConfigResponse; - return proto.walletrpc.TicketBuyerConfigResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.walletrpc.TicketBuyerConfigResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.walletrpc.TicketBuyerConfigResponse} - */ -proto.walletrpc.TicketBuyerConfigResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setAccount(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setAvgPriceMode(value); - break; - case 3: - var value = /** @type {number} */ (reader.readInt64()); - msg.setAvgPricevwapDelta(value); - break; - case 4: - var value = /** @type {number} */ (reader.readInt64()); - msg.setBalanceToMaintain(value); - break; - case 5: - var value = /** @type {number} */ (reader.readInt64()); - msg.setBlocksToAvg(value); - break; - case 6: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setDontWaitForTickets(value); - break; - case 7: - var value = /** @type {number} */ (reader.readInt64()); - msg.setExpiryDelta(value); - break; - case 8: - var value = /** @type {string} */ (reader.readString()); - msg.setFeeSource(value); - break; - case 9: - var value = /** @type {number} */ (reader.readDouble()); - msg.setFeeTargetScaling(value); - break; - case 10: - var value = /** @type {number} */ (reader.readInt64()); - msg.setMinFee(value); - break; - case 12: - var value = /** @type {number} */ (reader.readInt64()); - msg.setMaxFee(value); - break; - case 13: - var value = /** @type {number} */ (reader.readInt64()); - msg.setMaxPerBlock(value); - break; - case 14: - var value = /** @type {number} */ (reader.readInt64()); - msg.setMaxPriceAbsolute(value); - break; - case 15: - var value = /** @type {number} */ (reader.readDouble()); - msg.setMaxPriceRelative(value); - break; - case 17: - var value = /** @type {number} */ (reader.readInt64()); - msg.setMaxInMempool(value); - break; - case 18: - var value = /** @type {string} */ (reader.readString()); - msg.setPoolAddress(value); - break; - case 19: - var value = /** @type {number} */ (reader.readDouble()); - msg.setPoolFees(value); - break; - case 20: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setSpreadTicketPurchases(value); - break; - case 21: - var value = /** @type {string} */ (reader.readString()); - msg.setVotingAddress(value); - break; - case 22: - var value = /** @type {number} */ (reader.readInt64()); - msg.setTxFee(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.walletrpc.TicketBuyerConfigResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.walletrpc.TicketBuyerConfigResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.walletrpc.TicketBuyerConfigResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.walletrpc.TicketBuyerConfigResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getAccount(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getAvgPriceMode(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getAvgPricevwapDelta(); - if (f !== 0) { - writer.writeInt64( - 3, - f - ); - } - f = message.getBalanceToMaintain(); - if (f !== 0) { - writer.writeInt64( - 4, - f - ); - } - f = message.getBlocksToAvg(); - if (f !== 0) { - writer.writeInt64( - 5, - f - ); - } - f = message.getDontWaitForTickets(); - if (f) { - writer.writeBool( - 6, - f - ); - } - f = message.getExpiryDelta(); - if (f !== 0) { - writer.writeInt64( - 7, - f - ); - } - f = message.getFeeSource(); - if (f.length > 0) { - writer.writeString( - 8, - f - ); - } - f = message.getFeeTargetScaling(); - if (f !== 0.0) { - writer.writeDouble( - 9, - f - ); - } - f = message.getMinFee(); - if (f !== 0) { - writer.writeInt64( - 10, - f - ); - } - f = message.getMaxFee(); - if (f !== 0) { - writer.writeInt64( - 12, - f - ); - } - f = message.getMaxPerBlock(); - if (f !== 0) { - writer.writeInt64( - 13, - f - ); - } - f = message.getMaxPriceAbsolute(); - if (f !== 0) { - writer.writeInt64( - 14, - f - ); - } - f = message.getMaxPriceRelative(); - if (f !== 0.0) { - writer.writeDouble( - 15, - f - ); - } - f = message.getMaxInMempool(); - if (f !== 0) { - writer.writeInt64( - 17, - f - ); - } - f = message.getPoolAddress(); - if (f.length > 0) { - writer.writeString( - 18, - f - ); - } - f = message.getPoolFees(); - if (f !== 0.0) { - writer.writeDouble( - 19, - f - ); - } - f = message.getSpreadTicketPurchases(); - if (f) { - writer.writeBool( - 20, - f - ); - } - f = message.getVotingAddress(); - if (f.length > 0) { - writer.writeString( - 21, - f - ); - } - f = message.getTxFee(); - if (f !== 0) { - writer.writeInt64( - 22, - f - ); - } -}; - - -/** - * optional uint32 account = 1; - * @return {number} - */ -proto.walletrpc.TicketBuyerConfigResponse.prototype.getAccount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.walletrpc.TicketBuyerConfigResponse} returns this - */ -proto.walletrpc.TicketBuyerConfigResponse.prototype.setAccount = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional string avg_price_mode = 2; - * @return {string} - */ -proto.walletrpc.TicketBuyerConfigResponse.prototype.getAvgPriceMode = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.walletrpc.TicketBuyerConfigResponse} returns this - */ -proto.walletrpc.TicketBuyerConfigResponse.prototype.setAvgPriceMode = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional int64 avg_priceVWAP_delta = 3; - * @return {number} - */ -proto.walletrpc.TicketBuyerConfigResponse.prototype.getAvgPricevwapDelta = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.walletrpc.TicketBuyerConfigResponse} returns this - */ -proto.walletrpc.TicketBuyerConfigResponse.prototype.setAvgPricevwapDelta = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * optional int64 balance_to_maintain = 4; - * @return {number} - */ -proto.walletrpc.TicketBuyerConfigResponse.prototype.getBalanceToMaintain = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.walletrpc.TicketBuyerConfigResponse} returns this - */ -proto.walletrpc.TicketBuyerConfigResponse.prototype.setBalanceToMaintain = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); -}; - - -/** - * optional int64 blocks_to_avg = 5; - * @return {number} - */ -proto.walletrpc.TicketBuyerConfigResponse.prototype.getBlocksToAvg = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.walletrpc.TicketBuyerConfigResponse} returns this - */ -proto.walletrpc.TicketBuyerConfigResponse.prototype.setBlocksToAvg = function(value) { - return jspb.Message.setProto3IntField(this, 5, value); -}; - - -/** - * optional bool dont_wait_for_tickets = 6; - * @return {boolean} - */ -proto.walletrpc.TicketBuyerConfigResponse.prototype.getDontWaitForTickets = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.walletrpc.TicketBuyerConfigResponse} returns this - */ -proto.walletrpc.TicketBuyerConfigResponse.prototype.setDontWaitForTickets = function(value) { - return jspb.Message.setProto3BooleanField(this, 6, value); -}; - - -/** - * optional int64 expiry_delta = 7; - * @return {number} - */ -proto.walletrpc.TicketBuyerConfigResponse.prototype.getExpiryDelta = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.walletrpc.TicketBuyerConfigResponse} returns this - */ -proto.walletrpc.TicketBuyerConfigResponse.prototype.setExpiryDelta = function(value) { - return jspb.Message.setProto3IntField(this, 7, value); -}; - - -/** - * optional string fee_source = 8; - * @return {string} - */ -proto.walletrpc.TicketBuyerConfigResponse.prototype.getFeeSource = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); -}; - - -/** - * @param {string} value - * @return {!proto.walletrpc.TicketBuyerConfigResponse} returns this - */ -proto.walletrpc.TicketBuyerConfigResponse.prototype.setFeeSource = function(value) { - return jspb.Message.setProto3StringField(this, 8, value); -}; - - -/** - * optional double fee_target_scaling = 9; - * @return {number} - */ -proto.walletrpc.TicketBuyerConfigResponse.prototype.getFeeTargetScaling = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 9, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.walletrpc.TicketBuyerConfigResponse} returns this - */ -proto.walletrpc.TicketBuyerConfigResponse.prototype.setFeeTargetScaling = function(value) { - return jspb.Message.setProto3FloatField(this, 9, value); -}; - - -/** - * optional int64 min_fee = 10; - * @return {number} - */ -proto.walletrpc.TicketBuyerConfigResponse.prototype.getMinFee = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.walletrpc.TicketBuyerConfigResponse} returns this - */ -proto.walletrpc.TicketBuyerConfigResponse.prototype.setMinFee = function(value) { - return jspb.Message.setProto3IntField(this, 10, value); -}; - - -/** - * optional int64 max_fee = 12; - * @return {number} - */ -proto.walletrpc.TicketBuyerConfigResponse.prototype.getMaxFee = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 12, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.walletrpc.TicketBuyerConfigResponse} returns this - */ -proto.walletrpc.TicketBuyerConfigResponse.prototype.setMaxFee = function(value) { - return jspb.Message.setProto3IntField(this, 12, value); -}; - - -/** - * optional int64 max_per_block = 13; - * @return {number} - */ -proto.walletrpc.TicketBuyerConfigResponse.prototype.getMaxPerBlock = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 13, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.walletrpc.TicketBuyerConfigResponse} returns this - */ -proto.walletrpc.TicketBuyerConfigResponse.prototype.setMaxPerBlock = function(value) { - return jspb.Message.setProto3IntField(this, 13, value); -}; - - -/** - * optional int64 max_price_absolute = 14; - * @return {number} - */ -proto.walletrpc.TicketBuyerConfigResponse.prototype.getMaxPriceAbsolute = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 14, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.walletrpc.TicketBuyerConfigResponse} returns this - */ -proto.walletrpc.TicketBuyerConfigResponse.prototype.setMaxPriceAbsolute = function(value) { - return jspb.Message.setProto3IntField(this, 14, value); -}; - - -/** - * optional double max_price_relative = 15; - * @return {number} - */ -proto.walletrpc.TicketBuyerConfigResponse.prototype.getMaxPriceRelative = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 15, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.walletrpc.TicketBuyerConfigResponse} returns this - */ -proto.walletrpc.TicketBuyerConfigResponse.prototype.setMaxPriceRelative = function(value) { - return jspb.Message.setProto3FloatField(this, 15, value); -}; - - -/** - * optional int64 max_in_mempool = 17; - * @return {number} - */ -proto.walletrpc.TicketBuyerConfigResponse.prototype.getMaxInMempool = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 17, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.walletrpc.TicketBuyerConfigResponse} returns this - */ -proto.walletrpc.TicketBuyerConfigResponse.prototype.setMaxInMempool = function(value) { - return jspb.Message.setProto3IntField(this, 17, value); -}; - - -/** - * optional string pool_address = 18; - * @return {string} - */ -proto.walletrpc.TicketBuyerConfigResponse.prototype.getPoolAddress = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 18, "")); -}; - - -/** - * @param {string} value - * @return {!proto.walletrpc.TicketBuyerConfigResponse} returns this - */ -proto.walletrpc.TicketBuyerConfigResponse.prototype.setPoolAddress = function(value) { - return jspb.Message.setProto3StringField(this, 18, value); -}; - - -/** - * optional double pool_fees = 19; - * @return {number} - */ -proto.walletrpc.TicketBuyerConfigResponse.prototype.getPoolFees = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 19, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.walletrpc.TicketBuyerConfigResponse} returns this - */ -proto.walletrpc.TicketBuyerConfigResponse.prototype.setPoolFees = function(value) { - return jspb.Message.setProto3FloatField(this, 19, value); -}; - - -/** - * optional bool spread_ticket_purchases = 20; - * @return {boolean} - */ -proto.walletrpc.TicketBuyerConfigResponse.prototype.getSpreadTicketPurchases = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 20, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.walletrpc.TicketBuyerConfigResponse} returns this - */ -proto.walletrpc.TicketBuyerConfigResponse.prototype.setSpreadTicketPurchases = function(value) { - return jspb.Message.setProto3BooleanField(this, 20, value); -}; - - -/** - * optional string voting_address = 21; - * @return {string} - */ -proto.walletrpc.TicketBuyerConfigResponse.prototype.getVotingAddress = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 21, "")); -}; - - -/** - * @param {string} value - * @return {!proto.walletrpc.TicketBuyerConfigResponse} returns this - */ -proto.walletrpc.TicketBuyerConfigResponse.prototype.setVotingAddress = function(value) { - return jspb.Message.setProto3StringField(this, 21, value); -}; - - -/** - * optional int64 tx_fee = 22; - * @return {number} - */ -proto.walletrpc.TicketBuyerConfigResponse.prototype.getTxFee = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 22, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.walletrpc.TicketBuyerConfigResponse} returns this - */ -proto.walletrpc.TicketBuyerConfigResponse.prototype.setTxFee = function(value) { - return jspb.Message.setProto3IntField(this, 22, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.walletrpc.SetAccountRequest.prototype.toObject = function(opt_includeInstance) { - return proto.walletrpc.SetAccountRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.walletrpc.SetAccountRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.walletrpc.SetAccountRequest.toObject = function(includeInstance, msg) { - var f, obj = { - account: jspb.Message.getFieldWithDefault(msg, 1, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.walletrpc.SetAccountRequest} - */ -proto.walletrpc.SetAccountRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.walletrpc.SetAccountRequest; - return proto.walletrpc.SetAccountRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.walletrpc.SetAccountRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.walletrpc.SetAccountRequest} - */ -proto.walletrpc.SetAccountRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setAccount(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.walletrpc.SetAccountRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.walletrpc.SetAccountRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.walletrpc.SetAccountRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.walletrpc.SetAccountRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getAccount(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } -}; - - -/** - * optional uint32 account = 1; - * @return {number} - */ -proto.walletrpc.SetAccountRequest.prototype.getAccount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.walletrpc.SetAccountRequest} returns this - */ -proto.walletrpc.SetAccountRequest.prototype.setAccount = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.walletrpc.SetAccountResponse.prototype.toObject = function(opt_includeInstance) { - return proto.walletrpc.SetAccountResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.walletrpc.SetAccountResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.walletrpc.SetAccountResponse.toObject = function(includeInstance, msg) { - var f, obj = { - - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.walletrpc.SetAccountResponse} - */ -proto.walletrpc.SetAccountResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.walletrpc.SetAccountResponse; - return proto.walletrpc.SetAccountResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.walletrpc.SetAccountResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.walletrpc.SetAccountResponse} - */ -proto.walletrpc.SetAccountResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.walletrpc.SetAccountResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.walletrpc.SetAccountResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.walletrpc.SetAccountResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.walletrpc.SetAccountResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.walletrpc.SetBalanceToMaintainRequest.prototype.toObject = function(opt_includeInstance) { - return proto.walletrpc.SetBalanceToMaintainRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.walletrpc.SetBalanceToMaintainRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.walletrpc.SetBalanceToMaintainRequest.toObject = function(includeInstance, msg) { - var f, obj = { - balanceToMaintain: jspb.Message.getFieldWithDefault(msg, 1, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.walletrpc.SetBalanceToMaintainRequest} - */ -proto.walletrpc.SetBalanceToMaintainRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.walletrpc.SetBalanceToMaintainRequest; - return proto.walletrpc.SetBalanceToMaintainRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.walletrpc.SetBalanceToMaintainRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.walletrpc.SetBalanceToMaintainRequest} - */ -proto.walletrpc.SetBalanceToMaintainRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt64()); - msg.setBalanceToMaintain(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.walletrpc.SetBalanceToMaintainRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.walletrpc.SetBalanceToMaintainRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.walletrpc.SetBalanceToMaintainRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.walletrpc.SetBalanceToMaintainRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getBalanceToMaintain(); - if (f !== 0) { - writer.writeInt64( - 1, - f - ); - } -}; - - -/** - * optional int64 balance_to_maintain = 1; - * @return {number} - */ -proto.walletrpc.SetBalanceToMaintainRequest.prototype.getBalanceToMaintain = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.walletrpc.SetBalanceToMaintainRequest} returns this - */ -proto.walletrpc.SetBalanceToMaintainRequest.prototype.setBalanceToMaintain = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.walletrpc.SetBalanceToMaintainResponse.prototype.toObject = function(opt_includeInstance) { - return proto.walletrpc.SetBalanceToMaintainResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.walletrpc.SetBalanceToMaintainResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.walletrpc.SetBalanceToMaintainResponse.toObject = function(includeInstance, msg) { - var f, obj = { - - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.walletrpc.SetBalanceToMaintainResponse} - */ -proto.walletrpc.SetBalanceToMaintainResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.walletrpc.SetBalanceToMaintainResponse; - return proto.walletrpc.SetBalanceToMaintainResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.walletrpc.SetBalanceToMaintainResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.walletrpc.SetBalanceToMaintainResponse} - */ -proto.walletrpc.SetBalanceToMaintainResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.walletrpc.SetBalanceToMaintainResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.walletrpc.SetBalanceToMaintainResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.walletrpc.SetBalanceToMaintainResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.walletrpc.SetBalanceToMaintainResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.walletrpc.SetMaxFeeRequest.prototype.toObject = function(opt_includeInstance) { - return proto.walletrpc.SetMaxFeeRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.walletrpc.SetMaxFeeRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.walletrpc.SetMaxFeeRequest.toObject = function(includeInstance, msg) { - var f, obj = { - maxFeePerKb: jspb.Message.getFieldWithDefault(msg, 1, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.walletrpc.SetMaxFeeRequest} - */ -proto.walletrpc.SetMaxFeeRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.walletrpc.SetMaxFeeRequest; - return proto.walletrpc.SetMaxFeeRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.walletrpc.SetMaxFeeRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.walletrpc.SetMaxFeeRequest} - */ -proto.walletrpc.SetMaxFeeRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt64()); - msg.setMaxFeePerKb(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.walletrpc.SetMaxFeeRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.walletrpc.SetMaxFeeRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.walletrpc.SetMaxFeeRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.walletrpc.SetMaxFeeRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMaxFeePerKb(); - if (f !== 0) { - writer.writeInt64( - 1, - f - ); - } -}; - - -/** - * optional int64 max_fee_per_kb = 1; - * @return {number} - */ -proto.walletrpc.SetMaxFeeRequest.prototype.getMaxFeePerKb = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.walletrpc.SetMaxFeeRequest} returns this - */ -proto.walletrpc.SetMaxFeeRequest.prototype.setMaxFeePerKb = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.walletrpc.SetMaxFeeResponse.prototype.toObject = function(opt_includeInstance) { - return proto.walletrpc.SetMaxFeeResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.walletrpc.SetMaxFeeResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.walletrpc.SetMaxFeeResponse.toObject = function(includeInstance, msg) { - var f, obj = { - - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.walletrpc.SetMaxFeeResponse} - */ -proto.walletrpc.SetMaxFeeResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.walletrpc.SetMaxFeeResponse; - return proto.walletrpc.SetMaxFeeResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.walletrpc.SetMaxFeeResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.walletrpc.SetMaxFeeResponse} - */ -proto.walletrpc.SetMaxFeeResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.walletrpc.SetMaxFeeResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.walletrpc.SetMaxFeeResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.walletrpc.SetMaxFeeResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.walletrpc.SetMaxFeeResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.walletrpc.SetMaxPriceRelativeRequest.prototype.toObject = function(opt_includeInstance) { - return proto.walletrpc.SetMaxPriceRelativeRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.walletrpc.SetMaxPriceRelativeRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.walletrpc.SetMaxPriceRelativeRequest.toObject = function(includeInstance, msg) { - var f, obj = { - maxPriceRelative: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.walletrpc.SetMaxPriceRelativeRequest} - */ -proto.walletrpc.SetMaxPriceRelativeRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.walletrpc.SetMaxPriceRelativeRequest; - return proto.walletrpc.SetMaxPriceRelativeRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.walletrpc.SetMaxPriceRelativeRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.walletrpc.SetMaxPriceRelativeRequest} - */ -proto.walletrpc.SetMaxPriceRelativeRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readDouble()); - msg.setMaxPriceRelative(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.walletrpc.SetMaxPriceRelativeRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.walletrpc.SetMaxPriceRelativeRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.walletrpc.SetMaxPriceRelativeRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.walletrpc.SetMaxPriceRelativeRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMaxPriceRelative(); - if (f !== 0.0) { - writer.writeDouble( - 1, - f - ); - } -}; - - -/** - * optional double max_price_relative = 1; - * @return {number} - */ -proto.walletrpc.SetMaxPriceRelativeRequest.prototype.getMaxPriceRelative = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.walletrpc.SetMaxPriceRelativeRequest} returns this - */ -proto.walletrpc.SetMaxPriceRelativeRequest.prototype.setMaxPriceRelative = function(value) { - return jspb.Message.setProto3FloatField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.walletrpc.SetMaxPriceRelativeResponse.prototype.toObject = function(opt_includeInstance) { - return proto.walletrpc.SetMaxPriceRelativeResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.walletrpc.SetMaxPriceRelativeResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.walletrpc.SetMaxPriceRelativeResponse.toObject = function(includeInstance, msg) { - var f, obj = { - - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.walletrpc.SetMaxPriceRelativeResponse} - */ -proto.walletrpc.SetMaxPriceRelativeResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.walletrpc.SetMaxPriceRelativeResponse; - return proto.walletrpc.SetMaxPriceRelativeResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.walletrpc.SetMaxPriceRelativeResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.walletrpc.SetMaxPriceRelativeResponse} - */ -proto.walletrpc.SetMaxPriceRelativeResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.walletrpc.SetMaxPriceRelativeResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.walletrpc.SetMaxPriceRelativeResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.walletrpc.SetMaxPriceRelativeResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.walletrpc.SetMaxPriceRelativeResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.walletrpc.SetMaxPriceAbsoluteRequest.prototype.toObject = function(opt_includeInstance) { - return proto.walletrpc.SetMaxPriceAbsoluteRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.walletrpc.SetMaxPriceAbsoluteRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.walletrpc.SetMaxPriceAbsoluteRequest.toObject = function(includeInstance, msg) { - var f, obj = { - maxPriceAbsolute: jspb.Message.getFieldWithDefault(msg, 1, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.walletrpc.SetMaxPriceAbsoluteRequest} - */ -proto.walletrpc.SetMaxPriceAbsoluteRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.walletrpc.SetMaxPriceAbsoluteRequest; - return proto.walletrpc.SetMaxPriceAbsoluteRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.walletrpc.SetMaxPriceAbsoluteRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.walletrpc.SetMaxPriceAbsoluteRequest} - */ -proto.walletrpc.SetMaxPriceAbsoluteRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt64()); - msg.setMaxPriceAbsolute(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.walletrpc.SetMaxPriceAbsoluteRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.walletrpc.SetMaxPriceAbsoluteRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.walletrpc.SetMaxPriceAbsoluteRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.walletrpc.SetMaxPriceAbsoluteRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMaxPriceAbsolute(); - if (f !== 0) { - writer.writeInt64( - 1, - f - ); - } -}; - - -/** - * optional int64 max_price_absolute = 1; - * @return {number} - */ -proto.walletrpc.SetMaxPriceAbsoluteRequest.prototype.getMaxPriceAbsolute = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.walletrpc.SetMaxPriceAbsoluteRequest} returns this - */ -proto.walletrpc.SetMaxPriceAbsoluteRequest.prototype.setMaxPriceAbsolute = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.walletrpc.SetMaxPriceAbsoluteResponse.prototype.toObject = function(opt_includeInstance) { - return proto.walletrpc.SetMaxPriceAbsoluteResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.walletrpc.SetMaxPriceAbsoluteResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.walletrpc.SetMaxPriceAbsoluteResponse.toObject = function(includeInstance, msg) { - var f, obj = { - - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.walletrpc.SetMaxPriceAbsoluteResponse} - */ -proto.walletrpc.SetMaxPriceAbsoluteResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.walletrpc.SetMaxPriceAbsoluteResponse; - return proto.walletrpc.SetMaxPriceAbsoluteResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.walletrpc.SetMaxPriceAbsoluteResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.walletrpc.SetMaxPriceAbsoluteResponse} - */ -proto.walletrpc.SetMaxPriceAbsoluteResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.walletrpc.SetMaxPriceAbsoluteResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.walletrpc.SetMaxPriceAbsoluteResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.walletrpc.SetMaxPriceAbsoluteResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.walletrpc.SetMaxPriceAbsoluteResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.walletrpc.SetVotingAddressRequest.prototype.toObject = function(opt_includeInstance) { - return proto.walletrpc.SetVotingAddressRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.walletrpc.SetVotingAddressRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.walletrpc.SetVotingAddressRequest.toObject = function(includeInstance, msg) { - var f, obj = { - votingAddress: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.walletrpc.SetVotingAddressRequest} - */ -proto.walletrpc.SetVotingAddressRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.walletrpc.SetVotingAddressRequest; - return proto.walletrpc.SetVotingAddressRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.walletrpc.SetVotingAddressRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.walletrpc.SetVotingAddressRequest} - */ -proto.walletrpc.SetVotingAddressRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setVotingAddress(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.walletrpc.SetVotingAddressRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.walletrpc.SetVotingAddressRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.walletrpc.SetVotingAddressRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.walletrpc.SetVotingAddressRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getVotingAddress(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string voting_address = 1; - * @return {string} - */ -proto.walletrpc.SetVotingAddressRequest.prototype.getVotingAddress = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.walletrpc.SetVotingAddressRequest} returns this - */ -proto.walletrpc.SetVotingAddressRequest.prototype.setVotingAddress = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.walletrpc.SetVotingAddressResponse.prototype.toObject = function(opt_includeInstance) { - return proto.walletrpc.SetVotingAddressResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.walletrpc.SetVotingAddressResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.walletrpc.SetVotingAddressResponse.toObject = function(includeInstance, msg) { - var f, obj = { - - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.walletrpc.SetVotingAddressResponse} - */ -proto.walletrpc.SetVotingAddressResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.walletrpc.SetVotingAddressResponse; - return proto.walletrpc.SetVotingAddressResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.walletrpc.SetVotingAddressResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.walletrpc.SetVotingAddressResponse} - */ -proto.walletrpc.SetVotingAddressResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.walletrpc.SetVotingAddressResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.walletrpc.SetVotingAddressResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.walletrpc.SetVotingAddressResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.walletrpc.SetVotingAddressResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.walletrpc.SetPoolAddressRequest.prototype.toObject = function(opt_includeInstance) { - return proto.walletrpc.SetPoolAddressRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.walletrpc.SetPoolAddressRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.walletrpc.SetPoolAddressRequest.toObject = function(includeInstance, msg) { - var f, obj = { - poolAddress: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.walletrpc.SetPoolAddressRequest} - */ -proto.walletrpc.SetPoolAddressRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.walletrpc.SetPoolAddressRequest; - return proto.walletrpc.SetPoolAddressRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.walletrpc.SetPoolAddressRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.walletrpc.SetPoolAddressRequest} - */ -proto.walletrpc.SetPoolAddressRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setPoolAddress(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.walletrpc.SetPoolAddressRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.walletrpc.SetPoolAddressRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.walletrpc.SetPoolAddressRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.walletrpc.SetPoolAddressRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPoolAddress(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string pool_address = 1; - * @return {string} - */ -proto.walletrpc.SetPoolAddressRequest.prototype.getPoolAddress = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.walletrpc.SetPoolAddressRequest} returns this - */ -proto.walletrpc.SetPoolAddressRequest.prototype.setPoolAddress = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.walletrpc.SetPoolAddressResponse.prototype.toObject = function(opt_includeInstance) { - return proto.walletrpc.SetPoolAddressResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.walletrpc.SetPoolAddressResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.walletrpc.SetPoolAddressResponse.toObject = function(includeInstance, msg) { - var f, obj = { - - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.walletrpc.SetPoolAddressResponse} - */ -proto.walletrpc.SetPoolAddressResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.walletrpc.SetPoolAddressResponse; - return proto.walletrpc.SetPoolAddressResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.walletrpc.SetPoolAddressResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.walletrpc.SetPoolAddressResponse} - */ -proto.walletrpc.SetPoolAddressResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.walletrpc.SetPoolAddressResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.walletrpc.SetPoolAddressResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.walletrpc.SetPoolAddressResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.walletrpc.SetPoolAddressResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.walletrpc.SetPoolFeesRequest.prototype.toObject = function(opt_includeInstance) { - return proto.walletrpc.SetPoolFeesRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.walletrpc.SetPoolFeesRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.walletrpc.SetPoolFeesRequest.toObject = function(includeInstance, msg) { - var f, obj = { - poolFees: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.walletrpc.SetPoolFeesRequest} - */ -proto.walletrpc.SetPoolFeesRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.walletrpc.SetPoolFeesRequest; - return proto.walletrpc.SetPoolFeesRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.walletrpc.SetPoolFeesRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.walletrpc.SetPoolFeesRequest} - */ -proto.walletrpc.SetPoolFeesRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readDouble()); - msg.setPoolFees(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.walletrpc.SetPoolFeesRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.walletrpc.SetPoolFeesRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.walletrpc.SetPoolFeesRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.walletrpc.SetPoolFeesRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPoolFees(); - if (f !== 0.0) { - writer.writeDouble( - 1, - f - ); - } -}; - - -/** - * optional double pool_fees = 1; - * @return {number} - */ -proto.walletrpc.SetPoolFeesRequest.prototype.getPoolFees = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.walletrpc.SetPoolFeesRequest} returns this - */ -proto.walletrpc.SetPoolFeesRequest.prototype.setPoolFees = function(value) { - return jspb.Message.setProto3FloatField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.walletrpc.SetPoolFeesResponse.prototype.toObject = function(opt_includeInstance) { - return proto.walletrpc.SetPoolFeesResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.walletrpc.SetPoolFeesResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.walletrpc.SetPoolFeesResponse.toObject = function(includeInstance, msg) { - var f, obj = { - - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.walletrpc.SetPoolFeesResponse} - */ -proto.walletrpc.SetPoolFeesResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.walletrpc.SetPoolFeesResponse; - return proto.walletrpc.SetPoolFeesResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.walletrpc.SetPoolFeesResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.walletrpc.SetPoolFeesResponse} - */ -proto.walletrpc.SetPoolFeesResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.walletrpc.SetPoolFeesResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.walletrpc.SetPoolFeesResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.walletrpc.SetPoolFeesResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.walletrpc.SetPoolFeesResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.walletrpc.SetMaxPerBlockRequest.prototype.toObject = function(opt_includeInstance) { - return proto.walletrpc.SetMaxPerBlockRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.walletrpc.SetMaxPerBlockRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.walletrpc.SetMaxPerBlockRequest.toObject = function(includeInstance, msg) { - var f, obj = { - maxPerBlock: jspb.Message.getFieldWithDefault(msg, 1, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.walletrpc.SetMaxPerBlockRequest} - */ -proto.walletrpc.SetMaxPerBlockRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.walletrpc.SetMaxPerBlockRequest; - return proto.walletrpc.SetMaxPerBlockRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.walletrpc.SetMaxPerBlockRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.walletrpc.SetMaxPerBlockRequest} - */ -proto.walletrpc.SetMaxPerBlockRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt64()); - msg.setMaxPerBlock(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.walletrpc.SetMaxPerBlockRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.walletrpc.SetMaxPerBlockRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.walletrpc.SetMaxPerBlockRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.walletrpc.SetMaxPerBlockRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMaxPerBlock(); - if (f !== 0) { - writer.writeInt64( - 1, - f - ); - } -}; - - -/** - * optional int64 max_per_block = 1; - * @return {number} - */ -proto.walletrpc.SetMaxPerBlockRequest.prototype.getMaxPerBlock = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.walletrpc.SetMaxPerBlockRequest} returns this - */ -proto.walletrpc.SetMaxPerBlockRequest.prototype.setMaxPerBlock = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.walletrpc.SetMaxPerBlockResponse.prototype.toObject = function(opt_includeInstance) { - return proto.walletrpc.SetMaxPerBlockResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.walletrpc.SetMaxPerBlockResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.walletrpc.SetMaxPerBlockResponse.toObject = function(includeInstance, msg) { - var f, obj = { - - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.walletrpc.SetMaxPerBlockResponse} - */ -proto.walletrpc.SetMaxPerBlockResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.walletrpc.SetMaxPerBlockResponse; - return proto.walletrpc.SetMaxPerBlockResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.walletrpc.SetMaxPerBlockResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.walletrpc.SetMaxPerBlockResponse} - */ -proto.walletrpc.SetMaxPerBlockResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.walletrpc.SetMaxPerBlockResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.walletrpc.SetMaxPerBlockResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.walletrpc.SetMaxPerBlockResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.walletrpc.SetMaxPerBlockResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; -}; - - - - - if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. diff --git a/app/wallet/service.js b/app/wallet/service.js index e607f07c15..c1b4f52173 100644 --- a/app/wallet/service.js +++ b/app/wallet/service.js @@ -41,7 +41,7 @@ const promisify = ); export const getWalletService = promisify(client.getWalletService); -export const getTicketBuyerService = promisify(client.getTicketBuyerV2Service); +export const getTicketBuyerService = promisify(client.getTicketBuyerService); export const getVotingService = promisify(client.getVotingService); export const getAgendaService = promisify(client.getAgendaService); export const getMessageVerificationService = promisify(