@ocap/proto 1.6.5 → 1.6.10

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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Core Schema
2
2
 
3
- Defines data structure for ABT Node backend API, and maintains schema for GQL endpoint.
3
+ Defines data structure for Blocklet Server backend API, and maintains schema for GQL endpoint.
4
4
 
5
5
  ## Development
6
6
 
@@ -2,6 +2,7 @@
2
2
  /**
3
3
  * @fileoverview
4
4
  * @enhanceable
5
+ * @suppress {missingRequire} reports error on implicit type usages.
5
6
  * @suppress {messageConventions} JS Compiler reports an error if a variable or
6
7
  * field starts with 'MSG_' and isn't a translatable message.
7
8
  * @public
@@ -12,18 +13,18 @@
12
13
 
13
14
  var jspb = require('google-protobuf');
14
15
  var goog = jspb;
15
- var global = Function('return this')();
16
+ var root = (typeof self === 'object' && self.self === self && self) || (typeof global === 'object' && global.global === global && global) || this;
16
17
 
17
- goog.exportSymbol('proto.ocap.EncodingType', null, global);
18
- goog.exportSymbol('proto.ocap.HashType', null, global);
19
- goog.exportSymbol('proto.ocap.KeyType', null, global);
20
- goog.exportSymbol('proto.ocap.ProtocolStatus', null, global);
21
- goog.exportSymbol('proto.ocap.RoleType', null, global);
22
- goog.exportSymbol('proto.ocap.StakeType', null, global);
23
- goog.exportSymbol('proto.ocap.StateType', null, global);
24
- goog.exportSymbol('proto.ocap.StatusCode', null, global);
25
- goog.exportSymbol('proto.ocap.UpgradeAction', null, global);
26
- 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);
27
28
  /**
28
29
  * @enum {number}
29
30
  */
@@ -71,7 +72,6 @@ proto.ocap.StatusCode = {
71
72
  INVALID_DEPOSITOR: 46,
72
73
  INVALID_WITHDRAWER: 47,
73
74
  INVALID_EXPIRY_DATE: 49,
74
- INVALID_DEPOSIT: 50,
75
75
  INVALID_CUSTODIAN: 51,
76
76
  INSUFFICIENT_GAS: 52,
77
77
  INVALID_SWAP: 53,
@@ -95,6 +95,12 @@ proto.ocap.StatusCode = {
95
95
  INVALID_CANDIDATE_STATE: 71,
96
96
  VALIDATOR_NOT_FOUND: 72,
97
97
  VALIDATOR_NOT_CHANGED: 73,
98
+ INVALID_FACTORY_STATE: 74,
99
+ INVALID_FACTORY_PROPS: 75,
100
+ INVALID_FACTORY_INPUT: 76,
101
+ INVALID_TOKEN: 77,
102
+ INVALID_ROLLUP: 78,
103
+ INVALID_BLOCK: 79,
98
104
  FORBIDDEN: 403,
99
105
  INTERNAL: 500,
100
106
  TIMEOUT: 504
@@ -151,6 +157,9 @@ proto.ocap.RoleType = {
151
157
  ROLE_VC: 14,
152
158
  ROLE_BLOCKLET: 15,
153
159
  ROLE_REGISTRY: 16,
160
+ ROLE_TOKEN: 17,
161
+ ROLE_FACTORY: 18,
162
+ ROLE_ROLLUP: 19,
154
163
  ROLE_ANY: 63
155
164
  };
156
165