@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/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,25 +154,25 @@ 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,
|
|
166
166
|
verificationFees: undefined,
|
|
167
167
|
vsOperator: "",
|
|
168
|
-
|
|
168
|
+
vsOperatorAuthzMsgTypes: [],
|
|
169
169
|
vsOperatorAuthzSpendLimit: [],
|
|
170
170
|
vsOperatorAuthzWithFeegrant: false,
|
|
171
171
|
vsOperatorAuthzFeeSpendLimit: [],
|
|
172
|
-
|
|
172
|
+
vsOperatorAuthzPeriod: 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);
|
|
@@ -201,8 +201,8 @@ exports.MsgStartPermissionVP = {
|
|
|
201
201
|
if (message.vsOperator !== "") {
|
|
202
202
|
writer.uint32(74).string(message.vsOperator);
|
|
203
203
|
}
|
|
204
|
-
|
|
205
|
-
writer.uint32(
|
|
204
|
+
for (const v of message.vsOperatorAuthzMsgTypes) {
|
|
205
|
+
writer.uint32(122).string(v);
|
|
206
206
|
}
|
|
207
207
|
for (const v of message.vsOperatorAuthzSpendLimit) {
|
|
208
208
|
coin_1.Coin.encode(v, writer.uint32(90).fork()).ldelim();
|
|
@@ -213,15 +213,15 @@ exports.MsgStartPermissionVP = {
|
|
|
213
213
|
for (const v of message.vsOperatorAuthzFeeSpendLimit) {
|
|
214
214
|
coin_1.Coin.encode(v, writer.uint32(106).fork()).ldelim();
|
|
215
215
|
}
|
|
216
|
-
if (message.
|
|
217
|
-
duration_1.Duration.encode(message.
|
|
216
|
+
if (message.vsOperatorAuthzPeriod !== undefined) {
|
|
217
|
+
duration_1.Duration.encode(message.vsOperatorAuthzPeriod, writer.uint32(114).fork()).ldelim();
|
|
218
218
|
}
|
|
219
219
|
return writer;
|
|
220
220
|
},
|
|
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) {
|
|
@@ -279,11 +279,11 @@ exports.MsgStartPermissionVP = {
|
|
|
279
279
|
}
|
|
280
280
|
message.vsOperator = reader.string();
|
|
281
281
|
continue;
|
|
282
|
-
case
|
|
283
|
-
if (tag !==
|
|
282
|
+
case 15:
|
|
283
|
+
if (tag !== 122) {
|
|
284
284
|
break;
|
|
285
285
|
}
|
|
286
|
-
message.
|
|
286
|
+
message.vsOperatorAuthzMsgTypes.push(reader.string());
|
|
287
287
|
continue;
|
|
288
288
|
case 11:
|
|
289
289
|
if (tag !== 90) {
|
|
@@ -307,7 +307,7 @@ exports.MsgStartPermissionVP = {
|
|
|
307
307
|
if (tag !== 114) {
|
|
308
308
|
break;
|
|
309
309
|
}
|
|
310
|
-
message.
|
|
310
|
+
message.vsOperatorAuthzPeriod = duration_1.Duration.decode(reader, reader.uint32());
|
|
311
311
|
continue;
|
|
312
312
|
}
|
|
313
313
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -321,16 +321,18 @@ 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,
|
|
329
331
|
verificationFees: isSet(object.verificationFees) ? types_1.OptionalUInt64.fromJSON(object.verificationFees) : undefined,
|
|
330
332
|
vsOperator: isSet(object.vsOperator) ? globalThis.String(object.vsOperator) : "",
|
|
331
|
-
|
|
332
|
-
? globalThis.
|
|
333
|
-
:
|
|
333
|
+
vsOperatorAuthzMsgTypes: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.vsOperatorAuthzMsgTypes)
|
|
334
|
+
? object.vsOperatorAuthzMsgTypes.map((e) => globalThis.String(e))
|
|
335
|
+
: [],
|
|
334
336
|
vsOperatorAuthzSpendLimit: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.vsOperatorAuthzSpendLimit)
|
|
335
337
|
? object.vsOperatorAuthzSpendLimit.map((e) => coin_1.Coin.fromJSON(e))
|
|
336
338
|
: [],
|
|
@@ -340,13 +342,13 @@ exports.MsgStartPermissionVP = {
|
|
|
340
342
|
vsOperatorAuthzFeeSpendLimit: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.vsOperatorAuthzFeeSpendLimit)
|
|
341
343
|
? object.vsOperatorAuthzFeeSpendLimit.map((e) => coin_1.Coin.fromJSON(e))
|
|
342
344
|
: [],
|
|
343
|
-
|
|
344
|
-
? duration_1.Duration.fromJSON(object.
|
|
345
|
+
vsOperatorAuthzPeriod: isSet(object.vsOperatorAuthzPeriod)
|
|
346
|
+
? duration_1.Duration.fromJSON(object.vsOperatorAuthzPeriod)
|
|
345
347
|
: undefined,
|
|
346
348
|
};
|
|
347
349
|
},
|
|
348
350
|
toJSON(message) {
|
|
349
|
-
var _a, _b;
|
|
351
|
+
var _a, _b, _c;
|
|
350
352
|
const obj = {};
|
|
351
353
|
if (message.corporation !== "") {
|
|
352
354
|
obj.corporation = message.corporation;
|
|
@@ -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;
|
|
@@ -375,33 +377,33 @@ exports.MsgStartPermissionVP = {
|
|
|
375
377
|
if (message.vsOperator !== "") {
|
|
376
378
|
obj.vsOperator = message.vsOperator;
|
|
377
379
|
}
|
|
378
|
-
if (message.
|
|
379
|
-
obj.
|
|
380
|
+
if ((_a = message.vsOperatorAuthzMsgTypes) === null || _a === void 0 ? void 0 : _a.length) {
|
|
381
|
+
obj.vsOperatorAuthzMsgTypes = message.vsOperatorAuthzMsgTypes;
|
|
380
382
|
}
|
|
381
|
-
if ((
|
|
383
|
+
if ((_b = message.vsOperatorAuthzSpendLimit) === null || _b === void 0 ? void 0 : _b.length) {
|
|
382
384
|
obj.vsOperatorAuthzSpendLimit = message.vsOperatorAuthzSpendLimit.map((e) => coin_1.Coin.toJSON(e));
|
|
383
385
|
}
|
|
384
386
|
if (message.vsOperatorAuthzWithFeegrant !== false) {
|
|
385
387
|
obj.vsOperatorAuthzWithFeegrant = message.vsOperatorAuthzWithFeegrant;
|
|
386
388
|
}
|
|
387
|
-
if ((
|
|
389
|
+
if ((_c = message.vsOperatorAuthzFeeSpendLimit) === null || _c === void 0 ? void 0 : _c.length) {
|
|
388
390
|
obj.vsOperatorAuthzFeeSpendLimit = message.vsOperatorAuthzFeeSpendLimit.map((e) => coin_1.Coin.toJSON(e));
|
|
389
391
|
}
|
|
390
|
-
if (message.
|
|
391
|
-
obj.
|
|
392
|
+
if (message.vsOperatorAuthzPeriod !== undefined) {
|
|
393
|
+
obj.vsOperatorAuthzPeriod = duration_1.Duration.toJSON(message.vsOperatorAuthzPeriod);
|
|
392
394
|
}
|
|
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)
|
|
@@ -413,31 +415,31 @@ exports.MsgStartPermissionVP = {
|
|
|
413
415
|
? types_1.OptionalUInt64.fromPartial(object.verificationFees)
|
|
414
416
|
: undefined;
|
|
415
417
|
message.vsOperator = (_f = object.vsOperator) !== null && _f !== void 0 ? _f : "";
|
|
416
|
-
message.
|
|
418
|
+
message.vsOperatorAuthzMsgTypes = ((_g = object.vsOperatorAuthzMsgTypes) === null || _g === void 0 ? void 0 : _g.map((e) => e)) || [];
|
|
417
419
|
message.vsOperatorAuthzSpendLimit = ((_h = object.vsOperatorAuthzSpendLimit) === null || _h === void 0 ? void 0 : _h.map((e) => coin_1.Coin.fromPartial(e))) || [];
|
|
418
420
|
message.vsOperatorAuthzWithFeegrant = (_j = object.vsOperatorAuthzWithFeegrant) !== null && _j !== void 0 ? _j : false;
|
|
419
421
|
message.vsOperatorAuthzFeeSpendLimit = ((_k = object.vsOperatorAuthzFeeSpendLimit) === null || _k === void 0 ? void 0 : _k.map((e) => coin_1.Coin.fromPartial(e))) || [];
|
|
420
|
-
message.
|
|
421
|
-
(object.
|
|
422
|
-
? duration_1.Duration.fromPartial(object.
|
|
422
|
+
message.vsOperatorAuthzPeriod =
|
|
423
|
+
(object.vsOperatorAuthzPeriod !== undefined && object.vsOperatorAuthzPeriod !== null)
|
|
424
|
+
? duration_1.Duration.fromPartial(object.vsOperatorAuthzPeriod)
|
|
423
425
|
: undefined;
|
|
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: "",
|
|
@@ -951,9 +953,15 @@ function createBaseMsgCreateRootPermission() {
|
|
|
951
953
|
validationFees: 0,
|
|
952
954
|
issuanceFees: 0,
|
|
953
955
|
verificationFees: 0,
|
|
956
|
+
vsOperator: "",
|
|
957
|
+
vsOperatorAuthzMsgTypes: [],
|
|
958
|
+
vsOperatorAuthzSpendLimit: [],
|
|
959
|
+
vsOperatorAuthzWithFeegrant: false,
|
|
960
|
+
vsOperatorAuthzFeeSpendLimit: [],
|
|
961
|
+
vsOperatorAuthzPeriod: undefined,
|
|
954
962
|
};
|
|
955
963
|
}
|
|
956
|
-
exports.
|
|
964
|
+
exports.MsgCreateRootParticipant = {
|
|
957
965
|
encode(message, writer = _m0.Writer.create()) {
|
|
958
966
|
if (message.corporation !== "") {
|
|
959
967
|
writer.uint32(10).string(message.corporation);
|
|
@@ -982,12 +990,30 @@ exports.MsgCreateRootPermission = {
|
|
|
982
990
|
if (message.verificationFees !== 0) {
|
|
983
991
|
writer.uint32(72).uint64(message.verificationFees);
|
|
984
992
|
}
|
|
993
|
+
if (message.vsOperator !== "") {
|
|
994
|
+
writer.uint32(82).string(message.vsOperator);
|
|
995
|
+
}
|
|
996
|
+
for (const v of message.vsOperatorAuthzMsgTypes) {
|
|
997
|
+
writer.uint32(90).string(v);
|
|
998
|
+
}
|
|
999
|
+
for (const v of message.vsOperatorAuthzSpendLimit) {
|
|
1000
|
+
coin_1.Coin.encode(v, writer.uint32(98).fork()).ldelim();
|
|
1001
|
+
}
|
|
1002
|
+
if (message.vsOperatorAuthzWithFeegrant !== false) {
|
|
1003
|
+
writer.uint32(104).bool(message.vsOperatorAuthzWithFeegrant);
|
|
1004
|
+
}
|
|
1005
|
+
for (const v of message.vsOperatorAuthzFeeSpendLimit) {
|
|
1006
|
+
coin_1.Coin.encode(v, writer.uint32(114).fork()).ldelim();
|
|
1007
|
+
}
|
|
1008
|
+
if (message.vsOperatorAuthzPeriod !== undefined) {
|
|
1009
|
+
duration_1.Duration.encode(message.vsOperatorAuthzPeriod, writer.uint32(122).fork()).ldelim();
|
|
1010
|
+
}
|
|
985
1011
|
return writer;
|
|
986
1012
|
},
|
|
987
1013
|
decode(input, length) {
|
|
988
1014
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
989
1015
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
990
|
-
const message =
|
|
1016
|
+
const message = createBaseMsgCreateRootParticipant();
|
|
991
1017
|
while (reader.pos < end) {
|
|
992
1018
|
const tag = reader.uint32();
|
|
993
1019
|
switch (tag >>> 3) {
|
|
@@ -1045,6 +1071,42 @@ exports.MsgCreateRootPermission = {
|
|
|
1045
1071
|
}
|
|
1046
1072
|
message.verificationFees = longToNumber(reader.uint64());
|
|
1047
1073
|
continue;
|
|
1074
|
+
case 10:
|
|
1075
|
+
if (tag !== 82) {
|
|
1076
|
+
break;
|
|
1077
|
+
}
|
|
1078
|
+
message.vsOperator = reader.string();
|
|
1079
|
+
continue;
|
|
1080
|
+
case 11:
|
|
1081
|
+
if (tag !== 90) {
|
|
1082
|
+
break;
|
|
1083
|
+
}
|
|
1084
|
+
message.vsOperatorAuthzMsgTypes.push(reader.string());
|
|
1085
|
+
continue;
|
|
1086
|
+
case 12:
|
|
1087
|
+
if (tag !== 98) {
|
|
1088
|
+
break;
|
|
1089
|
+
}
|
|
1090
|
+
message.vsOperatorAuthzSpendLimit.push(coin_1.Coin.decode(reader, reader.uint32()));
|
|
1091
|
+
continue;
|
|
1092
|
+
case 13:
|
|
1093
|
+
if (tag !== 104) {
|
|
1094
|
+
break;
|
|
1095
|
+
}
|
|
1096
|
+
message.vsOperatorAuthzWithFeegrant = reader.bool();
|
|
1097
|
+
continue;
|
|
1098
|
+
case 14:
|
|
1099
|
+
if (tag !== 114) {
|
|
1100
|
+
break;
|
|
1101
|
+
}
|
|
1102
|
+
message.vsOperatorAuthzFeeSpendLimit.push(coin_1.Coin.decode(reader, reader.uint32()));
|
|
1103
|
+
continue;
|
|
1104
|
+
case 15:
|
|
1105
|
+
if (tag !== 122) {
|
|
1106
|
+
break;
|
|
1107
|
+
}
|
|
1108
|
+
message.vsOperatorAuthzPeriod = duration_1.Duration.decode(reader, reader.uint32());
|
|
1109
|
+
continue;
|
|
1048
1110
|
}
|
|
1049
1111
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1050
1112
|
break;
|
|
@@ -1064,9 +1126,26 @@ exports.MsgCreateRootPermission = {
|
|
|
1064
1126
|
validationFees: isSet(object.validationFees) ? globalThis.Number(object.validationFees) : 0,
|
|
1065
1127
|
issuanceFees: isSet(object.issuanceFees) ? globalThis.Number(object.issuanceFees) : 0,
|
|
1066
1128
|
verificationFees: isSet(object.verificationFees) ? globalThis.Number(object.verificationFees) : 0,
|
|
1129
|
+
vsOperator: isSet(object.vsOperator) ? globalThis.String(object.vsOperator) : "",
|
|
1130
|
+
vsOperatorAuthzMsgTypes: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.vsOperatorAuthzMsgTypes)
|
|
1131
|
+
? object.vsOperatorAuthzMsgTypes.map((e) => globalThis.String(e))
|
|
1132
|
+
: [],
|
|
1133
|
+
vsOperatorAuthzSpendLimit: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.vsOperatorAuthzSpendLimit)
|
|
1134
|
+
? object.vsOperatorAuthzSpendLimit.map((e) => coin_1.Coin.fromJSON(e))
|
|
1135
|
+
: [],
|
|
1136
|
+
vsOperatorAuthzWithFeegrant: isSet(object.vsOperatorAuthzWithFeegrant)
|
|
1137
|
+
? globalThis.Boolean(object.vsOperatorAuthzWithFeegrant)
|
|
1138
|
+
: false,
|
|
1139
|
+
vsOperatorAuthzFeeSpendLimit: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.vsOperatorAuthzFeeSpendLimit)
|
|
1140
|
+
? object.vsOperatorAuthzFeeSpendLimit.map((e) => coin_1.Coin.fromJSON(e))
|
|
1141
|
+
: [],
|
|
1142
|
+
vsOperatorAuthzPeriod: isSet(object.vsOperatorAuthzPeriod)
|
|
1143
|
+
? duration_1.Duration.fromJSON(object.vsOperatorAuthzPeriod)
|
|
1144
|
+
: undefined,
|
|
1067
1145
|
};
|
|
1068
1146
|
},
|
|
1069
1147
|
toJSON(message) {
|
|
1148
|
+
var _a, _b, _c;
|
|
1070
1149
|
const obj = {};
|
|
1071
1150
|
if (message.corporation !== "") {
|
|
1072
1151
|
obj.corporation = message.corporation;
|
|
@@ -1095,14 +1174,32 @@ exports.MsgCreateRootPermission = {
|
|
|
1095
1174
|
if (message.verificationFees !== 0) {
|
|
1096
1175
|
obj.verificationFees = Math.round(message.verificationFees);
|
|
1097
1176
|
}
|
|
1177
|
+
if (message.vsOperator !== "") {
|
|
1178
|
+
obj.vsOperator = message.vsOperator;
|
|
1179
|
+
}
|
|
1180
|
+
if ((_a = message.vsOperatorAuthzMsgTypes) === null || _a === void 0 ? void 0 : _a.length) {
|
|
1181
|
+
obj.vsOperatorAuthzMsgTypes = message.vsOperatorAuthzMsgTypes;
|
|
1182
|
+
}
|
|
1183
|
+
if ((_b = message.vsOperatorAuthzSpendLimit) === null || _b === void 0 ? void 0 : _b.length) {
|
|
1184
|
+
obj.vsOperatorAuthzSpendLimit = message.vsOperatorAuthzSpendLimit.map((e) => coin_1.Coin.toJSON(e));
|
|
1185
|
+
}
|
|
1186
|
+
if (message.vsOperatorAuthzWithFeegrant !== false) {
|
|
1187
|
+
obj.vsOperatorAuthzWithFeegrant = message.vsOperatorAuthzWithFeegrant;
|
|
1188
|
+
}
|
|
1189
|
+
if ((_c = message.vsOperatorAuthzFeeSpendLimit) === null || _c === void 0 ? void 0 : _c.length) {
|
|
1190
|
+
obj.vsOperatorAuthzFeeSpendLimit = message.vsOperatorAuthzFeeSpendLimit.map((e) => coin_1.Coin.toJSON(e));
|
|
1191
|
+
}
|
|
1192
|
+
if (message.vsOperatorAuthzPeriod !== undefined) {
|
|
1193
|
+
obj.vsOperatorAuthzPeriod = duration_1.Duration.toJSON(message.vsOperatorAuthzPeriod);
|
|
1194
|
+
}
|
|
1098
1195
|
return obj;
|
|
1099
1196
|
},
|
|
1100
1197
|
create(base) {
|
|
1101
|
-
return exports.
|
|
1198
|
+
return exports.MsgCreateRootParticipant.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1102
1199
|
},
|
|
1103
1200
|
fromPartial(object) {
|
|
1104
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1105
|
-
const message =
|
|
1201
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
1202
|
+
const message = createBaseMsgCreateRootParticipant();
|
|
1106
1203
|
message.corporation = (_a = object.corporation) !== null && _a !== void 0 ? _a : "";
|
|
1107
1204
|
message.operator = (_b = object.operator) !== null && _b !== void 0 ? _b : "";
|
|
1108
1205
|
message.schemaId = (_c = object.schemaId) !== null && _c !== void 0 ? _c : 0;
|
|
@@ -1112,13 +1209,22 @@ exports.MsgCreateRootPermission = {
|
|
|
1112
1209
|
message.validationFees = (_g = object.validationFees) !== null && _g !== void 0 ? _g : 0;
|
|
1113
1210
|
message.issuanceFees = (_h = object.issuanceFees) !== null && _h !== void 0 ? _h : 0;
|
|
1114
1211
|
message.verificationFees = (_j = object.verificationFees) !== null && _j !== void 0 ? _j : 0;
|
|
1212
|
+
message.vsOperator = (_k = object.vsOperator) !== null && _k !== void 0 ? _k : "";
|
|
1213
|
+
message.vsOperatorAuthzMsgTypes = ((_l = object.vsOperatorAuthzMsgTypes) === null || _l === void 0 ? void 0 : _l.map((e) => e)) || [];
|
|
1214
|
+
message.vsOperatorAuthzSpendLimit = ((_m = object.vsOperatorAuthzSpendLimit) === null || _m === void 0 ? void 0 : _m.map((e) => coin_1.Coin.fromPartial(e))) || [];
|
|
1215
|
+
message.vsOperatorAuthzWithFeegrant = (_o = object.vsOperatorAuthzWithFeegrant) !== null && _o !== void 0 ? _o : false;
|
|
1216
|
+
message.vsOperatorAuthzFeeSpendLimit = ((_p = object.vsOperatorAuthzFeeSpendLimit) === null || _p === void 0 ? void 0 : _p.map((e) => coin_1.Coin.fromPartial(e))) || [];
|
|
1217
|
+
message.vsOperatorAuthzPeriod =
|
|
1218
|
+
(object.vsOperatorAuthzPeriod !== undefined && object.vsOperatorAuthzPeriod !== null)
|
|
1219
|
+
? duration_1.Duration.fromPartial(object.vsOperatorAuthzPeriod)
|
|
1220
|
+
: undefined;
|
|
1115
1221
|
return message;
|
|
1116
1222
|
},
|
|
1117
1223
|
};
|
|
1118
|
-
function
|
|
1224
|
+
function createBaseMsgCreateRootParticipantResponse() {
|
|
1119
1225
|
return { id: 0 };
|
|
1120
1226
|
}
|
|
1121
|
-
exports.
|
|
1227
|
+
exports.MsgCreateRootParticipantResponse = {
|
|
1122
1228
|
encode(message, writer = _m0.Writer.create()) {
|
|
1123
1229
|
if (message.id !== 0) {
|
|
1124
1230
|
writer.uint32(8).uint64(message.id);
|
|
@@ -1128,7 +1234,7 @@ exports.MsgCreateRootPermissionResponse = {
|
|
|
1128
1234
|
decode(input, length) {
|
|
1129
1235
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1130
1236
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1131
|
-
const message =
|
|
1237
|
+
const message = createBaseMsgCreateRootParticipantResponse();
|
|
1132
1238
|
while (reader.pos < end) {
|
|
1133
1239
|
const tag = reader.uint32();
|
|
1134
1240
|
switch (tag >>> 3) {
|
|
@@ -1157,19 +1263,19 @@ exports.MsgCreateRootPermissionResponse = {
|
|
|
1157
1263
|
return obj;
|
|
1158
1264
|
},
|
|
1159
1265
|
create(base) {
|
|
1160
|
-
return exports.
|
|
1266
|
+
return exports.MsgCreateRootParticipantResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1161
1267
|
},
|
|
1162
1268
|
fromPartial(object) {
|
|
1163
1269
|
var _a;
|
|
1164
|
-
const message =
|
|
1270
|
+
const message = createBaseMsgCreateRootParticipantResponse();
|
|
1165
1271
|
message.id = (_a = object.id) !== null && _a !== void 0 ? _a : 0;
|
|
1166
1272
|
return message;
|
|
1167
1273
|
},
|
|
1168
1274
|
};
|
|
1169
|
-
function
|
|
1275
|
+
function createBaseMsgSetParticipantEffectiveUntil() {
|
|
1170
1276
|
return { corporation: "", operator: "", id: 0, effectiveUntil: undefined };
|
|
1171
1277
|
}
|
|
1172
|
-
exports.
|
|
1278
|
+
exports.MsgSetParticipantEffectiveUntil = {
|
|
1173
1279
|
encode(message, writer = _m0.Writer.create()) {
|
|
1174
1280
|
if (message.corporation !== "") {
|
|
1175
1281
|
writer.uint32(10).string(message.corporation);
|
|
@@ -1188,7 +1294,7 @@ exports.MsgAdjustPermission = {
|
|
|
1188
1294
|
decode(input, length) {
|
|
1189
1295
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1190
1296
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1191
|
-
const message =
|
|
1297
|
+
const message = createBaseMsgSetParticipantEffectiveUntil();
|
|
1192
1298
|
while (reader.pos < end) {
|
|
1193
1299
|
const tag = reader.uint32();
|
|
1194
1300
|
switch (tag >>> 3) {
|
|
@@ -1249,11 +1355,11 @@ exports.MsgAdjustPermission = {
|
|
|
1249
1355
|
return obj;
|
|
1250
1356
|
},
|
|
1251
1357
|
create(base) {
|
|
1252
|
-
return exports.
|
|
1358
|
+
return exports.MsgSetParticipantEffectiveUntil.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1253
1359
|
},
|
|
1254
1360
|
fromPartial(object) {
|
|
1255
1361
|
var _a, _b, _c, _d;
|
|
1256
|
-
const message =
|
|
1362
|
+
const message = createBaseMsgSetParticipantEffectiveUntil();
|
|
1257
1363
|
message.corporation = (_a = object.corporation) !== null && _a !== void 0 ? _a : "";
|
|
1258
1364
|
message.operator = (_b = object.operator) !== null && _b !== void 0 ? _b : "";
|
|
1259
1365
|
message.id = (_c = object.id) !== null && _c !== void 0 ? _c : 0;
|
|
@@ -1261,17 +1367,17 @@ exports.MsgAdjustPermission = {
|
|
|
1261
1367
|
return message;
|
|
1262
1368
|
},
|
|
1263
1369
|
};
|
|
1264
|
-
function
|
|
1370
|
+
function createBaseMsgSetParticipantEffectiveUntilResponse() {
|
|
1265
1371
|
return {};
|
|
1266
1372
|
}
|
|
1267
|
-
exports.
|
|
1373
|
+
exports.MsgSetParticipantEffectiveUntilResponse = {
|
|
1268
1374
|
encode(_, writer = _m0.Writer.create()) {
|
|
1269
1375
|
return writer;
|
|
1270
1376
|
},
|
|
1271
1377
|
decode(input, length) {
|
|
1272
1378
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1273
1379
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1274
|
-
const message =
|
|
1380
|
+
const message = createBaseMsgSetParticipantEffectiveUntilResponse();
|
|
1275
1381
|
while (reader.pos < end) {
|
|
1276
1382
|
const tag = reader.uint32();
|
|
1277
1383
|
switch (tag >>> 3) {
|
|
@@ -1291,17 +1397,17 @@ exports.MsgAdjustPermissionResponse = {
|
|
|
1291
1397
|
return obj;
|
|
1292
1398
|
},
|
|
1293
1399
|
create(base) {
|
|
1294
|
-
return exports.
|
|
1400
|
+
return exports.MsgSetParticipantEffectiveUntilResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1295
1401
|
},
|
|
1296
1402
|
fromPartial(_) {
|
|
1297
|
-
const message =
|
|
1403
|
+
const message = createBaseMsgSetParticipantEffectiveUntilResponse();
|
|
1298
1404
|
return message;
|
|
1299
1405
|
},
|
|
1300
1406
|
};
|
|
1301
|
-
function
|
|
1407
|
+
function createBaseMsgRevokeParticipant() {
|
|
1302
1408
|
return { corporation: "", operator: "", id: 0 };
|
|
1303
1409
|
}
|
|
1304
|
-
exports.
|
|
1410
|
+
exports.MsgRevokeParticipant = {
|
|
1305
1411
|
encode(message, writer = _m0.Writer.create()) {
|
|
1306
1412
|
if (message.corporation !== "") {
|
|
1307
1413
|
writer.uint32(10).string(message.corporation);
|
|
@@ -1317,7 +1423,7 @@ exports.MsgRevokePermission = {
|
|
|
1317
1423
|
decode(input, length) {
|
|
1318
1424
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1319
1425
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1320
|
-
const message =
|
|
1426
|
+
const message = createBaseMsgRevokeParticipant();
|
|
1321
1427
|
while (reader.pos < end) {
|
|
1322
1428
|
const tag = reader.uint32();
|
|
1323
1429
|
switch (tag >>> 3) {
|
|
@@ -1368,28 +1474,28 @@ exports.MsgRevokePermission = {
|
|
|
1368
1474
|
return obj;
|
|
1369
1475
|
},
|
|
1370
1476
|
create(base) {
|
|
1371
|
-
return exports.
|
|
1477
|
+
return exports.MsgRevokeParticipant.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1372
1478
|
},
|
|
1373
1479
|
fromPartial(object) {
|
|
1374
1480
|
var _a, _b, _c;
|
|
1375
|
-
const message =
|
|
1481
|
+
const message = createBaseMsgRevokeParticipant();
|
|
1376
1482
|
message.corporation = (_a = object.corporation) !== null && _a !== void 0 ? _a : "";
|
|
1377
1483
|
message.operator = (_b = object.operator) !== null && _b !== void 0 ? _b : "";
|
|
1378
1484
|
message.id = (_c = object.id) !== null && _c !== void 0 ? _c : 0;
|
|
1379
1485
|
return message;
|
|
1380
1486
|
},
|
|
1381
1487
|
};
|
|
1382
|
-
function
|
|
1488
|
+
function createBaseMsgRevokeParticipantResponse() {
|
|
1383
1489
|
return {};
|
|
1384
1490
|
}
|
|
1385
|
-
exports.
|
|
1491
|
+
exports.MsgRevokeParticipantResponse = {
|
|
1386
1492
|
encode(_, writer = _m0.Writer.create()) {
|
|
1387
1493
|
return writer;
|
|
1388
1494
|
},
|
|
1389
1495
|
decode(input, length) {
|
|
1390
1496
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1391
1497
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1392
|
-
const message =
|
|
1498
|
+
const message = createBaseMsgRevokeParticipantResponse();
|
|
1393
1499
|
while (reader.pos < end) {
|
|
1394
1500
|
const tag = reader.uint32();
|
|
1395
1501
|
switch (tag >>> 3) {
|
|
@@ -1409,26 +1515,26 @@ exports.MsgRevokePermissionResponse = {
|
|
|
1409
1515
|
return obj;
|
|
1410
1516
|
},
|
|
1411
1517
|
create(base) {
|
|
1412
|
-
return exports.
|
|
1518
|
+
return exports.MsgRevokeParticipantResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1413
1519
|
},
|
|
1414
1520
|
fromPartial(_) {
|
|
1415
|
-
const message =
|
|
1521
|
+
const message = createBaseMsgRevokeParticipantResponse();
|
|
1416
1522
|
return message;
|
|
1417
1523
|
},
|
|
1418
1524
|
};
|
|
1419
|
-
function
|
|
1525
|
+
function createBaseMsgCreateOrUpdateParticipantSession() {
|
|
1420
1526
|
return {
|
|
1421
1527
|
corporation: "",
|
|
1422
1528
|
operator: "",
|
|
1423
1529
|
id: "",
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1530
|
+
issuerParticipantId: 0,
|
|
1531
|
+
verifierParticipantId: 0,
|
|
1532
|
+
agentParticipantId: 0,
|
|
1533
|
+
walletAgentParticipantId: 0,
|
|
1428
1534
|
digest: "",
|
|
1429
1535
|
};
|
|
1430
1536
|
}
|
|
1431
|
-
exports.
|
|
1537
|
+
exports.MsgCreateOrUpdateParticipantSession = {
|
|
1432
1538
|
encode(message, writer = _m0.Writer.create()) {
|
|
1433
1539
|
if (message.corporation !== "") {
|
|
1434
1540
|
writer.uint32(10).string(message.corporation);
|
|
@@ -1439,17 +1545,17 @@ exports.MsgCreateOrUpdatePermissionSession = {
|
|
|
1439
1545
|
if (message.id !== "") {
|
|
1440
1546
|
writer.uint32(26).string(message.id);
|
|
1441
1547
|
}
|
|
1442
|
-
if (message.
|
|
1443
|
-
writer.uint32(32).uint64(message.
|
|
1548
|
+
if (message.issuerParticipantId !== 0) {
|
|
1549
|
+
writer.uint32(32).uint64(message.issuerParticipantId);
|
|
1444
1550
|
}
|
|
1445
|
-
if (message.
|
|
1446
|
-
writer.uint32(40).uint64(message.
|
|
1551
|
+
if (message.verifierParticipantId !== 0) {
|
|
1552
|
+
writer.uint32(40).uint64(message.verifierParticipantId);
|
|
1447
1553
|
}
|
|
1448
|
-
if (message.
|
|
1449
|
-
writer.uint32(48).uint64(message.
|
|
1554
|
+
if (message.agentParticipantId !== 0) {
|
|
1555
|
+
writer.uint32(48).uint64(message.agentParticipantId);
|
|
1450
1556
|
}
|
|
1451
|
-
if (message.
|
|
1452
|
-
writer.uint32(56).uint64(message.
|
|
1557
|
+
if (message.walletAgentParticipantId !== 0) {
|
|
1558
|
+
writer.uint32(56).uint64(message.walletAgentParticipantId);
|
|
1453
1559
|
}
|
|
1454
1560
|
if (message.digest !== "") {
|
|
1455
1561
|
writer.uint32(66).string(message.digest);
|
|
@@ -1459,7 +1565,7 @@ exports.MsgCreateOrUpdatePermissionSession = {
|
|
|
1459
1565
|
decode(input, length) {
|
|
1460
1566
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1461
1567
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1462
|
-
const message =
|
|
1568
|
+
const message = createBaseMsgCreateOrUpdateParticipantSession();
|
|
1463
1569
|
while (reader.pos < end) {
|
|
1464
1570
|
const tag = reader.uint32();
|
|
1465
1571
|
switch (tag >>> 3) {
|
|
@@ -1485,25 +1591,25 @@ exports.MsgCreateOrUpdatePermissionSession = {
|
|
|
1485
1591
|
if (tag !== 32) {
|
|
1486
1592
|
break;
|
|
1487
1593
|
}
|
|
1488
|
-
message.
|
|
1594
|
+
message.issuerParticipantId = longToNumber(reader.uint64());
|
|
1489
1595
|
continue;
|
|
1490
1596
|
case 5:
|
|
1491
1597
|
if (tag !== 40) {
|
|
1492
1598
|
break;
|
|
1493
1599
|
}
|
|
1494
|
-
message.
|
|
1600
|
+
message.verifierParticipantId = longToNumber(reader.uint64());
|
|
1495
1601
|
continue;
|
|
1496
1602
|
case 6:
|
|
1497
1603
|
if (tag !== 48) {
|
|
1498
1604
|
break;
|
|
1499
1605
|
}
|
|
1500
|
-
message.
|
|
1606
|
+
message.agentParticipantId = longToNumber(reader.uint64());
|
|
1501
1607
|
continue;
|
|
1502
1608
|
case 7:
|
|
1503
1609
|
if (tag !== 56) {
|
|
1504
1610
|
break;
|
|
1505
1611
|
}
|
|
1506
|
-
message.
|
|
1612
|
+
message.walletAgentParticipantId = longToNumber(reader.uint64());
|
|
1507
1613
|
continue;
|
|
1508
1614
|
case 8:
|
|
1509
1615
|
if (tag !== 66) {
|
|
@@ -1524,10 +1630,12 @@ exports.MsgCreateOrUpdatePermissionSession = {
|
|
|
1524
1630
|
corporation: isSet(object.corporation) ? globalThis.String(object.corporation) : "",
|
|
1525
1631
|
operator: isSet(object.operator) ? globalThis.String(object.operator) : "",
|
|
1526
1632
|
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1633
|
+
issuerParticipantId: isSet(object.issuerParticipantId) ? globalThis.Number(object.issuerParticipantId) : 0,
|
|
1634
|
+
verifierParticipantId: isSet(object.verifierParticipantId) ? globalThis.Number(object.verifierParticipantId) : 0,
|
|
1635
|
+
agentParticipantId: isSet(object.agentParticipantId) ? globalThis.Number(object.agentParticipantId) : 0,
|
|
1636
|
+
walletAgentParticipantId: isSet(object.walletAgentParticipantId)
|
|
1637
|
+
? globalThis.Number(object.walletAgentParticipantId)
|
|
1638
|
+
: 0,
|
|
1531
1639
|
digest: isSet(object.digest) ? globalThis.String(object.digest) : "",
|
|
1532
1640
|
};
|
|
1533
1641
|
},
|
|
@@ -1542,17 +1650,17 @@ exports.MsgCreateOrUpdatePermissionSession = {
|
|
|
1542
1650
|
if (message.id !== "") {
|
|
1543
1651
|
obj.id = message.id;
|
|
1544
1652
|
}
|
|
1545
|
-
if (message.
|
|
1546
|
-
obj.
|
|
1653
|
+
if (message.issuerParticipantId !== 0) {
|
|
1654
|
+
obj.issuerParticipantId = Math.round(message.issuerParticipantId);
|
|
1547
1655
|
}
|
|
1548
|
-
if (message.
|
|
1549
|
-
obj.
|
|
1656
|
+
if (message.verifierParticipantId !== 0) {
|
|
1657
|
+
obj.verifierParticipantId = Math.round(message.verifierParticipantId);
|
|
1550
1658
|
}
|
|
1551
|
-
if (message.
|
|
1552
|
-
obj.
|
|
1659
|
+
if (message.agentParticipantId !== 0) {
|
|
1660
|
+
obj.agentParticipantId = Math.round(message.agentParticipantId);
|
|
1553
1661
|
}
|
|
1554
|
-
if (message.
|
|
1555
|
-
obj.
|
|
1662
|
+
if (message.walletAgentParticipantId !== 0) {
|
|
1663
|
+
obj.walletAgentParticipantId = Math.round(message.walletAgentParticipantId);
|
|
1556
1664
|
}
|
|
1557
1665
|
if (message.digest !== "") {
|
|
1558
1666
|
obj.digest = message.digest;
|
|
@@ -1560,26 +1668,26 @@ exports.MsgCreateOrUpdatePermissionSession = {
|
|
|
1560
1668
|
return obj;
|
|
1561
1669
|
},
|
|
1562
1670
|
create(base) {
|
|
1563
|
-
return exports.
|
|
1671
|
+
return exports.MsgCreateOrUpdateParticipantSession.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1564
1672
|
},
|
|
1565
1673
|
fromPartial(object) {
|
|
1566
1674
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1567
|
-
const message =
|
|
1675
|
+
const message = createBaseMsgCreateOrUpdateParticipantSession();
|
|
1568
1676
|
message.corporation = (_a = object.corporation) !== null && _a !== void 0 ? _a : "";
|
|
1569
1677
|
message.operator = (_b = object.operator) !== null && _b !== void 0 ? _b : "";
|
|
1570
1678
|
message.id = (_c = object.id) !== null && _c !== void 0 ? _c : "";
|
|
1571
|
-
message.
|
|
1572
|
-
message.
|
|
1573
|
-
message.
|
|
1574
|
-
message.
|
|
1679
|
+
message.issuerParticipantId = (_d = object.issuerParticipantId) !== null && _d !== void 0 ? _d : 0;
|
|
1680
|
+
message.verifierParticipantId = (_e = object.verifierParticipantId) !== null && _e !== void 0 ? _e : 0;
|
|
1681
|
+
message.agentParticipantId = (_f = object.agentParticipantId) !== null && _f !== void 0 ? _f : 0;
|
|
1682
|
+
message.walletAgentParticipantId = (_g = object.walletAgentParticipantId) !== null && _g !== void 0 ? _g : 0;
|
|
1575
1683
|
message.digest = (_h = object.digest) !== null && _h !== void 0 ? _h : "";
|
|
1576
1684
|
return message;
|
|
1577
1685
|
},
|
|
1578
1686
|
};
|
|
1579
|
-
function
|
|
1687
|
+
function createBaseMsgCreateOrUpdateParticipantSessionResponse() {
|
|
1580
1688
|
return { id: "" };
|
|
1581
1689
|
}
|
|
1582
|
-
exports.
|
|
1690
|
+
exports.MsgCreateOrUpdateParticipantSessionResponse = {
|
|
1583
1691
|
encode(message, writer = _m0.Writer.create()) {
|
|
1584
1692
|
if (message.id !== "") {
|
|
1585
1693
|
writer.uint32(10).string(message.id);
|
|
@@ -1589,7 +1697,7 @@ exports.MsgCreateOrUpdatePermissionSessionResponse = {
|
|
|
1589
1697
|
decode(input, length) {
|
|
1590
1698
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1591
1699
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1592
|
-
const message =
|
|
1700
|
+
const message = createBaseMsgCreateOrUpdateParticipantSessionResponse();
|
|
1593
1701
|
while (reader.pos < end) {
|
|
1594
1702
|
const tag = reader.uint32();
|
|
1595
1703
|
switch (tag >>> 3) {
|
|
@@ -1618,19 +1726,19 @@ exports.MsgCreateOrUpdatePermissionSessionResponse = {
|
|
|
1618
1726
|
return obj;
|
|
1619
1727
|
},
|
|
1620
1728
|
create(base) {
|
|
1621
|
-
return exports.
|
|
1729
|
+
return exports.MsgCreateOrUpdateParticipantSessionResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1622
1730
|
},
|
|
1623
1731
|
fromPartial(object) {
|
|
1624
1732
|
var _a;
|
|
1625
|
-
const message =
|
|
1733
|
+
const message = createBaseMsgCreateOrUpdateParticipantSessionResponse();
|
|
1626
1734
|
message.id = (_a = object.id) !== null && _a !== void 0 ? _a : "";
|
|
1627
1735
|
return message;
|
|
1628
1736
|
},
|
|
1629
1737
|
};
|
|
1630
|
-
function
|
|
1738
|
+
function createBaseMsgSlashParticipantTrustDeposit() {
|
|
1631
1739
|
return { corporation: "", operator: "", id: 0, amount: 0, reason: "" };
|
|
1632
1740
|
}
|
|
1633
|
-
exports.
|
|
1741
|
+
exports.MsgSlashParticipantTrustDeposit = {
|
|
1634
1742
|
encode(message, writer = _m0.Writer.create()) {
|
|
1635
1743
|
if (message.corporation !== "") {
|
|
1636
1744
|
writer.uint32(10).string(message.corporation);
|
|
@@ -1652,7 +1760,7 @@ exports.MsgSlashPermissionTrustDeposit = {
|
|
|
1652
1760
|
decode(input, length) {
|
|
1653
1761
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1654
1762
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1655
|
-
const message =
|
|
1763
|
+
const message = createBaseMsgSlashParticipantTrustDeposit();
|
|
1656
1764
|
while (reader.pos < end) {
|
|
1657
1765
|
const tag = reader.uint32();
|
|
1658
1766
|
switch (tag >>> 3) {
|
|
@@ -1723,11 +1831,11 @@ exports.MsgSlashPermissionTrustDeposit = {
|
|
|
1723
1831
|
return obj;
|
|
1724
1832
|
},
|
|
1725
1833
|
create(base) {
|
|
1726
|
-
return exports.
|
|
1834
|
+
return exports.MsgSlashParticipantTrustDeposit.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1727
1835
|
},
|
|
1728
1836
|
fromPartial(object) {
|
|
1729
1837
|
var _a, _b, _c, _d, _e;
|
|
1730
|
-
const message =
|
|
1838
|
+
const message = createBaseMsgSlashParticipantTrustDeposit();
|
|
1731
1839
|
message.corporation = (_a = object.corporation) !== null && _a !== void 0 ? _a : "";
|
|
1732
1840
|
message.operator = (_b = object.operator) !== null && _b !== void 0 ? _b : "";
|
|
1733
1841
|
message.id = (_c = object.id) !== null && _c !== void 0 ? _c : 0;
|
|
@@ -1736,17 +1844,17 @@ exports.MsgSlashPermissionTrustDeposit = {
|
|
|
1736
1844
|
return message;
|
|
1737
1845
|
},
|
|
1738
1846
|
};
|
|
1739
|
-
function
|
|
1847
|
+
function createBaseMsgSlashParticipantTrustDepositResponse() {
|
|
1740
1848
|
return {};
|
|
1741
1849
|
}
|
|
1742
|
-
exports.
|
|
1850
|
+
exports.MsgSlashParticipantTrustDepositResponse = {
|
|
1743
1851
|
encode(_, writer = _m0.Writer.create()) {
|
|
1744
1852
|
return writer;
|
|
1745
1853
|
},
|
|
1746
1854
|
decode(input, length) {
|
|
1747
1855
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1748
1856
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1749
|
-
const message =
|
|
1857
|
+
const message = createBaseMsgSlashParticipantTrustDepositResponse();
|
|
1750
1858
|
while (reader.pos < end) {
|
|
1751
1859
|
const tag = reader.uint32();
|
|
1752
1860
|
switch (tag >>> 3) {
|
|
@@ -1766,17 +1874,17 @@ exports.MsgSlashPermissionTrustDepositResponse = {
|
|
|
1766
1874
|
return obj;
|
|
1767
1875
|
},
|
|
1768
1876
|
create(base) {
|
|
1769
|
-
return exports.
|
|
1877
|
+
return exports.MsgSlashParticipantTrustDepositResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1770
1878
|
},
|
|
1771
1879
|
fromPartial(_) {
|
|
1772
|
-
const message =
|
|
1880
|
+
const message = createBaseMsgSlashParticipantTrustDepositResponse();
|
|
1773
1881
|
return message;
|
|
1774
1882
|
},
|
|
1775
1883
|
};
|
|
1776
|
-
function
|
|
1884
|
+
function createBaseMsgRepayParticipantSlashedTrustDeposit() {
|
|
1777
1885
|
return { corporation: "", operator: "", id: 0, amount: 0 };
|
|
1778
1886
|
}
|
|
1779
|
-
exports.
|
|
1887
|
+
exports.MsgRepayParticipantSlashedTrustDeposit = {
|
|
1780
1888
|
encode(message, writer = _m0.Writer.create()) {
|
|
1781
1889
|
if (message.corporation !== "") {
|
|
1782
1890
|
writer.uint32(10).string(message.corporation);
|
|
@@ -1795,7 +1903,7 @@ exports.MsgRepayPermissionSlashedTrustDeposit = {
|
|
|
1795
1903
|
decode(input, length) {
|
|
1796
1904
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1797
1905
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1798
|
-
const message =
|
|
1906
|
+
const message = createBaseMsgRepayParticipantSlashedTrustDeposit();
|
|
1799
1907
|
while (reader.pos < end) {
|
|
1800
1908
|
const tag = reader.uint32();
|
|
1801
1909
|
switch (tag >>> 3) {
|
|
@@ -1856,11 +1964,11 @@ exports.MsgRepayPermissionSlashedTrustDeposit = {
|
|
|
1856
1964
|
return obj;
|
|
1857
1965
|
},
|
|
1858
1966
|
create(base) {
|
|
1859
|
-
return exports.
|
|
1967
|
+
return exports.MsgRepayParticipantSlashedTrustDeposit.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1860
1968
|
},
|
|
1861
1969
|
fromPartial(object) {
|
|
1862
1970
|
var _a, _b, _c, _d;
|
|
1863
|
-
const message =
|
|
1971
|
+
const message = createBaseMsgRepayParticipantSlashedTrustDeposit();
|
|
1864
1972
|
message.corporation = (_a = object.corporation) !== null && _a !== void 0 ? _a : "";
|
|
1865
1973
|
message.operator = (_b = object.operator) !== null && _b !== void 0 ? _b : "";
|
|
1866
1974
|
message.id = (_c = object.id) !== null && _c !== void 0 ? _c : 0;
|
|
@@ -1868,17 +1976,17 @@ exports.MsgRepayPermissionSlashedTrustDeposit = {
|
|
|
1868
1976
|
return message;
|
|
1869
1977
|
},
|
|
1870
1978
|
};
|
|
1871
|
-
function
|
|
1979
|
+
function createBaseMsgRepayParticipantSlashedTrustDepositResponse() {
|
|
1872
1980
|
return {};
|
|
1873
1981
|
}
|
|
1874
|
-
exports.
|
|
1982
|
+
exports.MsgRepayParticipantSlashedTrustDepositResponse = {
|
|
1875
1983
|
encode(_, writer = _m0.Writer.create()) {
|
|
1876
1984
|
return writer;
|
|
1877
1985
|
},
|
|
1878
1986
|
decode(input, length) {
|
|
1879
1987
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1880
1988
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1881
|
-
const message =
|
|
1989
|
+
const message = createBaseMsgRepayParticipantSlashedTrustDepositResponse();
|
|
1882
1990
|
while (reader.pos < end) {
|
|
1883
1991
|
const tag = reader.uint32();
|
|
1884
1992
|
switch (tag >>> 3) {
|
|
@@ -1898,33 +2006,33 @@ exports.MsgRepayPermissionSlashedTrustDepositResponse = {
|
|
|
1898
2006
|
return obj;
|
|
1899
2007
|
},
|
|
1900
2008
|
create(base) {
|
|
1901
|
-
return exports.
|
|
2009
|
+
return exports.MsgRepayParticipantSlashedTrustDepositResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1902
2010
|
},
|
|
1903
2011
|
fromPartial(_) {
|
|
1904
|
-
const message =
|
|
2012
|
+
const message = createBaseMsgRepayParticipantSlashedTrustDepositResponse();
|
|
1905
2013
|
return message;
|
|
1906
2014
|
},
|
|
1907
2015
|
};
|
|
1908
|
-
function
|
|
2016
|
+
function createBaseMsgSelfCreateParticipant() {
|
|
1909
2017
|
return {
|
|
1910
2018
|
corporation: "",
|
|
1911
2019
|
operator: "",
|
|
1912
|
-
|
|
1913
|
-
|
|
2020
|
+
role: 0,
|
|
2021
|
+
validatorParticipantId: 0,
|
|
1914
2022
|
did: "",
|
|
1915
2023
|
effectiveFrom: undefined,
|
|
1916
2024
|
effectiveUntil: undefined,
|
|
1917
2025
|
verificationFees: 0,
|
|
1918
2026
|
validationFees: 0,
|
|
1919
2027
|
vsOperator: "",
|
|
1920
|
-
|
|
2028
|
+
vsOperatorAuthzMsgTypes: [],
|
|
1921
2029
|
vsOperatorAuthzSpendLimit: [],
|
|
1922
2030
|
vsOperatorAuthzWithFeegrant: false,
|
|
1923
2031
|
vsOperatorAuthzFeeSpendLimit: [],
|
|
1924
|
-
|
|
2032
|
+
vsOperatorAuthzPeriod: undefined,
|
|
1925
2033
|
};
|
|
1926
2034
|
}
|
|
1927
|
-
exports.
|
|
2035
|
+
exports.MsgSelfCreateParticipant = {
|
|
1928
2036
|
encode(message, writer = _m0.Writer.create()) {
|
|
1929
2037
|
if (message.corporation !== "") {
|
|
1930
2038
|
writer.uint32(10).string(message.corporation);
|
|
@@ -1932,11 +2040,11 @@ exports.MsgSelfCreatePermission = {
|
|
|
1932
2040
|
if (message.operator !== "") {
|
|
1933
2041
|
writer.uint32(18).string(message.operator);
|
|
1934
2042
|
}
|
|
1935
|
-
if (message.
|
|
1936
|
-
writer.uint32(24).int32(message.
|
|
2043
|
+
if (message.role !== 0) {
|
|
2044
|
+
writer.uint32(24).int32(message.role);
|
|
1937
2045
|
}
|
|
1938
|
-
if (message.
|
|
1939
|
-
writer.uint32(32).uint64(message.
|
|
2046
|
+
if (message.validatorParticipantId !== 0) {
|
|
2047
|
+
writer.uint32(32).uint64(message.validatorParticipantId);
|
|
1940
2048
|
}
|
|
1941
2049
|
if (message.did !== "") {
|
|
1942
2050
|
writer.uint32(42).string(message.did);
|
|
@@ -1956,8 +2064,8 @@ exports.MsgSelfCreatePermission = {
|
|
|
1956
2064
|
if (message.vsOperator !== "") {
|
|
1957
2065
|
writer.uint32(82).string(message.vsOperator);
|
|
1958
2066
|
}
|
|
1959
|
-
|
|
1960
|
-
writer.uint32(
|
|
2067
|
+
for (const v of message.vsOperatorAuthzMsgTypes) {
|
|
2068
|
+
writer.uint32(130).string(v);
|
|
1961
2069
|
}
|
|
1962
2070
|
for (const v of message.vsOperatorAuthzSpendLimit) {
|
|
1963
2071
|
coin_1.Coin.encode(v, writer.uint32(98).fork()).ldelim();
|
|
@@ -1968,15 +2076,15 @@ exports.MsgSelfCreatePermission = {
|
|
|
1968
2076
|
for (const v of message.vsOperatorAuthzFeeSpendLimit) {
|
|
1969
2077
|
coin_1.Coin.encode(v, writer.uint32(114).fork()).ldelim();
|
|
1970
2078
|
}
|
|
1971
|
-
if (message.
|
|
1972
|
-
duration_1.Duration.encode(message.
|
|
2079
|
+
if (message.vsOperatorAuthzPeriod !== undefined) {
|
|
2080
|
+
duration_1.Duration.encode(message.vsOperatorAuthzPeriod, writer.uint32(122).fork()).ldelim();
|
|
1973
2081
|
}
|
|
1974
2082
|
return writer;
|
|
1975
2083
|
},
|
|
1976
2084
|
decode(input, length) {
|
|
1977
2085
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1978
2086
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1979
|
-
const message =
|
|
2087
|
+
const message = createBaseMsgSelfCreateParticipant();
|
|
1980
2088
|
while (reader.pos < end) {
|
|
1981
2089
|
const tag = reader.uint32();
|
|
1982
2090
|
switch (tag >>> 3) {
|
|
@@ -1996,13 +2104,13 @@ exports.MsgSelfCreatePermission = {
|
|
|
1996
2104
|
if (tag !== 24) {
|
|
1997
2105
|
break;
|
|
1998
2106
|
}
|
|
1999
|
-
message.
|
|
2107
|
+
message.role = reader.int32();
|
|
2000
2108
|
continue;
|
|
2001
2109
|
case 4:
|
|
2002
2110
|
if (tag !== 32) {
|
|
2003
2111
|
break;
|
|
2004
2112
|
}
|
|
2005
|
-
message.
|
|
2113
|
+
message.validatorParticipantId = longToNumber(reader.uint64());
|
|
2006
2114
|
continue;
|
|
2007
2115
|
case 5:
|
|
2008
2116
|
if (tag !== 42) {
|
|
@@ -2040,11 +2148,11 @@ exports.MsgSelfCreatePermission = {
|
|
|
2040
2148
|
}
|
|
2041
2149
|
message.vsOperator = reader.string();
|
|
2042
2150
|
continue;
|
|
2043
|
-
case
|
|
2044
|
-
if (tag !==
|
|
2151
|
+
case 16:
|
|
2152
|
+
if (tag !== 130) {
|
|
2045
2153
|
break;
|
|
2046
2154
|
}
|
|
2047
|
-
message.
|
|
2155
|
+
message.vsOperatorAuthzMsgTypes.push(reader.string());
|
|
2048
2156
|
continue;
|
|
2049
2157
|
case 12:
|
|
2050
2158
|
if (tag !== 98) {
|
|
@@ -2068,7 +2176,7 @@ exports.MsgSelfCreatePermission = {
|
|
|
2068
2176
|
if (tag !== 122) {
|
|
2069
2177
|
break;
|
|
2070
2178
|
}
|
|
2071
|
-
message.
|
|
2179
|
+
message.vsOperatorAuthzPeriod = duration_1.Duration.decode(reader, reader.uint32());
|
|
2072
2180
|
continue;
|
|
2073
2181
|
}
|
|
2074
2182
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -2082,17 +2190,19 @@ exports.MsgSelfCreatePermission = {
|
|
|
2082
2190
|
return {
|
|
2083
2191
|
corporation: isSet(object.corporation) ? globalThis.String(object.corporation) : "",
|
|
2084
2192
|
operator: isSet(object.operator) ? globalThis.String(object.operator) : "",
|
|
2085
|
-
|
|
2086
|
-
|
|
2193
|
+
role: isSet(object.role) ? (0, types_1.participantRoleFromJSON)(object.role) : 0,
|
|
2194
|
+
validatorParticipantId: isSet(object.validatorParticipantId)
|
|
2195
|
+
? globalThis.Number(object.validatorParticipantId)
|
|
2196
|
+
: 0,
|
|
2087
2197
|
did: isSet(object.did) ? globalThis.String(object.did) : "",
|
|
2088
2198
|
effectiveFrom: isSet(object.effectiveFrom) ? fromJsonTimestamp(object.effectiveFrom) : undefined,
|
|
2089
2199
|
effectiveUntil: isSet(object.effectiveUntil) ? fromJsonTimestamp(object.effectiveUntil) : undefined,
|
|
2090
2200
|
verificationFees: isSet(object.verificationFees) ? globalThis.Number(object.verificationFees) : 0,
|
|
2091
2201
|
validationFees: isSet(object.validationFees) ? globalThis.Number(object.validationFees) : 0,
|
|
2092
2202
|
vsOperator: isSet(object.vsOperator) ? globalThis.String(object.vsOperator) : "",
|
|
2093
|
-
|
|
2094
|
-
? globalThis.
|
|
2095
|
-
:
|
|
2203
|
+
vsOperatorAuthzMsgTypes: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.vsOperatorAuthzMsgTypes)
|
|
2204
|
+
? object.vsOperatorAuthzMsgTypes.map((e) => globalThis.String(e))
|
|
2205
|
+
: [],
|
|
2096
2206
|
vsOperatorAuthzSpendLimit: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.vsOperatorAuthzSpendLimit)
|
|
2097
2207
|
? object.vsOperatorAuthzSpendLimit.map((e) => coin_1.Coin.fromJSON(e))
|
|
2098
2208
|
: [],
|
|
@@ -2102,13 +2212,13 @@ exports.MsgSelfCreatePermission = {
|
|
|
2102
2212
|
vsOperatorAuthzFeeSpendLimit: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.vsOperatorAuthzFeeSpendLimit)
|
|
2103
2213
|
? object.vsOperatorAuthzFeeSpendLimit.map((e) => coin_1.Coin.fromJSON(e))
|
|
2104
2214
|
: [],
|
|
2105
|
-
|
|
2106
|
-
? duration_1.Duration.fromJSON(object.
|
|
2215
|
+
vsOperatorAuthzPeriod: isSet(object.vsOperatorAuthzPeriod)
|
|
2216
|
+
? duration_1.Duration.fromJSON(object.vsOperatorAuthzPeriod)
|
|
2107
2217
|
: undefined,
|
|
2108
2218
|
};
|
|
2109
2219
|
},
|
|
2110
2220
|
toJSON(message) {
|
|
2111
|
-
var _a, _b;
|
|
2221
|
+
var _a, _b, _c;
|
|
2112
2222
|
const obj = {};
|
|
2113
2223
|
if (message.corporation !== "") {
|
|
2114
2224
|
obj.corporation = message.corporation;
|
|
@@ -2116,11 +2226,11 @@ exports.MsgSelfCreatePermission = {
|
|
|
2116
2226
|
if (message.operator !== "") {
|
|
2117
2227
|
obj.operator = message.operator;
|
|
2118
2228
|
}
|
|
2119
|
-
if (message.
|
|
2120
|
-
obj.
|
|
2229
|
+
if (message.role !== 0) {
|
|
2230
|
+
obj.role = (0, types_1.participantRoleToJSON)(message.role);
|
|
2121
2231
|
}
|
|
2122
|
-
if (message.
|
|
2123
|
-
obj.
|
|
2232
|
+
if (message.validatorParticipantId !== 0) {
|
|
2233
|
+
obj.validatorParticipantId = Math.round(message.validatorParticipantId);
|
|
2124
2234
|
}
|
|
2125
2235
|
if (message.did !== "") {
|
|
2126
2236
|
obj.did = message.did;
|
|
@@ -2140,54 +2250,54 @@ exports.MsgSelfCreatePermission = {
|
|
|
2140
2250
|
if (message.vsOperator !== "") {
|
|
2141
2251
|
obj.vsOperator = message.vsOperator;
|
|
2142
2252
|
}
|
|
2143
|
-
if (message.
|
|
2144
|
-
obj.
|
|
2253
|
+
if ((_a = message.vsOperatorAuthzMsgTypes) === null || _a === void 0 ? void 0 : _a.length) {
|
|
2254
|
+
obj.vsOperatorAuthzMsgTypes = message.vsOperatorAuthzMsgTypes;
|
|
2145
2255
|
}
|
|
2146
|
-
if ((
|
|
2256
|
+
if ((_b = message.vsOperatorAuthzSpendLimit) === null || _b === void 0 ? void 0 : _b.length) {
|
|
2147
2257
|
obj.vsOperatorAuthzSpendLimit = message.vsOperatorAuthzSpendLimit.map((e) => coin_1.Coin.toJSON(e));
|
|
2148
2258
|
}
|
|
2149
2259
|
if (message.vsOperatorAuthzWithFeegrant !== false) {
|
|
2150
2260
|
obj.vsOperatorAuthzWithFeegrant = message.vsOperatorAuthzWithFeegrant;
|
|
2151
2261
|
}
|
|
2152
|
-
if ((
|
|
2262
|
+
if ((_c = message.vsOperatorAuthzFeeSpendLimit) === null || _c === void 0 ? void 0 : _c.length) {
|
|
2153
2263
|
obj.vsOperatorAuthzFeeSpendLimit = message.vsOperatorAuthzFeeSpendLimit.map((e) => coin_1.Coin.toJSON(e));
|
|
2154
2264
|
}
|
|
2155
|
-
if (message.
|
|
2156
|
-
obj.
|
|
2265
|
+
if (message.vsOperatorAuthzPeriod !== undefined) {
|
|
2266
|
+
obj.vsOperatorAuthzPeriod = duration_1.Duration.toJSON(message.vsOperatorAuthzPeriod);
|
|
2157
2267
|
}
|
|
2158
2268
|
return obj;
|
|
2159
2269
|
},
|
|
2160
2270
|
create(base) {
|
|
2161
|
-
return exports.
|
|
2271
|
+
return exports.MsgSelfCreateParticipant.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
2162
2272
|
},
|
|
2163
2273
|
fromPartial(object) {
|
|
2164
2274
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
2165
|
-
const message =
|
|
2275
|
+
const message = createBaseMsgSelfCreateParticipant();
|
|
2166
2276
|
message.corporation = (_a = object.corporation) !== null && _a !== void 0 ? _a : "";
|
|
2167
2277
|
message.operator = (_b = object.operator) !== null && _b !== void 0 ? _b : "";
|
|
2168
|
-
message.
|
|
2169
|
-
message.
|
|
2278
|
+
message.role = (_c = object.role) !== null && _c !== void 0 ? _c : 0;
|
|
2279
|
+
message.validatorParticipantId = (_d = object.validatorParticipantId) !== null && _d !== void 0 ? _d : 0;
|
|
2170
2280
|
message.did = (_e = object.did) !== null && _e !== void 0 ? _e : "";
|
|
2171
2281
|
message.effectiveFrom = (_f = object.effectiveFrom) !== null && _f !== void 0 ? _f : undefined;
|
|
2172
2282
|
message.effectiveUntil = (_g = object.effectiveUntil) !== null && _g !== void 0 ? _g : undefined;
|
|
2173
2283
|
message.verificationFees = (_h = object.verificationFees) !== null && _h !== void 0 ? _h : 0;
|
|
2174
2284
|
message.validationFees = (_j = object.validationFees) !== null && _j !== void 0 ? _j : 0;
|
|
2175
2285
|
message.vsOperator = (_k = object.vsOperator) !== null && _k !== void 0 ? _k : "";
|
|
2176
|
-
message.
|
|
2286
|
+
message.vsOperatorAuthzMsgTypes = ((_l = object.vsOperatorAuthzMsgTypes) === null || _l === void 0 ? void 0 : _l.map((e) => e)) || [];
|
|
2177
2287
|
message.vsOperatorAuthzSpendLimit = ((_m = object.vsOperatorAuthzSpendLimit) === null || _m === void 0 ? void 0 : _m.map((e) => coin_1.Coin.fromPartial(e))) || [];
|
|
2178
2288
|
message.vsOperatorAuthzWithFeegrant = (_o = object.vsOperatorAuthzWithFeegrant) !== null && _o !== void 0 ? _o : false;
|
|
2179
2289
|
message.vsOperatorAuthzFeeSpendLimit = ((_p = object.vsOperatorAuthzFeeSpendLimit) === null || _p === void 0 ? void 0 : _p.map((e) => coin_1.Coin.fromPartial(e))) || [];
|
|
2180
|
-
message.
|
|
2181
|
-
(object.
|
|
2182
|
-
? duration_1.Duration.fromPartial(object.
|
|
2290
|
+
message.vsOperatorAuthzPeriod =
|
|
2291
|
+
(object.vsOperatorAuthzPeriod !== undefined && object.vsOperatorAuthzPeriod !== null)
|
|
2292
|
+
? duration_1.Duration.fromPartial(object.vsOperatorAuthzPeriod)
|
|
2183
2293
|
: undefined;
|
|
2184
2294
|
return message;
|
|
2185
2295
|
},
|
|
2186
2296
|
};
|
|
2187
|
-
function
|
|
2297
|
+
function createBaseMsgSelfCreateParticipantResponse() {
|
|
2188
2298
|
return { id: 0 };
|
|
2189
2299
|
}
|
|
2190
|
-
exports.
|
|
2300
|
+
exports.MsgSelfCreateParticipantResponse = {
|
|
2191
2301
|
encode(message, writer = _m0.Writer.create()) {
|
|
2192
2302
|
if (message.id !== 0) {
|
|
2193
2303
|
writer.uint32(8).uint64(message.id);
|
|
@@ -2197,7 +2307,7 @@ exports.MsgSelfCreatePermissionResponse = {
|
|
|
2197
2307
|
decode(input, length) {
|
|
2198
2308
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
2199
2309
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2200
|
-
const message =
|
|
2310
|
+
const message = createBaseMsgSelfCreateParticipantResponse();
|
|
2201
2311
|
while (reader.pos < end) {
|
|
2202
2312
|
const tag = reader.uint32();
|
|
2203
2313
|
switch (tag >>> 3) {
|
|
@@ -2226,92 +2336,92 @@ exports.MsgSelfCreatePermissionResponse = {
|
|
|
2226
2336
|
return obj;
|
|
2227
2337
|
},
|
|
2228
2338
|
create(base) {
|
|
2229
|
-
return exports.
|
|
2339
|
+
return exports.MsgSelfCreateParticipantResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
2230
2340
|
},
|
|
2231
2341
|
fromPartial(object) {
|
|
2232
2342
|
var _a;
|
|
2233
|
-
const message =
|
|
2343
|
+
const message = createBaseMsgSelfCreateParticipantResponse();
|
|
2234
2344
|
message.id = (_a = object.id) !== null && _a !== void 0 ? _a : 0;
|
|
2235
2345
|
return message;
|
|
2236
2346
|
},
|
|
2237
2347
|
};
|
|
2238
|
-
exports.MsgServiceName = "verana.
|
|
2348
|
+
exports.MsgServiceName = "verana.pp.v1.Msg";
|
|
2239
2349
|
class MsgClientImpl {
|
|
2240
2350
|
constructor(rpc, opts) {
|
|
2241
2351
|
this.service = (opts === null || opts === void 0 ? void 0 : opts.service) || exports.MsgServiceName;
|
|
2242
2352
|
this.rpc = rpc;
|
|
2243
2353
|
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.
|
|
2354
|
+
this.StartParticipantOP = this.StartParticipantOP.bind(this);
|
|
2355
|
+
this.RenewParticipantOP = this.RenewParticipantOP.bind(this);
|
|
2356
|
+
this.SetParticipantOPToValidated = this.SetParticipantOPToValidated.bind(this);
|
|
2357
|
+
this.CancelParticipantOPLastRequest = this.CancelParticipantOPLastRequest.bind(this);
|
|
2358
|
+
this.CreateRootParticipant = this.CreateRootParticipant.bind(this);
|
|
2359
|
+
this.SetParticipantEffectiveUntil = this.SetParticipantEffectiveUntil.bind(this);
|
|
2360
|
+
this.RevokeParticipant = this.RevokeParticipant.bind(this);
|
|
2361
|
+
this.CreateOrUpdateParticipantSession = this.CreateOrUpdateParticipantSession.bind(this);
|
|
2362
|
+
this.SlashParticipantTrustDeposit = this.SlashParticipantTrustDeposit.bind(this);
|
|
2363
|
+
this.RepayParticipantSlashedTrustDeposit = this.RepayParticipantSlashedTrustDeposit.bind(this);
|
|
2364
|
+
this.SelfCreateParticipant = this.SelfCreateParticipant.bind(this);
|
|
2255
2365
|
}
|
|
2256
2366
|
UpdateParams(request) {
|
|
2257
2367
|
const data = exports.MsgUpdateParams.encode(request).finish();
|
|
2258
2368
|
const promise = this.rpc.request(this.service, "UpdateParams", data);
|
|
2259
2369
|
return promise.then((data) => exports.MsgUpdateParamsResponse.decode(_m0.Reader.create(data)));
|
|
2260
2370
|
}
|
|
2261
|
-
|
|
2262
|
-
const data = exports.
|
|
2263
|
-
const promise = this.rpc.request(this.service, "
|
|
2264
|
-
return promise.then((data) => exports.
|
|
2371
|
+
StartParticipantOP(request) {
|
|
2372
|
+
const data = exports.MsgStartParticipantOP.encode(request).finish();
|
|
2373
|
+
const promise = this.rpc.request(this.service, "StartParticipantOP", data);
|
|
2374
|
+
return promise.then((data) => exports.MsgStartParticipantOPResponse.decode(_m0.Reader.create(data)));
|
|
2265
2375
|
}
|
|
2266
|
-
|
|
2267
|
-
const data = exports.
|
|
2268
|
-
const promise = this.rpc.request(this.service, "
|
|
2269
|
-
return promise.then((data) => exports.
|
|
2376
|
+
RenewParticipantOP(request) {
|
|
2377
|
+
const data = exports.MsgRenewParticipantOP.encode(request).finish();
|
|
2378
|
+
const promise = this.rpc.request(this.service, "RenewParticipantOP", data);
|
|
2379
|
+
return promise.then((data) => exports.MsgRenewParticipantOPResponse.decode(_m0.Reader.create(data)));
|
|
2270
2380
|
}
|
|
2271
|
-
|
|
2272
|
-
const data = exports.
|
|
2273
|
-
const promise = this.rpc.request(this.service, "
|
|
2274
|
-
return promise.then((data) => exports.
|
|
2381
|
+
SetParticipantOPToValidated(request) {
|
|
2382
|
+
const data = exports.MsgSetParticipantOPToValidated.encode(request).finish();
|
|
2383
|
+
const promise = this.rpc.request(this.service, "SetParticipantOPToValidated", data);
|
|
2384
|
+
return promise.then((data) => exports.MsgSetParticipantOPToValidatedResponse.decode(_m0.Reader.create(data)));
|
|
2275
2385
|
}
|
|
2276
|
-
|
|
2277
|
-
const data = exports.
|
|
2278
|
-
const promise = this.rpc.request(this.service, "
|
|
2279
|
-
return promise.then((data) => exports.
|
|
2386
|
+
CancelParticipantOPLastRequest(request) {
|
|
2387
|
+
const data = exports.MsgCancelParticipantOPLastRequest.encode(request).finish();
|
|
2388
|
+
const promise = this.rpc.request(this.service, "CancelParticipantOPLastRequest", data);
|
|
2389
|
+
return promise.then((data) => exports.MsgCancelParticipantOPLastRequestResponse.decode(_m0.Reader.create(data)));
|
|
2280
2390
|
}
|
|
2281
|
-
|
|
2282
|
-
const data = exports.
|
|
2283
|
-
const promise = this.rpc.request(this.service, "
|
|
2284
|
-
return promise.then((data) => exports.
|
|
2391
|
+
CreateRootParticipant(request) {
|
|
2392
|
+
const data = exports.MsgCreateRootParticipant.encode(request).finish();
|
|
2393
|
+
const promise = this.rpc.request(this.service, "CreateRootParticipant", data);
|
|
2394
|
+
return promise.then((data) => exports.MsgCreateRootParticipantResponse.decode(_m0.Reader.create(data)));
|
|
2285
2395
|
}
|
|
2286
|
-
|
|
2287
|
-
const data = exports.
|
|
2288
|
-
const promise = this.rpc.request(this.service, "
|
|
2289
|
-
return promise.then((data) => exports.
|
|
2396
|
+
SetParticipantEffectiveUntil(request) {
|
|
2397
|
+
const data = exports.MsgSetParticipantEffectiveUntil.encode(request).finish();
|
|
2398
|
+
const promise = this.rpc.request(this.service, "SetParticipantEffectiveUntil", data);
|
|
2399
|
+
return promise.then((data) => exports.MsgSetParticipantEffectiveUntilResponse.decode(_m0.Reader.create(data)));
|
|
2290
2400
|
}
|
|
2291
|
-
|
|
2292
|
-
const data = exports.
|
|
2293
|
-
const promise = this.rpc.request(this.service, "
|
|
2294
|
-
return promise.then((data) => exports.
|
|
2401
|
+
RevokeParticipant(request) {
|
|
2402
|
+
const data = exports.MsgRevokeParticipant.encode(request).finish();
|
|
2403
|
+
const promise = this.rpc.request(this.service, "RevokeParticipant", data);
|
|
2404
|
+
return promise.then((data) => exports.MsgRevokeParticipantResponse.decode(_m0.Reader.create(data)));
|
|
2295
2405
|
}
|
|
2296
|
-
|
|
2297
|
-
const data = exports.
|
|
2298
|
-
const promise = this.rpc.request(this.service, "
|
|
2299
|
-
return promise.then((data) => exports.
|
|
2406
|
+
CreateOrUpdateParticipantSession(request) {
|
|
2407
|
+
const data = exports.MsgCreateOrUpdateParticipantSession.encode(request).finish();
|
|
2408
|
+
const promise = this.rpc.request(this.service, "CreateOrUpdateParticipantSession", data);
|
|
2409
|
+
return promise.then((data) => exports.MsgCreateOrUpdateParticipantSessionResponse.decode(_m0.Reader.create(data)));
|
|
2300
2410
|
}
|
|
2301
|
-
|
|
2302
|
-
const data = exports.
|
|
2303
|
-
const promise = this.rpc.request(this.service, "
|
|
2304
|
-
return promise.then((data) => exports.
|
|
2411
|
+
SlashParticipantTrustDeposit(request) {
|
|
2412
|
+
const data = exports.MsgSlashParticipantTrustDeposit.encode(request).finish();
|
|
2413
|
+
const promise = this.rpc.request(this.service, "SlashParticipantTrustDeposit", data);
|
|
2414
|
+
return promise.then((data) => exports.MsgSlashParticipantTrustDepositResponse.decode(_m0.Reader.create(data)));
|
|
2305
2415
|
}
|
|
2306
|
-
|
|
2307
|
-
const data = exports.
|
|
2308
|
-
const promise = this.rpc.request(this.service, "
|
|
2309
|
-
return promise.then((data) => exports.
|
|
2416
|
+
RepayParticipantSlashedTrustDeposit(request) {
|
|
2417
|
+
const data = exports.MsgRepayParticipantSlashedTrustDeposit.encode(request).finish();
|
|
2418
|
+
const promise = this.rpc.request(this.service, "RepayParticipantSlashedTrustDeposit", data);
|
|
2419
|
+
return promise.then((data) => exports.MsgRepayParticipantSlashedTrustDepositResponse.decode(_m0.Reader.create(data)));
|
|
2310
2420
|
}
|
|
2311
|
-
|
|
2312
|
-
const data = exports.
|
|
2313
|
-
const promise = this.rpc.request(this.service, "
|
|
2314
|
-
return promise.then((data) => exports.
|
|
2421
|
+
SelfCreateParticipant(request) {
|
|
2422
|
+
const data = exports.MsgSelfCreateParticipant.encode(request).finish();
|
|
2423
|
+
const promise = this.rpc.request(this.service, "SelfCreateParticipant", data);
|
|
2424
|
+
return promise.then((data) => exports.MsgSelfCreateParticipantResponse.decode(_m0.Reader.create(data)));
|
|
2315
2425
|
}
|
|
2316
2426
|
}
|
|
2317
2427
|
exports.MsgClientImpl = MsgClientImpl;
|