@ocap/proto 1.13.83 → 1.14.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 +8 -0
- package/lib/gen/type_pb.js +62 -2
- package/package.json +2 -2
package/lib/gen/spec.json
CHANGED
|
@@ -1499,6 +1499,10 @@
|
|
|
1499
1499
|
"rule": "repeated",
|
|
1500
1500
|
"type": "TransactionReceipt",
|
|
1501
1501
|
"id": 16
|
|
1502
|
+
},
|
|
1503
|
+
"serviceFee": {
|
|
1504
|
+
"type": "string",
|
|
1505
|
+
"id": 17
|
|
1502
1506
|
}
|
|
1503
1507
|
}
|
|
1504
1508
|
},
|
|
@@ -2267,6 +2271,10 @@
|
|
|
2267
2271
|
"inflationRate": {
|
|
2268
2272
|
"type": "uint32",
|
|
2269
2273
|
"id": 9
|
|
2274
|
+
},
|
|
2275
|
+
"address": {
|
|
2276
|
+
"type": "string",
|
|
2277
|
+
"id": 10
|
|
2270
2278
|
}
|
|
2271
2279
|
}
|
|
2272
2280
|
},
|
package/lib/gen/type_pb.js
CHANGED
|
@@ -4937,7 +4937,8 @@ proto.ocap.Transaction.toObject = function(includeInstance, msg) {
|
|
|
4937
4937
|
proto.ocap.Multisig.toObject, includeInstance),
|
|
4938
4938
|
itx: (f = msg.getItx()) && google_protobuf_any_pb.Any.toObject(includeInstance, f),
|
|
4939
4939
|
receiptsList: jspb.Message.toObjectList(msg.getReceiptsList(),
|
|
4940
|
-
proto.ocap.TransactionReceipt.toObject, includeInstance)
|
|
4940
|
+
proto.ocap.TransactionReceipt.toObject, includeInstance),
|
|
4941
|
+
serviceFee: jspb.Message.getFieldWithDefault(msg, 17, "")
|
|
4941
4942
|
};
|
|
4942
4943
|
|
|
4943
4944
|
if (includeInstance) {
|
|
@@ -5017,6 +5018,10 @@ proto.ocap.Transaction.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
5017
5018
|
reader.readMessage(value,proto.ocap.TransactionReceipt.deserializeBinaryFromReader);
|
|
5018
5019
|
msg.addReceipts(value);
|
|
5019
5020
|
break;
|
|
5021
|
+
case 17:
|
|
5022
|
+
var value = /** @type {string} */ (reader.readString());
|
|
5023
|
+
msg.setServiceFee(value);
|
|
5024
|
+
break;
|
|
5020
5025
|
default:
|
|
5021
5026
|
reader.skipField();
|
|
5022
5027
|
break;
|
|
@@ -5119,6 +5124,13 @@ proto.ocap.Transaction.serializeBinaryToWriter = function(message, writer) {
|
|
|
5119
5124
|
proto.ocap.TransactionReceipt.serializeBinaryToWriter
|
|
5120
5125
|
);
|
|
5121
5126
|
}
|
|
5127
|
+
f = message.getServiceFee();
|
|
5128
|
+
if (f.length > 0) {
|
|
5129
|
+
writer.writeString(
|
|
5130
|
+
17,
|
|
5131
|
+
f
|
|
5132
|
+
);
|
|
5133
|
+
}
|
|
5122
5134
|
};
|
|
5123
5135
|
|
|
5124
5136
|
|
|
@@ -5409,6 +5421,24 @@ proto.ocap.Transaction.prototype.clearReceiptsList = function() {
|
|
|
5409
5421
|
};
|
|
5410
5422
|
|
|
5411
5423
|
|
|
5424
|
+
/**
|
|
5425
|
+
* optional string service_fee = 17;
|
|
5426
|
+
* @return {string}
|
|
5427
|
+
*/
|
|
5428
|
+
proto.ocap.Transaction.prototype.getServiceFee = function() {
|
|
5429
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 17, ""));
|
|
5430
|
+
};
|
|
5431
|
+
|
|
5432
|
+
|
|
5433
|
+
/**
|
|
5434
|
+
* @param {string} value
|
|
5435
|
+
* @return {!proto.ocap.Transaction} returns this
|
|
5436
|
+
*/
|
|
5437
|
+
proto.ocap.Transaction.prototype.setServiceFee = function(value) {
|
|
5438
|
+
return jspb.Message.setProto3StringField(this, 17, value);
|
|
5439
|
+
};
|
|
5440
|
+
|
|
5441
|
+
|
|
5412
5442
|
|
|
5413
5443
|
/**
|
|
5414
5444
|
* List of repeated fields within this message type.
|
|
@@ -14163,7 +14193,8 @@ proto.ocap.ForgeToken.toObject = function(includeInstance, msg) {
|
|
|
14163
14193
|
decimal: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
|
14164
14194
|
initialSupply: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
14165
14195
|
totalSupply: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
14166
|
-
inflationRate: jspb.Message.getFieldWithDefault(msg, 9, 0)
|
|
14196
|
+
inflationRate: jspb.Message.getFieldWithDefault(msg, 9, 0),
|
|
14197
|
+
address: jspb.Message.getFieldWithDefault(msg, 10, "")
|
|
14167
14198
|
};
|
|
14168
14199
|
|
|
14169
14200
|
if (includeInstance) {
|
|
@@ -14236,6 +14267,10 @@ proto.ocap.ForgeToken.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
14236
14267
|
var value = /** @type {number} */ (reader.readUint32());
|
|
14237
14268
|
msg.setInflationRate(value);
|
|
14238
14269
|
break;
|
|
14270
|
+
case 10:
|
|
14271
|
+
var value = /** @type {string} */ (reader.readString());
|
|
14272
|
+
msg.setAddress(value);
|
|
14273
|
+
break;
|
|
14239
14274
|
default:
|
|
14240
14275
|
reader.skipField();
|
|
14241
14276
|
break;
|
|
@@ -14328,6 +14363,13 @@ proto.ocap.ForgeToken.serializeBinaryToWriter = function(message, writer) {
|
|
|
14328
14363
|
f
|
|
14329
14364
|
);
|
|
14330
14365
|
}
|
|
14366
|
+
f = message.getAddress();
|
|
14367
|
+
if (f.length > 0) {
|
|
14368
|
+
writer.writeString(
|
|
14369
|
+
10,
|
|
14370
|
+
f
|
|
14371
|
+
);
|
|
14372
|
+
}
|
|
14331
14373
|
};
|
|
14332
14374
|
|
|
14333
14375
|
|
|
@@ -14517,6 +14559,24 @@ proto.ocap.ForgeToken.prototype.setInflationRate = function(value) {
|
|
|
14517
14559
|
};
|
|
14518
14560
|
|
|
14519
14561
|
|
|
14562
|
+
/**
|
|
14563
|
+
* optional string address = 10;
|
|
14564
|
+
* @return {string}
|
|
14565
|
+
*/
|
|
14566
|
+
proto.ocap.ForgeToken.prototype.getAddress = function() {
|
|
14567
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
|
|
14568
|
+
};
|
|
14569
|
+
|
|
14570
|
+
|
|
14571
|
+
/**
|
|
14572
|
+
* @param {string} value
|
|
14573
|
+
* @return {!proto.ocap.ForgeToken} returns this
|
|
14574
|
+
*/
|
|
14575
|
+
proto.ocap.ForgeToken.prototype.setAddress = function(value) {
|
|
14576
|
+
return jspb.Message.setProto3StringField(this, 10, value);
|
|
14577
|
+
};
|
|
14578
|
+
|
|
14579
|
+
|
|
14520
14580
|
|
|
14521
14581
|
|
|
14522
14582
|
|
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.14.0",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "wangshijun",
|
|
7
7
|
"email": "shijun@arcblock.io",
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"debug": "^4.3.2",
|
|
48
48
|
"lodash": "^4.17.21"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "b97f12d12f4764a7797c85954592f2ef50825245"
|
|
51
51
|
}
|