@ocap/proto 1.24.8 → 1.25.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.
@@ -63,6 +63,7 @@ goog.exportSymbol('proto.ocap.RollupSignature', null, root);
63
63
  goog.exportSymbol('proto.ocap.RollupValidator', null, root);
64
64
  goog.exportSymbol('proto.ocap.StakeSummary', null, root);
65
65
  goog.exportSymbol('proto.ocap.StateContext', null, root);
66
+ goog.exportSymbol('proto.ocap.TokenInfo', null, root);
66
67
  goog.exportSymbol('proto.ocap.TokenInput', null, root);
67
68
  goog.exportSymbol('proto.ocap.TokenLimit', null, root);
68
69
  goog.exportSymbol('proto.ocap.TokenSymbol', null, root);
@@ -73,6 +74,7 @@ goog.exportSymbol('proto.ocap.TransactionInput', null, root);
73
74
  goog.exportSymbol('proto.ocap.TransactionReceipt', null, root);
74
75
  goog.exportSymbol('proto.ocap.TxFeeConfig', null, root);
75
76
  goog.exportSymbol('proto.ocap.TxGasConfig', null, root);
77
+ goog.exportSymbol('proto.ocap.TxStakeConfig', null, root);
76
78
  goog.exportSymbol('proto.ocap.UnconfirmedTxs', null, root);
77
79
  goog.exportSymbol('proto.ocap.UpgradeInfo', null, root);
78
80
  goog.exportSymbol('proto.ocap.UpgradeTask', null, root);
@@ -148,6 +150,27 @@ if (goog.DEBUG && !COMPILED) {
148
150
  */
149
151
  proto.ocap.TokenSymbol.displayName = 'proto.ocap.TokenSymbol';
150
152
  }
153
+ /**
154
+ * Generated by JsPbCodeGenerator.
155
+ * @param {Array=} opt_data Optional initial data array, typically from a
156
+ * server response, or constructed directly in Javascript. The array is used
157
+ * in place and becomes part of the constructed object. It is not cloned.
158
+ * If no data is provided, the constructed object will be empty, but still
159
+ * valid.
160
+ * @extends {jspb.Message}
161
+ * @constructor
162
+ */
163
+ proto.ocap.TokenInfo = function(opt_data) {
164
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
165
+ };
166
+ goog.inherits(proto.ocap.TokenInfo, jspb.Message);
167
+ if (goog.DEBUG && !COMPILED) {
168
+ /**
169
+ * @public
170
+ * @override
171
+ */
172
+ proto.ocap.TokenInfo.displayName = 'proto.ocap.TokenInfo';
173
+ }
151
174
  /**
152
175
  * Generated by JsPbCodeGenerator.
153
176
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -568,6 +591,27 @@ if (goog.DEBUG && !COMPILED) {
568
591
  */
569
592
  proto.ocap.TxGasConfig.displayName = 'proto.ocap.TxGasConfig';
570
593
  }
594
+ /**
595
+ * Generated by JsPbCodeGenerator.
596
+ * @param {Array=} opt_data Optional initial data array, typically from a
597
+ * server response, or constructed directly in Javascript. The array is used
598
+ * in place and becomes part of the constructed object. It is not cloned.
599
+ * If no data is provided, the constructed object will be empty, but still
600
+ * valid.
601
+ * @extends {jspb.Message}
602
+ * @constructor
603
+ */
604
+ proto.ocap.TxStakeConfig = function(opt_data) {
605
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
606
+ };
607
+ goog.inherits(proto.ocap.TxStakeConfig, jspb.Message);
608
+ if (goog.DEBUG && !COMPILED) {
609
+ /**
610
+ * @public
611
+ * @override
612
+ */
613
+ proto.ocap.TxStakeConfig.displayName = 'proto.ocap.TxStakeConfig';
614
+ }
571
615
  /**
572
616
  * Generated by JsPbCodeGenerator.
573
617
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -1634,11 +1678,7 @@ proto.ocap.TokenSymbol.toObject = function(includeInstance, msg) {
1634
1678
  address: jspb.Message.getFieldWithDefault(msg, 1, ""),
1635
1679
  symbol: jspb.Message.getFieldWithDefault(msg, 2, ""),
1636
1680
  decimal: jspb.Message.getFieldWithDefault(msg, 3, 0),
1637
- unit: jspb.Message.getFieldWithDefault(msg, 4, ""),
1638
- name: jspb.Message.getFieldWithDefault(msg, 5, ""),
1639
- description: jspb.Message.getFieldWithDefault(msg, 6, ""),
1640
- icon: jspb.Message.getFieldWithDefault(msg, 7, ""),
1641
- maxTotalSupply: jspb.Message.getFieldWithDefault(msg, 8, "")
1681
+ unit: jspb.Message.getFieldWithDefault(msg, 4, "")
1642
1682
  };
1643
1683
 
1644
1684
  if (includeInstance) {
@@ -1669,6 +1709,232 @@ proto.ocap.TokenSymbol.deserializeBinary = function(bytes) {
1669
1709
  * @return {!proto.ocap.TokenSymbol}
1670
1710
  */
1671
1711
  proto.ocap.TokenSymbol.deserializeBinaryFromReader = function(msg, reader) {
1712
+ while (reader.nextField()) {
1713
+ if (reader.isEndGroup()) {
1714
+ break;
1715
+ }
1716
+ var field = reader.getFieldNumber();
1717
+ switch (field) {
1718
+ case 1:
1719
+ var value = /** @type {string} */ (reader.readString());
1720
+ msg.setAddress(value);
1721
+ break;
1722
+ case 2:
1723
+ var value = /** @type {string} */ (reader.readString());
1724
+ msg.setSymbol(value);
1725
+ break;
1726
+ case 3:
1727
+ var value = /** @type {number} */ (reader.readInt32());
1728
+ msg.setDecimal(value);
1729
+ break;
1730
+ case 4:
1731
+ var value = /** @type {string} */ (reader.readString());
1732
+ msg.setUnit(value);
1733
+ break;
1734
+ default:
1735
+ reader.skipField();
1736
+ break;
1737
+ }
1738
+ }
1739
+ return msg;
1740
+ };
1741
+
1742
+
1743
+ /**
1744
+ * Serializes the message to binary data (in protobuf wire format).
1745
+ * @return {!Uint8Array}
1746
+ */
1747
+ proto.ocap.TokenSymbol.prototype.serializeBinary = function() {
1748
+ var writer = new jspb.BinaryWriter();
1749
+ proto.ocap.TokenSymbol.serializeBinaryToWriter(this, writer);
1750
+ return writer.getResultBuffer();
1751
+ };
1752
+
1753
+
1754
+ /**
1755
+ * Serializes the given message to binary data (in protobuf wire
1756
+ * format), writing to the given BinaryWriter.
1757
+ * @param {!proto.ocap.TokenSymbol} message
1758
+ * @param {!jspb.BinaryWriter} writer
1759
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1760
+ */
1761
+ proto.ocap.TokenSymbol.serializeBinaryToWriter = function(message, writer) {
1762
+ var f = undefined;
1763
+ f = message.getAddress();
1764
+ if (f.length > 0) {
1765
+ writer.writeString(
1766
+ 1,
1767
+ f
1768
+ );
1769
+ }
1770
+ f = message.getSymbol();
1771
+ if (f.length > 0) {
1772
+ writer.writeString(
1773
+ 2,
1774
+ f
1775
+ );
1776
+ }
1777
+ f = message.getDecimal();
1778
+ if (f !== 0) {
1779
+ writer.writeInt32(
1780
+ 3,
1781
+ f
1782
+ );
1783
+ }
1784
+ f = message.getUnit();
1785
+ if (f.length > 0) {
1786
+ writer.writeString(
1787
+ 4,
1788
+ f
1789
+ );
1790
+ }
1791
+ };
1792
+
1793
+
1794
+ /**
1795
+ * optional string address = 1;
1796
+ * @return {string}
1797
+ */
1798
+ proto.ocap.TokenSymbol.prototype.getAddress = function() {
1799
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1800
+ };
1801
+
1802
+
1803
+ /**
1804
+ * @param {string} value
1805
+ * @return {!proto.ocap.TokenSymbol} returns this
1806
+ */
1807
+ proto.ocap.TokenSymbol.prototype.setAddress = function(value) {
1808
+ return jspb.Message.setProto3StringField(this, 1, value);
1809
+ };
1810
+
1811
+
1812
+ /**
1813
+ * optional string symbol = 2;
1814
+ * @return {string}
1815
+ */
1816
+ proto.ocap.TokenSymbol.prototype.getSymbol = function() {
1817
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1818
+ };
1819
+
1820
+
1821
+ /**
1822
+ * @param {string} value
1823
+ * @return {!proto.ocap.TokenSymbol} returns this
1824
+ */
1825
+ proto.ocap.TokenSymbol.prototype.setSymbol = function(value) {
1826
+ return jspb.Message.setProto3StringField(this, 2, value);
1827
+ };
1828
+
1829
+
1830
+ /**
1831
+ * optional int32 decimal = 3;
1832
+ * @return {number}
1833
+ */
1834
+ proto.ocap.TokenSymbol.prototype.getDecimal = function() {
1835
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
1836
+ };
1837
+
1838
+
1839
+ /**
1840
+ * @param {number} value
1841
+ * @return {!proto.ocap.TokenSymbol} returns this
1842
+ */
1843
+ proto.ocap.TokenSymbol.prototype.setDecimal = function(value) {
1844
+ return jspb.Message.setProto3IntField(this, 3, value);
1845
+ };
1846
+
1847
+
1848
+ /**
1849
+ * optional string unit = 4;
1850
+ * @return {string}
1851
+ */
1852
+ proto.ocap.TokenSymbol.prototype.getUnit = function() {
1853
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
1854
+ };
1855
+
1856
+
1857
+ /**
1858
+ * @param {string} value
1859
+ * @return {!proto.ocap.TokenSymbol} returns this
1860
+ */
1861
+ proto.ocap.TokenSymbol.prototype.setUnit = function(value) {
1862
+ return jspb.Message.setProto3StringField(this, 4, value);
1863
+ };
1864
+
1865
+
1866
+
1867
+
1868
+
1869
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1870
+ /**
1871
+ * Creates an object representation of this proto.
1872
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1873
+ * Optional fields that are not set will be set to undefined.
1874
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1875
+ * For the list of reserved names please see:
1876
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1877
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1878
+ * JSPB instance for transitional soy proto support:
1879
+ * http://goto/soy-param-migration
1880
+ * @return {!Object}
1881
+ */
1882
+ proto.ocap.TokenInfo.prototype.toObject = function(opt_includeInstance) {
1883
+ return proto.ocap.TokenInfo.toObject(opt_includeInstance, this);
1884
+ };
1885
+
1886
+
1887
+ /**
1888
+ * Static version of the {@see toObject} method.
1889
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1890
+ * the JSPB instance for transitional soy proto support:
1891
+ * http://goto/soy-param-migration
1892
+ * @param {!proto.ocap.TokenInfo} msg The msg instance to transform.
1893
+ * @return {!Object}
1894
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1895
+ */
1896
+ proto.ocap.TokenInfo.toObject = function(includeInstance, msg) {
1897
+ var f, obj = {
1898
+ address: jspb.Message.getFieldWithDefault(msg, 1, ""),
1899
+ symbol: jspb.Message.getFieldWithDefault(msg, 2, ""),
1900
+ decimal: jspb.Message.getFieldWithDefault(msg, 3, 0),
1901
+ unit: jspb.Message.getFieldWithDefault(msg, 4, ""),
1902
+ name: jspb.Message.getFieldWithDefault(msg, 5, ""),
1903
+ description: jspb.Message.getFieldWithDefault(msg, 6, ""),
1904
+ icon: jspb.Message.getFieldWithDefault(msg, 7, ""),
1905
+ maxTotalSupply: jspb.Message.getFieldWithDefault(msg, 8, ""),
1906
+ metadata: (f = msg.getMetadata()) && google_protobuf_any_pb.Any.toObject(includeInstance, f),
1907
+ website: jspb.Message.getFieldWithDefault(msg, 10, "")
1908
+ };
1909
+
1910
+ if (includeInstance) {
1911
+ obj.$jspbMessageInstance = msg;
1912
+ }
1913
+ return obj;
1914
+ };
1915
+ }
1916
+
1917
+
1918
+ /**
1919
+ * Deserializes binary data (in protobuf wire format).
1920
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1921
+ * @return {!proto.ocap.TokenInfo}
1922
+ */
1923
+ proto.ocap.TokenInfo.deserializeBinary = function(bytes) {
1924
+ var reader = new jspb.BinaryReader(bytes);
1925
+ var msg = new proto.ocap.TokenInfo;
1926
+ return proto.ocap.TokenInfo.deserializeBinaryFromReader(msg, reader);
1927
+ };
1928
+
1929
+
1930
+ /**
1931
+ * Deserializes binary data (in protobuf wire format) from the
1932
+ * given reader into the given message object.
1933
+ * @param {!proto.ocap.TokenInfo} msg The message object to deserialize into.
1934
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1935
+ * @return {!proto.ocap.TokenInfo}
1936
+ */
1937
+ proto.ocap.TokenInfo.deserializeBinaryFromReader = function(msg, reader) {
1672
1938
  while (reader.nextField()) {
1673
1939
  if (reader.isEndGroup()) {
1674
1940
  break;
@@ -1707,6 +1973,15 @@ proto.ocap.TokenSymbol.deserializeBinaryFromReader = function(msg, reader) {
1707
1973
  var value = /** @type {string} */ (reader.readString());
1708
1974
  msg.setMaxTotalSupply(value);
1709
1975
  break;
1976
+ case 9:
1977
+ var value = new google_protobuf_any_pb.Any;
1978
+ reader.readMessage(value,google_protobuf_any_pb.Any.deserializeBinaryFromReader);
1979
+ msg.setMetadata(value);
1980
+ break;
1981
+ case 10:
1982
+ var value = /** @type {string} */ (reader.readString());
1983
+ msg.setWebsite(value);
1984
+ break;
1710
1985
  default:
1711
1986
  reader.skipField();
1712
1987
  break;
@@ -1720,9 +1995,9 @@ proto.ocap.TokenSymbol.deserializeBinaryFromReader = function(msg, reader) {
1720
1995
  * Serializes the message to binary data (in protobuf wire format).
1721
1996
  * @return {!Uint8Array}
1722
1997
  */
1723
- proto.ocap.TokenSymbol.prototype.serializeBinary = function() {
1998
+ proto.ocap.TokenInfo.prototype.serializeBinary = function() {
1724
1999
  var writer = new jspb.BinaryWriter();
1725
- proto.ocap.TokenSymbol.serializeBinaryToWriter(this, writer);
2000
+ proto.ocap.TokenInfo.serializeBinaryToWriter(this, writer);
1726
2001
  return writer.getResultBuffer();
1727
2002
  };
1728
2003
 
@@ -1730,11 +2005,11 @@ proto.ocap.TokenSymbol.prototype.serializeBinary = function() {
1730
2005
  /**
1731
2006
  * Serializes the given message to binary data (in protobuf wire
1732
2007
  * format), writing to the given BinaryWriter.
1733
- * @param {!proto.ocap.TokenSymbol} message
2008
+ * @param {!proto.ocap.TokenInfo} message
1734
2009
  * @param {!jspb.BinaryWriter} writer
1735
2010
  * @suppress {unusedLocalVariables} f is only used for nested messages
1736
2011
  */
1737
- proto.ocap.TokenSymbol.serializeBinaryToWriter = function(message, writer) {
2012
+ proto.ocap.TokenInfo.serializeBinaryToWriter = function(message, writer) {
1738
2013
  var f = undefined;
1739
2014
  f = message.getAddress();
1740
2015
  if (f.length > 0) {
@@ -1792,6 +2067,21 @@ proto.ocap.TokenSymbol.serializeBinaryToWriter = function(message, writer) {
1792
2067
  f
1793
2068
  );
1794
2069
  }
2070
+ f = message.getMetadata();
2071
+ if (f != null) {
2072
+ writer.writeMessage(
2073
+ 9,
2074
+ f,
2075
+ google_protobuf_any_pb.Any.serializeBinaryToWriter
2076
+ );
2077
+ }
2078
+ f = message.getWebsite();
2079
+ if (f.length > 0) {
2080
+ writer.writeString(
2081
+ 10,
2082
+ f
2083
+ );
2084
+ }
1795
2085
  };
1796
2086
 
1797
2087
 
@@ -1799,16 +2089,16 @@ proto.ocap.TokenSymbol.serializeBinaryToWriter = function(message, writer) {
1799
2089
  * optional string address = 1;
1800
2090
  * @return {string}
1801
2091
  */
1802
- proto.ocap.TokenSymbol.prototype.getAddress = function() {
2092
+ proto.ocap.TokenInfo.prototype.getAddress = function() {
1803
2093
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1804
2094
  };
1805
2095
 
1806
2096
 
1807
2097
  /**
1808
2098
  * @param {string} value
1809
- * @return {!proto.ocap.TokenSymbol} returns this
2099
+ * @return {!proto.ocap.TokenInfo} returns this
1810
2100
  */
1811
- proto.ocap.TokenSymbol.prototype.setAddress = function(value) {
2101
+ proto.ocap.TokenInfo.prototype.setAddress = function(value) {
1812
2102
  return jspb.Message.setProto3StringField(this, 1, value);
1813
2103
  };
1814
2104
 
@@ -1817,16 +2107,16 @@ proto.ocap.TokenSymbol.prototype.setAddress = function(value) {
1817
2107
  * optional string symbol = 2;
1818
2108
  * @return {string}
1819
2109
  */
1820
- proto.ocap.TokenSymbol.prototype.getSymbol = function() {
2110
+ proto.ocap.TokenInfo.prototype.getSymbol = function() {
1821
2111
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1822
2112
  };
1823
2113
 
1824
2114
 
1825
2115
  /**
1826
2116
  * @param {string} value
1827
- * @return {!proto.ocap.TokenSymbol} returns this
2117
+ * @return {!proto.ocap.TokenInfo} returns this
1828
2118
  */
1829
- proto.ocap.TokenSymbol.prototype.setSymbol = function(value) {
2119
+ proto.ocap.TokenInfo.prototype.setSymbol = function(value) {
1830
2120
  return jspb.Message.setProto3StringField(this, 2, value);
1831
2121
  };
1832
2122
 
@@ -1835,16 +2125,16 @@ proto.ocap.TokenSymbol.prototype.setSymbol = function(value) {
1835
2125
  * optional int32 decimal = 3;
1836
2126
  * @return {number}
1837
2127
  */
1838
- proto.ocap.TokenSymbol.prototype.getDecimal = function() {
2128
+ proto.ocap.TokenInfo.prototype.getDecimal = function() {
1839
2129
  return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
1840
2130
  };
1841
2131
 
1842
2132
 
1843
2133
  /**
1844
2134
  * @param {number} value
1845
- * @return {!proto.ocap.TokenSymbol} returns this
2135
+ * @return {!proto.ocap.TokenInfo} returns this
1846
2136
  */
1847
- proto.ocap.TokenSymbol.prototype.setDecimal = function(value) {
2137
+ proto.ocap.TokenInfo.prototype.setDecimal = function(value) {
1848
2138
  return jspb.Message.setProto3IntField(this, 3, value);
1849
2139
  };
1850
2140
 
@@ -1853,16 +2143,16 @@ proto.ocap.TokenSymbol.prototype.setDecimal = function(value) {
1853
2143
  * optional string unit = 4;
1854
2144
  * @return {string}
1855
2145
  */
1856
- proto.ocap.TokenSymbol.prototype.getUnit = function() {
2146
+ proto.ocap.TokenInfo.prototype.getUnit = function() {
1857
2147
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
1858
2148
  };
1859
2149
 
1860
2150
 
1861
2151
  /**
1862
2152
  * @param {string} value
1863
- * @return {!proto.ocap.TokenSymbol} returns this
2153
+ * @return {!proto.ocap.TokenInfo} returns this
1864
2154
  */
1865
- proto.ocap.TokenSymbol.prototype.setUnit = function(value) {
2155
+ proto.ocap.TokenInfo.prototype.setUnit = function(value) {
1866
2156
  return jspb.Message.setProto3StringField(this, 4, value);
1867
2157
  };
1868
2158
 
@@ -1871,16 +2161,16 @@ proto.ocap.TokenSymbol.prototype.setUnit = function(value) {
1871
2161
  * optional string name = 5;
1872
2162
  * @return {string}
1873
2163
  */
1874
- proto.ocap.TokenSymbol.prototype.getName = function() {
2164
+ proto.ocap.TokenInfo.prototype.getName = function() {
1875
2165
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
1876
2166
  };
1877
2167
 
1878
2168
 
1879
2169
  /**
1880
2170
  * @param {string} value
1881
- * @return {!proto.ocap.TokenSymbol} returns this
2171
+ * @return {!proto.ocap.TokenInfo} returns this
1882
2172
  */
1883
- proto.ocap.TokenSymbol.prototype.setName = function(value) {
2173
+ proto.ocap.TokenInfo.prototype.setName = function(value) {
1884
2174
  return jspb.Message.setProto3StringField(this, 5, value);
1885
2175
  };
1886
2176
 
@@ -1889,16 +2179,16 @@ proto.ocap.TokenSymbol.prototype.setName = function(value) {
1889
2179
  * optional string description = 6;
1890
2180
  * @return {string}
1891
2181
  */
1892
- proto.ocap.TokenSymbol.prototype.getDescription = function() {
2182
+ proto.ocap.TokenInfo.prototype.getDescription = function() {
1893
2183
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
1894
2184
  };
1895
2185
 
1896
2186
 
1897
2187
  /**
1898
2188
  * @param {string} value
1899
- * @return {!proto.ocap.TokenSymbol} returns this
2189
+ * @return {!proto.ocap.TokenInfo} returns this
1900
2190
  */
1901
- proto.ocap.TokenSymbol.prototype.setDescription = function(value) {
2191
+ proto.ocap.TokenInfo.prototype.setDescription = function(value) {
1902
2192
  return jspb.Message.setProto3StringField(this, 6, value);
1903
2193
  };
1904
2194
 
@@ -1907,16 +2197,16 @@ proto.ocap.TokenSymbol.prototype.setDescription = function(value) {
1907
2197
  * optional string icon = 7;
1908
2198
  * @return {string}
1909
2199
  */
1910
- proto.ocap.TokenSymbol.prototype.getIcon = function() {
2200
+ proto.ocap.TokenInfo.prototype.getIcon = function() {
1911
2201
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
1912
2202
  };
1913
2203
 
1914
2204
 
1915
2205
  /**
1916
2206
  * @param {string} value
1917
- * @return {!proto.ocap.TokenSymbol} returns this
2207
+ * @return {!proto.ocap.TokenInfo} returns this
1918
2208
  */
1919
- proto.ocap.TokenSymbol.prototype.setIcon = function(value) {
2209
+ proto.ocap.TokenInfo.prototype.setIcon = function(value) {
1920
2210
  return jspb.Message.setProto3StringField(this, 7, value);
1921
2211
  };
1922
2212
 
@@ -1925,20 +2215,75 @@ proto.ocap.TokenSymbol.prototype.setIcon = function(value) {
1925
2215
  * optional string max_total_supply = 8;
1926
2216
  * @return {string}
1927
2217
  */
1928
- proto.ocap.TokenSymbol.prototype.getMaxTotalSupply = function() {
2218
+ proto.ocap.TokenInfo.prototype.getMaxTotalSupply = function() {
1929
2219
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
1930
2220
  };
1931
2221
 
1932
2222
 
1933
2223
  /**
1934
2224
  * @param {string} value
1935
- * @return {!proto.ocap.TokenSymbol} returns this
2225
+ * @return {!proto.ocap.TokenInfo} returns this
1936
2226
  */
1937
- proto.ocap.TokenSymbol.prototype.setMaxTotalSupply = function(value) {
2227
+ proto.ocap.TokenInfo.prototype.setMaxTotalSupply = function(value) {
1938
2228
  return jspb.Message.setProto3StringField(this, 8, value);
1939
2229
  };
1940
2230
 
1941
2231
 
2232
+ /**
2233
+ * optional google.protobuf.Any metadata = 9;
2234
+ * @return {?proto.google.protobuf.Any}
2235
+ */
2236
+ proto.ocap.TokenInfo.prototype.getMetadata = function() {
2237
+ return /** @type{?proto.google.protobuf.Any} */ (
2238
+ jspb.Message.getWrapperField(this, google_protobuf_any_pb.Any, 9));
2239
+ };
2240
+
2241
+
2242
+ /**
2243
+ * @param {?proto.google.protobuf.Any|undefined} value
2244
+ * @return {!proto.ocap.TokenInfo} returns this
2245
+ */
2246
+ proto.ocap.TokenInfo.prototype.setMetadata = function(value) {
2247
+ return jspb.Message.setWrapperField(this, 9, value);
2248
+ };
2249
+
2250
+
2251
+ /**
2252
+ * Clears the message field making it undefined.
2253
+ * @return {!proto.ocap.TokenInfo} returns this
2254
+ */
2255
+ proto.ocap.TokenInfo.prototype.clearMetadata = function() {
2256
+ return this.setMetadata(undefined);
2257
+ };
2258
+
2259
+
2260
+ /**
2261
+ * Returns whether this field is set.
2262
+ * @return {boolean}
2263
+ */
2264
+ proto.ocap.TokenInfo.prototype.hasMetadata = function() {
2265
+ return jspb.Message.getField(this, 9) != null;
2266
+ };
2267
+
2268
+
2269
+ /**
2270
+ * optional string website = 10;
2271
+ * @return {string}
2272
+ */
2273
+ proto.ocap.TokenInfo.prototype.getWebsite = function() {
2274
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
2275
+ };
2276
+
2277
+
2278
+ /**
2279
+ * @param {string} value
2280
+ * @return {!proto.ocap.TokenInfo} returns this
2281
+ */
2282
+ proto.ocap.TokenInfo.prototype.setWebsite = function(value) {
2283
+ return jspb.Message.setProto3StringField(this, 10, value);
2284
+ };
2285
+
2286
+
1942
2287
 
1943
2288
 
1944
2289
 
@@ -8073,6 +8418,166 @@ proto.ocap.TxGasConfig.prototype.setStakeLockPeriod = function(value) {
8073
8418
 
8074
8419
 
8075
8420
 
8421
+
8422
+
8423
+ if (jspb.Message.GENERATE_TO_OBJECT) {
8424
+ /**
8425
+ * Creates an object representation of this proto.
8426
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
8427
+ * Optional fields that are not set will be set to undefined.
8428
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
8429
+ * For the list of reserved names please see:
8430
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
8431
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
8432
+ * JSPB instance for transitional soy proto support:
8433
+ * http://goto/soy-param-migration
8434
+ * @return {!Object}
8435
+ */
8436
+ proto.ocap.TxStakeConfig.prototype.toObject = function(opt_includeInstance) {
8437
+ return proto.ocap.TxStakeConfig.toObject(opt_includeInstance, this);
8438
+ };
8439
+
8440
+
8441
+ /**
8442
+ * Static version of the {@see toObject} method.
8443
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
8444
+ * the JSPB instance for transitional soy proto support:
8445
+ * http://goto/soy-param-migration
8446
+ * @param {!proto.ocap.TxStakeConfig} msg The msg instance to transform.
8447
+ * @return {!Object}
8448
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8449
+ */
8450
+ proto.ocap.TxStakeConfig.toObject = function(includeInstance, msg) {
8451
+ var f, obj = {
8452
+ createToken: jspb.Message.getFieldWithDefault(msg, 1, 0),
8453
+ createTokenLockPeriod: jspb.Message.getFieldWithDefault(msg, 2, 0)
8454
+ };
8455
+
8456
+ if (includeInstance) {
8457
+ obj.$jspbMessageInstance = msg;
8458
+ }
8459
+ return obj;
8460
+ };
8461
+ }
8462
+
8463
+
8464
+ /**
8465
+ * Deserializes binary data (in protobuf wire format).
8466
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
8467
+ * @return {!proto.ocap.TxStakeConfig}
8468
+ */
8469
+ proto.ocap.TxStakeConfig.deserializeBinary = function(bytes) {
8470
+ var reader = new jspb.BinaryReader(bytes);
8471
+ var msg = new proto.ocap.TxStakeConfig;
8472
+ return proto.ocap.TxStakeConfig.deserializeBinaryFromReader(msg, reader);
8473
+ };
8474
+
8475
+
8476
+ /**
8477
+ * Deserializes binary data (in protobuf wire format) from the
8478
+ * given reader into the given message object.
8479
+ * @param {!proto.ocap.TxStakeConfig} msg The message object to deserialize into.
8480
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
8481
+ * @return {!proto.ocap.TxStakeConfig}
8482
+ */
8483
+ proto.ocap.TxStakeConfig.deserializeBinaryFromReader = function(msg, reader) {
8484
+ while (reader.nextField()) {
8485
+ if (reader.isEndGroup()) {
8486
+ break;
8487
+ }
8488
+ var field = reader.getFieldNumber();
8489
+ switch (field) {
8490
+ case 1:
8491
+ var value = /** @type {number} */ (reader.readUint64());
8492
+ msg.setCreateToken(value);
8493
+ break;
8494
+ case 2:
8495
+ var value = /** @type {number} */ (reader.readUint64());
8496
+ msg.setCreateTokenLockPeriod(value);
8497
+ break;
8498
+ default:
8499
+ reader.skipField();
8500
+ break;
8501
+ }
8502
+ }
8503
+ return msg;
8504
+ };
8505
+
8506
+
8507
+ /**
8508
+ * Serializes the message to binary data (in protobuf wire format).
8509
+ * @return {!Uint8Array}
8510
+ */
8511
+ proto.ocap.TxStakeConfig.prototype.serializeBinary = function() {
8512
+ var writer = new jspb.BinaryWriter();
8513
+ proto.ocap.TxStakeConfig.serializeBinaryToWriter(this, writer);
8514
+ return writer.getResultBuffer();
8515
+ };
8516
+
8517
+
8518
+ /**
8519
+ * Serializes the given message to binary data (in protobuf wire
8520
+ * format), writing to the given BinaryWriter.
8521
+ * @param {!proto.ocap.TxStakeConfig} message
8522
+ * @param {!jspb.BinaryWriter} writer
8523
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8524
+ */
8525
+ proto.ocap.TxStakeConfig.serializeBinaryToWriter = function(message, writer) {
8526
+ var f = undefined;
8527
+ f = message.getCreateToken();
8528
+ if (f !== 0) {
8529
+ writer.writeUint64(
8530
+ 1,
8531
+ f
8532
+ );
8533
+ }
8534
+ f = message.getCreateTokenLockPeriod();
8535
+ if (f !== 0) {
8536
+ writer.writeUint64(
8537
+ 2,
8538
+ f
8539
+ );
8540
+ }
8541
+ };
8542
+
8543
+
8544
+ /**
8545
+ * optional uint64 create_token = 1;
8546
+ * @return {number}
8547
+ */
8548
+ proto.ocap.TxStakeConfig.prototype.getCreateToken = function() {
8549
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
8550
+ };
8551
+
8552
+
8553
+ /**
8554
+ * @param {number} value
8555
+ * @return {!proto.ocap.TxStakeConfig} returns this
8556
+ */
8557
+ proto.ocap.TxStakeConfig.prototype.setCreateToken = function(value) {
8558
+ return jspb.Message.setProto3IntField(this, 1, value);
8559
+ };
8560
+
8561
+
8562
+ /**
8563
+ * optional uint64 create_token_lock_period = 2;
8564
+ * @return {number}
8565
+ */
8566
+ proto.ocap.TxStakeConfig.prototype.getCreateTokenLockPeriod = function() {
8567
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
8568
+ };
8569
+
8570
+
8571
+ /**
8572
+ * @param {number} value
8573
+ * @return {!proto.ocap.TxStakeConfig} returns this
8574
+ */
8575
+ proto.ocap.TxStakeConfig.prototype.setCreateTokenLockPeriod = function(value) {
8576
+ return jspb.Message.setProto3IntField(this, 2, value);
8577
+ };
8578
+
8579
+
8580
+
8076
8581
  /**
8077
8582
  * List of repeated fields within this message type.
8078
8583
  * @private {!Array<number>}
@@ -8117,7 +8622,8 @@ proto.ocap.TransactionConfig.toObject = function(includeInstance, msg) {
8117
8622
  delegate: (f = msg.getDelegate()) && proto.ocap.DelegateConfig.toObject(includeInstance, f),
8118
8623
  txFeeList: jspb.Message.toObjectList(msg.getTxFeeList(),
8119
8624
  proto.ocap.TxFeeConfig.toObject, includeInstance),
8120
- txGas: (f = msg.getTxGas()) && proto.ocap.TxGasConfig.toObject(includeInstance, f)
8625
+ txGas: (f = msg.getTxGas()) && proto.ocap.TxGasConfig.toObject(includeInstance, f),
8626
+ txStake: (f = msg.getTxStake()) && proto.ocap.TxStakeConfig.toObject(includeInstance, f)
8121
8627
  };
8122
8628
 
8123
8629
  if (includeInstance) {
@@ -8181,6 +8687,11 @@ proto.ocap.TransactionConfig.deserializeBinaryFromReader = function(msg, reader)
8181
8687
  reader.readMessage(value,proto.ocap.TxGasConfig.deserializeBinaryFromReader);
8182
8688
  msg.setTxGas(value);
8183
8689
  break;
8690
+ case 7:
8691
+ var value = new proto.ocap.TxStakeConfig;
8692
+ reader.readMessage(value,proto.ocap.TxStakeConfig.deserializeBinaryFromReader);
8693
+ msg.setTxStake(value);
8694
+ break;
8184
8695
  default:
8185
8696
  reader.skipField();
8186
8697
  break;
@@ -8255,6 +8766,14 @@ proto.ocap.TransactionConfig.serializeBinaryToWriter = function(message, writer)
8255
8766
  proto.ocap.TxGasConfig.serializeBinaryToWriter
8256
8767
  );
8257
8768
  }
8769
+ f = message.getTxStake();
8770
+ if (f != null) {
8771
+ writer.writeMessage(
8772
+ 7,
8773
+ f,
8774
+ proto.ocap.TxStakeConfig.serializeBinaryToWriter
8775
+ );
8776
+ }
8258
8777
  };
8259
8778
 
8260
8779
 
@@ -8424,6 +8943,43 @@ proto.ocap.TransactionConfig.prototype.hasTxGas = function() {
8424
8943
  };
8425
8944
 
8426
8945
 
8946
+ /**
8947
+ * optional TxStakeConfig tx_stake = 7;
8948
+ * @return {?proto.ocap.TxStakeConfig}
8949
+ */
8950
+ proto.ocap.TransactionConfig.prototype.getTxStake = function() {
8951
+ return /** @type{?proto.ocap.TxStakeConfig} */ (
8952
+ jspb.Message.getWrapperField(this, proto.ocap.TxStakeConfig, 7));
8953
+ };
8954
+
8955
+
8956
+ /**
8957
+ * @param {?proto.ocap.TxStakeConfig|undefined} value
8958
+ * @return {!proto.ocap.TransactionConfig} returns this
8959
+ */
8960
+ proto.ocap.TransactionConfig.prototype.setTxStake = function(value) {
8961
+ return jspb.Message.setWrapperField(this, 7, value);
8962
+ };
8963
+
8964
+
8965
+ /**
8966
+ * Clears the message field making it undefined.
8967
+ * @return {!proto.ocap.TransactionConfig} returns this
8968
+ */
8969
+ proto.ocap.TransactionConfig.prototype.clearTxStake = function() {
8970
+ return this.setTxStake(undefined);
8971
+ };
8972
+
8973
+
8974
+ /**
8975
+ * Returns whether this field is set.
8976
+ * @return {boolean}
8977
+ */
8978
+ proto.ocap.TransactionConfig.prototype.hasTxStake = function() {
8979
+ return jspb.Message.getField(this, 7) != null;
8980
+ };
8981
+
8982
+
8427
8983
 
8428
8984
  /**
8429
8985
  * List of repeated fields within this message type.