protobuf-platform 1.2.319 → 1.2.321
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/config/config.proto +17 -0
- package/config/config_grpc_pb.js +33 -0
- package/config/config_pb.js +662 -0
- package/package.json +1 -1
- package/payment/payment.proto +11 -0
- package/payment/payment_grpc_pb.js +33 -0
- package/payment/payment_pb.js +542 -0
- package/user/user.proto +14 -0
- package/user/user_grpc_pb.js +33 -0
- package/user/user_pb.js +624 -0
|
@@ -26,6 +26,17 @@ function deserialize_payment_AttemptWithdrawalRequest(buffer_arg) {
|
|
|
26
26
|
return payment_pb.AttemptWithdrawalRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
+
function serialize_payment_CurrenciesMetadataResponse(arg) {
|
|
30
|
+
if (!(arg instanceof payment_pb.CurrenciesMetadataResponse)) {
|
|
31
|
+
throw new Error('Expected argument of type payment.CurrenciesMetadataResponse');
|
|
32
|
+
}
|
|
33
|
+
return Buffer.from(arg.serializeBinary());
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
function deserialize_payment_CurrenciesMetadataResponse(buffer_arg) {
|
|
37
|
+
return payment_pb.CurrenciesMetadataResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
38
|
+
}
|
|
39
|
+
|
|
29
40
|
function serialize_payment_CurrencyItemsResponse(arg) {
|
|
30
41
|
if (!(arg instanceof payment_pb.CurrencyItemsResponse)) {
|
|
31
42
|
throw new Error('Expected argument of type payment.CurrencyItemsResponse');
|
|
@@ -136,6 +147,17 @@ function deserialize_payment_File(buffer_arg) {
|
|
|
136
147
|
return payment_pb.File.deserializeBinary(new Uint8Array(buffer_arg));
|
|
137
148
|
}
|
|
138
149
|
|
|
150
|
+
function serialize_payment_GetCurrenciesMetadataRequest(arg) {
|
|
151
|
+
if (!(arg instanceof payment_pb.GetCurrenciesMetadataRequest)) {
|
|
152
|
+
throw new Error('Expected argument of type payment.GetCurrenciesMetadataRequest');
|
|
153
|
+
}
|
|
154
|
+
return Buffer.from(arg.serializeBinary());
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
function deserialize_payment_GetCurrenciesMetadataRequest(buffer_arg) {
|
|
158
|
+
return payment_pb.GetCurrenciesMetadataRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
159
|
+
}
|
|
160
|
+
|
|
139
161
|
function serialize_payment_GetCurrencyMetadataRequest(arg) {
|
|
140
162
|
if (!(arg instanceof payment_pb.GetCurrencyMetadataRequest)) {
|
|
141
163
|
throw new Error('Expected argument of type payment.GetCurrencyMetadataRequest');
|
|
@@ -1005,6 +1027,17 @@ getCurrencyMetadata: {
|
|
|
1005
1027
|
responseSerialize: serialize_payment_CurrencyMetadataResponse,
|
|
1006
1028
|
responseDeserialize: deserialize_payment_CurrencyMetadataResponse,
|
|
1007
1029
|
},
|
|
1030
|
+
getCurrenciesMetadata: {
|
|
1031
|
+
path: '/payment.Payment/getCurrenciesMetadata',
|
|
1032
|
+
requestStream: false,
|
|
1033
|
+
responseStream: false,
|
|
1034
|
+
requestType: payment_pb.GetCurrenciesMetadataRequest,
|
|
1035
|
+
responseType: payment_pb.CurrenciesMetadataResponse,
|
|
1036
|
+
requestSerialize: serialize_payment_GetCurrenciesMetadataRequest,
|
|
1037
|
+
requestDeserialize: deserialize_payment_GetCurrenciesMetadataRequest,
|
|
1038
|
+
responseSerialize: serialize_payment_CurrenciesMetadataResponse,
|
|
1039
|
+
responseDeserialize: deserialize_payment_CurrenciesMetadataResponse,
|
|
1040
|
+
},
|
|
1008
1041
|
// Currency directory
|
|
1009
1042
|
readSingleCurrency: {
|
|
1010
1043
|
path: '/payment.Payment/readSingleCurrency',
|
package/payment/payment_pb.js
CHANGED
|
@@ -23,8 +23,10 @@ var global = (function() {
|
|
|
23
23
|
|
|
24
24
|
goog.exportSymbol('proto.payment.AttemptDepositRequest', null, global);
|
|
25
25
|
goog.exportSymbol('proto.payment.AttemptWithdrawalRequest', null, global);
|
|
26
|
+
goog.exportSymbol('proto.payment.CurrenciesMetadataResponse', null, global);
|
|
26
27
|
goog.exportSymbol('proto.payment.CurrencyItem', null, global);
|
|
27
28
|
goog.exportSymbol('proto.payment.CurrencyItemsResponse', null, global);
|
|
29
|
+
goog.exportSymbol('proto.payment.CurrencyMetadataItem', null, global);
|
|
28
30
|
goog.exportSymbol('proto.payment.CurrencyMetadataResponse', null, global);
|
|
29
31
|
goog.exportSymbol('proto.payment.CurrencyResponse', null, global);
|
|
30
32
|
goog.exportSymbol('proto.payment.DepositItem', null, global);
|
|
@@ -36,6 +38,7 @@ goog.exportSymbol('proto.payment.DepositStatus', null, global);
|
|
|
36
38
|
goog.exportSymbol('proto.payment.DepositStatusItemsResponse', null, global);
|
|
37
39
|
goog.exportSymbol('proto.payment.DepositWebHookRequest', null, global);
|
|
38
40
|
goog.exportSymbol('proto.payment.File', null, global);
|
|
41
|
+
goog.exportSymbol('proto.payment.GetCurrenciesMetadataRequest', null, global);
|
|
39
42
|
goog.exportSymbol('proto.payment.GetCurrencyMetadataRequest', null, global);
|
|
40
43
|
goog.exportSymbol('proto.payment.GetCurrencyRequest', null, global);
|
|
41
44
|
goog.exportSymbol('proto.payment.GetDepositRequest', null, global);
|
|
@@ -1414,6 +1417,69 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
1414
1417
|
*/
|
|
1415
1418
|
proto.payment.CurrencyMetadataResponse.displayName = 'proto.payment.CurrencyMetadataResponse';
|
|
1416
1419
|
}
|
|
1420
|
+
/**
|
|
1421
|
+
* Generated by JsPbCodeGenerator.
|
|
1422
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1423
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1424
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1425
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1426
|
+
* valid.
|
|
1427
|
+
* @extends {jspb.Message}
|
|
1428
|
+
* @constructor
|
|
1429
|
+
*/
|
|
1430
|
+
proto.payment.GetCurrenciesMetadataRequest = function(opt_data) {
|
|
1431
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.payment.GetCurrenciesMetadataRequest.repeatedFields_, null);
|
|
1432
|
+
};
|
|
1433
|
+
goog.inherits(proto.payment.GetCurrenciesMetadataRequest, jspb.Message);
|
|
1434
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1435
|
+
/**
|
|
1436
|
+
* @public
|
|
1437
|
+
* @override
|
|
1438
|
+
*/
|
|
1439
|
+
proto.payment.GetCurrenciesMetadataRequest.displayName = 'proto.payment.GetCurrenciesMetadataRequest';
|
|
1440
|
+
}
|
|
1441
|
+
/**
|
|
1442
|
+
* Generated by JsPbCodeGenerator.
|
|
1443
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1444
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1445
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1446
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1447
|
+
* valid.
|
|
1448
|
+
* @extends {jspb.Message}
|
|
1449
|
+
* @constructor
|
|
1450
|
+
*/
|
|
1451
|
+
proto.payment.CurrencyMetadataItem = function(opt_data) {
|
|
1452
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
1453
|
+
};
|
|
1454
|
+
goog.inherits(proto.payment.CurrencyMetadataItem, jspb.Message);
|
|
1455
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1456
|
+
/**
|
|
1457
|
+
* @public
|
|
1458
|
+
* @override
|
|
1459
|
+
*/
|
|
1460
|
+
proto.payment.CurrencyMetadataItem.displayName = 'proto.payment.CurrencyMetadataItem';
|
|
1461
|
+
}
|
|
1462
|
+
/**
|
|
1463
|
+
* Generated by JsPbCodeGenerator.
|
|
1464
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1465
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1466
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1467
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1468
|
+
* valid.
|
|
1469
|
+
* @extends {jspb.Message}
|
|
1470
|
+
* @constructor
|
|
1471
|
+
*/
|
|
1472
|
+
proto.payment.CurrenciesMetadataResponse = function(opt_data) {
|
|
1473
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.payment.CurrenciesMetadataResponse.repeatedFields_, null);
|
|
1474
|
+
};
|
|
1475
|
+
goog.inherits(proto.payment.CurrenciesMetadataResponse, jspb.Message);
|
|
1476
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1477
|
+
/**
|
|
1478
|
+
* @public
|
|
1479
|
+
* @override
|
|
1480
|
+
*/
|
|
1481
|
+
proto.payment.CurrenciesMetadataResponse.displayName = 'proto.payment.CurrenciesMetadataResponse';
|
|
1482
|
+
}
|
|
1417
1483
|
/**
|
|
1418
1484
|
* Generated by JsPbCodeGenerator.
|
|
1419
1485
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -23259,6 +23325,482 @@ proto.payment.CurrencyMetadataResponse.prototype.setCurrencyScale = function(val
|
|
|
23259
23325
|
|
|
23260
23326
|
|
|
23261
23327
|
|
|
23328
|
+
/**
|
|
23329
|
+
* List of repeated fields within this message type.
|
|
23330
|
+
* @private {!Array<number>}
|
|
23331
|
+
* @const
|
|
23332
|
+
*/
|
|
23333
|
+
proto.payment.GetCurrenciesMetadataRequest.repeatedFields_ = [1];
|
|
23334
|
+
|
|
23335
|
+
|
|
23336
|
+
|
|
23337
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
23338
|
+
/**
|
|
23339
|
+
* Creates an object representation of this proto.
|
|
23340
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
23341
|
+
* Optional fields that are not set will be set to undefined.
|
|
23342
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
23343
|
+
* For the list of reserved names please see:
|
|
23344
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
23345
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
23346
|
+
* JSPB instance for transitional soy proto support:
|
|
23347
|
+
* http://goto/soy-param-migration
|
|
23348
|
+
* @return {!Object}
|
|
23349
|
+
*/
|
|
23350
|
+
proto.payment.GetCurrenciesMetadataRequest.prototype.toObject = function(opt_includeInstance) {
|
|
23351
|
+
return proto.payment.GetCurrenciesMetadataRequest.toObject(opt_includeInstance, this);
|
|
23352
|
+
};
|
|
23353
|
+
|
|
23354
|
+
|
|
23355
|
+
/**
|
|
23356
|
+
* Static version of the {@see toObject} method.
|
|
23357
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
23358
|
+
* the JSPB instance for transitional soy proto support:
|
|
23359
|
+
* http://goto/soy-param-migration
|
|
23360
|
+
* @param {!proto.payment.GetCurrenciesMetadataRequest} msg The msg instance to transform.
|
|
23361
|
+
* @return {!Object}
|
|
23362
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
23363
|
+
*/
|
|
23364
|
+
proto.payment.GetCurrenciesMetadataRequest.toObject = function(includeInstance, msg) {
|
|
23365
|
+
var f, obj = {
|
|
23366
|
+
currenciesList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
|
|
23367
|
+
};
|
|
23368
|
+
|
|
23369
|
+
if (includeInstance) {
|
|
23370
|
+
obj.$jspbMessageInstance = msg;
|
|
23371
|
+
}
|
|
23372
|
+
return obj;
|
|
23373
|
+
};
|
|
23374
|
+
}
|
|
23375
|
+
|
|
23376
|
+
|
|
23377
|
+
/**
|
|
23378
|
+
* Deserializes binary data (in protobuf wire format).
|
|
23379
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
23380
|
+
* @return {!proto.payment.GetCurrenciesMetadataRequest}
|
|
23381
|
+
*/
|
|
23382
|
+
proto.payment.GetCurrenciesMetadataRequest.deserializeBinary = function(bytes) {
|
|
23383
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
23384
|
+
var msg = new proto.payment.GetCurrenciesMetadataRequest;
|
|
23385
|
+
return proto.payment.GetCurrenciesMetadataRequest.deserializeBinaryFromReader(msg, reader);
|
|
23386
|
+
};
|
|
23387
|
+
|
|
23388
|
+
|
|
23389
|
+
/**
|
|
23390
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
23391
|
+
* given reader into the given message object.
|
|
23392
|
+
* @param {!proto.payment.GetCurrenciesMetadataRequest} msg The message object to deserialize into.
|
|
23393
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
23394
|
+
* @return {!proto.payment.GetCurrenciesMetadataRequest}
|
|
23395
|
+
*/
|
|
23396
|
+
proto.payment.GetCurrenciesMetadataRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
23397
|
+
while (reader.nextField()) {
|
|
23398
|
+
if (reader.isEndGroup()) {
|
|
23399
|
+
break;
|
|
23400
|
+
}
|
|
23401
|
+
var field = reader.getFieldNumber();
|
|
23402
|
+
switch (field) {
|
|
23403
|
+
case 1:
|
|
23404
|
+
var value = /** @type {string} */ (reader.readString());
|
|
23405
|
+
msg.addCurrencies(value);
|
|
23406
|
+
break;
|
|
23407
|
+
default:
|
|
23408
|
+
reader.skipField();
|
|
23409
|
+
break;
|
|
23410
|
+
}
|
|
23411
|
+
}
|
|
23412
|
+
return msg;
|
|
23413
|
+
};
|
|
23414
|
+
|
|
23415
|
+
|
|
23416
|
+
/**
|
|
23417
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
23418
|
+
* @return {!Uint8Array}
|
|
23419
|
+
*/
|
|
23420
|
+
proto.payment.GetCurrenciesMetadataRequest.prototype.serializeBinary = function() {
|
|
23421
|
+
var writer = new jspb.BinaryWriter();
|
|
23422
|
+
proto.payment.GetCurrenciesMetadataRequest.serializeBinaryToWriter(this, writer);
|
|
23423
|
+
return writer.getResultBuffer();
|
|
23424
|
+
};
|
|
23425
|
+
|
|
23426
|
+
|
|
23427
|
+
/**
|
|
23428
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
23429
|
+
* format), writing to the given BinaryWriter.
|
|
23430
|
+
* @param {!proto.payment.GetCurrenciesMetadataRequest} message
|
|
23431
|
+
* @param {!jspb.BinaryWriter} writer
|
|
23432
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
23433
|
+
*/
|
|
23434
|
+
proto.payment.GetCurrenciesMetadataRequest.serializeBinaryToWriter = function(message, writer) {
|
|
23435
|
+
var f = undefined;
|
|
23436
|
+
f = message.getCurrenciesList();
|
|
23437
|
+
if (f.length > 0) {
|
|
23438
|
+
writer.writeRepeatedString(
|
|
23439
|
+
1,
|
|
23440
|
+
f
|
|
23441
|
+
);
|
|
23442
|
+
}
|
|
23443
|
+
};
|
|
23444
|
+
|
|
23445
|
+
|
|
23446
|
+
/**
|
|
23447
|
+
* repeated string currencies = 1;
|
|
23448
|
+
* @return {!Array<string>}
|
|
23449
|
+
*/
|
|
23450
|
+
proto.payment.GetCurrenciesMetadataRequest.prototype.getCurrenciesList = function() {
|
|
23451
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
|
|
23452
|
+
};
|
|
23453
|
+
|
|
23454
|
+
|
|
23455
|
+
/**
|
|
23456
|
+
* @param {!Array<string>} value
|
|
23457
|
+
* @return {!proto.payment.GetCurrenciesMetadataRequest} returns this
|
|
23458
|
+
*/
|
|
23459
|
+
proto.payment.GetCurrenciesMetadataRequest.prototype.setCurrenciesList = function(value) {
|
|
23460
|
+
return jspb.Message.setField(this, 1, value || []);
|
|
23461
|
+
};
|
|
23462
|
+
|
|
23463
|
+
|
|
23464
|
+
/**
|
|
23465
|
+
* @param {string} value
|
|
23466
|
+
* @param {number=} opt_index
|
|
23467
|
+
* @return {!proto.payment.GetCurrenciesMetadataRequest} returns this
|
|
23468
|
+
*/
|
|
23469
|
+
proto.payment.GetCurrenciesMetadataRequest.prototype.addCurrencies = function(value, opt_index) {
|
|
23470
|
+
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
|
23471
|
+
};
|
|
23472
|
+
|
|
23473
|
+
|
|
23474
|
+
/**
|
|
23475
|
+
* Clears the list making it empty but non-null.
|
|
23476
|
+
* @return {!proto.payment.GetCurrenciesMetadataRequest} returns this
|
|
23477
|
+
*/
|
|
23478
|
+
proto.payment.GetCurrenciesMetadataRequest.prototype.clearCurrenciesList = function() {
|
|
23479
|
+
return this.setCurrenciesList([]);
|
|
23480
|
+
};
|
|
23481
|
+
|
|
23482
|
+
|
|
23483
|
+
|
|
23484
|
+
|
|
23485
|
+
|
|
23486
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
23487
|
+
/**
|
|
23488
|
+
* Creates an object representation of this proto.
|
|
23489
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
23490
|
+
* Optional fields that are not set will be set to undefined.
|
|
23491
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
23492
|
+
* For the list of reserved names please see:
|
|
23493
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
23494
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
23495
|
+
* JSPB instance for transitional soy proto support:
|
|
23496
|
+
* http://goto/soy-param-migration
|
|
23497
|
+
* @return {!Object}
|
|
23498
|
+
*/
|
|
23499
|
+
proto.payment.CurrencyMetadataItem.prototype.toObject = function(opt_includeInstance) {
|
|
23500
|
+
return proto.payment.CurrencyMetadataItem.toObject(opt_includeInstance, this);
|
|
23501
|
+
};
|
|
23502
|
+
|
|
23503
|
+
|
|
23504
|
+
/**
|
|
23505
|
+
* Static version of the {@see toObject} method.
|
|
23506
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
23507
|
+
* the JSPB instance for transitional soy proto support:
|
|
23508
|
+
* http://goto/soy-param-migration
|
|
23509
|
+
* @param {!proto.payment.CurrencyMetadataItem} msg The msg instance to transform.
|
|
23510
|
+
* @return {!Object}
|
|
23511
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
23512
|
+
*/
|
|
23513
|
+
proto.payment.CurrencyMetadataItem.toObject = function(includeInstance, msg) {
|
|
23514
|
+
var f, obj = {
|
|
23515
|
+
currency: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
23516
|
+
currencyScale: jspb.Message.getFieldWithDefault(msg, 2, 0)
|
|
23517
|
+
};
|
|
23518
|
+
|
|
23519
|
+
if (includeInstance) {
|
|
23520
|
+
obj.$jspbMessageInstance = msg;
|
|
23521
|
+
}
|
|
23522
|
+
return obj;
|
|
23523
|
+
};
|
|
23524
|
+
}
|
|
23525
|
+
|
|
23526
|
+
|
|
23527
|
+
/**
|
|
23528
|
+
* Deserializes binary data (in protobuf wire format).
|
|
23529
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
23530
|
+
* @return {!proto.payment.CurrencyMetadataItem}
|
|
23531
|
+
*/
|
|
23532
|
+
proto.payment.CurrencyMetadataItem.deserializeBinary = function(bytes) {
|
|
23533
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
23534
|
+
var msg = new proto.payment.CurrencyMetadataItem;
|
|
23535
|
+
return proto.payment.CurrencyMetadataItem.deserializeBinaryFromReader(msg, reader);
|
|
23536
|
+
};
|
|
23537
|
+
|
|
23538
|
+
|
|
23539
|
+
/**
|
|
23540
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
23541
|
+
* given reader into the given message object.
|
|
23542
|
+
* @param {!proto.payment.CurrencyMetadataItem} msg The message object to deserialize into.
|
|
23543
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
23544
|
+
* @return {!proto.payment.CurrencyMetadataItem}
|
|
23545
|
+
*/
|
|
23546
|
+
proto.payment.CurrencyMetadataItem.deserializeBinaryFromReader = function(msg, reader) {
|
|
23547
|
+
while (reader.nextField()) {
|
|
23548
|
+
if (reader.isEndGroup()) {
|
|
23549
|
+
break;
|
|
23550
|
+
}
|
|
23551
|
+
var field = reader.getFieldNumber();
|
|
23552
|
+
switch (field) {
|
|
23553
|
+
case 1:
|
|
23554
|
+
var value = /** @type {string} */ (reader.readString());
|
|
23555
|
+
msg.setCurrency(value);
|
|
23556
|
+
break;
|
|
23557
|
+
case 2:
|
|
23558
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
23559
|
+
msg.setCurrencyScale(value);
|
|
23560
|
+
break;
|
|
23561
|
+
default:
|
|
23562
|
+
reader.skipField();
|
|
23563
|
+
break;
|
|
23564
|
+
}
|
|
23565
|
+
}
|
|
23566
|
+
return msg;
|
|
23567
|
+
};
|
|
23568
|
+
|
|
23569
|
+
|
|
23570
|
+
/**
|
|
23571
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
23572
|
+
* @return {!Uint8Array}
|
|
23573
|
+
*/
|
|
23574
|
+
proto.payment.CurrencyMetadataItem.prototype.serializeBinary = function() {
|
|
23575
|
+
var writer = new jspb.BinaryWriter();
|
|
23576
|
+
proto.payment.CurrencyMetadataItem.serializeBinaryToWriter(this, writer);
|
|
23577
|
+
return writer.getResultBuffer();
|
|
23578
|
+
};
|
|
23579
|
+
|
|
23580
|
+
|
|
23581
|
+
/**
|
|
23582
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
23583
|
+
* format), writing to the given BinaryWriter.
|
|
23584
|
+
* @param {!proto.payment.CurrencyMetadataItem} message
|
|
23585
|
+
* @param {!jspb.BinaryWriter} writer
|
|
23586
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
23587
|
+
*/
|
|
23588
|
+
proto.payment.CurrencyMetadataItem.serializeBinaryToWriter = function(message, writer) {
|
|
23589
|
+
var f = undefined;
|
|
23590
|
+
f = message.getCurrency();
|
|
23591
|
+
if (f.length > 0) {
|
|
23592
|
+
writer.writeString(
|
|
23593
|
+
1,
|
|
23594
|
+
f
|
|
23595
|
+
);
|
|
23596
|
+
}
|
|
23597
|
+
f = message.getCurrencyScale();
|
|
23598
|
+
if (f !== 0) {
|
|
23599
|
+
writer.writeInt32(
|
|
23600
|
+
2,
|
|
23601
|
+
f
|
|
23602
|
+
);
|
|
23603
|
+
}
|
|
23604
|
+
};
|
|
23605
|
+
|
|
23606
|
+
|
|
23607
|
+
/**
|
|
23608
|
+
* optional string currency = 1;
|
|
23609
|
+
* @return {string}
|
|
23610
|
+
*/
|
|
23611
|
+
proto.payment.CurrencyMetadataItem.prototype.getCurrency = function() {
|
|
23612
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
23613
|
+
};
|
|
23614
|
+
|
|
23615
|
+
|
|
23616
|
+
/**
|
|
23617
|
+
* @param {string} value
|
|
23618
|
+
* @return {!proto.payment.CurrencyMetadataItem} returns this
|
|
23619
|
+
*/
|
|
23620
|
+
proto.payment.CurrencyMetadataItem.prototype.setCurrency = function(value) {
|
|
23621
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
23622
|
+
};
|
|
23623
|
+
|
|
23624
|
+
|
|
23625
|
+
/**
|
|
23626
|
+
* optional int32 currency_scale = 2;
|
|
23627
|
+
* @return {number}
|
|
23628
|
+
*/
|
|
23629
|
+
proto.payment.CurrencyMetadataItem.prototype.getCurrencyScale = function() {
|
|
23630
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
23631
|
+
};
|
|
23632
|
+
|
|
23633
|
+
|
|
23634
|
+
/**
|
|
23635
|
+
* @param {number} value
|
|
23636
|
+
* @return {!proto.payment.CurrencyMetadataItem} returns this
|
|
23637
|
+
*/
|
|
23638
|
+
proto.payment.CurrencyMetadataItem.prototype.setCurrencyScale = function(value) {
|
|
23639
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
23640
|
+
};
|
|
23641
|
+
|
|
23642
|
+
|
|
23643
|
+
|
|
23644
|
+
/**
|
|
23645
|
+
* List of repeated fields within this message type.
|
|
23646
|
+
* @private {!Array<number>}
|
|
23647
|
+
* @const
|
|
23648
|
+
*/
|
|
23649
|
+
proto.payment.CurrenciesMetadataResponse.repeatedFields_ = [1];
|
|
23650
|
+
|
|
23651
|
+
|
|
23652
|
+
|
|
23653
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
23654
|
+
/**
|
|
23655
|
+
* Creates an object representation of this proto.
|
|
23656
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
23657
|
+
* Optional fields that are not set will be set to undefined.
|
|
23658
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
23659
|
+
* For the list of reserved names please see:
|
|
23660
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
23661
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
23662
|
+
* JSPB instance for transitional soy proto support:
|
|
23663
|
+
* http://goto/soy-param-migration
|
|
23664
|
+
* @return {!Object}
|
|
23665
|
+
*/
|
|
23666
|
+
proto.payment.CurrenciesMetadataResponse.prototype.toObject = function(opt_includeInstance) {
|
|
23667
|
+
return proto.payment.CurrenciesMetadataResponse.toObject(opt_includeInstance, this);
|
|
23668
|
+
};
|
|
23669
|
+
|
|
23670
|
+
|
|
23671
|
+
/**
|
|
23672
|
+
* Static version of the {@see toObject} method.
|
|
23673
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
23674
|
+
* the JSPB instance for transitional soy proto support:
|
|
23675
|
+
* http://goto/soy-param-migration
|
|
23676
|
+
* @param {!proto.payment.CurrenciesMetadataResponse} msg The msg instance to transform.
|
|
23677
|
+
* @return {!Object}
|
|
23678
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
23679
|
+
*/
|
|
23680
|
+
proto.payment.CurrenciesMetadataResponse.toObject = function(includeInstance, msg) {
|
|
23681
|
+
var f, obj = {
|
|
23682
|
+
itemsList: jspb.Message.toObjectList(msg.getItemsList(),
|
|
23683
|
+
proto.payment.CurrencyMetadataItem.toObject, includeInstance)
|
|
23684
|
+
};
|
|
23685
|
+
|
|
23686
|
+
if (includeInstance) {
|
|
23687
|
+
obj.$jspbMessageInstance = msg;
|
|
23688
|
+
}
|
|
23689
|
+
return obj;
|
|
23690
|
+
};
|
|
23691
|
+
}
|
|
23692
|
+
|
|
23693
|
+
|
|
23694
|
+
/**
|
|
23695
|
+
* Deserializes binary data (in protobuf wire format).
|
|
23696
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
23697
|
+
* @return {!proto.payment.CurrenciesMetadataResponse}
|
|
23698
|
+
*/
|
|
23699
|
+
proto.payment.CurrenciesMetadataResponse.deserializeBinary = function(bytes) {
|
|
23700
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
23701
|
+
var msg = new proto.payment.CurrenciesMetadataResponse;
|
|
23702
|
+
return proto.payment.CurrenciesMetadataResponse.deserializeBinaryFromReader(msg, reader);
|
|
23703
|
+
};
|
|
23704
|
+
|
|
23705
|
+
|
|
23706
|
+
/**
|
|
23707
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
23708
|
+
* given reader into the given message object.
|
|
23709
|
+
* @param {!proto.payment.CurrenciesMetadataResponse} msg The message object to deserialize into.
|
|
23710
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
23711
|
+
* @return {!proto.payment.CurrenciesMetadataResponse}
|
|
23712
|
+
*/
|
|
23713
|
+
proto.payment.CurrenciesMetadataResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
23714
|
+
while (reader.nextField()) {
|
|
23715
|
+
if (reader.isEndGroup()) {
|
|
23716
|
+
break;
|
|
23717
|
+
}
|
|
23718
|
+
var field = reader.getFieldNumber();
|
|
23719
|
+
switch (field) {
|
|
23720
|
+
case 1:
|
|
23721
|
+
var value = new proto.payment.CurrencyMetadataItem;
|
|
23722
|
+
reader.readMessage(value,proto.payment.CurrencyMetadataItem.deserializeBinaryFromReader);
|
|
23723
|
+
msg.addItems(value);
|
|
23724
|
+
break;
|
|
23725
|
+
default:
|
|
23726
|
+
reader.skipField();
|
|
23727
|
+
break;
|
|
23728
|
+
}
|
|
23729
|
+
}
|
|
23730
|
+
return msg;
|
|
23731
|
+
};
|
|
23732
|
+
|
|
23733
|
+
|
|
23734
|
+
/**
|
|
23735
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
23736
|
+
* @return {!Uint8Array}
|
|
23737
|
+
*/
|
|
23738
|
+
proto.payment.CurrenciesMetadataResponse.prototype.serializeBinary = function() {
|
|
23739
|
+
var writer = new jspb.BinaryWriter();
|
|
23740
|
+
proto.payment.CurrenciesMetadataResponse.serializeBinaryToWriter(this, writer);
|
|
23741
|
+
return writer.getResultBuffer();
|
|
23742
|
+
};
|
|
23743
|
+
|
|
23744
|
+
|
|
23745
|
+
/**
|
|
23746
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
23747
|
+
* format), writing to the given BinaryWriter.
|
|
23748
|
+
* @param {!proto.payment.CurrenciesMetadataResponse} message
|
|
23749
|
+
* @param {!jspb.BinaryWriter} writer
|
|
23750
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
23751
|
+
*/
|
|
23752
|
+
proto.payment.CurrenciesMetadataResponse.serializeBinaryToWriter = function(message, writer) {
|
|
23753
|
+
var f = undefined;
|
|
23754
|
+
f = message.getItemsList();
|
|
23755
|
+
if (f.length > 0) {
|
|
23756
|
+
writer.writeRepeatedMessage(
|
|
23757
|
+
1,
|
|
23758
|
+
f,
|
|
23759
|
+
proto.payment.CurrencyMetadataItem.serializeBinaryToWriter
|
|
23760
|
+
);
|
|
23761
|
+
}
|
|
23762
|
+
};
|
|
23763
|
+
|
|
23764
|
+
|
|
23765
|
+
/**
|
|
23766
|
+
* repeated CurrencyMetadataItem items = 1;
|
|
23767
|
+
* @return {!Array<!proto.payment.CurrencyMetadataItem>}
|
|
23768
|
+
*/
|
|
23769
|
+
proto.payment.CurrenciesMetadataResponse.prototype.getItemsList = function() {
|
|
23770
|
+
return /** @type{!Array<!proto.payment.CurrencyMetadataItem>} */ (
|
|
23771
|
+
jspb.Message.getRepeatedWrapperField(this, proto.payment.CurrencyMetadataItem, 1));
|
|
23772
|
+
};
|
|
23773
|
+
|
|
23774
|
+
|
|
23775
|
+
/**
|
|
23776
|
+
* @param {!Array<!proto.payment.CurrencyMetadataItem>} value
|
|
23777
|
+
* @return {!proto.payment.CurrenciesMetadataResponse} returns this
|
|
23778
|
+
*/
|
|
23779
|
+
proto.payment.CurrenciesMetadataResponse.prototype.setItemsList = function(value) {
|
|
23780
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
23781
|
+
};
|
|
23782
|
+
|
|
23783
|
+
|
|
23784
|
+
/**
|
|
23785
|
+
* @param {!proto.payment.CurrencyMetadataItem=} opt_value
|
|
23786
|
+
* @param {number=} opt_index
|
|
23787
|
+
* @return {!proto.payment.CurrencyMetadataItem}
|
|
23788
|
+
*/
|
|
23789
|
+
proto.payment.CurrenciesMetadataResponse.prototype.addItems = function(opt_value, opt_index) {
|
|
23790
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.payment.CurrencyMetadataItem, opt_index);
|
|
23791
|
+
};
|
|
23792
|
+
|
|
23793
|
+
|
|
23794
|
+
/**
|
|
23795
|
+
* Clears the list making it empty but non-null.
|
|
23796
|
+
* @return {!proto.payment.CurrenciesMetadataResponse} returns this
|
|
23797
|
+
*/
|
|
23798
|
+
proto.payment.CurrenciesMetadataResponse.prototype.clearItemsList = function() {
|
|
23799
|
+
return this.setItemsList([]);
|
|
23800
|
+
};
|
|
23801
|
+
|
|
23802
|
+
|
|
23803
|
+
|
|
23262
23804
|
|
|
23263
23805
|
|
|
23264
23806
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
package/user/user.proto
CHANGED
|
@@ -14,6 +14,7 @@ service User {
|
|
|
14
14
|
rpc getUserBalance(UserDataRequest) returns (UserDataResponse);
|
|
15
15
|
rpc updateUserBalance(UserBalanceRequest) returns (UserDataResponse);
|
|
16
16
|
rpc checkWithdrawalEligibility(CheckWithdrawalEligibilityRequest) returns (CheckWithdrawalEligibilityResponse);
|
|
17
|
+
rpc getUserWalletBalances(GetUserWalletBalancesRequest) returns (UserWalletBalancesResponse);
|
|
17
18
|
rpc getUserCachedData(UserDataRequest) returns (UserDataResponse);
|
|
18
19
|
rpc getPumpKingsMyTokenWidgetLaunchData(GetPumpKingsMyTokenWidgetLaunchDataRequest) returns (GetPumpKingsMyTokenWidgetLaunchDataResponse);
|
|
19
20
|
rpc getUserAffiliateAttribution(UserAffiliateAttributionRequest) returns (UserAffiliateAttributionResponse);
|
|
@@ -280,6 +281,19 @@ message CheckWithdrawalEligibilityResponse {
|
|
|
280
281
|
optional string currency = 4;
|
|
281
282
|
optional int32 currency_scale = 5;
|
|
282
283
|
}
|
|
284
|
+
message GetUserWalletBalancesRequest {
|
|
285
|
+
int32 user_id = 1;
|
|
286
|
+
}
|
|
287
|
+
message UserWalletBalanceItem {
|
|
288
|
+
string currency = 1;
|
|
289
|
+
int32 currency_scale = 2;
|
|
290
|
+
int64 real_amount_minor = 3;
|
|
291
|
+
int64 bonus_amount_minor = 4;
|
|
292
|
+
optional string updated_at = 5;
|
|
293
|
+
}
|
|
294
|
+
message UserWalletBalancesResponse {
|
|
295
|
+
repeated UserWalletBalanceItem items = 1;
|
|
296
|
+
}
|
|
283
297
|
message UserPasswordRequest {
|
|
284
298
|
int32 id = 1;
|
|
285
299
|
string current_password = 2;
|
package/user/user_grpc_pb.js
CHANGED
|
@@ -257,6 +257,17 @@ function deserialize_user_GetUserSegmentIdsRequest(buffer_arg) {
|
|
|
257
257
|
return user_pb.GetUserSegmentIdsRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
258
258
|
}
|
|
259
259
|
|
|
260
|
+
function serialize_user_GetUserWalletBalancesRequest(arg) {
|
|
261
|
+
if (!(arg instanceof user_pb.GetUserWalletBalancesRequest)) {
|
|
262
|
+
throw new Error('Expected argument of type user.GetUserWalletBalancesRequest');
|
|
263
|
+
}
|
|
264
|
+
return Buffer.from(arg.serializeBinary());
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
function deserialize_user_GetUserWalletBalancesRequest(buffer_arg) {
|
|
268
|
+
return user_pb.GetUserWalletBalancesRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
269
|
+
}
|
|
270
|
+
|
|
260
271
|
function serialize_user_GoogleLoginRequest(arg) {
|
|
261
272
|
if (!(arg instanceof user_pb.GoogleLoginRequest)) {
|
|
262
273
|
throw new Error('Expected argument of type user.GoogleLoginRequest');
|
|
@@ -1071,6 +1082,17 @@ function deserialize_user_UserToggleGameStatusResponse(buffer_arg) {
|
|
|
1071
1082
|
return user_pb.UserToggleGameStatusResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
1072
1083
|
}
|
|
1073
1084
|
|
|
1085
|
+
function serialize_user_UserWalletBalancesResponse(arg) {
|
|
1086
|
+
if (!(arg instanceof user_pb.UserWalletBalancesResponse)) {
|
|
1087
|
+
throw new Error('Expected argument of type user.UserWalletBalancesResponse');
|
|
1088
|
+
}
|
|
1089
|
+
return Buffer.from(arg.serializeBinary());
|
|
1090
|
+
}
|
|
1091
|
+
|
|
1092
|
+
function deserialize_user_UserWalletBalancesResponse(buffer_arg) {
|
|
1093
|
+
return user_pb.UserWalletBalancesResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
1094
|
+
}
|
|
1095
|
+
|
|
1074
1096
|
function serialize_user_UsersResponse(arg) {
|
|
1075
1097
|
if (!(arg instanceof user_pb.UsersResponse)) {
|
|
1076
1098
|
throw new Error('Expected argument of type user.UsersResponse');
|
|
@@ -1206,6 +1228,17 @@ signUp: {
|
|
|
1206
1228
|
responseSerialize: serialize_user_CheckWithdrawalEligibilityResponse,
|
|
1207
1229
|
responseDeserialize: deserialize_user_CheckWithdrawalEligibilityResponse,
|
|
1208
1230
|
},
|
|
1231
|
+
getUserWalletBalances: {
|
|
1232
|
+
path: '/user.User/getUserWalletBalances',
|
|
1233
|
+
requestStream: false,
|
|
1234
|
+
responseStream: false,
|
|
1235
|
+
requestType: user_pb.GetUserWalletBalancesRequest,
|
|
1236
|
+
responseType: user_pb.UserWalletBalancesResponse,
|
|
1237
|
+
requestSerialize: serialize_user_GetUserWalletBalancesRequest,
|
|
1238
|
+
requestDeserialize: deserialize_user_GetUserWalletBalancesRequest,
|
|
1239
|
+
responseSerialize: serialize_user_UserWalletBalancesResponse,
|
|
1240
|
+
responseDeserialize: deserialize_user_UserWalletBalancesResponse,
|
|
1241
|
+
},
|
|
1209
1242
|
getUserCachedData: {
|
|
1210
1243
|
path: '/user.User/getUserCachedData',
|
|
1211
1244
|
requestStream: false,
|