@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 +1 -1
- package/lib/gen/enum_pb.js +21 -12
- package/lib/gen/spec.json +2923 -2237
- package/lib/gen/state_pb.js +3497 -2314
- package/lib/gen/trace-type_pb.js +7768 -2352
- package/lib/gen/tx_pb.js +9361 -3718
- package/lib/gen/type_pb.js +6285 -5838
- package/lib/gen/vendor_pb.js +1827 -9499
- package/lib/index.d.ts +49 -26
- package/lib/proto.d.ts +3 -0
- package/lib/proto.js +2 -2
- package/lib/provider.d.ts +2 -0
- package/lib/provider.js +20 -5
- package/package.json +10 -12
- package/lib/gen/rpc_pb.js +0 -14224
- package/lib/gen/status-code.json +0 -117
package/README.md
CHANGED
package/lib/gen/enum_pb.js
CHANGED
|
@@ -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
|
|
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,
|
|
18
|
-
goog.exportSymbol('proto.ocap.HashType', null,
|
|
19
|
-
goog.exportSymbol('proto.ocap.KeyType', null,
|
|
20
|
-
goog.exportSymbol('proto.ocap.ProtocolStatus', null,
|
|
21
|
-
goog.exportSymbol('proto.ocap.RoleType', null,
|
|
22
|
-
goog.exportSymbol('proto.ocap.StakeType', null,
|
|
23
|
-
goog.exportSymbol('proto.ocap.StateType', null,
|
|
24
|
-
goog.exportSymbol('proto.ocap.StatusCode', null,
|
|
25
|
-
goog.exportSymbol('proto.ocap.UpgradeAction', null,
|
|
26
|
-
goog.exportSymbol('proto.ocap.UpgradeType', null,
|
|
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
|
|