@verana-labs/verana-types 0.10.1-dev.13 → 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/pp.js +42 -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 +124 -34
- package/dist/codec/verana/de/v1/types.js +361 -109
- package/dist/codec/verana/pp/v1/tx.d.ts +17 -7
- package/dist/codec/verana/pp/v1/tx.js +157 -53
- package/dist/codec/verana/pp/v1/types.d.ts +5 -8
- package/dist/codec/verana/pp/v1/types.js +2 -93
- package/package.json +1 -1
|
@@ -6,10 +6,9 @@ const types_1 = require("../codec/verana/pp/v1/types");
|
|
|
6
6
|
const helpers_1 = require("./util/helpers");
|
|
7
7
|
exports.MsgCreateRootParticipantAminoConverter = {
|
|
8
8
|
aminoType: "verana/x/pp/MsgCreateRootParticipant",
|
|
9
|
-
// [MOD-
|
|
10
|
-
// vs_operator is not set on root permissions.
|
|
9
|
+
// [MOD-PP-MSG-7-3] spec v4 draft 13: perm.role is hardcoded to ECOSYSTEM.
|
|
11
10
|
toAmino: (m) => {
|
|
12
|
-
var _a, _b, _c;
|
|
11
|
+
var _a, _b, _c, _d, _e, _f;
|
|
13
12
|
return (0, helpers_1.clean)({
|
|
14
13
|
corporation: (_a = m.corporation) !== null && _a !== void 0 ? _a : "",
|
|
15
14
|
operator: (_b = m.operator) !== null && _b !== void 0 ? _b : "",
|
|
@@ -20,10 +19,19 @@ exports.MsgCreateRootParticipantAminoConverter = {
|
|
|
20
19
|
validation_fees: (0, helpers_1.u64ToStr)(m.validationFees),
|
|
21
20
|
issuance_fees: (0, helpers_1.u64ToStr)(m.issuanceFees),
|
|
22
21
|
verification_fees: (0, helpers_1.u64ToStr)(m.verificationFees),
|
|
22
|
+
// VSOA params (proto fields 10-15). The chain's aminojson encodes empty
|
|
23
|
+
// dont_omitempty Coin arrays as `null` (NOT []) and omits empty plain
|
|
24
|
+
// repeated/scalar fields. The sign bytes must match exactly.
|
|
25
|
+
vs_operator: m.vsOperator || undefined,
|
|
26
|
+
vs_operator_authz_msg_types: ((_d = m.vsOperatorAuthzMsgTypes) === null || _d === void 0 ? void 0 : _d.length) ? m.vsOperatorAuthzMsgTypes : undefined,
|
|
27
|
+
vs_operator_authz_spend_limit: ((_e = m.vsOperatorAuthzSpendLimit) === null || _e === void 0 ? void 0 : _e.length) ? m.vsOperatorAuthzSpendLimit : null,
|
|
28
|
+
vs_operator_authz_with_feegrant: m.vsOperatorAuthzWithFeegrant || undefined,
|
|
29
|
+
vs_operator_authz_fee_spend_limit: ((_f = m.vsOperatorAuthzFeeSpendLimit) === null || _f === void 0 ? void 0 : _f.length) ? m.vsOperatorAuthzFeeSpendLimit : null,
|
|
30
|
+
vs_operator_authz_period: (0, helpers_1.durationToAmino)(m.vsOperatorAuthzPeriod),
|
|
23
31
|
});
|
|
24
32
|
},
|
|
25
33
|
fromAmino: (a) => {
|
|
26
|
-
var _a, _b, _c;
|
|
34
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
27
35
|
return tx_1.MsgCreateRootParticipant.fromPartial({
|
|
28
36
|
corporation: (_a = a.corporation) !== null && _a !== void 0 ? _a : "",
|
|
29
37
|
operator: (_b = a.operator) !== null && _b !== void 0 ? _b : "",
|
|
@@ -34,6 +42,12 @@ exports.MsgCreateRootParticipantAminoConverter = {
|
|
|
34
42
|
validationFees: (0, helpers_1.strToU64)(a.validation_fees) != null ? Number((0, helpers_1.strToU64)(a.validation_fees).toString()) : 0,
|
|
35
43
|
issuanceFees: (0, helpers_1.strToU64)(a.issuance_fees) != null ? Number((0, helpers_1.strToU64)(a.issuance_fees).toString()) : 0,
|
|
36
44
|
verificationFees: (0, helpers_1.strToU64)(a.verification_fees) != null ? Number((0, helpers_1.strToU64)(a.verification_fees).toString()) : 0,
|
|
45
|
+
vsOperator: (_d = a.vs_operator) !== null && _d !== void 0 ? _d : "",
|
|
46
|
+
vsOperatorAuthzMsgTypes: (_e = a.vs_operator_authz_msg_types) !== null && _e !== void 0 ? _e : [],
|
|
47
|
+
vsOperatorAuthzSpendLimit: (_f = a.vs_operator_authz_spend_limit) !== null && _f !== void 0 ? _f : [],
|
|
48
|
+
vsOperatorAuthzWithFeegrant: (_g = a.vs_operator_authz_with_feegrant) !== null && _g !== void 0 ? _g : false,
|
|
49
|
+
vsOperatorAuthzFeeSpendLimit: (_h = a.vs_operator_authz_fee_spend_limit) !== null && _h !== void 0 ? _h : [],
|
|
50
|
+
vsOperatorAuthzPeriod: (0, helpers_1.aminoToDuration)(a.vs_operator_authz_period),
|
|
37
51
|
});
|
|
38
52
|
},
|
|
39
53
|
};
|
|
@@ -80,7 +94,7 @@ exports.MsgRevokeParticipantAminoConverter = {
|
|
|
80
94
|
exports.MsgStartParticipantOPAminoConverter = {
|
|
81
95
|
aminoType: "verana/x/pp/MsgStartParticipantOP",
|
|
82
96
|
toAmino: (m) => {
|
|
83
|
-
var _a, _b, _c, _d, _e, _f;
|
|
97
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
84
98
|
return (0, helpers_1.clean)({
|
|
85
99
|
corporation: (_a = m.corporation) !== null && _a !== void 0 ? _a : "",
|
|
86
100
|
operator: (_b = m.operator) !== null && _b !== void 0 ? _b : "",
|
|
@@ -91,11 +105,11 @@ exports.MsgStartParticipantOPAminoConverter = {
|
|
|
91
105
|
issuance_fees: m.issuanceFees ? { value: (0, helpers_1.u64ToStr)(m.issuanceFees.value) } : undefined,
|
|
92
106
|
verification_fees: m.verificationFees ? { value: (0, helpers_1.u64ToStr)(m.verificationFees.value) } : undefined,
|
|
93
107
|
vs_operator: m.vsOperator || undefined,
|
|
94
|
-
|
|
95
|
-
vs_operator_authz_spend_limit: (
|
|
108
|
+
vs_operator_authz_msg_types: ((_e = m.vsOperatorAuthzMsgTypes) === null || _e === void 0 ? void 0 : _e.length) ? m.vsOperatorAuthzMsgTypes : undefined,
|
|
109
|
+
vs_operator_authz_spend_limit: ((_f = m.vsOperatorAuthzSpendLimit) === null || _f === void 0 ? void 0 : _f.length) ? m.vsOperatorAuthzSpendLimit : null,
|
|
96
110
|
vs_operator_authz_with_feegrant: m.vsOperatorAuthzWithFeegrant || undefined,
|
|
97
|
-
vs_operator_authz_fee_spend_limit: (
|
|
98
|
-
|
|
111
|
+
vs_operator_authz_fee_spend_limit: ((_g = m.vsOperatorAuthzFeeSpendLimit) === null || _g === void 0 ? void 0 : _g.length) ? m.vsOperatorAuthzFeeSpendLimit : null,
|
|
112
|
+
vs_operator_authz_period: (0, helpers_1.durationToAmino)(m.vsOperatorAuthzPeriod),
|
|
99
113
|
});
|
|
100
114
|
},
|
|
101
115
|
fromAmino: (a) => {
|
|
@@ -110,17 +124,17 @@ exports.MsgStartParticipantOPAminoConverter = {
|
|
|
110
124
|
issuanceFees: a.issuance_fees ? { value: Number((_f = a.issuance_fees.value) !== null && _f !== void 0 ? _f : a.issuance_fees) } : undefined,
|
|
111
125
|
verificationFees: a.verification_fees ? { value: Number((_g = a.verification_fees.value) !== null && _g !== void 0 ? _g : a.verification_fees) } : undefined,
|
|
112
126
|
vsOperator: (_h = a.vs_operator) !== null && _h !== void 0 ? _h : "",
|
|
113
|
-
|
|
127
|
+
vsOperatorAuthzMsgTypes: (_j = a.vs_operator_authz_msg_types) !== null && _j !== void 0 ? _j : [],
|
|
114
128
|
vsOperatorAuthzSpendLimit: (_k = a.vs_operator_authz_spend_limit) !== null && _k !== void 0 ? _k : [],
|
|
115
129
|
vsOperatorAuthzWithFeegrant: (_l = a.vs_operator_authz_with_feegrant) !== null && _l !== void 0 ? _l : false,
|
|
116
130
|
vsOperatorAuthzFeeSpendLimit: (_m = a.vs_operator_authz_fee_spend_limit) !== null && _m !== void 0 ? _m : [],
|
|
117
|
-
|
|
131
|
+
vsOperatorAuthzPeriod: (0, helpers_1.aminoToDuration)(a.vs_operator_authz_period),
|
|
118
132
|
});
|
|
119
133
|
},
|
|
120
134
|
};
|
|
121
135
|
exports.MsgRenewParticipantOPAminoConverter = {
|
|
122
136
|
aminoType: "verana/x/pp/MsgRenewParticipantOP",
|
|
123
|
-
// [MOD-
|
|
137
|
+
// [MOD-PP-MSG-2-1] spec v4 draft 13 parameters: corporation, operator, id.
|
|
124
138
|
toAmino: (m) => {
|
|
125
139
|
var _a, _b;
|
|
126
140
|
return (0, helpers_1.clean)({
|
|
@@ -151,8 +165,8 @@ exports.MsgSetParticipantOPToValidatedAminoConverter = {
|
|
|
151
165
|
issuance_fees: (0, helpers_1.u64ToStr)(m.issuanceFees),
|
|
152
166
|
verification_fees: (0, helpers_1.u64ToStr)(m.verificationFees),
|
|
153
167
|
op_summary_digest: (_c = m.opSummaryDigest) !== null && _c !== void 0 ? _c : "",
|
|
154
|
-
issuance_fee_discount: (0, helpers_1.
|
|
155
|
-
verification_fee_discount: (0, helpers_1.
|
|
168
|
+
issuance_fee_discount: (0, helpers_1.u64ToStrIfNonZero)(m.issuanceFeeDiscount),
|
|
169
|
+
verification_fee_discount: (0, helpers_1.u64ToStrIfNonZero)(m.verificationFeeDiscount),
|
|
156
170
|
});
|
|
157
171
|
},
|
|
158
172
|
fromAmino: (a) => {
|
|
@@ -197,16 +211,16 @@ exports.MsgCancelParticipantOPLastRequestAminoConverter = {
|
|
|
197
211
|
exports.MsgCreateOrUpdateParticipantSessionAminoConverter = {
|
|
198
212
|
aminoType: "verana/x/pp/MsgCreateOrUpdatePartSess",
|
|
199
213
|
toAmino: (m) => {
|
|
200
|
-
var _a, _b, _c
|
|
214
|
+
var _a, _b, _c;
|
|
201
215
|
return (0, helpers_1.clean)({
|
|
202
216
|
corporation: (_a = m.corporation) !== null && _a !== void 0 ? _a : "",
|
|
203
217
|
operator: (_b = m.operator) !== null && _b !== void 0 ? _b : "",
|
|
204
218
|
id: (_c = m.id) !== null && _c !== void 0 ? _c : "",
|
|
205
|
-
issuer_participant_id: (0, helpers_1.
|
|
206
|
-
verifier_participant_id: (0, helpers_1.
|
|
219
|
+
issuer_participant_id: (0, helpers_1.u64ToStrIfNonZero)(m.issuerParticipantId),
|
|
220
|
+
verifier_participant_id: (0, helpers_1.u64ToStrIfNonZero)(m.verifierParticipantId),
|
|
207
221
|
agent_participant_id: (0, helpers_1.u64ToStr)(m.agentParticipantId),
|
|
208
222
|
wallet_agent_participant_id: (0, helpers_1.u64ToStr)(m.walletAgentParticipantId),
|
|
209
|
-
digest:
|
|
223
|
+
digest: m.digest || undefined,
|
|
210
224
|
});
|
|
211
225
|
},
|
|
212
226
|
fromAmino: (a) => {
|
|
@@ -227,7 +241,7 @@ exports.MsgCreateOrUpdateParticipantSessionAminoConverter = {
|
|
|
227
241
|
};
|
|
228
242
|
exports.MsgSlashParticipantTrustDepositAminoConverter = {
|
|
229
243
|
aminoType: "verana/x/pp/MsgSlashParticipantTD",
|
|
230
|
-
// [MOD-
|
|
244
|
+
// [MOD-PP-MSG-12-1] spec v4 draft 13 adds mandatory reason.
|
|
231
245
|
toAmino: (m) => {
|
|
232
246
|
var _a, _b, _c;
|
|
233
247
|
return (0, helpers_1.clean)({
|
|
@@ -257,6 +271,7 @@ exports.MsgRepayParticipantSlashedTrustDepositAminoConverter = {
|
|
|
257
271
|
corporation: (_a = m.corporation) !== null && _a !== void 0 ? _a : "",
|
|
258
272
|
operator: (_b = m.operator) !== null && _b !== void 0 ? _b : "",
|
|
259
273
|
id: (0, helpers_1.u64ToStr)(m.id),
|
|
274
|
+
amount: (0, helpers_1.u64ToStrIfNonZero)(m.amount),
|
|
260
275
|
});
|
|
261
276
|
},
|
|
262
277
|
fromAmino: (a) => {
|
|
@@ -265,13 +280,14 @@ exports.MsgRepayParticipantSlashedTrustDepositAminoConverter = {
|
|
|
265
280
|
corporation: (_a = a.corporation) !== null && _a !== void 0 ? _a : "",
|
|
266
281
|
operator: (_b = a.operator) !== null && _b !== void 0 ? _b : "",
|
|
267
282
|
id: (0, helpers_1.strToU64)(a.id) != null ? Number((0, helpers_1.strToU64)(a.id).toString()) : 0,
|
|
283
|
+
amount: (0, helpers_1.strToU64)(a.amount) != null ? Number((0, helpers_1.strToU64)(a.amount).toString()) : 0,
|
|
268
284
|
});
|
|
269
285
|
},
|
|
270
286
|
};
|
|
271
287
|
exports.MsgSelfCreateParticipantAminoConverter = {
|
|
272
288
|
aminoType: "verana/x/pp/MsgSelfCreateParticipant",
|
|
273
289
|
toAmino: (m) => {
|
|
274
|
-
var _a, _b, _c, _d, _e, _f;
|
|
290
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
275
291
|
return (0, helpers_1.clean)({
|
|
276
292
|
corporation: (_a = m.corporation) !== null && _a !== void 0 ? _a : "",
|
|
277
293
|
operator: (_b = m.operator) !== null && _b !== void 0 ? _b : "",
|
|
@@ -283,11 +299,11 @@ exports.MsgSelfCreateParticipantAminoConverter = {
|
|
|
283
299
|
verification_fees: (0, helpers_1.u64ToStrIfNonZero)(m.verificationFees),
|
|
284
300
|
validation_fees: (0, helpers_1.u64ToStrIfNonZero)(m.validationFees),
|
|
285
301
|
vs_operator: m.vsOperator || undefined,
|
|
286
|
-
|
|
287
|
-
vs_operator_authz_spend_limit: (
|
|
302
|
+
vs_operator_authz_msg_types: ((_e = m.vsOperatorAuthzMsgTypes) === null || _e === void 0 ? void 0 : _e.length) ? m.vsOperatorAuthzMsgTypes : undefined,
|
|
303
|
+
vs_operator_authz_spend_limit: ((_f = m.vsOperatorAuthzSpendLimit) === null || _f === void 0 ? void 0 : _f.length) ? m.vsOperatorAuthzSpendLimit : null,
|
|
288
304
|
vs_operator_authz_with_feegrant: m.vsOperatorAuthzWithFeegrant || undefined,
|
|
289
|
-
vs_operator_authz_fee_spend_limit: (
|
|
290
|
-
|
|
305
|
+
vs_operator_authz_fee_spend_limit: ((_g = m.vsOperatorAuthzFeeSpendLimit) === null || _g === void 0 ? void 0 : _g.length) ? m.vsOperatorAuthzFeeSpendLimit : null,
|
|
306
|
+
vs_operator_authz_period: (0, helpers_1.durationToAmino)(m.vsOperatorAuthzPeriod),
|
|
291
307
|
});
|
|
292
308
|
},
|
|
293
309
|
fromAmino: (a) => {
|
|
@@ -303,11 +319,11 @@ exports.MsgSelfCreateParticipantAminoConverter = {
|
|
|
303
319
|
verificationFees: (0, helpers_1.strToU64)(a.verification_fees) != null ? Number((0, helpers_1.strToU64)(a.verification_fees).toString()) : 0,
|
|
304
320
|
validationFees: (0, helpers_1.strToU64)(a.validation_fees) != null ? Number((0, helpers_1.strToU64)(a.validation_fees).toString()) : 0,
|
|
305
321
|
vsOperator: (_e = a.vs_operator) !== null && _e !== void 0 ? _e : "",
|
|
306
|
-
|
|
322
|
+
vsOperatorAuthzMsgTypes: (_f = a.vs_operator_authz_msg_types) !== null && _f !== void 0 ? _f : [],
|
|
307
323
|
vsOperatorAuthzSpendLimit: (_g = a.vs_operator_authz_spend_limit) !== null && _g !== void 0 ? _g : [],
|
|
308
324
|
vsOperatorAuthzWithFeegrant: (_h = a.vs_operator_authz_with_feegrant) !== null && _h !== void 0 ? _h : false,
|
|
309
325
|
vsOperatorAuthzFeeSpendLimit: (_j = a.vs_operator_authz_fee_spend_limit) !== null && _j !== void 0 ? _j : [],
|
|
310
|
-
|
|
326
|
+
vsOperatorAuthzPeriod: (0, helpers_1.aminoToDuration)(a.vs_operator_authz_period),
|
|
311
327
|
});
|
|
312
328
|
},
|
|
313
329
|
};
|
|
@@ -15,8 +15,8 @@ export interface QueryParamsResponse {
|
|
|
15
15
|
* Query/ListOperatorAuthorizations RPC method.
|
|
16
16
|
*/
|
|
17
17
|
export interface QueryListOperatorAuthorizationsRequest {
|
|
18
|
-
/**
|
|
19
|
-
|
|
18
|
+
/** corporation_id filters by the corporation that granted the authorization. */
|
|
19
|
+
corporationId: number;
|
|
20
20
|
/** operator filters by the operator account that received the authorization. */
|
|
21
21
|
operator: string;
|
|
22
22
|
/** response_max_size limits the number of results. Must be 1-1024, defaults to 64. */
|
|
@@ -34,8 +34,8 @@ export interface QueryListOperatorAuthorizationsResponse {
|
|
|
34
34
|
* Query/ListVSOperatorAuthorizations RPC method.
|
|
35
35
|
*/
|
|
36
36
|
export interface QueryListVSOperatorAuthorizationsRequest {
|
|
37
|
-
/**
|
|
38
|
-
|
|
37
|
+
/** corporation_id filters by the corporation that granted the authorization. */
|
|
38
|
+
corporationId: number;
|
|
39
39
|
/** vs_operator filters by the VS operator account. */
|
|
40
40
|
vsOperator: string;
|
|
41
41
|
/** response_max_size limits the number of results. Must be 1-1024, defaults to 64. */
|
|
@@ -48,6 +48,36 @@ export interface QueryListVSOperatorAuthorizationsRequest {
|
|
|
48
48
|
export interface QueryListVSOperatorAuthorizationsResponse {
|
|
49
49
|
vsOperatorAuthorizations: VSOperatorAuthorization[];
|
|
50
50
|
}
|
|
51
|
+
/**
|
|
52
|
+
* QueryGetOperatorAuthorizationRequest is the request type for the
|
|
53
|
+
* Query/GetOperatorAuthorization RPC method.
|
|
54
|
+
*/
|
|
55
|
+
export interface QueryGetOperatorAuthorizationRequest {
|
|
56
|
+
/** id is the OperatorAuthorization id to fetch. */
|
|
57
|
+
id: number;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* QueryGetOperatorAuthorizationResponse is the response type for the
|
|
61
|
+
* Query/GetOperatorAuthorization RPC method.
|
|
62
|
+
*/
|
|
63
|
+
export interface QueryGetOperatorAuthorizationResponse {
|
|
64
|
+
operatorAuthorization: OperatorAuthorization | undefined;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* QueryGetVSOperatorAuthorizationRequest is the request type for the
|
|
68
|
+
* Query/GetVSOperatorAuthorization RPC method.
|
|
69
|
+
*/
|
|
70
|
+
export interface QueryGetVSOperatorAuthorizationRequest {
|
|
71
|
+
/** id is the VSOperatorAuthorization id to fetch. */
|
|
72
|
+
id: number;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* QueryGetVSOperatorAuthorizationResponse is the response type for the
|
|
76
|
+
* Query/GetVSOperatorAuthorization RPC method.
|
|
77
|
+
*/
|
|
78
|
+
export interface QueryGetVSOperatorAuthorizationResponse {
|
|
79
|
+
vsOperatorAuthorization: VSOperatorAuthorization | undefined;
|
|
80
|
+
}
|
|
51
81
|
export declare const QueryParamsRequest: {
|
|
52
82
|
encode(_: QueryParamsRequest, writer?: _m0.Writer): _m0.Writer;
|
|
53
83
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsRequest;
|
|
@@ -96,6 +126,38 @@ export declare const QueryListVSOperatorAuthorizationsResponse: {
|
|
|
96
126
|
create<I extends Exact<DeepPartial<QueryListVSOperatorAuthorizationsResponse>, I>>(base?: I): QueryListVSOperatorAuthorizationsResponse;
|
|
97
127
|
fromPartial<I extends Exact<DeepPartial<QueryListVSOperatorAuthorizationsResponse>, I>>(object: I): QueryListVSOperatorAuthorizationsResponse;
|
|
98
128
|
};
|
|
129
|
+
export declare const QueryGetOperatorAuthorizationRequest: {
|
|
130
|
+
encode(message: QueryGetOperatorAuthorizationRequest, writer?: _m0.Writer): _m0.Writer;
|
|
131
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryGetOperatorAuthorizationRequest;
|
|
132
|
+
fromJSON(object: any): QueryGetOperatorAuthorizationRequest;
|
|
133
|
+
toJSON(message: QueryGetOperatorAuthorizationRequest): unknown;
|
|
134
|
+
create<I extends Exact<DeepPartial<QueryGetOperatorAuthorizationRequest>, I>>(base?: I): QueryGetOperatorAuthorizationRequest;
|
|
135
|
+
fromPartial<I extends Exact<DeepPartial<QueryGetOperatorAuthorizationRequest>, I>>(object: I): QueryGetOperatorAuthorizationRequest;
|
|
136
|
+
};
|
|
137
|
+
export declare const QueryGetOperatorAuthorizationResponse: {
|
|
138
|
+
encode(message: QueryGetOperatorAuthorizationResponse, writer?: _m0.Writer): _m0.Writer;
|
|
139
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryGetOperatorAuthorizationResponse;
|
|
140
|
+
fromJSON(object: any): QueryGetOperatorAuthorizationResponse;
|
|
141
|
+
toJSON(message: QueryGetOperatorAuthorizationResponse): unknown;
|
|
142
|
+
create<I extends Exact<DeepPartial<QueryGetOperatorAuthorizationResponse>, I>>(base?: I): QueryGetOperatorAuthorizationResponse;
|
|
143
|
+
fromPartial<I extends Exact<DeepPartial<QueryGetOperatorAuthorizationResponse>, I>>(object: I): QueryGetOperatorAuthorizationResponse;
|
|
144
|
+
};
|
|
145
|
+
export declare const QueryGetVSOperatorAuthorizationRequest: {
|
|
146
|
+
encode(message: QueryGetVSOperatorAuthorizationRequest, writer?: _m0.Writer): _m0.Writer;
|
|
147
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryGetVSOperatorAuthorizationRequest;
|
|
148
|
+
fromJSON(object: any): QueryGetVSOperatorAuthorizationRequest;
|
|
149
|
+
toJSON(message: QueryGetVSOperatorAuthorizationRequest): unknown;
|
|
150
|
+
create<I extends Exact<DeepPartial<QueryGetVSOperatorAuthorizationRequest>, I>>(base?: I): QueryGetVSOperatorAuthorizationRequest;
|
|
151
|
+
fromPartial<I extends Exact<DeepPartial<QueryGetVSOperatorAuthorizationRequest>, I>>(object: I): QueryGetVSOperatorAuthorizationRequest;
|
|
152
|
+
};
|
|
153
|
+
export declare const QueryGetVSOperatorAuthorizationResponse: {
|
|
154
|
+
encode(message: QueryGetVSOperatorAuthorizationResponse, writer?: _m0.Writer): _m0.Writer;
|
|
155
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryGetVSOperatorAuthorizationResponse;
|
|
156
|
+
fromJSON(object: any): QueryGetVSOperatorAuthorizationResponse;
|
|
157
|
+
toJSON(message: QueryGetVSOperatorAuthorizationResponse): unknown;
|
|
158
|
+
create<I extends Exact<DeepPartial<QueryGetVSOperatorAuthorizationResponse>, I>>(base?: I): QueryGetVSOperatorAuthorizationResponse;
|
|
159
|
+
fromPartial<I extends Exact<DeepPartial<QueryGetVSOperatorAuthorizationResponse>, I>>(object: I): QueryGetVSOperatorAuthorizationResponse;
|
|
160
|
+
};
|
|
99
161
|
/** Query defines the gRPC querier service. */
|
|
100
162
|
export interface Query {
|
|
101
163
|
/** Parameters queries the parameters of the module. */
|
|
@@ -104,6 +166,10 @@ export interface Query {
|
|
|
104
166
|
ListOperatorAuthorizations(request: QueryListOperatorAuthorizationsRequest): Promise<QueryListOperatorAuthorizationsResponse>;
|
|
105
167
|
/** ListVSOperatorAuthorizations returns VS operator authorizations matching optional filters. */
|
|
106
168
|
ListVSOperatorAuthorizations(request: QueryListVSOperatorAuthorizationsRequest): Promise<QueryListVSOperatorAuthorizationsResponse>;
|
|
169
|
+
/** [MOD-DE-QRY-3] GetOperatorAuthorization returns a single OperatorAuthorization by id. */
|
|
170
|
+
GetOperatorAuthorization(request: QueryGetOperatorAuthorizationRequest): Promise<QueryGetOperatorAuthorizationResponse>;
|
|
171
|
+
/** [MOD-DE-QRY-4] GetVSOperatorAuthorization returns a single VSOperatorAuthorization by id. */
|
|
172
|
+
GetVSOperatorAuthorization(request: QueryGetVSOperatorAuthorizationRequest): Promise<QueryGetVSOperatorAuthorizationResponse>;
|
|
107
173
|
}
|
|
108
174
|
export declare const QueryServiceName = "verana.de.v1.Query";
|
|
109
175
|
export declare class QueryClientImpl implements Query {
|
|
@@ -115,6 +181,8 @@ export declare class QueryClientImpl implements Query {
|
|
|
115
181
|
Params(request: QueryParamsRequest): Promise<QueryParamsResponse>;
|
|
116
182
|
ListOperatorAuthorizations(request: QueryListOperatorAuthorizationsRequest): Promise<QueryListOperatorAuthorizationsResponse>;
|
|
117
183
|
ListVSOperatorAuthorizations(request: QueryListVSOperatorAuthorizationsRequest): Promise<QueryListVSOperatorAuthorizationsResponse>;
|
|
184
|
+
GetOperatorAuthorization(request: QueryGetOperatorAuthorizationRequest): Promise<QueryGetOperatorAuthorizationResponse>;
|
|
185
|
+
GetVSOperatorAuthorization(request: QueryGetVSOperatorAuthorizationRequest): Promise<QueryGetVSOperatorAuthorizationResponse>;
|
|
118
186
|
}
|
|
119
187
|
interface Rpc {
|
|
120
188
|
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
|