@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
|
@@ -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.MsgUpdateParamsResponse = exports.MsgSetExchangeRateStateResponse = exports.MsgSetExchangeRateState = exports.MsgUpdateParams = exports.MsgUpdateExchangeRateResponse = exports.MsgUpdateExchangeRate = exports.MsgCreateExchangeRateResponse = exports.MsgCreateExchangeRate = exports.ExchangeRate = exports.protobufPackage = void 0;
|
|
41
|
+
exports.MsgClientImpl = exports.MsgServiceName = exports.MsgUpdateParamsResponse = exports.MsgRevokeExchangeRateAuthorizationResponse = exports.MsgRevokeExchangeRateAuthorization = exports.MsgGrantExchangeRateAuthorizationResponse = exports.MsgGrantExchangeRateAuthorization = exports.MsgSetExchangeRateStateResponse = exports.MsgSetExchangeRateState = exports.MsgUpdateParams = exports.MsgUpdateExchangeRateResponse = exports.MsgUpdateExchangeRate = exports.MsgCreateExchangeRateResponse = exports.MsgCreateExchangeRate = exports.ExchangeRateAuthorization = exports.ExchangeRate = exports.protobufPackage = void 0;
|
|
42
42
|
/* eslint-disable */
|
|
43
43
|
const _m0 = __importStar(require("protobufjs/minimal"));
|
|
44
44
|
const duration_1 = require("../../../google/protobuf/duration");
|
|
@@ -254,6 +254,117 @@ exports.ExchangeRate = {
|
|
|
254
254
|
return message;
|
|
255
255
|
},
|
|
256
256
|
};
|
|
257
|
+
function createBaseExchangeRateAuthorization() {
|
|
258
|
+
return { xrId: 0, operator: "", expiration: undefined, minInterval: undefined, maxDeviationBps: 0 };
|
|
259
|
+
}
|
|
260
|
+
exports.ExchangeRateAuthorization = {
|
|
261
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
262
|
+
if (message.xrId !== 0) {
|
|
263
|
+
writer.uint32(8).uint64(message.xrId);
|
|
264
|
+
}
|
|
265
|
+
if (message.operator !== "") {
|
|
266
|
+
writer.uint32(18).string(message.operator);
|
|
267
|
+
}
|
|
268
|
+
if (message.expiration !== undefined) {
|
|
269
|
+
timestamp_1.Timestamp.encode(toTimestamp(message.expiration), writer.uint32(26).fork()).ldelim();
|
|
270
|
+
}
|
|
271
|
+
if (message.minInterval !== undefined) {
|
|
272
|
+
duration_1.Duration.encode(message.minInterval, writer.uint32(34).fork()).ldelim();
|
|
273
|
+
}
|
|
274
|
+
if (message.maxDeviationBps !== 0) {
|
|
275
|
+
writer.uint32(40).uint32(message.maxDeviationBps);
|
|
276
|
+
}
|
|
277
|
+
return writer;
|
|
278
|
+
},
|
|
279
|
+
decode(input, length) {
|
|
280
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
281
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
282
|
+
const message = createBaseExchangeRateAuthorization();
|
|
283
|
+
while (reader.pos < end) {
|
|
284
|
+
const tag = reader.uint32();
|
|
285
|
+
switch (tag >>> 3) {
|
|
286
|
+
case 1:
|
|
287
|
+
if (tag !== 8) {
|
|
288
|
+
break;
|
|
289
|
+
}
|
|
290
|
+
message.xrId = longToNumber(reader.uint64());
|
|
291
|
+
continue;
|
|
292
|
+
case 2:
|
|
293
|
+
if (tag !== 18) {
|
|
294
|
+
break;
|
|
295
|
+
}
|
|
296
|
+
message.operator = reader.string();
|
|
297
|
+
continue;
|
|
298
|
+
case 3:
|
|
299
|
+
if (tag !== 26) {
|
|
300
|
+
break;
|
|
301
|
+
}
|
|
302
|
+
message.expiration = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
303
|
+
continue;
|
|
304
|
+
case 4:
|
|
305
|
+
if (tag !== 34) {
|
|
306
|
+
break;
|
|
307
|
+
}
|
|
308
|
+
message.minInterval = duration_1.Duration.decode(reader, reader.uint32());
|
|
309
|
+
continue;
|
|
310
|
+
case 5:
|
|
311
|
+
if (tag !== 40) {
|
|
312
|
+
break;
|
|
313
|
+
}
|
|
314
|
+
message.maxDeviationBps = reader.uint32();
|
|
315
|
+
continue;
|
|
316
|
+
}
|
|
317
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
318
|
+
break;
|
|
319
|
+
}
|
|
320
|
+
reader.skipType(tag & 7);
|
|
321
|
+
}
|
|
322
|
+
return message;
|
|
323
|
+
},
|
|
324
|
+
fromJSON(object) {
|
|
325
|
+
return {
|
|
326
|
+
xrId: isSet(object.xrId) ? globalThis.Number(object.xrId) : 0,
|
|
327
|
+
operator: isSet(object.operator) ? globalThis.String(object.operator) : "",
|
|
328
|
+
expiration: isSet(object.expiration) ? fromJsonTimestamp(object.expiration) : undefined,
|
|
329
|
+
minInterval: isSet(object.minInterval) ? duration_1.Duration.fromJSON(object.minInterval) : undefined,
|
|
330
|
+
maxDeviationBps: isSet(object.maxDeviationBps) ? globalThis.Number(object.maxDeviationBps) : 0,
|
|
331
|
+
};
|
|
332
|
+
},
|
|
333
|
+
toJSON(message) {
|
|
334
|
+
const obj = {};
|
|
335
|
+
if (message.xrId !== 0) {
|
|
336
|
+
obj.xrId = Math.round(message.xrId);
|
|
337
|
+
}
|
|
338
|
+
if (message.operator !== "") {
|
|
339
|
+
obj.operator = message.operator;
|
|
340
|
+
}
|
|
341
|
+
if (message.expiration !== undefined) {
|
|
342
|
+
obj.expiration = message.expiration.toISOString();
|
|
343
|
+
}
|
|
344
|
+
if (message.minInterval !== undefined) {
|
|
345
|
+
obj.minInterval = duration_1.Duration.toJSON(message.minInterval);
|
|
346
|
+
}
|
|
347
|
+
if (message.maxDeviationBps !== 0) {
|
|
348
|
+
obj.maxDeviationBps = Math.round(message.maxDeviationBps);
|
|
349
|
+
}
|
|
350
|
+
return obj;
|
|
351
|
+
},
|
|
352
|
+
create(base) {
|
|
353
|
+
return exports.ExchangeRateAuthorization.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
354
|
+
},
|
|
355
|
+
fromPartial(object) {
|
|
356
|
+
var _a, _b, _c, _d;
|
|
357
|
+
const message = createBaseExchangeRateAuthorization();
|
|
358
|
+
message.xrId = (_a = object.xrId) !== null && _a !== void 0 ? _a : 0;
|
|
359
|
+
message.operator = (_b = object.operator) !== null && _b !== void 0 ? _b : "";
|
|
360
|
+
message.expiration = (_c = object.expiration) !== null && _c !== void 0 ? _c : undefined;
|
|
361
|
+
message.minInterval = (object.minInterval !== undefined && object.minInterval !== null)
|
|
362
|
+
? duration_1.Duration.fromPartial(object.minInterval)
|
|
363
|
+
: undefined;
|
|
364
|
+
message.maxDeviationBps = (_d = object.maxDeviationBps) !== null && _d !== void 0 ? _d : 0;
|
|
365
|
+
return message;
|
|
366
|
+
},
|
|
367
|
+
};
|
|
257
368
|
function createBaseMsgCreateExchangeRate() {
|
|
258
369
|
return {
|
|
259
370
|
authority: "",
|
|
@@ -483,27 +594,18 @@ exports.MsgCreateExchangeRateResponse = {
|
|
|
483
594
|
},
|
|
484
595
|
};
|
|
485
596
|
function createBaseMsgUpdateExchangeRate() {
|
|
486
|
-
return {
|
|
597
|
+
return { operator: "", id: 0, rate: "" };
|
|
487
598
|
}
|
|
488
599
|
exports.MsgUpdateExchangeRate = {
|
|
489
600
|
encode(message, writer = _m0.Writer.create()) {
|
|
490
|
-
if (message.authority !== "") {
|
|
491
|
-
writer.uint32(10).string(message.authority);
|
|
492
|
-
}
|
|
493
601
|
if (message.operator !== "") {
|
|
494
|
-
writer.uint32(
|
|
602
|
+
writer.uint32(10).string(message.operator);
|
|
495
603
|
}
|
|
496
604
|
if (message.id !== 0) {
|
|
497
|
-
writer.uint32(
|
|
605
|
+
writer.uint32(16).uint64(message.id);
|
|
498
606
|
}
|
|
499
607
|
if (message.rate !== "") {
|
|
500
|
-
writer.uint32(
|
|
501
|
-
}
|
|
502
|
-
if (message.rateScale !== 0) {
|
|
503
|
-
writer.uint32(40).uint32(message.rateScale);
|
|
504
|
-
}
|
|
505
|
-
if (message.validityDuration !== undefined) {
|
|
506
|
-
duration_1.Duration.encode(message.validityDuration, writer.uint32(50).fork()).ldelim();
|
|
608
|
+
writer.uint32(26).string(message.rate);
|
|
507
609
|
}
|
|
508
610
|
return writer;
|
|
509
611
|
},
|
|
@@ -518,38 +620,20 @@ exports.MsgUpdateExchangeRate = {
|
|
|
518
620
|
if (tag !== 10) {
|
|
519
621
|
break;
|
|
520
622
|
}
|
|
521
|
-
message.authority = reader.string();
|
|
522
|
-
continue;
|
|
523
|
-
case 2:
|
|
524
|
-
if (tag !== 18) {
|
|
525
|
-
break;
|
|
526
|
-
}
|
|
527
623
|
message.operator = reader.string();
|
|
528
624
|
continue;
|
|
529
|
-
case
|
|
530
|
-
if (tag !==
|
|
625
|
+
case 2:
|
|
626
|
+
if (tag !== 16) {
|
|
531
627
|
break;
|
|
532
628
|
}
|
|
533
629
|
message.id = longToNumber(reader.uint64());
|
|
534
630
|
continue;
|
|
535
|
-
case
|
|
536
|
-
if (tag !==
|
|
631
|
+
case 3:
|
|
632
|
+
if (tag !== 26) {
|
|
537
633
|
break;
|
|
538
634
|
}
|
|
539
635
|
message.rate = reader.string();
|
|
540
636
|
continue;
|
|
541
|
-
case 5:
|
|
542
|
-
if (tag !== 40) {
|
|
543
|
-
break;
|
|
544
|
-
}
|
|
545
|
-
message.rateScale = reader.uint32();
|
|
546
|
-
continue;
|
|
547
|
-
case 6:
|
|
548
|
-
if (tag !== 50) {
|
|
549
|
-
break;
|
|
550
|
-
}
|
|
551
|
-
message.validityDuration = duration_1.Duration.decode(reader, reader.uint32());
|
|
552
|
-
continue;
|
|
553
637
|
}
|
|
554
638
|
if ((tag & 7) === 4 || tag === 0) {
|
|
555
639
|
break;
|
|
@@ -560,19 +644,13 @@ exports.MsgUpdateExchangeRate = {
|
|
|
560
644
|
},
|
|
561
645
|
fromJSON(object) {
|
|
562
646
|
return {
|
|
563
|
-
authority: isSet(object.authority) ? globalThis.String(object.authority) : "",
|
|
564
647
|
operator: isSet(object.operator) ? globalThis.String(object.operator) : "",
|
|
565
648
|
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
|
566
649
|
rate: isSet(object.rate) ? globalThis.String(object.rate) : "",
|
|
567
|
-
rateScale: isSet(object.rateScale) ? globalThis.Number(object.rateScale) : 0,
|
|
568
|
-
validityDuration: isSet(object.validityDuration) ? duration_1.Duration.fromJSON(object.validityDuration) : undefined,
|
|
569
650
|
};
|
|
570
651
|
},
|
|
571
652
|
toJSON(message) {
|
|
572
653
|
const obj = {};
|
|
573
|
-
if (message.authority !== "") {
|
|
574
|
-
obj.authority = message.authority;
|
|
575
|
-
}
|
|
576
654
|
if (message.operator !== "") {
|
|
577
655
|
obj.operator = message.operator;
|
|
578
656
|
}
|
|
@@ -582,28 +660,17 @@ exports.MsgUpdateExchangeRate = {
|
|
|
582
660
|
if (message.rate !== "") {
|
|
583
661
|
obj.rate = message.rate;
|
|
584
662
|
}
|
|
585
|
-
if (message.rateScale !== 0) {
|
|
586
|
-
obj.rateScale = Math.round(message.rateScale);
|
|
587
|
-
}
|
|
588
|
-
if (message.validityDuration !== undefined) {
|
|
589
|
-
obj.validityDuration = duration_1.Duration.toJSON(message.validityDuration);
|
|
590
|
-
}
|
|
591
663
|
return obj;
|
|
592
664
|
},
|
|
593
665
|
create(base) {
|
|
594
666
|
return exports.MsgUpdateExchangeRate.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
595
667
|
},
|
|
596
668
|
fromPartial(object) {
|
|
597
|
-
var _a, _b, _c
|
|
669
|
+
var _a, _b, _c;
|
|
598
670
|
const message = createBaseMsgUpdateExchangeRate();
|
|
599
|
-
message.
|
|
600
|
-
message.
|
|
601
|
-
message.
|
|
602
|
-
message.rate = (_d = object.rate) !== null && _d !== void 0 ? _d : "";
|
|
603
|
-
message.rateScale = (_e = object.rateScale) !== null && _e !== void 0 ? _e : 0;
|
|
604
|
-
message.validityDuration = (object.validityDuration !== undefined && object.validityDuration !== null)
|
|
605
|
-
? duration_1.Duration.fromPartial(object.validityDuration)
|
|
606
|
-
: undefined;
|
|
671
|
+
message.operator = (_a = object.operator) !== null && _a !== void 0 ? _a : "";
|
|
672
|
+
message.id = (_b = object.id) !== null && _b !== void 0 ? _b : 0;
|
|
673
|
+
message.rate = (_c = object.rate) !== null && _c !== void 0 ? _c : "";
|
|
607
674
|
return message;
|
|
608
675
|
},
|
|
609
676
|
};
|
|
@@ -831,6 +898,286 @@ exports.MsgSetExchangeRateStateResponse = {
|
|
|
831
898
|
return message;
|
|
832
899
|
},
|
|
833
900
|
};
|
|
901
|
+
function createBaseMsgGrantExchangeRateAuthorization() {
|
|
902
|
+
return { authority: "", xrId: 0, operator: "", expiration: undefined, minInterval: undefined, maxDeviationBps: 0 };
|
|
903
|
+
}
|
|
904
|
+
exports.MsgGrantExchangeRateAuthorization = {
|
|
905
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
906
|
+
if (message.authority !== "") {
|
|
907
|
+
writer.uint32(10).string(message.authority);
|
|
908
|
+
}
|
|
909
|
+
if (message.xrId !== 0) {
|
|
910
|
+
writer.uint32(16).uint64(message.xrId);
|
|
911
|
+
}
|
|
912
|
+
if (message.operator !== "") {
|
|
913
|
+
writer.uint32(26).string(message.operator);
|
|
914
|
+
}
|
|
915
|
+
if (message.expiration !== undefined) {
|
|
916
|
+
timestamp_1.Timestamp.encode(toTimestamp(message.expiration), writer.uint32(34).fork()).ldelim();
|
|
917
|
+
}
|
|
918
|
+
if (message.minInterval !== undefined) {
|
|
919
|
+
duration_1.Duration.encode(message.minInterval, writer.uint32(42).fork()).ldelim();
|
|
920
|
+
}
|
|
921
|
+
if (message.maxDeviationBps !== 0) {
|
|
922
|
+
writer.uint32(48).uint32(message.maxDeviationBps);
|
|
923
|
+
}
|
|
924
|
+
return writer;
|
|
925
|
+
},
|
|
926
|
+
decode(input, length) {
|
|
927
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
928
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
929
|
+
const message = createBaseMsgGrantExchangeRateAuthorization();
|
|
930
|
+
while (reader.pos < end) {
|
|
931
|
+
const tag = reader.uint32();
|
|
932
|
+
switch (tag >>> 3) {
|
|
933
|
+
case 1:
|
|
934
|
+
if (tag !== 10) {
|
|
935
|
+
break;
|
|
936
|
+
}
|
|
937
|
+
message.authority = reader.string();
|
|
938
|
+
continue;
|
|
939
|
+
case 2:
|
|
940
|
+
if (tag !== 16) {
|
|
941
|
+
break;
|
|
942
|
+
}
|
|
943
|
+
message.xrId = longToNumber(reader.uint64());
|
|
944
|
+
continue;
|
|
945
|
+
case 3:
|
|
946
|
+
if (tag !== 26) {
|
|
947
|
+
break;
|
|
948
|
+
}
|
|
949
|
+
message.operator = reader.string();
|
|
950
|
+
continue;
|
|
951
|
+
case 4:
|
|
952
|
+
if (tag !== 34) {
|
|
953
|
+
break;
|
|
954
|
+
}
|
|
955
|
+
message.expiration = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
956
|
+
continue;
|
|
957
|
+
case 5:
|
|
958
|
+
if (tag !== 42) {
|
|
959
|
+
break;
|
|
960
|
+
}
|
|
961
|
+
message.minInterval = duration_1.Duration.decode(reader, reader.uint32());
|
|
962
|
+
continue;
|
|
963
|
+
case 6:
|
|
964
|
+
if (tag !== 48) {
|
|
965
|
+
break;
|
|
966
|
+
}
|
|
967
|
+
message.maxDeviationBps = reader.uint32();
|
|
968
|
+
continue;
|
|
969
|
+
}
|
|
970
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
971
|
+
break;
|
|
972
|
+
}
|
|
973
|
+
reader.skipType(tag & 7);
|
|
974
|
+
}
|
|
975
|
+
return message;
|
|
976
|
+
},
|
|
977
|
+
fromJSON(object) {
|
|
978
|
+
return {
|
|
979
|
+
authority: isSet(object.authority) ? globalThis.String(object.authority) : "",
|
|
980
|
+
xrId: isSet(object.xrId) ? globalThis.Number(object.xrId) : 0,
|
|
981
|
+
operator: isSet(object.operator) ? globalThis.String(object.operator) : "",
|
|
982
|
+
expiration: isSet(object.expiration) ? fromJsonTimestamp(object.expiration) : undefined,
|
|
983
|
+
minInterval: isSet(object.minInterval) ? duration_1.Duration.fromJSON(object.minInterval) : undefined,
|
|
984
|
+
maxDeviationBps: isSet(object.maxDeviationBps) ? globalThis.Number(object.maxDeviationBps) : 0,
|
|
985
|
+
};
|
|
986
|
+
},
|
|
987
|
+
toJSON(message) {
|
|
988
|
+
const obj = {};
|
|
989
|
+
if (message.authority !== "") {
|
|
990
|
+
obj.authority = message.authority;
|
|
991
|
+
}
|
|
992
|
+
if (message.xrId !== 0) {
|
|
993
|
+
obj.xrId = Math.round(message.xrId);
|
|
994
|
+
}
|
|
995
|
+
if (message.operator !== "") {
|
|
996
|
+
obj.operator = message.operator;
|
|
997
|
+
}
|
|
998
|
+
if (message.expiration !== undefined) {
|
|
999
|
+
obj.expiration = message.expiration.toISOString();
|
|
1000
|
+
}
|
|
1001
|
+
if (message.minInterval !== undefined) {
|
|
1002
|
+
obj.minInterval = duration_1.Duration.toJSON(message.minInterval);
|
|
1003
|
+
}
|
|
1004
|
+
if (message.maxDeviationBps !== 0) {
|
|
1005
|
+
obj.maxDeviationBps = Math.round(message.maxDeviationBps);
|
|
1006
|
+
}
|
|
1007
|
+
return obj;
|
|
1008
|
+
},
|
|
1009
|
+
create(base) {
|
|
1010
|
+
return exports.MsgGrantExchangeRateAuthorization.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1011
|
+
},
|
|
1012
|
+
fromPartial(object) {
|
|
1013
|
+
var _a, _b, _c, _d, _e;
|
|
1014
|
+
const message = createBaseMsgGrantExchangeRateAuthorization();
|
|
1015
|
+
message.authority = (_a = object.authority) !== null && _a !== void 0 ? _a : "";
|
|
1016
|
+
message.xrId = (_b = object.xrId) !== null && _b !== void 0 ? _b : 0;
|
|
1017
|
+
message.operator = (_c = object.operator) !== null && _c !== void 0 ? _c : "";
|
|
1018
|
+
message.expiration = (_d = object.expiration) !== null && _d !== void 0 ? _d : undefined;
|
|
1019
|
+
message.minInterval = (object.minInterval !== undefined && object.minInterval !== null)
|
|
1020
|
+
? duration_1.Duration.fromPartial(object.minInterval)
|
|
1021
|
+
: undefined;
|
|
1022
|
+
message.maxDeviationBps = (_e = object.maxDeviationBps) !== null && _e !== void 0 ? _e : 0;
|
|
1023
|
+
return message;
|
|
1024
|
+
},
|
|
1025
|
+
};
|
|
1026
|
+
function createBaseMsgGrantExchangeRateAuthorizationResponse() {
|
|
1027
|
+
return {};
|
|
1028
|
+
}
|
|
1029
|
+
exports.MsgGrantExchangeRateAuthorizationResponse = {
|
|
1030
|
+
encode(_, writer = _m0.Writer.create()) {
|
|
1031
|
+
return writer;
|
|
1032
|
+
},
|
|
1033
|
+
decode(input, length) {
|
|
1034
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1035
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1036
|
+
const message = createBaseMsgGrantExchangeRateAuthorizationResponse();
|
|
1037
|
+
while (reader.pos < end) {
|
|
1038
|
+
const tag = reader.uint32();
|
|
1039
|
+
switch (tag >>> 3) {
|
|
1040
|
+
}
|
|
1041
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1042
|
+
break;
|
|
1043
|
+
}
|
|
1044
|
+
reader.skipType(tag & 7);
|
|
1045
|
+
}
|
|
1046
|
+
return message;
|
|
1047
|
+
},
|
|
1048
|
+
fromJSON(_) {
|
|
1049
|
+
return {};
|
|
1050
|
+
},
|
|
1051
|
+
toJSON(_) {
|
|
1052
|
+
const obj = {};
|
|
1053
|
+
return obj;
|
|
1054
|
+
},
|
|
1055
|
+
create(base) {
|
|
1056
|
+
return exports.MsgGrantExchangeRateAuthorizationResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1057
|
+
},
|
|
1058
|
+
fromPartial(_) {
|
|
1059
|
+
const message = createBaseMsgGrantExchangeRateAuthorizationResponse();
|
|
1060
|
+
return message;
|
|
1061
|
+
},
|
|
1062
|
+
};
|
|
1063
|
+
function createBaseMsgRevokeExchangeRateAuthorization() {
|
|
1064
|
+
return { authority: "", xrId: 0, operator: "" };
|
|
1065
|
+
}
|
|
1066
|
+
exports.MsgRevokeExchangeRateAuthorization = {
|
|
1067
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
1068
|
+
if (message.authority !== "") {
|
|
1069
|
+
writer.uint32(10).string(message.authority);
|
|
1070
|
+
}
|
|
1071
|
+
if (message.xrId !== 0) {
|
|
1072
|
+
writer.uint32(16).uint64(message.xrId);
|
|
1073
|
+
}
|
|
1074
|
+
if (message.operator !== "") {
|
|
1075
|
+
writer.uint32(26).string(message.operator);
|
|
1076
|
+
}
|
|
1077
|
+
return writer;
|
|
1078
|
+
},
|
|
1079
|
+
decode(input, length) {
|
|
1080
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1081
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1082
|
+
const message = createBaseMsgRevokeExchangeRateAuthorization();
|
|
1083
|
+
while (reader.pos < end) {
|
|
1084
|
+
const tag = reader.uint32();
|
|
1085
|
+
switch (tag >>> 3) {
|
|
1086
|
+
case 1:
|
|
1087
|
+
if (tag !== 10) {
|
|
1088
|
+
break;
|
|
1089
|
+
}
|
|
1090
|
+
message.authority = reader.string();
|
|
1091
|
+
continue;
|
|
1092
|
+
case 2:
|
|
1093
|
+
if (tag !== 16) {
|
|
1094
|
+
break;
|
|
1095
|
+
}
|
|
1096
|
+
message.xrId = longToNumber(reader.uint64());
|
|
1097
|
+
continue;
|
|
1098
|
+
case 3:
|
|
1099
|
+
if (tag !== 26) {
|
|
1100
|
+
break;
|
|
1101
|
+
}
|
|
1102
|
+
message.operator = reader.string();
|
|
1103
|
+
continue;
|
|
1104
|
+
}
|
|
1105
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1106
|
+
break;
|
|
1107
|
+
}
|
|
1108
|
+
reader.skipType(tag & 7);
|
|
1109
|
+
}
|
|
1110
|
+
return message;
|
|
1111
|
+
},
|
|
1112
|
+
fromJSON(object) {
|
|
1113
|
+
return {
|
|
1114
|
+
authority: isSet(object.authority) ? globalThis.String(object.authority) : "",
|
|
1115
|
+
xrId: isSet(object.xrId) ? globalThis.Number(object.xrId) : 0,
|
|
1116
|
+
operator: isSet(object.operator) ? globalThis.String(object.operator) : "",
|
|
1117
|
+
};
|
|
1118
|
+
},
|
|
1119
|
+
toJSON(message) {
|
|
1120
|
+
const obj = {};
|
|
1121
|
+
if (message.authority !== "") {
|
|
1122
|
+
obj.authority = message.authority;
|
|
1123
|
+
}
|
|
1124
|
+
if (message.xrId !== 0) {
|
|
1125
|
+
obj.xrId = Math.round(message.xrId);
|
|
1126
|
+
}
|
|
1127
|
+
if (message.operator !== "") {
|
|
1128
|
+
obj.operator = message.operator;
|
|
1129
|
+
}
|
|
1130
|
+
return obj;
|
|
1131
|
+
},
|
|
1132
|
+
create(base) {
|
|
1133
|
+
return exports.MsgRevokeExchangeRateAuthorization.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1134
|
+
},
|
|
1135
|
+
fromPartial(object) {
|
|
1136
|
+
var _a, _b, _c;
|
|
1137
|
+
const message = createBaseMsgRevokeExchangeRateAuthorization();
|
|
1138
|
+
message.authority = (_a = object.authority) !== null && _a !== void 0 ? _a : "";
|
|
1139
|
+
message.xrId = (_b = object.xrId) !== null && _b !== void 0 ? _b : 0;
|
|
1140
|
+
message.operator = (_c = object.operator) !== null && _c !== void 0 ? _c : "";
|
|
1141
|
+
return message;
|
|
1142
|
+
},
|
|
1143
|
+
};
|
|
1144
|
+
function createBaseMsgRevokeExchangeRateAuthorizationResponse() {
|
|
1145
|
+
return {};
|
|
1146
|
+
}
|
|
1147
|
+
exports.MsgRevokeExchangeRateAuthorizationResponse = {
|
|
1148
|
+
encode(_, writer = _m0.Writer.create()) {
|
|
1149
|
+
return writer;
|
|
1150
|
+
},
|
|
1151
|
+
decode(input, length) {
|
|
1152
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1153
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1154
|
+
const message = createBaseMsgRevokeExchangeRateAuthorizationResponse();
|
|
1155
|
+
while (reader.pos < end) {
|
|
1156
|
+
const tag = reader.uint32();
|
|
1157
|
+
switch (tag >>> 3) {
|
|
1158
|
+
}
|
|
1159
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1160
|
+
break;
|
|
1161
|
+
}
|
|
1162
|
+
reader.skipType(tag & 7);
|
|
1163
|
+
}
|
|
1164
|
+
return message;
|
|
1165
|
+
},
|
|
1166
|
+
fromJSON(_) {
|
|
1167
|
+
return {};
|
|
1168
|
+
},
|
|
1169
|
+
toJSON(_) {
|
|
1170
|
+
const obj = {};
|
|
1171
|
+
return obj;
|
|
1172
|
+
},
|
|
1173
|
+
create(base) {
|
|
1174
|
+
return exports.MsgRevokeExchangeRateAuthorizationResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1175
|
+
},
|
|
1176
|
+
fromPartial(_) {
|
|
1177
|
+
const message = createBaseMsgRevokeExchangeRateAuthorizationResponse();
|
|
1178
|
+
return message;
|
|
1179
|
+
},
|
|
1180
|
+
};
|
|
834
1181
|
function createBaseMsgUpdateParamsResponse() {
|
|
835
1182
|
return {};
|
|
836
1183
|
}
|
|
@@ -877,6 +1224,8 @@ class MsgClientImpl {
|
|
|
877
1224
|
this.CreateExchangeRate = this.CreateExchangeRate.bind(this);
|
|
878
1225
|
this.UpdateExchangeRate = this.UpdateExchangeRate.bind(this);
|
|
879
1226
|
this.SetExchangeRateState = this.SetExchangeRateState.bind(this);
|
|
1227
|
+
this.GrantExchangeRateAuthorization = this.GrantExchangeRateAuthorization.bind(this);
|
|
1228
|
+
this.RevokeExchangeRateAuthorization = this.RevokeExchangeRateAuthorization.bind(this);
|
|
880
1229
|
}
|
|
881
1230
|
UpdateParams(request) {
|
|
882
1231
|
const data = exports.MsgUpdateParams.encode(request).finish();
|
|
@@ -898,6 +1247,16 @@ class MsgClientImpl {
|
|
|
898
1247
|
const promise = this.rpc.request(this.service, "SetExchangeRateState", data);
|
|
899
1248
|
return promise.then((data) => exports.MsgSetExchangeRateStateResponse.decode(_m0.Reader.create(data)));
|
|
900
1249
|
}
|
|
1250
|
+
GrantExchangeRateAuthorization(request) {
|
|
1251
|
+
const data = exports.MsgGrantExchangeRateAuthorization.encode(request).finish();
|
|
1252
|
+
const promise = this.rpc.request(this.service, "GrantExchangeRateAuthorization", data);
|
|
1253
|
+
return promise.then((data) => exports.MsgGrantExchangeRateAuthorizationResponse.decode(_m0.Reader.create(data)));
|
|
1254
|
+
}
|
|
1255
|
+
RevokeExchangeRateAuthorization(request) {
|
|
1256
|
+
const data = exports.MsgRevokeExchangeRateAuthorization.encode(request).finish();
|
|
1257
|
+
const promise = this.rpc.request(this.service, "RevokeExchangeRateAuthorization", data);
|
|
1258
|
+
return promise.then((data) => exports.MsgRevokeExchangeRateAuthorizationResponse.decode(_m0.Reader.create(data)));
|
|
1259
|
+
}
|
|
901
1260
|
}
|
|
902
1261
|
exports.MsgClientImpl = MsgClientImpl;
|
|
903
1262
|
function toTimestamp(date) {
|
package/dist/signing.d.ts
CHANGED
|
@@ -32,6 +32,8 @@ export declare const veranaTypeUrls: {
|
|
|
32
32
|
readonly MsgCreateExchangeRate: "/verana.xr.v1.MsgCreateExchangeRate";
|
|
33
33
|
readonly MsgUpdateExchangeRate: "/verana.xr.v1.MsgUpdateExchangeRate";
|
|
34
34
|
readonly MsgSetExchangeRateState: "/verana.xr.v1.MsgSetExchangeRateState";
|
|
35
|
+
readonly MsgGrantExchangeRateAuthorization: "/verana.xr.v1.MsgGrantExchangeRateAuthorization";
|
|
36
|
+
readonly MsgRevokeExchangeRateAuthorization: "/verana.xr.v1.MsgRevokeExchangeRateAuthorization";
|
|
35
37
|
};
|
|
36
38
|
export declare const typeUrls: {
|
|
37
39
|
readonly MsgCreateCorporation: "/verana.co.v1.MsgCreateCorporation";
|
|
@@ -65,6 +67,8 @@ export declare const typeUrls: {
|
|
|
65
67
|
readonly MsgCreateExchangeRate: "/verana.xr.v1.MsgCreateExchangeRate";
|
|
66
68
|
readonly MsgUpdateExchangeRate: "/verana.xr.v1.MsgUpdateExchangeRate";
|
|
67
69
|
readonly MsgSetExchangeRateState: "/verana.xr.v1.MsgSetExchangeRateState";
|
|
70
|
+
readonly MsgGrantExchangeRateAuthorization: "/verana.xr.v1.MsgGrantExchangeRateAuthorization";
|
|
71
|
+
readonly MsgRevokeExchangeRateAuthorization: "/verana.xr.v1.MsgRevokeExchangeRateAuthorization";
|
|
68
72
|
};
|
|
69
73
|
export declare const veranaRegistryTypes: ReadonlyArray<[string, GeneratedType]>;
|
|
70
74
|
export declare function createVeranaRegistry(): Registry;
|
package/dist/signing.js
CHANGED
|
@@ -56,6 +56,8 @@ exports.veranaTypeUrls = {
|
|
|
56
56
|
MsgCreateExchangeRate: "/verana.xr.v1.MsgCreateExchangeRate",
|
|
57
57
|
MsgUpdateExchangeRate: "/verana.xr.v1.MsgUpdateExchangeRate",
|
|
58
58
|
MsgSetExchangeRateState: "/verana.xr.v1.MsgSetExchangeRateState",
|
|
59
|
+
MsgGrantExchangeRateAuthorization: "/verana.xr.v1.MsgGrantExchangeRateAuthorization",
|
|
60
|
+
MsgRevokeExchangeRateAuthorization: "/verana.xr.v1.MsgRevokeExchangeRateAuthorization",
|
|
59
61
|
};
|
|
60
62
|
exports.typeUrls = exports.veranaTypeUrls;
|
|
61
63
|
exports.veranaRegistryTypes = [
|
|
@@ -90,6 +92,8 @@ exports.veranaRegistryTypes = [
|
|
|
90
92
|
[exports.veranaTypeUrls.MsgCreateExchangeRate, tx_9.MsgCreateExchangeRate],
|
|
91
93
|
[exports.veranaTypeUrls.MsgUpdateExchangeRate, tx_9.MsgUpdateExchangeRate],
|
|
92
94
|
[exports.veranaTypeUrls.MsgSetExchangeRateState, tx_9.MsgSetExchangeRateState],
|
|
95
|
+
[exports.veranaTypeUrls.MsgGrantExchangeRateAuthorization, tx_9.MsgGrantExchangeRateAuthorization],
|
|
96
|
+
[exports.veranaTypeUrls.MsgRevokeExchangeRateAuthorization, tx_9.MsgRevokeExchangeRateAuthorization],
|
|
93
97
|
];
|
|
94
98
|
function createVeranaRegistry() {
|
|
95
99
|
const registry = new proto_signing_1.Registry(stargate_1.defaultRegistryTypes);
|
|
@@ -136,6 +140,8 @@ function createVeranaAminoTypes() {
|
|
|
136
140
|
[exports.veranaTypeUrls.MsgCreateExchangeRate]: xr_1.MsgCreateExchangeRateAminoConverter,
|
|
137
141
|
[exports.veranaTypeUrls.MsgUpdateExchangeRate]: xr_1.MsgUpdateExchangeRateAminoConverter,
|
|
138
142
|
[exports.veranaTypeUrls.MsgSetExchangeRateState]: xr_1.MsgSetExchangeRateStateAminoConverter,
|
|
143
|
+
[exports.veranaTypeUrls.MsgGrantExchangeRateAuthorization]: xr_1.MsgGrantExchangeRateAuthorizationAminoConverter,
|
|
144
|
+
[exports.veranaTypeUrls.MsgRevokeExchangeRateAuthorization]: xr_1.MsgRevokeExchangeRateAuthorizationAminoConverter,
|
|
139
145
|
});
|
|
140
146
|
return aminoTypesRef;
|
|
141
147
|
}
|
package/package.json
CHANGED