@verana-labs/verana-types 0.10.1-dev.18 → 0.10.1-dev.19
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/td.js +5 -4
- package/dist/amino-converter/xr.d.ts +2 -0
- package/dist/amino-converter/xr.js +42 -10
- package/dist/codec/verana/cs/v1/query.d.ts +52 -1
- package/dist/codec/verana/cs/v1/query.js +243 -1
- package/dist/codec/verana/td/v1/genesis.d.ts +10 -2
- package/dist/codec/verana/td/v1/genesis.js +129 -27
- package/dist/codec/verana/td/v1/query.d.ts +1 -1
- package/dist/codec/verana/td/v1/query.js +24 -10
- package/dist/codec/verana/td/v1/tx.d.ts +2 -2
- package/dist/codec/verana/td/v1/tx.js +10 -10
- package/dist/codec/verana/td/v1/types.d.ts +4 -2
- package/dist/codec/verana/td/v1/types.js +37 -37
- package/dist/codec/verana/xr/v1/genesis.d.ts +3 -1
- package/dist/codec/verana/xr/v1/genesis.js +20 -3
- package/dist/codec/verana/xr/v1/query.d.ts +5 -1
- package/dist/codec/verana/xr/v1/query.js +46 -4
- package/dist/codec/verana/xr/v1/tx.d.ts +96 -7
- package/dist/codec/verana/xr/v1/tx.js +416 -57
- package/dist/signing.d.ts +4 -0
- package/dist/signing.js +6 -0
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _m0 from "protobufjs/minimal";
|
|
2
2
|
import { PricingAssetType } from "../../cs/v1/types";
|
|
3
3
|
import { Params } from "./params";
|
|
4
|
-
import { ExchangeRate } from "./tx";
|
|
4
|
+
import { ExchangeRate, ExchangeRateAuthorization } from "./tx";
|
|
5
5
|
export declare const protobufPackage = "verana.xr.v1";
|
|
6
6
|
/** StateFilter is used for optional bool filtering: 0=unset, 1=active, 2=inactive. */
|
|
7
7
|
export declare enum StateFilter {
|
|
@@ -33,6 +33,8 @@ export interface QueryGetExchangeRateRequest {
|
|
|
33
33
|
/** QueryGetExchangeRateResponse is the response type for Query/GetExchangeRate. */
|
|
34
34
|
export interface QueryGetExchangeRateResponse {
|
|
35
35
|
exchangeRate: ExchangeRate | undefined;
|
|
36
|
+
/** authorizations lists the operators authorized to update this exchange rate. [MOD-XR-QRY-1] */
|
|
37
|
+
authorizations: ExchangeRateAuthorization[];
|
|
36
38
|
}
|
|
37
39
|
/** QueryListExchangeRatesRequest is the request type for Query/ListExchangeRates. */
|
|
38
40
|
export interface QueryListExchangeRatesRequest {
|
|
@@ -42,6 +44,8 @@ export interface QueryListExchangeRatesRequest {
|
|
|
42
44
|
quoteAsset: string;
|
|
43
45
|
state: StateFilter;
|
|
44
46
|
expire: Date | undefined;
|
|
47
|
+
/** response_max_size caps the number of returned entries (default 64, max 1024). [MOD-XR-QRY-2] */
|
|
48
|
+
responseMaxSize: number;
|
|
45
49
|
}
|
|
46
50
|
/** QueryListExchangeRatesResponse is the response type for Query/ListExchangeRates. */
|
|
47
51
|
export interface QueryListExchangeRatesResponse {
|
|
@@ -314,13 +314,16 @@ exports.QueryGetExchangeRateRequest = {
|
|
|
314
314
|
},
|
|
315
315
|
};
|
|
316
316
|
function createBaseQueryGetExchangeRateResponse() {
|
|
317
|
-
return { exchangeRate: undefined };
|
|
317
|
+
return { exchangeRate: undefined, authorizations: [] };
|
|
318
318
|
}
|
|
319
319
|
exports.QueryGetExchangeRateResponse = {
|
|
320
320
|
encode(message, writer = _m0.Writer.create()) {
|
|
321
321
|
if (message.exchangeRate !== undefined) {
|
|
322
322
|
tx_1.ExchangeRate.encode(message.exchangeRate, writer.uint32(10).fork()).ldelim();
|
|
323
323
|
}
|
|
324
|
+
for (const v of message.authorizations) {
|
|
325
|
+
tx_1.ExchangeRateAuthorization.encode(v, writer.uint32(18).fork()).ldelim();
|
|
326
|
+
}
|
|
324
327
|
return writer;
|
|
325
328
|
},
|
|
326
329
|
decode(input, length) {
|
|
@@ -336,6 +339,12 @@ exports.QueryGetExchangeRateResponse = {
|
|
|
336
339
|
}
|
|
337
340
|
message.exchangeRate = tx_1.ExchangeRate.decode(reader, reader.uint32());
|
|
338
341
|
continue;
|
|
342
|
+
case 2:
|
|
343
|
+
if (tag !== 18) {
|
|
344
|
+
break;
|
|
345
|
+
}
|
|
346
|
+
message.authorizations.push(tx_1.ExchangeRateAuthorization.decode(reader, reader.uint32()));
|
|
347
|
+
continue;
|
|
339
348
|
}
|
|
340
349
|
if ((tag & 7) === 4 || tag === 0) {
|
|
341
350
|
break;
|
|
@@ -345,28 +354,47 @@ exports.QueryGetExchangeRateResponse = {
|
|
|
345
354
|
return message;
|
|
346
355
|
},
|
|
347
356
|
fromJSON(object) {
|
|
348
|
-
return {
|
|
357
|
+
return {
|
|
358
|
+
exchangeRate: isSet(object.exchangeRate) ? tx_1.ExchangeRate.fromJSON(object.exchangeRate) : undefined,
|
|
359
|
+
authorizations: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.authorizations)
|
|
360
|
+
? object.authorizations.map((e) => tx_1.ExchangeRateAuthorization.fromJSON(e))
|
|
361
|
+
: [],
|
|
362
|
+
};
|
|
349
363
|
},
|
|
350
364
|
toJSON(message) {
|
|
365
|
+
var _a;
|
|
351
366
|
const obj = {};
|
|
352
367
|
if (message.exchangeRate !== undefined) {
|
|
353
368
|
obj.exchangeRate = tx_1.ExchangeRate.toJSON(message.exchangeRate);
|
|
354
369
|
}
|
|
370
|
+
if ((_a = message.authorizations) === null || _a === void 0 ? void 0 : _a.length) {
|
|
371
|
+
obj.authorizations = message.authorizations.map((e) => tx_1.ExchangeRateAuthorization.toJSON(e));
|
|
372
|
+
}
|
|
355
373
|
return obj;
|
|
356
374
|
},
|
|
357
375
|
create(base) {
|
|
358
376
|
return exports.QueryGetExchangeRateResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
359
377
|
},
|
|
360
378
|
fromPartial(object) {
|
|
379
|
+
var _a;
|
|
361
380
|
const message = createBaseQueryGetExchangeRateResponse();
|
|
362
381
|
message.exchangeRate = (object.exchangeRate !== undefined && object.exchangeRate !== null)
|
|
363
382
|
? tx_1.ExchangeRate.fromPartial(object.exchangeRate)
|
|
364
383
|
: undefined;
|
|
384
|
+
message.authorizations = ((_a = object.authorizations) === null || _a === void 0 ? void 0 : _a.map((e) => tx_1.ExchangeRateAuthorization.fromPartial(e))) || [];
|
|
365
385
|
return message;
|
|
366
386
|
},
|
|
367
387
|
};
|
|
368
388
|
function createBaseQueryListExchangeRatesRequest() {
|
|
369
|
-
return {
|
|
389
|
+
return {
|
|
390
|
+
baseAssetType: 0,
|
|
391
|
+
baseAsset: "",
|
|
392
|
+
quoteAssetType: 0,
|
|
393
|
+
quoteAsset: "",
|
|
394
|
+
state: 0,
|
|
395
|
+
expire: undefined,
|
|
396
|
+
responseMaxSize: 0,
|
|
397
|
+
};
|
|
370
398
|
}
|
|
371
399
|
exports.QueryListExchangeRatesRequest = {
|
|
372
400
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -388,6 +416,9 @@ exports.QueryListExchangeRatesRequest = {
|
|
|
388
416
|
if (message.expire !== undefined) {
|
|
389
417
|
timestamp_1.Timestamp.encode(toTimestamp(message.expire), writer.uint32(50).fork()).ldelim();
|
|
390
418
|
}
|
|
419
|
+
if (message.responseMaxSize !== 0) {
|
|
420
|
+
writer.uint32(56).uint32(message.responseMaxSize);
|
|
421
|
+
}
|
|
391
422
|
return writer;
|
|
392
423
|
},
|
|
393
424
|
decode(input, length) {
|
|
@@ -433,6 +464,12 @@ exports.QueryListExchangeRatesRequest = {
|
|
|
433
464
|
}
|
|
434
465
|
message.expire = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
435
466
|
continue;
|
|
467
|
+
case 7:
|
|
468
|
+
if (tag !== 56) {
|
|
469
|
+
break;
|
|
470
|
+
}
|
|
471
|
+
message.responseMaxSize = reader.uint32();
|
|
472
|
+
continue;
|
|
436
473
|
}
|
|
437
474
|
if ((tag & 7) === 4 || tag === 0) {
|
|
438
475
|
break;
|
|
@@ -449,6 +486,7 @@ exports.QueryListExchangeRatesRequest = {
|
|
|
449
486
|
quoteAsset: isSet(object.quoteAsset) ? globalThis.String(object.quoteAsset) : "",
|
|
450
487
|
state: isSet(object.state) ? stateFilterFromJSON(object.state) : 0,
|
|
451
488
|
expire: isSet(object.expire) ? fromJsonTimestamp(object.expire) : undefined,
|
|
489
|
+
responseMaxSize: isSet(object.responseMaxSize) ? globalThis.Number(object.responseMaxSize) : 0,
|
|
452
490
|
};
|
|
453
491
|
},
|
|
454
492
|
toJSON(message) {
|
|
@@ -471,13 +509,16 @@ exports.QueryListExchangeRatesRequest = {
|
|
|
471
509
|
if (message.expire !== undefined) {
|
|
472
510
|
obj.expire = message.expire.toISOString();
|
|
473
511
|
}
|
|
512
|
+
if (message.responseMaxSize !== 0) {
|
|
513
|
+
obj.responseMaxSize = Math.round(message.responseMaxSize);
|
|
514
|
+
}
|
|
474
515
|
return obj;
|
|
475
516
|
},
|
|
476
517
|
create(base) {
|
|
477
518
|
return exports.QueryListExchangeRatesRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
478
519
|
},
|
|
479
520
|
fromPartial(object) {
|
|
480
|
-
var _a, _b, _c, _d, _e, _f;
|
|
521
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
481
522
|
const message = createBaseQueryListExchangeRatesRequest();
|
|
482
523
|
message.baseAssetType = (_a = object.baseAssetType) !== null && _a !== void 0 ? _a : 0;
|
|
483
524
|
message.baseAsset = (_b = object.baseAsset) !== null && _b !== void 0 ? _b : "";
|
|
@@ -485,6 +526,7 @@ exports.QueryListExchangeRatesRequest = {
|
|
|
485
526
|
message.quoteAsset = (_d = object.quoteAsset) !== null && _d !== void 0 ? _d : "";
|
|
486
527
|
message.state = (_e = object.state) !== null && _e !== void 0 ? _e : 0;
|
|
487
528
|
message.expire = (_f = object.expire) !== null && _f !== void 0 ? _f : undefined;
|
|
529
|
+
message.responseMaxSize = (_g = object.responseMaxSize) !== null && _g !== void 0 ? _g : 0;
|
|
488
530
|
return message;
|
|
489
531
|
},
|
|
490
532
|
};
|
|
@@ -17,6 +17,19 @@ export interface ExchangeRate {
|
|
|
17
17
|
state: boolean;
|
|
18
18
|
updated: Date | undefined;
|
|
19
19
|
}
|
|
20
|
+
/**
|
|
21
|
+
* ExchangeRateAuthorization designates which operator account is authorized to
|
|
22
|
+
* push fresh values for a given ExchangeRate, with optional anti-spam
|
|
23
|
+
* (min_interval) and circuit-breaker (max_deviation_bps) bounds. Keyed by
|
|
24
|
+
* (xr_id, operator). Zero min_interval / max_deviation_bps means "unset".
|
|
25
|
+
*/
|
|
26
|
+
export interface ExchangeRateAuthorization {
|
|
27
|
+
xrId: number;
|
|
28
|
+
operator: string;
|
|
29
|
+
expiration: Date | undefined;
|
|
30
|
+
minInterval: Duration | undefined;
|
|
31
|
+
maxDeviationBps: number;
|
|
32
|
+
}
|
|
20
33
|
/** MsgCreateExchangeRate is the Msg/CreateExchangeRate request type. */
|
|
21
34
|
export interface MsgCreateExchangeRate {
|
|
22
35
|
/** authority is the address that controls the module (defaults to x/gov unless overwritten). */
|
|
@@ -34,20 +47,14 @@ export interface MsgCreateExchangeRate {
|
|
|
34
47
|
export interface MsgCreateExchangeRateResponse {
|
|
35
48
|
id: number;
|
|
36
49
|
}
|
|
37
|
-
/** MsgUpdateExchangeRate is the Msg/UpdateExchangeRate request type. */
|
|
50
|
+
/** MsgUpdateExchangeRate is the Msg/UpdateExchangeRate request type. [MOD-XR-MSG-2] */
|
|
38
51
|
export interface MsgUpdateExchangeRate {
|
|
39
|
-
/** authority is the group address that controls the exchange rate. */
|
|
40
|
-
authority: string;
|
|
41
52
|
/** operator is the authorized operator executing this message. */
|
|
42
53
|
operator: string;
|
|
43
54
|
/** id is the exchange rate entry to update. */
|
|
44
55
|
id: number;
|
|
45
56
|
/** rate is the new exchange rate value. */
|
|
46
57
|
rate: string;
|
|
47
|
-
/** rate_scale is the new scale for the rate (if 0, existing scale is kept). */
|
|
48
|
-
rateScale: number;
|
|
49
|
-
/** validity_duration is the new validity duration (optional; if nil, existing duration is kept). */
|
|
50
|
-
validityDuration: Duration | undefined;
|
|
51
58
|
}
|
|
52
59
|
/** MsgUpdateExchangeRateResponse defines the response for MsgUpdateExchangeRate. */
|
|
53
60
|
export interface MsgUpdateExchangeRateResponse {
|
|
@@ -75,6 +82,36 @@ export interface MsgSetExchangeRateState {
|
|
|
75
82
|
/** MsgSetExchangeRateStateResponse defines the response for MsgSetExchangeRateState. */
|
|
76
83
|
export interface MsgSetExchangeRateStateResponse {
|
|
77
84
|
}
|
|
85
|
+
/** MsgGrantExchangeRateAuthorization is the Msg/GrantExchangeRateAuthorization request type. [MOD-XR-MSG-4] */
|
|
86
|
+
export interface MsgGrantExchangeRateAuthorization {
|
|
87
|
+
/** authority is the gov module account. */
|
|
88
|
+
authority: string;
|
|
89
|
+
/** xr_id is the exchange rate the operator is authorized to update. */
|
|
90
|
+
xrId: number;
|
|
91
|
+
/** operator is the account authorized to update the exchange rate. */
|
|
92
|
+
operator: string;
|
|
93
|
+
/** expiration is when the authorization expires (must be in the future). */
|
|
94
|
+
expiration: Date | undefined;
|
|
95
|
+
/** min_interval is the minimum time between successful updates (optional anti-spam). */
|
|
96
|
+
minInterval: Duration | undefined;
|
|
97
|
+
/** max_deviation_bps is the max allowed rate change in basis points, (0, 10000] (optional circuit breaker). */
|
|
98
|
+
maxDeviationBps: number;
|
|
99
|
+
}
|
|
100
|
+
/** MsgGrantExchangeRateAuthorizationResponse defines the response for MsgGrantExchangeRateAuthorization. */
|
|
101
|
+
export interface MsgGrantExchangeRateAuthorizationResponse {
|
|
102
|
+
}
|
|
103
|
+
/** MsgRevokeExchangeRateAuthorization is the Msg/RevokeExchangeRateAuthorization request type. [MOD-XR-MSG-5] */
|
|
104
|
+
export interface MsgRevokeExchangeRateAuthorization {
|
|
105
|
+
/** authority is the gov module account. */
|
|
106
|
+
authority: string;
|
|
107
|
+
/** xr_id is the exchange rate the authorization is for. */
|
|
108
|
+
xrId: number;
|
|
109
|
+
/** operator is the account whose authorization is revoked. */
|
|
110
|
+
operator: string;
|
|
111
|
+
}
|
|
112
|
+
/** MsgRevokeExchangeRateAuthorizationResponse defines the response for MsgRevokeExchangeRateAuthorization. */
|
|
113
|
+
export interface MsgRevokeExchangeRateAuthorizationResponse {
|
|
114
|
+
}
|
|
78
115
|
/**
|
|
79
116
|
* MsgUpdateParamsResponse defines the response structure for executing a
|
|
80
117
|
* MsgUpdateParams message.
|
|
@@ -89,6 +126,14 @@ export declare const ExchangeRate: {
|
|
|
89
126
|
create<I extends Exact<DeepPartial<ExchangeRate>, I>>(base?: I): ExchangeRate;
|
|
90
127
|
fromPartial<I extends Exact<DeepPartial<ExchangeRate>, I>>(object: I): ExchangeRate;
|
|
91
128
|
};
|
|
129
|
+
export declare const ExchangeRateAuthorization: {
|
|
130
|
+
encode(message: ExchangeRateAuthorization, writer?: _m0.Writer): _m0.Writer;
|
|
131
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ExchangeRateAuthorization;
|
|
132
|
+
fromJSON(object: any): ExchangeRateAuthorization;
|
|
133
|
+
toJSON(message: ExchangeRateAuthorization): unknown;
|
|
134
|
+
create<I extends Exact<DeepPartial<ExchangeRateAuthorization>, I>>(base?: I): ExchangeRateAuthorization;
|
|
135
|
+
fromPartial<I extends Exact<DeepPartial<ExchangeRateAuthorization>, I>>(object: I): ExchangeRateAuthorization;
|
|
136
|
+
};
|
|
92
137
|
export declare const MsgCreateExchangeRate: {
|
|
93
138
|
encode(message: MsgCreateExchangeRate, writer?: _m0.Writer): _m0.Writer;
|
|
94
139
|
decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreateExchangeRate;
|
|
@@ -145,6 +190,38 @@ export declare const MsgSetExchangeRateStateResponse: {
|
|
|
145
190
|
create<I extends Exact<DeepPartial<MsgSetExchangeRateStateResponse>, I>>(base?: I): MsgSetExchangeRateStateResponse;
|
|
146
191
|
fromPartial<I extends Exact<DeepPartial<MsgSetExchangeRateStateResponse>, I>>(_: I): MsgSetExchangeRateStateResponse;
|
|
147
192
|
};
|
|
193
|
+
export declare const MsgGrantExchangeRateAuthorization: {
|
|
194
|
+
encode(message: MsgGrantExchangeRateAuthorization, writer?: _m0.Writer): _m0.Writer;
|
|
195
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgGrantExchangeRateAuthorization;
|
|
196
|
+
fromJSON(object: any): MsgGrantExchangeRateAuthorization;
|
|
197
|
+
toJSON(message: MsgGrantExchangeRateAuthorization): unknown;
|
|
198
|
+
create<I extends Exact<DeepPartial<MsgGrantExchangeRateAuthorization>, I>>(base?: I): MsgGrantExchangeRateAuthorization;
|
|
199
|
+
fromPartial<I extends Exact<DeepPartial<MsgGrantExchangeRateAuthorization>, I>>(object: I): MsgGrantExchangeRateAuthorization;
|
|
200
|
+
};
|
|
201
|
+
export declare const MsgGrantExchangeRateAuthorizationResponse: {
|
|
202
|
+
encode(_: MsgGrantExchangeRateAuthorizationResponse, writer?: _m0.Writer): _m0.Writer;
|
|
203
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgGrantExchangeRateAuthorizationResponse;
|
|
204
|
+
fromJSON(_: any): MsgGrantExchangeRateAuthorizationResponse;
|
|
205
|
+
toJSON(_: MsgGrantExchangeRateAuthorizationResponse): unknown;
|
|
206
|
+
create<I extends Exact<DeepPartial<MsgGrantExchangeRateAuthorizationResponse>, I>>(base?: I): MsgGrantExchangeRateAuthorizationResponse;
|
|
207
|
+
fromPartial<I extends Exact<DeepPartial<MsgGrantExchangeRateAuthorizationResponse>, I>>(_: I): MsgGrantExchangeRateAuthorizationResponse;
|
|
208
|
+
};
|
|
209
|
+
export declare const MsgRevokeExchangeRateAuthorization: {
|
|
210
|
+
encode(message: MsgRevokeExchangeRateAuthorization, writer?: _m0.Writer): _m0.Writer;
|
|
211
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgRevokeExchangeRateAuthorization;
|
|
212
|
+
fromJSON(object: any): MsgRevokeExchangeRateAuthorization;
|
|
213
|
+
toJSON(message: MsgRevokeExchangeRateAuthorization): unknown;
|
|
214
|
+
create<I extends Exact<DeepPartial<MsgRevokeExchangeRateAuthorization>, I>>(base?: I): MsgRevokeExchangeRateAuthorization;
|
|
215
|
+
fromPartial<I extends Exact<DeepPartial<MsgRevokeExchangeRateAuthorization>, I>>(object: I): MsgRevokeExchangeRateAuthorization;
|
|
216
|
+
};
|
|
217
|
+
export declare const MsgRevokeExchangeRateAuthorizationResponse: {
|
|
218
|
+
encode(_: MsgRevokeExchangeRateAuthorizationResponse, writer?: _m0.Writer): _m0.Writer;
|
|
219
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MsgRevokeExchangeRateAuthorizationResponse;
|
|
220
|
+
fromJSON(_: any): MsgRevokeExchangeRateAuthorizationResponse;
|
|
221
|
+
toJSON(_: MsgRevokeExchangeRateAuthorizationResponse): unknown;
|
|
222
|
+
create<I extends Exact<DeepPartial<MsgRevokeExchangeRateAuthorizationResponse>, I>>(base?: I): MsgRevokeExchangeRateAuthorizationResponse;
|
|
223
|
+
fromPartial<I extends Exact<DeepPartial<MsgRevokeExchangeRateAuthorizationResponse>, I>>(_: I): MsgRevokeExchangeRateAuthorizationResponse;
|
|
224
|
+
};
|
|
148
225
|
export declare const MsgUpdateParamsResponse: {
|
|
149
226
|
encode(_: MsgUpdateParamsResponse, writer?: _m0.Writer): _m0.Writer;
|
|
150
227
|
decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateParamsResponse;
|
|
@@ -166,6 +243,16 @@ export interface Msg {
|
|
|
166
243
|
UpdateExchangeRate(request: MsgUpdateExchangeRate): Promise<MsgUpdateExchangeRateResponse>;
|
|
167
244
|
/** SetExchangeRateState defines a governance operation for enabling or disabling an exchange rate. */
|
|
168
245
|
SetExchangeRateState(request: MsgSetExchangeRateState): Promise<MsgSetExchangeRateStateResponse>;
|
|
246
|
+
/**
|
|
247
|
+
* GrantExchangeRateAuthorization defines a governance operation authorizing an
|
|
248
|
+
* operator to update a given exchange rate. [MOD-XR-MSG-4]
|
|
249
|
+
*/
|
|
250
|
+
GrantExchangeRateAuthorization(request: MsgGrantExchangeRateAuthorization): Promise<MsgGrantExchangeRateAuthorizationResponse>;
|
|
251
|
+
/**
|
|
252
|
+
* RevokeExchangeRateAuthorization defines a governance operation revoking an
|
|
253
|
+
* operator's authorization for a given exchange rate. [MOD-XR-MSG-5]
|
|
254
|
+
*/
|
|
255
|
+
RevokeExchangeRateAuthorization(request: MsgRevokeExchangeRateAuthorization): Promise<MsgRevokeExchangeRateAuthorizationResponse>;
|
|
169
256
|
}
|
|
170
257
|
export declare const MsgServiceName = "verana.xr.v1.Msg";
|
|
171
258
|
export declare class MsgClientImpl implements Msg {
|
|
@@ -178,6 +265,8 @@ export declare class MsgClientImpl implements Msg {
|
|
|
178
265
|
CreateExchangeRate(request: MsgCreateExchangeRate): Promise<MsgCreateExchangeRateResponse>;
|
|
179
266
|
UpdateExchangeRate(request: MsgUpdateExchangeRate): Promise<MsgUpdateExchangeRateResponse>;
|
|
180
267
|
SetExchangeRateState(request: MsgSetExchangeRateState): Promise<MsgSetExchangeRateStateResponse>;
|
|
268
|
+
GrantExchangeRateAuthorization(request: MsgGrantExchangeRateAuthorization): Promise<MsgGrantExchangeRateAuthorizationResponse>;
|
|
269
|
+
RevokeExchangeRateAuthorization(request: MsgRevokeExchangeRateAuthorization): Promise<MsgRevokeExchangeRateAuthorizationResponse>;
|
|
181
270
|
}
|
|
182
271
|
interface Rpc {
|
|
183
272
|
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
|