@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
|
@@ -45,8 +45,6 @@ exports.onboardingStateFromJSON = onboardingStateFromJSON;
|
|
|
45
45
|
exports.onboardingStateToJSON = onboardingStateToJSON;
|
|
46
46
|
/* eslint-disable */
|
|
47
47
|
const _m0 = __importStar(require("protobufjs/minimal"));
|
|
48
|
-
const coin_1 = require("../../../cosmos/base/v1beta1/coin");
|
|
49
|
-
const duration_1 = require("../../../google/protobuf/duration");
|
|
50
48
|
const timestamp_1 = require("../../../google/protobuf/timestamp");
|
|
51
49
|
const Long = require("long");
|
|
52
50
|
exports.protobufPackage = "verana.pp.v1";
|
|
@@ -187,11 +185,6 @@ function createBaseParticipant() {
|
|
|
187
185
|
issuanceFeeDiscount: 0,
|
|
188
186
|
verificationFeeDiscount: 0,
|
|
189
187
|
vsOperator: "",
|
|
190
|
-
vsOperatorAuthzEnabled: false,
|
|
191
|
-
vsOperatorAuthzSpendLimit: [],
|
|
192
|
-
vsOperatorAuthzWithFeegrant: false,
|
|
193
|
-
vsOperatorAuthzFeeSpendLimit: [],
|
|
194
|
-
vsOperatorAuthzSpendPeriod: undefined,
|
|
195
188
|
corporationId: 0,
|
|
196
189
|
};
|
|
197
190
|
}
|
|
@@ -284,21 +277,6 @@ exports.Participant = {
|
|
|
284
277
|
if (message.vsOperator !== "") {
|
|
285
278
|
writer.uint32(298).string(message.vsOperator);
|
|
286
279
|
}
|
|
287
|
-
if (message.vsOperatorAuthzEnabled !== false) {
|
|
288
|
-
writer.uint32(304).bool(message.vsOperatorAuthzEnabled);
|
|
289
|
-
}
|
|
290
|
-
for (const v of message.vsOperatorAuthzSpendLimit) {
|
|
291
|
-
coin_1.Coin.encode(v, writer.uint32(314).fork()).ldelim();
|
|
292
|
-
}
|
|
293
|
-
if (message.vsOperatorAuthzWithFeegrant !== false) {
|
|
294
|
-
writer.uint32(320).bool(message.vsOperatorAuthzWithFeegrant);
|
|
295
|
-
}
|
|
296
|
-
for (const v of message.vsOperatorAuthzFeeSpendLimit) {
|
|
297
|
-
coin_1.Coin.encode(v, writer.uint32(330).fork()).ldelim();
|
|
298
|
-
}
|
|
299
|
-
if (message.vsOperatorAuthzSpendPeriod !== undefined) {
|
|
300
|
-
duration_1.Duration.encode(message.vsOperatorAuthzSpendPeriod, writer.uint32(338).fork()).ldelim();
|
|
301
|
-
}
|
|
302
280
|
if (message.corporationId !== 0) {
|
|
303
281
|
writer.uint32(344).uint64(message.corporationId);
|
|
304
282
|
}
|
|
@@ -485,36 +463,6 @@ exports.Participant = {
|
|
|
485
463
|
}
|
|
486
464
|
message.vsOperator = reader.string();
|
|
487
465
|
continue;
|
|
488
|
-
case 38:
|
|
489
|
-
if (tag !== 304) {
|
|
490
|
-
break;
|
|
491
|
-
}
|
|
492
|
-
message.vsOperatorAuthzEnabled = reader.bool();
|
|
493
|
-
continue;
|
|
494
|
-
case 39:
|
|
495
|
-
if (tag !== 314) {
|
|
496
|
-
break;
|
|
497
|
-
}
|
|
498
|
-
message.vsOperatorAuthzSpendLimit.push(coin_1.Coin.decode(reader, reader.uint32()));
|
|
499
|
-
continue;
|
|
500
|
-
case 40:
|
|
501
|
-
if (tag !== 320) {
|
|
502
|
-
break;
|
|
503
|
-
}
|
|
504
|
-
message.vsOperatorAuthzWithFeegrant = reader.bool();
|
|
505
|
-
continue;
|
|
506
|
-
case 41:
|
|
507
|
-
if (tag !== 330) {
|
|
508
|
-
break;
|
|
509
|
-
}
|
|
510
|
-
message.vsOperatorAuthzFeeSpendLimit.push(coin_1.Coin.decode(reader, reader.uint32()));
|
|
511
|
-
continue;
|
|
512
|
-
case 42:
|
|
513
|
-
if (tag !== 338) {
|
|
514
|
-
break;
|
|
515
|
-
}
|
|
516
|
-
message.vsOperatorAuthzSpendPeriod = duration_1.Duration.decode(reader, reader.uint32());
|
|
517
|
-
continue;
|
|
518
466
|
case 43:
|
|
519
467
|
if (tag !== 344) {
|
|
520
468
|
break;
|
|
@@ -564,26 +512,10 @@ exports.Participant = {
|
|
|
564
512
|
? globalThis.Number(object.verificationFeeDiscount)
|
|
565
513
|
: 0,
|
|
566
514
|
vsOperator: isSet(object.vsOperator) ? globalThis.String(object.vsOperator) : "",
|
|
567
|
-
vsOperatorAuthzEnabled: isSet(object.vsOperatorAuthzEnabled)
|
|
568
|
-
? globalThis.Boolean(object.vsOperatorAuthzEnabled)
|
|
569
|
-
: false,
|
|
570
|
-
vsOperatorAuthzSpendLimit: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.vsOperatorAuthzSpendLimit)
|
|
571
|
-
? object.vsOperatorAuthzSpendLimit.map((e) => coin_1.Coin.fromJSON(e))
|
|
572
|
-
: [],
|
|
573
|
-
vsOperatorAuthzWithFeegrant: isSet(object.vsOperatorAuthzWithFeegrant)
|
|
574
|
-
? globalThis.Boolean(object.vsOperatorAuthzWithFeegrant)
|
|
575
|
-
: false,
|
|
576
|
-
vsOperatorAuthzFeeSpendLimit: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.vsOperatorAuthzFeeSpendLimit)
|
|
577
|
-
? object.vsOperatorAuthzFeeSpendLimit.map((e) => coin_1.Coin.fromJSON(e))
|
|
578
|
-
: [],
|
|
579
|
-
vsOperatorAuthzSpendPeriod: isSet(object.vsOperatorAuthzSpendPeriod)
|
|
580
|
-
? duration_1.Duration.fromJSON(object.vsOperatorAuthzSpendPeriod)
|
|
581
|
-
: undefined,
|
|
582
515
|
corporationId: isSet(object.corporationId) ? globalThis.Number(object.corporationId) : 0,
|
|
583
516
|
};
|
|
584
517
|
},
|
|
585
518
|
toJSON(message) {
|
|
586
|
-
var _a, _b;
|
|
587
519
|
const obj = {};
|
|
588
520
|
if (message.id !== 0) {
|
|
589
521
|
obj.id = Math.round(message.id);
|
|
@@ -672,21 +604,6 @@ exports.Participant = {
|
|
|
672
604
|
if (message.vsOperator !== "") {
|
|
673
605
|
obj.vsOperator = message.vsOperator;
|
|
674
606
|
}
|
|
675
|
-
if (message.vsOperatorAuthzEnabled !== false) {
|
|
676
|
-
obj.vsOperatorAuthzEnabled = message.vsOperatorAuthzEnabled;
|
|
677
|
-
}
|
|
678
|
-
if ((_a = message.vsOperatorAuthzSpendLimit) === null || _a === void 0 ? void 0 : _a.length) {
|
|
679
|
-
obj.vsOperatorAuthzSpendLimit = message.vsOperatorAuthzSpendLimit.map((e) => coin_1.Coin.toJSON(e));
|
|
680
|
-
}
|
|
681
|
-
if (message.vsOperatorAuthzWithFeegrant !== false) {
|
|
682
|
-
obj.vsOperatorAuthzWithFeegrant = message.vsOperatorAuthzWithFeegrant;
|
|
683
|
-
}
|
|
684
|
-
if ((_b = message.vsOperatorAuthzFeeSpendLimit) === null || _b === void 0 ? void 0 : _b.length) {
|
|
685
|
-
obj.vsOperatorAuthzFeeSpendLimit = message.vsOperatorAuthzFeeSpendLimit.map((e) => coin_1.Coin.toJSON(e));
|
|
686
|
-
}
|
|
687
|
-
if (message.vsOperatorAuthzSpendPeriod !== undefined) {
|
|
688
|
-
obj.vsOperatorAuthzSpendPeriod = duration_1.Duration.toJSON(message.vsOperatorAuthzSpendPeriod);
|
|
689
|
-
}
|
|
690
607
|
if (message.corporationId !== 0) {
|
|
691
608
|
obj.corporationId = Math.round(message.corporationId);
|
|
692
609
|
}
|
|
@@ -696,7 +613,7 @@ exports.Participant = {
|
|
|
696
613
|
return exports.Participant.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
697
614
|
},
|
|
698
615
|
fromPartial(object) {
|
|
699
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5
|
|
616
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5;
|
|
700
617
|
const message = createBaseParticipant();
|
|
701
618
|
message.id = (_a = object.id) !== null && _a !== void 0 ? _a : 0;
|
|
702
619
|
message.schemaId = (_b = object.schemaId) !== null && _b !== void 0 ? _b : 0;
|
|
@@ -727,15 +644,7 @@ exports.Participant = {
|
|
|
727
644
|
message.issuanceFeeDiscount = (_2 = object.issuanceFeeDiscount) !== null && _2 !== void 0 ? _2 : 0;
|
|
728
645
|
message.verificationFeeDiscount = (_3 = object.verificationFeeDiscount) !== null && _3 !== void 0 ? _3 : 0;
|
|
729
646
|
message.vsOperator = (_4 = object.vsOperator) !== null && _4 !== void 0 ? _4 : "";
|
|
730
|
-
message.
|
|
731
|
-
message.vsOperatorAuthzSpendLimit = ((_6 = object.vsOperatorAuthzSpendLimit) === null || _6 === void 0 ? void 0 : _6.map((e) => coin_1.Coin.fromPartial(e))) || [];
|
|
732
|
-
message.vsOperatorAuthzWithFeegrant = (_7 = object.vsOperatorAuthzWithFeegrant) !== null && _7 !== void 0 ? _7 : false;
|
|
733
|
-
message.vsOperatorAuthzFeeSpendLimit = ((_8 = object.vsOperatorAuthzFeeSpendLimit) === null || _8 === void 0 ? void 0 : _8.map((e) => coin_1.Coin.fromPartial(e))) || [];
|
|
734
|
-
message.vsOperatorAuthzSpendPeriod =
|
|
735
|
-
(object.vsOperatorAuthzSpendPeriod !== undefined && object.vsOperatorAuthzSpendPeriod !== null)
|
|
736
|
-
? duration_1.Duration.fromPartial(object.vsOperatorAuthzSpendPeriod)
|
|
737
|
-
: undefined;
|
|
738
|
-
message.corporationId = (_9 = object.corporationId) !== null && _9 !== void 0 ? _9 : 0;
|
|
647
|
+
message.corporationId = (_5 = object.corporationId) !== null && _5 !== void 0 ? _5 : 0;
|
|
739
648
|
return message;
|
|
740
649
|
},
|
|
741
650
|
};
|
package/dist/signing.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ export declare const veranaTypeUrls: {
|
|
|
18
18
|
readonly MsgStartParticipantOP: "/verana.pp.v1.MsgStartParticipantOP";
|
|
19
19
|
readonly MsgRenewParticipantOP: "/verana.pp.v1.MsgRenewParticipantOP";
|
|
20
20
|
readonly MsgSetParticipantOPToValidated: "/verana.pp.v1.MsgSetParticipantOPToValidated";
|
|
21
|
+
readonly MsgTriggerResolver: "/verana.pp.v1.MsgTriggerResolver";
|
|
21
22
|
readonly MsgCancelParticipantOPLastRequest: "/verana.pp.v1.MsgCancelParticipantOPLastRequest";
|
|
22
23
|
readonly MsgCreateOrUpdateParticipantSession: "/verana.pp.v1.MsgCreateOrUpdateParticipantSession";
|
|
23
24
|
readonly MsgSlashParticipantTrustDeposit: "/verana.pp.v1.MsgSlashParticipantTrustDeposit";
|
|
@@ -50,6 +51,7 @@ export declare const typeUrls: {
|
|
|
50
51
|
readonly MsgStartParticipantOP: "/verana.pp.v1.MsgStartParticipantOP";
|
|
51
52
|
readonly MsgRenewParticipantOP: "/verana.pp.v1.MsgRenewParticipantOP";
|
|
52
53
|
readonly MsgSetParticipantOPToValidated: "/verana.pp.v1.MsgSetParticipantOPToValidated";
|
|
54
|
+
readonly MsgTriggerResolver: "/verana.pp.v1.MsgTriggerResolver";
|
|
53
55
|
readonly MsgCancelParticipantOPLastRequest: "/verana.pp.v1.MsgCancelParticipantOPLastRequest";
|
|
54
56
|
readonly MsgCreateOrUpdateParticipantSession: "/verana.pp.v1.MsgCreateOrUpdateParticipantSession";
|
|
55
57
|
readonly MsgSlashParticipantTrustDeposit: "/verana.pp.v1.MsgSlashParticipantTrustDeposit";
|
package/dist/signing.js
CHANGED
|
@@ -42,6 +42,7 @@ exports.veranaTypeUrls = {
|
|
|
42
42
|
MsgStartParticipantOP: "/verana.pp.v1.MsgStartParticipantOP",
|
|
43
43
|
MsgRenewParticipantOP: "/verana.pp.v1.MsgRenewParticipantOP",
|
|
44
44
|
MsgSetParticipantOPToValidated: "/verana.pp.v1.MsgSetParticipantOPToValidated",
|
|
45
|
+
MsgTriggerResolver: "/verana.pp.v1.MsgTriggerResolver",
|
|
45
46
|
MsgCancelParticipantOPLastRequest: "/verana.pp.v1.MsgCancelParticipantOPLastRequest",
|
|
46
47
|
MsgCreateOrUpdateParticipantSession: "/verana.pp.v1.MsgCreateOrUpdateParticipantSession",
|
|
47
48
|
MsgSlashParticipantTrustDeposit: "/verana.pp.v1.MsgSlashParticipantTrustDeposit",
|
|
@@ -75,6 +76,7 @@ exports.veranaRegistryTypes = [
|
|
|
75
76
|
[exports.veranaTypeUrls.MsgStartParticipantOP, tx_7.MsgStartParticipantOP],
|
|
76
77
|
[exports.veranaTypeUrls.MsgRenewParticipantOP, tx_7.MsgRenewParticipantOP],
|
|
77
78
|
[exports.veranaTypeUrls.MsgSetParticipantOPToValidated, tx_7.MsgSetParticipantOPToValidated],
|
|
79
|
+
[exports.veranaTypeUrls.MsgTriggerResolver, tx_7.MsgTriggerResolver],
|
|
78
80
|
[exports.veranaTypeUrls.MsgCancelParticipantOPLastRequest, tx_7.MsgCancelParticipantOPLastRequest],
|
|
79
81
|
[exports.veranaTypeUrls.MsgCreateOrUpdateParticipantSession, tx_7.MsgCreateOrUpdateParticipantSession],
|
|
80
82
|
[exports.veranaTypeUrls.MsgSlashParticipantTrustDeposit, tx_7.MsgSlashParticipantTrustDeposit],
|
|
@@ -120,6 +122,7 @@ function createVeranaAminoTypes() {
|
|
|
120
122
|
[exports.veranaTypeUrls.MsgStartParticipantOP]: pp_1.MsgStartParticipantOPAminoConverter,
|
|
121
123
|
[exports.veranaTypeUrls.MsgRenewParticipantOP]: pp_1.MsgRenewParticipantOPAminoConverter,
|
|
122
124
|
[exports.veranaTypeUrls.MsgSetParticipantOPToValidated]: pp_1.MsgSetParticipantOPToValidatedAminoConverter,
|
|
125
|
+
[exports.veranaTypeUrls.MsgTriggerResolver]: pp_1.MsgTriggerResolverAminoConverter,
|
|
123
126
|
[exports.veranaTypeUrls.MsgCancelParticipantOPLastRequest]: pp_1.MsgCancelParticipantOPLastRequestAminoConverter,
|
|
124
127
|
[exports.veranaTypeUrls.MsgCreateOrUpdateParticipantSession]: pp_1.MsgCreateOrUpdateParticipantSessionAminoConverter,
|
|
125
128
|
[exports.veranaTypeUrls.MsgSlashParticipantTrustDeposit]: pp_1.MsgSlashParticipantTrustDepositAminoConverter,
|
package/package.json
CHANGED