@ocap/proto 1.14.7 → 1.14.11

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.
@@ -13,18 +13,18 @@
13
13
 
14
14
  var jspb = require('google-protobuf');
15
15
  var goog = jspb;
16
- var global = Function('return this')();
16
+ var root = (typeof self === 'object' && self.self === self && self) || (typeof global === 'object' && global.global === global && global) || this;
17
17
 
18
- goog.exportSymbol('proto.ocap.EncodingType', null, global);
19
- goog.exportSymbol('proto.ocap.HashType', null, global);
20
- goog.exportSymbol('proto.ocap.KeyType', null, global);
21
- goog.exportSymbol('proto.ocap.ProtocolStatus', null, global);
22
- goog.exportSymbol('proto.ocap.RoleType', null, global);
23
- goog.exportSymbol('proto.ocap.StakeType', null, global);
24
- goog.exportSymbol('proto.ocap.StateType', null, global);
25
- goog.exportSymbol('proto.ocap.StatusCode', null, global);
26
- goog.exportSymbol('proto.ocap.UpgradeAction', null, global);
27
- goog.exportSymbol('proto.ocap.UpgradeType', null, global);
18
+ goog.exportSymbol('proto.ocap.EncodingType', null, root);
19
+ goog.exportSymbol('proto.ocap.HashType', null, root);
20
+ goog.exportSymbol('proto.ocap.KeyType', null, root);
21
+ goog.exportSymbol('proto.ocap.ProtocolStatus', null, root);
22
+ goog.exportSymbol('proto.ocap.RoleType', null, root);
23
+ goog.exportSymbol('proto.ocap.StakeType', null, root);
24
+ goog.exportSymbol('proto.ocap.StateType', null, root);
25
+ goog.exportSymbol('proto.ocap.StatusCode', null, root);
26
+ goog.exportSymbol('proto.ocap.UpgradeAction', null, root);
27
+ goog.exportSymbol('proto.ocap.UpgradeType', null, root);
28
28
  /**
29
29
  * @enum {number}
30
30
  */
package/lib/gen/spec.json CHANGED
@@ -1016,6 +1016,18 @@
1016
1016
  }
1017
1017
  }
1018
1018
  },
1019
+ "ResponseGetForgeStats": {
1020
+ "fields": {
1021
+ "code": {
1022
+ "type": "StatusCode",
1023
+ "id": 1
1024
+ },
1025
+ "forgeStats": {
1026
+ "type": "ForgeStats",
1027
+ "id": 2
1028
+ }
1029
+ }
1030
+ },
1019
1031
  "BigUint": {
1020
1032
  "fields": {
1021
1033
  "value": {
@@ -2152,6 +2164,102 @@
2152
2164
  }
2153
2165
  }
2154
2166
  },
2167
+ "ForgeStats": {
2168
+ "fields": {
2169
+ "numBlocks": {
2170
+ "rule": "repeated",
2171
+ "type": "string",
2172
+ "id": 1
2173
+ },
2174
+ "numTxs": {
2175
+ "rule": "repeated",
2176
+ "type": "string",
2177
+ "id": 2
2178
+ },
2179
+ "numStakes": {
2180
+ "rule": "repeated",
2181
+ "type": "BigUint",
2182
+ "id": 3
2183
+ },
2184
+ "numValidators": {
2185
+ "rule": "repeated",
2186
+ "type": "uint32",
2187
+ "id": 4
2188
+ },
2189
+ "numAccountMigrateTxs": {
2190
+ "rule": "repeated",
2191
+ "type": "string",
2192
+ "id": 5
2193
+ },
2194
+ "numCreateAssetTxs": {
2195
+ "rule": "repeated",
2196
+ "type": "string",
2197
+ "id": 6
2198
+ },
2199
+ "numConsensusUpgradeTxs": {
2200
+ "rule": "repeated",
2201
+ "type": "uint32",
2202
+ "id": 7
2203
+ },
2204
+ "numDeclareTxs": {
2205
+ "rule": "repeated",
2206
+ "type": "string",
2207
+ "id": 8
2208
+ },
2209
+ "numDeclareFileTxs": {
2210
+ "rule": "repeated",
2211
+ "type": "string",
2212
+ "id": 9
2213
+ },
2214
+ "numExchangeTxs": {
2215
+ "rule": "repeated",
2216
+ "type": "string",
2217
+ "id": 10
2218
+ },
2219
+ "numStakeTxs": {
2220
+ "rule": "repeated",
2221
+ "type": "string",
2222
+ "id": 11
2223
+ },
2224
+ "numSysUpgradeTxs": {
2225
+ "rule": "repeated",
2226
+ "type": "uint32",
2227
+ "id": 12
2228
+ },
2229
+ "numTransferTxs": {
2230
+ "rule": "repeated",
2231
+ "type": "string",
2232
+ "id": 13
2233
+ },
2234
+ "numUpdateAssetTxs": {
2235
+ "rule": "repeated",
2236
+ "type": "string",
2237
+ "id": 14
2238
+ },
2239
+ "numConsumeAssetTxs": {
2240
+ "rule": "repeated",
2241
+ "type": "string",
2242
+ "id": 15
2243
+ },
2244
+ "tps": {
2245
+ "rule": "repeated",
2246
+ "type": "uint32",
2247
+ "id": 16
2248
+ },
2249
+ "maxTps": {
2250
+ "type": "uint32",
2251
+ "id": 17
2252
+ },
2253
+ "avgTps": {
2254
+ "type": "uint32",
2255
+ "id": 18
2256
+ },
2257
+ "avgBlockTime": {
2258
+ "type": "float",
2259
+ "id": 19
2260
+ }
2261
+ }
2262
+ },
2155
2263
  "AccountState": {
2156
2264
  "fields": {
2157
2265
  "balance": {
@@ -5094,6 +5202,10 @@
5094
5202
  "requestType": "RequestGetConfig",
5095
5203
  "responseType": "ResponseGetConfig"
5096
5204
  },
5205
+ "getForgeStats": {
5206
+ "requestType": "RequestEmpty",
5207
+ "responseType": "ResponseGetForgeStats"
5208
+ },
5097
5209
  "getAccountState": {
5098
5210
  "requestType": "RequestGetState",
5099
5211
  "requestStream": true,
@@ -13,7 +13,7 @@
13
13
 
14
14
  var jspb = require('google-protobuf');
15
15
  var goog = jspb;
16
- var global = Function('return this')();
16
+ var root = (typeof self === 'object' && self.self === self && self) || (typeof global === 'object' && global.global === global && global) || this;
17
17
 
18
18
  var google_protobuf_any_pb = require('google-protobuf/google/protobuf/any_pb.js');
19
19
  goog.object.extend(proto, google_protobuf_any_pb);
@@ -23,18 +23,18 @@ var type_pb = require('./type_pb.js');
23
23
  goog.object.extend(proto, type_pb);
24
24
  var tx_pb = require('./tx_pb.js');
25
25
  goog.object.extend(proto, tx_pb);
26
- goog.exportSymbol('proto.ocap.AccountState', null, global);
27
- goog.exportSymbol('proto.ocap.AssetFactoryState', null, global);
28
- goog.exportSymbol('proto.ocap.AssetState', null, global);
29
- goog.exportSymbol('proto.ocap.DelegateOpState', null, global);
30
- goog.exportSymbol('proto.ocap.DelegateState', null, global);
31
- goog.exportSymbol('proto.ocap.EvidenceState', null, global);
32
- goog.exportSymbol('proto.ocap.ForgeState', null, global);
33
- goog.exportSymbol('proto.ocap.RollupBlock', null, global);
34
- goog.exportSymbol('proto.ocap.RollupState', null, global);
35
- goog.exportSymbol('proto.ocap.RootState', null, global);
36
- goog.exportSymbol('proto.ocap.StakeState', null, global);
37
- goog.exportSymbol('proto.ocap.TokenState', null, global);
26
+ goog.exportSymbol('proto.ocap.AccountState', null, root);
27
+ goog.exportSymbol('proto.ocap.AssetFactoryState', null, root);
28
+ goog.exportSymbol('proto.ocap.AssetState', null, root);
29
+ goog.exportSymbol('proto.ocap.DelegateOpState', null, root);
30
+ goog.exportSymbol('proto.ocap.DelegateState', null, root);
31
+ goog.exportSymbol('proto.ocap.EvidenceState', null, root);
32
+ goog.exportSymbol('proto.ocap.ForgeState', null, root);
33
+ goog.exportSymbol('proto.ocap.RollupBlock', null, root);
34
+ goog.exportSymbol('proto.ocap.RollupState', null, root);
35
+ goog.exportSymbol('proto.ocap.RootState', null, root);
36
+ goog.exportSymbol('proto.ocap.StakeState', null, root);
37
+ goog.exportSymbol('proto.ocap.TokenState', null, root);
38
38
  /**
39
39
  * Generated by JsPbCodeGenerator.
40
40
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -13,7 +13,7 @@
13
13
 
14
14
  var jspb = require('google-protobuf');
15
15
  var goog = jspb;
16
- var global = Function('return this')();
16
+ var root = (typeof self === 'object' && self.self === self && self) || (typeof global === 'object' && global.global === global && global) || this;
17
17
 
18
18
  var google_protobuf_any_pb = require('google-protobuf/google/protobuf/any_pb.js');
19
19
  goog.object.extend(proto, google_protobuf_any_pb);
@@ -23,38 +23,38 @@ var enum_pb = require('./enum_pb.js');
23
23
  goog.object.extend(proto, enum_pb);
24
24
  var tx_pb = require('./tx_pb.js');
25
25
  goog.object.extend(proto, tx_pb);
26
- goog.exportSymbol('proto.ocap.AccountFilter', null, global);
27
- goog.exportSymbol('proto.ocap.AccountToken', null, global);
28
- goog.exportSymbol('proto.ocap.AddressFilter', null, global);
29
- goog.exportSymbol('proto.ocap.AssetFilter', null, global);
30
- goog.exportSymbol('proto.ocap.ByDay', null, global);
31
- goog.exportSymbol('proto.ocap.ByHour', null, global);
32
- goog.exportSymbol('proto.ocap.Direction', null, global);
33
- goog.exportSymbol('proto.ocap.FactoryFilter', null, global);
34
- goog.exportSymbol('proto.ocap.IndexedAccountState', null, global);
35
- goog.exportSymbol('proto.ocap.IndexedAssetState', null, global);
36
- goog.exportSymbol('proto.ocap.IndexedBlock', null, global);
37
- goog.exportSymbol('proto.ocap.IndexedFactoryState', null, global);
38
- goog.exportSymbol('proto.ocap.IndexedRollupBlock', null, global);
39
- goog.exportSymbol('proto.ocap.IndexedRollupState', null, global);
40
- goog.exportSymbol('proto.ocap.IndexedRollupValidator', null, global);
41
- goog.exportSymbol('proto.ocap.IndexedStakeState', null, global);
42
- goog.exportSymbol('proto.ocap.IndexedTokenState', null, global);
43
- goog.exportSymbol('proto.ocap.IndexedTransaction', null, global);
44
- goog.exportSymbol('proto.ocap.Page', null, global);
45
- goog.exportSymbol('proto.ocap.PageInfo', null, global);
46
- goog.exportSymbol('proto.ocap.PageOrder', null, global);
47
- goog.exportSymbol('proto.ocap.RangeFilter', null, global);
48
- goog.exportSymbol('proto.ocap.RollupFilter', null, global);
49
- goog.exportSymbol('proto.ocap.SearchResult', null, global);
50
- goog.exportSymbol('proto.ocap.TimeFilter', null, global);
51
- goog.exportSymbol('proto.ocap.TokenFilter', null, global);
52
- goog.exportSymbol('proto.ocap.TokenInfo', null, global);
53
- goog.exportSymbol('proto.ocap.TxFilter', null, global);
54
- goog.exportSymbol('proto.ocap.TypeFilter', null, global);
55
- goog.exportSymbol('proto.ocap.ValidatorFilter', null, global);
56
- goog.exportSymbol('proto.ocap.Validity', null, global);
57
- goog.exportSymbol('proto.ocap.ValidityFilter', null, global);
26
+ goog.exportSymbol('proto.ocap.AccountFilter', null, root);
27
+ goog.exportSymbol('proto.ocap.AccountToken', null, root);
28
+ goog.exportSymbol('proto.ocap.AddressFilter', null, root);
29
+ goog.exportSymbol('proto.ocap.AssetFilter', null, root);
30
+ goog.exportSymbol('proto.ocap.ByDay', null, root);
31
+ goog.exportSymbol('proto.ocap.ByHour', null, root);
32
+ goog.exportSymbol('proto.ocap.Direction', null, root);
33
+ goog.exportSymbol('proto.ocap.FactoryFilter', null, root);
34
+ goog.exportSymbol('proto.ocap.IndexedAccountState', null, root);
35
+ goog.exportSymbol('proto.ocap.IndexedAssetState', null, root);
36
+ goog.exportSymbol('proto.ocap.IndexedBlock', null, root);
37
+ goog.exportSymbol('proto.ocap.IndexedFactoryState', null, root);
38
+ goog.exportSymbol('proto.ocap.IndexedRollupBlock', null, root);
39
+ goog.exportSymbol('proto.ocap.IndexedRollupState', null, root);
40
+ goog.exportSymbol('proto.ocap.IndexedRollupValidator', null, root);
41
+ goog.exportSymbol('proto.ocap.IndexedStakeState', null, root);
42
+ goog.exportSymbol('proto.ocap.IndexedTokenState', null, root);
43
+ goog.exportSymbol('proto.ocap.IndexedTransaction', null, root);
44
+ goog.exportSymbol('proto.ocap.Page', null, root);
45
+ goog.exportSymbol('proto.ocap.PageInfo', null, root);
46
+ goog.exportSymbol('proto.ocap.PageOrder', null, root);
47
+ goog.exportSymbol('proto.ocap.RangeFilter', null, root);
48
+ goog.exportSymbol('proto.ocap.RollupFilter', null, root);
49
+ goog.exportSymbol('proto.ocap.SearchResult', null, root);
50
+ goog.exportSymbol('proto.ocap.TimeFilter', null, root);
51
+ goog.exportSymbol('proto.ocap.TokenFilter', null, root);
52
+ goog.exportSymbol('proto.ocap.TokenInfo', null, root);
53
+ goog.exportSymbol('proto.ocap.TxFilter', null, root);
54
+ goog.exportSymbol('proto.ocap.TypeFilter', null, root);
55
+ goog.exportSymbol('proto.ocap.ValidatorFilter', null, root);
56
+ goog.exportSymbol('proto.ocap.Validity', null, root);
57
+ goog.exportSymbol('proto.ocap.ValidityFilter', null, root);
58
58
  /**
59
59
  * Generated by JsPbCodeGenerator.
60
60
  * @param {Array=} opt_data Optional initial data array, typically from a
package/lib/gen/tx_pb.js CHANGED
@@ -13,7 +13,7 @@
13
13
 
14
14
  var jspb = require('google-protobuf');
15
15
  var goog = jspb;
16
- var global = Function('return this')();
16
+ var root = (typeof self === 'object' && self.self === self && self) || (typeof global === 'object' && global.global === global && global) || this;
17
17
 
18
18
  var google_protobuf_any_pb = require('google-protobuf/google/protobuf/any_pb.js');
19
19
  goog.object.extend(proto, google_protobuf_any_pb);
@@ -21,44 +21,44 @@ var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/time
21
21
  goog.object.extend(proto, google_protobuf_timestamp_pb);
22
22
  var type_pb = require('./type_pb.js');
23
23
  goog.object.extend(proto, type_pb);
24
- goog.exportSymbol('proto.ocap.AccountMigrateTx', null, global);
25
- goog.exportSymbol('proto.ocap.AcquireAssetV2Tx', null, global);
26
- goog.exportSymbol('proto.ocap.AcquireAssetV3Tx', null, global);
27
- goog.exportSymbol('proto.ocap.AssetFactoryInput', null, global);
28
- goog.exportSymbol('proto.ocap.ClaimBlockRewardTx', null, global);
29
- goog.exportSymbol('proto.ocap.ClaimStakeTx', null, global);
30
- goog.exportSymbol('proto.ocap.CreateAssetTx', null, global);
31
- goog.exportSymbol('proto.ocap.CreateFactoryTx', null, global);
32
- goog.exportSymbol('proto.ocap.CreateRollupBlockTx', null, global);
33
- goog.exportSymbol('proto.ocap.CreateRollupTx', null, global);
34
- goog.exportSymbol('proto.ocap.CreateTokenTx', null, global);
35
- goog.exportSymbol('proto.ocap.DeclareTx', null, global);
36
- goog.exportSymbol('proto.ocap.DelegateOp', null, global);
37
- goog.exportSymbol('proto.ocap.DelegateTx', null, global);
38
- goog.exportSymbol('proto.ocap.DepositTokenV2Tx', null, global);
39
- goog.exportSymbol('proto.ocap.ExchangeInfo', null, global);
40
- goog.exportSymbol('proto.ocap.ExchangeInfoV2', null, global);
41
- goog.exportSymbol('proto.ocap.ExchangeTx', null, global);
42
- goog.exportSymbol('proto.ocap.ExchangeV2Tx', null, global);
43
- goog.exportSymbol('proto.ocap.ItxStub', null, global);
44
- goog.exportSymbol('proto.ocap.ItxStub.ValueCase', null, global);
45
- goog.exportSymbol('proto.ocap.JoinRollupTx', null, global);
46
- goog.exportSymbol('proto.ocap.LeaveRollupTx', null, global);
47
- goog.exportSymbol('proto.ocap.MigrateRollupContractTx', null, global);
48
- goog.exportSymbol('proto.ocap.MigrateRollupTokenTx', null, global);
49
- goog.exportSymbol('proto.ocap.MintAssetTx', null, global);
50
- goog.exportSymbol('proto.ocap.PauseRollupTx', null, global);
51
- goog.exportSymbol('proto.ocap.ResumeRollupTx', null, global);
52
- goog.exportSymbol('proto.ocap.RevokeDelegateTx', null, global);
53
- goog.exportSymbol('proto.ocap.RevokeStakeTx', null, global);
54
- goog.exportSymbol('proto.ocap.StakeTx', null, global);
55
- goog.exportSymbol('proto.ocap.TransferTx', null, global);
56
- goog.exportSymbol('proto.ocap.TransferV2Tx', null, global);
57
- goog.exportSymbol('proto.ocap.TransferV3Tx', null, global);
58
- goog.exportSymbol('proto.ocap.UpdateAssetTx', null, global);
59
- goog.exportSymbol('proto.ocap.UpdateRollupTx', null, global);
60
- goog.exportSymbol('proto.ocap.UpgradeNodeTx', null, global);
61
- goog.exportSymbol('proto.ocap.WithdrawTokenV2Tx', null, global);
24
+ goog.exportSymbol('proto.ocap.AccountMigrateTx', null, root);
25
+ goog.exportSymbol('proto.ocap.AcquireAssetV2Tx', null, root);
26
+ goog.exportSymbol('proto.ocap.AcquireAssetV3Tx', null, root);
27
+ goog.exportSymbol('proto.ocap.AssetFactoryInput', null, root);
28
+ goog.exportSymbol('proto.ocap.ClaimBlockRewardTx', null, root);
29
+ goog.exportSymbol('proto.ocap.ClaimStakeTx', null, root);
30
+ goog.exportSymbol('proto.ocap.CreateAssetTx', null, root);
31
+ goog.exportSymbol('proto.ocap.CreateFactoryTx', null, root);
32
+ goog.exportSymbol('proto.ocap.CreateRollupBlockTx', null, root);
33
+ goog.exportSymbol('proto.ocap.CreateRollupTx', null, root);
34
+ goog.exportSymbol('proto.ocap.CreateTokenTx', null, root);
35
+ goog.exportSymbol('proto.ocap.DeclareTx', null, root);
36
+ goog.exportSymbol('proto.ocap.DelegateOp', null, root);
37
+ goog.exportSymbol('proto.ocap.DelegateTx', null, root);
38
+ goog.exportSymbol('proto.ocap.DepositTokenV2Tx', null, root);
39
+ goog.exportSymbol('proto.ocap.ExchangeInfo', null, root);
40
+ goog.exportSymbol('proto.ocap.ExchangeInfoV2', null, root);
41
+ goog.exportSymbol('proto.ocap.ExchangeTx', null, root);
42
+ goog.exportSymbol('proto.ocap.ExchangeV2Tx', null, root);
43
+ goog.exportSymbol('proto.ocap.ItxStub', null, root);
44
+ goog.exportSymbol('proto.ocap.ItxStub.ValueCase', null, root);
45
+ goog.exportSymbol('proto.ocap.JoinRollupTx', null, root);
46
+ goog.exportSymbol('proto.ocap.LeaveRollupTx', null, root);
47
+ goog.exportSymbol('proto.ocap.MigrateRollupContractTx', null, root);
48
+ goog.exportSymbol('proto.ocap.MigrateRollupTokenTx', null, root);
49
+ goog.exportSymbol('proto.ocap.MintAssetTx', null, root);
50
+ goog.exportSymbol('proto.ocap.PauseRollupTx', null, root);
51
+ goog.exportSymbol('proto.ocap.ResumeRollupTx', null, root);
52
+ goog.exportSymbol('proto.ocap.RevokeDelegateTx', null, root);
53
+ goog.exportSymbol('proto.ocap.RevokeStakeTx', null, root);
54
+ goog.exportSymbol('proto.ocap.StakeTx', null, root);
55
+ goog.exportSymbol('proto.ocap.TransferTx', null, root);
56
+ goog.exportSymbol('proto.ocap.TransferV2Tx', null, root);
57
+ goog.exportSymbol('proto.ocap.TransferV3Tx', null, root);
58
+ goog.exportSymbol('proto.ocap.UpdateAssetTx', null, root);
59
+ goog.exportSymbol('proto.ocap.UpdateRollupTx', null, root);
60
+ goog.exportSymbol('proto.ocap.UpgradeNodeTx', null, root);
61
+ goog.exportSymbol('proto.ocap.WithdrawTokenV2Tx', null, root);
62
62
  /**
63
63
  * Generated by JsPbCodeGenerator.
64
64
  * @param {Array=} opt_data Optional initial data array, typically from a