@ocap/proto 1.18.20 → 1.18.22

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
@@ -496,6 +496,10 @@
496
496
  "rollupFilter": {
497
497
  "type": "RollupFilter",
498
498
  "id": 11
499
+ },
500
+ "stakeFilter": {
501
+ "type": "StakeFilter",
502
+ "id": 12
499
503
  }
500
504
  }
501
505
  },
@@ -4387,6 +4391,15 @@
4387
4391
  }
4388
4392
  }
4389
4393
  },
4394
+ "StakeFilter": {
4395
+ "fields": {
4396
+ "stakes": {
4397
+ "rule": "repeated",
4398
+ "type": "string",
4399
+ "id": 1
4400
+ }
4401
+ }
4402
+ },
4390
4403
  "AccountFilter": {
4391
4404
  "fields": {
4392
4405
  "accounts": {
@@ -47,6 +47,7 @@ goog.exportSymbol('proto.ocap.PageOrder', null, root);
47
47
  goog.exportSymbol('proto.ocap.RangeFilter', null, root);
48
48
  goog.exportSymbol('proto.ocap.RollupFilter', null, root);
49
49
  goog.exportSymbol('proto.ocap.SearchResult', null, root);
50
+ goog.exportSymbol('proto.ocap.StakeFilter', null, root);
50
51
  goog.exportSymbol('proto.ocap.TimeFilter', null, root);
51
52
  goog.exportSymbol('proto.ocap.TokenFilter', null, root);
52
53
  goog.exportSymbol('proto.ocap.TokenInfo', null, root);
@@ -181,6 +182,27 @@ if (goog.DEBUG && !COMPILED) {
181
182
  */
182
183
  proto.ocap.TokenFilter.displayName = 'proto.ocap.TokenFilter';
183
184
  }
185
+ /**
186
+ * Generated by JsPbCodeGenerator.
187
+ * @param {Array=} opt_data Optional initial data array, typically from a
188
+ * server response, or constructed directly in Javascript. The array is used
189
+ * in place and becomes part of the constructed object. It is not cloned.
190
+ * If no data is provided, the constructed object will be empty, but still
191
+ * valid.
192
+ * @extends {jspb.Message}
193
+ * @constructor
194
+ */
195
+ proto.ocap.StakeFilter = function(opt_data) {
196
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.ocap.StakeFilter.repeatedFields_, null);
197
+ };
198
+ goog.inherits(proto.ocap.StakeFilter, jspb.Message);
199
+ if (goog.DEBUG && !COMPILED) {
200
+ /**
201
+ * @public
202
+ * @override
203
+ */
204
+ proto.ocap.StakeFilter.displayName = 'proto.ocap.StakeFilter';
205
+ }
184
206
  /**
185
207
  * Generated by JsPbCodeGenerator.
186
208
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -1690,6 +1712,162 @@ proto.ocap.TokenFilter.prototype.clearTokensList = function() {
1690
1712
 
1691
1713
 
1692
1714
 
1715
+ /**
1716
+ * List of repeated fields within this message type.
1717
+ * @private {!Array<number>}
1718
+ * @const
1719
+ */
1720
+ proto.ocap.StakeFilter.repeatedFields_ = [1];
1721
+
1722
+
1723
+
1724
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1725
+ /**
1726
+ * Creates an object representation of this proto.
1727
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1728
+ * Optional fields that are not set will be set to undefined.
1729
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1730
+ * For the list of reserved names please see:
1731
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1732
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1733
+ * JSPB instance for transitional soy proto support:
1734
+ * http://goto/soy-param-migration
1735
+ * @return {!Object}
1736
+ */
1737
+ proto.ocap.StakeFilter.prototype.toObject = function(opt_includeInstance) {
1738
+ return proto.ocap.StakeFilter.toObject(opt_includeInstance, this);
1739
+ };
1740
+
1741
+
1742
+ /**
1743
+ * Static version of the {@see toObject} method.
1744
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1745
+ * the JSPB instance for transitional soy proto support:
1746
+ * http://goto/soy-param-migration
1747
+ * @param {!proto.ocap.StakeFilter} msg The msg instance to transform.
1748
+ * @return {!Object}
1749
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1750
+ */
1751
+ proto.ocap.StakeFilter.toObject = function(includeInstance, msg) {
1752
+ var f, obj = {
1753
+ stakesList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
1754
+ };
1755
+
1756
+ if (includeInstance) {
1757
+ obj.$jspbMessageInstance = msg;
1758
+ }
1759
+ return obj;
1760
+ };
1761
+ }
1762
+
1763
+
1764
+ /**
1765
+ * Deserializes binary data (in protobuf wire format).
1766
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1767
+ * @return {!proto.ocap.StakeFilter}
1768
+ */
1769
+ proto.ocap.StakeFilter.deserializeBinary = function(bytes) {
1770
+ var reader = new jspb.BinaryReader(bytes);
1771
+ var msg = new proto.ocap.StakeFilter;
1772
+ return proto.ocap.StakeFilter.deserializeBinaryFromReader(msg, reader);
1773
+ };
1774
+
1775
+
1776
+ /**
1777
+ * Deserializes binary data (in protobuf wire format) from the
1778
+ * given reader into the given message object.
1779
+ * @param {!proto.ocap.StakeFilter} msg The message object to deserialize into.
1780
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1781
+ * @return {!proto.ocap.StakeFilter}
1782
+ */
1783
+ proto.ocap.StakeFilter.deserializeBinaryFromReader = function(msg, reader) {
1784
+ while (reader.nextField()) {
1785
+ if (reader.isEndGroup()) {
1786
+ break;
1787
+ }
1788
+ var field = reader.getFieldNumber();
1789
+ switch (field) {
1790
+ case 1:
1791
+ var value = /** @type {string} */ (reader.readString());
1792
+ msg.addStakes(value);
1793
+ break;
1794
+ default:
1795
+ reader.skipField();
1796
+ break;
1797
+ }
1798
+ }
1799
+ return msg;
1800
+ };
1801
+
1802
+
1803
+ /**
1804
+ * Serializes the message to binary data (in protobuf wire format).
1805
+ * @return {!Uint8Array}
1806
+ */
1807
+ proto.ocap.StakeFilter.prototype.serializeBinary = function() {
1808
+ var writer = new jspb.BinaryWriter();
1809
+ proto.ocap.StakeFilter.serializeBinaryToWriter(this, writer);
1810
+ return writer.getResultBuffer();
1811
+ };
1812
+
1813
+
1814
+ /**
1815
+ * Serializes the given message to binary data (in protobuf wire
1816
+ * format), writing to the given BinaryWriter.
1817
+ * @param {!proto.ocap.StakeFilter} message
1818
+ * @param {!jspb.BinaryWriter} writer
1819
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1820
+ */
1821
+ proto.ocap.StakeFilter.serializeBinaryToWriter = function(message, writer) {
1822
+ var f = undefined;
1823
+ f = message.getStakesList();
1824
+ if (f.length > 0) {
1825
+ writer.writeRepeatedString(
1826
+ 1,
1827
+ f
1828
+ );
1829
+ }
1830
+ };
1831
+
1832
+
1833
+ /**
1834
+ * repeated string stakes = 1;
1835
+ * @return {!Array<string>}
1836
+ */
1837
+ proto.ocap.StakeFilter.prototype.getStakesList = function() {
1838
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
1839
+ };
1840
+
1841
+
1842
+ /**
1843
+ * @param {!Array<string>} value
1844
+ * @return {!proto.ocap.StakeFilter} returns this
1845
+ */
1846
+ proto.ocap.StakeFilter.prototype.setStakesList = function(value) {
1847
+ return jspb.Message.setField(this, 1, value || []);
1848
+ };
1849
+
1850
+
1851
+ /**
1852
+ * @param {string} value
1853
+ * @param {number=} opt_index
1854
+ * @return {!proto.ocap.StakeFilter} returns this
1855
+ */
1856
+ proto.ocap.StakeFilter.prototype.addStakes = function(value, opt_index) {
1857
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
1858
+ };
1859
+
1860
+
1861
+ /**
1862
+ * Clears the list making it empty but non-null.
1863
+ * @return {!proto.ocap.StakeFilter} returns this
1864
+ */
1865
+ proto.ocap.StakeFilter.prototype.clearStakesList = function() {
1866
+ return this.setStakesList([]);
1867
+ };
1868
+
1869
+
1870
+
1693
1871
  /**
1694
1872
  * List of repeated fields within this message type.
1695
1873
  * @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.20",
4
+ "version": "1.18.22",
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": "f220849b0c31f7f90281684080f001e18df9e077"
51
+ "gitHead": "7f833da5b1ed75fd2f2427925d0cbb84af33b36b"
52
52
  }