@ocap/proto 1.18.96 → 1.18.98
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 +21 -0
- package/lib/gen/state_pb.js +60 -0
- package/lib/gen/trace-type_pb.js +178 -0
- package/package.json +2 -2
package/lib/gen/spec.json
CHANGED
|
@@ -521,6 +521,10 @@
|
|
|
521
521
|
"stakeFilter": {
|
|
522
522
|
"type": "StakeFilter",
|
|
523
523
|
"id": 12
|
|
524
|
+
},
|
|
525
|
+
"delegationFilter": {
|
|
526
|
+
"type": "DelegationFilter",
|
|
527
|
+
"id": 13
|
|
524
528
|
}
|
|
525
529
|
}
|
|
526
530
|
},
|
|
@@ -2795,6 +2799,14 @@
|
|
|
2795
2799
|
"type": "DelegateOpState",
|
|
2796
2800
|
"id": 2
|
|
2797
2801
|
},
|
|
2802
|
+
"from": {
|
|
2803
|
+
"type": "string",
|
|
2804
|
+
"id": 3
|
|
2805
|
+
},
|
|
2806
|
+
"to": {
|
|
2807
|
+
"type": "string",
|
|
2808
|
+
"id": 4
|
|
2809
|
+
},
|
|
2798
2810
|
"context": {
|
|
2799
2811
|
"type": "StateContext",
|
|
2800
2812
|
"id": 14
|
|
@@ -4633,6 +4645,15 @@
|
|
|
4633
4645
|
}
|
|
4634
4646
|
}
|
|
4635
4647
|
},
|
|
4648
|
+
"DelegationFilter": {
|
|
4649
|
+
"fields": {
|
|
4650
|
+
"delegations": {
|
|
4651
|
+
"rule": "repeated",
|
|
4652
|
+
"type": "string",
|
|
4653
|
+
"id": 1
|
|
4654
|
+
}
|
|
4655
|
+
}
|
|
4656
|
+
},
|
|
4636
4657
|
"TokenFilter": {
|
|
4637
4658
|
"fields": {
|
|
4638
4659
|
"tokens": {
|
package/lib/gen/state_pb.js
CHANGED
|
@@ -3081,6 +3081,8 @@ proto.ocap.DelegateState.toObject = function(includeInstance, msg) {
|
|
|
3081
3081
|
var f, obj = {
|
|
3082
3082
|
address: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
3083
3083
|
opsMap: (f = msg.getOpsMap()) ? f.toObject(includeInstance, proto.ocap.DelegateOpState.toObject) : [],
|
|
3084
|
+
from: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
3085
|
+
to: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
3084
3086
|
context: (f = msg.getContext()) && type_pb.StateContext.toObject(includeInstance, f),
|
|
3085
3087
|
data: (f = msg.getData()) && google_protobuf_any_pb.Any.toObject(includeInstance, f)
|
|
3086
3088
|
};
|
|
@@ -3129,6 +3131,14 @@ proto.ocap.DelegateState.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
3129
3131
|
jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.ocap.DelegateOpState.deserializeBinaryFromReader, "", new proto.ocap.DelegateOpState());
|
|
3130
3132
|
});
|
|
3131
3133
|
break;
|
|
3134
|
+
case 3:
|
|
3135
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3136
|
+
msg.setFrom(value);
|
|
3137
|
+
break;
|
|
3138
|
+
case 4:
|
|
3139
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3140
|
+
msg.setTo(value);
|
|
3141
|
+
break;
|
|
3132
3142
|
case 14:
|
|
3133
3143
|
var value = new type_pb.StateContext;
|
|
3134
3144
|
reader.readMessage(value,type_pb.StateContext.deserializeBinaryFromReader);
|
|
@@ -3179,6 +3189,20 @@ proto.ocap.DelegateState.serializeBinaryToWriter = function(message, writer) {
|
|
|
3179
3189
|
if (f && f.getLength() > 0) {
|
|
3180
3190
|
f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.ocap.DelegateOpState.serializeBinaryToWriter);
|
|
3181
3191
|
}
|
|
3192
|
+
f = message.getFrom();
|
|
3193
|
+
if (f.length > 0) {
|
|
3194
|
+
writer.writeString(
|
|
3195
|
+
3,
|
|
3196
|
+
f
|
|
3197
|
+
);
|
|
3198
|
+
}
|
|
3199
|
+
f = message.getTo();
|
|
3200
|
+
if (f.length > 0) {
|
|
3201
|
+
writer.writeString(
|
|
3202
|
+
4,
|
|
3203
|
+
f
|
|
3204
|
+
);
|
|
3205
|
+
}
|
|
3182
3206
|
f = message.getContext();
|
|
3183
3207
|
if (f != null) {
|
|
3184
3208
|
writer.writeMessage(
|
|
@@ -3238,6 +3262,42 @@ proto.ocap.DelegateState.prototype.clearOpsMap = function() {
|
|
|
3238
3262
|
return this;};
|
|
3239
3263
|
|
|
3240
3264
|
|
|
3265
|
+
/**
|
|
3266
|
+
* optional string from = 3;
|
|
3267
|
+
* @return {string}
|
|
3268
|
+
*/
|
|
3269
|
+
proto.ocap.DelegateState.prototype.getFrom = function() {
|
|
3270
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
3271
|
+
};
|
|
3272
|
+
|
|
3273
|
+
|
|
3274
|
+
/**
|
|
3275
|
+
* @param {string} value
|
|
3276
|
+
* @return {!proto.ocap.DelegateState} returns this
|
|
3277
|
+
*/
|
|
3278
|
+
proto.ocap.DelegateState.prototype.setFrom = function(value) {
|
|
3279
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
3280
|
+
};
|
|
3281
|
+
|
|
3282
|
+
|
|
3283
|
+
/**
|
|
3284
|
+
* optional string to = 4;
|
|
3285
|
+
* @return {string}
|
|
3286
|
+
*/
|
|
3287
|
+
proto.ocap.DelegateState.prototype.getTo = function() {
|
|
3288
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
3289
|
+
};
|
|
3290
|
+
|
|
3291
|
+
|
|
3292
|
+
/**
|
|
3293
|
+
* @param {string} value
|
|
3294
|
+
* @return {!proto.ocap.DelegateState} returns this
|
|
3295
|
+
*/
|
|
3296
|
+
proto.ocap.DelegateState.prototype.setTo = function(value) {
|
|
3297
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
3298
|
+
};
|
|
3299
|
+
|
|
3300
|
+
|
|
3241
3301
|
/**
|
|
3242
3302
|
* optional StateContext context = 14;
|
|
3243
3303
|
* @return {?proto.ocap.StateContext}
|
package/lib/gen/trace-type_pb.js
CHANGED
|
@@ -37,6 +37,7 @@ goog.exportSymbol('proto.ocap.AddressFilter', null, root);
|
|
|
37
37
|
goog.exportSymbol('proto.ocap.AssetFilter', null, root);
|
|
38
38
|
goog.exportSymbol('proto.ocap.ByDay', null, root);
|
|
39
39
|
goog.exportSymbol('proto.ocap.ByHour', null, root);
|
|
40
|
+
goog.exportSymbol('proto.ocap.DelegationFilter', null, root);
|
|
40
41
|
goog.exportSymbol('proto.ocap.Direction', null, root);
|
|
41
42
|
goog.exportSymbol('proto.ocap.FactoryFilter', null, root);
|
|
42
43
|
goog.exportSymbol('proto.ocap.IndexedAccountState', null, root);
|
|
@@ -170,6 +171,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
170
171
|
*/
|
|
171
172
|
proto.ocap.FactoryFilter.displayName = 'proto.ocap.FactoryFilter';
|
|
172
173
|
}
|
|
174
|
+
/**
|
|
175
|
+
* Generated by JsPbCodeGenerator.
|
|
176
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
177
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
178
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
179
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
180
|
+
* valid.
|
|
181
|
+
* @extends {jspb.Message}
|
|
182
|
+
* @constructor
|
|
183
|
+
*/
|
|
184
|
+
proto.ocap.DelegationFilter = function(opt_data) {
|
|
185
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.ocap.DelegationFilter.repeatedFields_, null);
|
|
186
|
+
};
|
|
187
|
+
goog.inherits(proto.ocap.DelegationFilter, jspb.Message);
|
|
188
|
+
if (goog.DEBUG && !COMPILED) {
|
|
189
|
+
/**
|
|
190
|
+
* @public
|
|
191
|
+
* @override
|
|
192
|
+
*/
|
|
193
|
+
proto.ocap.DelegationFilter.displayName = 'proto.ocap.DelegationFilter';
|
|
194
|
+
}
|
|
173
195
|
/**
|
|
174
196
|
* Generated by JsPbCodeGenerator.
|
|
175
197
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -1586,6 +1608,162 @@ proto.ocap.FactoryFilter.prototype.clearFactoriesList = function() {
|
|
|
1586
1608
|
|
|
1587
1609
|
|
|
1588
1610
|
|
|
1611
|
+
/**
|
|
1612
|
+
* List of repeated fields within this message type.
|
|
1613
|
+
* @private {!Array<number>}
|
|
1614
|
+
* @const
|
|
1615
|
+
*/
|
|
1616
|
+
proto.ocap.DelegationFilter.repeatedFields_ = [1];
|
|
1617
|
+
|
|
1618
|
+
|
|
1619
|
+
|
|
1620
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1621
|
+
/**
|
|
1622
|
+
* Creates an object representation of this proto.
|
|
1623
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1624
|
+
* Optional fields that are not set will be set to undefined.
|
|
1625
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1626
|
+
* For the list of reserved names please see:
|
|
1627
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1628
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1629
|
+
* JSPB instance for transitional soy proto support:
|
|
1630
|
+
* http://goto/soy-param-migration
|
|
1631
|
+
* @return {!Object}
|
|
1632
|
+
*/
|
|
1633
|
+
proto.ocap.DelegationFilter.prototype.toObject = function(opt_includeInstance) {
|
|
1634
|
+
return proto.ocap.DelegationFilter.toObject(opt_includeInstance, this);
|
|
1635
|
+
};
|
|
1636
|
+
|
|
1637
|
+
|
|
1638
|
+
/**
|
|
1639
|
+
* Static version of the {@see toObject} method.
|
|
1640
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1641
|
+
* the JSPB instance for transitional soy proto support:
|
|
1642
|
+
* http://goto/soy-param-migration
|
|
1643
|
+
* @param {!proto.ocap.DelegationFilter} msg The msg instance to transform.
|
|
1644
|
+
* @return {!Object}
|
|
1645
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1646
|
+
*/
|
|
1647
|
+
proto.ocap.DelegationFilter.toObject = function(includeInstance, msg) {
|
|
1648
|
+
var f, obj = {
|
|
1649
|
+
delegationsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
|
|
1650
|
+
};
|
|
1651
|
+
|
|
1652
|
+
if (includeInstance) {
|
|
1653
|
+
obj.$jspbMessageInstance = msg;
|
|
1654
|
+
}
|
|
1655
|
+
return obj;
|
|
1656
|
+
};
|
|
1657
|
+
}
|
|
1658
|
+
|
|
1659
|
+
|
|
1660
|
+
/**
|
|
1661
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1662
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1663
|
+
* @return {!proto.ocap.DelegationFilter}
|
|
1664
|
+
*/
|
|
1665
|
+
proto.ocap.DelegationFilter.deserializeBinary = function(bytes) {
|
|
1666
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1667
|
+
var msg = new proto.ocap.DelegationFilter;
|
|
1668
|
+
return proto.ocap.DelegationFilter.deserializeBinaryFromReader(msg, reader);
|
|
1669
|
+
};
|
|
1670
|
+
|
|
1671
|
+
|
|
1672
|
+
/**
|
|
1673
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1674
|
+
* given reader into the given message object.
|
|
1675
|
+
* @param {!proto.ocap.DelegationFilter} msg The message object to deserialize into.
|
|
1676
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1677
|
+
* @return {!proto.ocap.DelegationFilter}
|
|
1678
|
+
*/
|
|
1679
|
+
proto.ocap.DelegationFilter.deserializeBinaryFromReader = function(msg, reader) {
|
|
1680
|
+
while (reader.nextField()) {
|
|
1681
|
+
if (reader.isEndGroup()) {
|
|
1682
|
+
break;
|
|
1683
|
+
}
|
|
1684
|
+
var field = reader.getFieldNumber();
|
|
1685
|
+
switch (field) {
|
|
1686
|
+
case 1:
|
|
1687
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1688
|
+
msg.addDelegations(value);
|
|
1689
|
+
break;
|
|
1690
|
+
default:
|
|
1691
|
+
reader.skipField();
|
|
1692
|
+
break;
|
|
1693
|
+
}
|
|
1694
|
+
}
|
|
1695
|
+
return msg;
|
|
1696
|
+
};
|
|
1697
|
+
|
|
1698
|
+
|
|
1699
|
+
/**
|
|
1700
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1701
|
+
* @return {!Uint8Array}
|
|
1702
|
+
*/
|
|
1703
|
+
proto.ocap.DelegationFilter.prototype.serializeBinary = function() {
|
|
1704
|
+
var writer = new jspb.BinaryWriter();
|
|
1705
|
+
proto.ocap.DelegationFilter.serializeBinaryToWriter(this, writer);
|
|
1706
|
+
return writer.getResultBuffer();
|
|
1707
|
+
};
|
|
1708
|
+
|
|
1709
|
+
|
|
1710
|
+
/**
|
|
1711
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1712
|
+
* format), writing to the given BinaryWriter.
|
|
1713
|
+
* @param {!proto.ocap.DelegationFilter} message
|
|
1714
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1715
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1716
|
+
*/
|
|
1717
|
+
proto.ocap.DelegationFilter.serializeBinaryToWriter = function(message, writer) {
|
|
1718
|
+
var f = undefined;
|
|
1719
|
+
f = message.getDelegationsList();
|
|
1720
|
+
if (f.length > 0) {
|
|
1721
|
+
writer.writeRepeatedString(
|
|
1722
|
+
1,
|
|
1723
|
+
f
|
|
1724
|
+
);
|
|
1725
|
+
}
|
|
1726
|
+
};
|
|
1727
|
+
|
|
1728
|
+
|
|
1729
|
+
/**
|
|
1730
|
+
* repeated string delegations = 1;
|
|
1731
|
+
* @return {!Array<string>}
|
|
1732
|
+
*/
|
|
1733
|
+
proto.ocap.DelegationFilter.prototype.getDelegationsList = function() {
|
|
1734
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
|
|
1735
|
+
};
|
|
1736
|
+
|
|
1737
|
+
|
|
1738
|
+
/**
|
|
1739
|
+
* @param {!Array<string>} value
|
|
1740
|
+
* @return {!proto.ocap.DelegationFilter} returns this
|
|
1741
|
+
*/
|
|
1742
|
+
proto.ocap.DelegationFilter.prototype.setDelegationsList = function(value) {
|
|
1743
|
+
return jspb.Message.setField(this, 1, value || []);
|
|
1744
|
+
};
|
|
1745
|
+
|
|
1746
|
+
|
|
1747
|
+
/**
|
|
1748
|
+
* @param {string} value
|
|
1749
|
+
* @param {number=} opt_index
|
|
1750
|
+
* @return {!proto.ocap.DelegationFilter} returns this
|
|
1751
|
+
*/
|
|
1752
|
+
proto.ocap.DelegationFilter.prototype.addDelegations = function(value, opt_index) {
|
|
1753
|
+
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
|
1754
|
+
};
|
|
1755
|
+
|
|
1756
|
+
|
|
1757
|
+
/**
|
|
1758
|
+
* Clears the list making it empty but non-null.
|
|
1759
|
+
* @return {!proto.ocap.DelegationFilter} returns this
|
|
1760
|
+
*/
|
|
1761
|
+
proto.ocap.DelegationFilter.prototype.clearDelegationsList = function() {
|
|
1762
|
+
return this.setDelegationsList([]);
|
|
1763
|
+
};
|
|
1764
|
+
|
|
1765
|
+
|
|
1766
|
+
|
|
1589
1767
|
/**
|
|
1590
1768
|
* List of repeated fields within this message type.
|
|
1591
1769
|
* @private {!Array<number>}
|
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.
|
|
4
|
+
"version": "1.18.98",
|
|
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": "41138be9ecae27624397a8b5ee270e2101944560"
|
|
52
52
|
}
|