@verana-labs/verana-types 0.10.1-dev.14 → 0.10.1-dev.16
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 +21 -1
- 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/types.d.ts +0 -32
- package/dist/codec/verana/de/v1/types.js +1 -85
- package/dist/codec/verana/pp/v1/tx.d.ts +35 -2
- package/dist/codec/verana/pp/v1/tx.js +125 -1
- package/dist/signing.d.ts +2 -0
- package/dist/signing.js +3 -0
- package/package.json +1 -1
|
@@ -10,3 +10,4 @@ export declare const MsgCreateOrUpdateParticipantSessionAminoConverter: AminoCon
|
|
|
10
10
|
export declare const MsgSlashParticipantTrustDepositAminoConverter: AminoConverter;
|
|
11
11
|
export declare const MsgRepayParticipantSlashedTrustDepositAminoConverter: AminoConverter;
|
|
12
12
|
export declare const MsgSelfCreateParticipantAminoConverter: AminoConverter;
|
|
13
|
+
export declare const MsgTriggerResolverAminoConverter: AminoConverter;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MsgSelfCreateParticipantAminoConverter = exports.MsgRepayParticipantSlashedTrustDepositAminoConverter = exports.MsgSlashParticipantTrustDepositAminoConverter = exports.MsgCreateOrUpdateParticipantSessionAminoConverter = exports.MsgCancelParticipantOPLastRequestAminoConverter = exports.MsgSetParticipantOPToValidatedAminoConverter = exports.MsgRenewParticipantOPAminoConverter = exports.MsgStartParticipantOPAminoConverter = exports.MsgRevokeParticipantAminoConverter = exports.MsgSetParticipantEffectiveUntilAminoConverter = exports.MsgCreateRootParticipantAminoConverter = void 0;
|
|
3
|
+
exports.MsgTriggerResolverAminoConverter = exports.MsgSelfCreateParticipantAminoConverter = exports.MsgRepayParticipantSlashedTrustDepositAminoConverter = exports.MsgSlashParticipantTrustDepositAminoConverter = exports.MsgCreateOrUpdateParticipantSessionAminoConverter = exports.MsgCancelParticipantOPLastRequestAminoConverter = exports.MsgSetParticipantOPToValidatedAminoConverter = exports.MsgRenewParticipantOPAminoConverter = exports.MsgStartParticipantOPAminoConverter = exports.MsgRevokeParticipantAminoConverter = exports.MsgSetParticipantEffectiveUntilAminoConverter = exports.MsgCreateRootParticipantAminoConverter = void 0;
|
|
4
4
|
const tx_1 = require("../codec/verana/pp/v1/tx");
|
|
5
5
|
const types_1 = require("../codec/verana/pp/v1/types");
|
|
6
6
|
const helpers_1 = require("./util/helpers");
|
|
@@ -327,3 +327,23 @@ exports.MsgSelfCreateParticipantAminoConverter = {
|
|
|
327
327
|
});
|
|
328
328
|
},
|
|
329
329
|
};
|
|
330
|
+
exports.MsgTriggerResolverAminoConverter = {
|
|
331
|
+
aminoType: "verana/x/pp/MsgTriggerResolver",
|
|
332
|
+
// [MOD-PP-MSG-15] parameters: corporation, operator, id.
|
|
333
|
+
toAmino: (m) => {
|
|
334
|
+
var _a, _b;
|
|
335
|
+
return (0, helpers_1.clean)({
|
|
336
|
+
corporation: (_a = m.corporation) !== null && _a !== void 0 ? _a : "",
|
|
337
|
+
operator: (_b = m.operator) !== null && _b !== void 0 ? _b : "",
|
|
338
|
+
id: (0, helpers_1.u64ToStr)(m.id),
|
|
339
|
+
});
|
|
340
|
+
},
|
|
341
|
+
fromAmino: (a) => {
|
|
342
|
+
var _a, _b;
|
|
343
|
+
return tx_1.MsgTriggerResolver.fromPartial({
|
|
344
|
+
corporation: (_a = a.corporation) !== null && _a !== void 0 ? _a : "",
|
|
345
|
+
operator: (_b = a.operator) !== null && _b !== void 0 ? _b : "",
|
|
346
|
+
id: (0, helpers_1.strToU64)(a.id) != null ? Number((0, helpers_1.strToU64)(a.id).toString()) : 0,
|
|
347
|
+
});
|
|
348
|
+
},
|
|
349
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _m0 from "protobufjs/minimal";
|
|
2
2
|
import { Params } from "./params";
|
|
3
|
-
import { FeeGrant, OperatorAuthorization,
|
|
3
|
+
import { FeeGrant, OperatorAuthorization, VSOperatorAuthorization } from "./types";
|
|
4
4
|
export declare const protobufPackage = "verana.de.v1";
|
|
5
5
|
/** GenesisState defines the de module's genesis state. */
|
|
6
6
|
export interface GenesisState {
|
|
@@ -12,8 +12,6 @@ export interface GenesisState {
|
|
|
12
12
|
feeGrants: FeeGrant[];
|
|
13
13
|
/** vs_operator_authorizations is a list of all VSOperatorAuthorization objects */
|
|
14
14
|
vsOperatorAuthorizations: VSOperatorAuthorization[];
|
|
15
|
-
/** operator_authorization_usages is a list of all OperatorAuthorizationUsage objects */
|
|
16
|
-
operatorAuthorizationUsages: OperatorAuthorizationUsage[];
|
|
17
15
|
}
|
|
18
16
|
export declare const GenesisState: {
|
|
19
17
|
encode(message: GenesisState, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -45,13 +45,7 @@ const params_1 = require("./params");
|
|
|
45
45
|
const types_1 = require("./types");
|
|
46
46
|
exports.protobufPackage = "verana.de.v1";
|
|
47
47
|
function createBaseGenesisState() {
|
|
48
|
-
return {
|
|
49
|
-
params: undefined,
|
|
50
|
-
operatorAuthorizations: [],
|
|
51
|
-
feeGrants: [],
|
|
52
|
-
vsOperatorAuthorizations: [],
|
|
53
|
-
operatorAuthorizationUsages: [],
|
|
54
|
-
};
|
|
48
|
+
return { params: undefined, operatorAuthorizations: [], feeGrants: [], vsOperatorAuthorizations: [] };
|
|
55
49
|
}
|
|
56
50
|
exports.GenesisState = {
|
|
57
51
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -67,9 +61,6 @@ exports.GenesisState = {
|
|
|
67
61
|
for (const v of message.vsOperatorAuthorizations) {
|
|
68
62
|
types_1.VSOperatorAuthorization.encode(v, writer.uint32(34).fork()).ldelim();
|
|
69
63
|
}
|
|
70
|
-
for (const v of message.operatorAuthorizationUsages) {
|
|
71
|
-
types_1.OperatorAuthorizationUsage.encode(v, writer.uint32(42).fork()).ldelim();
|
|
72
|
-
}
|
|
73
64
|
return writer;
|
|
74
65
|
},
|
|
75
66
|
decode(input, length) {
|
|
@@ -103,12 +94,6 @@ exports.GenesisState = {
|
|
|
103
94
|
}
|
|
104
95
|
message.vsOperatorAuthorizations.push(types_1.VSOperatorAuthorization.decode(reader, reader.uint32()));
|
|
105
96
|
continue;
|
|
106
|
-
case 5:
|
|
107
|
-
if (tag !== 42) {
|
|
108
|
-
break;
|
|
109
|
-
}
|
|
110
|
-
message.operatorAuthorizationUsages.push(types_1.OperatorAuthorizationUsage.decode(reader, reader.uint32()));
|
|
111
|
-
continue;
|
|
112
97
|
}
|
|
113
98
|
if ((tag & 7) === 4 || tag === 0) {
|
|
114
99
|
break;
|
|
@@ -129,13 +114,10 @@ exports.GenesisState = {
|
|
|
129
114
|
vsOperatorAuthorizations: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.vsOperatorAuthorizations)
|
|
130
115
|
? object.vsOperatorAuthorizations.map((e) => types_1.VSOperatorAuthorization.fromJSON(e))
|
|
131
116
|
: [],
|
|
132
|
-
operatorAuthorizationUsages: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.operatorAuthorizationUsages)
|
|
133
|
-
? object.operatorAuthorizationUsages.map((e) => types_1.OperatorAuthorizationUsage.fromJSON(e))
|
|
134
|
-
: [],
|
|
135
117
|
};
|
|
136
118
|
},
|
|
137
119
|
toJSON(message) {
|
|
138
|
-
var _a, _b, _c
|
|
120
|
+
var _a, _b, _c;
|
|
139
121
|
const obj = {};
|
|
140
122
|
if (message.params !== undefined) {
|
|
141
123
|
obj.params = params_1.Params.toJSON(message.params);
|
|
@@ -149,16 +131,13 @@ exports.GenesisState = {
|
|
|
149
131
|
if ((_c = message.vsOperatorAuthorizations) === null || _c === void 0 ? void 0 : _c.length) {
|
|
150
132
|
obj.vsOperatorAuthorizations = message.vsOperatorAuthorizations.map((e) => types_1.VSOperatorAuthorization.toJSON(e));
|
|
151
133
|
}
|
|
152
|
-
if ((_d = message.operatorAuthorizationUsages) === null || _d === void 0 ? void 0 : _d.length) {
|
|
153
|
-
obj.operatorAuthorizationUsages = message.operatorAuthorizationUsages.map((e) => types_1.OperatorAuthorizationUsage.toJSON(e));
|
|
154
|
-
}
|
|
155
134
|
return obj;
|
|
156
135
|
},
|
|
157
136
|
create(base) {
|
|
158
137
|
return exports.GenesisState.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
159
138
|
},
|
|
160
139
|
fromPartial(object) {
|
|
161
|
-
var _a, _b, _c
|
|
140
|
+
var _a, _b, _c;
|
|
162
141
|
const message = createBaseGenesisState();
|
|
163
142
|
message.params = (object.params !== undefined && object.params !== null)
|
|
164
143
|
? params_1.Params.fromPartial(object.params)
|
|
@@ -168,8 +147,6 @@ exports.GenesisState = {
|
|
|
168
147
|
message.feeGrants = ((_b = object.feeGrants) === null || _b === void 0 ? void 0 : _b.map((e) => types_1.FeeGrant.fromPartial(e))) || [];
|
|
169
148
|
message.vsOperatorAuthorizations =
|
|
170
149
|
((_c = object.vsOperatorAuthorizations) === null || _c === void 0 ? void 0 : _c.map((e) => types_1.VSOperatorAuthorization.fromPartial(e))) || [];
|
|
171
|
-
message.operatorAuthorizationUsages =
|
|
172
|
-
((_d = object.operatorAuthorizationUsages) === null || _d === void 0 ? void 0 : _d.map((e) => types_1.OperatorAuthorizationUsage.fromPartial(e))) || [];
|
|
173
150
|
return message;
|
|
174
151
|
},
|
|
175
152
|
};
|
|
@@ -47,30 +47,6 @@ export interface OperatorAuthorization {
|
|
|
47
47
|
*/
|
|
48
48
|
period: Duration | undefined;
|
|
49
49
|
}
|
|
50
|
-
/**
|
|
51
|
-
* OperatorAuthorizationUsage tracks per-authorization spend consumption so spec
|
|
52
|
-
* [AUTHZ-CHECK-1] can enforce the spend_limit / period-reset invariant. Keyed by
|
|
53
|
-
* the parent OperatorAuthorization id.
|
|
54
|
-
*
|
|
55
|
-
* TODO(spec v4): the spec folds the runtime balance into OperatorAuthorization
|
|
56
|
-
* (remaining_spend / remaining_fee_spend). This separate ledger is retained to
|
|
57
|
-
* keep AUTHZ-CHECK-1 reset semantics unchanged (out of scope for the v4-rc2 VSOA
|
|
58
|
-
* rebase); unify when AUTHZ-CHECK-1 is aligned to the spec.
|
|
59
|
-
*/
|
|
60
|
-
export interface OperatorAuthorizationUsage {
|
|
61
|
-
/** operator_authorization_id is the id of the parent OperatorAuthorization. */
|
|
62
|
-
operatorAuthorizationId: number;
|
|
63
|
-
/**
|
|
64
|
-
* remaining is the balance still available inside the current period.
|
|
65
|
-
* Decremented on each successful execution that consumed funds.
|
|
66
|
-
*/
|
|
67
|
-
remaining: Coin[];
|
|
68
|
-
/**
|
|
69
|
-
* last_reset is the timestamp at which `remaining` was last refilled to the
|
|
70
|
-
* parent authorization's spend_limit.
|
|
71
|
-
*/
|
|
72
|
-
lastReset: Date | undefined;
|
|
73
|
-
}
|
|
74
50
|
/**
|
|
75
51
|
* FeeGrant is the chain-level fee allowance, keyed by the composite
|
|
76
52
|
* (grantor_corporation_id, grantee).
|
|
@@ -178,14 +154,6 @@ export declare const OperatorAuthorization: {
|
|
|
178
154
|
create<I extends Exact<DeepPartial<OperatorAuthorization>, I>>(base?: I): OperatorAuthorization;
|
|
179
155
|
fromPartial<I extends Exact<DeepPartial<OperatorAuthorization>, I>>(object: I): OperatorAuthorization;
|
|
180
156
|
};
|
|
181
|
-
export declare const OperatorAuthorizationUsage: {
|
|
182
|
-
encode(message: OperatorAuthorizationUsage, writer?: _m0.Writer): _m0.Writer;
|
|
183
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): OperatorAuthorizationUsage;
|
|
184
|
-
fromJSON(object: any): OperatorAuthorizationUsage;
|
|
185
|
-
toJSON(message: OperatorAuthorizationUsage): unknown;
|
|
186
|
-
create<I extends Exact<DeepPartial<OperatorAuthorizationUsage>, I>>(base?: I): OperatorAuthorizationUsage;
|
|
187
|
-
fromPartial<I extends Exact<DeepPartial<OperatorAuthorizationUsage>, I>>(object: I): OperatorAuthorizationUsage;
|
|
188
|
-
};
|
|
189
157
|
export declare const FeeGrant: {
|
|
190
158
|
encode(message: FeeGrant, writer?: _m0.Writer): _m0.Writer;
|
|
191
159
|
decode(input: _m0.Reader | Uint8Array, length?: number): FeeGrant;
|
|
@@ -38,7 +38,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
38
38
|
};
|
|
39
39
|
})();
|
|
40
40
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41
|
-
exports.VSOperatorAuthorization = exports.ParticipantAuthorizationRecord = exports.FeeGrant = exports.
|
|
41
|
+
exports.VSOperatorAuthorization = exports.ParticipantAuthorizationRecord = exports.FeeGrant = exports.OperatorAuthorization = 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");
|
|
@@ -247,90 +247,6 @@ exports.OperatorAuthorization = {
|
|
|
247
247
|
return message;
|
|
248
248
|
},
|
|
249
249
|
};
|
|
250
|
-
function createBaseOperatorAuthorizationUsage() {
|
|
251
|
-
return { operatorAuthorizationId: 0, remaining: [], lastReset: undefined };
|
|
252
|
-
}
|
|
253
|
-
exports.OperatorAuthorizationUsage = {
|
|
254
|
-
encode(message, writer = _m0.Writer.create()) {
|
|
255
|
-
if (message.operatorAuthorizationId !== 0) {
|
|
256
|
-
writer.uint32(8).uint64(message.operatorAuthorizationId);
|
|
257
|
-
}
|
|
258
|
-
for (const v of message.remaining) {
|
|
259
|
-
coin_1.Coin.encode(v, writer.uint32(18).fork()).ldelim();
|
|
260
|
-
}
|
|
261
|
-
if (message.lastReset !== undefined) {
|
|
262
|
-
timestamp_1.Timestamp.encode(toTimestamp(message.lastReset), writer.uint32(26).fork()).ldelim();
|
|
263
|
-
}
|
|
264
|
-
return writer;
|
|
265
|
-
},
|
|
266
|
-
decode(input, length) {
|
|
267
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
268
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
269
|
-
const message = createBaseOperatorAuthorizationUsage();
|
|
270
|
-
while (reader.pos < end) {
|
|
271
|
-
const tag = reader.uint32();
|
|
272
|
-
switch (tag >>> 3) {
|
|
273
|
-
case 1:
|
|
274
|
-
if (tag !== 8) {
|
|
275
|
-
break;
|
|
276
|
-
}
|
|
277
|
-
message.operatorAuthorizationId = longToNumber(reader.uint64());
|
|
278
|
-
continue;
|
|
279
|
-
case 2:
|
|
280
|
-
if (tag !== 18) {
|
|
281
|
-
break;
|
|
282
|
-
}
|
|
283
|
-
message.remaining.push(coin_1.Coin.decode(reader, reader.uint32()));
|
|
284
|
-
continue;
|
|
285
|
-
case 3:
|
|
286
|
-
if (tag !== 26) {
|
|
287
|
-
break;
|
|
288
|
-
}
|
|
289
|
-
message.lastReset = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
290
|
-
continue;
|
|
291
|
-
}
|
|
292
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
293
|
-
break;
|
|
294
|
-
}
|
|
295
|
-
reader.skipType(tag & 7);
|
|
296
|
-
}
|
|
297
|
-
return message;
|
|
298
|
-
},
|
|
299
|
-
fromJSON(object) {
|
|
300
|
-
return {
|
|
301
|
-
operatorAuthorizationId: isSet(object.operatorAuthorizationId)
|
|
302
|
-
? globalThis.Number(object.operatorAuthorizationId)
|
|
303
|
-
: 0,
|
|
304
|
-
remaining: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.remaining) ? object.remaining.map((e) => coin_1.Coin.fromJSON(e)) : [],
|
|
305
|
-
lastReset: isSet(object.lastReset) ? fromJsonTimestamp(object.lastReset) : undefined,
|
|
306
|
-
};
|
|
307
|
-
},
|
|
308
|
-
toJSON(message) {
|
|
309
|
-
var _a;
|
|
310
|
-
const obj = {};
|
|
311
|
-
if (message.operatorAuthorizationId !== 0) {
|
|
312
|
-
obj.operatorAuthorizationId = Math.round(message.operatorAuthorizationId);
|
|
313
|
-
}
|
|
314
|
-
if ((_a = message.remaining) === null || _a === void 0 ? void 0 : _a.length) {
|
|
315
|
-
obj.remaining = message.remaining.map((e) => coin_1.Coin.toJSON(e));
|
|
316
|
-
}
|
|
317
|
-
if (message.lastReset !== undefined) {
|
|
318
|
-
obj.lastReset = message.lastReset.toISOString();
|
|
319
|
-
}
|
|
320
|
-
return obj;
|
|
321
|
-
},
|
|
322
|
-
create(base) {
|
|
323
|
-
return exports.OperatorAuthorizationUsage.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
324
|
-
},
|
|
325
|
-
fromPartial(object) {
|
|
326
|
-
var _a, _b, _c;
|
|
327
|
-
const message = createBaseOperatorAuthorizationUsage();
|
|
328
|
-
message.operatorAuthorizationId = (_a = object.operatorAuthorizationId) !== null && _a !== void 0 ? _a : 0;
|
|
329
|
-
message.remaining = ((_b = object.remaining) === null || _b === void 0 ? void 0 : _b.map((e) => coin_1.Coin.fromPartial(e))) || [];
|
|
330
|
-
message.lastReset = (_c = object.lastReset) !== null && _c !== void 0 ? _c : undefined;
|
|
331
|
-
return message;
|
|
332
|
-
},
|
|
333
|
-
};
|
|
334
250
|
function createBaseFeeGrant() {
|
|
335
251
|
return {
|
|
336
252
|
grantorCorporationId: 0,
|
|
@@ -148,9 +148,9 @@ export interface MsgCreateOrUpdateParticipantSession {
|
|
|
148
148
|
issuerParticipantId: number;
|
|
149
149
|
/** optional: verifier participant id */
|
|
150
150
|
verifierParticipantId: number;
|
|
151
|
-
/**
|
|
151
|
+
/** optional: agent credential issuer participant id (set only by VUAs; MUST NOT be set when peer is a VS) */
|
|
152
152
|
agentParticipantId: number;
|
|
153
|
-
/**
|
|
153
|
+
/** optional: wallet credential issuer participant id (set only by VUAs; MUST NOT be set when peer is a VS) */
|
|
154
154
|
walletAgentParticipantId: number;
|
|
155
155
|
/** optional: digest derived from an issued or verified credential */
|
|
156
156
|
digest: string;
|
|
@@ -199,6 +199,20 @@ export interface MsgSelfCreateParticipant {
|
|
|
199
199
|
export interface MsgSelfCreateParticipantResponse {
|
|
200
200
|
id: number;
|
|
201
201
|
}
|
|
202
|
+
/** [MOD-PP-MSG-15] Trigger Resolver. Event-only; does not modify VPR state. */
|
|
203
|
+
export interface MsgTriggerResolver {
|
|
204
|
+
/**
|
|
205
|
+
* corporation is the policy_address of the corporation on whose behalf this
|
|
206
|
+
* message runs.
|
|
207
|
+
*/
|
|
208
|
+
corporation: string;
|
|
209
|
+
/** operator is the account authorized by the corporation to run this Msg. */
|
|
210
|
+
operator: string;
|
|
211
|
+
/** id of the Participant entry for which a trust resolution must be triggered. */
|
|
212
|
+
id: number;
|
|
213
|
+
}
|
|
214
|
+
export interface MsgTriggerResolverResponse {
|
|
215
|
+
}
|
|
202
216
|
export declare const MsgUpdateParams: {
|
|
203
217
|
encode(message: MsgUpdateParams, writer?: _m0.Writer): _m0.Writer;
|
|
204
218
|
decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateParams;
|
|
@@ -391,6 +405,22 @@ export declare const MsgSelfCreateParticipantResponse: {
|
|
|
391
405
|
create<I extends Exact<DeepPartial<MsgSelfCreateParticipantResponse>, I>>(base?: I): MsgSelfCreateParticipantResponse;
|
|
392
406
|
fromPartial<I extends Exact<DeepPartial<MsgSelfCreateParticipantResponse>, I>>(object: I): MsgSelfCreateParticipantResponse;
|
|
393
407
|
};
|
|
408
|
+
export declare const MsgTriggerResolver: {
|
|
409
|
+
encode(message: MsgTriggerResolver, writer?: _m0.Writer): _m0.Writer;
|
|
410
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgTriggerResolver;
|
|
411
|
+
fromJSON(object: any): MsgTriggerResolver;
|
|
412
|
+
toJSON(message: MsgTriggerResolver): unknown;
|
|
413
|
+
create<I extends Exact<DeepPartial<MsgTriggerResolver>, I>>(base?: I): MsgTriggerResolver;
|
|
414
|
+
fromPartial<I extends Exact<DeepPartial<MsgTriggerResolver>, I>>(object: I): MsgTriggerResolver;
|
|
415
|
+
};
|
|
416
|
+
export declare const MsgTriggerResolverResponse: {
|
|
417
|
+
encode(_: MsgTriggerResolverResponse, writer?: _m0.Writer): _m0.Writer;
|
|
418
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgTriggerResolverResponse;
|
|
419
|
+
fromJSON(_: any): MsgTriggerResolverResponse;
|
|
420
|
+
toJSON(_: MsgTriggerResolverResponse): unknown;
|
|
421
|
+
create<I extends Exact<DeepPartial<MsgTriggerResolverResponse>, I>>(base?: I): MsgTriggerResolverResponse;
|
|
422
|
+
fromPartial<I extends Exact<DeepPartial<MsgTriggerResolverResponse>, I>>(_: I): MsgTriggerResolverResponse;
|
|
423
|
+
};
|
|
394
424
|
/** Msg defines the Msg service. */
|
|
395
425
|
export interface Msg {
|
|
396
426
|
/**
|
|
@@ -410,6 +440,8 @@ export interface Msg {
|
|
|
410
440
|
RepayParticipantSlashedTrustDeposit(request: MsgRepayParticipantSlashedTrustDeposit): Promise<MsgRepayParticipantSlashedTrustDepositResponse>;
|
|
411
441
|
/** [MOD-PP-MSG-14] Self Create Participant (OPEN mode) */
|
|
412
442
|
SelfCreateParticipant(request: MsgSelfCreateParticipant): Promise<MsgSelfCreateParticipantResponse>;
|
|
443
|
+
/** [MOD-PP-MSG-15] Trigger Resolver (event-only) */
|
|
444
|
+
TriggerResolver(request: MsgTriggerResolver): Promise<MsgTriggerResolverResponse>;
|
|
413
445
|
}
|
|
414
446
|
export declare const MsgServiceName = "verana.pp.v1.Msg";
|
|
415
447
|
export declare class MsgClientImpl implements Msg {
|
|
@@ -430,6 +462,7 @@ export declare class MsgClientImpl implements Msg {
|
|
|
430
462
|
SlashParticipantTrustDeposit(request: MsgSlashParticipantTrustDeposit): Promise<MsgSlashParticipantTrustDepositResponse>;
|
|
431
463
|
RepayParticipantSlashedTrustDeposit(request: MsgRepayParticipantSlashedTrustDeposit): Promise<MsgRepayParticipantSlashedTrustDepositResponse>;
|
|
432
464
|
SelfCreateParticipant(request: MsgSelfCreateParticipant): Promise<MsgSelfCreateParticipantResponse>;
|
|
465
|
+
TriggerResolver(request: MsgTriggerResolver): Promise<MsgTriggerResolverResponse>;
|
|
433
466
|
}
|
|
434
467
|
interface Rpc {
|
|
435
468
|
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
|
|
@@ -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");
|
|
@@ -2345,6 +2345,124 @@ exports.MsgSelfCreateParticipantResponse = {
|
|
|
2345
2345
|
return message;
|
|
2346
2346
|
},
|
|
2347
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
|
+
};
|
|
2348
2466
|
exports.MsgServiceName = "verana.pp.v1.Msg";
|
|
2349
2467
|
class MsgClientImpl {
|
|
2350
2468
|
constructor(rpc, opts) {
|
|
@@ -2362,6 +2480,7 @@ class MsgClientImpl {
|
|
|
2362
2480
|
this.SlashParticipantTrustDeposit = this.SlashParticipantTrustDeposit.bind(this);
|
|
2363
2481
|
this.RepayParticipantSlashedTrustDeposit = this.RepayParticipantSlashedTrustDeposit.bind(this);
|
|
2364
2482
|
this.SelfCreateParticipant = this.SelfCreateParticipant.bind(this);
|
|
2483
|
+
this.TriggerResolver = this.TriggerResolver.bind(this);
|
|
2365
2484
|
}
|
|
2366
2485
|
UpdateParams(request) {
|
|
2367
2486
|
const data = exports.MsgUpdateParams.encode(request).finish();
|
|
@@ -2423,6 +2542,11 @@ class MsgClientImpl {
|
|
|
2423
2542
|
const promise = this.rpc.request(this.service, "SelfCreateParticipant", data);
|
|
2424
2543
|
return promise.then((data) => exports.MsgSelfCreateParticipantResponse.decode(_m0.Reader.create(data)));
|
|
2425
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
|
+
}
|
|
2426
2550
|
}
|
|
2427
2551
|
exports.MsgClientImpl = MsgClientImpl;
|
|
2428
2552
|
function toTimestamp(date) {
|
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