pactus-grpc 1.9.3 → 1.10.0
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/blockchain_pb.js +30 -0
- package/network_grpc_pb.js +34 -0
- package/network_grpc_web_pb.js +61 -0
- package/network_pb.js +246 -0
- package/package.json +1 -1
- package/utils_grpc_pb.js +1 -1
- package/wallet_grpc_pb.js +1 -1
- package/wallet_pb.js +34 -4
package/blockchain_pb.js
CHANGED
|
@@ -3056,6 +3056,7 @@ lastBlockHeight: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
|
3056
3056
|
lastBlockHash: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
3057
3057
|
totalAccounts: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
3058
3058
|
totalValidators: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
3059
|
+
activeValidators: jspb.Message.getFieldWithDefault(msg, 12, 0),
|
|
3059
3060
|
totalPower: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
3060
3061
|
committeePower: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
|
3061
3062
|
committeeValidatorsList: jspb.Message.toObjectList(msg.getCommitteeValidatorsList(),
|
|
@@ -3116,6 +3117,10 @@ proto.pactus.GetBlockchainInfoResponse.deserializeBinaryFromReader = function(ms
|
|
|
3116
3117
|
var value = /** @type {number} */ (reader.readInt32());
|
|
3117
3118
|
msg.setTotalValidators(value);
|
|
3118
3119
|
break;
|
|
3120
|
+
case 12:
|
|
3121
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
3122
|
+
msg.setActiveValidators(value);
|
|
3123
|
+
break;
|
|
3119
3124
|
case 5:
|
|
3120
3125
|
var value = /** @type {number} */ (reader.readInt64());
|
|
3121
3126
|
msg.setTotalPower(value);
|
|
@@ -3204,6 +3209,13 @@ proto.pactus.GetBlockchainInfoResponse.serializeBinaryToWriter = function(messag
|
|
|
3204
3209
|
f
|
|
3205
3210
|
);
|
|
3206
3211
|
}
|
|
3212
|
+
f = message.getActiveValidators();
|
|
3213
|
+
if (f !== 0) {
|
|
3214
|
+
writer.writeInt32(
|
|
3215
|
+
12,
|
|
3216
|
+
f
|
|
3217
|
+
);
|
|
3218
|
+
}
|
|
3207
3219
|
f = message.getTotalPower();
|
|
3208
3220
|
if (f !== 0) {
|
|
3209
3221
|
writer.writeInt64(
|
|
@@ -3326,6 +3338,24 @@ proto.pactus.GetBlockchainInfoResponse.prototype.setTotalValidators = function(v
|
|
|
3326
3338
|
};
|
|
3327
3339
|
|
|
3328
3340
|
|
|
3341
|
+
/**
|
|
3342
|
+
* optional int32 active_validators = 12;
|
|
3343
|
+
* @return {number}
|
|
3344
|
+
*/
|
|
3345
|
+
proto.pactus.GetBlockchainInfoResponse.prototype.getActiveValidators = function() {
|
|
3346
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 12, 0));
|
|
3347
|
+
};
|
|
3348
|
+
|
|
3349
|
+
|
|
3350
|
+
/**
|
|
3351
|
+
* @param {number} value
|
|
3352
|
+
* @return {!proto.pactus.GetBlockchainInfoResponse} returns this
|
|
3353
|
+
*/
|
|
3354
|
+
proto.pactus.GetBlockchainInfoResponse.prototype.setActiveValidators = function(value) {
|
|
3355
|
+
return jspb.Message.setProto3IntField(this, 12, value);
|
|
3356
|
+
};
|
|
3357
|
+
|
|
3358
|
+
|
|
3329
3359
|
/**
|
|
3330
3360
|
* optional int64 total_power = 5;
|
|
3331
3361
|
* @return {number}
|
package/network_grpc_pb.js
CHANGED
|
@@ -48,6 +48,28 @@ function deserialize_pactus_GetNodeInfoResponse(buffer_arg) {
|
|
|
48
48
|
return network_pb.GetNodeInfoResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
+
function serialize_pactus_PingRequest(arg) {
|
|
52
|
+
if (!(arg instanceof network_pb.PingRequest)) {
|
|
53
|
+
throw new Error('Expected argument of type pactus.PingRequest');
|
|
54
|
+
}
|
|
55
|
+
return Buffer.from(arg.serializeBinary());
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
function deserialize_pactus_PingRequest(buffer_arg) {
|
|
59
|
+
return network_pb.PingRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
function serialize_pactus_PingResponse(arg) {
|
|
63
|
+
if (!(arg instanceof network_pb.PingResponse)) {
|
|
64
|
+
throw new Error('Expected argument of type pactus.PingResponse');
|
|
65
|
+
}
|
|
66
|
+
return Buffer.from(arg.serializeBinary());
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
function deserialize_pactus_PingResponse(buffer_arg) {
|
|
70
|
+
return network_pb.PingResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
71
|
+
}
|
|
72
|
+
|
|
51
73
|
|
|
52
74
|
// Network service provides RPCs for retrieving information about the network.
|
|
53
75
|
var NetworkService = exports.NetworkService = {
|
|
@@ -75,6 +97,18 @@ getNodeInfo: {
|
|
|
75
97
|
responseSerialize: serialize_pactus_GetNodeInfoResponse,
|
|
76
98
|
responseDeserialize: deserialize_pactus_GetNodeInfoResponse,
|
|
77
99
|
},
|
|
100
|
+
// Ping provides a simple connectivity test and latency measurement.
|
|
101
|
+
ping: {
|
|
102
|
+
path: '/pactus.Network/Ping',
|
|
103
|
+
requestStream: false,
|
|
104
|
+
responseStream: false,
|
|
105
|
+
requestType: network_pb.PingRequest,
|
|
106
|
+
responseType: network_pb.PingResponse,
|
|
107
|
+
requestSerialize: serialize_pactus_PingRequest,
|
|
108
|
+
requestDeserialize: deserialize_pactus_PingRequest,
|
|
109
|
+
responseSerialize: serialize_pactus_PingResponse,
|
|
110
|
+
responseDeserialize: deserialize_pactus_PingResponse,
|
|
111
|
+
},
|
|
78
112
|
};
|
|
79
113
|
|
|
80
114
|
exports.NetworkClient = grpc.makeGenericClientConstructor(NetworkService, 'Network');
|
package/network_grpc_web_pb.js
CHANGED
|
@@ -196,5 +196,66 @@ proto.pactus.NetworkPromiseClient.prototype.getNodeInfo =
|
|
|
196
196
|
};
|
|
197
197
|
|
|
198
198
|
|
|
199
|
+
/**
|
|
200
|
+
* @const
|
|
201
|
+
* @type {!grpc.web.MethodDescriptor<
|
|
202
|
+
* !proto.pactus.PingRequest,
|
|
203
|
+
* !proto.pactus.PingResponse>}
|
|
204
|
+
*/
|
|
205
|
+
const methodDescriptor_Network_Ping = new grpc.web.MethodDescriptor(
|
|
206
|
+
'/pactus.Network/Ping',
|
|
207
|
+
grpc.web.MethodType.UNARY,
|
|
208
|
+
proto.pactus.PingRequest,
|
|
209
|
+
proto.pactus.PingResponse,
|
|
210
|
+
/**
|
|
211
|
+
* @param {!proto.pactus.PingRequest} request
|
|
212
|
+
* @return {!Uint8Array}
|
|
213
|
+
*/
|
|
214
|
+
function(request) {
|
|
215
|
+
return request.serializeBinary();
|
|
216
|
+
},
|
|
217
|
+
proto.pactus.PingResponse.deserializeBinary
|
|
218
|
+
);
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* @param {!proto.pactus.PingRequest} request The
|
|
223
|
+
* request proto
|
|
224
|
+
* @param {?Object<string, string>} metadata User defined
|
|
225
|
+
* call metadata
|
|
226
|
+
* @param {function(?grpc.web.RpcError, ?proto.pactus.PingResponse)}
|
|
227
|
+
* callback The callback function(error, response)
|
|
228
|
+
* @return {!grpc.web.ClientReadableStream<!proto.pactus.PingResponse>|undefined}
|
|
229
|
+
* The XHR Node Readable Stream
|
|
230
|
+
*/
|
|
231
|
+
proto.pactus.NetworkClient.prototype.ping =
|
|
232
|
+
function(request, metadata, callback) {
|
|
233
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
234
|
+
'/pactus.Network/Ping',
|
|
235
|
+
request,
|
|
236
|
+
metadata || {},
|
|
237
|
+
methodDescriptor_Network_Ping,
|
|
238
|
+
callback);
|
|
239
|
+
};
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* @param {!proto.pactus.PingRequest} request The
|
|
244
|
+
* request proto
|
|
245
|
+
* @param {?Object<string, string>=} metadata User defined
|
|
246
|
+
* call metadata
|
|
247
|
+
* @return {!Promise<!proto.pactus.PingResponse>}
|
|
248
|
+
* Promise that resolves to the response
|
|
249
|
+
*/
|
|
250
|
+
proto.pactus.NetworkPromiseClient.prototype.ping =
|
|
251
|
+
function(request, metadata) {
|
|
252
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
253
|
+
'/pactus.Network/Ping',
|
|
254
|
+
request,
|
|
255
|
+
metadata || {},
|
|
256
|
+
methodDescriptor_Network_Ping);
|
|
257
|
+
};
|
|
258
|
+
|
|
259
|
+
|
|
199
260
|
module.exports = proto.pactus;
|
|
200
261
|
|
package/network_pb.js
CHANGED
|
@@ -30,6 +30,8 @@ goog.exportSymbol('proto.pactus.GetNodeInfoRequest', null, global);
|
|
|
30
30
|
goog.exportSymbol('proto.pactus.GetNodeInfoResponse', null, global);
|
|
31
31
|
goog.exportSymbol('proto.pactus.MetricInfo', null, global);
|
|
32
32
|
goog.exportSymbol('proto.pactus.PeerInfo', null, global);
|
|
33
|
+
goog.exportSymbol('proto.pactus.PingRequest', null, global);
|
|
34
|
+
goog.exportSymbol('proto.pactus.PingResponse', null, global);
|
|
33
35
|
goog.exportSymbol('proto.pactus.ZMQPublisherInfo', null, global);
|
|
34
36
|
/**
|
|
35
37
|
* Generated by JsPbCodeGenerator.
|
|
@@ -220,6 +222,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
220
222
|
*/
|
|
221
223
|
proto.pactus.CounterInfo.displayName = 'proto.pactus.CounterInfo';
|
|
222
224
|
}
|
|
225
|
+
/**
|
|
226
|
+
* Generated by JsPbCodeGenerator.
|
|
227
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
228
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
229
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
230
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
231
|
+
* valid.
|
|
232
|
+
* @extends {jspb.Message}
|
|
233
|
+
* @constructor
|
|
234
|
+
*/
|
|
235
|
+
proto.pactus.PingRequest = function(opt_data) {
|
|
236
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
237
|
+
};
|
|
238
|
+
goog.inherits(proto.pactus.PingRequest, jspb.Message);
|
|
239
|
+
if (goog.DEBUG && !COMPILED) {
|
|
240
|
+
/**
|
|
241
|
+
* @public
|
|
242
|
+
* @override
|
|
243
|
+
*/
|
|
244
|
+
proto.pactus.PingRequest.displayName = 'proto.pactus.PingRequest';
|
|
245
|
+
}
|
|
246
|
+
/**
|
|
247
|
+
* Generated by JsPbCodeGenerator.
|
|
248
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
249
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
250
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
251
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
252
|
+
* valid.
|
|
253
|
+
* @extends {jspb.Message}
|
|
254
|
+
* @constructor
|
|
255
|
+
*/
|
|
256
|
+
proto.pactus.PingResponse = function(opt_data) {
|
|
257
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
258
|
+
};
|
|
259
|
+
goog.inherits(proto.pactus.PingResponse, jspb.Message);
|
|
260
|
+
if (goog.DEBUG && !COMPILED) {
|
|
261
|
+
/**
|
|
262
|
+
* @public
|
|
263
|
+
* @override
|
|
264
|
+
*/
|
|
265
|
+
proto.pactus.PingResponse.displayName = 'proto.pactus.PingResponse';
|
|
266
|
+
}
|
|
223
267
|
|
|
224
268
|
|
|
225
269
|
|
|
@@ -2887,6 +2931,208 @@ proto.pactus.CounterInfo.prototype.setBundles = function(value) {
|
|
|
2887
2931
|
};
|
|
2888
2932
|
|
|
2889
2933
|
|
|
2934
|
+
|
|
2935
|
+
|
|
2936
|
+
|
|
2937
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2938
|
+
/**
|
|
2939
|
+
* Creates an object representation of this proto.
|
|
2940
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2941
|
+
* Optional fields that are not set will be set to undefined.
|
|
2942
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2943
|
+
* For the list of reserved names please see:
|
|
2944
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2945
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2946
|
+
* JSPB instance for transitional soy proto support:
|
|
2947
|
+
* http://goto/soy-param-migration
|
|
2948
|
+
* @return {!Object}
|
|
2949
|
+
*/
|
|
2950
|
+
proto.pactus.PingRequest.prototype.toObject = function(opt_includeInstance) {
|
|
2951
|
+
return proto.pactus.PingRequest.toObject(opt_includeInstance, this);
|
|
2952
|
+
};
|
|
2953
|
+
|
|
2954
|
+
|
|
2955
|
+
/**
|
|
2956
|
+
* Static version of the {@see toObject} method.
|
|
2957
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2958
|
+
* the JSPB instance for transitional soy proto support:
|
|
2959
|
+
* http://goto/soy-param-migration
|
|
2960
|
+
* @param {!proto.pactus.PingRequest} msg The msg instance to transform.
|
|
2961
|
+
* @return {!Object}
|
|
2962
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2963
|
+
*/
|
|
2964
|
+
proto.pactus.PingRequest.toObject = function(includeInstance, msg) {
|
|
2965
|
+
var f, obj = {
|
|
2966
|
+
|
|
2967
|
+
};
|
|
2968
|
+
|
|
2969
|
+
if (includeInstance) {
|
|
2970
|
+
obj.$jspbMessageInstance = msg;
|
|
2971
|
+
}
|
|
2972
|
+
return obj;
|
|
2973
|
+
};
|
|
2974
|
+
}
|
|
2975
|
+
|
|
2976
|
+
|
|
2977
|
+
/**
|
|
2978
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2979
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2980
|
+
* @return {!proto.pactus.PingRequest}
|
|
2981
|
+
*/
|
|
2982
|
+
proto.pactus.PingRequest.deserializeBinary = function(bytes) {
|
|
2983
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2984
|
+
var msg = new proto.pactus.PingRequest;
|
|
2985
|
+
return proto.pactus.PingRequest.deserializeBinaryFromReader(msg, reader);
|
|
2986
|
+
};
|
|
2987
|
+
|
|
2988
|
+
|
|
2989
|
+
/**
|
|
2990
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2991
|
+
* given reader into the given message object.
|
|
2992
|
+
* @param {!proto.pactus.PingRequest} msg The message object to deserialize into.
|
|
2993
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2994
|
+
* @return {!proto.pactus.PingRequest}
|
|
2995
|
+
*/
|
|
2996
|
+
proto.pactus.PingRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
2997
|
+
while (reader.nextField()) {
|
|
2998
|
+
if (reader.isEndGroup()) {
|
|
2999
|
+
break;
|
|
3000
|
+
}
|
|
3001
|
+
var field = reader.getFieldNumber();
|
|
3002
|
+
switch (field) {
|
|
3003
|
+
default:
|
|
3004
|
+
reader.skipField();
|
|
3005
|
+
break;
|
|
3006
|
+
}
|
|
3007
|
+
}
|
|
3008
|
+
return msg;
|
|
3009
|
+
};
|
|
3010
|
+
|
|
3011
|
+
|
|
3012
|
+
/**
|
|
3013
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
3014
|
+
* @return {!Uint8Array}
|
|
3015
|
+
*/
|
|
3016
|
+
proto.pactus.PingRequest.prototype.serializeBinary = function() {
|
|
3017
|
+
var writer = new jspb.BinaryWriter();
|
|
3018
|
+
proto.pactus.PingRequest.serializeBinaryToWriter(this, writer);
|
|
3019
|
+
return writer.getResultBuffer();
|
|
3020
|
+
};
|
|
3021
|
+
|
|
3022
|
+
|
|
3023
|
+
/**
|
|
3024
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
3025
|
+
* format), writing to the given BinaryWriter.
|
|
3026
|
+
* @param {!proto.pactus.PingRequest} message
|
|
3027
|
+
* @param {!jspb.BinaryWriter} writer
|
|
3028
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3029
|
+
*/
|
|
3030
|
+
proto.pactus.PingRequest.serializeBinaryToWriter = function(message, writer) {
|
|
3031
|
+
var f = undefined;
|
|
3032
|
+
};
|
|
3033
|
+
|
|
3034
|
+
|
|
3035
|
+
|
|
3036
|
+
|
|
3037
|
+
|
|
3038
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3039
|
+
/**
|
|
3040
|
+
* Creates an object representation of this proto.
|
|
3041
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
3042
|
+
* Optional fields that are not set will be set to undefined.
|
|
3043
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3044
|
+
* For the list of reserved names please see:
|
|
3045
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3046
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3047
|
+
* JSPB instance for transitional soy proto support:
|
|
3048
|
+
* http://goto/soy-param-migration
|
|
3049
|
+
* @return {!Object}
|
|
3050
|
+
*/
|
|
3051
|
+
proto.pactus.PingResponse.prototype.toObject = function(opt_includeInstance) {
|
|
3052
|
+
return proto.pactus.PingResponse.toObject(opt_includeInstance, this);
|
|
3053
|
+
};
|
|
3054
|
+
|
|
3055
|
+
|
|
3056
|
+
/**
|
|
3057
|
+
* Static version of the {@see toObject} method.
|
|
3058
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3059
|
+
* the JSPB instance for transitional soy proto support:
|
|
3060
|
+
* http://goto/soy-param-migration
|
|
3061
|
+
* @param {!proto.pactus.PingResponse} msg The msg instance to transform.
|
|
3062
|
+
* @return {!Object}
|
|
3063
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3064
|
+
*/
|
|
3065
|
+
proto.pactus.PingResponse.toObject = function(includeInstance, msg) {
|
|
3066
|
+
var f, obj = {
|
|
3067
|
+
|
|
3068
|
+
};
|
|
3069
|
+
|
|
3070
|
+
if (includeInstance) {
|
|
3071
|
+
obj.$jspbMessageInstance = msg;
|
|
3072
|
+
}
|
|
3073
|
+
return obj;
|
|
3074
|
+
};
|
|
3075
|
+
}
|
|
3076
|
+
|
|
3077
|
+
|
|
3078
|
+
/**
|
|
3079
|
+
* Deserializes binary data (in protobuf wire format).
|
|
3080
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3081
|
+
* @return {!proto.pactus.PingResponse}
|
|
3082
|
+
*/
|
|
3083
|
+
proto.pactus.PingResponse.deserializeBinary = function(bytes) {
|
|
3084
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
3085
|
+
var msg = new proto.pactus.PingResponse;
|
|
3086
|
+
return proto.pactus.PingResponse.deserializeBinaryFromReader(msg, reader);
|
|
3087
|
+
};
|
|
3088
|
+
|
|
3089
|
+
|
|
3090
|
+
/**
|
|
3091
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
3092
|
+
* given reader into the given message object.
|
|
3093
|
+
* @param {!proto.pactus.PingResponse} msg The message object to deserialize into.
|
|
3094
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3095
|
+
* @return {!proto.pactus.PingResponse}
|
|
3096
|
+
*/
|
|
3097
|
+
proto.pactus.PingResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
3098
|
+
while (reader.nextField()) {
|
|
3099
|
+
if (reader.isEndGroup()) {
|
|
3100
|
+
break;
|
|
3101
|
+
}
|
|
3102
|
+
var field = reader.getFieldNumber();
|
|
3103
|
+
switch (field) {
|
|
3104
|
+
default:
|
|
3105
|
+
reader.skipField();
|
|
3106
|
+
break;
|
|
3107
|
+
}
|
|
3108
|
+
}
|
|
3109
|
+
return msg;
|
|
3110
|
+
};
|
|
3111
|
+
|
|
3112
|
+
|
|
3113
|
+
/**
|
|
3114
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
3115
|
+
* @return {!Uint8Array}
|
|
3116
|
+
*/
|
|
3117
|
+
proto.pactus.PingResponse.prototype.serializeBinary = function() {
|
|
3118
|
+
var writer = new jspb.BinaryWriter();
|
|
3119
|
+
proto.pactus.PingResponse.serializeBinaryToWriter(this, writer);
|
|
3120
|
+
return writer.getResultBuffer();
|
|
3121
|
+
};
|
|
3122
|
+
|
|
3123
|
+
|
|
3124
|
+
/**
|
|
3125
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
3126
|
+
* format), writing to the given BinaryWriter.
|
|
3127
|
+
* @param {!proto.pactus.PingResponse} message
|
|
3128
|
+
* @param {!jspb.BinaryWriter} writer
|
|
3129
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3130
|
+
*/
|
|
3131
|
+
proto.pactus.PingResponse.serializeBinaryToWriter = function(message, writer) {
|
|
3132
|
+
var f = undefined;
|
|
3133
|
+
};
|
|
3134
|
+
|
|
3135
|
+
|
|
2890
3136
|
/**
|
|
2891
3137
|
* @enum {number}
|
|
2892
3138
|
*/
|
package/package.json
CHANGED
package/utils_grpc_pb.js
CHANGED
|
@@ -94,7 +94,7 @@ function deserialize_pactus_VerifyMessageResponse(buffer_arg) {
|
|
|
94
94
|
|
|
95
95
|
|
|
96
96
|
// Utils service defines RPC methods for utility functions such as message
|
|
97
|
-
// signing, verification, and
|
|
97
|
+
// signing, verification, and other cryptographic operations.
|
|
98
98
|
var UtilsService = exports.UtilsService = {
|
|
99
99
|
// SignMessageWithPrivateKey signs a message with the provided private key.
|
|
100
100
|
signMessageWithPrivateKey: {
|
package/wallet_grpc_pb.js
CHANGED
|
@@ -515,7 +515,7 @@ setAddressLabel: {
|
|
|
515
515
|
responseSerialize: serialize_pactus_SetAddressLabelResponse,
|
|
516
516
|
responseDeserialize: deserialize_pactus_SetAddressLabelResponse,
|
|
517
517
|
},
|
|
518
|
-
// ListWallet returns list of all available wallets.
|
|
518
|
+
// ListWallet returns a list of all available wallets.
|
|
519
519
|
listWallet: {
|
|
520
520
|
path: '/pactus.Wallet/ListWallet',
|
|
521
521
|
requestStream: false,
|
package/wallet_pb.js
CHANGED
|
@@ -5786,7 +5786,8 @@ version: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
|
5786
5786
|
network: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
5787
5787
|
encrypted: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
|
|
5788
5788
|
uuid: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
5789
|
-
createdAt: jspb.Message.getFieldWithDefault(msg, 6, 0)
|
|
5789
|
+
createdAt: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
|
5790
|
+
defaultFee: jspb.Message.getFieldWithDefault(msg, 7, 0)
|
|
5790
5791
|
};
|
|
5791
5792
|
|
|
5792
5793
|
if (includeInstance) {
|
|
@@ -5828,7 +5829,7 @@ proto.pactus.GetWalletInfoResponse.deserializeBinaryFromReader = function(msg, r
|
|
|
5828
5829
|
msg.setWalletName(value);
|
|
5829
5830
|
break;
|
|
5830
5831
|
case 2:
|
|
5831
|
-
var value = /** @type {number} */ (reader.
|
|
5832
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
5832
5833
|
msg.setVersion(value);
|
|
5833
5834
|
break;
|
|
5834
5835
|
case 3:
|
|
@@ -5847,6 +5848,10 @@ proto.pactus.GetWalletInfoResponse.deserializeBinaryFromReader = function(msg, r
|
|
|
5847
5848
|
var value = /** @type {number} */ (reader.readInt64());
|
|
5848
5849
|
msg.setCreatedAt(value);
|
|
5849
5850
|
break;
|
|
5851
|
+
case 7:
|
|
5852
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
5853
|
+
msg.setDefaultFee(value);
|
|
5854
|
+
break;
|
|
5850
5855
|
default:
|
|
5851
5856
|
reader.skipField();
|
|
5852
5857
|
break;
|
|
@@ -5885,7 +5890,7 @@ proto.pactus.GetWalletInfoResponse.serializeBinaryToWriter = function(message, w
|
|
|
5885
5890
|
}
|
|
5886
5891
|
f = message.getVersion();
|
|
5887
5892
|
if (f !== 0) {
|
|
5888
|
-
writer.
|
|
5893
|
+
writer.writeInt32(
|
|
5889
5894
|
2,
|
|
5890
5895
|
f
|
|
5891
5896
|
);
|
|
@@ -5918,6 +5923,13 @@ proto.pactus.GetWalletInfoResponse.serializeBinaryToWriter = function(message, w
|
|
|
5918
5923
|
f
|
|
5919
5924
|
);
|
|
5920
5925
|
}
|
|
5926
|
+
f = message.getDefaultFee();
|
|
5927
|
+
if (f !== 0) {
|
|
5928
|
+
writer.writeInt64(
|
|
5929
|
+
7,
|
|
5930
|
+
f
|
|
5931
|
+
);
|
|
5932
|
+
}
|
|
5921
5933
|
};
|
|
5922
5934
|
|
|
5923
5935
|
|
|
@@ -5940,7 +5952,7 @@ proto.pactus.GetWalletInfoResponse.prototype.setWalletName = function(value) {
|
|
|
5940
5952
|
|
|
5941
5953
|
|
|
5942
5954
|
/**
|
|
5943
|
-
* optional
|
|
5955
|
+
* optional int32 version = 2;
|
|
5944
5956
|
* @return {number}
|
|
5945
5957
|
*/
|
|
5946
5958
|
proto.pactus.GetWalletInfoResponse.prototype.getVersion = function() {
|
|
@@ -6029,6 +6041,24 @@ proto.pactus.GetWalletInfoResponse.prototype.setCreatedAt = function(value) {
|
|
|
6029
6041
|
};
|
|
6030
6042
|
|
|
6031
6043
|
|
|
6044
|
+
/**
|
|
6045
|
+
* optional int64 default_fee = 7;
|
|
6046
|
+
* @return {number}
|
|
6047
|
+
*/
|
|
6048
|
+
proto.pactus.GetWalletInfoResponse.prototype.getDefaultFee = function() {
|
|
6049
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
|
|
6050
|
+
};
|
|
6051
|
+
|
|
6052
|
+
|
|
6053
|
+
/**
|
|
6054
|
+
* @param {number} value
|
|
6055
|
+
* @return {!proto.pactus.GetWalletInfoResponse} returns this
|
|
6056
|
+
*/
|
|
6057
|
+
proto.pactus.GetWalletInfoResponse.prototype.setDefaultFee = function(value) {
|
|
6058
|
+
return jspb.Message.setProto3IntField(this, 7, value);
|
|
6059
|
+
};
|
|
6060
|
+
|
|
6061
|
+
|
|
6032
6062
|
|
|
6033
6063
|
|
|
6034
6064
|
|