@dfinity/nns 0.2.2 → 0.3.0-nightly-2022-04-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 -6
- package/dist/candid/governanceTypes.d.ts +13 -9
- package/dist/cjs/index.cjs.js +36 -36
- package/dist/cjs/index.cjs.js.map +3 -3
- package/dist/esm/account_identifier.js +1 -1
- package/dist/esm/{chunk-2DZXLOEC.js → chunk-27LBXZJR.js} +3 -3
- package/dist/esm/{chunk-2DZXLOEC.js.map → chunk-27LBXZJR.js.map} +2 -2
- package/dist/esm/{chunk-HMU24NWJ.js → chunk-7AFR3LOO.js} +2 -2
- package/dist/esm/{chunk-HMU24NWJ.js.map → chunk-7AFR3LOO.js.map} +0 -0
- package/dist/esm/chunk-EXEYDII6.js +18 -0
- package/dist/esm/{chunk-FVDRR6PO.js.map → chunk-EXEYDII6.js.map} +3 -3
- package/dist/esm/chunk-F6ES4H7R.js +2 -0
- package/dist/esm/{chunk-QR4654XK.js.map → chunk-F6ES4H7R.js.map} +3 -3
- package/dist/esm/chunk-FY5QONEL.js +4 -0
- package/dist/esm/chunk-FY5QONEL.js.map +7 -0
- package/dist/esm/{chunk-D2W3ELRE.js → chunk-HQLGGFMH.js} +2 -2
- package/dist/esm/{chunk-D2W3ELRE.js.map → chunk-HQLGGFMH.js.map} +1 -1
- package/dist/esm/chunk-LSSEKDUC.js +3 -0
- package/dist/esm/chunk-LSSEKDUC.js.map +7 -0
- package/dist/esm/governance.js +1 -1
- package/dist/esm/icp.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +3 -3
- package/dist/esm/ledger.js +1 -1
- package/dist/proto/base_types_pb.js +217 -140
- package/dist/proto/ledger_pb.js +1571 -969
- package/dist/types/canisters/governance/payloads.d.ts +1 -1
- package/dist/types/canisters/governance/request.converters.d.ts +24 -26
- package/dist/types/canisters/governance/response.converters.d.ts +6 -35
- package/dist/types/canisters/governance/services.d.ts +9 -0
- package/dist/types/errors/governance.errors.d.ts +22 -0
- package/dist/types/errors/ledger.errors.d.ts +21 -0
- package/dist/types/governance.d.ts +95 -7
- package/dist/types/index.d.ts +4 -0
- package/dist/types/ledger.d.ts +9 -3
- package/dist/types/types/common.d.ts +4 -0
- package/dist/types/types/governance_converters.d.ts +1 -70
- package/dist/types/types/ledger.d.ts +3 -24
- package/dist/types/utils/converter.utils.d.ts +1 -6
- package/dist/types/utils/neurons.utils.d.ts +13 -0
- package/package.json +6 -4
- package/dist/candid/nns_dapp.certified.idl.js +0 -206
- package/dist/candid/nns_dapp.did +0 -240
- package/dist/candid/nns_dapp.idl.js +0 -206
- package/dist/esm/chunk-4FZAJTYF.js +0 -2
- package/dist/esm/chunk-4FZAJTYF.js.map +0 -7
- package/dist/esm/chunk-FVDRR6PO.js +0 -17
- package/dist/esm/chunk-LNMGZ6W7.js +0 -3
- package/dist/esm/chunk-LNMGZ6W7.js.map +0 -7
- package/dist/esm/chunk-QR4654XK.js +0 -2
- package/dist/esm/chunk-RUFBUR7C.js +0 -4
- package/dist/esm/chunk-RUFBUR7C.js.map +0 -7
- package/dist/esm/chunk-ZWZRSVU4.js +0 -2
- package/dist/esm/chunk-ZWZRSVU4.js.map +0 -7
- package/dist/types/types/option.d.ts +0 -1
|
@@ -1,17 +1,28 @@
|
|
|
1
|
+
// source: proto/base_types.proto
|
|
1
2
|
/**
|
|
2
3
|
* @fileoverview
|
|
3
4
|
* @enhanceable
|
|
5
|
+
* @suppress {missingRequire} reports error on implicit type usages.
|
|
4
6
|
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
|
5
7
|
* field starts with 'MSG_' and isn't a translatable message.
|
|
6
8
|
* @public
|
|
7
9
|
*/
|
|
8
10
|
// GENERATED CODE -- DO NOT EDIT!
|
|
11
|
+
/* eslint-disable */
|
|
12
|
+
// @ts-nocheck
|
|
9
13
|
|
|
10
14
|
var jspb = require('google-protobuf');
|
|
11
15
|
var goog = jspb;
|
|
12
|
-
var global =
|
|
16
|
+
var global = (function() {
|
|
17
|
+
if (this) { return this; }
|
|
18
|
+
if (typeof window !== 'undefined') { return window; }
|
|
19
|
+
if (typeof global !== 'undefined') { return global; }
|
|
20
|
+
if (typeof self !== 'undefined') { return self; }
|
|
21
|
+
return Function('return this')();
|
|
22
|
+
}.call(null));
|
|
13
23
|
|
|
14
24
|
var google_protobuf_descriptor_pb = require('google-protobuf/google/protobuf/descriptor_pb.js');
|
|
25
|
+
goog.object.extend(proto, google_protobuf_descriptor_pb);
|
|
15
26
|
goog.exportSymbol('proto.ic_base_types.pb.v1.CanisterAuthzInfo', null, global);
|
|
16
27
|
goog.exportSymbol('proto.ic_base_types.pb.v1.CanisterId', null, global);
|
|
17
28
|
goog.exportSymbol('proto.ic_base_types.pb.v1.MethodAuthzInfo', null, global);
|
|
@@ -20,7 +31,6 @@ goog.exportSymbol('proto.ic_base_types.pb.v1.PrincipalId', null, global);
|
|
|
20
31
|
goog.exportSymbol('proto.ic_base_types.pb.v1.ProposalId', null, global);
|
|
21
32
|
goog.exportSymbol('proto.ic_base_types.pb.v1.tuiSignedDisplayQ22021', null, global);
|
|
22
33
|
goog.exportSymbol('proto.ic_base_types.pb.v1.tuiSignedMessage', null, global);
|
|
23
|
-
|
|
24
34
|
/**
|
|
25
35
|
* Generated by JsPbCodeGenerator.
|
|
26
36
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -36,19 +46,131 @@ proto.ic_base_types.pb.v1.PrincipalId = function(opt_data) {
|
|
|
36
46
|
};
|
|
37
47
|
goog.inherits(proto.ic_base_types.pb.v1.PrincipalId, jspb.Message);
|
|
38
48
|
if (goog.DEBUG && !COMPILED) {
|
|
49
|
+
/**
|
|
50
|
+
* @public
|
|
51
|
+
* @override
|
|
52
|
+
*/
|
|
39
53
|
proto.ic_base_types.pb.v1.PrincipalId.displayName = 'proto.ic_base_types.pb.v1.PrincipalId';
|
|
40
54
|
}
|
|
55
|
+
/**
|
|
56
|
+
* Generated by JsPbCodeGenerator.
|
|
57
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
58
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
59
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
60
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
61
|
+
* valid.
|
|
62
|
+
* @extends {jspb.Message}
|
|
63
|
+
* @constructor
|
|
64
|
+
*/
|
|
65
|
+
proto.ic_base_types.pb.v1.CanisterId = function(opt_data) {
|
|
66
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
67
|
+
};
|
|
68
|
+
goog.inherits(proto.ic_base_types.pb.v1.CanisterId, jspb.Message);
|
|
69
|
+
if (goog.DEBUG && !COMPILED) {
|
|
70
|
+
/**
|
|
71
|
+
* @public
|
|
72
|
+
* @override
|
|
73
|
+
*/
|
|
74
|
+
proto.ic_base_types.pb.v1.CanisterId.displayName = 'proto.ic_base_types.pb.v1.CanisterId';
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Generated by JsPbCodeGenerator.
|
|
78
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
79
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
80
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
81
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
82
|
+
* valid.
|
|
83
|
+
* @extends {jspb.Message}
|
|
84
|
+
* @constructor
|
|
85
|
+
*/
|
|
86
|
+
proto.ic_base_types.pb.v1.NeuronId = function(opt_data) {
|
|
87
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
88
|
+
};
|
|
89
|
+
goog.inherits(proto.ic_base_types.pb.v1.NeuronId, jspb.Message);
|
|
90
|
+
if (goog.DEBUG && !COMPILED) {
|
|
91
|
+
/**
|
|
92
|
+
* @public
|
|
93
|
+
* @override
|
|
94
|
+
*/
|
|
95
|
+
proto.ic_base_types.pb.v1.NeuronId.displayName = 'proto.ic_base_types.pb.v1.NeuronId';
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Generated by JsPbCodeGenerator.
|
|
99
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
100
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
101
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
102
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
103
|
+
* valid.
|
|
104
|
+
* @extends {jspb.Message}
|
|
105
|
+
* @constructor
|
|
106
|
+
*/
|
|
107
|
+
proto.ic_base_types.pb.v1.ProposalId = function(opt_data) {
|
|
108
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
109
|
+
};
|
|
110
|
+
goog.inherits(proto.ic_base_types.pb.v1.ProposalId, jspb.Message);
|
|
111
|
+
if (goog.DEBUG && !COMPILED) {
|
|
112
|
+
/**
|
|
113
|
+
* @public
|
|
114
|
+
* @override
|
|
115
|
+
*/
|
|
116
|
+
proto.ic_base_types.pb.v1.ProposalId.displayName = 'proto.ic_base_types.pb.v1.ProposalId';
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* Generated by JsPbCodeGenerator.
|
|
120
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
121
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
122
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
123
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
124
|
+
* valid.
|
|
125
|
+
* @extends {jspb.Message}
|
|
126
|
+
* @constructor
|
|
127
|
+
*/
|
|
128
|
+
proto.ic_base_types.pb.v1.MethodAuthzInfo = function(opt_data) {
|
|
129
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.ic_base_types.pb.v1.MethodAuthzInfo.repeatedFields_, null);
|
|
130
|
+
};
|
|
131
|
+
goog.inherits(proto.ic_base_types.pb.v1.MethodAuthzInfo, jspb.Message);
|
|
132
|
+
if (goog.DEBUG && !COMPILED) {
|
|
133
|
+
/**
|
|
134
|
+
* @public
|
|
135
|
+
* @override
|
|
136
|
+
*/
|
|
137
|
+
proto.ic_base_types.pb.v1.MethodAuthzInfo.displayName = 'proto.ic_base_types.pb.v1.MethodAuthzInfo';
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* Generated by JsPbCodeGenerator.
|
|
141
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
142
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
143
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
144
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
145
|
+
* valid.
|
|
146
|
+
* @extends {jspb.Message}
|
|
147
|
+
* @constructor
|
|
148
|
+
*/
|
|
149
|
+
proto.ic_base_types.pb.v1.CanisterAuthzInfo = function(opt_data) {
|
|
150
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.ic_base_types.pb.v1.CanisterAuthzInfo.repeatedFields_, null);
|
|
151
|
+
};
|
|
152
|
+
goog.inherits(proto.ic_base_types.pb.v1.CanisterAuthzInfo, jspb.Message);
|
|
153
|
+
if (goog.DEBUG && !COMPILED) {
|
|
154
|
+
/**
|
|
155
|
+
* @public
|
|
156
|
+
* @override
|
|
157
|
+
*/
|
|
158
|
+
proto.ic_base_types.pb.v1.CanisterAuthzInfo.displayName = 'proto.ic_base_types.pb.v1.CanisterAuthzInfo';
|
|
159
|
+
}
|
|
160
|
+
|
|
41
161
|
|
|
42
162
|
|
|
43
163
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
44
164
|
/**
|
|
45
|
-
* Creates an object representation of this proto
|
|
165
|
+
* Creates an object representation of this proto.
|
|
46
166
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
167
|
+
* Optional fields that are not set will be set to undefined.
|
|
47
168
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
48
169
|
* For the list of reserved names please see:
|
|
49
|
-
*
|
|
50
|
-
* @param {boolean=} opt_includeInstance
|
|
51
|
-
* for transitional soy proto support:
|
|
170
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
171
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
172
|
+
* JSPB instance for transitional soy proto support:
|
|
173
|
+
* http://goto/soy-param-migration
|
|
52
174
|
* @return {!Object}
|
|
53
175
|
*/
|
|
54
176
|
proto.ic_base_types.pb.v1.PrincipalId.prototype.toObject = function(opt_includeInstance) {
|
|
@@ -58,8 +180,8 @@ proto.ic_base_types.pb.v1.PrincipalId.prototype.toObject = function(opt_includeI
|
|
|
58
180
|
|
|
59
181
|
/**
|
|
60
182
|
* Static version of the {@see toObject} method.
|
|
61
|
-
* @param {boolean|undefined} includeInstance Whether to include
|
|
62
|
-
* instance for transitional soy proto support:
|
|
183
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
184
|
+
* the JSPB instance for transitional soy proto support:
|
|
63
185
|
* http://goto/soy-param-migration
|
|
64
186
|
* @param {!proto.ic_base_types.pb.v1.PrincipalId} msg The msg instance to transform.
|
|
65
187
|
* @return {!Object}
|
|
@@ -180,41 +302,29 @@ proto.ic_base_types.pb.v1.PrincipalId.prototype.getSerializedId_asU8 = function(
|
|
|
180
302
|
};
|
|
181
303
|
|
|
182
304
|
|
|
183
|
-
/**
|
|
305
|
+
/**
|
|
306
|
+
* @param {!(string|Uint8Array)} value
|
|
307
|
+
* @return {!proto.ic_base_types.pb.v1.PrincipalId} returns this
|
|
308
|
+
*/
|
|
184
309
|
proto.ic_base_types.pb.v1.PrincipalId.prototype.setSerializedId = function(value) {
|
|
185
|
-
jspb.Message.setProto3BytesField(this, 1, value);
|
|
310
|
+
return jspb.Message.setProto3BytesField(this, 1, value);
|
|
186
311
|
};
|
|
187
312
|
|
|
188
313
|
|
|
189
314
|
|
|
190
|
-
/**
|
|
191
|
-
* Generated by JsPbCodeGenerator.
|
|
192
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
193
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
194
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
195
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
196
|
-
* valid.
|
|
197
|
-
* @extends {jspb.Message}
|
|
198
|
-
* @constructor
|
|
199
|
-
*/
|
|
200
|
-
proto.ic_base_types.pb.v1.CanisterId = function(opt_data) {
|
|
201
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
202
|
-
};
|
|
203
|
-
goog.inherits(proto.ic_base_types.pb.v1.CanisterId, jspb.Message);
|
|
204
|
-
if (goog.DEBUG && !COMPILED) {
|
|
205
|
-
proto.ic_base_types.pb.v1.CanisterId.displayName = 'proto.ic_base_types.pb.v1.CanisterId';
|
|
206
|
-
}
|
|
207
315
|
|
|
208
316
|
|
|
209
317
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
210
318
|
/**
|
|
211
|
-
* Creates an object representation of this proto
|
|
319
|
+
* Creates an object representation of this proto.
|
|
212
320
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
321
|
+
* Optional fields that are not set will be set to undefined.
|
|
213
322
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
214
323
|
* For the list of reserved names please see:
|
|
215
|
-
*
|
|
216
|
-
* @param {boolean=} opt_includeInstance
|
|
217
|
-
* for transitional soy proto support:
|
|
324
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
325
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
326
|
+
* JSPB instance for transitional soy proto support:
|
|
327
|
+
* http://goto/soy-param-migration
|
|
218
328
|
* @return {!Object}
|
|
219
329
|
*/
|
|
220
330
|
proto.ic_base_types.pb.v1.CanisterId.prototype.toObject = function(opt_includeInstance) {
|
|
@@ -224,8 +334,8 @@ proto.ic_base_types.pb.v1.CanisterId.prototype.toObject = function(opt_includeIn
|
|
|
224
334
|
|
|
225
335
|
/**
|
|
226
336
|
* Static version of the {@see toObject} method.
|
|
227
|
-
* @param {boolean|undefined} includeInstance Whether to include
|
|
228
|
-
* instance for transitional soy proto support:
|
|
337
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
338
|
+
* the JSPB instance for transitional soy proto support:
|
|
229
339
|
* http://goto/soy-param-migration
|
|
230
340
|
* @param {!proto.ic_base_types.pb.v1.CanisterId} msg The msg instance to transform.
|
|
231
341
|
* @return {!Object}
|
|
@@ -346,41 +456,29 @@ proto.ic_base_types.pb.v1.CanisterId.prototype.getSerializedId_asU8 = function()
|
|
|
346
456
|
};
|
|
347
457
|
|
|
348
458
|
|
|
349
|
-
/**
|
|
459
|
+
/**
|
|
460
|
+
* @param {!(string|Uint8Array)} value
|
|
461
|
+
* @return {!proto.ic_base_types.pb.v1.CanisterId} returns this
|
|
462
|
+
*/
|
|
350
463
|
proto.ic_base_types.pb.v1.CanisterId.prototype.setSerializedId = function(value) {
|
|
351
|
-
jspb.Message.setProto3BytesField(this, 1, value);
|
|
464
|
+
return jspb.Message.setProto3BytesField(this, 1, value);
|
|
352
465
|
};
|
|
353
466
|
|
|
354
467
|
|
|
355
468
|
|
|
356
|
-
/**
|
|
357
|
-
* Generated by JsPbCodeGenerator.
|
|
358
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
359
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
360
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
361
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
362
|
-
* valid.
|
|
363
|
-
* @extends {jspb.Message}
|
|
364
|
-
* @constructor
|
|
365
|
-
*/
|
|
366
|
-
proto.ic_base_types.pb.v1.NeuronId = function(opt_data) {
|
|
367
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
368
|
-
};
|
|
369
|
-
goog.inherits(proto.ic_base_types.pb.v1.NeuronId, jspb.Message);
|
|
370
|
-
if (goog.DEBUG && !COMPILED) {
|
|
371
|
-
proto.ic_base_types.pb.v1.NeuronId.displayName = 'proto.ic_base_types.pb.v1.NeuronId';
|
|
372
|
-
}
|
|
373
469
|
|
|
374
470
|
|
|
375
471
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
376
472
|
/**
|
|
377
|
-
* Creates an object representation of this proto
|
|
473
|
+
* Creates an object representation of this proto.
|
|
378
474
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
475
|
+
* Optional fields that are not set will be set to undefined.
|
|
379
476
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
380
477
|
* For the list of reserved names please see:
|
|
381
|
-
*
|
|
382
|
-
* @param {boolean=} opt_includeInstance
|
|
383
|
-
* for transitional soy proto support:
|
|
478
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
479
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
480
|
+
* JSPB instance for transitional soy proto support:
|
|
481
|
+
* http://goto/soy-param-migration
|
|
384
482
|
* @return {!Object}
|
|
385
483
|
*/
|
|
386
484
|
proto.ic_base_types.pb.v1.NeuronId.prototype.toObject = function(opt_includeInstance) {
|
|
@@ -390,8 +488,8 @@ proto.ic_base_types.pb.v1.NeuronId.prototype.toObject = function(opt_includeInst
|
|
|
390
488
|
|
|
391
489
|
/**
|
|
392
490
|
* Static version of the {@see toObject} method.
|
|
393
|
-
* @param {boolean|undefined} includeInstance Whether to include
|
|
394
|
-
* instance for transitional soy proto support:
|
|
491
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
492
|
+
* the JSPB instance for transitional soy proto support:
|
|
395
493
|
* http://goto/soy-param-migration
|
|
396
494
|
* @param {!proto.ic_base_types.pb.v1.NeuronId} msg The msg instance to transform.
|
|
397
495
|
* @return {!Object}
|
|
@@ -488,41 +586,29 @@ proto.ic_base_types.pb.v1.NeuronId.prototype.getId = function() {
|
|
|
488
586
|
};
|
|
489
587
|
|
|
490
588
|
|
|
491
|
-
/**
|
|
589
|
+
/**
|
|
590
|
+
* @param {string} value
|
|
591
|
+
* @return {!proto.ic_base_types.pb.v1.NeuronId} returns this
|
|
592
|
+
*/
|
|
492
593
|
proto.ic_base_types.pb.v1.NeuronId.prototype.setId = function(value) {
|
|
493
|
-
jspb.Message.setProto3StringIntField(this, 2, value);
|
|
594
|
+
return jspb.Message.setProto3StringIntField(this, 2, value);
|
|
494
595
|
};
|
|
495
596
|
|
|
496
597
|
|
|
497
598
|
|
|
498
|
-
/**
|
|
499
|
-
* Generated by JsPbCodeGenerator.
|
|
500
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
501
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
502
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
503
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
504
|
-
* valid.
|
|
505
|
-
* @extends {jspb.Message}
|
|
506
|
-
* @constructor
|
|
507
|
-
*/
|
|
508
|
-
proto.ic_base_types.pb.v1.ProposalId = function(opt_data) {
|
|
509
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
510
|
-
};
|
|
511
|
-
goog.inherits(proto.ic_base_types.pb.v1.ProposalId, jspb.Message);
|
|
512
|
-
if (goog.DEBUG && !COMPILED) {
|
|
513
|
-
proto.ic_base_types.pb.v1.ProposalId.displayName = 'proto.ic_base_types.pb.v1.ProposalId';
|
|
514
|
-
}
|
|
515
599
|
|
|
516
600
|
|
|
517
601
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
518
602
|
/**
|
|
519
|
-
* Creates an object representation of this proto
|
|
603
|
+
* Creates an object representation of this proto.
|
|
520
604
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
605
|
+
* Optional fields that are not set will be set to undefined.
|
|
521
606
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
522
607
|
* For the list of reserved names please see:
|
|
523
|
-
*
|
|
524
|
-
* @param {boolean=} opt_includeInstance
|
|
525
|
-
* for transitional soy proto support:
|
|
608
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
609
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
610
|
+
* JSPB instance for transitional soy proto support:
|
|
611
|
+
* http://goto/soy-param-migration
|
|
526
612
|
* @return {!Object}
|
|
527
613
|
*/
|
|
528
614
|
proto.ic_base_types.pb.v1.ProposalId.prototype.toObject = function(opt_includeInstance) {
|
|
@@ -532,8 +618,8 @@ proto.ic_base_types.pb.v1.ProposalId.prototype.toObject = function(opt_includeIn
|
|
|
532
618
|
|
|
533
619
|
/**
|
|
534
620
|
* Static version of the {@see toObject} method.
|
|
535
|
-
* @param {boolean|undefined} includeInstance Whether to include
|
|
536
|
-
* instance for transitional soy proto support:
|
|
621
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
622
|
+
* the JSPB instance for transitional soy proto support:
|
|
537
623
|
* http://goto/soy-param-migration
|
|
538
624
|
* @param {!proto.ic_base_types.pb.v1.ProposalId} msg The msg instance to transform.
|
|
539
625
|
* @return {!Object}
|
|
@@ -630,30 +716,16 @@ proto.ic_base_types.pb.v1.ProposalId.prototype.getId = function() {
|
|
|
630
716
|
};
|
|
631
717
|
|
|
632
718
|
|
|
633
|
-
/**
|
|
719
|
+
/**
|
|
720
|
+
* @param {string} value
|
|
721
|
+
* @return {!proto.ic_base_types.pb.v1.ProposalId} returns this
|
|
722
|
+
*/
|
|
634
723
|
proto.ic_base_types.pb.v1.ProposalId.prototype.setId = function(value) {
|
|
635
|
-
jspb.Message.setProto3StringIntField(this, 1, value);
|
|
724
|
+
return jspb.Message.setProto3StringIntField(this, 1, value);
|
|
636
725
|
};
|
|
637
726
|
|
|
638
727
|
|
|
639
728
|
|
|
640
|
-
/**
|
|
641
|
-
* Generated by JsPbCodeGenerator.
|
|
642
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
643
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
644
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
645
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
646
|
-
* valid.
|
|
647
|
-
* @extends {jspb.Message}
|
|
648
|
-
* @constructor
|
|
649
|
-
*/
|
|
650
|
-
proto.ic_base_types.pb.v1.MethodAuthzInfo = function(opt_data) {
|
|
651
|
-
jspb.Message.initialize(this, opt_data, 0, -1, proto.ic_base_types.pb.v1.MethodAuthzInfo.repeatedFields_, null);
|
|
652
|
-
};
|
|
653
|
-
goog.inherits(proto.ic_base_types.pb.v1.MethodAuthzInfo, jspb.Message);
|
|
654
|
-
if (goog.DEBUG && !COMPILED) {
|
|
655
|
-
proto.ic_base_types.pb.v1.MethodAuthzInfo.displayName = 'proto.ic_base_types.pb.v1.MethodAuthzInfo';
|
|
656
|
-
}
|
|
657
729
|
/**
|
|
658
730
|
* List of repeated fields within this message type.
|
|
659
731
|
* @private {!Array<number>}
|
|
@@ -665,13 +737,15 @@ proto.ic_base_types.pb.v1.MethodAuthzInfo.repeatedFields_ = [2];
|
|
|
665
737
|
|
|
666
738
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
667
739
|
/**
|
|
668
|
-
* Creates an object representation of this proto
|
|
740
|
+
* Creates an object representation of this proto.
|
|
669
741
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
742
|
+
* Optional fields that are not set will be set to undefined.
|
|
670
743
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
671
744
|
* For the list of reserved names please see:
|
|
672
|
-
*
|
|
673
|
-
* @param {boolean=} opt_includeInstance
|
|
674
|
-
* for transitional soy proto support:
|
|
745
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
746
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
747
|
+
* JSPB instance for transitional soy proto support:
|
|
748
|
+
* http://goto/soy-param-migration
|
|
675
749
|
* @return {!Object}
|
|
676
750
|
*/
|
|
677
751
|
proto.ic_base_types.pb.v1.MethodAuthzInfo.prototype.toObject = function(opt_includeInstance) {
|
|
@@ -681,8 +755,8 @@ proto.ic_base_types.pb.v1.MethodAuthzInfo.prototype.toObject = function(opt_incl
|
|
|
681
755
|
|
|
682
756
|
/**
|
|
683
757
|
* Static version of the {@see toObject} method.
|
|
684
|
-
* @param {boolean|undefined} includeInstance Whether to include
|
|
685
|
-
* instance for transitional soy proto support:
|
|
758
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
759
|
+
* the JSPB instance for transitional soy proto support:
|
|
686
760
|
* http://goto/soy-param-migration
|
|
687
761
|
* @param {!proto.ic_base_types.pb.v1.MethodAuthzInfo} msg The msg instance to transform.
|
|
688
762
|
* @return {!Object}
|
|
@@ -791,9 +865,12 @@ proto.ic_base_types.pb.v1.MethodAuthzInfo.prototype.getMethodName = function() {
|
|
|
791
865
|
};
|
|
792
866
|
|
|
793
867
|
|
|
794
|
-
/**
|
|
868
|
+
/**
|
|
869
|
+
* @param {string} value
|
|
870
|
+
* @return {!proto.ic_base_types.pb.v1.MethodAuthzInfo} returns this
|
|
871
|
+
*/
|
|
795
872
|
proto.ic_base_types.pb.v1.MethodAuthzInfo.prototype.setMethodName = function(value) {
|
|
796
|
-
jspb.Message.setProto3StringField(this, 1, value);
|
|
873
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
797
874
|
};
|
|
798
875
|
|
|
799
876
|
|
|
@@ -830,44 +907,35 @@ proto.ic_base_types.pb.v1.MethodAuthzInfo.prototype.getPrincipalIdsList_asU8 = f
|
|
|
830
907
|
};
|
|
831
908
|
|
|
832
909
|
|
|
833
|
-
/**
|
|
910
|
+
/**
|
|
911
|
+
* @param {!(Array<!Uint8Array>|Array<string>)} value
|
|
912
|
+
* @return {!proto.ic_base_types.pb.v1.MethodAuthzInfo} returns this
|
|
913
|
+
*/
|
|
834
914
|
proto.ic_base_types.pb.v1.MethodAuthzInfo.prototype.setPrincipalIdsList = function(value) {
|
|
835
|
-
jspb.Message.setField(this, 2, value || []);
|
|
915
|
+
return jspb.Message.setField(this, 2, value || []);
|
|
836
916
|
};
|
|
837
917
|
|
|
838
918
|
|
|
839
919
|
/**
|
|
840
920
|
* @param {!(string|Uint8Array)} value
|
|
841
921
|
* @param {number=} opt_index
|
|
922
|
+
* @return {!proto.ic_base_types.pb.v1.MethodAuthzInfo} returns this
|
|
842
923
|
*/
|
|
843
924
|
proto.ic_base_types.pb.v1.MethodAuthzInfo.prototype.addPrincipalIds = function(value, opt_index) {
|
|
844
|
-
jspb.Message.addToRepeatedField(this, 2, value, opt_index);
|
|
925
|
+
return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
|
|
845
926
|
};
|
|
846
927
|
|
|
847
928
|
|
|
929
|
+
/**
|
|
930
|
+
* Clears the list making it empty but non-null.
|
|
931
|
+
* @return {!proto.ic_base_types.pb.v1.MethodAuthzInfo} returns this
|
|
932
|
+
*/
|
|
848
933
|
proto.ic_base_types.pb.v1.MethodAuthzInfo.prototype.clearPrincipalIdsList = function() {
|
|
849
|
-
this.setPrincipalIdsList([]);
|
|
934
|
+
return this.setPrincipalIdsList([]);
|
|
850
935
|
};
|
|
851
936
|
|
|
852
937
|
|
|
853
938
|
|
|
854
|
-
/**
|
|
855
|
-
* Generated by JsPbCodeGenerator.
|
|
856
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
857
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
858
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
859
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
860
|
-
* valid.
|
|
861
|
-
* @extends {jspb.Message}
|
|
862
|
-
* @constructor
|
|
863
|
-
*/
|
|
864
|
-
proto.ic_base_types.pb.v1.CanisterAuthzInfo = function(opt_data) {
|
|
865
|
-
jspb.Message.initialize(this, opt_data, 0, -1, proto.ic_base_types.pb.v1.CanisterAuthzInfo.repeatedFields_, null);
|
|
866
|
-
};
|
|
867
|
-
goog.inherits(proto.ic_base_types.pb.v1.CanisterAuthzInfo, jspb.Message);
|
|
868
|
-
if (goog.DEBUG && !COMPILED) {
|
|
869
|
-
proto.ic_base_types.pb.v1.CanisterAuthzInfo.displayName = 'proto.ic_base_types.pb.v1.CanisterAuthzInfo';
|
|
870
|
-
}
|
|
871
939
|
/**
|
|
872
940
|
* List of repeated fields within this message type.
|
|
873
941
|
* @private {!Array<number>}
|
|
@@ -879,13 +947,15 @@ proto.ic_base_types.pb.v1.CanisterAuthzInfo.repeatedFields_ = [1];
|
|
|
879
947
|
|
|
880
948
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
881
949
|
/**
|
|
882
|
-
* Creates an object representation of this proto
|
|
950
|
+
* Creates an object representation of this proto.
|
|
883
951
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
952
|
+
* Optional fields that are not set will be set to undefined.
|
|
884
953
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
885
954
|
* For the list of reserved names please see:
|
|
886
|
-
*
|
|
887
|
-
* @param {boolean=} opt_includeInstance
|
|
888
|
-
* for transitional soy proto support:
|
|
955
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
956
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
957
|
+
* JSPB instance for transitional soy proto support:
|
|
958
|
+
* http://goto/soy-param-migration
|
|
889
959
|
* @return {!Object}
|
|
890
960
|
*/
|
|
891
961
|
proto.ic_base_types.pb.v1.CanisterAuthzInfo.prototype.toObject = function(opt_includeInstance) {
|
|
@@ -895,8 +965,8 @@ proto.ic_base_types.pb.v1.CanisterAuthzInfo.prototype.toObject = function(opt_in
|
|
|
895
965
|
|
|
896
966
|
/**
|
|
897
967
|
* Static version of the {@see toObject} method.
|
|
898
|
-
* @param {boolean|undefined} includeInstance Whether to include
|
|
899
|
-
* instance for transitional soy proto support:
|
|
968
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
969
|
+
* the JSPB instance for transitional soy proto support:
|
|
900
970
|
* http://goto/soy-param-migration
|
|
901
971
|
* @param {!proto.ic_base_types.pb.v1.CanisterAuthzInfo} msg The msg instance to transform.
|
|
902
972
|
* @return {!Object}
|
|
@@ -997,9 +1067,12 @@ proto.ic_base_types.pb.v1.CanisterAuthzInfo.prototype.getMethodsAuthzList = func
|
|
|
997
1067
|
};
|
|
998
1068
|
|
|
999
1069
|
|
|
1000
|
-
/**
|
|
1070
|
+
/**
|
|
1071
|
+
* @param {!Array<!proto.ic_base_types.pb.v1.MethodAuthzInfo>} value
|
|
1072
|
+
* @return {!proto.ic_base_types.pb.v1.CanisterAuthzInfo} returns this
|
|
1073
|
+
*/
|
|
1001
1074
|
proto.ic_base_types.pb.v1.CanisterAuthzInfo.prototype.setMethodsAuthzList = function(value) {
|
|
1002
|
-
jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
1075
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
1003
1076
|
};
|
|
1004
1077
|
|
|
1005
1078
|
|
|
@@ -1013,8 +1086,12 @@ proto.ic_base_types.pb.v1.CanisterAuthzInfo.prototype.addMethodsAuthz = function
|
|
|
1013
1086
|
};
|
|
1014
1087
|
|
|
1015
1088
|
|
|
1089
|
+
/**
|
|
1090
|
+
* Clears the list making it empty but non-null.
|
|
1091
|
+
* @return {!proto.ic_base_types.pb.v1.CanisterAuthzInfo} returns this
|
|
1092
|
+
*/
|
|
1016
1093
|
proto.ic_base_types.pb.v1.CanisterAuthzInfo.prototype.clearMethodsAuthzList = function() {
|
|
1017
|
-
this.setMethodsAuthzList([]);
|
|
1094
|
+
return this.setMethodsAuthzList([]);
|
|
1018
1095
|
};
|
|
1019
1096
|
|
|
1020
1097
|
|