@verana-labs/verana-types 0.10.1-dev.13 → 0.10.1-dev.15
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/pp.d.ts +1 -0
- package/dist/amino-converter/pp.js +63 -27
- package/dist/codec/verana/de/v1/genesis.d.ts +1 -3
- package/dist/codec/verana/de/v1/genesis.js +3 -26
- 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 +110 -52
- package/dist/codec/verana/de/v1/types.js +302 -134
- package/dist/codec/verana/pp/v1/tx.d.ts +50 -7
- package/dist/codec/verana/pp/v1/tx.js +282 -54
- package/dist/codec/verana/pp/v1/types.d.ts +5 -8
- package/dist/codec/verana/pp/v1/types.js +2 -93
- package/dist/signing.d.ts +2 -0
- package/dist/signing.js +3 -0
- package/package.json +1 -1
|
@@ -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.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;
|
|
41
|
+
exports.MsgClientImpl = exports.MsgServiceName = exports.MsgTriggerResolverResponse = exports.MsgTriggerResolver = 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");
|
|
@@ -165,11 +165,11 @@ function createBaseMsgStartParticipantOP() {
|
|
|
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
175
|
exports.MsgStartParticipantOP = {
|
|
@@ -201,8 +201,8 @@ exports.MsgStartParticipantOP = {
|
|
|
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,8 +213,8 @@ exports.MsgStartParticipantOP = {
|
|
|
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
|
},
|
|
@@ -279,11 +279,11 @@ exports.MsgStartParticipantOP = {
|
|
|
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.MsgStartParticipantOP = {
|
|
|
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) {
|
|
@@ -330,9 +330,9 @@ exports.MsgStartParticipantOP = {
|
|
|
330
330
|
issuanceFees: isSet(object.issuanceFees) ? types_1.OptionalUInt64.fromJSON(object.issuanceFees) : undefined,
|
|
331
331
|
verificationFees: isSet(object.verificationFees) ? types_1.OptionalUInt64.fromJSON(object.verificationFees) : undefined,
|
|
332
332
|
vsOperator: isSet(object.vsOperator) ? globalThis.String(object.vsOperator) : "",
|
|
333
|
-
|
|
334
|
-
? globalThis.
|
|
335
|
-
:
|
|
333
|
+
vsOperatorAuthzMsgTypes: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.vsOperatorAuthzMsgTypes)
|
|
334
|
+
? object.vsOperatorAuthzMsgTypes.map((e) => globalThis.String(e))
|
|
335
|
+
: [],
|
|
336
336
|
vsOperatorAuthzSpendLimit: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.vsOperatorAuthzSpendLimit)
|
|
337
337
|
? object.vsOperatorAuthzSpendLimit.map((e) => coin_1.Coin.fromJSON(e))
|
|
338
338
|
: [],
|
|
@@ -342,13 +342,13 @@ exports.MsgStartParticipantOP = {
|
|
|
342
342
|
vsOperatorAuthzFeeSpendLimit: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.vsOperatorAuthzFeeSpendLimit)
|
|
343
343
|
? object.vsOperatorAuthzFeeSpendLimit.map((e) => coin_1.Coin.fromJSON(e))
|
|
344
344
|
: [],
|
|
345
|
-
|
|
346
|
-
? duration_1.Duration.fromJSON(object.
|
|
345
|
+
vsOperatorAuthzPeriod: isSet(object.vsOperatorAuthzPeriod)
|
|
346
|
+
? duration_1.Duration.fromJSON(object.vsOperatorAuthzPeriod)
|
|
347
347
|
: undefined,
|
|
348
348
|
};
|
|
349
349
|
},
|
|
350
350
|
toJSON(message) {
|
|
351
|
-
var _a, _b;
|
|
351
|
+
var _a, _b, _c;
|
|
352
352
|
const obj = {};
|
|
353
353
|
if (message.corporation !== "") {
|
|
354
354
|
obj.corporation = message.corporation;
|
|
@@ -377,20 +377,20 @@ exports.MsgStartParticipantOP = {
|
|
|
377
377
|
if (message.vsOperator !== "") {
|
|
378
378
|
obj.vsOperator = message.vsOperator;
|
|
379
379
|
}
|
|
380
|
-
if (message.
|
|
381
|
-
obj.
|
|
380
|
+
if ((_a = message.vsOperatorAuthzMsgTypes) === null || _a === void 0 ? void 0 : _a.length) {
|
|
381
|
+
obj.vsOperatorAuthzMsgTypes = message.vsOperatorAuthzMsgTypes;
|
|
382
382
|
}
|
|
383
|
-
if ((
|
|
383
|
+
if ((_b = message.vsOperatorAuthzSpendLimit) === null || _b === void 0 ? void 0 : _b.length) {
|
|
384
384
|
obj.vsOperatorAuthzSpendLimit = message.vsOperatorAuthzSpendLimit.map((e) => coin_1.Coin.toJSON(e));
|
|
385
385
|
}
|
|
386
386
|
if (message.vsOperatorAuthzWithFeegrant !== false) {
|
|
387
387
|
obj.vsOperatorAuthzWithFeegrant = message.vsOperatorAuthzWithFeegrant;
|
|
388
388
|
}
|
|
389
|
-
if ((
|
|
389
|
+
if ((_c = message.vsOperatorAuthzFeeSpendLimit) === null || _c === void 0 ? void 0 : _c.length) {
|
|
390
390
|
obj.vsOperatorAuthzFeeSpendLimit = message.vsOperatorAuthzFeeSpendLimit.map((e) => coin_1.Coin.toJSON(e));
|
|
391
391
|
}
|
|
392
|
-
if (message.
|
|
393
|
-
obj.
|
|
392
|
+
if (message.vsOperatorAuthzPeriod !== undefined) {
|
|
393
|
+
obj.vsOperatorAuthzPeriod = duration_1.Duration.toJSON(message.vsOperatorAuthzPeriod);
|
|
394
394
|
}
|
|
395
395
|
return obj;
|
|
396
396
|
},
|
|
@@ -415,13 +415,13 @@ exports.MsgStartParticipantOP = {
|
|
|
415
415
|
? types_1.OptionalUInt64.fromPartial(object.verificationFees)
|
|
416
416
|
: undefined;
|
|
417
417
|
message.vsOperator = (_f = object.vsOperator) !== null && _f !== void 0 ? _f : "";
|
|
418
|
-
message.
|
|
418
|
+
message.vsOperatorAuthzMsgTypes = ((_g = object.vsOperatorAuthzMsgTypes) === null || _g === void 0 ? void 0 : _g.map((e) => e)) || [];
|
|
419
419
|
message.vsOperatorAuthzSpendLimit = ((_h = object.vsOperatorAuthzSpendLimit) === null || _h === void 0 ? void 0 : _h.map((e) => coin_1.Coin.fromPartial(e))) || [];
|
|
420
420
|
message.vsOperatorAuthzWithFeegrant = (_j = object.vsOperatorAuthzWithFeegrant) !== null && _j !== void 0 ? _j : false;
|
|
421
421
|
message.vsOperatorAuthzFeeSpendLimit = ((_k = object.vsOperatorAuthzFeeSpendLimit) === null || _k === void 0 ? void 0 : _k.map((e) => coin_1.Coin.fromPartial(e))) || [];
|
|
422
|
-
message.
|
|
423
|
-
(object.
|
|
424
|
-
? duration_1.Duration.fromPartial(object.
|
|
422
|
+
message.vsOperatorAuthzPeriod =
|
|
423
|
+
(object.vsOperatorAuthzPeriod !== undefined && object.vsOperatorAuthzPeriod !== null)
|
|
424
|
+
? duration_1.Duration.fromPartial(object.vsOperatorAuthzPeriod)
|
|
425
425
|
: undefined;
|
|
426
426
|
return message;
|
|
427
427
|
},
|
|
@@ -953,6 +953,12 @@ function createBaseMsgCreateRootParticipant() {
|
|
|
953
953
|
validationFees: 0,
|
|
954
954
|
issuanceFees: 0,
|
|
955
955
|
verificationFees: 0,
|
|
956
|
+
vsOperator: "",
|
|
957
|
+
vsOperatorAuthzMsgTypes: [],
|
|
958
|
+
vsOperatorAuthzSpendLimit: [],
|
|
959
|
+
vsOperatorAuthzWithFeegrant: false,
|
|
960
|
+
vsOperatorAuthzFeeSpendLimit: [],
|
|
961
|
+
vsOperatorAuthzPeriod: undefined,
|
|
956
962
|
};
|
|
957
963
|
}
|
|
958
964
|
exports.MsgCreateRootParticipant = {
|
|
@@ -984,6 +990,24 @@ exports.MsgCreateRootParticipant = {
|
|
|
984
990
|
if (message.verificationFees !== 0) {
|
|
985
991
|
writer.uint32(72).uint64(message.verificationFees);
|
|
986
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
|
+
}
|
|
987
1011
|
return writer;
|
|
988
1012
|
},
|
|
989
1013
|
decode(input, length) {
|
|
@@ -1047,6 +1071,42 @@ exports.MsgCreateRootParticipant = {
|
|
|
1047
1071
|
}
|
|
1048
1072
|
message.verificationFees = longToNumber(reader.uint64());
|
|
1049
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;
|
|
1050
1110
|
}
|
|
1051
1111
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1052
1112
|
break;
|
|
@@ -1066,9 +1126,26 @@ exports.MsgCreateRootParticipant = {
|
|
|
1066
1126
|
validationFees: isSet(object.validationFees) ? globalThis.Number(object.validationFees) : 0,
|
|
1067
1127
|
issuanceFees: isSet(object.issuanceFees) ? globalThis.Number(object.issuanceFees) : 0,
|
|
1068
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,
|
|
1069
1145
|
};
|
|
1070
1146
|
},
|
|
1071
1147
|
toJSON(message) {
|
|
1148
|
+
var _a, _b, _c;
|
|
1072
1149
|
const obj = {};
|
|
1073
1150
|
if (message.corporation !== "") {
|
|
1074
1151
|
obj.corporation = message.corporation;
|
|
@@ -1097,13 +1174,31 @@ exports.MsgCreateRootParticipant = {
|
|
|
1097
1174
|
if (message.verificationFees !== 0) {
|
|
1098
1175
|
obj.verificationFees = Math.round(message.verificationFees);
|
|
1099
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
|
+
}
|
|
1100
1195
|
return obj;
|
|
1101
1196
|
},
|
|
1102
1197
|
create(base) {
|
|
1103
1198
|
return exports.MsgCreateRootParticipant.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1104
1199
|
},
|
|
1105
1200
|
fromPartial(object) {
|
|
1106
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1201
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
1107
1202
|
const message = createBaseMsgCreateRootParticipant();
|
|
1108
1203
|
message.corporation = (_a = object.corporation) !== null && _a !== void 0 ? _a : "";
|
|
1109
1204
|
message.operator = (_b = object.operator) !== null && _b !== void 0 ? _b : "";
|
|
@@ -1114,6 +1209,15 @@ exports.MsgCreateRootParticipant = {
|
|
|
1114
1209
|
message.validationFees = (_g = object.validationFees) !== null && _g !== void 0 ? _g : 0;
|
|
1115
1210
|
message.issuanceFees = (_h = object.issuanceFees) !== null && _h !== void 0 ? _h : 0;
|
|
1116
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;
|
|
1117
1221
|
return message;
|
|
1118
1222
|
},
|
|
1119
1223
|
};
|
|
@@ -1921,11 +2025,11 @@ function createBaseMsgSelfCreateParticipant() {
|
|
|
1921
2025
|
verificationFees: 0,
|
|
1922
2026
|
validationFees: 0,
|
|
1923
2027
|
vsOperator: "",
|
|
1924
|
-
|
|
2028
|
+
vsOperatorAuthzMsgTypes: [],
|
|
1925
2029
|
vsOperatorAuthzSpendLimit: [],
|
|
1926
2030
|
vsOperatorAuthzWithFeegrant: false,
|
|
1927
2031
|
vsOperatorAuthzFeeSpendLimit: [],
|
|
1928
|
-
|
|
2032
|
+
vsOperatorAuthzPeriod: undefined,
|
|
1929
2033
|
};
|
|
1930
2034
|
}
|
|
1931
2035
|
exports.MsgSelfCreateParticipant = {
|
|
@@ -1960,8 +2064,8 @@ exports.MsgSelfCreateParticipant = {
|
|
|
1960
2064
|
if (message.vsOperator !== "") {
|
|
1961
2065
|
writer.uint32(82).string(message.vsOperator);
|
|
1962
2066
|
}
|
|
1963
|
-
|
|
1964
|
-
writer.uint32(
|
|
2067
|
+
for (const v of message.vsOperatorAuthzMsgTypes) {
|
|
2068
|
+
writer.uint32(130).string(v);
|
|
1965
2069
|
}
|
|
1966
2070
|
for (const v of message.vsOperatorAuthzSpendLimit) {
|
|
1967
2071
|
coin_1.Coin.encode(v, writer.uint32(98).fork()).ldelim();
|
|
@@ -1972,8 +2076,8 @@ exports.MsgSelfCreateParticipant = {
|
|
|
1972
2076
|
for (const v of message.vsOperatorAuthzFeeSpendLimit) {
|
|
1973
2077
|
coin_1.Coin.encode(v, writer.uint32(114).fork()).ldelim();
|
|
1974
2078
|
}
|
|
1975
|
-
if (message.
|
|
1976
|
-
duration_1.Duration.encode(message.
|
|
2079
|
+
if (message.vsOperatorAuthzPeriod !== undefined) {
|
|
2080
|
+
duration_1.Duration.encode(message.vsOperatorAuthzPeriod, writer.uint32(122).fork()).ldelim();
|
|
1977
2081
|
}
|
|
1978
2082
|
return writer;
|
|
1979
2083
|
},
|
|
@@ -2044,11 +2148,11 @@ exports.MsgSelfCreateParticipant = {
|
|
|
2044
2148
|
}
|
|
2045
2149
|
message.vsOperator = reader.string();
|
|
2046
2150
|
continue;
|
|
2047
|
-
case
|
|
2048
|
-
if (tag !==
|
|
2151
|
+
case 16:
|
|
2152
|
+
if (tag !== 130) {
|
|
2049
2153
|
break;
|
|
2050
2154
|
}
|
|
2051
|
-
message.
|
|
2155
|
+
message.vsOperatorAuthzMsgTypes.push(reader.string());
|
|
2052
2156
|
continue;
|
|
2053
2157
|
case 12:
|
|
2054
2158
|
if (tag !== 98) {
|
|
@@ -2072,7 +2176,7 @@ exports.MsgSelfCreateParticipant = {
|
|
|
2072
2176
|
if (tag !== 122) {
|
|
2073
2177
|
break;
|
|
2074
2178
|
}
|
|
2075
|
-
message.
|
|
2179
|
+
message.vsOperatorAuthzPeriod = duration_1.Duration.decode(reader, reader.uint32());
|
|
2076
2180
|
continue;
|
|
2077
2181
|
}
|
|
2078
2182
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -2096,9 +2200,9 @@ exports.MsgSelfCreateParticipant = {
|
|
|
2096
2200
|
verificationFees: isSet(object.verificationFees) ? globalThis.Number(object.verificationFees) : 0,
|
|
2097
2201
|
validationFees: isSet(object.validationFees) ? globalThis.Number(object.validationFees) : 0,
|
|
2098
2202
|
vsOperator: isSet(object.vsOperator) ? globalThis.String(object.vsOperator) : "",
|
|
2099
|
-
|
|
2100
|
-
? globalThis.
|
|
2101
|
-
:
|
|
2203
|
+
vsOperatorAuthzMsgTypes: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.vsOperatorAuthzMsgTypes)
|
|
2204
|
+
? object.vsOperatorAuthzMsgTypes.map((e) => globalThis.String(e))
|
|
2205
|
+
: [],
|
|
2102
2206
|
vsOperatorAuthzSpendLimit: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.vsOperatorAuthzSpendLimit)
|
|
2103
2207
|
? object.vsOperatorAuthzSpendLimit.map((e) => coin_1.Coin.fromJSON(e))
|
|
2104
2208
|
: [],
|
|
@@ -2108,13 +2212,13 @@ exports.MsgSelfCreateParticipant = {
|
|
|
2108
2212
|
vsOperatorAuthzFeeSpendLimit: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.vsOperatorAuthzFeeSpendLimit)
|
|
2109
2213
|
? object.vsOperatorAuthzFeeSpendLimit.map((e) => coin_1.Coin.fromJSON(e))
|
|
2110
2214
|
: [],
|
|
2111
|
-
|
|
2112
|
-
? duration_1.Duration.fromJSON(object.
|
|
2215
|
+
vsOperatorAuthzPeriod: isSet(object.vsOperatorAuthzPeriod)
|
|
2216
|
+
? duration_1.Duration.fromJSON(object.vsOperatorAuthzPeriod)
|
|
2113
2217
|
: undefined,
|
|
2114
2218
|
};
|
|
2115
2219
|
},
|
|
2116
2220
|
toJSON(message) {
|
|
2117
|
-
var _a, _b;
|
|
2221
|
+
var _a, _b, _c;
|
|
2118
2222
|
const obj = {};
|
|
2119
2223
|
if (message.corporation !== "") {
|
|
2120
2224
|
obj.corporation = message.corporation;
|
|
@@ -2146,20 +2250,20 @@ exports.MsgSelfCreateParticipant = {
|
|
|
2146
2250
|
if (message.vsOperator !== "") {
|
|
2147
2251
|
obj.vsOperator = message.vsOperator;
|
|
2148
2252
|
}
|
|
2149
|
-
if (message.
|
|
2150
|
-
obj.
|
|
2253
|
+
if ((_a = message.vsOperatorAuthzMsgTypes) === null || _a === void 0 ? void 0 : _a.length) {
|
|
2254
|
+
obj.vsOperatorAuthzMsgTypes = message.vsOperatorAuthzMsgTypes;
|
|
2151
2255
|
}
|
|
2152
|
-
if ((
|
|
2256
|
+
if ((_b = message.vsOperatorAuthzSpendLimit) === null || _b === void 0 ? void 0 : _b.length) {
|
|
2153
2257
|
obj.vsOperatorAuthzSpendLimit = message.vsOperatorAuthzSpendLimit.map((e) => coin_1.Coin.toJSON(e));
|
|
2154
2258
|
}
|
|
2155
2259
|
if (message.vsOperatorAuthzWithFeegrant !== false) {
|
|
2156
2260
|
obj.vsOperatorAuthzWithFeegrant = message.vsOperatorAuthzWithFeegrant;
|
|
2157
2261
|
}
|
|
2158
|
-
if ((
|
|
2262
|
+
if ((_c = message.vsOperatorAuthzFeeSpendLimit) === null || _c === void 0 ? void 0 : _c.length) {
|
|
2159
2263
|
obj.vsOperatorAuthzFeeSpendLimit = message.vsOperatorAuthzFeeSpendLimit.map((e) => coin_1.Coin.toJSON(e));
|
|
2160
2264
|
}
|
|
2161
|
-
if (message.
|
|
2162
|
-
obj.
|
|
2265
|
+
if (message.vsOperatorAuthzPeriod !== undefined) {
|
|
2266
|
+
obj.vsOperatorAuthzPeriod = duration_1.Duration.toJSON(message.vsOperatorAuthzPeriod);
|
|
2163
2267
|
}
|
|
2164
2268
|
return obj;
|
|
2165
2269
|
},
|
|
@@ -2179,13 +2283,13 @@ exports.MsgSelfCreateParticipant = {
|
|
|
2179
2283
|
message.verificationFees = (_h = object.verificationFees) !== null && _h !== void 0 ? _h : 0;
|
|
2180
2284
|
message.validationFees = (_j = object.validationFees) !== null && _j !== void 0 ? _j : 0;
|
|
2181
2285
|
message.vsOperator = (_k = object.vsOperator) !== null && _k !== void 0 ? _k : "";
|
|
2182
|
-
message.
|
|
2286
|
+
message.vsOperatorAuthzMsgTypes = ((_l = object.vsOperatorAuthzMsgTypes) === null || _l === void 0 ? void 0 : _l.map((e) => e)) || [];
|
|
2183
2287
|
message.vsOperatorAuthzSpendLimit = ((_m = object.vsOperatorAuthzSpendLimit) === null || _m === void 0 ? void 0 : _m.map((e) => coin_1.Coin.fromPartial(e))) || [];
|
|
2184
2288
|
message.vsOperatorAuthzWithFeegrant = (_o = object.vsOperatorAuthzWithFeegrant) !== null && _o !== void 0 ? _o : false;
|
|
2185
2289
|
message.vsOperatorAuthzFeeSpendLimit = ((_p = object.vsOperatorAuthzFeeSpendLimit) === null || _p === void 0 ? void 0 : _p.map((e) => coin_1.Coin.fromPartial(e))) || [];
|
|
2186
|
-
message.
|
|
2187
|
-
(object.
|
|
2188
|
-
? duration_1.Duration.fromPartial(object.
|
|
2290
|
+
message.vsOperatorAuthzPeriod =
|
|
2291
|
+
(object.vsOperatorAuthzPeriod !== undefined && object.vsOperatorAuthzPeriod !== null)
|
|
2292
|
+
? duration_1.Duration.fromPartial(object.vsOperatorAuthzPeriod)
|
|
2189
2293
|
: undefined;
|
|
2190
2294
|
return message;
|
|
2191
2295
|
},
|
|
@@ -2241,6 +2345,124 @@ exports.MsgSelfCreateParticipantResponse = {
|
|
|
2241
2345
|
return message;
|
|
2242
2346
|
},
|
|
2243
2347
|
};
|
|
2348
|
+
function createBaseMsgTriggerResolver() {
|
|
2349
|
+
return { corporation: "", operator: "", id: 0 };
|
|
2350
|
+
}
|
|
2351
|
+
exports.MsgTriggerResolver = {
|
|
2352
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
2353
|
+
if (message.corporation !== "") {
|
|
2354
|
+
writer.uint32(10).string(message.corporation);
|
|
2355
|
+
}
|
|
2356
|
+
if (message.operator !== "") {
|
|
2357
|
+
writer.uint32(18).string(message.operator);
|
|
2358
|
+
}
|
|
2359
|
+
if (message.id !== 0) {
|
|
2360
|
+
writer.uint32(24).uint64(message.id);
|
|
2361
|
+
}
|
|
2362
|
+
return writer;
|
|
2363
|
+
},
|
|
2364
|
+
decode(input, length) {
|
|
2365
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
2366
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2367
|
+
const message = createBaseMsgTriggerResolver();
|
|
2368
|
+
while (reader.pos < end) {
|
|
2369
|
+
const tag = reader.uint32();
|
|
2370
|
+
switch (tag >>> 3) {
|
|
2371
|
+
case 1:
|
|
2372
|
+
if (tag !== 10) {
|
|
2373
|
+
break;
|
|
2374
|
+
}
|
|
2375
|
+
message.corporation = reader.string();
|
|
2376
|
+
continue;
|
|
2377
|
+
case 2:
|
|
2378
|
+
if (tag !== 18) {
|
|
2379
|
+
break;
|
|
2380
|
+
}
|
|
2381
|
+
message.operator = reader.string();
|
|
2382
|
+
continue;
|
|
2383
|
+
case 3:
|
|
2384
|
+
if (tag !== 24) {
|
|
2385
|
+
break;
|
|
2386
|
+
}
|
|
2387
|
+
message.id = longToNumber(reader.uint64());
|
|
2388
|
+
continue;
|
|
2389
|
+
}
|
|
2390
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2391
|
+
break;
|
|
2392
|
+
}
|
|
2393
|
+
reader.skipType(tag & 7);
|
|
2394
|
+
}
|
|
2395
|
+
return message;
|
|
2396
|
+
},
|
|
2397
|
+
fromJSON(object) {
|
|
2398
|
+
return {
|
|
2399
|
+
corporation: isSet(object.corporation) ? globalThis.String(object.corporation) : "",
|
|
2400
|
+
operator: isSet(object.operator) ? globalThis.String(object.operator) : "",
|
|
2401
|
+
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
|
2402
|
+
};
|
|
2403
|
+
},
|
|
2404
|
+
toJSON(message) {
|
|
2405
|
+
const obj = {};
|
|
2406
|
+
if (message.corporation !== "") {
|
|
2407
|
+
obj.corporation = message.corporation;
|
|
2408
|
+
}
|
|
2409
|
+
if (message.operator !== "") {
|
|
2410
|
+
obj.operator = message.operator;
|
|
2411
|
+
}
|
|
2412
|
+
if (message.id !== 0) {
|
|
2413
|
+
obj.id = Math.round(message.id);
|
|
2414
|
+
}
|
|
2415
|
+
return obj;
|
|
2416
|
+
},
|
|
2417
|
+
create(base) {
|
|
2418
|
+
return exports.MsgTriggerResolver.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
2419
|
+
},
|
|
2420
|
+
fromPartial(object) {
|
|
2421
|
+
var _a, _b, _c;
|
|
2422
|
+
const message = createBaseMsgTriggerResolver();
|
|
2423
|
+
message.corporation = (_a = object.corporation) !== null && _a !== void 0 ? _a : "";
|
|
2424
|
+
message.operator = (_b = object.operator) !== null && _b !== void 0 ? _b : "";
|
|
2425
|
+
message.id = (_c = object.id) !== null && _c !== void 0 ? _c : 0;
|
|
2426
|
+
return message;
|
|
2427
|
+
},
|
|
2428
|
+
};
|
|
2429
|
+
function createBaseMsgTriggerResolverResponse() {
|
|
2430
|
+
return {};
|
|
2431
|
+
}
|
|
2432
|
+
exports.MsgTriggerResolverResponse = {
|
|
2433
|
+
encode(_, writer = _m0.Writer.create()) {
|
|
2434
|
+
return writer;
|
|
2435
|
+
},
|
|
2436
|
+
decode(input, length) {
|
|
2437
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
2438
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2439
|
+
const message = createBaseMsgTriggerResolverResponse();
|
|
2440
|
+
while (reader.pos < end) {
|
|
2441
|
+
const tag = reader.uint32();
|
|
2442
|
+
switch (tag >>> 3) {
|
|
2443
|
+
}
|
|
2444
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2445
|
+
break;
|
|
2446
|
+
}
|
|
2447
|
+
reader.skipType(tag & 7);
|
|
2448
|
+
}
|
|
2449
|
+
return message;
|
|
2450
|
+
},
|
|
2451
|
+
fromJSON(_) {
|
|
2452
|
+
return {};
|
|
2453
|
+
},
|
|
2454
|
+
toJSON(_) {
|
|
2455
|
+
const obj = {};
|
|
2456
|
+
return obj;
|
|
2457
|
+
},
|
|
2458
|
+
create(base) {
|
|
2459
|
+
return exports.MsgTriggerResolverResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
2460
|
+
},
|
|
2461
|
+
fromPartial(_) {
|
|
2462
|
+
const message = createBaseMsgTriggerResolverResponse();
|
|
2463
|
+
return message;
|
|
2464
|
+
},
|
|
2465
|
+
};
|
|
2244
2466
|
exports.MsgServiceName = "verana.pp.v1.Msg";
|
|
2245
2467
|
class MsgClientImpl {
|
|
2246
2468
|
constructor(rpc, opts) {
|
|
@@ -2258,6 +2480,7 @@ class MsgClientImpl {
|
|
|
2258
2480
|
this.SlashParticipantTrustDeposit = this.SlashParticipantTrustDeposit.bind(this);
|
|
2259
2481
|
this.RepayParticipantSlashedTrustDeposit = this.RepayParticipantSlashedTrustDeposit.bind(this);
|
|
2260
2482
|
this.SelfCreateParticipant = this.SelfCreateParticipant.bind(this);
|
|
2483
|
+
this.TriggerResolver = this.TriggerResolver.bind(this);
|
|
2261
2484
|
}
|
|
2262
2485
|
UpdateParams(request) {
|
|
2263
2486
|
const data = exports.MsgUpdateParams.encode(request).finish();
|
|
@@ -2319,6 +2542,11 @@ class MsgClientImpl {
|
|
|
2319
2542
|
const promise = this.rpc.request(this.service, "SelfCreateParticipant", data);
|
|
2320
2543
|
return promise.then((data) => exports.MsgSelfCreateParticipantResponse.decode(_m0.Reader.create(data)));
|
|
2321
2544
|
}
|
|
2545
|
+
TriggerResolver(request) {
|
|
2546
|
+
const data = exports.MsgTriggerResolver.encode(request).finish();
|
|
2547
|
+
const promise = this.rpc.request(this.service, "TriggerResolver", data);
|
|
2548
|
+
return promise.then((data) => exports.MsgTriggerResolverResponse.decode(_m0.Reader.create(data)));
|
|
2549
|
+
}
|
|
2322
2550
|
}
|
|
2323
2551
|
exports.MsgClientImpl = MsgClientImpl;
|
|
2324
2552
|
function toTimestamp(date) {
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import * as _m0 from "protobufjs/minimal";
|
|
2
|
-
import { Coin } from "../../../cosmos/base/v1beta1/coin";
|
|
3
|
-
import { Duration } from "../../../google/protobuf/duration";
|
|
4
2
|
export declare const protobufPackage = "verana.pp.v1";
|
|
5
3
|
/** Participant roles */
|
|
6
4
|
export declare enum ParticipantRole {
|
|
@@ -58,13 +56,12 @@ export interface Participant {
|
|
|
58
56
|
*/
|
|
59
57
|
issuanceFeeDiscount: number;
|
|
60
58
|
verificationFeeDiscount: number;
|
|
61
|
-
/**
|
|
59
|
+
/**
|
|
60
|
+
* vs_operator is the VS operator account (spec v4-rc2, still used). The former
|
|
61
|
+
* per-permission VS-operator-authz config (fields 38-42) moved into the DE
|
|
62
|
+
* module's VSOperatorAuthorization.records[] per spec v4-rc2.
|
|
63
|
+
*/
|
|
62
64
|
vsOperator: string;
|
|
63
|
-
vsOperatorAuthzEnabled: boolean;
|
|
64
|
-
vsOperatorAuthzSpendLimit: Coin[];
|
|
65
|
-
vsOperatorAuthzWithFeegrant: boolean;
|
|
66
|
-
vsOperatorAuthzFeeSpendLimit: Coin[];
|
|
67
|
-
vsOperatorAuthzSpendPeriod: Duration | undefined;
|
|
68
65
|
/**
|
|
69
66
|
* corporation_id is the uint64 FK to Corporation.id (resolved from the
|
|
70
67
|
* signing corporation account via AUTHZ-CHECK-5). Replaces former field 5.
|