@ocap/proto 1.18.9 → 1.18.10

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/lib/gen/spec.json CHANGED
@@ -1029,6 +1029,30 @@
1029
1029
  }
1030
1030
  }
1031
1031
  },
1032
+ "RequestEstimateGas": {
1033
+ "fields": {
1034
+ "typeUrl": {
1035
+ "type": "string",
1036
+ "id": 1
1037
+ },
1038
+ "tx": {
1039
+ "type": "string",
1040
+ "id": 2
1041
+ }
1042
+ }
1043
+ },
1044
+ "ResponseEstimateGas": {
1045
+ "fields": {
1046
+ "code": {
1047
+ "type": "StatusCode",
1048
+ "id": 1
1049
+ },
1050
+ "estimate": {
1051
+ "type": "GasEstimate",
1052
+ "id": 2
1053
+ }
1054
+ }
1055
+ },
1032
1056
  "BigUint": {
1033
1057
  "fields": {
1034
1058
  "value": {
@@ -2297,6 +2321,14 @@
2297
2321
  }
2298
2322
  }
2299
2323
  },
2324
+ "GasEstimate": {
2325
+ "fields": {
2326
+ "max": {
2327
+ "type": "string",
2328
+ "id": 1
2329
+ }
2330
+ }
2331
+ },
2300
2332
  "AccountState": {
2301
2333
  "fields": {
2302
2334
  "balance": {
@@ -5358,6 +5390,10 @@
5358
5390
  "search": {
5359
5391
  "requestType": "RequestSearch",
5360
5392
  "responseType": "ResponseSearch"
5393
+ },
5394
+ "estimateGas": {
5395
+ "requestType": "RequestEstimateGas",
5396
+ "responseType": "ResponseEstimateGas"
5361
5397
  }
5362
5398
  }
5363
5399
  },
@@ -36,6 +36,7 @@ goog.exportSymbol('proto.ocap.Evidence', null, root);
36
36
  goog.exportSymbol('proto.ocap.ForeignToken', null, root);
37
37
  goog.exportSymbol('proto.ocap.ForgeStats', null, root);
38
38
  goog.exportSymbol('proto.ocap.ForgeToken', null, root);
39
+ goog.exportSymbol('proto.ocap.GasEstimate', null, root);
39
40
  goog.exportSymbol('proto.ocap.GeoInfo', null, root);
40
41
  goog.exportSymbol('proto.ocap.IndexedFactoryInput', null, root);
41
42
  goog.exportSymbol('proto.ocap.IndexedTokenInput', null, root);
@@ -1101,6 +1102,27 @@ if (goog.DEBUG && !COMPILED) {
1101
1102
  */
1102
1103
  proto.ocap.ForgeStats.displayName = 'proto.ocap.ForgeStats';
1103
1104
  }
1105
+ /**
1106
+ * Generated by JsPbCodeGenerator.
1107
+ * @param {Array=} opt_data Optional initial data array, typically from a
1108
+ * server response, or constructed directly in Javascript. The array is used
1109
+ * in place and becomes part of the constructed object. It is not cloned.
1110
+ * If no data is provided, the constructed object will be empty, but still
1111
+ * valid.
1112
+ * @extends {jspb.Message}
1113
+ * @constructor
1114
+ */
1115
+ proto.ocap.GasEstimate = function(opt_data) {
1116
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1117
+ };
1118
+ goog.inherits(proto.ocap.GasEstimate, jspb.Message);
1119
+ if (goog.DEBUG && !COMPILED) {
1120
+ /**
1121
+ * @public
1122
+ * @override
1123
+ */
1124
+ proto.ocap.GasEstimate.displayName = 'proto.ocap.GasEstimate';
1125
+ }
1104
1126
 
1105
1127
 
1106
1128
 
@@ -16083,4 +16105,134 @@ proto.ocap.ForgeStats.prototype.setAvgBlockTime = function(value) {
16083
16105
  };
16084
16106
 
16085
16107
 
16108
+
16109
+
16110
+
16111
+ if (jspb.Message.GENERATE_TO_OBJECT) {
16112
+ /**
16113
+ * Creates an object representation of this proto.
16114
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
16115
+ * Optional fields that are not set will be set to undefined.
16116
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
16117
+ * For the list of reserved names please see:
16118
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
16119
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
16120
+ * JSPB instance for transitional soy proto support:
16121
+ * http://goto/soy-param-migration
16122
+ * @return {!Object}
16123
+ */
16124
+ proto.ocap.GasEstimate.prototype.toObject = function(opt_includeInstance) {
16125
+ return proto.ocap.GasEstimate.toObject(opt_includeInstance, this);
16126
+ };
16127
+
16128
+
16129
+ /**
16130
+ * Static version of the {@see toObject} method.
16131
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
16132
+ * the JSPB instance for transitional soy proto support:
16133
+ * http://goto/soy-param-migration
16134
+ * @param {!proto.ocap.GasEstimate} msg The msg instance to transform.
16135
+ * @return {!Object}
16136
+ * @suppress {unusedLocalVariables} f is only used for nested messages
16137
+ */
16138
+ proto.ocap.GasEstimate.toObject = function(includeInstance, msg) {
16139
+ var f, obj = {
16140
+ max: jspb.Message.getFieldWithDefault(msg, 1, "")
16141
+ };
16142
+
16143
+ if (includeInstance) {
16144
+ obj.$jspbMessageInstance = msg;
16145
+ }
16146
+ return obj;
16147
+ };
16148
+ }
16149
+
16150
+
16151
+ /**
16152
+ * Deserializes binary data (in protobuf wire format).
16153
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
16154
+ * @return {!proto.ocap.GasEstimate}
16155
+ */
16156
+ proto.ocap.GasEstimate.deserializeBinary = function(bytes) {
16157
+ var reader = new jspb.BinaryReader(bytes);
16158
+ var msg = new proto.ocap.GasEstimate;
16159
+ return proto.ocap.GasEstimate.deserializeBinaryFromReader(msg, reader);
16160
+ };
16161
+
16162
+
16163
+ /**
16164
+ * Deserializes binary data (in protobuf wire format) from the
16165
+ * given reader into the given message object.
16166
+ * @param {!proto.ocap.GasEstimate} msg The message object to deserialize into.
16167
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
16168
+ * @return {!proto.ocap.GasEstimate}
16169
+ */
16170
+ proto.ocap.GasEstimate.deserializeBinaryFromReader = function(msg, reader) {
16171
+ while (reader.nextField()) {
16172
+ if (reader.isEndGroup()) {
16173
+ break;
16174
+ }
16175
+ var field = reader.getFieldNumber();
16176
+ switch (field) {
16177
+ case 1:
16178
+ var value = /** @type {string} */ (reader.readString());
16179
+ msg.setMax(value);
16180
+ break;
16181
+ default:
16182
+ reader.skipField();
16183
+ break;
16184
+ }
16185
+ }
16186
+ return msg;
16187
+ };
16188
+
16189
+
16190
+ /**
16191
+ * Serializes the message to binary data (in protobuf wire format).
16192
+ * @return {!Uint8Array}
16193
+ */
16194
+ proto.ocap.GasEstimate.prototype.serializeBinary = function() {
16195
+ var writer = new jspb.BinaryWriter();
16196
+ proto.ocap.GasEstimate.serializeBinaryToWriter(this, writer);
16197
+ return writer.getResultBuffer();
16198
+ };
16199
+
16200
+
16201
+ /**
16202
+ * Serializes the given message to binary data (in protobuf wire
16203
+ * format), writing to the given BinaryWriter.
16204
+ * @param {!proto.ocap.GasEstimate} message
16205
+ * @param {!jspb.BinaryWriter} writer
16206
+ * @suppress {unusedLocalVariables} f is only used for nested messages
16207
+ */
16208
+ proto.ocap.GasEstimate.serializeBinaryToWriter = function(message, writer) {
16209
+ var f = undefined;
16210
+ f = message.getMax();
16211
+ if (f.length > 0) {
16212
+ writer.writeString(
16213
+ 1,
16214
+ f
16215
+ );
16216
+ }
16217
+ };
16218
+
16219
+
16220
+ /**
16221
+ * optional string max = 1;
16222
+ * @return {string}
16223
+ */
16224
+ proto.ocap.GasEstimate.prototype.getMax = function() {
16225
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
16226
+ };
16227
+
16228
+
16229
+ /**
16230
+ * @param {string} value
16231
+ * @return {!proto.ocap.GasEstimate} returns this
16232
+ */
16233
+ proto.ocap.GasEstimate.prototype.setMax = function(value) {
16234
+ return jspb.Message.setProto3StringField(this, 1, value);
16235
+ };
16236
+
16237
+
16086
16238
  goog.object.extend(exports, proto.ocap);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ocap/proto",
3
3
  "description": "Static modules generated from forge-sdk protobuf files",
4
- "version": "1.18.9",
4
+ "version": "1.18.10",
5
5
  "author": {
6
6
  "name": "wangshijun",
7
7
  "email": "shijun@arcblock.io",
@@ -48,5 +48,5 @@
48
48
  "debug": "^4.3.4",
49
49
  "lodash": "^4.17.21"
50
50
  },
51
- "gitHead": "5e2aecc96fd09adfc96516f8bc99d7e4f2a57f5a"
51
+ "gitHead": "1c857951c380626c02c423d00a7b7e8c0a63faa2"
52
52
  }