@verana-labs/verana-types 0.10.1-dev.12 → 0.10.1-dev.14
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/dist/amino-converter/co.d.ts +3 -0
- package/dist/amino-converter/co.js +164 -0
- package/dist/amino-converter/cs.js +2 -2
- package/dist/amino-converter/ec.d.ts +4 -0
- package/dist/amino-converter/ec.js +63 -0
- package/dist/amino-converter/{tr.d.ts → gf.d.ts} +0 -3
- 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 +12 -0
- package/dist/amino-converter/{perm.js → pp.js} +95 -79
- package/dist/codec/verana/cs/v1/query.d.ts +2 -2
- package/dist/codec/verana/cs/v1/query.js +21 -21
- package/dist/codec/verana/cs/v1/tx.d.ts +1 -1
- package/dist/codec/verana/cs/v1/tx.js +22 -22
- package/dist/codec/verana/cs/v1/types.d.ts +6 -2
- package/dist/codec/verana/cs/v1/types.js +30 -30
- package/dist/codec/verana/de/v1/query.d.ts +72 -4
- package/dist/codec/verana/de/v1/query.js +261 -19
- package/dist/codec/verana/de/v1/types.d.ts +124 -34
- package/dist/codec/verana/de/v1/types.js +361 -109
- package/dist/codec/verana/{tr → ec}/module/module.d.ts +1 -1
- package/dist/codec/verana/{tr → 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/{tr → ec}/v1/tx.js +85 -403
- 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/{perm → pp}/module/module.d.ts +1 -1
- package/dist/codec/verana/{perm → 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 +208 -0
- package/dist/codec/verana/{perm → pp}/v1/query.js +148 -148
- package/dist/codec/verana/pp/v1/tx.d.ts +447 -0
- package/dist/codec/verana/{perm → pp}/v1/tx.js +412 -302
- package/dist/codec/verana/pp/v1/types.d.ts +137 -0
- package/dist/codec/verana/{perm → pp}/v1/types.js +270 -345
- package/dist/helpers/aminoConverters.d.ts +6 -4
- package/dist/helpers/aminoConverters.js +6 -4
- package/dist/index.d.ts +4 -2
- package/dist/index.js +4 -2
- package/dist/signing.d.ts +36 -32
- package/dist/signing.js +85 -68
- package/package.json +1 -1
- package/dist/amino-converter/perm.d.ts +0 -12
- package/dist/amino-converter/tr.js +0 -107
- package/dist/codec/verana/perm/v1/query.d.ts +0 -208
- package/dist/codec/verana/perm/v1/tx.d.ts +0 -441
- package/dist/codec/verana/perm/v1/types.d.ts +0 -134
- package/dist/codec/verana/tr/v1/query.d.ts +0 -117
- package/dist/codec/verana/tr/v1/tx.d.ts +0 -255
- package/dist/codec/verana/tr/v1/types.d.ts +0 -105
- package/dist/codec/verana/tr/v1/types.js +0 -809
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// versions:
|
|
4
4
|
// protoc-gen-ts_proto v1.181.2
|
|
5
5
|
// protoc unknown
|
|
6
|
-
// source: verana/
|
|
6
|
+
// source: verana/pp/v1/query.proto
|
|
7
7
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
8
8
|
if (k2 === undefined) k2 = k;
|
|
9
9
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -38,14 +38,14 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
38
38
|
};
|
|
39
39
|
})();
|
|
40
40
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41
|
-
exports.QueryClientImpl = exports.QueryServiceName = exports.QueryFindBeneficiariesResponse = exports.QueryFindBeneficiariesRequest = exports.
|
|
41
|
+
exports.QueryClientImpl = exports.QueryServiceName = exports.QueryFindBeneficiariesResponse = exports.QueryFindBeneficiariesRequest = exports.QueryFindParticipantsWithDIDResponse = exports.QueryFindParticipantsWithDIDRequest = exports.QueryListParticipantSessionsResponse = exports.QueryListParticipantSessionsRequest = exports.QueryGetParticipantSessionResponse = exports.QueryGetParticipantSessionRequest = exports.QueryGetParticipantResponse = exports.QueryGetParticipantRequest = exports.QueryListParticipantsResponse = exports.QueryListParticipantsRequest = exports.QueryParamsResponse = exports.QueryParamsRequest = exports.protobufPackage = void 0;
|
|
42
42
|
/* eslint-disable */
|
|
43
43
|
const _m0 = __importStar(require("protobufjs/minimal"));
|
|
44
44
|
const timestamp_1 = require("../../../google/protobuf/timestamp");
|
|
45
45
|
const params_1 = require("./params");
|
|
46
46
|
const types_1 = require("./types");
|
|
47
47
|
const Long = require("long");
|
|
48
|
-
exports.protobufPackage = "verana.
|
|
48
|
+
exports.protobufPackage = "verana.pp.v1";
|
|
49
49
|
function createBaseQueryParamsRequest() {
|
|
50
50
|
return {};
|
|
51
51
|
}
|
|
@@ -135,10 +135,10 @@ exports.QueryParamsResponse = {
|
|
|
135
135
|
return message;
|
|
136
136
|
},
|
|
137
137
|
};
|
|
138
|
-
function
|
|
138
|
+
function createBaseQueryListParticipantsRequest() {
|
|
139
139
|
return { modifiedAfter: undefined, responseMaxSize: 0 };
|
|
140
140
|
}
|
|
141
|
-
exports.
|
|
141
|
+
exports.QueryListParticipantsRequest = {
|
|
142
142
|
encode(message, writer = _m0.Writer.create()) {
|
|
143
143
|
if (message.modifiedAfter !== undefined) {
|
|
144
144
|
timestamp_1.Timestamp.encode(toTimestamp(message.modifiedAfter), writer.uint32(10).fork()).ldelim();
|
|
@@ -151,7 +151,7 @@ exports.QueryListPermissionsRequest = {
|
|
|
151
151
|
decode(input, length) {
|
|
152
152
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
153
153
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
154
|
-
const message =
|
|
154
|
+
const message = createBaseQueryListParticipantsRequest();
|
|
155
155
|
while (reader.pos < end) {
|
|
156
156
|
const tag = reader.uint32();
|
|
157
157
|
switch (tag >>> 3) {
|
|
@@ -192,30 +192,30 @@ exports.QueryListPermissionsRequest = {
|
|
|
192
192
|
return obj;
|
|
193
193
|
},
|
|
194
194
|
create(base) {
|
|
195
|
-
return exports.
|
|
195
|
+
return exports.QueryListParticipantsRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
196
196
|
},
|
|
197
197
|
fromPartial(object) {
|
|
198
198
|
var _a, _b;
|
|
199
|
-
const message =
|
|
199
|
+
const message = createBaseQueryListParticipantsRequest();
|
|
200
200
|
message.modifiedAfter = (_a = object.modifiedAfter) !== null && _a !== void 0 ? _a : undefined;
|
|
201
201
|
message.responseMaxSize = (_b = object.responseMaxSize) !== null && _b !== void 0 ? _b : 0;
|
|
202
202
|
return message;
|
|
203
203
|
},
|
|
204
204
|
};
|
|
205
|
-
function
|
|
206
|
-
return {
|
|
205
|
+
function createBaseQueryListParticipantsResponse() {
|
|
206
|
+
return { participants: [] };
|
|
207
207
|
}
|
|
208
|
-
exports.
|
|
208
|
+
exports.QueryListParticipantsResponse = {
|
|
209
209
|
encode(message, writer = _m0.Writer.create()) {
|
|
210
|
-
for (const v of message.
|
|
211
|
-
types_1.
|
|
210
|
+
for (const v of message.participants) {
|
|
211
|
+
types_1.Participant.encode(v, writer.uint32(10).fork()).ldelim();
|
|
212
212
|
}
|
|
213
213
|
return writer;
|
|
214
214
|
},
|
|
215
215
|
decode(input, length) {
|
|
216
216
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
217
217
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
218
|
-
const message =
|
|
218
|
+
const message = createBaseQueryListParticipantsResponse();
|
|
219
219
|
while (reader.pos < end) {
|
|
220
220
|
const tag = reader.uint32();
|
|
221
221
|
switch (tag >>> 3) {
|
|
@@ -223,7 +223,7 @@ exports.QueryListPermissionsResponse = {
|
|
|
223
223
|
if (tag !== 10) {
|
|
224
224
|
break;
|
|
225
225
|
}
|
|
226
|
-
message.
|
|
226
|
+
message.participants.push(types_1.Participant.decode(reader, reader.uint32()));
|
|
227
227
|
continue;
|
|
228
228
|
}
|
|
229
229
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -235,33 +235,33 @@ exports.QueryListPermissionsResponse = {
|
|
|
235
235
|
},
|
|
236
236
|
fromJSON(object) {
|
|
237
237
|
return {
|
|
238
|
-
|
|
239
|
-
? object.
|
|
238
|
+
participants: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.participants)
|
|
239
|
+
? object.participants.map((e) => types_1.Participant.fromJSON(e))
|
|
240
240
|
: [],
|
|
241
241
|
};
|
|
242
242
|
},
|
|
243
243
|
toJSON(message) {
|
|
244
244
|
var _a;
|
|
245
245
|
const obj = {};
|
|
246
|
-
if ((_a = message.
|
|
247
|
-
obj.
|
|
246
|
+
if ((_a = message.participants) === null || _a === void 0 ? void 0 : _a.length) {
|
|
247
|
+
obj.participants = message.participants.map((e) => types_1.Participant.toJSON(e));
|
|
248
248
|
}
|
|
249
249
|
return obj;
|
|
250
250
|
},
|
|
251
251
|
create(base) {
|
|
252
|
-
return exports.
|
|
252
|
+
return exports.QueryListParticipantsResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
253
253
|
},
|
|
254
254
|
fromPartial(object) {
|
|
255
255
|
var _a;
|
|
256
|
-
const message =
|
|
257
|
-
message.
|
|
256
|
+
const message = createBaseQueryListParticipantsResponse();
|
|
257
|
+
message.participants = ((_a = object.participants) === null || _a === void 0 ? void 0 : _a.map((e) => types_1.Participant.fromPartial(e))) || [];
|
|
258
258
|
return message;
|
|
259
259
|
},
|
|
260
260
|
};
|
|
261
|
-
function
|
|
261
|
+
function createBaseQueryGetParticipantRequest() {
|
|
262
262
|
return { id: 0 };
|
|
263
263
|
}
|
|
264
|
-
exports.
|
|
264
|
+
exports.QueryGetParticipantRequest = {
|
|
265
265
|
encode(message, writer = _m0.Writer.create()) {
|
|
266
266
|
if (message.id !== 0) {
|
|
267
267
|
writer.uint32(8).uint64(message.id);
|
|
@@ -271,7 +271,7 @@ exports.QueryGetPermissionRequest = {
|
|
|
271
271
|
decode(input, length) {
|
|
272
272
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
273
273
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
274
|
-
const message =
|
|
274
|
+
const message = createBaseQueryGetParticipantRequest();
|
|
275
275
|
while (reader.pos < end) {
|
|
276
276
|
const tag = reader.uint32();
|
|
277
277
|
switch (tag >>> 3) {
|
|
@@ -300,29 +300,29 @@ exports.QueryGetPermissionRequest = {
|
|
|
300
300
|
return obj;
|
|
301
301
|
},
|
|
302
302
|
create(base) {
|
|
303
|
-
return exports.
|
|
303
|
+
return exports.QueryGetParticipantRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
304
304
|
},
|
|
305
305
|
fromPartial(object) {
|
|
306
306
|
var _a;
|
|
307
|
-
const message =
|
|
307
|
+
const message = createBaseQueryGetParticipantRequest();
|
|
308
308
|
message.id = (_a = object.id) !== null && _a !== void 0 ? _a : 0;
|
|
309
309
|
return message;
|
|
310
310
|
},
|
|
311
311
|
};
|
|
312
|
-
function
|
|
313
|
-
return {
|
|
312
|
+
function createBaseQueryGetParticipantResponse() {
|
|
313
|
+
return { participant: undefined };
|
|
314
314
|
}
|
|
315
|
-
exports.
|
|
315
|
+
exports.QueryGetParticipantResponse = {
|
|
316
316
|
encode(message, writer = _m0.Writer.create()) {
|
|
317
|
-
if (message.
|
|
318
|
-
types_1.
|
|
317
|
+
if (message.participant !== undefined) {
|
|
318
|
+
types_1.Participant.encode(message.participant, writer.uint32(10).fork()).ldelim();
|
|
319
319
|
}
|
|
320
320
|
return writer;
|
|
321
321
|
},
|
|
322
322
|
decode(input, length) {
|
|
323
323
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
324
324
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
325
|
-
const message =
|
|
325
|
+
const message = createBaseQueryGetParticipantResponse();
|
|
326
326
|
while (reader.pos < end) {
|
|
327
327
|
const tag = reader.uint32();
|
|
328
328
|
switch (tag >>> 3) {
|
|
@@ -330,7 +330,7 @@ exports.QueryGetPermissionResponse = {
|
|
|
330
330
|
if (tag !== 10) {
|
|
331
331
|
break;
|
|
332
332
|
}
|
|
333
|
-
message.
|
|
333
|
+
message.participant = types_1.Participant.decode(reader, reader.uint32());
|
|
334
334
|
continue;
|
|
335
335
|
}
|
|
336
336
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -341,30 +341,30 @@ exports.QueryGetPermissionResponse = {
|
|
|
341
341
|
return message;
|
|
342
342
|
},
|
|
343
343
|
fromJSON(object) {
|
|
344
|
-
return {
|
|
344
|
+
return { participant: isSet(object.participant) ? types_1.Participant.fromJSON(object.participant) : undefined };
|
|
345
345
|
},
|
|
346
346
|
toJSON(message) {
|
|
347
347
|
const obj = {};
|
|
348
|
-
if (message.
|
|
349
|
-
obj.
|
|
348
|
+
if (message.participant !== undefined) {
|
|
349
|
+
obj.participant = types_1.Participant.toJSON(message.participant);
|
|
350
350
|
}
|
|
351
351
|
return obj;
|
|
352
352
|
},
|
|
353
353
|
create(base) {
|
|
354
|
-
return exports.
|
|
354
|
+
return exports.QueryGetParticipantResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
355
355
|
},
|
|
356
356
|
fromPartial(object) {
|
|
357
|
-
const message =
|
|
358
|
-
message.
|
|
359
|
-
? types_1.
|
|
357
|
+
const message = createBaseQueryGetParticipantResponse();
|
|
358
|
+
message.participant = (object.participant !== undefined && object.participant !== null)
|
|
359
|
+
? types_1.Participant.fromPartial(object.participant)
|
|
360
360
|
: undefined;
|
|
361
361
|
return message;
|
|
362
362
|
},
|
|
363
363
|
};
|
|
364
|
-
function
|
|
364
|
+
function createBaseQueryGetParticipantSessionRequest() {
|
|
365
365
|
return { id: "" };
|
|
366
366
|
}
|
|
367
|
-
exports.
|
|
367
|
+
exports.QueryGetParticipantSessionRequest = {
|
|
368
368
|
encode(message, writer = _m0.Writer.create()) {
|
|
369
369
|
if (message.id !== "") {
|
|
370
370
|
writer.uint32(10).string(message.id);
|
|
@@ -374,7 +374,7 @@ exports.QueryGetPermissionSessionRequest = {
|
|
|
374
374
|
decode(input, length) {
|
|
375
375
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
376
376
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
377
|
-
const message =
|
|
377
|
+
const message = createBaseQueryGetParticipantSessionRequest();
|
|
378
378
|
while (reader.pos < end) {
|
|
379
379
|
const tag = reader.uint32();
|
|
380
380
|
switch (tag >>> 3) {
|
|
@@ -403,29 +403,29 @@ exports.QueryGetPermissionSessionRequest = {
|
|
|
403
403
|
return obj;
|
|
404
404
|
},
|
|
405
405
|
create(base) {
|
|
406
|
-
return exports.
|
|
406
|
+
return exports.QueryGetParticipantSessionRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
407
407
|
},
|
|
408
408
|
fromPartial(object) {
|
|
409
409
|
var _a;
|
|
410
|
-
const message =
|
|
410
|
+
const message = createBaseQueryGetParticipantSessionRequest();
|
|
411
411
|
message.id = (_a = object.id) !== null && _a !== void 0 ? _a : "";
|
|
412
412
|
return message;
|
|
413
413
|
},
|
|
414
414
|
};
|
|
415
|
-
function
|
|
415
|
+
function createBaseQueryGetParticipantSessionResponse() {
|
|
416
416
|
return { session: undefined };
|
|
417
417
|
}
|
|
418
|
-
exports.
|
|
418
|
+
exports.QueryGetParticipantSessionResponse = {
|
|
419
419
|
encode(message, writer = _m0.Writer.create()) {
|
|
420
420
|
if (message.session !== undefined) {
|
|
421
|
-
types_1.
|
|
421
|
+
types_1.ParticipantSession.encode(message.session, writer.uint32(10).fork()).ldelim();
|
|
422
422
|
}
|
|
423
423
|
return writer;
|
|
424
424
|
},
|
|
425
425
|
decode(input, length) {
|
|
426
426
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
427
427
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
428
|
-
const message =
|
|
428
|
+
const message = createBaseQueryGetParticipantSessionResponse();
|
|
429
429
|
while (reader.pos < end) {
|
|
430
430
|
const tag = reader.uint32();
|
|
431
431
|
switch (tag >>> 3) {
|
|
@@ -433,7 +433,7 @@ exports.QueryGetPermissionSessionResponse = {
|
|
|
433
433
|
if (tag !== 10) {
|
|
434
434
|
break;
|
|
435
435
|
}
|
|
436
|
-
message.session = types_1.
|
|
436
|
+
message.session = types_1.ParticipantSession.decode(reader, reader.uint32());
|
|
437
437
|
continue;
|
|
438
438
|
}
|
|
439
439
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -444,30 +444,30 @@ exports.QueryGetPermissionSessionResponse = {
|
|
|
444
444
|
return message;
|
|
445
445
|
},
|
|
446
446
|
fromJSON(object) {
|
|
447
|
-
return { session: isSet(object.session) ? types_1.
|
|
447
|
+
return { session: isSet(object.session) ? types_1.ParticipantSession.fromJSON(object.session) : undefined };
|
|
448
448
|
},
|
|
449
449
|
toJSON(message) {
|
|
450
450
|
const obj = {};
|
|
451
451
|
if (message.session !== undefined) {
|
|
452
|
-
obj.session = types_1.
|
|
452
|
+
obj.session = types_1.ParticipantSession.toJSON(message.session);
|
|
453
453
|
}
|
|
454
454
|
return obj;
|
|
455
455
|
},
|
|
456
456
|
create(base) {
|
|
457
|
-
return exports.
|
|
457
|
+
return exports.QueryGetParticipantSessionResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
458
458
|
},
|
|
459
459
|
fromPartial(object) {
|
|
460
|
-
const message =
|
|
460
|
+
const message = createBaseQueryGetParticipantSessionResponse();
|
|
461
461
|
message.session = (object.session !== undefined && object.session !== null)
|
|
462
|
-
? types_1.
|
|
462
|
+
? types_1.ParticipantSession.fromPartial(object.session)
|
|
463
463
|
: undefined;
|
|
464
464
|
return message;
|
|
465
465
|
},
|
|
466
466
|
};
|
|
467
|
-
function
|
|
467
|
+
function createBaseQueryListParticipantSessionsRequest() {
|
|
468
468
|
return { modifiedAfter: undefined, responseMaxSize: 0 };
|
|
469
469
|
}
|
|
470
|
-
exports.
|
|
470
|
+
exports.QueryListParticipantSessionsRequest = {
|
|
471
471
|
encode(message, writer = _m0.Writer.create()) {
|
|
472
472
|
if (message.modifiedAfter !== undefined) {
|
|
473
473
|
timestamp_1.Timestamp.encode(toTimestamp(message.modifiedAfter), writer.uint32(10).fork()).ldelim();
|
|
@@ -480,7 +480,7 @@ exports.QueryListPermissionSessionsRequest = {
|
|
|
480
480
|
decode(input, length) {
|
|
481
481
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
482
482
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
483
|
-
const message =
|
|
483
|
+
const message = createBaseQueryListParticipantSessionsRequest();
|
|
484
484
|
while (reader.pos < end) {
|
|
485
485
|
const tag = reader.uint32();
|
|
486
486
|
switch (tag >>> 3) {
|
|
@@ -521,30 +521,30 @@ exports.QueryListPermissionSessionsRequest = {
|
|
|
521
521
|
return obj;
|
|
522
522
|
},
|
|
523
523
|
create(base) {
|
|
524
|
-
return exports.
|
|
524
|
+
return exports.QueryListParticipantSessionsRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
525
525
|
},
|
|
526
526
|
fromPartial(object) {
|
|
527
527
|
var _a, _b;
|
|
528
|
-
const message =
|
|
528
|
+
const message = createBaseQueryListParticipantSessionsRequest();
|
|
529
529
|
message.modifiedAfter = (_a = object.modifiedAfter) !== null && _a !== void 0 ? _a : undefined;
|
|
530
530
|
message.responseMaxSize = (_b = object.responseMaxSize) !== null && _b !== void 0 ? _b : 0;
|
|
531
531
|
return message;
|
|
532
532
|
},
|
|
533
533
|
};
|
|
534
|
-
function
|
|
534
|
+
function createBaseQueryListParticipantSessionsResponse() {
|
|
535
535
|
return { sessions: [] };
|
|
536
536
|
}
|
|
537
|
-
exports.
|
|
537
|
+
exports.QueryListParticipantSessionsResponse = {
|
|
538
538
|
encode(message, writer = _m0.Writer.create()) {
|
|
539
539
|
for (const v of message.sessions) {
|
|
540
|
-
types_1.
|
|
540
|
+
types_1.ParticipantSession.encode(v, writer.uint32(10).fork()).ldelim();
|
|
541
541
|
}
|
|
542
542
|
return writer;
|
|
543
543
|
},
|
|
544
544
|
decode(input, length) {
|
|
545
545
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
546
546
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
547
|
-
const message =
|
|
547
|
+
const message = createBaseQueryListParticipantSessionsResponse();
|
|
548
548
|
while (reader.pos < end) {
|
|
549
549
|
const tag = reader.uint32();
|
|
550
550
|
switch (tag >>> 3) {
|
|
@@ -552,7 +552,7 @@ exports.QueryListPermissionSessionsResponse = {
|
|
|
552
552
|
if (tag !== 10) {
|
|
553
553
|
break;
|
|
554
554
|
}
|
|
555
|
-
message.sessions.push(types_1.
|
|
555
|
+
message.sessions.push(types_1.ParticipantSession.decode(reader, reader.uint32()));
|
|
556
556
|
continue;
|
|
557
557
|
}
|
|
558
558
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -565,7 +565,7 @@ exports.QueryListPermissionSessionsResponse = {
|
|
|
565
565
|
fromJSON(object) {
|
|
566
566
|
return {
|
|
567
567
|
sessions: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.sessions)
|
|
568
|
-
? object.sessions.map((e) => types_1.
|
|
568
|
+
? object.sessions.map((e) => types_1.ParticipantSession.fromJSON(e))
|
|
569
569
|
: [],
|
|
570
570
|
};
|
|
571
571
|
},
|
|
@@ -573,30 +573,30 @@ exports.QueryListPermissionSessionsResponse = {
|
|
|
573
573
|
var _a;
|
|
574
574
|
const obj = {};
|
|
575
575
|
if ((_a = message.sessions) === null || _a === void 0 ? void 0 : _a.length) {
|
|
576
|
-
obj.sessions = message.sessions.map((e) => types_1.
|
|
576
|
+
obj.sessions = message.sessions.map((e) => types_1.ParticipantSession.toJSON(e));
|
|
577
577
|
}
|
|
578
578
|
return obj;
|
|
579
579
|
},
|
|
580
580
|
create(base) {
|
|
581
|
-
return exports.
|
|
581
|
+
return exports.QueryListParticipantSessionsResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
582
582
|
},
|
|
583
583
|
fromPartial(object) {
|
|
584
584
|
var _a;
|
|
585
|
-
const message =
|
|
586
|
-
message.sessions = ((_a = object.sessions) === null || _a === void 0 ? void 0 : _a.map((e) => types_1.
|
|
585
|
+
const message = createBaseQueryListParticipantSessionsResponse();
|
|
586
|
+
message.sessions = ((_a = object.sessions) === null || _a === void 0 ? void 0 : _a.map((e) => types_1.ParticipantSession.fromPartial(e))) || [];
|
|
587
587
|
return message;
|
|
588
588
|
},
|
|
589
589
|
};
|
|
590
|
-
function
|
|
591
|
-
return { did: "",
|
|
590
|
+
function createBaseQueryFindParticipantsWithDIDRequest() {
|
|
591
|
+
return { did: "", role: 0, schemaId: 0, when: undefined };
|
|
592
592
|
}
|
|
593
|
-
exports.
|
|
593
|
+
exports.QueryFindParticipantsWithDIDRequest = {
|
|
594
594
|
encode(message, writer = _m0.Writer.create()) {
|
|
595
595
|
if (message.did !== "") {
|
|
596
596
|
writer.uint32(10).string(message.did);
|
|
597
597
|
}
|
|
598
|
-
if (message.
|
|
599
|
-
writer.uint32(16).uint32(message.
|
|
598
|
+
if (message.role !== 0) {
|
|
599
|
+
writer.uint32(16).uint32(message.role);
|
|
600
600
|
}
|
|
601
601
|
if (message.schemaId !== 0) {
|
|
602
602
|
writer.uint32(24).uint64(message.schemaId);
|
|
@@ -609,7 +609,7 @@ exports.QueryFindPermissionsWithDIDRequest = {
|
|
|
609
609
|
decode(input, length) {
|
|
610
610
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
611
611
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
612
|
-
const message =
|
|
612
|
+
const message = createBaseQueryFindParticipantsWithDIDRequest();
|
|
613
613
|
while (reader.pos < end) {
|
|
614
614
|
const tag = reader.uint32();
|
|
615
615
|
switch (tag >>> 3) {
|
|
@@ -623,7 +623,7 @@ exports.QueryFindPermissionsWithDIDRequest = {
|
|
|
623
623
|
if (tag !== 16) {
|
|
624
624
|
break;
|
|
625
625
|
}
|
|
626
|
-
message.
|
|
626
|
+
message.role = reader.uint32();
|
|
627
627
|
continue;
|
|
628
628
|
case 3:
|
|
629
629
|
if (tag !== 24) {
|
|
@@ -648,7 +648,7 @@ exports.QueryFindPermissionsWithDIDRequest = {
|
|
|
648
648
|
fromJSON(object) {
|
|
649
649
|
return {
|
|
650
650
|
did: isSet(object.did) ? globalThis.String(object.did) : "",
|
|
651
|
-
|
|
651
|
+
role: isSet(object.role) ? globalThis.Number(object.role) : 0,
|
|
652
652
|
schemaId: isSet(object.schemaId) ? globalThis.Number(object.schemaId) : 0,
|
|
653
653
|
when: isSet(object.when) ? fromJsonTimestamp(object.when) : undefined,
|
|
654
654
|
};
|
|
@@ -658,8 +658,8 @@ exports.QueryFindPermissionsWithDIDRequest = {
|
|
|
658
658
|
if (message.did !== "") {
|
|
659
659
|
obj.did = message.did;
|
|
660
660
|
}
|
|
661
|
-
if (message.
|
|
662
|
-
obj.
|
|
661
|
+
if (message.role !== 0) {
|
|
662
|
+
obj.role = Math.round(message.role);
|
|
663
663
|
}
|
|
664
664
|
if (message.schemaId !== 0) {
|
|
665
665
|
obj.schemaId = Math.round(message.schemaId);
|
|
@@ -670,32 +670,32 @@ exports.QueryFindPermissionsWithDIDRequest = {
|
|
|
670
670
|
return obj;
|
|
671
671
|
},
|
|
672
672
|
create(base) {
|
|
673
|
-
return exports.
|
|
673
|
+
return exports.QueryFindParticipantsWithDIDRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
674
674
|
},
|
|
675
675
|
fromPartial(object) {
|
|
676
676
|
var _a, _b, _c, _d;
|
|
677
|
-
const message =
|
|
677
|
+
const message = createBaseQueryFindParticipantsWithDIDRequest();
|
|
678
678
|
message.did = (_a = object.did) !== null && _a !== void 0 ? _a : "";
|
|
679
|
-
message.
|
|
679
|
+
message.role = (_b = object.role) !== null && _b !== void 0 ? _b : 0;
|
|
680
680
|
message.schemaId = (_c = object.schemaId) !== null && _c !== void 0 ? _c : 0;
|
|
681
681
|
message.when = (_d = object.when) !== null && _d !== void 0 ? _d : undefined;
|
|
682
682
|
return message;
|
|
683
683
|
},
|
|
684
684
|
};
|
|
685
|
-
function
|
|
686
|
-
return {
|
|
685
|
+
function createBaseQueryFindParticipantsWithDIDResponse() {
|
|
686
|
+
return { participants: [] };
|
|
687
687
|
}
|
|
688
|
-
exports.
|
|
688
|
+
exports.QueryFindParticipantsWithDIDResponse = {
|
|
689
689
|
encode(message, writer = _m0.Writer.create()) {
|
|
690
|
-
for (const v of message.
|
|
691
|
-
types_1.
|
|
690
|
+
for (const v of message.participants) {
|
|
691
|
+
types_1.Participant.encode(v, writer.uint32(10).fork()).ldelim();
|
|
692
692
|
}
|
|
693
693
|
return writer;
|
|
694
694
|
},
|
|
695
695
|
decode(input, length) {
|
|
696
696
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
697
697
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
698
|
-
const message =
|
|
698
|
+
const message = createBaseQueryFindParticipantsWithDIDResponse();
|
|
699
699
|
while (reader.pos < end) {
|
|
700
700
|
const tag = reader.uint32();
|
|
701
701
|
switch (tag >>> 3) {
|
|
@@ -703,7 +703,7 @@ exports.QueryFindPermissionsWithDIDResponse = {
|
|
|
703
703
|
if (tag !== 10) {
|
|
704
704
|
break;
|
|
705
705
|
}
|
|
706
|
-
message.
|
|
706
|
+
message.participants.push(types_1.Participant.decode(reader, reader.uint32()));
|
|
707
707
|
continue;
|
|
708
708
|
}
|
|
709
709
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -715,39 +715,39 @@ exports.QueryFindPermissionsWithDIDResponse = {
|
|
|
715
715
|
},
|
|
716
716
|
fromJSON(object) {
|
|
717
717
|
return {
|
|
718
|
-
|
|
719
|
-
? object.
|
|
718
|
+
participants: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.participants)
|
|
719
|
+
? object.participants.map((e) => types_1.Participant.fromJSON(e))
|
|
720
720
|
: [],
|
|
721
721
|
};
|
|
722
722
|
},
|
|
723
723
|
toJSON(message) {
|
|
724
724
|
var _a;
|
|
725
725
|
const obj = {};
|
|
726
|
-
if ((_a = message.
|
|
727
|
-
obj.
|
|
726
|
+
if ((_a = message.participants) === null || _a === void 0 ? void 0 : _a.length) {
|
|
727
|
+
obj.participants = message.participants.map((e) => types_1.Participant.toJSON(e));
|
|
728
728
|
}
|
|
729
729
|
return obj;
|
|
730
730
|
},
|
|
731
731
|
create(base) {
|
|
732
|
-
return exports.
|
|
732
|
+
return exports.QueryFindParticipantsWithDIDResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
733
733
|
},
|
|
734
734
|
fromPartial(object) {
|
|
735
735
|
var _a;
|
|
736
|
-
const message =
|
|
737
|
-
message.
|
|
736
|
+
const message = createBaseQueryFindParticipantsWithDIDResponse();
|
|
737
|
+
message.participants = ((_a = object.participants) === null || _a === void 0 ? void 0 : _a.map((e) => types_1.Participant.fromPartial(e))) || [];
|
|
738
738
|
return message;
|
|
739
739
|
},
|
|
740
740
|
};
|
|
741
741
|
function createBaseQueryFindBeneficiariesRequest() {
|
|
742
|
-
return {
|
|
742
|
+
return { issuerParticipantId: 0, verifierParticipantId: 0 };
|
|
743
743
|
}
|
|
744
744
|
exports.QueryFindBeneficiariesRequest = {
|
|
745
745
|
encode(message, writer = _m0.Writer.create()) {
|
|
746
|
-
if (message.
|
|
747
|
-
writer.uint32(8).uint64(message.
|
|
746
|
+
if (message.issuerParticipantId !== 0) {
|
|
747
|
+
writer.uint32(8).uint64(message.issuerParticipantId);
|
|
748
748
|
}
|
|
749
|
-
if (message.
|
|
750
|
-
writer.uint32(16).uint64(message.
|
|
749
|
+
if (message.verifierParticipantId !== 0) {
|
|
750
|
+
writer.uint32(16).uint64(message.verifierParticipantId);
|
|
751
751
|
}
|
|
752
752
|
return writer;
|
|
753
753
|
},
|
|
@@ -762,13 +762,13 @@ exports.QueryFindBeneficiariesRequest = {
|
|
|
762
762
|
if (tag !== 8) {
|
|
763
763
|
break;
|
|
764
764
|
}
|
|
765
|
-
message.
|
|
765
|
+
message.issuerParticipantId = longToNumber(reader.uint64());
|
|
766
766
|
continue;
|
|
767
767
|
case 2:
|
|
768
768
|
if (tag !== 16) {
|
|
769
769
|
break;
|
|
770
770
|
}
|
|
771
|
-
message.
|
|
771
|
+
message.verifierParticipantId = longToNumber(reader.uint64());
|
|
772
772
|
continue;
|
|
773
773
|
}
|
|
774
774
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -780,17 +780,17 @@ exports.QueryFindBeneficiariesRequest = {
|
|
|
780
780
|
},
|
|
781
781
|
fromJSON(object) {
|
|
782
782
|
return {
|
|
783
|
-
|
|
784
|
-
|
|
783
|
+
issuerParticipantId: isSet(object.issuerParticipantId) ? globalThis.Number(object.issuerParticipantId) : 0,
|
|
784
|
+
verifierParticipantId: isSet(object.verifierParticipantId) ? globalThis.Number(object.verifierParticipantId) : 0,
|
|
785
785
|
};
|
|
786
786
|
},
|
|
787
787
|
toJSON(message) {
|
|
788
788
|
const obj = {};
|
|
789
|
-
if (message.
|
|
790
|
-
obj.
|
|
789
|
+
if (message.issuerParticipantId !== 0) {
|
|
790
|
+
obj.issuerParticipantId = Math.round(message.issuerParticipantId);
|
|
791
791
|
}
|
|
792
|
-
if (message.
|
|
793
|
-
obj.
|
|
792
|
+
if (message.verifierParticipantId !== 0) {
|
|
793
|
+
obj.verifierParticipantId = Math.round(message.verifierParticipantId);
|
|
794
794
|
}
|
|
795
795
|
return obj;
|
|
796
796
|
},
|
|
@@ -800,18 +800,18 @@ exports.QueryFindBeneficiariesRequest = {
|
|
|
800
800
|
fromPartial(object) {
|
|
801
801
|
var _a, _b;
|
|
802
802
|
const message = createBaseQueryFindBeneficiariesRequest();
|
|
803
|
-
message.
|
|
804
|
-
message.
|
|
803
|
+
message.issuerParticipantId = (_a = object.issuerParticipantId) !== null && _a !== void 0 ? _a : 0;
|
|
804
|
+
message.verifierParticipantId = (_b = object.verifierParticipantId) !== null && _b !== void 0 ? _b : 0;
|
|
805
805
|
return message;
|
|
806
806
|
},
|
|
807
807
|
};
|
|
808
808
|
function createBaseQueryFindBeneficiariesResponse() {
|
|
809
|
-
return {
|
|
809
|
+
return { participants: [] };
|
|
810
810
|
}
|
|
811
811
|
exports.QueryFindBeneficiariesResponse = {
|
|
812
812
|
encode(message, writer = _m0.Writer.create()) {
|
|
813
|
-
for (const v of message.
|
|
814
|
-
types_1.
|
|
813
|
+
for (const v of message.participants) {
|
|
814
|
+
types_1.Participant.encode(v, writer.uint32(10).fork()).ldelim();
|
|
815
815
|
}
|
|
816
816
|
return writer;
|
|
817
817
|
},
|
|
@@ -826,7 +826,7 @@ exports.QueryFindBeneficiariesResponse = {
|
|
|
826
826
|
if (tag !== 10) {
|
|
827
827
|
break;
|
|
828
828
|
}
|
|
829
|
-
message.
|
|
829
|
+
message.participants.push(types_1.Participant.decode(reader, reader.uint32()));
|
|
830
830
|
continue;
|
|
831
831
|
}
|
|
832
832
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -838,16 +838,16 @@ exports.QueryFindBeneficiariesResponse = {
|
|
|
838
838
|
},
|
|
839
839
|
fromJSON(object) {
|
|
840
840
|
return {
|
|
841
|
-
|
|
842
|
-
? object.
|
|
841
|
+
participants: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.participants)
|
|
842
|
+
? object.participants.map((e) => types_1.Participant.fromJSON(e))
|
|
843
843
|
: [],
|
|
844
844
|
};
|
|
845
845
|
},
|
|
846
846
|
toJSON(message) {
|
|
847
847
|
var _a;
|
|
848
848
|
const obj = {};
|
|
849
|
-
if ((_a = message.
|
|
850
|
-
obj.
|
|
849
|
+
if ((_a = message.participants) === null || _a === void 0 ? void 0 : _a.length) {
|
|
850
|
+
obj.participants = message.participants.map((e) => types_1.Participant.toJSON(e));
|
|
851
851
|
}
|
|
852
852
|
return obj;
|
|
853
853
|
},
|
|
@@ -857,21 +857,21 @@ exports.QueryFindBeneficiariesResponse = {
|
|
|
857
857
|
fromPartial(object) {
|
|
858
858
|
var _a;
|
|
859
859
|
const message = createBaseQueryFindBeneficiariesResponse();
|
|
860
|
-
message.
|
|
860
|
+
message.participants = ((_a = object.participants) === null || _a === void 0 ? void 0 : _a.map((e) => types_1.Participant.fromPartial(e))) || [];
|
|
861
861
|
return message;
|
|
862
862
|
},
|
|
863
863
|
};
|
|
864
|
-
exports.QueryServiceName = "verana.
|
|
864
|
+
exports.QueryServiceName = "verana.pp.v1.Query";
|
|
865
865
|
class QueryClientImpl {
|
|
866
866
|
constructor(rpc, opts) {
|
|
867
867
|
this.service = (opts === null || opts === void 0 ? void 0 : opts.service) || exports.QueryServiceName;
|
|
868
868
|
this.rpc = rpc;
|
|
869
869
|
this.Params = this.Params.bind(this);
|
|
870
|
-
this.
|
|
871
|
-
this.
|
|
872
|
-
this.
|
|
873
|
-
this.
|
|
874
|
-
this.
|
|
870
|
+
this.ListParticipants = this.ListParticipants.bind(this);
|
|
871
|
+
this.GetParticipant = this.GetParticipant.bind(this);
|
|
872
|
+
this.GetParticipantSession = this.GetParticipantSession.bind(this);
|
|
873
|
+
this.ListParticipantSessions = this.ListParticipantSessions.bind(this);
|
|
874
|
+
this.FindParticipantsWithDID = this.FindParticipantsWithDID.bind(this);
|
|
875
875
|
this.FindBeneficiaries = this.FindBeneficiaries.bind(this);
|
|
876
876
|
}
|
|
877
877
|
Params(request) {
|
|
@@ -879,30 +879,30 @@ class QueryClientImpl {
|
|
|
879
879
|
const promise = this.rpc.request(this.service, "Params", data);
|
|
880
880
|
return promise.then((data) => exports.QueryParamsResponse.decode(_m0.Reader.create(data)));
|
|
881
881
|
}
|
|
882
|
-
|
|
883
|
-
const data = exports.
|
|
884
|
-
const promise = this.rpc.request(this.service, "
|
|
885
|
-
return promise.then((data) => exports.
|
|
882
|
+
ListParticipants(request) {
|
|
883
|
+
const data = exports.QueryListParticipantsRequest.encode(request).finish();
|
|
884
|
+
const promise = this.rpc.request(this.service, "ListParticipants", data);
|
|
885
|
+
return promise.then((data) => exports.QueryListParticipantsResponse.decode(_m0.Reader.create(data)));
|
|
886
886
|
}
|
|
887
|
-
|
|
888
|
-
const data = exports.
|
|
889
|
-
const promise = this.rpc.request(this.service, "
|
|
890
|
-
return promise.then((data) => exports.
|
|
887
|
+
GetParticipant(request) {
|
|
888
|
+
const data = exports.QueryGetParticipantRequest.encode(request).finish();
|
|
889
|
+
const promise = this.rpc.request(this.service, "GetParticipant", data);
|
|
890
|
+
return promise.then((data) => exports.QueryGetParticipantResponse.decode(_m0.Reader.create(data)));
|
|
891
891
|
}
|
|
892
|
-
|
|
893
|
-
const data = exports.
|
|
894
|
-
const promise = this.rpc.request(this.service, "
|
|
895
|
-
return promise.then((data) => exports.
|
|
892
|
+
GetParticipantSession(request) {
|
|
893
|
+
const data = exports.QueryGetParticipantSessionRequest.encode(request).finish();
|
|
894
|
+
const promise = this.rpc.request(this.service, "GetParticipantSession", data);
|
|
895
|
+
return promise.then((data) => exports.QueryGetParticipantSessionResponse.decode(_m0.Reader.create(data)));
|
|
896
896
|
}
|
|
897
|
-
|
|
898
|
-
const data = exports.
|
|
899
|
-
const promise = this.rpc.request(this.service, "
|
|
900
|
-
return promise.then((data) => exports.
|
|
897
|
+
ListParticipantSessions(request) {
|
|
898
|
+
const data = exports.QueryListParticipantSessionsRequest.encode(request).finish();
|
|
899
|
+
const promise = this.rpc.request(this.service, "ListParticipantSessions", data);
|
|
900
|
+
return promise.then((data) => exports.QueryListParticipantSessionsResponse.decode(_m0.Reader.create(data)));
|
|
901
901
|
}
|
|
902
|
-
|
|
903
|
-
const data = exports.
|
|
904
|
-
const promise = this.rpc.request(this.service, "
|
|
905
|
-
return promise.then((data) => exports.
|
|
902
|
+
FindParticipantsWithDID(request) {
|
|
903
|
+
const data = exports.QueryFindParticipantsWithDIDRequest.encode(request).finish();
|
|
904
|
+
const promise = this.rpc.request(this.service, "FindParticipantsWithDID", data);
|
|
905
|
+
return promise.then((data) => exports.QueryFindParticipantsWithDIDResponse.decode(_m0.Reader.create(data)));
|
|
906
906
|
}
|
|
907
907
|
FindBeneficiaries(request) {
|
|
908
908
|
const data = exports.QueryFindBeneficiariesRequest.encode(request).finish();
|