@ocap/proto 1.13.65 → 1.13.69

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/tx_pb.js CHANGED
@@ -52,7 +52,6 @@ goog.exportSymbol('proto.ocap.TransferTx', null, global);
52
52
  goog.exportSymbol('proto.ocap.TransferV2Tx', null, global);
53
53
  goog.exportSymbol('proto.ocap.TransferV3Tx', null, global);
54
54
  goog.exportSymbol('proto.ocap.UpdateAssetTx', null, global);
55
- goog.exportSymbol('proto.ocap.UpdateConsensusParamsTx', null, global);
56
55
  goog.exportSymbol('proto.ocap.UpdateRollupTx', null, global);
57
56
  goog.exportSymbol('proto.ocap.UpgradeNodeTx', null, global);
58
57
  goog.exportSymbol('proto.ocap.WithdrawTokenV2Tx', null, global);
@@ -161,27 +160,6 @@ if (goog.DEBUG && !COMPILED) {
161
160
  */
162
161
  proto.ocap.RevokeDelegateTx.displayName = 'proto.ocap.RevokeDelegateTx';
163
162
  }
164
- /**
165
- * Generated by JsPbCodeGenerator.
166
- * @param {Array=} opt_data Optional initial data array, typically from a
167
- * server response, or constructed directly in Javascript. The array is used
168
- * in place and becomes part of the constructed object. It is not cloned.
169
- * If no data is provided, the constructed object will be empty, but still
170
- * valid.
171
- * @extends {jspb.Message}
172
- * @constructor
173
- */
174
- proto.ocap.UpdateConsensusParamsTx = function(opt_data) {
175
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
176
- };
177
- goog.inherits(proto.ocap.UpdateConsensusParamsTx, jspb.Message);
178
- if (goog.DEBUG && !COMPILED) {
179
- /**
180
- * @public
181
- * @override
182
- */
183
- proto.ocap.UpdateConsensusParamsTx.displayName = 'proto.ocap.UpdateConsensusParamsTx';
184
- }
185
163
  /**
186
164
  * Generated by JsPbCodeGenerator.
187
165
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -1994,310 +1972,6 @@ proto.ocap.RevokeDelegateTx.prototype.hasData = function() {
1994
1972
 
1995
1973
 
1996
1974
 
1997
- if (jspb.Message.GENERATE_TO_OBJECT) {
1998
- /**
1999
- * Creates an object representation of this proto.
2000
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2001
- * Optional fields that are not set will be set to undefined.
2002
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2003
- * For the list of reserved names please see:
2004
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2005
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2006
- * JSPB instance for transitional soy proto support:
2007
- * http://goto/soy-param-migration
2008
- * @return {!Object}
2009
- */
2010
- proto.ocap.UpdateConsensusParamsTx.prototype.toObject = function(opt_includeInstance) {
2011
- return proto.ocap.UpdateConsensusParamsTx.toObject(opt_includeInstance, this);
2012
- };
2013
-
2014
-
2015
- /**
2016
- * Static version of the {@see toObject} method.
2017
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2018
- * the JSPB instance for transitional soy proto support:
2019
- * http://goto/soy-param-migration
2020
- * @param {!proto.ocap.UpdateConsensusParamsTx} msg The msg instance to transform.
2021
- * @return {!Object}
2022
- * @suppress {unusedLocalVariables} f is only used for nested messages
2023
- */
2024
- proto.ocap.UpdateConsensusParamsTx.toObject = function(includeInstance, msg) {
2025
- var f, obj = {
2026
- delegateConfig: (f = msg.getDelegateConfig()) && type_pb.DelegateConfig.toObject(includeInstance, f),
2027
- declareConfig: (f = msg.getDeclareConfig()) && type_pb.DeclareConfig.toObject(includeInstance, f),
2028
- tokenSwapConfig: (f = msg.getTokenSwapConfig()) && type_pb.TokenSwapConfig.toObject(includeInstance, f),
2029
- moderatorConfig: (f = msg.getModeratorConfig()) && type_pb.AccountConfig.toObject(includeInstance, f)
2030
- };
2031
-
2032
- if (includeInstance) {
2033
- obj.$jspbMessageInstance = msg;
2034
- }
2035
- return obj;
2036
- };
2037
- }
2038
-
2039
-
2040
- /**
2041
- * Deserializes binary data (in protobuf wire format).
2042
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2043
- * @return {!proto.ocap.UpdateConsensusParamsTx}
2044
- */
2045
- proto.ocap.UpdateConsensusParamsTx.deserializeBinary = function(bytes) {
2046
- var reader = new jspb.BinaryReader(bytes);
2047
- var msg = new proto.ocap.UpdateConsensusParamsTx;
2048
- return proto.ocap.UpdateConsensusParamsTx.deserializeBinaryFromReader(msg, reader);
2049
- };
2050
-
2051
-
2052
- /**
2053
- * Deserializes binary data (in protobuf wire format) from the
2054
- * given reader into the given message object.
2055
- * @param {!proto.ocap.UpdateConsensusParamsTx} msg The message object to deserialize into.
2056
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2057
- * @return {!proto.ocap.UpdateConsensusParamsTx}
2058
- */
2059
- proto.ocap.UpdateConsensusParamsTx.deserializeBinaryFromReader = function(msg, reader) {
2060
- while (reader.nextField()) {
2061
- if (reader.isEndGroup()) {
2062
- break;
2063
- }
2064
- var field = reader.getFieldNumber();
2065
- switch (field) {
2066
- case 1:
2067
- var value = new type_pb.DelegateConfig;
2068
- reader.readMessage(value,type_pb.DelegateConfig.deserializeBinaryFromReader);
2069
- msg.setDelegateConfig(value);
2070
- break;
2071
- case 2:
2072
- var value = new type_pb.DeclareConfig;
2073
- reader.readMessage(value,type_pb.DeclareConfig.deserializeBinaryFromReader);
2074
- msg.setDeclareConfig(value);
2075
- break;
2076
- case 3:
2077
- var value = new type_pb.TokenSwapConfig;
2078
- reader.readMessage(value,type_pb.TokenSwapConfig.deserializeBinaryFromReader);
2079
- msg.setTokenSwapConfig(value);
2080
- break;
2081
- case 4:
2082
- var value = new type_pb.AccountConfig;
2083
- reader.readMessage(value,type_pb.AccountConfig.deserializeBinaryFromReader);
2084
- msg.setModeratorConfig(value);
2085
- break;
2086
- default:
2087
- reader.skipField();
2088
- break;
2089
- }
2090
- }
2091
- return msg;
2092
- };
2093
-
2094
-
2095
- /**
2096
- * Serializes the message to binary data (in protobuf wire format).
2097
- * @return {!Uint8Array}
2098
- */
2099
- proto.ocap.UpdateConsensusParamsTx.prototype.serializeBinary = function() {
2100
- var writer = new jspb.BinaryWriter();
2101
- proto.ocap.UpdateConsensusParamsTx.serializeBinaryToWriter(this, writer);
2102
- return writer.getResultBuffer();
2103
- };
2104
-
2105
-
2106
- /**
2107
- * Serializes the given message to binary data (in protobuf wire
2108
- * format), writing to the given BinaryWriter.
2109
- * @param {!proto.ocap.UpdateConsensusParamsTx} message
2110
- * @param {!jspb.BinaryWriter} writer
2111
- * @suppress {unusedLocalVariables} f is only used for nested messages
2112
- */
2113
- proto.ocap.UpdateConsensusParamsTx.serializeBinaryToWriter = function(message, writer) {
2114
- var f = undefined;
2115
- f = message.getDelegateConfig();
2116
- if (f != null) {
2117
- writer.writeMessage(
2118
- 1,
2119
- f,
2120
- type_pb.DelegateConfig.serializeBinaryToWriter
2121
- );
2122
- }
2123
- f = message.getDeclareConfig();
2124
- if (f != null) {
2125
- writer.writeMessage(
2126
- 2,
2127
- f,
2128
- type_pb.DeclareConfig.serializeBinaryToWriter
2129
- );
2130
- }
2131
- f = message.getTokenSwapConfig();
2132
- if (f != null) {
2133
- writer.writeMessage(
2134
- 3,
2135
- f,
2136
- type_pb.TokenSwapConfig.serializeBinaryToWriter
2137
- );
2138
- }
2139
- f = message.getModeratorConfig();
2140
- if (f != null) {
2141
- writer.writeMessage(
2142
- 4,
2143
- f,
2144
- type_pb.AccountConfig.serializeBinaryToWriter
2145
- );
2146
- }
2147
- };
2148
-
2149
-
2150
- /**
2151
- * optional DelegateConfig delegate_config = 1;
2152
- * @return {?proto.ocap.DelegateConfig}
2153
- */
2154
- proto.ocap.UpdateConsensusParamsTx.prototype.getDelegateConfig = function() {
2155
- return /** @type{?proto.ocap.DelegateConfig} */ (
2156
- jspb.Message.getWrapperField(this, type_pb.DelegateConfig, 1));
2157
- };
2158
-
2159
-
2160
- /**
2161
- * @param {?proto.ocap.DelegateConfig|undefined} value
2162
- * @return {!proto.ocap.UpdateConsensusParamsTx} returns this
2163
- */
2164
- proto.ocap.UpdateConsensusParamsTx.prototype.setDelegateConfig = function(value) {
2165
- return jspb.Message.setWrapperField(this, 1, value);
2166
- };
2167
-
2168
-
2169
- /**
2170
- * Clears the message field making it undefined.
2171
- * @return {!proto.ocap.UpdateConsensusParamsTx} returns this
2172
- */
2173
- proto.ocap.UpdateConsensusParamsTx.prototype.clearDelegateConfig = function() {
2174
- return this.setDelegateConfig(undefined);
2175
- };
2176
-
2177
-
2178
- /**
2179
- * Returns whether this field is set.
2180
- * @return {boolean}
2181
- */
2182
- proto.ocap.UpdateConsensusParamsTx.prototype.hasDelegateConfig = function() {
2183
- return jspb.Message.getField(this, 1) != null;
2184
- };
2185
-
2186
-
2187
- /**
2188
- * optional DeclareConfig declare_config = 2;
2189
- * @return {?proto.ocap.DeclareConfig}
2190
- */
2191
- proto.ocap.UpdateConsensusParamsTx.prototype.getDeclareConfig = function() {
2192
- return /** @type{?proto.ocap.DeclareConfig} */ (
2193
- jspb.Message.getWrapperField(this, type_pb.DeclareConfig, 2));
2194
- };
2195
-
2196
-
2197
- /**
2198
- * @param {?proto.ocap.DeclareConfig|undefined} value
2199
- * @return {!proto.ocap.UpdateConsensusParamsTx} returns this
2200
- */
2201
- proto.ocap.UpdateConsensusParamsTx.prototype.setDeclareConfig = function(value) {
2202
- return jspb.Message.setWrapperField(this, 2, value);
2203
- };
2204
-
2205
-
2206
- /**
2207
- * Clears the message field making it undefined.
2208
- * @return {!proto.ocap.UpdateConsensusParamsTx} returns this
2209
- */
2210
- proto.ocap.UpdateConsensusParamsTx.prototype.clearDeclareConfig = function() {
2211
- return this.setDeclareConfig(undefined);
2212
- };
2213
-
2214
-
2215
- /**
2216
- * Returns whether this field is set.
2217
- * @return {boolean}
2218
- */
2219
- proto.ocap.UpdateConsensusParamsTx.prototype.hasDeclareConfig = function() {
2220
- return jspb.Message.getField(this, 2) != null;
2221
- };
2222
-
2223
-
2224
- /**
2225
- * optional TokenSwapConfig token_swap_config = 3;
2226
- * @return {?proto.ocap.TokenSwapConfig}
2227
- */
2228
- proto.ocap.UpdateConsensusParamsTx.prototype.getTokenSwapConfig = function() {
2229
- return /** @type{?proto.ocap.TokenSwapConfig} */ (
2230
- jspb.Message.getWrapperField(this, type_pb.TokenSwapConfig, 3));
2231
- };
2232
-
2233
-
2234
- /**
2235
- * @param {?proto.ocap.TokenSwapConfig|undefined} value
2236
- * @return {!proto.ocap.UpdateConsensusParamsTx} returns this
2237
- */
2238
- proto.ocap.UpdateConsensusParamsTx.prototype.setTokenSwapConfig = function(value) {
2239
- return jspb.Message.setWrapperField(this, 3, value);
2240
- };
2241
-
2242
-
2243
- /**
2244
- * Clears the message field making it undefined.
2245
- * @return {!proto.ocap.UpdateConsensusParamsTx} returns this
2246
- */
2247
- proto.ocap.UpdateConsensusParamsTx.prototype.clearTokenSwapConfig = function() {
2248
- return this.setTokenSwapConfig(undefined);
2249
- };
2250
-
2251
-
2252
- /**
2253
- * Returns whether this field is set.
2254
- * @return {boolean}
2255
- */
2256
- proto.ocap.UpdateConsensusParamsTx.prototype.hasTokenSwapConfig = function() {
2257
- return jspb.Message.getField(this, 3) != null;
2258
- };
2259
-
2260
-
2261
- /**
2262
- * optional AccountConfig moderator_config = 4;
2263
- * @return {?proto.ocap.AccountConfig}
2264
- */
2265
- proto.ocap.UpdateConsensusParamsTx.prototype.getModeratorConfig = function() {
2266
- return /** @type{?proto.ocap.AccountConfig} */ (
2267
- jspb.Message.getWrapperField(this, type_pb.AccountConfig, 4));
2268
- };
2269
-
2270
-
2271
- /**
2272
- * @param {?proto.ocap.AccountConfig|undefined} value
2273
- * @return {!proto.ocap.UpdateConsensusParamsTx} returns this
2274
- */
2275
- proto.ocap.UpdateConsensusParamsTx.prototype.setModeratorConfig = function(value) {
2276
- return jspb.Message.setWrapperField(this, 4, value);
2277
- };
2278
-
2279
-
2280
- /**
2281
- * Clears the message field making it undefined.
2282
- * @return {!proto.ocap.UpdateConsensusParamsTx} returns this
2283
- */
2284
- proto.ocap.UpdateConsensusParamsTx.prototype.clearModeratorConfig = function() {
2285
- return this.setModeratorConfig(undefined);
2286
- };
2287
-
2288
-
2289
- /**
2290
- * Returns whether this field is set.
2291
- * @return {boolean}
2292
- */
2293
- proto.ocap.UpdateConsensusParamsTx.prototype.hasModeratorConfig = function() {
2294
- return jspb.Message.getField(this, 4) != null;
2295
- };
2296
-
2297
-
2298
-
2299
-
2300
-
2301
1975
  if (jspb.Message.GENERATE_TO_OBJECT) {
2302
1976
  /**
2303
1977
  * Creates an object representation of this proto.