@ocap/proto 1.13.64 → 1.13.68
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 -119
- package/lib/gen/state_pb.js +52 -384
- package/lib/gen/tx_pb.js +0 -326
- package/lib/gen/type_pb.js +146 -765
- package/lib/index.d.ts +3 -4
- package/package.json +2 -2
package/lib/gen/state_pb.js
CHANGED
|
@@ -26,7 +26,6 @@ goog.object.extend(proto, tx_pb);
|
|
|
26
26
|
goog.exportSymbol('proto.ocap.AccountState', null, global);
|
|
27
27
|
goog.exportSymbol('proto.ocap.AssetFactoryState', null, global);
|
|
28
28
|
goog.exportSymbol('proto.ocap.AssetState', null, global);
|
|
29
|
-
goog.exportSymbol('proto.ocap.CoreProtocol', null, global);
|
|
30
29
|
goog.exportSymbol('proto.ocap.DelegateOpState', null, global);
|
|
31
30
|
goog.exportSymbol('proto.ocap.DelegateState', null, global);
|
|
32
31
|
goog.exportSymbol('proto.ocap.EvidenceState', null, global);
|
|
@@ -81,27 +80,6 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
81
80
|
*/
|
|
82
81
|
proto.ocap.AssetState.displayName = 'proto.ocap.AssetState';
|
|
83
82
|
}
|
|
84
|
-
/**
|
|
85
|
-
* Generated by JsPbCodeGenerator.
|
|
86
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
87
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
88
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
89
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
90
|
-
* valid.
|
|
91
|
-
* @extends {jspb.Message}
|
|
92
|
-
* @constructor
|
|
93
|
-
*/
|
|
94
|
-
proto.ocap.CoreProtocol = function(opt_data) {
|
|
95
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
96
|
-
};
|
|
97
|
-
goog.inherits(proto.ocap.CoreProtocol, jspb.Message);
|
|
98
|
-
if (goog.DEBUG && !COMPILED) {
|
|
99
|
-
/**
|
|
100
|
-
* @public
|
|
101
|
-
* @override
|
|
102
|
-
*/
|
|
103
|
-
proto.ocap.CoreProtocol.displayName = 'proto.ocap.CoreProtocol';
|
|
104
|
-
}
|
|
105
83
|
/**
|
|
106
84
|
* Generated by JsPbCodeGenerator.
|
|
107
85
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -1871,172 +1849,12 @@ proto.ocap.AssetState.prototype.hasData = function() {
|
|
|
1871
1849
|
|
|
1872
1850
|
|
|
1873
1851
|
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1877
|
-
/**
|
|
1878
|
-
* Creates an object representation of this proto.
|
|
1879
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1880
|
-
* Optional fields that are not set will be set to undefined.
|
|
1881
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1882
|
-
* For the list of reserved names please see:
|
|
1883
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1884
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1885
|
-
* JSPB instance for transitional soy proto support:
|
|
1886
|
-
* http://goto/soy-param-migration
|
|
1887
|
-
* @return {!Object}
|
|
1888
|
-
*/
|
|
1889
|
-
proto.ocap.CoreProtocol.prototype.toObject = function(opt_includeInstance) {
|
|
1890
|
-
return proto.ocap.CoreProtocol.toObject(opt_includeInstance, this);
|
|
1891
|
-
};
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
/**
|
|
1895
|
-
* Static version of the {@see toObject} method.
|
|
1896
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1897
|
-
* the JSPB instance for transitional soy proto support:
|
|
1898
|
-
* http://goto/soy-param-migration
|
|
1899
|
-
* @param {!proto.ocap.CoreProtocol} msg The msg instance to transform.
|
|
1900
|
-
* @return {!Object}
|
|
1901
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1902
|
-
*/
|
|
1903
|
-
proto.ocap.CoreProtocol.toObject = function(includeInstance, msg) {
|
|
1904
|
-
var f, obj = {
|
|
1905
|
-
name: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
1906
|
-
address: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
1907
|
-
};
|
|
1908
|
-
|
|
1909
|
-
if (includeInstance) {
|
|
1910
|
-
obj.$jspbMessageInstance = msg;
|
|
1911
|
-
}
|
|
1912
|
-
return obj;
|
|
1913
|
-
};
|
|
1914
|
-
}
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
/**
|
|
1918
|
-
* Deserializes binary data (in protobuf wire format).
|
|
1919
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1920
|
-
* @return {!proto.ocap.CoreProtocol}
|
|
1921
|
-
*/
|
|
1922
|
-
proto.ocap.CoreProtocol.deserializeBinary = function(bytes) {
|
|
1923
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
1924
|
-
var msg = new proto.ocap.CoreProtocol;
|
|
1925
|
-
return proto.ocap.CoreProtocol.deserializeBinaryFromReader(msg, reader);
|
|
1926
|
-
};
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
/**
|
|
1930
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
1931
|
-
* given reader into the given message object.
|
|
1932
|
-
* @param {!proto.ocap.CoreProtocol} msg The message object to deserialize into.
|
|
1933
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1934
|
-
* @return {!proto.ocap.CoreProtocol}
|
|
1935
|
-
*/
|
|
1936
|
-
proto.ocap.CoreProtocol.deserializeBinaryFromReader = function(msg, reader) {
|
|
1937
|
-
while (reader.nextField()) {
|
|
1938
|
-
if (reader.isEndGroup()) {
|
|
1939
|
-
break;
|
|
1940
|
-
}
|
|
1941
|
-
var field = reader.getFieldNumber();
|
|
1942
|
-
switch (field) {
|
|
1943
|
-
case 1:
|
|
1944
|
-
var value = /** @type {string} */ (reader.readString());
|
|
1945
|
-
msg.setName(value);
|
|
1946
|
-
break;
|
|
1947
|
-
case 2:
|
|
1948
|
-
var value = /** @type {string} */ (reader.readString());
|
|
1949
|
-
msg.setAddress(value);
|
|
1950
|
-
break;
|
|
1951
|
-
default:
|
|
1952
|
-
reader.skipField();
|
|
1953
|
-
break;
|
|
1954
|
-
}
|
|
1955
|
-
}
|
|
1956
|
-
return msg;
|
|
1957
|
-
};
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
/**
|
|
1961
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
1962
|
-
* @return {!Uint8Array}
|
|
1963
|
-
*/
|
|
1964
|
-
proto.ocap.CoreProtocol.prototype.serializeBinary = function() {
|
|
1965
|
-
var writer = new jspb.BinaryWriter();
|
|
1966
|
-
proto.ocap.CoreProtocol.serializeBinaryToWriter(this, writer);
|
|
1967
|
-
return writer.getResultBuffer();
|
|
1968
|
-
};
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
/**
|
|
1972
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
1973
|
-
* format), writing to the given BinaryWriter.
|
|
1974
|
-
* @param {!proto.ocap.CoreProtocol} message
|
|
1975
|
-
* @param {!jspb.BinaryWriter} writer
|
|
1976
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1977
|
-
*/
|
|
1978
|
-
proto.ocap.CoreProtocol.serializeBinaryToWriter = function(message, writer) {
|
|
1979
|
-
var f = undefined;
|
|
1980
|
-
f = message.getName();
|
|
1981
|
-
if (f.length > 0) {
|
|
1982
|
-
writer.writeString(
|
|
1983
|
-
1,
|
|
1984
|
-
f
|
|
1985
|
-
);
|
|
1986
|
-
}
|
|
1987
|
-
f = message.getAddress();
|
|
1988
|
-
if (f.length > 0) {
|
|
1989
|
-
writer.writeString(
|
|
1990
|
-
2,
|
|
1991
|
-
f
|
|
1992
|
-
);
|
|
1993
|
-
}
|
|
1994
|
-
};
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
/**
|
|
1998
|
-
* optional string name = 1;
|
|
1999
|
-
* @return {string}
|
|
2000
|
-
*/
|
|
2001
|
-
proto.ocap.CoreProtocol.prototype.getName = function() {
|
|
2002
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
2003
|
-
};
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
/**
|
|
2007
|
-
* @param {string} value
|
|
2008
|
-
* @return {!proto.ocap.CoreProtocol} returns this
|
|
2009
|
-
*/
|
|
2010
|
-
proto.ocap.CoreProtocol.prototype.setName = function(value) {
|
|
2011
|
-
return jspb.Message.setProto3StringField(this, 1, value);
|
|
2012
|
-
};
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
/**
|
|
2016
|
-
* optional string address = 2;
|
|
2017
|
-
* @return {string}
|
|
2018
|
-
*/
|
|
2019
|
-
proto.ocap.CoreProtocol.prototype.getAddress = function() {
|
|
2020
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
2021
|
-
};
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
/**
|
|
2025
|
-
* @param {string} value
|
|
2026
|
-
* @return {!proto.ocap.CoreProtocol} returns this
|
|
2027
|
-
*/
|
|
2028
|
-
proto.ocap.CoreProtocol.prototype.setAddress = function(value) {
|
|
2029
|
-
return jspb.Message.setProto3StringField(this, 2, value);
|
|
2030
|
-
};
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
1852
|
/**
|
|
2035
1853
|
* List of repeated fields within this message type.
|
|
2036
1854
|
* @private {!Array<number>}
|
|
2037
1855
|
* @const
|
|
2038
1856
|
*/
|
|
2039
|
-
proto.ocap.ForgeState.repeatedFields_ = [
|
|
1857
|
+
proto.ocap.ForgeState.repeatedFields_ = [8];
|
|
2040
1858
|
|
|
2041
1859
|
|
|
2042
1860
|
|
|
@@ -2072,16 +1890,12 @@ proto.ocap.ForgeState.toObject = function(includeInstance, msg) {
|
|
|
2072
1890
|
address: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
2073
1891
|
consensus: (f = msg.getConsensus()) && type_pb.ConsensusParams.toObject(includeInstance, f),
|
|
2074
1892
|
tasksMap: (f = msg.getTasksMap()) ? f.toObject(includeInstance, proto.ocap.UpgradeTasks.toObject) : [],
|
|
2075
|
-
|
|
2076
|
-
version: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
1893
|
+
version: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
2077
1894
|
token: (f = msg.getToken()) && type_pb.ForgeToken.toObject(includeInstance, f),
|
|
2078
1895
|
txConfig: (f = msg.getTxConfig()) && type_pb.TransactionConfig.toObject(includeInstance, f),
|
|
2079
|
-
protocolsList: jspb.Message.toObjectList(msg.getProtocolsList(),
|
|
2080
|
-
proto.ocap.CoreProtocol.toObject, includeInstance),
|
|
2081
|
-
gasMap: (f = msg.getGasMap()) ? f.toObject(includeInstance, undefined) : [],
|
|
2082
1896
|
upgradeInfo: (f = msg.getUpgradeInfo()) && type_pb.UpgradeInfo.toObject(includeInstance, f),
|
|
2083
|
-
|
|
2084
|
-
|
|
1897
|
+
accountConfigList: jspb.Message.toObjectList(msg.getAccountConfigList(),
|
|
1898
|
+
type_pb.AccountConfig.toObject, includeInstance),
|
|
2085
1899
|
data: (f = msg.getData()) && google_protobuf_any_pb.Any.toObject(includeInstance, f)
|
|
2086
1900
|
};
|
|
2087
1901
|
|
|
@@ -2135,51 +1949,28 @@ proto.ocap.ForgeState.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
2135
1949
|
});
|
|
2136
1950
|
break;
|
|
2137
1951
|
case 4:
|
|
2138
|
-
var value = msg.getStakeSummaryMap();
|
|
2139
|
-
reader.readMessage(value, function(message, reader) {
|
|
2140
|
-
jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readUint32, jspb.BinaryReader.prototype.readMessage, proto.ocap.StakeSummary.deserializeBinaryFromReader, 0, new proto.ocap.StakeSummary());
|
|
2141
|
-
});
|
|
2142
|
-
break;
|
|
2143
|
-
case 5:
|
|
2144
1952
|
var value = /** @type {string} */ (reader.readString());
|
|
2145
1953
|
msg.setVersion(value);
|
|
2146
1954
|
break;
|
|
2147
|
-
case
|
|
1955
|
+
case 5:
|
|
2148
1956
|
var value = new type_pb.ForgeToken;
|
|
2149
1957
|
reader.readMessage(value,type_pb.ForgeToken.deserializeBinaryFromReader);
|
|
2150
1958
|
msg.setToken(value);
|
|
2151
1959
|
break;
|
|
2152
|
-
case
|
|
1960
|
+
case 6:
|
|
2153
1961
|
var value = new type_pb.TransactionConfig;
|
|
2154
1962
|
reader.readMessage(value,type_pb.TransactionConfig.deserializeBinaryFromReader);
|
|
2155
1963
|
msg.setTxConfig(value);
|
|
2156
1964
|
break;
|
|
2157
|
-
case
|
|
2158
|
-
var value = new proto.ocap.CoreProtocol;
|
|
2159
|
-
reader.readMessage(value,proto.ocap.CoreProtocol.deserializeBinaryFromReader);
|
|
2160
|
-
msg.addProtocols(value);
|
|
2161
|
-
break;
|
|
2162
|
-
case 13:
|
|
2163
|
-
var value = msg.getGasMap();
|
|
2164
|
-
reader.readMessage(value, function(message, reader) {
|
|
2165
|
-
jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readUint32, null, "", 0);
|
|
2166
|
-
});
|
|
2167
|
-
break;
|
|
2168
|
-
case 14:
|
|
1965
|
+
case 7:
|
|
2169
1966
|
var value = new type_pb.UpgradeInfo;
|
|
2170
1967
|
reader.readMessage(value,type_pb.UpgradeInfo.deserializeBinaryFromReader);
|
|
2171
1968
|
msg.setUpgradeInfo(value);
|
|
2172
1969
|
break;
|
|
2173
|
-
case
|
|
2174
|
-
var value =
|
|
2175
|
-
reader.readMessage(value,
|
|
2176
|
-
|
|
2177
|
-
});
|
|
2178
|
-
break;
|
|
2179
|
-
case 17:
|
|
2180
|
-
var value = new type_pb.TokenSwapConfig;
|
|
2181
|
-
reader.readMessage(value,type_pb.TokenSwapConfig.deserializeBinaryFromReader);
|
|
2182
|
-
msg.setTokenSwapConfig(value);
|
|
1970
|
+
case 8:
|
|
1971
|
+
var value = new type_pb.AccountConfig;
|
|
1972
|
+
reader.readMessage(value,type_pb.AccountConfig.deserializeBinaryFromReader);
|
|
1973
|
+
msg.addAccountConfig(value);
|
|
2183
1974
|
break;
|
|
2184
1975
|
case 2047:
|
|
2185
1976
|
var value = new google_protobuf_any_pb.Any;
|
|
@@ -2234,21 +2025,17 @@ proto.ocap.ForgeState.serializeBinaryToWriter = function(message, writer) {
|
|
|
2234
2025
|
if (f && f.getLength() > 0) {
|
|
2235
2026
|
f.serializeBinary(3, writer, jspb.BinaryWriter.prototype.writeUint64, jspb.BinaryWriter.prototype.writeMessage, proto.ocap.UpgradeTasks.serializeBinaryToWriter);
|
|
2236
2027
|
}
|
|
2237
|
-
f = message.getStakeSummaryMap(true);
|
|
2238
|
-
if (f && f.getLength() > 0) {
|
|
2239
|
-
f.serializeBinary(4, writer, jspb.BinaryWriter.prototype.writeUint32, jspb.BinaryWriter.prototype.writeMessage, proto.ocap.StakeSummary.serializeBinaryToWriter);
|
|
2240
|
-
}
|
|
2241
2028
|
f = message.getVersion();
|
|
2242
2029
|
if (f.length > 0) {
|
|
2243
2030
|
writer.writeString(
|
|
2244
|
-
|
|
2031
|
+
4,
|
|
2245
2032
|
f
|
|
2246
2033
|
);
|
|
2247
2034
|
}
|
|
2248
2035
|
f = message.getToken();
|
|
2249
2036
|
if (f != null) {
|
|
2250
2037
|
writer.writeMessage(
|
|
2251
|
-
|
|
2038
|
+
5,
|
|
2252
2039
|
f,
|
|
2253
2040
|
type_pb.ForgeToken.serializeBinaryToWriter
|
|
2254
2041
|
);
|
|
@@ -2256,41 +2043,25 @@ proto.ocap.ForgeState.serializeBinaryToWriter = function(message, writer) {
|
|
|
2256
2043
|
f = message.getTxConfig();
|
|
2257
2044
|
if (f != null) {
|
|
2258
2045
|
writer.writeMessage(
|
|
2259
|
-
|
|
2046
|
+
6,
|
|
2260
2047
|
f,
|
|
2261
2048
|
type_pb.TransactionConfig.serializeBinaryToWriter
|
|
2262
2049
|
);
|
|
2263
2050
|
}
|
|
2264
|
-
f = message.getProtocolsList();
|
|
2265
|
-
if (f.length > 0) {
|
|
2266
|
-
writer.writeRepeatedMessage(
|
|
2267
|
-
12,
|
|
2268
|
-
f,
|
|
2269
|
-
proto.ocap.CoreProtocol.serializeBinaryToWriter
|
|
2270
|
-
);
|
|
2271
|
-
}
|
|
2272
|
-
f = message.getGasMap(true);
|
|
2273
|
-
if (f && f.getLength() > 0) {
|
|
2274
|
-
f.serializeBinary(13, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeUint32);
|
|
2275
|
-
}
|
|
2276
2051
|
f = message.getUpgradeInfo();
|
|
2277
2052
|
if (f != null) {
|
|
2278
2053
|
writer.writeMessage(
|
|
2279
|
-
|
|
2054
|
+
7,
|
|
2280
2055
|
f,
|
|
2281
2056
|
type_pb.UpgradeInfo.serializeBinaryToWriter
|
|
2282
2057
|
);
|
|
2283
2058
|
}
|
|
2284
|
-
f = message.
|
|
2285
|
-
if (f
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
f = message.getTokenSwapConfig();
|
|
2289
|
-
if (f != null) {
|
|
2290
|
-
writer.writeMessage(
|
|
2291
|
-
17,
|
|
2059
|
+
f = message.getAccountConfigList();
|
|
2060
|
+
if (f.length > 0) {
|
|
2061
|
+
writer.writeRepeatedMessage(
|
|
2062
|
+
8,
|
|
2292
2063
|
f,
|
|
2293
|
-
type_pb.
|
|
2064
|
+
type_pb.AccountConfig.serializeBinaryToWriter
|
|
2294
2065
|
);
|
|
2295
2066
|
}
|
|
2296
2067
|
f = message.getData();
|
|
@@ -2382,33 +2153,11 @@ proto.ocap.ForgeState.prototype.clearTasksMap = function() {
|
|
|
2382
2153
|
|
|
2383
2154
|
|
|
2384
2155
|
/**
|
|
2385
|
-
*
|
|
2386
|
-
* @param {boolean=} opt_noLazyCreate Do not create the map if
|
|
2387
|
-
* empty, instead returning `undefined`
|
|
2388
|
-
* @return {!jspb.Map<number,!proto.ocap.StakeSummary>}
|
|
2389
|
-
*/
|
|
2390
|
-
proto.ocap.ForgeState.prototype.getStakeSummaryMap = function(opt_noLazyCreate) {
|
|
2391
|
-
return /** @type {!jspb.Map<number,!proto.ocap.StakeSummary>} */ (
|
|
2392
|
-
jspb.Message.getMapField(this, 4, opt_noLazyCreate,
|
|
2393
|
-
proto.ocap.StakeSummary));
|
|
2394
|
-
};
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
/**
|
|
2398
|
-
* Clears values from the map. The map will be non-null.
|
|
2399
|
-
* @return {!proto.ocap.ForgeState} returns this
|
|
2400
|
-
*/
|
|
2401
|
-
proto.ocap.ForgeState.prototype.clearStakeSummaryMap = function() {
|
|
2402
|
-
this.getStakeSummaryMap().clear();
|
|
2403
|
-
return this;};
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
/**
|
|
2407
|
-
* optional string version = 5;
|
|
2156
|
+
* optional string version = 4;
|
|
2408
2157
|
* @return {string}
|
|
2409
2158
|
*/
|
|
2410
2159
|
proto.ocap.ForgeState.prototype.getVersion = function() {
|
|
2411
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
|
2160
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
2412
2161
|
};
|
|
2413
2162
|
|
|
2414
2163
|
|
|
@@ -2417,17 +2166,17 @@ proto.ocap.ForgeState.prototype.getVersion = function() {
|
|
|
2417
2166
|
* @return {!proto.ocap.ForgeState} returns this
|
|
2418
2167
|
*/
|
|
2419
2168
|
proto.ocap.ForgeState.prototype.setVersion = function(value) {
|
|
2420
|
-
return jspb.Message.setProto3StringField(this,
|
|
2169
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
2421
2170
|
};
|
|
2422
2171
|
|
|
2423
2172
|
|
|
2424
2173
|
/**
|
|
2425
|
-
* optional ForgeToken token =
|
|
2174
|
+
* optional ForgeToken token = 5;
|
|
2426
2175
|
* @return {?proto.ocap.ForgeToken}
|
|
2427
2176
|
*/
|
|
2428
2177
|
proto.ocap.ForgeState.prototype.getToken = function() {
|
|
2429
2178
|
return /** @type{?proto.ocap.ForgeToken} */ (
|
|
2430
|
-
jspb.Message.getWrapperField(this, type_pb.ForgeToken,
|
|
2179
|
+
jspb.Message.getWrapperField(this, type_pb.ForgeToken, 5));
|
|
2431
2180
|
};
|
|
2432
2181
|
|
|
2433
2182
|
|
|
@@ -2436,7 +2185,7 @@ proto.ocap.ForgeState.prototype.getToken = function() {
|
|
|
2436
2185
|
* @return {!proto.ocap.ForgeState} returns this
|
|
2437
2186
|
*/
|
|
2438
2187
|
proto.ocap.ForgeState.prototype.setToken = function(value) {
|
|
2439
|
-
return jspb.Message.setWrapperField(this,
|
|
2188
|
+
return jspb.Message.setWrapperField(this, 5, value);
|
|
2440
2189
|
};
|
|
2441
2190
|
|
|
2442
2191
|
|
|
@@ -2454,17 +2203,17 @@ proto.ocap.ForgeState.prototype.clearToken = function() {
|
|
|
2454
2203
|
* @return {boolean}
|
|
2455
2204
|
*/
|
|
2456
2205
|
proto.ocap.ForgeState.prototype.hasToken = function() {
|
|
2457
|
-
return jspb.Message.getField(this,
|
|
2206
|
+
return jspb.Message.getField(this, 5) != null;
|
|
2458
2207
|
};
|
|
2459
2208
|
|
|
2460
2209
|
|
|
2461
2210
|
/**
|
|
2462
|
-
* optional TransactionConfig tx_config =
|
|
2211
|
+
* optional TransactionConfig tx_config = 6;
|
|
2463
2212
|
* @return {?proto.ocap.TransactionConfig}
|
|
2464
2213
|
*/
|
|
2465
2214
|
proto.ocap.ForgeState.prototype.getTxConfig = function() {
|
|
2466
2215
|
return /** @type{?proto.ocap.TransactionConfig} */ (
|
|
2467
|
-
jspb.Message.getWrapperField(this, type_pb.TransactionConfig,
|
|
2216
|
+
jspb.Message.getWrapperField(this, type_pb.TransactionConfig, 6));
|
|
2468
2217
|
};
|
|
2469
2218
|
|
|
2470
2219
|
|
|
@@ -2473,7 +2222,7 @@ proto.ocap.ForgeState.prototype.getTxConfig = function() {
|
|
|
2473
2222
|
* @return {!proto.ocap.ForgeState} returns this
|
|
2474
2223
|
*/
|
|
2475
2224
|
proto.ocap.ForgeState.prototype.setTxConfig = function(value) {
|
|
2476
|
-
return jspb.Message.setWrapperField(this,
|
|
2225
|
+
return jspb.Message.setWrapperField(this, 6, value);
|
|
2477
2226
|
};
|
|
2478
2227
|
|
|
2479
2228
|
|
|
@@ -2491,77 +2240,17 @@ proto.ocap.ForgeState.prototype.clearTxConfig = function() {
|
|
|
2491
2240
|
* @return {boolean}
|
|
2492
2241
|
*/
|
|
2493
2242
|
proto.ocap.ForgeState.prototype.hasTxConfig = function() {
|
|
2494
|
-
return jspb.Message.getField(this,
|
|
2495
|
-
};
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
/**
|
|
2499
|
-
* repeated CoreProtocol protocols = 12;
|
|
2500
|
-
* @return {!Array<!proto.ocap.CoreProtocol>}
|
|
2501
|
-
*/
|
|
2502
|
-
proto.ocap.ForgeState.prototype.getProtocolsList = function() {
|
|
2503
|
-
return /** @type{!Array<!proto.ocap.CoreProtocol>} */ (
|
|
2504
|
-
jspb.Message.getRepeatedWrapperField(this, proto.ocap.CoreProtocol, 12));
|
|
2505
|
-
};
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
/**
|
|
2509
|
-
* @param {!Array<!proto.ocap.CoreProtocol>} value
|
|
2510
|
-
* @return {!proto.ocap.ForgeState} returns this
|
|
2511
|
-
*/
|
|
2512
|
-
proto.ocap.ForgeState.prototype.setProtocolsList = function(value) {
|
|
2513
|
-
return jspb.Message.setRepeatedWrapperField(this, 12, value);
|
|
2514
|
-
};
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
/**
|
|
2518
|
-
* @param {!proto.ocap.CoreProtocol=} opt_value
|
|
2519
|
-
* @param {number=} opt_index
|
|
2520
|
-
* @return {!proto.ocap.CoreProtocol}
|
|
2521
|
-
*/
|
|
2522
|
-
proto.ocap.ForgeState.prototype.addProtocols = function(opt_value, opt_index) {
|
|
2523
|
-
return jspb.Message.addToRepeatedWrapperField(this, 12, opt_value, proto.ocap.CoreProtocol, opt_index);
|
|
2524
|
-
};
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
/**
|
|
2528
|
-
* Clears the list making it empty but non-null.
|
|
2529
|
-
* @return {!proto.ocap.ForgeState} returns this
|
|
2530
|
-
*/
|
|
2531
|
-
proto.ocap.ForgeState.prototype.clearProtocolsList = function() {
|
|
2532
|
-
return this.setProtocolsList([]);
|
|
2533
|
-
};
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
/**
|
|
2537
|
-
* map<string, uint32> gas = 13;
|
|
2538
|
-
* @param {boolean=} opt_noLazyCreate Do not create the map if
|
|
2539
|
-
* empty, instead returning `undefined`
|
|
2540
|
-
* @return {!jspb.Map<string,number>}
|
|
2541
|
-
*/
|
|
2542
|
-
proto.ocap.ForgeState.prototype.getGasMap = function(opt_noLazyCreate) {
|
|
2543
|
-
return /** @type {!jspb.Map<string,number>} */ (
|
|
2544
|
-
jspb.Message.getMapField(this, 13, opt_noLazyCreate,
|
|
2545
|
-
null));
|
|
2243
|
+
return jspb.Message.getField(this, 6) != null;
|
|
2546
2244
|
};
|
|
2547
2245
|
|
|
2548
2246
|
|
|
2549
2247
|
/**
|
|
2550
|
-
*
|
|
2551
|
-
* @return {!proto.ocap.ForgeState} returns this
|
|
2552
|
-
*/
|
|
2553
|
-
proto.ocap.ForgeState.prototype.clearGasMap = function() {
|
|
2554
|
-
this.getGasMap().clear();
|
|
2555
|
-
return this;};
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
/**
|
|
2559
|
-
* optional UpgradeInfo upgrade_info = 14;
|
|
2248
|
+
* optional UpgradeInfo upgrade_info = 7;
|
|
2560
2249
|
* @return {?proto.ocap.UpgradeInfo}
|
|
2561
2250
|
*/
|
|
2562
2251
|
proto.ocap.ForgeState.prototype.getUpgradeInfo = function() {
|
|
2563
2252
|
return /** @type{?proto.ocap.UpgradeInfo} */ (
|
|
2564
|
-
jspb.Message.getWrapperField(this, type_pb.UpgradeInfo,
|
|
2253
|
+
jspb.Message.getWrapperField(this, type_pb.UpgradeInfo, 7));
|
|
2565
2254
|
};
|
|
2566
2255
|
|
|
2567
2256
|
|
|
@@ -2570,7 +2259,7 @@ proto.ocap.ForgeState.prototype.getUpgradeInfo = function() {
|
|
|
2570
2259
|
* @return {!proto.ocap.ForgeState} returns this
|
|
2571
2260
|
*/
|
|
2572
2261
|
proto.ocap.ForgeState.prototype.setUpgradeInfo = function(value) {
|
|
2573
|
-
return jspb.Message.setWrapperField(this,
|
|
2262
|
+
return jspb.Message.setWrapperField(this, 7, value);
|
|
2574
2263
|
};
|
|
2575
2264
|
|
|
2576
2265
|
|
|
@@ -2588,66 +2277,45 @@ proto.ocap.ForgeState.prototype.clearUpgradeInfo = function() {
|
|
|
2588
2277
|
* @return {boolean}
|
|
2589
2278
|
*/
|
|
2590
2279
|
proto.ocap.ForgeState.prototype.hasUpgradeInfo = function() {
|
|
2591
|
-
return jspb.Message.getField(this,
|
|
2592
|
-
};
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
/**
|
|
2596
|
-
* map<string, AccountConfig> account_config = 16;
|
|
2597
|
-
* @param {boolean=} opt_noLazyCreate Do not create the map if
|
|
2598
|
-
* empty, instead returning `undefined`
|
|
2599
|
-
* @return {!jspb.Map<string,!proto.ocap.AccountConfig>}
|
|
2600
|
-
*/
|
|
2601
|
-
proto.ocap.ForgeState.prototype.getAccountConfigMap = function(opt_noLazyCreate) {
|
|
2602
|
-
return /** @type {!jspb.Map<string,!proto.ocap.AccountConfig>} */ (
|
|
2603
|
-
jspb.Message.getMapField(this, 16, opt_noLazyCreate,
|
|
2604
|
-
proto.ocap.AccountConfig));
|
|
2280
|
+
return jspb.Message.getField(this, 7) != null;
|
|
2605
2281
|
};
|
|
2606
2282
|
|
|
2607
2283
|
|
|
2608
2284
|
/**
|
|
2609
|
-
*
|
|
2610
|
-
* @return {!proto.ocap.
|
|
2285
|
+
* repeated AccountConfig account_config = 8;
|
|
2286
|
+
* @return {!Array<!proto.ocap.AccountConfig>}
|
|
2611
2287
|
*/
|
|
2612
|
-
proto.ocap.ForgeState.prototype.
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
/**
|
|
2618
|
-
* optional TokenSwapConfig token_swap_config = 17;
|
|
2619
|
-
* @return {?proto.ocap.TokenSwapConfig}
|
|
2620
|
-
*/
|
|
2621
|
-
proto.ocap.ForgeState.prototype.getTokenSwapConfig = function() {
|
|
2622
|
-
return /** @type{?proto.ocap.TokenSwapConfig} */ (
|
|
2623
|
-
jspb.Message.getWrapperField(this, type_pb.TokenSwapConfig, 17));
|
|
2288
|
+
proto.ocap.ForgeState.prototype.getAccountConfigList = function() {
|
|
2289
|
+
return /** @type{!Array<!proto.ocap.AccountConfig>} */ (
|
|
2290
|
+
jspb.Message.getRepeatedWrapperField(this, type_pb.AccountConfig, 8));
|
|
2624
2291
|
};
|
|
2625
2292
|
|
|
2626
2293
|
|
|
2627
2294
|
/**
|
|
2628
|
-
* @param {
|
|
2295
|
+
* @param {!Array<!proto.ocap.AccountConfig>} value
|
|
2629
2296
|
* @return {!proto.ocap.ForgeState} returns this
|
|
2630
2297
|
*/
|
|
2631
|
-
proto.ocap.ForgeState.prototype.
|
|
2632
|
-
return jspb.Message.
|
|
2298
|
+
proto.ocap.ForgeState.prototype.setAccountConfigList = function(value) {
|
|
2299
|
+
return jspb.Message.setRepeatedWrapperField(this, 8, value);
|
|
2633
2300
|
};
|
|
2634
2301
|
|
|
2635
2302
|
|
|
2636
2303
|
/**
|
|
2637
|
-
*
|
|
2638
|
-
* @
|
|
2304
|
+
* @param {!proto.ocap.AccountConfig=} opt_value
|
|
2305
|
+
* @param {number=} opt_index
|
|
2306
|
+
* @return {!proto.ocap.AccountConfig}
|
|
2639
2307
|
*/
|
|
2640
|
-
proto.ocap.ForgeState.prototype.
|
|
2641
|
-
return this.
|
|
2308
|
+
proto.ocap.ForgeState.prototype.addAccountConfig = function(opt_value, opt_index) {
|
|
2309
|
+
return jspb.Message.addToRepeatedWrapperField(this, 8, opt_value, proto.ocap.AccountConfig, opt_index);
|
|
2642
2310
|
};
|
|
2643
2311
|
|
|
2644
2312
|
|
|
2645
2313
|
/**
|
|
2646
|
-
*
|
|
2647
|
-
* @return {
|
|
2314
|
+
* Clears the list making it empty but non-null.
|
|
2315
|
+
* @return {!proto.ocap.ForgeState} returns this
|
|
2648
2316
|
*/
|
|
2649
|
-
proto.ocap.ForgeState.prototype.
|
|
2650
|
-
return
|
|
2317
|
+
proto.ocap.ForgeState.prototype.clearAccountConfigList = function() {
|
|
2318
|
+
return this.setAccountConfigList([]);
|
|
2651
2319
|
};
|
|
2652
2320
|
|
|
2653
2321
|
|