@ocap/proto 1.17.22 → 1.18.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/lib/gen/spec.json +24 -0
- package/lib/gen/type_pb.js +294 -1
- package/package.json +2 -2
package/lib/gen/spec.json
CHANGED
|
@@ -1561,6 +1561,26 @@
|
|
|
1561
1561
|
}
|
|
1562
1562
|
}
|
|
1563
1563
|
},
|
|
1564
|
+
"TxGasConfig": {
|
|
1565
|
+
"fields": {
|
|
1566
|
+
"price": {
|
|
1567
|
+
"type": "uint64",
|
|
1568
|
+
"id": 1
|
|
1569
|
+
},
|
|
1570
|
+
"createState": {
|
|
1571
|
+
"type": "uint64",
|
|
1572
|
+
"id": 2
|
|
1573
|
+
},
|
|
1574
|
+
"updateState": {
|
|
1575
|
+
"type": "uint64",
|
|
1576
|
+
"id": 3
|
|
1577
|
+
},
|
|
1578
|
+
"dataStorage": {
|
|
1579
|
+
"type": "uint64",
|
|
1580
|
+
"id": 4
|
|
1581
|
+
}
|
|
1582
|
+
}
|
|
1583
|
+
},
|
|
1564
1584
|
"TransactionConfig": {
|
|
1565
1585
|
"fields": {
|
|
1566
1586
|
"maxAssetSize": {
|
|
@@ -1583,6 +1603,10 @@
|
|
|
1583
1603
|
"rule": "repeated",
|
|
1584
1604
|
"type": "TxFeeConfig",
|
|
1585
1605
|
"id": 5
|
|
1606
|
+
},
|
|
1607
|
+
"txGas": {
|
|
1608
|
+
"type": "TxGasConfig",
|
|
1609
|
+
"id": 6
|
|
1586
1610
|
}
|
|
1587
1611
|
}
|
|
1588
1612
|
},
|
package/lib/gen/type_pb.js
CHANGED
|
@@ -60,6 +60,7 @@ goog.exportSymbol('proto.ocap.TransactionInfo', null, root);
|
|
|
60
60
|
goog.exportSymbol('proto.ocap.TransactionInput', null, root);
|
|
61
61
|
goog.exportSymbol('proto.ocap.TransactionReceipt', null, root);
|
|
62
62
|
goog.exportSymbol('proto.ocap.TxFeeConfig', null, root);
|
|
63
|
+
goog.exportSymbol('proto.ocap.TxGasConfig', null, root);
|
|
63
64
|
goog.exportSymbol('proto.ocap.UnconfirmedTxs', null, root);
|
|
64
65
|
goog.exportSymbol('proto.ocap.UpgradeInfo', null, root);
|
|
65
66
|
goog.exportSymbol('proto.ocap.UpgradeTask', null, root);
|
|
@@ -512,6 +513,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
512
513
|
*/
|
|
513
514
|
proto.ocap.TxFeeConfig.displayName = 'proto.ocap.TxFeeConfig';
|
|
514
515
|
}
|
|
516
|
+
/**
|
|
517
|
+
* Generated by JsPbCodeGenerator.
|
|
518
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
519
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
520
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
521
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
522
|
+
* valid.
|
|
523
|
+
* @extends {jspb.Message}
|
|
524
|
+
* @constructor
|
|
525
|
+
*/
|
|
526
|
+
proto.ocap.TxGasConfig = function(opt_data) {
|
|
527
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
528
|
+
};
|
|
529
|
+
goog.inherits(proto.ocap.TxGasConfig, jspb.Message);
|
|
530
|
+
if (goog.DEBUG && !COMPILED) {
|
|
531
|
+
/**
|
|
532
|
+
* @public
|
|
533
|
+
* @override
|
|
534
|
+
*/
|
|
535
|
+
proto.ocap.TxGasConfig.displayName = 'proto.ocap.TxGasConfig';
|
|
536
|
+
}
|
|
515
537
|
/**
|
|
516
538
|
* Generated by JsPbCodeGenerator.
|
|
517
539
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -7245,6 +7267,226 @@ proto.ocap.TxFeeConfig.prototype.setFee = function(value) {
|
|
|
7245
7267
|
|
|
7246
7268
|
|
|
7247
7269
|
|
|
7270
|
+
|
|
7271
|
+
|
|
7272
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
7273
|
+
/**
|
|
7274
|
+
* Creates an object representation of this proto.
|
|
7275
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
7276
|
+
* Optional fields that are not set will be set to undefined.
|
|
7277
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
7278
|
+
* For the list of reserved names please see:
|
|
7279
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
7280
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
7281
|
+
* JSPB instance for transitional soy proto support:
|
|
7282
|
+
* http://goto/soy-param-migration
|
|
7283
|
+
* @return {!Object}
|
|
7284
|
+
*/
|
|
7285
|
+
proto.ocap.TxGasConfig.prototype.toObject = function(opt_includeInstance) {
|
|
7286
|
+
return proto.ocap.TxGasConfig.toObject(opt_includeInstance, this);
|
|
7287
|
+
};
|
|
7288
|
+
|
|
7289
|
+
|
|
7290
|
+
/**
|
|
7291
|
+
* Static version of the {@see toObject} method.
|
|
7292
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
7293
|
+
* the JSPB instance for transitional soy proto support:
|
|
7294
|
+
* http://goto/soy-param-migration
|
|
7295
|
+
* @param {!proto.ocap.TxGasConfig} msg The msg instance to transform.
|
|
7296
|
+
* @return {!Object}
|
|
7297
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
7298
|
+
*/
|
|
7299
|
+
proto.ocap.TxGasConfig.toObject = function(includeInstance, msg) {
|
|
7300
|
+
var f, obj = {
|
|
7301
|
+
price: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
7302
|
+
createState: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
7303
|
+
updateState: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
7304
|
+
dataStorage: jspb.Message.getFieldWithDefault(msg, 4, 0)
|
|
7305
|
+
};
|
|
7306
|
+
|
|
7307
|
+
if (includeInstance) {
|
|
7308
|
+
obj.$jspbMessageInstance = msg;
|
|
7309
|
+
}
|
|
7310
|
+
return obj;
|
|
7311
|
+
};
|
|
7312
|
+
}
|
|
7313
|
+
|
|
7314
|
+
|
|
7315
|
+
/**
|
|
7316
|
+
* Deserializes binary data (in protobuf wire format).
|
|
7317
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
7318
|
+
* @return {!proto.ocap.TxGasConfig}
|
|
7319
|
+
*/
|
|
7320
|
+
proto.ocap.TxGasConfig.deserializeBinary = function(bytes) {
|
|
7321
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
7322
|
+
var msg = new proto.ocap.TxGasConfig;
|
|
7323
|
+
return proto.ocap.TxGasConfig.deserializeBinaryFromReader(msg, reader);
|
|
7324
|
+
};
|
|
7325
|
+
|
|
7326
|
+
|
|
7327
|
+
/**
|
|
7328
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
7329
|
+
* given reader into the given message object.
|
|
7330
|
+
* @param {!proto.ocap.TxGasConfig} msg The message object to deserialize into.
|
|
7331
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
7332
|
+
* @return {!proto.ocap.TxGasConfig}
|
|
7333
|
+
*/
|
|
7334
|
+
proto.ocap.TxGasConfig.deserializeBinaryFromReader = function(msg, reader) {
|
|
7335
|
+
while (reader.nextField()) {
|
|
7336
|
+
if (reader.isEndGroup()) {
|
|
7337
|
+
break;
|
|
7338
|
+
}
|
|
7339
|
+
var field = reader.getFieldNumber();
|
|
7340
|
+
switch (field) {
|
|
7341
|
+
case 1:
|
|
7342
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
7343
|
+
msg.setPrice(value);
|
|
7344
|
+
break;
|
|
7345
|
+
case 2:
|
|
7346
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
7347
|
+
msg.setCreateState(value);
|
|
7348
|
+
break;
|
|
7349
|
+
case 3:
|
|
7350
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
7351
|
+
msg.setUpdateState(value);
|
|
7352
|
+
break;
|
|
7353
|
+
case 4:
|
|
7354
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
7355
|
+
msg.setDataStorage(value);
|
|
7356
|
+
break;
|
|
7357
|
+
default:
|
|
7358
|
+
reader.skipField();
|
|
7359
|
+
break;
|
|
7360
|
+
}
|
|
7361
|
+
}
|
|
7362
|
+
return msg;
|
|
7363
|
+
};
|
|
7364
|
+
|
|
7365
|
+
|
|
7366
|
+
/**
|
|
7367
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
7368
|
+
* @return {!Uint8Array}
|
|
7369
|
+
*/
|
|
7370
|
+
proto.ocap.TxGasConfig.prototype.serializeBinary = function() {
|
|
7371
|
+
var writer = new jspb.BinaryWriter();
|
|
7372
|
+
proto.ocap.TxGasConfig.serializeBinaryToWriter(this, writer);
|
|
7373
|
+
return writer.getResultBuffer();
|
|
7374
|
+
};
|
|
7375
|
+
|
|
7376
|
+
|
|
7377
|
+
/**
|
|
7378
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
7379
|
+
* format), writing to the given BinaryWriter.
|
|
7380
|
+
* @param {!proto.ocap.TxGasConfig} message
|
|
7381
|
+
* @param {!jspb.BinaryWriter} writer
|
|
7382
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
7383
|
+
*/
|
|
7384
|
+
proto.ocap.TxGasConfig.serializeBinaryToWriter = function(message, writer) {
|
|
7385
|
+
var f = undefined;
|
|
7386
|
+
f = message.getPrice();
|
|
7387
|
+
if (f !== 0) {
|
|
7388
|
+
writer.writeUint64(
|
|
7389
|
+
1,
|
|
7390
|
+
f
|
|
7391
|
+
);
|
|
7392
|
+
}
|
|
7393
|
+
f = message.getCreateState();
|
|
7394
|
+
if (f !== 0) {
|
|
7395
|
+
writer.writeUint64(
|
|
7396
|
+
2,
|
|
7397
|
+
f
|
|
7398
|
+
);
|
|
7399
|
+
}
|
|
7400
|
+
f = message.getUpdateState();
|
|
7401
|
+
if (f !== 0) {
|
|
7402
|
+
writer.writeUint64(
|
|
7403
|
+
3,
|
|
7404
|
+
f
|
|
7405
|
+
);
|
|
7406
|
+
}
|
|
7407
|
+
f = message.getDataStorage();
|
|
7408
|
+
if (f !== 0) {
|
|
7409
|
+
writer.writeUint64(
|
|
7410
|
+
4,
|
|
7411
|
+
f
|
|
7412
|
+
);
|
|
7413
|
+
}
|
|
7414
|
+
};
|
|
7415
|
+
|
|
7416
|
+
|
|
7417
|
+
/**
|
|
7418
|
+
* optional uint64 price = 1;
|
|
7419
|
+
* @return {number}
|
|
7420
|
+
*/
|
|
7421
|
+
proto.ocap.TxGasConfig.prototype.getPrice = function() {
|
|
7422
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
7423
|
+
};
|
|
7424
|
+
|
|
7425
|
+
|
|
7426
|
+
/**
|
|
7427
|
+
* @param {number} value
|
|
7428
|
+
* @return {!proto.ocap.TxGasConfig} returns this
|
|
7429
|
+
*/
|
|
7430
|
+
proto.ocap.TxGasConfig.prototype.setPrice = function(value) {
|
|
7431
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
7432
|
+
};
|
|
7433
|
+
|
|
7434
|
+
|
|
7435
|
+
/**
|
|
7436
|
+
* optional uint64 create_state = 2;
|
|
7437
|
+
* @return {number}
|
|
7438
|
+
*/
|
|
7439
|
+
proto.ocap.TxGasConfig.prototype.getCreateState = function() {
|
|
7440
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
7441
|
+
};
|
|
7442
|
+
|
|
7443
|
+
|
|
7444
|
+
/**
|
|
7445
|
+
* @param {number} value
|
|
7446
|
+
* @return {!proto.ocap.TxGasConfig} returns this
|
|
7447
|
+
*/
|
|
7448
|
+
proto.ocap.TxGasConfig.prototype.setCreateState = function(value) {
|
|
7449
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
7450
|
+
};
|
|
7451
|
+
|
|
7452
|
+
|
|
7453
|
+
/**
|
|
7454
|
+
* optional uint64 update_state = 3;
|
|
7455
|
+
* @return {number}
|
|
7456
|
+
*/
|
|
7457
|
+
proto.ocap.TxGasConfig.prototype.getUpdateState = function() {
|
|
7458
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
7459
|
+
};
|
|
7460
|
+
|
|
7461
|
+
|
|
7462
|
+
/**
|
|
7463
|
+
* @param {number} value
|
|
7464
|
+
* @return {!proto.ocap.TxGasConfig} returns this
|
|
7465
|
+
*/
|
|
7466
|
+
proto.ocap.TxGasConfig.prototype.setUpdateState = function(value) {
|
|
7467
|
+
return jspb.Message.setProto3IntField(this, 3, value);
|
|
7468
|
+
};
|
|
7469
|
+
|
|
7470
|
+
|
|
7471
|
+
/**
|
|
7472
|
+
* optional uint64 data_storage = 4;
|
|
7473
|
+
* @return {number}
|
|
7474
|
+
*/
|
|
7475
|
+
proto.ocap.TxGasConfig.prototype.getDataStorage = function() {
|
|
7476
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
7477
|
+
};
|
|
7478
|
+
|
|
7479
|
+
|
|
7480
|
+
/**
|
|
7481
|
+
* @param {number} value
|
|
7482
|
+
* @return {!proto.ocap.TxGasConfig} returns this
|
|
7483
|
+
*/
|
|
7484
|
+
proto.ocap.TxGasConfig.prototype.setDataStorage = function(value) {
|
|
7485
|
+
return jspb.Message.setProto3IntField(this, 4, value);
|
|
7486
|
+
};
|
|
7487
|
+
|
|
7488
|
+
|
|
7489
|
+
|
|
7248
7490
|
/**
|
|
7249
7491
|
* List of repeated fields within this message type.
|
|
7250
7492
|
* @private {!Array<number>}
|
|
@@ -7288,7 +7530,8 @@ proto.ocap.TransactionConfig.toObject = function(includeInstance, msg) {
|
|
|
7288
7530
|
maxMultisig: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
7289
7531
|
delegate: (f = msg.getDelegate()) && proto.ocap.DelegateConfig.toObject(includeInstance, f),
|
|
7290
7532
|
txFeeList: jspb.Message.toObjectList(msg.getTxFeeList(),
|
|
7291
|
-
proto.ocap.TxFeeConfig.toObject, includeInstance)
|
|
7533
|
+
proto.ocap.TxFeeConfig.toObject, includeInstance),
|
|
7534
|
+
txGas: (f = msg.getTxGas()) && proto.ocap.TxGasConfig.toObject(includeInstance, f)
|
|
7292
7535
|
};
|
|
7293
7536
|
|
|
7294
7537
|
if (includeInstance) {
|
|
@@ -7347,6 +7590,11 @@ proto.ocap.TransactionConfig.deserializeBinaryFromReader = function(msg, reader)
|
|
|
7347
7590
|
reader.readMessage(value,proto.ocap.TxFeeConfig.deserializeBinaryFromReader);
|
|
7348
7591
|
msg.addTxFee(value);
|
|
7349
7592
|
break;
|
|
7593
|
+
case 6:
|
|
7594
|
+
var value = new proto.ocap.TxGasConfig;
|
|
7595
|
+
reader.readMessage(value,proto.ocap.TxGasConfig.deserializeBinaryFromReader);
|
|
7596
|
+
msg.setTxGas(value);
|
|
7597
|
+
break;
|
|
7350
7598
|
default:
|
|
7351
7599
|
reader.skipField();
|
|
7352
7600
|
break;
|
|
@@ -7413,6 +7661,14 @@ proto.ocap.TransactionConfig.serializeBinaryToWriter = function(message, writer)
|
|
|
7413
7661
|
proto.ocap.TxFeeConfig.serializeBinaryToWriter
|
|
7414
7662
|
);
|
|
7415
7663
|
}
|
|
7664
|
+
f = message.getTxGas();
|
|
7665
|
+
if (f != null) {
|
|
7666
|
+
writer.writeMessage(
|
|
7667
|
+
6,
|
|
7668
|
+
f,
|
|
7669
|
+
proto.ocap.TxGasConfig.serializeBinaryToWriter
|
|
7670
|
+
);
|
|
7671
|
+
}
|
|
7416
7672
|
};
|
|
7417
7673
|
|
|
7418
7674
|
|
|
@@ -7545,6 +7801,43 @@ proto.ocap.TransactionConfig.prototype.clearTxFeeList = function() {
|
|
|
7545
7801
|
};
|
|
7546
7802
|
|
|
7547
7803
|
|
|
7804
|
+
/**
|
|
7805
|
+
* optional TxGasConfig tx_gas = 6;
|
|
7806
|
+
* @return {?proto.ocap.TxGasConfig}
|
|
7807
|
+
*/
|
|
7808
|
+
proto.ocap.TransactionConfig.prototype.getTxGas = function() {
|
|
7809
|
+
return /** @type{?proto.ocap.TxGasConfig} */ (
|
|
7810
|
+
jspb.Message.getWrapperField(this, proto.ocap.TxGasConfig, 6));
|
|
7811
|
+
};
|
|
7812
|
+
|
|
7813
|
+
|
|
7814
|
+
/**
|
|
7815
|
+
* @param {?proto.ocap.TxGasConfig|undefined} value
|
|
7816
|
+
* @return {!proto.ocap.TransactionConfig} returns this
|
|
7817
|
+
*/
|
|
7818
|
+
proto.ocap.TransactionConfig.prototype.setTxGas = function(value) {
|
|
7819
|
+
return jspb.Message.setWrapperField(this, 6, value);
|
|
7820
|
+
};
|
|
7821
|
+
|
|
7822
|
+
|
|
7823
|
+
/**
|
|
7824
|
+
* Clears the message field making it undefined.
|
|
7825
|
+
* @return {!proto.ocap.TransactionConfig} returns this
|
|
7826
|
+
*/
|
|
7827
|
+
proto.ocap.TransactionConfig.prototype.clearTxGas = function() {
|
|
7828
|
+
return this.setTxGas(undefined);
|
|
7829
|
+
};
|
|
7830
|
+
|
|
7831
|
+
|
|
7832
|
+
/**
|
|
7833
|
+
* Returns whether this field is set.
|
|
7834
|
+
* @return {boolean}
|
|
7835
|
+
*/
|
|
7836
|
+
proto.ocap.TransactionConfig.prototype.hasTxGas = function() {
|
|
7837
|
+
return jspb.Message.getField(this, 6) != null;
|
|
7838
|
+
};
|
|
7839
|
+
|
|
7840
|
+
|
|
7548
7841
|
|
|
7549
7842
|
/**
|
|
7550
7843
|
* List of repeated fields within this message type.
|
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.
|
|
4
|
+
"version": "1.18.0",
|
|
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": "
|
|
51
|
+
"gitHead": "c48f928ee4f0deddf0f5e4bcb82fd6ffd7f2bc99"
|
|
52
52
|
}
|