From f1f30f9c4186af51ff12555b508baa192fbe7824 Mon Sep 17 00:00:00 2001 From: woodser Date: Mon, 13 Sep 2021 12:32:43 -0400 Subject: [PATCH] switch api to use typescript auto-generated from protobuf using grpc-web haveno daemon can get payment accounts and the user's created offers --- README.md | 2 +- bin/build_protobuf.sh | 13 +- config/grpc.proto | 14 +- config/pb.proto | 6 +- src/HavenoDaemon.test.tsx | 41 +- src/HavenoDaemon.tsx | 216 +- src/grpc_grpc_web_pb.js | 3666 ---------- src/protobuf/GrpcServiceClientPb.ts | 1788 +++++ src/protobuf/grpc_pb.d.ts | 2053 ++++++ src/{ => protobuf}/grpc_pb.js | 112 +- src/protobuf/pb_pb.d.ts | 10004 ++++++++++++++++++++++++++ src/{ => protobuf}/pb_pb.js | 400 +- 12 files changed, 14215 insertions(+), 4100 deletions(-) delete mode 100644 src/grpc_grpc_web_pb.js create mode 100644 src/protobuf/GrpcServiceClientPb.ts create mode 100644 src/protobuf/grpc_pb.d.ts rename src/{ => protobuf}/grpc_pb.js (99%) create mode 100644 src/protobuf/pb_pb.d.ts rename src/{ => protobuf}/pb_pb.js (99%) diff --git a/README.md b/README.md index 28d42955..a6866ab3 100644 --- a/README.md +++ b/README.md @@ -22,4 +22,4 @@ This application is a basic [create-react-app](https://github.com/facebook/creat 1. Copy grpc.proto and pb.proto from Haveno's [protobuf definitions](https://github.com/haveno-dex/haveno/tree/master/proto/src/main/proto) to ./config. 2. Install protobuf for your system, e.g. on mac: `brew install protobuf` -2. `./bin/build_protobuf.sh` \ No newline at end of file +3. `./bin/build_protobuf.sh` \ No newline at end of file diff --git a/bin/build_protobuf.sh b/bin/build_protobuf.sh index a0d9b52d..f11af3d4 100755 --- a/bin/build_protobuf.sh +++ b/bin/build_protobuf.sh @@ -1,8 +1,13 @@ #!/bin/sh +// generate imports for haveno services and types using grpc-web cd ./config || exit 1 -protoc -I=./ *.proto --js_out=import_style=commonjs:./ --grpc-web_out=import_style=commonjs,mode=grpcwebtext:./ || exit 1 +protoc -I=./ *.proto --js_out=import_style=commonjs,binary:./ --grpc-web_out=import_style=typescript,mode=grpcwebtext:./ || exit 1 cd ../ -mv ./config/grpc_grpc_web_pb.js ./src || exit 1 -mv ./config/grpc_pb.js ./src || exit 1 -mv ./config/pb_pb.js ./src || exit 1 \ No newline at end of file + +// move imports to src folder +mv ./config/grpc_pb.d.ts ./src/protobuf || exit 1 +mv ./config/grpc_pb.js ./src/protobuf || exit 1 +mv ./config/pb_pb.d.ts ./src/protobuf || exit 1 +mv ./config/pb_pb.js ./src/protobuf || exit 1 +mv ./config/GrpcServiceClientPb.ts ./src/protobuf || exit 1 \ No newline at end of file diff --git a/config/grpc.proto b/config/grpc.proto index 4002f8a1..a975206e 100644 --- a/config/grpc.proto +++ b/config/grpc.proto @@ -116,10 +116,10 @@ message CreateOfferRequest { string price = 3; bool useMarketBasedPrice = 4; double marketPriceMargin = 5; - uint64 amount = 6; - uint64 minAmount = 7; + uint64 amount = 6 [jstype = JS_STRING]; + uint64 minAmount = 7 [jstype = JS_STRING]; double buyerSecurityDeposit = 8; - uint64 triggerPrice = 9; + uint64 triggerPrice = 9 [jstype = JS_STRING]; string paymentAccountId = 10; string makerFeeCurrencyCode = 11; } @@ -606,10 +606,10 @@ message BtcBalanceInfo { } message XmrBalanceInfo { - uint64 unlockedBalance = 1; - uint64 lockedBalance = 2; - uint64 reservedOfferBalance = 3; - uint64 reservedTradeBalance = 4; + uint64 unlockedBalance = 1 [jstype = JS_STRING]; + uint64 lockedBalance = 2 [jstype = JS_STRING]; + uint64 reservedOfferBalance = 3 [jstype = JS_STRING]; + uint64 reservedTradeBalance = 4 [jstype = JS_STRING]; } message AddressBalanceInfo { diff --git a/config/pb.proto b/config/pb.proto index 4475a5d3..be245fcf 100644 --- a/config/pb.proto +++ b/config/pb.proto @@ -2361,7 +2361,7 @@ message BlockChainExplorer { message PaymentAccount { string id = 1; - int64 creation_date = 2; + int64 creation_date = 2 [jstype = JS_STRING]; PaymentMethod payment_method = 3; string account_name = 4; repeated TradeCurrency trade_currencies = 5; @@ -2371,8 +2371,8 @@ message PaymentAccount { message PaymentMethod { string id = 1; - int64 max_trade_period = 2; - int64 max_trade_limit = 3; + int64 max_trade_period = 2 [jstype = JS_STRING]; + int64 max_trade_limit = 3 [jstype = JS_STRING]; } // Currency diff --git a/src/HavenoDaemon.test.tsx b/src/HavenoDaemon.test.tsx index 711c4650..b09bd42c 100644 --- a/src/HavenoDaemon.test.tsx +++ b/src/HavenoDaemon.test.tsx @@ -1,4 +1,6 @@ -import {HavenoDaemon, HavenoBalances, HavenoOffer} from "./HavenoDaemon"; +import {HavenoDaemon} from "./HavenoDaemon"; +import {XmrBalanceInfo, OfferInfo} from './protobuf/grpc_pb'; +import {PaymentAccount} from './protobuf/pb_pb'; const HAVENO_UI_VERSION = "1.6.2"; const HAVENO_DAEMON_URL = "http://localhost:8080"; @@ -12,21 +14,40 @@ test("Can get the version", async () => { }); test("Can get the user's balances", async () => { - let balances: HavenoBalances = await daemon.getBalances(); - expect(balances.unlockedBalance); - expect(balances.lockedBalance); - expect(balances.reservedOfferBalance); - expect(balances.reservedTradeBalance); + let balances: XmrBalanceInfo = await daemon.getBalances(); + expect(balances.getUnlockedbalance()); // TODO: correct camelcase in grpc + expect(balances.getLockedbalance()); + expect(balances.getReservedofferbalance()); + expect(balances.getReservedtradebalance()); }); -test("Can get offers", async() => { - let offers: HavenoOffer[] = await daemon.getOffers("SELL", "XMR"); +test("Can get offers", async () => { + let offers: OfferInfo[] = await daemon.getOffers("BUY"); for (let offer of offers) { testOffer(offer); } }); -function testOffer(offer: HavenoOffer) { - expect(offer.id).toHaveLength; +test("Can get the user's created offers", async () => { + let offers: OfferInfo[] = await daemon.getMyOffers("SELL"); + for (let offer of offers) { + testOffer(offer); + } +}); + +test("Can get payment accounts", async () => { + let paymentAccounts: PaymentAccount[] = await daemon.getPaymentAccounts(); + for (let paymentAccount of paymentAccounts) { + testPaymentAccount(paymentAccount); + } +}); + +function testPaymentAccount(paymentAccount: PaymentAccount) { + expect(paymentAccount.getId()).toHaveLength; + // TODO: test rest of offer +} + +function testOffer(offer: OfferInfo) { + expect(offer.getId()).toHaveLength; // TODO: test rest of offer } \ No newline at end of file diff --git a/src/HavenoDaemon.tsx b/src/HavenoDaemon.tsx index 3d9603d3..59fb13e5 100644 --- a/src/HavenoDaemon.tsx +++ b/src/HavenoDaemon.tsx @@ -1,10 +1,7 @@ -/** - * These imports are generated by protoc-gen-grpc-web (created with `sudo make install-plugin` in grpc-web) using the following command: - * - * `protoc -I=./ *.proto --js_out=import_style=commonjs:./ --grpc-web_out=import_style=commonjs,mode=grpcwebtext:./` - */ -const {GetVersionRequest, WalletsClient, OffersClient} = require('./grpc_grpc_web_pb.js'); -const {GetVersionClient, GetBalancesRequest, GetOffersRequest} = require('./grpc_pb.js'); +import * as grpcWeb from 'grpc-web'; +import {GetVersionClient, WalletsClient, OffersClient, PaymentAccountsClient} from './protobuf/GrpcServiceClientPb'; +import {GetVersionRequest, GetVersionReply, GetBalancesRequest, GetBalancesReply, XmrBalanceInfo, GetOffersRequest, GetOffersReply, OfferInfo, GetPaymentAccountsRequest, GetPaymentAccountsReply} from './protobuf/grpc_pb'; +import {PaymentAccount} from './protobuf/pb_pb'; /** * Haveno daemon client using gRPC. @@ -13,10 +10,11 @@ class HavenoDaemon { // instance variables _url: string; - _password?: string; - _getVersionClient: any; - _walletsClient?: any; - _offersClient?: any; + _password: string; + _getVersionClient: GetVersionClient; + _walletsClient: WalletsClient; + _offersClient: OffersClient; + _paymentAccountsClient: PaymentAccountsClient; /** * Construct a client connected to a Haveno daemon. @@ -24,9 +22,13 @@ class HavenoDaemon { * @param {string} url - Haveno daemon url * @param {string} password - Haveno daemon password if applicable */ - constructor(url: string, password?: string) { + constructor(url: string, password: string) { this._url = url; this._password = password; + this._getVersionClient = new GetVersionClient(this._url); + this._walletsClient = new WalletsClient(this._url); + this._offersClient = new OffersClient(this._url); + this._paymentAccountsClient = new PaymentAccountsClient(this._url); } /** @@ -35,11 +37,10 @@ class HavenoDaemon { * @return {string} the Haveno daemon version */ async getVersion(): Promise { - if (!this._getVersionClient) this._getVersionClient = new GetVersionClient(this._url); - let request = new GetVersionRequest(); let that = this; + let request = new GetVersionRequest(); return new Promise(function(resolve, reject) { - that._getVersionClient.getVersion(request, {password: that._password}, function(err: any, response: any) { + that._getVersionClient.getVersion(request, {password: that._password}, function(err: grpcWeb.Error, response: GetVersionReply) { if (err) reject(err); else resolve(response.getVersion()); }); @@ -49,164 +50,73 @@ class HavenoDaemon { /** * Get the user's balances. * - * @return {HavenoBalances} the user's balances + * @return {XmrBalanceInfo} the user's balances */ - async getBalances(): Promise { - if (!this._walletsClient) this._walletsClient = new WalletsClient(this._url); - let request = new GetBalancesRequest(); + async getBalances(): Promise { let that = this; + let request = new GetBalancesRequest(); return new Promise(function(resolve, reject) { - that._walletsClient.getBalances(request, {password: that._password}, function(err: any, response: any) { + that._walletsClient.getBalances(request, {password: that._password}, function(err: grpcWeb.Error, response: GetBalancesReply) { if (err) reject(err); - else resolve(new HavenoBalances( - BigInt(response.getBalances().getXmr().getUnlockedbalance()), - BigInt(response.getBalances().getXmr().getLockedbalance()), - BigInt(response.getBalances().getXmr().getReservedofferbalance()), - BigInt(response.getBalances().getXmr().getReservedtradebalance()))); + else resolve(response.getBalances()?.getXmr()); }); }); } /** - * Get available offers. + * Get available offers to buy or sell XMR. * * @param {string} direction - one of "BUY" or "SELL" - * @param {string} currencyCode - the currency being bought or sold, e.g. "ETH" * - * @return {HavenoOffer[]} available offers + * @return {OfferInfo[]} available offers */ - async getOffers(direction: string, currencyCode: string): Promise { - if (!this._offersClient) this._offersClient = new OffersClient(this._url); + async getOffers(direction: string): Promise { let request = new GetOffersRequest() .setDirection(direction) - .setCurrencycode(currencyCode); + .setCurrencycode("XMR"); let that = this; return new Promise(function(resolve, reject) { - that._offersClient.getOffers(request, {password: that._password}, function(err: any, response: any) { + that._offersClient.getOffers(request, {password: that._password}, function(err: grpcWeb.Error, response: GetOffersReply) { if (err) reject(err); - else { - let offers: HavenoOffer[] = []; - for (let offer of response.getOffersList()) { - offers.push(new HavenoOffer( - offer.getId(), - offer.getDirection(), - offer.getPrice(), - offer.getUsemarketbasedprice(), - offer.getMarketpricemargin(), - offer.getAmount(), - offer.getMinamount(), - offer.getVolume(), - offer.getMinvolume(), - offer.getBuyersecuritydeposit(), - offer.getTriggerprice(), - offer.getIscurrencyformakerfeebtc(), - offer.getPaymentaccountid(), - offer.getPaymentmethodid(), - offer.getPaymentmethodshortname(), - offer.getBasecurrencycode(), - offer.getCountercurrencycode(), - offer.getDate(), - offer.getState(), - offer.getSellersecuritydeposit(), - offer.getOfferfeepaymenttxid(), - offer.getTxfee(), - offer.getMakerfee() - )); - } - resolve(offers); - } + else resolve(response.getOffersList()); + }); + }); + } + + /** + * Get user's created offers to buy or sell XMR. + * + * @param {string} direction - one of "BUY" or "SELL" + * + * @return {OfferInfo[]} the user's created offers + */ + async getMyOffers(direction: string): Promise { + let that = this; + let request = new GetOffersRequest() + .setDirection(direction) + .setCurrencycode("XMR"); + return new Promise(function(resolve, reject) { + that._offersClient.getMyOffers(request, {password: that._password}, function(err: grpcWeb.Error, response: GetOffersReply) { + if (err) reject(err); + else resolve(response.getOffersList()); + }); + }); + } + + /** + * Get payment accounts. + * + * @return {PaymentAccount[]} the payment accounts + */ + async getPaymentAccounts(): Promise { + let that = this; + return new Promise(function(resolve, reject) { + that._paymentAccountsClient.getPaymentAccounts(new GetPaymentAccountsRequest(), {password: that._password}, function(err: grpcWeb.Error, response: GetPaymentAccountsReply) { + if (err) reject(err); + else resolve(response.getPaymentaccountsList()); }); }); } } -class HavenoBalances { - unlockedBalance: bigint; - lockedBalance: bigint; - reservedOfferBalance: bigint; - reservedTradeBalance: bigint; - constructor(unlockedBalance: bigint, - lockedBalance: bigint, - reservedOfferBalance: bigint, - reservedTradeBalance: bigint) { - this.unlockedBalance = unlockedBalance; - this.lockedBalance = lockedBalance; - this.reservedOfferBalance = reservedOfferBalance; - this.reservedTradeBalance = reservedTradeBalance; - } -} - -class HavenoOffer { - id: string; - direction: string; - price: bigint; - useMarketBasedPrice: boolean; - marketPriceMargin: number; - amount: bigint; - minAmount: bigint; - volume: bigint; - minVolume: bigint; - buyerSecurityDeposit: bigint; - triggerPrice: bigint; - isCurrencyForMakerFeeBtc: boolean; - paymentAccountId: string; - paymentMethodId: string; - paymentMethodShortName: string; - baseCurrencyCode: string; - counterCurrencyCode: string; - date: bigint; - state: string; - sellerSecurityDeposit: bigint; - offerFeePaymentTxId: string; - txFee: bigint; - makerFee: bigint; - constructor(id: string, - direction: string, - price: bigint, - useMarketBasedPrice: boolean, - marketPriceMargin: number, - amount: bigint, - minAmount: bigint, - volume: bigint, - minVolume: bigint, - buyerSecurityDeposit: bigint, - triggerPrice: bigint, - isCurrencyForMakerFeeBtc: boolean, - paymentAccountId: string, - paymentMethodId: string, - paymentMethodShortName: string, - baseCurrencyCode: string, - counterCurrencyCode: string, - date: bigint, - state: string, - sellerSecurityDeposit: bigint, - offerFeePaymentTxId: string, - txFee: bigint, - makerFee: bigint,) { - this.id = id; - this.direction = direction; - this.price = price; - this.useMarketBasedPrice = useMarketBasedPrice; - this.marketPriceMargin = marketPriceMargin; - this.amount = amount; - this.minAmount = minAmount; - this.volume = volume; - this.minVolume = minVolume; - this.buyerSecurityDeposit = buyerSecurityDeposit; - this.triggerPrice = triggerPrice; - this.isCurrencyForMakerFeeBtc = isCurrencyForMakerFeeBtc; - this.paymentAccountId = paymentAccountId; - this.paymentMethodId = paymentMethodId; - this.paymentMethodShortName = paymentMethodShortName; - this.baseCurrencyCode = baseCurrencyCode; - this.counterCurrencyCode = counterCurrencyCode; - this.date = date; - this.state = state; - this.sellerSecurityDeposit = sellerSecurityDeposit; - this.offerFeePaymentTxId = offerFeePaymentTxId; - this.txFee = txFee; - this.makerFee = makerFee; - } -} - -export {HavenoDaemon, HavenoBalances, HavenoOffer}; \ No newline at end of file +export {HavenoDaemon}; \ No newline at end of file diff --git a/src/grpc_grpc_web_pb.js b/src/grpc_grpc_web_pb.js deleted file mode 100644 index 222cc457..00000000 --- a/src/grpc_grpc_web_pb.js +++ /dev/null @@ -1,3666 +0,0 @@ -/** - * @fileoverview gRPC-Web generated client stub for io.bisq.protobuffer - * @enhanceable - * @public - */ - -// GENERATED CODE -- DO NOT EDIT! - - -/* eslint-disable */ -// @ts-nocheck - - - -const grpc = {}; -grpc.web = require('grpc-web'); - - -var pb_pb = require('./pb_pb.js') -const proto = {}; -proto.io = {}; -proto.io.bisq = {}; -proto.io.bisq.protobuffer = require('./grpc_pb.js'); - -/** - * @param {string} hostname - * @param {?Object} credentials - * @param {?Object} options - * @constructor - * @struct - * @final - */ -proto.io.bisq.protobuffer.DisputeAgentsClient = - function(hostname, credentials, options) { - if (!options) options = {}; - options['format'] = 'text'; - - /** - * @private @const {!grpc.web.GrpcWebClientBase} The client - */ - this.client_ = new grpc.web.GrpcWebClientBase(options); - - /** - * @private @const {string} The hostname - */ - this.hostname_ = hostname; - -}; - - -/** - * @param {string} hostname - * @param {?Object} credentials - * @param {?Object} options - * @constructor - * @struct - * @final - */ -proto.io.bisq.protobuffer.DisputeAgentsPromiseClient = - function(hostname, credentials, options) { - if (!options) options = {}; - options['format'] = 'text'; - - /** - * @private @const {!grpc.web.GrpcWebClientBase} The client - */ - this.client_ = new grpc.web.GrpcWebClientBase(options); - - /** - * @private @const {string} The hostname - */ - this.hostname_ = hostname; - -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.io.bisq.protobuffer.RegisterDisputeAgentRequest, - * !proto.io.bisq.protobuffer.RegisterDisputeAgentReply>} - */ -const methodDescriptor_DisputeAgents_RegisterDisputeAgent = new grpc.web.MethodDescriptor( - '/io.bisq.protobuffer.DisputeAgents/RegisterDisputeAgent', - grpc.web.MethodType.UNARY, - proto.io.bisq.protobuffer.RegisterDisputeAgentRequest, - proto.io.bisq.protobuffer.RegisterDisputeAgentReply, - /** - * @param {!proto.io.bisq.protobuffer.RegisterDisputeAgentRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.io.bisq.protobuffer.RegisterDisputeAgentReply.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.io.bisq.protobuffer.RegisterDisputeAgentRequest, - * !proto.io.bisq.protobuffer.RegisterDisputeAgentReply>} - */ -const methodInfo_DisputeAgents_RegisterDisputeAgent = new grpc.web.AbstractClientBase.MethodInfo( - proto.io.bisq.protobuffer.RegisterDisputeAgentReply, - /** - * @param {!proto.io.bisq.protobuffer.RegisterDisputeAgentRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.io.bisq.protobuffer.RegisterDisputeAgentReply.deserializeBinary -); - - -/** - * @param {!proto.io.bisq.protobuffer.RegisterDisputeAgentRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.io.bisq.protobuffer.RegisterDisputeAgentReply)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.io.bisq.protobuffer.DisputeAgentsClient.prototype.registerDisputeAgent = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/io.bisq.protobuffer.DisputeAgents/RegisterDisputeAgent', - request, - metadata || {}, - methodDescriptor_DisputeAgents_RegisterDisputeAgent, - callback); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.RegisterDisputeAgentRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.io.bisq.protobuffer.DisputeAgentsPromiseClient.prototype.registerDisputeAgent = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/io.bisq.protobuffer.DisputeAgents/RegisterDisputeAgent', - request, - metadata || {}, - methodDescriptor_DisputeAgents_RegisterDisputeAgent); -}; - - -/** - * @param {string} hostname - * @param {?Object} credentials - * @param {?Object} options - * @constructor - * @struct - * @final - */ -proto.io.bisq.protobuffer.HelpClient = - function(hostname, credentials, options) { - if (!options) options = {}; - options['format'] = 'text'; - - /** - * @private @const {!grpc.web.GrpcWebClientBase} The client - */ - this.client_ = new grpc.web.GrpcWebClientBase(options); - - /** - * @private @const {string} The hostname - */ - this.hostname_ = hostname; - -}; - - -/** - * @param {string} hostname - * @param {?Object} credentials - * @param {?Object} options - * @constructor - * @struct - * @final - */ -proto.io.bisq.protobuffer.HelpPromiseClient = - function(hostname, credentials, options) { - if (!options) options = {}; - options['format'] = 'text'; - - /** - * @private @const {!grpc.web.GrpcWebClientBase} The client - */ - this.client_ = new grpc.web.GrpcWebClientBase(options); - - /** - * @private @const {string} The hostname - */ - this.hostname_ = hostname; - -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.io.bisq.protobuffer.GetMethodHelpRequest, - * !proto.io.bisq.protobuffer.GetMethodHelpReply>} - */ -const methodDescriptor_Help_GetMethodHelp = new grpc.web.MethodDescriptor( - '/io.bisq.protobuffer.Help/GetMethodHelp', - grpc.web.MethodType.UNARY, - proto.io.bisq.protobuffer.GetMethodHelpRequest, - proto.io.bisq.protobuffer.GetMethodHelpReply, - /** - * @param {!proto.io.bisq.protobuffer.GetMethodHelpRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.io.bisq.protobuffer.GetMethodHelpReply.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.io.bisq.protobuffer.GetMethodHelpRequest, - * !proto.io.bisq.protobuffer.GetMethodHelpReply>} - */ -const methodInfo_Help_GetMethodHelp = new grpc.web.AbstractClientBase.MethodInfo( - proto.io.bisq.protobuffer.GetMethodHelpReply, - /** - * @param {!proto.io.bisq.protobuffer.GetMethodHelpRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.io.bisq.protobuffer.GetMethodHelpReply.deserializeBinary -); - - -/** - * @param {!proto.io.bisq.protobuffer.GetMethodHelpRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.io.bisq.protobuffer.GetMethodHelpReply)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.io.bisq.protobuffer.HelpClient.prototype.getMethodHelp = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/io.bisq.protobuffer.Help/GetMethodHelp', - request, - metadata || {}, - methodDescriptor_Help_GetMethodHelp, - callback); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.GetMethodHelpRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.io.bisq.protobuffer.HelpPromiseClient.prototype.getMethodHelp = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/io.bisq.protobuffer.Help/GetMethodHelp', - request, - metadata || {}, - methodDescriptor_Help_GetMethodHelp); -}; - - -/** - * @param {string} hostname - * @param {?Object} credentials - * @param {?Object} options - * @constructor - * @struct - * @final - */ -proto.io.bisq.protobuffer.OffersClient = - function(hostname, credentials, options) { - if (!options) options = {}; - options['format'] = 'text'; - - /** - * @private @const {!grpc.web.GrpcWebClientBase} The client - */ - this.client_ = new grpc.web.GrpcWebClientBase(options); - - /** - * @private @const {string} The hostname - */ - this.hostname_ = hostname; - -}; - - -/** - * @param {string} hostname - * @param {?Object} credentials - * @param {?Object} options - * @constructor - * @struct - * @final - */ -proto.io.bisq.protobuffer.OffersPromiseClient = - function(hostname, credentials, options) { - if (!options) options = {}; - options['format'] = 'text'; - - /** - * @private @const {!grpc.web.GrpcWebClientBase} The client - */ - this.client_ = new grpc.web.GrpcWebClientBase(options); - - /** - * @private @const {string} The hostname - */ - this.hostname_ = hostname; - -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.io.bisq.protobuffer.GetOfferRequest, - * !proto.io.bisq.protobuffer.GetOfferReply>} - */ -const methodDescriptor_Offers_GetOffer = new grpc.web.MethodDescriptor( - '/io.bisq.protobuffer.Offers/GetOffer', - grpc.web.MethodType.UNARY, - proto.io.bisq.protobuffer.GetOfferRequest, - proto.io.bisq.protobuffer.GetOfferReply, - /** - * @param {!proto.io.bisq.protobuffer.GetOfferRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.io.bisq.protobuffer.GetOfferReply.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.io.bisq.protobuffer.GetOfferRequest, - * !proto.io.bisq.protobuffer.GetOfferReply>} - */ -const methodInfo_Offers_GetOffer = new grpc.web.AbstractClientBase.MethodInfo( - proto.io.bisq.protobuffer.GetOfferReply, - /** - * @param {!proto.io.bisq.protobuffer.GetOfferRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.io.bisq.protobuffer.GetOfferReply.deserializeBinary -); - - -/** - * @param {!proto.io.bisq.protobuffer.GetOfferRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.io.bisq.protobuffer.GetOfferReply)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.io.bisq.protobuffer.OffersClient.prototype.getOffer = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/io.bisq.protobuffer.Offers/GetOffer', - request, - metadata || {}, - methodDescriptor_Offers_GetOffer, - callback); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.GetOfferRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.io.bisq.protobuffer.OffersPromiseClient.prototype.getOffer = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/io.bisq.protobuffer.Offers/GetOffer', - request, - metadata || {}, - methodDescriptor_Offers_GetOffer); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.io.bisq.protobuffer.GetMyOfferRequest, - * !proto.io.bisq.protobuffer.GetMyOfferReply>} - */ -const methodDescriptor_Offers_GetMyOffer = new grpc.web.MethodDescriptor( - '/io.bisq.protobuffer.Offers/GetMyOffer', - grpc.web.MethodType.UNARY, - proto.io.bisq.protobuffer.GetMyOfferRequest, - proto.io.bisq.protobuffer.GetMyOfferReply, - /** - * @param {!proto.io.bisq.protobuffer.GetMyOfferRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.io.bisq.protobuffer.GetMyOfferReply.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.io.bisq.protobuffer.GetMyOfferRequest, - * !proto.io.bisq.protobuffer.GetMyOfferReply>} - */ -const methodInfo_Offers_GetMyOffer = new grpc.web.AbstractClientBase.MethodInfo( - proto.io.bisq.protobuffer.GetMyOfferReply, - /** - * @param {!proto.io.bisq.protobuffer.GetMyOfferRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.io.bisq.protobuffer.GetMyOfferReply.deserializeBinary -); - - -/** - * @param {!proto.io.bisq.protobuffer.GetMyOfferRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.io.bisq.protobuffer.GetMyOfferReply)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.io.bisq.protobuffer.OffersClient.prototype.getMyOffer = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/io.bisq.protobuffer.Offers/GetMyOffer', - request, - metadata || {}, - methodDescriptor_Offers_GetMyOffer, - callback); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.GetMyOfferRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.io.bisq.protobuffer.OffersPromiseClient.prototype.getMyOffer = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/io.bisq.protobuffer.Offers/GetMyOffer', - request, - metadata || {}, - methodDescriptor_Offers_GetMyOffer); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.io.bisq.protobuffer.GetOffersRequest, - * !proto.io.bisq.protobuffer.GetOffersReply>} - */ -const methodDescriptor_Offers_GetOffers = new grpc.web.MethodDescriptor( - '/io.bisq.protobuffer.Offers/GetOffers', - grpc.web.MethodType.UNARY, - proto.io.bisq.protobuffer.GetOffersRequest, - proto.io.bisq.protobuffer.GetOffersReply, - /** - * @param {!proto.io.bisq.protobuffer.GetOffersRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.io.bisq.protobuffer.GetOffersReply.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.io.bisq.protobuffer.GetOffersRequest, - * !proto.io.bisq.protobuffer.GetOffersReply>} - */ -const methodInfo_Offers_GetOffers = new grpc.web.AbstractClientBase.MethodInfo( - proto.io.bisq.protobuffer.GetOffersReply, - /** - * @param {!proto.io.bisq.protobuffer.GetOffersRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.io.bisq.protobuffer.GetOffersReply.deserializeBinary -); - - -/** - * @param {!proto.io.bisq.protobuffer.GetOffersRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.io.bisq.protobuffer.GetOffersReply)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.io.bisq.protobuffer.OffersClient.prototype.getOffers = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/io.bisq.protobuffer.Offers/GetOffers', - request, - metadata || {}, - methodDescriptor_Offers_GetOffers, - callback); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.GetOffersRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.io.bisq.protobuffer.OffersPromiseClient.prototype.getOffers = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/io.bisq.protobuffer.Offers/GetOffers', - request, - metadata || {}, - methodDescriptor_Offers_GetOffers); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.io.bisq.protobuffer.GetMyOffersRequest, - * !proto.io.bisq.protobuffer.GetMyOffersReply>} - */ -const methodDescriptor_Offers_GetMyOffers = new grpc.web.MethodDescriptor( - '/io.bisq.protobuffer.Offers/GetMyOffers', - grpc.web.MethodType.UNARY, - proto.io.bisq.protobuffer.GetMyOffersRequest, - proto.io.bisq.protobuffer.GetMyOffersReply, - /** - * @param {!proto.io.bisq.protobuffer.GetMyOffersRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.io.bisq.protobuffer.GetMyOffersReply.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.io.bisq.protobuffer.GetMyOffersRequest, - * !proto.io.bisq.protobuffer.GetMyOffersReply>} - */ -const methodInfo_Offers_GetMyOffers = new grpc.web.AbstractClientBase.MethodInfo( - proto.io.bisq.protobuffer.GetMyOffersReply, - /** - * @param {!proto.io.bisq.protobuffer.GetMyOffersRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.io.bisq.protobuffer.GetMyOffersReply.deserializeBinary -); - - -/** - * @param {!proto.io.bisq.protobuffer.GetMyOffersRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.io.bisq.protobuffer.GetMyOffersReply)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.io.bisq.protobuffer.OffersClient.prototype.getMyOffers = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/io.bisq.protobuffer.Offers/GetMyOffers', - request, - metadata || {}, - methodDescriptor_Offers_GetMyOffers, - callback); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.GetMyOffersRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.io.bisq.protobuffer.OffersPromiseClient.prototype.getMyOffers = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/io.bisq.protobuffer.Offers/GetMyOffers', - request, - metadata || {}, - methodDescriptor_Offers_GetMyOffers); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.io.bisq.protobuffer.CreateOfferRequest, - * !proto.io.bisq.protobuffer.CreateOfferReply>} - */ -const methodDescriptor_Offers_CreateOffer = new grpc.web.MethodDescriptor( - '/io.bisq.protobuffer.Offers/CreateOffer', - grpc.web.MethodType.UNARY, - proto.io.bisq.protobuffer.CreateOfferRequest, - proto.io.bisq.protobuffer.CreateOfferReply, - /** - * @param {!proto.io.bisq.protobuffer.CreateOfferRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.io.bisq.protobuffer.CreateOfferReply.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.io.bisq.protobuffer.CreateOfferRequest, - * !proto.io.bisq.protobuffer.CreateOfferReply>} - */ -const methodInfo_Offers_CreateOffer = new grpc.web.AbstractClientBase.MethodInfo( - proto.io.bisq.protobuffer.CreateOfferReply, - /** - * @param {!proto.io.bisq.protobuffer.CreateOfferRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.io.bisq.protobuffer.CreateOfferReply.deserializeBinary -); - - -/** - * @param {!proto.io.bisq.protobuffer.CreateOfferRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.io.bisq.protobuffer.CreateOfferReply)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.io.bisq.protobuffer.OffersClient.prototype.createOffer = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/io.bisq.protobuffer.Offers/CreateOffer', - request, - metadata || {}, - methodDescriptor_Offers_CreateOffer, - callback); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.CreateOfferRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.io.bisq.protobuffer.OffersPromiseClient.prototype.createOffer = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/io.bisq.protobuffer.Offers/CreateOffer', - request, - metadata || {}, - methodDescriptor_Offers_CreateOffer); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.io.bisq.protobuffer.CancelOfferRequest, - * !proto.io.bisq.protobuffer.CancelOfferReply>} - */ -const methodDescriptor_Offers_CancelOffer = new grpc.web.MethodDescriptor( - '/io.bisq.protobuffer.Offers/CancelOffer', - grpc.web.MethodType.UNARY, - proto.io.bisq.protobuffer.CancelOfferRequest, - proto.io.bisq.protobuffer.CancelOfferReply, - /** - * @param {!proto.io.bisq.protobuffer.CancelOfferRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.io.bisq.protobuffer.CancelOfferReply.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.io.bisq.protobuffer.CancelOfferRequest, - * !proto.io.bisq.protobuffer.CancelOfferReply>} - */ -const methodInfo_Offers_CancelOffer = new grpc.web.AbstractClientBase.MethodInfo( - proto.io.bisq.protobuffer.CancelOfferReply, - /** - * @param {!proto.io.bisq.protobuffer.CancelOfferRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.io.bisq.protobuffer.CancelOfferReply.deserializeBinary -); - - -/** - * @param {!proto.io.bisq.protobuffer.CancelOfferRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.io.bisq.protobuffer.CancelOfferReply)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.io.bisq.protobuffer.OffersClient.prototype.cancelOffer = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/io.bisq.protobuffer.Offers/CancelOffer', - request, - metadata || {}, - methodDescriptor_Offers_CancelOffer, - callback); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.CancelOfferRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.io.bisq.protobuffer.OffersPromiseClient.prototype.cancelOffer = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/io.bisq.protobuffer.Offers/CancelOffer', - request, - metadata || {}, - methodDescriptor_Offers_CancelOffer); -}; - - -/** - * @param {string} hostname - * @param {?Object} credentials - * @param {?Object} options - * @constructor - * @struct - * @final - */ -proto.io.bisq.protobuffer.PaymentAccountsClient = - function(hostname, credentials, options) { - if (!options) options = {}; - options['format'] = 'text'; - - /** - * @private @const {!grpc.web.GrpcWebClientBase} The client - */ - this.client_ = new grpc.web.GrpcWebClientBase(options); - - /** - * @private @const {string} The hostname - */ - this.hostname_ = hostname; - -}; - - -/** - * @param {string} hostname - * @param {?Object} credentials - * @param {?Object} options - * @constructor - * @struct - * @final - */ -proto.io.bisq.protobuffer.PaymentAccountsPromiseClient = - function(hostname, credentials, options) { - if (!options) options = {}; - options['format'] = 'text'; - - /** - * @private @const {!grpc.web.GrpcWebClientBase} The client - */ - this.client_ = new grpc.web.GrpcWebClientBase(options); - - /** - * @private @const {string} The hostname - */ - this.hostname_ = hostname; - -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.io.bisq.protobuffer.CreatePaymentAccountRequest, - * !proto.io.bisq.protobuffer.CreatePaymentAccountReply>} - */ -const methodDescriptor_PaymentAccounts_CreatePaymentAccount = new grpc.web.MethodDescriptor( - '/io.bisq.protobuffer.PaymentAccounts/CreatePaymentAccount', - grpc.web.MethodType.UNARY, - proto.io.bisq.protobuffer.CreatePaymentAccountRequest, - proto.io.bisq.protobuffer.CreatePaymentAccountReply, - /** - * @param {!proto.io.bisq.protobuffer.CreatePaymentAccountRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.io.bisq.protobuffer.CreatePaymentAccountReply.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.io.bisq.protobuffer.CreatePaymentAccountRequest, - * !proto.io.bisq.protobuffer.CreatePaymentAccountReply>} - */ -const methodInfo_PaymentAccounts_CreatePaymentAccount = new grpc.web.AbstractClientBase.MethodInfo( - proto.io.bisq.protobuffer.CreatePaymentAccountReply, - /** - * @param {!proto.io.bisq.protobuffer.CreatePaymentAccountRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.io.bisq.protobuffer.CreatePaymentAccountReply.deserializeBinary -); - - -/** - * @param {!proto.io.bisq.protobuffer.CreatePaymentAccountRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.io.bisq.protobuffer.CreatePaymentAccountReply)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.io.bisq.protobuffer.PaymentAccountsClient.prototype.createPaymentAccount = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/io.bisq.protobuffer.PaymentAccounts/CreatePaymentAccount', - request, - metadata || {}, - methodDescriptor_PaymentAccounts_CreatePaymentAccount, - callback); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.CreatePaymentAccountRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.io.bisq.protobuffer.PaymentAccountsPromiseClient.prototype.createPaymentAccount = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/io.bisq.protobuffer.PaymentAccounts/CreatePaymentAccount', - request, - metadata || {}, - methodDescriptor_PaymentAccounts_CreatePaymentAccount); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.io.bisq.protobuffer.GetPaymentAccountsRequest, - * !proto.io.bisq.protobuffer.GetPaymentAccountsReply>} - */ -const methodDescriptor_PaymentAccounts_GetPaymentAccounts = new grpc.web.MethodDescriptor( - '/io.bisq.protobuffer.PaymentAccounts/GetPaymentAccounts', - grpc.web.MethodType.UNARY, - proto.io.bisq.protobuffer.GetPaymentAccountsRequest, - proto.io.bisq.protobuffer.GetPaymentAccountsReply, - /** - * @param {!proto.io.bisq.protobuffer.GetPaymentAccountsRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.io.bisq.protobuffer.GetPaymentAccountsReply.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.io.bisq.protobuffer.GetPaymentAccountsRequest, - * !proto.io.bisq.protobuffer.GetPaymentAccountsReply>} - */ -const methodInfo_PaymentAccounts_GetPaymentAccounts = new grpc.web.AbstractClientBase.MethodInfo( - proto.io.bisq.protobuffer.GetPaymentAccountsReply, - /** - * @param {!proto.io.bisq.protobuffer.GetPaymentAccountsRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.io.bisq.protobuffer.GetPaymentAccountsReply.deserializeBinary -); - - -/** - * @param {!proto.io.bisq.protobuffer.GetPaymentAccountsRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.io.bisq.protobuffer.GetPaymentAccountsReply)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.io.bisq.protobuffer.PaymentAccountsClient.prototype.getPaymentAccounts = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/io.bisq.protobuffer.PaymentAccounts/GetPaymentAccounts', - request, - metadata || {}, - methodDescriptor_PaymentAccounts_GetPaymentAccounts, - callback); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.GetPaymentAccountsRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.io.bisq.protobuffer.PaymentAccountsPromiseClient.prototype.getPaymentAccounts = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/io.bisq.protobuffer.PaymentAccounts/GetPaymentAccounts', - request, - metadata || {}, - methodDescriptor_PaymentAccounts_GetPaymentAccounts); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.io.bisq.protobuffer.GetPaymentMethodsRequest, - * !proto.io.bisq.protobuffer.GetPaymentMethodsReply>} - */ -const methodDescriptor_PaymentAccounts_GetPaymentMethods = new grpc.web.MethodDescriptor( - '/io.bisq.protobuffer.PaymentAccounts/GetPaymentMethods', - grpc.web.MethodType.UNARY, - proto.io.bisq.protobuffer.GetPaymentMethodsRequest, - proto.io.bisq.protobuffer.GetPaymentMethodsReply, - /** - * @param {!proto.io.bisq.protobuffer.GetPaymentMethodsRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.io.bisq.protobuffer.GetPaymentMethodsReply.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.io.bisq.protobuffer.GetPaymentMethodsRequest, - * !proto.io.bisq.protobuffer.GetPaymentMethodsReply>} - */ -const methodInfo_PaymentAccounts_GetPaymentMethods = new grpc.web.AbstractClientBase.MethodInfo( - proto.io.bisq.protobuffer.GetPaymentMethodsReply, - /** - * @param {!proto.io.bisq.protobuffer.GetPaymentMethodsRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.io.bisq.protobuffer.GetPaymentMethodsReply.deserializeBinary -); - - -/** - * @param {!proto.io.bisq.protobuffer.GetPaymentMethodsRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.io.bisq.protobuffer.GetPaymentMethodsReply)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.io.bisq.protobuffer.PaymentAccountsClient.prototype.getPaymentMethods = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/io.bisq.protobuffer.PaymentAccounts/GetPaymentMethods', - request, - metadata || {}, - methodDescriptor_PaymentAccounts_GetPaymentMethods, - callback); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.GetPaymentMethodsRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.io.bisq.protobuffer.PaymentAccountsPromiseClient.prototype.getPaymentMethods = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/io.bisq.protobuffer.PaymentAccounts/GetPaymentMethods', - request, - metadata || {}, - methodDescriptor_PaymentAccounts_GetPaymentMethods); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.io.bisq.protobuffer.GetPaymentAccountFormRequest, - * !proto.io.bisq.protobuffer.GetPaymentAccountFormReply>} - */ -const methodDescriptor_PaymentAccounts_GetPaymentAccountForm = new grpc.web.MethodDescriptor( - '/io.bisq.protobuffer.PaymentAccounts/GetPaymentAccountForm', - grpc.web.MethodType.UNARY, - proto.io.bisq.protobuffer.GetPaymentAccountFormRequest, - proto.io.bisq.protobuffer.GetPaymentAccountFormReply, - /** - * @param {!proto.io.bisq.protobuffer.GetPaymentAccountFormRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.io.bisq.protobuffer.GetPaymentAccountFormReply.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.io.bisq.protobuffer.GetPaymentAccountFormRequest, - * !proto.io.bisq.protobuffer.GetPaymentAccountFormReply>} - */ -const methodInfo_PaymentAccounts_GetPaymentAccountForm = new grpc.web.AbstractClientBase.MethodInfo( - proto.io.bisq.protobuffer.GetPaymentAccountFormReply, - /** - * @param {!proto.io.bisq.protobuffer.GetPaymentAccountFormRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.io.bisq.protobuffer.GetPaymentAccountFormReply.deserializeBinary -); - - -/** - * @param {!proto.io.bisq.protobuffer.GetPaymentAccountFormRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.io.bisq.protobuffer.GetPaymentAccountFormReply)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.io.bisq.protobuffer.PaymentAccountsClient.prototype.getPaymentAccountForm = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/io.bisq.protobuffer.PaymentAccounts/GetPaymentAccountForm', - request, - metadata || {}, - methodDescriptor_PaymentAccounts_GetPaymentAccountForm, - callback); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.GetPaymentAccountFormRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.io.bisq.protobuffer.PaymentAccountsPromiseClient.prototype.getPaymentAccountForm = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/io.bisq.protobuffer.PaymentAccounts/GetPaymentAccountForm', - request, - metadata || {}, - methodDescriptor_PaymentAccounts_GetPaymentAccountForm); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.io.bisq.protobuffer.CreateCryptoCurrencyPaymentAccountRequest, - * !proto.io.bisq.protobuffer.CreateCryptoCurrencyPaymentAccountReply>} - */ -const methodDescriptor_PaymentAccounts_CreateCryptoCurrencyPaymentAccount = new grpc.web.MethodDescriptor( - '/io.bisq.protobuffer.PaymentAccounts/CreateCryptoCurrencyPaymentAccount', - grpc.web.MethodType.UNARY, - proto.io.bisq.protobuffer.CreateCryptoCurrencyPaymentAccountRequest, - proto.io.bisq.protobuffer.CreateCryptoCurrencyPaymentAccountReply, - /** - * @param {!proto.io.bisq.protobuffer.CreateCryptoCurrencyPaymentAccountRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.io.bisq.protobuffer.CreateCryptoCurrencyPaymentAccountReply.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.io.bisq.protobuffer.CreateCryptoCurrencyPaymentAccountRequest, - * !proto.io.bisq.protobuffer.CreateCryptoCurrencyPaymentAccountReply>} - */ -const methodInfo_PaymentAccounts_CreateCryptoCurrencyPaymentAccount = new grpc.web.AbstractClientBase.MethodInfo( - proto.io.bisq.protobuffer.CreateCryptoCurrencyPaymentAccountReply, - /** - * @param {!proto.io.bisq.protobuffer.CreateCryptoCurrencyPaymentAccountRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.io.bisq.protobuffer.CreateCryptoCurrencyPaymentAccountReply.deserializeBinary -); - - -/** - * @param {!proto.io.bisq.protobuffer.CreateCryptoCurrencyPaymentAccountRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.io.bisq.protobuffer.CreateCryptoCurrencyPaymentAccountReply)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.io.bisq.protobuffer.PaymentAccountsClient.prototype.createCryptoCurrencyPaymentAccount = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/io.bisq.protobuffer.PaymentAccounts/CreateCryptoCurrencyPaymentAccount', - request, - metadata || {}, - methodDescriptor_PaymentAccounts_CreateCryptoCurrencyPaymentAccount, - callback); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.CreateCryptoCurrencyPaymentAccountRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.io.bisq.protobuffer.PaymentAccountsPromiseClient.prototype.createCryptoCurrencyPaymentAccount = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/io.bisq.protobuffer.PaymentAccounts/CreateCryptoCurrencyPaymentAccount', - request, - metadata || {}, - methodDescriptor_PaymentAccounts_CreateCryptoCurrencyPaymentAccount); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.io.bisq.protobuffer.GetCryptoCurrencyPaymentMethodsRequest, - * !proto.io.bisq.protobuffer.GetCryptoCurrencyPaymentMethodsReply>} - */ -const methodDescriptor_PaymentAccounts_GetCryptoCurrencyPaymentMethods = new grpc.web.MethodDescriptor( - '/io.bisq.protobuffer.PaymentAccounts/GetCryptoCurrencyPaymentMethods', - grpc.web.MethodType.UNARY, - proto.io.bisq.protobuffer.GetCryptoCurrencyPaymentMethodsRequest, - proto.io.bisq.protobuffer.GetCryptoCurrencyPaymentMethodsReply, - /** - * @param {!proto.io.bisq.protobuffer.GetCryptoCurrencyPaymentMethodsRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.io.bisq.protobuffer.GetCryptoCurrencyPaymentMethodsReply.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.io.bisq.protobuffer.GetCryptoCurrencyPaymentMethodsRequest, - * !proto.io.bisq.protobuffer.GetCryptoCurrencyPaymentMethodsReply>} - */ -const methodInfo_PaymentAccounts_GetCryptoCurrencyPaymentMethods = new grpc.web.AbstractClientBase.MethodInfo( - proto.io.bisq.protobuffer.GetCryptoCurrencyPaymentMethodsReply, - /** - * @param {!proto.io.bisq.protobuffer.GetCryptoCurrencyPaymentMethodsRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.io.bisq.protobuffer.GetCryptoCurrencyPaymentMethodsReply.deserializeBinary -); - - -/** - * @param {!proto.io.bisq.protobuffer.GetCryptoCurrencyPaymentMethodsRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.io.bisq.protobuffer.GetCryptoCurrencyPaymentMethodsReply)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.io.bisq.protobuffer.PaymentAccountsClient.prototype.getCryptoCurrencyPaymentMethods = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/io.bisq.protobuffer.PaymentAccounts/GetCryptoCurrencyPaymentMethods', - request, - metadata || {}, - methodDescriptor_PaymentAccounts_GetCryptoCurrencyPaymentMethods, - callback); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.GetCryptoCurrencyPaymentMethodsRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.io.bisq.protobuffer.PaymentAccountsPromiseClient.prototype.getCryptoCurrencyPaymentMethods = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/io.bisq.protobuffer.PaymentAccounts/GetCryptoCurrencyPaymentMethods', - request, - metadata || {}, - methodDescriptor_PaymentAccounts_GetCryptoCurrencyPaymentMethods); -}; - - -/** - * @param {string} hostname - * @param {?Object} credentials - * @param {?Object} options - * @constructor - * @struct - * @final - */ -proto.io.bisq.protobuffer.PriceClient = - function(hostname, credentials, options) { - if (!options) options = {}; - options['format'] = 'text'; - - /** - * @private @const {!grpc.web.GrpcWebClientBase} The client - */ - this.client_ = new grpc.web.GrpcWebClientBase(options); - - /** - * @private @const {string} The hostname - */ - this.hostname_ = hostname; - -}; - - -/** - * @param {string} hostname - * @param {?Object} credentials - * @param {?Object} options - * @constructor - * @struct - * @final - */ -proto.io.bisq.protobuffer.PricePromiseClient = - function(hostname, credentials, options) { - if (!options) options = {}; - options['format'] = 'text'; - - /** - * @private @const {!grpc.web.GrpcWebClientBase} The client - */ - this.client_ = new grpc.web.GrpcWebClientBase(options); - - /** - * @private @const {string} The hostname - */ - this.hostname_ = hostname; - -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.io.bisq.protobuffer.MarketPriceRequest, - * !proto.io.bisq.protobuffer.MarketPriceReply>} - */ -const methodDescriptor_Price_GetMarketPrice = new grpc.web.MethodDescriptor( - '/io.bisq.protobuffer.Price/GetMarketPrice', - grpc.web.MethodType.UNARY, - proto.io.bisq.protobuffer.MarketPriceRequest, - proto.io.bisq.protobuffer.MarketPriceReply, - /** - * @param {!proto.io.bisq.protobuffer.MarketPriceRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.io.bisq.protobuffer.MarketPriceReply.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.io.bisq.protobuffer.MarketPriceRequest, - * !proto.io.bisq.protobuffer.MarketPriceReply>} - */ -const methodInfo_Price_GetMarketPrice = new grpc.web.AbstractClientBase.MethodInfo( - proto.io.bisq.protobuffer.MarketPriceReply, - /** - * @param {!proto.io.bisq.protobuffer.MarketPriceRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.io.bisq.protobuffer.MarketPriceReply.deserializeBinary -); - - -/** - * @param {!proto.io.bisq.protobuffer.MarketPriceRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.io.bisq.protobuffer.MarketPriceReply)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.io.bisq.protobuffer.PriceClient.prototype.getMarketPrice = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/io.bisq.protobuffer.Price/GetMarketPrice', - request, - metadata || {}, - methodDescriptor_Price_GetMarketPrice, - callback); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.MarketPriceRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.io.bisq.protobuffer.PricePromiseClient.prototype.getMarketPrice = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/io.bisq.protobuffer.Price/GetMarketPrice', - request, - metadata || {}, - methodDescriptor_Price_GetMarketPrice); -}; - - -/** - * @param {string} hostname - * @param {?Object} credentials - * @param {?Object} options - * @constructor - * @struct - * @final - */ -proto.io.bisq.protobuffer.GetTradeStatisticsClient = - function(hostname, credentials, options) { - if (!options) options = {}; - options['format'] = 'text'; - - /** - * @private @const {!grpc.web.GrpcWebClientBase} The client - */ - this.client_ = new grpc.web.GrpcWebClientBase(options); - - /** - * @private @const {string} The hostname - */ - this.hostname_ = hostname; - -}; - - -/** - * @param {string} hostname - * @param {?Object} credentials - * @param {?Object} options - * @constructor - * @struct - * @final - */ -proto.io.bisq.protobuffer.GetTradeStatisticsPromiseClient = - function(hostname, credentials, options) { - if (!options) options = {}; - options['format'] = 'text'; - - /** - * @private @const {!grpc.web.GrpcWebClientBase} The client - */ - this.client_ = new grpc.web.GrpcWebClientBase(options); - - /** - * @private @const {string} The hostname - */ - this.hostname_ = hostname; - -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.io.bisq.protobuffer.GetTradeStatisticsRequest, - * !proto.io.bisq.protobuffer.GetTradeStatisticsReply>} - */ -const methodDescriptor_GetTradeStatistics_GetTradeStatistics = new grpc.web.MethodDescriptor( - '/io.bisq.protobuffer.GetTradeStatistics/GetTradeStatistics', - grpc.web.MethodType.UNARY, - proto.io.bisq.protobuffer.GetTradeStatisticsRequest, - proto.io.bisq.protobuffer.GetTradeStatisticsReply, - /** - * @param {!proto.io.bisq.protobuffer.GetTradeStatisticsRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.io.bisq.protobuffer.GetTradeStatisticsReply.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.io.bisq.protobuffer.GetTradeStatisticsRequest, - * !proto.io.bisq.protobuffer.GetTradeStatisticsReply>} - */ -const methodInfo_GetTradeStatistics_GetTradeStatistics = new grpc.web.AbstractClientBase.MethodInfo( - proto.io.bisq.protobuffer.GetTradeStatisticsReply, - /** - * @param {!proto.io.bisq.protobuffer.GetTradeStatisticsRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.io.bisq.protobuffer.GetTradeStatisticsReply.deserializeBinary -); - - -/** - * @param {!proto.io.bisq.protobuffer.GetTradeStatisticsRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.io.bisq.protobuffer.GetTradeStatisticsReply)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.io.bisq.protobuffer.GetTradeStatisticsClient.prototype.getTradeStatistics = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/io.bisq.protobuffer.GetTradeStatistics/GetTradeStatistics', - request, - metadata || {}, - methodDescriptor_GetTradeStatistics_GetTradeStatistics, - callback); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.GetTradeStatisticsRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.io.bisq.protobuffer.GetTradeStatisticsPromiseClient.prototype.getTradeStatistics = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/io.bisq.protobuffer.GetTradeStatistics/GetTradeStatistics', - request, - metadata || {}, - methodDescriptor_GetTradeStatistics_GetTradeStatistics); -}; - - -/** - * @param {string} hostname - * @param {?Object} credentials - * @param {?Object} options - * @constructor - * @struct - * @final - */ -proto.io.bisq.protobuffer.ShutdownServerClient = - function(hostname, credentials, options) { - if (!options) options = {}; - options['format'] = 'text'; - - /** - * @private @const {!grpc.web.GrpcWebClientBase} The client - */ - this.client_ = new grpc.web.GrpcWebClientBase(options); - - /** - * @private @const {string} The hostname - */ - this.hostname_ = hostname; - -}; - - -/** - * @param {string} hostname - * @param {?Object} credentials - * @param {?Object} options - * @constructor - * @struct - * @final - */ -proto.io.bisq.protobuffer.ShutdownServerPromiseClient = - function(hostname, credentials, options) { - if (!options) options = {}; - options['format'] = 'text'; - - /** - * @private @const {!grpc.web.GrpcWebClientBase} The client - */ - this.client_ = new grpc.web.GrpcWebClientBase(options); - - /** - * @private @const {string} The hostname - */ - this.hostname_ = hostname; - -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.io.bisq.protobuffer.StopRequest, - * !proto.io.bisq.protobuffer.StopReply>} - */ -const methodDescriptor_ShutdownServer_Stop = new grpc.web.MethodDescriptor( - '/io.bisq.protobuffer.ShutdownServer/Stop', - grpc.web.MethodType.UNARY, - proto.io.bisq.protobuffer.StopRequest, - proto.io.bisq.protobuffer.StopReply, - /** - * @param {!proto.io.bisq.protobuffer.StopRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.io.bisq.protobuffer.StopReply.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.io.bisq.protobuffer.StopRequest, - * !proto.io.bisq.protobuffer.StopReply>} - */ -const methodInfo_ShutdownServer_Stop = new grpc.web.AbstractClientBase.MethodInfo( - proto.io.bisq.protobuffer.StopReply, - /** - * @param {!proto.io.bisq.protobuffer.StopRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.io.bisq.protobuffer.StopReply.deserializeBinary -); - - -/** - * @param {!proto.io.bisq.protobuffer.StopRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.io.bisq.protobuffer.StopReply)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.io.bisq.protobuffer.ShutdownServerClient.prototype.stop = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/io.bisq.protobuffer.ShutdownServer/Stop', - request, - metadata || {}, - methodDescriptor_ShutdownServer_Stop, - callback); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.StopRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.io.bisq.protobuffer.ShutdownServerPromiseClient.prototype.stop = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/io.bisq.protobuffer.ShutdownServer/Stop', - request, - metadata || {}, - methodDescriptor_ShutdownServer_Stop); -}; - - -/** - * @param {string} hostname - * @param {?Object} credentials - * @param {?Object} options - * @constructor - * @struct - * @final - */ -proto.io.bisq.protobuffer.TradesClient = - function(hostname, credentials, options) { - if (!options) options = {}; - options['format'] = 'text'; - - /** - * @private @const {!grpc.web.GrpcWebClientBase} The client - */ - this.client_ = new grpc.web.GrpcWebClientBase(options); - - /** - * @private @const {string} The hostname - */ - this.hostname_ = hostname; - -}; - - -/** - * @param {string} hostname - * @param {?Object} credentials - * @param {?Object} options - * @constructor - * @struct - * @final - */ -proto.io.bisq.protobuffer.TradesPromiseClient = - function(hostname, credentials, options) { - if (!options) options = {}; - options['format'] = 'text'; - - /** - * @private @const {!grpc.web.GrpcWebClientBase} The client - */ - this.client_ = new grpc.web.GrpcWebClientBase(options); - - /** - * @private @const {string} The hostname - */ - this.hostname_ = hostname; - -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.io.bisq.protobuffer.GetTradeRequest, - * !proto.io.bisq.protobuffer.GetTradeReply>} - */ -const methodDescriptor_Trades_GetTrade = new grpc.web.MethodDescriptor( - '/io.bisq.protobuffer.Trades/GetTrade', - grpc.web.MethodType.UNARY, - proto.io.bisq.protobuffer.GetTradeRequest, - proto.io.bisq.protobuffer.GetTradeReply, - /** - * @param {!proto.io.bisq.protobuffer.GetTradeRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.io.bisq.protobuffer.GetTradeReply.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.io.bisq.protobuffer.GetTradeRequest, - * !proto.io.bisq.protobuffer.GetTradeReply>} - */ -const methodInfo_Trades_GetTrade = new grpc.web.AbstractClientBase.MethodInfo( - proto.io.bisq.protobuffer.GetTradeReply, - /** - * @param {!proto.io.bisq.protobuffer.GetTradeRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.io.bisq.protobuffer.GetTradeReply.deserializeBinary -); - - -/** - * @param {!proto.io.bisq.protobuffer.GetTradeRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.io.bisq.protobuffer.GetTradeReply)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.io.bisq.protobuffer.TradesClient.prototype.getTrade = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/io.bisq.protobuffer.Trades/GetTrade', - request, - metadata || {}, - methodDescriptor_Trades_GetTrade, - callback); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.GetTradeRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.io.bisq.protobuffer.TradesPromiseClient.prototype.getTrade = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/io.bisq.protobuffer.Trades/GetTrade', - request, - metadata || {}, - methodDescriptor_Trades_GetTrade); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.io.bisq.protobuffer.TakeOfferRequest, - * !proto.io.bisq.protobuffer.TakeOfferReply>} - */ -const methodDescriptor_Trades_TakeOffer = new grpc.web.MethodDescriptor( - '/io.bisq.protobuffer.Trades/TakeOffer', - grpc.web.MethodType.UNARY, - proto.io.bisq.protobuffer.TakeOfferRequest, - proto.io.bisq.protobuffer.TakeOfferReply, - /** - * @param {!proto.io.bisq.protobuffer.TakeOfferRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.io.bisq.protobuffer.TakeOfferReply.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.io.bisq.protobuffer.TakeOfferRequest, - * !proto.io.bisq.protobuffer.TakeOfferReply>} - */ -const methodInfo_Trades_TakeOffer = new grpc.web.AbstractClientBase.MethodInfo( - proto.io.bisq.protobuffer.TakeOfferReply, - /** - * @param {!proto.io.bisq.protobuffer.TakeOfferRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.io.bisq.protobuffer.TakeOfferReply.deserializeBinary -); - - -/** - * @param {!proto.io.bisq.protobuffer.TakeOfferRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.io.bisq.protobuffer.TakeOfferReply)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.io.bisq.protobuffer.TradesClient.prototype.takeOffer = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/io.bisq.protobuffer.Trades/TakeOffer', - request, - metadata || {}, - methodDescriptor_Trades_TakeOffer, - callback); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.TakeOfferRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.io.bisq.protobuffer.TradesPromiseClient.prototype.takeOffer = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/io.bisq.protobuffer.Trades/TakeOffer', - request, - metadata || {}, - methodDescriptor_Trades_TakeOffer); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.io.bisq.protobuffer.ConfirmPaymentStartedRequest, - * !proto.io.bisq.protobuffer.ConfirmPaymentStartedReply>} - */ -const methodDescriptor_Trades_ConfirmPaymentStarted = new grpc.web.MethodDescriptor( - '/io.bisq.protobuffer.Trades/ConfirmPaymentStarted', - grpc.web.MethodType.UNARY, - proto.io.bisq.protobuffer.ConfirmPaymentStartedRequest, - proto.io.bisq.protobuffer.ConfirmPaymentStartedReply, - /** - * @param {!proto.io.bisq.protobuffer.ConfirmPaymentStartedRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.io.bisq.protobuffer.ConfirmPaymentStartedReply.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.io.bisq.protobuffer.ConfirmPaymentStartedRequest, - * !proto.io.bisq.protobuffer.ConfirmPaymentStartedReply>} - */ -const methodInfo_Trades_ConfirmPaymentStarted = new grpc.web.AbstractClientBase.MethodInfo( - proto.io.bisq.protobuffer.ConfirmPaymentStartedReply, - /** - * @param {!proto.io.bisq.protobuffer.ConfirmPaymentStartedRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.io.bisq.protobuffer.ConfirmPaymentStartedReply.deserializeBinary -); - - -/** - * @param {!proto.io.bisq.protobuffer.ConfirmPaymentStartedRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.io.bisq.protobuffer.ConfirmPaymentStartedReply)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.io.bisq.protobuffer.TradesClient.prototype.confirmPaymentStarted = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/io.bisq.protobuffer.Trades/ConfirmPaymentStarted', - request, - metadata || {}, - methodDescriptor_Trades_ConfirmPaymentStarted, - callback); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.ConfirmPaymentStartedRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.io.bisq.protobuffer.TradesPromiseClient.prototype.confirmPaymentStarted = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/io.bisq.protobuffer.Trades/ConfirmPaymentStarted', - request, - metadata || {}, - methodDescriptor_Trades_ConfirmPaymentStarted); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.io.bisq.protobuffer.ConfirmPaymentReceivedRequest, - * !proto.io.bisq.protobuffer.ConfirmPaymentReceivedReply>} - */ -const methodDescriptor_Trades_ConfirmPaymentReceived = new grpc.web.MethodDescriptor( - '/io.bisq.protobuffer.Trades/ConfirmPaymentReceived', - grpc.web.MethodType.UNARY, - proto.io.bisq.protobuffer.ConfirmPaymentReceivedRequest, - proto.io.bisq.protobuffer.ConfirmPaymentReceivedReply, - /** - * @param {!proto.io.bisq.protobuffer.ConfirmPaymentReceivedRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.io.bisq.protobuffer.ConfirmPaymentReceivedReply.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.io.bisq.protobuffer.ConfirmPaymentReceivedRequest, - * !proto.io.bisq.protobuffer.ConfirmPaymentReceivedReply>} - */ -const methodInfo_Trades_ConfirmPaymentReceived = new grpc.web.AbstractClientBase.MethodInfo( - proto.io.bisq.protobuffer.ConfirmPaymentReceivedReply, - /** - * @param {!proto.io.bisq.protobuffer.ConfirmPaymentReceivedRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.io.bisq.protobuffer.ConfirmPaymentReceivedReply.deserializeBinary -); - - -/** - * @param {!proto.io.bisq.protobuffer.ConfirmPaymentReceivedRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.io.bisq.protobuffer.ConfirmPaymentReceivedReply)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.io.bisq.protobuffer.TradesClient.prototype.confirmPaymentReceived = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/io.bisq.protobuffer.Trades/ConfirmPaymentReceived', - request, - metadata || {}, - methodDescriptor_Trades_ConfirmPaymentReceived, - callback); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.ConfirmPaymentReceivedRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.io.bisq.protobuffer.TradesPromiseClient.prototype.confirmPaymentReceived = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/io.bisq.protobuffer.Trades/ConfirmPaymentReceived', - request, - metadata || {}, - methodDescriptor_Trades_ConfirmPaymentReceived); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.io.bisq.protobuffer.KeepFundsRequest, - * !proto.io.bisq.protobuffer.KeepFundsReply>} - */ -const methodDescriptor_Trades_KeepFunds = new grpc.web.MethodDescriptor( - '/io.bisq.protobuffer.Trades/KeepFunds', - grpc.web.MethodType.UNARY, - proto.io.bisq.protobuffer.KeepFundsRequest, - proto.io.bisq.protobuffer.KeepFundsReply, - /** - * @param {!proto.io.bisq.protobuffer.KeepFundsRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.io.bisq.protobuffer.KeepFundsReply.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.io.bisq.protobuffer.KeepFundsRequest, - * !proto.io.bisq.protobuffer.KeepFundsReply>} - */ -const methodInfo_Trades_KeepFunds = new grpc.web.AbstractClientBase.MethodInfo( - proto.io.bisq.protobuffer.KeepFundsReply, - /** - * @param {!proto.io.bisq.protobuffer.KeepFundsRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.io.bisq.protobuffer.KeepFundsReply.deserializeBinary -); - - -/** - * @param {!proto.io.bisq.protobuffer.KeepFundsRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.io.bisq.protobuffer.KeepFundsReply)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.io.bisq.protobuffer.TradesClient.prototype.keepFunds = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/io.bisq.protobuffer.Trades/KeepFunds', - request, - metadata || {}, - methodDescriptor_Trades_KeepFunds, - callback); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.KeepFundsRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.io.bisq.protobuffer.TradesPromiseClient.prototype.keepFunds = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/io.bisq.protobuffer.Trades/KeepFunds', - request, - metadata || {}, - methodDescriptor_Trades_KeepFunds); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.io.bisq.protobuffer.WithdrawFundsRequest, - * !proto.io.bisq.protobuffer.WithdrawFundsReply>} - */ -const methodDescriptor_Trades_WithdrawFunds = new grpc.web.MethodDescriptor( - '/io.bisq.protobuffer.Trades/WithdrawFunds', - grpc.web.MethodType.UNARY, - proto.io.bisq.protobuffer.WithdrawFundsRequest, - proto.io.bisq.protobuffer.WithdrawFundsReply, - /** - * @param {!proto.io.bisq.protobuffer.WithdrawFundsRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.io.bisq.protobuffer.WithdrawFundsReply.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.io.bisq.protobuffer.WithdrawFundsRequest, - * !proto.io.bisq.protobuffer.WithdrawFundsReply>} - */ -const methodInfo_Trades_WithdrawFunds = new grpc.web.AbstractClientBase.MethodInfo( - proto.io.bisq.protobuffer.WithdrawFundsReply, - /** - * @param {!proto.io.bisq.protobuffer.WithdrawFundsRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.io.bisq.protobuffer.WithdrawFundsReply.deserializeBinary -); - - -/** - * @param {!proto.io.bisq.protobuffer.WithdrawFundsRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.io.bisq.protobuffer.WithdrawFundsReply)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.io.bisq.protobuffer.TradesClient.prototype.withdrawFunds = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/io.bisq.protobuffer.Trades/WithdrawFunds', - request, - metadata || {}, - methodDescriptor_Trades_WithdrawFunds, - callback); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.WithdrawFundsRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.io.bisq.protobuffer.TradesPromiseClient.prototype.withdrawFunds = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/io.bisq.protobuffer.Trades/WithdrawFunds', - request, - metadata || {}, - methodDescriptor_Trades_WithdrawFunds); -}; - - -/** - * @param {string} hostname - * @param {?Object} credentials - * @param {?Object} options - * @constructor - * @struct - * @final - */ -proto.io.bisq.protobuffer.WalletsClient = - function(hostname, credentials, options) { - if (!options) options = {}; - options['format'] = 'text'; - - /** - * @private @const {!grpc.web.GrpcWebClientBase} The client - */ - this.client_ = new grpc.web.GrpcWebClientBase(options); - - /** - * @private @const {string} The hostname - */ - this.hostname_ = hostname; - -}; - - -/** - * @param {string} hostname - * @param {?Object} credentials - * @param {?Object} options - * @constructor - * @struct - * @final - */ -proto.io.bisq.protobuffer.WalletsPromiseClient = - function(hostname, credentials, options) { - if (!options) options = {}; - options['format'] = 'text'; - - /** - * @private @const {!grpc.web.GrpcWebClientBase} The client - */ - this.client_ = new grpc.web.GrpcWebClientBase(options); - - /** - * @private @const {string} The hostname - */ - this.hostname_ = hostname; - -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.io.bisq.protobuffer.GetBalancesRequest, - * !proto.io.bisq.protobuffer.GetBalancesReply>} - */ -const methodDescriptor_Wallets_GetBalances = new grpc.web.MethodDescriptor( - '/io.bisq.protobuffer.Wallets/GetBalances', - grpc.web.MethodType.UNARY, - proto.io.bisq.protobuffer.GetBalancesRequest, - proto.io.bisq.protobuffer.GetBalancesReply, - /** - * @param {!proto.io.bisq.protobuffer.GetBalancesRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.io.bisq.protobuffer.GetBalancesReply.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.io.bisq.protobuffer.GetBalancesRequest, - * !proto.io.bisq.protobuffer.GetBalancesReply>} - */ -const methodInfo_Wallets_GetBalances = new grpc.web.AbstractClientBase.MethodInfo( - proto.io.bisq.protobuffer.GetBalancesReply, - /** - * @param {!proto.io.bisq.protobuffer.GetBalancesRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.io.bisq.protobuffer.GetBalancesReply.deserializeBinary -); - - -/** - * @param {!proto.io.bisq.protobuffer.GetBalancesRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.io.bisq.protobuffer.GetBalancesReply)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.io.bisq.protobuffer.WalletsClient.prototype.getBalances = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/io.bisq.protobuffer.Wallets/GetBalances', - request, - metadata || {}, - methodDescriptor_Wallets_GetBalances, - callback); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.GetBalancesRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.io.bisq.protobuffer.WalletsPromiseClient.prototype.getBalances = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/io.bisq.protobuffer.Wallets/GetBalances', - request, - metadata || {}, - methodDescriptor_Wallets_GetBalances); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.io.bisq.protobuffer.GetAddressBalanceRequest, - * !proto.io.bisq.protobuffer.GetAddressBalanceReply>} - */ -const methodDescriptor_Wallets_GetAddressBalance = new grpc.web.MethodDescriptor( - '/io.bisq.protobuffer.Wallets/GetAddressBalance', - grpc.web.MethodType.UNARY, - proto.io.bisq.protobuffer.GetAddressBalanceRequest, - proto.io.bisq.protobuffer.GetAddressBalanceReply, - /** - * @param {!proto.io.bisq.protobuffer.GetAddressBalanceRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.io.bisq.protobuffer.GetAddressBalanceReply.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.io.bisq.protobuffer.GetAddressBalanceRequest, - * !proto.io.bisq.protobuffer.GetAddressBalanceReply>} - */ -const methodInfo_Wallets_GetAddressBalance = new grpc.web.AbstractClientBase.MethodInfo( - proto.io.bisq.protobuffer.GetAddressBalanceReply, - /** - * @param {!proto.io.bisq.protobuffer.GetAddressBalanceRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.io.bisq.protobuffer.GetAddressBalanceReply.deserializeBinary -); - - -/** - * @param {!proto.io.bisq.protobuffer.GetAddressBalanceRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.io.bisq.protobuffer.GetAddressBalanceReply)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.io.bisq.protobuffer.WalletsClient.prototype.getAddressBalance = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/io.bisq.protobuffer.Wallets/GetAddressBalance', - request, - metadata || {}, - methodDescriptor_Wallets_GetAddressBalance, - callback); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.GetAddressBalanceRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.io.bisq.protobuffer.WalletsPromiseClient.prototype.getAddressBalance = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/io.bisq.protobuffer.Wallets/GetAddressBalance', - request, - metadata || {}, - methodDescriptor_Wallets_GetAddressBalance); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.io.bisq.protobuffer.GetUnusedBsqAddressRequest, - * !proto.io.bisq.protobuffer.GetUnusedBsqAddressReply>} - */ -const methodDescriptor_Wallets_GetUnusedBsqAddress = new grpc.web.MethodDescriptor( - '/io.bisq.protobuffer.Wallets/GetUnusedBsqAddress', - grpc.web.MethodType.UNARY, - proto.io.bisq.protobuffer.GetUnusedBsqAddressRequest, - proto.io.bisq.protobuffer.GetUnusedBsqAddressReply, - /** - * @param {!proto.io.bisq.protobuffer.GetUnusedBsqAddressRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.io.bisq.protobuffer.GetUnusedBsqAddressReply.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.io.bisq.protobuffer.GetUnusedBsqAddressRequest, - * !proto.io.bisq.protobuffer.GetUnusedBsqAddressReply>} - */ -const methodInfo_Wallets_GetUnusedBsqAddress = new grpc.web.AbstractClientBase.MethodInfo( - proto.io.bisq.protobuffer.GetUnusedBsqAddressReply, - /** - * @param {!proto.io.bisq.protobuffer.GetUnusedBsqAddressRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.io.bisq.protobuffer.GetUnusedBsqAddressReply.deserializeBinary -); - - -/** - * @param {!proto.io.bisq.protobuffer.GetUnusedBsqAddressRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.io.bisq.protobuffer.GetUnusedBsqAddressReply)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.io.bisq.protobuffer.WalletsClient.prototype.getUnusedBsqAddress = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/io.bisq.protobuffer.Wallets/GetUnusedBsqAddress', - request, - metadata || {}, - methodDescriptor_Wallets_GetUnusedBsqAddress, - callback); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.GetUnusedBsqAddressRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.io.bisq.protobuffer.WalletsPromiseClient.prototype.getUnusedBsqAddress = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/io.bisq.protobuffer.Wallets/GetUnusedBsqAddress', - request, - metadata || {}, - methodDescriptor_Wallets_GetUnusedBsqAddress); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.io.bisq.protobuffer.SendBsqRequest, - * !proto.io.bisq.protobuffer.SendBsqReply>} - */ -const methodDescriptor_Wallets_SendBsq = new grpc.web.MethodDescriptor( - '/io.bisq.protobuffer.Wallets/SendBsq', - grpc.web.MethodType.UNARY, - proto.io.bisq.protobuffer.SendBsqRequest, - proto.io.bisq.protobuffer.SendBsqReply, - /** - * @param {!proto.io.bisq.protobuffer.SendBsqRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.io.bisq.protobuffer.SendBsqReply.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.io.bisq.protobuffer.SendBsqRequest, - * !proto.io.bisq.protobuffer.SendBsqReply>} - */ -const methodInfo_Wallets_SendBsq = new grpc.web.AbstractClientBase.MethodInfo( - proto.io.bisq.protobuffer.SendBsqReply, - /** - * @param {!proto.io.bisq.protobuffer.SendBsqRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.io.bisq.protobuffer.SendBsqReply.deserializeBinary -); - - -/** - * @param {!proto.io.bisq.protobuffer.SendBsqRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.io.bisq.protobuffer.SendBsqReply)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.io.bisq.protobuffer.WalletsClient.prototype.sendBsq = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/io.bisq.protobuffer.Wallets/SendBsq', - request, - metadata || {}, - methodDescriptor_Wallets_SendBsq, - callback); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.SendBsqRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.io.bisq.protobuffer.WalletsPromiseClient.prototype.sendBsq = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/io.bisq.protobuffer.Wallets/SendBsq', - request, - metadata || {}, - methodDescriptor_Wallets_SendBsq); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.io.bisq.protobuffer.SendBtcRequest, - * !proto.io.bisq.protobuffer.SendBtcReply>} - */ -const methodDescriptor_Wallets_SendBtc = new grpc.web.MethodDescriptor( - '/io.bisq.protobuffer.Wallets/SendBtc', - grpc.web.MethodType.UNARY, - proto.io.bisq.protobuffer.SendBtcRequest, - proto.io.bisq.protobuffer.SendBtcReply, - /** - * @param {!proto.io.bisq.protobuffer.SendBtcRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.io.bisq.protobuffer.SendBtcReply.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.io.bisq.protobuffer.SendBtcRequest, - * !proto.io.bisq.protobuffer.SendBtcReply>} - */ -const methodInfo_Wallets_SendBtc = new grpc.web.AbstractClientBase.MethodInfo( - proto.io.bisq.protobuffer.SendBtcReply, - /** - * @param {!proto.io.bisq.protobuffer.SendBtcRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.io.bisq.protobuffer.SendBtcReply.deserializeBinary -); - - -/** - * @param {!proto.io.bisq.protobuffer.SendBtcRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.io.bisq.protobuffer.SendBtcReply)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.io.bisq.protobuffer.WalletsClient.prototype.sendBtc = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/io.bisq.protobuffer.Wallets/SendBtc', - request, - metadata || {}, - methodDescriptor_Wallets_SendBtc, - callback); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.SendBtcRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.io.bisq.protobuffer.WalletsPromiseClient.prototype.sendBtc = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/io.bisq.protobuffer.Wallets/SendBtc', - request, - metadata || {}, - methodDescriptor_Wallets_SendBtc); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.io.bisq.protobuffer.VerifyBsqSentToAddressRequest, - * !proto.io.bisq.protobuffer.VerifyBsqSentToAddressReply>} - */ -const methodDescriptor_Wallets_VerifyBsqSentToAddress = new grpc.web.MethodDescriptor( - '/io.bisq.protobuffer.Wallets/VerifyBsqSentToAddress', - grpc.web.MethodType.UNARY, - proto.io.bisq.protobuffer.VerifyBsqSentToAddressRequest, - proto.io.bisq.protobuffer.VerifyBsqSentToAddressReply, - /** - * @param {!proto.io.bisq.protobuffer.VerifyBsqSentToAddressRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.io.bisq.protobuffer.VerifyBsqSentToAddressReply.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.io.bisq.protobuffer.VerifyBsqSentToAddressRequest, - * !proto.io.bisq.protobuffer.VerifyBsqSentToAddressReply>} - */ -const methodInfo_Wallets_VerifyBsqSentToAddress = new grpc.web.AbstractClientBase.MethodInfo( - proto.io.bisq.protobuffer.VerifyBsqSentToAddressReply, - /** - * @param {!proto.io.bisq.protobuffer.VerifyBsqSentToAddressRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.io.bisq.protobuffer.VerifyBsqSentToAddressReply.deserializeBinary -); - - -/** - * @param {!proto.io.bisq.protobuffer.VerifyBsqSentToAddressRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.io.bisq.protobuffer.VerifyBsqSentToAddressReply)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.io.bisq.protobuffer.WalletsClient.prototype.verifyBsqSentToAddress = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/io.bisq.protobuffer.Wallets/VerifyBsqSentToAddress', - request, - metadata || {}, - methodDescriptor_Wallets_VerifyBsqSentToAddress, - callback); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.VerifyBsqSentToAddressRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.io.bisq.protobuffer.WalletsPromiseClient.prototype.verifyBsqSentToAddress = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/io.bisq.protobuffer.Wallets/VerifyBsqSentToAddress', - request, - metadata || {}, - methodDescriptor_Wallets_VerifyBsqSentToAddress); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.io.bisq.protobuffer.GetTxFeeRateRequest, - * !proto.io.bisq.protobuffer.GetTxFeeRateReply>} - */ -const methodDescriptor_Wallets_GetTxFeeRate = new grpc.web.MethodDescriptor( - '/io.bisq.protobuffer.Wallets/GetTxFeeRate', - grpc.web.MethodType.UNARY, - proto.io.bisq.protobuffer.GetTxFeeRateRequest, - proto.io.bisq.protobuffer.GetTxFeeRateReply, - /** - * @param {!proto.io.bisq.protobuffer.GetTxFeeRateRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.io.bisq.protobuffer.GetTxFeeRateReply.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.io.bisq.protobuffer.GetTxFeeRateRequest, - * !proto.io.bisq.protobuffer.GetTxFeeRateReply>} - */ -const methodInfo_Wallets_GetTxFeeRate = new grpc.web.AbstractClientBase.MethodInfo( - proto.io.bisq.protobuffer.GetTxFeeRateReply, - /** - * @param {!proto.io.bisq.protobuffer.GetTxFeeRateRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.io.bisq.protobuffer.GetTxFeeRateReply.deserializeBinary -); - - -/** - * @param {!proto.io.bisq.protobuffer.GetTxFeeRateRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.io.bisq.protobuffer.GetTxFeeRateReply)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.io.bisq.protobuffer.WalletsClient.prototype.getTxFeeRate = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/io.bisq.protobuffer.Wallets/GetTxFeeRate', - request, - metadata || {}, - methodDescriptor_Wallets_GetTxFeeRate, - callback); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.GetTxFeeRateRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.io.bisq.protobuffer.WalletsPromiseClient.prototype.getTxFeeRate = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/io.bisq.protobuffer.Wallets/GetTxFeeRate', - request, - metadata || {}, - methodDescriptor_Wallets_GetTxFeeRate); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.io.bisq.protobuffer.SetTxFeeRatePreferenceRequest, - * !proto.io.bisq.protobuffer.SetTxFeeRatePreferenceReply>} - */ -const methodDescriptor_Wallets_SetTxFeeRatePreference = new grpc.web.MethodDescriptor( - '/io.bisq.protobuffer.Wallets/SetTxFeeRatePreference', - grpc.web.MethodType.UNARY, - proto.io.bisq.protobuffer.SetTxFeeRatePreferenceRequest, - proto.io.bisq.protobuffer.SetTxFeeRatePreferenceReply, - /** - * @param {!proto.io.bisq.protobuffer.SetTxFeeRatePreferenceRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.io.bisq.protobuffer.SetTxFeeRatePreferenceReply.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.io.bisq.protobuffer.SetTxFeeRatePreferenceRequest, - * !proto.io.bisq.protobuffer.SetTxFeeRatePreferenceReply>} - */ -const methodInfo_Wallets_SetTxFeeRatePreference = new grpc.web.AbstractClientBase.MethodInfo( - proto.io.bisq.protobuffer.SetTxFeeRatePreferenceReply, - /** - * @param {!proto.io.bisq.protobuffer.SetTxFeeRatePreferenceRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.io.bisq.protobuffer.SetTxFeeRatePreferenceReply.deserializeBinary -); - - -/** - * @param {!proto.io.bisq.protobuffer.SetTxFeeRatePreferenceRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.io.bisq.protobuffer.SetTxFeeRatePreferenceReply)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.io.bisq.protobuffer.WalletsClient.prototype.setTxFeeRatePreference = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/io.bisq.protobuffer.Wallets/SetTxFeeRatePreference', - request, - metadata || {}, - methodDescriptor_Wallets_SetTxFeeRatePreference, - callback); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.SetTxFeeRatePreferenceRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.io.bisq.protobuffer.WalletsPromiseClient.prototype.setTxFeeRatePreference = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/io.bisq.protobuffer.Wallets/SetTxFeeRatePreference', - request, - metadata || {}, - methodDescriptor_Wallets_SetTxFeeRatePreference); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.io.bisq.protobuffer.UnsetTxFeeRatePreferenceRequest, - * !proto.io.bisq.protobuffer.UnsetTxFeeRatePreferenceReply>} - */ -const methodDescriptor_Wallets_UnsetTxFeeRatePreference = new grpc.web.MethodDescriptor( - '/io.bisq.protobuffer.Wallets/UnsetTxFeeRatePreference', - grpc.web.MethodType.UNARY, - proto.io.bisq.protobuffer.UnsetTxFeeRatePreferenceRequest, - proto.io.bisq.protobuffer.UnsetTxFeeRatePreferenceReply, - /** - * @param {!proto.io.bisq.protobuffer.UnsetTxFeeRatePreferenceRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.io.bisq.protobuffer.UnsetTxFeeRatePreferenceReply.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.io.bisq.protobuffer.UnsetTxFeeRatePreferenceRequest, - * !proto.io.bisq.protobuffer.UnsetTxFeeRatePreferenceReply>} - */ -const methodInfo_Wallets_UnsetTxFeeRatePreference = new grpc.web.AbstractClientBase.MethodInfo( - proto.io.bisq.protobuffer.UnsetTxFeeRatePreferenceReply, - /** - * @param {!proto.io.bisq.protobuffer.UnsetTxFeeRatePreferenceRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.io.bisq.protobuffer.UnsetTxFeeRatePreferenceReply.deserializeBinary -); - - -/** - * @param {!proto.io.bisq.protobuffer.UnsetTxFeeRatePreferenceRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.io.bisq.protobuffer.UnsetTxFeeRatePreferenceReply)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.io.bisq.protobuffer.WalletsClient.prototype.unsetTxFeeRatePreference = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/io.bisq.protobuffer.Wallets/UnsetTxFeeRatePreference', - request, - metadata || {}, - methodDescriptor_Wallets_UnsetTxFeeRatePreference, - callback); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.UnsetTxFeeRatePreferenceRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.io.bisq.protobuffer.WalletsPromiseClient.prototype.unsetTxFeeRatePreference = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/io.bisq.protobuffer.Wallets/UnsetTxFeeRatePreference', - request, - metadata || {}, - methodDescriptor_Wallets_UnsetTxFeeRatePreference); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.io.bisq.protobuffer.GetTransactionRequest, - * !proto.io.bisq.protobuffer.GetTransactionReply>} - */ -const methodDescriptor_Wallets_GetTransaction = new grpc.web.MethodDescriptor( - '/io.bisq.protobuffer.Wallets/GetTransaction', - grpc.web.MethodType.UNARY, - proto.io.bisq.protobuffer.GetTransactionRequest, - proto.io.bisq.protobuffer.GetTransactionReply, - /** - * @param {!proto.io.bisq.protobuffer.GetTransactionRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.io.bisq.protobuffer.GetTransactionReply.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.io.bisq.protobuffer.GetTransactionRequest, - * !proto.io.bisq.protobuffer.GetTransactionReply>} - */ -const methodInfo_Wallets_GetTransaction = new grpc.web.AbstractClientBase.MethodInfo( - proto.io.bisq.protobuffer.GetTransactionReply, - /** - * @param {!proto.io.bisq.protobuffer.GetTransactionRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.io.bisq.protobuffer.GetTransactionReply.deserializeBinary -); - - -/** - * @param {!proto.io.bisq.protobuffer.GetTransactionRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.io.bisq.protobuffer.GetTransactionReply)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.io.bisq.protobuffer.WalletsClient.prototype.getTransaction = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/io.bisq.protobuffer.Wallets/GetTransaction', - request, - metadata || {}, - methodDescriptor_Wallets_GetTransaction, - callback); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.GetTransactionRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.io.bisq.protobuffer.WalletsPromiseClient.prototype.getTransaction = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/io.bisq.protobuffer.Wallets/GetTransaction', - request, - metadata || {}, - methodDescriptor_Wallets_GetTransaction); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.io.bisq.protobuffer.GetFundingAddressesRequest, - * !proto.io.bisq.protobuffer.GetFundingAddressesReply>} - */ -const methodDescriptor_Wallets_GetFundingAddresses = new grpc.web.MethodDescriptor( - '/io.bisq.protobuffer.Wallets/GetFundingAddresses', - grpc.web.MethodType.UNARY, - proto.io.bisq.protobuffer.GetFundingAddressesRequest, - proto.io.bisq.protobuffer.GetFundingAddressesReply, - /** - * @param {!proto.io.bisq.protobuffer.GetFundingAddressesRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.io.bisq.protobuffer.GetFundingAddressesReply.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.io.bisq.protobuffer.GetFundingAddressesRequest, - * !proto.io.bisq.protobuffer.GetFundingAddressesReply>} - */ -const methodInfo_Wallets_GetFundingAddresses = new grpc.web.AbstractClientBase.MethodInfo( - proto.io.bisq.protobuffer.GetFundingAddressesReply, - /** - * @param {!proto.io.bisq.protobuffer.GetFundingAddressesRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.io.bisq.protobuffer.GetFundingAddressesReply.deserializeBinary -); - - -/** - * @param {!proto.io.bisq.protobuffer.GetFundingAddressesRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.io.bisq.protobuffer.GetFundingAddressesReply)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.io.bisq.protobuffer.WalletsClient.prototype.getFundingAddresses = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/io.bisq.protobuffer.Wallets/GetFundingAddresses', - request, - metadata || {}, - methodDescriptor_Wallets_GetFundingAddresses, - callback); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.GetFundingAddressesRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.io.bisq.protobuffer.WalletsPromiseClient.prototype.getFundingAddresses = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/io.bisq.protobuffer.Wallets/GetFundingAddresses', - request, - metadata || {}, - methodDescriptor_Wallets_GetFundingAddresses); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.io.bisq.protobuffer.SetWalletPasswordRequest, - * !proto.io.bisq.protobuffer.SetWalletPasswordReply>} - */ -const methodDescriptor_Wallets_SetWalletPassword = new grpc.web.MethodDescriptor( - '/io.bisq.protobuffer.Wallets/SetWalletPassword', - grpc.web.MethodType.UNARY, - proto.io.bisq.protobuffer.SetWalletPasswordRequest, - proto.io.bisq.protobuffer.SetWalletPasswordReply, - /** - * @param {!proto.io.bisq.protobuffer.SetWalletPasswordRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.io.bisq.protobuffer.SetWalletPasswordReply.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.io.bisq.protobuffer.SetWalletPasswordRequest, - * !proto.io.bisq.protobuffer.SetWalletPasswordReply>} - */ -const methodInfo_Wallets_SetWalletPassword = new grpc.web.AbstractClientBase.MethodInfo( - proto.io.bisq.protobuffer.SetWalletPasswordReply, - /** - * @param {!proto.io.bisq.protobuffer.SetWalletPasswordRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.io.bisq.protobuffer.SetWalletPasswordReply.deserializeBinary -); - - -/** - * @param {!proto.io.bisq.protobuffer.SetWalletPasswordRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.io.bisq.protobuffer.SetWalletPasswordReply)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.io.bisq.protobuffer.WalletsClient.prototype.setWalletPassword = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/io.bisq.protobuffer.Wallets/SetWalletPassword', - request, - metadata || {}, - methodDescriptor_Wallets_SetWalletPassword, - callback); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.SetWalletPasswordRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.io.bisq.protobuffer.WalletsPromiseClient.prototype.setWalletPassword = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/io.bisq.protobuffer.Wallets/SetWalletPassword', - request, - metadata || {}, - methodDescriptor_Wallets_SetWalletPassword); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.io.bisq.protobuffer.RemoveWalletPasswordRequest, - * !proto.io.bisq.protobuffer.RemoveWalletPasswordReply>} - */ -const methodDescriptor_Wallets_RemoveWalletPassword = new grpc.web.MethodDescriptor( - '/io.bisq.protobuffer.Wallets/RemoveWalletPassword', - grpc.web.MethodType.UNARY, - proto.io.bisq.protobuffer.RemoveWalletPasswordRequest, - proto.io.bisq.protobuffer.RemoveWalletPasswordReply, - /** - * @param {!proto.io.bisq.protobuffer.RemoveWalletPasswordRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.io.bisq.protobuffer.RemoveWalletPasswordReply.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.io.bisq.protobuffer.RemoveWalletPasswordRequest, - * !proto.io.bisq.protobuffer.RemoveWalletPasswordReply>} - */ -const methodInfo_Wallets_RemoveWalletPassword = new grpc.web.AbstractClientBase.MethodInfo( - proto.io.bisq.protobuffer.RemoveWalletPasswordReply, - /** - * @param {!proto.io.bisq.protobuffer.RemoveWalletPasswordRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.io.bisq.protobuffer.RemoveWalletPasswordReply.deserializeBinary -); - - -/** - * @param {!proto.io.bisq.protobuffer.RemoveWalletPasswordRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.io.bisq.protobuffer.RemoveWalletPasswordReply)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.io.bisq.protobuffer.WalletsClient.prototype.removeWalletPassword = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/io.bisq.protobuffer.Wallets/RemoveWalletPassword', - request, - metadata || {}, - methodDescriptor_Wallets_RemoveWalletPassword, - callback); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.RemoveWalletPasswordRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.io.bisq.protobuffer.WalletsPromiseClient.prototype.removeWalletPassword = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/io.bisq.protobuffer.Wallets/RemoveWalletPassword', - request, - metadata || {}, - methodDescriptor_Wallets_RemoveWalletPassword); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.io.bisq.protobuffer.LockWalletRequest, - * !proto.io.bisq.protobuffer.LockWalletReply>} - */ -const methodDescriptor_Wallets_LockWallet = new grpc.web.MethodDescriptor( - '/io.bisq.protobuffer.Wallets/LockWallet', - grpc.web.MethodType.UNARY, - proto.io.bisq.protobuffer.LockWalletRequest, - proto.io.bisq.protobuffer.LockWalletReply, - /** - * @param {!proto.io.bisq.protobuffer.LockWalletRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.io.bisq.protobuffer.LockWalletReply.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.io.bisq.protobuffer.LockWalletRequest, - * !proto.io.bisq.protobuffer.LockWalletReply>} - */ -const methodInfo_Wallets_LockWallet = new grpc.web.AbstractClientBase.MethodInfo( - proto.io.bisq.protobuffer.LockWalletReply, - /** - * @param {!proto.io.bisq.protobuffer.LockWalletRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.io.bisq.protobuffer.LockWalletReply.deserializeBinary -); - - -/** - * @param {!proto.io.bisq.protobuffer.LockWalletRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.io.bisq.protobuffer.LockWalletReply)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.io.bisq.protobuffer.WalletsClient.prototype.lockWallet = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/io.bisq.protobuffer.Wallets/LockWallet', - request, - metadata || {}, - methodDescriptor_Wallets_LockWallet, - callback); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.LockWalletRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.io.bisq.protobuffer.WalletsPromiseClient.prototype.lockWallet = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/io.bisq.protobuffer.Wallets/LockWallet', - request, - metadata || {}, - methodDescriptor_Wallets_LockWallet); -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.io.bisq.protobuffer.UnlockWalletRequest, - * !proto.io.bisq.protobuffer.UnlockWalletReply>} - */ -const methodDescriptor_Wallets_UnlockWallet = new grpc.web.MethodDescriptor( - '/io.bisq.protobuffer.Wallets/UnlockWallet', - grpc.web.MethodType.UNARY, - proto.io.bisq.protobuffer.UnlockWalletRequest, - proto.io.bisq.protobuffer.UnlockWalletReply, - /** - * @param {!proto.io.bisq.protobuffer.UnlockWalletRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.io.bisq.protobuffer.UnlockWalletReply.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.io.bisq.protobuffer.UnlockWalletRequest, - * !proto.io.bisq.protobuffer.UnlockWalletReply>} - */ -const methodInfo_Wallets_UnlockWallet = new grpc.web.AbstractClientBase.MethodInfo( - proto.io.bisq.protobuffer.UnlockWalletReply, - /** - * @param {!proto.io.bisq.protobuffer.UnlockWalletRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.io.bisq.protobuffer.UnlockWalletReply.deserializeBinary -); - - -/** - * @param {!proto.io.bisq.protobuffer.UnlockWalletRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.io.bisq.protobuffer.UnlockWalletReply)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.io.bisq.protobuffer.WalletsClient.prototype.unlockWallet = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/io.bisq.protobuffer.Wallets/UnlockWallet', - request, - metadata || {}, - methodDescriptor_Wallets_UnlockWallet, - callback); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.UnlockWalletRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.io.bisq.protobuffer.WalletsPromiseClient.prototype.unlockWallet = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/io.bisq.protobuffer.Wallets/UnlockWallet', - request, - metadata || {}, - methodDescriptor_Wallets_UnlockWallet); -}; - - -/** - * @param {string} hostname - * @param {?Object} credentials - * @param {?Object} options - * @constructor - * @struct - * @final - */ -proto.io.bisq.protobuffer.GetVersionClient = - function(hostname, credentials, options) { - if (!options) options = {}; - options['format'] = 'text'; - - /** - * @private @const {!grpc.web.GrpcWebClientBase} The client - */ - this.client_ = new grpc.web.GrpcWebClientBase(options); - - /** - * @private @const {string} The hostname - */ - this.hostname_ = hostname; - -}; - - -/** - * @param {string} hostname - * @param {?Object} credentials - * @param {?Object} options - * @constructor - * @struct - * @final - */ -proto.io.bisq.protobuffer.GetVersionPromiseClient = - function(hostname, credentials, options) { - if (!options) options = {}; - options['format'] = 'text'; - - /** - * @private @const {!grpc.web.GrpcWebClientBase} The client - */ - this.client_ = new grpc.web.GrpcWebClientBase(options); - - /** - * @private @const {string} The hostname - */ - this.hostname_ = hostname; - -}; - - -/** - * @const - * @type {!grpc.web.MethodDescriptor< - * !proto.io.bisq.protobuffer.GetVersionRequest, - * !proto.io.bisq.protobuffer.GetVersionReply>} - */ -const methodDescriptor_GetVersion_GetVersion = new grpc.web.MethodDescriptor( - '/io.bisq.protobuffer.GetVersion/GetVersion', - grpc.web.MethodType.UNARY, - proto.io.bisq.protobuffer.GetVersionRequest, - proto.io.bisq.protobuffer.GetVersionReply, - /** - * @param {!proto.io.bisq.protobuffer.GetVersionRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.io.bisq.protobuffer.GetVersionReply.deserializeBinary -); - - -/** - * @const - * @type {!grpc.web.AbstractClientBase.MethodInfo< - * !proto.io.bisq.protobuffer.GetVersionRequest, - * !proto.io.bisq.protobuffer.GetVersionReply>} - */ -const methodInfo_GetVersion_GetVersion = new grpc.web.AbstractClientBase.MethodInfo( - proto.io.bisq.protobuffer.GetVersionReply, - /** - * @param {!proto.io.bisq.protobuffer.GetVersionRequest} request - * @return {!Uint8Array} - */ - function(request) { - return request.serializeBinary(); - }, - proto.io.bisq.protobuffer.GetVersionReply.deserializeBinary -); - - -/** - * @param {!proto.io.bisq.protobuffer.GetVersionRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @param {function(?grpc.web.Error, ?proto.io.bisq.protobuffer.GetVersionReply)} - * callback The callback function(error, response) - * @return {!grpc.web.ClientReadableStream|undefined} - * The XHR Node Readable Stream - */ -proto.io.bisq.protobuffer.GetVersionClient.prototype.getVersion = - function(request, metadata, callback) { - return this.client_.rpcCall(this.hostname_ + - '/io.bisq.protobuffer.GetVersion/GetVersion', - request, - metadata || {}, - methodDescriptor_GetVersion_GetVersion, - callback); -}; - - -/** - * @param {!proto.io.bisq.protobuffer.GetVersionRequest} request The - * request proto - * @param {?Object} metadata User defined - * call metadata - * @return {!Promise} - * Promise that resolves to the response - */ -proto.io.bisq.protobuffer.GetVersionPromiseClient.prototype.getVersion = - function(request, metadata) { - return this.client_.unaryCall(this.hostname_ + - '/io.bisq.protobuffer.GetVersion/GetVersion', - request, - metadata || {}, - methodDescriptor_GetVersion_GetVersion); -}; - - -module.exports = proto.io.bisq.protobuffer; - diff --git a/src/protobuf/GrpcServiceClientPb.ts b/src/protobuf/GrpcServiceClientPb.ts new file mode 100644 index 00000000..762b20fd --- /dev/null +++ b/src/protobuf/GrpcServiceClientPb.ts @@ -0,0 +1,1788 @@ +/** + * @fileoverview gRPC-Web generated client stub for io.bisq.protobuffer + * @enhanceable + * @public + */ + +// GENERATED CODE -- DO NOT EDIT! + + +/* eslint-disable */ +// @ts-nocheck + + +import * as grpcWeb from 'grpc-web'; + +import * as grpc_pb from './grpc_pb'; + + +export class DisputeAgentsClient { + client_: grpcWeb.AbstractClientBase; + hostname_: string; + credentials_: null | { [index: string]: string; }; + options_: null | { [index: string]: any; }; + + constructor (hostname: string, + credentials?: null | { [index: string]: string; }, + options?: null | { [index: string]: any; }) { + if (!options) options = {}; + if (!credentials) credentials = {}; + options['format'] = 'text'; + + this.client_ = new grpcWeb.GrpcWebClientBase(options); + this.hostname_ = hostname; + this.credentials_ = credentials; + this.options_ = options; + } + + methodInfoRegisterDisputeAgent = new grpcWeb.AbstractClientBase.MethodInfo( + grpc_pb.RegisterDisputeAgentReply, + (request: grpc_pb.RegisterDisputeAgentRequest) => { + return request.serializeBinary(); + }, + grpc_pb.RegisterDisputeAgentReply.deserializeBinary + ); + + registerDisputeAgent( + request: grpc_pb.RegisterDisputeAgentRequest, + metadata: grpcWeb.Metadata | null): Promise; + + registerDisputeAgent( + request: grpc_pb.RegisterDisputeAgentRequest, + metadata: grpcWeb.Metadata | null, + callback: (err: grpcWeb.Error, + response: grpc_pb.RegisterDisputeAgentReply) => void): grpcWeb.ClientReadableStream; + + registerDisputeAgent( + request: grpc_pb.RegisterDisputeAgentRequest, + metadata: grpcWeb.Metadata | null, + callback?: (err: grpcWeb.Error, + response: grpc_pb.RegisterDisputeAgentReply) => void) { + if (callback !== undefined) { + return this.client_.rpcCall( + this.hostname_ + + '/io.bisq.protobuffer.DisputeAgents/RegisterDisputeAgent', + request, + metadata || {}, + this.methodInfoRegisterDisputeAgent, + callback); + } + return this.client_.unaryCall( + this.hostname_ + + '/io.bisq.protobuffer.DisputeAgents/RegisterDisputeAgent', + request, + metadata || {}, + this.methodInfoRegisterDisputeAgent); + } + +} + +export class HelpClient { + client_: grpcWeb.AbstractClientBase; + hostname_: string; + credentials_: null | { [index: string]: string; }; + options_: null | { [index: string]: any; }; + + constructor (hostname: string, + credentials?: null | { [index: string]: string; }, + options?: null | { [index: string]: any; }) { + if (!options) options = {}; + if (!credentials) credentials = {}; + options['format'] = 'text'; + + this.client_ = new grpcWeb.GrpcWebClientBase(options); + this.hostname_ = hostname; + this.credentials_ = credentials; + this.options_ = options; + } + + methodInfoGetMethodHelp = new grpcWeb.AbstractClientBase.MethodInfo( + grpc_pb.GetMethodHelpReply, + (request: grpc_pb.GetMethodHelpRequest) => { + return request.serializeBinary(); + }, + grpc_pb.GetMethodHelpReply.deserializeBinary + ); + + getMethodHelp( + request: grpc_pb.GetMethodHelpRequest, + metadata: grpcWeb.Metadata | null): Promise; + + getMethodHelp( + request: grpc_pb.GetMethodHelpRequest, + metadata: grpcWeb.Metadata | null, + callback: (err: grpcWeb.Error, + response: grpc_pb.GetMethodHelpReply) => void): grpcWeb.ClientReadableStream; + + getMethodHelp( + request: grpc_pb.GetMethodHelpRequest, + metadata: grpcWeb.Metadata | null, + callback?: (err: grpcWeb.Error, + response: grpc_pb.GetMethodHelpReply) => void) { + if (callback !== undefined) { + return this.client_.rpcCall( + this.hostname_ + + '/io.bisq.protobuffer.Help/GetMethodHelp', + request, + metadata || {}, + this.methodInfoGetMethodHelp, + callback); + } + return this.client_.unaryCall( + this.hostname_ + + '/io.bisq.protobuffer.Help/GetMethodHelp', + request, + metadata || {}, + this.methodInfoGetMethodHelp); + } + +} + +export class OffersClient { + client_: grpcWeb.AbstractClientBase; + hostname_: string; + credentials_: null | { [index: string]: string; }; + options_: null | { [index: string]: any; }; + + constructor (hostname: string, + credentials?: null | { [index: string]: string; }, + options?: null | { [index: string]: any; }) { + if (!options) options = {}; + if (!credentials) credentials = {}; + options['format'] = 'text'; + + this.client_ = new grpcWeb.GrpcWebClientBase(options); + this.hostname_ = hostname; + this.credentials_ = credentials; + this.options_ = options; + } + + methodInfoGetOffer = new grpcWeb.AbstractClientBase.MethodInfo( + grpc_pb.GetOfferReply, + (request: grpc_pb.GetOfferRequest) => { + return request.serializeBinary(); + }, + grpc_pb.GetOfferReply.deserializeBinary + ); + + getOffer( + request: grpc_pb.GetOfferRequest, + metadata: grpcWeb.Metadata | null): Promise; + + getOffer( + request: grpc_pb.GetOfferRequest, + metadata: grpcWeb.Metadata | null, + callback: (err: grpcWeb.Error, + response: grpc_pb.GetOfferReply) => void): grpcWeb.ClientReadableStream; + + getOffer( + request: grpc_pb.GetOfferRequest, + metadata: grpcWeb.Metadata | null, + callback?: (err: grpcWeb.Error, + response: grpc_pb.GetOfferReply) => void) { + if (callback !== undefined) { + return this.client_.rpcCall( + this.hostname_ + + '/io.bisq.protobuffer.Offers/GetOffer', + request, + metadata || {}, + this.methodInfoGetOffer, + callback); + } + return this.client_.unaryCall( + this.hostname_ + + '/io.bisq.protobuffer.Offers/GetOffer', + request, + metadata || {}, + this.methodInfoGetOffer); + } + + methodInfoGetMyOffer = new grpcWeb.AbstractClientBase.MethodInfo( + grpc_pb.GetMyOfferReply, + (request: grpc_pb.GetMyOfferRequest) => { + return request.serializeBinary(); + }, + grpc_pb.GetMyOfferReply.deserializeBinary + ); + + getMyOffer( + request: grpc_pb.GetMyOfferRequest, + metadata: grpcWeb.Metadata | null): Promise; + + getMyOffer( + request: grpc_pb.GetMyOfferRequest, + metadata: grpcWeb.Metadata | null, + callback: (err: grpcWeb.Error, + response: grpc_pb.GetMyOfferReply) => void): grpcWeb.ClientReadableStream; + + getMyOffer( + request: grpc_pb.GetMyOfferRequest, + metadata: grpcWeb.Metadata | null, + callback?: (err: grpcWeb.Error, + response: grpc_pb.GetMyOfferReply) => void) { + if (callback !== undefined) { + return this.client_.rpcCall( + this.hostname_ + + '/io.bisq.protobuffer.Offers/GetMyOffer', + request, + metadata || {}, + this.methodInfoGetMyOffer, + callback); + } + return this.client_.unaryCall( + this.hostname_ + + '/io.bisq.protobuffer.Offers/GetMyOffer', + request, + metadata || {}, + this.methodInfoGetMyOffer); + } + + methodInfoGetOffers = new grpcWeb.AbstractClientBase.MethodInfo( + grpc_pb.GetOffersReply, + (request: grpc_pb.GetOffersRequest) => { + return request.serializeBinary(); + }, + grpc_pb.GetOffersReply.deserializeBinary + ); + + getOffers( + request: grpc_pb.GetOffersRequest, + metadata: grpcWeb.Metadata | null): Promise; + + getOffers( + request: grpc_pb.GetOffersRequest, + metadata: grpcWeb.Metadata | null, + callback: (err: grpcWeb.Error, + response: grpc_pb.GetOffersReply) => void): grpcWeb.ClientReadableStream; + + getOffers( + request: grpc_pb.GetOffersRequest, + metadata: grpcWeb.Metadata | null, + callback?: (err: grpcWeb.Error, + response: grpc_pb.GetOffersReply) => void) { + if (callback !== undefined) { + return this.client_.rpcCall( + this.hostname_ + + '/io.bisq.protobuffer.Offers/GetOffers', + request, + metadata || {}, + this.methodInfoGetOffers, + callback); + } + return this.client_.unaryCall( + this.hostname_ + + '/io.bisq.protobuffer.Offers/GetOffers', + request, + metadata || {}, + this.methodInfoGetOffers); + } + + methodInfoGetMyOffers = new grpcWeb.AbstractClientBase.MethodInfo( + grpc_pb.GetMyOffersReply, + (request: grpc_pb.GetMyOffersRequest) => { + return request.serializeBinary(); + }, + grpc_pb.GetMyOffersReply.deserializeBinary + ); + + getMyOffers( + request: grpc_pb.GetMyOffersRequest, + metadata: grpcWeb.Metadata | null): Promise; + + getMyOffers( + request: grpc_pb.GetMyOffersRequest, + metadata: grpcWeb.Metadata | null, + callback: (err: grpcWeb.Error, + response: grpc_pb.GetMyOffersReply) => void): grpcWeb.ClientReadableStream; + + getMyOffers( + request: grpc_pb.GetMyOffersRequest, + metadata: grpcWeb.Metadata | null, + callback?: (err: grpcWeb.Error, + response: grpc_pb.GetMyOffersReply) => void) { + if (callback !== undefined) { + return this.client_.rpcCall( + this.hostname_ + + '/io.bisq.protobuffer.Offers/GetMyOffers', + request, + metadata || {}, + this.methodInfoGetMyOffers, + callback); + } + return this.client_.unaryCall( + this.hostname_ + + '/io.bisq.protobuffer.Offers/GetMyOffers', + request, + metadata || {}, + this.methodInfoGetMyOffers); + } + + methodInfoCreateOffer = new grpcWeb.AbstractClientBase.MethodInfo( + grpc_pb.CreateOfferReply, + (request: grpc_pb.CreateOfferRequest) => { + return request.serializeBinary(); + }, + grpc_pb.CreateOfferReply.deserializeBinary + ); + + createOffer( + request: grpc_pb.CreateOfferRequest, + metadata: grpcWeb.Metadata | null): Promise; + + createOffer( + request: grpc_pb.CreateOfferRequest, + metadata: grpcWeb.Metadata | null, + callback: (err: grpcWeb.Error, + response: grpc_pb.CreateOfferReply) => void): grpcWeb.ClientReadableStream; + + createOffer( + request: grpc_pb.CreateOfferRequest, + metadata: grpcWeb.Metadata | null, + callback?: (err: grpcWeb.Error, + response: grpc_pb.CreateOfferReply) => void) { + if (callback !== undefined) { + return this.client_.rpcCall( + this.hostname_ + + '/io.bisq.protobuffer.Offers/CreateOffer', + request, + metadata || {}, + this.methodInfoCreateOffer, + callback); + } + return this.client_.unaryCall( + this.hostname_ + + '/io.bisq.protobuffer.Offers/CreateOffer', + request, + metadata || {}, + this.methodInfoCreateOffer); + } + + methodInfoCancelOffer = new grpcWeb.AbstractClientBase.MethodInfo( + grpc_pb.CancelOfferReply, + (request: grpc_pb.CancelOfferRequest) => { + return request.serializeBinary(); + }, + grpc_pb.CancelOfferReply.deserializeBinary + ); + + cancelOffer( + request: grpc_pb.CancelOfferRequest, + metadata: grpcWeb.Metadata | null): Promise; + + cancelOffer( + request: grpc_pb.CancelOfferRequest, + metadata: grpcWeb.Metadata | null, + callback: (err: grpcWeb.Error, + response: grpc_pb.CancelOfferReply) => void): grpcWeb.ClientReadableStream; + + cancelOffer( + request: grpc_pb.CancelOfferRequest, + metadata: grpcWeb.Metadata | null, + callback?: (err: grpcWeb.Error, + response: grpc_pb.CancelOfferReply) => void) { + if (callback !== undefined) { + return this.client_.rpcCall( + this.hostname_ + + '/io.bisq.protobuffer.Offers/CancelOffer', + request, + metadata || {}, + this.methodInfoCancelOffer, + callback); + } + return this.client_.unaryCall( + this.hostname_ + + '/io.bisq.protobuffer.Offers/CancelOffer', + request, + metadata || {}, + this.methodInfoCancelOffer); + } + +} + +export class PaymentAccountsClient { + client_: grpcWeb.AbstractClientBase; + hostname_: string; + credentials_: null | { [index: string]: string; }; + options_: null | { [index: string]: any; }; + + constructor (hostname: string, + credentials?: null | { [index: string]: string; }, + options?: null | { [index: string]: any; }) { + if (!options) options = {}; + if (!credentials) credentials = {}; + options['format'] = 'text'; + + this.client_ = new grpcWeb.GrpcWebClientBase(options); + this.hostname_ = hostname; + this.credentials_ = credentials; + this.options_ = options; + } + + methodInfoCreatePaymentAccount = new grpcWeb.AbstractClientBase.MethodInfo( + grpc_pb.CreatePaymentAccountReply, + (request: grpc_pb.CreatePaymentAccountRequest) => { + return request.serializeBinary(); + }, + grpc_pb.CreatePaymentAccountReply.deserializeBinary + ); + + createPaymentAccount( + request: grpc_pb.CreatePaymentAccountRequest, + metadata: grpcWeb.Metadata | null): Promise; + + createPaymentAccount( + request: grpc_pb.CreatePaymentAccountRequest, + metadata: grpcWeb.Metadata | null, + callback: (err: grpcWeb.Error, + response: grpc_pb.CreatePaymentAccountReply) => void): grpcWeb.ClientReadableStream; + + createPaymentAccount( + request: grpc_pb.CreatePaymentAccountRequest, + metadata: grpcWeb.Metadata | null, + callback?: (err: grpcWeb.Error, + response: grpc_pb.CreatePaymentAccountReply) => void) { + if (callback !== undefined) { + return this.client_.rpcCall( + this.hostname_ + + '/io.bisq.protobuffer.PaymentAccounts/CreatePaymentAccount', + request, + metadata || {}, + this.methodInfoCreatePaymentAccount, + callback); + } + return this.client_.unaryCall( + this.hostname_ + + '/io.bisq.protobuffer.PaymentAccounts/CreatePaymentAccount', + request, + metadata || {}, + this.methodInfoCreatePaymentAccount); + } + + methodInfoGetPaymentAccounts = new grpcWeb.AbstractClientBase.MethodInfo( + grpc_pb.GetPaymentAccountsReply, + (request: grpc_pb.GetPaymentAccountsRequest) => { + return request.serializeBinary(); + }, + grpc_pb.GetPaymentAccountsReply.deserializeBinary + ); + + getPaymentAccounts( + request: grpc_pb.GetPaymentAccountsRequest, + metadata: grpcWeb.Metadata | null): Promise; + + getPaymentAccounts( + request: grpc_pb.GetPaymentAccountsRequest, + metadata: grpcWeb.Metadata | null, + callback: (err: grpcWeb.Error, + response: grpc_pb.GetPaymentAccountsReply) => void): grpcWeb.ClientReadableStream; + + getPaymentAccounts( + request: grpc_pb.GetPaymentAccountsRequest, + metadata: grpcWeb.Metadata | null, + callback?: (err: grpcWeb.Error, + response: grpc_pb.GetPaymentAccountsReply) => void) { + if (callback !== undefined) { + return this.client_.rpcCall( + this.hostname_ + + '/io.bisq.protobuffer.PaymentAccounts/GetPaymentAccounts', + request, + metadata || {}, + this.methodInfoGetPaymentAccounts, + callback); + } + return this.client_.unaryCall( + this.hostname_ + + '/io.bisq.protobuffer.PaymentAccounts/GetPaymentAccounts', + request, + metadata || {}, + this.methodInfoGetPaymentAccounts); + } + + methodInfoGetPaymentMethods = new grpcWeb.AbstractClientBase.MethodInfo( + grpc_pb.GetPaymentMethodsReply, + (request: grpc_pb.GetPaymentMethodsRequest) => { + return request.serializeBinary(); + }, + grpc_pb.GetPaymentMethodsReply.deserializeBinary + ); + + getPaymentMethods( + request: grpc_pb.GetPaymentMethodsRequest, + metadata: grpcWeb.Metadata | null): Promise; + + getPaymentMethods( + request: grpc_pb.GetPaymentMethodsRequest, + metadata: grpcWeb.Metadata | null, + callback: (err: grpcWeb.Error, + response: grpc_pb.GetPaymentMethodsReply) => void): grpcWeb.ClientReadableStream; + + getPaymentMethods( + request: grpc_pb.GetPaymentMethodsRequest, + metadata: grpcWeb.Metadata | null, + callback?: (err: grpcWeb.Error, + response: grpc_pb.GetPaymentMethodsReply) => void) { + if (callback !== undefined) { + return this.client_.rpcCall( + this.hostname_ + + '/io.bisq.protobuffer.PaymentAccounts/GetPaymentMethods', + request, + metadata || {}, + this.methodInfoGetPaymentMethods, + callback); + } + return this.client_.unaryCall( + this.hostname_ + + '/io.bisq.protobuffer.PaymentAccounts/GetPaymentMethods', + request, + metadata || {}, + this.methodInfoGetPaymentMethods); + } + + methodInfoGetPaymentAccountForm = new grpcWeb.AbstractClientBase.MethodInfo( + grpc_pb.GetPaymentAccountFormReply, + (request: grpc_pb.GetPaymentAccountFormRequest) => { + return request.serializeBinary(); + }, + grpc_pb.GetPaymentAccountFormReply.deserializeBinary + ); + + getPaymentAccountForm( + request: grpc_pb.GetPaymentAccountFormRequest, + metadata: grpcWeb.Metadata | null): Promise; + + getPaymentAccountForm( + request: grpc_pb.GetPaymentAccountFormRequest, + metadata: grpcWeb.Metadata | null, + callback: (err: grpcWeb.Error, + response: grpc_pb.GetPaymentAccountFormReply) => void): grpcWeb.ClientReadableStream; + + getPaymentAccountForm( + request: grpc_pb.GetPaymentAccountFormRequest, + metadata: grpcWeb.Metadata | null, + callback?: (err: grpcWeb.Error, + response: grpc_pb.GetPaymentAccountFormReply) => void) { + if (callback !== undefined) { + return this.client_.rpcCall( + this.hostname_ + + '/io.bisq.protobuffer.PaymentAccounts/GetPaymentAccountForm', + request, + metadata || {}, + this.methodInfoGetPaymentAccountForm, + callback); + } + return this.client_.unaryCall( + this.hostname_ + + '/io.bisq.protobuffer.PaymentAccounts/GetPaymentAccountForm', + request, + metadata || {}, + this.methodInfoGetPaymentAccountForm); + } + + methodInfoCreateCryptoCurrencyPaymentAccount = new grpcWeb.AbstractClientBase.MethodInfo( + grpc_pb.CreateCryptoCurrencyPaymentAccountReply, + (request: grpc_pb.CreateCryptoCurrencyPaymentAccountRequest) => { + return request.serializeBinary(); + }, + grpc_pb.CreateCryptoCurrencyPaymentAccountReply.deserializeBinary + ); + + createCryptoCurrencyPaymentAccount( + request: grpc_pb.CreateCryptoCurrencyPaymentAccountRequest, + metadata: grpcWeb.Metadata | null): Promise; + + createCryptoCurrencyPaymentAccount( + request: grpc_pb.CreateCryptoCurrencyPaymentAccountRequest, + metadata: grpcWeb.Metadata | null, + callback: (err: grpcWeb.Error, + response: grpc_pb.CreateCryptoCurrencyPaymentAccountReply) => void): grpcWeb.ClientReadableStream; + + createCryptoCurrencyPaymentAccount( + request: grpc_pb.CreateCryptoCurrencyPaymentAccountRequest, + metadata: grpcWeb.Metadata | null, + callback?: (err: grpcWeb.Error, + response: grpc_pb.CreateCryptoCurrencyPaymentAccountReply) => void) { + if (callback !== undefined) { + return this.client_.rpcCall( + this.hostname_ + + '/io.bisq.protobuffer.PaymentAccounts/CreateCryptoCurrencyPaymentAccount', + request, + metadata || {}, + this.methodInfoCreateCryptoCurrencyPaymentAccount, + callback); + } + return this.client_.unaryCall( + this.hostname_ + + '/io.bisq.protobuffer.PaymentAccounts/CreateCryptoCurrencyPaymentAccount', + request, + metadata || {}, + this.methodInfoCreateCryptoCurrencyPaymentAccount); + } + + methodInfoGetCryptoCurrencyPaymentMethods = new grpcWeb.AbstractClientBase.MethodInfo( + grpc_pb.GetCryptoCurrencyPaymentMethodsReply, + (request: grpc_pb.GetCryptoCurrencyPaymentMethodsRequest) => { + return request.serializeBinary(); + }, + grpc_pb.GetCryptoCurrencyPaymentMethodsReply.deserializeBinary + ); + + getCryptoCurrencyPaymentMethods( + request: grpc_pb.GetCryptoCurrencyPaymentMethodsRequest, + metadata: grpcWeb.Metadata | null): Promise; + + getCryptoCurrencyPaymentMethods( + request: grpc_pb.GetCryptoCurrencyPaymentMethodsRequest, + metadata: grpcWeb.Metadata | null, + callback: (err: grpcWeb.Error, + response: grpc_pb.GetCryptoCurrencyPaymentMethodsReply) => void): grpcWeb.ClientReadableStream; + + getCryptoCurrencyPaymentMethods( + request: grpc_pb.GetCryptoCurrencyPaymentMethodsRequest, + metadata: grpcWeb.Metadata | null, + callback?: (err: grpcWeb.Error, + response: grpc_pb.GetCryptoCurrencyPaymentMethodsReply) => void) { + if (callback !== undefined) { + return this.client_.rpcCall( + this.hostname_ + + '/io.bisq.protobuffer.PaymentAccounts/GetCryptoCurrencyPaymentMethods', + request, + metadata || {}, + this.methodInfoGetCryptoCurrencyPaymentMethods, + callback); + } + return this.client_.unaryCall( + this.hostname_ + + '/io.bisq.protobuffer.PaymentAccounts/GetCryptoCurrencyPaymentMethods', + request, + metadata || {}, + this.methodInfoGetCryptoCurrencyPaymentMethods); + } + +} + +export class PriceClient { + client_: grpcWeb.AbstractClientBase; + hostname_: string; + credentials_: null | { [index: string]: string; }; + options_: null | { [index: string]: any; }; + + constructor (hostname: string, + credentials?: null | { [index: string]: string; }, + options?: null | { [index: string]: any; }) { + if (!options) options = {}; + if (!credentials) credentials = {}; + options['format'] = 'text'; + + this.client_ = new grpcWeb.GrpcWebClientBase(options); + this.hostname_ = hostname; + this.credentials_ = credentials; + this.options_ = options; + } + + methodInfoGetMarketPrice = new grpcWeb.AbstractClientBase.MethodInfo( + grpc_pb.MarketPriceReply, + (request: grpc_pb.MarketPriceRequest) => { + return request.serializeBinary(); + }, + grpc_pb.MarketPriceReply.deserializeBinary + ); + + getMarketPrice( + request: grpc_pb.MarketPriceRequest, + metadata: grpcWeb.Metadata | null): Promise; + + getMarketPrice( + request: grpc_pb.MarketPriceRequest, + metadata: grpcWeb.Metadata | null, + callback: (err: grpcWeb.Error, + response: grpc_pb.MarketPriceReply) => void): grpcWeb.ClientReadableStream; + + getMarketPrice( + request: grpc_pb.MarketPriceRequest, + metadata: grpcWeb.Metadata | null, + callback?: (err: grpcWeb.Error, + response: grpc_pb.MarketPriceReply) => void) { + if (callback !== undefined) { + return this.client_.rpcCall( + this.hostname_ + + '/io.bisq.protobuffer.Price/GetMarketPrice', + request, + metadata || {}, + this.methodInfoGetMarketPrice, + callback); + } + return this.client_.unaryCall( + this.hostname_ + + '/io.bisq.protobuffer.Price/GetMarketPrice', + request, + metadata || {}, + this.methodInfoGetMarketPrice); + } + +} + +export class GetTradeStatisticsClient { + client_: grpcWeb.AbstractClientBase; + hostname_: string; + credentials_: null | { [index: string]: string; }; + options_: null | { [index: string]: any; }; + + constructor (hostname: string, + credentials?: null | { [index: string]: string; }, + options?: null | { [index: string]: any; }) { + if (!options) options = {}; + if (!credentials) credentials = {}; + options['format'] = 'text'; + + this.client_ = new grpcWeb.GrpcWebClientBase(options); + this.hostname_ = hostname; + this.credentials_ = credentials; + this.options_ = options; + } + + methodInfoGetTradeStatistics = new grpcWeb.AbstractClientBase.MethodInfo( + grpc_pb.GetTradeStatisticsReply, + (request: grpc_pb.GetTradeStatisticsRequest) => { + return request.serializeBinary(); + }, + grpc_pb.GetTradeStatisticsReply.deserializeBinary + ); + + getTradeStatistics( + request: grpc_pb.GetTradeStatisticsRequest, + metadata: grpcWeb.Metadata | null): Promise; + + getTradeStatistics( + request: grpc_pb.GetTradeStatisticsRequest, + metadata: grpcWeb.Metadata | null, + callback: (err: grpcWeb.Error, + response: grpc_pb.GetTradeStatisticsReply) => void): grpcWeb.ClientReadableStream; + + getTradeStatistics( + request: grpc_pb.GetTradeStatisticsRequest, + metadata: grpcWeb.Metadata | null, + callback?: (err: grpcWeb.Error, + response: grpc_pb.GetTradeStatisticsReply) => void) { + if (callback !== undefined) { + return this.client_.rpcCall( + this.hostname_ + + '/io.bisq.protobuffer.GetTradeStatistics/GetTradeStatistics', + request, + metadata || {}, + this.methodInfoGetTradeStatistics, + callback); + } + return this.client_.unaryCall( + this.hostname_ + + '/io.bisq.protobuffer.GetTradeStatistics/GetTradeStatistics', + request, + metadata || {}, + this.methodInfoGetTradeStatistics); + } + +} + +export class ShutdownServerClient { + client_: grpcWeb.AbstractClientBase; + hostname_: string; + credentials_: null | { [index: string]: string; }; + options_: null | { [index: string]: any; }; + + constructor (hostname: string, + credentials?: null | { [index: string]: string; }, + options?: null | { [index: string]: any; }) { + if (!options) options = {}; + if (!credentials) credentials = {}; + options['format'] = 'text'; + + this.client_ = new grpcWeb.GrpcWebClientBase(options); + this.hostname_ = hostname; + this.credentials_ = credentials; + this.options_ = options; + } + + methodInfoStop = new grpcWeb.AbstractClientBase.MethodInfo( + grpc_pb.StopReply, + (request: grpc_pb.StopRequest) => { + return request.serializeBinary(); + }, + grpc_pb.StopReply.deserializeBinary + ); + + stop( + request: grpc_pb.StopRequest, + metadata: grpcWeb.Metadata | null): Promise; + + stop( + request: grpc_pb.StopRequest, + metadata: grpcWeb.Metadata | null, + callback: (err: grpcWeb.Error, + response: grpc_pb.StopReply) => void): grpcWeb.ClientReadableStream; + + stop( + request: grpc_pb.StopRequest, + metadata: grpcWeb.Metadata | null, + callback?: (err: grpcWeb.Error, + response: grpc_pb.StopReply) => void) { + if (callback !== undefined) { + return this.client_.rpcCall( + this.hostname_ + + '/io.bisq.protobuffer.ShutdownServer/Stop', + request, + metadata || {}, + this.methodInfoStop, + callback); + } + return this.client_.unaryCall( + this.hostname_ + + '/io.bisq.protobuffer.ShutdownServer/Stop', + request, + metadata || {}, + this.methodInfoStop); + } + +} + +export class TradesClient { + client_: grpcWeb.AbstractClientBase; + hostname_: string; + credentials_: null | { [index: string]: string; }; + options_: null | { [index: string]: any; }; + + constructor (hostname: string, + credentials?: null | { [index: string]: string; }, + options?: null | { [index: string]: any; }) { + if (!options) options = {}; + if (!credentials) credentials = {}; + options['format'] = 'text'; + + this.client_ = new grpcWeb.GrpcWebClientBase(options); + this.hostname_ = hostname; + this.credentials_ = credentials; + this.options_ = options; + } + + methodInfoGetTrade = new grpcWeb.AbstractClientBase.MethodInfo( + grpc_pb.GetTradeReply, + (request: grpc_pb.GetTradeRequest) => { + return request.serializeBinary(); + }, + grpc_pb.GetTradeReply.deserializeBinary + ); + + getTrade( + request: grpc_pb.GetTradeRequest, + metadata: grpcWeb.Metadata | null): Promise; + + getTrade( + request: grpc_pb.GetTradeRequest, + metadata: grpcWeb.Metadata | null, + callback: (err: grpcWeb.Error, + response: grpc_pb.GetTradeReply) => void): grpcWeb.ClientReadableStream; + + getTrade( + request: grpc_pb.GetTradeRequest, + metadata: grpcWeb.Metadata | null, + callback?: (err: grpcWeb.Error, + response: grpc_pb.GetTradeReply) => void) { + if (callback !== undefined) { + return this.client_.rpcCall( + this.hostname_ + + '/io.bisq.protobuffer.Trades/GetTrade', + request, + metadata || {}, + this.methodInfoGetTrade, + callback); + } + return this.client_.unaryCall( + this.hostname_ + + '/io.bisq.protobuffer.Trades/GetTrade', + request, + metadata || {}, + this.methodInfoGetTrade); + } + + methodInfoTakeOffer = new grpcWeb.AbstractClientBase.MethodInfo( + grpc_pb.TakeOfferReply, + (request: grpc_pb.TakeOfferRequest) => { + return request.serializeBinary(); + }, + grpc_pb.TakeOfferReply.deserializeBinary + ); + + takeOffer( + request: grpc_pb.TakeOfferRequest, + metadata: grpcWeb.Metadata | null): Promise; + + takeOffer( + request: grpc_pb.TakeOfferRequest, + metadata: grpcWeb.Metadata | null, + callback: (err: grpcWeb.Error, + response: grpc_pb.TakeOfferReply) => void): grpcWeb.ClientReadableStream; + + takeOffer( + request: grpc_pb.TakeOfferRequest, + metadata: grpcWeb.Metadata | null, + callback?: (err: grpcWeb.Error, + response: grpc_pb.TakeOfferReply) => void) { + if (callback !== undefined) { + return this.client_.rpcCall( + this.hostname_ + + '/io.bisq.protobuffer.Trades/TakeOffer', + request, + metadata || {}, + this.methodInfoTakeOffer, + callback); + } + return this.client_.unaryCall( + this.hostname_ + + '/io.bisq.protobuffer.Trades/TakeOffer', + request, + metadata || {}, + this.methodInfoTakeOffer); + } + + methodInfoConfirmPaymentStarted = new grpcWeb.AbstractClientBase.MethodInfo( + grpc_pb.ConfirmPaymentStartedReply, + (request: grpc_pb.ConfirmPaymentStartedRequest) => { + return request.serializeBinary(); + }, + grpc_pb.ConfirmPaymentStartedReply.deserializeBinary + ); + + confirmPaymentStarted( + request: grpc_pb.ConfirmPaymentStartedRequest, + metadata: grpcWeb.Metadata | null): Promise; + + confirmPaymentStarted( + request: grpc_pb.ConfirmPaymentStartedRequest, + metadata: grpcWeb.Metadata | null, + callback: (err: grpcWeb.Error, + response: grpc_pb.ConfirmPaymentStartedReply) => void): grpcWeb.ClientReadableStream; + + confirmPaymentStarted( + request: grpc_pb.ConfirmPaymentStartedRequest, + metadata: grpcWeb.Metadata | null, + callback?: (err: grpcWeb.Error, + response: grpc_pb.ConfirmPaymentStartedReply) => void) { + if (callback !== undefined) { + return this.client_.rpcCall( + this.hostname_ + + '/io.bisq.protobuffer.Trades/ConfirmPaymentStarted', + request, + metadata || {}, + this.methodInfoConfirmPaymentStarted, + callback); + } + return this.client_.unaryCall( + this.hostname_ + + '/io.bisq.protobuffer.Trades/ConfirmPaymentStarted', + request, + metadata || {}, + this.methodInfoConfirmPaymentStarted); + } + + methodInfoConfirmPaymentReceived = new grpcWeb.AbstractClientBase.MethodInfo( + grpc_pb.ConfirmPaymentReceivedReply, + (request: grpc_pb.ConfirmPaymentReceivedRequest) => { + return request.serializeBinary(); + }, + grpc_pb.ConfirmPaymentReceivedReply.deserializeBinary + ); + + confirmPaymentReceived( + request: grpc_pb.ConfirmPaymentReceivedRequest, + metadata: grpcWeb.Metadata | null): Promise; + + confirmPaymentReceived( + request: grpc_pb.ConfirmPaymentReceivedRequest, + metadata: grpcWeb.Metadata | null, + callback: (err: grpcWeb.Error, + response: grpc_pb.ConfirmPaymentReceivedReply) => void): grpcWeb.ClientReadableStream; + + confirmPaymentReceived( + request: grpc_pb.ConfirmPaymentReceivedRequest, + metadata: grpcWeb.Metadata | null, + callback?: (err: grpcWeb.Error, + response: grpc_pb.ConfirmPaymentReceivedReply) => void) { + if (callback !== undefined) { + return this.client_.rpcCall( + this.hostname_ + + '/io.bisq.protobuffer.Trades/ConfirmPaymentReceived', + request, + metadata || {}, + this.methodInfoConfirmPaymentReceived, + callback); + } + return this.client_.unaryCall( + this.hostname_ + + '/io.bisq.protobuffer.Trades/ConfirmPaymentReceived', + request, + metadata || {}, + this.methodInfoConfirmPaymentReceived); + } + + methodInfoKeepFunds = new grpcWeb.AbstractClientBase.MethodInfo( + grpc_pb.KeepFundsReply, + (request: grpc_pb.KeepFundsRequest) => { + return request.serializeBinary(); + }, + grpc_pb.KeepFundsReply.deserializeBinary + ); + + keepFunds( + request: grpc_pb.KeepFundsRequest, + metadata: grpcWeb.Metadata | null): Promise; + + keepFunds( + request: grpc_pb.KeepFundsRequest, + metadata: grpcWeb.Metadata | null, + callback: (err: grpcWeb.Error, + response: grpc_pb.KeepFundsReply) => void): grpcWeb.ClientReadableStream; + + keepFunds( + request: grpc_pb.KeepFundsRequest, + metadata: grpcWeb.Metadata | null, + callback?: (err: grpcWeb.Error, + response: grpc_pb.KeepFundsReply) => void) { + if (callback !== undefined) { + return this.client_.rpcCall( + this.hostname_ + + '/io.bisq.protobuffer.Trades/KeepFunds', + request, + metadata || {}, + this.methodInfoKeepFunds, + callback); + } + return this.client_.unaryCall( + this.hostname_ + + '/io.bisq.protobuffer.Trades/KeepFunds', + request, + metadata || {}, + this.methodInfoKeepFunds); + } + + methodInfoWithdrawFunds = new grpcWeb.AbstractClientBase.MethodInfo( + grpc_pb.WithdrawFundsReply, + (request: grpc_pb.WithdrawFundsRequest) => { + return request.serializeBinary(); + }, + grpc_pb.WithdrawFundsReply.deserializeBinary + ); + + withdrawFunds( + request: grpc_pb.WithdrawFundsRequest, + metadata: grpcWeb.Metadata | null): Promise; + + withdrawFunds( + request: grpc_pb.WithdrawFundsRequest, + metadata: grpcWeb.Metadata | null, + callback: (err: grpcWeb.Error, + response: grpc_pb.WithdrawFundsReply) => void): grpcWeb.ClientReadableStream; + + withdrawFunds( + request: grpc_pb.WithdrawFundsRequest, + metadata: grpcWeb.Metadata | null, + callback?: (err: grpcWeb.Error, + response: grpc_pb.WithdrawFundsReply) => void) { + if (callback !== undefined) { + return this.client_.rpcCall( + this.hostname_ + + '/io.bisq.protobuffer.Trades/WithdrawFunds', + request, + metadata || {}, + this.methodInfoWithdrawFunds, + callback); + } + return this.client_.unaryCall( + this.hostname_ + + '/io.bisq.protobuffer.Trades/WithdrawFunds', + request, + metadata || {}, + this.methodInfoWithdrawFunds); + } + +} + +export class WalletsClient { + client_: grpcWeb.AbstractClientBase; + hostname_: string; + credentials_: null | { [index: string]: string; }; + options_: null | { [index: string]: any; }; + + constructor (hostname: string, + credentials?: null | { [index: string]: string; }, + options?: null | { [index: string]: any; }) { + if (!options) options = {}; + if (!credentials) credentials = {}; + options['format'] = 'text'; + + this.client_ = new grpcWeb.GrpcWebClientBase(options); + this.hostname_ = hostname; + this.credentials_ = credentials; + this.options_ = options; + } + + methodInfoGetBalances = new grpcWeb.AbstractClientBase.MethodInfo( + grpc_pb.GetBalancesReply, + (request: grpc_pb.GetBalancesRequest) => { + return request.serializeBinary(); + }, + grpc_pb.GetBalancesReply.deserializeBinary + ); + + getBalances( + request: grpc_pb.GetBalancesRequest, + metadata: grpcWeb.Metadata | null): Promise; + + getBalances( + request: grpc_pb.GetBalancesRequest, + metadata: grpcWeb.Metadata | null, + callback: (err: grpcWeb.Error, + response: grpc_pb.GetBalancesReply) => void): grpcWeb.ClientReadableStream; + + getBalances( + request: grpc_pb.GetBalancesRequest, + metadata: grpcWeb.Metadata | null, + callback?: (err: grpcWeb.Error, + response: grpc_pb.GetBalancesReply) => void) { + if (callback !== undefined) { + return this.client_.rpcCall( + this.hostname_ + + '/io.bisq.protobuffer.Wallets/GetBalances', + request, + metadata || {}, + this.methodInfoGetBalances, + callback); + } + return this.client_.unaryCall( + this.hostname_ + + '/io.bisq.protobuffer.Wallets/GetBalances', + request, + metadata || {}, + this.methodInfoGetBalances); + } + + methodInfoGetAddressBalance = new grpcWeb.AbstractClientBase.MethodInfo( + grpc_pb.GetAddressBalanceReply, + (request: grpc_pb.GetAddressBalanceRequest) => { + return request.serializeBinary(); + }, + grpc_pb.GetAddressBalanceReply.deserializeBinary + ); + + getAddressBalance( + request: grpc_pb.GetAddressBalanceRequest, + metadata: grpcWeb.Metadata | null): Promise; + + getAddressBalance( + request: grpc_pb.GetAddressBalanceRequest, + metadata: grpcWeb.Metadata | null, + callback: (err: grpcWeb.Error, + response: grpc_pb.GetAddressBalanceReply) => void): grpcWeb.ClientReadableStream; + + getAddressBalance( + request: grpc_pb.GetAddressBalanceRequest, + metadata: grpcWeb.Metadata | null, + callback?: (err: grpcWeb.Error, + response: grpc_pb.GetAddressBalanceReply) => void) { + if (callback !== undefined) { + return this.client_.rpcCall( + this.hostname_ + + '/io.bisq.protobuffer.Wallets/GetAddressBalance', + request, + metadata || {}, + this.methodInfoGetAddressBalance, + callback); + } + return this.client_.unaryCall( + this.hostname_ + + '/io.bisq.protobuffer.Wallets/GetAddressBalance', + request, + metadata || {}, + this.methodInfoGetAddressBalance); + } + + methodInfoGetUnusedBsqAddress = new grpcWeb.AbstractClientBase.MethodInfo( + grpc_pb.GetUnusedBsqAddressReply, + (request: grpc_pb.GetUnusedBsqAddressRequest) => { + return request.serializeBinary(); + }, + grpc_pb.GetUnusedBsqAddressReply.deserializeBinary + ); + + getUnusedBsqAddress( + request: grpc_pb.GetUnusedBsqAddressRequest, + metadata: grpcWeb.Metadata | null): Promise; + + getUnusedBsqAddress( + request: grpc_pb.GetUnusedBsqAddressRequest, + metadata: grpcWeb.Metadata | null, + callback: (err: grpcWeb.Error, + response: grpc_pb.GetUnusedBsqAddressReply) => void): grpcWeb.ClientReadableStream; + + getUnusedBsqAddress( + request: grpc_pb.GetUnusedBsqAddressRequest, + metadata: grpcWeb.Metadata | null, + callback?: (err: grpcWeb.Error, + response: grpc_pb.GetUnusedBsqAddressReply) => void) { + if (callback !== undefined) { + return this.client_.rpcCall( + this.hostname_ + + '/io.bisq.protobuffer.Wallets/GetUnusedBsqAddress', + request, + metadata || {}, + this.methodInfoGetUnusedBsqAddress, + callback); + } + return this.client_.unaryCall( + this.hostname_ + + '/io.bisq.protobuffer.Wallets/GetUnusedBsqAddress', + request, + metadata || {}, + this.methodInfoGetUnusedBsqAddress); + } + + methodInfoSendBsq = new grpcWeb.AbstractClientBase.MethodInfo( + grpc_pb.SendBsqReply, + (request: grpc_pb.SendBsqRequest) => { + return request.serializeBinary(); + }, + grpc_pb.SendBsqReply.deserializeBinary + ); + + sendBsq( + request: grpc_pb.SendBsqRequest, + metadata: grpcWeb.Metadata | null): Promise; + + sendBsq( + request: grpc_pb.SendBsqRequest, + metadata: grpcWeb.Metadata | null, + callback: (err: grpcWeb.Error, + response: grpc_pb.SendBsqReply) => void): grpcWeb.ClientReadableStream; + + sendBsq( + request: grpc_pb.SendBsqRequest, + metadata: grpcWeb.Metadata | null, + callback?: (err: grpcWeb.Error, + response: grpc_pb.SendBsqReply) => void) { + if (callback !== undefined) { + return this.client_.rpcCall( + this.hostname_ + + '/io.bisq.protobuffer.Wallets/SendBsq', + request, + metadata || {}, + this.methodInfoSendBsq, + callback); + } + return this.client_.unaryCall( + this.hostname_ + + '/io.bisq.protobuffer.Wallets/SendBsq', + request, + metadata || {}, + this.methodInfoSendBsq); + } + + methodInfoSendBtc = new grpcWeb.AbstractClientBase.MethodInfo( + grpc_pb.SendBtcReply, + (request: grpc_pb.SendBtcRequest) => { + return request.serializeBinary(); + }, + grpc_pb.SendBtcReply.deserializeBinary + ); + + sendBtc( + request: grpc_pb.SendBtcRequest, + metadata: grpcWeb.Metadata | null): Promise; + + sendBtc( + request: grpc_pb.SendBtcRequest, + metadata: grpcWeb.Metadata | null, + callback: (err: grpcWeb.Error, + response: grpc_pb.SendBtcReply) => void): grpcWeb.ClientReadableStream; + + sendBtc( + request: grpc_pb.SendBtcRequest, + metadata: grpcWeb.Metadata | null, + callback?: (err: grpcWeb.Error, + response: grpc_pb.SendBtcReply) => void) { + if (callback !== undefined) { + return this.client_.rpcCall( + this.hostname_ + + '/io.bisq.protobuffer.Wallets/SendBtc', + request, + metadata || {}, + this.methodInfoSendBtc, + callback); + } + return this.client_.unaryCall( + this.hostname_ + + '/io.bisq.protobuffer.Wallets/SendBtc', + request, + metadata || {}, + this.methodInfoSendBtc); + } + + methodInfoVerifyBsqSentToAddress = new grpcWeb.AbstractClientBase.MethodInfo( + grpc_pb.VerifyBsqSentToAddressReply, + (request: grpc_pb.VerifyBsqSentToAddressRequest) => { + return request.serializeBinary(); + }, + grpc_pb.VerifyBsqSentToAddressReply.deserializeBinary + ); + + verifyBsqSentToAddress( + request: grpc_pb.VerifyBsqSentToAddressRequest, + metadata: grpcWeb.Metadata | null): Promise; + + verifyBsqSentToAddress( + request: grpc_pb.VerifyBsqSentToAddressRequest, + metadata: grpcWeb.Metadata | null, + callback: (err: grpcWeb.Error, + response: grpc_pb.VerifyBsqSentToAddressReply) => void): grpcWeb.ClientReadableStream; + + verifyBsqSentToAddress( + request: grpc_pb.VerifyBsqSentToAddressRequest, + metadata: grpcWeb.Metadata | null, + callback?: (err: grpcWeb.Error, + response: grpc_pb.VerifyBsqSentToAddressReply) => void) { + if (callback !== undefined) { + return this.client_.rpcCall( + this.hostname_ + + '/io.bisq.protobuffer.Wallets/VerifyBsqSentToAddress', + request, + metadata || {}, + this.methodInfoVerifyBsqSentToAddress, + callback); + } + return this.client_.unaryCall( + this.hostname_ + + '/io.bisq.protobuffer.Wallets/VerifyBsqSentToAddress', + request, + metadata || {}, + this.methodInfoVerifyBsqSentToAddress); + } + + methodInfoGetTxFeeRate = new grpcWeb.AbstractClientBase.MethodInfo( + grpc_pb.GetTxFeeRateReply, + (request: grpc_pb.GetTxFeeRateRequest) => { + return request.serializeBinary(); + }, + grpc_pb.GetTxFeeRateReply.deserializeBinary + ); + + getTxFeeRate( + request: grpc_pb.GetTxFeeRateRequest, + metadata: grpcWeb.Metadata | null): Promise; + + getTxFeeRate( + request: grpc_pb.GetTxFeeRateRequest, + metadata: grpcWeb.Metadata | null, + callback: (err: grpcWeb.Error, + response: grpc_pb.GetTxFeeRateReply) => void): grpcWeb.ClientReadableStream; + + getTxFeeRate( + request: grpc_pb.GetTxFeeRateRequest, + metadata: grpcWeb.Metadata | null, + callback?: (err: grpcWeb.Error, + response: grpc_pb.GetTxFeeRateReply) => void) { + if (callback !== undefined) { + return this.client_.rpcCall( + this.hostname_ + + '/io.bisq.protobuffer.Wallets/GetTxFeeRate', + request, + metadata || {}, + this.methodInfoGetTxFeeRate, + callback); + } + return this.client_.unaryCall( + this.hostname_ + + '/io.bisq.protobuffer.Wallets/GetTxFeeRate', + request, + metadata || {}, + this.methodInfoGetTxFeeRate); + } + + methodInfoSetTxFeeRatePreference = new grpcWeb.AbstractClientBase.MethodInfo( + grpc_pb.SetTxFeeRatePreferenceReply, + (request: grpc_pb.SetTxFeeRatePreferenceRequest) => { + return request.serializeBinary(); + }, + grpc_pb.SetTxFeeRatePreferenceReply.deserializeBinary + ); + + setTxFeeRatePreference( + request: grpc_pb.SetTxFeeRatePreferenceRequest, + metadata: grpcWeb.Metadata | null): Promise; + + setTxFeeRatePreference( + request: grpc_pb.SetTxFeeRatePreferenceRequest, + metadata: grpcWeb.Metadata | null, + callback: (err: grpcWeb.Error, + response: grpc_pb.SetTxFeeRatePreferenceReply) => void): grpcWeb.ClientReadableStream; + + setTxFeeRatePreference( + request: grpc_pb.SetTxFeeRatePreferenceRequest, + metadata: grpcWeb.Metadata | null, + callback?: (err: grpcWeb.Error, + response: grpc_pb.SetTxFeeRatePreferenceReply) => void) { + if (callback !== undefined) { + return this.client_.rpcCall( + this.hostname_ + + '/io.bisq.protobuffer.Wallets/SetTxFeeRatePreference', + request, + metadata || {}, + this.methodInfoSetTxFeeRatePreference, + callback); + } + return this.client_.unaryCall( + this.hostname_ + + '/io.bisq.protobuffer.Wallets/SetTxFeeRatePreference', + request, + metadata || {}, + this.methodInfoSetTxFeeRatePreference); + } + + methodInfoUnsetTxFeeRatePreference = new grpcWeb.AbstractClientBase.MethodInfo( + grpc_pb.UnsetTxFeeRatePreferenceReply, + (request: grpc_pb.UnsetTxFeeRatePreferenceRequest) => { + return request.serializeBinary(); + }, + grpc_pb.UnsetTxFeeRatePreferenceReply.deserializeBinary + ); + + unsetTxFeeRatePreference( + request: grpc_pb.UnsetTxFeeRatePreferenceRequest, + metadata: grpcWeb.Metadata | null): Promise; + + unsetTxFeeRatePreference( + request: grpc_pb.UnsetTxFeeRatePreferenceRequest, + metadata: grpcWeb.Metadata | null, + callback: (err: grpcWeb.Error, + response: grpc_pb.UnsetTxFeeRatePreferenceReply) => void): grpcWeb.ClientReadableStream; + + unsetTxFeeRatePreference( + request: grpc_pb.UnsetTxFeeRatePreferenceRequest, + metadata: grpcWeb.Metadata | null, + callback?: (err: grpcWeb.Error, + response: grpc_pb.UnsetTxFeeRatePreferenceReply) => void) { + if (callback !== undefined) { + return this.client_.rpcCall( + this.hostname_ + + '/io.bisq.protobuffer.Wallets/UnsetTxFeeRatePreference', + request, + metadata || {}, + this.methodInfoUnsetTxFeeRatePreference, + callback); + } + return this.client_.unaryCall( + this.hostname_ + + '/io.bisq.protobuffer.Wallets/UnsetTxFeeRatePreference', + request, + metadata || {}, + this.methodInfoUnsetTxFeeRatePreference); + } + + methodInfoGetTransaction = new grpcWeb.AbstractClientBase.MethodInfo( + grpc_pb.GetTransactionReply, + (request: grpc_pb.GetTransactionRequest) => { + return request.serializeBinary(); + }, + grpc_pb.GetTransactionReply.deserializeBinary + ); + + getTransaction( + request: grpc_pb.GetTransactionRequest, + metadata: grpcWeb.Metadata | null): Promise; + + getTransaction( + request: grpc_pb.GetTransactionRequest, + metadata: grpcWeb.Metadata | null, + callback: (err: grpcWeb.Error, + response: grpc_pb.GetTransactionReply) => void): grpcWeb.ClientReadableStream; + + getTransaction( + request: grpc_pb.GetTransactionRequest, + metadata: grpcWeb.Metadata | null, + callback?: (err: grpcWeb.Error, + response: grpc_pb.GetTransactionReply) => void) { + if (callback !== undefined) { + return this.client_.rpcCall( + this.hostname_ + + '/io.bisq.protobuffer.Wallets/GetTransaction', + request, + metadata || {}, + this.methodInfoGetTransaction, + callback); + } + return this.client_.unaryCall( + this.hostname_ + + '/io.bisq.protobuffer.Wallets/GetTransaction', + request, + metadata || {}, + this.methodInfoGetTransaction); + } + + methodInfoGetFundingAddresses = new grpcWeb.AbstractClientBase.MethodInfo( + grpc_pb.GetFundingAddressesReply, + (request: grpc_pb.GetFundingAddressesRequest) => { + return request.serializeBinary(); + }, + grpc_pb.GetFundingAddressesReply.deserializeBinary + ); + + getFundingAddresses( + request: grpc_pb.GetFundingAddressesRequest, + metadata: grpcWeb.Metadata | null): Promise; + + getFundingAddresses( + request: grpc_pb.GetFundingAddressesRequest, + metadata: grpcWeb.Metadata | null, + callback: (err: grpcWeb.Error, + response: grpc_pb.GetFundingAddressesReply) => void): grpcWeb.ClientReadableStream; + + getFundingAddresses( + request: grpc_pb.GetFundingAddressesRequest, + metadata: grpcWeb.Metadata | null, + callback?: (err: grpcWeb.Error, + response: grpc_pb.GetFundingAddressesReply) => void) { + if (callback !== undefined) { + return this.client_.rpcCall( + this.hostname_ + + '/io.bisq.protobuffer.Wallets/GetFundingAddresses', + request, + metadata || {}, + this.methodInfoGetFundingAddresses, + callback); + } + return this.client_.unaryCall( + this.hostname_ + + '/io.bisq.protobuffer.Wallets/GetFundingAddresses', + request, + metadata || {}, + this.methodInfoGetFundingAddresses); + } + + methodInfoSetWalletPassword = new grpcWeb.AbstractClientBase.MethodInfo( + grpc_pb.SetWalletPasswordReply, + (request: grpc_pb.SetWalletPasswordRequest) => { + return request.serializeBinary(); + }, + grpc_pb.SetWalletPasswordReply.deserializeBinary + ); + + setWalletPassword( + request: grpc_pb.SetWalletPasswordRequest, + metadata: grpcWeb.Metadata | null): Promise; + + setWalletPassword( + request: grpc_pb.SetWalletPasswordRequest, + metadata: grpcWeb.Metadata | null, + callback: (err: grpcWeb.Error, + response: grpc_pb.SetWalletPasswordReply) => void): grpcWeb.ClientReadableStream; + + setWalletPassword( + request: grpc_pb.SetWalletPasswordRequest, + metadata: grpcWeb.Metadata | null, + callback?: (err: grpcWeb.Error, + response: grpc_pb.SetWalletPasswordReply) => void) { + if (callback !== undefined) { + return this.client_.rpcCall( + this.hostname_ + + '/io.bisq.protobuffer.Wallets/SetWalletPassword', + request, + metadata || {}, + this.methodInfoSetWalletPassword, + callback); + } + return this.client_.unaryCall( + this.hostname_ + + '/io.bisq.protobuffer.Wallets/SetWalletPassword', + request, + metadata || {}, + this.methodInfoSetWalletPassword); + } + + methodInfoRemoveWalletPassword = new grpcWeb.AbstractClientBase.MethodInfo( + grpc_pb.RemoveWalletPasswordReply, + (request: grpc_pb.RemoveWalletPasswordRequest) => { + return request.serializeBinary(); + }, + grpc_pb.RemoveWalletPasswordReply.deserializeBinary + ); + + removeWalletPassword( + request: grpc_pb.RemoveWalletPasswordRequest, + metadata: grpcWeb.Metadata | null): Promise; + + removeWalletPassword( + request: grpc_pb.RemoveWalletPasswordRequest, + metadata: grpcWeb.Metadata | null, + callback: (err: grpcWeb.Error, + response: grpc_pb.RemoveWalletPasswordReply) => void): grpcWeb.ClientReadableStream; + + removeWalletPassword( + request: grpc_pb.RemoveWalletPasswordRequest, + metadata: grpcWeb.Metadata | null, + callback?: (err: grpcWeb.Error, + response: grpc_pb.RemoveWalletPasswordReply) => void) { + if (callback !== undefined) { + return this.client_.rpcCall( + this.hostname_ + + '/io.bisq.protobuffer.Wallets/RemoveWalletPassword', + request, + metadata || {}, + this.methodInfoRemoveWalletPassword, + callback); + } + return this.client_.unaryCall( + this.hostname_ + + '/io.bisq.protobuffer.Wallets/RemoveWalletPassword', + request, + metadata || {}, + this.methodInfoRemoveWalletPassword); + } + + methodInfoLockWallet = new grpcWeb.AbstractClientBase.MethodInfo( + grpc_pb.LockWalletReply, + (request: grpc_pb.LockWalletRequest) => { + return request.serializeBinary(); + }, + grpc_pb.LockWalletReply.deserializeBinary + ); + + lockWallet( + request: grpc_pb.LockWalletRequest, + metadata: grpcWeb.Metadata | null): Promise; + + lockWallet( + request: grpc_pb.LockWalletRequest, + metadata: grpcWeb.Metadata | null, + callback: (err: grpcWeb.Error, + response: grpc_pb.LockWalletReply) => void): grpcWeb.ClientReadableStream; + + lockWallet( + request: grpc_pb.LockWalletRequest, + metadata: grpcWeb.Metadata | null, + callback?: (err: grpcWeb.Error, + response: grpc_pb.LockWalletReply) => void) { + if (callback !== undefined) { + return this.client_.rpcCall( + this.hostname_ + + '/io.bisq.protobuffer.Wallets/LockWallet', + request, + metadata || {}, + this.methodInfoLockWallet, + callback); + } + return this.client_.unaryCall( + this.hostname_ + + '/io.bisq.protobuffer.Wallets/LockWallet', + request, + metadata || {}, + this.methodInfoLockWallet); + } + + methodInfoUnlockWallet = new grpcWeb.AbstractClientBase.MethodInfo( + grpc_pb.UnlockWalletReply, + (request: grpc_pb.UnlockWalletRequest) => { + return request.serializeBinary(); + }, + grpc_pb.UnlockWalletReply.deserializeBinary + ); + + unlockWallet( + request: grpc_pb.UnlockWalletRequest, + metadata: grpcWeb.Metadata | null): Promise; + + unlockWallet( + request: grpc_pb.UnlockWalletRequest, + metadata: grpcWeb.Metadata | null, + callback: (err: grpcWeb.Error, + response: grpc_pb.UnlockWalletReply) => void): grpcWeb.ClientReadableStream; + + unlockWallet( + request: grpc_pb.UnlockWalletRequest, + metadata: grpcWeb.Metadata | null, + callback?: (err: grpcWeb.Error, + response: grpc_pb.UnlockWalletReply) => void) { + if (callback !== undefined) { + return this.client_.rpcCall( + this.hostname_ + + '/io.bisq.protobuffer.Wallets/UnlockWallet', + request, + metadata || {}, + this.methodInfoUnlockWallet, + callback); + } + return this.client_.unaryCall( + this.hostname_ + + '/io.bisq.protobuffer.Wallets/UnlockWallet', + request, + metadata || {}, + this.methodInfoUnlockWallet); + } + +} + +export class GetVersionClient { + client_: grpcWeb.AbstractClientBase; + hostname_: string; + credentials_: null | { [index: string]: string; }; + options_: null | { [index: string]: any; }; + + constructor (hostname: string, + credentials?: null | { [index: string]: string; }, + options?: null | { [index: string]: any; }) { + if (!options) options = {}; + if (!credentials) credentials = {}; + options['format'] = 'text'; + + this.client_ = new grpcWeb.GrpcWebClientBase(options); + this.hostname_ = hostname; + this.credentials_ = credentials; + this.options_ = options; + } + + methodInfoGetVersion = new grpcWeb.AbstractClientBase.MethodInfo( + grpc_pb.GetVersionReply, + (request: grpc_pb.GetVersionRequest) => { + return request.serializeBinary(); + }, + grpc_pb.GetVersionReply.deserializeBinary + ); + + getVersion( + request: grpc_pb.GetVersionRequest, + metadata: grpcWeb.Metadata | null): Promise; + + getVersion( + request: grpc_pb.GetVersionRequest, + metadata: grpcWeb.Metadata | null, + callback: (err: grpcWeb.Error, + response: grpc_pb.GetVersionReply) => void): grpcWeb.ClientReadableStream; + + getVersion( + request: grpc_pb.GetVersionRequest, + metadata: grpcWeb.Metadata | null, + callback?: (err: grpcWeb.Error, + response: grpc_pb.GetVersionReply) => void) { + if (callback !== undefined) { + return this.client_.rpcCall( + this.hostname_ + + '/io.bisq.protobuffer.GetVersion/GetVersion', + request, + metadata || {}, + this.methodInfoGetVersion, + callback); + } + return this.client_.unaryCall( + this.hostname_ + + '/io.bisq.protobuffer.GetVersion/GetVersion', + request, + metadata || {}, + this.methodInfoGetVersion); + } + +} + diff --git a/src/protobuf/grpc_pb.d.ts b/src/protobuf/grpc_pb.d.ts new file mode 100644 index 00000000..11b94bab --- /dev/null +++ b/src/protobuf/grpc_pb.d.ts @@ -0,0 +1,2053 @@ +import * as jspb from 'google-protobuf' + +import * as pb_pb from './pb_pb'; + + +export class RegisterDisputeAgentRequest extends jspb.Message { + getDisputeagenttype(): string; + setDisputeagenttype(value: string): RegisterDisputeAgentRequest; + + getRegistrationkey(): string; + setRegistrationkey(value: string): RegisterDisputeAgentRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): RegisterDisputeAgentRequest.AsObject; + static toObject(includeInstance: boolean, msg: RegisterDisputeAgentRequest): RegisterDisputeAgentRequest.AsObject; + static serializeBinaryToWriter(message: RegisterDisputeAgentRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): RegisterDisputeAgentRequest; + static deserializeBinaryFromReader(message: RegisterDisputeAgentRequest, reader: jspb.BinaryReader): RegisterDisputeAgentRequest; +} + +export namespace RegisterDisputeAgentRequest { + export type AsObject = { + disputeagenttype: string, + registrationkey: string, + } +} + +export class RegisterDisputeAgentReply extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): RegisterDisputeAgentReply.AsObject; + static toObject(includeInstance: boolean, msg: RegisterDisputeAgentReply): RegisterDisputeAgentReply.AsObject; + static serializeBinaryToWriter(message: RegisterDisputeAgentReply, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): RegisterDisputeAgentReply; + static deserializeBinaryFromReader(message: RegisterDisputeAgentReply, reader: jspb.BinaryReader): RegisterDisputeAgentReply; +} + +export namespace RegisterDisputeAgentReply { + export type AsObject = { + } +} + +export class GetMethodHelpRequest extends jspb.Message { + getMethodname(): string; + setMethodname(value: string): GetMethodHelpRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetMethodHelpRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetMethodHelpRequest): GetMethodHelpRequest.AsObject; + static serializeBinaryToWriter(message: GetMethodHelpRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetMethodHelpRequest; + static deserializeBinaryFromReader(message: GetMethodHelpRequest, reader: jspb.BinaryReader): GetMethodHelpRequest; +} + +export namespace GetMethodHelpRequest { + export type AsObject = { + methodname: string, + } +} + +export class GetMethodHelpReply extends jspb.Message { + getMethodhelp(): string; + setMethodhelp(value: string): GetMethodHelpReply; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetMethodHelpReply.AsObject; + static toObject(includeInstance: boolean, msg: GetMethodHelpReply): GetMethodHelpReply.AsObject; + static serializeBinaryToWriter(message: GetMethodHelpReply, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetMethodHelpReply; + static deserializeBinaryFromReader(message: GetMethodHelpReply, reader: jspb.BinaryReader): GetMethodHelpReply; +} + +export namespace GetMethodHelpReply { + export type AsObject = { + methodhelp: string, + } +} + +export class GetOfferRequest extends jspb.Message { + getId(): string; + setId(value: string): GetOfferRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetOfferRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetOfferRequest): GetOfferRequest.AsObject; + static serializeBinaryToWriter(message: GetOfferRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetOfferRequest; + static deserializeBinaryFromReader(message: GetOfferRequest, reader: jspb.BinaryReader): GetOfferRequest; +} + +export namespace GetOfferRequest { + export type AsObject = { + id: string, + } +} + +export class GetOfferReply extends jspb.Message { + getOffer(): OfferInfo | undefined; + setOffer(value?: OfferInfo): GetOfferReply; + hasOffer(): boolean; + clearOffer(): GetOfferReply; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetOfferReply.AsObject; + static toObject(includeInstance: boolean, msg: GetOfferReply): GetOfferReply.AsObject; + static serializeBinaryToWriter(message: GetOfferReply, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetOfferReply; + static deserializeBinaryFromReader(message: GetOfferReply, reader: jspb.BinaryReader): GetOfferReply; +} + +export namespace GetOfferReply { + export type AsObject = { + offer?: OfferInfo.AsObject, + } +} + +export class GetMyOfferRequest extends jspb.Message { + getId(): string; + setId(value: string): GetMyOfferRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetMyOfferRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetMyOfferRequest): GetMyOfferRequest.AsObject; + static serializeBinaryToWriter(message: GetMyOfferRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetMyOfferRequest; + static deserializeBinaryFromReader(message: GetMyOfferRequest, reader: jspb.BinaryReader): GetMyOfferRequest; +} + +export namespace GetMyOfferRequest { + export type AsObject = { + id: string, + } +} + +export class GetMyOfferReply extends jspb.Message { + getOffer(): OfferInfo | undefined; + setOffer(value?: OfferInfo): GetMyOfferReply; + hasOffer(): boolean; + clearOffer(): GetMyOfferReply; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetMyOfferReply.AsObject; + static toObject(includeInstance: boolean, msg: GetMyOfferReply): GetMyOfferReply.AsObject; + static serializeBinaryToWriter(message: GetMyOfferReply, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetMyOfferReply; + static deserializeBinaryFromReader(message: GetMyOfferReply, reader: jspb.BinaryReader): GetMyOfferReply; +} + +export namespace GetMyOfferReply { + export type AsObject = { + offer?: OfferInfo.AsObject, + } +} + +export class GetOffersRequest extends jspb.Message { + getDirection(): string; + setDirection(value: string): GetOffersRequest; + + getCurrencycode(): string; + setCurrencycode(value: string): GetOffersRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetOffersRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetOffersRequest): GetOffersRequest.AsObject; + static serializeBinaryToWriter(message: GetOffersRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetOffersRequest; + static deserializeBinaryFromReader(message: GetOffersRequest, reader: jspb.BinaryReader): GetOffersRequest; +} + +export namespace GetOffersRequest { + export type AsObject = { + direction: string, + currencycode: string, + } +} + +export class GetOffersReply extends jspb.Message { + getOffersList(): Array; + setOffersList(value: Array): GetOffersReply; + clearOffersList(): GetOffersReply; + addOffers(value?: OfferInfo, index?: number): OfferInfo; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetOffersReply.AsObject; + static toObject(includeInstance: boolean, msg: GetOffersReply): GetOffersReply.AsObject; + static serializeBinaryToWriter(message: GetOffersReply, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetOffersReply; + static deserializeBinaryFromReader(message: GetOffersReply, reader: jspb.BinaryReader): GetOffersReply; +} + +export namespace GetOffersReply { + export type AsObject = { + offersList: Array, + } +} + +export class GetMyOffersRequest extends jspb.Message { + getDirection(): string; + setDirection(value: string): GetMyOffersRequest; + + getCurrencycode(): string; + setCurrencycode(value: string): GetMyOffersRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetMyOffersRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetMyOffersRequest): GetMyOffersRequest.AsObject; + static serializeBinaryToWriter(message: GetMyOffersRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetMyOffersRequest; + static deserializeBinaryFromReader(message: GetMyOffersRequest, reader: jspb.BinaryReader): GetMyOffersRequest; +} + +export namespace GetMyOffersRequest { + export type AsObject = { + direction: string, + currencycode: string, + } +} + +export class GetMyOffersReply extends jspb.Message { + getOffersList(): Array; + setOffersList(value: Array): GetMyOffersReply; + clearOffersList(): GetMyOffersReply; + addOffers(value?: OfferInfo, index?: number): OfferInfo; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetMyOffersReply.AsObject; + static toObject(includeInstance: boolean, msg: GetMyOffersReply): GetMyOffersReply.AsObject; + static serializeBinaryToWriter(message: GetMyOffersReply, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetMyOffersReply; + static deserializeBinaryFromReader(message: GetMyOffersReply, reader: jspb.BinaryReader): GetMyOffersReply; +} + +export namespace GetMyOffersReply { + export type AsObject = { + offersList: Array, + } +} + +export class CreateOfferRequest extends jspb.Message { + getCurrencycode(): string; + setCurrencycode(value: string): CreateOfferRequest; + + getDirection(): string; + setDirection(value: string): CreateOfferRequest; + + getPrice(): string; + setPrice(value: string): CreateOfferRequest; + + getUsemarketbasedprice(): boolean; + setUsemarketbasedprice(value: boolean): CreateOfferRequest; + + getMarketpricemargin(): number; + setMarketpricemargin(value: number): CreateOfferRequest; + + getAmount(): string; + setAmount(value: string): CreateOfferRequest; + + getMinamount(): string; + setMinamount(value: string): CreateOfferRequest; + + getBuyersecuritydeposit(): number; + setBuyersecuritydeposit(value: number): CreateOfferRequest; + + getTriggerprice(): string; + setTriggerprice(value: string): CreateOfferRequest; + + getPaymentaccountid(): string; + setPaymentaccountid(value: string): CreateOfferRequest; + + getMakerfeecurrencycode(): string; + setMakerfeecurrencycode(value: string): CreateOfferRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CreateOfferRequest.AsObject; + static toObject(includeInstance: boolean, msg: CreateOfferRequest): CreateOfferRequest.AsObject; + static serializeBinaryToWriter(message: CreateOfferRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): CreateOfferRequest; + static deserializeBinaryFromReader(message: CreateOfferRequest, reader: jspb.BinaryReader): CreateOfferRequest; +} + +export namespace CreateOfferRequest { + export type AsObject = { + currencycode: string, + direction: string, + price: string, + usemarketbasedprice: boolean, + marketpricemargin: number, + amount: string, + minamount: string, + buyersecuritydeposit: number, + triggerprice: string, + paymentaccountid: string, + makerfeecurrencycode: string, + } +} + +export class CreateOfferReply extends jspb.Message { + getOffer(): OfferInfo | undefined; + setOffer(value?: OfferInfo): CreateOfferReply; + hasOffer(): boolean; + clearOffer(): CreateOfferReply; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CreateOfferReply.AsObject; + static toObject(includeInstance: boolean, msg: CreateOfferReply): CreateOfferReply.AsObject; + static serializeBinaryToWriter(message: CreateOfferReply, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): CreateOfferReply; + static deserializeBinaryFromReader(message: CreateOfferReply, reader: jspb.BinaryReader): CreateOfferReply; +} + +export namespace CreateOfferReply { + export type AsObject = { + offer?: OfferInfo.AsObject, + } +} + +export class CancelOfferRequest extends jspb.Message { + getId(): string; + setId(value: string): CancelOfferRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CancelOfferRequest.AsObject; + static toObject(includeInstance: boolean, msg: CancelOfferRequest): CancelOfferRequest.AsObject; + static serializeBinaryToWriter(message: CancelOfferRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): CancelOfferRequest; + static deserializeBinaryFromReader(message: CancelOfferRequest, reader: jspb.BinaryReader): CancelOfferRequest; +} + +export namespace CancelOfferRequest { + export type AsObject = { + id: string, + } +} + +export class CancelOfferReply extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CancelOfferReply.AsObject; + static toObject(includeInstance: boolean, msg: CancelOfferReply): CancelOfferReply.AsObject; + static serializeBinaryToWriter(message: CancelOfferReply, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): CancelOfferReply; + static deserializeBinaryFromReader(message: CancelOfferReply, reader: jspb.BinaryReader): CancelOfferReply; +} + +export namespace CancelOfferReply { + export type AsObject = { + } +} + +export class OfferInfo extends jspb.Message { + getId(): string; + setId(value: string): OfferInfo; + + getDirection(): string; + setDirection(value: string): OfferInfo; + + getPrice(): number; + setPrice(value: number): OfferInfo; + + getUsemarketbasedprice(): boolean; + setUsemarketbasedprice(value: boolean): OfferInfo; + + getMarketpricemargin(): number; + setMarketpricemargin(value: number): OfferInfo; + + getAmount(): number; + setAmount(value: number): OfferInfo; + + getMinamount(): number; + setMinamount(value: number): OfferInfo; + + getVolume(): number; + setVolume(value: number): OfferInfo; + + getMinvolume(): number; + setMinvolume(value: number): OfferInfo; + + getBuyersecuritydeposit(): number; + setBuyersecuritydeposit(value: number): OfferInfo; + + getTriggerprice(): number; + setTriggerprice(value: number): OfferInfo; + + getIscurrencyformakerfeebtc(): boolean; + setIscurrencyformakerfeebtc(value: boolean): OfferInfo; + + getPaymentaccountid(): string; + setPaymentaccountid(value: string): OfferInfo; + + getPaymentmethodid(): string; + setPaymentmethodid(value: string): OfferInfo; + + getPaymentmethodshortname(): string; + setPaymentmethodshortname(value: string): OfferInfo; + + getBasecurrencycode(): string; + setBasecurrencycode(value: string): OfferInfo; + + getCountercurrencycode(): string; + setCountercurrencycode(value: string): OfferInfo; + + getDate(): number; + setDate(value: number): OfferInfo; + + getState(): string; + setState(value: string): OfferInfo; + + getSellersecuritydeposit(): number; + setSellersecuritydeposit(value: number): OfferInfo; + + getOfferfeepaymenttxid(): string; + setOfferfeepaymenttxid(value: string): OfferInfo; + + getTxfee(): number; + setTxfee(value: number): OfferInfo; + + getMakerfee(): number; + setMakerfee(value: number): OfferInfo; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): OfferInfo.AsObject; + static toObject(includeInstance: boolean, msg: OfferInfo): OfferInfo.AsObject; + static serializeBinaryToWriter(message: OfferInfo, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): OfferInfo; + static deserializeBinaryFromReader(message: OfferInfo, reader: jspb.BinaryReader): OfferInfo; +} + +export namespace OfferInfo { + export type AsObject = { + id: string, + direction: string, + price: number, + usemarketbasedprice: boolean, + marketpricemargin: number, + amount: number, + minamount: number, + volume: number, + minvolume: number, + buyersecuritydeposit: number, + triggerprice: number, + iscurrencyformakerfeebtc: boolean, + paymentaccountid: string, + paymentmethodid: string, + paymentmethodshortname: string, + basecurrencycode: string, + countercurrencycode: string, + date: number, + state: string, + sellersecuritydeposit: number, + offerfeepaymenttxid: string, + txfee: number, + makerfee: number, + } +} + +export class AvailabilityResultWithDescription extends jspb.Message { + getAvailabilityresult(): pb_pb.AvailabilityResult; + setAvailabilityresult(value: pb_pb.AvailabilityResult): AvailabilityResultWithDescription; + + getDescription(): string; + setDescription(value: string): AvailabilityResultWithDescription; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): AvailabilityResultWithDescription.AsObject; + static toObject(includeInstance: boolean, msg: AvailabilityResultWithDescription): AvailabilityResultWithDescription.AsObject; + static serializeBinaryToWriter(message: AvailabilityResultWithDescription, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): AvailabilityResultWithDescription; + static deserializeBinaryFromReader(message: AvailabilityResultWithDescription, reader: jspb.BinaryReader): AvailabilityResultWithDescription; +} + +export namespace AvailabilityResultWithDescription { + export type AsObject = { + availabilityresult: pb_pb.AvailabilityResult, + description: string, + } +} + +export class CreatePaymentAccountRequest extends jspb.Message { + getPaymentaccountform(): string; + setPaymentaccountform(value: string): CreatePaymentAccountRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CreatePaymentAccountRequest.AsObject; + static toObject(includeInstance: boolean, msg: CreatePaymentAccountRequest): CreatePaymentAccountRequest.AsObject; + static serializeBinaryToWriter(message: CreatePaymentAccountRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): CreatePaymentAccountRequest; + static deserializeBinaryFromReader(message: CreatePaymentAccountRequest, reader: jspb.BinaryReader): CreatePaymentAccountRequest; +} + +export namespace CreatePaymentAccountRequest { + export type AsObject = { + paymentaccountform: string, + } +} + +export class CreatePaymentAccountReply extends jspb.Message { + getPaymentaccount(): pb_pb.PaymentAccount | undefined; + setPaymentaccount(value?: pb_pb.PaymentAccount): CreatePaymentAccountReply; + hasPaymentaccount(): boolean; + clearPaymentaccount(): CreatePaymentAccountReply; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CreatePaymentAccountReply.AsObject; + static toObject(includeInstance: boolean, msg: CreatePaymentAccountReply): CreatePaymentAccountReply.AsObject; + static serializeBinaryToWriter(message: CreatePaymentAccountReply, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): CreatePaymentAccountReply; + static deserializeBinaryFromReader(message: CreatePaymentAccountReply, reader: jspb.BinaryReader): CreatePaymentAccountReply; +} + +export namespace CreatePaymentAccountReply { + export type AsObject = { + paymentaccount?: pb_pb.PaymentAccount.AsObject, + } +} + +export class GetPaymentAccountsRequest extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetPaymentAccountsRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetPaymentAccountsRequest): GetPaymentAccountsRequest.AsObject; + static serializeBinaryToWriter(message: GetPaymentAccountsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetPaymentAccountsRequest; + static deserializeBinaryFromReader(message: GetPaymentAccountsRequest, reader: jspb.BinaryReader): GetPaymentAccountsRequest; +} + +export namespace GetPaymentAccountsRequest { + export type AsObject = { + } +} + +export class GetPaymentAccountsReply extends jspb.Message { + getPaymentaccountsList(): Array; + setPaymentaccountsList(value: Array): GetPaymentAccountsReply; + clearPaymentaccountsList(): GetPaymentAccountsReply; + addPaymentaccounts(value?: pb_pb.PaymentAccount, index?: number): pb_pb.PaymentAccount; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetPaymentAccountsReply.AsObject; + static toObject(includeInstance: boolean, msg: GetPaymentAccountsReply): GetPaymentAccountsReply.AsObject; + static serializeBinaryToWriter(message: GetPaymentAccountsReply, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetPaymentAccountsReply; + static deserializeBinaryFromReader(message: GetPaymentAccountsReply, reader: jspb.BinaryReader): GetPaymentAccountsReply; +} + +export namespace GetPaymentAccountsReply { + export type AsObject = { + paymentaccountsList: Array, + } +} + +export class GetPaymentMethodsRequest extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetPaymentMethodsRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetPaymentMethodsRequest): GetPaymentMethodsRequest.AsObject; + static serializeBinaryToWriter(message: GetPaymentMethodsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetPaymentMethodsRequest; + static deserializeBinaryFromReader(message: GetPaymentMethodsRequest, reader: jspb.BinaryReader): GetPaymentMethodsRequest; +} + +export namespace GetPaymentMethodsRequest { + export type AsObject = { + } +} + +export class GetPaymentMethodsReply extends jspb.Message { + getPaymentmethodsList(): Array; + setPaymentmethodsList(value: Array): GetPaymentMethodsReply; + clearPaymentmethodsList(): GetPaymentMethodsReply; + addPaymentmethods(value?: pb_pb.PaymentMethod, index?: number): pb_pb.PaymentMethod; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetPaymentMethodsReply.AsObject; + static toObject(includeInstance: boolean, msg: GetPaymentMethodsReply): GetPaymentMethodsReply.AsObject; + static serializeBinaryToWriter(message: GetPaymentMethodsReply, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetPaymentMethodsReply; + static deserializeBinaryFromReader(message: GetPaymentMethodsReply, reader: jspb.BinaryReader): GetPaymentMethodsReply; +} + +export namespace GetPaymentMethodsReply { + export type AsObject = { + paymentmethodsList: Array, + } +} + +export class GetPaymentAccountFormRequest extends jspb.Message { + getPaymentmethodid(): string; + setPaymentmethodid(value: string): GetPaymentAccountFormRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetPaymentAccountFormRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetPaymentAccountFormRequest): GetPaymentAccountFormRequest.AsObject; + static serializeBinaryToWriter(message: GetPaymentAccountFormRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetPaymentAccountFormRequest; + static deserializeBinaryFromReader(message: GetPaymentAccountFormRequest, reader: jspb.BinaryReader): GetPaymentAccountFormRequest; +} + +export namespace GetPaymentAccountFormRequest { + export type AsObject = { + paymentmethodid: string, + } +} + +export class GetPaymentAccountFormReply extends jspb.Message { + getPaymentaccountformjson(): string; + setPaymentaccountformjson(value: string): GetPaymentAccountFormReply; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetPaymentAccountFormReply.AsObject; + static toObject(includeInstance: boolean, msg: GetPaymentAccountFormReply): GetPaymentAccountFormReply.AsObject; + static serializeBinaryToWriter(message: GetPaymentAccountFormReply, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetPaymentAccountFormReply; + static deserializeBinaryFromReader(message: GetPaymentAccountFormReply, reader: jspb.BinaryReader): GetPaymentAccountFormReply; +} + +export namespace GetPaymentAccountFormReply { + export type AsObject = { + paymentaccountformjson: string, + } +} + +export class CreateCryptoCurrencyPaymentAccountRequest extends jspb.Message { + getAccountname(): string; + setAccountname(value: string): CreateCryptoCurrencyPaymentAccountRequest; + + getCurrencycode(): string; + setCurrencycode(value: string): CreateCryptoCurrencyPaymentAccountRequest; + + getAddress(): string; + setAddress(value: string): CreateCryptoCurrencyPaymentAccountRequest; + + getTradeinstant(): boolean; + setTradeinstant(value: boolean): CreateCryptoCurrencyPaymentAccountRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CreateCryptoCurrencyPaymentAccountRequest.AsObject; + static toObject(includeInstance: boolean, msg: CreateCryptoCurrencyPaymentAccountRequest): CreateCryptoCurrencyPaymentAccountRequest.AsObject; + static serializeBinaryToWriter(message: CreateCryptoCurrencyPaymentAccountRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): CreateCryptoCurrencyPaymentAccountRequest; + static deserializeBinaryFromReader(message: CreateCryptoCurrencyPaymentAccountRequest, reader: jspb.BinaryReader): CreateCryptoCurrencyPaymentAccountRequest; +} + +export namespace CreateCryptoCurrencyPaymentAccountRequest { + export type AsObject = { + accountname: string, + currencycode: string, + address: string, + tradeinstant: boolean, + } +} + +export class CreateCryptoCurrencyPaymentAccountReply extends jspb.Message { + getPaymentaccount(): pb_pb.PaymentAccount | undefined; + setPaymentaccount(value?: pb_pb.PaymentAccount): CreateCryptoCurrencyPaymentAccountReply; + hasPaymentaccount(): boolean; + clearPaymentaccount(): CreateCryptoCurrencyPaymentAccountReply; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CreateCryptoCurrencyPaymentAccountReply.AsObject; + static toObject(includeInstance: boolean, msg: CreateCryptoCurrencyPaymentAccountReply): CreateCryptoCurrencyPaymentAccountReply.AsObject; + static serializeBinaryToWriter(message: CreateCryptoCurrencyPaymentAccountReply, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): CreateCryptoCurrencyPaymentAccountReply; + static deserializeBinaryFromReader(message: CreateCryptoCurrencyPaymentAccountReply, reader: jspb.BinaryReader): CreateCryptoCurrencyPaymentAccountReply; +} + +export namespace CreateCryptoCurrencyPaymentAccountReply { + export type AsObject = { + paymentaccount?: pb_pb.PaymentAccount.AsObject, + } +} + +export class GetCryptoCurrencyPaymentMethodsRequest extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetCryptoCurrencyPaymentMethodsRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetCryptoCurrencyPaymentMethodsRequest): GetCryptoCurrencyPaymentMethodsRequest.AsObject; + static serializeBinaryToWriter(message: GetCryptoCurrencyPaymentMethodsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetCryptoCurrencyPaymentMethodsRequest; + static deserializeBinaryFromReader(message: GetCryptoCurrencyPaymentMethodsRequest, reader: jspb.BinaryReader): GetCryptoCurrencyPaymentMethodsRequest; +} + +export namespace GetCryptoCurrencyPaymentMethodsRequest { + export type AsObject = { + } +} + +export class GetCryptoCurrencyPaymentMethodsReply extends jspb.Message { + getPaymentmethodsList(): Array; + setPaymentmethodsList(value: Array): GetCryptoCurrencyPaymentMethodsReply; + clearPaymentmethodsList(): GetCryptoCurrencyPaymentMethodsReply; + addPaymentmethods(value?: pb_pb.PaymentMethod, index?: number): pb_pb.PaymentMethod; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetCryptoCurrencyPaymentMethodsReply.AsObject; + static toObject(includeInstance: boolean, msg: GetCryptoCurrencyPaymentMethodsReply): GetCryptoCurrencyPaymentMethodsReply.AsObject; + static serializeBinaryToWriter(message: GetCryptoCurrencyPaymentMethodsReply, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetCryptoCurrencyPaymentMethodsReply; + static deserializeBinaryFromReader(message: GetCryptoCurrencyPaymentMethodsReply, reader: jspb.BinaryReader): GetCryptoCurrencyPaymentMethodsReply; +} + +export namespace GetCryptoCurrencyPaymentMethodsReply { + export type AsObject = { + paymentmethodsList: Array, + } +} + +export class MarketPriceRequest extends jspb.Message { + getCurrencycode(): string; + setCurrencycode(value: string): MarketPriceRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MarketPriceRequest.AsObject; + static toObject(includeInstance: boolean, msg: MarketPriceRequest): MarketPriceRequest.AsObject; + static serializeBinaryToWriter(message: MarketPriceRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MarketPriceRequest; + static deserializeBinaryFromReader(message: MarketPriceRequest, reader: jspb.BinaryReader): MarketPriceRequest; +} + +export namespace MarketPriceRequest { + export type AsObject = { + currencycode: string, + } +} + +export class MarketPriceReply extends jspb.Message { + getPrice(): number; + setPrice(value: number): MarketPriceReply; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MarketPriceReply.AsObject; + static toObject(includeInstance: boolean, msg: MarketPriceReply): MarketPriceReply.AsObject; + static serializeBinaryToWriter(message: MarketPriceReply, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MarketPriceReply; + static deserializeBinaryFromReader(message: MarketPriceReply, reader: jspb.BinaryReader): MarketPriceReply; +} + +export namespace MarketPriceReply { + export type AsObject = { + price: number, + } +} + +export class GetTradeStatisticsRequest extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetTradeStatisticsRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetTradeStatisticsRequest): GetTradeStatisticsRequest.AsObject; + static serializeBinaryToWriter(message: GetTradeStatisticsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetTradeStatisticsRequest; + static deserializeBinaryFromReader(message: GetTradeStatisticsRequest, reader: jspb.BinaryReader): GetTradeStatisticsRequest; +} + +export namespace GetTradeStatisticsRequest { + export type AsObject = { + } +} + +export class GetTradeStatisticsReply extends jspb.Message { + getTradestatisticsList(): Array; + setTradestatisticsList(value: Array): GetTradeStatisticsReply; + clearTradestatisticsList(): GetTradeStatisticsReply; + addTradestatistics(value?: pb_pb.TradeStatistics3, index?: number): pb_pb.TradeStatistics3; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetTradeStatisticsReply.AsObject; + static toObject(includeInstance: boolean, msg: GetTradeStatisticsReply): GetTradeStatisticsReply.AsObject; + static serializeBinaryToWriter(message: GetTradeStatisticsReply, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetTradeStatisticsReply; + static deserializeBinaryFromReader(message: GetTradeStatisticsReply, reader: jspb.BinaryReader): GetTradeStatisticsReply; +} + +export namespace GetTradeStatisticsReply { + export type AsObject = { + tradestatisticsList: Array, + } +} + +export class StopRequest extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): StopRequest.AsObject; + static toObject(includeInstance: boolean, msg: StopRequest): StopRequest.AsObject; + static serializeBinaryToWriter(message: StopRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): StopRequest; + static deserializeBinaryFromReader(message: StopRequest, reader: jspb.BinaryReader): StopRequest; +} + +export namespace StopRequest { + export type AsObject = { + } +} + +export class StopReply extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): StopReply.AsObject; + static toObject(includeInstance: boolean, msg: StopReply): StopReply.AsObject; + static serializeBinaryToWriter(message: StopReply, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): StopReply; + static deserializeBinaryFromReader(message: StopReply, reader: jspb.BinaryReader): StopReply; +} + +export namespace StopReply { + export type AsObject = { + } +} + +export class TakeOfferRequest extends jspb.Message { + getOfferid(): string; + setOfferid(value: string): TakeOfferRequest; + + getPaymentaccountid(): string; + setPaymentaccountid(value: string): TakeOfferRequest; + + getTakerfeecurrencycode(): string; + setTakerfeecurrencycode(value: string): TakeOfferRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): TakeOfferRequest.AsObject; + static toObject(includeInstance: boolean, msg: TakeOfferRequest): TakeOfferRequest.AsObject; + static serializeBinaryToWriter(message: TakeOfferRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): TakeOfferRequest; + static deserializeBinaryFromReader(message: TakeOfferRequest, reader: jspb.BinaryReader): TakeOfferRequest; +} + +export namespace TakeOfferRequest { + export type AsObject = { + offerid: string, + paymentaccountid: string, + takerfeecurrencycode: string, + } +} + +export class TakeOfferReply extends jspb.Message { + getTrade(): TradeInfo | undefined; + setTrade(value?: TradeInfo): TakeOfferReply; + hasTrade(): boolean; + clearTrade(): TakeOfferReply; + + getFailurereason(): AvailabilityResultWithDescription | undefined; + setFailurereason(value?: AvailabilityResultWithDescription): TakeOfferReply; + hasFailurereason(): boolean; + clearFailurereason(): TakeOfferReply; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): TakeOfferReply.AsObject; + static toObject(includeInstance: boolean, msg: TakeOfferReply): TakeOfferReply.AsObject; + static serializeBinaryToWriter(message: TakeOfferReply, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): TakeOfferReply; + static deserializeBinaryFromReader(message: TakeOfferReply, reader: jspb.BinaryReader): TakeOfferReply; +} + +export namespace TakeOfferReply { + export type AsObject = { + trade?: TradeInfo.AsObject, + failurereason?: AvailabilityResultWithDescription.AsObject, + } +} + +export class ConfirmPaymentStartedRequest extends jspb.Message { + getTradeid(): string; + setTradeid(value: string): ConfirmPaymentStartedRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ConfirmPaymentStartedRequest.AsObject; + static toObject(includeInstance: boolean, msg: ConfirmPaymentStartedRequest): ConfirmPaymentStartedRequest.AsObject; + static serializeBinaryToWriter(message: ConfirmPaymentStartedRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ConfirmPaymentStartedRequest; + static deserializeBinaryFromReader(message: ConfirmPaymentStartedRequest, reader: jspb.BinaryReader): ConfirmPaymentStartedRequest; +} + +export namespace ConfirmPaymentStartedRequest { + export type AsObject = { + tradeid: string, + } +} + +export class ConfirmPaymentStartedReply extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ConfirmPaymentStartedReply.AsObject; + static toObject(includeInstance: boolean, msg: ConfirmPaymentStartedReply): ConfirmPaymentStartedReply.AsObject; + static serializeBinaryToWriter(message: ConfirmPaymentStartedReply, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ConfirmPaymentStartedReply; + static deserializeBinaryFromReader(message: ConfirmPaymentStartedReply, reader: jspb.BinaryReader): ConfirmPaymentStartedReply; +} + +export namespace ConfirmPaymentStartedReply { + export type AsObject = { + } +} + +export class ConfirmPaymentReceivedRequest extends jspb.Message { + getTradeid(): string; + setTradeid(value: string): ConfirmPaymentReceivedRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ConfirmPaymentReceivedRequest.AsObject; + static toObject(includeInstance: boolean, msg: ConfirmPaymentReceivedRequest): ConfirmPaymentReceivedRequest.AsObject; + static serializeBinaryToWriter(message: ConfirmPaymentReceivedRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ConfirmPaymentReceivedRequest; + static deserializeBinaryFromReader(message: ConfirmPaymentReceivedRequest, reader: jspb.BinaryReader): ConfirmPaymentReceivedRequest; +} + +export namespace ConfirmPaymentReceivedRequest { + export type AsObject = { + tradeid: string, + } +} + +export class ConfirmPaymentReceivedReply extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ConfirmPaymentReceivedReply.AsObject; + static toObject(includeInstance: boolean, msg: ConfirmPaymentReceivedReply): ConfirmPaymentReceivedReply.AsObject; + static serializeBinaryToWriter(message: ConfirmPaymentReceivedReply, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ConfirmPaymentReceivedReply; + static deserializeBinaryFromReader(message: ConfirmPaymentReceivedReply, reader: jspb.BinaryReader): ConfirmPaymentReceivedReply; +} + +export namespace ConfirmPaymentReceivedReply { + export type AsObject = { + } +} + +export class GetTradeRequest extends jspb.Message { + getTradeid(): string; + setTradeid(value: string): GetTradeRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetTradeRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetTradeRequest): GetTradeRequest.AsObject; + static serializeBinaryToWriter(message: GetTradeRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetTradeRequest; + static deserializeBinaryFromReader(message: GetTradeRequest, reader: jspb.BinaryReader): GetTradeRequest; +} + +export namespace GetTradeRequest { + export type AsObject = { + tradeid: string, + } +} + +export class GetTradeReply extends jspb.Message { + getTrade(): TradeInfo | undefined; + setTrade(value?: TradeInfo): GetTradeReply; + hasTrade(): boolean; + clearTrade(): GetTradeReply; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetTradeReply.AsObject; + static toObject(includeInstance: boolean, msg: GetTradeReply): GetTradeReply.AsObject; + static serializeBinaryToWriter(message: GetTradeReply, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetTradeReply; + static deserializeBinaryFromReader(message: GetTradeReply, reader: jspb.BinaryReader): GetTradeReply; +} + +export namespace GetTradeReply { + export type AsObject = { + trade?: TradeInfo.AsObject, + } +} + +export class KeepFundsRequest extends jspb.Message { + getTradeid(): string; + setTradeid(value: string): KeepFundsRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): KeepFundsRequest.AsObject; + static toObject(includeInstance: boolean, msg: KeepFundsRequest): KeepFundsRequest.AsObject; + static serializeBinaryToWriter(message: KeepFundsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): KeepFundsRequest; + static deserializeBinaryFromReader(message: KeepFundsRequest, reader: jspb.BinaryReader): KeepFundsRequest; +} + +export namespace KeepFundsRequest { + export type AsObject = { + tradeid: string, + } +} + +export class KeepFundsReply extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): KeepFundsReply.AsObject; + static toObject(includeInstance: boolean, msg: KeepFundsReply): KeepFundsReply.AsObject; + static serializeBinaryToWriter(message: KeepFundsReply, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): KeepFundsReply; + static deserializeBinaryFromReader(message: KeepFundsReply, reader: jspb.BinaryReader): KeepFundsReply; +} + +export namespace KeepFundsReply { + export type AsObject = { + } +} + +export class WithdrawFundsRequest extends jspb.Message { + getTradeid(): string; + setTradeid(value: string): WithdrawFundsRequest; + + getAddress(): string; + setAddress(value: string): WithdrawFundsRequest; + + getMemo(): string; + setMemo(value: string): WithdrawFundsRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): WithdrawFundsRequest.AsObject; + static toObject(includeInstance: boolean, msg: WithdrawFundsRequest): WithdrawFundsRequest.AsObject; + static serializeBinaryToWriter(message: WithdrawFundsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): WithdrawFundsRequest; + static deserializeBinaryFromReader(message: WithdrawFundsRequest, reader: jspb.BinaryReader): WithdrawFundsRequest; +} + +export namespace WithdrawFundsRequest { + export type AsObject = { + tradeid: string, + address: string, + memo: string, + } +} + +export class WithdrawFundsReply extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): WithdrawFundsReply.AsObject; + static toObject(includeInstance: boolean, msg: WithdrawFundsReply): WithdrawFundsReply.AsObject; + static serializeBinaryToWriter(message: WithdrawFundsReply, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): WithdrawFundsReply; + static deserializeBinaryFromReader(message: WithdrawFundsReply, reader: jspb.BinaryReader): WithdrawFundsReply; +} + +export namespace WithdrawFundsReply { + export type AsObject = { + } +} + +export class TradeInfo extends jspb.Message { + getOffer(): OfferInfo | undefined; + setOffer(value?: OfferInfo): TradeInfo; + hasOffer(): boolean; + clearOffer(): TradeInfo; + + getTradeid(): string; + setTradeid(value: string): TradeInfo; + + getShortid(): string; + setShortid(value: string): TradeInfo; + + getDate(): number; + setDate(value: number): TradeInfo; + + getRole(): string; + setRole(value: string): TradeInfo; + + getTxfeeaslong(): number; + setTxfeeaslong(value: number): TradeInfo; + + getTakerfeeaslong(): number; + setTakerfeeaslong(value: number): TradeInfo; + + getTakerfeetxid(): string; + setTakerfeetxid(value: string): TradeInfo; + + getPayouttxid(): string; + setPayouttxid(value: string): TradeInfo; + + getTradeamountaslong(): number; + setTradeamountaslong(value: number): TradeInfo; + + getTradeprice(): number; + setTradeprice(value: number): TradeInfo; + + getTradingpeernodeaddress(): string; + setTradingpeernodeaddress(value: string): TradeInfo; + + getState(): string; + setState(value: string): TradeInfo; + + getPhase(): string; + setPhase(value: string): TradeInfo; + + getTradeperiodstate(): string; + setTradeperiodstate(value: string): TradeInfo; + + getIsdepositpublished(): boolean; + setIsdepositpublished(value: boolean): TradeInfo; + + getIsdepositconfirmed(): boolean; + setIsdepositconfirmed(value: boolean): TradeInfo; + + getIsfiatsent(): boolean; + setIsfiatsent(value: boolean): TradeInfo; + + getIsfiatreceived(): boolean; + setIsfiatreceived(value: boolean): TradeInfo; + + getIspayoutpublished(): boolean; + setIspayoutpublished(value: boolean): TradeInfo; + + getIswithdrawn(): boolean; + setIswithdrawn(value: boolean): TradeInfo; + + getContractasjson(): string; + setContractasjson(value: string): TradeInfo; + + getContract(): ContractInfo | undefined; + setContract(value?: ContractInfo): TradeInfo; + hasContract(): boolean; + clearContract(): TradeInfo; + + getMakerdeposittxid(): string; + setMakerdeposittxid(value: string): TradeInfo; + + getTakerdeposittxid(): string; + setTakerdeposittxid(value: string): TradeInfo; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): TradeInfo.AsObject; + static toObject(includeInstance: boolean, msg: TradeInfo): TradeInfo.AsObject; + static serializeBinaryToWriter(message: TradeInfo, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): TradeInfo; + static deserializeBinaryFromReader(message: TradeInfo, reader: jspb.BinaryReader): TradeInfo; +} + +export namespace TradeInfo { + export type AsObject = { + offer?: OfferInfo.AsObject, + tradeid: string, + shortid: string, + date: number, + role: string, + txfeeaslong: number, + takerfeeaslong: number, + takerfeetxid: string, + payouttxid: string, + tradeamountaslong: number, + tradeprice: number, + tradingpeernodeaddress: string, + state: string, + phase: string, + tradeperiodstate: string, + isdepositpublished: boolean, + isdepositconfirmed: boolean, + isfiatsent: boolean, + isfiatreceived: boolean, + ispayoutpublished: boolean, + iswithdrawn: boolean, + contractasjson: string, + contract?: ContractInfo.AsObject, + makerdeposittxid: string, + takerdeposittxid: string, + } +} + +export class ContractInfo extends jspb.Message { + getBuyernodeaddress(): string; + setBuyernodeaddress(value: string): ContractInfo; + + getSellernodeaddress(): string; + setSellernodeaddress(value: string): ContractInfo; + + getIsbuyermakerandsellertaker(): boolean; + setIsbuyermakerandsellertaker(value: boolean): ContractInfo; + + getMakeraccountid(): string; + setMakeraccountid(value: string): ContractInfo; + + getTakeraccountid(): string; + setTakeraccountid(value: string): ContractInfo; + + getMakerpaymentaccountpayload(): PaymentAccountPayloadInfo | undefined; + setMakerpaymentaccountpayload(value?: PaymentAccountPayloadInfo): ContractInfo; + hasMakerpaymentaccountpayload(): boolean; + clearMakerpaymentaccountpayload(): ContractInfo; + + getTakerpaymentaccountpayload(): PaymentAccountPayloadInfo | undefined; + setTakerpaymentaccountpayload(value?: PaymentAccountPayloadInfo): ContractInfo; + hasTakerpaymentaccountpayload(): boolean; + clearTakerpaymentaccountpayload(): ContractInfo; + + getMakerpayoutaddressstring(): string; + setMakerpayoutaddressstring(value: string): ContractInfo; + + getTakerpayoutaddressstring(): string; + setTakerpayoutaddressstring(value: string): ContractInfo; + + getLocktime(): number; + setLocktime(value: number): ContractInfo; + + getArbitratornodeaddress(): string; + setArbitratornodeaddress(value: string): ContractInfo; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ContractInfo.AsObject; + static toObject(includeInstance: boolean, msg: ContractInfo): ContractInfo.AsObject; + static serializeBinaryToWriter(message: ContractInfo, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ContractInfo; + static deserializeBinaryFromReader(message: ContractInfo, reader: jspb.BinaryReader): ContractInfo; +} + +export namespace ContractInfo { + export type AsObject = { + buyernodeaddress: string, + sellernodeaddress: string, + isbuyermakerandsellertaker: boolean, + makeraccountid: string, + takeraccountid: string, + makerpaymentaccountpayload?: PaymentAccountPayloadInfo.AsObject, + takerpaymentaccountpayload?: PaymentAccountPayloadInfo.AsObject, + makerpayoutaddressstring: string, + takerpayoutaddressstring: string, + locktime: number, + arbitratornodeaddress: string, + } +} + +export class PaymentAccountPayloadInfo extends jspb.Message { + getId(): string; + setId(value: string): PaymentAccountPayloadInfo; + + getPaymentmethodid(): string; + setPaymentmethodid(value: string): PaymentAccountPayloadInfo; + + getAddress(): string; + setAddress(value: string): PaymentAccountPayloadInfo; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PaymentAccountPayloadInfo.AsObject; + static toObject(includeInstance: boolean, msg: PaymentAccountPayloadInfo): PaymentAccountPayloadInfo.AsObject; + static serializeBinaryToWriter(message: PaymentAccountPayloadInfo, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PaymentAccountPayloadInfo; + static deserializeBinaryFromReader(message: PaymentAccountPayloadInfo, reader: jspb.BinaryReader): PaymentAccountPayloadInfo; +} + +export namespace PaymentAccountPayloadInfo { + export type AsObject = { + id: string, + paymentmethodid: string, + address: string, + } +} + +export class TxFeeRateInfo extends jspb.Message { + getUsecustomtxfeerate(): boolean; + setUsecustomtxfeerate(value: boolean): TxFeeRateInfo; + + getCustomtxfeerate(): number; + setCustomtxfeerate(value: number): TxFeeRateInfo; + + getFeeservicerate(): number; + setFeeservicerate(value: number): TxFeeRateInfo; + + getLastfeeservicerequestts(): number; + setLastfeeservicerequestts(value: number): TxFeeRateInfo; + + getMinfeeservicerate(): number; + setMinfeeservicerate(value: number): TxFeeRateInfo; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): TxFeeRateInfo.AsObject; + static toObject(includeInstance: boolean, msg: TxFeeRateInfo): TxFeeRateInfo.AsObject; + static serializeBinaryToWriter(message: TxFeeRateInfo, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): TxFeeRateInfo; + static deserializeBinaryFromReader(message: TxFeeRateInfo, reader: jspb.BinaryReader): TxFeeRateInfo; +} + +export namespace TxFeeRateInfo { + export type AsObject = { + usecustomtxfeerate: boolean, + customtxfeerate: number, + feeservicerate: number, + lastfeeservicerequestts: number, + minfeeservicerate: number, + } +} + +export class TxInfo extends jspb.Message { + getTxid(): string; + setTxid(value: string): TxInfo; + + getInputsum(): number; + setInputsum(value: number): TxInfo; + + getOutputsum(): number; + setOutputsum(value: number): TxInfo; + + getFee(): number; + setFee(value: number): TxInfo; + + getSize(): number; + setSize(value: number): TxInfo; + + getIspending(): boolean; + setIspending(value: boolean): TxInfo; + + getMemo(): string; + setMemo(value: string): TxInfo; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): TxInfo.AsObject; + static toObject(includeInstance: boolean, msg: TxInfo): TxInfo.AsObject; + static serializeBinaryToWriter(message: TxInfo, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): TxInfo; + static deserializeBinaryFromReader(message: TxInfo, reader: jspb.BinaryReader): TxInfo; +} + +export namespace TxInfo { + export type AsObject = { + txid: string, + inputsum: number, + outputsum: number, + fee: number, + size: number, + ispending: boolean, + memo: string, + } +} + +export class GetBalancesRequest extends jspb.Message { + getCurrencycode(): string; + setCurrencycode(value: string): GetBalancesRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetBalancesRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetBalancesRequest): GetBalancesRequest.AsObject; + static serializeBinaryToWriter(message: GetBalancesRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetBalancesRequest; + static deserializeBinaryFromReader(message: GetBalancesRequest, reader: jspb.BinaryReader): GetBalancesRequest; +} + +export namespace GetBalancesRequest { + export type AsObject = { + currencycode: string, + } +} + +export class GetBalancesReply extends jspb.Message { + getBalances(): BalancesInfo | undefined; + setBalances(value?: BalancesInfo): GetBalancesReply; + hasBalances(): boolean; + clearBalances(): GetBalancesReply; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetBalancesReply.AsObject; + static toObject(includeInstance: boolean, msg: GetBalancesReply): GetBalancesReply.AsObject; + static serializeBinaryToWriter(message: GetBalancesReply, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetBalancesReply; + static deserializeBinaryFromReader(message: GetBalancesReply, reader: jspb.BinaryReader): GetBalancesReply; +} + +export namespace GetBalancesReply { + export type AsObject = { + balances?: BalancesInfo.AsObject, + } +} + +export class GetAddressBalanceRequest extends jspb.Message { + getAddress(): string; + setAddress(value: string): GetAddressBalanceRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetAddressBalanceRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetAddressBalanceRequest): GetAddressBalanceRequest.AsObject; + static serializeBinaryToWriter(message: GetAddressBalanceRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetAddressBalanceRequest; + static deserializeBinaryFromReader(message: GetAddressBalanceRequest, reader: jspb.BinaryReader): GetAddressBalanceRequest; +} + +export namespace GetAddressBalanceRequest { + export type AsObject = { + address: string, + } +} + +export class GetAddressBalanceReply extends jspb.Message { + getAddressbalanceinfo(): AddressBalanceInfo | undefined; + setAddressbalanceinfo(value?: AddressBalanceInfo): GetAddressBalanceReply; + hasAddressbalanceinfo(): boolean; + clearAddressbalanceinfo(): GetAddressBalanceReply; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetAddressBalanceReply.AsObject; + static toObject(includeInstance: boolean, msg: GetAddressBalanceReply): GetAddressBalanceReply.AsObject; + static serializeBinaryToWriter(message: GetAddressBalanceReply, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetAddressBalanceReply; + static deserializeBinaryFromReader(message: GetAddressBalanceReply, reader: jspb.BinaryReader): GetAddressBalanceReply; +} + +export namespace GetAddressBalanceReply { + export type AsObject = { + addressbalanceinfo?: AddressBalanceInfo.AsObject, + } +} + +export class GetUnusedBsqAddressRequest extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetUnusedBsqAddressRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetUnusedBsqAddressRequest): GetUnusedBsqAddressRequest.AsObject; + static serializeBinaryToWriter(message: GetUnusedBsqAddressRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetUnusedBsqAddressRequest; + static deserializeBinaryFromReader(message: GetUnusedBsqAddressRequest, reader: jspb.BinaryReader): GetUnusedBsqAddressRequest; +} + +export namespace GetUnusedBsqAddressRequest { + export type AsObject = { + } +} + +export class GetUnusedBsqAddressReply extends jspb.Message { + getAddress(): string; + setAddress(value: string): GetUnusedBsqAddressReply; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetUnusedBsqAddressReply.AsObject; + static toObject(includeInstance: boolean, msg: GetUnusedBsqAddressReply): GetUnusedBsqAddressReply.AsObject; + static serializeBinaryToWriter(message: GetUnusedBsqAddressReply, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetUnusedBsqAddressReply; + static deserializeBinaryFromReader(message: GetUnusedBsqAddressReply, reader: jspb.BinaryReader): GetUnusedBsqAddressReply; +} + +export namespace GetUnusedBsqAddressReply { + export type AsObject = { + address: string, + } +} + +export class SendBsqRequest extends jspb.Message { + getAddress(): string; + setAddress(value: string): SendBsqRequest; + + getAmount(): string; + setAmount(value: string): SendBsqRequest; + + getTxfeerate(): string; + setTxfeerate(value: string): SendBsqRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): SendBsqRequest.AsObject; + static toObject(includeInstance: boolean, msg: SendBsqRequest): SendBsqRequest.AsObject; + static serializeBinaryToWriter(message: SendBsqRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SendBsqRequest; + static deserializeBinaryFromReader(message: SendBsqRequest, reader: jspb.BinaryReader): SendBsqRequest; +} + +export namespace SendBsqRequest { + export type AsObject = { + address: string, + amount: string, + txfeerate: string, + } +} + +export class SendBsqReply extends jspb.Message { + getTxinfo(): TxInfo | undefined; + setTxinfo(value?: TxInfo): SendBsqReply; + hasTxinfo(): boolean; + clearTxinfo(): SendBsqReply; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): SendBsqReply.AsObject; + static toObject(includeInstance: boolean, msg: SendBsqReply): SendBsqReply.AsObject; + static serializeBinaryToWriter(message: SendBsqReply, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SendBsqReply; + static deserializeBinaryFromReader(message: SendBsqReply, reader: jspb.BinaryReader): SendBsqReply; +} + +export namespace SendBsqReply { + export type AsObject = { + txinfo?: TxInfo.AsObject, + } +} + +export class SendBtcRequest extends jspb.Message { + getAddress(): string; + setAddress(value: string): SendBtcRequest; + + getAmount(): string; + setAmount(value: string): SendBtcRequest; + + getTxfeerate(): string; + setTxfeerate(value: string): SendBtcRequest; + + getMemo(): string; + setMemo(value: string): SendBtcRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): SendBtcRequest.AsObject; + static toObject(includeInstance: boolean, msg: SendBtcRequest): SendBtcRequest.AsObject; + static serializeBinaryToWriter(message: SendBtcRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SendBtcRequest; + static deserializeBinaryFromReader(message: SendBtcRequest, reader: jspb.BinaryReader): SendBtcRequest; +} + +export namespace SendBtcRequest { + export type AsObject = { + address: string, + amount: string, + txfeerate: string, + memo: string, + } +} + +export class SendBtcReply extends jspb.Message { + getTxinfo(): TxInfo | undefined; + setTxinfo(value?: TxInfo): SendBtcReply; + hasTxinfo(): boolean; + clearTxinfo(): SendBtcReply; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): SendBtcReply.AsObject; + static toObject(includeInstance: boolean, msg: SendBtcReply): SendBtcReply.AsObject; + static serializeBinaryToWriter(message: SendBtcReply, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SendBtcReply; + static deserializeBinaryFromReader(message: SendBtcReply, reader: jspb.BinaryReader): SendBtcReply; +} + +export namespace SendBtcReply { + export type AsObject = { + txinfo?: TxInfo.AsObject, + } +} + +export class VerifyBsqSentToAddressRequest extends jspb.Message { + getAddress(): string; + setAddress(value: string): VerifyBsqSentToAddressRequest; + + getAmount(): string; + setAmount(value: string): VerifyBsqSentToAddressRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): VerifyBsqSentToAddressRequest.AsObject; + static toObject(includeInstance: boolean, msg: VerifyBsqSentToAddressRequest): VerifyBsqSentToAddressRequest.AsObject; + static serializeBinaryToWriter(message: VerifyBsqSentToAddressRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): VerifyBsqSentToAddressRequest; + static deserializeBinaryFromReader(message: VerifyBsqSentToAddressRequest, reader: jspb.BinaryReader): VerifyBsqSentToAddressRequest; +} + +export namespace VerifyBsqSentToAddressRequest { + export type AsObject = { + address: string, + amount: string, + } +} + +export class VerifyBsqSentToAddressReply extends jspb.Message { + getIsamountreceived(): boolean; + setIsamountreceived(value: boolean): VerifyBsqSentToAddressReply; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): VerifyBsqSentToAddressReply.AsObject; + static toObject(includeInstance: boolean, msg: VerifyBsqSentToAddressReply): VerifyBsqSentToAddressReply.AsObject; + static serializeBinaryToWriter(message: VerifyBsqSentToAddressReply, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): VerifyBsqSentToAddressReply; + static deserializeBinaryFromReader(message: VerifyBsqSentToAddressReply, reader: jspb.BinaryReader): VerifyBsqSentToAddressReply; +} + +export namespace VerifyBsqSentToAddressReply { + export type AsObject = { + isamountreceived: boolean, + } +} + +export class GetTxFeeRateRequest extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetTxFeeRateRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetTxFeeRateRequest): GetTxFeeRateRequest.AsObject; + static serializeBinaryToWriter(message: GetTxFeeRateRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetTxFeeRateRequest; + static deserializeBinaryFromReader(message: GetTxFeeRateRequest, reader: jspb.BinaryReader): GetTxFeeRateRequest; +} + +export namespace GetTxFeeRateRequest { + export type AsObject = { + } +} + +export class GetTxFeeRateReply extends jspb.Message { + getTxfeerateinfo(): TxFeeRateInfo | undefined; + setTxfeerateinfo(value?: TxFeeRateInfo): GetTxFeeRateReply; + hasTxfeerateinfo(): boolean; + clearTxfeerateinfo(): GetTxFeeRateReply; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetTxFeeRateReply.AsObject; + static toObject(includeInstance: boolean, msg: GetTxFeeRateReply): GetTxFeeRateReply.AsObject; + static serializeBinaryToWriter(message: GetTxFeeRateReply, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetTxFeeRateReply; + static deserializeBinaryFromReader(message: GetTxFeeRateReply, reader: jspb.BinaryReader): GetTxFeeRateReply; +} + +export namespace GetTxFeeRateReply { + export type AsObject = { + txfeerateinfo?: TxFeeRateInfo.AsObject, + } +} + +export class SetTxFeeRatePreferenceRequest extends jspb.Message { + getTxfeeratepreference(): number; + setTxfeeratepreference(value: number): SetTxFeeRatePreferenceRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): SetTxFeeRatePreferenceRequest.AsObject; + static toObject(includeInstance: boolean, msg: SetTxFeeRatePreferenceRequest): SetTxFeeRatePreferenceRequest.AsObject; + static serializeBinaryToWriter(message: SetTxFeeRatePreferenceRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SetTxFeeRatePreferenceRequest; + static deserializeBinaryFromReader(message: SetTxFeeRatePreferenceRequest, reader: jspb.BinaryReader): SetTxFeeRatePreferenceRequest; +} + +export namespace SetTxFeeRatePreferenceRequest { + export type AsObject = { + txfeeratepreference: number, + } +} + +export class SetTxFeeRatePreferenceReply extends jspb.Message { + getTxfeerateinfo(): TxFeeRateInfo | undefined; + setTxfeerateinfo(value?: TxFeeRateInfo): SetTxFeeRatePreferenceReply; + hasTxfeerateinfo(): boolean; + clearTxfeerateinfo(): SetTxFeeRatePreferenceReply; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): SetTxFeeRatePreferenceReply.AsObject; + static toObject(includeInstance: boolean, msg: SetTxFeeRatePreferenceReply): SetTxFeeRatePreferenceReply.AsObject; + static serializeBinaryToWriter(message: SetTxFeeRatePreferenceReply, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SetTxFeeRatePreferenceReply; + static deserializeBinaryFromReader(message: SetTxFeeRatePreferenceReply, reader: jspb.BinaryReader): SetTxFeeRatePreferenceReply; +} + +export namespace SetTxFeeRatePreferenceReply { + export type AsObject = { + txfeerateinfo?: TxFeeRateInfo.AsObject, + } +} + +export class UnsetTxFeeRatePreferenceRequest extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): UnsetTxFeeRatePreferenceRequest.AsObject; + static toObject(includeInstance: boolean, msg: UnsetTxFeeRatePreferenceRequest): UnsetTxFeeRatePreferenceRequest.AsObject; + static serializeBinaryToWriter(message: UnsetTxFeeRatePreferenceRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): UnsetTxFeeRatePreferenceRequest; + static deserializeBinaryFromReader(message: UnsetTxFeeRatePreferenceRequest, reader: jspb.BinaryReader): UnsetTxFeeRatePreferenceRequest; +} + +export namespace UnsetTxFeeRatePreferenceRequest { + export type AsObject = { + } +} + +export class UnsetTxFeeRatePreferenceReply extends jspb.Message { + getTxfeerateinfo(): TxFeeRateInfo | undefined; + setTxfeerateinfo(value?: TxFeeRateInfo): UnsetTxFeeRatePreferenceReply; + hasTxfeerateinfo(): boolean; + clearTxfeerateinfo(): UnsetTxFeeRatePreferenceReply; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): UnsetTxFeeRatePreferenceReply.AsObject; + static toObject(includeInstance: boolean, msg: UnsetTxFeeRatePreferenceReply): UnsetTxFeeRatePreferenceReply.AsObject; + static serializeBinaryToWriter(message: UnsetTxFeeRatePreferenceReply, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): UnsetTxFeeRatePreferenceReply; + static deserializeBinaryFromReader(message: UnsetTxFeeRatePreferenceReply, reader: jspb.BinaryReader): UnsetTxFeeRatePreferenceReply; +} + +export namespace UnsetTxFeeRatePreferenceReply { + export type AsObject = { + txfeerateinfo?: TxFeeRateInfo.AsObject, + } +} + +export class GetTransactionRequest extends jspb.Message { + getTxid(): string; + setTxid(value: string): GetTransactionRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetTransactionRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetTransactionRequest): GetTransactionRequest.AsObject; + static serializeBinaryToWriter(message: GetTransactionRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetTransactionRequest; + static deserializeBinaryFromReader(message: GetTransactionRequest, reader: jspb.BinaryReader): GetTransactionRequest; +} + +export namespace GetTransactionRequest { + export type AsObject = { + txid: string, + } +} + +export class GetTransactionReply extends jspb.Message { + getTxinfo(): TxInfo | undefined; + setTxinfo(value?: TxInfo): GetTransactionReply; + hasTxinfo(): boolean; + clearTxinfo(): GetTransactionReply; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetTransactionReply.AsObject; + static toObject(includeInstance: boolean, msg: GetTransactionReply): GetTransactionReply.AsObject; + static serializeBinaryToWriter(message: GetTransactionReply, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetTransactionReply; + static deserializeBinaryFromReader(message: GetTransactionReply, reader: jspb.BinaryReader): GetTransactionReply; +} + +export namespace GetTransactionReply { + export type AsObject = { + txinfo?: TxInfo.AsObject, + } +} + +export class GetFundingAddressesRequest extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetFundingAddressesRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetFundingAddressesRequest): GetFundingAddressesRequest.AsObject; + static serializeBinaryToWriter(message: GetFundingAddressesRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetFundingAddressesRequest; + static deserializeBinaryFromReader(message: GetFundingAddressesRequest, reader: jspb.BinaryReader): GetFundingAddressesRequest; +} + +export namespace GetFundingAddressesRequest { + export type AsObject = { + } +} + +export class GetFundingAddressesReply extends jspb.Message { + getAddressbalanceinfoList(): Array; + setAddressbalanceinfoList(value: Array): GetFundingAddressesReply; + clearAddressbalanceinfoList(): GetFundingAddressesReply; + addAddressbalanceinfo(value?: AddressBalanceInfo, index?: number): AddressBalanceInfo; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetFundingAddressesReply.AsObject; + static toObject(includeInstance: boolean, msg: GetFundingAddressesReply): GetFundingAddressesReply.AsObject; + static serializeBinaryToWriter(message: GetFundingAddressesReply, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetFundingAddressesReply; + static deserializeBinaryFromReader(message: GetFundingAddressesReply, reader: jspb.BinaryReader): GetFundingAddressesReply; +} + +export namespace GetFundingAddressesReply { + export type AsObject = { + addressbalanceinfoList: Array, + } +} + +export class SetWalletPasswordRequest extends jspb.Message { + getPassword(): string; + setPassword(value: string): SetWalletPasswordRequest; + + getNewpassword(): string; + setNewpassword(value: string): SetWalletPasswordRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): SetWalletPasswordRequest.AsObject; + static toObject(includeInstance: boolean, msg: SetWalletPasswordRequest): SetWalletPasswordRequest.AsObject; + static serializeBinaryToWriter(message: SetWalletPasswordRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SetWalletPasswordRequest; + static deserializeBinaryFromReader(message: SetWalletPasswordRequest, reader: jspb.BinaryReader): SetWalletPasswordRequest; +} + +export namespace SetWalletPasswordRequest { + export type AsObject = { + password: string, + newpassword: string, + } +} + +export class SetWalletPasswordReply extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): SetWalletPasswordReply.AsObject; + static toObject(includeInstance: boolean, msg: SetWalletPasswordReply): SetWalletPasswordReply.AsObject; + static serializeBinaryToWriter(message: SetWalletPasswordReply, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SetWalletPasswordReply; + static deserializeBinaryFromReader(message: SetWalletPasswordReply, reader: jspb.BinaryReader): SetWalletPasswordReply; +} + +export namespace SetWalletPasswordReply { + export type AsObject = { + } +} + +export class RemoveWalletPasswordRequest extends jspb.Message { + getPassword(): string; + setPassword(value: string): RemoveWalletPasswordRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): RemoveWalletPasswordRequest.AsObject; + static toObject(includeInstance: boolean, msg: RemoveWalletPasswordRequest): RemoveWalletPasswordRequest.AsObject; + static serializeBinaryToWriter(message: RemoveWalletPasswordRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): RemoveWalletPasswordRequest; + static deserializeBinaryFromReader(message: RemoveWalletPasswordRequest, reader: jspb.BinaryReader): RemoveWalletPasswordRequest; +} + +export namespace RemoveWalletPasswordRequest { + export type AsObject = { + password: string, + } +} + +export class RemoveWalletPasswordReply extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): RemoveWalletPasswordReply.AsObject; + static toObject(includeInstance: boolean, msg: RemoveWalletPasswordReply): RemoveWalletPasswordReply.AsObject; + static serializeBinaryToWriter(message: RemoveWalletPasswordReply, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): RemoveWalletPasswordReply; + static deserializeBinaryFromReader(message: RemoveWalletPasswordReply, reader: jspb.BinaryReader): RemoveWalletPasswordReply; +} + +export namespace RemoveWalletPasswordReply { + export type AsObject = { + } +} + +export class LockWalletRequest extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): LockWalletRequest.AsObject; + static toObject(includeInstance: boolean, msg: LockWalletRequest): LockWalletRequest.AsObject; + static serializeBinaryToWriter(message: LockWalletRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): LockWalletRequest; + static deserializeBinaryFromReader(message: LockWalletRequest, reader: jspb.BinaryReader): LockWalletRequest; +} + +export namespace LockWalletRequest { + export type AsObject = { + } +} + +export class LockWalletReply extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): LockWalletReply.AsObject; + static toObject(includeInstance: boolean, msg: LockWalletReply): LockWalletReply.AsObject; + static serializeBinaryToWriter(message: LockWalletReply, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): LockWalletReply; + static deserializeBinaryFromReader(message: LockWalletReply, reader: jspb.BinaryReader): LockWalletReply; +} + +export namespace LockWalletReply { + export type AsObject = { + } +} + +export class UnlockWalletRequest extends jspb.Message { + getPassword(): string; + setPassword(value: string): UnlockWalletRequest; + + getTimeout(): number; + setTimeout(value: number): UnlockWalletRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): UnlockWalletRequest.AsObject; + static toObject(includeInstance: boolean, msg: UnlockWalletRequest): UnlockWalletRequest.AsObject; + static serializeBinaryToWriter(message: UnlockWalletRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): UnlockWalletRequest; + static deserializeBinaryFromReader(message: UnlockWalletRequest, reader: jspb.BinaryReader): UnlockWalletRequest; +} + +export namespace UnlockWalletRequest { + export type AsObject = { + password: string, + timeout: number, + } +} + +export class UnlockWalletReply extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): UnlockWalletReply.AsObject; + static toObject(includeInstance: boolean, msg: UnlockWalletReply): UnlockWalletReply.AsObject; + static serializeBinaryToWriter(message: UnlockWalletReply, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): UnlockWalletReply; + static deserializeBinaryFromReader(message: UnlockWalletReply, reader: jspb.BinaryReader): UnlockWalletReply; +} + +export namespace UnlockWalletReply { + export type AsObject = { + } +} + +export class BalancesInfo extends jspb.Message { + getBsq(): BsqBalanceInfo | undefined; + setBsq(value?: BsqBalanceInfo): BalancesInfo; + hasBsq(): boolean; + clearBsq(): BalancesInfo; + + getBtc(): BtcBalanceInfo | undefined; + setBtc(value?: BtcBalanceInfo): BalancesInfo; + hasBtc(): boolean; + clearBtc(): BalancesInfo; + + getXmr(): XmrBalanceInfo | undefined; + setXmr(value?: XmrBalanceInfo): BalancesInfo; + hasXmr(): boolean; + clearXmr(): BalancesInfo; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): BalancesInfo.AsObject; + static toObject(includeInstance: boolean, msg: BalancesInfo): BalancesInfo.AsObject; + static serializeBinaryToWriter(message: BalancesInfo, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): BalancesInfo; + static deserializeBinaryFromReader(message: BalancesInfo, reader: jspb.BinaryReader): BalancesInfo; +} + +export namespace BalancesInfo { + export type AsObject = { + bsq?: BsqBalanceInfo.AsObject, + btc?: BtcBalanceInfo.AsObject, + xmr?: XmrBalanceInfo.AsObject, + } +} + +export class BsqBalanceInfo extends jspb.Message { + getAvailableconfirmedbalance(): number; + setAvailableconfirmedbalance(value: number): BsqBalanceInfo; + + getUnverifiedbalance(): number; + setUnverifiedbalance(value: number): BsqBalanceInfo; + + getUnconfirmedchangebalance(): number; + setUnconfirmedchangebalance(value: number): BsqBalanceInfo; + + getLockedforvotingbalance(): number; + setLockedforvotingbalance(value: number): BsqBalanceInfo; + + getLockupbondsbalance(): number; + setLockupbondsbalance(value: number): BsqBalanceInfo; + + getUnlockingbondsbalance(): number; + setUnlockingbondsbalance(value: number): BsqBalanceInfo; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): BsqBalanceInfo.AsObject; + static toObject(includeInstance: boolean, msg: BsqBalanceInfo): BsqBalanceInfo.AsObject; + static serializeBinaryToWriter(message: BsqBalanceInfo, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): BsqBalanceInfo; + static deserializeBinaryFromReader(message: BsqBalanceInfo, reader: jspb.BinaryReader): BsqBalanceInfo; +} + +export namespace BsqBalanceInfo { + export type AsObject = { + availableconfirmedbalance: number, + unverifiedbalance: number, + unconfirmedchangebalance: number, + lockedforvotingbalance: number, + lockupbondsbalance: number, + unlockingbondsbalance: number, + } +} + +export class BtcBalanceInfo extends jspb.Message { + getAvailablebalance(): number; + setAvailablebalance(value: number): BtcBalanceInfo; + + getReservedbalance(): number; + setReservedbalance(value: number): BtcBalanceInfo; + + getTotalavailablebalance(): number; + setTotalavailablebalance(value: number): BtcBalanceInfo; + + getLockedbalance(): number; + setLockedbalance(value: number): BtcBalanceInfo; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): BtcBalanceInfo.AsObject; + static toObject(includeInstance: boolean, msg: BtcBalanceInfo): BtcBalanceInfo.AsObject; + static serializeBinaryToWriter(message: BtcBalanceInfo, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): BtcBalanceInfo; + static deserializeBinaryFromReader(message: BtcBalanceInfo, reader: jspb.BinaryReader): BtcBalanceInfo; +} + +export namespace BtcBalanceInfo { + export type AsObject = { + availablebalance: number, + reservedbalance: number, + totalavailablebalance: number, + lockedbalance: number, + } +} + +export class XmrBalanceInfo extends jspb.Message { + getUnlockedbalance(): string; + setUnlockedbalance(value: string): XmrBalanceInfo; + + getLockedbalance(): string; + setLockedbalance(value: string): XmrBalanceInfo; + + getReservedofferbalance(): string; + setReservedofferbalance(value: string): XmrBalanceInfo; + + getReservedtradebalance(): string; + setReservedtradebalance(value: string): XmrBalanceInfo; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): XmrBalanceInfo.AsObject; + static toObject(includeInstance: boolean, msg: XmrBalanceInfo): XmrBalanceInfo.AsObject; + static serializeBinaryToWriter(message: XmrBalanceInfo, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): XmrBalanceInfo; + static deserializeBinaryFromReader(message: XmrBalanceInfo, reader: jspb.BinaryReader): XmrBalanceInfo; +} + +export namespace XmrBalanceInfo { + export type AsObject = { + unlockedbalance: string, + lockedbalance: string, + reservedofferbalance: string, + reservedtradebalance: string, + } +} + +export class AddressBalanceInfo extends jspb.Message { + getAddress(): string; + setAddress(value: string): AddressBalanceInfo; + + getBalance(): number; + setBalance(value: number): AddressBalanceInfo; + + getNumconfirmations(): number; + setNumconfirmations(value: number): AddressBalanceInfo; + + getIsaddressunused(): boolean; + setIsaddressunused(value: boolean): AddressBalanceInfo; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): AddressBalanceInfo.AsObject; + static toObject(includeInstance: boolean, msg: AddressBalanceInfo): AddressBalanceInfo.AsObject; + static serializeBinaryToWriter(message: AddressBalanceInfo, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): AddressBalanceInfo; + static deserializeBinaryFromReader(message: AddressBalanceInfo, reader: jspb.BinaryReader): AddressBalanceInfo; +} + +export namespace AddressBalanceInfo { + export type AsObject = { + address: string, + balance: number, + numconfirmations: number, + isaddressunused: boolean, + } +} + +export class GetVersionRequest extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetVersionRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetVersionRequest): GetVersionRequest.AsObject; + static serializeBinaryToWriter(message: GetVersionRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetVersionRequest; + static deserializeBinaryFromReader(message: GetVersionRequest, reader: jspb.BinaryReader): GetVersionRequest; +} + +export namespace GetVersionRequest { + export type AsObject = { + } +} + +export class GetVersionReply extends jspb.Message { + getVersion(): string; + setVersion(value: string): GetVersionReply; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetVersionReply.AsObject; + static toObject(includeInstance: boolean, msg: GetVersionReply): GetVersionReply.AsObject; + static serializeBinaryToWriter(message: GetVersionReply, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetVersionReply; + static deserializeBinaryFromReader(message: GetVersionReply, reader: jspb.BinaryReader): GetVersionReply; +} + +export namespace GetVersionReply { + export type AsObject = { + version: string, + } +} + diff --git a/src/grpc_pb.js b/src/protobuf/grpc_pb.js similarity index 99% rename from src/grpc_pb.js rename to src/protobuf/grpc_pb.js index ad2a506f..41402d00 100644 --- a/src/grpc_pb.js +++ b/src/protobuf/grpc_pb.js @@ -3757,10 +3757,10 @@ proto.io.bisq.protobuffer.CreateOfferRequest.toObject = function(includeInstance price: jspb.Message.getFieldWithDefault(msg, 3, ""), usemarketbasedprice: jspb.Message.getBooleanFieldWithDefault(msg, 4, false), marketpricemargin: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0), - amount: jspb.Message.getFieldWithDefault(msg, 6, 0), - minamount: jspb.Message.getFieldWithDefault(msg, 7, 0), + amount: jspb.Message.getFieldWithDefault(msg, 6, "0"), + minamount: jspb.Message.getFieldWithDefault(msg, 7, "0"), buyersecuritydeposit: jspb.Message.getFloatingPointFieldWithDefault(msg, 8, 0.0), - triggerprice: jspb.Message.getFieldWithDefault(msg, 9, 0), + triggerprice: jspb.Message.getFieldWithDefault(msg, 9, "0"), paymentaccountid: jspb.Message.getFieldWithDefault(msg, 10, ""), makerfeecurrencycode: jspb.Message.getFieldWithDefault(msg, 11, "") }; @@ -3820,11 +3820,11 @@ proto.io.bisq.protobuffer.CreateOfferRequest.deserializeBinaryFromReader = funct msg.setMarketpricemargin(value); break; case 6: - var value = /** @type {number} */ (reader.readUint64()); + var value = /** @type {string} */ (reader.readUint64String()); msg.setAmount(value); break; case 7: - var value = /** @type {number} */ (reader.readUint64()); + var value = /** @type {string} */ (reader.readUint64String()); msg.setMinamount(value); break; case 8: @@ -3832,7 +3832,7 @@ proto.io.bisq.protobuffer.CreateOfferRequest.deserializeBinaryFromReader = funct msg.setBuyersecuritydeposit(value); break; case 9: - var value = /** @type {number} */ (reader.readUint64()); + var value = /** @type {string} */ (reader.readUint64String()); msg.setTriggerprice(value); break; case 10: @@ -3908,15 +3908,15 @@ proto.io.bisq.protobuffer.CreateOfferRequest.serializeBinaryToWriter = function( ); } f = message.getAmount(); - if (f !== 0) { - writer.writeUint64( + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( 6, f ); } f = message.getMinamount(); - if (f !== 0) { - writer.writeUint64( + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( 7, f ); @@ -3929,8 +3929,8 @@ proto.io.bisq.protobuffer.CreateOfferRequest.serializeBinaryToWriter = function( ); } f = message.getTriggerprice(); - if (f !== 0) { - writer.writeUint64( + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( 9, f ); @@ -4044,37 +4044,37 @@ proto.io.bisq.protobuffer.CreateOfferRequest.prototype.setMarketpricemargin = fu /** * optional uint64 amount = 6; - * @return {number} + * @return {string} */ proto.io.bisq.protobuffer.CreateOfferRequest.prototype.getAmount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "0")); }; /** - * @param {number} value + * @param {string} value * @return {!proto.io.bisq.protobuffer.CreateOfferRequest} returns this */ proto.io.bisq.protobuffer.CreateOfferRequest.prototype.setAmount = function(value) { - return jspb.Message.setProto3IntField(this, 6, value); + return jspb.Message.setProto3StringIntField(this, 6, value); }; /** * optional uint64 minAmount = 7; - * @return {number} + * @return {string} */ proto.io.bisq.protobuffer.CreateOfferRequest.prototype.getMinamount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "0")); }; /** - * @param {number} value + * @param {string} value * @return {!proto.io.bisq.protobuffer.CreateOfferRequest} returns this */ proto.io.bisq.protobuffer.CreateOfferRequest.prototype.setMinamount = function(value) { - return jspb.Message.setProto3IntField(this, 7, value); + return jspb.Message.setProto3StringIntField(this, 7, value); }; @@ -4098,19 +4098,19 @@ proto.io.bisq.protobuffer.CreateOfferRequest.prototype.setBuyersecuritydeposit = /** * optional uint64 triggerPrice = 9; - * @return {number} + * @return {string} */ proto.io.bisq.protobuffer.CreateOfferRequest.prototype.getTriggerprice = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "0")); }; /** - * @param {number} value + * @param {string} value * @return {!proto.io.bisq.protobuffer.CreateOfferRequest} returns this */ proto.io.bisq.protobuffer.CreateOfferRequest.prototype.setTriggerprice = function(value) { - return jspb.Message.setProto3IntField(this, 9, value); + return jspb.Message.setProto3StringIntField(this, 9, value); }; @@ -16533,10 +16533,10 @@ proto.io.bisq.protobuffer.XmrBalanceInfo.prototype.toObject = function(opt_inclu */ proto.io.bisq.protobuffer.XmrBalanceInfo.toObject = function(includeInstance, msg) { var f, obj = { - unlockedbalance: jspb.Message.getFieldWithDefault(msg, 1, 0), - lockedbalance: jspb.Message.getFieldWithDefault(msg, 2, 0), - reservedofferbalance: jspb.Message.getFieldWithDefault(msg, 3, 0), - reservedtradebalance: jspb.Message.getFieldWithDefault(msg, 4, 0) + unlockedbalance: jspb.Message.getFieldWithDefault(msg, 1, "0"), + lockedbalance: jspb.Message.getFieldWithDefault(msg, 2, "0"), + reservedofferbalance: jspb.Message.getFieldWithDefault(msg, 3, "0"), + reservedtradebalance: jspb.Message.getFieldWithDefault(msg, 4, "0") }; if (includeInstance) { @@ -16574,19 +16574,19 @@ proto.io.bisq.protobuffer.XmrBalanceInfo.deserializeBinaryFromReader = function( var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {number} */ (reader.readUint64()); + var value = /** @type {string} */ (reader.readUint64String()); msg.setUnlockedbalance(value); break; case 2: - var value = /** @type {number} */ (reader.readUint64()); + var value = /** @type {string} */ (reader.readUint64String()); msg.setLockedbalance(value); break; case 3: - var value = /** @type {number} */ (reader.readUint64()); + var value = /** @type {string} */ (reader.readUint64String()); msg.setReservedofferbalance(value); break; case 4: - var value = /** @type {number} */ (reader.readUint64()); + var value = /** @type {string} */ (reader.readUint64String()); msg.setReservedtradebalance(value); break; default: @@ -16619,29 +16619,29 @@ proto.io.bisq.protobuffer.XmrBalanceInfo.prototype.serializeBinary = function() proto.io.bisq.protobuffer.XmrBalanceInfo.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUnlockedbalance(); - if (f !== 0) { - writer.writeUint64( + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( 1, f ); } f = message.getLockedbalance(); - if (f !== 0) { - writer.writeUint64( + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( 2, f ); } f = message.getReservedofferbalance(); - if (f !== 0) { - writer.writeUint64( + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( 3, f ); } f = message.getReservedtradebalance(); - if (f !== 0) { - writer.writeUint64( + if (parseInt(f, 10) !== 0) { + writer.writeUint64String( 4, f ); @@ -16651,73 +16651,73 @@ proto.io.bisq.protobuffer.XmrBalanceInfo.serializeBinaryToWriter = function(mess /** * optional uint64 unlockedBalance = 1; - * @return {number} + * @return {string} */ proto.io.bisq.protobuffer.XmrBalanceInfo.prototype.getUnlockedbalance = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); }; /** - * @param {number} value + * @param {string} value * @return {!proto.io.bisq.protobuffer.XmrBalanceInfo} returns this */ proto.io.bisq.protobuffer.XmrBalanceInfo.prototype.setUnlockedbalance = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); + return jspb.Message.setProto3StringIntField(this, 1, value); }; /** * optional uint64 lockedBalance = 2; - * @return {number} + * @return {string} */ proto.io.bisq.protobuffer.XmrBalanceInfo.prototype.getLockedbalance = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0")); }; /** - * @param {number} value + * @param {string} value * @return {!proto.io.bisq.protobuffer.XmrBalanceInfo} returns this */ proto.io.bisq.protobuffer.XmrBalanceInfo.prototype.setLockedbalance = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); + return jspb.Message.setProto3StringIntField(this, 2, value); }; /** * optional uint64 reservedOfferBalance = 3; - * @return {number} + * @return {string} */ proto.io.bisq.protobuffer.XmrBalanceInfo.prototype.getReservedofferbalance = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "0")); }; /** - * @param {number} value + * @param {string} value * @return {!proto.io.bisq.protobuffer.XmrBalanceInfo} returns this */ proto.io.bisq.protobuffer.XmrBalanceInfo.prototype.setReservedofferbalance = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); + return jspb.Message.setProto3StringIntField(this, 3, value); }; /** * optional uint64 reservedTradeBalance = 4; - * @return {number} + * @return {string} */ proto.io.bisq.protobuffer.XmrBalanceInfo.prototype.getReservedtradebalance = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "0")); }; /** - * @param {number} value + * @param {string} value * @return {!proto.io.bisq.protobuffer.XmrBalanceInfo} returns this */ proto.io.bisq.protobuffer.XmrBalanceInfo.prototype.setReservedtradebalance = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); + return jspb.Message.setProto3StringIntField(this, 4, value); }; diff --git a/src/protobuf/pb_pb.d.ts b/src/protobuf/pb_pb.d.ts new file mode 100644 index 00000000..d28bf844 --- /dev/null +++ b/src/protobuf/pb_pb.d.ts @@ -0,0 +1,10004 @@ +import * as jspb from 'google-protobuf' + + + +export class NetworkEnvelope extends jspb.Message { + getMessageVersion(): number; + setMessageVersion(value: number): NetworkEnvelope; + + getPreliminaryGetDataRequest(): PreliminaryGetDataRequest | undefined; + setPreliminaryGetDataRequest(value?: PreliminaryGetDataRequest): NetworkEnvelope; + hasPreliminaryGetDataRequest(): boolean; + clearPreliminaryGetDataRequest(): NetworkEnvelope; + + getGetDataResponse(): GetDataResponse | undefined; + setGetDataResponse(value?: GetDataResponse): NetworkEnvelope; + hasGetDataResponse(): boolean; + clearGetDataResponse(): NetworkEnvelope; + + getGetUpdatedDataRequest(): GetUpdatedDataRequest | undefined; + setGetUpdatedDataRequest(value?: GetUpdatedDataRequest): NetworkEnvelope; + hasGetUpdatedDataRequest(): boolean; + clearGetUpdatedDataRequest(): NetworkEnvelope; + + getGetPeersRequest(): GetPeersRequest | undefined; + setGetPeersRequest(value?: GetPeersRequest): NetworkEnvelope; + hasGetPeersRequest(): boolean; + clearGetPeersRequest(): NetworkEnvelope; + + getGetPeersResponse(): GetPeersResponse | undefined; + setGetPeersResponse(value?: GetPeersResponse): NetworkEnvelope; + hasGetPeersResponse(): boolean; + clearGetPeersResponse(): NetworkEnvelope; + + getPing(): Ping | undefined; + setPing(value?: Ping): NetworkEnvelope; + hasPing(): boolean; + clearPing(): NetworkEnvelope; + + getPong(): Pong | undefined; + setPong(value?: Pong): NetworkEnvelope; + hasPong(): boolean; + clearPong(): NetworkEnvelope; + + getOfferAvailabilityRequest(): OfferAvailabilityRequest | undefined; + setOfferAvailabilityRequest(value?: OfferAvailabilityRequest): NetworkEnvelope; + hasOfferAvailabilityRequest(): boolean; + clearOfferAvailabilityRequest(): NetworkEnvelope; + + getOfferAvailabilityResponse(): OfferAvailabilityResponse | undefined; + setOfferAvailabilityResponse(value?: OfferAvailabilityResponse): NetworkEnvelope; + hasOfferAvailabilityResponse(): boolean; + clearOfferAvailabilityResponse(): NetworkEnvelope; + + getRefreshOfferMessage(): RefreshOfferMessage | undefined; + setRefreshOfferMessage(value?: RefreshOfferMessage): NetworkEnvelope; + hasRefreshOfferMessage(): boolean; + clearRefreshOfferMessage(): NetworkEnvelope; + + getAddDataMessage(): AddDataMessage | undefined; + setAddDataMessage(value?: AddDataMessage): NetworkEnvelope; + hasAddDataMessage(): boolean; + clearAddDataMessage(): NetworkEnvelope; + + getRemoveDataMessage(): RemoveDataMessage | undefined; + setRemoveDataMessage(value?: RemoveDataMessage): NetworkEnvelope; + hasRemoveDataMessage(): boolean; + clearRemoveDataMessage(): NetworkEnvelope; + + getRemoveMailboxDataMessage(): RemoveMailboxDataMessage | undefined; + setRemoveMailboxDataMessage(value?: RemoveMailboxDataMessage): NetworkEnvelope; + hasRemoveMailboxDataMessage(): boolean; + clearRemoveMailboxDataMessage(): NetworkEnvelope; + + getCloseConnectionMessage(): CloseConnectionMessage | undefined; + setCloseConnectionMessage(value?: CloseConnectionMessage): NetworkEnvelope; + hasCloseConnectionMessage(): boolean; + clearCloseConnectionMessage(): NetworkEnvelope; + + getPrefixedSealedAndSignedMessage(): PrefixedSealedAndSignedMessage | undefined; + setPrefixedSealedAndSignedMessage(value?: PrefixedSealedAndSignedMessage): NetworkEnvelope; + hasPrefixedSealedAndSignedMessage(): boolean; + clearPrefixedSealedAndSignedMessage(): NetworkEnvelope; + + getInputsForDepositTxRequest(): InputsForDepositTxRequest | undefined; + setInputsForDepositTxRequest(value?: InputsForDepositTxRequest): NetworkEnvelope; + hasInputsForDepositTxRequest(): boolean; + clearInputsForDepositTxRequest(): NetworkEnvelope; + + getInputsForDepositTxResponse(): InputsForDepositTxResponse | undefined; + setInputsForDepositTxResponse(value?: InputsForDepositTxResponse): NetworkEnvelope; + hasInputsForDepositTxResponse(): boolean; + clearInputsForDepositTxResponse(): NetworkEnvelope; + + getDepositTxMessage(): DepositTxMessage | undefined; + setDepositTxMessage(value?: DepositTxMessage): NetworkEnvelope; + hasDepositTxMessage(): boolean; + clearDepositTxMessage(): NetworkEnvelope; + + getCounterCurrencyTransferStartedMessage(): CounterCurrencyTransferStartedMessage | undefined; + setCounterCurrencyTransferStartedMessage(value?: CounterCurrencyTransferStartedMessage): NetworkEnvelope; + hasCounterCurrencyTransferStartedMessage(): boolean; + clearCounterCurrencyTransferStartedMessage(): NetworkEnvelope; + + getPayoutTxPublishedMessage(): PayoutTxPublishedMessage | undefined; + setPayoutTxPublishedMessage(value?: PayoutTxPublishedMessage): NetworkEnvelope; + hasPayoutTxPublishedMessage(): boolean; + clearPayoutTxPublishedMessage(): NetworkEnvelope; + + getOpenNewDisputeMessage(): OpenNewDisputeMessage | undefined; + setOpenNewDisputeMessage(value?: OpenNewDisputeMessage): NetworkEnvelope; + hasOpenNewDisputeMessage(): boolean; + clearOpenNewDisputeMessage(): NetworkEnvelope; + + getPeerOpenedDisputeMessage(): PeerOpenedDisputeMessage | undefined; + setPeerOpenedDisputeMessage(value?: PeerOpenedDisputeMessage): NetworkEnvelope; + hasPeerOpenedDisputeMessage(): boolean; + clearPeerOpenedDisputeMessage(): NetworkEnvelope; + + getChatMessage(): ChatMessage | undefined; + setChatMessage(value?: ChatMessage): NetworkEnvelope; + hasChatMessage(): boolean; + clearChatMessage(): NetworkEnvelope; + + getDisputeResultMessage(): DisputeResultMessage | undefined; + setDisputeResultMessage(value?: DisputeResultMessage): NetworkEnvelope; + hasDisputeResultMessage(): boolean; + clearDisputeResultMessage(): NetworkEnvelope; + + getPeerPublishedDisputePayoutTxMessage(): PeerPublishedDisputePayoutTxMessage | undefined; + setPeerPublishedDisputePayoutTxMessage(value?: PeerPublishedDisputePayoutTxMessage): NetworkEnvelope; + hasPeerPublishedDisputePayoutTxMessage(): boolean; + clearPeerPublishedDisputePayoutTxMessage(): NetworkEnvelope; + + getPrivateNotificationMessage(): PrivateNotificationMessage | undefined; + setPrivateNotificationMessage(value?: PrivateNotificationMessage): NetworkEnvelope; + hasPrivateNotificationMessage(): boolean; + clearPrivateNotificationMessage(): NetworkEnvelope; + + getGetBlocksRequest(): GetBlocksRequest | undefined; + setGetBlocksRequest(value?: GetBlocksRequest): NetworkEnvelope; + hasGetBlocksRequest(): boolean; + clearGetBlocksRequest(): NetworkEnvelope; + + getGetBlocksResponse(): GetBlocksResponse | undefined; + setGetBlocksResponse(value?: GetBlocksResponse): NetworkEnvelope; + hasGetBlocksResponse(): boolean; + clearGetBlocksResponse(): NetworkEnvelope; + + getNewBlockBroadcastMessage(): NewBlockBroadcastMessage | undefined; + setNewBlockBroadcastMessage(value?: NewBlockBroadcastMessage): NetworkEnvelope; + hasNewBlockBroadcastMessage(): boolean; + clearNewBlockBroadcastMessage(): NetworkEnvelope; + + getAddPersistableNetworkPayloadMessage(): AddPersistableNetworkPayloadMessage | undefined; + setAddPersistableNetworkPayloadMessage(value?: AddPersistableNetworkPayloadMessage): NetworkEnvelope; + hasAddPersistableNetworkPayloadMessage(): boolean; + clearAddPersistableNetworkPayloadMessage(): NetworkEnvelope; + + getAckMessage(): AckMessage | undefined; + setAckMessage(value?: AckMessage): NetworkEnvelope; + hasAckMessage(): boolean; + clearAckMessage(): NetworkEnvelope; + + getRepublishGovernanceDataRequest(): RepublishGovernanceDataRequest | undefined; + setRepublishGovernanceDataRequest(value?: RepublishGovernanceDataRequest): NetworkEnvelope; + hasRepublishGovernanceDataRequest(): boolean; + clearRepublishGovernanceDataRequest(): NetworkEnvelope; + + getNewDaoStateHashMessage(): NewDaoStateHashMessage | undefined; + setNewDaoStateHashMessage(value?: NewDaoStateHashMessage): NetworkEnvelope; + hasNewDaoStateHashMessage(): boolean; + clearNewDaoStateHashMessage(): NetworkEnvelope; + + getGetDaoStateHashesRequest(): GetDaoStateHashesRequest | undefined; + setGetDaoStateHashesRequest(value?: GetDaoStateHashesRequest): NetworkEnvelope; + hasGetDaoStateHashesRequest(): boolean; + clearGetDaoStateHashesRequest(): NetworkEnvelope; + + getGetDaoStateHashesResponse(): GetDaoStateHashesResponse | undefined; + setGetDaoStateHashesResponse(value?: GetDaoStateHashesResponse): NetworkEnvelope; + hasGetDaoStateHashesResponse(): boolean; + clearGetDaoStateHashesResponse(): NetworkEnvelope; + + getNewProposalStateHashMessage(): NewProposalStateHashMessage | undefined; + setNewProposalStateHashMessage(value?: NewProposalStateHashMessage): NetworkEnvelope; + hasNewProposalStateHashMessage(): boolean; + clearNewProposalStateHashMessage(): NetworkEnvelope; + + getGetProposalStateHashesRequest(): GetProposalStateHashesRequest | undefined; + setGetProposalStateHashesRequest(value?: GetProposalStateHashesRequest): NetworkEnvelope; + hasGetProposalStateHashesRequest(): boolean; + clearGetProposalStateHashesRequest(): NetworkEnvelope; + + getGetProposalStateHashesResponse(): GetProposalStateHashesResponse | undefined; + setGetProposalStateHashesResponse(value?: GetProposalStateHashesResponse): NetworkEnvelope; + hasGetProposalStateHashesResponse(): boolean; + clearGetProposalStateHashesResponse(): NetworkEnvelope; + + getNewBlindVoteStateHashMessage(): NewBlindVoteStateHashMessage | undefined; + setNewBlindVoteStateHashMessage(value?: NewBlindVoteStateHashMessage): NetworkEnvelope; + hasNewBlindVoteStateHashMessage(): boolean; + clearNewBlindVoteStateHashMessage(): NetworkEnvelope; + + getGetBlindVoteStateHashesRequest(): GetBlindVoteStateHashesRequest | undefined; + setGetBlindVoteStateHashesRequest(value?: GetBlindVoteStateHashesRequest): NetworkEnvelope; + hasGetBlindVoteStateHashesRequest(): boolean; + clearGetBlindVoteStateHashesRequest(): NetworkEnvelope; + + getGetBlindVoteStateHashesResponse(): GetBlindVoteStateHashesResponse | undefined; + setGetBlindVoteStateHashesResponse(value?: GetBlindVoteStateHashesResponse): NetworkEnvelope; + hasGetBlindVoteStateHashesResponse(): boolean; + clearGetBlindVoteStateHashesResponse(): NetworkEnvelope; + + getBundleOfEnvelopes(): BundleOfEnvelopes | undefined; + setBundleOfEnvelopes(value?: BundleOfEnvelopes): NetworkEnvelope; + hasBundleOfEnvelopes(): boolean; + clearBundleOfEnvelopes(): NetworkEnvelope; + + getMediatedPayoutTxSignatureMessage(): MediatedPayoutTxSignatureMessage | undefined; + setMediatedPayoutTxSignatureMessage(value?: MediatedPayoutTxSignatureMessage): NetworkEnvelope; + hasMediatedPayoutTxSignatureMessage(): boolean; + clearMediatedPayoutTxSignatureMessage(): NetworkEnvelope; + + getMediatedPayoutTxPublishedMessage(): MediatedPayoutTxPublishedMessage | undefined; + setMediatedPayoutTxPublishedMessage(value?: MediatedPayoutTxPublishedMessage): NetworkEnvelope; + hasMediatedPayoutTxPublishedMessage(): boolean; + clearMediatedPayoutTxPublishedMessage(): NetworkEnvelope; + + getDelayedPayoutTxSignatureRequest(): DelayedPayoutTxSignatureRequest | undefined; + setDelayedPayoutTxSignatureRequest(value?: DelayedPayoutTxSignatureRequest): NetworkEnvelope; + hasDelayedPayoutTxSignatureRequest(): boolean; + clearDelayedPayoutTxSignatureRequest(): NetworkEnvelope; + + getDelayedPayoutTxSignatureResponse(): DelayedPayoutTxSignatureResponse | undefined; + setDelayedPayoutTxSignatureResponse(value?: DelayedPayoutTxSignatureResponse): NetworkEnvelope; + hasDelayedPayoutTxSignatureResponse(): boolean; + clearDelayedPayoutTxSignatureResponse(): NetworkEnvelope; + + getDepositTxAndDelayedPayoutTxMessage(): DepositTxAndDelayedPayoutTxMessage | undefined; + setDepositTxAndDelayedPayoutTxMessage(value?: DepositTxAndDelayedPayoutTxMessage): NetworkEnvelope; + hasDepositTxAndDelayedPayoutTxMessage(): boolean; + clearDepositTxAndDelayedPayoutTxMessage(): NetworkEnvelope; + + getPeerPublishedDelayedPayoutTxMessage(): PeerPublishedDelayedPayoutTxMessage | undefined; + setPeerPublishedDelayedPayoutTxMessage(value?: PeerPublishedDelayedPayoutTxMessage): NetworkEnvelope; + hasPeerPublishedDelayedPayoutTxMessage(): boolean; + clearPeerPublishedDelayedPayoutTxMessage(): NetworkEnvelope; + + getRefreshTradeStateRequest(): RefreshTradeStateRequest | undefined; + setRefreshTradeStateRequest(value?: RefreshTradeStateRequest): NetworkEnvelope; + hasRefreshTradeStateRequest(): boolean; + clearRefreshTradeStateRequest(): NetworkEnvelope; + + getTraderSignedWitnessMessage(): TraderSignedWitnessMessage | undefined; + setTraderSignedWitnessMessage(value?: TraderSignedWitnessMessage): NetworkEnvelope; + hasTraderSignedWitnessMessage(): boolean; + clearTraderSignedWitnessMessage(): NetworkEnvelope; + + getGetInventoryRequest(): GetInventoryRequest | undefined; + setGetInventoryRequest(value?: GetInventoryRequest): NetworkEnvelope; + hasGetInventoryRequest(): boolean; + clearGetInventoryRequest(): NetworkEnvelope; + + getGetInventoryResponse(): GetInventoryResponse | undefined; + setGetInventoryResponse(value?: GetInventoryResponse): NetworkEnvelope; + hasGetInventoryResponse(): boolean; + clearGetInventoryResponse(): NetworkEnvelope; + + getSignOfferRequest(): SignOfferRequest | undefined; + setSignOfferRequest(value?: SignOfferRequest): NetworkEnvelope; + hasSignOfferRequest(): boolean; + clearSignOfferRequest(): NetworkEnvelope; + + getSignOfferResponse(): SignOfferResponse | undefined; + setSignOfferResponse(value?: SignOfferResponse): NetworkEnvelope; + hasSignOfferResponse(): boolean; + clearSignOfferResponse(): NetworkEnvelope; + + getInitTradeRequest(): InitTradeRequest | undefined; + setInitTradeRequest(value?: InitTradeRequest): NetworkEnvelope; + hasInitTradeRequest(): boolean; + clearInitTradeRequest(): NetworkEnvelope; + + getInitMultisigRequest(): InitMultisigRequest | undefined; + setInitMultisigRequest(value?: InitMultisigRequest): NetworkEnvelope; + hasInitMultisigRequest(): boolean; + clearInitMultisigRequest(): NetworkEnvelope; + + getSignContractRequest(): SignContractRequest | undefined; + setSignContractRequest(value?: SignContractRequest): NetworkEnvelope; + hasSignContractRequest(): boolean; + clearSignContractRequest(): NetworkEnvelope; + + getSignContractResponse(): SignContractResponse | undefined; + setSignContractResponse(value?: SignContractResponse): NetworkEnvelope; + hasSignContractResponse(): boolean; + clearSignContractResponse(): NetworkEnvelope; + + getDepositRequest(): DepositRequest | undefined; + setDepositRequest(value?: DepositRequest): NetworkEnvelope; + hasDepositRequest(): boolean; + clearDepositRequest(): NetworkEnvelope; + + getDepositResponse(): DepositResponse | undefined; + setDepositResponse(value?: DepositResponse): NetworkEnvelope; + hasDepositResponse(): boolean; + clearDepositResponse(): NetworkEnvelope; + + getPaymentAccountPayloadRequest(): PaymentAccountPayloadRequest | undefined; + setPaymentAccountPayloadRequest(value?: PaymentAccountPayloadRequest): NetworkEnvelope; + hasPaymentAccountPayloadRequest(): boolean; + clearPaymentAccountPayloadRequest(): NetworkEnvelope; + + getUpdateMultisigRequest(): UpdateMultisigRequest | undefined; + setUpdateMultisigRequest(value?: UpdateMultisigRequest): NetworkEnvelope; + hasUpdateMultisigRequest(): boolean; + clearUpdateMultisigRequest(): NetworkEnvelope; + + getUpdateMultisigResponse(): UpdateMultisigResponse | undefined; + setUpdateMultisigResponse(value?: UpdateMultisigResponse): NetworkEnvelope; + hasUpdateMultisigResponse(): boolean; + clearUpdateMultisigResponse(): NetworkEnvelope; + + getArbitratorPayoutTxRequest(): ArbitratorPayoutTxRequest | undefined; + setArbitratorPayoutTxRequest(value?: ArbitratorPayoutTxRequest): NetworkEnvelope; + hasArbitratorPayoutTxRequest(): boolean; + clearArbitratorPayoutTxRequest(): NetworkEnvelope; + + getArbitratorPayoutTxResponse(): ArbitratorPayoutTxResponse | undefined; + setArbitratorPayoutTxResponse(value?: ArbitratorPayoutTxResponse): NetworkEnvelope; + hasArbitratorPayoutTxResponse(): boolean; + clearArbitratorPayoutTxResponse(): NetworkEnvelope; + + getMessageCase(): NetworkEnvelope.MessageCase; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): NetworkEnvelope.AsObject; + static toObject(includeInstance: boolean, msg: NetworkEnvelope): NetworkEnvelope.AsObject; + static serializeBinaryToWriter(message: NetworkEnvelope, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): NetworkEnvelope; + static deserializeBinaryFromReader(message: NetworkEnvelope, reader: jspb.BinaryReader): NetworkEnvelope; +} + +export namespace NetworkEnvelope { + export type AsObject = { + messageVersion: number, + preliminaryGetDataRequest?: PreliminaryGetDataRequest.AsObject, + getDataResponse?: GetDataResponse.AsObject, + getUpdatedDataRequest?: GetUpdatedDataRequest.AsObject, + getPeersRequest?: GetPeersRequest.AsObject, + getPeersResponse?: GetPeersResponse.AsObject, + ping?: Ping.AsObject, + pong?: Pong.AsObject, + offerAvailabilityRequest?: OfferAvailabilityRequest.AsObject, + offerAvailabilityResponse?: OfferAvailabilityResponse.AsObject, + refreshOfferMessage?: RefreshOfferMessage.AsObject, + addDataMessage?: AddDataMessage.AsObject, + removeDataMessage?: RemoveDataMessage.AsObject, + removeMailboxDataMessage?: RemoveMailboxDataMessage.AsObject, + closeConnectionMessage?: CloseConnectionMessage.AsObject, + prefixedSealedAndSignedMessage?: PrefixedSealedAndSignedMessage.AsObject, + inputsForDepositTxRequest?: InputsForDepositTxRequest.AsObject, + inputsForDepositTxResponse?: InputsForDepositTxResponse.AsObject, + depositTxMessage?: DepositTxMessage.AsObject, + counterCurrencyTransferStartedMessage?: CounterCurrencyTransferStartedMessage.AsObject, + payoutTxPublishedMessage?: PayoutTxPublishedMessage.AsObject, + openNewDisputeMessage?: OpenNewDisputeMessage.AsObject, + peerOpenedDisputeMessage?: PeerOpenedDisputeMessage.AsObject, + chatMessage?: ChatMessage.AsObject, + disputeResultMessage?: DisputeResultMessage.AsObject, + peerPublishedDisputePayoutTxMessage?: PeerPublishedDisputePayoutTxMessage.AsObject, + privateNotificationMessage?: PrivateNotificationMessage.AsObject, + getBlocksRequest?: GetBlocksRequest.AsObject, + getBlocksResponse?: GetBlocksResponse.AsObject, + newBlockBroadcastMessage?: NewBlockBroadcastMessage.AsObject, + addPersistableNetworkPayloadMessage?: AddPersistableNetworkPayloadMessage.AsObject, + ackMessage?: AckMessage.AsObject, + republishGovernanceDataRequest?: RepublishGovernanceDataRequest.AsObject, + newDaoStateHashMessage?: NewDaoStateHashMessage.AsObject, + getDaoStateHashesRequest?: GetDaoStateHashesRequest.AsObject, + getDaoStateHashesResponse?: GetDaoStateHashesResponse.AsObject, + newProposalStateHashMessage?: NewProposalStateHashMessage.AsObject, + getProposalStateHashesRequest?: GetProposalStateHashesRequest.AsObject, + getProposalStateHashesResponse?: GetProposalStateHashesResponse.AsObject, + newBlindVoteStateHashMessage?: NewBlindVoteStateHashMessage.AsObject, + getBlindVoteStateHashesRequest?: GetBlindVoteStateHashesRequest.AsObject, + getBlindVoteStateHashesResponse?: GetBlindVoteStateHashesResponse.AsObject, + bundleOfEnvelopes?: BundleOfEnvelopes.AsObject, + mediatedPayoutTxSignatureMessage?: MediatedPayoutTxSignatureMessage.AsObject, + mediatedPayoutTxPublishedMessage?: MediatedPayoutTxPublishedMessage.AsObject, + delayedPayoutTxSignatureRequest?: DelayedPayoutTxSignatureRequest.AsObject, + delayedPayoutTxSignatureResponse?: DelayedPayoutTxSignatureResponse.AsObject, + depositTxAndDelayedPayoutTxMessage?: DepositTxAndDelayedPayoutTxMessage.AsObject, + peerPublishedDelayedPayoutTxMessage?: PeerPublishedDelayedPayoutTxMessage.AsObject, + refreshTradeStateRequest?: RefreshTradeStateRequest.AsObject, + traderSignedWitnessMessage?: TraderSignedWitnessMessage.AsObject, + getInventoryRequest?: GetInventoryRequest.AsObject, + getInventoryResponse?: GetInventoryResponse.AsObject, + signOfferRequest?: SignOfferRequest.AsObject, + signOfferResponse?: SignOfferResponse.AsObject, + initTradeRequest?: InitTradeRequest.AsObject, + initMultisigRequest?: InitMultisigRequest.AsObject, + signContractRequest?: SignContractRequest.AsObject, + signContractResponse?: SignContractResponse.AsObject, + depositRequest?: DepositRequest.AsObject, + depositResponse?: DepositResponse.AsObject, + paymentAccountPayloadRequest?: PaymentAccountPayloadRequest.AsObject, + updateMultisigRequest?: UpdateMultisigRequest.AsObject, + updateMultisigResponse?: UpdateMultisigResponse.AsObject, + arbitratorPayoutTxRequest?: ArbitratorPayoutTxRequest.AsObject, + arbitratorPayoutTxResponse?: ArbitratorPayoutTxResponse.AsObject, + } + + export enum MessageCase { + MESSAGE_NOT_SET = 0, + PRELIMINARY_GET_DATA_REQUEST = 2, + GET_DATA_RESPONSE = 3, + GET_UPDATED_DATA_REQUEST = 4, + GET_PEERS_REQUEST = 5, + GET_PEERS_RESPONSE = 6, + PING = 7, + PONG = 8, + OFFER_AVAILABILITY_REQUEST = 9, + OFFER_AVAILABILITY_RESPONSE = 10, + REFRESH_OFFER_MESSAGE = 11, + ADD_DATA_MESSAGE = 12, + REMOVE_DATA_MESSAGE = 13, + REMOVE_MAILBOX_DATA_MESSAGE = 14, + CLOSE_CONNECTION_MESSAGE = 15, + PREFIXED_SEALED_AND_SIGNED_MESSAGE = 16, + INPUTS_FOR_DEPOSIT_TX_REQUEST = 17, + INPUTS_FOR_DEPOSIT_TX_RESPONSE = 18, + DEPOSIT_TX_MESSAGE = 19, + COUNTER_CURRENCY_TRANSFER_STARTED_MESSAGE = 20, + PAYOUT_TX_PUBLISHED_MESSAGE = 21, + OPEN_NEW_DISPUTE_MESSAGE = 22, + PEER_OPENED_DISPUTE_MESSAGE = 23, + CHAT_MESSAGE = 24, + DISPUTE_RESULT_MESSAGE = 25, + PEER_PUBLISHED_DISPUTE_PAYOUT_TX_MESSAGE = 26, + PRIVATE_NOTIFICATION_MESSAGE = 27, + GET_BLOCKS_REQUEST = 28, + GET_BLOCKS_RESPONSE = 29, + NEW_BLOCK_BROADCAST_MESSAGE = 30, + ADD_PERSISTABLE_NETWORK_PAYLOAD_MESSAGE = 31, + ACK_MESSAGE = 32, + REPUBLISH_GOVERNANCE_DATA_REQUEST = 33, + NEW_DAO_STATE_HASH_MESSAGE = 34, + GET_DAO_STATE_HASHES_REQUEST = 35, + GET_DAO_STATE_HASHES_RESPONSE = 36, + NEW_PROPOSAL_STATE_HASH_MESSAGE = 37, + GET_PROPOSAL_STATE_HASHES_REQUEST = 38, + GET_PROPOSAL_STATE_HASHES_RESPONSE = 39, + NEW_BLIND_VOTE_STATE_HASH_MESSAGE = 40, + GET_BLIND_VOTE_STATE_HASHES_REQUEST = 41, + GET_BLIND_VOTE_STATE_HASHES_RESPONSE = 42, + BUNDLE_OF_ENVELOPES = 43, + MEDIATED_PAYOUT_TX_SIGNATURE_MESSAGE = 44, + MEDIATED_PAYOUT_TX_PUBLISHED_MESSAGE = 45, + DELAYED_PAYOUT_TX_SIGNATURE_REQUEST = 46, + DELAYED_PAYOUT_TX_SIGNATURE_RESPONSE = 47, + DEPOSIT_TX_AND_DELAYED_PAYOUT_TX_MESSAGE = 48, + PEER_PUBLISHED_DELAYED_PAYOUT_TX_MESSAGE = 49, + REFRESH_TRADE_STATE_REQUEST = 50, + TRADER_SIGNED_WITNESS_MESSAGE = 51, + GET_INVENTORY_REQUEST = 52, + GET_INVENTORY_RESPONSE = 53, + SIGN_OFFER_REQUEST = 1001, + SIGN_OFFER_RESPONSE = 1002, + INIT_TRADE_REQUEST = 1003, + INIT_MULTISIG_REQUEST = 1004, + SIGN_CONTRACT_REQUEST = 1005, + SIGN_CONTRACT_RESPONSE = 1006, + DEPOSIT_REQUEST = 1007, + DEPOSIT_RESPONSE = 1008, + PAYMENT_ACCOUNT_PAYLOAD_REQUEST = 1009, + UPDATE_MULTISIG_REQUEST = 1010, + UPDATE_MULTISIG_RESPONSE = 1011, + ARBITRATOR_PAYOUT_TX_REQUEST = 1012, + ARBITRATOR_PAYOUT_TX_RESPONSE = 1013, + } +} + +export class BundleOfEnvelopes extends jspb.Message { + getEnvelopesList(): Array; + setEnvelopesList(value: Array): BundleOfEnvelopes; + clearEnvelopesList(): BundleOfEnvelopes; + addEnvelopes(value?: NetworkEnvelope, index?: number): NetworkEnvelope; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): BundleOfEnvelopes.AsObject; + static toObject(includeInstance: boolean, msg: BundleOfEnvelopes): BundleOfEnvelopes.AsObject; + static serializeBinaryToWriter(message: BundleOfEnvelopes, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): BundleOfEnvelopes; + static deserializeBinaryFromReader(message: BundleOfEnvelopes, reader: jspb.BinaryReader): BundleOfEnvelopes; +} + +export namespace BundleOfEnvelopes { + export type AsObject = { + envelopesList: Array, + } +} + +export class PreliminaryGetDataRequest extends jspb.Message { + getNonce(): number; + setNonce(value: number): PreliminaryGetDataRequest; + + getExcludedKeysList(): Array; + setExcludedKeysList(value: Array): PreliminaryGetDataRequest; + clearExcludedKeysList(): PreliminaryGetDataRequest; + addExcludedKeys(value: Uint8Array | string, index?: number): PreliminaryGetDataRequest; + + getSupportedCapabilitiesList(): Array; + setSupportedCapabilitiesList(value: Array): PreliminaryGetDataRequest; + clearSupportedCapabilitiesList(): PreliminaryGetDataRequest; + addSupportedCapabilities(value: number, index?: number): PreliminaryGetDataRequest; + + getVersion(): string; + setVersion(value: string): PreliminaryGetDataRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PreliminaryGetDataRequest.AsObject; + static toObject(includeInstance: boolean, msg: PreliminaryGetDataRequest): PreliminaryGetDataRequest.AsObject; + static serializeBinaryToWriter(message: PreliminaryGetDataRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PreliminaryGetDataRequest; + static deserializeBinaryFromReader(message: PreliminaryGetDataRequest, reader: jspb.BinaryReader): PreliminaryGetDataRequest; +} + +export namespace PreliminaryGetDataRequest { + export type AsObject = { + nonce: number, + excludedKeysList: Array, + supportedCapabilitiesList: Array, + version: string, + } +} + +export class GetDataResponse extends jspb.Message { + getRequestNonce(): number; + setRequestNonce(value: number): GetDataResponse; + + getIsGetUpdatedDataResponse(): boolean; + setIsGetUpdatedDataResponse(value: boolean): GetDataResponse; + + getDataSetList(): Array; + setDataSetList(value: Array): GetDataResponse; + clearDataSetList(): GetDataResponse; + addDataSet(value?: StorageEntryWrapper, index?: number): StorageEntryWrapper; + + getSupportedCapabilitiesList(): Array; + setSupportedCapabilitiesList(value: Array): GetDataResponse; + clearSupportedCapabilitiesList(): GetDataResponse; + addSupportedCapabilities(value: number, index?: number): GetDataResponse; + + getPersistableNetworkPayloadItemsList(): Array; + setPersistableNetworkPayloadItemsList(value: Array): GetDataResponse; + clearPersistableNetworkPayloadItemsList(): GetDataResponse; + addPersistableNetworkPayloadItems(value?: PersistableNetworkPayload, index?: number): PersistableNetworkPayload; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetDataResponse.AsObject; + static toObject(includeInstance: boolean, msg: GetDataResponse): GetDataResponse.AsObject; + static serializeBinaryToWriter(message: GetDataResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetDataResponse; + static deserializeBinaryFromReader(message: GetDataResponse, reader: jspb.BinaryReader): GetDataResponse; +} + +export namespace GetDataResponse { + export type AsObject = { + requestNonce: number, + isGetUpdatedDataResponse: boolean, + dataSetList: Array, + supportedCapabilitiesList: Array, + persistableNetworkPayloadItemsList: Array, + } +} + +export class GetUpdatedDataRequest extends jspb.Message { + getSenderNodeAddress(): NodeAddress | undefined; + setSenderNodeAddress(value?: NodeAddress): GetUpdatedDataRequest; + hasSenderNodeAddress(): boolean; + clearSenderNodeAddress(): GetUpdatedDataRequest; + + getNonce(): number; + setNonce(value: number): GetUpdatedDataRequest; + + getExcludedKeysList(): Array; + setExcludedKeysList(value: Array): GetUpdatedDataRequest; + clearExcludedKeysList(): GetUpdatedDataRequest; + addExcludedKeys(value: Uint8Array | string, index?: number): GetUpdatedDataRequest; + + getVersion(): string; + setVersion(value: string): GetUpdatedDataRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetUpdatedDataRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetUpdatedDataRequest): GetUpdatedDataRequest.AsObject; + static serializeBinaryToWriter(message: GetUpdatedDataRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetUpdatedDataRequest; + static deserializeBinaryFromReader(message: GetUpdatedDataRequest, reader: jspb.BinaryReader): GetUpdatedDataRequest; +} + +export namespace GetUpdatedDataRequest { + export type AsObject = { + senderNodeAddress?: NodeAddress.AsObject, + nonce: number, + excludedKeysList: Array, + version: string, + } +} + +export class GetPeersRequest extends jspb.Message { + getSenderNodeAddress(): NodeAddress | undefined; + setSenderNodeAddress(value?: NodeAddress): GetPeersRequest; + hasSenderNodeAddress(): boolean; + clearSenderNodeAddress(): GetPeersRequest; + + getNonce(): number; + setNonce(value: number): GetPeersRequest; + + getSupportedCapabilitiesList(): Array; + setSupportedCapabilitiesList(value: Array): GetPeersRequest; + clearSupportedCapabilitiesList(): GetPeersRequest; + addSupportedCapabilities(value: number, index?: number): GetPeersRequest; + + getReportedPeersList(): Array; + setReportedPeersList(value: Array): GetPeersRequest; + clearReportedPeersList(): GetPeersRequest; + addReportedPeers(value?: Peer, index?: number): Peer; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetPeersRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetPeersRequest): GetPeersRequest.AsObject; + static serializeBinaryToWriter(message: GetPeersRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetPeersRequest; + static deserializeBinaryFromReader(message: GetPeersRequest, reader: jspb.BinaryReader): GetPeersRequest; +} + +export namespace GetPeersRequest { + export type AsObject = { + senderNodeAddress?: NodeAddress.AsObject, + nonce: number, + supportedCapabilitiesList: Array, + reportedPeersList: Array, + } +} + +export class GetPeersResponse extends jspb.Message { + getRequestNonce(): number; + setRequestNonce(value: number): GetPeersResponse; + + getReportedPeersList(): Array; + setReportedPeersList(value: Array): GetPeersResponse; + clearReportedPeersList(): GetPeersResponse; + addReportedPeers(value?: Peer, index?: number): Peer; + + getSupportedCapabilitiesList(): Array; + setSupportedCapabilitiesList(value: Array): GetPeersResponse; + clearSupportedCapabilitiesList(): GetPeersResponse; + addSupportedCapabilities(value: number, index?: number): GetPeersResponse; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetPeersResponse.AsObject; + static toObject(includeInstance: boolean, msg: GetPeersResponse): GetPeersResponse.AsObject; + static serializeBinaryToWriter(message: GetPeersResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetPeersResponse; + static deserializeBinaryFromReader(message: GetPeersResponse, reader: jspb.BinaryReader): GetPeersResponse; +} + +export namespace GetPeersResponse { + export type AsObject = { + requestNonce: number, + reportedPeersList: Array, + supportedCapabilitiesList: Array, + } +} + +export class Ping extends jspb.Message { + getNonce(): number; + setNonce(value: number): Ping; + + getLastRoundTripTime(): number; + setLastRoundTripTime(value: number): Ping; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Ping.AsObject; + static toObject(includeInstance: boolean, msg: Ping): Ping.AsObject; + static serializeBinaryToWriter(message: Ping, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Ping; + static deserializeBinaryFromReader(message: Ping, reader: jspb.BinaryReader): Ping; +} + +export namespace Ping { + export type AsObject = { + nonce: number, + lastRoundTripTime: number, + } +} + +export class Pong extends jspb.Message { + getRequestNonce(): number; + setRequestNonce(value: number): Pong; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Pong.AsObject; + static toObject(includeInstance: boolean, msg: Pong): Pong.AsObject; + static serializeBinaryToWriter(message: Pong, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Pong; + static deserializeBinaryFromReader(message: Pong, reader: jspb.BinaryReader): Pong; +} + +export namespace Pong { + export type AsObject = { + requestNonce: number, + } +} + +export class GetInventoryRequest extends jspb.Message { + getVersion(): string; + setVersion(value: string): GetInventoryRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetInventoryRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetInventoryRequest): GetInventoryRequest.AsObject; + static serializeBinaryToWriter(message: GetInventoryRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetInventoryRequest; + static deserializeBinaryFromReader(message: GetInventoryRequest, reader: jspb.BinaryReader): GetInventoryRequest; +} + +export namespace GetInventoryRequest { + export type AsObject = { + version: string, + } +} + +export class GetInventoryResponse extends jspb.Message { + getInventoryMap(): jspb.Map; + clearInventoryMap(): GetInventoryResponse; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetInventoryResponse.AsObject; + static toObject(includeInstance: boolean, msg: GetInventoryResponse): GetInventoryResponse.AsObject; + static serializeBinaryToWriter(message: GetInventoryResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetInventoryResponse; + static deserializeBinaryFromReader(message: GetInventoryResponse, reader: jspb.BinaryReader): GetInventoryResponse; +} + +export namespace GetInventoryResponse { + export type AsObject = { + inventoryMap: Array<[string, string]>, + } +} + +export class SignOfferRequest extends jspb.Message { + getOfferId(): string; + setOfferId(value: string): SignOfferRequest; + + getSenderNodeAddress(): NodeAddress | undefined; + setSenderNodeAddress(value?: NodeAddress): SignOfferRequest; + hasSenderNodeAddress(): boolean; + clearSenderNodeAddress(): SignOfferRequest; + + getPubKeyRing(): PubKeyRing | undefined; + setPubKeyRing(value?: PubKeyRing): SignOfferRequest; + hasPubKeyRing(): boolean; + clearPubKeyRing(): SignOfferRequest; + + getSenderAccountId(): string; + setSenderAccountId(value: string): SignOfferRequest; + + getOfferPayload(): OfferPayload | undefined; + setOfferPayload(value?: OfferPayload): SignOfferRequest; + hasOfferPayload(): boolean; + clearOfferPayload(): SignOfferRequest; + + getUid(): string; + setUid(value: string): SignOfferRequest; + + getCurrentDate(): number; + setCurrentDate(value: number): SignOfferRequest; + + getReserveTxHash(): string; + setReserveTxHash(value: string): SignOfferRequest; + + getReserveTxHex(): string; + setReserveTxHex(value: string): SignOfferRequest; + + getReserveTxKey(): string; + setReserveTxKey(value: string): SignOfferRequest; + + getPayoutAddress(): string; + setPayoutAddress(value: string): SignOfferRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): SignOfferRequest.AsObject; + static toObject(includeInstance: boolean, msg: SignOfferRequest): SignOfferRequest.AsObject; + static serializeBinaryToWriter(message: SignOfferRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SignOfferRequest; + static deserializeBinaryFromReader(message: SignOfferRequest, reader: jspb.BinaryReader): SignOfferRequest; +} + +export namespace SignOfferRequest { + export type AsObject = { + offerId: string, + senderNodeAddress?: NodeAddress.AsObject, + pubKeyRing?: PubKeyRing.AsObject, + senderAccountId: string, + offerPayload?: OfferPayload.AsObject, + uid: string, + currentDate: number, + reserveTxHash: string, + reserveTxHex: string, + reserveTxKey: string, + payoutAddress: string, + } +} + +export class SignOfferResponse extends jspb.Message { + getOfferId(): string; + setOfferId(value: string): SignOfferResponse; + + getUid(): string; + setUid(value: string): SignOfferResponse; + + getSignedOfferPayload(): OfferPayload | undefined; + setSignedOfferPayload(value?: OfferPayload): SignOfferResponse; + hasSignedOfferPayload(): boolean; + clearSignedOfferPayload(): SignOfferResponse; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): SignOfferResponse.AsObject; + static toObject(includeInstance: boolean, msg: SignOfferResponse): SignOfferResponse.AsObject; + static serializeBinaryToWriter(message: SignOfferResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SignOfferResponse; + static deserializeBinaryFromReader(message: SignOfferResponse, reader: jspb.BinaryReader): SignOfferResponse; +} + +export namespace SignOfferResponse { + export type AsObject = { + offerId: string, + uid: string, + signedOfferPayload?: OfferPayload.AsObject, + } +} + +export class OfferAvailabilityRequest extends jspb.Message { + getOfferId(): string; + setOfferId(value: string): OfferAvailabilityRequest; + + getPubKeyRing(): PubKeyRing | undefined; + setPubKeyRing(value?: PubKeyRing): OfferAvailabilityRequest; + hasPubKeyRing(): boolean; + clearPubKeyRing(): OfferAvailabilityRequest; + + getTakersTradePrice(): number; + setTakersTradePrice(value: number): OfferAvailabilityRequest; + + getSupportedCapabilitiesList(): Array; + setSupportedCapabilitiesList(value: Array): OfferAvailabilityRequest; + clearSupportedCapabilitiesList(): OfferAvailabilityRequest; + addSupportedCapabilities(value: number, index?: number): OfferAvailabilityRequest; + + getUid(): string; + setUid(value: string): OfferAvailabilityRequest; + + getIsTakerApiUser(): boolean; + setIsTakerApiUser(value: boolean): OfferAvailabilityRequest; + + getTradeRequest(): InitTradeRequest | undefined; + setTradeRequest(value?: InitTradeRequest): OfferAvailabilityRequest; + hasTradeRequest(): boolean; + clearTradeRequest(): OfferAvailabilityRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): OfferAvailabilityRequest.AsObject; + static toObject(includeInstance: boolean, msg: OfferAvailabilityRequest): OfferAvailabilityRequest.AsObject; + static serializeBinaryToWriter(message: OfferAvailabilityRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): OfferAvailabilityRequest; + static deserializeBinaryFromReader(message: OfferAvailabilityRequest, reader: jspb.BinaryReader): OfferAvailabilityRequest; +} + +export namespace OfferAvailabilityRequest { + export type AsObject = { + offerId: string, + pubKeyRing?: PubKeyRing.AsObject, + takersTradePrice: number, + supportedCapabilitiesList: Array, + uid: string, + isTakerApiUser: boolean, + tradeRequest?: InitTradeRequest.AsObject, + } +} + +export class OfferAvailabilityResponse extends jspb.Message { + getOfferId(): string; + setOfferId(value: string): OfferAvailabilityResponse; + + getAvailabilityResult(): AvailabilityResult; + setAvailabilityResult(value: AvailabilityResult): OfferAvailabilityResponse; + + getSupportedCapabilitiesList(): Array; + setSupportedCapabilitiesList(value: Array): OfferAvailabilityResponse; + clearSupportedCapabilitiesList(): OfferAvailabilityResponse; + addSupportedCapabilities(value: number, index?: number): OfferAvailabilityResponse; + + getUid(): string; + setUid(value: string): OfferAvailabilityResponse; + + getMakerSignature(): string; + setMakerSignature(value: string): OfferAvailabilityResponse; + + getArbitratorNodeAddress(): NodeAddress | undefined; + setArbitratorNodeAddress(value?: NodeAddress): OfferAvailabilityResponse; + hasArbitratorNodeAddress(): boolean; + clearArbitratorNodeAddress(): OfferAvailabilityResponse; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): OfferAvailabilityResponse.AsObject; + static toObject(includeInstance: boolean, msg: OfferAvailabilityResponse): OfferAvailabilityResponse.AsObject; + static serializeBinaryToWriter(message: OfferAvailabilityResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): OfferAvailabilityResponse; + static deserializeBinaryFromReader(message: OfferAvailabilityResponse, reader: jspb.BinaryReader): OfferAvailabilityResponse; +} + +export namespace OfferAvailabilityResponse { + export type AsObject = { + offerId: string, + availabilityResult: AvailabilityResult, + supportedCapabilitiesList: Array, + uid: string, + makerSignature: string, + arbitratorNodeAddress?: NodeAddress.AsObject, + } +} + +export class RefreshOfferMessage extends jspb.Message { + getHashOfDataAndSeqNr(): Uint8Array | string; + getHashOfDataAndSeqNr_asU8(): Uint8Array; + getHashOfDataAndSeqNr_asB64(): string; + setHashOfDataAndSeqNr(value: Uint8Array | string): RefreshOfferMessage; + + getSignature(): Uint8Array | string; + getSignature_asU8(): Uint8Array; + getSignature_asB64(): string; + setSignature(value: Uint8Array | string): RefreshOfferMessage; + + getHashOfPayload(): Uint8Array | string; + getHashOfPayload_asU8(): Uint8Array; + getHashOfPayload_asB64(): string; + setHashOfPayload(value: Uint8Array | string): RefreshOfferMessage; + + getSequenceNumber(): number; + setSequenceNumber(value: number): RefreshOfferMessage; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): RefreshOfferMessage.AsObject; + static toObject(includeInstance: boolean, msg: RefreshOfferMessage): RefreshOfferMessage.AsObject; + static serializeBinaryToWriter(message: RefreshOfferMessage, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): RefreshOfferMessage; + static deserializeBinaryFromReader(message: RefreshOfferMessage, reader: jspb.BinaryReader): RefreshOfferMessage; +} + +export namespace RefreshOfferMessage { + export type AsObject = { + hashOfDataAndSeqNr: Uint8Array | string, + signature: Uint8Array | string, + hashOfPayload: Uint8Array | string, + sequenceNumber: number, + } +} + +export class AddDataMessage extends jspb.Message { + getEntry(): StorageEntryWrapper | undefined; + setEntry(value?: StorageEntryWrapper): AddDataMessage; + hasEntry(): boolean; + clearEntry(): AddDataMessage; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): AddDataMessage.AsObject; + static toObject(includeInstance: boolean, msg: AddDataMessage): AddDataMessage.AsObject; + static serializeBinaryToWriter(message: AddDataMessage, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): AddDataMessage; + static deserializeBinaryFromReader(message: AddDataMessage, reader: jspb.BinaryReader): AddDataMessage; +} + +export namespace AddDataMessage { + export type AsObject = { + entry?: StorageEntryWrapper.AsObject, + } +} + +export class RemoveDataMessage extends jspb.Message { + getProtectedStorageEntry(): ProtectedStorageEntry | undefined; + setProtectedStorageEntry(value?: ProtectedStorageEntry): RemoveDataMessage; + hasProtectedStorageEntry(): boolean; + clearProtectedStorageEntry(): RemoveDataMessage; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): RemoveDataMessage.AsObject; + static toObject(includeInstance: boolean, msg: RemoveDataMessage): RemoveDataMessage.AsObject; + static serializeBinaryToWriter(message: RemoveDataMessage, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): RemoveDataMessage; + static deserializeBinaryFromReader(message: RemoveDataMessage, reader: jspb.BinaryReader): RemoveDataMessage; +} + +export namespace RemoveDataMessage { + export type AsObject = { + protectedStorageEntry?: ProtectedStorageEntry.AsObject, + } +} + +export class RemoveMailboxDataMessage extends jspb.Message { + getProtectedStorageEntry(): ProtectedMailboxStorageEntry | undefined; + setProtectedStorageEntry(value?: ProtectedMailboxStorageEntry): RemoveMailboxDataMessage; + hasProtectedStorageEntry(): boolean; + clearProtectedStorageEntry(): RemoveMailboxDataMessage; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): RemoveMailboxDataMessage.AsObject; + static toObject(includeInstance: boolean, msg: RemoveMailboxDataMessage): RemoveMailboxDataMessage.AsObject; + static serializeBinaryToWriter(message: RemoveMailboxDataMessage, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): RemoveMailboxDataMessage; + static deserializeBinaryFromReader(message: RemoveMailboxDataMessage, reader: jspb.BinaryReader): RemoveMailboxDataMessage; +} + +export namespace RemoveMailboxDataMessage { + export type AsObject = { + protectedStorageEntry?: ProtectedMailboxStorageEntry.AsObject, + } +} + +export class AddPersistableNetworkPayloadMessage extends jspb.Message { + getPayload(): PersistableNetworkPayload | undefined; + setPayload(value?: PersistableNetworkPayload): AddPersistableNetworkPayloadMessage; + hasPayload(): boolean; + clearPayload(): AddPersistableNetworkPayloadMessage; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): AddPersistableNetworkPayloadMessage.AsObject; + static toObject(includeInstance: boolean, msg: AddPersistableNetworkPayloadMessage): AddPersistableNetworkPayloadMessage.AsObject; + static serializeBinaryToWriter(message: AddPersistableNetworkPayloadMessage, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): AddPersistableNetworkPayloadMessage; + static deserializeBinaryFromReader(message: AddPersistableNetworkPayloadMessage, reader: jspb.BinaryReader): AddPersistableNetworkPayloadMessage; +} + +export namespace AddPersistableNetworkPayloadMessage { + export type AsObject = { + payload?: PersistableNetworkPayload.AsObject, + } +} + +export class CloseConnectionMessage extends jspb.Message { + getReason(): string; + setReason(value: string): CloseConnectionMessage; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CloseConnectionMessage.AsObject; + static toObject(includeInstance: boolean, msg: CloseConnectionMessage): CloseConnectionMessage.AsObject; + static serializeBinaryToWriter(message: CloseConnectionMessage, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): CloseConnectionMessage; + static deserializeBinaryFromReader(message: CloseConnectionMessage, reader: jspb.BinaryReader): CloseConnectionMessage; +} + +export namespace CloseConnectionMessage { + export type AsObject = { + reason: string, + } +} + +export class AckMessage extends jspb.Message { + getUid(): string; + setUid(value: string): AckMessage; + + getSenderNodeAddress(): NodeAddress | undefined; + setSenderNodeAddress(value?: NodeAddress): AckMessage; + hasSenderNodeAddress(): boolean; + clearSenderNodeAddress(): AckMessage; + + getSourceType(): string; + setSourceType(value: string): AckMessage; + + getSourceMsgClassName(): string; + setSourceMsgClassName(value: string): AckMessage; + + getSourceUid(): string; + setSourceUid(value: string): AckMessage; + + getSourceId(): string; + setSourceId(value: string): AckMessage; + + getSuccess(): boolean; + setSuccess(value: boolean): AckMessage; + + getErrorMessage(): string; + setErrorMessage(value: string): AckMessage; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): AckMessage.AsObject; + static toObject(includeInstance: boolean, msg: AckMessage): AckMessage.AsObject; + static serializeBinaryToWriter(message: AckMessage, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): AckMessage; + static deserializeBinaryFromReader(message: AckMessage, reader: jspb.BinaryReader): AckMessage; +} + +export namespace AckMessage { + export type AsObject = { + uid: string, + senderNodeAddress?: NodeAddress.AsObject, + sourceType: string, + sourceMsgClassName: string, + sourceUid: string, + sourceId: string, + success: boolean, + errorMessage: string, + } +} + +export class PrefixedSealedAndSignedMessage extends jspb.Message { + getNodeAddress(): NodeAddress | undefined; + setNodeAddress(value?: NodeAddress): PrefixedSealedAndSignedMessage; + hasNodeAddress(): boolean; + clearNodeAddress(): PrefixedSealedAndSignedMessage; + + getSealedAndSigned(): SealedAndSigned | undefined; + setSealedAndSigned(value?: SealedAndSigned): PrefixedSealedAndSignedMessage; + hasSealedAndSigned(): boolean; + clearSealedAndSigned(): PrefixedSealedAndSignedMessage; + + getAddressPrefixHash(): Uint8Array | string; + getAddressPrefixHash_asU8(): Uint8Array; + getAddressPrefixHash_asB64(): string; + setAddressPrefixHash(value: Uint8Array | string): PrefixedSealedAndSignedMessage; + + getUid(): string; + setUid(value: string): PrefixedSealedAndSignedMessage; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PrefixedSealedAndSignedMessage.AsObject; + static toObject(includeInstance: boolean, msg: PrefixedSealedAndSignedMessage): PrefixedSealedAndSignedMessage.AsObject; + static serializeBinaryToWriter(message: PrefixedSealedAndSignedMessage, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PrefixedSealedAndSignedMessage; + static deserializeBinaryFromReader(message: PrefixedSealedAndSignedMessage, reader: jspb.BinaryReader): PrefixedSealedAndSignedMessage; +} + +export namespace PrefixedSealedAndSignedMessage { + export type AsObject = { + nodeAddress?: NodeAddress.AsObject, + sealedAndSigned?: SealedAndSigned.AsObject, + addressPrefixHash: Uint8Array | string, + uid: string, + } +} + +export class InputsForDepositTxRequest extends jspb.Message { + getTradeId(): string; + setTradeId(value: string): InputsForDepositTxRequest; + + getSenderNodeAddress(): NodeAddress | undefined; + setSenderNodeAddress(value?: NodeAddress): InputsForDepositTxRequest; + hasSenderNodeAddress(): boolean; + clearSenderNodeAddress(): InputsForDepositTxRequest; + + getTradeAmount(): number; + setTradeAmount(value: number): InputsForDepositTxRequest; + + getTradePrice(): number; + setTradePrice(value: number): InputsForDepositTxRequest; + + getTxFee(): number; + setTxFee(value: number): InputsForDepositTxRequest; + + getTakerFee(): number; + setTakerFee(value: number): InputsForDepositTxRequest; + + getIsCurrencyForTakerFeeBtc(): boolean; + setIsCurrencyForTakerFeeBtc(value: boolean): InputsForDepositTxRequest; + + getRawTransactionInputsList(): Array; + setRawTransactionInputsList(value: Array): InputsForDepositTxRequest; + clearRawTransactionInputsList(): InputsForDepositTxRequest; + addRawTransactionInputs(value?: RawTransactionInput, index?: number): RawTransactionInput; + + getChangeOutputValue(): number; + setChangeOutputValue(value: number): InputsForDepositTxRequest; + + getChangeOutputAddress(): string; + setChangeOutputAddress(value: string): InputsForDepositTxRequest; + + getTakerMultiSigPubKey(): Uint8Array | string; + getTakerMultiSigPubKey_asU8(): Uint8Array; + getTakerMultiSigPubKey_asB64(): string; + setTakerMultiSigPubKey(value: Uint8Array | string): InputsForDepositTxRequest; + + getTakerPayoutAddressString(): string; + setTakerPayoutAddressString(value: string): InputsForDepositTxRequest; + + getTakerPubKeyRing(): PubKeyRing | undefined; + setTakerPubKeyRing(value?: PubKeyRing): InputsForDepositTxRequest; + hasTakerPubKeyRing(): boolean; + clearTakerPubKeyRing(): InputsForDepositTxRequest; + + getTakerPaymentAccountPayload(): PaymentAccountPayload | undefined; + setTakerPaymentAccountPayload(value?: PaymentAccountPayload): InputsForDepositTxRequest; + hasTakerPaymentAccountPayload(): boolean; + clearTakerPaymentAccountPayload(): InputsForDepositTxRequest; + + getTakerAccountId(): string; + setTakerAccountId(value: string): InputsForDepositTxRequest; + + getTakerFeeTxId(): string; + setTakerFeeTxId(value: string): InputsForDepositTxRequest; + + getAcceptedArbitratorNodeAddressesList(): Array; + setAcceptedArbitratorNodeAddressesList(value: Array): InputsForDepositTxRequest; + clearAcceptedArbitratorNodeAddressesList(): InputsForDepositTxRequest; + addAcceptedArbitratorNodeAddresses(value?: NodeAddress, index?: number): NodeAddress; + + getAcceptedMediatorNodeAddressesList(): Array; + setAcceptedMediatorNodeAddressesList(value: Array): InputsForDepositTxRequest; + clearAcceptedMediatorNodeAddressesList(): InputsForDepositTxRequest; + addAcceptedMediatorNodeAddresses(value?: NodeAddress, index?: number): NodeAddress; + + getArbitratorNodeAddress(): NodeAddress | undefined; + setArbitratorNodeAddress(value?: NodeAddress): InputsForDepositTxRequest; + hasArbitratorNodeAddress(): boolean; + clearArbitratorNodeAddress(): InputsForDepositTxRequest; + + getMediatorNodeAddress(): NodeAddress | undefined; + setMediatorNodeAddress(value?: NodeAddress): InputsForDepositTxRequest; + hasMediatorNodeAddress(): boolean; + clearMediatorNodeAddress(): InputsForDepositTxRequest; + + getUid(): string; + setUid(value: string): InputsForDepositTxRequest; + + getAccountAgeWitnessSignatureOfOfferId(): Uint8Array | string; + getAccountAgeWitnessSignatureOfOfferId_asU8(): Uint8Array; + getAccountAgeWitnessSignatureOfOfferId_asB64(): string; + setAccountAgeWitnessSignatureOfOfferId(value: Uint8Array | string): InputsForDepositTxRequest; + + getCurrentDate(): number; + setCurrentDate(value: number): InputsForDepositTxRequest; + + getAcceptedRefundAgentNodeAddressesList(): Array; + setAcceptedRefundAgentNodeAddressesList(value: Array): InputsForDepositTxRequest; + clearAcceptedRefundAgentNodeAddressesList(): InputsForDepositTxRequest; + addAcceptedRefundAgentNodeAddresses(value?: NodeAddress, index?: number): NodeAddress; + + getRefundAgentNodeAddress(): NodeAddress | undefined; + setRefundAgentNodeAddress(value?: NodeAddress): InputsForDepositTxRequest; + hasRefundAgentNodeAddress(): boolean; + clearRefundAgentNodeAddress(): InputsForDepositTxRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): InputsForDepositTxRequest.AsObject; + static toObject(includeInstance: boolean, msg: InputsForDepositTxRequest): InputsForDepositTxRequest.AsObject; + static serializeBinaryToWriter(message: InputsForDepositTxRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): InputsForDepositTxRequest; + static deserializeBinaryFromReader(message: InputsForDepositTxRequest, reader: jspb.BinaryReader): InputsForDepositTxRequest; +} + +export namespace InputsForDepositTxRequest { + export type AsObject = { + tradeId: string, + senderNodeAddress?: NodeAddress.AsObject, + tradeAmount: number, + tradePrice: number, + txFee: number, + takerFee: number, + isCurrencyForTakerFeeBtc: boolean, + rawTransactionInputsList: Array, + changeOutputValue: number, + changeOutputAddress: string, + takerMultiSigPubKey: Uint8Array | string, + takerPayoutAddressString: string, + takerPubKeyRing?: PubKeyRing.AsObject, + takerPaymentAccountPayload?: PaymentAccountPayload.AsObject, + takerAccountId: string, + takerFeeTxId: string, + acceptedArbitratorNodeAddressesList: Array, + acceptedMediatorNodeAddressesList: Array, + arbitratorNodeAddress?: NodeAddress.AsObject, + mediatorNodeAddress?: NodeAddress.AsObject, + uid: string, + accountAgeWitnessSignatureOfOfferId: Uint8Array | string, + currentDate: number, + acceptedRefundAgentNodeAddressesList: Array, + refundAgentNodeAddress?: NodeAddress.AsObject, + } +} + +export class InputsForDepositTxResponse extends jspb.Message { + getTradeId(): string; + setTradeId(value: string): InputsForDepositTxResponse; + + getMakerPaymentAccountPayload(): PaymentAccountPayload | undefined; + setMakerPaymentAccountPayload(value?: PaymentAccountPayload): InputsForDepositTxResponse; + hasMakerPaymentAccountPayload(): boolean; + clearMakerPaymentAccountPayload(): InputsForDepositTxResponse; + + getMakerAccountId(): string; + setMakerAccountId(value: string): InputsForDepositTxResponse; + + getMakerContractAsJson(): string; + setMakerContractAsJson(value: string): InputsForDepositTxResponse; + + getMakerContractSignature(): string; + setMakerContractSignature(value: string): InputsForDepositTxResponse; + + getMakerPayoutAddressString(): string; + setMakerPayoutAddressString(value: string): InputsForDepositTxResponse; + + getPreparedDepositTx(): Uint8Array | string; + getPreparedDepositTx_asU8(): Uint8Array; + getPreparedDepositTx_asB64(): string; + setPreparedDepositTx(value: Uint8Array | string): InputsForDepositTxResponse; + + getMakerInputsList(): Array; + setMakerInputsList(value: Array): InputsForDepositTxResponse; + clearMakerInputsList(): InputsForDepositTxResponse; + addMakerInputs(value?: RawTransactionInput, index?: number): RawTransactionInput; + + getMakerMultiSigPubKey(): Uint8Array | string; + getMakerMultiSigPubKey_asU8(): Uint8Array; + getMakerMultiSigPubKey_asB64(): string; + setMakerMultiSigPubKey(value: Uint8Array | string): InputsForDepositTxResponse; + + getSenderNodeAddress(): NodeAddress | undefined; + setSenderNodeAddress(value?: NodeAddress): InputsForDepositTxResponse; + hasSenderNodeAddress(): boolean; + clearSenderNodeAddress(): InputsForDepositTxResponse; + + getUid(): string; + setUid(value: string): InputsForDepositTxResponse; + + getAccountAgeWitnessSignatureOfPreparedDepositTx(): Uint8Array | string; + getAccountAgeWitnessSignatureOfPreparedDepositTx_asU8(): Uint8Array; + getAccountAgeWitnessSignatureOfPreparedDepositTx_asB64(): string; + setAccountAgeWitnessSignatureOfPreparedDepositTx(value: Uint8Array | string): InputsForDepositTxResponse; + + getCurrentDate(): number; + setCurrentDate(value: number): InputsForDepositTxResponse; + + getLockTime(): number; + setLockTime(value: number): InputsForDepositTxResponse; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): InputsForDepositTxResponse.AsObject; + static toObject(includeInstance: boolean, msg: InputsForDepositTxResponse): InputsForDepositTxResponse.AsObject; + static serializeBinaryToWriter(message: InputsForDepositTxResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): InputsForDepositTxResponse; + static deserializeBinaryFromReader(message: InputsForDepositTxResponse, reader: jspb.BinaryReader): InputsForDepositTxResponse; +} + +export namespace InputsForDepositTxResponse { + export type AsObject = { + tradeId: string, + makerPaymentAccountPayload?: PaymentAccountPayload.AsObject, + makerAccountId: string, + makerContractAsJson: string, + makerContractSignature: string, + makerPayoutAddressString: string, + preparedDepositTx: Uint8Array | string, + makerInputsList: Array, + makerMultiSigPubKey: Uint8Array | string, + senderNodeAddress?: NodeAddress.AsObject, + uid: string, + accountAgeWitnessSignatureOfPreparedDepositTx: Uint8Array | string, + currentDate: number, + lockTime: number, + } +} + +export class InitTradeRequest extends jspb.Message { + getTradeId(): string; + setTradeId(value: string): InitTradeRequest; + + getSenderNodeAddress(): NodeAddress | undefined; + setSenderNodeAddress(value?: NodeAddress): InitTradeRequest; + hasSenderNodeAddress(): boolean; + clearSenderNodeAddress(): InitTradeRequest; + + getPubKeyRing(): PubKeyRing | undefined; + setPubKeyRing(value?: PubKeyRing): InitTradeRequest; + hasPubKeyRing(): boolean; + clearPubKeyRing(): InitTradeRequest; + + getTradeAmount(): number; + setTradeAmount(value: number): InitTradeRequest; + + getTradePrice(): number; + setTradePrice(value: number): InitTradeRequest; + + getTradeFee(): number; + setTradeFee(value: number): InitTradeRequest; + + getAccountId(): string; + setAccountId(value: string): InitTradeRequest; + + getPaymentAccountId(): string; + setPaymentAccountId(value: string): InitTradeRequest; + + getPaymentMethodId(): string; + setPaymentMethodId(value: string): InitTradeRequest; + + getUid(): string; + setUid(value: string): InitTradeRequest; + + getAccountAgeWitnessSignatureOfOfferId(): Uint8Array | string; + getAccountAgeWitnessSignatureOfOfferId_asU8(): Uint8Array; + getAccountAgeWitnessSignatureOfOfferId_asB64(): string; + setAccountAgeWitnessSignatureOfOfferId(value: Uint8Array | string): InitTradeRequest; + + getCurrentDate(): number; + setCurrentDate(value: number): InitTradeRequest; + + getMakerNodeAddress(): NodeAddress | undefined; + setMakerNodeAddress(value?: NodeAddress): InitTradeRequest; + hasMakerNodeAddress(): boolean; + clearMakerNodeAddress(): InitTradeRequest; + + getTakerNodeAddress(): NodeAddress | undefined; + setTakerNodeAddress(value?: NodeAddress): InitTradeRequest; + hasTakerNodeAddress(): boolean; + clearTakerNodeAddress(): InitTradeRequest; + + getArbitratorNodeAddress(): NodeAddress | undefined; + setArbitratorNodeAddress(value?: NodeAddress): InitTradeRequest; + hasArbitratorNodeAddress(): boolean; + clearArbitratorNodeAddress(): InitTradeRequest; + + getReserveTxHash(): string; + setReserveTxHash(value: string): InitTradeRequest; + + getReserveTxHex(): string; + setReserveTxHex(value: string): InitTradeRequest; + + getReserveTxKey(): string; + setReserveTxKey(value: string): InitTradeRequest; + + getPayoutAddress(): string; + setPayoutAddress(value: string): InitTradeRequest; + + getMakerSignature(): string; + setMakerSignature(value: string): InitTradeRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): InitTradeRequest.AsObject; + static toObject(includeInstance: boolean, msg: InitTradeRequest): InitTradeRequest.AsObject; + static serializeBinaryToWriter(message: InitTradeRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): InitTradeRequest; + static deserializeBinaryFromReader(message: InitTradeRequest, reader: jspb.BinaryReader): InitTradeRequest; +} + +export namespace InitTradeRequest { + export type AsObject = { + tradeId: string, + senderNodeAddress?: NodeAddress.AsObject, + pubKeyRing?: PubKeyRing.AsObject, + tradeAmount: number, + tradePrice: number, + tradeFee: number, + accountId: string, + paymentAccountId: string, + paymentMethodId: string, + uid: string, + accountAgeWitnessSignatureOfOfferId: Uint8Array | string, + currentDate: number, + makerNodeAddress?: NodeAddress.AsObject, + takerNodeAddress?: NodeAddress.AsObject, + arbitratorNodeAddress?: NodeAddress.AsObject, + reserveTxHash: string, + reserveTxHex: string, + reserveTxKey: string, + payoutAddress: string, + makerSignature: string, + } +} + +export class InitMultisigRequest extends jspb.Message { + getTradeId(): string; + setTradeId(value: string): InitMultisigRequest; + + getSenderNodeAddress(): NodeAddress | undefined; + setSenderNodeAddress(value?: NodeAddress): InitMultisigRequest; + hasSenderNodeAddress(): boolean; + clearSenderNodeAddress(): InitMultisigRequest; + + getPubKeyRing(): PubKeyRing | undefined; + setPubKeyRing(value?: PubKeyRing): InitMultisigRequest; + hasPubKeyRing(): boolean; + clearPubKeyRing(): InitMultisigRequest; + + getUid(): string; + setUid(value: string): InitMultisigRequest; + + getCurrentDate(): number; + setCurrentDate(value: number): InitMultisigRequest; + + getPreparedMultisigHex(): string; + setPreparedMultisigHex(value: string): InitMultisigRequest; + + getMadeMultisigHex(): string; + setMadeMultisigHex(value: string): InitMultisigRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): InitMultisigRequest.AsObject; + static toObject(includeInstance: boolean, msg: InitMultisigRequest): InitMultisigRequest.AsObject; + static serializeBinaryToWriter(message: InitMultisigRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): InitMultisigRequest; + static deserializeBinaryFromReader(message: InitMultisigRequest, reader: jspb.BinaryReader): InitMultisigRequest; +} + +export namespace InitMultisigRequest { + export type AsObject = { + tradeId: string, + senderNodeAddress?: NodeAddress.AsObject, + pubKeyRing?: PubKeyRing.AsObject, + uid: string, + currentDate: number, + preparedMultisigHex: string, + madeMultisigHex: string, + } +} + +export class SignContractRequest extends jspb.Message { + getTradeId(): string; + setTradeId(value: string): SignContractRequest; + + getSenderNodeAddress(): NodeAddress | undefined; + setSenderNodeAddress(value?: NodeAddress): SignContractRequest; + hasSenderNodeAddress(): boolean; + clearSenderNodeAddress(): SignContractRequest; + + getPubKeyRing(): PubKeyRing | undefined; + setPubKeyRing(value?: PubKeyRing): SignContractRequest; + hasPubKeyRing(): boolean; + clearPubKeyRing(): SignContractRequest; + + getUid(): string; + setUid(value: string): SignContractRequest; + + getCurrentDate(): number; + setCurrentDate(value: number): SignContractRequest; + + getAccountId(): string; + setAccountId(value: string): SignContractRequest; + + getPaymentAccountPayloadHash(): Uint8Array | string; + getPaymentAccountPayloadHash_asU8(): Uint8Array; + getPaymentAccountPayloadHash_asB64(): string; + setPaymentAccountPayloadHash(value: Uint8Array | string): SignContractRequest; + + getPayoutAddress(): string; + setPayoutAddress(value: string): SignContractRequest; + + getDepositTxHash(): string; + setDepositTxHash(value: string): SignContractRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): SignContractRequest.AsObject; + static toObject(includeInstance: boolean, msg: SignContractRequest): SignContractRequest.AsObject; + static serializeBinaryToWriter(message: SignContractRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SignContractRequest; + static deserializeBinaryFromReader(message: SignContractRequest, reader: jspb.BinaryReader): SignContractRequest; +} + +export namespace SignContractRequest { + export type AsObject = { + tradeId: string, + senderNodeAddress?: NodeAddress.AsObject, + pubKeyRing?: PubKeyRing.AsObject, + uid: string, + currentDate: number, + accountId: string, + paymentAccountPayloadHash: Uint8Array | string, + payoutAddress: string, + depositTxHash: string, + } +} + +export class SignContractResponse extends jspb.Message { + getTradeId(): string; + setTradeId(value: string): SignContractResponse; + + getSenderNodeAddress(): NodeAddress | undefined; + setSenderNodeAddress(value?: NodeAddress): SignContractResponse; + hasSenderNodeAddress(): boolean; + clearSenderNodeAddress(): SignContractResponse; + + getPubKeyRing(): PubKeyRing | undefined; + setPubKeyRing(value?: PubKeyRing): SignContractResponse; + hasPubKeyRing(): boolean; + clearPubKeyRing(): SignContractResponse; + + getUid(): string; + setUid(value: string): SignContractResponse; + + getCurrentDate(): number; + setCurrentDate(value: number): SignContractResponse; + + getContractSignature(): string; + setContractSignature(value: string): SignContractResponse; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): SignContractResponse.AsObject; + static toObject(includeInstance: boolean, msg: SignContractResponse): SignContractResponse.AsObject; + static serializeBinaryToWriter(message: SignContractResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SignContractResponse; + static deserializeBinaryFromReader(message: SignContractResponse, reader: jspb.BinaryReader): SignContractResponse; +} + +export namespace SignContractResponse { + export type AsObject = { + tradeId: string, + senderNodeAddress?: NodeAddress.AsObject, + pubKeyRing?: PubKeyRing.AsObject, + uid: string, + currentDate: number, + contractSignature: string, + } +} + +export class DepositRequest extends jspb.Message { + getTradeId(): string; + setTradeId(value: string): DepositRequest; + + getSenderNodeAddress(): NodeAddress | undefined; + setSenderNodeAddress(value?: NodeAddress): DepositRequest; + hasSenderNodeAddress(): boolean; + clearSenderNodeAddress(): DepositRequest; + + getPubKeyRing(): PubKeyRing | undefined; + setPubKeyRing(value?: PubKeyRing): DepositRequest; + hasPubKeyRing(): boolean; + clearPubKeyRing(): DepositRequest; + + getUid(): string; + setUid(value: string): DepositRequest; + + getCurrentDate(): number; + setCurrentDate(value: number): DepositRequest; + + getContractSignature(): string; + setContractSignature(value: string): DepositRequest; + + getDepositTxHex(): string; + setDepositTxHex(value: string): DepositRequest; + + getDepositTxKey(): string; + setDepositTxKey(value: string): DepositRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DepositRequest.AsObject; + static toObject(includeInstance: boolean, msg: DepositRequest): DepositRequest.AsObject; + static serializeBinaryToWriter(message: DepositRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DepositRequest; + static deserializeBinaryFromReader(message: DepositRequest, reader: jspb.BinaryReader): DepositRequest; +} + +export namespace DepositRequest { + export type AsObject = { + tradeId: string, + senderNodeAddress?: NodeAddress.AsObject, + pubKeyRing?: PubKeyRing.AsObject, + uid: string, + currentDate: number, + contractSignature: string, + depositTxHex: string, + depositTxKey: string, + } +} + +export class DepositResponse extends jspb.Message { + getTradeId(): string; + setTradeId(value: string): DepositResponse; + + getSenderNodeAddress(): NodeAddress | undefined; + setSenderNodeAddress(value?: NodeAddress): DepositResponse; + hasSenderNodeAddress(): boolean; + clearSenderNodeAddress(): DepositResponse; + + getPubKeyRing(): PubKeyRing | undefined; + setPubKeyRing(value?: PubKeyRing): DepositResponse; + hasPubKeyRing(): boolean; + clearPubKeyRing(): DepositResponse; + + getUid(): string; + setUid(value: string): DepositResponse; + + getCurrentDate(): number; + setCurrentDate(value: number): DepositResponse; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DepositResponse.AsObject; + static toObject(includeInstance: boolean, msg: DepositResponse): DepositResponse.AsObject; + static serializeBinaryToWriter(message: DepositResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DepositResponse; + static deserializeBinaryFromReader(message: DepositResponse, reader: jspb.BinaryReader): DepositResponse; +} + +export namespace DepositResponse { + export type AsObject = { + tradeId: string, + senderNodeAddress?: NodeAddress.AsObject, + pubKeyRing?: PubKeyRing.AsObject, + uid: string, + currentDate: number, + } +} + +export class PaymentAccountPayloadRequest extends jspb.Message { + getTradeId(): string; + setTradeId(value: string): PaymentAccountPayloadRequest; + + getSenderNodeAddress(): NodeAddress | undefined; + setSenderNodeAddress(value?: NodeAddress): PaymentAccountPayloadRequest; + hasSenderNodeAddress(): boolean; + clearSenderNodeAddress(): PaymentAccountPayloadRequest; + + getPubKeyRing(): PubKeyRing | undefined; + setPubKeyRing(value?: PubKeyRing): PaymentAccountPayloadRequest; + hasPubKeyRing(): boolean; + clearPubKeyRing(): PaymentAccountPayloadRequest; + + getUid(): string; + setUid(value: string): PaymentAccountPayloadRequest; + + getCurrentDate(): number; + setCurrentDate(value: number): PaymentAccountPayloadRequest; + + getPaymentAccountPayload(): PaymentAccountPayload | undefined; + setPaymentAccountPayload(value?: PaymentAccountPayload): PaymentAccountPayloadRequest; + hasPaymentAccountPayload(): boolean; + clearPaymentAccountPayload(): PaymentAccountPayloadRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PaymentAccountPayloadRequest.AsObject; + static toObject(includeInstance: boolean, msg: PaymentAccountPayloadRequest): PaymentAccountPayloadRequest.AsObject; + static serializeBinaryToWriter(message: PaymentAccountPayloadRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PaymentAccountPayloadRequest; + static deserializeBinaryFromReader(message: PaymentAccountPayloadRequest, reader: jspb.BinaryReader): PaymentAccountPayloadRequest; +} + +export namespace PaymentAccountPayloadRequest { + export type AsObject = { + tradeId: string, + senderNodeAddress?: NodeAddress.AsObject, + pubKeyRing?: PubKeyRing.AsObject, + uid: string, + currentDate: number, + paymentAccountPayload?: PaymentAccountPayload.AsObject, + } +} + +export class UpdateMultisigRequest extends jspb.Message { + getTradeId(): string; + setTradeId(value: string): UpdateMultisigRequest; + + getSenderNodeAddress(): NodeAddress | undefined; + setSenderNodeAddress(value?: NodeAddress): UpdateMultisigRequest; + hasSenderNodeAddress(): boolean; + clearSenderNodeAddress(): UpdateMultisigRequest; + + getPubKeyRing(): PubKeyRing | undefined; + setPubKeyRing(value?: PubKeyRing): UpdateMultisigRequest; + hasPubKeyRing(): boolean; + clearPubKeyRing(): UpdateMultisigRequest; + + getUid(): string; + setUid(value: string): UpdateMultisigRequest; + + getCurrentDate(): number; + setCurrentDate(value: number): UpdateMultisigRequest; + + getUpdatedMultisigHex(): string; + setUpdatedMultisigHex(value: string): UpdateMultisigRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): UpdateMultisigRequest.AsObject; + static toObject(includeInstance: boolean, msg: UpdateMultisigRequest): UpdateMultisigRequest.AsObject; + static serializeBinaryToWriter(message: UpdateMultisigRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): UpdateMultisigRequest; + static deserializeBinaryFromReader(message: UpdateMultisigRequest, reader: jspb.BinaryReader): UpdateMultisigRequest; +} + +export namespace UpdateMultisigRequest { + export type AsObject = { + tradeId: string, + senderNodeAddress?: NodeAddress.AsObject, + pubKeyRing?: PubKeyRing.AsObject, + uid: string, + currentDate: number, + updatedMultisigHex: string, + } +} + +export class UpdateMultisigResponse extends jspb.Message { + getTradeId(): string; + setTradeId(value: string): UpdateMultisigResponse; + + getSenderNodeAddress(): NodeAddress | undefined; + setSenderNodeAddress(value?: NodeAddress): UpdateMultisigResponse; + hasSenderNodeAddress(): boolean; + clearSenderNodeAddress(): UpdateMultisigResponse; + + getPubKeyRing(): PubKeyRing | undefined; + setPubKeyRing(value?: PubKeyRing): UpdateMultisigResponse; + hasPubKeyRing(): boolean; + clearPubKeyRing(): UpdateMultisigResponse; + + getUid(): string; + setUid(value: string): UpdateMultisigResponse; + + getCurrentDate(): number; + setCurrentDate(value: number): UpdateMultisigResponse; + + getUpdatedMultisigHex(): string; + setUpdatedMultisigHex(value: string): UpdateMultisigResponse; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): UpdateMultisigResponse.AsObject; + static toObject(includeInstance: boolean, msg: UpdateMultisigResponse): UpdateMultisigResponse.AsObject; + static serializeBinaryToWriter(message: UpdateMultisigResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): UpdateMultisigResponse; + static deserializeBinaryFromReader(message: UpdateMultisigResponse, reader: jspb.BinaryReader): UpdateMultisigResponse; +} + +export namespace UpdateMultisigResponse { + export type AsObject = { + tradeId: string, + senderNodeAddress?: NodeAddress.AsObject, + pubKeyRing?: PubKeyRing.AsObject, + uid: string, + currentDate: number, + updatedMultisigHex: string, + } +} + +export class DelayedPayoutTxSignatureRequest extends jspb.Message { + getUid(): string; + setUid(value: string): DelayedPayoutTxSignatureRequest; + + getTradeId(): string; + setTradeId(value: string): DelayedPayoutTxSignatureRequest; + + getSenderNodeAddress(): NodeAddress | undefined; + setSenderNodeAddress(value?: NodeAddress): DelayedPayoutTxSignatureRequest; + hasSenderNodeAddress(): boolean; + clearSenderNodeAddress(): DelayedPayoutTxSignatureRequest; + + getDelayedPayoutTx(): Uint8Array | string; + getDelayedPayoutTx_asU8(): Uint8Array; + getDelayedPayoutTx_asB64(): string; + setDelayedPayoutTx(value: Uint8Array | string): DelayedPayoutTxSignatureRequest; + + getDelayedPayoutTxSellerSignature(): Uint8Array | string; + getDelayedPayoutTxSellerSignature_asU8(): Uint8Array; + getDelayedPayoutTxSellerSignature_asB64(): string; + setDelayedPayoutTxSellerSignature(value: Uint8Array | string): DelayedPayoutTxSignatureRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DelayedPayoutTxSignatureRequest.AsObject; + static toObject(includeInstance: boolean, msg: DelayedPayoutTxSignatureRequest): DelayedPayoutTxSignatureRequest.AsObject; + static serializeBinaryToWriter(message: DelayedPayoutTxSignatureRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DelayedPayoutTxSignatureRequest; + static deserializeBinaryFromReader(message: DelayedPayoutTxSignatureRequest, reader: jspb.BinaryReader): DelayedPayoutTxSignatureRequest; +} + +export namespace DelayedPayoutTxSignatureRequest { + export type AsObject = { + uid: string, + tradeId: string, + senderNodeAddress?: NodeAddress.AsObject, + delayedPayoutTx: Uint8Array | string, + delayedPayoutTxSellerSignature: Uint8Array | string, + } +} + +export class DelayedPayoutTxSignatureResponse extends jspb.Message { + getUid(): string; + setUid(value: string): DelayedPayoutTxSignatureResponse; + + getTradeId(): string; + setTradeId(value: string): DelayedPayoutTxSignatureResponse; + + getSenderNodeAddress(): NodeAddress | undefined; + setSenderNodeAddress(value?: NodeAddress): DelayedPayoutTxSignatureResponse; + hasSenderNodeAddress(): boolean; + clearSenderNodeAddress(): DelayedPayoutTxSignatureResponse; + + getDelayedPayoutTxBuyerSignature(): Uint8Array | string; + getDelayedPayoutTxBuyerSignature_asU8(): Uint8Array; + getDelayedPayoutTxBuyerSignature_asB64(): string; + setDelayedPayoutTxBuyerSignature(value: Uint8Array | string): DelayedPayoutTxSignatureResponse; + + getDepositTx(): Uint8Array | string; + getDepositTx_asU8(): Uint8Array; + getDepositTx_asB64(): string; + setDepositTx(value: Uint8Array | string): DelayedPayoutTxSignatureResponse; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DelayedPayoutTxSignatureResponse.AsObject; + static toObject(includeInstance: boolean, msg: DelayedPayoutTxSignatureResponse): DelayedPayoutTxSignatureResponse.AsObject; + static serializeBinaryToWriter(message: DelayedPayoutTxSignatureResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DelayedPayoutTxSignatureResponse; + static deserializeBinaryFromReader(message: DelayedPayoutTxSignatureResponse, reader: jspb.BinaryReader): DelayedPayoutTxSignatureResponse; +} + +export namespace DelayedPayoutTxSignatureResponse { + export type AsObject = { + uid: string, + tradeId: string, + senderNodeAddress?: NodeAddress.AsObject, + delayedPayoutTxBuyerSignature: Uint8Array | string, + depositTx: Uint8Array | string, + } +} + +export class DepositTxAndDelayedPayoutTxMessage extends jspb.Message { + getUid(): string; + setUid(value: string): DepositTxAndDelayedPayoutTxMessage; + + getTradeId(): string; + setTradeId(value: string): DepositTxAndDelayedPayoutTxMessage; + + getSenderNodeAddress(): NodeAddress | undefined; + setSenderNodeAddress(value?: NodeAddress): DepositTxAndDelayedPayoutTxMessage; + hasSenderNodeAddress(): boolean; + clearSenderNodeAddress(): DepositTxAndDelayedPayoutTxMessage; + + getDepositTx(): Uint8Array | string; + getDepositTx_asU8(): Uint8Array; + getDepositTx_asB64(): string; + setDepositTx(value: Uint8Array | string): DepositTxAndDelayedPayoutTxMessage; + + getDelayedPayoutTx(): Uint8Array | string; + getDelayedPayoutTx_asU8(): Uint8Array; + getDelayedPayoutTx_asB64(): string; + setDelayedPayoutTx(value: Uint8Array | string): DepositTxAndDelayedPayoutTxMessage; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DepositTxAndDelayedPayoutTxMessage.AsObject; + static toObject(includeInstance: boolean, msg: DepositTxAndDelayedPayoutTxMessage): DepositTxAndDelayedPayoutTxMessage.AsObject; + static serializeBinaryToWriter(message: DepositTxAndDelayedPayoutTxMessage, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DepositTxAndDelayedPayoutTxMessage; + static deserializeBinaryFromReader(message: DepositTxAndDelayedPayoutTxMessage, reader: jspb.BinaryReader): DepositTxAndDelayedPayoutTxMessage; +} + +export namespace DepositTxAndDelayedPayoutTxMessage { + export type AsObject = { + uid: string, + tradeId: string, + senderNodeAddress?: NodeAddress.AsObject, + depositTx: Uint8Array | string, + delayedPayoutTx: Uint8Array | string, + } +} + +export class DepositTxMessage extends jspb.Message { + getUid(): string; + setUid(value: string): DepositTxMessage; + + getTradeId(): string; + setTradeId(value: string): DepositTxMessage; + + getSenderNodeAddress(): NodeAddress | undefined; + setSenderNodeAddress(value?: NodeAddress): DepositTxMessage; + hasSenderNodeAddress(): boolean; + clearSenderNodeAddress(): DepositTxMessage; + + getDepositTxWithoutWitnesses(): Uint8Array | string; + getDepositTxWithoutWitnesses_asU8(): Uint8Array; + getDepositTxWithoutWitnesses_asB64(): string; + setDepositTxWithoutWitnesses(value: Uint8Array | string): DepositTxMessage; + + getPubKeyRing(): PubKeyRing | undefined; + setPubKeyRing(value?: PubKeyRing): DepositTxMessage; + hasPubKeyRing(): boolean; + clearPubKeyRing(): DepositTxMessage; + + getTradeFeeTxId(): string; + setTradeFeeTxId(value: string): DepositTxMessage; + + getDepositTxId(): string; + setDepositTxId(value: string): DepositTxMessage; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DepositTxMessage.AsObject; + static toObject(includeInstance: boolean, msg: DepositTxMessage): DepositTxMessage.AsObject; + static serializeBinaryToWriter(message: DepositTxMessage, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DepositTxMessage; + static deserializeBinaryFromReader(message: DepositTxMessage, reader: jspb.BinaryReader): DepositTxMessage; +} + +export namespace DepositTxMessage { + export type AsObject = { + uid: string, + tradeId: string, + senderNodeAddress?: NodeAddress.AsObject, + depositTxWithoutWitnesses: Uint8Array | string, + pubKeyRing?: PubKeyRing.AsObject, + tradeFeeTxId: string, + depositTxId: string, + } +} + +export class PeerPublishedDelayedPayoutTxMessage extends jspb.Message { + getUid(): string; + setUid(value: string): PeerPublishedDelayedPayoutTxMessage; + + getTradeId(): string; + setTradeId(value: string): PeerPublishedDelayedPayoutTxMessage; + + getSenderNodeAddress(): NodeAddress | undefined; + setSenderNodeAddress(value?: NodeAddress): PeerPublishedDelayedPayoutTxMessage; + hasSenderNodeAddress(): boolean; + clearSenderNodeAddress(): PeerPublishedDelayedPayoutTxMessage; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PeerPublishedDelayedPayoutTxMessage.AsObject; + static toObject(includeInstance: boolean, msg: PeerPublishedDelayedPayoutTxMessage): PeerPublishedDelayedPayoutTxMessage.AsObject; + static serializeBinaryToWriter(message: PeerPublishedDelayedPayoutTxMessage, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PeerPublishedDelayedPayoutTxMessage; + static deserializeBinaryFromReader(message: PeerPublishedDelayedPayoutTxMessage, reader: jspb.BinaryReader): PeerPublishedDelayedPayoutTxMessage; +} + +export namespace PeerPublishedDelayedPayoutTxMessage { + export type AsObject = { + uid: string, + tradeId: string, + senderNodeAddress?: NodeAddress.AsObject, + } +} + +export class CounterCurrencyTransferStartedMessage extends jspb.Message { + getTradeId(): string; + setTradeId(value: string): CounterCurrencyTransferStartedMessage; + + getBuyerPayoutAddress(): string; + setBuyerPayoutAddress(value: string): CounterCurrencyTransferStartedMessage; + + getSenderNodeAddress(): NodeAddress | undefined; + setSenderNodeAddress(value?: NodeAddress): CounterCurrencyTransferStartedMessage; + hasSenderNodeAddress(): boolean; + clearSenderNodeAddress(): CounterCurrencyTransferStartedMessage; + + getBuyerPayoutTxSigned(): string; + setBuyerPayoutTxSigned(value: string): CounterCurrencyTransferStartedMessage; + + getCounterCurrencyTxId(): string; + setCounterCurrencyTxId(value: string): CounterCurrencyTransferStartedMessage; + + getUid(): string; + setUid(value: string): CounterCurrencyTransferStartedMessage; + + getCounterCurrencyExtraData(): string; + setCounterCurrencyExtraData(value: string): CounterCurrencyTransferStartedMessage; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CounterCurrencyTransferStartedMessage.AsObject; + static toObject(includeInstance: boolean, msg: CounterCurrencyTransferStartedMessage): CounterCurrencyTransferStartedMessage.AsObject; + static serializeBinaryToWriter(message: CounterCurrencyTransferStartedMessage, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): CounterCurrencyTransferStartedMessage; + static deserializeBinaryFromReader(message: CounterCurrencyTransferStartedMessage, reader: jspb.BinaryReader): CounterCurrencyTransferStartedMessage; +} + +export namespace CounterCurrencyTransferStartedMessage { + export type AsObject = { + tradeId: string, + buyerPayoutAddress: string, + senderNodeAddress?: NodeAddress.AsObject, + buyerPayoutTxSigned: string, + counterCurrencyTxId: string, + uid: string, + counterCurrencyExtraData: string, + } +} + +export class FinalizePayoutTxRequest extends jspb.Message { + getTradeId(): string; + setTradeId(value: string): FinalizePayoutTxRequest; + + getSellerSignature(): Uint8Array | string; + getSellerSignature_asU8(): Uint8Array; + getSellerSignature_asB64(): string; + setSellerSignature(value: Uint8Array | string): FinalizePayoutTxRequest; + + getSellerPayoutAddress(): string; + setSellerPayoutAddress(value: string): FinalizePayoutTxRequest; + + getSenderNodeAddress(): NodeAddress | undefined; + setSenderNodeAddress(value?: NodeAddress): FinalizePayoutTxRequest; + hasSenderNodeAddress(): boolean; + clearSenderNodeAddress(): FinalizePayoutTxRequest; + + getUid(): string; + setUid(value: string): FinalizePayoutTxRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): FinalizePayoutTxRequest.AsObject; + static toObject(includeInstance: boolean, msg: FinalizePayoutTxRequest): FinalizePayoutTxRequest.AsObject; + static serializeBinaryToWriter(message: FinalizePayoutTxRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): FinalizePayoutTxRequest; + static deserializeBinaryFromReader(message: FinalizePayoutTxRequest, reader: jspb.BinaryReader): FinalizePayoutTxRequest; +} + +export namespace FinalizePayoutTxRequest { + export type AsObject = { + tradeId: string, + sellerSignature: Uint8Array | string, + sellerPayoutAddress: string, + senderNodeAddress?: NodeAddress.AsObject, + uid: string, + } +} + +export class ArbitratorPayoutTxRequest extends jspb.Message { + getDispute(): Dispute | undefined; + setDispute(value?: Dispute): ArbitratorPayoutTxRequest; + hasDispute(): boolean; + clearDispute(): ArbitratorPayoutTxRequest; + + getSenderNodeAddress(): NodeAddress | undefined; + setSenderNodeAddress(value?: NodeAddress): ArbitratorPayoutTxRequest; + hasSenderNodeAddress(): boolean; + clearSenderNodeAddress(): ArbitratorPayoutTxRequest; + + getUid(): string; + setUid(value: string): ArbitratorPayoutTxRequest; + + getType(): SupportType; + setType(value: SupportType): ArbitratorPayoutTxRequest; + + getUpdatedMultisigHex(): string; + setUpdatedMultisigHex(value: string): ArbitratorPayoutTxRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ArbitratorPayoutTxRequest.AsObject; + static toObject(includeInstance: boolean, msg: ArbitratorPayoutTxRequest): ArbitratorPayoutTxRequest.AsObject; + static serializeBinaryToWriter(message: ArbitratorPayoutTxRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ArbitratorPayoutTxRequest; + static deserializeBinaryFromReader(message: ArbitratorPayoutTxRequest, reader: jspb.BinaryReader): ArbitratorPayoutTxRequest; +} + +export namespace ArbitratorPayoutTxRequest { + export type AsObject = { + dispute?: Dispute.AsObject, + senderNodeAddress?: NodeAddress.AsObject, + uid: string, + type: SupportType, + updatedMultisigHex: string, + } +} + +export class ArbitratorPayoutTxResponse extends jspb.Message { + getTradeId(): string; + setTradeId(value: string): ArbitratorPayoutTxResponse; + + getSenderNodeAddress(): NodeAddress | undefined; + setSenderNodeAddress(value?: NodeAddress): ArbitratorPayoutTxResponse; + hasSenderNodeAddress(): boolean; + clearSenderNodeAddress(): ArbitratorPayoutTxResponse; + + getUid(): string; + setUid(value: string): ArbitratorPayoutTxResponse; + + getType(): SupportType; + setType(value: SupportType): ArbitratorPayoutTxResponse; + + getArbitratorSignedPayoutTxHex(): string; + setArbitratorSignedPayoutTxHex(value: string): ArbitratorPayoutTxResponse; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ArbitratorPayoutTxResponse.AsObject; + static toObject(includeInstance: boolean, msg: ArbitratorPayoutTxResponse): ArbitratorPayoutTxResponse.AsObject; + static serializeBinaryToWriter(message: ArbitratorPayoutTxResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ArbitratorPayoutTxResponse; + static deserializeBinaryFromReader(message: ArbitratorPayoutTxResponse, reader: jspb.BinaryReader): ArbitratorPayoutTxResponse; +} + +export namespace ArbitratorPayoutTxResponse { + export type AsObject = { + tradeId: string, + senderNodeAddress?: NodeAddress.AsObject, + uid: string, + type: SupportType, + arbitratorSignedPayoutTxHex: string, + } +} + +export class PayoutTxPublishedMessage extends jspb.Message { + getTradeId(): string; + setTradeId(value: string): PayoutTxPublishedMessage; + + getSignedMultisigTxHex(): string; + setSignedMultisigTxHex(value: string): PayoutTxPublishedMessage; + + getSenderNodeAddress(): NodeAddress | undefined; + setSenderNodeAddress(value?: NodeAddress): PayoutTxPublishedMessage; + hasSenderNodeAddress(): boolean; + clearSenderNodeAddress(): PayoutTxPublishedMessage; + + getUid(): string; + setUid(value: string): PayoutTxPublishedMessage; + + getSignedWitness(): SignedWitness | undefined; + setSignedWitness(value?: SignedWitness): PayoutTxPublishedMessage; + hasSignedWitness(): boolean; + clearSignedWitness(): PayoutTxPublishedMessage; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PayoutTxPublishedMessage.AsObject; + static toObject(includeInstance: boolean, msg: PayoutTxPublishedMessage): PayoutTxPublishedMessage.AsObject; + static serializeBinaryToWriter(message: PayoutTxPublishedMessage, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PayoutTxPublishedMessage; + static deserializeBinaryFromReader(message: PayoutTxPublishedMessage, reader: jspb.BinaryReader): PayoutTxPublishedMessage; +} + +export namespace PayoutTxPublishedMessage { + export type AsObject = { + tradeId: string, + signedMultisigTxHex: string, + senderNodeAddress?: NodeAddress.AsObject, + uid: string, + signedWitness?: SignedWitness.AsObject, + } +} + +export class MediatedPayoutTxPublishedMessage extends jspb.Message { + getTradeId(): string; + setTradeId(value: string): MediatedPayoutTxPublishedMessage; + + getPayoutTx(): Uint8Array | string; + getPayoutTx_asU8(): Uint8Array; + getPayoutTx_asB64(): string; + setPayoutTx(value: Uint8Array | string): MediatedPayoutTxPublishedMessage; + + getSenderNodeAddress(): NodeAddress | undefined; + setSenderNodeAddress(value?: NodeAddress): MediatedPayoutTxPublishedMessage; + hasSenderNodeAddress(): boolean; + clearSenderNodeAddress(): MediatedPayoutTxPublishedMessage; + + getUid(): string; + setUid(value: string): MediatedPayoutTxPublishedMessage; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MediatedPayoutTxPublishedMessage.AsObject; + static toObject(includeInstance: boolean, msg: MediatedPayoutTxPublishedMessage): MediatedPayoutTxPublishedMessage.AsObject; + static serializeBinaryToWriter(message: MediatedPayoutTxPublishedMessage, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MediatedPayoutTxPublishedMessage; + static deserializeBinaryFromReader(message: MediatedPayoutTxPublishedMessage, reader: jspb.BinaryReader): MediatedPayoutTxPublishedMessage; +} + +export namespace MediatedPayoutTxPublishedMessage { + export type AsObject = { + tradeId: string, + payoutTx: Uint8Array | string, + senderNodeAddress?: NodeAddress.AsObject, + uid: string, + } +} + +export class MediatedPayoutTxSignatureMessage extends jspb.Message { + getUid(): string; + setUid(value: string): MediatedPayoutTxSignatureMessage; + + getTradeId(): string; + setTradeId(value: string): MediatedPayoutTxSignatureMessage; + + getTxSignature(): Uint8Array | string; + getTxSignature_asU8(): Uint8Array; + getTxSignature_asB64(): string; + setTxSignature(value: Uint8Array | string): MediatedPayoutTxSignatureMessage; + + getSenderNodeAddress(): NodeAddress | undefined; + setSenderNodeAddress(value?: NodeAddress): MediatedPayoutTxSignatureMessage; + hasSenderNodeAddress(): boolean; + clearSenderNodeAddress(): MediatedPayoutTxSignatureMessage; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MediatedPayoutTxSignatureMessage.AsObject; + static toObject(includeInstance: boolean, msg: MediatedPayoutTxSignatureMessage): MediatedPayoutTxSignatureMessage.AsObject; + static serializeBinaryToWriter(message: MediatedPayoutTxSignatureMessage, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MediatedPayoutTxSignatureMessage; + static deserializeBinaryFromReader(message: MediatedPayoutTxSignatureMessage, reader: jspb.BinaryReader): MediatedPayoutTxSignatureMessage; +} + +export namespace MediatedPayoutTxSignatureMessage { + export type AsObject = { + uid: string, + tradeId: string, + txSignature: Uint8Array | string, + senderNodeAddress?: NodeAddress.AsObject, + } +} + +export class RefreshTradeStateRequest extends jspb.Message { + getUid(): string; + setUid(value: string): RefreshTradeStateRequest; + + getTradeId(): string; + setTradeId(value: string): RefreshTradeStateRequest; + + getSenderNodeAddress(): NodeAddress | undefined; + setSenderNodeAddress(value?: NodeAddress): RefreshTradeStateRequest; + hasSenderNodeAddress(): boolean; + clearSenderNodeAddress(): RefreshTradeStateRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): RefreshTradeStateRequest.AsObject; + static toObject(includeInstance: boolean, msg: RefreshTradeStateRequest): RefreshTradeStateRequest.AsObject; + static serializeBinaryToWriter(message: RefreshTradeStateRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): RefreshTradeStateRequest; + static deserializeBinaryFromReader(message: RefreshTradeStateRequest, reader: jspb.BinaryReader): RefreshTradeStateRequest; +} + +export namespace RefreshTradeStateRequest { + export type AsObject = { + uid: string, + tradeId: string, + senderNodeAddress?: NodeAddress.AsObject, + } +} + +export class TraderSignedWitnessMessage extends jspb.Message { + getUid(): string; + setUid(value: string): TraderSignedWitnessMessage; + + getTradeId(): string; + setTradeId(value: string): TraderSignedWitnessMessage; + + getSenderNodeAddress(): NodeAddress | undefined; + setSenderNodeAddress(value?: NodeAddress): TraderSignedWitnessMessage; + hasSenderNodeAddress(): boolean; + clearSenderNodeAddress(): TraderSignedWitnessMessage; + + getSignedWitness(): SignedWitness | undefined; + setSignedWitness(value?: SignedWitness): TraderSignedWitnessMessage; + hasSignedWitness(): boolean; + clearSignedWitness(): TraderSignedWitnessMessage; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): TraderSignedWitnessMessage.AsObject; + static toObject(includeInstance: boolean, msg: TraderSignedWitnessMessage): TraderSignedWitnessMessage.AsObject; + static serializeBinaryToWriter(message: TraderSignedWitnessMessage, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): TraderSignedWitnessMessage; + static deserializeBinaryFromReader(message: TraderSignedWitnessMessage, reader: jspb.BinaryReader): TraderSignedWitnessMessage; +} + +export namespace TraderSignedWitnessMessage { + export type AsObject = { + uid: string, + tradeId: string, + senderNodeAddress?: NodeAddress.AsObject, + signedWitness?: SignedWitness.AsObject, + } +} + +export class OpenNewDisputeMessage extends jspb.Message { + getDispute(): Dispute | undefined; + setDispute(value?: Dispute): OpenNewDisputeMessage; + hasDispute(): boolean; + clearDispute(): OpenNewDisputeMessage; + + getSenderNodeAddress(): NodeAddress | undefined; + setSenderNodeAddress(value?: NodeAddress): OpenNewDisputeMessage; + hasSenderNodeAddress(): boolean; + clearSenderNodeAddress(): OpenNewDisputeMessage; + + getUid(): string; + setUid(value: string): OpenNewDisputeMessage; + + getType(): SupportType; + setType(value: SupportType): OpenNewDisputeMessage; + + getUpdatedMultisigHex(): string; + setUpdatedMultisigHex(value: string): OpenNewDisputeMessage; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): OpenNewDisputeMessage.AsObject; + static toObject(includeInstance: boolean, msg: OpenNewDisputeMessage): OpenNewDisputeMessage.AsObject; + static serializeBinaryToWriter(message: OpenNewDisputeMessage, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): OpenNewDisputeMessage; + static deserializeBinaryFromReader(message: OpenNewDisputeMessage, reader: jspb.BinaryReader): OpenNewDisputeMessage; +} + +export namespace OpenNewDisputeMessage { + export type AsObject = { + dispute?: Dispute.AsObject, + senderNodeAddress?: NodeAddress.AsObject, + uid: string, + type: SupportType, + updatedMultisigHex: string, + } +} + +export class PeerOpenedDisputeMessage extends jspb.Message { + getDispute(): Dispute | undefined; + setDispute(value?: Dispute): PeerOpenedDisputeMessage; + hasDispute(): boolean; + clearDispute(): PeerOpenedDisputeMessage; + + getSenderNodeAddress(): NodeAddress | undefined; + setSenderNodeAddress(value?: NodeAddress): PeerOpenedDisputeMessage; + hasSenderNodeAddress(): boolean; + clearSenderNodeAddress(): PeerOpenedDisputeMessage; + + getUid(): string; + setUid(value: string): PeerOpenedDisputeMessage; + + getType(): SupportType; + setType(value: SupportType): PeerOpenedDisputeMessage; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PeerOpenedDisputeMessage.AsObject; + static toObject(includeInstance: boolean, msg: PeerOpenedDisputeMessage): PeerOpenedDisputeMessage.AsObject; + static serializeBinaryToWriter(message: PeerOpenedDisputeMessage, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PeerOpenedDisputeMessage; + static deserializeBinaryFromReader(message: PeerOpenedDisputeMessage, reader: jspb.BinaryReader): PeerOpenedDisputeMessage; +} + +export namespace PeerOpenedDisputeMessage { + export type AsObject = { + dispute?: Dispute.AsObject, + senderNodeAddress?: NodeAddress.AsObject, + uid: string, + type: SupportType, + } +} + +export class ChatMessage extends jspb.Message { + getDate(): number; + setDate(value: number): ChatMessage; + + getTradeId(): string; + setTradeId(value: string): ChatMessage; + + getTraderId(): number; + setTraderId(value: number): ChatMessage; + + getSenderIsTrader(): boolean; + setSenderIsTrader(value: boolean): ChatMessage; + + getMessage(): string; + setMessage(value: string): ChatMessage; + + getAttachmentsList(): Array; + setAttachmentsList(value: Array): ChatMessage; + clearAttachmentsList(): ChatMessage; + addAttachments(value?: Attachment, index?: number): Attachment; + + getArrived(): boolean; + setArrived(value: boolean): ChatMessage; + + getStoredInMailbox(): boolean; + setStoredInMailbox(value: boolean): ChatMessage; + + getIsSystemMessage(): boolean; + setIsSystemMessage(value: boolean): ChatMessage; + + getSenderNodeAddress(): NodeAddress | undefined; + setSenderNodeAddress(value?: NodeAddress): ChatMessage; + hasSenderNodeAddress(): boolean; + clearSenderNodeAddress(): ChatMessage; + + getUid(): string; + setUid(value: string): ChatMessage; + + getSendMessageError(): string; + setSendMessageError(value: string): ChatMessage; + + getAcknowledged(): boolean; + setAcknowledged(value: boolean): ChatMessage; + + getAckError(): string; + setAckError(value: string): ChatMessage; + + getType(): SupportType; + setType(value: SupportType): ChatMessage; + + getWasDisplayed(): boolean; + setWasDisplayed(value: boolean): ChatMessage; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ChatMessage.AsObject; + static toObject(includeInstance: boolean, msg: ChatMessage): ChatMessage.AsObject; + static serializeBinaryToWriter(message: ChatMessage, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ChatMessage; + static deserializeBinaryFromReader(message: ChatMessage, reader: jspb.BinaryReader): ChatMessage; +} + +export namespace ChatMessage { + export type AsObject = { + date: number, + tradeId: string, + traderId: number, + senderIsTrader: boolean, + message: string, + attachmentsList: Array, + arrived: boolean, + storedInMailbox: boolean, + isSystemMessage: boolean, + senderNodeAddress?: NodeAddress.AsObject, + uid: string, + sendMessageError: string, + acknowledged: boolean, + ackError: string, + type: SupportType, + wasDisplayed: boolean, + } +} + +export class DisputeResultMessage extends jspb.Message { + getUid(): string; + setUid(value: string): DisputeResultMessage; + + getDisputeResult(): DisputeResult | undefined; + setDisputeResult(value?: DisputeResult): DisputeResultMessage; + hasDisputeResult(): boolean; + clearDisputeResult(): DisputeResultMessage; + + getSenderNodeAddress(): NodeAddress | undefined; + setSenderNodeAddress(value?: NodeAddress): DisputeResultMessage; + hasSenderNodeAddress(): boolean; + clearSenderNodeAddress(): DisputeResultMessage; + + getType(): SupportType; + setType(value: SupportType): DisputeResultMessage; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DisputeResultMessage.AsObject; + static toObject(includeInstance: boolean, msg: DisputeResultMessage): DisputeResultMessage.AsObject; + static serializeBinaryToWriter(message: DisputeResultMessage, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DisputeResultMessage; + static deserializeBinaryFromReader(message: DisputeResultMessage, reader: jspb.BinaryReader): DisputeResultMessage; +} + +export namespace DisputeResultMessage { + export type AsObject = { + uid: string, + disputeResult?: DisputeResult.AsObject, + senderNodeAddress?: NodeAddress.AsObject, + type: SupportType, + } +} + +export class PeerPublishedDisputePayoutTxMessage extends jspb.Message { + getUid(): string; + setUid(value: string): PeerPublishedDisputePayoutTxMessage; + + getTradeId(): string; + setTradeId(value: string): PeerPublishedDisputePayoutTxMessage; + + getSenderNodeAddress(): NodeAddress | undefined; + setSenderNodeAddress(value?: NodeAddress): PeerPublishedDisputePayoutTxMessage; + hasSenderNodeAddress(): boolean; + clearSenderNodeAddress(): PeerPublishedDisputePayoutTxMessage; + + getType(): SupportType; + setType(value: SupportType): PeerPublishedDisputePayoutTxMessage; + + getUpdatedMultisigHex(): string; + setUpdatedMultisigHex(value: string): PeerPublishedDisputePayoutTxMessage; + + getPayoutTxHex(): string; + setPayoutTxHex(value: string): PeerPublishedDisputePayoutTxMessage; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PeerPublishedDisputePayoutTxMessage.AsObject; + static toObject(includeInstance: boolean, msg: PeerPublishedDisputePayoutTxMessage): PeerPublishedDisputePayoutTxMessage.AsObject; + static serializeBinaryToWriter(message: PeerPublishedDisputePayoutTxMessage, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PeerPublishedDisputePayoutTxMessage; + static deserializeBinaryFromReader(message: PeerPublishedDisputePayoutTxMessage, reader: jspb.BinaryReader): PeerPublishedDisputePayoutTxMessage; +} + +export namespace PeerPublishedDisputePayoutTxMessage { + export type AsObject = { + uid: string, + tradeId: string, + senderNodeAddress?: NodeAddress.AsObject, + type: SupportType, + updatedMultisigHex: string, + payoutTxHex: string, + } +} + +export class PrivateNotificationMessage extends jspb.Message { + getUid(): string; + setUid(value: string): PrivateNotificationMessage; + + getSenderNodeAddress(): NodeAddress | undefined; + setSenderNodeAddress(value?: NodeAddress): PrivateNotificationMessage; + hasSenderNodeAddress(): boolean; + clearSenderNodeAddress(): PrivateNotificationMessage; + + getPrivateNotificationPayload(): PrivateNotificationPayload | undefined; + setPrivateNotificationPayload(value?: PrivateNotificationPayload): PrivateNotificationMessage; + hasPrivateNotificationPayload(): boolean; + clearPrivateNotificationPayload(): PrivateNotificationMessage; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PrivateNotificationMessage.AsObject; + static toObject(includeInstance: boolean, msg: PrivateNotificationMessage): PrivateNotificationMessage.AsObject; + static serializeBinaryToWriter(message: PrivateNotificationMessage, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PrivateNotificationMessage; + static deserializeBinaryFromReader(message: PrivateNotificationMessage, reader: jspb.BinaryReader): PrivateNotificationMessage; +} + +export namespace PrivateNotificationMessage { + export type AsObject = { + uid: string, + senderNodeAddress?: NodeAddress.AsObject, + privateNotificationPayload?: PrivateNotificationPayload.AsObject, + } +} + +export class GetBlocksRequest extends jspb.Message { + getFromBlockHeight(): number; + setFromBlockHeight(value: number): GetBlocksRequest; + + getNonce(): number; + setNonce(value: number): GetBlocksRequest; + + getSenderNodeAddress(): NodeAddress | undefined; + setSenderNodeAddress(value?: NodeAddress): GetBlocksRequest; + hasSenderNodeAddress(): boolean; + clearSenderNodeAddress(): GetBlocksRequest; + + getSupportedCapabilitiesList(): Array; + setSupportedCapabilitiesList(value: Array): GetBlocksRequest; + clearSupportedCapabilitiesList(): GetBlocksRequest; + addSupportedCapabilities(value: number, index?: number): GetBlocksRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetBlocksRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetBlocksRequest): GetBlocksRequest.AsObject; + static serializeBinaryToWriter(message: GetBlocksRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetBlocksRequest; + static deserializeBinaryFromReader(message: GetBlocksRequest, reader: jspb.BinaryReader): GetBlocksRequest; +} + +export namespace GetBlocksRequest { + export type AsObject = { + fromBlockHeight: number, + nonce: number, + senderNodeAddress?: NodeAddress.AsObject, + supportedCapabilitiesList: Array, + } +} + +export class GetBlocksResponse extends jspb.Message { + getRawBlocksList(): Array; + setRawBlocksList(value: Array): GetBlocksResponse; + clearRawBlocksList(): GetBlocksResponse; + addRawBlocks(value?: BaseBlock, index?: number): BaseBlock; + + getRequestNonce(): number; + setRequestNonce(value: number): GetBlocksResponse; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetBlocksResponse.AsObject; + static toObject(includeInstance: boolean, msg: GetBlocksResponse): GetBlocksResponse.AsObject; + static serializeBinaryToWriter(message: GetBlocksResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetBlocksResponse; + static deserializeBinaryFromReader(message: GetBlocksResponse, reader: jspb.BinaryReader): GetBlocksResponse; +} + +export namespace GetBlocksResponse { + export type AsObject = { + rawBlocksList: Array, + requestNonce: number, + } +} + +export class NewBlockBroadcastMessage extends jspb.Message { + getRawBlock(): BaseBlock | undefined; + setRawBlock(value?: BaseBlock): NewBlockBroadcastMessage; + hasRawBlock(): boolean; + clearRawBlock(): NewBlockBroadcastMessage; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): NewBlockBroadcastMessage.AsObject; + static toObject(includeInstance: boolean, msg: NewBlockBroadcastMessage): NewBlockBroadcastMessage.AsObject; + static serializeBinaryToWriter(message: NewBlockBroadcastMessage, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): NewBlockBroadcastMessage; + static deserializeBinaryFromReader(message: NewBlockBroadcastMessage, reader: jspb.BinaryReader): NewBlockBroadcastMessage; +} + +export namespace NewBlockBroadcastMessage { + export type AsObject = { + rawBlock?: BaseBlock.AsObject, + } +} + +export class RepublishGovernanceDataRequest extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): RepublishGovernanceDataRequest.AsObject; + static toObject(includeInstance: boolean, msg: RepublishGovernanceDataRequest): RepublishGovernanceDataRequest.AsObject; + static serializeBinaryToWriter(message: RepublishGovernanceDataRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): RepublishGovernanceDataRequest; + static deserializeBinaryFromReader(message: RepublishGovernanceDataRequest, reader: jspb.BinaryReader): RepublishGovernanceDataRequest; +} + +export namespace RepublishGovernanceDataRequest { + export type AsObject = { + } +} + +export class NewDaoStateHashMessage extends jspb.Message { + getStateHash(): DaoStateHash | undefined; + setStateHash(value?: DaoStateHash): NewDaoStateHashMessage; + hasStateHash(): boolean; + clearStateHash(): NewDaoStateHashMessage; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): NewDaoStateHashMessage.AsObject; + static toObject(includeInstance: boolean, msg: NewDaoStateHashMessage): NewDaoStateHashMessage.AsObject; + static serializeBinaryToWriter(message: NewDaoStateHashMessage, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): NewDaoStateHashMessage; + static deserializeBinaryFromReader(message: NewDaoStateHashMessage, reader: jspb.BinaryReader): NewDaoStateHashMessage; +} + +export namespace NewDaoStateHashMessage { + export type AsObject = { + stateHash?: DaoStateHash.AsObject, + } +} + +export class NewProposalStateHashMessage extends jspb.Message { + getStateHash(): ProposalStateHash | undefined; + setStateHash(value?: ProposalStateHash): NewProposalStateHashMessage; + hasStateHash(): boolean; + clearStateHash(): NewProposalStateHashMessage; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): NewProposalStateHashMessage.AsObject; + static toObject(includeInstance: boolean, msg: NewProposalStateHashMessage): NewProposalStateHashMessage.AsObject; + static serializeBinaryToWriter(message: NewProposalStateHashMessage, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): NewProposalStateHashMessage; + static deserializeBinaryFromReader(message: NewProposalStateHashMessage, reader: jspb.BinaryReader): NewProposalStateHashMessage; +} + +export namespace NewProposalStateHashMessage { + export type AsObject = { + stateHash?: ProposalStateHash.AsObject, + } +} + +export class NewBlindVoteStateHashMessage extends jspb.Message { + getStateHash(): BlindVoteStateHash | undefined; + setStateHash(value?: BlindVoteStateHash): NewBlindVoteStateHashMessage; + hasStateHash(): boolean; + clearStateHash(): NewBlindVoteStateHashMessage; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): NewBlindVoteStateHashMessage.AsObject; + static toObject(includeInstance: boolean, msg: NewBlindVoteStateHashMessage): NewBlindVoteStateHashMessage.AsObject; + static serializeBinaryToWriter(message: NewBlindVoteStateHashMessage, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): NewBlindVoteStateHashMessage; + static deserializeBinaryFromReader(message: NewBlindVoteStateHashMessage, reader: jspb.BinaryReader): NewBlindVoteStateHashMessage; +} + +export namespace NewBlindVoteStateHashMessage { + export type AsObject = { + stateHash?: BlindVoteStateHash.AsObject, + } +} + +export class GetDaoStateHashesRequest extends jspb.Message { + getHeight(): number; + setHeight(value: number): GetDaoStateHashesRequest; + + getNonce(): number; + setNonce(value: number): GetDaoStateHashesRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetDaoStateHashesRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetDaoStateHashesRequest): GetDaoStateHashesRequest.AsObject; + static serializeBinaryToWriter(message: GetDaoStateHashesRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetDaoStateHashesRequest; + static deserializeBinaryFromReader(message: GetDaoStateHashesRequest, reader: jspb.BinaryReader): GetDaoStateHashesRequest; +} + +export namespace GetDaoStateHashesRequest { + export type AsObject = { + height: number, + nonce: number, + } +} + +export class GetProposalStateHashesRequest extends jspb.Message { + getHeight(): number; + setHeight(value: number): GetProposalStateHashesRequest; + + getNonce(): number; + setNonce(value: number): GetProposalStateHashesRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetProposalStateHashesRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetProposalStateHashesRequest): GetProposalStateHashesRequest.AsObject; + static serializeBinaryToWriter(message: GetProposalStateHashesRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetProposalStateHashesRequest; + static deserializeBinaryFromReader(message: GetProposalStateHashesRequest, reader: jspb.BinaryReader): GetProposalStateHashesRequest; +} + +export namespace GetProposalStateHashesRequest { + export type AsObject = { + height: number, + nonce: number, + } +} + +export class GetBlindVoteStateHashesRequest extends jspb.Message { + getHeight(): number; + setHeight(value: number): GetBlindVoteStateHashesRequest; + + getNonce(): number; + setNonce(value: number): GetBlindVoteStateHashesRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetBlindVoteStateHashesRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetBlindVoteStateHashesRequest): GetBlindVoteStateHashesRequest.AsObject; + static serializeBinaryToWriter(message: GetBlindVoteStateHashesRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetBlindVoteStateHashesRequest; + static deserializeBinaryFromReader(message: GetBlindVoteStateHashesRequest, reader: jspb.BinaryReader): GetBlindVoteStateHashesRequest; +} + +export namespace GetBlindVoteStateHashesRequest { + export type AsObject = { + height: number, + nonce: number, + } +} + +export class GetDaoStateHashesResponse extends jspb.Message { + getStateHashesList(): Array; + setStateHashesList(value: Array): GetDaoStateHashesResponse; + clearStateHashesList(): GetDaoStateHashesResponse; + addStateHashes(value?: DaoStateHash, index?: number): DaoStateHash; + + getRequestNonce(): number; + setRequestNonce(value: number): GetDaoStateHashesResponse; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetDaoStateHashesResponse.AsObject; + static toObject(includeInstance: boolean, msg: GetDaoStateHashesResponse): GetDaoStateHashesResponse.AsObject; + static serializeBinaryToWriter(message: GetDaoStateHashesResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetDaoStateHashesResponse; + static deserializeBinaryFromReader(message: GetDaoStateHashesResponse, reader: jspb.BinaryReader): GetDaoStateHashesResponse; +} + +export namespace GetDaoStateHashesResponse { + export type AsObject = { + stateHashesList: Array, + requestNonce: number, + } +} + +export class GetProposalStateHashesResponse extends jspb.Message { + getStateHashesList(): Array; + setStateHashesList(value: Array): GetProposalStateHashesResponse; + clearStateHashesList(): GetProposalStateHashesResponse; + addStateHashes(value?: ProposalStateHash, index?: number): ProposalStateHash; + + getRequestNonce(): number; + setRequestNonce(value: number): GetProposalStateHashesResponse; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetProposalStateHashesResponse.AsObject; + static toObject(includeInstance: boolean, msg: GetProposalStateHashesResponse): GetProposalStateHashesResponse.AsObject; + static serializeBinaryToWriter(message: GetProposalStateHashesResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetProposalStateHashesResponse; + static deserializeBinaryFromReader(message: GetProposalStateHashesResponse, reader: jspb.BinaryReader): GetProposalStateHashesResponse; +} + +export namespace GetProposalStateHashesResponse { + export type AsObject = { + stateHashesList: Array, + requestNonce: number, + } +} + +export class GetBlindVoteStateHashesResponse extends jspb.Message { + getStateHashesList(): Array; + setStateHashesList(value: Array): GetBlindVoteStateHashesResponse; + clearStateHashesList(): GetBlindVoteStateHashesResponse; + addStateHashes(value?: BlindVoteStateHash, index?: number): BlindVoteStateHash; + + getRequestNonce(): number; + setRequestNonce(value: number): GetBlindVoteStateHashesResponse; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetBlindVoteStateHashesResponse.AsObject; + static toObject(includeInstance: boolean, msg: GetBlindVoteStateHashesResponse): GetBlindVoteStateHashesResponse.AsObject; + static serializeBinaryToWriter(message: GetBlindVoteStateHashesResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetBlindVoteStateHashesResponse; + static deserializeBinaryFromReader(message: GetBlindVoteStateHashesResponse, reader: jspb.BinaryReader): GetBlindVoteStateHashesResponse; +} + +export namespace GetBlindVoteStateHashesResponse { + export type AsObject = { + stateHashesList: Array, + requestNonce: number, + } +} + +export class NodeAddress extends jspb.Message { + getHostName(): string; + setHostName(value: string): NodeAddress; + + getPort(): number; + setPort(value: number): NodeAddress; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): NodeAddress.AsObject; + static toObject(includeInstance: boolean, msg: NodeAddress): NodeAddress.AsObject; + static serializeBinaryToWriter(message: NodeAddress, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): NodeAddress; + static deserializeBinaryFromReader(message: NodeAddress, reader: jspb.BinaryReader): NodeAddress; +} + +export namespace NodeAddress { + export type AsObject = { + hostName: string, + port: number, + } +} + +export class Peer extends jspb.Message { + getNodeAddress(): NodeAddress | undefined; + setNodeAddress(value?: NodeAddress): Peer; + hasNodeAddress(): boolean; + clearNodeAddress(): Peer; + + getDate(): number; + setDate(value: number): Peer; + + getSupportedCapabilitiesList(): Array; + setSupportedCapabilitiesList(value: Array): Peer; + clearSupportedCapabilitiesList(): Peer; + addSupportedCapabilities(value: number, index?: number): Peer; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Peer.AsObject; + static toObject(includeInstance: boolean, msg: Peer): Peer.AsObject; + static serializeBinaryToWriter(message: Peer, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Peer; + static deserializeBinaryFromReader(message: Peer, reader: jspb.BinaryReader): Peer; +} + +export namespace Peer { + export type AsObject = { + nodeAddress?: NodeAddress.AsObject, + date: number, + supportedCapabilitiesList: Array, + } +} + +export class PubKeyRing extends jspb.Message { + getSignaturePubKeyBytes(): Uint8Array | string; + getSignaturePubKeyBytes_asU8(): Uint8Array; + getSignaturePubKeyBytes_asB64(): string; + setSignaturePubKeyBytes(value: Uint8Array | string): PubKeyRing; + + getEncryptionPubKeyBytes(): Uint8Array | string; + getEncryptionPubKeyBytes_asU8(): Uint8Array; + getEncryptionPubKeyBytes_asB64(): string; + setEncryptionPubKeyBytes(value: Uint8Array | string): PubKeyRing; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PubKeyRing.AsObject; + static toObject(includeInstance: boolean, msg: PubKeyRing): PubKeyRing.AsObject; + static serializeBinaryToWriter(message: PubKeyRing, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PubKeyRing; + static deserializeBinaryFromReader(message: PubKeyRing, reader: jspb.BinaryReader): PubKeyRing; +} + +export namespace PubKeyRing { + export type AsObject = { + signaturePubKeyBytes: Uint8Array | string, + encryptionPubKeyBytes: Uint8Array | string, + } +} + +export class SealedAndSigned extends jspb.Message { + getEncryptedSecretKey(): Uint8Array | string; + getEncryptedSecretKey_asU8(): Uint8Array; + getEncryptedSecretKey_asB64(): string; + setEncryptedSecretKey(value: Uint8Array | string): SealedAndSigned; + + getEncryptedPayloadWithHmac(): Uint8Array | string; + getEncryptedPayloadWithHmac_asU8(): Uint8Array; + getEncryptedPayloadWithHmac_asB64(): string; + setEncryptedPayloadWithHmac(value: Uint8Array | string): SealedAndSigned; + + getSignature(): Uint8Array | string; + getSignature_asU8(): Uint8Array; + getSignature_asB64(): string; + setSignature(value: Uint8Array | string): SealedAndSigned; + + getSigPublicKeyBytes(): Uint8Array | string; + getSigPublicKeyBytes_asU8(): Uint8Array; + getSigPublicKeyBytes_asB64(): string; + setSigPublicKeyBytes(value: Uint8Array | string): SealedAndSigned; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): SealedAndSigned.AsObject; + static toObject(includeInstance: boolean, msg: SealedAndSigned): SealedAndSigned.AsObject; + static serializeBinaryToWriter(message: SealedAndSigned, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SealedAndSigned; + static deserializeBinaryFromReader(message: SealedAndSigned, reader: jspb.BinaryReader): SealedAndSigned; +} + +export namespace SealedAndSigned { + export type AsObject = { + encryptedSecretKey: Uint8Array | string, + encryptedPayloadWithHmac: Uint8Array | string, + signature: Uint8Array | string, + sigPublicKeyBytes: Uint8Array | string, + } +} + +export class StoragePayload extends jspb.Message { + getAlert(): Alert | undefined; + setAlert(value?: Alert): StoragePayload; + hasAlert(): boolean; + clearAlert(): StoragePayload; + + getArbitrator(): Arbitrator | undefined; + setArbitrator(value?: Arbitrator): StoragePayload; + hasArbitrator(): boolean; + clearArbitrator(): StoragePayload; + + getMediator(): Mediator | undefined; + setMediator(value?: Mediator): StoragePayload; + hasMediator(): boolean; + clearMediator(): StoragePayload; + + getFilter(): Filter | undefined; + setFilter(value?: Filter): StoragePayload; + hasFilter(): boolean; + clearFilter(): StoragePayload; + + getMailboxStoragePayload(): MailboxStoragePayload | undefined; + setMailboxStoragePayload(value?: MailboxStoragePayload): StoragePayload; + hasMailboxStoragePayload(): boolean; + clearMailboxStoragePayload(): StoragePayload; + + getOfferPayload(): OfferPayload | undefined; + setOfferPayload(value?: OfferPayload): StoragePayload; + hasOfferPayload(): boolean; + clearOfferPayload(): StoragePayload; + + getTempProposalPayload(): TempProposalPayload | undefined; + setTempProposalPayload(value?: TempProposalPayload): StoragePayload; + hasTempProposalPayload(): boolean; + clearTempProposalPayload(): StoragePayload; + + getRefundAgent(): RefundAgent | undefined; + setRefundAgent(value?: RefundAgent): StoragePayload; + hasRefundAgent(): boolean; + clearRefundAgent(): StoragePayload; + + getMessageCase(): StoragePayload.MessageCase; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): StoragePayload.AsObject; + static toObject(includeInstance: boolean, msg: StoragePayload): StoragePayload.AsObject; + static serializeBinaryToWriter(message: StoragePayload, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): StoragePayload; + static deserializeBinaryFromReader(message: StoragePayload, reader: jspb.BinaryReader): StoragePayload; +} + +export namespace StoragePayload { + export type AsObject = { + alert?: Alert.AsObject, + arbitrator?: Arbitrator.AsObject, + mediator?: Mediator.AsObject, + filter?: Filter.AsObject, + mailboxStoragePayload?: MailboxStoragePayload.AsObject, + offerPayload?: OfferPayload.AsObject, + tempProposalPayload?: TempProposalPayload.AsObject, + refundAgent?: RefundAgent.AsObject, + } + + export enum MessageCase { + MESSAGE_NOT_SET = 0, + ALERT = 1, + ARBITRATOR = 2, + MEDIATOR = 3, + FILTER = 4, + MAILBOX_STORAGE_PAYLOAD = 6, + OFFER_PAYLOAD = 7, + TEMP_PROPOSAL_PAYLOAD = 8, + REFUND_AGENT = 9, + } +} + +export class PersistableNetworkPayload extends jspb.Message { + getAccountAgeWitness(): AccountAgeWitness | undefined; + setAccountAgeWitness(value?: AccountAgeWitness): PersistableNetworkPayload; + hasAccountAgeWitness(): boolean; + clearAccountAgeWitness(): PersistableNetworkPayload; + + getTradeStatistics2(): TradeStatistics2 | undefined; + setTradeStatistics2(value?: TradeStatistics2): PersistableNetworkPayload; + hasTradeStatistics2(): boolean; + clearTradeStatistics2(): PersistableNetworkPayload; + + getProposalPayload(): ProposalPayload | undefined; + setProposalPayload(value?: ProposalPayload): PersistableNetworkPayload; + hasProposalPayload(): boolean; + clearProposalPayload(): PersistableNetworkPayload; + + getBlindVotePayload(): BlindVotePayload | undefined; + setBlindVotePayload(value?: BlindVotePayload): PersistableNetworkPayload; + hasBlindVotePayload(): boolean; + clearBlindVotePayload(): PersistableNetworkPayload; + + getSignedWitness(): SignedWitness | undefined; + setSignedWitness(value?: SignedWitness): PersistableNetworkPayload; + hasSignedWitness(): boolean; + clearSignedWitness(): PersistableNetworkPayload; + + getTradeStatistics3(): TradeStatistics3 | undefined; + setTradeStatistics3(value?: TradeStatistics3): PersistableNetworkPayload; + hasTradeStatistics3(): boolean; + clearTradeStatistics3(): PersistableNetworkPayload; + + getMessageCase(): PersistableNetworkPayload.MessageCase; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PersistableNetworkPayload.AsObject; + static toObject(includeInstance: boolean, msg: PersistableNetworkPayload): PersistableNetworkPayload.AsObject; + static serializeBinaryToWriter(message: PersistableNetworkPayload, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PersistableNetworkPayload; + static deserializeBinaryFromReader(message: PersistableNetworkPayload, reader: jspb.BinaryReader): PersistableNetworkPayload; +} + +export namespace PersistableNetworkPayload { + export type AsObject = { + accountAgeWitness?: AccountAgeWitness.AsObject, + tradeStatistics2?: TradeStatistics2.AsObject, + proposalPayload?: ProposalPayload.AsObject, + blindVotePayload?: BlindVotePayload.AsObject, + signedWitness?: SignedWitness.AsObject, + tradeStatistics3?: TradeStatistics3.AsObject, + } + + export enum MessageCase { + MESSAGE_NOT_SET = 0, + ACCOUNT_AGE_WITNESS = 1, + TRADE_STATISTICS2 = 2, + PROPOSAL_PAYLOAD = 3, + BLIND_VOTE_PAYLOAD = 4, + SIGNED_WITNESS = 5, + TRADE_STATISTICS3 = 6, + } +} + +export class ProtectedStorageEntry extends jspb.Message { + getStoragepayload(): StoragePayload | undefined; + setStoragepayload(value?: StoragePayload): ProtectedStorageEntry; + hasStoragepayload(): boolean; + clearStoragepayload(): ProtectedStorageEntry; + + getOwnerPubKeyBytes(): Uint8Array | string; + getOwnerPubKeyBytes_asU8(): Uint8Array; + getOwnerPubKeyBytes_asB64(): string; + setOwnerPubKeyBytes(value: Uint8Array | string): ProtectedStorageEntry; + + getSequenceNumber(): number; + setSequenceNumber(value: number): ProtectedStorageEntry; + + getSignature(): Uint8Array | string; + getSignature_asU8(): Uint8Array; + getSignature_asB64(): string; + setSignature(value: Uint8Array | string): ProtectedStorageEntry; + + getCreationTimeStamp(): number; + setCreationTimeStamp(value: number): ProtectedStorageEntry; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ProtectedStorageEntry.AsObject; + static toObject(includeInstance: boolean, msg: ProtectedStorageEntry): ProtectedStorageEntry.AsObject; + static serializeBinaryToWriter(message: ProtectedStorageEntry, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ProtectedStorageEntry; + static deserializeBinaryFromReader(message: ProtectedStorageEntry, reader: jspb.BinaryReader): ProtectedStorageEntry; +} + +export namespace ProtectedStorageEntry { + export type AsObject = { + storagepayload?: StoragePayload.AsObject, + ownerPubKeyBytes: Uint8Array | string, + sequenceNumber: number, + signature: Uint8Array | string, + creationTimeStamp: number, + } +} + +export class StorageEntryWrapper extends jspb.Message { + getProtectedStorageEntry(): ProtectedStorageEntry | undefined; + setProtectedStorageEntry(value?: ProtectedStorageEntry): StorageEntryWrapper; + hasProtectedStorageEntry(): boolean; + clearProtectedStorageEntry(): StorageEntryWrapper; + + getProtectedMailboxStorageEntry(): ProtectedMailboxStorageEntry | undefined; + setProtectedMailboxStorageEntry(value?: ProtectedMailboxStorageEntry): StorageEntryWrapper; + hasProtectedMailboxStorageEntry(): boolean; + clearProtectedMailboxStorageEntry(): StorageEntryWrapper; + + getMessageCase(): StorageEntryWrapper.MessageCase; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): StorageEntryWrapper.AsObject; + static toObject(includeInstance: boolean, msg: StorageEntryWrapper): StorageEntryWrapper.AsObject; + static serializeBinaryToWriter(message: StorageEntryWrapper, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): StorageEntryWrapper; + static deserializeBinaryFromReader(message: StorageEntryWrapper, reader: jspb.BinaryReader): StorageEntryWrapper; +} + +export namespace StorageEntryWrapper { + export type AsObject = { + protectedStorageEntry?: ProtectedStorageEntry.AsObject, + protectedMailboxStorageEntry?: ProtectedMailboxStorageEntry.AsObject, + } + + export enum MessageCase { + MESSAGE_NOT_SET = 0, + PROTECTED_STORAGE_ENTRY = 1, + PROTECTED_MAILBOX_STORAGE_ENTRY = 2, + } +} + +export class ProtectedMailboxStorageEntry extends jspb.Message { + getEntry(): ProtectedStorageEntry | undefined; + setEntry(value?: ProtectedStorageEntry): ProtectedMailboxStorageEntry; + hasEntry(): boolean; + clearEntry(): ProtectedMailboxStorageEntry; + + getReceiversPubKeyBytes(): Uint8Array | string; + getReceiversPubKeyBytes_asU8(): Uint8Array; + getReceiversPubKeyBytes_asB64(): string; + setReceiversPubKeyBytes(value: Uint8Array | string): ProtectedMailboxStorageEntry; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ProtectedMailboxStorageEntry.AsObject; + static toObject(includeInstance: boolean, msg: ProtectedMailboxStorageEntry): ProtectedMailboxStorageEntry.AsObject; + static serializeBinaryToWriter(message: ProtectedMailboxStorageEntry, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ProtectedMailboxStorageEntry; + static deserializeBinaryFromReader(message: ProtectedMailboxStorageEntry, reader: jspb.BinaryReader): ProtectedMailboxStorageEntry; +} + +export namespace ProtectedMailboxStorageEntry { + export type AsObject = { + entry?: ProtectedStorageEntry.AsObject, + receiversPubKeyBytes: Uint8Array | string, + } +} + +export class DataAndSeqNrPair extends jspb.Message { + getPayload(): StoragePayload | undefined; + setPayload(value?: StoragePayload): DataAndSeqNrPair; + hasPayload(): boolean; + clearPayload(): DataAndSeqNrPair; + + getSequenceNumber(): number; + setSequenceNumber(value: number): DataAndSeqNrPair; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DataAndSeqNrPair.AsObject; + static toObject(includeInstance: boolean, msg: DataAndSeqNrPair): DataAndSeqNrPair.AsObject; + static serializeBinaryToWriter(message: DataAndSeqNrPair, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DataAndSeqNrPair; + static deserializeBinaryFromReader(message: DataAndSeqNrPair, reader: jspb.BinaryReader): DataAndSeqNrPair; +} + +export namespace DataAndSeqNrPair { + export type AsObject = { + payload?: StoragePayload.AsObject, + sequenceNumber: number, + } +} + +export class MailboxMessageList extends jspb.Message { + getMailboxItemList(): Array; + setMailboxItemList(value: Array): MailboxMessageList; + clearMailboxItemList(): MailboxMessageList; + addMailboxItem(value?: MailboxItem, index?: number): MailboxItem; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MailboxMessageList.AsObject; + static toObject(includeInstance: boolean, msg: MailboxMessageList): MailboxMessageList.AsObject; + static serializeBinaryToWriter(message: MailboxMessageList, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MailboxMessageList; + static deserializeBinaryFromReader(message: MailboxMessageList, reader: jspb.BinaryReader): MailboxMessageList; +} + +export namespace MailboxMessageList { + export type AsObject = { + mailboxItemList: Array, + } +} + +export class RemovedPayloadsMap extends jspb.Message { + getDateByHashesMap(): jspb.Map; + clearDateByHashesMap(): RemovedPayloadsMap; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): RemovedPayloadsMap.AsObject; + static toObject(includeInstance: boolean, msg: RemovedPayloadsMap): RemovedPayloadsMap.AsObject; + static serializeBinaryToWriter(message: RemovedPayloadsMap, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): RemovedPayloadsMap; + static deserializeBinaryFromReader(message: RemovedPayloadsMap, reader: jspb.BinaryReader): RemovedPayloadsMap; +} + +export namespace RemovedPayloadsMap { + export type AsObject = { + dateByHashesMap: Array<[string, number]>, + } +} + +export class IgnoredMailboxMap extends jspb.Message { + getDataMap(): jspb.Map; + clearDataMap(): IgnoredMailboxMap; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): IgnoredMailboxMap.AsObject; + static toObject(includeInstance: boolean, msg: IgnoredMailboxMap): IgnoredMailboxMap.AsObject; + static serializeBinaryToWriter(message: IgnoredMailboxMap, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): IgnoredMailboxMap; + static deserializeBinaryFromReader(message: IgnoredMailboxMap, reader: jspb.BinaryReader): IgnoredMailboxMap; +} + +export namespace IgnoredMailboxMap { + export type AsObject = { + dataMap: Array<[string, number]>, + } +} + +export class MailboxItem extends jspb.Message { + getProtectedMailboxStorageEntry(): ProtectedMailboxStorageEntry | undefined; + setProtectedMailboxStorageEntry(value?: ProtectedMailboxStorageEntry): MailboxItem; + hasProtectedMailboxStorageEntry(): boolean; + clearProtectedMailboxStorageEntry(): MailboxItem; + + getDecryptedMessageWithPubKey(): DecryptedMessageWithPubKey | undefined; + setDecryptedMessageWithPubKey(value?: DecryptedMessageWithPubKey): MailboxItem; + hasDecryptedMessageWithPubKey(): boolean; + clearDecryptedMessageWithPubKey(): MailboxItem; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MailboxItem.AsObject; + static toObject(includeInstance: boolean, msg: MailboxItem): MailboxItem.AsObject; + static serializeBinaryToWriter(message: MailboxItem, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MailboxItem; + static deserializeBinaryFromReader(message: MailboxItem, reader: jspb.BinaryReader): MailboxItem; +} + +export namespace MailboxItem { + export type AsObject = { + protectedMailboxStorageEntry?: ProtectedMailboxStorageEntry.AsObject, + decryptedMessageWithPubKey?: DecryptedMessageWithPubKey.AsObject, + } +} + +export class DecryptedMessageWithPubKey extends jspb.Message { + getNetworkEnvelope(): NetworkEnvelope | undefined; + setNetworkEnvelope(value?: NetworkEnvelope): DecryptedMessageWithPubKey; + hasNetworkEnvelope(): boolean; + clearNetworkEnvelope(): DecryptedMessageWithPubKey; + + getSignaturePubKeyBytes(): Uint8Array | string; + getSignaturePubKeyBytes_asU8(): Uint8Array; + getSignaturePubKeyBytes_asB64(): string; + setSignaturePubKeyBytes(value: Uint8Array | string): DecryptedMessageWithPubKey; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DecryptedMessageWithPubKey.AsObject; + static toObject(includeInstance: boolean, msg: DecryptedMessageWithPubKey): DecryptedMessageWithPubKey.AsObject; + static serializeBinaryToWriter(message: DecryptedMessageWithPubKey, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DecryptedMessageWithPubKey; + static deserializeBinaryFromReader(message: DecryptedMessageWithPubKey, reader: jspb.BinaryReader): DecryptedMessageWithPubKey; +} + +export namespace DecryptedMessageWithPubKey { + export type AsObject = { + networkEnvelope?: NetworkEnvelope.AsObject, + signaturePubKeyBytes: Uint8Array | string, + } +} + +export class PrivateNotificationPayload extends jspb.Message { + getMessage(): string; + setMessage(value: string): PrivateNotificationPayload; + + getSignatureAsBase64(): string; + setSignatureAsBase64(value: string): PrivateNotificationPayload; + + getSigPublicKeyBytes(): Uint8Array | string; + getSigPublicKeyBytes_asU8(): Uint8Array; + getSigPublicKeyBytes_asB64(): string; + setSigPublicKeyBytes(value: Uint8Array | string): PrivateNotificationPayload; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PrivateNotificationPayload.AsObject; + static toObject(includeInstance: boolean, msg: PrivateNotificationPayload): PrivateNotificationPayload.AsObject; + static serializeBinaryToWriter(message: PrivateNotificationPayload, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PrivateNotificationPayload; + static deserializeBinaryFromReader(message: PrivateNotificationPayload, reader: jspb.BinaryReader): PrivateNotificationPayload; +} + +export namespace PrivateNotificationPayload { + export type AsObject = { + message: string, + signatureAsBase64: string, + sigPublicKeyBytes: Uint8Array | string, + } +} + +export class PaymentAccountFilter extends jspb.Message { + getPaymentMethodId(): string; + setPaymentMethodId(value: string): PaymentAccountFilter; + + getGetMethodName(): string; + setGetMethodName(value: string): PaymentAccountFilter; + + getValue(): string; + setValue(value: string): PaymentAccountFilter; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PaymentAccountFilter.AsObject; + static toObject(includeInstance: boolean, msg: PaymentAccountFilter): PaymentAccountFilter.AsObject; + static serializeBinaryToWriter(message: PaymentAccountFilter, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PaymentAccountFilter; + static deserializeBinaryFromReader(message: PaymentAccountFilter, reader: jspb.BinaryReader): PaymentAccountFilter; +} + +export namespace PaymentAccountFilter { + export type AsObject = { + paymentMethodId: string, + getMethodName: string, + value: string, + } +} + +export class Alert extends jspb.Message { + getMessage(): string; + setMessage(value: string): Alert; + + getVersion(): string; + setVersion(value: string): Alert; + + getIsUpdateInfo(): boolean; + setIsUpdateInfo(value: boolean): Alert; + + getSignatureAsBase64(): string; + setSignatureAsBase64(value: string): Alert; + + getOwnerPubKeyBytes(): Uint8Array | string; + getOwnerPubKeyBytes_asU8(): Uint8Array; + getOwnerPubKeyBytes_asB64(): string; + setOwnerPubKeyBytes(value: Uint8Array | string): Alert; + + getExtraDataMap(): jspb.Map; + clearExtraDataMap(): Alert; + + getIsPreReleaseInfo(): boolean; + setIsPreReleaseInfo(value: boolean): Alert; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Alert.AsObject; + static toObject(includeInstance: boolean, msg: Alert): Alert.AsObject; + static serializeBinaryToWriter(message: Alert, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Alert; + static deserializeBinaryFromReader(message: Alert, reader: jspb.BinaryReader): Alert; +} + +export namespace Alert { + export type AsObject = { + message: string, + version: string, + isUpdateInfo: boolean, + signatureAsBase64: string, + ownerPubKeyBytes: Uint8Array | string, + extraDataMap: Array<[string, string]>, + isPreReleaseInfo: boolean, + } +} + +export class Arbitrator extends jspb.Message { + getNodeAddress(): NodeAddress | undefined; + setNodeAddress(value?: NodeAddress): Arbitrator; + hasNodeAddress(): boolean; + clearNodeAddress(): Arbitrator; + + getLanguageCodesList(): Array; + setLanguageCodesList(value: Array): Arbitrator; + clearLanguageCodesList(): Arbitrator; + addLanguageCodes(value: string, index?: number): Arbitrator; + + getRegistrationDate(): number; + setRegistrationDate(value: number): Arbitrator; + + getRegistrationSignature(): string; + setRegistrationSignature(value: string): Arbitrator; + + getRegistrationPubKey(): Uint8Array | string; + getRegistrationPubKey_asU8(): Uint8Array; + getRegistrationPubKey_asB64(): string; + setRegistrationPubKey(value: Uint8Array | string): Arbitrator; + + getPubKeyRing(): PubKeyRing | undefined; + setPubKeyRing(value?: PubKeyRing): Arbitrator; + hasPubKeyRing(): boolean; + clearPubKeyRing(): Arbitrator; + + getBtcPubKey(): Uint8Array | string; + getBtcPubKey_asU8(): Uint8Array; + getBtcPubKey_asB64(): string; + setBtcPubKey(value: Uint8Array | string): Arbitrator; + + getBtcAddress(): string; + setBtcAddress(value: string): Arbitrator; + + getEmailAddress(): string; + setEmailAddress(value: string): Arbitrator; + + getInfo(): string; + setInfo(value: string): Arbitrator; + + getExtraDataMap(): jspb.Map; + clearExtraDataMap(): Arbitrator; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Arbitrator.AsObject; + static toObject(includeInstance: boolean, msg: Arbitrator): Arbitrator.AsObject; + static serializeBinaryToWriter(message: Arbitrator, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Arbitrator; + static deserializeBinaryFromReader(message: Arbitrator, reader: jspb.BinaryReader): Arbitrator; +} + +export namespace Arbitrator { + export type AsObject = { + nodeAddress?: NodeAddress.AsObject, + languageCodesList: Array, + registrationDate: number, + registrationSignature: string, + registrationPubKey: Uint8Array | string, + pubKeyRing?: PubKeyRing.AsObject, + btcPubKey: Uint8Array | string, + btcAddress: string, + emailAddress: string, + info: string, + extraDataMap: Array<[string, string]>, + } +} + +export class Mediator extends jspb.Message { + getNodeAddress(): NodeAddress | undefined; + setNodeAddress(value?: NodeAddress): Mediator; + hasNodeAddress(): boolean; + clearNodeAddress(): Mediator; + + getLanguageCodesList(): Array; + setLanguageCodesList(value: Array): Mediator; + clearLanguageCodesList(): Mediator; + addLanguageCodes(value: string, index?: number): Mediator; + + getRegistrationDate(): number; + setRegistrationDate(value: number): Mediator; + + getRegistrationSignature(): string; + setRegistrationSignature(value: string): Mediator; + + getRegistrationPubKey(): Uint8Array | string; + getRegistrationPubKey_asU8(): Uint8Array; + getRegistrationPubKey_asB64(): string; + setRegistrationPubKey(value: Uint8Array | string): Mediator; + + getPubKeyRing(): PubKeyRing | undefined; + setPubKeyRing(value?: PubKeyRing): Mediator; + hasPubKeyRing(): boolean; + clearPubKeyRing(): Mediator; + + getEmailAddress(): string; + setEmailAddress(value: string): Mediator; + + getInfo(): string; + setInfo(value: string): Mediator; + + getExtraDataMap(): jspb.Map; + clearExtraDataMap(): Mediator; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Mediator.AsObject; + static toObject(includeInstance: boolean, msg: Mediator): Mediator.AsObject; + static serializeBinaryToWriter(message: Mediator, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Mediator; + static deserializeBinaryFromReader(message: Mediator, reader: jspb.BinaryReader): Mediator; +} + +export namespace Mediator { + export type AsObject = { + nodeAddress?: NodeAddress.AsObject, + languageCodesList: Array, + registrationDate: number, + registrationSignature: string, + registrationPubKey: Uint8Array | string, + pubKeyRing?: PubKeyRing.AsObject, + emailAddress: string, + info: string, + extraDataMap: Array<[string, string]>, + } +} + +export class RefundAgent extends jspb.Message { + getNodeAddress(): NodeAddress | undefined; + setNodeAddress(value?: NodeAddress): RefundAgent; + hasNodeAddress(): boolean; + clearNodeAddress(): RefundAgent; + + getLanguageCodesList(): Array; + setLanguageCodesList(value: Array): RefundAgent; + clearLanguageCodesList(): RefundAgent; + addLanguageCodes(value: string, index?: number): RefundAgent; + + getRegistrationDate(): number; + setRegistrationDate(value: number): RefundAgent; + + getRegistrationSignature(): string; + setRegistrationSignature(value: string): RefundAgent; + + getRegistrationPubKey(): Uint8Array | string; + getRegistrationPubKey_asU8(): Uint8Array; + getRegistrationPubKey_asB64(): string; + setRegistrationPubKey(value: Uint8Array | string): RefundAgent; + + getPubKeyRing(): PubKeyRing | undefined; + setPubKeyRing(value?: PubKeyRing): RefundAgent; + hasPubKeyRing(): boolean; + clearPubKeyRing(): RefundAgent; + + getEmailAddress(): string; + setEmailAddress(value: string): RefundAgent; + + getInfo(): string; + setInfo(value: string): RefundAgent; + + getExtraDataMap(): jspb.Map; + clearExtraDataMap(): RefundAgent; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): RefundAgent.AsObject; + static toObject(includeInstance: boolean, msg: RefundAgent): RefundAgent.AsObject; + static serializeBinaryToWriter(message: RefundAgent, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): RefundAgent; + static deserializeBinaryFromReader(message: RefundAgent, reader: jspb.BinaryReader): RefundAgent; +} + +export namespace RefundAgent { + export type AsObject = { + nodeAddress?: NodeAddress.AsObject, + languageCodesList: Array, + registrationDate: number, + registrationSignature: string, + registrationPubKey: Uint8Array | string, + pubKeyRing?: PubKeyRing.AsObject, + emailAddress: string, + info: string, + extraDataMap: Array<[string, string]>, + } +} + +export class Filter extends jspb.Message { + getNodeAddressesBannedFromTradingList(): Array; + setNodeAddressesBannedFromTradingList(value: Array): Filter; + clearNodeAddressesBannedFromTradingList(): Filter; + addNodeAddressesBannedFromTrading(value: string, index?: number): Filter; + + getBannedOfferIdsList(): Array; + setBannedOfferIdsList(value: Array): Filter; + clearBannedOfferIdsList(): Filter; + addBannedOfferIds(value: string, index?: number): Filter; + + getBannedPaymentAccountsList(): Array; + setBannedPaymentAccountsList(value: Array): Filter; + clearBannedPaymentAccountsList(): Filter; + addBannedPaymentAccounts(value?: PaymentAccountFilter, index?: number): PaymentAccountFilter; + + getSignatureAsBase64(): string; + setSignatureAsBase64(value: string): Filter; + + getOwnerPubKeyBytes(): Uint8Array | string; + getOwnerPubKeyBytes_asU8(): Uint8Array; + getOwnerPubKeyBytes_asB64(): string; + setOwnerPubKeyBytes(value: Uint8Array | string): Filter; + + getExtraDataMap(): jspb.Map; + clearExtraDataMap(): Filter; + + getBannedCurrenciesList(): Array; + setBannedCurrenciesList(value: Array): Filter; + clearBannedCurrenciesList(): Filter; + addBannedCurrencies(value: string, index?: number): Filter; + + getBannedPaymentMethodsList(): Array; + setBannedPaymentMethodsList(value: Array): Filter; + clearBannedPaymentMethodsList(): Filter; + addBannedPaymentMethods(value: string, index?: number): Filter; + + getArbitratorsList(): Array; + setArbitratorsList(value: Array): Filter; + clearArbitratorsList(): Filter; + addArbitrators(value: string, index?: number): Filter; + + getSeedNodesList(): Array; + setSeedNodesList(value: Array): Filter; + clearSeedNodesList(): Filter; + addSeedNodes(value: string, index?: number): Filter; + + getPriceRelayNodesList(): Array; + setPriceRelayNodesList(value: Array): Filter; + clearPriceRelayNodesList(): Filter; + addPriceRelayNodes(value: string, index?: number): Filter; + + getPreventPublicBtcNetwork(): boolean; + setPreventPublicBtcNetwork(value: boolean): Filter; + + getBtcNodesList(): Array; + setBtcNodesList(value: Array): Filter; + clearBtcNodesList(): Filter; + addBtcNodes(value: string, index?: number): Filter; + + getDisableDao(): boolean; + setDisableDao(value: boolean): Filter; + + getDisableDaoBelowVersion(): string; + setDisableDaoBelowVersion(value: string): Filter; + + getDisableTradeBelowVersion(): string; + setDisableTradeBelowVersion(value: string): Filter; + + getMediatorsList(): Array; + setMediatorsList(value: Array): Filter; + clearMediatorsList(): Filter; + addMediators(value: string, index?: number): Filter; + + getRefundagentsList(): Array; + setRefundagentsList(value: Array): Filter; + clearRefundagentsList(): Filter; + addRefundagents(value: string, index?: number): Filter; + + getBannedsignerpubkeysList(): Array; + setBannedsignerpubkeysList(value: Array): Filter; + clearBannedsignerpubkeysList(): Filter; + addBannedsignerpubkeys(value: string, index?: number): Filter; + + getBtcFeeReceiverAddressesList(): Array; + setBtcFeeReceiverAddressesList(value: Array): Filter; + clearBtcFeeReceiverAddressesList(): Filter; + addBtcFeeReceiverAddresses(value: string, index?: number): Filter; + + getCreationDate(): number; + setCreationDate(value: number): Filter; + + getSignerPubKeyAsHex(): string; + setSignerPubKeyAsHex(value: string): Filter; + + getBannedprivilegeddevpubkeysList(): Array; + setBannedprivilegeddevpubkeysList(value: Array): Filter; + clearBannedprivilegeddevpubkeysList(): Filter; + addBannedprivilegeddevpubkeys(value: string, index?: number): Filter; + + getDisableAutoConf(): boolean; + setDisableAutoConf(value: boolean): Filter; + + getBannedAutoConfExplorersList(): Array; + setBannedAutoConfExplorersList(value: Array): Filter; + clearBannedAutoConfExplorersList(): Filter; + addBannedAutoConfExplorers(value: string, index?: number): Filter; + + getNodeAddressesBannedFromNetworkList(): Array; + setNodeAddressesBannedFromNetworkList(value: Array): Filter; + clearNodeAddressesBannedFromNetworkList(): Filter; + addNodeAddressesBannedFromNetwork(value: string, index?: number): Filter; + + getDisableApi(): boolean; + setDisableApi(value: boolean): Filter; + + getDisableMempoolValidation(): boolean; + setDisableMempoolValidation(value: boolean): Filter; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Filter.AsObject; + static toObject(includeInstance: boolean, msg: Filter): Filter.AsObject; + static serializeBinaryToWriter(message: Filter, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Filter; + static deserializeBinaryFromReader(message: Filter, reader: jspb.BinaryReader): Filter; +} + +export namespace Filter { + export type AsObject = { + nodeAddressesBannedFromTradingList: Array, + bannedOfferIdsList: Array, + bannedPaymentAccountsList: Array, + signatureAsBase64: string, + ownerPubKeyBytes: Uint8Array | string, + extraDataMap: Array<[string, string]>, + bannedCurrenciesList: Array, + bannedPaymentMethodsList: Array, + arbitratorsList: Array, + seedNodesList: Array, + priceRelayNodesList: Array, + preventPublicBtcNetwork: boolean, + btcNodesList: Array, + disableDao: boolean, + disableDaoBelowVersion: string, + disableTradeBelowVersion: string, + mediatorsList: Array, + refundagentsList: Array, + bannedsignerpubkeysList: Array, + btcFeeReceiverAddressesList: Array, + creationDate: number, + signerPubKeyAsHex: string, + bannedprivilegeddevpubkeysList: Array, + disableAutoConf: boolean, + bannedAutoConfExplorersList: Array, + nodeAddressesBannedFromNetworkList: Array, + disableApi: boolean, + disableMempoolValidation: boolean, + } +} + +export class TradeStatistics2 extends jspb.Message { + getBaseCurrency(): string; + setBaseCurrency(value: string): TradeStatistics2; + + getCounterCurrency(): string; + setCounterCurrency(value: string): TradeStatistics2; + + getDirection(): OfferPayload.Direction; + setDirection(value: OfferPayload.Direction): TradeStatistics2; + + getTradePrice(): number; + setTradePrice(value: number): TradeStatistics2; + + getTradeAmount(): number; + setTradeAmount(value: number): TradeStatistics2; + + getTradeDate(): number; + setTradeDate(value: number): TradeStatistics2; + + getPaymentMethodId(): string; + setPaymentMethodId(value: string): TradeStatistics2; + + getOfferDate(): number; + setOfferDate(value: number): TradeStatistics2; + + getOfferUseMarketBasedPrice(): boolean; + setOfferUseMarketBasedPrice(value: boolean): TradeStatistics2; + + getOfferMarketPriceMargin(): number; + setOfferMarketPriceMargin(value: number): TradeStatistics2; + + getOfferAmount(): number; + setOfferAmount(value: number): TradeStatistics2; + + getOfferMinAmount(): number; + setOfferMinAmount(value: number): TradeStatistics2; + + getOfferId(): string; + setOfferId(value: string): TradeStatistics2; + + getDepositTxId(): string; + setDepositTxId(value: string): TradeStatistics2; + + getHash(): Uint8Array | string; + getHash_asU8(): Uint8Array; + getHash_asB64(): string; + setHash(value: Uint8Array | string): TradeStatistics2; + + getExtraDataMap(): jspb.Map; + clearExtraDataMap(): TradeStatistics2; + + getMakerDepositTxId(): string; + setMakerDepositTxId(value: string): TradeStatistics2; + + getTakerDepositTxId(): string; + setTakerDepositTxId(value: string): TradeStatistics2; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): TradeStatistics2.AsObject; + static toObject(includeInstance: boolean, msg: TradeStatistics2): TradeStatistics2.AsObject; + static serializeBinaryToWriter(message: TradeStatistics2, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): TradeStatistics2; + static deserializeBinaryFromReader(message: TradeStatistics2, reader: jspb.BinaryReader): TradeStatistics2; +} + +export namespace TradeStatistics2 { + export type AsObject = { + baseCurrency: string, + counterCurrency: string, + direction: OfferPayload.Direction, + tradePrice: number, + tradeAmount: number, + tradeDate: number, + paymentMethodId: string, + offerDate: number, + offerUseMarketBasedPrice: boolean, + offerMarketPriceMargin: number, + offerAmount: number, + offerMinAmount: number, + offerId: string, + depositTxId: string, + hash: Uint8Array | string, + extraDataMap: Array<[string, string]>, + makerDepositTxId: string, + takerDepositTxId: string, + } +} + +export class TradeStatistics3 extends jspb.Message { + getCurrency(): string; + setCurrency(value: string): TradeStatistics3; + + getPrice(): number; + setPrice(value: number): TradeStatistics3; + + getAmount(): number; + setAmount(value: number): TradeStatistics3; + + getPaymentMethod(): string; + setPaymentMethod(value: string): TradeStatistics3; + + getDate(): number; + setDate(value: number): TradeStatistics3; + + getHash(): Uint8Array | string; + getHash_asU8(): Uint8Array; + getHash_asB64(): string; + setHash(value: Uint8Array | string): TradeStatistics3; + + getExtraDataMap(): jspb.Map; + clearExtraDataMap(): TradeStatistics3; + + getArbitrator(): string; + setArbitrator(value: string): TradeStatistics3; + + getMakerDepositTxId(): string; + setMakerDepositTxId(value: string): TradeStatistics3; + + getTakerDepositTxId(): string; + setTakerDepositTxId(value: string): TradeStatistics3; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): TradeStatistics3.AsObject; + static toObject(includeInstance: boolean, msg: TradeStatistics3): TradeStatistics3.AsObject; + static serializeBinaryToWriter(message: TradeStatistics3, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): TradeStatistics3; + static deserializeBinaryFromReader(message: TradeStatistics3, reader: jspb.BinaryReader): TradeStatistics3; +} + +export namespace TradeStatistics3 { + export type AsObject = { + currency: string, + price: number, + amount: number, + paymentMethod: string, + date: number, + hash: Uint8Array | string, + extraDataMap: Array<[string, string]>, + arbitrator: string, + makerDepositTxId: string, + takerDepositTxId: string, + } +} + +export class MailboxStoragePayload extends jspb.Message { + getPrefixedSealedAndSignedMessage(): PrefixedSealedAndSignedMessage | undefined; + setPrefixedSealedAndSignedMessage(value?: PrefixedSealedAndSignedMessage): MailboxStoragePayload; + hasPrefixedSealedAndSignedMessage(): boolean; + clearPrefixedSealedAndSignedMessage(): MailboxStoragePayload; + + getSenderPubKeyForAddOperationBytes(): Uint8Array | string; + getSenderPubKeyForAddOperationBytes_asU8(): Uint8Array; + getSenderPubKeyForAddOperationBytes_asB64(): string; + setSenderPubKeyForAddOperationBytes(value: Uint8Array | string): MailboxStoragePayload; + + getOwnerPubKeyBytes(): Uint8Array | string; + getOwnerPubKeyBytes_asU8(): Uint8Array; + getOwnerPubKeyBytes_asB64(): string; + setOwnerPubKeyBytes(value: Uint8Array | string): MailboxStoragePayload; + + getExtraDataMap(): jspb.Map; + clearExtraDataMap(): MailboxStoragePayload; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MailboxStoragePayload.AsObject; + static toObject(includeInstance: boolean, msg: MailboxStoragePayload): MailboxStoragePayload.AsObject; + static serializeBinaryToWriter(message: MailboxStoragePayload, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MailboxStoragePayload; + static deserializeBinaryFromReader(message: MailboxStoragePayload, reader: jspb.BinaryReader): MailboxStoragePayload; +} + +export namespace MailboxStoragePayload { + export type AsObject = { + prefixedSealedAndSignedMessage?: PrefixedSealedAndSignedMessage.AsObject, + senderPubKeyForAddOperationBytes: Uint8Array | string, + ownerPubKeyBytes: Uint8Array | string, + extraDataMap: Array<[string, string]>, + } +} + +export class OfferPayload extends jspb.Message { + getId(): string; + setId(value: string): OfferPayload; + + getDate(): number; + setDate(value: number): OfferPayload; + + getOwnerNodeAddress(): NodeAddress | undefined; + setOwnerNodeAddress(value?: NodeAddress): OfferPayload; + hasOwnerNodeAddress(): boolean; + clearOwnerNodeAddress(): OfferPayload; + + getPubKeyRing(): PubKeyRing | undefined; + setPubKeyRing(value?: PubKeyRing): OfferPayload; + hasPubKeyRing(): boolean; + clearPubKeyRing(): OfferPayload; + + getDirection(): OfferPayload.Direction; + setDirection(value: OfferPayload.Direction): OfferPayload; + + getPrice(): number; + setPrice(value: number): OfferPayload; + + getMarketPriceMargin(): number; + setMarketPriceMargin(value: number): OfferPayload; + + getUseMarketBasedPrice(): boolean; + setUseMarketBasedPrice(value: boolean): OfferPayload; + + getAmount(): number; + setAmount(value: number): OfferPayload; + + getMinAmount(): number; + setMinAmount(value: number): OfferPayload; + + getBaseCurrencyCode(): string; + setBaseCurrencyCode(value: string): OfferPayload; + + getCounterCurrencyCode(): string; + setCounterCurrencyCode(value: string): OfferPayload; + + getPaymentMethodId(): string; + setPaymentMethodId(value: string): OfferPayload; + + getMakerPaymentAccountId(): string; + setMakerPaymentAccountId(value: string): OfferPayload; + + getOfferFeePaymentTxId(): string; + setOfferFeePaymentTxId(value: string): OfferPayload; + + getCountryCode(): string; + setCountryCode(value: string): OfferPayload; + + getAcceptedCountryCodesList(): Array; + setAcceptedCountryCodesList(value: Array): OfferPayload; + clearAcceptedCountryCodesList(): OfferPayload; + addAcceptedCountryCodes(value: string, index?: number): OfferPayload; + + getBankId(): string; + setBankId(value: string): OfferPayload; + + getAcceptedBankIdsList(): Array; + setAcceptedBankIdsList(value: Array): OfferPayload; + clearAcceptedBankIdsList(): OfferPayload; + addAcceptedBankIds(value: string, index?: number): OfferPayload; + + getVersionNr(): string; + setVersionNr(value: string): OfferPayload; + + getBlockHeightAtOfferCreation(): number; + setBlockHeightAtOfferCreation(value: number): OfferPayload; + + getTxFee(): number; + setTxFee(value: number): OfferPayload; + + getMakerFee(): number; + setMakerFee(value: number): OfferPayload; + + getIsCurrencyForMakerFeeBtc(): boolean; + setIsCurrencyForMakerFeeBtc(value: boolean): OfferPayload; + + getBuyerSecurityDeposit(): number; + setBuyerSecurityDeposit(value: number): OfferPayload; + + getSellerSecurityDeposit(): number; + setSellerSecurityDeposit(value: number): OfferPayload; + + getMaxTradeLimit(): number; + setMaxTradeLimit(value: number): OfferPayload; + + getMaxTradePeriod(): number; + setMaxTradePeriod(value: number): OfferPayload; + + getUseAutoClose(): boolean; + setUseAutoClose(value: boolean): OfferPayload; + + getUseReOpenAfterAutoClose(): boolean; + setUseReOpenAfterAutoClose(value: boolean): OfferPayload; + + getLowerClosePrice(): number; + setLowerClosePrice(value: number): OfferPayload; + + getUpperClosePrice(): number; + setUpperClosePrice(value: number): OfferPayload; + + getIsPrivateOffer(): boolean; + setIsPrivateOffer(value: boolean): OfferPayload; + + getHashOfChallenge(): string; + setHashOfChallenge(value: string): OfferPayload; + + getExtraDataMap(): jspb.Map; + clearExtraDataMap(): OfferPayload; + + getProtocolVersion(): number; + setProtocolVersion(value: number): OfferPayload; + + getArbitratorNodeAddress(): NodeAddress | undefined; + setArbitratorNodeAddress(value?: NodeAddress): OfferPayload; + hasArbitratorNodeAddress(): boolean; + clearArbitratorNodeAddress(): OfferPayload; + + getArbitratorSignature(): string; + setArbitratorSignature(value: string): OfferPayload; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): OfferPayload.AsObject; + static toObject(includeInstance: boolean, msg: OfferPayload): OfferPayload.AsObject; + static serializeBinaryToWriter(message: OfferPayload, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): OfferPayload; + static deserializeBinaryFromReader(message: OfferPayload, reader: jspb.BinaryReader): OfferPayload; +} + +export namespace OfferPayload { + export type AsObject = { + id: string, + date: number, + ownerNodeAddress?: NodeAddress.AsObject, + pubKeyRing?: PubKeyRing.AsObject, + direction: OfferPayload.Direction, + price: number, + marketPriceMargin: number, + useMarketBasedPrice: boolean, + amount: number, + minAmount: number, + baseCurrencyCode: string, + counterCurrencyCode: string, + paymentMethodId: string, + makerPaymentAccountId: string, + offerFeePaymentTxId: string, + countryCode: string, + acceptedCountryCodesList: Array, + bankId: string, + acceptedBankIdsList: Array, + versionNr: string, + blockHeightAtOfferCreation: number, + txFee: number, + makerFee: number, + isCurrencyForMakerFeeBtc: boolean, + buyerSecurityDeposit: number, + sellerSecurityDeposit: number, + maxTradeLimit: number, + maxTradePeriod: number, + useAutoClose: boolean, + useReOpenAfterAutoClose: boolean, + lowerClosePrice: number, + upperClosePrice: number, + isPrivateOffer: boolean, + hashOfChallenge: string, + extraDataMap: Array<[string, string]>, + protocolVersion: number, + arbitratorNodeAddress?: NodeAddress.AsObject, + arbitratorSignature: string, + } + + export enum Direction { + PB_ERROR = 0, + BUY = 1, + SELL = 2, + } +} + +export class AccountAgeWitness extends jspb.Message { + getHash(): Uint8Array | string; + getHash_asU8(): Uint8Array; + getHash_asB64(): string; + setHash(value: Uint8Array | string): AccountAgeWitness; + + getDate(): number; + setDate(value: number): AccountAgeWitness; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): AccountAgeWitness.AsObject; + static toObject(includeInstance: boolean, msg: AccountAgeWitness): AccountAgeWitness.AsObject; + static serializeBinaryToWriter(message: AccountAgeWitness, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): AccountAgeWitness; + static deserializeBinaryFromReader(message: AccountAgeWitness, reader: jspb.BinaryReader): AccountAgeWitness; +} + +export namespace AccountAgeWitness { + export type AsObject = { + hash: Uint8Array | string, + date: number, + } +} + +export class SignedWitness extends jspb.Message { + getVerificationMethod(): SignedWitness.VerificationMethod; + setVerificationMethod(value: SignedWitness.VerificationMethod): SignedWitness; + + getAccountAgeWitnessHash(): Uint8Array | string; + getAccountAgeWitnessHash_asU8(): Uint8Array; + getAccountAgeWitnessHash_asB64(): string; + setAccountAgeWitnessHash(value: Uint8Array | string): SignedWitness; + + getSignature(): Uint8Array | string; + getSignature_asU8(): Uint8Array; + getSignature_asB64(): string; + setSignature(value: Uint8Array | string): SignedWitness; + + getSignerPubKey(): Uint8Array | string; + getSignerPubKey_asU8(): Uint8Array; + getSignerPubKey_asB64(): string; + setSignerPubKey(value: Uint8Array | string): SignedWitness; + + getWitnessOwnerPubKey(): Uint8Array | string; + getWitnessOwnerPubKey_asU8(): Uint8Array; + getWitnessOwnerPubKey_asB64(): string; + setWitnessOwnerPubKey(value: Uint8Array | string): SignedWitness; + + getDate(): number; + setDate(value: number): SignedWitness; + + getTradeAmount(): number; + setTradeAmount(value: number): SignedWitness; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): SignedWitness.AsObject; + static toObject(includeInstance: boolean, msg: SignedWitness): SignedWitness.AsObject; + static serializeBinaryToWriter(message: SignedWitness, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SignedWitness; + static deserializeBinaryFromReader(message: SignedWitness, reader: jspb.BinaryReader): SignedWitness; +} + +export namespace SignedWitness { + export type AsObject = { + verificationMethod: SignedWitness.VerificationMethod, + accountAgeWitnessHash: Uint8Array | string, + signature: Uint8Array | string, + signerPubKey: Uint8Array | string, + witnessOwnerPubKey: Uint8Array | string, + date: number, + tradeAmount: number, + } + + export enum VerificationMethod { + PB_ERROR = 0, + ARBITRATOR = 1, + TRADE = 2, + } +} + +export class Dispute extends jspb.Message { + getTradeId(): string; + setTradeId(value: string): Dispute; + + getId(): string; + setId(value: string): Dispute; + + getTraderId(): number; + setTraderId(value: number): Dispute; + + getIsOpener(): boolean; + setIsOpener(value: boolean): Dispute; + + getDisputeOpenerIsBuyer(): boolean; + setDisputeOpenerIsBuyer(value: boolean): Dispute; + + getDisputeOpenerIsMaker(): boolean; + setDisputeOpenerIsMaker(value: boolean): Dispute; + + getOpeningDate(): number; + setOpeningDate(value: number): Dispute; + + getTraderPubKeyRing(): PubKeyRing | undefined; + setTraderPubKeyRing(value?: PubKeyRing): Dispute; + hasTraderPubKeyRing(): boolean; + clearTraderPubKeyRing(): Dispute; + + getTradeDate(): number; + setTradeDate(value: number): Dispute; + + getContract(): Contract | undefined; + setContract(value?: Contract): Dispute; + hasContract(): boolean; + clearContract(): Dispute; + + getContractHash(): Uint8Array | string; + getContractHash_asU8(): Uint8Array; + getContractHash_asB64(): string; + setContractHash(value: Uint8Array | string): Dispute; + + getDepositTxSerialized(): Uint8Array | string; + getDepositTxSerialized_asU8(): Uint8Array; + getDepositTxSerialized_asB64(): string; + setDepositTxSerialized(value: Uint8Array | string): Dispute; + + getPayoutTxSerialized(): Uint8Array | string; + getPayoutTxSerialized_asU8(): Uint8Array; + getPayoutTxSerialized_asB64(): string; + setPayoutTxSerialized(value: Uint8Array | string): Dispute; + + getDepositTxId(): string; + setDepositTxId(value: string): Dispute; + + getPayoutTxId(): string; + setPayoutTxId(value: string): Dispute; + + getContractAsJson(): string; + setContractAsJson(value: string): Dispute; + + getMakerContractSignature(): string; + setMakerContractSignature(value: string): Dispute; + + getTakerContractSignature(): string; + setTakerContractSignature(value: string): Dispute; + + getMakerPaymentAccountPayload(): PaymentAccountPayload | undefined; + setMakerPaymentAccountPayload(value?: PaymentAccountPayload): Dispute; + hasMakerPaymentAccountPayload(): boolean; + clearMakerPaymentAccountPayload(): Dispute; + + getTakerPaymentAccountPayload(): PaymentAccountPayload | undefined; + setTakerPaymentAccountPayload(value?: PaymentAccountPayload): Dispute; + hasTakerPaymentAccountPayload(): boolean; + clearTakerPaymentAccountPayload(): Dispute; + + getAgentPubKeyRing(): PubKeyRing | undefined; + setAgentPubKeyRing(value?: PubKeyRing): Dispute; + hasAgentPubKeyRing(): boolean; + clearAgentPubKeyRing(): Dispute; + + getIsSupportTicket(): boolean; + setIsSupportTicket(value: boolean): Dispute; + + getChatMessageList(): Array; + setChatMessageList(value: Array): Dispute; + clearChatMessageList(): Dispute; + addChatMessage(value?: ChatMessage, index?: number): ChatMessage; + + getIsClosed(): boolean; + setIsClosed(value: boolean): Dispute; + + getDisputeResult(): DisputeResult | undefined; + setDisputeResult(value?: DisputeResult): Dispute; + hasDisputeResult(): boolean; + clearDisputeResult(): Dispute; + + getDisputePayoutTxId(): string; + setDisputePayoutTxId(value: string): Dispute; + + getSupportType(): SupportType; + setSupportType(value: SupportType): Dispute; + + getMediatorsDisputeResult(): string; + setMediatorsDisputeResult(value: string): Dispute; + + getDelayedPayoutTxId(): string; + setDelayedPayoutTxId(value: string): Dispute; + + getDonationAddressOfDelayedPayoutTx(): string; + setDonationAddressOfDelayedPayoutTx(value: string): Dispute; + + getState(): Dispute.State; + setState(value: Dispute.State): Dispute; + + getTradePeriodEnd(): number; + setTradePeriodEnd(value: number): Dispute; + + getExtraDataMap(): jspb.Map; + clearExtraDataMap(): Dispute; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Dispute.AsObject; + static toObject(includeInstance: boolean, msg: Dispute): Dispute.AsObject; + static serializeBinaryToWriter(message: Dispute, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Dispute; + static deserializeBinaryFromReader(message: Dispute, reader: jspb.BinaryReader): Dispute; +} + +export namespace Dispute { + export type AsObject = { + tradeId: string, + id: string, + traderId: number, + isOpener: boolean, + disputeOpenerIsBuyer: boolean, + disputeOpenerIsMaker: boolean, + openingDate: number, + traderPubKeyRing?: PubKeyRing.AsObject, + tradeDate: number, + contract?: Contract.AsObject, + contractHash: Uint8Array | string, + depositTxSerialized: Uint8Array | string, + payoutTxSerialized: Uint8Array | string, + depositTxId: string, + payoutTxId: string, + contractAsJson: string, + makerContractSignature: string, + takerContractSignature: string, + makerPaymentAccountPayload?: PaymentAccountPayload.AsObject, + takerPaymentAccountPayload?: PaymentAccountPayload.AsObject, + agentPubKeyRing?: PubKeyRing.AsObject, + isSupportTicket: boolean, + chatMessageList: Array, + isClosed: boolean, + disputeResult?: DisputeResult.AsObject, + disputePayoutTxId: string, + supportType: SupportType, + mediatorsDisputeResult: string, + delayedPayoutTxId: string, + donationAddressOfDelayedPayoutTx: string, + state: Dispute.State, + tradePeriodEnd: number, + extraDataMap: Array<[string, string]>, + } + + export enum State { + NEEDS_UPGRADE = 0, + NEW = 1, + OPEN = 2, + REOPENED = 3, + CLOSED = 4, + } +} + +export class Attachment extends jspb.Message { + getFileName(): string; + setFileName(value: string): Attachment; + + getBytes(): Uint8Array | string; + getBytes_asU8(): Uint8Array; + getBytes_asB64(): string; + setBytes(value: Uint8Array | string): Attachment; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Attachment.AsObject; + static toObject(includeInstance: boolean, msg: Attachment): Attachment.AsObject; + static serializeBinaryToWriter(message: Attachment, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Attachment; + static deserializeBinaryFromReader(message: Attachment, reader: jspb.BinaryReader): Attachment; +} + +export namespace Attachment { + export type AsObject = { + fileName: string, + bytes: Uint8Array | string, + } +} + +export class DisputeResult extends jspb.Message { + getTradeId(): string; + setTradeId(value: string): DisputeResult; + + getTraderId(): number; + setTraderId(value: number): DisputeResult; + + getWinner(): DisputeResult.Winner; + setWinner(value: DisputeResult.Winner): DisputeResult; + + getReasonOrdinal(): number; + setReasonOrdinal(value: number): DisputeResult; + + getTamperProofEvidence(): boolean; + setTamperProofEvidence(value: boolean): DisputeResult; + + getIdVerification(): boolean; + setIdVerification(value: boolean): DisputeResult; + + getScreenCast(): boolean; + setScreenCast(value: boolean): DisputeResult; + + getSummaryNotes(): string; + setSummaryNotes(value: string): DisputeResult; + + getChatMessage(): ChatMessage | undefined; + setChatMessage(value?: ChatMessage): DisputeResult; + hasChatMessage(): boolean; + clearChatMessage(): DisputeResult; + + getBuyerPayoutAmount(): number; + setBuyerPayoutAmount(value: number): DisputeResult; + + getSellerPayoutAmount(): number; + setSellerPayoutAmount(value: number): DisputeResult; + + getArbitratorPubKey(): Uint8Array | string; + getArbitratorPubKey_asU8(): Uint8Array; + getArbitratorPubKey_asB64(): string; + setArbitratorPubKey(value: Uint8Array | string): DisputeResult; + + getCloseDate(): number; + setCloseDate(value: number): DisputeResult; + + getIsLoserPublisher(): boolean; + setIsLoserPublisher(value: boolean): DisputeResult; + + getArbitratorSignedPayoutTxHex(): string; + setArbitratorSignedPayoutTxHex(value: string): DisputeResult; + + getArbitratorUpdatedMultisigHex(): string; + setArbitratorUpdatedMultisigHex(value: string): DisputeResult; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DisputeResult.AsObject; + static toObject(includeInstance: boolean, msg: DisputeResult): DisputeResult.AsObject; + static serializeBinaryToWriter(message: DisputeResult, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DisputeResult; + static deserializeBinaryFromReader(message: DisputeResult, reader: jspb.BinaryReader): DisputeResult; +} + +export namespace DisputeResult { + export type AsObject = { + tradeId: string, + traderId: number, + winner: DisputeResult.Winner, + reasonOrdinal: number, + tamperProofEvidence: boolean, + idVerification: boolean, + screenCast: boolean, + summaryNotes: string, + chatMessage?: ChatMessage.AsObject, + buyerPayoutAmount: number, + sellerPayoutAmount: number, + arbitratorPubKey: Uint8Array | string, + closeDate: number, + isLoserPublisher: boolean, + arbitratorSignedPayoutTxHex: string, + arbitratorUpdatedMultisigHex: string, + } + + export enum Winner { + PB_ERROR_WINNER = 0, + BUYER = 1, + SELLER = 2, + } + + export enum Reason { + PB_ERROR_REASON = 0, + OTHER = 1, + BUG = 2, + USABILITY = 3, + SCAM = 4, + PROTOCOL_VIOLATION = 5, + NO_REPLY = 6, + BANK_PROBLEMS = 7, + OPTION_TRADE = 8, + SELLER_NOT_RESPONDING = 9, + WRONG_SENDER_ACCOUNT = 10, + TRADE_ALREADY_SETTLED = 11, + PEER_WAS_LATE = 12, + } +} + +export class Contract extends jspb.Message { + getOfferPayload(): OfferPayload | undefined; + setOfferPayload(value?: OfferPayload): Contract; + hasOfferPayload(): boolean; + clearOfferPayload(): Contract; + + getTradeAmount(): number; + setTradeAmount(value: number): Contract; + + getTradePrice(): number; + setTradePrice(value: number): Contract; + + getIsBuyerMakerAndSellerTaker(): boolean; + setIsBuyerMakerAndSellerTaker(value: boolean): Contract; + + getMakerAccountId(): string; + setMakerAccountId(value: string): Contract; + + getTakerAccountId(): string; + setTakerAccountId(value: string): Contract; + + getMakerPaymentMethodId(): string; + setMakerPaymentMethodId(value: string): Contract; + + getTakerPaymentMethodId(): string; + setTakerPaymentMethodId(value: string): Contract; + + getMakerPaymentAccountPayloadHash(): Uint8Array | string; + getMakerPaymentAccountPayloadHash_asU8(): Uint8Array; + getMakerPaymentAccountPayloadHash_asB64(): string; + setMakerPaymentAccountPayloadHash(value: Uint8Array | string): Contract; + + getTakerPaymentAccountPayloadHash(): Uint8Array | string; + getTakerPaymentAccountPayloadHash_asU8(): Uint8Array; + getTakerPaymentAccountPayloadHash_asB64(): string; + setTakerPaymentAccountPayloadHash(value: Uint8Array | string): Contract; + + getMakerPubKeyRing(): PubKeyRing | undefined; + setMakerPubKeyRing(value?: PubKeyRing): Contract; + hasMakerPubKeyRing(): boolean; + clearMakerPubKeyRing(): Contract; + + getTakerPubKeyRing(): PubKeyRing | undefined; + setTakerPubKeyRing(value?: PubKeyRing): Contract; + hasTakerPubKeyRing(): boolean; + clearTakerPubKeyRing(): Contract; + + getBuyerNodeAddress(): NodeAddress | undefined; + setBuyerNodeAddress(value?: NodeAddress): Contract; + hasBuyerNodeAddress(): boolean; + clearBuyerNodeAddress(): Contract; + + getSellerNodeAddress(): NodeAddress | undefined; + setSellerNodeAddress(value?: NodeAddress): Contract; + hasSellerNodeAddress(): boolean; + clearSellerNodeAddress(): Contract; + + getMakerPayoutAddressString(): string; + setMakerPayoutAddressString(value: string): Contract; + + getTakerPayoutAddressString(): string; + setTakerPayoutAddressString(value: string): Contract; + + getArbitratorNodeAddress(): NodeAddress | undefined; + setArbitratorNodeAddress(value?: NodeAddress): Contract; + hasArbitratorNodeAddress(): boolean; + clearArbitratorNodeAddress(): Contract; + + getLockTime(): number; + setLockTime(value: number): Contract; + + getMakerDepositTxHash(): string; + setMakerDepositTxHash(value: string): Contract; + + getTakerDepositTxHash(): string; + setTakerDepositTxHash(value: string): Contract; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Contract.AsObject; + static toObject(includeInstance: boolean, msg: Contract): Contract.AsObject; + static serializeBinaryToWriter(message: Contract, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Contract; + static deserializeBinaryFromReader(message: Contract, reader: jspb.BinaryReader): Contract; +} + +export namespace Contract { + export type AsObject = { + offerPayload?: OfferPayload.AsObject, + tradeAmount: number, + tradePrice: number, + isBuyerMakerAndSellerTaker: boolean, + makerAccountId: string, + takerAccountId: string, + makerPaymentMethodId: string, + takerPaymentMethodId: string, + makerPaymentAccountPayloadHash: Uint8Array | string, + takerPaymentAccountPayloadHash: Uint8Array | string, + makerPubKeyRing?: PubKeyRing.AsObject, + takerPubKeyRing?: PubKeyRing.AsObject, + buyerNodeAddress?: NodeAddress.AsObject, + sellerNodeAddress?: NodeAddress.AsObject, + makerPayoutAddressString: string, + takerPayoutAddressString: string, + arbitratorNodeAddress?: NodeAddress.AsObject, + lockTime: number, + makerDepositTxHash: string, + takerDepositTxHash: string, + } +} + +export class RawTransactionInput extends jspb.Message { + getIndex(): number; + setIndex(value: number): RawTransactionInput; + + getParentTransaction(): Uint8Array | string; + getParentTransaction_asU8(): Uint8Array; + getParentTransaction_asB64(): string; + setParentTransaction(value: Uint8Array | string): RawTransactionInput; + + getValue(): number; + setValue(value: number): RawTransactionInput; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): RawTransactionInput.AsObject; + static toObject(includeInstance: boolean, msg: RawTransactionInput): RawTransactionInput.AsObject; + static serializeBinaryToWriter(message: RawTransactionInput, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): RawTransactionInput; + static deserializeBinaryFromReader(message: RawTransactionInput, reader: jspb.BinaryReader): RawTransactionInput; +} + +export namespace RawTransactionInput { + export type AsObject = { + index: number, + parentTransaction: Uint8Array | string, + value: number, + } +} + +export class PaymentAccountPayload extends jspb.Message { + getId(): string; + setId(value: string): PaymentAccountPayload; + + getPaymentMethodId(): string; + setPaymentMethodId(value: string): PaymentAccountPayload; + + getMaxTradePeriod(): number; + setMaxTradePeriod(value: number): PaymentAccountPayload; + + getAliPayAccountPayload(): AliPayAccountPayload | undefined; + setAliPayAccountPayload(value?: AliPayAccountPayload): PaymentAccountPayload; + hasAliPayAccountPayload(): boolean; + clearAliPayAccountPayload(): PaymentAccountPayload; + + getChaseQuickPayAccountPayload(): ChaseQuickPayAccountPayload | undefined; + setChaseQuickPayAccountPayload(value?: ChaseQuickPayAccountPayload): PaymentAccountPayload; + hasChaseQuickPayAccountPayload(): boolean; + clearChaseQuickPayAccountPayload(): PaymentAccountPayload; + + getClearXchangeAccountPayload(): ClearXchangeAccountPayload | undefined; + setClearXchangeAccountPayload(value?: ClearXchangeAccountPayload): PaymentAccountPayload; + hasClearXchangeAccountPayload(): boolean; + clearClearXchangeAccountPayload(): PaymentAccountPayload; + + getCountryBasedPaymentAccountPayload(): CountryBasedPaymentAccountPayload | undefined; + setCountryBasedPaymentAccountPayload(value?: CountryBasedPaymentAccountPayload): PaymentAccountPayload; + hasCountryBasedPaymentAccountPayload(): boolean; + clearCountryBasedPaymentAccountPayload(): PaymentAccountPayload; + + getCryptoCurrencyAccountPayload(): CryptoCurrencyAccountPayload | undefined; + setCryptoCurrencyAccountPayload(value?: CryptoCurrencyAccountPayload): PaymentAccountPayload; + hasCryptoCurrencyAccountPayload(): boolean; + clearCryptoCurrencyAccountPayload(): PaymentAccountPayload; + + getFasterPaymentsAccountPayload(): FasterPaymentsAccountPayload | undefined; + setFasterPaymentsAccountPayload(value?: FasterPaymentsAccountPayload): PaymentAccountPayload; + hasFasterPaymentsAccountPayload(): boolean; + clearFasterPaymentsAccountPayload(): PaymentAccountPayload; + + getInteracETransferAccountPayload(): InteracETransferAccountPayload | undefined; + setInteracETransferAccountPayload(value?: InteracETransferAccountPayload): PaymentAccountPayload; + hasInteracETransferAccountPayload(): boolean; + clearInteracETransferAccountPayload(): PaymentAccountPayload; + + getOKPayAccountPayload(): OKPayAccountPayload | undefined; + setOKPayAccountPayload(value?: OKPayAccountPayload): PaymentAccountPayload; + hasOKPayAccountPayload(): boolean; + clearOKPayAccountPayload(): PaymentAccountPayload; + + getPerfectMoneyAccountPayload(): PerfectMoneyAccountPayload | undefined; + setPerfectMoneyAccountPayload(value?: PerfectMoneyAccountPayload): PaymentAccountPayload; + hasPerfectMoneyAccountPayload(): boolean; + clearPerfectMoneyAccountPayload(): PaymentAccountPayload; + + getSwishAccountPayload(): SwishAccountPayload | undefined; + setSwishAccountPayload(value?: SwishAccountPayload): PaymentAccountPayload; + hasSwishAccountPayload(): boolean; + clearSwishAccountPayload(): PaymentAccountPayload; + + getUSPostalMoneyOrderAccountPayload(): USPostalMoneyOrderAccountPayload | undefined; + setUSPostalMoneyOrderAccountPayload(value?: USPostalMoneyOrderAccountPayload): PaymentAccountPayload; + hasUSPostalMoneyOrderAccountPayload(): boolean; + clearUSPostalMoneyOrderAccountPayload(): PaymentAccountPayload; + + getUpholdAccountPayload(): UpholdAccountPayload | undefined; + setUpholdAccountPayload(value?: UpholdAccountPayload): PaymentAccountPayload; + hasUpholdAccountPayload(): boolean; + clearUpholdAccountPayload(): PaymentAccountPayload; + + getCashAppAccountPayload(): CashAppAccountPayload | undefined; + setCashAppAccountPayload(value?: CashAppAccountPayload): PaymentAccountPayload; + hasCashAppAccountPayload(): boolean; + clearCashAppAccountPayload(): PaymentAccountPayload; + + getMoneyBeamAccountPayload(): MoneyBeamAccountPayload | undefined; + setMoneyBeamAccountPayload(value?: MoneyBeamAccountPayload): PaymentAccountPayload; + hasMoneyBeamAccountPayload(): boolean; + clearMoneyBeamAccountPayload(): PaymentAccountPayload; + + getVenmoAccountPayload(): VenmoAccountPayload | undefined; + setVenmoAccountPayload(value?: VenmoAccountPayload): PaymentAccountPayload; + hasVenmoAccountPayload(): boolean; + clearVenmoAccountPayload(): PaymentAccountPayload; + + getPopmoneyAccountPayload(): PopmoneyAccountPayload | undefined; + setPopmoneyAccountPayload(value?: PopmoneyAccountPayload): PaymentAccountPayload; + hasPopmoneyAccountPayload(): boolean; + clearPopmoneyAccountPayload(): PaymentAccountPayload; + + getRevolutAccountPayload(): RevolutAccountPayload | undefined; + setRevolutAccountPayload(value?: RevolutAccountPayload): PaymentAccountPayload; + hasRevolutAccountPayload(): boolean; + clearRevolutAccountPayload(): PaymentAccountPayload; + + getWeChatPayAccountPayload(): WeChatPayAccountPayload | undefined; + setWeChatPayAccountPayload(value?: WeChatPayAccountPayload): PaymentAccountPayload; + hasWeChatPayAccountPayload(): boolean; + clearWeChatPayAccountPayload(): PaymentAccountPayload; + + getMoneyGramAccountPayload(): MoneyGramAccountPayload | undefined; + setMoneyGramAccountPayload(value?: MoneyGramAccountPayload): PaymentAccountPayload; + hasMoneyGramAccountPayload(): boolean; + clearMoneyGramAccountPayload(): PaymentAccountPayload; + + getHalCashAccountPayload(): HalCashAccountPayload | undefined; + setHalCashAccountPayload(value?: HalCashAccountPayload): PaymentAccountPayload; + hasHalCashAccountPayload(): boolean; + clearHalCashAccountPayload(): PaymentAccountPayload; + + getPromptPayAccountPayload(): PromptPayAccountPayload | undefined; + setPromptPayAccountPayload(value?: PromptPayAccountPayload): PaymentAccountPayload; + hasPromptPayAccountPayload(): boolean; + clearPromptPayAccountPayload(): PaymentAccountPayload; + + getAdvancedCashAccountPayload(): AdvancedCashAccountPayload | undefined; + setAdvancedCashAccountPayload(value?: AdvancedCashAccountPayload): PaymentAccountPayload; + hasAdvancedCashAccountPayload(): boolean; + clearAdvancedCashAccountPayload(): PaymentAccountPayload; + + getInstantCryptoCurrencyAccountPayload(): InstantCryptoCurrencyAccountPayload | undefined; + setInstantCryptoCurrencyAccountPayload(value?: InstantCryptoCurrencyAccountPayload): PaymentAccountPayload; + hasInstantCryptoCurrencyAccountPayload(): boolean; + clearInstantCryptoCurrencyAccountPayload(): PaymentAccountPayload; + + getJapanBankAccountPayload(): JapanBankAccountPayload | undefined; + setJapanBankAccountPayload(value?: JapanBankAccountPayload): PaymentAccountPayload; + hasJapanBankAccountPayload(): boolean; + clearJapanBankAccountPayload(): PaymentAccountPayload; + + getTransferwiseAccountPayload(): TransferwiseAccountPayload | undefined; + setTransferwiseAccountPayload(value?: TransferwiseAccountPayload): PaymentAccountPayload; + hasTransferwiseAccountPayload(): boolean; + clearTransferwiseAccountPayload(): PaymentAccountPayload; + + getAustraliaPayidPayload(): AustraliaPayidPayload | undefined; + setAustraliaPayidPayload(value?: AustraliaPayidPayload): PaymentAccountPayload; + hasAustraliaPayidPayload(): boolean; + clearAustraliaPayidPayload(): PaymentAccountPayload; + + getAmazonGiftCardAccountPayload(): AmazonGiftCardAccountPayload | undefined; + setAmazonGiftCardAccountPayload(value?: AmazonGiftCardAccountPayload): PaymentAccountPayload; + hasAmazonGiftCardAccountPayload(): boolean; + clearAmazonGiftCardAccountPayload(): PaymentAccountPayload; + + getCashByMailAccountPayload(): CashByMailAccountPayload | undefined; + setCashByMailAccountPayload(value?: CashByMailAccountPayload): PaymentAccountPayload; + hasCashByMailAccountPayload(): boolean; + clearCashByMailAccountPayload(): PaymentAccountPayload; + + getExcludeFromJsonDataMap(): jspb.Map; + clearExcludeFromJsonDataMap(): PaymentAccountPayload; + + getMessageCase(): PaymentAccountPayload.MessageCase; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PaymentAccountPayload.AsObject; + static toObject(includeInstance: boolean, msg: PaymentAccountPayload): PaymentAccountPayload.AsObject; + static serializeBinaryToWriter(message: PaymentAccountPayload, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PaymentAccountPayload; + static deserializeBinaryFromReader(message: PaymentAccountPayload, reader: jspb.BinaryReader): PaymentAccountPayload; +} + +export namespace PaymentAccountPayload { + export type AsObject = { + id: string, + paymentMethodId: string, + maxTradePeriod: number, + aliPayAccountPayload?: AliPayAccountPayload.AsObject, + chaseQuickPayAccountPayload?: ChaseQuickPayAccountPayload.AsObject, + clearXchangeAccountPayload?: ClearXchangeAccountPayload.AsObject, + countryBasedPaymentAccountPayload?: CountryBasedPaymentAccountPayload.AsObject, + cryptoCurrencyAccountPayload?: CryptoCurrencyAccountPayload.AsObject, + fasterPaymentsAccountPayload?: FasterPaymentsAccountPayload.AsObject, + interacETransferAccountPayload?: InteracETransferAccountPayload.AsObject, + oKPayAccountPayload?: OKPayAccountPayload.AsObject, + perfectMoneyAccountPayload?: PerfectMoneyAccountPayload.AsObject, + swishAccountPayload?: SwishAccountPayload.AsObject, + uSPostalMoneyOrderAccountPayload?: USPostalMoneyOrderAccountPayload.AsObject, + upholdAccountPayload?: UpholdAccountPayload.AsObject, + cashAppAccountPayload?: CashAppAccountPayload.AsObject, + moneyBeamAccountPayload?: MoneyBeamAccountPayload.AsObject, + venmoAccountPayload?: VenmoAccountPayload.AsObject, + popmoneyAccountPayload?: PopmoneyAccountPayload.AsObject, + revolutAccountPayload?: RevolutAccountPayload.AsObject, + weChatPayAccountPayload?: WeChatPayAccountPayload.AsObject, + moneyGramAccountPayload?: MoneyGramAccountPayload.AsObject, + halCashAccountPayload?: HalCashAccountPayload.AsObject, + promptPayAccountPayload?: PromptPayAccountPayload.AsObject, + advancedCashAccountPayload?: AdvancedCashAccountPayload.AsObject, + instantCryptoCurrencyAccountPayload?: InstantCryptoCurrencyAccountPayload.AsObject, + japanBankAccountPayload?: JapanBankAccountPayload.AsObject, + transferwiseAccountPayload?: TransferwiseAccountPayload.AsObject, + australiaPayidPayload?: AustraliaPayidPayload.AsObject, + amazonGiftCardAccountPayload?: AmazonGiftCardAccountPayload.AsObject, + cashByMailAccountPayload?: CashByMailAccountPayload.AsObject, + excludeFromJsonDataMap: Array<[string, string]>, + } + + export enum MessageCase { + MESSAGE_NOT_SET = 0, + ALI_PAY_ACCOUNT_PAYLOAD = 4, + CHASE_QUICK_PAY_ACCOUNT_PAYLOAD = 5, + CLEAR_XCHANGE_ACCOUNT_PAYLOAD = 6, + COUNTRY_BASED_PAYMENT_ACCOUNT_PAYLOAD = 7, + CRYPTO_CURRENCY_ACCOUNT_PAYLOAD = 8, + FASTER_PAYMENTS_ACCOUNT_PAYLOAD = 9, + INTERAC_E_TRANSFER_ACCOUNT_PAYLOAD = 10, + O_K_PAY_ACCOUNT_PAYLOAD = 11, + PERFECT_MONEY_ACCOUNT_PAYLOAD = 12, + SWISH_ACCOUNT_PAYLOAD = 13, + U_S_POSTAL_MONEY_ORDER_ACCOUNT_PAYLOAD = 14, + UPHOLD_ACCOUNT_PAYLOAD = 16, + CASH_APP_ACCOUNT_PAYLOAD = 17, + MONEY_BEAM_ACCOUNT_PAYLOAD = 18, + VENMO_ACCOUNT_PAYLOAD = 19, + POPMONEY_ACCOUNT_PAYLOAD = 20, + REVOLUT_ACCOUNT_PAYLOAD = 21, + WE_CHAT_PAY_ACCOUNT_PAYLOAD = 22, + MONEY_GRAM_ACCOUNT_PAYLOAD = 23, + HAL_CASH_ACCOUNT_PAYLOAD = 24, + PROMPT_PAY_ACCOUNT_PAYLOAD = 25, + ADVANCED_CASH_ACCOUNT_PAYLOAD = 26, + INSTANT_CRYPTO_CURRENCY_ACCOUNT_PAYLOAD = 27, + JAPAN_BANK_ACCOUNT_PAYLOAD = 28, + TRANSFERWISE_ACCOUNT_PAYLOAD = 29, + AUSTRALIA_PAYID_PAYLOAD = 30, + AMAZON_GIFT_CARD_ACCOUNT_PAYLOAD = 31, + CASH_BY_MAIL_ACCOUNT_PAYLOAD = 32, + } +} + +export class AliPayAccountPayload extends jspb.Message { + getAccountNr(): string; + setAccountNr(value: string): AliPayAccountPayload; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): AliPayAccountPayload.AsObject; + static toObject(includeInstance: boolean, msg: AliPayAccountPayload): AliPayAccountPayload.AsObject; + static serializeBinaryToWriter(message: AliPayAccountPayload, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): AliPayAccountPayload; + static deserializeBinaryFromReader(message: AliPayAccountPayload, reader: jspb.BinaryReader): AliPayAccountPayload; +} + +export namespace AliPayAccountPayload { + export type AsObject = { + accountNr: string, + } +} + +export class WeChatPayAccountPayload extends jspb.Message { + getAccountNr(): string; + setAccountNr(value: string): WeChatPayAccountPayload; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): WeChatPayAccountPayload.AsObject; + static toObject(includeInstance: boolean, msg: WeChatPayAccountPayload): WeChatPayAccountPayload.AsObject; + static serializeBinaryToWriter(message: WeChatPayAccountPayload, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): WeChatPayAccountPayload; + static deserializeBinaryFromReader(message: WeChatPayAccountPayload, reader: jspb.BinaryReader): WeChatPayAccountPayload; +} + +export namespace WeChatPayAccountPayload { + export type AsObject = { + accountNr: string, + } +} + +export class ChaseQuickPayAccountPayload extends jspb.Message { + getEmail(): string; + setEmail(value: string): ChaseQuickPayAccountPayload; + + getHolderName(): string; + setHolderName(value: string): ChaseQuickPayAccountPayload; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ChaseQuickPayAccountPayload.AsObject; + static toObject(includeInstance: boolean, msg: ChaseQuickPayAccountPayload): ChaseQuickPayAccountPayload.AsObject; + static serializeBinaryToWriter(message: ChaseQuickPayAccountPayload, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ChaseQuickPayAccountPayload; + static deserializeBinaryFromReader(message: ChaseQuickPayAccountPayload, reader: jspb.BinaryReader): ChaseQuickPayAccountPayload; +} + +export namespace ChaseQuickPayAccountPayload { + export type AsObject = { + email: string, + holderName: string, + } +} + +export class ClearXchangeAccountPayload extends jspb.Message { + getHolderName(): string; + setHolderName(value: string): ClearXchangeAccountPayload; + + getEmailOrMobileNr(): string; + setEmailOrMobileNr(value: string): ClearXchangeAccountPayload; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ClearXchangeAccountPayload.AsObject; + static toObject(includeInstance: boolean, msg: ClearXchangeAccountPayload): ClearXchangeAccountPayload.AsObject; + static serializeBinaryToWriter(message: ClearXchangeAccountPayload, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ClearXchangeAccountPayload; + static deserializeBinaryFromReader(message: ClearXchangeAccountPayload, reader: jspb.BinaryReader): ClearXchangeAccountPayload; +} + +export namespace ClearXchangeAccountPayload { + export type AsObject = { + holderName: string, + emailOrMobileNr: string, + } +} + +export class CountryBasedPaymentAccountPayload extends jspb.Message { + getCountrycode(): string; + setCountrycode(value: string): CountryBasedPaymentAccountPayload; + + getBankAccountPayload(): BankAccountPayload | undefined; + setBankAccountPayload(value?: BankAccountPayload): CountryBasedPaymentAccountPayload; + hasBankAccountPayload(): boolean; + clearBankAccountPayload(): CountryBasedPaymentAccountPayload; + + getCashDepositAccountPayload(): CashDepositAccountPayload | undefined; + setCashDepositAccountPayload(value?: CashDepositAccountPayload): CountryBasedPaymentAccountPayload; + hasCashDepositAccountPayload(): boolean; + clearCashDepositAccountPayload(): CountryBasedPaymentAccountPayload; + + getSepaAccountPayload(): SepaAccountPayload | undefined; + setSepaAccountPayload(value?: SepaAccountPayload): CountryBasedPaymentAccountPayload; + hasSepaAccountPayload(): boolean; + clearSepaAccountPayload(): CountryBasedPaymentAccountPayload; + + getWesternUnionAccountPayload(): WesternUnionAccountPayload | undefined; + setWesternUnionAccountPayload(value?: WesternUnionAccountPayload): CountryBasedPaymentAccountPayload; + hasWesternUnionAccountPayload(): boolean; + clearWesternUnionAccountPayload(): CountryBasedPaymentAccountPayload; + + getSepaInstantAccountPayload(): SepaInstantAccountPayload | undefined; + setSepaInstantAccountPayload(value?: SepaInstantAccountPayload): CountryBasedPaymentAccountPayload; + hasSepaInstantAccountPayload(): boolean; + clearSepaInstantAccountPayload(): CountryBasedPaymentAccountPayload; + + getF2fAccountPayload(): F2FAccountPayload | undefined; + setF2fAccountPayload(value?: F2FAccountPayload): CountryBasedPaymentAccountPayload; + hasF2fAccountPayload(): boolean; + clearF2fAccountPayload(): CountryBasedPaymentAccountPayload; + + getMessageCase(): CountryBasedPaymentAccountPayload.MessageCase; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CountryBasedPaymentAccountPayload.AsObject; + static toObject(includeInstance: boolean, msg: CountryBasedPaymentAccountPayload): CountryBasedPaymentAccountPayload.AsObject; + static serializeBinaryToWriter(message: CountryBasedPaymentAccountPayload, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): CountryBasedPaymentAccountPayload; + static deserializeBinaryFromReader(message: CountryBasedPaymentAccountPayload, reader: jspb.BinaryReader): CountryBasedPaymentAccountPayload; +} + +export namespace CountryBasedPaymentAccountPayload { + export type AsObject = { + countrycode: string, + bankAccountPayload?: BankAccountPayload.AsObject, + cashDepositAccountPayload?: CashDepositAccountPayload.AsObject, + sepaAccountPayload?: SepaAccountPayload.AsObject, + westernUnionAccountPayload?: WesternUnionAccountPayload.AsObject, + sepaInstantAccountPayload?: SepaInstantAccountPayload.AsObject, + f2fAccountPayload?: F2FAccountPayload.AsObject, + } + + export enum MessageCase { + MESSAGE_NOT_SET = 0, + BANK_ACCOUNT_PAYLOAD = 2, + CASH_DEPOSIT_ACCOUNT_PAYLOAD = 3, + SEPA_ACCOUNT_PAYLOAD = 4, + WESTERN_UNION_ACCOUNT_PAYLOAD = 5, + SEPA_INSTANT_ACCOUNT_PAYLOAD = 6, + F2F_ACCOUNT_PAYLOAD = 7, + } +} + +export class BankAccountPayload extends jspb.Message { + getHolderName(): string; + setHolderName(value: string): BankAccountPayload; + + getBankName(): string; + setBankName(value: string): BankAccountPayload; + + getBankId(): string; + setBankId(value: string): BankAccountPayload; + + getBranchId(): string; + setBranchId(value: string): BankAccountPayload; + + getAccountNr(): string; + setAccountNr(value: string): BankAccountPayload; + + getAccountType(): string; + setAccountType(value: string): BankAccountPayload; + + getHolderTaxId(): string; + setHolderTaxId(value: string): BankAccountPayload; + + getEmail(): string; + setEmail(value: string): BankAccountPayload; + + getNationalBankAccountPayload(): NationalBankAccountPayload | undefined; + setNationalBankAccountPayload(value?: NationalBankAccountPayload): BankAccountPayload; + hasNationalBankAccountPayload(): boolean; + clearNationalBankAccountPayload(): BankAccountPayload; + + getSameBankAccontPayload(): SameBankAccountPayload | undefined; + setSameBankAccontPayload(value?: SameBankAccountPayload): BankAccountPayload; + hasSameBankAccontPayload(): boolean; + clearSameBankAccontPayload(): BankAccountPayload; + + getSpecificBanksAccountPayload(): SpecificBanksAccountPayload | undefined; + setSpecificBanksAccountPayload(value?: SpecificBanksAccountPayload): BankAccountPayload; + hasSpecificBanksAccountPayload(): boolean; + clearSpecificBanksAccountPayload(): BankAccountPayload; + + getNationalAccountId(): string; + setNationalAccountId(value: string): BankAccountPayload; + + getMessageCase(): BankAccountPayload.MessageCase; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): BankAccountPayload.AsObject; + static toObject(includeInstance: boolean, msg: BankAccountPayload): BankAccountPayload.AsObject; + static serializeBinaryToWriter(message: BankAccountPayload, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): BankAccountPayload; + static deserializeBinaryFromReader(message: BankAccountPayload, reader: jspb.BinaryReader): BankAccountPayload; +} + +export namespace BankAccountPayload { + export type AsObject = { + holderName: string, + bankName: string, + bankId: string, + branchId: string, + accountNr: string, + accountType: string, + holderTaxId: string, + email: string, + nationalBankAccountPayload?: NationalBankAccountPayload.AsObject, + sameBankAccontPayload?: SameBankAccountPayload.AsObject, + specificBanksAccountPayload?: SpecificBanksAccountPayload.AsObject, + nationalAccountId: string, + } + + export enum MessageCase { + MESSAGE_NOT_SET = 0, + NATIONAL_BANK_ACCOUNT_PAYLOAD = 9, + SAME_BANK_ACCONT_PAYLOAD = 10, + SPECIFIC_BANKS_ACCOUNT_PAYLOAD = 11, + } +} + +export class NationalBankAccountPayload extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): NationalBankAccountPayload.AsObject; + static toObject(includeInstance: boolean, msg: NationalBankAccountPayload): NationalBankAccountPayload.AsObject; + static serializeBinaryToWriter(message: NationalBankAccountPayload, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): NationalBankAccountPayload; + static deserializeBinaryFromReader(message: NationalBankAccountPayload, reader: jspb.BinaryReader): NationalBankAccountPayload; +} + +export namespace NationalBankAccountPayload { + export type AsObject = { + } +} + +export class SameBankAccountPayload extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): SameBankAccountPayload.AsObject; + static toObject(includeInstance: boolean, msg: SameBankAccountPayload): SameBankAccountPayload.AsObject; + static serializeBinaryToWriter(message: SameBankAccountPayload, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SameBankAccountPayload; + static deserializeBinaryFromReader(message: SameBankAccountPayload, reader: jspb.BinaryReader): SameBankAccountPayload; +} + +export namespace SameBankAccountPayload { + export type AsObject = { + } +} + +export class JapanBankAccountPayload extends jspb.Message { + getBankName(): string; + setBankName(value: string): JapanBankAccountPayload; + + getBankCode(): string; + setBankCode(value: string): JapanBankAccountPayload; + + getBankBranchName(): string; + setBankBranchName(value: string): JapanBankAccountPayload; + + getBankBranchCode(): string; + setBankBranchCode(value: string): JapanBankAccountPayload; + + getBankAccountType(): string; + setBankAccountType(value: string): JapanBankAccountPayload; + + getBankAccountName(): string; + setBankAccountName(value: string): JapanBankAccountPayload; + + getBankAccountNumber(): string; + setBankAccountNumber(value: string): JapanBankAccountPayload; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): JapanBankAccountPayload.AsObject; + static toObject(includeInstance: boolean, msg: JapanBankAccountPayload): JapanBankAccountPayload.AsObject; + static serializeBinaryToWriter(message: JapanBankAccountPayload, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): JapanBankAccountPayload; + static deserializeBinaryFromReader(message: JapanBankAccountPayload, reader: jspb.BinaryReader): JapanBankAccountPayload; +} + +export namespace JapanBankAccountPayload { + export type AsObject = { + bankName: string, + bankCode: string, + bankBranchName: string, + bankBranchCode: string, + bankAccountType: string, + bankAccountName: string, + bankAccountNumber: string, + } +} + +export class AustraliaPayidPayload extends jspb.Message { + getBankAccountName(): string; + setBankAccountName(value: string): AustraliaPayidPayload; + + getPayid(): string; + setPayid(value: string): AustraliaPayidPayload; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): AustraliaPayidPayload.AsObject; + static toObject(includeInstance: boolean, msg: AustraliaPayidPayload): AustraliaPayidPayload.AsObject; + static serializeBinaryToWriter(message: AustraliaPayidPayload, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): AustraliaPayidPayload; + static deserializeBinaryFromReader(message: AustraliaPayidPayload, reader: jspb.BinaryReader): AustraliaPayidPayload; +} + +export namespace AustraliaPayidPayload { + export type AsObject = { + bankAccountName: string, + payid: string, + } +} + +export class SpecificBanksAccountPayload extends jspb.Message { + getAcceptedBanksList(): Array; + setAcceptedBanksList(value: Array): SpecificBanksAccountPayload; + clearAcceptedBanksList(): SpecificBanksAccountPayload; + addAcceptedBanks(value: string, index?: number): SpecificBanksAccountPayload; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): SpecificBanksAccountPayload.AsObject; + static toObject(includeInstance: boolean, msg: SpecificBanksAccountPayload): SpecificBanksAccountPayload.AsObject; + static serializeBinaryToWriter(message: SpecificBanksAccountPayload, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SpecificBanksAccountPayload; + static deserializeBinaryFromReader(message: SpecificBanksAccountPayload, reader: jspb.BinaryReader): SpecificBanksAccountPayload; +} + +export namespace SpecificBanksAccountPayload { + export type AsObject = { + acceptedBanksList: Array, + } +} + +export class CashDepositAccountPayload extends jspb.Message { + getHolderName(): string; + setHolderName(value: string): CashDepositAccountPayload; + + getHolderEmail(): string; + setHolderEmail(value: string): CashDepositAccountPayload; + + getBankName(): string; + setBankName(value: string): CashDepositAccountPayload; + + getBankId(): string; + setBankId(value: string): CashDepositAccountPayload; + + getBranchId(): string; + setBranchId(value: string): CashDepositAccountPayload; + + getAccountNr(): string; + setAccountNr(value: string): CashDepositAccountPayload; + + getAccountType(): string; + setAccountType(value: string): CashDepositAccountPayload; + + getRequirements(): string; + setRequirements(value: string): CashDepositAccountPayload; + + getHolderTaxId(): string; + setHolderTaxId(value: string): CashDepositAccountPayload; + + getNationalAccountId(): string; + setNationalAccountId(value: string): CashDepositAccountPayload; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CashDepositAccountPayload.AsObject; + static toObject(includeInstance: boolean, msg: CashDepositAccountPayload): CashDepositAccountPayload.AsObject; + static serializeBinaryToWriter(message: CashDepositAccountPayload, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): CashDepositAccountPayload; + static deserializeBinaryFromReader(message: CashDepositAccountPayload, reader: jspb.BinaryReader): CashDepositAccountPayload; +} + +export namespace CashDepositAccountPayload { + export type AsObject = { + holderName: string, + holderEmail: string, + bankName: string, + bankId: string, + branchId: string, + accountNr: string, + accountType: string, + requirements: string, + holderTaxId: string, + nationalAccountId: string, + } +} + +export class MoneyGramAccountPayload extends jspb.Message { + getHolderName(): string; + setHolderName(value: string): MoneyGramAccountPayload; + + getCountryCode(): string; + setCountryCode(value: string): MoneyGramAccountPayload; + + getState(): string; + setState(value: string): MoneyGramAccountPayload; + + getEmail(): string; + setEmail(value: string): MoneyGramAccountPayload; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MoneyGramAccountPayload.AsObject; + static toObject(includeInstance: boolean, msg: MoneyGramAccountPayload): MoneyGramAccountPayload.AsObject; + static serializeBinaryToWriter(message: MoneyGramAccountPayload, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MoneyGramAccountPayload; + static deserializeBinaryFromReader(message: MoneyGramAccountPayload, reader: jspb.BinaryReader): MoneyGramAccountPayload; +} + +export namespace MoneyGramAccountPayload { + export type AsObject = { + holderName: string, + countryCode: string, + state: string, + email: string, + } +} + +export class HalCashAccountPayload extends jspb.Message { + getMobileNr(): string; + setMobileNr(value: string): HalCashAccountPayload; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): HalCashAccountPayload.AsObject; + static toObject(includeInstance: boolean, msg: HalCashAccountPayload): HalCashAccountPayload.AsObject; + static serializeBinaryToWriter(message: HalCashAccountPayload, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): HalCashAccountPayload; + static deserializeBinaryFromReader(message: HalCashAccountPayload, reader: jspb.BinaryReader): HalCashAccountPayload; +} + +export namespace HalCashAccountPayload { + export type AsObject = { + mobileNr: string, + } +} + +export class WesternUnionAccountPayload extends jspb.Message { + getHolderName(): string; + setHolderName(value: string): WesternUnionAccountPayload; + + getCity(): string; + setCity(value: string): WesternUnionAccountPayload; + + getState(): string; + setState(value: string): WesternUnionAccountPayload; + + getEmail(): string; + setEmail(value: string): WesternUnionAccountPayload; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): WesternUnionAccountPayload.AsObject; + static toObject(includeInstance: boolean, msg: WesternUnionAccountPayload): WesternUnionAccountPayload.AsObject; + static serializeBinaryToWriter(message: WesternUnionAccountPayload, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): WesternUnionAccountPayload; + static deserializeBinaryFromReader(message: WesternUnionAccountPayload, reader: jspb.BinaryReader): WesternUnionAccountPayload; +} + +export namespace WesternUnionAccountPayload { + export type AsObject = { + holderName: string, + city: string, + state: string, + email: string, + } +} + +export class AmazonGiftCardAccountPayload extends jspb.Message { + getEmailOrMobileNr(): string; + setEmailOrMobileNr(value: string): AmazonGiftCardAccountPayload; + + getCountryCode(): string; + setCountryCode(value: string): AmazonGiftCardAccountPayload; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): AmazonGiftCardAccountPayload.AsObject; + static toObject(includeInstance: boolean, msg: AmazonGiftCardAccountPayload): AmazonGiftCardAccountPayload.AsObject; + static serializeBinaryToWriter(message: AmazonGiftCardAccountPayload, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): AmazonGiftCardAccountPayload; + static deserializeBinaryFromReader(message: AmazonGiftCardAccountPayload, reader: jspb.BinaryReader): AmazonGiftCardAccountPayload; +} + +export namespace AmazonGiftCardAccountPayload { + export type AsObject = { + emailOrMobileNr: string, + countryCode: string, + } +} + +export class SepaAccountPayload extends jspb.Message { + getHolderName(): string; + setHolderName(value: string): SepaAccountPayload; + + getIban(): string; + setIban(value: string): SepaAccountPayload; + + getBic(): string; + setBic(value: string): SepaAccountPayload; + + getEmail(): string; + setEmail(value: string): SepaAccountPayload; + + getAcceptedCountryCodesList(): Array; + setAcceptedCountryCodesList(value: Array): SepaAccountPayload; + clearAcceptedCountryCodesList(): SepaAccountPayload; + addAcceptedCountryCodes(value: string, index?: number): SepaAccountPayload; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): SepaAccountPayload.AsObject; + static toObject(includeInstance: boolean, msg: SepaAccountPayload): SepaAccountPayload.AsObject; + static serializeBinaryToWriter(message: SepaAccountPayload, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SepaAccountPayload; + static deserializeBinaryFromReader(message: SepaAccountPayload, reader: jspb.BinaryReader): SepaAccountPayload; +} + +export namespace SepaAccountPayload { + export type AsObject = { + holderName: string, + iban: string, + bic: string, + email: string, + acceptedCountryCodesList: Array, + } +} + +export class SepaInstantAccountPayload extends jspb.Message { + getHolderName(): string; + setHolderName(value: string): SepaInstantAccountPayload; + + getIban(): string; + setIban(value: string): SepaInstantAccountPayload; + + getBic(): string; + setBic(value: string): SepaInstantAccountPayload; + + getAcceptedCountryCodesList(): Array; + setAcceptedCountryCodesList(value: Array): SepaInstantAccountPayload; + clearAcceptedCountryCodesList(): SepaInstantAccountPayload; + addAcceptedCountryCodes(value: string, index?: number): SepaInstantAccountPayload; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): SepaInstantAccountPayload.AsObject; + static toObject(includeInstance: boolean, msg: SepaInstantAccountPayload): SepaInstantAccountPayload.AsObject; + static serializeBinaryToWriter(message: SepaInstantAccountPayload, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SepaInstantAccountPayload; + static deserializeBinaryFromReader(message: SepaInstantAccountPayload, reader: jspb.BinaryReader): SepaInstantAccountPayload; +} + +export namespace SepaInstantAccountPayload { + export type AsObject = { + holderName: string, + iban: string, + bic: string, + acceptedCountryCodesList: Array, + } +} + +export class CryptoCurrencyAccountPayload extends jspb.Message { + getAddress(): string; + setAddress(value: string): CryptoCurrencyAccountPayload; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CryptoCurrencyAccountPayload.AsObject; + static toObject(includeInstance: boolean, msg: CryptoCurrencyAccountPayload): CryptoCurrencyAccountPayload.AsObject; + static serializeBinaryToWriter(message: CryptoCurrencyAccountPayload, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): CryptoCurrencyAccountPayload; + static deserializeBinaryFromReader(message: CryptoCurrencyAccountPayload, reader: jspb.BinaryReader): CryptoCurrencyAccountPayload; +} + +export namespace CryptoCurrencyAccountPayload { + export type AsObject = { + address: string, + } +} + +export class InstantCryptoCurrencyAccountPayload extends jspb.Message { + getAddress(): string; + setAddress(value: string): InstantCryptoCurrencyAccountPayload; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): InstantCryptoCurrencyAccountPayload.AsObject; + static toObject(includeInstance: boolean, msg: InstantCryptoCurrencyAccountPayload): InstantCryptoCurrencyAccountPayload.AsObject; + static serializeBinaryToWriter(message: InstantCryptoCurrencyAccountPayload, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): InstantCryptoCurrencyAccountPayload; + static deserializeBinaryFromReader(message: InstantCryptoCurrencyAccountPayload, reader: jspb.BinaryReader): InstantCryptoCurrencyAccountPayload; +} + +export namespace InstantCryptoCurrencyAccountPayload { + export type AsObject = { + address: string, + } +} + +export class FasterPaymentsAccountPayload extends jspb.Message { + getSortCode(): string; + setSortCode(value: string): FasterPaymentsAccountPayload; + + getAccountNr(): string; + setAccountNr(value: string): FasterPaymentsAccountPayload; + + getEmail(): string; + setEmail(value: string): FasterPaymentsAccountPayload; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): FasterPaymentsAccountPayload.AsObject; + static toObject(includeInstance: boolean, msg: FasterPaymentsAccountPayload): FasterPaymentsAccountPayload.AsObject; + static serializeBinaryToWriter(message: FasterPaymentsAccountPayload, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): FasterPaymentsAccountPayload; + static deserializeBinaryFromReader(message: FasterPaymentsAccountPayload, reader: jspb.BinaryReader): FasterPaymentsAccountPayload; +} + +export namespace FasterPaymentsAccountPayload { + export type AsObject = { + sortCode: string, + accountNr: string, + email: string, + } +} + +export class InteracETransferAccountPayload extends jspb.Message { + getEmail(): string; + setEmail(value: string): InteracETransferAccountPayload; + + getHolderName(): string; + setHolderName(value: string): InteracETransferAccountPayload; + + getQuestion(): string; + setQuestion(value: string): InteracETransferAccountPayload; + + getAnswer(): string; + setAnswer(value: string): InteracETransferAccountPayload; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): InteracETransferAccountPayload.AsObject; + static toObject(includeInstance: boolean, msg: InteracETransferAccountPayload): InteracETransferAccountPayload.AsObject; + static serializeBinaryToWriter(message: InteracETransferAccountPayload, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): InteracETransferAccountPayload; + static deserializeBinaryFromReader(message: InteracETransferAccountPayload, reader: jspb.BinaryReader): InteracETransferAccountPayload; +} + +export namespace InteracETransferAccountPayload { + export type AsObject = { + email: string, + holderName: string, + question: string, + answer: string, + } +} + +export class OKPayAccountPayload extends jspb.Message { + getAccountNr(): string; + setAccountNr(value: string): OKPayAccountPayload; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): OKPayAccountPayload.AsObject; + static toObject(includeInstance: boolean, msg: OKPayAccountPayload): OKPayAccountPayload.AsObject; + static serializeBinaryToWriter(message: OKPayAccountPayload, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): OKPayAccountPayload; + static deserializeBinaryFromReader(message: OKPayAccountPayload, reader: jspb.BinaryReader): OKPayAccountPayload; +} + +export namespace OKPayAccountPayload { + export type AsObject = { + accountNr: string, + } +} + +export class UpholdAccountPayload extends jspb.Message { + getAccountId(): string; + setAccountId(value: string): UpholdAccountPayload; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): UpholdAccountPayload.AsObject; + static toObject(includeInstance: boolean, msg: UpholdAccountPayload): UpholdAccountPayload.AsObject; + static serializeBinaryToWriter(message: UpholdAccountPayload, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): UpholdAccountPayload; + static deserializeBinaryFromReader(message: UpholdAccountPayload, reader: jspb.BinaryReader): UpholdAccountPayload; +} + +export namespace UpholdAccountPayload { + export type AsObject = { + accountId: string, + } +} + +export class CashAppAccountPayload extends jspb.Message { + getCashTag(): string; + setCashTag(value: string): CashAppAccountPayload; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CashAppAccountPayload.AsObject; + static toObject(includeInstance: boolean, msg: CashAppAccountPayload): CashAppAccountPayload.AsObject; + static serializeBinaryToWriter(message: CashAppAccountPayload, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): CashAppAccountPayload; + static deserializeBinaryFromReader(message: CashAppAccountPayload, reader: jspb.BinaryReader): CashAppAccountPayload; +} + +export namespace CashAppAccountPayload { + export type AsObject = { + cashTag: string, + } +} + +export class MoneyBeamAccountPayload extends jspb.Message { + getAccountId(): string; + setAccountId(value: string): MoneyBeamAccountPayload; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MoneyBeamAccountPayload.AsObject; + static toObject(includeInstance: boolean, msg: MoneyBeamAccountPayload): MoneyBeamAccountPayload.AsObject; + static serializeBinaryToWriter(message: MoneyBeamAccountPayload, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MoneyBeamAccountPayload; + static deserializeBinaryFromReader(message: MoneyBeamAccountPayload, reader: jspb.BinaryReader): MoneyBeamAccountPayload; +} + +export namespace MoneyBeamAccountPayload { + export type AsObject = { + accountId: string, + } +} + +export class VenmoAccountPayload extends jspb.Message { + getVenmoUserName(): string; + setVenmoUserName(value: string): VenmoAccountPayload; + + getHolderName(): string; + setHolderName(value: string): VenmoAccountPayload; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): VenmoAccountPayload.AsObject; + static toObject(includeInstance: boolean, msg: VenmoAccountPayload): VenmoAccountPayload.AsObject; + static serializeBinaryToWriter(message: VenmoAccountPayload, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): VenmoAccountPayload; + static deserializeBinaryFromReader(message: VenmoAccountPayload, reader: jspb.BinaryReader): VenmoAccountPayload; +} + +export namespace VenmoAccountPayload { + export type AsObject = { + venmoUserName: string, + holderName: string, + } +} + +export class PopmoneyAccountPayload extends jspb.Message { + getAccountId(): string; + setAccountId(value: string): PopmoneyAccountPayload; + + getHolderName(): string; + setHolderName(value: string): PopmoneyAccountPayload; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PopmoneyAccountPayload.AsObject; + static toObject(includeInstance: boolean, msg: PopmoneyAccountPayload): PopmoneyAccountPayload.AsObject; + static serializeBinaryToWriter(message: PopmoneyAccountPayload, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PopmoneyAccountPayload; + static deserializeBinaryFromReader(message: PopmoneyAccountPayload, reader: jspb.BinaryReader): PopmoneyAccountPayload; +} + +export namespace PopmoneyAccountPayload { + export type AsObject = { + accountId: string, + holderName: string, + } +} + +export class RevolutAccountPayload extends jspb.Message { + getAccountId(): string; + setAccountId(value: string): RevolutAccountPayload; + + getUserName(): string; + setUserName(value: string): RevolutAccountPayload; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): RevolutAccountPayload.AsObject; + static toObject(includeInstance: boolean, msg: RevolutAccountPayload): RevolutAccountPayload.AsObject; + static serializeBinaryToWriter(message: RevolutAccountPayload, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): RevolutAccountPayload; + static deserializeBinaryFromReader(message: RevolutAccountPayload, reader: jspb.BinaryReader): RevolutAccountPayload; +} + +export namespace RevolutAccountPayload { + export type AsObject = { + accountId: string, + userName: string, + } +} + +export class PerfectMoneyAccountPayload extends jspb.Message { + getAccountNr(): string; + setAccountNr(value: string): PerfectMoneyAccountPayload; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PerfectMoneyAccountPayload.AsObject; + static toObject(includeInstance: boolean, msg: PerfectMoneyAccountPayload): PerfectMoneyAccountPayload.AsObject; + static serializeBinaryToWriter(message: PerfectMoneyAccountPayload, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PerfectMoneyAccountPayload; + static deserializeBinaryFromReader(message: PerfectMoneyAccountPayload, reader: jspb.BinaryReader): PerfectMoneyAccountPayload; +} + +export namespace PerfectMoneyAccountPayload { + export type AsObject = { + accountNr: string, + } +} + +export class SwishAccountPayload extends jspb.Message { + getMobileNr(): string; + setMobileNr(value: string): SwishAccountPayload; + + getHolderName(): string; + setHolderName(value: string): SwishAccountPayload; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): SwishAccountPayload.AsObject; + static toObject(includeInstance: boolean, msg: SwishAccountPayload): SwishAccountPayload.AsObject; + static serializeBinaryToWriter(message: SwishAccountPayload, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SwishAccountPayload; + static deserializeBinaryFromReader(message: SwishAccountPayload, reader: jspb.BinaryReader): SwishAccountPayload; +} + +export namespace SwishAccountPayload { + export type AsObject = { + mobileNr: string, + holderName: string, + } +} + +export class USPostalMoneyOrderAccountPayload extends jspb.Message { + getPostalAddress(): string; + setPostalAddress(value: string): USPostalMoneyOrderAccountPayload; + + getHolderName(): string; + setHolderName(value: string): USPostalMoneyOrderAccountPayload; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): USPostalMoneyOrderAccountPayload.AsObject; + static toObject(includeInstance: boolean, msg: USPostalMoneyOrderAccountPayload): USPostalMoneyOrderAccountPayload.AsObject; + static serializeBinaryToWriter(message: USPostalMoneyOrderAccountPayload, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): USPostalMoneyOrderAccountPayload; + static deserializeBinaryFromReader(message: USPostalMoneyOrderAccountPayload, reader: jspb.BinaryReader): USPostalMoneyOrderAccountPayload; +} + +export namespace USPostalMoneyOrderAccountPayload { + export type AsObject = { + postalAddress: string, + holderName: string, + } +} + +export class F2FAccountPayload extends jspb.Message { + getContact(): string; + setContact(value: string): F2FAccountPayload; + + getCity(): string; + setCity(value: string): F2FAccountPayload; + + getExtraInfo(): string; + setExtraInfo(value: string): F2FAccountPayload; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): F2FAccountPayload.AsObject; + static toObject(includeInstance: boolean, msg: F2FAccountPayload): F2FAccountPayload.AsObject; + static serializeBinaryToWriter(message: F2FAccountPayload, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): F2FAccountPayload; + static deserializeBinaryFromReader(message: F2FAccountPayload, reader: jspb.BinaryReader): F2FAccountPayload; +} + +export namespace F2FAccountPayload { + export type AsObject = { + contact: string, + city: string, + extraInfo: string, + } +} + +export class CashByMailAccountPayload extends jspb.Message { + getPostalAddress(): string; + setPostalAddress(value: string): CashByMailAccountPayload; + + getContact(): string; + setContact(value: string): CashByMailAccountPayload; + + getExtraInfo(): string; + setExtraInfo(value: string): CashByMailAccountPayload; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CashByMailAccountPayload.AsObject; + static toObject(includeInstance: boolean, msg: CashByMailAccountPayload): CashByMailAccountPayload.AsObject; + static serializeBinaryToWriter(message: CashByMailAccountPayload, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): CashByMailAccountPayload; + static deserializeBinaryFromReader(message: CashByMailAccountPayload, reader: jspb.BinaryReader): CashByMailAccountPayload; +} + +export namespace CashByMailAccountPayload { + export type AsObject = { + postalAddress: string, + contact: string, + extraInfo: string, + } +} + +export class PromptPayAccountPayload extends jspb.Message { + getPromptPayId(): string; + setPromptPayId(value: string): PromptPayAccountPayload; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PromptPayAccountPayload.AsObject; + static toObject(includeInstance: boolean, msg: PromptPayAccountPayload): PromptPayAccountPayload.AsObject; + static serializeBinaryToWriter(message: PromptPayAccountPayload, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PromptPayAccountPayload; + static deserializeBinaryFromReader(message: PromptPayAccountPayload, reader: jspb.BinaryReader): PromptPayAccountPayload; +} + +export namespace PromptPayAccountPayload { + export type AsObject = { + promptPayId: string, + } +} + +export class AdvancedCashAccountPayload extends jspb.Message { + getAccountNr(): string; + setAccountNr(value: string): AdvancedCashAccountPayload; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): AdvancedCashAccountPayload.AsObject; + static toObject(includeInstance: boolean, msg: AdvancedCashAccountPayload): AdvancedCashAccountPayload.AsObject; + static serializeBinaryToWriter(message: AdvancedCashAccountPayload, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): AdvancedCashAccountPayload; + static deserializeBinaryFromReader(message: AdvancedCashAccountPayload, reader: jspb.BinaryReader): AdvancedCashAccountPayload; +} + +export namespace AdvancedCashAccountPayload { + export type AsObject = { + accountNr: string, + } +} + +export class TransferwiseAccountPayload extends jspb.Message { + getEmail(): string; + setEmail(value: string): TransferwiseAccountPayload; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): TransferwiseAccountPayload.AsObject; + static toObject(includeInstance: boolean, msg: TransferwiseAccountPayload): TransferwiseAccountPayload.AsObject; + static serializeBinaryToWriter(message: TransferwiseAccountPayload, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): TransferwiseAccountPayload; + static deserializeBinaryFromReader(message: TransferwiseAccountPayload, reader: jspb.BinaryReader): TransferwiseAccountPayload; +} + +export namespace TransferwiseAccountPayload { + export type AsObject = { + email: string, + } +} + +export class PersistableEnvelope extends jspb.Message { + getSequenceNumberMap(): SequenceNumberMap | undefined; + setSequenceNumberMap(value?: SequenceNumberMap): PersistableEnvelope; + hasSequenceNumberMap(): boolean; + clearSequenceNumberMap(): PersistableEnvelope; + + getPersistedEntryMap(): PersistedEntryMap | undefined; + setPersistedEntryMap(value?: PersistedEntryMap): PersistableEnvelope; + hasPersistedEntryMap(): boolean; + clearPersistedEntryMap(): PersistableEnvelope; + + getPeerList(): PeerList | undefined; + setPeerList(value?: PeerList): PersistableEnvelope; + hasPeerList(): boolean; + clearPeerList(): PersistableEnvelope; + + getAddressEntryList(): AddressEntryList | undefined; + setAddressEntryList(value?: AddressEntryList): PersistableEnvelope; + hasAddressEntryList(): boolean; + clearAddressEntryList(): PersistableEnvelope; + + getNavigationPath(): NavigationPath | undefined; + setNavigationPath(value?: NavigationPath): PersistableEnvelope; + hasNavigationPath(): boolean; + clearNavigationPath(): PersistableEnvelope; + + getTradableList(): TradableList | undefined; + setTradableList(value?: TradableList): PersistableEnvelope; + hasTradableList(): boolean; + clearTradableList(): PersistableEnvelope; + + getArbitrationDisputeList(): ArbitrationDisputeList | undefined; + setArbitrationDisputeList(value?: ArbitrationDisputeList): PersistableEnvelope; + hasArbitrationDisputeList(): boolean; + clearArbitrationDisputeList(): PersistableEnvelope; + + getPreferencesPayload(): PreferencesPayload | undefined; + setPreferencesPayload(value?: PreferencesPayload): PersistableEnvelope; + hasPreferencesPayload(): boolean; + clearPreferencesPayload(): PersistableEnvelope; + + getUserPayload(): UserPayload | undefined; + setUserPayload(value?: UserPayload): PersistableEnvelope; + hasUserPayload(): boolean; + clearUserPayload(): PersistableEnvelope; + + getPaymentAccountList(): PaymentAccountList | undefined; + setPaymentAccountList(value?: PaymentAccountList): PersistableEnvelope; + hasPaymentAccountList(): boolean; + clearPaymentAccountList(): PersistableEnvelope; + + getAccountAgeWitnessStore(): AccountAgeWitnessStore | undefined; + setAccountAgeWitnessStore(value?: AccountAgeWitnessStore): PersistableEnvelope; + hasAccountAgeWitnessStore(): boolean; + clearAccountAgeWitnessStore(): PersistableEnvelope; + + getTradeStatistics2Store(): TradeStatistics2Store | undefined; + setTradeStatistics2Store(value?: TradeStatistics2Store): PersistableEnvelope; + hasTradeStatistics2Store(): boolean; + clearTradeStatistics2Store(): PersistableEnvelope; + + getProposalStore(): ProposalStore | undefined; + setProposalStore(value?: ProposalStore): PersistableEnvelope; + hasProposalStore(): boolean; + clearProposalStore(): PersistableEnvelope; + + getTempProposalStore(): TempProposalStore | undefined; + setTempProposalStore(value?: TempProposalStore): PersistableEnvelope; + hasTempProposalStore(): boolean; + clearTempProposalStore(): PersistableEnvelope; + + getBlindVoteStore(): BlindVoteStore | undefined; + setBlindVoteStore(value?: BlindVoteStore): PersistableEnvelope; + hasBlindVoteStore(): boolean; + clearBlindVoteStore(): PersistableEnvelope; + + getMyProposalList(): MyProposalList | undefined; + setMyProposalList(value?: MyProposalList): PersistableEnvelope; + hasMyProposalList(): boolean; + clearMyProposalList(): PersistableEnvelope; + + getBallotList(): BallotList | undefined; + setBallotList(value?: BallotList): PersistableEnvelope; + hasBallotList(): boolean; + clearBallotList(): PersistableEnvelope; + + getMyVoteList(): MyVoteList | undefined; + setMyVoteList(value?: MyVoteList): PersistableEnvelope; + hasMyVoteList(): boolean; + clearMyVoteList(): PersistableEnvelope; + + getMyBlindVoteList(): MyBlindVoteList | undefined; + setMyBlindVoteList(value?: MyBlindVoteList): PersistableEnvelope; + hasMyBlindVoteList(): boolean; + clearMyBlindVoteList(): PersistableEnvelope; + + getDaoStateStore(): DaoStateStore | undefined; + setDaoStateStore(value?: DaoStateStore): PersistableEnvelope; + hasDaoStateStore(): boolean; + clearDaoStateStore(): PersistableEnvelope; + + getMyReputationList(): MyReputationList | undefined; + setMyReputationList(value?: MyReputationList): PersistableEnvelope; + hasMyReputationList(): boolean; + clearMyReputationList(): PersistableEnvelope; + + getMyProofOfBurnList(): MyProofOfBurnList | undefined; + setMyProofOfBurnList(value?: MyProofOfBurnList): PersistableEnvelope; + hasMyProofOfBurnList(): boolean; + clearMyProofOfBurnList(): PersistableEnvelope; + + getUnconfirmedBsqChangeOutputList(): UnconfirmedBsqChangeOutputList | undefined; + setUnconfirmedBsqChangeOutputList(value?: UnconfirmedBsqChangeOutputList): PersistableEnvelope; + hasUnconfirmedBsqChangeOutputList(): boolean; + clearUnconfirmedBsqChangeOutputList(): PersistableEnvelope; + + getSignedWitnessStore(): SignedWitnessStore | undefined; + setSignedWitnessStore(value?: SignedWitnessStore): PersistableEnvelope; + hasSignedWitnessStore(): boolean; + clearSignedWitnessStore(): PersistableEnvelope; + + getMediationDisputeList(): MediationDisputeList | undefined; + setMediationDisputeList(value?: MediationDisputeList): PersistableEnvelope; + hasMediationDisputeList(): boolean; + clearMediationDisputeList(): PersistableEnvelope; + + getRefundDisputeList(): RefundDisputeList | undefined; + setRefundDisputeList(value?: RefundDisputeList): PersistableEnvelope; + hasRefundDisputeList(): boolean; + clearRefundDisputeList(): PersistableEnvelope; + + getTradeStatistics3Store(): TradeStatistics3Store | undefined; + setTradeStatistics3Store(value?: TradeStatistics3Store): PersistableEnvelope; + hasTradeStatistics3Store(): boolean; + clearTradeStatistics3Store(): PersistableEnvelope; + + getMailboxMessageList(): MailboxMessageList | undefined; + setMailboxMessageList(value?: MailboxMessageList): PersistableEnvelope; + hasMailboxMessageList(): boolean; + clearMailboxMessageList(): PersistableEnvelope; + + getIgnoredMailboxMap(): IgnoredMailboxMap | undefined; + setIgnoredMailboxMap(value?: IgnoredMailboxMap): PersistableEnvelope; + hasIgnoredMailboxMap(): boolean; + clearIgnoredMailboxMap(): PersistableEnvelope; + + getRemovedPayloadsMap(): RemovedPayloadsMap | undefined; + setRemovedPayloadsMap(value?: RemovedPayloadsMap): PersistableEnvelope; + hasRemovedPayloadsMap(): boolean; + clearRemovedPayloadsMap(): PersistableEnvelope; + + getXmrAddressEntryList(): XmrAddressEntryList | undefined; + setXmrAddressEntryList(value?: XmrAddressEntryList): PersistableEnvelope; + hasXmrAddressEntryList(): boolean; + clearXmrAddressEntryList(): PersistableEnvelope; + + getSignedOfferList(): SignedOfferList | undefined; + setSignedOfferList(value?: SignedOfferList): PersistableEnvelope; + hasSignedOfferList(): boolean; + clearSignedOfferList(): PersistableEnvelope; + + getMessageCase(): PersistableEnvelope.MessageCase; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PersistableEnvelope.AsObject; + static toObject(includeInstance: boolean, msg: PersistableEnvelope): PersistableEnvelope.AsObject; + static serializeBinaryToWriter(message: PersistableEnvelope, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PersistableEnvelope; + static deserializeBinaryFromReader(message: PersistableEnvelope, reader: jspb.BinaryReader): PersistableEnvelope; +} + +export namespace PersistableEnvelope { + export type AsObject = { + sequenceNumberMap?: SequenceNumberMap.AsObject, + persistedEntryMap?: PersistedEntryMap.AsObject, + peerList?: PeerList.AsObject, + addressEntryList?: AddressEntryList.AsObject, + navigationPath?: NavigationPath.AsObject, + tradableList?: TradableList.AsObject, + arbitrationDisputeList?: ArbitrationDisputeList.AsObject, + preferencesPayload?: PreferencesPayload.AsObject, + userPayload?: UserPayload.AsObject, + paymentAccountList?: PaymentAccountList.AsObject, + accountAgeWitnessStore?: AccountAgeWitnessStore.AsObject, + tradeStatistics2Store?: TradeStatistics2Store.AsObject, + proposalStore?: ProposalStore.AsObject, + tempProposalStore?: TempProposalStore.AsObject, + blindVoteStore?: BlindVoteStore.AsObject, + myProposalList?: MyProposalList.AsObject, + ballotList?: BallotList.AsObject, + myVoteList?: MyVoteList.AsObject, + myBlindVoteList?: MyBlindVoteList.AsObject, + daoStateStore?: DaoStateStore.AsObject, + myReputationList?: MyReputationList.AsObject, + myProofOfBurnList?: MyProofOfBurnList.AsObject, + unconfirmedBsqChangeOutputList?: UnconfirmedBsqChangeOutputList.AsObject, + signedWitnessStore?: SignedWitnessStore.AsObject, + mediationDisputeList?: MediationDisputeList.AsObject, + refundDisputeList?: RefundDisputeList.AsObject, + tradeStatistics3Store?: TradeStatistics3Store.AsObject, + mailboxMessageList?: MailboxMessageList.AsObject, + ignoredMailboxMap?: IgnoredMailboxMap.AsObject, + removedPayloadsMap?: RemovedPayloadsMap.AsObject, + xmrAddressEntryList?: XmrAddressEntryList.AsObject, + signedOfferList?: SignedOfferList.AsObject, + } + + export enum MessageCase { + MESSAGE_NOT_SET = 0, + SEQUENCE_NUMBER_MAP = 1, + PERSISTED_ENTRY_MAP = 2, + PEER_LIST = 3, + ADDRESS_ENTRY_LIST = 4, + NAVIGATION_PATH = 5, + TRADABLE_LIST = 6, + ARBITRATION_DISPUTE_LIST = 8, + PREFERENCES_PAYLOAD = 9, + USER_PAYLOAD = 10, + PAYMENT_ACCOUNT_LIST = 11, + ACCOUNT_AGE_WITNESS_STORE = 13, + TRADE_STATISTICS2_STORE = 14, + PROPOSAL_STORE = 16, + TEMP_PROPOSAL_STORE = 17, + BLIND_VOTE_STORE = 18, + MY_PROPOSAL_LIST = 19, + BALLOT_LIST = 20, + MY_VOTE_LIST = 21, + MY_BLIND_VOTE_LIST = 22, + DAO_STATE_STORE = 24, + MY_REPUTATION_LIST = 25, + MY_PROOF_OF_BURN_LIST = 26, + UNCONFIRMED_BSQ_CHANGE_OUTPUT_LIST = 27, + SIGNED_WITNESS_STORE = 28, + MEDIATION_DISPUTE_LIST = 29, + REFUND_DISPUTE_LIST = 30, + TRADE_STATISTICS3_STORE = 31, + MAILBOX_MESSAGE_LIST = 32, + IGNORED_MAILBOX_MAP = 33, + REMOVED_PAYLOADS_MAP = 34, + XMR_ADDRESS_ENTRY_LIST = 1001, + SIGNED_OFFER_LIST = 1002, + } +} + +export class SequenceNumberMap extends jspb.Message { + getSequenceNumberEntriesList(): Array; + setSequenceNumberEntriesList(value: Array): SequenceNumberMap; + clearSequenceNumberEntriesList(): SequenceNumberMap; + addSequenceNumberEntries(value?: SequenceNumberEntry, index?: number): SequenceNumberEntry; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): SequenceNumberMap.AsObject; + static toObject(includeInstance: boolean, msg: SequenceNumberMap): SequenceNumberMap.AsObject; + static serializeBinaryToWriter(message: SequenceNumberMap, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SequenceNumberMap; + static deserializeBinaryFromReader(message: SequenceNumberMap, reader: jspb.BinaryReader): SequenceNumberMap; +} + +export namespace SequenceNumberMap { + export type AsObject = { + sequenceNumberEntriesList: Array, + } +} + +export class SequenceNumberEntry extends jspb.Message { + getBytes(): ByteArray | undefined; + setBytes(value?: ByteArray): SequenceNumberEntry; + hasBytes(): boolean; + clearBytes(): SequenceNumberEntry; + + getMapValue(): MapValue | undefined; + setMapValue(value?: MapValue): SequenceNumberEntry; + hasMapValue(): boolean; + clearMapValue(): SequenceNumberEntry; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): SequenceNumberEntry.AsObject; + static toObject(includeInstance: boolean, msg: SequenceNumberEntry): SequenceNumberEntry.AsObject; + static serializeBinaryToWriter(message: SequenceNumberEntry, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SequenceNumberEntry; + static deserializeBinaryFromReader(message: SequenceNumberEntry, reader: jspb.BinaryReader): SequenceNumberEntry; +} + +export namespace SequenceNumberEntry { + export type AsObject = { + bytes?: ByteArray.AsObject, + mapValue?: MapValue.AsObject, + } +} + +export class ByteArray extends jspb.Message { + getBytes(): Uint8Array | string; + getBytes_asU8(): Uint8Array; + getBytes_asB64(): string; + setBytes(value: Uint8Array | string): ByteArray; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ByteArray.AsObject; + static toObject(includeInstance: boolean, msg: ByteArray): ByteArray.AsObject; + static serializeBinaryToWriter(message: ByteArray, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ByteArray; + static deserializeBinaryFromReader(message: ByteArray, reader: jspb.BinaryReader): ByteArray; +} + +export namespace ByteArray { + export type AsObject = { + bytes: Uint8Array | string, + } +} + +export class MapValue extends jspb.Message { + getSequenceNr(): number; + setSequenceNr(value: number): MapValue; + + getTimeStamp(): number; + setTimeStamp(value: number): MapValue; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MapValue.AsObject; + static toObject(includeInstance: boolean, msg: MapValue): MapValue.AsObject; + static serializeBinaryToWriter(message: MapValue, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MapValue; + static deserializeBinaryFromReader(message: MapValue, reader: jspb.BinaryReader): MapValue; +} + +export namespace MapValue { + export type AsObject = { + sequenceNr: number, + timeStamp: number, + } +} + +export class PersistedEntryMap extends jspb.Message { + getPersistedEntryMapMap(): jspb.Map; + clearPersistedEntryMapMap(): PersistedEntryMap; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PersistedEntryMap.AsObject; + static toObject(includeInstance: boolean, msg: PersistedEntryMap): PersistedEntryMap.AsObject; + static serializeBinaryToWriter(message: PersistedEntryMap, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PersistedEntryMap; + static deserializeBinaryFromReader(message: PersistedEntryMap, reader: jspb.BinaryReader): PersistedEntryMap; +} + +export namespace PersistedEntryMap { + export type AsObject = { + persistedEntryMapMap: Array<[string, ProtectedStorageEntry.AsObject]>, + } +} + +export class AccountAgeWitnessStore extends jspb.Message { + getItemsList(): Array; + setItemsList(value: Array): AccountAgeWitnessStore; + clearItemsList(): AccountAgeWitnessStore; + addItems(value?: AccountAgeWitness, index?: number): AccountAgeWitness; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): AccountAgeWitnessStore.AsObject; + static toObject(includeInstance: boolean, msg: AccountAgeWitnessStore): AccountAgeWitnessStore.AsObject; + static serializeBinaryToWriter(message: AccountAgeWitnessStore, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): AccountAgeWitnessStore; + static deserializeBinaryFromReader(message: AccountAgeWitnessStore, reader: jspb.BinaryReader): AccountAgeWitnessStore; +} + +export namespace AccountAgeWitnessStore { + export type AsObject = { + itemsList: Array, + } +} + +export class SignedWitnessStore extends jspb.Message { + getItemsList(): Array; + setItemsList(value: Array): SignedWitnessStore; + clearItemsList(): SignedWitnessStore; + addItems(value?: SignedWitness, index?: number): SignedWitness; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): SignedWitnessStore.AsObject; + static toObject(includeInstance: boolean, msg: SignedWitnessStore): SignedWitnessStore.AsObject; + static serializeBinaryToWriter(message: SignedWitnessStore, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SignedWitnessStore; + static deserializeBinaryFromReader(message: SignedWitnessStore, reader: jspb.BinaryReader): SignedWitnessStore; +} + +export namespace SignedWitnessStore { + export type AsObject = { + itemsList: Array, + } +} + +export class TradeStatistics2Store extends jspb.Message { + getItemsList(): Array; + setItemsList(value: Array): TradeStatistics2Store; + clearItemsList(): TradeStatistics2Store; + addItems(value?: TradeStatistics2, index?: number): TradeStatistics2; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): TradeStatistics2Store.AsObject; + static toObject(includeInstance: boolean, msg: TradeStatistics2Store): TradeStatistics2Store.AsObject; + static serializeBinaryToWriter(message: TradeStatistics2Store, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): TradeStatistics2Store; + static deserializeBinaryFromReader(message: TradeStatistics2Store, reader: jspb.BinaryReader): TradeStatistics2Store; +} + +export namespace TradeStatistics2Store { + export type AsObject = { + itemsList: Array, + } +} + +export class TradeStatistics3Store extends jspb.Message { + getItemsList(): Array; + setItemsList(value: Array): TradeStatistics3Store; + clearItemsList(): TradeStatistics3Store; + addItems(value?: TradeStatistics3, index?: number): TradeStatistics3; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): TradeStatistics3Store.AsObject; + static toObject(includeInstance: boolean, msg: TradeStatistics3Store): TradeStatistics3Store.AsObject; + static serializeBinaryToWriter(message: TradeStatistics3Store, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): TradeStatistics3Store; + static deserializeBinaryFromReader(message: TradeStatistics3Store, reader: jspb.BinaryReader): TradeStatistics3Store; +} + +export namespace TradeStatistics3Store { + export type AsObject = { + itemsList: Array, + } +} + +export class PeerList extends jspb.Message { + getPeerList(): Array; + setPeerList(value: Array): PeerList; + clearPeerList(): PeerList; + addPeer(value?: Peer, index?: number): Peer; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PeerList.AsObject; + static toObject(includeInstance: boolean, msg: PeerList): PeerList.AsObject; + static serializeBinaryToWriter(message: PeerList, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PeerList; + static deserializeBinaryFromReader(message: PeerList, reader: jspb.BinaryReader): PeerList; +} + +export namespace PeerList { + export type AsObject = { + peerList: Array, + } +} + +export class AddressEntryList extends jspb.Message { + getAddressEntryList(): Array; + setAddressEntryList(value: Array): AddressEntryList; + clearAddressEntryList(): AddressEntryList; + addAddressEntry(value?: AddressEntry, index?: number): AddressEntry; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): AddressEntryList.AsObject; + static toObject(includeInstance: boolean, msg: AddressEntryList): AddressEntryList.AsObject; + static serializeBinaryToWriter(message: AddressEntryList, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): AddressEntryList; + static deserializeBinaryFromReader(message: AddressEntryList, reader: jspb.BinaryReader): AddressEntryList; +} + +export namespace AddressEntryList { + export type AsObject = { + addressEntryList: Array, + } +} + +export class AddressEntry extends jspb.Message { + getOfferId(): string; + setOfferId(value: string): AddressEntry; + + getContext(): AddressEntry.Context; + setContext(value: AddressEntry.Context): AddressEntry; + + getPubKey(): Uint8Array | string; + getPubKey_asU8(): Uint8Array; + getPubKey_asB64(): string; + setPubKey(value: Uint8Array | string): AddressEntry; + + getPubKeyHash(): Uint8Array | string; + getPubKeyHash_asU8(): Uint8Array; + getPubKeyHash_asB64(): string; + setPubKeyHash(value: Uint8Array | string): AddressEntry; + + getCoinLockedInMultiSig(): number; + setCoinLockedInMultiSig(value: number): AddressEntry; + + getSegwit(): boolean; + setSegwit(value: boolean): AddressEntry; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): AddressEntry.AsObject; + static toObject(includeInstance: boolean, msg: AddressEntry): AddressEntry.AsObject; + static serializeBinaryToWriter(message: AddressEntry, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): AddressEntry; + static deserializeBinaryFromReader(message: AddressEntry, reader: jspb.BinaryReader): AddressEntry; +} + +export namespace AddressEntry { + export type AsObject = { + offerId: string, + context: AddressEntry.Context, + pubKey: Uint8Array | string, + pubKeyHash: Uint8Array | string, + coinLockedInMultiSig: number, + segwit: boolean, + } + + export enum Context { + PB_ERROR = 0, + ARBITRATOR = 1, + AVAILABLE = 2, + OFFER_FUNDING = 3, + RESERVED_FOR_TRADE = 4, + MULTI_SIG = 5, + TRADE_PAYOUT = 6, + } +} + +export class XmrAddressEntryList extends jspb.Message { + getXmrAddressEntryList(): Array; + setXmrAddressEntryList(value: Array): XmrAddressEntryList; + clearXmrAddressEntryList(): XmrAddressEntryList; + addXmrAddressEntry(value?: XmrAddressEntry, index?: number): XmrAddressEntry; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): XmrAddressEntryList.AsObject; + static toObject(includeInstance: boolean, msg: XmrAddressEntryList): XmrAddressEntryList.AsObject; + static serializeBinaryToWriter(message: XmrAddressEntryList, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): XmrAddressEntryList; + static deserializeBinaryFromReader(message: XmrAddressEntryList, reader: jspb.BinaryReader): XmrAddressEntryList; +} + +export namespace XmrAddressEntryList { + export type AsObject = { + xmrAddressEntryList: Array, + } +} + +export class XmrAddressEntry extends jspb.Message { + getSubaddressIndex(): number; + setSubaddressIndex(value: number): XmrAddressEntry; + + getAddressString(): string; + setAddressString(value: string): XmrAddressEntry; + + getOfferId(): string; + setOfferId(value: string): XmrAddressEntry; + + getContext(): XmrAddressEntry.Context; + setContext(value: XmrAddressEntry.Context): XmrAddressEntry; + + getCoinLockedInMultiSig(): number; + setCoinLockedInMultiSig(value: number): XmrAddressEntry; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): XmrAddressEntry.AsObject; + static toObject(includeInstance: boolean, msg: XmrAddressEntry): XmrAddressEntry.AsObject; + static serializeBinaryToWriter(message: XmrAddressEntry, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): XmrAddressEntry; + static deserializeBinaryFromReader(message: XmrAddressEntry, reader: jspb.BinaryReader): XmrAddressEntry; +} + +export namespace XmrAddressEntry { + export type AsObject = { + subaddressIndex: number, + addressString: string, + offerId: string, + context: XmrAddressEntry.Context, + coinLockedInMultiSig: number, + } + + export enum Context { + PB_ERROR = 0, + ARBITRATOR = 1, + AVAILABLE = 2, + OFFER_FUNDING = 3, + RESERVED_FOR_TRADE = 4, + MULTI_SIG = 5, + TRADE_PAYOUT = 6, + } +} + +export class NavigationPath extends jspb.Message { + getPathList(): Array; + setPathList(value: Array): NavigationPath; + clearPathList(): NavigationPath; + addPath(value: string, index?: number): NavigationPath; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): NavigationPath.AsObject; + static toObject(includeInstance: boolean, msg: NavigationPath): NavigationPath.AsObject; + static serializeBinaryToWriter(message: NavigationPath, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): NavigationPath; + static deserializeBinaryFromReader(message: NavigationPath, reader: jspb.BinaryReader): NavigationPath; +} + +export namespace NavigationPath { + export type AsObject = { + pathList: Array, + } +} + +export class PaymentAccountList extends jspb.Message { + getPaymentAccountList(): Array; + setPaymentAccountList(value: Array): PaymentAccountList; + clearPaymentAccountList(): PaymentAccountList; + addPaymentAccount(value?: PaymentAccount, index?: number): PaymentAccount; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PaymentAccountList.AsObject; + static toObject(includeInstance: boolean, msg: PaymentAccountList): PaymentAccountList.AsObject; + static serializeBinaryToWriter(message: PaymentAccountList, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PaymentAccountList; + static deserializeBinaryFromReader(message: PaymentAccountList, reader: jspb.BinaryReader): PaymentAccountList; +} + +export namespace PaymentAccountList { + export type AsObject = { + paymentAccountList: Array, + } +} + +export class TradableList extends jspb.Message { + getTradableList(): Array; + setTradableList(value: Array): TradableList; + clearTradableList(): TradableList; + addTradable(value?: Tradable, index?: number): Tradable; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): TradableList.AsObject; + static toObject(includeInstance: boolean, msg: TradableList): TradableList.AsObject; + static serializeBinaryToWriter(message: TradableList, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): TradableList; + static deserializeBinaryFromReader(message: TradableList, reader: jspb.BinaryReader): TradableList; +} + +export namespace TradableList { + export type AsObject = { + tradableList: Array, + } +} + +export class Offer extends jspb.Message { + getOfferPayload(): OfferPayload | undefined; + setOfferPayload(value?: OfferPayload): Offer; + hasOfferPayload(): boolean; + clearOfferPayload(): Offer; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Offer.AsObject; + static toObject(includeInstance: boolean, msg: Offer): Offer.AsObject; + static serializeBinaryToWriter(message: Offer, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Offer; + static deserializeBinaryFromReader(message: Offer, reader: jspb.BinaryReader): Offer; +} + +export namespace Offer { + export type AsObject = { + offerPayload?: OfferPayload.AsObject, + } + + export enum State { + PB_ERROR = 0, + UNKNOWN = 1, + OFFER_FEE_PAID = 2, + AVAILABLE = 3, + NOT_AVAILABLE = 4, + REMOVED = 5, + MAKER_OFFLINE = 6, + } +} + +export class SignedOfferList extends jspb.Message { + getSignedOfferList(): Array; + setSignedOfferList(value: Array): SignedOfferList; + clearSignedOfferList(): SignedOfferList; + addSignedOffer(value?: SignedOffer, index?: number): SignedOffer; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): SignedOfferList.AsObject; + static toObject(includeInstance: boolean, msg: SignedOfferList): SignedOfferList.AsObject; + static serializeBinaryToWriter(message: SignedOfferList, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SignedOfferList; + static deserializeBinaryFromReader(message: SignedOfferList, reader: jspb.BinaryReader): SignedOfferList; +} + +export namespace SignedOfferList { + export type AsObject = { + signedOfferList: Array, + } +} + +export class SignedOffer extends jspb.Message { + getOfferId(): string; + setOfferId(value: string): SignedOffer; + + getReserveTxHash(): string; + setReserveTxHash(value: string): SignedOffer; + + getReserveTxHex(): string; + setReserveTxHex(value: string): SignedOffer; + + getArbitratorSignature(): string; + setArbitratorSignature(value: string): SignedOffer; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): SignedOffer.AsObject; + static toObject(includeInstance: boolean, msg: SignedOffer): SignedOffer.AsObject; + static serializeBinaryToWriter(message: SignedOffer, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SignedOffer; + static deserializeBinaryFromReader(message: SignedOffer, reader: jspb.BinaryReader): SignedOffer; +} + +export namespace SignedOffer { + export type AsObject = { + offerId: string, + reserveTxHash: string, + reserveTxHex: string, + arbitratorSignature: string, + } +} + +export class OpenOffer extends jspb.Message { + getOffer(): Offer | undefined; + setOffer(value?: Offer): OpenOffer; + hasOffer(): boolean; + clearOffer(): OpenOffer; + + getState(): OpenOffer.State; + setState(value: OpenOffer.State): OpenOffer; + + getArbitratorNodeAddress(): NodeAddress | undefined; + setArbitratorNodeAddress(value?: NodeAddress): OpenOffer; + hasArbitratorNodeAddress(): boolean; + clearArbitratorNodeAddress(): OpenOffer; + + getTriggerPrice(): number; + setTriggerPrice(value: number): OpenOffer; + + getFrozenKeyImagesList(): Array; + setFrozenKeyImagesList(value: Array): OpenOffer; + clearFrozenKeyImagesList(): OpenOffer; + addFrozenKeyImages(value: string, index?: number): OpenOffer; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): OpenOffer.AsObject; + static toObject(includeInstance: boolean, msg: OpenOffer): OpenOffer.AsObject; + static serializeBinaryToWriter(message: OpenOffer, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): OpenOffer; + static deserializeBinaryFromReader(message: OpenOffer, reader: jspb.BinaryReader): OpenOffer; +} + +export namespace OpenOffer { + export type AsObject = { + offer?: Offer.AsObject, + state: OpenOffer.State, + arbitratorNodeAddress?: NodeAddress.AsObject, + triggerPrice: number, + frozenKeyImagesList: Array, + } + + export enum State { + PB_ERROR = 0, + AVAILABLE = 1, + RESERVED = 2, + CLOSED = 3, + CANCELED = 4, + DEACTIVATED = 5, + } +} + +export class Tradable extends jspb.Message { + getOpenOffer(): OpenOffer | undefined; + setOpenOffer(value?: OpenOffer): Tradable; + hasOpenOffer(): boolean; + clearOpenOffer(): Tradable; + + getBuyerAsMakerTrade(): BuyerAsMakerTrade | undefined; + setBuyerAsMakerTrade(value?: BuyerAsMakerTrade): Tradable; + hasBuyerAsMakerTrade(): boolean; + clearBuyerAsMakerTrade(): Tradable; + + getBuyerAsTakerTrade(): BuyerAsTakerTrade | undefined; + setBuyerAsTakerTrade(value?: BuyerAsTakerTrade): Tradable; + hasBuyerAsTakerTrade(): boolean; + clearBuyerAsTakerTrade(): Tradable; + + getSellerAsMakerTrade(): SellerAsMakerTrade | undefined; + setSellerAsMakerTrade(value?: SellerAsMakerTrade): Tradable; + hasSellerAsMakerTrade(): boolean; + clearSellerAsMakerTrade(): Tradable; + + getSellerAsTakerTrade(): SellerAsTakerTrade | undefined; + setSellerAsTakerTrade(value?: SellerAsTakerTrade): Tradable; + hasSellerAsTakerTrade(): boolean; + clearSellerAsTakerTrade(): Tradable; + + getArbitratorTrade(): ArbitratorTrade | undefined; + setArbitratorTrade(value?: ArbitratorTrade): Tradable; + hasArbitratorTrade(): boolean; + clearArbitratorTrade(): Tradable; + + getSignedOffer(): SignedOffer | undefined; + setSignedOffer(value?: SignedOffer): Tradable; + hasSignedOffer(): boolean; + clearSignedOffer(): Tradable; + + getMessageCase(): Tradable.MessageCase; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Tradable.AsObject; + static toObject(includeInstance: boolean, msg: Tradable): Tradable.AsObject; + static serializeBinaryToWriter(message: Tradable, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Tradable; + static deserializeBinaryFromReader(message: Tradable, reader: jspb.BinaryReader): Tradable; +} + +export namespace Tradable { + export type AsObject = { + openOffer?: OpenOffer.AsObject, + buyerAsMakerTrade?: BuyerAsMakerTrade.AsObject, + buyerAsTakerTrade?: BuyerAsTakerTrade.AsObject, + sellerAsMakerTrade?: SellerAsMakerTrade.AsObject, + sellerAsTakerTrade?: SellerAsTakerTrade.AsObject, + arbitratorTrade?: ArbitratorTrade.AsObject, + signedOffer?: SignedOffer.AsObject, + } + + export enum MessageCase { + MESSAGE_NOT_SET = 0, + OPEN_OFFER = 1, + BUYER_AS_MAKER_TRADE = 2, + BUYER_AS_TAKER_TRADE = 3, + SELLER_AS_MAKER_TRADE = 4, + SELLER_AS_TAKER_TRADE = 5, + ARBITRATOR_TRADE = 6, + SIGNED_OFFER = 1001, + } +} + +export class Trade extends jspb.Message { + getOffer(): Offer | undefined; + setOffer(value?: Offer): Trade; + hasOffer(): boolean; + clearOffer(): Trade; + + getProcessModel(): ProcessModel | undefined; + setProcessModel(value?: ProcessModel): Trade; + hasProcessModel(): boolean; + clearProcessModel(): Trade; + + getTakerFeeTxId(): string; + setTakerFeeTxId(value: string): Trade; + + getPayoutTxId(): string; + setPayoutTxId(value: string): Trade; + + getTradeAmountAsLong(): number; + setTradeAmountAsLong(value: number): Trade; + + getTxFeeAsLong(): number; + setTxFeeAsLong(value: number): Trade; + + getTakerFeeAsLong(): number; + setTakerFeeAsLong(value: number): Trade; + + getTakeOfferDate(): number; + setTakeOfferDate(value: number): Trade; + + getIsCurrencyForTakerFeeBtc(): boolean; + setIsCurrencyForTakerFeeBtc(value: boolean): Trade; + + getTradePrice(): number; + setTradePrice(value: number): Trade; + + getState(): Trade.State; + setState(value: Trade.State): Trade; + + getDisputeState(): Trade.DisputeState; + setDisputeState(value: Trade.DisputeState): Trade; + + getTradePeriodState(): Trade.TradePeriodState; + setTradePeriodState(value: Trade.TradePeriodState): Trade; + + getContract(): Contract | undefined; + setContract(value?: Contract): Trade; + hasContract(): boolean; + clearContract(): Trade; + + getContractAsJson(): string; + setContractAsJson(value: string): Trade; + + getContractHash(): Uint8Array | string; + getContractHash_asU8(): Uint8Array; + getContractHash_asB64(): string; + setContractHash(value: Uint8Array | string): Trade; + + getArbitratorNodeAddress(): NodeAddress | undefined; + setArbitratorNodeAddress(value?: NodeAddress): Trade; + hasArbitratorNodeAddress(): boolean; + clearArbitratorNodeAddress(): Trade; + + getMediatorNodeAddress(): NodeAddress | undefined; + setMediatorNodeAddress(value?: NodeAddress): Trade; + hasMediatorNodeAddress(): boolean; + clearMediatorNodeAddress(): Trade; + + getArbitratorBtcPubKey(): Uint8Array | string; + getArbitratorBtcPubKey_asU8(): Uint8Array; + getArbitratorBtcPubKey_asB64(): string; + setArbitratorBtcPubKey(value: Uint8Array | string): Trade; + + getTakerPaymentAccountId(): string; + setTakerPaymentAccountId(value: string): Trade; + + getErrorMessage(): string; + setErrorMessage(value: string): Trade; + + getArbitratorPubKeyRing(): PubKeyRing | undefined; + setArbitratorPubKeyRing(value?: PubKeyRing): Trade; + hasArbitratorPubKeyRing(): boolean; + clearArbitratorPubKeyRing(): Trade; + + getMediatorPubKeyRing(): PubKeyRing | undefined; + setMediatorPubKeyRing(value?: PubKeyRing): Trade; + hasMediatorPubKeyRing(): boolean; + clearMediatorPubKeyRing(): Trade; + + getCounterCurrencyTxId(): string; + setCounterCurrencyTxId(value: string): Trade; + + getChatMessageList(): Array; + setChatMessageList(value: Array): Trade; + clearChatMessageList(): Trade; + addChatMessage(value?: ChatMessage, index?: number): ChatMessage; + + getMediationResultState(): MediationResultState; + setMediationResultState(value: MediationResultState): Trade; + + getLockTime(): number; + setLockTime(value: number): Trade; + + getDelayedPayoutTxBytes(): Uint8Array | string; + getDelayedPayoutTxBytes_asU8(): Uint8Array; + getDelayedPayoutTxBytes_asB64(): string; + setDelayedPayoutTxBytes(value: Uint8Array | string): Trade; + + getRefundAgentNodeAddress(): NodeAddress | undefined; + setRefundAgentNodeAddress(value?: NodeAddress): Trade; + hasRefundAgentNodeAddress(): boolean; + clearRefundAgentNodeAddress(): Trade; + + getRefundAgentPubKeyRing(): PubKeyRing | undefined; + setRefundAgentPubKeyRing(value?: PubKeyRing): Trade; + hasRefundAgentPubKeyRing(): boolean; + clearRefundAgentPubKeyRing(): Trade; + + getRefundResultState(): RefundResultState; + setRefundResultState(value: RefundResultState): Trade; + + getLastRefreshRequestDate(): number; + setLastRefreshRequestDate(value: number): Trade; + + getCounterCurrencyExtraData(): string; + setCounterCurrencyExtraData(value: string): Trade; + + getAssetTxProofResult(): string; + setAssetTxProofResult(value: string): Trade; + + getUid(): string; + setUid(value: string): Trade; + + getMakerNodeAddress(): NodeAddress | undefined; + setMakerNodeAddress(value?: NodeAddress): Trade; + hasMakerNodeAddress(): boolean; + clearMakerNodeAddress(): Trade; + + getTakerNodeAddress(): NodeAddress | undefined; + setTakerNodeAddress(value?: NodeAddress): Trade; + hasTakerNodeAddress(): boolean; + clearTakerNodeAddress(): Trade; + + getTakerPubKeyRing(): PubKeyRing | undefined; + setTakerPubKeyRing(value?: PubKeyRing): Trade; + hasTakerPubKeyRing(): boolean; + clearTakerPubKeyRing(): Trade; + + getMakerPubKeyRing(): PubKeyRing | undefined; + setMakerPubKeyRing(value?: PubKeyRing): Trade; + hasMakerPubKeyRing(): boolean; + clearMakerPubKeyRing(): Trade; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Trade.AsObject; + static toObject(includeInstance: boolean, msg: Trade): Trade.AsObject; + static serializeBinaryToWriter(message: Trade, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Trade; + static deserializeBinaryFromReader(message: Trade, reader: jspb.BinaryReader): Trade; +} + +export namespace Trade { + export type AsObject = { + offer?: Offer.AsObject, + processModel?: ProcessModel.AsObject, + takerFeeTxId: string, + payoutTxId: string, + tradeAmountAsLong: number, + txFeeAsLong: number, + takerFeeAsLong: number, + takeOfferDate: number, + isCurrencyForTakerFeeBtc: boolean, + tradePrice: number, + state: Trade.State, + disputeState: Trade.DisputeState, + tradePeriodState: Trade.TradePeriodState, + contract?: Contract.AsObject, + contractAsJson: string, + contractHash: Uint8Array | string, + arbitratorNodeAddress?: NodeAddress.AsObject, + mediatorNodeAddress?: NodeAddress.AsObject, + arbitratorBtcPubKey: Uint8Array | string, + takerPaymentAccountId: string, + errorMessage: string, + arbitratorPubKeyRing?: PubKeyRing.AsObject, + mediatorPubKeyRing?: PubKeyRing.AsObject, + counterCurrencyTxId: string, + chatMessageList: Array, + mediationResultState: MediationResultState, + lockTime: number, + delayedPayoutTxBytes: Uint8Array | string, + refundAgentNodeAddress?: NodeAddress.AsObject, + refundAgentPubKeyRing?: PubKeyRing.AsObject, + refundResultState: RefundResultState, + lastRefreshRequestDate: number, + counterCurrencyExtraData: string, + assetTxProofResult: string, + uid: string, + makerNodeAddress?: NodeAddress.AsObject, + takerNodeAddress?: NodeAddress.AsObject, + takerPubKeyRing?: PubKeyRing.AsObject, + makerPubKeyRing?: PubKeyRing.AsObject, + } + + export enum State { + PB_ERROR_STATE = 0, + PREPARATION = 1, + TAKER_PUBLISHED_TAKER_FEE_TX = 2, + MAKER_SENT_PUBLISH_DEPOSIT_TX_REQUEST = 3, + MAKER_SAW_ARRIVED_PUBLISH_DEPOSIT_TX_REQUEST = 4, + MAKER_STORED_IN_MAILBOX_PUBLISH_DEPOSIT_TX_REQUEST = 5, + MAKER_SEND_FAILED_PUBLISH_DEPOSIT_TX_REQUEST = 6, + TAKER_RECEIVED_PUBLISH_DEPOSIT_TX_REQUEST = 7, + TAKER_PUBLISHED_DEPOSIT_TX = 8, + TAKER_SAW_DEPOSIT_TX_IN_NETWORK = 9, + TAKER_SENT_DEPOSIT_TX_PUBLISHED_MSG = 10, + TAKER_SAW_ARRIVED_DEPOSIT_TX_PUBLISHED_MSG = 11, + TAKER_STORED_IN_MAILBOX_DEPOSIT_TX_PUBLISHED_MSG = 12, + TAKER_SEND_FAILED_DEPOSIT_TX_PUBLISHED_MSG = 13, + MAKER_RECEIVED_DEPOSIT_TX_PUBLISHED_MSG = 14, + MAKER_SAW_DEPOSIT_TX_IN_NETWORK = 15, + DEPOSIT_CONFIRMED_IN_BLOCK_CHAIN = 16, + BUYER_CONFIRMED_IN_UI_FIAT_PAYMENT_INITIATED = 17, + BUYER_SENT_FIAT_PAYMENT_INITIATED_MSG = 18, + BUYER_SAW_ARRIVED_FIAT_PAYMENT_INITIATED_MSG = 19, + BUYER_STORED_IN_MAILBOX_FIAT_PAYMENT_INITIATED_MSG = 20, + BUYER_SEND_FAILED_FIAT_PAYMENT_INITIATED_MSG = 21, + SELLER_RECEIVED_FIAT_PAYMENT_INITIATED_MSG = 22, + SELLER_CONFIRMED_IN_UI_FIAT_PAYMENT_RECEIPT = 23, + SELLER_PUBLISHED_PAYOUT_TX = 24, + SELLER_SENT_PAYOUT_TX_PUBLISHED_MSG = 25, + SELLER_SAW_ARRIVED_PAYOUT_TX_PUBLISHED_MSG = 26, + SELLER_STORED_IN_MAILBOX_PAYOUT_TX_PUBLISHED_MSG = 27, + SELLER_SEND_FAILED_PAYOUT_TX_PUBLISHED_MSG = 28, + BUYER_RECEIVED_PAYOUT_TX_PUBLISHED_MSG = 29, + BUYER_SAW_PAYOUT_TX_IN_NETWORK = 30, + WITHDRAW_COMPLETED = 31, + } + + export enum Phase { + PB_ERROR_PHASE = 0, + INIT = 1, + TAKER_FEE_PUBLISHED = 2, + DEPOSIT_PUBLISHED = 3, + DEPOSIT_CONFIRMED = 4, + FIAT_SENT = 5, + FIAT_RECEIVED = 6, + PAYOUT_PUBLISHED = 7, + WITHDRAWN = 8, + } + + export enum DisputeState { + PB_ERROR_DISPUTE_STATE = 0, + NO_DISPUTE = 1, + DISPUTE_REQUESTED = 2, + DISPUTE_STARTED_BY_PEER = 3, + DISPUTE_CLOSED = 4, + MEDIATION_REQUESTED = 5, + MEDIATION_STARTED_BY_PEER = 6, + MEDIATION_CLOSED = 7, + REFUND_REQUESTED = 8, + REFUND_REQUEST_STARTED_BY_PEER = 9, + REFUND_REQUEST_CLOSED = 10, + } + + export enum TradePeriodState { + PB_ERROR_TRADE_PERIOD_STATE = 0, + FIRST_HALF = 1, + SECOND_HALF = 2, + TRADE_PERIOD_OVER = 3, + } +} + +export class BuyerAsMakerTrade extends jspb.Message { + getTrade(): Trade | undefined; + setTrade(value?: Trade): BuyerAsMakerTrade; + hasTrade(): boolean; + clearTrade(): BuyerAsMakerTrade; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): BuyerAsMakerTrade.AsObject; + static toObject(includeInstance: boolean, msg: BuyerAsMakerTrade): BuyerAsMakerTrade.AsObject; + static serializeBinaryToWriter(message: BuyerAsMakerTrade, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): BuyerAsMakerTrade; + static deserializeBinaryFromReader(message: BuyerAsMakerTrade, reader: jspb.BinaryReader): BuyerAsMakerTrade; +} + +export namespace BuyerAsMakerTrade { + export type AsObject = { + trade?: Trade.AsObject, + } +} + +export class BuyerAsTakerTrade extends jspb.Message { + getTrade(): Trade | undefined; + setTrade(value?: Trade): BuyerAsTakerTrade; + hasTrade(): boolean; + clearTrade(): BuyerAsTakerTrade; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): BuyerAsTakerTrade.AsObject; + static toObject(includeInstance: boolean, msg: BuyerAsTakerTrade): BuyerAsTakerTrade.AsObject; + static serializeBinaryToWriter(message: BuyerAsTakerTrade, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): BuyerAsTakerTrade; + static deserializeBinaryFromReader(message: BuyerAsTakerTrade, reader: jspb.BinaryReader): BuyerAsTakerTrade; +} + +export namespace BuyerAsTakerTrade { + export type AsObject = { + trade?: Trade.AsObject, + } +} + +export class SellerAsMakerTrade extends jspb.Message { + getTrade(): Trade | undefined; + setTrade(value?: Trade): SellerAsMakerTrade; + hasTrade(): boolean; + clearTrade(): SellerAsMakerTrade; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): SellerAsMakerTrade.AsObject; + static toObject(includeInstance: boolean, msg: SellerAsMakerTrade): SellerAsMakerTrade.AsObject; + static serializeBinaryToWriter(message: SellerAsMakerTrade, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SellerAsMakerTrade; + static deserializeBinaryFromReader(message: SellerAsMakerTrade, reader: jspb.BinaryReader): SellerAsMakerTrade; +} + +export namespace SellerAsMakerTrade { + export type AsObject = { + trade?: Trade.AsObject, + } +} + +export class SellerAsTakerTrade extends jspb.Message { + getTrade(): Trade | undefined; + setTrade(value?: Trade): SellerAsTakerTrade; + hasTrade(): boolean; + clearTrade(): SellerAsTakerTrade; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): SellerAsTakerTrade.AsObject; + static toObject(includeInstance: boolean, msg: SellerAsTakerTrade): SellerAsTakerTrade.AsObject; + static serializeBinaryToWriter(message: SellerAsTakerTrade, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SellerAsTakerTrade; + static deserializeBinaryFromReader(message: SellerAsTakerTrade, reader: jspb.BinaryReader): SellerAsTakerTrade; +} + +export namespace SellerAsTakerTrade { + export type AsObject = { + trade?: Trade.AsObject, + } +} + +export class ArbitratorTrade extends jspb.Message { + getTrade(): Trade | undefined; + setTrade(value?: Trade): ArbitratorTrade; + hasTrade(): boolean; + clearTrade(): ArbitratorTrade; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ArbitratorTrade.AsObject; + static toObject(includeInstance: boolean, msg: ArbitratorTrade): ArbitratorTrade.AsObject; + static serializeBinaryToWriter(message: ArbitratorTrade, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ArbitratorTrade; + static deserializeBinaryFromReader(message: ArbitratorTrade, reader: jspb.BinaryReader): ArbitratorTrade; +} + +export namespace ArbitratorTrade { + export type AsObject = { + trade?: Trade.AsObject, + } +} + +export class ProcessModel extends jspb.Message { + getOfferId(): string; + setOfferId(value: string): ProcessModel; + + getAccountId(): string; + setAccountId(value: string): ProcessModel; + + getPubKeyRing(): PubKeyRing | undefined; + setPubKeyRing(value?: PubKeyRing): ProcessModel; + hasPubKeyRing(): boolean; + clearPubKeyRing(): ProcessModel; + + getTakeOfferFeeTxId(): string; + setTakeOfferFeeTxId(value: string): ProcessModel; + + getPayoutTxSignature(): Uint8Array | string; + getPayoutTxSignature_asU8(): Uint8Array; + getPayoutTxSignature_asB64(): string; + setPayoutTxSignature(value: Uint8Array | string): ProcessModel; + + getRawTransactionInputsList(): Array; + setRawTransactionInputsList(value: Array): ProcessModel; + clearRawTransactionInputsList(): ProcessModel; + addRawTransactionInputs(value?: RawTransactionInput, index?: number): RawTransactionInput; + + getChangeOutputValue(): number; + setChangeOutputValue(value: number): ProcessModel; + + getChangeOutputAddress(): string; + setChangeOutputAddress(value: string): ProcessModel; + + getUseSavingsWallet(): boolean; + setUseSavingsWallet(value: boolean): ProcessModel; + + getFundsNeededForTradeAsLong(): number; + setFundsNeededForTradeAsLong(value: number): ProcessModel; + + getMyMultiSigPubKey(): Uint8Array | string; + getMyMultiSigPubKey_asU8(): Uint8Array; + getMyMultiSigPubKey_asB64(): string; + setMyMultiSigPubKey(value: Uint8Array | string): ProcessModel; + + getPaymentStartedMessageState(): string; + setPaymentStartedMessageState(value: string): ProcessModel; + + getMediatedPayoutTxSignature(): Uint8Array | string; + getMediatedPayoutTxSignature_asU8(): Uint8Array; + getMediatedPayoutTxSignature_asB64(): string; + setMediatedPayoutTxSignature(value: Uint8Array | string): ProcessModel; + + getBuyerPayoutAmountFromMediation(): number; + setBuyerPayoutAmountFromMediation(value: number): ProcessModel; + + getSellerPayoutAmountFromMediation(): number; + setSellerPayoutAmountFromMediation(value: number): ProcessModel; + + getMakerSignature(): string; + setMakerSignature(value: string): ProcessModel; + + getArbitratorNodeAddress(): NodeAddress | undefined; + setArbitratorNodeAddress(value?: NodeAddress): ProcessModel; + hasArbitratorNodeAddress(): boolean; + clearArbitratorNodeAddress(): ProcessModel; + + getMaker(): TradingPeer | undefined; + setMaker(value?: TradingPeer): ProcessModel; + hasMaker(): boolean; + clearMaker(): ProcessModel; + + getTaker(): TradingPeer | undefined; + setTaker(value?: TradingPeer): ProcessModel; + hasTaker(): boolean; + clearTaker(): ProcessModel; + + getArbitrator(): TradingPeer | undefined; + setArbitrator(value?: TradingPeer): ProcessModel; + hasArbitrator(): boolean; + clearArbitrator(): ProcessModel; + + getTempTradingPeerNodeAddress(): NodeAddress | undefined; + setTempTradingPeerNodeAddress(value?: NodeAddress): ProcessModel; + hasTempTradingPeerNodeAddress(): boolean; + clearTempTradingPeerNodeAddress(): ProcessModel; + + getReserveTxHash(): string; + setReserveTxHash(value: string): ProcessModel; + + getFrozenKeyImagesList(): Array; + setFrozenKeyImagesList(value: Array): ProcessModel; + clearFrozenKeyImagesList(): ProcessModel; + addFrozenKeyImages(value: string, index?: number): ProcessModel; + + getPreparedMultisigHex(): string; + setPreparedMultisigHex(value: string): ProcessModel; + + getMadeMultisigHex(): string; + setMadeMultisigHex(value: string): ProcessModel; + + getMultisigSetupComplete(): boolean; + setMultisigSetupComplete(value: boolean): ProcessModel; + + getMakerReadyToFundMultisig(): boolean; + setMakerReadyToFundMultisig(value: boolean): ProcessModel; + + getMultisigDepositInitiated(): boolean; + setMultisigDepositInitiated(value: boolean): ProcessModel; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ProcessModel.AsObject; + static toObject(includeInstance: boolean, msg: ProcessModel): ProcessModel.AsObject; + static serializeBinaryToWriter(message: ProcessModel, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ProcessModel; + static deserializeBinaryFromReader(message: ProcessModel, reader: jspb.BinaryReader): ProcessModel; +} + +export namespace ProcessModel { + export type AsObject = { + offerId: string, + accountId: string, + pubKeyRing?: PubKeyRing.AsObject, + takeOfferFeeTxId: string, + payoutTxSignature: Uint8Array | string, + rawTransactionInputsList: Array, + changeOutputValue: number, + changeOutputAddress: string, + useSavingsWallet: boolean, + fundsNeededForTradeAsLong: number, + myMultiSigPubKey: Uint8Array | string, + paymentStartedMessageState: string, + mediatedPayoutTxSignature: Uint8Array | string, + buyerPayoutAmountFromMediation: number, + sellerPayoutAmountFromMediation: number, + makerSignature: string, + arbitratorNodeAddress?: NodeAddress.AsObject, + maker?: TradingPeer.AsObject, + taker?: TradingPeer.AsObject, + arbitrator?: TradingPeer.AsObject, + tempTradingPeerNodeAddress?: NodeAddress.AsObject, + reserveTxHash: string, + frozenKeyImagesList: Array, + preparedMultisigHex: string, + madeMultisigHex: string, + multisigSetupComplete: boolean, + makerReadyToFundMultisig: boolean, + multisigDepositInitiated: boolean, + } +} + +export class TradingPeer extends jspb.Message { + getAccountId(): string; + setAccountId(value: string): TradingPeer; + + getPaymentAccountId(): string; + setPaymentAccountId(value: string): TradingPeer; + + getPaymentMethodId(): string; + setPaymentMethodId(value: string): TradingPeer; + + getPaymentAccountPayloadHash(): Uint8Array | string; + getPaymentAccountPayloadHash_asU8(): Uint8Array; + getPaymentAccountPayloadHash_asB64(): string; + setPaymentAccountPayloadHash(value: Uint8Array | string): TradingPeer; + + getPaymentAccountPayload(): PaymentAccountPayload | undefined; + setPaymentAccountPayload(value?: PaymentAccountPayload): TradingPeer; + hasPaymentAccountPayload(): boolean; + clearPaymentAccountPayload(): TradingPeer; + + getPayoutAddressString(): string; + setPayoutAddressString(value: string): TradingPeer; + + getContractAsJson(): string; + setContractAsJson(value: string): TradingPeer; + + getContractSignature(): string; + setContractSignature(value: string): TradingPeer; + + getSignature(): Uint8Array | string; + getSignature_asU8(): Uint8Array; + getSignature_asB64(): string; + setSignature(value: Uint8Array | string): TradingPeer; + + getPubKeyRing(): PubKeyRing | undefined; + setPubKeyRing(value?: PubKeyRing): TradingPeer; + hasPubKeyRing(): boolean; + clearPubKeyRing(): TradingPeer; + + getMultiSigPubKey(): Uint8Array | string; + getMultiSigPubKey_asU8(): Uint8Array; + getMultiSigPubKey_asB64(): string; + setMultiSigPubKey(value: Uint8Array | string): TradingPeer; + + getRawTransactionInputsList(): Array; + setRawTransactionInputsList(value: Array): TradingPeer; + clearRawTransactionInputsList(): TradingPeer; + addRawTransactionInputs(value?: RawTransactionInput, index?: number): RawTransactionInput; + + getChangeOutputValue(): number; + setChangeOutputValue(value: number): TradingPeer; + + getChangeOutputAddress(): string; + setChangeOutputAddress(value: string): TradingPeer; + + getAccountAgeWitnessNonce(): Uint8Array | string; + getAccountAgeWitnessNonce_asU8(): Uint8Array; + getAccountAgeWitnessNonce_asB64(): string; + setAccountAgeWitnessNonce(value: Uint8Array | string): TradingPeer; + + getAccountAgeWitnessSignature(): Uint8Array | string; + getAccountAgeWitnessSignature_asU8(): Uint8Array; + getAccountAgeWitnessSignature_asB64(): string; + setAccountAgeWitnessSignature(value: Uint8Array | string): TradingPeer; + + getCurrentDate(): number; + setCurrentDate(value: number): TradingPeer; + + getMediatedPayoutTxSignature(): Uint8Array | string; + getMediatedPayoutTxSignature_asU8(): Uint8Array; + getMediatedPayoutTxSignature_asB64(): string; + setMediatedPayoutTxSignature(value: Uint8Array | string): TradingPeer; + + getReserveTxHash(): string; + setReserveTxHash(value: string): TradingPeer; + + getReserveTxHex(): string; + setReserveTxHex(value: string): TradingPeer; + + getReserveTxKey(): string; + setReserveTxKey(value: string): TradingPeer; + + getPreparedMultisigHex(): string; + setPreparedMultisigHex(value: string): TradingPeer; + + getMadeMultisigHex(): string; + setMadeMultisigHex(value: string): TradingPeer; + + getSignedPayoutTxHex(): string; + setSignedPayoutTxHex(value: string): TradingPeer; + + getDepositTxHash(): string; + setDepositTxHash(value: string): TradingPeer; + + getDepositTxHex(): string; + setDepositTxHex(value: string): TradingPeer; + + getDepositTxKey(): string; + setDepositTxKey(value: string): TradingPeer; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): TradingPeer.AsObject; + static toObject(includeInstance: boolean, msg: TradingPeer): TradingPeer.AsObject; + static serializeBinaryToWriter(message: TradingPeer, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): TradingPeer; + static deserializeBinaryFromReader(message: TradingPeer, reader: jspb.BinaryReader): TradingPeer; +} + +export namespace TradingPeer { + export type AsObject = { + accountId: string, + paymentAccountId: string, + paymentMethodId: string, + paymentAccountPayloadHash: Uint8Array | string, + paymentAccountPayload?: PaymentAccountPayload.AsObject, + payoutAddressString: string, + contractAsJson: string, + contractSignature: string, + signature: Uint8Array | string, + pubKeyRing?: PubKeyRing.AsObject, + multiSigPubKey: Uint8Array | string, + rawTransactionInputsList: Array, + changeOutputValue: number, + changeOutputAddress: string, + accountAgeWitnessNonce: Uint8Array | string, + accountAgeWitnessSignature: Uint8Array | string, + currentDate: number, + mediatedPayoutTxSignature: Uint8Array | string, + reserveTxHash: string, + reserveTxHex: string, + reserveTxKey: string, + preparedMultisigHex: string, + madeMultisigHex: string, + signedPayoutTxHex: string, + depositTxHash: string, + depositTxHex: string, + depositTxKey: string, + } +} + +export class ArbitrationDisputeList extends jspb.Message { + getDisputeList(): Array; + setDisputeList(value: Array): ArbitrationDisputeList; + clearDisputeList(): ArbitrationDisputeList; + addDispute(value?: Dispute, index?: number): Dispute; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ArbitrationDisputeList.AsObject; + static toObject(includeInstance: boolean, msg: ArbitrationDisputeList): ArbitrationDisputeList.AsObject; + static serializeBinaryToWriter(message: ArbitrationDisputeList, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ArbitrationDisputeList; + static deserializeBinaryFromReader(message: ArbitrationDisputeList, reader: jspb.BinaryReader): ArbitrationDisputeList; +} + +export namespace ArbitrationDisputeList { + export type AsObject = { + disputeList: Array, + } +} + +export class MediationDisputeList extends jspb.Message { + getDisputeList(): Array; + setDisputeList(value: Array): MediationDisputeList; + clearDisputeList(): MediationDisputeList; + addDispute(value?: Dispute, index?: number): Dispute; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MediationDisputeList.AsObject; + static toObject(includeInstance: boolean, msg: MediationDisputeList): MediationDisputeList.AsObject; + static serializeBinaryToWriter(message: MediationDisputeList, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MediationDisputeList; + static deserializeBinaryFromReader(message: MediationDisputeList, reader: jspb.BinaryReader): MediationDisputeList; +} + +export namespace MediationDisputeList { + export type AsObject = { + disputeList: Array, + } +} + +export class RefundDisputeList extends jspb.Message { + getDisputeList(): Array; + setDisputeList(value: Array): RefundDisputeList; + clearDisputeList(): RefundDisputeList; + addDispute(value?: Dispute, index?: number): Dispute; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): RefundDisputeList.AsObject; + static toObject(includeInstance: boolean, msg: RefundDisputeList): RefundDisputeList.AsObject; + static serializeBinaryToWriter(message: RefundDisputeList, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): RefundDisputeList; + static deserializeBinaryFromReader(message: RefundDisputeList, reader: jspb.BinaryReader): RefundDisputeList; +} + +export namespace RefundDisputeList { + export type AsObject = { + disputeList: Array, + } +} + +export class PreferencesPayload extends jspb.Message { + getUserLanguage(): string; + setUserLanguage(value: string): PreferencesPayload; + + getUserCountry(): Country | undefined; + setUserCountry(value?: Country): PreferencesPayload; + hasUserCountry(): boolean; + clearUserCountry(): PreferencesPayload; + + getFiatCurrenciesList(): Array; + setFiatCurrenciesList(value: Array): PreferencesPayload; + clearFiatCurrenciesList(): PreferencesPayload; + addFiatCurrencies(value?: TradeCurrency, index?: number): TradeCurrency; + + getCryptoCurrenciesList(): Array; + setCryptoCurrenciesList(value: Array): PreferencesPayload; + clearCryptoCurrenciesList(): PreferencesPayload; + addCryptoCurrencies(value?: TradeCurrency, index?: number): TradeCurrency; + + getBlockChainExplorerMainNet(): BlockChainExplorer | undefined; + setBlockChainExplorerMainNet(value?: BlockChainExplorer): PreferencesPayload; + hasBlockChainExplorerMainNet(): boolean; + clearBlockChainExplorerMainNet(): PreferencesPayload; + + getBlockChainExplorerTestNet(): BlockChainExplorer | undefined; + setBlockChainExplorerTestNet(value?: BlockChainExplorer): PreferencesPayload; + hasBlockChainExplorerTestNet(): boolean; + clearBlockChainExplorerTestNet(): PreferencesPayload; + + getBsqBlockChainExplorer(): BlockChainExplorer | undefined; + setBsqBlockChainExplorer(value?: BlockChainExplorer): PreferencesPayload; + hasBsqBlockChainExplorer(): boolean; + clearBsqBlockChainExplorer(): PreferencesPayload; + + getBackupDirectory(): string; + setBackupDirectory(value: string): PreferencesPayload; + + getAutoSelectArbitrators(): boolean; + setAutoSelectArbitrators(value: boolean): PreferencesPayload; + + getDontShowAgainMapMap(): jspb.Map; + clearDontShowAgainMapMap(): PreferencesPayload; + + getTacAccepted(): boolean; + setTacAccepted(value: boolean): PreferencesPayload; + + getUseTorForBitcoinJ(): boolean; + setUseTorForBitcoinJ(value: boolean): PreferencesPayload; + + getShowOwnOffersInOfferBook(): boolean; + setShowOwnOffersInOfferBook(value: boolean): PreferencesPayload; + + getPreferredTradeCurrency(): TradeCurrency | undefined; + setPreferredTradeCurrency(value?: TradeCurrency): PreferencesPayload; + hasPreferredTradeCurrency(): boolean; + clearPreferredTradeCurrency(): PreferencesPayload; + + getWithdrawalTxFeeInVbytes(): number; + setWithdrawalTxFeeInVbytes(value: number): PreferencesPayload; + + getUseCustomWithdrawalTxFee(): boolean; + setUseCustomWithdrawalTxFee(value: boolean): PreferencesPayload; + + getMaxPriceDistanceInPercent(): number; + setMaxPriceDistanceInPercent(value: number): PreferencesPayload; + + getOfferBookChartScreenCurrencyCode(): string; + setOfferBookChartScreenCurrencyCode(value: string): PreferencesPayload; + + getTradeChartsScreenCurrencyCode(): string; + setTradeChartsScreenCurrencyCode(value: string): PreferencesPayload; + + getBuyScreenCurrencyCode(): string; + setBuyScreenCurrencyCode(value: string): PreferencesPayload; + + getSellScreenCurrencyCode(): string; + setSellScreenCurrencyCode(value: string): PreferencesPayload; + + getTradeStatisticsTickUnitIndex(): number; + setTradeStatisticsTickUnitIndex(value: number): PreferencesPayload; + + getResyncSpvRequested(): boolean; + setResyncSpvRequested(value: boolean): PreferencesPayload; + + getSortMarketCurrenciesNumerically(): boolean; + setSortMarketCurrenciesNumerically(value: boolean): PreferencesPayload; + + getUsePercentageBasedPrice(): boolean; + setUsePercentageBasedPrice(value: boolean): PreferencesPayload; + + getPeerTagMapMap(): jspb.Map; + clearPeerTagMapMap(): PreferencesPayload; + + getBitcoinNodes(): string; + setBitcoinNodes(value: string): PreferencesPayload; + + getIgnoreTradersListList(): Array; + setIgnoreTradersListList(value: Array): PreferencesPayload; + clearIgnoreTradersListList(): PreferencesPayload; + addIgnoreTradersList(value: string, index?: number): PreferencesPayload; + + getDirectoryChooserPath(): string; + setDirectoryChooserPath(value: string): PreferencesPayload; + + getBuyerSecurityDepositAsLong(): number; + setBuyerSecurityDepositAsLong(value: number): PreferencesPayload; + + getUseAnimations(): boolean; + setUseAnimations(value: boolean): PreferencesPayload; + + getSelectedpaymentAccountForCreateoffer(): PaymentAccount | undefined; + setSelectedpaymentAccountForCreateoffer(value?: PaymentAccount): PreferencesPayload; + hasSelectedpaymentAccountForCreateoffer(): boolean; + clearSelectedpaymentAccountForCreateoffer(): PreferencesPayload; + + getPayFeeInBtc(): boolean; + setPayFeeInBtc(value: boolean): PreferencesPayload; + + getBridgeAddressesList(): Array; + setBridgeAddressesList(value: Array): PreferencesPayload; + clearBridgeAddressesList(): PreferencesPayload; + addBridgeAddresses(value: string, index?: number): PreferencesPayload; + + getBridgeOptionOrdinal(): number; + setBridgeOptionOrdinal(value: number): PreferencesPayload; + + getTorTransportOrdinal(): number; + setTorTransportOrdinal(value: number): PreferencesPayload; + + getCustomBridges(): string; + setCustomBridges(value: string): PreferencesPayload; + + getBitcoinNodesOptionOrdinal(): number; + setBitcoinNodesOptionOrdinal(value: number): PreferencesPayload; + + getReferralId(): string; + setReferralId(value: string): PreferencesPayload; + + getPhoneKeyAndToken(): string; + setPhoneKeyAndToken(value: string): PreferencesPayload; + + getUseSoundForMobileNotifications(): boolean; + setUseSoundForMobileNotifications(value: boolean): PreferencesPayload; + + getUseTradeNotifications(): boolean; + setUseTradeNotifications(value: boolean): PreferencesPayload; + + getUseMarketNotifications(): boolean; + setUseMarketNotifications(value: boolean): PreferencesPayload; + + getUsePriceNotifications(): boolean; + setUsePriceNotifications(value: boolean): PreferencesPayload; + + getUseStandbyMode(): boolean; + setUseStandbyMode(value: boolean): PreferencesPayload; + + getIsDaoFullNode(): boolean; + setIsDaoFullNode(value: boolean): PreferencesPayload; + + getRpcUser(): string; + setRpcUser(value: string): PreferencesPayload; + + getRpcPw(): string; + setRpcPw(value: string): PreferencesPayload; + + getTakeOfferSelectedPaymentAccountId(): string; + setTakeOfferSelectedPaymentAccountId(value: string): PreferencesPayload; + + getBuyerSecurityDepositAsPercent(): number; + setBuyerSecurityDepositAsPercent(value: number): PreferencesPayload; + + getIgnoreDustThreshold(): number; + setIgnoreDustThreshold(value: number): PreferencesPayload; + + getBuyerSecurityDepositAsPercentForCrypto(): number; + setBuyerSecurityDepositAsPercentForCrypto(value: number): PreferencesPayload; + + getBlockNotifyPort(): number; + setBlockNotifyPort(value: number): PreferencesPayload; + + getCssTheme(): number; + setCssTheme(value: number): PreferencesPayload; + + getTacAcceptedV120(): boolean; + setTacAcceptedV120(value: boolean): PreferencesPayload; + + getAutoConfirmSettingsList(): Array; + setAutoConfirmSettingsList(value: Array): PreferencesPayload; + clearAutoConfirmSettingsList(): PreferencesPayload; + addAutoConfirmSettings(value?: AutoConfirmSettings, index?: number): AutoConfirmSettings; + + getBsqAverageTrimThreshold(): number; + setBsqAverageTrimThreshold(value: number): PreferencesPayload; + + getHideNonAccountPaymentMethods(): boolean; + setHideNonAccountPaymentMethods(value: boolean): PreferencesPayload; + + getShowOffersMatchingMyAccounts(): boolean; + setShowOffersMatchingMyAccounts(value: boolean): PreferencesPayload; + + getDenyApiTaker(): boolean; + setDenyApiTaker(value: boolean): PreferencesPayload; + + getNotifyOnPreRelease(): boolean; + setNotifyOnPreRelease(value: boolean): PreferencesPayload; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PreferencesPayload.AsObject; + static toObject(includeInstance: boolean, msg: PreferencesPayload): PreferencesPayload.AsObject; + static serializeBinaryToWriter(message: PreferencesPayload, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PreferencesPayload; + static deserializeBinaryFromReader(message: PreferencesPayload, reader: jspb.BinaryReader): PreferencesPayload; +} + +export namespace PreferencesPayload { + export type AsObject = { + userLanguage: string, + userCountry?: Country.AsObject, + fiatCurrenciesList: Array, + cryptoCurrenciesList: Array, + blockChainExplorerMainNet?: BlockChainExplorer.AsObject, + blockChainExplorerTestNet?: BlockChainExplorer.AsObject, + bsqBlockChainExplorer?: BlockChainExplorer.AsObject, + backupDirectory: string, + autoSelectArbitrators: boolean, + dontShowAgainMapMap: Array<[string, boolean]>, + tacAccepted: boolean, + useTorForBitcoinJ: boolean, + showOwnOffersInOfferBook: boolean, + preferredTradeCurrency?: TradeCurrency.AsObject, + withdrawalTxFeeInVbytes: number, + useCustomWithdrawalTxFee: boolean, + maxPriceDistanceInPercent: number, + offerBookChartScreenCurrencyCode: string, + tradeChartsScreenCurrencyCode: string, + buyScreenCurrencyCode: string, + sellScreenCurrencyCode: string, + tradeStatisticsTickUnitIndex: number, + resyncSpvRequested: boolean, + sortMarketCurrenciesNumerically: boolean, + usePercentageBasedPrice: boolean, + peerTagMapMap: Array<[string, string]>, + bitcoinNodes: string, + ignoreTradersListList: Array, + directoryChooserPath: string, + buyerSecurityDepositAsLong: number, + useAnimations: boolean, + selectedpaymentAccountForCreateoffer?: PaymentAccount.AsObject, + payFeeInBtc: boolean, + bridgeAddressesList: Array, + bridgeOptionOrdinal: number, + torTransportOrdinal: number, + customBridges: string, + bitcoinNodesOptionOrdinal: number, + referralId: string, + phoneKeyAndToken: string, + useSoundForMobileNotifications: boolean, + useTradeNotifications: boolean, + useMarketNotifications: boolean, + usePriceNotifications: boolean, + useStandbyMode: boolean, + isDaoFullNode: boolean, + rpcUser: string, + rpcPw: string, + takeOfferSelectedPaymentAccountId: string, + buyerSecurityDepositAsPercent: number, + ignoreDustThreshold: number, + buyerSecurityDepositAsPercentForCrypto: number, + blockNotifyPort: number, + cssTheme: number, + tacAcceptedV120: boolean, + autoConfirmSettingsList: Array, + bsqAverageTrimThreshold: number, + hideNonAccountPaymentMethods: boolean, + showOffersMatchingMyAccounts: boolean, + denyApiTaker: boolean, + notifyOnPreRelease: boolean, + } +} + +export class AutoConfirmSettings extends jspb.Message { + getEnabled(): boolean; + setEnabled(value: boolean): AutoConfirmSettings; + + getRequiredConfirmations(): number; + setRequiredConfirmations(value: number): AutoConfirmSettings; + + getTradeLimit(): number; + setTradeLimit(value: number): AutoConfirmSettings; + + getServiceAddressesList(): Array; + setServiceAddressesList(value: Array): AutoConfirmSettings; + clearServiceAddressesList(): AutoConfirmSettings; + addServiceAddresses(value: string, index?: number): AutoConfirmSettings; + + getCurrencyCode(): string; + setCurrencyCode(value: string): AutoConfirmSettings; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): AutoConfirmSettings.AsObject; + static toObject(includeInstance: boolean, msg: AutoConfirmSettings): AutoConfirmSettings.AsObject; + static serializeBinaryToWriter(message: AutoConfirmSettings, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): AutoConfirmSettings; + static deserializeBinaryFromReader(message: AutoConfirmSettings, reader: jspb.BinaryReader): AutoConfirmSettings; +} + +export namespace AutoConfirmSettings { + export type AsObject = { + enabled: boolean, + requiredConfirmations: number, + tradeLimit: number, + serviceAddressesList: Array, + currencyCode: string, + } +} + +export class UserPayload extends jspb.Message { + getAccountId(): string; + setAccountId(value: string): UserPayload; + + getPaymentAccountsList(): Array; + setPaymentAccountsList(value: Array): UserPayload; + clearPaymentAccountsList(): UserPayload; + addPaymentAccounts(value?: PaymentAccount, index?: number): PaymentAccount; + + getCurrentPaymentAccount(): PaymentAccount | undefined; + setCurrentPaymentAccount(value?: PaymentAccount): UserPayload; + hasCurrentPaymentAccount(): boolean; + clearCurrentPaymentAccount(): UserPayload; + + getAcceptedLanguageLocaleCodesList(): Array; + setAcceptedLanguageLocaleCodesList(value: Array): UserPayload; + clearAcceptedLanguageLocaleCodesList(): UserPayload; + addAcceptedLanguageLocaleCodes(value: string, index?: number): UserPayload; + + getDevelopersAlert(): Alert | undefined; + setDevelopersAlert(value?: Alert): UserPayload; + hasDevelopersAlert(): boolean; + clearDevelopersAlert(): UserPayload; + + getDisplayedAlert(): Alert | undefined; + setDisplayedAlert(value?: Alert): UserPayload; + hasDisplayedAlert(): boolean; + clearDisplayedAlert(): UserPayload; + + getDevelopersFilter(): Filter | undefined; + setDevelopersFilter(value?: Filter): UserPayload; + hasDevelopersFilter(): boolean; + clearDevelopersFilter(): UserPayload; + + getAcceptedArbitratorsList(): Array; + setAcceptedArbitratorsList(value: Array): UserPayload; + clearAcceptedArbitratorsList(): UserPayload; + addAcceptedArbitrators(value?: Arbitrator, index?: number): Arbitrator; + + getAcceptedMediatorsList(): Array; + setAcceptedMediatorsList(value: Array): UserPayload; + clearAcceptedMediatorsList(): UserPayload; + addAcceptedMediators(value?: Mediator, index?: number): Mediator; + + getRegisteredArbitrator(): Arbitrator | undefined; + setRegisteredArbitrator(value?: Arbitrator): UserPayload; + hasRegisteredArbitrator(): boolean; + clearRegisteredArbitrator(): UserPayload; + + getRegisteredMediator(): Mediator | undefined; + setRegisteredMediator(value?: Mediator): UserPayload; + hasRegisteredMediator(): boolean; + clearRegisteredMediator(): UserPayload; + + getPriceAlertFilter(): PriceAlertFilter | undefined; + setPriceAlertFilter(value?: PriceAlertFilter): UserPayload; + hasPriceAlertFilter(): boolean; + clearPriceAlertFilter(): UserPayload; + + getMarketAlertFiltersList(): Array; + setMarketAlertFiltersList(value: Array): UserPayload; + clearMarketAlertFiltersList(): UserPayload; + addMarketAlertFilters(value?: MarketAlertFilter, index?: number): MarketAlertFilter; + + getAcceptedRefundAgentsList(): Array; + setAcceptedRefundAgentsList(value: Array): UserPayload; + clearAcceptedRefundAgentsList(): UserPayload; + addAcceptedRefundAgents(value?: RefundAgent, index?: number): RefundAgent; + + getRegisteredRefundAgent(): RefundAgent | undefined; + setRegisteredRefundAgent(value?: RefundAgent): UserPayload; + hasRegisteredRefundAgent(): boolean; + clearRegisteredRefundAgent(): UserPayload; + + getCookieMap(): jspb.Map; + clearCookieMap(): UserPayload; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): UserPayload.AsObject; + static toObject(includeInstance: boolean, msg: UserPayload): UserPayload.AsObject; + static serializeBinaryToWriter(message: UserPayload, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): UserPayload; + static deserializeBinaryFromReader(message: UserPayload, reader: jspb.BinaryReader): UserPayload; +} + +export namespace UserPayload { + export type AsObject = { + accountId: string, + paymentAccountsList: Array, + currentPaymentAccount?: PaymentAccount.AsObject, + acceptedLanguageLocaleCodesList: Array, + developersAlert?: Alert.AsObject, + displayedAlert?: Alert.AsObject, + developersFilter?: Filter.AsObject, + acceptedArbitratorsList: Array, + acceptedMediatorsList: Array, + registeredArbitrator?: Arbitrator.AsObject, + registeredMediator?: Mediator.AsObject, + priceAlertFilter?: PriceAlertFilter.AsObject, + marketAlertFiltersList: Array, + acceptedRefundAgentsList: Array, + registeredRefundAgent?: RefundAgent.AsObject, + cookieMap: Array<[string, string]>, + } +} + +export class BaseBlock extends jspb.Message { + getHeight(): number; + setHeight(value: number): BaseBlock; + + getTime(): number; + setTime(value: number): BaseBlock; + + getHash(): string; + setHash(value: string): BaseBlock; + + getPreviousBlockHash(): string; + setPreviousBlockHash(value: string): BaseBlock; + + getRawBlock(): RawBlock | undefined; + setRawBlock(value?: RawBlock): BaseBlock; + hasRawBlock(): boolean; + clearRawBlock(): BaseBlock; + + getBlock(): Block | undefined; + setBlock(value?: Block): BaseBlock; + hasBlock(): boolean; + clearBlock(): BaseBlock; + + getMessageCase(): BaseBlock.MessageCase; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): BaseBlock.AsObject; + static toObject(includeInstance: boolean, msg: BaseBlock): BaseBlock.AsObject; + static serializeBinaryToWriter(message: BaseBlock, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): BaseBlock; + static deserializeBinaryFromReader(message: BaseBlock, reader: jspb.BinaryReader): BaseBlock; +} + +export namespace BaseBlock { + export type AsObject = { + height: number, + time: number, + hash: string, + previousBlockHash: string, + rawBlock?: RawBlock.AsObject, + block?: Block.AsObject, + } + + export enum MessageCase { + MESSAGE_NOT_SET = 0, + RAW_BLOCK = 5, + BLOCK = 6, + } +} + +export class RawBlock extends jspb.Message { + getRawTxsList(): Array; + setRawTxsList(value: Array): RawBlock; + clearRawTxsList(): RawBlock; + addRawTxs(value?: BaseTx, index?: number): BaseTx; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): RawBlock.AsObject; + static toObject(includeInstance: boolean, msg: RawBlock): RawBlock.AsObject; + static serializeBinaryToWriter(message: RawBlock, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): RawBlock; + static deserializeBinaryFromReader(message: RawBlock, reader: jspb.BinaryReader): RawBlock; +} + +export namespace RawBlock { + export type AsObject = { + rawTxsList: Array, + } +} + +export class Block extends jspb.Message { + getTxsList(): Array; + setTxsList(value: Array): Block; + clearTxsList(): Block; + addTxs(value?: BaseTx, index?: number): BaseTx; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Block.AsObject; + static toObject(includeInstance: boolean, msg: Block): Block.AsObject; + static serializeBinaryToWriter(message: Block, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Block; + static deserializeBinaryFromReader(message: Block, reader: jspb.BinaryReader): Block; +} + +export namespace Block { + export type AsObject = { + txsList: Array, + } +} + +export class BaseTx extends jspb.Message { + getTxVersion(): string; + setTxVersion(value: string): BaseTx; + + getId(): string; + setId(value: string): BaseTx; + + getBlockHeight(): number; + setBlockHeight(value: number): BaseTx; + + getBlockHash(): string; + setBlockHash(value: string): BaseTx; + + getTime(): number; + setTime(value: number): BaseTx; + + getTxInputsList(): Array; + setTxInputsList(value: Array): BaseTx; + clearTxInputsList(): BaseTx; + addTxInputs(value?: TxInput, index?: number): TxInput; + + getRawTx(): RawTx | undefined; + setRawTx(value?: RawTx): BaseTx; + hasRawTx(): boolean; + clearRawTx(): BaseTx; + + getTx(): Tx | undefined; + setTx(value?: Tx): BaseTx; + hasTx(): boolean; + clearTx(): BaseTx; + + getMessageCase(): BaseTx.MessageCase; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): BaseTx.AsObject; + static toObject(includeInstance: boolean, msg: BaseTx): BaseTx.AsObject; + static serializeBinaryToWriter(message: BaseTx, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): BaseTx; + static deserializeBinaryFromReader(message: BaseTx, reader: jspb.BinaryReader): BaseTx; +} + +export namespace BaseTx { + export type AsObject = { + txVersion: string, + id: string, + blockHeight: number, + blockHash: string, + time: number, + txInputsList: Array, + rawTx?: RawTx.AsObject, + tx?: Tx.AsObject, + } + + export enum MessageCase { + MESSAGE_NOT_SET = 0, + RAW_TX = 7, + TX = 8, + } +} + +export class RawTx extends jspb.Message { + getRawTxOutputsList(): Array; + setRawTxOutputsList(value: Array): RawTx; + clearRawTxOutputsList(): RawTx; + addRawTxOutputs(value?: BaseTxOutput, index?: number): BaseTxOutput; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): RawTx.AsObject; + static toObject(includeInstance: boolean, msg: RawTx): RawTx.AsObject; + static serializeBinaryToWriter(message: RawTx, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): RawTx; + static deserializeBinaryFromReader(message: RawTx, reader: jspb.BinaryReader): RawTx; +} + +export namespace RawTx { + export type AsObject = { + rawTxOutputsList: Array, + } +} + +export class Tx extends jspb.Message { + getTxOutputsList(): Array; + setTxOutputsList(value: Array): Tx; + clearTxOutputsList(): Tx; + addTxOutputs(value?: BaseTxOutput, index?: number): BaseTxOutput; + + getTxtype(): TxType; + setTxtype(value: TxType): Tx; + + getBurntBsq(): number; + setBurntBsq(value: number): Tx; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Tx.AsObject; + static toObject(includeInstance: boolean, msg: Tx): Tx.AsObject; + static serializeBinaryToWriter(message: Tx, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Tx; + static deserializeBinaryFromReader(message: Tx, reader: jspb.BinaryReader): Tx; +} + +export namespace Tx { + export type AsObject = { + txOutputsList: Array, + txtype: TxType, + burntBsq: number, + } +} + +export class TxInput extends jspb.Message { + getConnectedTxOutputTxId(): string; + setConnectedTxOutputTxId(value: string): TxInput; + + getConnectedTxOutputIndex(): number; + setConnectedTxOutputIndex(value: number): TxInput; + + getPubKey(): string; + setPubKey(value: string): TxInput; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): TxInput.AsObject; + static toObject(includeInstance: boolean, msg: TxInput): TxInput.AsObject; + static serializeBinaryToWriter(message: TxInput, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): TxInput; + static deserializeBinaryFromReader(message: TxInput, reader: jspb.BinaryReader): TxInput; +} + +export namespace TxInput { + export type AsObject = { + connectedTxOutputTxId: string, + connectedTxOutputIndex: number, + pubKey: string, + } +} + +export class BaseTxOutput extends jspb.Message { + getIndex(): number; + setIndex(value: number): BaseTxOutput; + + getValue(): number; + setValue(value: number): BaseTxOutput; + + getTxId(): string; + setTxId(value: string): BaseTxOutput; + + getPubKeyScript(): PubKeyScript | undefined; + setPubKeyScript(value?: PubKeyScript): BaseTxOutput; + hasPubKeyScript(): boolean; + clearPubKeyScript(): BaseTxOutput; + + getAddress(): string; + setAddress(value: string): BaseTxOutput; + + getOpReturnData(): Uint8Array | string; + getOpReturnData_asU8(): Uint8Array; + getOpReturnData_asB64(): string; + setOpReturnData(value: Uint8Array | string): BaseTxOutput; + + getBlockHeight(): number; + setBlockHeight(value: number): BaseTxOutput; + + getRawTxOutput(): RawTxOutput | undefined; + setRawTxOutput(value?: RawTxOutput): BaseTxOutput; + hasRawTxOutput(): boolean; + clearRawTxOutput(): BaseTxOutput; + + getTxOutput(): TxOutput | undefined; + setTxOutput(value?: TxOutput): BaseTxOutput; + hasTxOutput(): boolean; + clearTxOutput(): BaseTxOutput; + + getMessageCase(): BaseTxOutput.MessageCase; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): BaseTxOutput.AsObject; + static toObject(includeInstance: boolean, msg: BaseTxOutput): BaseTxOutput.AsObject; + static serializeBinaryToWriter(message: BaseTxOutput, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): BaseTxOutput; + static deserializeBinaryFromReader(message: BaseTxOutput, reader: jspb.BinaryReader): BaseTxOutput; +} + +export namespace BaseTxOutput { + export type AsObject = { + index: number, + value: number, + txId: string, + pubKeyScript?: PubKeyScript.AsObject, + address: string, + opReturnData: Uint8Array | string, + blockHeight: number, + rawTxOutput?: RawTxOutput.AsObject, + txOutput?: TxOutput.AsObject, + } + + export enum MessageCase { + MESSAGE_NOT_SET = 0, + RAW_TX_OUTPUT = 8, + TX_OUTPUT = 9, + } +} + +export class UnconfirmedTxOutput extends jspb.Message { + getIndex(): number; + setIndex(value: number): UnconfirmedTxOutput; + + getValue(): number; + setValue(value: number): UnconfirmedTxOutput; + + getTxId(): string; + setTxId(value: string): UnconfirmedTxOutput; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): UnconfirmedTxOutput.AsObject; + static toObject(includeInstance: boolean, msg: UnconfirmedTxOutput): UnconfirmedTxOutput.AsObject; + static serializeBinaryToWriter(message: UnconfirmedTxOutput, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): UnconfirmedTxOutput; + static deserializeBinaryFromReader(message: UnconfirmedTxOutput, reader: jspb.BinaryReader): UnconfirmedTxOutput; +} + +export namespace UnconfirmedTxOutput { + export type AsObject = { + index: number, + value: number, + txId: string, + } +} + +export class RawTxOutput extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): RawTxOutput.AsObject; + static toObject(includeInstance: boolean, msg: RawTxOutput): RawTxOutput.AsObject; + static serializeBinaryToWriter(message: RawTxOutput, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): RawTxOutput; + static deserializeBinaryFromReader(message: RawTxOutput, reader: jspb.BinaryReader): RawTxOutput; +} + +export namespace RawTxOutput { + export type AsObject = { + } +} + +export class TxOutput extends jspb.Message { + getTxOutputType(): TxOutputType; + setTxOutputType(value: TxOutputType): TxOutput; + + getLockTime(): number; + setLockTime(value: number): TxOutput; + + getUnlockBlockHeight(): number; + setUnlockBlockHeight(value: number): TxOutput; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): TxOutput.AsObject; + static toObject(includeInstance: boolean, msg: TxOutput): TxOutput.AsObject; + static serializeBinaryToWriter(message: TxOutput, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): TxOutput; + static deserializeBinaryFromReader(message: TxOutput, reader: jspb.BinaryReader): TxOutput; +} + +export namespace TxOutput { + export type AsObject = { + txOutputType: TxOutputType, + lockTime: number, + unlockBlockHeight: number, + } +} + +export class SpentInfo extends jspb.Message { + getBlockHeight(): number; + setBlockHeight(value: number): SpentInfo; + + getTxId(): string; + setTxId(value: string): SpentInfo; + + getInputIndex(): number; + setInputIndex(value: number): SpentInfo; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): SpentInfo.AsObject; + static toObject(includeInstance: boolean, msg: SpentInfo): SpentInfo.AsObject; + static serializeBinaryToWriter(message: SpentInfo, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SpentInfo; + static deserializeBinaryFromReader(message: SpentInfo, reader: jspb.BinaryReader): SpentInfo; +} + +export namespace SpentInfo { + export type AsObject = { + blockHeight: number, + txId: string, + inputIndex: number, + } +} + +export class PubKeyScript extends jspb.Message { + getReqSigs(): number; + setReqSigs(value: number): PubKeyScript; + + getScriptType(): ScriptType; + setScriptType(value: ScriptType): PubKeyScript; + + getAddressesList(): Array; + setAddressesList(value: Array): PubKeyScript; + clearAddressesList(): PubKeyScript; + addAddresses(value: string, index?: number): PubKeyScript; + + getAsm(): string; + setAsm(value: string): PubKeyScript; + + getHex(): string; + setHex(value: string): PubKeyScript; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PubKeyScript.AsObject; + static toObject(includeInstance: boolean, msg: PubKeyScript): PubKeyScript.AsObject; + static serializeBinaryToWriter(message: PubKeyScript, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PubKeyScript; + static deserializeBinaryFromReader(message: PubKeyScript, reader: jspb.BinaryReader): PubKeyScript; +} + +export namespace PubKeyScript { + export type AsObject = { + reqSigs: number, + scriptType: ScriptType, + addressesList: Array, + asm: string, + hex: string, + } +} + +export class DaoPhase extends jspb.Message { + getPhaseOrdinal(): number; + setPhaseOrdinal(value: number): DaoPhase; + + getDuration(): number; + setDuration(value: number): DaoPhase; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DaoPhase.AsObject; + static toObject(includeInstance: boolean, msg: DaoPhase): DaoPhase.AsObject; + static serializeBinaryToWriter(message: DaoPhase, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DaoPhase; + static deserializeBinaryFromReader(message: DaoPhase, reader: jspb.BinaryReader): DaoPhase; +} + +export namespace DaoPhase { + export type AsObject = { + phaseOrdinal: number, + duration: number, + } +} + +export class Cycle extends jspb.Message { + getHeightOfFirstLock(): number; + setHeightOfFirstLock(value: number): Cycle; + + getDaoPhaseList(): Array; + setDaoPhaseList(value: Array): Cycle; + clearDaoPhaseList(): Cycle; + addDaoPhase(value?: DaoPhase, index?: number): DaoPhase; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Cycle.AsObject; + static toObject(includeInstance: boolean, msg: Cycle): Cycle.AsObject; + static serializeBinaryToWriter(message: Cycle, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Cycle; + static deserializeBinaryFromReader(message: Cycle, reader: jspb.BinaryReader): Cycle; +} + +export namespace Cycle { + export type AsObject = { + heightOfFirstLock: number, + daoPhaseList: Array, + } +} + +export class DaoState extends jspb.Message { + getChainHeight(): number; + setChainHeight(value: number): DaoState; + + getBlocksList(): Array; + setBlocksList(value: Array): DaoState; + clearBlocksList(): DaoState; + addBlocks(value?: BaseBlock, index?: number): BaseBlock; + + getCyclesList(): Array; + setCyclesList(value: Array): DaoState; + clearCyclesList(): DaoState; + addCycles(value?: Cycle, index?: number): Cycle; + + getUnspentTxOutputMapMap(): jspb.Map; + clearUnspentTxOutputMapMap(): DaoState; + + getIssuanceMapMap(): jspb.Map; + clearIssuanceMapMap(): DaoState; + + getConfiscatedLockupTxListList(): Array; + setConfiscatedLockupTxListList(value: Array): DaoState; + clearConfiscatedLockupTxListList(): DaoState; + addConfiscatedLockupTxList(value: string, index?: number): DaoState; + + getSpentInfoMapMap(): jspb.Map; + clearSpentInfoMapMap(): DaoState; + + getParamChangeListList(): Array; + setParamChangeListList(value: Array): DaoState; + clearParamChangeListList(): DaoState; + addParamChangeList(value?: ParamChange, index?: number): ParamChange; + + getEvaluatedProposalListList(): Array; + setEvaluatedProposalListList(value: Array): DaoState; + clearEvaluatedProposalListList(): DaoState; + addEvaluatedProposalList(value?: EvaluatedProposal, index?: number): EvaluatedProposal; + + getDecryptedBallotsWithMeritsListList(): Array; + setDecryptedBallotsWithMeritsListList(value: Array): DaoState; + clearDecryptedBallotsWithMeritsListList(): DaoState; + addDecryptedBallotsWithMeritsList(value?: DecryptedBallotsWithMerits, index?: number): DecryptedBallotsWithMerits; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DaoState.AsObject; + static toObject(includeInstance: boolean, msg: DaoState): DaoState.AsObject; + static serializeBinaryToWriter(message: DaoState, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DaoState; + static deserializeBinaryFromReader(message: DaoState, reader: jspb.BinaryReader): DaoState; +} + +export namespace DaoState { + export type AsObject = { + chainHeight: number, + blocksList: Array, + cyclesList: Array, + unspentTxOutputMapMap: Array<[string, BaseTxOutput.AsObject]>, + issuanceMapMap: Array<[string, Issuance.AsObject]>, + confiscatedLockupTxListList: Array, + spentInfoMapMap: Array<[string, SpentInfo.AsObject]>, + paramChangeListList: Array, + evaluatedProposalListList: Array, + decryptedBallotsWithMeritsListList: Array, + } +} + +export class Issuance extends jspb.Message { + getTxId(): string; + setTxId(value: string): Issuance; + + getChainHeight(): number; + setChainHeight(value: number): Issuance; + + getAmount(): number; + setAmount(value: number): Issuance; + + getPubKey(): string; + setPubKey(value: string): Issuance; + + getIssuanceType(): string; + setIssuanceType(value: string): Issuance; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Issuance.AsObject; + static toObject(includeInstance: boolean, msg: Issuance): Issuance.AsObject; + static serializeBinaryToWriter(message: Issuance, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Issuance; + static deserializeBinaryFromReader(message: Issuance, reader: jspb.BinaryReader): Issuance; +} + +export namespace Issuance { + export type AsObject = { + txId: string, + chainHeight: number, + amount: number, + pubKey: string, + issuanceType: string, + } +} + +export class Proposal extends jspb.Message { + getName(): string; + setName(value: string): Proposal; + + getLink(): string; + setLink(value: string): Proposal; + + getVersion(): number; + setVersion(value: number): Proposal; + + getCreationDate(): number; + setCreationDate(value: number): Proposal; + + getTxId(): string; + setTxId(value: string): Proposal; + + getCompensationProposal(): CompensationProposal | undefined; + setCompensationProposal(value?: CompensationProposal): Proposal; + hasCompensationProposal(): boolean; + clearCompensationProposal(): Proposal; + + getReimbursementProposal(): ReimbursementProposal | undefined; + setReimbursementProposal(value?: ReimbursementProposal): Proposal; + hasReimbursementProposal(): boolean; + clearReimbursementProposal(): Proposal; + + getChangeParamProposal(): ChangeParamProposal | undefined; + setChangeParamProposal(value?: ChangeParamProposal): Proposal; + hasChangeParamProposal(): boolean; + clearChangeParamProposal(): Proposal; + + getRoleProposal(): RoleProposal | undefined; + setRoleProposal(value?: RoleProposal): Proposal; + hasRoleProposal(): boolean; + clearRoleProposal(): Proposal; + + getConfiscateBondProposal(): ConfiscateBondProposal | undefined; + setConfiscateBondProposal(value?: ConfiscateBondProposal): Proposal; + hasConfiscateBondProposal(): boolean; + clearConfiscateBondProposal(): Proposal; + + getGenericProposal(): GenericProposal | undefined; + setGenericProposal(value?: GenericProposal): Proposal; + hasGenericProposal(): boolean; + clearGenericProposal(): Proposal; + + getRemoveAssetProposal(): RemoveAssetProposal | undefined; + setRemoveAssetProposal(value?: RemoveAssetProposal): Proposal; + hasRemoveAssetProposal(): boolean; + clearRemoveAssetProposal(): Proposal; + + getExtraDataMap(): jspb.Map; + clearExtraDataMap(): Proposal; + + getMessageCase(): Proposal.MessageCase; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Proposal.AsObject; + static toObject(includeInstance: boolean, msg: Proposal): Proposal.AsObject; + static serializeBinaryToWriter(message: Proposal, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Proposal; + static deserializeBinaryFromReader(message: Proposal, reader: jspb.BinaryReader): Proposal; +} + +export namespace Proposal { + export type AsObject = { + name: string, + link: string, + version: number, + creationDate: number, + txId: string, + compensationProposal?: CompensationProposal.AsObject, + reimbursementProposal?: ReimbursementProposal.AsObject, + changeParamProposal?: ChangeParamProposal.AsObject, + roleProposal?: RoleProposal.AsObject, + confiscateBondProposal?: ConfiscateBondProposal.AsObject, + genericProposal?: GenericProposal.AsObject, + removeAssetProposal?: RemoveAssetProposal.AsObject, + extraDataMap: Array<[string, string]>, + } + + export enum MessageCase { + MESSAGE_NOT_SET = 0, + COMPENSATION_PROPOSAL = 6, + REIMBURSEMENT_PROPOSAL = 7, + CHANGE_PARAM_PROPOSAL = 8, + ROLE_PROPOSAL = 9, + CONFISCATE_BOND_PROPOSAL = 10, + GENERIC_PROPOSAL = 11, + REMOVE_ASSET_PROPOSAL = 12, + } +} + +export class CompensationProposal extends jspb.Message { + getRequestedBsq(): number; + setRequestedBsq(value: number): CompensationProposal; + + getBsqAddress(): string; + setBsqAddress(value: string): CompensationProposal; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CompensationProposal.AsObject; + static toObject(includeInstance: boolean, msg: CompensationProposal): CompensationProposal.AsObject; + static serializeBinaryToWriter(message: CompensationProposal, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): CompensationProposal; + static deserializeBinaryFromReader(message: CompensationProposal, reader: jspb.BinaryReader): CompensationProposal; +} + +export namespace CompensationProposal { + export type AsObject = { + requestedBsq: number, + bsqAddress: string, + } +} + +export class ReimbursementProposal extends jspb.Message { + getRequestedBsq(): number; + setRequestedBsq(value: number): ReimbursementProposal; + + getBsqAddress(): string; + setBsqAddress(value: string): ReimbursementProposal; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ReimbursementProposal.AsObject; + static toObject(includeInstance: boolean, msg: ReimbursementProposal): ReimbursementProposal.AsObject; + static serializeBinaryToWriter(message: ReimbursementProposal, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ReimbursementProposal; + static deserializeBinaryFromReader(message: ReimbursementProposal, reader: jspb.BinaryReader): ReimbursementProposal; +} + +export namespace ReimbursementProposal { + export type AsObject = { + requestedBsq: number, + bsqAddress: string, + } +} + +export class ChangeParamProposal extends jspb.Message { + getParam(): string; + setParam(value: string): ChangeParamProposal; + + getParamValue(): string; + setParamValue(value: string): ChangeParamProposal; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ChangeParamProposal.AsObject; + static toObject(includeInstance: boolean, msg: ChangeParamProposal): ChangeParamProposal.AsObject; + static serializeBinaryToWriter(message: ChangeParamProposal, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ChangeParamProposal; + static deserializeBinaryFromReader(message: ChangeParamProposal, reader: jspb.BinaryReader): ChangeParamProposal; +} + +export namespace ChangeParamProposal { + export type AsObject = { + param: string, + paramValue: string, + } +} + +export class RoleProposal extends jspb.Message { + getRole(): Role | undefined; + setRole(value?: Role): RoleProposal; + hasRole(): boolean; + clearRole(): RoleProposal; + + getRequiredBondUnit(): number; + setRequiredBondUnit(value: number): RoleProposal; + + getUnlockTime(): number; + setUnlockTime(value: number): RoleProposal; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): RoleProposal.AsObject; + static toObject(includeInstance: boolean, msg: RoleProposal): RoleProposal.AsObject; + static serializeBinaryToWriter(message: RoleProposal, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): RoleProposal; + static deserializeBinaryFromReader(message: RoleProposal, reader: jspb.BinaryReader): RoleProposal; +} + +export namespace RoleProposal { + export type AsObject = { + role?: Role.AsObject, + requiredBondUnit: number, + unlockTime: number, + } +} + +export class ConfiscateBondProposal extends jspb.Message { + getLockupTxId(): string; + setLockupTxId(value: string): ConfiscateBondProposal; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ConfiscateBondProposal.AsObject; + static toObject(includeInstance: boolean, msg: ConfiscateBondProposal): ConfiscateBondProposal.AsObject; + static serializeBinaryToWriter(message: ConfiscateBondProposal, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ConfiscateBondProposal; + static deserializeBinaryFromReader(message: ConfiscateBondProposal, reader: jspb.BinaryReader): ConfiscateBondProposal; +} + +export namespace ConfiscateBondProposal { + export type AsObject = { + lockupTxId: string, + } +} + +export class GenericProposal extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GenericProposal.AsObject; + static toObject(includeInstance: boolean, msg: GenericProposal): GenericProposal.AsObject; + static serializeBinaryToWriter(message: GenericProposal, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GenericProposal; + static deserializeBinaryFromReader(message: GenericProposal, reader: jspb.BinaryReader): GenericProposal; +} + +export namespace GenericProposal { + export type AsObject = { + } +} + +export class RemoveAssetProposal extends jspb.Message { + getTickerSymbol(): string; + setTickerSymbol(value: string): RemoveAssetProposal; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): RemoveAssetProposal.AsObject; + static toObject(includeInstance: boolean, msg: RemoveAssetProposal): RemoveAssetProposal.AsObject; + static serializeBinaryToWriter(message: RemoveAssetProposal, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): RemoveAssetProposal; + static deserializeBinaryFromReader(message: RemoveAssetProposal, reader: jspb.BinaryReader): RemoveAssetProposal; +} + +export namespace RemoveAssetProposal { + export type AsObject = { + tickerSymbol: string, + } +} + +export class Role extends jspb.Message { + getUid(): string; + setUid(value: string): Role; + + getName(): string; + setName(value: string): Role; + + getLink(): string; + setLink(value: string): Role; + + getBondedRoleType(): string; + setBondedRoleType(value: string): Role; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Role.AsObject; + static toObject(includeInstance: boolean, msg: Role): Role.AsObject; + static serializeBinaryToWriter(message: Role, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Role; + static deserializeBinaryFromReader(message: Role, reader: jspb.BinaryReader): Role; +} + +export namespace Role { + export type AsObject = { + uid: string, + name: string, + link: string, + bondedRoleType: string, + } +} + +export class MyReputation extends jspb.Message { + getUid(): string; + setUid(value: string): MyReputation; + + getSalt(): Uint8Array | string; + getSalt_asU8(): Uint8Array; + getSalt_asB64(): string; + setSalt(value: Uint8Array | string): MyReputation; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MyReputation.AsObject; + static toObject(includeInstance: boolean, msg: MyReputation): MyReputation.AsObject; + static serializeBinaryToWriter(message: MyReputation, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MyReputation; + static deserializeBinaryFromReader(message: MyReputation, reader: jspb.BinaryReader): MyReputation; +} + +export namespace MyReputation { + export type AsObject = { + uid: string, + salt: Uint8Array | string, + } +} + +export class MyReputationList extends jspb.Message { + getMyReputationList(): Array; + setMyReputationList(value: Array): MyReputationList; + clearMyReputationList(): MyReputationList; + addMyReputation(value?: MyReputation, index?: number): MyReputation; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MyReputationList.AsObject; + static toObject(includeInstance: boolean, msg: MyReputationList): MyReputationList.AsObject; + static serializeBinaryToWriter(message: MyReputationList, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MyReputationList; + static deserializeBinaryFromReader(message: MyReputationList, reader: jspb.BinaryReader): MyReputationList; +} + +export namespace MyReputationList { + export type AsObject = { + myReputationList: Array, + } +} + +export class MyProofOfBurn extends jspb.Message { + getTxId(): string; + setTxId(value: string): MyProofOfBurn; + + getPreImage(): string; + setPreImage(value: string): MyProofOfBurn; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MyProofOfBurn.AsObject; + static toObject(includeInstance: boolean, msg: MyProofOfBurn): MyProofOfBurn.AsObject; + static serializeBinaryToWriter(message: MyProofOfBurn, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MyProofOfBurn; + static deserializeBinaryFromReader(message: MyProofOfBurn, reader: jspb.BinaryReader): MyProofOfBurn; +} + +export namespace MyProofOfBurn { + export type AsObject = { + txId: string, + preImage: string, + } +} + +export class MyProofOfBurnList extends jspb.Message { + getMyProofOfBurnList(): Array; + setMyProofOfBurnList(value: Array): MyProofOfBurnList; + clearMyProofOfBurnList(): MyProofOfBurnList; + addMyProofOfBurn(value?: MyProofOfBurn, index?: number): MyProofOfBurn; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MyProofOfBurnList.AsObject; + static toObject(includeInstance: boolean, msg: MyProofOfBurnList): MyProofOfBurnList.AsObject; + static serializeBinaryToWriter(message: MyProofOfBurnList, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MyProofOfBurnList; + static deserializeBinaryFromReader(message: MyProofOfBurnList, reader: jspb.BinaryReader): MyProofOfBurnList; +} + +export namespace MyProofOfBurnList { + export type AsObject = { + myProofOfBurnList: Array, + } +} + +export class UnconfirmedBsqChangeOutputList extends jspb.Message { + getUnconfirmedTxOutputList(): Array; + setUnconfirmedTxOutputList(value: Array): UnconfirmedBsqChangeOutputList; + clearUnconfirmedTxOutputList(): UnconfirmedBsqChangeOutputList; + addUnconfirmedTxOutput(value?: UnconfirmedTxOutput, index?: number): UnconfirmedTxOutput; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): UnconfirmedBsqChangeOutputList.AsObject; + static toObject(includeInstance: boolean, msg: UnconfirmedBsqChangeOutputList): UnconfirmedBsqChangeOutputList.AsObject; + static serializeBinaryToWriter(message: UnconfirmedBsqChangeOutputList, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): UnconfirmedBsqChangeOutputList; + static deserializeBinaryFromReader(message: UnconfirmedBsqChangeOutputList, reader: jspb.BinaryReader): UnconfirmedBsqChangeOutputList; +} + +export namespace UnconfirmedBsqChangeOutputList { + export type AsObject = { + unconfirmedTxOutputList: Array, + } +} + +export class TempProposalPayload extends jspb.Message { + getProposal(): Proposal | undefined; + setProposal(value?: Proposal): TempProposalPayload; + hasProposal(): boolean; + clearProposal(): TempProposalPayload; + + getOwnerPubKeyEncoded(): Uint8Array | string; + getOwnerPubKeyEncoded_asU8(): Uint8Array; + getOwnerPubKeyEncoded_asB64(): string; + setOwnerPubKeyEncoded(value: Uint8Array | string): TempProposalPayload; + + getExtraDataMap(): jspb.Map; + clearExtraDataMap(): TempProposalPayload; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): TempProposalPayload.AsObject; + static toObject(includeInstance: boolean, msg: TempProposalPayload): TempProposalPayload.AsObject; + static serializeBinaryToWriter(message: TempProposalPayload, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): TempProposalPayload; + static deserializeBinaryFromReader(message: TempProposalPayload, reader: jspb.BinaryReader): TempProposalPayload; +} + +export namespace TempProposalPayload { + export type AsObject = { + proposal?: Proposal.AsObject, + ownerPubKeyEncoded: Uint8Array | string, + extraDataMap: Array<[string, string]>, + } +} + +export class ProposalPayload extends jspb.Message { + getProposal(): Proposal | undefined; + setProposal(value?: Proposal): ProposalPayload; + hasProposal(): boolean; + clearProposal(): ProposalPayload; + + getHash(): Uint8Array | string; + getHash_asU8(): Uint8Array; + getHash_asB64(): string; + setHash(value: Uint8Array | string): ProposalPayload; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ProposalPayload.AsObject; + static toObject(includeInstance: boolean, msg: ProposalPayload): ProposalPayload.AsObject; + static serializeBinaryToWriter(message: ProposalPayload, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ProposalPayload; + static deserializeBinaryFromReader(message: ProposalPayload, reader: jspb.BinaryReader): ProposalPayload; +} + +export namespace ProposalPayload { + export type AsObject = { + proposal?: Proposal.AsObject, + hash: Uint8Array | string, + } +} + +export class ProposalStore extends jspb.Message { + getItemsList(): Array; + setItemsList(value: Array): ProposalStore; + clearItemsList(): ProposalStore; + addItems(value?: ProposalPayload, index?: number): ProposalPayload; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ProposalStore.AsObject; + static toObject(includeInstance: boolean, msg: ProposalStore): ProposalStore.AsObject; + static serializeBinaryToWriter(message: ProposalStore, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ProposalStore; + static deserializeBinaryFromReader(message: ProposalStore, reader: jspb.BinaryReader): ProposalStore; +} + +export namespace ProposalStore { + export type AsObject = { + itemsList: Array, + } +} + +export class TempProposalStore extends jspb.Message { + getItemsList(): Array; + setItemsList(value: Array): TempProposalStore; + clearItemsList(): TempProposalStore; + addItems(value?: ProtectedStorageEntry, index?: number): ProtectedStorageEntry; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): TempProposalStore.AsObject; + static toObject(includeInstance: boolean, msg: TempProposalStore): TempProposalStore.AsObject; + static serializeBinaryToWriter(message: TempProposalStore, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): TempProposalStore; + static deserializeBinaryFromReader(message: TempProposalStore, reader: jspb.BinaryReader): TempProposalStore; +} + +export namespace TempProposalStore { + export type AsObject = { + itemsList: Array, + } +} + +export class Ballot extends jspb.Message { + getProposal(): Proposal | undefined; + setProposal(value?: Proposal): Ballot; + hasProposal(): boolean; + clearProposal(): Ballot; + + getVote(): Vote | undefined; + setVote(value?: Vote): Ballot; + hasVote(): boolean; + clearVote(): Ballot; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Ballot.AsObject; + static toObject(includeInstance: boolean, msg: Ballot): Ballot.AsObject; + static serializeBinaryToWriter(message: Ballot, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Ballot; + static deserializeBinaryFromReader(message: Ballot, reader: jspb.BinaryReader): Ballot; +} + +export namespace Ballot { + export type AsObject = { + proposal?: Proposal.AsObject, + vote?: Vote.AsObject, + } +} + +export class MyProposalList extends jspb.Message { + getProposalList(): Array; + setProposalList(value: Array): MyProposalList; + clearProposalList(): MyProposalList; + addProposal(value?: Proposal, index?: number): Proposal; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MyProposalList.AsObject; + static toObject(includeInstance: boolean, msg: MyProposalList): MyProposalList.AsObject; + static serializeBinaryToWriter(message: MyProposalList, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MyProposalList; + static deserializeBinaryFromReader(message: MyProposalList, reader: jspb.BinaryReader): MyProposalList; +} + +export namespace MyProposalList { + export type AsObject = { + proposalList: Array, + } +} + +export class BallotList extends jspb.Message { + getBallotList(): Array; + setBallotList(value: Array): BallotList; + clearBallotList(): BallotList; + addBallot(value?: Ballot, index?: number): Ballot; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): BallotList.AsObject; + static toObject(includeInstance: boolean, msg: BallotList): BallotList.AsObject; + static serializeBinaryToWriter(message: BallotList, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): BallotList; + static deserializeBinaryFromReader(message: BallotList, reader: jspb.BinaryReader): BallotList; +} + +export namespace BallotList { + export type AsObject = { + ballotList: Array, + } +} + +export class ParamChange extends jspb.Message { + getParamName(): string; + setParamName(value: string): ParamChange; + + getParamValue(): string; + setParamValue(value: string): ParamChange; + + getActivationHeight(): number; + setActivationHeight(value: number): ParamChange; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ParamChange.AsObject; + static toObject(includeInstance: boolean, msg: ParamChange): ParamChange.AsObject; + static serializeBinaryToWriter(message: ParamChange, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ParamChange; + static deserializeBinaryFromReader(message: ParamChange, reader: jspb.BinaryReader): ParamChange; +} + +export namespace ParamChange { + export type AsObject = { + paramName: string, + paramValue: string, + activationHeight: number, + } +} + +export class ConfiscateBond extends jspb.Message { + getLockupTxId(): string; + setLockupTxId(value: string): ConfiscateBond; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ConfiscateBond.AsObject; + static toObject(includeInstance: boolean, msg: ConfiscateBond): ConfiscateBond.AsObject; + static serializeBinaryToWriter(message: ConfiscateBond, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ConfiscateBond; + static deserializeBinaryFromReader(message: ConfiscateBond, reader: jspb.BinaryReader): ConfiscateBond; +} + +export namespace ConfiscateBond { + export type AsObject = { + lockupTxId: string, + } +} + +export class MyVote extends jspb.Message { + getHeight(): number; + setHeight(value: number): MyVote; + + getBallotList(): BallotList | undefined; + setBallotList(value?: BallotList): MyVote; + hasBallotList(): boolean; + clearBallotList(): MyVote; + + getSecretKeyEncoded(): Uint8Array | string; + getSecretKeyEncoded_asU8(): Uint8Array; + getSecretKeyEncoded_asB64(): string; + setSecretKeyEncoded(value: Uint8Array | string): MyVote; + + getBlindVote(): BlindVote | undefined; + setBlindVote(value?: BlindVote): MyVote; + hasBlindVote(): boolean; + clearBlindVote(): MyVote; + + getDate(): number; + setDate(value: number): MyVote; + + getRevealTxId(): string; + setRevealTxId(value: string): MyVote; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MyVote.AsObject; + static toObject(includeInstance: boolean, msg: MyVote): MyVote.AsObject; + static serializeBinaryToWriter(message: MyVote, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MyVote; + static deserializeBinaryFromReader(message: MyVote, reader: jspb.BinaryReader): MyVote; +} + +export namespace MyVote { + export type AsObject = { + height: number, + ballotList?: BallotList.AsObject, + secretKeyEncoded: Uint8Array | string, + blindVote?: BlindVote.AsObject, + date: number, + revealTxId: string, + } +} + +export class MyVoteList extends jspb.Message { + getMyVoteList(): Array; + setMyVoteList(value: Array): MyVoteList; + clearMyVoteList(): MyVoteList; + addMyVote(value?: MyVote, index?: number): MyVote; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MyVoteList.AsObject; + static toObject(includeInstance: boolean, msg: MyVoteList): MyVoteList.AsObject; + static serializeBinaryToWriter(message: MyVoteList, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MyVoteList; + static deserializeBinaryFromReader(message: MyVoteList, reader: jspb.BinaryReader): MyVoteList; +} + +export namespace MyVoteList { + export type AsObject = { + myVoteList: Array, + } +} + +export class VoteWithProposalTxId extends jspb.Message { + getProposalTxId(): string; + setProposalTxId(value: string): VoteWithProposalTxId; + + getVote(): Vote | undefined; + setVote(value?: Vote): VoteWithProposalTxId; + hasVote(): boolean; + clearVote(): VoteWithProposalTxId; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): VoteWithProposalTxId.AsObject; + static toObject(includeInstance: boolean, msg: VoteWithProposalTxId): VoteWithProposalTxId.AsObject; + static serializeBinaryToWriter(message: VoteWithProposalTxId, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): VoteWithProposalTxId; + static deserializeBinaryFromReader(message: VoteWithProposalTxId, reader: jspb.BinaryReader): VoteWithProposalTxId; +} + +export namespace VoteWithProposalTxId { + export type AsObject = { + proposalTxId: string, + vote?: Vote.AsObject, + } +} + +export class VoteWithProposalTxIdList extends jspb.Message { + getItemList(): Array; + setItemList(value: Array): VoteWithProposalTxIdList; + clearItemList(): VoteWithProposalTxIdList; + addItem(value?: VoteWithProposalTxId, index?: number): VoteWithProposalTxId; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): VoteWithProposalTxIdList.AsObject; + static toObject(includeInstance: boolean, msg: VoteWithProposalTxIdList): VoteWithProposalTxIdList.AsObject; + static serializeBinaryToWriter(message: VoteWithProposalTxIdList, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): VoteWithProposalTxIdList; + static deserializeBinaryFromReader(message: VoteWithProposalTxIdList, reader: jspb.BinaryReader): VoteWithProposalTxIdList; +} + +export namespace VoteWithProposalTxIdList { + export type AsObject = { + itemList: Array, + } +} + +export class BlindVote extends jspb.Message { + getEncryptedVotes(): Uint8Array | string; + getEncryptedVotes_asU8(): Uint8Array; + getEncryptedVotes_asB64(): string; + setEncryptedVotes(value: Uint8Array | string): BlindVote; + + getTxId(): string; + setTxId(value: string): BlindVote; + + getStake(): number; + setStake(value: number): BlindVote; + + getEncryptedMeritList(): Uint8Array | string; + getEncryptedMeritList_asU8(): Uint8Array; + getEncryptedMeritList_asB64(): string; + setEncryptedMeritList(value: Uint8Array | string): BlindVote; + + getDate(): number; + setDate(value: number): BlindVote; + + getExtraDataMap(): jspb.Map; + clearExtraDataMap(): BlindVote; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): BlindVote.AsObject; + static toObject(includeInstance: boolean, msg: BlindVote): BlindVote.AsObject; + static serializeBinaryToWriter(message: BlindVote, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): BlindVote; + static deserializeBinaryFromReader(message: BlindVote, reader: jspb.BinaryReader): BlindVote; +} + +export namespace BlindVote { + export type AsObject = { + encryptedVotes: Uint8Array | string, + txId: string, + stake: number, + encryptedMeritList: Uint8Array | string, + date: number, + extraDataMap: Array<[string, string]>, + } +} + +export class MyBlindVoteList extends jspb.Message { + getBlindVoteList(): Array; + setBlindVoteList(value: Array): MyBlindVoteList; + clearBlindVoteList(): MyBlindVoteList; + addBlindVote(value?: BlindVote, index?: number): BlindVote; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MyBlindVoteList.AsObject; + static toObject(includeInstance: boolean, msg: MyBlindVoteList): MyBlindVoteList.AsObject; + static serializeBinaryToWriter(message: MyBlindVoteList, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MyBlindVoteList; + static deserializeBinaryFromReader(message: MyBlindVoteList, reader: jspb.BinaryReader): MyBlindVoteList; +} + +export namespace MyBlindVoteList { + export type AsObject = { + blindVoteList: Array, + } +} + +export class BlindVoteStore extends jspb.Message { + getItemsList(): Array; + setItemsList(value: Array): BlindVoteStore; + clearItemsList(): BlindVoteStore; + addItems(value?: BlindVotePayload, index?: number): BlindVotePayload; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): BlindVoteStore.AsObject; + static toObject(includeInstance: boolean, msg: BlindVoteStore): BlindVoteStore.AsObject; + static serializeBinaryToWriter(message: BlindVoteStore, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): BlindVoteStore; + static deserializeBinaryFromReader(message: BlindVoteStore, reader: jspb.BinaryReader): BlindVoteStore; +} + +export namespace BlindVoteStore { + export type AsObject = { + itemsList: Array, + } +} + +export class BlindVotePayload extends jspb.Message { + getBlindVote(): BlindVote | undefined; + setBlindVote(value?: BlindVote): BlindVotePayload; + hasBlindVote(): boolean; + clearBlindVote(): BlindVotePayload; + + getHash(): Uint8Array | string; + getHash_asU8(): Uint8Array; + getHash_asB64(): string; + setHash(value: Uint8Array | string): BlindVotePayload; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): BlindVotePayload.AsObject; + static toObject(includeInstance: boolean, msg: BlindVotePayload): BlindVotePayload.AsObject; + static serializeBinaryToWriter(message: BlindVotePayload, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): BlindVotePayload; + static deserializeBinaryFromReader(message: BlindVotePayload, reader: jspb.BinaryReader): BlindVotePayload; +} + +export namespace BlindVotePayload { + export type AsObject = { + blindVote?: BlindVote.AsObject, + hash: Uint8Array | string, + } +} + +export class Vote extends jspb.Message { + getAccepted(): boolean; + setAccepted(value: boolean): Vote; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Vote.AsObject; + static toObject(includeInstance: boolean, msg: Vote): Vote.AsObject; + static serializeBinaryToWriter(message: Vote, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Vote; + static deserializeBinaryFromReader(message: Vote, reader: jspb.BinaryReader): Vote; +} + +export namespace Vote { + export type AsObject = { + accepted: boolean, + } +} + +export class Merit extends jspb.Message { + getIssuance(): Issuance | undefined; + setIssuance(value?: Issuance): Merit; + hasIssuance(): boolean; + clearIssuance(): Merit; + + getSignature(): Uint8Array | string; + getSignature_asU8(): Uint8Array; + getSignature_asB64(): string; + setSignature(value: Uint8Array | string): Merit; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Merit.AsObject; + static toObject(includeInstance: boolean, msg: Merit): Merit.AsObject; + static serializeBinaryToWriter(message: Merit, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Merit; + static deserializeBinaryFromReader(message: Merit, reader: jspb.BinaryReader): Merit; +} + +export namespace Merit { + export type AsObject = { + issuance?: Issuance.AsObject, + signature: Uint8Array | string, + } +} + +export class MeritList extends jspb.Message { + getMeritList(): Array; + setMeritList(value: Array): MeritList; + clearMeritList(): MeritList; + addMerit(value?: Merit, index?: number): Merit; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MeritList.AsObject; + static toObject(includeInstance: boolean, msg: MeritList): MeritList.AsObject; + static serializeBinaryToWriter(message: MeritList, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MeritList; + static deserializeBinaryFromReader(message: MeritList, reader: jspb.BinaryReader): MeritList; +} + +export namespace MeritList { + export type AsObject = { + meritList: Array, + } +} + +export class ProposalVoteResult extends jspb.Message { + getProposal(): Proposal | undefined; + setProposal(value?: Proposal): ProposalVoteResult; + hasProposal(): boolean; + clearProposal(): ProposalVoteResult; + + getStakeOfAcceptedVotes(): number; + setStakeOfAcceptedVotes(value: number): ProposalVoteResult; + + getStakeOfRejectedVotes(): number; + setStakeOfRejectedVotes(value: number): ProposalVoteResult; + + getNumAcceptedVotes(): number; + setNumAcceptedVotes(value: number): ProposalVoteResult; + + getNumRejectedVotes(): number; + setNumRejectedVotes(value: number): ProposalVoteResult; + + getNumIgnoredVotes(): number; + setNumIgnoredVotes(value: number): ProposalVoteResult; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ProposalVoteResult.AsObject; + static toObject(includeInstance: boolean, msg: ProposalVoteResult): ProposalVoteResult.AsObject; + static serializeBinaryToWriter(message: ProposalVoteResult, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ProposalVoteResult; + static deserializeBinaryFromReader(message: ProposalVoteResult, reader: jspb.BinaryReader): ProposalVoteResult; +} + +export namespace ProposalVoteResult { + export type AsObject = { + proposal?: Proposal.AsObject, + stakeOfAcceptedVotes: number, + stakeOfRejectedVotes: number, + numAcceptedVotes: number, + numRejectedVotes: number, + numIgnoredVotes: number, + } +} + +export class EvaluatedProposal extends jspb.Message { + getIsAccepted(): boolean; + setIsAccepted(value: boolean): EvaluatedProposal; + + getProposalVoteResult(): ProposalVoteResult | undefined; + setProposalVoteResult(value?: ProposalVoteResult): EvaluatedProposal; + hasProposalVoteResult(): boolean; + clearProposalVoteResult(): EvaluatedProposal; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): EvaluatedProposal.AsObject; + static toObject(includeInstance: boolean, msg: EvaluatedProposal): EvaluatedProposal.AsObject; + static serializeBinaryToWriter(message: EvaluatedProposal, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): EvaluatedProposal; + static deserializeBinaryFromReader(message: EvaluatedProposal, reader: jspb.BinaryReader): EvaluatedProposal; +} + +export namespace EvaluatedProposal { + export type AsObject = { + isAccepted: boolean, + proposalVoteResult?: ProposalVoteResult.AsObject, + } +} + +export class DecryptedBallotsWithMerits extends jspb.Message { + getHashOfBlindVoteList(): Uint8Array | string; + getHashOfBlindVoteList_asU8(): Uint8Array; + getHashOfBlindVoteList_asB64(): string; + setHashOfBlindVoteList(value: Uint8Array | string): DecryptedBallotsWithMerits; + + getBlindVoteTxId(): string; + setBlindVoteTxId(value: string): DecryptedBallotsWithMerits; + + getVoteRevealTxId(): string; + setVoteRevealTxId(value: string): DecryptedBallotsWithMerits; + + getStake(): number; + setStake(value: number): DecryptedBallotsWithMerits; + + getBallotList(): BallotList | undefined; + setBallotList(value?: BallotList): DecryptedBallotsWithMerits; + hasBallotList(): boolean; + clearBallotList(): DecryptedBallotsWithMerits; + + getMeritList(): MeritList | undefined; + setMeritList(value?: MeritList): DecryptedBallotsWithMerits; + hasMeritList(): boolean; + clearMeritList(): DecryptedBallotsWithMerits; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DecryptedBallotsWithMerits.AsObject; + static toObject(includeInstance: boolean, msg: DecryptedBallotsWithMerits): DecryptedBallotsWithMerits.AsObject; + static serializeBinaryToWriter(message: DecryptedBallotsWithMerits, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DecryptedBallotsWithMerits; + static deserializeBinaryFromReader(message: DecryptedBallotsWithMerits, reader: jspb.BinaryReader): DecryptedBallotsWithMerits; +} + +export namespace DecryptedBallotsWithMerits { + export type AsObject = { + hashOfBlindVoteList: Uint8Array | string, + blindVoteTxId: string, + voteRevealTxId: string, + stake: number, + ballotList?: BallotList.AsObject, + meritList?: MeritList.AsObject, + } +} + +export class DaoStateStore extends jspb.Message { + getDaoState(): DaoState | undefined; + setDaoState(value?: DaoState): DaoStateStore; + hasDaoState(): boolean; + clearDaoState(): DaoStateStore; + + getDaoStateHashList(): Array; + setDaoStateHashList(value: Array): DaoStateStore; + clearDaoStateHashList(): DaoStateStore; + addDaoStateHash(value?: DaoStateHash, index?: number): DaoStateHash; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DaoStateStore.AsObject; + static toObject(includeInstance: boolean, msg: DaoStateStore): DaoStateStore.AsObject; + static serializeBinaryToWriter(message: DaoStateStore, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DaoStateStore; + static deserializeBinaryFromReader(message: DaoStateStore, reader: jspb.BinaryReader): DaoStateStore; +} + +export namespace DaoStateStore { + export type AsObject = { + daoState?: DaoState.AsObject, + daoStateHashList: Array, + } +} + +export class DaoStateHash extends jspb.Message { + getHeight(): number; + setHeight(value: number): DaoStateHash; + + getHash(): Uint8Array | string; + getHash_asU8(): Uint8Array; + getHash_asB64(): string; + setHash(value: Uint8Array | string): DaoStateHash; + + getPrevHash(): Uint8Array | string; + getPrevHash_asU8(): Uint8Array; + getPrevHash_asB64(): string; + setPrevHash(value: Uint8Array | string): DaoStateHash; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DaoStateHash.AsObject; + static toObject(includeInstance: boolean, msg: DaoStateHash): DaoStateHash.AsObject; + static serializeBinaryToWriter(message: DaoStateHash, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DaoStateHash; + static deserializeBinaryFromReader(message: DaoStateHash, reader: jspb.BinaryReader): DaoStateHash; +} + +export namespace DaoStateHash { + export type AsObject = { + height: number, + hash: Uint8Array | string, + prevHash: Uint8Array | string, + } +} + +export class ProposalStateHash extends jspb.Message { + getHeight(): number; + setHeight(value: number): ProposalStateHash; + + getHash(): Uint8Array | string; + getHash_asU8(): Uint8Array; + getHash_asB64(): string; + setHash(value: Uint8Array | string): ProposalStateHash; + + getPrevHash(): Uint8Array | string; + getPrevHash_asU8(): Uint8Array; + getPrevHash_asB64(): string; + setPrevHash(value: Uint8Array | string): ProposalStateHash; + + getNumProposals(): number; + setNumProposals(value: number): ProposalStateHash; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ProposalStateHash.AsObject; + static toObject(includeInstance: boolean, msg: ProposalStateHash): ProposalStateHash.AsObject; + static serializeBinaryToWriter(message: ProposalStateHash, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ProposalStateHash; + static deserializeBinaryFromReader(message: ProposalStateHash, reader: jspb.BinaryReader): ProposalStateHash; +} + +export namespace ProposalStateHash { + export type AsObject = { + height: number, + hash: Uint8Array | string, + prevHash: Uint8Array | string, + numProposals: number, + } +} + +export class BlindVoteStateHash extends jspb.Message { + getHeight(): number; + setHeight(value: number): BlindVoteStateHash; + + getHash(): Uint8Array | string; + getHash_asU8(): Uint8Array; + getHash_asB64(): string; + setHash(value: Uint8Array | string): BlindVoteStateHash; + + getPrevHash(): Uint8Array | string; + getPrevHash_asU8(): Uint8Array; + getPrevHash_asB64(): string; + setPrevHash(value: Uint8Array | string): BlindVoteStateHash; + + getNumBlindVotes(): number; + setNumBlindVotes(value: number): BlindVoteStateHash; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): BlindVoteStateHash.AsObject; + static toObject(includeInstance: boolean, msg: BlindVoteStateHash): BlindVoteStateHash.AsObject; + static serializeBinaryToWriter(message: BlindVoteStateHash, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): BlindVoteStateHash; + static deserializeBinaryFromReader(message: BlindVoteStateHash, reader: jspb.BinaryReader): BlindVoteStateHash; +} + +export namespace BlindVoteStateHash { + export type AsObject = { + height: number, + hash: Uint8Array | string, + prevHash: Uint8Array | string, + numBlindVotes: number, + } +} + +export class BlockChainExplorer extends jspb.Message { + getName(): string; + setName(value: string): BlockChainExplorer; + + getTxUrl(): string; + setTxUrl(value: string): BlockChainExplorer; + + getAddressUrl(): string; + setAddressUrl(value: string): BlockChainExplorer; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): BlockChainExplorer.AsObject; + static toObject(includeInstance: boolean, msg: BlockChainExplorer): BlockChainExplorer.AsObject; + static serializeBinaryToWriter(message: BlockChainExplorer, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): BlockChainExplorer; + static deserializeBinaryFromReader(message: BlockChainExplorer, reader: jspb.BinaryReader): BlockChainExplorer; +} + +export namespace BlockChainExplorer { + export type AsObject = { + name: string, + txUrl: string, + addressUrl: string, + } +} + +export class PaymentAccount extends jspb.Message { + getId(): string; + setId(value: string): PaymentAccount; + + getCreationDate(): string; + setCreationDate(value: string): PaymentAccount; + + getPaymentMethod(): PaymentMethod | undefined; + setPaymentMethod(value?: PaymentMethod): PaymentAccount; + hasPaymentMethod(): boolean; + clearPaymentMethod(): PaymentAccount; + + getAccountName(): string; + setAccountName(value: string): PaymentAccount; + + getTradeCurrenciesList(): Array; + setTradeCurrenciesList(value: Array): PaymentAccount; + clearTradeCurrenciesList(): PaymentAccount; + addTradeCurrencies(value?: TradeCurrency, index?: number): TradeCurrency; + + getSelectedTradeCurrency(): TradeCurrency | undefined; + setSelectedTradeCurrency(value?: TradeCurrency): PaymentAccount; + hasSelectedTradeCurrency(): boolean; + clearSelectedTradeCurrency(): PaymentAccount; + + getPaymentAccountPayload(): PaymentAccountPayload | undefined; + setPaymentAccountPayload(value?: PaymentAccountPayload): PaymentAccount; + hasPaymentAccountPayload(): boolean; + clearPaymentAccountPayload(): PaymentAccount; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PaymentAccount.AsObject; + static toObject(includeInstance: boolean, msg: PaymentAccount): PaymentAccount.AsObject; + static serializeBinaryToWriter(message: PaymentAccount, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PaymentAccount; + static deserializeBinaryFromReader(message: PaymentAccount, reader: jspb.BinaryReader): PaymentAccount; +} + +export namespace PaymentAccount { + export type AsObject = { + id: string, + creationDate: string, + paymentMethod?: PaymentMethod.AsObject, + accountName: string, + tradeCurrenciesList: Array, + selectedTradeCurrency?: TradeCurrency.AsObject, + paymentAccountPayload?: PaymentAccountPayload.AsObject, + } +} + +export class PaymentMethod extends jspb.Message { + getId(): string; + setId(value: string): PaymentMethod; + + getMaxTradePeriod(): string; + setMaxTradePeriod(value: string): PaymentMethod; + + getMaxTradeLimit(): string; + setMaxTradeLimit(value: string): PaymentMethod; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PaymentMethod.AsObject; + static toObject(includeInstance: boolean, msg: PaymentMethod): PaymentMethod.AsObject; + static serializeBinaryToWriter(message: PaymentMethod, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PaymentMethod; + static deserializeBinaryFromReader(message: PaymentMethod, reader: jspb.BinaryReader): PaymentMethod; +} + +export namespace PaymentMethod { + export type AsObject = { + id: string, + maxTradePeriod: string, + maxTradeLimit: string, + } +} + +export class Currency extends jspb.Message { + getCurrencyCode(): string; + setCurrencyCode(value: string): Currency; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Currency.AsObject; + static toObject(includeInstance: boolean, msg: Currency): Currency.AsObject; + static serializeBinaryToWriter(message: Currency, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Currency; + static deserializeBinaryFromReader(message: Currency, reader: jspb.BinaryReader): Currency; +} + +export namespace Currency { + export type AsObject = { + currencyCode: string, + } +} + +export class TradeCurrency extends jspb.Message { + getCode(): string; + setCode(value: string): TradeCurrency; + + getName(): string; + setName(value: string): TradeCurrency; + + getCryptoCurrency(): CryptoCurrency | undefined; + setCryptoCurrency(value?: CryptoCurrency): TradeCurrency; + hasCryptoCurrency(): boolean; + clearCryptoCurrency(): TradeCurrency; + + getFiatCurrency(): FiatCurrency | undefined; + setFiatCurrency(value?: FiatCurrency): TradeCurrency; + hasFiatCurrency(): boolean; + clearFiatCurrency(): TradeCurrency; + + getMessageCase(): TradeCurrency.MessageCase; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): TradeCurrency.AsObject; + static toObject(includeInstance: boolean, msg: TradeCurrency): TradeCurrency.AsObject; + static serializeBinaryToWriter(message: TradeCurrency, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): TradeCurrency; + static deserializeBinaryFromReader(message: TradeCurrency, reader: jspb.BinaryReader): TradeCurrency; +} + +export namespace TradeCurrency { + export type AsObject = { + code: string, + name: string, + cryptoCurrency?: CryptoCurrency.AsObject, + fiatCurrency?: FiatCurrency.AsObject, + } + + export enum MessageCase { + MESSAGE_NOT_SET = 0, + CRYPTO_CURRENCY = 3, + FIAT_CURRENCY = 4, + } +} + +export class CryptoCurrency extends jspb.Message { + getIsAsset(): boolean; + setIsAsset(value: boolean): CryptoCurrency; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CryptoCurrency.AsObject; + static toObject(includeInstance: boolean, msg: CryptoCurrency): CryptoCurrency.AsObject; + static serializeBinaryToWriter(message: CryptoCurrency, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): CryptoCurrency; + static deserializeBinaryFromReader(message: CryptoCurrency, reader: jspb.BinaryReader): CryptoCurrency; +} + +export namespace CryptoCurrency { + export type AsObject = { + isAsset: boolean, + } +} + +export class FiatCurrency extends jspb.Message { + getCurrency(): Currency | undefined; + setCurrency(value?: Currency): FiatCurrency; + hasCurrency(): boolean; + clearCurrency(): FiatCurrency; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): FiatCurrency.AsObject; + static toObject(includeInstance: boolean, msg: FiatCurrency): FiatCurrency.AsObject; + static serializeBinaryToWriter(message: FiatCurrency, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): FiatCurrency; + static deserializeBinaryFromReader(message: FiatCurrency, reader: jspb.BinaryReader): FiatCurrency; +} + +export namespace FiatCurrency { + export type AsObject = { + currency?: Currency.AsObject, + } +} + +export class Country extends jspb.Message { + getCode(): string; + setCode(value: string): Country; + + getName(): string; + setName(value: string): Country; + + getRegion(): Region | undefined; + setRegion(value?: Region): Country; + hasRegion(): boolean; + clearRegion(): Country; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Country.AsObject; + static toObject(includeInstance: boolean, msg: Country): Country.AsObject; + static serializeBinaryToWriter(message: Country, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Country; + static deserializeBinaryFromReader(message: Country, reader: jspb.BinaryReader): Country; +} + +export namespace Country { + export type AsObject = { + code: string, + name: string, + region?: Region.AsObject, + } +} + +export class Region extends jspb.Message { + getCode(): string; + setCode(value: string): Region; + + getName(): string; + setName(value: string): Region; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Region.AsObject; + static toObject(includeInstance: boolean, msg: Region): Region.AsObject; + static serializeBinaryToWriter(message: Region, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Region; + static deserializeBinaryFromReader(message: Region, reader: jspb.BinaryReader): Region; +} + +export namespace Region { + export type AsObject = { + code: string, + name: string, + } +} + +export class PriceAlertFilter extends jspb.Message { + getCurrencycode(): string; + setCurrencycode(value: string): PriceAlertFilter; + + getHigh(): number; + setHigh(value: number): PriceAlertFilter; + + getLow(): number; + setLow(value: number): PriceAlertFilter; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PriceAlertFilter.AsObject; + static toObject(includeInstance: boolean, msg: PriceAlertFilter): PriceAlertFilter.AsObject; + static serializeBinaryToWriter(message: PriceAlertFilter, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PriceAlertFilter; + static deserializeBinaryFromReader(message: PriceAlertFilter, reader: jspb.BinaryReader): PriceAlertFilter; +} + +export namespace PriceAlertFilter { + export type AsObject = { + currencycode: string, + high: number, + low: number, + } +} + +export class MarketAlertFilter extends jspb.Message { + getPaymentAccount(): PaymentAccount | undefined; + setPaymentAccount(value?: PaymentAccount): MarketAlertFilter; + hasPaymentAccount(): boolean; + clearPaymentAccount(): MarketAlertFilter; + + getTriggerValue(): number; + setTriggerValue(value: number): MarketAlertFilter; + + getIsBuyOffer(): boolean; + setIsBuyOffer(value: boolean): MarketAlertFilter; + + getAlertIdsList(): Array; + setAlertIdsList(value: Array): MarketAlertFilter; + clearAlertIdsList(): MarketAlertFilter; + addAlertIds(value: string, index?: number): MarketAlertFilter; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MarketAlertFilter.AsObject; + static toObject(includeInstance: boolean, msg: MarketAlertFilter): MarketAlertFilter.AsObject; + static serializeBinaryToWriter(message: MarketAlertFilter, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MarketAlertFilter; + static deserializeBinaryFromReader(message: MarketAlertFilter, reader: jspb.BinaryReader): MarketAlertFilter; +} + +export namespace MarketAlertFilter { + export type AsObject = { + paymentAccount?: PaymentAccount.AsObject, + triggerValue: number, + isBuyOffer: boolean, + alertIdsList: Array, + } +} + +export class MockMailboxPayload extends jspb.Message { + getMessage(): string; + setMessage(value: string): MockMailboxPayload; + + getSenderNodeAddress(): NodeAddress | undefined; + setSenderNodeAddress(value?: NodeAddress): MockMailboxPayload; + hasSenderNodeAddress(): boolean; + clearSenderNodeAddress(): MockMailboxPayload; + + getUid(): string; + setUid(value: string): MockMailboxPayload; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MockMailboxPayload.AsObject; + static toObject(includeInstance: boolean, msg: MockMailboxPayload): MockMailboxPayload.AsObject; + static serializeBinaryToWriter(message: MockMailboxPayload, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MockMailboxPayload; + static deserializeBinaryFromReader(message: MockMailboxPayload, reader: jspb.BinaryReader): MockMailboxPayload; +} + +export namespace MockMailboxPayload { + export type AsObject = { + message: string, + senderNodeAddress?: NodeAddress.AsObject, + uid: string, + } +} + +export class MockPayload extends jspb.Message { + getMessageVersion(): string; + setMessageVersion(value: string): MockPayload; + + getMessage(): string; + setMessage(value: string): MockPayload; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MockPayload.AsObject; + static toObject(includeInstance: boolean, msg: MockPayload): MockPayload.AsObject; + static serializeBinaryToWriter(message: MockPayload, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MockPayload; + static deserializeBinaryFromReader(message: MockPayload, reader: jspb.BinaryReader): MockPayload; +} + +export namespace MockPayload { + export type AsObject = { + messageVersion: string, + message: string, + } +} + +export enum SupportType { + ARBITRATION = 0, + MEDIATION = 1, + TRADE = 2, + REFUND = 3, +} +export enum AvailabilityResult { + PB_ERROR = 0, + UNKNOWN_FAILURE = 1, + AVAILABLE = 2, + OFFER_TAKEN = 3, + PRICE_OUT_OF_TOLERANCE = 4, + MARKET_PRICE_NOT_AVAILABLE = 5, + NO_ARBITRATORS = 6, + NO_MEDIATORS = 7, + USER_IGNORED = 8, + MISSING_MANDATORY_CAPABILITY = 9, + NO_REFUND_AGENTS = 10, + UNCONF_TX_LIMIT_HIT = 11, + MAKER_DENIED_API_USER = 12, + PRICE_CHECK_FAILED = 13, + MAKER_DENIED_TAKER = 14, +} +export enum MediationResultState { + PB_ERROR_MEDIATION_RESULT = 0, + UNDEFINED_MEDIATION_RESULT = 1, + MEDIATION_RESULT_ACCEPTED = 2, + MEDIATION_RESULT_REJECTED = 3, + SIG_MSG_SENT = 4, + SIG_MSG_ARRIVED = 5, + SIG_MSG_IN_MAILBOX = 6, + SIG_MSG_SEND_FAILED = 7, + RECEIVED_SIG_MSG = 8, + PAYOUT_TX_PUBLISHED = 9, + PAYOUT_TX_PUBLISHED_MSG_SENT = 10, + PAYOUT_TX_PUBLISHED_MSG_ARRIVED = 11, + PAYOUT_TX_PUBLISHED_MSG_IN_MAILBOX = 12, + PAYOUT_TX_PUBLISHED_MSG_SEND_FAILED = 13, + RECEIVED_PAYOUT_TX_PUBLISHED_MSG = 14, + PAYOUT_TX_SEEN_IN_NETWORK = 15, +} +export enum RefundResultState { + PB_ERROR_REFUND_RESULT = 0, + UNDEFINED_REFUND_RESULT = 1, +} +export enum TxType { + PB_ERROR_TX_TYPE = 0, + UNDEFINED_TX_TYPE = 1, + UNVERIFIED = 2, + INVALID = 3, + GENESIS = 4, + TRANSFER_BSQ = 5, + PAY_TRADE_FEE = 6, + PROPOSAL = 7, + COMPENSATION_REQUEST = 8, + REIMBURSEMENT_REQUEST = 9, + BLIND_VOTE = 10, + VOTE_REVEAL = 11, + LOCKUP = 12, + UNLOCK = 13, + ASSET_LISTING_FEE = 14, + PROOF_OF_BURN = 15, + IRREGULAR = 16, +} +export enum TxOutputType { + PB_ERROR_TX_OUTPUT_TYPE = 0, + UNDEFINED_OUTPUT = 1, + GENESIS_OUTPUT = 2, + BSQ_OUTPUT = 3, + BTC_OUTPUT = 4, + PROPOSAL_OP_RETURN_OUTPUT = 5, + COMP_REQ_OP_RETURN_OUTPUT = 6, + REIMBURSEMENT_OP_RETURN_OUTPUT = 7, + CONFISCATE_BOND_OP_RETURN_OUTPUT = 8, + ISSUANCE_CANDIDATE_OUTPUT = 9, + BLIND_VOTE_LOCK_STAKE_OUTPUT = 10, + BLIND_VOTE_OP_RETURN_OUTPUT = 11, + VOTE_REVEAL_UNLOCK_STAKE_OUTPUT = 12, + VOTE_REVEAL_OP_RETURN_OUTPUT = 13, + ASSET_LISTING_FEE_OP_RETURN_OUTPUT = 14, + PROOF_OF_BURN_OP_RETURN_OUTPUT = 15, + LOCKUP_OUTPUT = 16, + LOCKUP_OP_RETURN_OUTPUT = 17, + UNLOCK_OUTPUT = 18, + INVALID_OUTPUT = 19, +} +export enum ScriptType { + PB_ERROR_SCRIPT_TYPES = 0, + PUB_KEY = 1, + PUB_KEY_HASH = 2, + SCRIPT_HASH = 3, + MULTISIG = 4, + NULL_DATA = 5, + WITNESS_V0_KEYHASH = 6, + WITNESS_V0_SCRIPTHASH = 7, + NONSTANDARD = 8, + WITNESS_UNKNOWN = 9, + WITNESS_V1_TAPROOT = 10, +} diff --git a/src/pb_pb.js b/src/protobuf/pb_pb.js similarity index 99% rename from src/pb_pb.js rename to src/protobuf/pb_pb.js index c561fc75..f92046f8 100644 --- a/src/pb_pb.js +++ b/src/protobuf/pb_pb.js @@ -9332,10 +9332,10 @@ proto.io.bisq.protobuffer.PreliminaryGetDataRequest.prototype.setNonce = functio /** * repeated bytes excluded_keys = 2; - * @return {!Array} + * @return {!(Array|Array)} */ proto.io.bisq.protobuffer.PreliminaryGetDataRequest.prototype.getExcludedKeysList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); + return /** @type {!(Array|Array)} */ (jspb.Message.getRepeatedField(this, 2)); }; @@ -9984,10 +9984,10 @@ proto.io.bisq.protobuffer.GetUpdatedDataRequest.prototype.setNonce = function(va /** * repeated bytes excluded_keys = 3; - * @return {!Array} + * @return {!(Array|Array)} */ proto.io.bisq.protobuffer.GetUpdatedDataRequest.prototype.getExcludedKeysList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); + return /** @type {!(Array|Array)} */ (jspb.Message.getRepeatedField(this, 3)); }; @@ -12710,10 +12710,10 @@ proto.io.bisq.protobuffer.RefreshOfferMessage.serializeBinaryToWriter = function /** * optional bytes hash_of_data_and_seq_nr = 1; - * @return {string} + * @return {!(string|Uint8Array)} */ proto.io.bisq.protobuffer.RefreshOfferMessage.prototype.getHashOfDataAndSeqNr = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; @@ -12752,10 +12752,10 @@ proto.io.bisq.protobuffer.RefreshOfferMessage.prototype.setHashOfDataAndSeqNr = /** * optional bytes signature = 2; - * @return {string} + * @return {!(string|Uint8Array)} */ proto.io.bisq.protobuffer.RefreshOfferMessage.prototype.getSignature = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; @@ -12794,10 +12794,10 @@ proto.io.bisq.protobuffer.RefreshOfferMessage.prototype.setSignature = function( /** * optional bytes hash_of_payload = 3; - * @return {string} + * @return {!(string|Uint8Array)} */ proto.io.bisq.protobuffer.RefreshOfferMessage.prototype.getHashOfPayload = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; @@ -14175,10 +14175,10 @@ proto.io.bisq.protobuffer.PrefixedSealedAndSignedMessage.prototype.hasSealedAndS /** * optional bytes address_prefix_hash = 3; - * @return {string} + * @return {!(string|Uint8Array)} */ proto.io.bisq.protobuffer.PrefixedSealedAndSignedMessage.prototype.getAddressPrefixHash = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; @@ -14885,10 +14885,10 @@ proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.setChangeOutputAdd /** * optional bytes taker_multi_sig_pub_key = 11; - * @return {string} + * @return {!(string|Uint8Array)} */ proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.getTakerMultiSigPubKey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, "")); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 11, "")); }; @@ -15223,10 +15223,10 @@ proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.setUid = function( /** * optional bytes account_age_witness_signature_of_offer_id = 22; - * @return {string} + * @return {!(string|Uint8Array)} */ proto.io.bisq.protobuffer.InputsForDepositTxRequest.prototype.getAccountAgeWitnessSignatureOfOfferId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 22, "")); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 22, "")); }; @@ -15767,10 +15767,10 @@ proto.io.bisq.protobuffer.InputsForDepositTxResponse.prototype.setMakerPayoutAdd /** * optional bytes prepared_deposit_tx = 7; - * @return {string} + * @return {!(string|Uint8Array)} */ proto.io.bisq.protobuffer.InputsForDepositTxResponse.prototype.getPreparedDepositTx = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 7, "")); }; @@ -15847,10 +15847,10 @@ proto.io.bisq.protobuffer.InputsForDepositTxResponse.prototype.clearMakerInputsL /** * optional bytes maker_multi_sig_pub_key = 9; - * @return {string} + * @return {!(string|Uint8Array)} */ proto.io.bisq.protobuffer.InputsForDepositTxResponse.prototype.getMakerMultiSigPubKey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 9, "")); }; @@ -15944,10 +15944,10 @@ proto.io.bisq.protobuffer.InputsForDepositTxResponse.prototype.setUid = function /** * optional bytes account_age_witness_signature_of_prepared_deposit_tx = 12; - * @return {string} + * @return {!(string|Uint8Array)} */ proto.io.bisq.protobuffer.InputsForDepositTxResponse.prototype.getAccountAgeWitnessSignatureOfPreparedDepositTx = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, "")); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 12, "")); }; @@ -16590,10 +16590,10 @@ proto.io.bisq.protobuffer.InitTradeRequest.prototype.setUid = function(value) { /** * optional bytes account_age_witness_signature_of_offer_id = 11; - * @return {string} + * @return {!(string|Uint8Array)} */ proto.io.bisq.protobuffer.InitTradeRequest.prototype.getAccountAgeWitnessSignatureOfOfferId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, "")); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 11, "")); }; @@ -17561,10 +17561,10 @@ proto.io.bisq.protobuffer.SignContractRequest.prototype.setAccountId = function( /** * optional bytes payment_account_payload_hash = 7; - * @return {string} + * @return {!(string|Uint8Array)} */ proto.io.bisq.protobuffer.SignContractRequest.prototype.getPaymentAccountPayloadHash = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 7, "")); }; @@ -19857,10 +19857,10 @@ proto.io.bisq.protobuffer.DelayedPayoutTxSignatureRequest.prototype.hasSenderNod /** * optional bytes delayed_payout_tx = 4; - * @return {string} + * @return {!(string|Uint8Array)} */ proto.io.bisq.protobuffer.DelayedPayoutTxSignatureRequest.prototype.getDelayedPayoutTx = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 4, "")); }; @@ -19899,10 +19899,10 @@ proto.io.bisq.protobuffer.DelayedPayoutTxSignatureRequest.prototype.setDelayedPa /** * optional bytes delayed_payout_tx_seller_signature = 5; - * @return {string} + * @return {!(string|Uint8Array)} */ proto.io.bisq.protobuffer.DelayedPayoutTxSignatureRequest.prototype.getDelayedPayoutTxSellerSignature = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 5, "")); }; @@ -20176,10 +20176,10 @@ proto.io.bisq.protobuffer.DelayedPayoutTxSignatureResponse.prototype.hasSenderNo /** * optional bytes delayed_payout_tx_buyer_signature = 4; - * @return {string} + * @return {!(string|Uint8Array)} */ proto.io.bisq.protobuffer.DelayedPayoutTxSignatureResponse.prototype.getDelayedPayoutTxBuyerSignature = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 4, "")); }; @@ -20218,10 +20218,10 @@ proto.io.bisq.protobuffer.DelayedPayoutTxSignatureResponse.prototype.setDelayedP /** * optional bytes deposit_tx = 5; - * @return {string} + * @return {!(string|Uint8Array)} */ proto.io.bisq.protobuffer.DelayedPayoutTxSignatureResponse.prototype.getDepositTx = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 5, "")); }; @@ -20495,10 +20495,10 @@ proto.io.bisq.protobuffer.DepositTxAndDelayedPayoutTxMessage.prototype.hasSender /** * optional bytes deposit_tx = 4; - * @return {string} + * @return {!(string|Uint8Array)} */ proto.io.bisq.protobuffer.DepositTxAndDelayedPayoutTxMessage.prototype.getDepositTx = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 4, "")); }; @@ -20537,10 +20537,10 @@ proto.io.bisq.protobuffer.DepositTxAndDelayedPayoutTxMessage.prototype.setDeposi /** * optional bytes delayed_payout_tx = 5; - * @return {string} + * @return {!(string|Uint8Array)} */ proto.io.bisq.protobuffer.DepositTxAndDelayedPayoutTxMessage.prototype.getDelayedPayoutTx = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 5, "")); }; @@ -20840,10 +20840,10 @@ proto.io.bisq.protobuffer.DepositTxMessage.prototype.hasSenderNodeAddress = func /** * optional bytes deposit_tx_without_witnesses = 4; - * @return {string} + * @return {!(string|Uint8Array)} */ proto.io.bisq.protobuffer.DepositTxMessage.prototype.getDepositTxWithoutWitnesses = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 4, "")); }; @@ -21677,10 +21677,10 @@ proto.io.bisq.protobuffer.FinalizePayoutTxRequest.prototype.setTradeId = functio /** * optional bytes seller_signature = 2; - * @return {string} + * @return {!(string|Uint8Array)} */ proto.io.bisq.protobuffer.FinalizePayoutTxRequest.prototype.getSellerSignature = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; @@ -22815,10 +22815,10 @@ proto.io.bisq.protobuffer.MediatedPayoutTxPublishedMessage.prototype.setTradeId /** * optional bytes payout_tx = 2; - * @return {string} + * @return {!(string|Uint8Array)} */ proto.io.bisq.protobuffer.MediatedPayoutTxPublishedMessage.prototype.getPayoutTx = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; @@ -23098,10 +23098,10 @@ proto.io.bisq.protobuffer.MediatedPayoutTxSignatureMessage.prototype.setTradeId /** * optional bytes tx_signature = 2; - * @return {string} + * @return {!(string|Uint8Array)} */ proto.io.bisq.protobuffer.MediatedPayoutTxSignatureMessage.prototype.getTxSignature = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; @@ -28367,10 +28367,10 @@ proto.io.bisq.protobuffer.PubKeyRing.serializeBinaryToWriter = function(message, /** * optional bytes signature_pub_key_bytes = 1; - * @return {string} + * @return {!(string|Uint8Array)} */ proto.io.bisq.protobuffer.PubKeyRing.prototype.getSignaturePubKeyBytes = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; @@ -28409,10 +28409,10 @@ proto.io.bisq.protobuffer.PubKeyRing.prototype.setSignaturePubKeyBytes = functio /** * optional bytes encryption_pub_key_bytes = 2; - * @return {string} + * @return {!(string|Uint8Array)} */ proto.io.bisq.protobuffer.PubKeyRing.prototype.getEncryptionPubKeyBytes = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; @@ -28599,10 +28599,10 @@ proto.io.bisq.protobuffer.SealedAndSigned.serializeBinaryToWriter = function(mes /** * optional bytes encrypted_secret_key = 1; - * @return {string} + * @return {!(string|Uint8Array)} */ proto.io.bisq.protobuffer.SealedAndSigned.prototype.getEncryptedSecretKey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; @@ -28641,10 +28641,10 @@ proto.io.bisq.protobuffer.SealedAndSigned.prototype.setEncryptedSecretKey = func /** * optional bytes encrypted_payload_with_hmac = 2; - * @return {string} + * @return {!(string|Uint8Array)} */ proto.io.bisq.protobuffer.SealedAndSigned.prototype.getEncryptedPayloadWithHmac = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; @@ -28683,10 +28683,10 @@ proto.io.bisq.protobuffer.SealedAndSigned.prototype.setEncryptedPayloadWithHmac /** * optional bytes signature = 3; - * @return {string} + * @return {!(string|Uint8Array)} */ proto.io.bisq.protobuffer.SealedAndSigned.prototype.getSignature = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; @@ -28725,10 +28725,10 @@ proto.io.bisq.protobuffer.SealedAndSigned.prototype.setSignature = function(valu /** * optional bytes sig_public_key_bytes = 4; - * @return {string} + * @return {!(string|Uint8Array)} */ proto.io.bisq.protobuffer.SealedAndSigned.prototype.getSigPublicKeyBytes = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 4, "")); }; @@ -29942,10 +29942,10 @@ proto.io.bisq.protobuffer.ProtectedStorageEntry.prototype.hasStoragepayload = fu /** * optional bytes owner_pub_key_bytes = 2; - * @return {string} + * @return {!(string|Uint8Array)} */ proto.io.bisq.protobuffer.ProtectedStorageEntry.prototype.getOwnerPubKeyBytes = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; @@ -30002,10 +30002,10 @@ proto.io.bisq.protobuffer.ProtectedStorageEntry.prototype.setSequenceNumber = fu /** * optional bytes signature = 4; - * @return {string} + * @return {!(string|Uint8Array)} */ proto.io.bisq.protobuffer.ProtectedStorageEntry.prototype.getSignature = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 4, "")); }; @@ -30453,10 +30453,10 @@ proto.io.bisq.protobuffer.ProtectedMailboxStorageEntry.prototype.hasEntry = func /** * optional bytes receivers_pub_key_bytes = 2; - * @return {string} + * @return {!(string|Uint8Array)} */ proto.io.bisq.protobuffer.ProtectedMailboxStorageEntry.prototype.getReceiversPubKeyBytes = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; @@ -31467,10 +31467,10 @@ proto.io.bisq.protobuffer.DecryptedMessageWithPubKey.prototype.hasNetworkEnvelop /** * optional bytes signature_pub_key_bytes = 2; - * @return {string} + * @return {!(string|Uint8Array)} */ proto.io.bisq.protobuffer.DecryptedMessageWithPubKey.prototype.getSignaturePubKeyBytes = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; @@ -31681,10 +31681,10 @@ proto.io.bisq.protobuffer.PrivateNotificationPayload.prototype.setSignatureAsBas /** * optional bytes sig_public_key_bytes = 3; - * @return {string} + * @return {!(string|Uint8Array)} */ proto.io.bisq.protobuffer.PrivateNotificationPayload.prototype.getSigPublicKeyBytes = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; @@ -32168,10 +32168,10 @@ proto.io.bisq.protobuffer.Alert.prototype.setSignatureAsBase64 = function(value) /** * optional bytes owner_pub_key_bytes = 5; - * @return {string} + * @return {!(string|Uint8Array)} */ proto.io.bisq.protobuffer.Alert.prototype.getOwnerPubKeyBytes = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 5, "")); }; @@ -32602,10 +32602,10 @@ proto.io.bisq.protobuffer.Arbitrator.prototype.setRegistrationSignature = functi /** * optional bytes registration_pub_key = 5; - * @return {string} + * @return {!(string|Uint8Array)} */ proto.io.bisq.protobuffer.Arbitrator.prototype.getRegistrationPubKey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 5, "")); }; @@ -32681,10 +32681,10 @@ proto.io.bisq.protobuffer.Arbitrator.prototype.hasPubKeyRing = function() { /** * optional bytes btc_pub_key = 7; - * @return {string} + * @return {!(string|Uint8Array)} */ proto.io.bisq.protobuffer.Arbitrator.prototype.getBtcPubKey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 7, "")); }; @@ -33127,10 +33127,10 @@ proto.io.bisq.protobuffer.Mediator.prototype.setRegistrationSignature = function /** * optional bytes registration_pub_key = 5; - * @return {string} + * @return {!(string|Uint8Array)} */ proto.io.bisq.protobuffer.Mediator.prototype.getRegistrationPubKey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 5, "")); }; @@ -33592,10 +33592,10 @@ proto.io.bisq.protobuffer.RefundAgent.prototype.setRegistrationSignature = funct /** * optional bytes registration_pub_key = 5; - * @return {string} + * @return {!(string|Uint8Array)} */ proto.io.bisq.protobuffer.RefundAgent.prototype.getRegistrationPubKey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 5, "")); }; @@ -34304,10 +34304,10 @@ proto.io.bisq.protobuffer.Filter.prototype.setSignatureAsBase64 = function(value /** * optional bytes owner_pub_key_bytes = 5; - * @return {string} + * @return {!(string|Uint8Array)} */ proto.io.bisq.protobuffer.Filter.prototype.getOwnerPubKeyBytes = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 5, "")); }; @@ -35578,10 +35578,10 @@ proto.io.bisq.protobuffer.TradeStatistics2.prototype.setDepositTxId = function(v /** * optional bytes hash = 15; - * @return {string} + * @return {!(string|Uint8Array)} */ proto.io.bisq.protobuffer.TradeStatistics2.prototype.getHash = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, "")); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 15, "")); }; @@ -35987,10 +35987,10 @@ proto.io.bisq.protobuffer.TradeStatistics3.prototype.setDate = function(value) { /** * optional bytes hash = 8; - * @return {string} + * @return {!(string|Uint8Array)} */ proto.io.bisq.protobuffer.TradeStatistics3.prototype.getHash = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 8, "")); }; @@ -36291,10 +36291,10 @@ proto.io.bisq.protobuffer.MailboxStoragePayload.prototype.hasPrefixedSealedAndSi /** * optional bytes sender_pub_key_for_add_operation_bytes = 2; - * @return {string} + * @return {!(string|Uint8Array)} */ proto.io.bisq.protobuffer.MailboxStoragePayload.prototype.getSenderPubKeyForAddOperationBytes = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; @@ -36333,10 +36333,10 @@ proto.io.bisq.protobuffer.MailboxStoragePayload.prototype.setSenderPubKeyForAddO /** * optional bytes owner_pub_key_bytes = 3; - * @return {string} + * @return {!(string|Uint8Array)} */ proto.io.bisq.protobuffer.MailboxStoragePayload.prototype.getOwnerPubKeyBytes = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; @@ -37881,10 +37881,10 @@ proto.io.bisq.protobuffer.AccountAgeWitness.serializeBinaryToWriter = function(m /** * optional bytes hash = 1; - * @return {string} + * @return {!(string|Uint8Array)} */ proto.io.bisq.protobuffer.AccountAgeWitness.prototype.getHash = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; @@ -38152,10 +38152,10 @@ proto.io.bisq.protobuffer.SignedWitness.prototype.setVerificationMethod = functi /** * optional bytes account_age_witness_hash = 2; - * @return {string} + * @return {!(string|Uint8Array)} */ proto.io.bisq.protobuffer.SignedWitness.prototype.getAccountAgeWitnessHash = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; @@ -38194,10 +38194,10 @@ proto.io.bisq.protobuffer.SignedWitness.prototype.setAccountAgeWitnessHash = fun /** * optional bytes signature = 3; - * @return {string} + * @return {!(string|Uint8Array)} */ proto.io.bisq.protobuffer.SignedWitness.prototype.getSignature = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; @@ -38236,10 +38236,10 @@ proto.io.bisq.protobuffer.SignedWitness.prototype.setSignature = function(value) /** * optional bytes signer_pub_key = 4; - * @return {string} + * @return {!(string|Uint8Array)} */ proto.io.bisq.protobuffer.SignedWitness.prototype.getSignerPubKey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 4, "")); }; @@ -38278,10 +38278,10 @@ proto.io.bisq.protobuffer.SignedWitness.prototype.setSignerPubKey = function(val /** * optional bytes witness_owner_pub_key = 5; - * @return {string} + * @return {!(string|Uint8Array)} */ proto.io.bisq.protobuffer.SignedWitness.prototype.getWitnessOwnerPubKey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 5, "")); }; @@ -39102,10 +39102,10 @@ proto.io.bisq.protobuffer.Dispute.prototype.hasContract = function() { /** * optional bytes contract_hash = 11; - * @return {string} + * @return {!(string|Uint8Array)} */ proto.io.bisq.protobuffer.Dispute.prototype.getContractHash = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, "")); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 11, "")); }; @@ -39144,10 +39144,10 @@ proto.io.bisq.protobuffer.Dispute.prototype.setContractHash = function(value) { /** * optional bytes deposit_tx_serialized = 12; - * @return {string} + * @return {!(string|Uint8Array)} */ proto.io.bisq.protobuffer.Dispute.prototype.getDepositTxSerialized = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, "")); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 12, "")); }; @@ -39186,10 +39186,10 @@ proto.io.bisq.protobuffer.Dispute.prototype.setDepositTxSerialized = function(va /** * optional bytes payout_tx_serialized = 13; - * @return {string} + * @return {!(string|Uint8Array)} */ proto.io.bisq.protobuffer.Dispute.prototype.getPayoutTxSerialized = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, "")); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 13, "")); }; @@ -39830,10 +39830,10 @@ proto.io.bisq.protobuffer.Attachment.prototype.setFileName = function(value) { /** * optional bytes bytes = 2; - * @return {string} + * @return {!(string|Uint8Array)} */ proto.io.bisq.protobuffer.Attachment.prototype.getBytes = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; @@ -40411,10 +40411,10 @@ proto.io.bisq.protobuffer.DisputeResult.prototype.setSellerPayoutAmount = functi /** * optional bytes arbitrator_pub_key = 13; - * @return {string} + * @return {!(string|Uint8Array)} */ proto.io.bisq.protobuffer.DisputeResult.prototype.getArbitratorPubKey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, "")); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 13, "")); }; @@ -41040,10 +41040,10 @@ proto.io.bisq.protobuffer.Contract.prototype.setTakerPaymentMethodId = function( /** * optional bytes maker_payment_account_payload_hash = 11; - * @return {string} + * @return {!(string|Uint8Array)} */ proto.io.bisq.protobuffer.Contract.prototype.getMakerPaymentAccountPayloadHash = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, "")); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 11, "")); }; @@ -41082,10 +41082,10 @@ proto.io.bisq.protobuffer.Contract.prototype.setMakerPaymentAccountPayloadHash = /** * optional bytes taker_payment_account_payload_hash = 12; - * @return {string} + * @return {!(string|Uint8Array)} */ proto.io.bisq.protobuffer.Contract.prototype.getTakerPaymentAccountPayloadHash = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, "")); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 12, "")); }; @@ -41553,10 +41553,10 @@ proto.io.bisq.protobuffer.RawTransactionInput.prototype.setIndex = function(valu /** * optional bytes parent_transaction = 2; - * @return {string} + * @return {!(string|Uint8Array)} */ proto.io.bisq.protobuffer.RawTransactionInput.prototype.getParentTransaction = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; @@ -52544,10 +52544,10 @@ proto.io.bisq.protobuffer.ByteArray.serializeBinaryToWriter = function(message, /** * optional bytes bytes = 1; - * @return {string} + * @return {!(string|Uint8Array)} */ proto.io.bisq.protobuffer.ByteArray.prototype.getBytes = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; @@ -54060,10 +54060,10 @@ proto.io.bisq.protobuffer.AddressEntry.prototype.setContext = function(value) { /** * optional bytes pub_key = 9; - * @return {string} + * @return {!(string|Uint8Array)} */ proto.io.bisq.protobuffer.AddressEntry.prototype.getPubKey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 9, "")); }; @@ -54102,10 +54102,10 @@ proto.io.bisq.protobuffer.AddressEntry.prototype.setPubKey = function(value) { /** * optional bytes pub_key_hash = 10; - * @return {string} + * @return {!(string|Uint8Array)} */ proto.io.bisq.protobuffer.AddressEntry.prototype.getPubKeyHash = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, "")); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 10, "")); }; @@ -57452,10 +57452,10 @@ proto.io.bisq.protobuffer.Trade.prototype.setContractAsJson = function(value) { /** * optional bytes contract_hash = 18; - * @return {string} + * @return {!(string|Uint8Array)} */ proto.io.bisq.protobuffer.Trade.prototype.getContractHash = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 18, "")); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 18, "")); }; @@ -57568,10 +57568,10 @@ proto.io.bisq.protobuffer.Trade.prototype.hasMediatorNodeAddress = function() { /** * optional bytes arbitrator_btc_pub_key = 21; - * @return {string} + * @return {!(string|Uint8Array)} */ proto.io.bisq.protobuffer.Trade.prototype.getArbitratorBtcPubKey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 21, "")); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 21, "")); }; @@ -57812,10 +57812,10 @@ proto.io.bisq.protobuffer.Trade.prototype.setLockTime = function(value) { /** * optional bytes delayed_payout_tx_bytes = 30; - * @return {string} + * @return {!(string|Uint8Array)} */ proto.io.bisq.protobuffer.Trade.prototype.getDelayedPayoutTxBytes = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 30, "")); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 30, "")); }; @@ -59470,10 +59470,10 @@ proto.io.bisq.protobuffer.ProcessModel.prototype.setTakeOfferFeeTxId = function( /** * optional bytes payout_tx_signature = 6; - * @return {string} + * @return {!(string|Uint8Array)} */ proto.io.bisq.protobuffer.ProcessModel.prototype.getPayoutTxSignature = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 6, "")); }; @@ -59622,10 +59622,10 @@ proto.io.bisq.protobuffer.ProcessModel.prototype.setFundsNeededForTradeAsLong = /** * optional bytes my_multi_sig_pub_key = 15; - * @return {string} + * @return {!(string|Uint8Array)} */ proto.io.bisq.protobuffer.ProcessModel.prototype.getMyMultiSigPubKey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, "")); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 15, "")); }; @@ -59682,10 +59682,10 @@ proto.io.bisq.protobuffer.ProcessModel.prototype.setPaymentStartedMessageState = /** * optional bytes mediated_payout_tx_signature = 18; - * @return {string} + * @return {!(string|Uint8Array)} */ proto.io.bisq.protobuffer.ProcessModel.prototype.getMediatedPayoutTxSignature = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 18, "")); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 18, "")); }; @@ -60600,10 +60600,10 @@ proto.io.bisq.protobuffer.TradingPeer.prototype.setPaymentMethodId = function(va /** * optional bytes payment_account_payload_hash = 4; - * @return {string} + * @return {!(string|Uint8Array)} */ proto.io.bisq.protobuffer.TradingPeer.prototype.getPaymentAccountPayloadHash = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 4, "")); }; @@ -60733,10 +60733,10 @@ proto.io.bisq.protobuffer.TradingPeer.prototype.setContractSignature = function( /** * optional bytes signature = 9; - * @return {string} + * @return {!(string|Uint8Array)} */ proto.io.bisq.protobuffer.TradingPeer.prototype.getSignature = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 9, "")); }; @@ -60812,10 +60812,10 @@ proto.io.bisq.protobuffer.TradingPeer.prototype.hasPubKeyRing = function() { /** * optional bytes multi_sig_pub_key = 11; - * @return {string} + * @return {!(string|Uint8Array)} */ proto.io.bisq.protobuffer.TradingPeer.prototype.getMultiSigPubKey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, "")); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 11, "")); }; @@ -60928,10 +60928,10 @@ proto.io.bisq.protobuffer.TradingPeer.prototype.setChangeOutputAddress = functio /** * optional bytes account_age_witness_nonce = 15; - * @return {string} + * @return {!(string|Uint8Array)} */ proto.io.bisq.protobuffer.TradingPeer.prototype.getAccountAgeWitnessNonce = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, "")); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 15, "")); }; @@ -60970,10 +60970,10 @@ proto.io.bisq.protobuffer.TradingPeer.prototype.setAccountAgeWitnessNonce = func /** * optional bytes account_age_witness_signature = 16; - * @return {string} + * @return {!(string|Uint8Array)} */ proto.io.bisq.protobuffer.TradingPeer.prototype.getAccountAgeWitnessSignature = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, "")); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 16, "")); }; @@ -61030,10 +61030,10 @@ proto.io.bisq.protobuffer.TradingPeer.prototype.setCurrentDate = function(value) /** * optional bytes mediated_payout_tx_signature = 18; - * @return {string} + * @return {!(string|Uint8Array)} */ proto.io.bisq.protobuffer.TradingPeer.prototype.getMediatedPayoutTxSignature = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 18, "")); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 18, "")); }; @@ -67083,10 +67083,10 @@ proto.io.bisq.protobuffer.BaseTxOutput.prototype.setAddress = function(value) { /** * optional bytes op_return_data = 6; - * @return {string} + * @return {!(string|Uint8Array)} */ proto.io.bisq.protobuffer.BaseTxOutput.prototype.getOpReturnData = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 6, "")); }; @@ -71399,10 +71399,10 @@ proto.io.bisq.protobuffer.MyReputation.prototype.setUid = function(value) { /** * optional bytes salt = 2; - * @return {string} + * @return {!(string|Uint8Array)} */ proto.io.bisq.protobuffer.MyReputation.prototype.getSalt = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; @@ -72255,10 +72255,10 @@ proto.io.bisq.protobuffer.TempProposalPayload.prototype.hasProposal = function() /** * optional bytes owner_pub_key_encoded = 2; - * @return {string} + * @return {!(string|Uint8Array)} */ proto.io.bisq.protobuffer.TempProposalPayload.prototype.getOwnerPubKeyEncoded = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; @@ -72482,10 +72482,10 @@ proto.io.bisq.protobuffer.ProposalPayload.prototype.hasProposal = function() { /** * optional bytes hash = 2; - * @return {string} + * @return {!(string|Uint8Array)} */ proto.io.bisq.protobuffer.ProposalPayload.prototype.getHash = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; @@ -73917,10 +73917,10 @@ proto.io.bisq.protobuffer.MyVote.prototype.hasBallotList = function() { /** * optional bytes secret_key_encoded = 3; - * @return {string} + * @return {!(string|Uint8Array)} */ proto.io.bisq.protobuffer.MyVote.prototype.getSecretKeyEncoded = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; @@ -74704,10 +74704,10 @@ proto.io.bisq.protobuffer.BlindVote.serializeBinaryToWriter = function(message, /** * optional bytes encrypted_votes = 1; - * @return {string} + * @return {!(string|Uint8Array)} */ proto.io.bisq.protobuffer.BlindVote.prototype.getEncryptedVotes = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; @@ -74782,10 +74782,10 @@ proto.io.bisq.protobuffer.BlindVote.prototype.setStake = function(value) { /** * optional bytes encrypted_merit_list = 4; - * @return {string} + * @return {!(string|Uint8Array)} */ proto.io.bisq.protobuffer.BlindVote.prototype.getEncryptedMeritList = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 4, "")); }; @@ -75347,10 +75347,10 @@ proto.io.bisq.protobuffer.BlindVotePayload.prototype.hasBlindVote = function() { /** * optional bytes hash = 2; - * @return {string} + * @return {!(string|Uint8Array)} */ proto.io.bisq.protobuffer.BlindVotePayload.prototype.getHash = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; @@ -75682,10 +75682,10 @@ proto.io.bisq.protobuffer.Merit.prototype.hasIssuance = function() { /** * optional bytes signature = 2; - * @return {string} + * @return {!(string|Uint8Array)} */ proto.io.bisq.protobuffer.Merit.prototype.getSignature = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; @@ -76542,10 +76542,10 @@ proto.io.bisq.protobuffer.DecryptedBallotsWithMerits.serializeBinaryToWriter = f /** * optional bytes hash_of_blind_vote_list = 1; - * @return {string} + * @return {!(string|Uint8Array)} */ proto.io.bisq.protobuffer.DecryptedBallotsWithMerits.prototype.getHashOfBlindVoteList = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; @@ -77077,10 +77077,10 @@ proto.io.bisq.protobuffer.DaoStateHash.prototype.setHeight = function(value) { /** * optional bytes hash = 2; - * @return {string} + * @return {!(string|Uint8Array)} */ proto.io.bisq.protobuffer.DaoStateHash.prototype.getHash = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; @@ -77119,10 +77119,10 @@ proto.io.bisq.protobuffer.DaoStateHash.prototype.setHash = function(value) { /** * optional bytes prev_hash = 3; - * @return {string} + * @return {!(string|Uint8Array)} */ proto.io.bisq.protobuffer.DaoStateHash.prototype.getPrevHash = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; @@ -77327,10 +77327,10 @@ proto.io.bisq.protobuffer.ProposalStateHash.prototype.setHeight = function(value /** * optional bytes hash = 2; - * @return {string} + * @return {!(string|Uint8Array)} */ proto.io.bisq.protobuffer.ProposalStateHash.prototype.getHash = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; @@ -77369,10 +77369,10 @@ proto.io.bisq.protobuffer.ProposalStateHash.prototype.setHash = function(value) /** * optional bytes prev_hash = 3; - * @return {string} + * @return {!(string|Uint8Array)} */ proto.io.bisq.protobuffer.ProposalStateHash.prototype.getPrevHash = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; @@ -77595,10 +77595,10 @@ proto.io.bisq.protobuffer.BlindVoteStateHash.prototype.setHeight = function(valu /** * optional bytes hash = 2; - * @return {string} + * @return {!(string|Uint8Array)} */ proto.io.bisq.protobuffer.BlindVoteStateHash.prototype.getHash = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; @@ -77637,10 +77637,10 @@ proto.io.bisq.protobuffer.BlindVoteStateHash.prototype.setHash = function(value) /** * optional bytes prev_hash = 3; - * @return {string} + * @return {!(string|Uint8Array)} */ proto.io.bisq.protobuffer.BlindVoteStateHash.prototype.getPrevHash = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; @@ -77925,7 +77925,7 @@ proto.io.bisq.protobuffer.PaymentAccount.prototype.toObject = function(opt_inclu proto.io.bisq.protobuffer.PaymentAccount.toObject = function(includeInstance, msg) { var f, obj = { id: jspb.Message.getFieldWithDefault(msg, 1, ""), - creationDate: jspb.Message.getFieldWithDefault(msg, 2, 0), + creationDate: jspb.Message.getFieldWithDefault(msg, 2, "0"), paymentMethod: (f = msg.getPaymentMethod()) && proto.io.bisq.protobuffer.PaymentMethod.toObject(includeInstance, f), accountName: jspb.Message.getFieldWithDefault(msg, 4, ""), tradeCurrenciesList: jspb.Message.toObjectList(msg.getTradeCurrenciesList(), @@ -77973,7 +77973,7 @@ proto.io.bisq.protobuffer.PaymentAccount.deserializeBinaryFromReader = function( msg.setId(value); break; case 2: - var value = /** @type {number} */ (reader.readInt64()); + var value = /** @type {string} */ (reader.readInt64String()); msg.setCreationDate(value); break; case 3: @@ -78037,8 +78037,8 @@ proto.io.bisq.protobuffer.PaymentAccount.serializeBinaryToWriter = function(mess ); } f = message.getCreationDate(); - if (f !== 0) { - writer.writeInt64( + if (parseInt(f, 10) !== 0) { + writer.writeInt64String( 2, f ); @@ -78105,19 +78105,19 @@ proto.io.bisq.protobuffer.PaymentAccount.prototype.setId = function(value) { /** * optional int64 creation_date = 2; - * @return {number} + * @return {string} */ proto.io.bisq.protobuffer.PaymentAccount.prototype.getCreationDate = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0")); }; /** - * @param {number} value + * @param {string} value * @return {!proto.io.bisq.protobuffer.PaymentAccount} returns this */ proto.io.bisq.protobuffer.PaymentAccount.prototype.setCreationDate = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); + return jspb.Message.setProto3StringIntField(this, 2, value); }; @@ -78321,8 +78321,8 @@ proto.io.bisq.protobuffer.PaymentMethod.prototype.toObject = function(opt_includ proto.io.bisq.protobuffer.PaymentMethod.toObject = function(includeInstance, msg) { var f, obj = { id: jspb.Message.getFieldWithDefault(msg, 1, ""), - maxTradePeriod: jspb.Message.getFieldWithDefault(msg, 2, 0), - maxTradeLimit: jspb.Message.getFieldWithDefault(msg, 3, 0) + maxTradePeriod: jspb.Message.getFieldWithDefault(msg, 2, "0"), + maxTradeLimit: jspb.Message.getFieldWithDefault(msg, 3, "0") }; if (includeInstance) { @@ -78364,11 +78364,11 @@ proto.io.bisq.protobuffer.PaymentMethod.deserializeBinaryFromReader = function(m msg.setId(value); break; case 2: - var value = /** @type {number} */ (reader.readInt64()); + var value = /** @type {string} */ (reader.readInt64String()); msg.setMaxTradePeriod(value); break; case 3: - var value = /** @type {number} */ (reader.readInt64()); + var value = /** @type {string} */ (reader.readInt64String()); msg.setMaxTradeLimit(value); break; default: @@ -78408,15 +78408,15 @@ proto.io.bisq.protobuffer.PaymentMethod.serializeBinaryToWriter = function(messa ); } f = message.getMaxTradePeriod(); - if (f !== 0) { - writer.writeInt64( + if (parseInt(f, 10) !== 0) { + writer.writeInt64String( 2, f ); } f = message.getMaxTradeLimit(); - if (f !== 0) { - writer.writeInt64( + if (parseInt(f, 10) !== 0) { + writer.writeInt64String( 3, f ); @@ -78444,37 +78444,37 @@ proto.io.bisq.protobuffer.PaymentMethod.prototype.setId = function(value) { /** * optional int64 max_trade_period = 2; - * @return {number} + * @return {string} */ proto.io.bisq.protobuffer.PaymentMethod.prototype.getMaxTradePeriod = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0")); }; /** - * @param {number} value + * @param {string} value * @return {!proto.io.bisq.protobuffer.PaymentMethod} returns this */ proto.io.bisq.protobuffer.PaymentMethod.prototype.setMaxTradePeriod = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); + return jspb.Message.setProto3StringIntField(this, 2, value); }; /** * optional int64 max_trade_limit = 3; - * @return {number} + * @return {string} */ proto.io.bisq.protobuffer.PaymentMethod.prototype.getMaxTradeLimit = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "0")); }; /** - * @param {number} value + * @param {string} value * @return {!proto.io.bisq.protobuffer.PaymentMethod} returns this */ proto.io.bisq.protobuffer.PaymentMethod.prototype.setMaxTradeLimit = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); + return jspb.Message.setProto3StringIntField(this, 3, value); };