@verana-labs/verana-types 0.10.1-dev.2 → 0.10.1-dev.22
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/dist/amino-converter/co.d.ts +3 -0
- package/dist/amino-converter/co.js +164 -0
- package/dist/amino-converter/cs.d.ts +7 -0
- package/dist/amino-converter/cs.js +169 -0
- package/dist/amino-converter/de.d.ts +3 -0
- package/dist/amino-converter/de.js +51 -0
- package/dist/amino-converter/di.d.ts +2 -0
- package/dist/amino-converter/di.js +23 -0
- package/dist/amino-converter/ec.d.ts +4 -0
- package/dist/amino-converter/ec.js +63 -0
- package/dist/amino-converter/gf.d.ts +3 -0
- package/dist/amino-converter/gf.js +48 -0
- package/dist/amino-converter/group.d.ts +3 -0
- package/dist/amino-converter/group.js +91 -0
- package/dist/amino-converter/pp.d.ts +13 -0
- package/dist/amino-converter/pp.js +347 -0
- package/dist/amino-converter/td.d.ts +4 -0
- package/dist/amino-converter/td.js +46 -0
- package/dist/amino-converter/util/helpers.d.ts +30 -0
- package/dist/amino-converter/util/helpers.js +88 -0
- package/dist/amino-converter/xr.d.ts +6 -0
- package/dist/amino-converter/xr.js +106 -0
- package/dist/codec/cosmos/base/v1beta1/coin.d.ts +1 -1
- package/dist/codec/google/protobuf/any.d.ts +143 -0
- package/dist/codec/{verana/dd/v1/params.js → google/protobuf/any.js} +46 -39
- package/dist/codec/google/protobuf/descriptor.d.ts +5 -0
- package/dist/codec/google/protobuf/descriptor.js +16 -2
- package/dist/codec/google/protobuf/timestamp.d.ts +3 -3
- package/dist/codec/verana/{perm/module → co/module/v1}/module.d.ts +5 -2
- package/dist/codec/verana/{perm/module → co/module/v1}/module.js +2 -2
- package/dist/codec/verana/co/v1/genesis.d.ts +29 -0
- package/dist/codec/verana/co/v1/genesis.js +149 -0
- package/dist/codec/verana/co/v1/params.d.ts +29 -0
- package/dist/codec/verana/co/v1/params.js +81 -0
- package/dist/codec/verana/co/v1/query.d.ts +111 -0
- package/dist/codec/verana/{dd → co}/v1/query.js +151 -117
- package/dist/codec/verana/co/v1/tx.d.ts +172 -0
- package/dist/codec/verana/co/v1/tx.js +639 -0
- package/dist/codec/verana/co/v1/types.d.ts +60 -0
- package/dist/codec/verana/co/v1/types.js +384 -0
- package/dist/codec/verana/cs/v1/genesis.d.ts +3 -1
- package/dist/codec/verana/cs/v1/genesis.js +42 -3
- package/dist/codec/verana/cs/v1/query.d.ts +57 -5
- package/dist/codec/verana/cs/v1/query.js +297 -38
- package/dist/codec/verana/cs/v1/tx.d.ts +107 -12
- package/dist/codec/verana/cs/v1/tx.js +548 -64
- package/dist/codec/verana/cs/v1/types.d.ts +75 -16
- package/dist/codec/verana/cs/v1/types.js +419 -82
- package/dist/codec/verana/de/v1/genesis.d.ts +7 -0
- package/dist/codec/verana/de/v1/genesis.js +57 -2
- package/dist/codec/verana/de/v1/query.d.ts +109 -3
- package/dist/codec/verana/de/v1/query.js +396 -10
- package/dist/codec/verana/de/v1/tx.d.ts +22 -10
- package/dist/codec/verana/de/v1/tx.js +16 -16
- package/dist/codec/verana/de/v1/types.d.ts +104 -21
- package/dist/codec/verana/de/v1/types.js +313 -83
- package/dist/codec/verana/di/module/v1/module.d.ts +29 -0
- package/dist/codec/verana/di/module/v1/module.js +98 -0
- package/dist/codec/verana/{dd → di}/v1/genesis.d.ts +5 -4
- package/dist/codec/verana/{dd → di}/v1/genesis.js +11 -13
- package/dist/codec/verana/di/v1/params.d.ts +24 -0
- package/dist/codec/verana/di/v1/params.js +81 -0
- package/dist/codec/verana/di/v1/query.d.ts +99 -0
- package/dist/codec/verana/di/v1/query.js +349 -0
- package/dist/codec/verana/di/v1/tx.d.ts +120 -0
- package/dist/codec/verana/di/v1/tx.js +409 -0
- package/dist/codec/verana/{dd → ec}/module/module.d.ts +1 -1
- package/dist/codec/verana/{dd → ec}/module/module.js +2 -2
- package/dist/codec/verana/{tr → ec}/v1/genesis.d.ts +10 -12
- package/dist/codec/verana/{tr → ec}/v1/genesis.js +16 -56
- package/dist/codec/verana/{tr → ec}/v1/params.d.ts +1 -1
- package/dist/codec/verana/{tr → ec}/v1/params.js +2 -2
- package/dist/codec/verana/ec/v1/query.d.ts +109 -0
- package/dist/codec/verana/{tr → ec}/v1/query.js +69 -71
- package/dist/codec/verana/ec/v1/tx.d.ts +152 -0
- package/dist/codec/verana/{dd → ec}/v1/tx.js +218 -216
- package/dist/codec/verana/ec/v1/types.d.ts +67 -0
- package/dist/codec/verana/ec/v1/types.js +422 -0
- package/dist/codec/verana/gf/module/v1/module.d.ts +29 -0
- package/dist/codec/verana/gf/module/v1/module.js +98 -0
- package/dist/codec/verana/gf/v1/genesis.d.ts +31 -0
- package/dist/codec/verana/gf/v1/genesis.js +179 -0
- package/dist/codec/verana/gf/v1/params.d.ts +28 -0
- package/dist/codec/verana/gf/v1/params.js +81 -0
- package/dist/codec/verana/gf/v1/query.d.ts +108 -0
- package/dist/codec/verana/gf/v1/query.js +462 -0
- package/dist/codec/verana/gf/v1/tx.d.ts +142 -0
- package/dist/codec/verana/gf/v1/tx.js +486 -0
- package/dist/codec/verana/{tr → gf}/v1/types.d.ts +18 -51
- package/dist/codec/verana/gf/v1/types.js +477 -0
- package/dist/codec/verana/{tr → pp}/module/module.d.ts +1 -1
- package/dist/codec/verana/{tr → pp}/module/module.js +2 -2
- package/dist/codec/verana/{perm → pp}/v1/genesis.d.ts +9 -9
- package/dist/codec/verana/{perm → pp}/v1/genesis.js +26 -26
- package/dist/codec/verana/{perm → pp}/v1/params.d.ts +1 -1
- package/dist/codec/verana/{perm → pp}/v1/params.js +2 -2
- package/dist/codec/verana/pp/v1/query.d.ts +220 -0
- package/dist/codec/verana/{perm → pp}/v1/query.js +305 -166
- package/dist/codec/verana/pp/v1/tx.d.ts +479 -0
- package/dist/codec/verana/pp/v1/tx.js +2574 -0
- package/dist/codec/verana/pp/v1/types.d.ts +137 -0
- package/dist/codec/verana/{perm → pp}/v1/types.js +312 -354
- package/dist/codec/verana/td/v1/genesis.d.ts +13 -3
- package/dist/codec/verana/td/v1/genesis.js +151 -35
- package/dist/codec/verana/td/v1/params.d.ts +2 -0
- package/dist/codec/verana/td/v1/params.js +18 -1
- package/dist/codec/verana/td/v1/query.d.ts +1 -1
- package/dist/codec/verana/td/v1/query.js +24 -10
- package/dist/codec/verana/td/v1/tx.d.ts +26 -40
- package/dist/codec/verana/td/v1/tx.js +80 -190
- package/dist/codec/verana/td/v1/types.d.ts +8 -8
- package/dist/codec/verana/td/v1/types.js +54 -69
- package/dist/codec/verana/xr/module/v1/module.d.ts +29 -0
- package/dist/codec/verana/xr/module/v1/module.js +98 -0
- package/dist/codec/verana/xr/v1/genesis.d.ts +34 -0
- package/dist/codec/verana/xr/v1/genesis.js +166 -0
- package/dist/codec/verana/{dd → xr}/v1/params.d.ts +4 -3
- package/dist/codec/verana/xr/v1/params.js +104 -0
- package/dist/codec/verana/xr/v1/query.d.ts +166 -0
- package/dist/codec/verana/xr/v1/query.js +817 -0
- package/dist/codec/verana/xr/v1/tx.d.ts +284 -0
- package/dist/codec/verana/xr/v1/tx.js +1298 -0
- package/dist/helpers/aminoConverters.d.ts +10 -32
- package/dist/helpers/aminoConverters.js +23 -589
- package/dist/index.d.ts +11 -1
- package/dist/index.js +11 -1
- package/dist/signing.d.ts +75 -0
- package/dist/signing.js +147 -0
- package/package.json +32 -6
- package/dist/codec/verana/dd/v1/query.d.ts +0 -108
- package/dist/codec/verana/dd/v1/tx.d.ts +0 -173
- package/dist/codec/verana/dd/v1/types.d.ts +0 -30
- package/dist/codec/verana/dd/v1/types.js +0 -206
- package/dist/codec/verana/perm/v1/query.d.ts +0 -209
- package/dist/codec/verana/perm/v1/tx.d.ts +0 -395
- package/dist/codec/verana/perm/v1/tx.js +0 -1995
- package/dist/codec/verana/perm/v1/types.d.ts +0 -134
- package/dist/codec/verana/tr/v1/query.d.ts +0 -118
- package/dist/codec/verana/tr/v1/tx.d.ts +0 -255
- package/dist/codec/verana/tr/v1/tx.js +0 -956
- package/dist/codec/verana/tr/v1/types.js +0 -839
|
@@ -38,11 +38,12 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
38
38
|
};
|
|
39
39
|
})();
|
|
40
40
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41
|
-
exports.QueryClientImpl = exports.QueryServiceName = exports.QueryListOperatorAuthorizationsResponse = exports.QueryListOperatorAuthorizationsRequest = exports.QueryParamsResponse = exports.QueryParamsRequest = exports.protobufPackage = void 0;
|
|
41
|
+
exports.QueryClientImpl = exports.QueryServiceName = exports.QueryGetVSOperatorAuthorizationResponse = exports.QueryGetVSOperatorAuthorizationRequest = exports.QueryGetOperatorAuthorizationResponse = exports.QueryGetOperatorAuthorizationRequest = exports.QueryListVSOperatorAuthorizationsResponse = exports.QueryListVSOperatorAuthorizationsRequest = exports.QueryListOperatorAuthorizationsResponse = exports.QueryListOperatorAuthorizationsRequest = exports.QueryParamsResponse = exports.QueryParamsRequest = exports.protobufPackage = void 0;
|
|
42
42
|
/* eslint-disable */
|
|
43
43
|
const _m0 = __importStar(require("protobufjs/minimal"));
|
|
44
44
|
const params_1 = require("./params");
|
|
45
45
|
const types_1 = require("./types");
|
|
46
|
+
const Long = require("long");
|
|
46
47
|
exports.protobufPackage = "verana.de.v1";
|
|
47
48
|
function createBaseQueryParamsRequest() {
|
|
48
49
|
return {};
|
|
@@ -134,12 +135,12 @@ exports.QueryParamsResponse = {
|
|
|
134
135
|
},
|
|
135
136
|
};
|
|
136
137
|
function createBaseQueryListOperatorAuthorizationsRequest() {
|
|
137
|
-
return {
|
|
138
|
+
return { corporationId: 0, operator: "", responseMaxSize: 0 };
|
|
138
139
|
}
|
|
139
140
|
exports.QueryListOperatorAuthorizationsRequest = {
|
|
140
141
|
encode(message, writer = _m0.Writer.create()) {
|
|
141
|
-
if (message.
|
|
142
|
-
writer.uint32(
|
|
142
|
+
if (message.corporationId !== 0) {
|
|
143
|
+
writer.uint32(8).uint64(message.corporationId);
|
|
143
144
|
}
|
|
144
145
|
if (message.operator !== "") {
|
|
145
146
|
writer.uint32(18).string(message.operator);
|
|
@@ -157,10 +158,10 @@ exports.QueryListOperatorAuthorizationsRequest = {
|
|
|
157
158
|
const tag = reader.uint32();
|
|
158
159
|
switch (tag >>> 3) {
|
|
159
160
|
case 1:
|
|
160
|
-
if (tag !==
|
|
161
|
+
if (tag !== 8) {
|
|
161
162
|
break;
|
|
162
163
|
}
|
|
163
|
-
message.
|
|
164
|
+
message.corporationId = longToNumber(reader.uint64());
|
|
164
165
|
continue;
|
|
165
166
|
case 2:
|
|
166
167
|
if (tag !== 18) {
|
|
@@ -184,15 +185,15 @@ exports.QueryListOperatorAuthorizationsRequest = {
|
|
|
184
185
|
},
|
|
185
186
|
fromJSON(object) {
|
|
186
187
|
return {
|
|
187
|
-
|
|
188
|
+
corporationId: isSet(object.corporationId) ? globalThis.Number(object.corporationId) : 0,
|
|
188
189
|
operator: isSet(object.operator) ? globalThis.String(object.operator) : "",
|
|
189
190
|
responseMaxSize: isSet(object.responseMaxSize) ? globalThis.Number(object.responseMaxSize) : 0,
|
|
190
191
|
};
|
|
191
192
|
},
|
|
192
193
|
toJSON(message) {
|
|
193
194
|
const obj = {};
|
|
194
|
-
if (message.
|
|
195
|
-
obj.
|
|
195
|
+
if (message.corporationId !== 0) {
|
|
196
|
+
obj.corporationId = Math.round(message.corporationId);
|
|
196
197
|
}
|
|
197
198
|
if (message.operator !== "") {
|
|
198
199
|
obj.operator = message.operator;
|
|
@@ -208,7 +209,7 @@ exports.QueryListOperatorAuthorizationsRequest = {
|
|
|
208
209
|
fromPartial(object) {
|
|
209
210
|
var _a, _b, _c;
|
|
210
211
|
const message = createBaseQueryListOperatorAuthorizationsRequest();
|
|
211
|
-
message.
|
|
212
|
+
message.corporationId = (_a = object.corporationId) !== null && _a !== void 0 ? _a : 0;
|
|
212
213
|
message.operator = (_b = object.operator) !== null && _b !== void 0 ? _b : "";
|
|
213
214
|
message.responseMaxSize = (_c = object.responseMaxSize) !== null && _c !== void 0 ? _c : 0;
|
|
214
215
|
return message;
|
|
@@ -271,6 +272,360 @@ exports.QueryListOperatorAuthorizationsResponse = {
|
|
|
271
272
|
return message;
|
|
272
273
|
},
|
|
273
274
|
};
|
|
275
|
+
function createBaseQueryListVSOperatorAuthorizationsRequest() {
|
|
276
|
+
return { corporationId: 0, vsOperator: "", responseMaxSize: 0 };
|
|
277
|
+
}
|
|
278
|
+
exports.QueryListVSOperatorAuthorizationsRequest = {
|
|
279
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
280
|
+
if (message.corporationId !== 0) {
|
|
281
|
+
writer.uint32(8).uint64(message.corporationId);
|
|
282
|
+
}
|
|
283
|
+
if (message.vsOperator !== "") {
|
|
284
|
+
writer.uint32(18).string(message.vsOperator);
|
|
285
|
+
}
|
|
286
|
+
if (message.responseMaxSize !== 0) {
|
|
287
|
+
writer.uint32(24).uint32(message.responseMaxSize);
|
|
288
|
+
}
|
|
289
|
+
return writer;
|
|
290
|
+
},
|
|
291
|
+
decode(input, length) {
|
|
292
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
293
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
294
|
+
const message = createBaseQueryListVSOperatorAuthorizationsRequest();
|
|
295
|
+
while (reader.pos < end) {
|
|
296
|
+
const tag = reader.uint32();
|
|
297
|
+
switch (tag >>> 3) {
|
|
298
|
+
case 1:
|
|
299
|
+
if (tag !== 8) {
|
|
300
|
+
break;
|
|
301
|
+
}
|
|
302
|
+
message.corporationId = longToNumber(reader.uint64());
|
|
303
|
+
continue;
|
|
304
|
+
case 2:
|
|
305
|
+
if (tag !== 18) {
|
|
306
|
+
break;
|
|
307
|
+
}
|
|
308
|
+
message.vsOperator = reader.string();
|
|
309
|
+
continue;
|
|
310
|
+
case 3:
|
|
311
|
+
if (tag !== 24) {
|
|
312
|
+
break;
|
|
313
|
+
}
|
|
314
|
+
message.responseMaxSize = reader.uint32();
|
|
315
|
+
continue;
|
|
316
|
+
}
|
|
317
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
318
|
+
break;
|
|
319
|
+
}
|
|
320
|
+
reader.skipType(tag & 7);
|
|
321
|
+
}
|
|
322
|
+
return message;
|
|
323
|
+
},
|
|
324
|
+
fromJSON(object) {
|
|
325
|
+
return {
|
|
326
|
+
corporationId: isSet(object.corporationId) ? globalThis.Number(object.corporationId) : 0,
|
|
327
|
+
vsOperator: isSet(object.vsOperator) ? globalThis.String(object.vsOperator) : "",
|
|
328
|
+
responseMaxSize: isSet(object.responseMaxSize) ? globalThis.Number(object.responseMaxSize) : 0,
|
|
329
|
+
};
|
|
330
|
+
},
|
|
331
|
+
toJSON(message) {
|
|
332
|
+
const obj = {};
|
|
333
|
+
if (message.corporationId !== 0) {
|
|
334
|
+
obj.corporationId = Math.round(message.corporationId);
|
|
335
|
+
}
|
|
336
|
+
if (message.vsOperator !== "") {
|
|
337
|
+
obj.vsOperator = message.vsOperator;
|
|
338
|
+
}
|
|
339
|
+
if (message.responseMaxSize !== 0) {
|
|
340
|
+
obj.responseMaxSize = Math.round(message.responseMaxSize);
|
|
341
|
+
}
|
|
342
|
+
return obj;
|
|
343
|
+
},
|
|
344
|
+
create(base) {
|
|
345
|
+
return exports.QueryListVSOperatorAuthorizationsRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
346
|
+
},
|
|
347
|
+
fromPartial(object) {
|
|
348
|
+
var _a, _b, _c;
|
|
349
|
+
const message = createBaseQueryListVSOperatorAuthorizationsRequest();
|
|
350
|
+
message.corporationId = (_a = object.corporationId) !== null && _a !== void 0 ? _a : 0;
|
|
351
|
+
message.vsOperator = (_b = object.vsOperator) !== null && _b !== void 0 ? _b : "";
|
|
352
|
+
message.responseMaxSize = (_c = object.responseMaxSize) !== null && _c !== void 0 ? _c : 0;
|
|
353
|
+
return message;
|
|
354
|
+
},
|
|
355
|
+
};
|
|
356
|
+
function createBaseQueryListVSOperatorAuthorizationsResponse() {
|
|
357
|
+
return { vsOperatorAuthorizations: [] };
|
|
358
|
+
}
|
|
359
|
+
exports.QueryListVSOperatorAuthorizationsResponse = {
|
|
360
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
361
|
+
for (const v of message.vsOperatorAuthorizations) {
|
|
362
|
+
types_1.VSOperatorAuthorization.encode(v, writer.uint32(10).fork()).ldelim();
|
|
363
|
+
}
|
|
364
|
+
return writer;
|
|
365
|
+
},
|
|
366
|
+
decode(input, length) {
|
|
367
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
368
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
369
|
+
const message = createBaseQueryListVSOperatorAuthorizationsResponse();
|
|
370
|
+
while (reader.pos < end) {
|
|
371
|
+
const tag = reader.uint32();
|
|
372
|
+
switch (tag >>> 3) {
|
|
373
|
+
case 1:
|
|
374
|
+
if (tag !== 10) {
|
|
375
|
+
break;
|
|
376
|
+
}
|
|
377
|
+
message.vsOperatorAuthorizations.push(types_1.VSOperatorAuthorization.decode(reader, reader.uint32()));
|
|
378
|
+
continue;
|
|
379
|
+
}
|
|
380
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
381
|
+
break;
|
|
382
|
+
}
|
|
383
|
+
reader.skipType(tag & 7);
|
|
384
|
+
}
|
|
385
|
+
return message;
|
|
386
|
+
},
|
|
387
|
+
fromJSON(object) {
|
|
388
|
+
return {
|
|
389
|
+
vsOperatorAuthorizations: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.vsOperatorAuthorizations)
|
|
390
|
+
? object.vsOperatorAuthorizations.map((e) => types_1.VSOperatorAuthorization.fromJSON(e))
|
|
391
|
+
: [],
|
|
392
|
+
};
|
|
393
|
+
},
|
|
394
|
+
toJSON(message) {
|
|
395
|
+
var _a;
|
|
396
|
+
const obj = {};
|
|
397
|
+
if ((_a = message.vsOperatorAuthorizations) === null || _a === void 0 ? void 0 : _a.length) {
|
|
398
|
+
obj.vsOperatorAuthorizations = message.vsOperatorAuthorizations.map((e) => types_1.VSOperatorAuthorization.toJSON(e));
|
|
399
|
+
}
|
|
400
|
+
return obj;
|
|
401
|
+
},
|
|
402
|
+
create(base) {
|
|
403
|
+
return exports.QueryListVSOperatorAuthorizationsResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
404
|
+
},
|
|
405
|
+
fromPartial(object) {
|
|
406
|
+
var _a;
|
|
407
|
+
const message = createBaseQueryListVSOperatorAuthorizationsResponse();
|
|
408
|
+
message.vsOperatorAuthorizations =
|
|
409
|
+
((_a = object.vsOperatorAuthorizations) === null || _a === void 0 ? void 0 : _a.map((e) => types_1.VSOperatorAuthorization.fromPartial(e))) || [];
|
|
410
|
+
return message;
|
|
411
|
+
},
|
|
412
|
+
};
|
|
413
|
+
function createBaseQueryGetOperatorAuthorizationRequest() {
|
|
414
|
+
return { id: 0 };
|
|
415
|
+
}
|
|
416
|
+
exports.QueryGetOperatorAuthorizationRequest = {
|
|
417
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
418
|
+
if (message.id !== 0) {
|
|
419
|
+
writer.uint32(8).uint64(message.id);
|
|
420
|
+
}
|
|
421
|
+
return writer;
|
|
422
|
+
},
|
|
423
|
+
decode(input, length) {
|
|
424
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
425
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
426
|
+
const message = createBaseQueryGetOperatorAuthorizationRequest();
|
|
427
|
+
while (reader.pos < end) {
|
|
428
|
+
const tag = reader.uint32();
|
|
429
|
+
switch (tag >>> 3) {
|
|
430
|
+
case 1:
|
|
431
|
+
if (tag !== 8) {
|
|
432
|
+
break;
|
|
433
|
+
}
|
|
434
|
+
message.id = longToNumber(reader.uint64());
|
|
435
|
+
continue;
|
|
436
|
+
}
|
|
437
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
438
|
+
break;
|
|
439
|
+
}
|
|
440
|
+
reader.skipType(tag & 7);
|
|
441
|
+
}
|
|
442
|
+
return message;
|
|
443
|
+
},
|
|
444
|
+
fromJSON(object) {
|
|
445
|
+
return { id: isSet(object.id) ? globalThis.Number(object.id) : 0 };
|
|
446
|
+
},
|
|
447
|
+
toJSON(message) {
|
|
448
|
+
const obj = {};
|
|
449
|
+
if (message.id !== 0) {
|
|
450
|
+
obj.id = Math.round(message.id);
|
|
451
|
+
}
|
|
452
|
+
return obj;
|
|
453
|
+
},
|
|
454
|
+
create(base) {
|
|
455
|
+
return exports.QueryGetOperatorAuthorizationRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
456
|
+
},
|
|
457
|
+
fromPartial(object) {
|
|
458
|
+
var _a;
|
|
459
|
+
const message = createBaseQueryGetOperatorAuthorizationRequest();
|
|
460
|
+
message.id = (_a = object.id) !== null && _a !== void 0 ? _a : 0;
|
|
461
|
+
return message;
|
|
462
|
+
},
|
|
463
|
+
};
|
|
464
|
+
function createBaseQueryGetOperatorAuthorizationResponse() {
|
|
465
|
+
return { operatorAuthorization: undefined };
|
|
466
|
+
}
|
|
467
|
+
exports.QueryGetOperatorAuthorizationResponse = {
|
|
468
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
469
|
+
if (message.operatorAuthorization !== undefined) {
|
|
470
|
+
types_1.OperatorAuthorization.encode(message.operatorAuthorization, writer.uint32(10).fork()).ldelim();
|
|
471
|
+
}
|
|
472
|
+
return writer;
|
|
473
|
+
},
|
|
474
|
+
decode(input, length) {
|
|
475
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
476
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
477
|
+
const message = createBaseQueryGetOperatorAuthorizationResponse();
|
|
478
|
+
while (reader.pos < end) {
|
|
479
|
+
const tag = reader.uint32();
|
|
480
|
+
switch (tag >>> 3) {
|
|
481
|
+
case 1:
|
|
482
|
+
if (tag !== 10) {
|
|
483
|
+
break;
|
|
484
|
+
}
|
|
485
|
+
message.operatorAuthorization = types_1.OperatorAuthorization.decode(reader, reader.uint32());
|
|
486
|
+
continue;
|
|
487
|
+
}
|
|
488
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
489
|
+
break;
|
|
490
|
+
}
|
|
491
|
+
reader.skipType(tag & 7);
|
|
492
|
+
}
|
|
493
|
+
return message;
|
|
494
|
+
},
|
|
495
|
+
fromJSON(object) {
|
|
496
|
+
return {
|
|
497
|
+
operatorAuthorization: isSet(object.operatorAuthorization)
|
|
498
|
+
? types_1.OperatorAuthorization.fromJSON(object.operatorAuthorization)
|
|
499
|
+
: undefined,
|
|
500
|
+
};
|
|
501
|
+
},
|
|
502
|
+
toJSON(message) {
|
|
503
|
+
const obj = {};
|
|
504
|
+
if (message.operatorAuthorization !== undefined) {
|
|
505
|
+
obj.operatorAuthorization = types_1.OperatorAuthorization.toJSON(message.operatorAuthorization);
|
|
506
|
+
}
|
|
507
|
+
return obj;
|
|
508
|
+
},
|
|
509
|
+
create(base) {
|
|
510
|
+
return exports.QueryGetOperatorAuthorizationResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
511
|
+
},
|
|
512
|
+
fromPartial(object) {
|
|
513
|
+
const message = createBaseQueryGetOperatorAuthorizationResponse();
|
|
514
|
+
message.operatorAuthorization =
|
|
515
|
+
(object.operatorAuthorization !== undefined && object.operatorAuthorization !== null)
|
|
516
|
+
? types_1.OperatorAuthorization.fromPartial(object.operatorAuthorization)
|
|
517
|
+
: undefined;
|
|
518
|
+
return message;
|
|
519
|
+
},
|
|
520
|
+
};
|
|
521
|
+
function createBaseQueryGetVSOperatorAuthorizationRequest() {
|
|
522
|
+
return { id: 0 };
|
|
523
|
+
}
|
|
524
|
+
exports.QueryGetVSOperatorAuthorizationRequest = {
|
|
525
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
526
|
+
if (message.id !== 0) {
|
|
527
|
+
writer.uint32(8).uint64(message.id);
|
|
528
|
+
}
|
|
529
|
+
return writer;
|
|
530
|
+
},
|
|
531
|
+
decode(input, length) {
|
|
532
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
533
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
534
|
+
const message = createBaseQueryGetVSOperatorAuthorizationRequest();
|
|
535
|
+
while (reader.pos < end) {
|
|
536
|
+
const tag = reader.uint32();
|
|
537
|
+
switch (tag >>> 3) {
|
|
538
|
+
case 1:
|
|
539
|
+
if (tag !== 8) {
|
|
540
|
+
break;
|
|
541
|
+
}
|
|
542
|
+
message.id = longToNumber(reader.uint64());
|
|
543
|
+
continue;
|
|
544
|
+
}
|
|
545
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
546
|
+
break;
|
|
547
|
+
}
|
|
548
|
+
reader.skipType(tag & 7);
|
|
549
|
+
}
|
|
550
|
+
return message;
|
|
551
|
+
},
|
|
552
|
+
fromJSON(object) {
|
|
553
|
+
return { id: isSet(object.id) ? globalThis.Number(object.id) : 0 };
|
|
554
|
+
},
|
|
555
|
+
toJSON(message) {
|
|
556
|
+
const obj = {};
|
|
557
|
+
if (message.id !== 0) {
|
|
558
|
+
obj.id = Math.round(message.id);
|
|
559
|
+
}
|
|
560
|
+
return obj;
|
|
561
|
+
},
|
|
562
|
+
create(base) {
|
|
563
|
+
return exports.QueryGetVSOperatorAuthorizationRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
564
|
+
},
|
|
565
|
+
fromPartial(object) {
|
|
566
|
+
var _a;
|
|
567
|
+
const message = createBaseQueryGetVSOperatorAuthorizationRequest();
|
|
568
|
+
message.id = (_a = object.id) !== null && _a !== void 0 ? _a : 0;
|
|
569
|
+
return message;
|
|
570
|
+
},
|
|
571
|
+
};
|
|
572
|
+
function createBaseQueryGetVSOperatorAuthorizationResponse() {
|
|
573
|
+
return { vsOperatorAuthorization: undefined };
|
|
574
|
+
}
|
|
575
|
+
exports.QueryGetVSOperatorAuthorizationResponse = {
|
|
576
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
577
|
+
if (message.vsOperatorAuthorization !== undefined) {
|
|
578
|
+
types_1.VSOperatorAuthorization.encode(message.vsOperatorAuthorization, writer.uint32(10).fork()).ldelim();
|
|
579
|
+
}
|
|
580
|
+
return writer;
|
|
581
|
+
},
|
|
582
|
+
decode(input, length) {
|
|
583
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
584
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
585
|
+
const message = createBaseQueryGetVSOperatorAuthorizationResponse();
|
|
586
|
+
while (reader.pos < end) {
|
|
587
|
+
const tag = reader.uint32();
|
|
588
|
+
switch (tag >>> 3) {
|
|
589
|
+
case 1:
|
|
590
|
+
if (tag !== 10) {
|
|
591
|
+
break;
|
|
592
|
+
}
|
|
593
|
+
message.vsOperatorAuthorization = types_1.VSOperatorAuthorization.decode(reader, reader.uint32());
|
|
594
|
+
continue;
|
|
595
|
+
}
|
|
596
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
597
|
+
break;
|
|
598
|
+
}
|
|
599
|
+
reader.skipType(tag & 7);
|
|
600
|
+
}
|
|
601
|
+
return message;
|
|
602
|
+
},
|
|
603
|
+
fromJSON(object) {
|
|
604
|
+
return {
|
|
605
|
+
vsOperatorAuthorization: isSet(object.vsOperatorAuthorization)
|
|
606
|
+
? types_1.VSOperatorAuthorization.fromJSON(object.vsOperatorAuthorization)
|
|
607
|
+
: undefined,
|
|
608
|
+
};
|
|
609
|
+
},
|
|
610
|
+
toJSON(message) {
|
|
611
|
+
const obj = {};
|
|
612
|
+
if (message.vsOperatorAuthorization !== undefined) {
|
|
613
|
+
obj.vsOperatorAuthorization = types_1.VSOperatorAuthorization.toJSON(message.vsOperatorAuthorization);
|
|
614
|
+
}
|
|
615
|
+
return obj;
|
|
616
|
+
},
|
|
617
|
+
create(base) {
|
|
618
|
+
return exports.QueryGetVSOperatorAuthorizationResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
619
|
+
},
|
|
620
|
+
fromPartial(object) {
|
|
621
|
+
const message = createBaseQueryGetVSOperatorAuthorizationResponse();
|
|
622
|
+
message.vsOperatorAuthorization =
|
|
623
|
+
(object.vsOperatorAuthorization !== undefined && object.vsOperatorAuthorization !== null)
|
|
624
|
+
? types_1.VSOperatorAuthorization.fromPartial(object.vsOperatorAuthorization)
|
|
625
|
+
: undefined;
|
|
626
|
+
return message;
|
|
627
|
+
},
|
|
628
|
+
};
|
|
274
629
|
exports.QueryServiceName = "verana.de.v1.Query";
|
|
275
630
|
class QueryClientImpl {
|
|
276
631
|
constructor(rpc, opts) {
|
|
@@ -278,6 +633,9 @@ class QueryClientImpl {
|
|
|
278
633
|
this.rpc = rpc;
|
|
279
634
|
this.Params = this.Params.bind(this);
|
|
280
635
|
this.ListOperatorAuthorizations = this.ListOperatorAuthorizations.bind(this);
|
|
636
|
+
this.ListVSOperatorAuthorizations = this.ListVSOperatorAuthorizations.bind(this);
|
|
637
|
+
this.GetOperatorAuthorization = this.GetOperatorAuthorization.bind(this);
|
|
638
|
+
this.GetVSOperatorAuthorization = this.GetVSOperatorAuthorization.bind(this);
|
|
281
639
|
}
|
|
282
640
|
Params(request) {
|
|
283
641
|
const data = exports.QueryParamsRequest.encode(request).finish();
|
|
@@ -289,8 +647,36 @@ class QueryClientImpl {
|
|
|
289
647
|
const promise = this.rpc.request(this.service, "ListOperatorAuthorizations", data);
|
|
290
648
|
return promise.then((data) => exports.QueryListOperatorAuthorizationsResponse.decode(_m0.Reader.create(data)));
|
|
291
649
|
}
|
|
650
|
+
ListVSOperatorAuthorizations(request) {
|
|
651
|
+
const data = exports.QueryListVSOperatorAuthorizationsRequest.encode(request).finish();
|
|
652
|
+
const promise = this.rpc.request(this.service, "ListVSOperatorAuthorizations", data);
|
|
653
|
+
return promise.then((data) => exports.QueryListVSOperatorAuthorizationsResponse.decode(_m0.Reader.create(data)));
|
|
654
|
+
}
|
|
655
|
+
GetOperatorAuthorization(request) {
|
|
656
|
+
const data = exports.QueryGetOperatorAuthorizationRequest.encode(request).finish();
|
|
657
|
+
const promise = this.rpc.request(this.service, "GetOperatorAuthorization", data);
|
|
658
|
+
return promise.then((data) => exports.QueryGetOperatorAuthorizationResponse.decode(_m0.Reader.create(data)));
|
|
659
|
+
}
|
|
660
|
+
GetVSOperatorAuthorization(request) {
|
|
661
|
+
const data = exports.QueryGetVSOperatorAuthorizationRequest.encode(request).finish();
|
|
662
|
+
const promise = this.rpc.request(this.service, "GetVSOperatorAuthorization", data);
|
|
663
|
+
return promise.then((data) => exports.QueryGetVSOperatorAuthorizationResponse.decode(_m0.Reader.create(data)));
|
|
664
|
+
}
|
|
292
665
|
}
|
|
293
666
|
exports.QueryClientImpl = QueryClientImpl;
|
|
667
|
+
function longToNumber(long) {
|
|
668
|
+
if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
|
|
669
|
+
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
670
|
+
}
|
|
671
|
+
if (long.lt(globalThis.Number.MIN_SAFE_INTEGER)) {
|
|
672
|
+
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
673
|
+
}
|
|
674
|
+
return long.toNumber();
|
|
675
|
+
}
|
|
676
|
+
if (_m0.util.Long !== Long) {
|
|
677
|
+
_m0.util.Long = Long;
|
|
678
|
+
_m0.configure();
|
|
679
|
+
}
|
|
294
680
|
function isSet(value) {
|
|
295
681
|
return value !== null && value !== undefined;
|
|
296
682
|
}
|
|
@@ -22,14 +22,25 @@ export interface MsgUpdateParamsResponse {
|
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
24
|
* [MOD-DE-MSG-3] MsgGrantOperatorAuthorization grants an operator authorization
|
|
25
|
-
* to a grantee on behalf of
|
|
25
|
+
* to a grantee on behalf of a corporation.
|
|
26
|
+
*
|
|
27
|
+
* Signer semantics (spec draft 13 "corporation + operator OR group proposal"):
|
|
28
|
+
* - Primary signer is `corporation` — either a group policy address (group
|
|
29
|
+
* proposal path) or a plain account that delegates to the corporation.
|
|
30
|
+
* - When `operator` is non-empty, the AUTHZ-CHECK in the handler verifies
|
|
31
|
+
* the operator's delegation from the corporation covers this message type.
|
|
32
|
+
* - When `operator` is empty, the corporation is acting alone (group proposal
|
|
33
|
+
* path) and AUTHZ-CHECK is skipped.
|
|
34
|
+
* Cosmos SDK requires a single `cosmos.msg.v1.signer` field so the dual-signer
|
|
35
|
+
* semantics from the spec are enforced at the handler level, not at ante.
|
|
26
36
|
*/
|
|
27
37
|
export interface MsgGrantOperatorAuthorization {
|
|
28
|
-
/**
|
|
29
|
-
|
|
38
|
+
/** corporation is the group account granting the authorization. */
|
|
39
|
+
corporation: string;
|
|
30
40
|
/**
|
|
31
|
-
* operator is the optional account authorized by the
|
|
32
|
-
* Msg.
|
|
41
|
+
* operator is the optional account authorized by the corporation to run this
|
|
42
|
+
* Msg on its behalf. Empty when the message is signed directly by the
|
|
43
|
+
* corporation via a group proposal.
|
|
33
44
|
*/
|
|
34
45
|
operator: string;
|
|
35
46
|
/** grantee is the account that receives the authorization from authority. */
|
|
@@ -69,14 +80,15 @@ export interface MsgGrantOperatorAuthorizationResponse {
|
|
|
69
80
|
}
|
|
70
81
|
/**
|
|
71
82
|
* [MOD-DE-MSG-4] MsgRevokeOperatorAuthorization revokes an operator
|
|
72
|
-
* authorization for a grantee on behalf of
|
|
83
|
+
* authorization for a grantee on behalf of a corporation. Same signer
|
|
84
|
+
* semantics as MsgGrantOperatorAuthorization (see above).
|
|
73
85
|
*/
|
|
74
86
|
export interface MsgRevokeOperatorAuthorization {
|
|
75
|
-
/**
|
|
76
|
-
|
|
87
|
+
/** corporation is the group account revoking the authorization. */
|
|
88
|
+
corporation: string;
|
|
77
89
|
/**
|
|
78
|
-
* operator is the optional account authorized by the
|
|
79
|
-
* Msg.
|
|
90
|
+
* operator is the optional account authorized by the corporation to run this
|
|
91
|
+
* Msg on its behalf.
|
|
80
92
|
*/
|
|
81
93
|
operator: string;
|
|
82
94
|
/** grantee is the account whose authorization is being revoked. */
|
|
@@ -154,7 +154,7 @@ exports.MsgUpdateParamsResponse = {
|
|
|
154
154
|
};
|
|
155
155
|
function createBaseMsgGrantOperatorAuthorization() {
|
|
156
156
|
return {
|
|
157
|
-
|
|
157
|
+
corporation: "",
|
|
158
158
|
operator: "",
|
|
159
159
|
grantee: "",
|
|
160
160
|
msgTypes: [],
|
|
@@ -168,8 +168,8 @@ function createBaseMsgGrantOperatorAuthorization() {
|
|
|
168
168
|
}
|
|
169
169
|
exports.MsgGrantOperatorAuthorization = {
|
|
170
170
|
encode(message, writer = _m0.Writer.create()) {
|
|
171
|
-
if (message.
|
|
172
|
-
writer.uint32(10).string(message.
|
|
171
|
+
if (message.corporation !== "") {
|
|
172
|
+
writer.uint32(10).string(message.corporation);
|
|
173
173
|
}
|
|
174
174
|
if (message.operator !== "") {
|
|
175
175
|
writer.uint32(18).string(message.operator);
|
|
@@ -211,7 +211,7 @@ exports.MsgGrantOperatorAuthorization = {
|
|
|
211
211
|
if (tag !== 10) {
|
|
212
212
|
break;
|
|
213
213
|
}
|
|
214
|
-
message.
|
|
214
|
+
message.corporation = reader.string();
|
|
215
215
|
continue;
|
|
216
216
|
case 2:
|
|
217
217
|
if (tag !== 18) {
|
|
@@ -277,7 +277,7 @@ exports.MsgGrantOperatorAuthorization = {
|
|
|
277
277
|
},
|
|
278
278
|
fromJSON(object) {
|
|
279
279
|
return {
|
|
280
|
-
|
|
280
|
+
corporation: isSet(object.corporation) ? globalThis.String(object.corporation) : "",
|
|
281
281
|
operator: isSet(object.operator) ? globalThis.String(object.operator) : "",
|
|
282
282
|
grantee: isSet(object.grantee) ? globalThis.String(object.grantee) : "",
|
|
283
283
|
msgTypes: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.msgTypes) ? object.msgTypes.map((e) => globalThis.String(e)) : [],
|
|
@@ -300,8 +300,8 @@ exports.MsgGrantOperatorAuthorization = {
|
|
|
300
300
|
toJSON(message) {
|
|
301
301
|
var _a, _b, _c;
|
|
302
302
|
const obj = {};
|
|
303
|
-
if (message.
|
|
304
|
-
obj.
|
|
303
|
+
if (message.corporation !== "") {
|
|
304
|
+
obj.corporation = message.corporation;
|
|
305
305
|
}
|
|
306
306
|
if (message.operator !== "") {
|
|
307
307
|
obj.operator = message.operator;
|
|
@@ -338,7 +338,7 @@ exports.MsgGrantOperatorAuthorization = {
|
|
|
338
338
|
fromPartial(object) {
|
|
339
339
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
340
340
|
const message = createBaseMsgGrantOperatorAuthorization();
|
|
341
|
-
message.
|
|
341
|
+
message.corporation = (_a = object.corporation) !== null && _a !== void 0 ? _a : "";
|
|
342
342
|
message.operator = (_b = object.operator) !== null && _b !== void 0 ? _b : "";
|
|
343
343
|
message.grantee = (_c = object.grantee) !== null && _c !== void 0 ? _c : "";
|
|
344
344
|
message.msgTypes = ((_d = object.msgTypes) === null || _d === void 0 ? void 0 : _d.map((e) => e)) || [];
|
|
@@ -395,12 +395,12 @@ exports.MsgGrantOperatorAuthorizationResponse = {
|
|
|
395
395
|
},
|
|
396
396
|
};
|
|
397
397
|
function createBaseMsgRevokeOperatorAuthorization() {
|
|
398
|
-
return {
|
|
398
|
+
return { corporation: "", operator: "", grantee: "" };
|
|
399
399
|
}
|
|
400
400
|
exports.MsgRevokeOperatorAuthorization = {
|
|
401
401
|
encode(message, writer = _m0.Writer.create()) {
|
|
402
|
-
if (message.
|
|
403
|
-
writer.uint32(10).string(message.
|
|
402
|
+
if (message.corporation !== "") {
|
|
403
|
+
writer.uint32(10).string(message.corporation);
|
|
404
404
|
}
|
|
405
405
|
if (message.operator !== "") {
|
|
406
406
|
writer.uint32(18).string(message.operator);
|
|
@@ -421,7 +421,7 @@ exports.MsgRevokeOperatorAuthorization = {
|
|
|
421
421
|
if (tag !== 10) {
|
|
422
422
|
break;
|
|
423
423
|
}
|
|
424
|
-
message.
|
|
424
|
+
message.corporation = reader.string();
|
|
425
425
|
continue;
|
|
426
426
|
case 2:
|
|
427
427
|
if (tag !== 18) {
|
|
@@ -445,15 +445,15 @@ exports.MsgRevokeOperatorAuthorization = {
|
|
|
445
445
|
},
|
|
446
446
|
fromJSON(object) {
|
|
447
447
|
return {
|
|
448
|
-
|
|
448
|
+
corporation: isSet(object.corporation) ? globalThis.String(object.corporation) : "",
|
|
449
449
|
operator: isSet(object.operator) ? globalThis.String(object.operator) : "",
|
|
450
450
|
grantee: isSet(object.grantee) ? globalThis.String(object.grantee) : "",
|
|
451
451
|
};
|
|
452
452
|
},
|
|
453
453
|
toJSON(message) {
|
|
454
454
|
const obj = {};
|
|
455
|
-
if (message.
|
|
456
|
-
obj.
|
|
455
|
+
if (message.corporation !== "") {
|
|
456
|
+
obj.corporation = message.corporation;
|
|
457
457
|
}
|
|
458
458
|
if (message.operator !== "") {
|
|
459
459
|
obj.operator = message.operator;
|
|
@@ -469,7 +469,7 @@ exports.MsgRevokeOperatorAuthorization = {
|
|
|
469
469
|
fromPartial(object) {
|
|
470
470
|
var _a, _b, _c;
|
|
471
471
|
const message = createBaseMsgRevokeOperatorAuthorization();
|
|
472
|
-
message.
|
|
472
|
+
message.corporation = (_a = object.corporation) !== null && _a !== void 0 ? _a : "";
|
|
473
473
|
message.operator = (_b = object.operator) !== null && _b !== void 0 ? _b : "";
|
|
474
474
|
message.grantee = (_c = object.grantee) !== null && _c !== void 0 ? _c : "";
|
|
475
475
|
return message;
|