@verana-labs/verana-types 0.10.1-dev.12 → 0.10.1-dev.13
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} +56 -56
- 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/{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 +437 -0
- package/dist/codec/verana/{perm → pp}/v1/tx.js +255 -249
- package/dist/codec/verana/pp/v1/types.d.ts +140 -0
- package/dist/codec/verana/{perm → pp}/v1/types.js +278 -262
- 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/tx.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,7 +38,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
38
38
|
};
|
|
39
39
|
})();
|
|
40
40
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41
|
-
exports.MsgClientImpl = exports.MsgServiceName = exports.
|
|
41
|
+
exports.MsgClientImpl = exports.MsgServiceName = exports.MsgSelfCreateParticipantResponse = exports.MsgSelfCreateParticipant = exports.MsgRepayParticipantSlashedTrustDepositResponse = exports.MsgRepayParticipantSlashedTrustDeposit = exports.MsgSlashParticipantTrustDepositResponse = exports.MsgSlashParticipantTrustDeposit = exports.MsgCreateOrUpdateParticipantSessionResponse = exports.MsgCreateOrUpdateParticipantSession = exports.MsgRevokeParticipantResponse = exports.MsgRevokeParticipant = exports.MsgSetParticipantEffectiveUntilResponse = exports.MsgSetParticipantEffectiveUntil = exports.MsgCreateRootParticipantResponse = exports.MsgCreateRootParticipant = exports.MsgCancelParticipantOPLastRequestResponse = exports.MsgCancelParticipantOPLastRequest = exports.MsgSetParticipantOPToValidatedResponse = exports.MsgSetParticipantOPToValidated = exports.MsgRenewParticipantOPResponse = exports.MsgRenewParticipantOP = exports.MsgStartParticipantOPResponse = exports.MsgStartParticipantOP = exports.MsgUpdateParamsResponse = exports.MsgUpdateParams = exports.protobufPackage = void 0;
|
|
42
42
|
/* eslint-disable */
|
|
43
43
|
const _m0 = __importStar(require("protobufjs/minimal"));
|
|
44
44
|
const coin_1 = require("../../../cosmos/base/v1beta1/coin");
|
|
@@ -47,7 +47,7 @@ const timestamp_1 = require("../../../google/protobuf/timestamp");
|
|
|
47
47
|
const params_1 = require("./params");
|
|
48
48
|
const types_1 = require("./types");
|
|
49
49
|
const Long = require("long");
|
|
50
|
-
exports.protobufPackage = "verana.
|
|
50
|
+
exports.protobufPackage = "verana.pp.v1";
|
|
51
51
|
function createBaseMsgUpdateParams() {
|
|
52
52
|
return { authority: "", params: undefined };
|
|
53
53
|
}
|
|
@@ -154,12 +154,12 @@ exports.MsgUpdateParamsResponse = {
|
|
|
154
154
|
return message;
|
|
155
155
|
},
|
|
156
156
|
};
|
|
157
|
-
function
|
|
157
|
+
function createBaseMsgStartParticipantOP() {
|
|
158
158
|
return {
|
|
159
159
|
corporation: "",
|
|
160
160
|
operator: "",
|
|
161
|
-
|
|
162
|
-
|
|
161
|
+
role: 0,
|
|
162
|
+
validatorParticipantId: 0,
|
|
163
163
|
did: "",
|
|
164
164
|
validationFees: undefined,
|
|
165
165
|
issuanceFees: undefined,
|
|
@@ -172,7 +172,7 @@ function createBaseMsgStartPermissionVP() {
|
|
|
172
172
|
vsOperatorAuthzSpendPeriod: undefined,
|
|
173
173
|
};
|
|
174
174
|
}
|
|
175
|
-
exports.
|
|
175
|
+
exports.MsgStartParticipantOP = {
|
|
176
176
|
encode(message, writer = _m0.Writer.create()) {
|
|
177
177
|
if (message.corporation !== "") {
|
|
178
178
|
writer.uint32(10).string(message.corporation);
|
|
@@ -180,11 +180,11 @@ exports.MsgStartPermissionVP = {
|
|
|
180
180
|
if (message.operator !== "") {
|
|
181
181
|
writer.uint32(18).string(message.operator);
|
|
182
182
|
}
|
|
183
|
-
if (message.
|
|
184
|
-
writer.uint32(24).int32(message.
|
|
183
|
+
if (message.role !== 0) {
|
|
184
|
+
writer.uint32(24).int32(message.role);
|
|
185
185
|
}
|
|
186
|
-
if (message.
|
|
187
|
-
writer.uint32(32).uint64(message.
|
|
186
|
+
if (message.validatorParticipantId !== 0) {
|
|
187
|
+
writer.uint32(32).uint64(message.validatorParticipantId);
|
|
188
188
|
}
|
|
189
189
|
if (message.did !== "") {
|
|
190
190
|
writer.uint32(42).string(message.did);
|
|
@@ -221,7 +221,7 @@ exports.MsgStartPermissionVP = {
|
|
|
221
221
|
decode(input, length) {
|
|
222
222
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
223
223
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
224
|
-
const message =
|
|
224
|
+
const message = createBaseMsgStartParticipantOP();
|
|
225
225
|
while (reader.pos < end) {
|
|
226
226
|
const tag = reader.uint32();
|
|
227
227
|
switch (tag >>> 3) {
|
|
@@ -241,13 +241,13 @@ exports.MsgStartPermissionVP = {
|
|
|
241
241
|
if (tag !== 24) {
|
|
242
242
|
break;
|
|
243
243
|
}
|
|
244
|
-
message.
|
|
244
|
+
message.role = reader.int32();
|
|
245
245
|
continue;
|
|
246
246
|
case 4:
|
|
247
247
|
if (tag !== 32) {
|
|
248
248
|
break;
|
|
249
249
|
}
|
|
250
|
-
message.
|
|
250
|
+
message.validatorParticipantId = longToNumber(reader.uint64());
|
|
251
251
|
continue;
|
|
252
252
|
case 5:
|
|
253
253
|
if (tag !== 42) {
|
|
@@ -321,8 +321,10 @@ exports.MsgStartPermissionVP = {
|
|
|
321
321
|
return {
|
|
322
322
|
corporation: isSet(object.corporation) ? globalThis.String(object.corporation) : "",
|
|
323
323
|
operator: isSet(object.operator) ? globalThis.String(object.operator) : "",
|
|
324
|
-
|
|
325
|
-
|
|
324
|
+
role: isSet(object.role) ? (0, types_1.participantRoleFromJSON)(object.role) : 0,
|
|
325
|
+
validatorParticipantId: isSet(object.validatorParticipantId)
|
|
326
|
+
? globalThis.Number(object.validatorParticipantId)
|
|
327
|
+
: 0,
|
|
326
328
|
did: isSet(object.did) ? globalThis.String(object.did) : "",
|
|
327
329
|
validationFees: isSet(object.validationFees) ? types_1.OptionalUInt64.fromJSON(object.validationFees) : undefined,
|
|
328
330
|
issuanceFees: isSet(object.issuanceFees) ? types_1.OptionalUInt64.fromJSON(object.issuanceFees) : undefined,
|
|
@@ -354,11 +356,11 @@ exports.MsgStartPermissionVP = {
|
|
|
354
356
|
if (message.operator !== "") {
|
|
355
357
|
obj.operator = message.operator;
|
|
356
358
|
}
|
|
357
|
-
if (message.
|
|
358
|
-
obj.
|
|
359
|
+
if (message.role !== 0) {
|
|
360
|
+
obj.role = (0, types_1.participantRoleToJSON)(message.role);
|
|
359
361
|
}
|
|
360
|
-
if (message.
|
|
361
|
-
obj.
|
|
362
|
+
if (message.validatorParticipantId !== 0) {
|
|
363
|
+
obj.validatorParticipantId = Math.round(message.validatorParticipantId);
|
|
362
364
|
}
|
|
363
365
|
if (message.did !== "") {
|
|
364
366
|
obj.did = message.did;
|
|
@@ -393,15 +395,15 @@ exports.MsgStartPermissionVP = {
|
|
|
393
395
|
return obj;
|
|
394
396
|
},
|
|
395
397
|
create(base) {
|
|
396
|
-
return exports.
|
|
398
|
+
return exports.MsgStartParticipantOP.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
397
399
|
},
|
|
398
400
|
fromPartial(object) {
|
|
399
401
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
400
|
-
const message =
|
|
402
|
+
const message = createBaseMsgStartParticipantOP();
|
|
401
403
|
message.corporation = (_a = object.corporation) !== null && _a !== void 0 ? _a : "";
|
|
402
404
|
message.operator = (_b = object.operator) !== null && _b !== void 0 ? _b : "";
|
|
403
|
-
message.
|
|
404
|
-
message.
|
|
405
|
+
message.role = (_c = object.role) !== null && _c !== void 0 ? _c : 0;
|
|
406
|
+
message.validatorParticipantId = (_d = object.validatorParticipantId) !== null && _d !== void 0 ? _d : 0;
|
|
405
407
|
message.did = (_e = object.did) !== null && _e !== void 0 ? _e : "";
|
|
406
408
|
message.validationFees = (object.validationFees !== undefined && object.validationFees !== null)
|
|
407
409
|
? types_1.OptionalUInt64.fromPartial(object.validationFees)
|
|
@@ -424,20 +426,20 @@ exports.MsgStartPermissionVP = {
|
|
|
424
426
|
return message;
|
|
425
427
|
},
|
|
426
428
|
};
|
|
427
|
-
function
|
|
428
|
-
return {
|
|
429
|
+
function createBaseMsgStartParticipantOPResponse() {
|
|
430
|
+
return { participantId: 0 };
|
|
429
431
|
}
|
|
430
|
-
exports.
|
|
432
|
+
exports.MsgStartParticipantOPResponse = {
|
|
431
433
|
encode(message, writer = _m0.Writer.create()) {
|
|
432
|
-
if (message.
|
|
433
|
-
writer.uint32(8).uint64(message.
|
|
434
|
+
if (message.participantId !== 0) {
|
|
435
|
+
writer.uint32(8).uint64(message.participantId);
|
|
434
436
|
}
|
|
435
437
|
return writer;
|
|
436
438
|
},
|
|
437
439
|
decode(input, length) {
|
|
438
440
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
439
441
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
440
|
-
const message =
|
|
442
|
+
const message = createBaseMsgStartParticipantOPResponse();
|
|
441
443
|
while (reader.pos < end) {
|
|
442
444
|
const tag = reader.uint32();
|
|
443
445
|
switch (tag >>> 3) {
|
|
@@ -445,7 +447,7 @@ exports.MsgStartPermissionVPResponse = {
|
|
|
445
447
|
if (tag !== 8) {
|
|
446
448
|
break;
|
|
447
449
|
}
|
|
448
|
-
message.
|
|
450
|
+
message.participantId = longToNumber(reader.uint64());
|
|
449
451
|
continue;
|
|
450
452
|
}
|
|
451
453
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -456,29 +458,29 @@ exports.MsgStartPermissionVPResponse = {
|
|
|
456
458
|
return message;
|
|
457
459
|
},
|
|
458
460
|
fromJSON(object) {
|
|
459
|
-
return {
|
|
461
|
+
return { participantId: isSet(object.participantId) ? globalThis.Number(object.participantId) : 0 };
|
|
460
462
|
},
|
|
461
463
|
toJSON(message) {
|
|
462
464
|
const obj = {};
|
|
463
|
-
if (message.
|
|
464
|
-
obj.
|
|
465
|
+
if (message.participantId !== 0) {
|
|
466
|
+
obj.participantId = Math.round(message.participantId);
|
|
465
467
|
}
|
|
466
468
|
return obj;
|
|
467
469
|
},
|
|
468
470
|
create(base) {
|
|
469
|
-
return exports.
|
|
471
|
+
return exports.MsgStartParticipantOPResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
470
472
|
},
|
|
471
473
|
fromPartial(object) {
|
|
472
474
|
var _a;
|
|
473
|
-
const message =
|
|
474
|
-
message.
|
|
475
|
+
const message = createBaseMsgStartParticipantOPResponse();
|
|
476
|
+
message.participantId = (_a = object.participantId) !== null && _a !== void 0 ? _a : 0;
|
|
475
477
|
return message;
|
|
476
478
|
},
|
|
477
479
|
};
|
|
478
|
-
function
|
|
480
|
+
function createBaseMsgRenewParticipantOP() {
|
|
479
481
|
return { corporation: "", operator: "", id: 0 };
|
|
480
482
|
}
|
|
481
|
-
exports.
|
|
483
|
+
exports.MsgRenewParticipantOP = {
|
|
482
484
|
encode(message, writer = _m0.Writer.create()) {
|
|
483
485
|
if (message.corporation !== "") {
|
|
484
486
|
writer.uint32(10).string(message.corporation);
|
|
@@ -494,7 +496,7 @@ exports.MsgRenewPermissionVP = {
|
|
|
494
496
|
decode(input, length) {
|
|
495
497
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
496
498
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
497
|
-
const message =
|
|
499
|
+
const message = createBaseMsgRenewParticipantOP();
|
|
498
500
|
while (reader.pos < end) {
|
|
499
501
|
const tag = reader.uint32();
|
|
500
502
|
switch (tag >>> 3) {
|
|
@@ -545,28 +547,28 @@ exports.MsgRenewPermissionVP = {
|
|
|
545
547
|
return obj;
|
|
546
548
|
},
|
|
547
549
|
create(base) {
|
|
548
|
-
return exports.
|
|
550
|
+
return exports.MsgRenewParticipantOP.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
549
551
|
},
|
|
550
552
|
fromPartial(object) {
|
|
551
553
|
var _a, _b, _c;
|
|
552
|
-
const message =
|
|
554
|
+
const message = createBaseMsgRenewParticipantOP();
|
|
553
555
|
message.corporation = (_a = object.corporation) !== null && _a !== void 0 ? _a : "";
|
|
554
556
|
message.operator = (_b = object.operator) !== null && _b !== void 0 ? _b : "";
|
|
555
557
|
message.id = (_c = object.id) !== null && _c !== void 0 ? _c : 0;
|
|
556
558
|
return message;
|
|
557
559
|
},
|
|
558
560
|
};
|
|
559
|
-
function
|
|
561
|
+
function createBaseMsgRenewParticipantOPResponse() {
|
|
560
562
|
return {};
|
|
561
563
|
}
|
|
562
|
-
exports.
|
|
564
|
+
exports.MsgRenewParticipantOPResponse = {
|
|
563
565
|
encode(_, writer = _m0.Writer.create()) {
|
|
564
566
|
return writer;
|
|
565
567
|
},
|
|
566
568
|
decode(input, length) {
|
|
567
569
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
568
570
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
569
|
-
const message =
|
|
571
|
+
const message = createBaseMsgRenewParticipantOPResponse();
|
|
570
572
|
while (reader.pos < end) {
|
|
571
573
|
const tag = reader.uint32();
|
|
572
574
|
switch (tag >>> 3) {
|
|
@@ -586,14 +588,14 @@ exports.MsgRenewPermissionVPResponse = {
|
|
|
586
588
|
return obj;
|
|
587
589
|
},
|
|
588
590
|
create(base) {
|
|
589
|
-
return exports.
|
|
591
|
+
return exports.MsgRenewParticipantOPResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
590
592
|
},
|
|
591
593
|
fromPartial(_) {
|
|
592
|
-
const message =
|
|
594
|
+
const message = createBaseMsgRenewParticipantOPResponse();
|
|
593
595
|
return message;
|
|
594
596
|
},
|
|
595
597
|
};
|
|
596
|
-
function
|
|
598
|
+
function createBaseMsgSetParticipantOPToValidated() {
|
|
597
599
|
return {
|
|
598
600
|
corporation: "",
|
|
599
601
|
operator: "",
|
|
@@ -602,12 +604,12 @@ function createBaseMsgSetPermissionVPToValidated() {
|
|
|
602
604
|
validationFees: 0,
|
|
603
605
|
issuanceFees: 0,
|
|
604
606
|
verificationFees: 0,
|
|
605
|
-
|
|
607
|
+
opSummaryDigest: "",
|
|
606
608
|
issuanceFeeDiscount: 0,
|
|
607
609
|
verificationFeeDiscount: 0,
|
|
608
610
|
};
|
|
609
611
|
}
|
|
610
|
-
exports.
|
|
612
|
+
exports.MsgSetParticipantOPToValidated = {
|
|
611
613
|
encode(message, writer = _m0.Writer.create()) {
|
|
612
614
|
if (message.corporation !== "") {
|
|
613
615
|
writer.uint32(10).string(message.corporation);
|
|
@@ -630,8 +632,8 @@ exports.MsgSetPermissionVPToValidated = {
|
|
|
630
632
|
if (message.verificationFees !== 0) {
|
|
631
633
|
writer.uint32(56).uint64(message.verificationFees);
|
|
632
634
|
}
|
|
633
|
-
if (message.
|
|
634
|
-
writer.uint32(66).string(message.
|
|
635
|
+
if (message.opSummaryDigest !== "") {
|
|
636
|
+
writer.uint32(66).string(message.opSummaryDigest);
|
|
635
637
|
}
|
|
636
638
|
if (message.issuanceFeeDiscount !== 0) {
|
|
637
639
|
writer.uint32(72).uint64(message.issuanceFeeDiscount);
|
|
@@ -644,7 +646,7 @@ exports.MsgSetPermissionVPToValidated = {
|
|
|
644
646
|
decode(input, length) {
|
|
645
647
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
646
648
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
647
|
-
const message =
|
|
649
|
+
const message = createBaseMsgSetParticipantOPToValidated();
|
|
648
650
|
while (reader.pos < end) {
|
|
649
651
|
const tag = reader.uint32();
|
|
650
652
|
switch (tag >>> 3) {
|
|
@@ -694,7 +696,7 @@ exports.MsgSetPermissionVPToValidated = {
|
|
|
694
696
|
if (tag !== 66) {
|
|
695
697
|
break;
|
|
696
698
|
}
|
|
697
|
-
message.
|
|
699
|
+
message.opSummaryDigest = reader.string();
|
|
698
700
|
continue;
|
|
699
701
|
case 9:
|
|
700
702
|
if (tag !== 72) {
|
|
@@ -725,7 +727,7 @@ exports.MsgSetPermissionVPToValidated = {
|
|
|
725
727
|
validationFees: isSet(object.validationFees) ? globalThis.Number(object.validationFees) : 0,
|
|
726
728
|
issuanceFees: isSet(object.issuanceFees) ? globalThis.Number(object.issuanceFees) : 0,
|
|
727
729
|
verificationFees: isSet(object.verificationFees) ? globalThis.Number(object.verificationFees) : 0,
|
|
728
|
-
|
|
730
|
+
opSummaryDigest: isSet(object.opSummaryDigest) ? globalThis.String(object.opSummaryDigest) : "",
|
|
729
731
|
issuanceFeeDiscount: isSet(object.issuanceFeeDiscount) ? globalThis.Number(object.issuanceFeeDiscount) : 0,
|
|
730
732
|
verificationFeeDiscount: isSet(object.verificationFeeDiscount)
|
|
731
733
|
? globalThis.Number(object.verificationFeeDiscount)
|
|
@@ -755,8 +757,8 @@ exports.MsgSetPermissionVPToValidated = {
|
|
|
755
757
|
if (message.verificationFees !== 0) {
|
|
756
758
|
obj.verificationFees = Math.round(message.verificationFees);
|
|
757
759
|
}
|
|
758
|
-
if (message.
|
|
759
|
-
obj.
|
|
760
|
+
if (message.opSummaryDigest !== "") {
|
|
761
|
+
obj.opSummaryDigest = message.opSummaryDigest;
|
|
760
762
|
}
|
|
761
763
|
if (message.issuanceFeeDiscount !== 0) {
|
|
762
764
|
obj.issuanceFeeDiscount = Math.round(message.issuanceFeeDiscount);
|
|
@@ -767,11 +769,11 @@ exports.MsgSetPermissionVPToValidated = {
|
|
|
767
769
|
return obj;
|
|
768
770
|
},
|
|
769
771
|
create(base) {
|
|
770
|
-
return exports.
|
|
772
|
+
return exports.MsgSetParticipantOPToValidated.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
771
773
|
},
|
|
772
774
|
fromPartial(object) {
|
|
773
775
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
774
|
-
const message =
|
|
776
|
+
const message = createBaseMsgSetParticipantOPToValidated();
|
|
775
777
|
message.corporation = (_a = object.corporation) !== null && _a !== void 0 ? _a : "";
|
|
776
778
|
message.operator = (_b = object.operator) !== null && _b !== void 0 ? _b : "";
|
|
777
779
|
message.id = (_c = object.id) !== null && _c !== void 0 ? _c : 0;
|
|
@@ -779,23 +781,23 @@ exports.MsgSetPermissionVPToValidated = {
|
|
|
779
781
|
message.validationFees = (_e = object.validationFees) !== null && _e !== void 0 ? _e : 0;
|
|
780
782
|
message.issuanceFees = (_f = object.issuanceFees) !== null && _f !== void 0 ? _f : 0;
|
|
781
783
|
message.verificationFees = (_g = object.verificationFees) !== null && _g !== void 0 ? _g : 0;
|
|
782
|
-
message.
|
|
784
|
+
message.opSummaryDigest = (_h = object.opSummaryDigest) !== null && _h !== void 0 ? _h : "";
|
|
783
785
|
message.issuanceFeeDiscount = (_j = object.issuanceFeeDiscount) !== null && _j !== void 0 ? _j : 0;
|
|
784
786
|
message.verificationFeeDiscount = (_k = object.verificationFeeDiscount) !== null && _k !== void 0 ? _k : 0;
|
|
785
787
|
return message;
|
|
786
788
|
},
|
|
787
789
|
};
|
|
788
|
-
function
|
|
790
|
+
function createBaseMsgSetParticipantOPToValidatedResponse() {
|
|
789
791
|
return {};
|
|
790
792
|
}
|
|
791
|
-
exports.
|
|
793
|
+
exports.MsgSetParticipantOPToValidatedResponse = {
|
|
792
794
|
encode(_, writer = _m0.Writer.create()) {
|
|
793
795
|
return writer;
|
|
794
796
|
},
|
|
795
797
|
decode(input, length) {
|
|
796
798
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
797
799
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
798
|
-
const message =
|
|
800
|
+
const message = createBaseMsgSetParticipantOPToValidatedResponse();
|
|
799
801
|
while (reader.pos < end) {
|
|
800
802
|
const tag = reader.uint32();
|
|
801
803
|
switch (tag >>> 3) {
|
|
@@ -815,17 +817,17 @@ exports.MsgSetPermissionVPToValidatedResponse = {
|
|
|
815
817
|
return obj;
|
|
816
818
|
},
|
|
817
819
|
create(base) {
|
|
818
|
-
return exports.
|
|
820
|
+
return exports.MsgSetParticipantOPToValidatedResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
819
821
|
},
|
|
820
822
|
fromPartial(_) {
|
|
821
|
-
const message =
|
|
823
|
+
const message = createBaseMsgSetParticipantOPToValidatedResponse();
|
|
822
824
|
return message;
|
|
823
825
|
},
|
|
824
826
|
};
|
|
825
|
-
function
|
|
827
|
+
function createBaseMsgCancelParticipantOPLastRequest() {
|
|
826
828
|
return { corporation: "", operator: "", id: 0 };
|
|
827
829
|
}
|
|
828
|
-
exports.
|
|
830
|
+
exports.MsgCancelParticipantOPLastRequest = {
|
|
829
831
|
encode(message, writer = _m0.Writer.create()) {
|
|
830
832
|
if (message.corporation !== "") {
|
|
831
833
|
writer.uint32(10).string(message.corporation);
|
|
@@ -841,7 +843,7 @@ exports.MsgCancelPermissionVPLastRequest = {
|
|
|
841
843
|
decode(input, length) {
|
|
842
844
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
843
845
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
844
|
-
const message =
|
|
846
|
+
const message = createBaseMsgCancelParticipantOPLastRequest();
|
|
845
847
|
while (reader.pos < end) {
|
|
846
848
|
const tag = reader.uint32();
|
|
847
849
|
switch (tag >>> 3) {
|
|
@@ -892,28 +894,28 @@ exports.MsgCancelPermissionVPLastRequest = {
|
|
|
892
894
|
return obj;
|
|
893
895
|
},
|
|
894
896
|
create(base) {
|
|
895
|
-
return exports.
|
|
897
|
+
return exports.MsgCancelParticipantOPLastRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
896
898
|
},
|
|
897
899
|
fromPartial(object) {
|
|
898
900
|
var _a, _b, _c;
|
|
899
|
-
const message =
|
|
901
|
+
const message = createBaseMsgCancelParticipantOPLastRequest();
|
|
900
902
|
message.corporation = (_a = object.corporation) !== null && _a !== void 0 ? _a : "";
|
|
901
903
|
message.operator = (_b = object.operator) !== null && _b !== void 0 ? _b : "";
|
|
902
904
|
message.id = (_c = object.id) !== null && _c !== void 0 ? _c : 0;
|
|
903
905
|
return message;
|
|
904
906
|
},
|
|
905
907
|
};
|
|
906
|
-
function
|
|
908
|
+
function createBaseMsgCancelParticipantOPLastRequestResponse() {
|
|
907
909
|
return {};
|
|
908
910
|
}
|
|
909
|
-
exports.
|
|
911
|
+
exports.MsgCancelParticipantOPLastRequestResponse = {
|
|
910
912
|
encode(_, writer = _m0.Writer.create()) {
|
|
911
913
|
return writer;
|
|
912
914
|
},
|
|
913
915
|
decode(input, length) {
|
|
914
916
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
915
917
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
916
|
-
const message =
|
|
918
|
+
const message = createBaseMsgCancelParticipantOPLastRequestResponse();
|
|
917
919
|
while (reader.pos < end) {
|
|
918
920
|
const tag = reader.uint32();
|
|
919
921
|
switch (tag >>> 3) {
|
|
@@ -933,14 +935,14 @@ exports.MsgCancelPermissionVPLastRequestResponse = {
|
|
|
933
935
|
return obj;
|
|
934
936
|
},
|
|
935
937
|
create(base) {
|
|
936
|
-
return exports.
|
|
938
|
+
return exports.MsgCancelParticipantOPLastRequestResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
937
939
|
},
|
|
938
940
|
fromPartial(_) {
|
|
939
|
-
const message =
|
|
941
|
+
const message = createBaseMsgCancelParticipantOPLastRequestResponse();
|
|
940
942
|
return message;
|
|
941
943
|
},
|
|
942
944
|
};
|
|
943
|
-
function
|
|
945
|
+
function createBaseMsgCreateRootParticipant() {
|
|
944
946
|
return {
|
|
945
947
|
corporation: "",
|
|
946
948
|
operator: "",
|
|
@@ -953,7 +955,7 @@ function createBaseMsgCreateRootPermission() {
|
|
|
953
955
|
verificationFees: 0,
|
|
954
956
|
};
|
|
955
957
|
}
|
|
956
|
-
exports.
|
|
958
|
+
exports.MsgCreateRootParticipant = {
|
|
957
959
|
encode(message, writer = _m0.Writer.create()) {
|
|
958
960
|
if (message.corporation !== "") {
|
|
959
961
|
writer.uint32(10).string(message.corporation);
|
|
@@ -987,7 +989,7 @@ exports.MsgCreateRootPermission = {
|
|
|
987
989
|
decode(input, length) {
|
|
988
990
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
989
991
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
990
|
-
const message =
|
|
992
|
+
const message = createBaseMsgCreateRootParticipant();
|
|
991
993
|
while (reader.pos < end) {
|
|
992
994
|
const tag = reader.uint32();
|
|
993
995
|
switch (tag >>> 3) {
|
|
@@ -1098,11 +1100,11 @@ exports.MsgCreateRootPermission = {
|
|
|
1098
1100
|
return obj;
|
|
1099
1101
|
},
|
|
1100
1102
|
create(base) {
|
|
1101
|
-
return exports.
|
|
1103
|
+
return exports.MsgCreateRootParticipant.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1102
1104
|
},
|
|
1103
1105
|
fromPartial(object) {
|
|
1104
1106
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1105
|
-
const message =
|
|
1107
|
+
const message = createBaseMsgCreateRootParticipant();
|
|
1106
1108
|
message.corporation = (_a = object.corporation) !== null && _a !== void 0 ? _a : "";
|
|
1107
1109
|
message.operator = (_b = object.operator) !== null && _b !== void 0 ? _b : "";
|
|
1108
1110
|
message.schemaId = (_c = object.schemaId) !== null && _c !== void 0 ? _c : 0;
|
|
@@ -1115,10 +1117,10 @@ exports.MsgCreateRootPermission = {
|
|
|
1115
1117
|
return message;
|
|
1116
1118
|
},
|
|
1117
1119
|
};
|
|
1118
|
-
function
|
|
1120
|
+
function createBaseMsgCreateRootParticipantResponse() {
|
|
1119
1121
|
return { id: 0 };
|
|
1120
1122
|
}
|
|
1121
|
-
exports.
|
|
1123
|
+
exports.MsgCreateRootParticipantResponse = {
|
|
1122
1124
|
encode(message, writer = _m0.Writer.create()) {
|
|
1123
1125
|
if (message.id !== 0) {
|
|
1124
1126
|
writer.uint32(8).uint64(message.id);
|
|
@@ -1128,7 +1130,7 @@ exports.MsgCreateRootPermissionResponse = {
|
|
|
1128
1130
|
decode(input, length) {
|
|
1129
1131
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1130
1132
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1131
|
-
const message =
|
|
1133
|
+
const message = createBaseMsgCreateRootParticipantResponse();
|
|
1132
1134
|
while (reader.pos < end) {
|
|
1133
1135
|
const tag = reader.uint32();
|
|
1134
1136
|
switch (tag >>> 3) {
|
|
@@ -1157,19 +1159,19 @@ exports.MsgCreateRootPermissionResponse = {
|
|
|
1157
1159
|
return obj;
|
|
1158
1160
|
},
|
|
1159
1161
|
create(base) {
|
|
1160
|
-
return exports.
|
|
1162
|
+
return exports.MsgCreateRootParticipantResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1161
1163
|
},
|
|
1162
1164
|
fromPartial(object) {
|
|
1163
1165
|
var _a;
|
|
1164
|
-
const message =
|
|
1166
|
+
const message = createBaseMsgCreateRootParticipantResponse();
|
|
1165
1167
|
message.id = (_a = object.id) !== null && _a !== void 0 ? _a : 0;
|
|
1166
1168
|
return message;
|
|
1167
1169
|
},
|
|
1168
1170
|
};
|
|
1169
|
-
function
|
|
1171
|
+
function createBaseMsgSetParticipantEffectiveUntil() {
|
|
1170
1172
|
return { corporation: "", operator: "", id: 0, effectiveUntil: undefined };
|
|
1171
1173
|
}
|
|
1172
|
-
exports.
|
|
1174
|
+
exports.MsgSetParticipantEffectiveUntil = {
|
|
1173
1175
|
encode(message, writer = _m0.Writer.create()) {
|
|
1174
1176
|
if (message.corporation !== "") {
|
|
1175
1177
|
writer.uint32(10).string(message.corporation);
|
|
@@ -1188,7 +1190,7 @@ exports.MsgAdjustPermission = {
|
|
|
1188
1190
|
decode(input, length) {
|
|
1189
1191
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1190
1192
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1191
|
-
const message =
|
|
1193
|
+
const message = createBaseMsgSetParticipantEffectiveUntil();
|
|
1192
1194
|
while (reader.pos < end) {
|
|
1193
1195
|
const tag = reader.uint32();
|
|
1194
1196
|
switch (tag >>> 3) {
|
|
@@ -1249,11 +1251,11 @@ exports.MsgAdjustPermission = {
|
|
|
1249
1251
|
return obj;
|
|
1250
1252
|
},
|
|
1251
1253
|
create(base) {
|
|
1252
|
-
return exports.
|
|
1254
|
+
return exports.MsgSetParticipantEffectiveUntil.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1253
1255
|
},
|
|
1254
1256
|
fromPartial(object) {
|
|
1255
1257
|
var _a, _b, _c, _d;
|
|
1256
|
-
const message =
|
|
1258
|
+
const message = createBaseMsgSetParticipantEffectiveUntil();
|
|
1257
1259
|
message.corporation = (_a = object.corporation) !== null && _a !== void 0 ? _a : "";
|
|
1258
1260
|
message.operator = (_b = object.operator) !== null && _b !== void 0 ? _b : "";
|
|
1259
1261
|
message.id = (_c = object.id) !== null && _c !== void 0 ? _c : 0;
|
|
@@ -1261,17 +1263,17 @@ exports.MsgAdjustPermission = {
|
|
|
1261
1263
|
return message;
|
|
1262
1264
|
},
|
|
1263
1265
|
};
|
|
1264
|
-
function
|
|
1266
|
+
function createBaseMsgSetParticipantEffectiveUntilResponse() {
|
|
1265
1267
|
return {};
|
|
1266
1268
|
}
|
|
1267
|
-
exports.
|
|
1269
|
+
exports.MsgSetParticipantEffectiveUntilResponse = {
|
|
1268
1270
|
encode(_, writer = _m0.Writer.create()) {
|
|
1269
1271
|
return writer;
|
|
1270
1272
|
},
|
|
1271
1273
|
decode(input, length) {
|
|
1272
1274
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1273
1275
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1274
|
-
const message =
|
|
1276
|
+
const message = createBaseMsgSetParticipantEffectiveUntilResponse();
|
|
1275
1277
|
while (reader.pos < end) {
|
|
1276
1278
|
const tag = reader.uint32();
|
|
1277
1279
|
switch (tag >>> 3) {
|
|
@@ -1291,17 +1293,17 @@ exports.MsgAdjustPermissionResponse = {
|
|
|
1291
1293
|
return obj;
|
|
1292
1294
|
},
|
|
1293
1295
|
create(base) {
|
|
1294
|
-
return exports.
|
|
1296
|
+
return exports.MsgSetParticipantEffectiveUntilResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1295
1297
|
},
|
|
1296
1298
|
fromPartial(_) {
|
|
1297
|
-
const message =
|
|
1299
|
+
const message = createBaseMsgSetParticipantEffectiveUntilResponse();
|
|
1298
1300
|
return message;
|
|
1299
1301
|
},
|
|
1300
1302
|
};
|
|
1301
|
-
function
|
|
1303
|
+
function createBaseMsgRevokeParticipant() {
|
|
1302
1304
|
return { corporation: "", operator: "", id: 0 };
|
|
1303
1305
|
}
|
|
1304
|
-
exports.
|
|
1306
|
+
exports.MsgRevokeParticipant = {
|
|
1305
1307
|
encode(message, writer = _m0.Writer.create()) {
|
|
1306
1308
|
if (message.corporation !== "") {
|
|
1307
1309
|
writer.uint32(10).string(message.corporation);
|
|
@@ -1317,7 +1319,7 @@ exports.MsgRevokePermission = {
|
|
|
1317
1319
|
decode(input, length) {
|
|
1318
1320
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1319
1321
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1320
|
-
const message =
|
|
1322
|
+
const message = createBaseMsgRevokeParticipant();
|
|
1321
1323
|
while (reader.pos < end) {
|
|
1322
1324
|
const tag = reader.uint32();
|
|
1323
1325
|
switch (tag >>> 3) {
|
|
@@ -1368,28 +1370,28 @@ exports.MsgRevokePermission = {
|
|
|
1368
1370
|
return obj;
|
|
1369
1371
|
},
|
|
1370
1372
|
create(base) {
|
|
1371
|
-
return exports.
|
|
1373
|
+
return exports.MsgRevokeParticipant.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1372
1374
|
},
|
|
1373
1375
|
fromPartial(object) {
|
|
1374
1376
|
var _a, _b, _c;
|
|
1375
|
-
const message =
|
|
1377
|
+
const message = createBaseMsgRevokeParticipant();
|
|
1376
1378
|
message.corporation = (_a = object.corporation) !== null && _a !== void 0 ? _a : "";
|
|
1377
1379
|
message.operator = (_b = object.operator) !== null && _b !== void 0 ? _b : "";
|
|
1378
1380
|
message.id = (_c = object.id) !== null && _c !== void 0 ? _c : 0;
|
|
1379
1381
|
return message;
|
|
1380
1382
|
},
|
|
1381
1383
|
};
|
|
1382
|
-
function
|
|
1384
|
+
function createBaseMsgRevokeParticipantResponse() {
|
|
1383
1385
|
return {};
|
|
1384
1386
|
}
|
|
1385
|
-
exports.
|
|
1387
|
+
exports.MsgRevokeParticipantResponse = {
|
|
1386
1388
|
encode(_, writer = _m0.Writer.create()) {
|
|
1387
1389
|
return writer;
|
|
1388
1390
|
},
|
|
1389
1391
|
decode(input, length) {
|
|
1390
1392
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1391
1393
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1392
|
-
const message =
|
|
1394
|
+
const message = createBaseMsgRevokeParticipantResponse();
|
|
1393
1395
|
while (reader.pos < end) {
|
|
1394
1396
|
const tag = reader.uint32();
|
|
1395
1397
|
switch (tag >>> 3) {
|
|
@@ -1409,26 +1411,26 @@ exports.MsgRevokePermissionResponse = {
|
|
|
1409
1411
|
return obj;
|
|
1410
1412
|
},
|
|
1411
1413
|
create(base) {
|
|
1412
|
-
return exports.
|
|
1414
|
+
return exports.MsgRevokeParticipantResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1413
1415
|
},
|
|
1414
1416
|
fromPartial(_) {
|
|
1415
|
-
const message =
|
|
1417
|
+
const message = createBaseMsgRevokeParticipantResponse();
|
|
1416
1418
|
return message;
|
|
1417
1419
|
},
|
|
1418
1420
|
};
|
|
1419
|
-
function
|
|
1421
|
+
function createBaseMsgCreateOrUpdateParticipantSession() {
|
|
1420
1422
|
return {
|
|
1421
1423
|
corporation: "",
|
|
1422
1424
|
operator: "",
|
|
1423
1425
|
id: "",
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1426
|
+
issuerParticipantId: 0,
|
|
1427
|
+
verifierParticipantId: 0,
|
|
1428
|
+
agentParticipantId: 0,
|
|
1429
|
+
walletAgentParticipantId: 0,
|
|
1428
1430
|
digest: "",
|
|
1429
1431
|
};
|
|
1430
1432
|
}
|
|
1431
|
-
exports.
|
|
1433
|
+
exports.MsgCreateOrUpdateParticipantSession = {
|
|
1432
1434
|
encode(message, writer = _m0.Writer.create()) {
|
|
1433
1435
|
if (message.corporation !== "") {
|
|
1434
1436
|
writer.uint32(10).string(message.corporation);
|
|
@@ -1439,17 +1441,17 @@ exports.MsgCreateOrUpdatePermissionSession = {
|
|
|
1439
1441
|
if (message.id !== "") {
|
|
1440
1442
|
writer.uint32(26).string(message.id);
|
|
1441
1443
|
}
|
|
1442
|
-
if (message.
|
|
1443
|
-
writer.uint32(32).uint64(message.
|
|
1444
|
+
if (message.issuerParticipantId !== 0) {
|
|
1445
|
+
writer.uint32(32).uint64(message.issuerParticipantId);
|
|
1444
1446
|
}
|
|
1445
|
-
if (message.
|
|
1446
|
-
writer.uint32(40).uint64(message.
|
|
1447
|
+
if (message.verifierParticipantId !== 0) {
|
|
1448
|
+
writer.uint32(40).uint64(message.verifierParticipantId);
|
|
1447
1449
|
}
|
|
1448
|
-
if (message.
|
|
1449
|
-
writer.uint32(48).uint64(message.
|
|
1450
|
+
if (message.agentParticipantId !== 0) {
|
|
1451
|
+
writer.uint32(48).uint64(message.agentParticipantId);
|
|
1450
1452
|
}
|
|
1451
|
-
if (message.
|
|
1452
|
-
writer.uint32(56).uint64(message.
|
|
1453
|
+
if (message.walletAgentParticipantId !== 0) {
|
|
1454
|
+
writer.uint32(56).uint64(message.walletAgentParticipantId);
|
|
1453
1455
|
}
|
|
1454
1456
|
if (message.digest !== "") {
|
|
1455
1457
|
writer.uint32(66).string(message.digest);
|
|
@@ -1459,7 +1461,7 @@ exports.MsgCreateOrUpdatePermissionSession = {
|
|
|
1459
1461
|
decode(input, length) {
|
|
1460
1462
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1461
1463
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1462
|
-
const message =
|
|
1464
|
+
const message = createBaseMsgCreateOrUpdateParticipantSession();
|
|
1463
1465
|
while (reader.pos < end) {
|
|
1464
1466
|
const tag = reader.uint32();
|
|
1465
1467
|
switch (tag >>> 3) {
|
|
@@ -1485,25 +1487,25 @@ exports.MsgCreateOrUpdatePermissionSession = {
|
|
|
1485
1487
|
if (tag !== 32) {
|
|
1486
1488
|
break;
|
|
1487
1489
|
}
|
|
1488
|
-
message.
|
|
1490
|
+
message.issuerParticipantId = longToNumber(reader.uint64());
|
|
1489
1491
|
continue;
|
|
1490
1492
|
case 5:
|
|
1491
1493
|
if (tag !== 40) {
|
|
1492
1494
|
break;
|
|
1493
1495
|
}
|
|
1494
|
-
message.
|
|
1496
|
+
message.verifierParticipantId = longToNumber(reader.uint64());
|
|
1495
1497
|
continue;
|
|
1496
1498
|
case 6:
|
|
1497
1499
|
if (tag !== 48) {
|
|
1498
1500
|
break;
|
|
1499
1501
|
}
|
|
1500
|
-
message.
|
|
1502
|
+
message.agentParticipantId = longToNumber(reader.uint64());
|
|
1501
1503
|
continue;
|
|
1502
1504
|
case 7:
|
|
1503
1505
|
if (tag !== 56) {
|
|
1504
1506
|
break;
|
|
1505
1507
|
}
|
|
1506
|
-
message.
|
|
1508
|
+
message.walletAgentParticipantId = longToNumber(reader.uint64());
|
|
1507
1509
|
continue;
|
|
1508
1510
|
case 8:
|
|
1509
1511
|
if (tag !== 66) {
|
|
@@ -1524,10 +1526,12 @@ exports.MsgCreateOrUpdatePermissionSession = {
|
|
|
1524
1526
|
corporation: isSet(object.corporation) ? globalThis.String(object.corporation) : "",
|
|
1525
1527
|
operator: isSet(object.operator) ? globalThis.String(object.operator) : "",
|
|
1526
1528
|
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1529
|
+
issuerParticipantId: isSet(object.issuerParticipantId) ? globalThis.Number(object.issuerParticipantId) : 0,
|
|
1530
|
+
verifierParticipantId: isSet(object.verifierParticipantId) ? globalThis.Number(object.verifierParticipantId) : 0,
|
|
1531
|
+
agentParticipantId: isSet(object.agentParticipantId) ? globalThis.Number(object.agentParticipantId) : 0,
|
|
1532
|
+
walletAgentParticipantId: isSet(object.walletAgentParticipantId)
|
|
1533
|
+
? globalThis.Number(object.walletAgentParticipantId)
|
|
1534
|
+
: 0,
|
|
1531
1535
|
digest: isSet(object.digest) ? globalThis.String(object.digest) : "",
|
|
1532
1536
|
};
|
|
1533
1537
|
},
|
|
@@ -1542,17 +1546,17 @@ exports.MsgCreateOrUpdatePermissionSession = {
|
|
|
1542
1546
|
if (message.id !== "") {
|
|
1543
1547
|
obj.id = message.id;
|
|
1544
1548
|
}
|
|
1545
|
-
if (message.
|
|
1546
|
-
obj.
|
|
1549
|
+
if (message.issuerParticipantId !== 0) {
|
|
1550
|
+
obj.issuerParticipantId = Math.round(message.issuerParticipantId);
|
|
1547
1551
|
}
|
|
1548
|
-
if (message.
|
|
1549
|
-
obj.
|
|
1552
|
+
if (message.verifierParticipantId !== 0) {
|
|
1553
|
+
obj.verifierParticipantId = Math.round(message.verifierParticipantId);
|
|
1550
1554
|
}
|
|
1551
|
-
if (message.
|
|
1552
|
-
obj.
|
|
1555
|
+
if (message.agentParticipantId !== 0) {
|
|
1556
|
+
obj.agentParticipantId = Math.round(message.agentParticipantId);
|
|
1553
1557
|
}
|
|
1554
|
-
if (message.
|
|
1555
|
-
obj.
|
|
1558
|
+
if (message.walletAgentParticipantId !== 0) {
|
|
1559
|
+
obj.walletAgentParticipantId = Math.round(message.walletAgentParticipantId);
|
|
1556
1560
|
}
|
|
1557
1561
|
if (message.digest !== "") {
|
|
1558
1562
|
obj.digest = message.digest;
|
|
@@ -1560,26 +1564,26 @@ exports.MsgCreateOrUpdatePermissionSession = {
|
|
|
1560
1564
|
return obj;
|
|
1561
1565
|
},
|
|
1562
1566
|
create(base) {
|
|
1563
|
-
return exports.
|
|
1567
|
+
return exports.MsgCreateOrUpdateParticipantSession.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1564
1568
|
},
|
|
1565
1569
|
fromPartial(object) {
|
|
1566
1570
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1567
|
-
const message =
|
|
1571
|
+
const message = createBaseMsgCreateOrUpdateParticipantSession();
|
|
1568
1572
|
message.corporation = (_a = object.corporation) !== null && _a !== void 0 ? _a : "";
|
|
1569
1573
|
message.operator = (_b = object.operator) !== null && _b !== void 0 ? _b : "";
|
|
1570
1574
|
message.id = (_c = object.id) !== null && _c !== void 0 ? _c : "";
|
|
1571
|
-
message.
|
|
1572
|
-
message.
|
|
1573
|
-
message.
|
|
1574
|
-
message.
|
|
1575
|
+
message.issuerParticipantId = (_d = object.issuerParticipantId) !== null && _d !== void 0 ? _d : 0;
|
|
1576
|
+
message.verifierParticipantId = (_e = object.verifierParticipantId) !== null && _e !== void 0 ? _e : 0;
|
|
1577
|
+
message.agentParticipantId = (_f = object.agentParticipantId) !== null && _f !== void 0 ? _f : 0;
|
|
1578
|
+
message.walletAgentParticipantId = (_g = object.walletAgentParticipantId) !== null && _g !== void 0 ? _g : 0;
|
|
1575
1579
|
message.digest = (_h = object.digest) !== null && _h !== void 0 ? _h : "";
|
|
1576
1580
|
return message;
|
|
1577
1581
|
},
|
|
1578
1582
|
};
|
|
1579
|
-
function
|
|
1583
|
+
function createBaseMsgCreateOrUpdateParticipantSessionResponse() {
|
|
1580
1584
|
return { id: "" };
|
|
1581
1585
|
}
|
|
1582
|
-
exports.
|
|
1586
|
+
exports.MsgCreateOrUpdateParticipantSessionResponse = {
|
|
1583
1587
|
encode(message, writer = _m0.Writer.create()) {
|
|
1584
1588
|
if (message.id !== "") {
|
|
1585
1589
|
writer.uint32(10).string(message.id);
|
|
@@ -1589,7 +1593,7 @@ exports.MsgCreateOrUpdatePermissionSessionResponse = {
|
|
|
1589
1593
|
decode(input, length) {
|
|
1590
1594
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1591
1595
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1592
|
-
const message =
|
|
1596
|
+
const message = createBaseMsgCreateOrUpdateParticipantSessionResponse();
|
|
1593
1597
|
while (reader.pos < end) {
|
|
1594
1598
|
const tag = reader.uint32();
|
|
1595
1599
|
switch (tag >>> 3) {
|
|
@@ -1618,19 +1622,19 @@ exports.MsgCreateOrUpdatePermissionSessionResponse = {
|
|
|
1618
1622
|
return obj;
|
|
1619
1623
|
},
|
|
1620
1624
|
create(base) {
|
|
1621
|
-
return exports.
|
|
1625
|
+
return exports.MsgCreateOrUpdateParticipantSessionResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1622
1626
|
},
|
|
1623
1627
|
fromPartial(object) {
|
|
1624
1628
|
var _a;
|
|
1625
|
-
const message =
|
|
1629
|
+
const message = createBaseMsgCreateOrUpdateParticipantSessionResponse();
|
|
1626
1630
|
message.id = (_a = object.id) !== null && _a !== void 0 ? _a : "";
|
|
1627
1631
|
return message;
|
|
1628
1632
|
},
|
|
1629
1633
|
};
|
|
1630
|
-
function
|
|
1634
|
+
function createBaseMsgSlashParticipantTrustDeposit() {
|
|
1631
1635
|
return { corporation: "", operator: "", id: 0, amount: 0, reason: "" };
|
|
1632
1636
|
}
|
|
1633
|
-
exports.
|
|
1637
|
+
exports.MsgSlashParticipantTrustDeposit = {
|
|
1634
1638
|
encode(message, writer = _m0.Writer.create()) {
|
|
1635
1639
|
if (message.corporation !== "") {
|
|
1636
1640
|
writer.uint32(10).string(message.corporation);
|
|
@@ -1652,7 +1656,7 @@ exports.MsgSlashPermissionTrustDeposit = {
|
|
|
1652
1656
|
decode(input, length) {
|
|
1653
1657
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1654
1658
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1655
|
-
const message =
|
|
1659
|
+
const message = createBaseMsgSlashParticipantTrustDeposit();
|
|
1656
1660
|
while (reader.pos < end) {
|
|
1657
1661
|
const tag = reader.uint32();
|
|
1658
1662
|
switch (tag >>> 3) {
|
|
@@ -1723,11 +1727,11 @@ exports.MsgSlashPermissionTrustDeposit = {
|
|
|
1723
1727
|
return obj;
|
|
1724
1728
|
},
|
|
1725
1729
|
create(base) {
|
|
1726
|
-
return exports.
|
|
1730
|
+
return exports.MsgSlashParticipantTrustDeposit.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1727
1731
|
},
|
|
1728
1732
|
fromPartial(object) {
|
|
1729
1733
|
var _a, _b, _c, _d, _e;
|
|
1730
|
-
const message =
|
|
1734
|
+
const message = createBaseMsgSlashParticipantTrustDeposit();
|
|
1731
1735
|
message.corporation = (_a = object.corporation) !== null && _a !== void 0 ? _a : "";
|
|
1732
1736
|
message.operator = (_b = object.operator) !== null && _b !== void 0 ? _b : "";
|
|
1733
1737
|
message.id = (_c = object.id) !== null && _c !== void 0 ? _c : 0;
|
|
@@ -1736,17 +1740,17 @@ exports.MsgSlashPermissionTrustDeposit = {
|
|
|
1736
1740
|
return message;
|
|
1737
1741
|
},
|
|
1738
1742
|
};
|
|
1739
|
-
function
|
|
1743
|
+
function createBaseMsgSlashParticipantTrustDepositResponse() {
|
|
1740
1744
|
return {};
|
|
1741
1745
|
}
|
|
1742
|
-
exports.
|
|
1746
|
+
exports.MsgSlashParticipantTrustDepositResponse = {
|
|
1743
1747
|
encode(_, writer = _m0.Writer.create()) {
|
|
1744
1748
|
return writer;
|
|
1745
1749
|
},
|
|
1746
1750
|
decode(input, length) {
|
|
1747
1751
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1748
1752
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1749
|
-
const message =
|
|
1753
|
+
const message = createBaseMsgSlashParticipantTrustDepositResponse();
|
|
1750
1754
|
while (reader.pos < end) {
|
|
1751
1755
|
const tag = reader.uint32();
|
|
1752
1756
|
switch (tag >>> 3) {
|
|
@@ -1766,17 +1770,17 @@ exports.MsgSlashPermissionTrustDepositResponse = {
|
|
|
1766
1770
|
return obj;
|
|
1767
1771
|
},
|
|
1768
1772
|
create(base) {
|
|
1769
|
-
return exports.
|
|
1773
|
+
return exports.MsgSlashParticipantTrustDepositResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1770
1774
|
},
|
|
1771
1775
|
fromPartial(_) {
|
|
1772
|
-
const message =
|
|
1776
|
+
const message = createBaseMsgSlashParticipantTrustDepositResponse();
|
|
1773
1777
|
return message;
|
|
1774
1778
|
},
|
|
1775
1779
|
};
|
|
1776
|
-
function
|
|
1780
|
+
function createBaseMsgRepayParticipantSlashedTrustDeposit() {
|
|
1777
1781
|
return { corporation: "", operator: "", id: 0, amount: 0 };
|
|
1778
1782
|
}
|
|
1779
|
-
exports.
|
|
1783
|
+
exports.MsgRepayParticipantSlashedTrustDeposit = {
|
|
1780
1784
|
encode(message, writer = _m0.Writer.create()) {
|
|
1781
1785
|
if (message.corporation !== "") {
|
|
1782
1786
|
writer.uint32(10).string(message.corporation);
|
|
@@ -1795,7 +1799,7 @@ exports.MsgRepayPermissionSlashedTrustDeposit = {
|
|
|
1795
1799
|
decode(input, length) {
|
|
1796
1800
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1797
1801
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1798
|
-
const message =
|
|
1802
|
+
const message = createBaseMsgRepayParticipantSlashedTrustDeposit();
|
|
1799
1803
|
while (reader.pos < end) {
|
|
1800
1804
|
const tag = reader.uint32();
|
|
1801
1805
|
switch (tag >>> 3) {
|
|
@@ -1856,11 +1860,11 @@ exports.MsgRepayPermissionSlashedTrustDeposit = {
|
|
|
1856
1860
|
return obj;
|
|
1857
1861
|
},
|
|
1858
1862
|
create(base) {
|
|
1859
|
-
return exports.
|
|
1863
|
+
return exports.MsgRepayParticipantSlashedTrustDeposit.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1860
1864
|
},
|
|
1861
1865
|
fromPartial(object) {
|
|
1862
1866
|
var _a, _b, _c, _d;
|
|
1863
|
-
const message =
|
|
1867
|
+
const message = createBaseMsgRepayParticipantSlashedTrustDeposit();
|
|
1864
1868
|
message.corporation = (_a = object.corporation) !== null && _a !== void 0 ? _a : "";
|
|
1865
1869
|
message.operator = (_b = object.operator) !== null && _b !== void 0 ? _b : "";
|
|
1866
1870
|
message.id = (_c = object.id) !== null && _c !== void 0 ? _c : 0;
|
|
@@ -1868,17 +1872,17 @@ exports.MsgRepayPermissionSlashedTrustDeposit = {
|
|
|
1868
1872
|
return message;
|
|
1869
1873
|
},
|
|
1870
1874
|
};
|
|
1871
|
-
function
|
|
1875
|
+
function createBaseMsgRepayParticipantSlashedTrustDepositResponse() {
|
|
1872
1876
|
return {};
|
|
1873
1877
|
}
|
|
1874
|
-
exports.
|
|
1878
|
+
exports.MsgRepayParticipantSlashedTrustDepositResponse = {
|
|
1875
1879
|
encode(_, writer = _m0.Writer.create()) {
|
|
1876
1880
|
return writer;
|
|
1877
1881
|
},
|
|
1878
1882
|
decode(input, length) {
|
|
1879
1883
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1880
1884
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1881
|
-
const message =
|
|
1885
|
+
const message = createBaseMsgRepayParticipantSlashedTrustDepositResponse();
|
|
1882
1886
|
while (reader.pos < end) {
|
|
1883
1887
|
const tag = reader.uint32();
|
|
1884
1888
|
switch (tag >>> 3) {
|
|
@@ -1898,19 +1902,19 @@ exports.MsgRepayPermissionSlashedTrustDepositResponse = {
|
|
|
1898
1902
|
return obj;
|
|
1899
1903
|
},
|
|
1900
1904
|
create(base) {
|
|
1901
|
-
return exports.
|
|
1905
|
+
return exports.MsgRepayParticipantSlashedTrustDepositResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1902
1906
|
},
|
|
1903
1907
|
fromPartial(_) {
|
|
1904
|
-
const message =
|
|
1908
|
+
const message = createBaseMsgRepayParticipantSlashedTrustDepositResponse();
|
|
1905
1909
|
return message;
|
|
1906
1910
|
},
|
|
1907
1911
|
};
|
|
1908
|
-
function
|
|
1912
|
+
function createBaseMsgSelfCreateParticipant() {
|
|
1909
1913
|
return {
|
|
1910
1914
|
corporation: "",
|
|
1911
1915
|
operator: "",
|
|
1912
|
-
|
|
1913
|
-
|
|
1916
|
+
role: 0,
|
|
1917
|
+
validatorParticipantId: 0,
|
|
1914
1918
|
did: "",
|
|
1915
1919
|
effectiveFrom: undefined,
|
|
1916
1920
|
effectiveUntil: undefined,
|
|
@@ -1924,7 +1928,7 @@ function createBaseMsgSelfCreatePermission() {
|
|
|
1924
1928
|
vsOperatorAuthzSpendPeriod: undefined,
|
|
1925
1929
|
};
|
|
1926
1930
|
}
|
|
1927
|
-
exports.
|
|
1931
|
+
exports.MsgSelfCreateParticipant = {
|
|
1928
1932
|
encode(message, writer = _m0.Writer.create()) {
|
|
1929
1933
|
if (message.corporation !== "") {
|
|
1930
1934
|
writer.uint32(10).string(message.corporation);
|
|
@@ -1932,11 +1936,11 @@ exports.MsgSelfCreatePermission = {
|
|
|
1932
1936
|
if (message.operator !== "") {
|
|
1933
1937
|
writer.uint32(18).string(message.operator);
|
|
1934
1938
|
}
|
|
1935
|
-
if (message.
|
|
1936
|
-
writer.uint32(24).int32(message.
|
|
1939
|
+
if (message.role !== 0) {
|
|
1940
|
+
writer.uint32(24).int32(message.role);
|
|
1937
1941
|
}
|
|
1938
|
-
if (message.
|
|
1939
|
-
writer.uint32(32).uint64(message.
|
|
1942
|
+
if (message.validatorParticipantId !== 0) {
|
|
1943
|
+
writer.uint32(32).uint64(message.validatorParticipantId);
|
|
1940
1944
|
}
|
|
1941
1945
|
if (message.did !== "") {
|
|
1942
1946
|
writer.uint32(42).string(message.did);
|
|
@@ -1976,7 +1980,7 @@ exports.MsgSelfCreatePermission = {
|
|
|
1976
1980
|
decode(input, length) {
|
|
1977
1981
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1978
1982
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1979
|
-
const message =
|
|
1983
|
+
const message = createBaseMsgSelfCreateParticipant();
|
|
1980
1984
|
while (reader.pos < end) {
|
|
1981
1985
|
const tag = reader.uint32();
|
|
1982
1986
|
switch (tag >>> 3) {
|
|
@@ -1996,13 +2000,13 @@ exports.MsgSelfCreatePermission = {
|
|
|
1996
2000
|
if (tag !== 24) {
|
|
1997
2001
|
break;
|
|
1998
2002
|
}
|
|
1999
|
-
message.
|
|
2003
|
+
message.role = reader.int32();
|
|
2000
2004
|
continue;
|
|
2001
2005
|
case 4:
|
|
2002
2006
|
if (tag !== 32) {
|
|
2003
2007
|
break;
|
|
2004
2008
|
}
|
|
2005
|
-
message.
|
|
2009
|
+
message.validatorParticipantId = longToNumber(reader.uint64());
|
|
2006
2010
|
continue;
|
|
2007
2011
|
case 5:
|
|
2008
2012
|
if (tag !== 42) {
|
|
@@ -2082,8 +2086,10 @@ exports.MsgSelfCreatePermission = {
|
|
|
2082
2086
|
return {
|
|
2083
2087
|
corporation: isSet(object.corporation) ? globalThis.String(object.corporation) : "",
|
|
2084
2088
|
operator: isSet(object.operator) ? globalThis.String(object.operator) : "",
|
|
2085
|
-
|
|
2086
|
-
|
|
2089
|
+
role: isSet(object.role) ? (0, types_1.participantRoleFromJSON)(object.role) : 0,
|
|
2090
|
+
validatorParticipantId: isSet(object.validatorParticipantId)
|
|
2091
|
+
? globalThis.Number(object.validatorParticipantId)
|
|
2092
|
+
: 0,
|
|
2087
2093
|
did: isSet(object.did) ? globalThis.String(object.did) : "",
|
|
2088
2094
|
effectiveFrom: isSet(object.effectiveFrom) ? fromJsonTimestamp(object.effectiveFrom) : undefined,
|
|
2089
2095
|
effectiveUntil: isSet(object.effectiveUntil) ? fromJsonTimestamp(object.effectiveUntil) : undefined,
|
|
@@ -2116,11 +2122,11 @@ exports.MsgSelfCreatePermission = {
|
|
|
2116
2122
|
if (message.operator !== "") {
|
|
2117
2123
|
obj.operator = message.operator;
|
|
2118
2124
|
}
|
|
2119
|
-
if (message.
|
|
2120
|
-
obj.
|
|
2125
|
+
if (message.role !== 0) {
|
|
2126
|
+
obj.role = (0, types_1.participantRoleToJSON)(message.role);
|
|
2121
2127
|
}
|
|
2122
|
-
if (message.
|
|
2123
|
-
obj.
|
|
2128
|
+
if (message.validatorParticipantId !== 0) {
|
|
2129
|
+
obj.validatorParticipantId = Math.round(message.validatorParticipantId);
|
|
2124
2130
|
}
|
|
2125
2131
|
if (message.did !== "") {
|
|
2126
2132
|
obj.did = message.did;
|
|
@@ -2158,15 +2164,15 @@ exports.MsgSelfCreatePermission = {
|
|
|
2158
2164
|
return obj;
|
|
2159
2165
|
},
|
|
2160
2166
|
create(base) {
|
|
2161
|
-
return exports.
|
|
2167
|
+
return exports.MsgSelfCreateParticipant.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
2162
2168
|
},
|
|
2163
2169
|
fromPartial(object) {
|
|
2164
2170
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
2165
|
-
const message =
|
|
2171
|
+
const message = createBaseMsgSelfCreateParticipant();
|
|
2166
2172
|
message.corporation = (_a = object.corporation) !== null && _a !== void 0 ? _a : "";
|
|
2167
2173
|
message.operator = (_b = object.operator) !== null && _b !== void 0 ? _b : "";
|
|
2168
|
-
message.
|
|
2169
|
-
message.
|
|
2174
|
+
message.role = (_c = object.role) !== null && _c !== void 0 ? _c : 0;
|
|
2175
|
+
message.validatorParticipantId = (_d = object.validatorParticipantId) !== null && _d !== void 0 ? _d : 0;
|
|
2170
2176
|
message.did = (_e = object.did) !== null && _e !== void 0 ? _e : "";
|
|
2171
2177
|
message.effectiveFrom = (_f = object.effectiveFrom) !== null && _f !== void 0 ? _f : undefined;
|
|
2172
2178
|
message.effectiveUntil = (_g = object.effectiveUntil) !== null && _g !== void 0 ? _g : undefined;
|
|
@@ -2184,10 +2190,10 @@ exports.MsgSelfCreatePermission = {
|
|
|
2184
2190
|
return message;
|
|
2185
2191
|
},
|
|
2186
2192
|
};
|
|
2187
|
-
function
|
|
2193
|
+
function createBaseMsgSelfCreateParticipantResponse() {
|
|
2188
2194
|
return { id: 0 };
|
|
2189
2195
|
}
|
|
2190
|
-
exports.
|
|
2196
|
+
exports.MsgSelfCreateParticipantResponse = {
|
|
2191
2197
|
encode(message, writer = _m0.Writer.create()) {
|
|
2192
2198
|
if (message.id !== 0) {
|
|
2193
2199
|
writer.uint32(8).uint64(message.id);
|
|
@@ -2197,7 +2203,7 @@ exports.MsgSelfCreatePermissionResponse = {
|
|
|
2197
2203
|
decode(input, length) {
|
|
2198
2204
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
2199
2205
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2200
|
-
const message =
|
|
2206
|
+
const message = createBaseMsgSelfCreateParticipantResponse();
|
|
2201
2207
|
while (reader.pos < end) {
|
|
2202
2208
|
const tag = reader.uint32();
|
|
2203
2209
|
switch (tag >>> 3) {
|
|
@@ -2226,92 +2232,92 @@ exports.MsgSelfCreatePermissionResponse = {
|
|
|
2226
2232
|
return obj;
|
|
2227
2233
|
},
|
|
2228
2234
|
create(base) {
|
|
2229
|
-
return exports.
|
|
2235
|
+
return exports.MsgSelfCreateParticipantResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
2230
2236
|
},
|
|
2231
2237
|
fromPartial(object) {
|
|
2232
2238
|
var _a;
|
|
2233
|
-
const message =
|
|
2239
|
+
const message = createBaseMsgSelfCreateParticipantResponse();
|
|
2234
2240
|
message.id = (_a = object.id) !== null && _a !== void 0 ? _a : 0;
|
|
2235
2241
|
return message;
|
|
2236
2242
|
},
|
|
2237
2243
|
};
|
|
2238
|
-
exports.MsgServiceName = "verana.
|
|
2244
|
+
exports.MsgServiceName = "verana.pp.v1.Msg";
|
|
2239
2245
|
class MsgClientImpl {
|
|
2240
2246
|
constructor(rpc, opts) {
|
|
2241
2247
|
this.service = (opts === null || opts === void 0 ? void 0 : opts.service) || exports.MsgServiceName;
|
|
2242
2248
|
this.rpc = rpc;
|
|
2243
2249
|
this.UpdateParams = this.UpdateParams.bind(this);
|
|
2244
|
-
this.
|
|
2245
|
-
this.
|
|
2246
|
-
this.
|
|
2247
|
-
this.
|
|
2248
|
-
this.
|
|
2249
|
-
this.
|
|
2250
|
-
this.
|
|
2251
|
-
this.
|
|
2252
|
-
this.
|
|
2253
|
-
this.
|
|
2254
|
-
this.
|
|
2250
|
+
this.StartParticipantOP = this.StartParticipantOP.bind(this);
|
|
2251
|
+
this.RenewParticipantOP = this.RenewParticipantOP.bind(this);
|
|
2252
|
+
this.SetParticipantOPToValidated = this.SetParticipantOPToValidated.bind(this);
|
|
2253
|
+
this.CancelParticipantOPLastRequest = this.CancelParticipantOPLastRequest.bind(this);
|
|
2254
|
+
this.CreateRootParticipant = this.CreateRootParticipant.bind(this);
|
|
2255
|
+
this.SetParticipantEffectiveUntil = this.SetParticipantEffectiveUntil.bind(this);
|
|
2256
|
+
this.RevokeParticipant = this.RevokeParticipant.bind(this);
|
|
2257
|
+
this.CreateOrUpdateParticipantSession = this.CreateOrUpdateParticipantSession.bind(this);
|
|
2258
|
+
this.SlashParticipantTrustDeposit = this.SlashParticipantTrustDeposit.bind(this);
|
|
2259
|
+
this.RepayParticipantSlashedTrustDeposit = this.RepayParticipantSlashedTrustDeposit.bind(this);
|
|
2260
|
+
this.SelfCreateParticipant = this.SelfCreateParticipant.bind(this);
|
|
2255
2261
|
}
|
|
2256
2262
|
UpdateParams(request) {
|
|
2257
2263
|
const data = exports.MsgUpdateParams.encode(request).finish();
|
|
2258
2264
|
const promise = this.rpc.request(this.service, "UpdateParams", data);
|
|
2259
2265
|
return promise.then((data) => exports.MsgUpdateParamsResponse.decode(_m0.Reader.create(data)));
|
|
2260
2266
|
}
|
|
2261
|
-
|
|
2262
|
-
const data = exports.
|
|
2263
|
-
const promise = this.rpc.request(this.service, "
|
|
2264
|
-
return promise.then((data) => exports.
|
|
2267
|
+
StartParticipantOP(request) {
|
|
2268
|
+
const data = exports.MsgStartParticipantOP.encode(request).finish();
|
|
2269
|
+
const promise = this.rpc.request(this.service, "StartParticipantOP", data);
|
|
2270
|
+
return promise.then((data) => exports.MsgStartParticipantOPResponse.decode(_m0.Reader.create(data)));
|
|
2265
2271
|
}
|
|
2266
|
-
|
|
2267
|
-
const data = exports.
|
|
2268
|
-
const promise = this.rpc.request(this.service, "
|
|
2269
|
-
return promise.then((data) => exports.
|
|
2272
|
+
RenewParticipantOP(request) {
|
|
2273
|
+
const data = exports.MsgRenewParticipantOP.encode(request).finish();
|
|
2274
|
+
const promise = this.rpc.request(this.service, "RenewParticipantOP", data);
|
|
2275
|
+
return promise.then((data) => exports.MsgRenewParticipantOPResponse.decode(_m0.Reader.create(data)));
|
|
2270
2276
|
}
|
|
2271
|
-
|
|
2272
|
-
const data = exports.
|
|
2273
|
-
const promise = this.rpc.request(this.service, "
|
|
2274
|
-
return promise.then((data) => exports.
|
|
2277
|
+
SetParticipantOPToValidated(request) {
|
|
2278
|
+
const data = exports.MsgSetParticipantOPToValidated.encode(request).finish();
|
|
2279
|
+
const promise = this.rpc.request(this.service, "SetParticipantOPToValidated", data);
|
|
2280
|
+
return promise.then((data) => exports.MsgSetParticipantOPToValidatedResponse.decode(_m0.Reader.create(data)));
|
|
2275
2281
|
}
|
|
2276
|
-
|
|
2277
|
-
const data = exports.
|
|
2278
|
-
const promise = this.rpc.request(this.service, "
|
|
2279
|
-
return promise.then((data) => exports.
|
|
2282
|
+
CancelParticipantOPLastRequest(request) {
|
|
2283
|
+
const data = exports.MsgCancelParticipantOPLastRequest.encode(request).finish();
|
|
2284
|
+
const promise = this.rpc.request(this.service, "CancelParticipantOPLastRequest", data);
|
|
2285
|
+
return promise.then((data) => exports.MsgCancelParticipantOPLastRequestResponse.decode(_m0.Reader.create(data)));
|
|
2280
2286
|
}
|
|
2281
|
-
|
|
2282
|
-
const data = exports.
|
|
2283
|
-
const promise = this.rpc.request(this.service, "
|
|
2284
|
-
return promise.then((data) => exports.
|
|
2287
|
+
CreateRootParticipant(request) {
|
|
2288
|
+
const data = exports.MsgCreateRootParticipant.encode(request).finish();
|
|
2289
|
+
const promise = this.rpc.request(this.service, "CreateRootParticipant", data);
|
|
2290
|
+
return promise.then((data) => exports.MsgCreateRootParticipantResponse.decode(_m0.Reader.create(data)));
|
|
2285
2291
|
}
|
|
2286
|
-
|
|
2287
|
-
const data = exports.
|
|
2288
|
-
const promise = this.rpc.request(this.service, "
|
|
2289
|
-
return promise.then((data) => exports.
|
|
2292
|
+
SetParticipantEffectiveUntil(request) {
|
|
2293
|
+
const data = exports.MsgSetParticipantEffectiveUntil.encode(request).finish();
|
|
2294
|
+
const promise = this.rpc.request(this.service, "SetParticipantEffectiveUntil", data);
|
|
2295
|
+
return promise.then((data) => exports.MsgSetParticipantEffectiveUntilResponse.decode(_m0.Reader.create(data)));
|
|
2290
2296
|
}
|
|
2291
|
-
|
|
2292
|
-
const data = exports.
|
|
2293
|
-
const promise = this.rpc.request(this.service, "
|
|
2294
|
-
return promise.then((data) => exports.
|
|
2297
|
+
RevokeParticipant(request) {
|
|
2298
|
+
const data = exports.MsgRevokeParticipant.encode(request).finish();
|
|
2299
|
+
const promise = this.rpc.request(this.service, "RevokeParticipant", data);
|
|
2300
|
+
return promise.then((data) => exports.MsgRevokeParticipantResponse.decode(_m0.Reader.create(data)));
|
|
2295
2301
|
}
|
|
2296
|
-
|
|
2297
|
-
const data = exports.
|
|
2298
|
-
const promise = this.rpc.request(this.service, "
|
|
2299
|
-
return promise.then((data) => exports.
|
|
2302
|
+
CreateOrUpdateParticipantSession(request) {
|
|
2303
|
+
const data = exports.MsgCreateOrUpdateParticipantSession.encode(request).finish();
|
|
2304
|
+
const promise = this.rpc.request(this.service, "CreateOrUpdateParticipantSession", data);
|
|
2305
|
+
return promise.then((data) => exports.MsgCreateOrUpdateParticipantSessionResponse.decode(_m0.Reader.create(data)));
|
|
2300
2306
|
}
|
|
2301
|
-
|
|
2302
|
-
const data = exports.
|
|
2303
|
-
const promise = this.rpc.request(this.service, "
|
|
2304
|
-
return promise.then((data) => exports.
|
|
2307
|
+
SlashParticipantTrustDeposit(request) {
|
|
2308
|
+
const data = exports.MsgSlashParticipantTrustDeposit.encode(request).finish();
|
|
2309
|
+
const promise = this.rpc.request(this.service, "SlashParticipantTrustDeposit", data);
|
|
2310
|
+
return promise.then((data) => exports.MsgSlashParticipantTrustDepositResponse.decode(_m0.Reader.create(data)));
|
|
2305
2311
|
}
|
|
2306
|
-
|
|
2307
|
-
const data = exports.
|
|
2308
|
-
const promise = this.rpc.request(this.service, "
|
|
2309
|
-
return promise.then((data) => exports.
|
|
2312
|
+
RepayParticipantSlashedTrustDeposit(request) {
|
|
2313
|
+
const data = exports.MsgRepayParticipantSlashedTrustDeposit.encode(request).finish();
|
|
2314
|
+
const promise = this.rpc.request(this.service, "RepayParticipantSlashedTrustDeposit", data);
|
|
2315
|
+
return promise.then((data) => exports.MsgRepayParticipantSlashedTrustDepositResponse.decode(_m0.Reader.create(data)));
|
|
2310
2316
|
}
|
|
2311
|
-
|
|
2312
|
-
const data = exports.
|
|
2313
|
-
const promise = this.rpc.request(this.service, "
|
|
2314
|
-
return promise.then((data) => exports.
|
|
2317
|
+
SelfCreateParticipant(request) {
|
|
2318
|
+
const data = exports.MsgSelfCreateParticipant.encode(request).finish();
|
|
2319
|
+
const promise = this.rpc.request(this.service, "SelfCreateParticipant", data);
|
|
2320
|
+
return promise.then((data) => exports.MsgSelfCreateParticipantResponse.decode(_m0.Reader.create(data)));
|
|
2315
2321
|
}
|
|
2316
2322
|
}
|
|
2317
2323
|
exports.MsgClientImpl = MsgClientImpl;
|