juno-network 0.8.0 → 0.10.0

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.
Files changed (139) hide show
  1. package/main/codegen/JunoSwap.client.js +1 -1
  2. package/main/codegen/cosmos/authz/v1beta1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
  3. package/main/codegen/cosmos/bank/v1beta1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
  4. package/main/codegen/cosmos/bundle.js +8 -8
  5. package/main/codegen/cosmos/distribution/v1beta1/query.lcd.js +1 -1
  6. package/main/codegen/cosmos/distribution/v1beta1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
  7. package/main/codegen/cosmos/gov/v1/query.lcd.js +2 -2
  8. package/main/codegen/cosmos/gov/v1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
  9. package/main/codegen/cosmos/gov/v1beta1/query.lcd.js +2 -2
  10. package/main/codegen/cosmos/gov/v1beta1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
  11. package/main/codegen/cosmos/rpc.query.js +8 -8
  12. package/main/codegen/cosmos/staking/v1beta1/query.lcd.js +2 -2
  13. package/main/codegen/cosmos/staking/v1beta1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
  14. package/main/codegen/cosmos/staking/v1beta1/tx.amino.js +4 -4
  15. package/main/codegen/cosmos/tx/v1beta1/{service.rpc.svc.js → service.rpc.Service.js} +8 -8
  16. package/main/codegen/cosmos/upgrade/v1beta1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
  17. package/main/codegen/cosmwasm/bundle.js +1 -1
  18. package/main/codegen/cosmwasm/rpc.query.js +9 -9
  19. package/main/codegen/cosmwasm/wasm/v1/query.lcd.js +2 -2
  20. package/main/codegen/cosmwasm/wasm/v1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
  21. package/main/codegen/google/protobuf/descriptor.js +18 -18
  22. package/main/codegen/helpers.js +29 -18
  23. package/main/codegen/ibc/applications/transfer/v1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
  24. package/main/codegen/ibc/applications/transfer/v1/tx.amino.js +1 -1
  25. package/main/codegen/ibc/bundle.js +4 -4
  26. package/main/codegen/ibc/core/channel/v1/query.lcd.js +5 -5
  27. package/main/codegen/ibc/core/channel/v1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
  28. package/main/codegen/ibc/core/client/v1/query.lcd.js +1 -1
  29. package/main/codegen/ibc/core/client/v1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
  30. package/main/codegen/ibc/core/connection/v1/query.lcd.js +1 -1
  31. package/main/codegen/ibc/core/connection/v1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
  32. package/main/codegen/ibc/rpc.query.js +12 -12
  33. package/main/codegen/juno/bundle.js +1 -1
  34. package/main/codegen/juno/mint/{query.rpc.query.js → query.rpc.Query.js} +0 -0
  35. package/main/codegen/juno/rpc.query.js +9 -9
  36. package/module/codegen/JunoSwap.client.js +1 -1
  37. package/module/codegen/contracts.js +1 -1
  38. package/module/codegen/cosmos/authz/v1beta1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
  39. package/module/codegen/cosmos/bank/v1beta1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
  40. package/module/codegen/cosmos/bundle.js +8 -8
  41. package/module/codegen/cosmos/distribution/v1beta1/query.lcd.js +1 -1
  42. package/module/codegen/cosmos/distribution/v1beta1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
  43. package/module/codegen/cosmos/gov/v1/query.lcd.js +2 -2
  44. package/module/codegen/cosmos/gov/v1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
  45. package/module/codegen/cosmos/gov/v1beta1/query.lcd.js +2 -2
  46. package/module/codegen/cosmos/gov/v1beta1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
  47. package/module/codegen/cosmos/rpc.query.js +8 -8
  48. package/module/codegen/cosmos/staking/v1beta1/query.lcd.js +2 -2
  49. package/module/codegen/cosmos/staking/v1beta1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
  50. package/module/codegen/cosmos/staking/v1beta1/tx.amino.js +4 -4
  51. package/module/codegen/cosmos/tx/v1beta1/{service.rpc.svc.js → service.rpc.Service.js} +2 -2
  52. package/module/codegen/cosmos/upgrade/v1beta1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
  53. package/module/codegen/cosmwasm/bundle.js +1 -1
  54. package/module/codegen/cosmwasm/rpc.query.js +9 -9
  55. package/module/codegen/cosmwasm/wasm/v1/query.lcd.js +2 -2
  56. package/module/codegen/cosmwasm/wasm/v1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
  57. package/module/codegen/google/protobuf/descriptor.js +18 -18
  58. package/module/codegen/helpers.js +18 -10
  59. package/module/codegen/ibc/applications/transfer/v1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
  60. package/module/codegen/ibc/applications/transfer/v1/tx.amino.js +1 -1
  61. package/module/codegen/ibc/bundle.js +4 -4
  62. package/module/codegen/ibc/core/channel/v1/query.lcd.js +5 -5
  63. package/module/codegen/ibc/core/channel/v1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
  64. package/module/codegen/ibc/core/client/v1/query.lcd.js +1 -1
  65. package/module/codegen/ibc/core/client/v1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
  66. package/module/codegen/ibc/core/connection/v1/query.lcd.js +1 -1
  67. package/module/codegen/ibc/core/connection/v1/{query.rpc.query.js → query.rpc.Query.js} +0 -0
  68. package/module/codegen/ibc/rpc.query.js +12 -12
  69. package/module/codegen/index.js +1 -1
  70. package/module/codegen/juno/bundle.js +1 -1
  71. package/module/codegen/juno/mint/{query.rpc.query.js → query.rpc.Query.js} +0 -0
  72. package/module/codegen/juno/rpc.query.js +9 -9
  73. package/package.json +3 -3
  74. package/src/codegen/JunoSwap.client.ts +1 -1
  75. package/src/codegen/JunoSwap.types.ts +1 -1
  76. package/src/codegen/contracts.ts +1 -1
  77. package/src/codegen/cosmos/authz/v1beta1/{query.rpc.query.ts → query.rpc.Query.ts} +0 -0
  78. package/src/codegen/cosmos/bank/v1beta1/{query.rpc.query.ts → query.rpc.Query.ts} +0 -0
  79. package/src/codegen/cosmos/bundle.ts +8 -8
  80. package/src/codegen/cosmos/client.ts +3 -2
  81. package/src/codegen/cosmos/distribution/v1beta1/query.lcd.ts +1 -1
  82. package/src/codegen/cosmos/distribution/v1beta1/{query.rpc.query.ts → query.rpc.Query.ts} +0 -0
  83. package/src/codegen/cosmos/gov/v1/query.lcd.ts +2 -2
  84. package/src/codegen/cosmos/gov/v1/{query.rpc.query.ts → query.rpc.Query.ts} +0 -0
  85. package/src/codegen/cosmos/gov/v1beta1/query.lcd.ts +2 -2
  86. package/src/codegen/cosmos/gov/v1beta1/{query.rpc.query.ts → query.rpc.Query.ts} +0 -0
  87. package/src/codegen/cosmos/rpc.query.ts +10 -10
  88. package/src/codegen/cosmos/staking/v1beta1/query.lcd.ts +2 -2
  89. package/src/codegen/cosmos/staking/v1beta1/{query.rpc.query.ts → query.rpc.Query.ts} +0 -0
  90. package/src/codegen/cosmos/staking/v1beta1/tx.amino.ts +4 -4
  91. package/src/codegen/cosmos/tx/v1beta1/{service.rpc.svc.ts → service.rpc.Service.ts} +2 -2
  92. package/src/codegen/cosmos/upgrade/v1beta1/{query.rpc.query.ts → query.rpc.Query.ts} +0 -0
  93. package/src/codegen/cosmwasm/bundle.ts +1 -1
  94. package/src/codegen/cosmwasm/client.ts +3 -2
  95. package/src/codegen/cosmwasm/rpc.query.ts +11 -11
  96. package/src/codegen/cosmwasm/wasm/v1/query.lcd.ts +2 -2
  97. package/src/codegen/cosmwasm/wasm/v1/{query.rpc.query.ts → query.rpc.Query.ts} +0 -0
  98. package/src/codegen/google/protobuf/descriptor.ts +18 -18
  99. package/src/codegen/helpers.ts +24 -16
  100. package/src/codegen/ibc/applications/transfer/v1/{query.rpc.query.ts → query.rpc.Query.ts} +0 -0
  101. package/src/codegen/ibc/applications/transfer/v1/tx.amino.ts +1 -1
  102. package/src/codegen/ibc/bundle.ts +4 -4
  103. package/src/codegen/ibc/client.ts +3 -2
  104. package/src/codegen/ibc/core/channel/v1/query.lcd.ts +5 -5
  105. package/src/codegen/ibc/core/channel/v1/{query.rpc.query.ts → query.rpc.Query.ts} +0 -0
  106. package/src/codegen/ibc/core/client/v1/query.lcd.ts +1 -1
  107. package/src/codegen/ibc/core/client/v1/{query.rpc.query.ts → query.rpc.Query.ts} +0 -0
  108. package/src/codegen/ibc/core/connection/v1/query.lcd.ts +1 -1
  109. package/src/codegen/ibc/core/connection/v1/{query.rpc.query.ts → query.rpc.Query.ts} +0 -0
  110. package/src/codegen/ibc/rpc.query.ts +14 -14
  111. package/src/codegen/index.ts +1 -1
  112. package/src/codegen/juno/bundle.ts +1 -1
  113. package/src/codegen/juno/mint/{query.rpc.query.ts → query.rpc.Query.ts} +0 -0
  114. package/src/codegen/juno/rpc.query.ts +11 -11
  115. package/types/codegen/JunoSwap.client.d.ts +1 -1
  116. package/types/codegen/JunoSwap.types.d.ts +1 -1
  117. package/types/codegen/contracts.d.ts +1 -1
  118. package/types/codegen/cosmos/authz/v1beta1/{query.rpc.query.d.ts → query.rpc.Query.d.ts} +0 -0
  119. package/types/codegen/cosmos/bank/v1beta1/{query.rpc.query.d.ts → query.rpc.Query.d.ts} +0 -0
  120. package/types/codegen/cosmos/bundle.d.ts +281 -19593
  121. package/types/codegen/cosmos/distribution/v1beta1/{query.rpc.query.d.ts → query.rpc.Query.d.ts} +0 -0
  122. package/types/codegen/cosmos/gov/v1/{query.rpc.query.d.ts → query.rpc.Query.d.ts} +0 -0
  123. package/types/codegen/cosmos/gov/v1beta1/{query.rpc.query.d.ts → query.rpc.Query.d.ts} +0 -0
  124. package/types/codegen/cosmos/staking/v1beta1/{query.rpc.query.d.ts → query.rpc.Query.d.ts} +0 -0
  125. package/types/codegen/cosmos/tx/v1beta1/{service.rpc.svc.d.ts → service.rpc.Service.d.ts} +1 -1
  126. package/types/codegen/cosmos/upgrade/v1beta1/{query.rpc.query.d.ts → query.rpc.Query.d.ts} +0 -0
  127. package/types/codegen/cosmwasm/bundle.d.ts +59 -4177
  128. package/types/codegen/cosmwasm/wasm/v1/{query.rpc.query.d.ts → query.rpc.Query.d.ts} +0 -0
  129. package/types/codegen/google/bundle.d.ts +106 -7632
  130. package/types/codegen/helpers.d.ts +3 -3
  131. package/types/codegen/ibc/applications/transfer/v1/{query.rpc.query.d.ts → query.rpc.Query.d.ts} +0 -0
  132. package/types/codegen/ibc/bundle.d.ts +257 -18220
  133. package/types/codegen/ibc/core/channel/v1/{query.rpc.query.d.ts → query.rpc.Query.d.ts} +0 -0
  134. package/types/codegen/ibc/core/client/v1/{query.rpc.query.d.ts → query.rpc.Query.d.ts} +0 -0
  135. package/types/codegen/ibc/core/connection/v1/{query.rpc.query.d.ts → query.rpc.Query.d.ts} +0 -0
  136. package/types/codegen/index.d.ts +1 -1
  137. package/types/codegen/juno/bundle.d.ts +8 -505
  138. package/types/codegen/juno/mint/{query.rpc.query.d.ts → query.rpc.Query.d.ts} +0 -0
  139. package/types/codegen/tendermint/bundle.d.ts +248 -17856
@@ -810,8 +810,8 @@ function createBaseFieldDescriptorProto() {
810
810
  return {
811
811
  name: "",
812
812
  number: 0,
813
- label: 0,
814
- type: 0,
813
+ label: 1,
814
+ type: 1,
815
815
  typeName: "",
816
816
  extendee: "",
817
817
  defaultValue: "",
@@ -828,10 +828,10 @@ export const FieldDescriptorProto = {
828
828
  if (message.number !== 0) {
829
829
  writer.uint32(24).int32(message.number);
830
830
  }
831
- if (message.label !== 0) {
831
+ if (message.label !== 1) {
832
832
  writer.uint32(32).int32(message.label);
833
833
  }
834
- if (message.type !== 0) {
834
+ if (message.type !== 1) {
835
835
  writer.uint32(40).int32(message.type);
836
836
  }
837
837
  if (message.typeName !== "") {
@@ -903,8 +903,8 @@ export const FieldDescriptorProto = {
903
903
  const message = createBaseFieldDescriptorProto();
904
904
  message.name = (_object$name3 = object.name) !== null && _object$name3 !== void 0 ? _object$name3 : "";
905
905
  message.number = (_object$number = object.number) !== null && _object$number !== void 0 ? _object$number : 0;
906
- message.label = (_object$label = object.label) !== null && _object$label !== void 0 ? _object$label : 0;
907
- message.type = (_object$type = object.type) !== null && _object$type !== void 0 ? _object$type : 0;
906
+ message.label = (_object$label = object.label) !== null && _object$label !== void 0 ? _object$label : 1;
907
+ message.type = (_object$type = object.type) !== null && _object$type !== void 0 ? _object$type : 1;
908
908
  message.typeName = (_object$typeName = object.typeName) !== null && _object$typeName !== void 0 ? _object$typeName : "";
909
909
  message.extendee = (_object$extendee = object.extendee) !== null && _object$extendee !== void 0 ? _object$extendee : "";
910
910
  message.defaultValue = (_object$defaultValue = object.defaultValue) !== null && _object$defaultValue !== void 0 ? _object$defaultValue : "";
@@ -1257,7 +1257,7 @@ function createBaseFileOptions() {
1257
1257
  javaMultipleFiles: false,
1258
1258
  javaGenerateEqualsAndHash: false,
1259
1259
  javaStringCheckUtf8: false,
1260
- optimizeFor: 0,
1260
+ optimizeFor: 1,
1261
1261
  goPackage: "",
1262
1262
  ccGenericServices: false,
1263
1263
  javaGenericServices: false,
@@ -1292,7 +1292,7 @@ export const FileOptions = {
1292
1292
  if (message.javaStringCheckUtf8 === true) {
1293
1293
  writer.uint32(216).bool(message.javaStringCheckUtf8);
1294
1294
  }
1295
- if (message.optimizeFor !== 0) {
1295
+ if (message.optimizeFor !== 1) {
1296
1296
  writer.uint32(72).int32(message.optimizeFor);
1297
1297
  }
1298
1298
  if (message.goPackage !== "") {
@@ -1427,7 +1427,7 @@ export const FileOptions = {
1427
1427
  message.javaMultipleFiles = (_object$javaMultipleF = object.javaMultipleFiles) !== null && _object$javaMultipleF !== void 0 ? _object$javaMultipleF : false;
1428
1428
  message.javaGenerateEqualsAndHash = (_object$javaGenerateE = object.javaGenerateEqualsAndHash) !== null && _object$javaGenerateE !== void 0 ? _object$javaGenerateE : false;
1429
1429
  message.javaStringCheckUtf8 = (_object$javaStringChe = object.javaStringCheckUtf8) !== null && _object$javaStringChe !== void 0 ? _object$javaStringChe : false;
1430
- message.optimizeFor = (_object$optimizeFor = object.optimizeFor) !== null && _object$optimizeFor !== void 0 ? _object$optimizeFor : 0;
1430
+ message.optimizeFor = (_object$optimizeFor = object.optimizeFor) !== null && _object$optimizeFor !== void 0 ? _object$optimizeFor : 1;
1431
1431
  message.goPackage = (_object$goPackage = object.goPackage) !== null && _object$goPackage !== void 0 ? _object$goPackage : "";
1432
1432
  message.ccGenericServices = (_object$ccGenericServ = object.ccGenericServices) !== null && _object$ccGenericServ !== void 0 ? _object$ccGenericServ : false;
1433
1433
  message.javaGenericServices = (_object$javaGenericSe = object.javaGenericServices) !== null && _object$javaGenericSe !== void 0 ? _object$javaGenericSe : false;
@@ -1516,9 +1516,9 @@ export const MessageOptions = {
1516
1516
  };
1517
1517
  function createBaseFieldOptions() {
1518
1518
  return {
1519
- ctype: 0,
1519
+ ctype: 1,
1520
1520
  packed: false,
1521
- jstype: 0,
1521
+ jstype: 1,
1522
1522
  lazy: false,
1523
1523
  deprecated: false,
1524
1524
  weak: false,
@@ -1527,13 +1527,13 @@ function createBaseFieldOptions() {
1527
1527
  }
1528
1528
  export const FieldOptions = {
1529
1529
  encode(message, writer = _m0.Writer.create()) {
1530
- if (message.ctype !== 0) {
1530
+ if (message.ctype !== 1) {
1531
1531
  writer.uint32(8).int32(message.ctype);
1532
1532
  }
1533
1533
  if (message.packed === true) {
1534
1534
  writer.uint32(16).bool(message.packed);
1535
1535
  }
1536
- if (message.jstype !== 0) {
1536
+ if (message.jstype !== 1) {
1537
1537
  writer.uint32(48).int32(message.jstype);
1538
1538
  }
1539
1539
  if (message.lazy === true) {
@@ -1588,9 +1588,9 @@ export const FieldOptions = {
1588
1588
  fromPartial(object) {
1589
1589
  var _object$ctype, _object$packed, _object$jstype, _object$lazy, _object$deprecated3, _object$weak, _object$uninterpreted4;
1590
1590
  const message = createBaseFieldOptions();
1591
- message.ctype = (_object$ctype = object.ctype) !== null && _object$ctype !== void 0 ? _object$ctype : 0;
1591
+ message.ctype = (_object$ctype = object.ctype) !== null && _object$ctype !== void 0 ? _object$ctype : 1;
1592
1592
  message.packed = (_object$packed = object.packed) !== null && _object$packed !== void 0 ? _object$packed : false;
1593
- message.jstype = (_object$jstype = object.jstype) !== null && _object$jstype !== void 0 ? _object$jstype : 0;
1593
+ message.jstype = (_object$jstype = object.jstype) !== null && _object$jstype !== void 0 ? _object$jstype : 1;
1594
1594
  message.lazy = (_object$lazy = object.lazy) !== null && _object$lazy !== void 0 ? _object$lazy : false;
1595
1595
  message.deprecated = (_object$deprecated3 = object.deprecated) !== null && _object$deprecated3 !== void 0 ? _object$deprecated3 : false;
1596
1596
  message.weak = (_object$weak = object.weak) !== null && _object$weak !== void 0 ? _object$weak : false;
@@ -1777,7 +1777,7 @@ export const ServiceOptions = {
1777
1777
  function createBaseMethodOptions() {
1778
1778
  return {
1779
1779
  deprecated: false,
1780
- idempotencyLevel: 0,
1780
+ idempotencyLevel: 1,
1781
1781
  uninterpretedOption: []
1782
1782
  };
1783
1783
  }
@@ -1786,7 +1786,7 @@ export const MethodOptions = {
1786
1786
  if (message.deprecated === true) {
1787
1787
  writer.uint32(264).bool(message.deprecated);
1788
1788
  }
1789
- if (message.idempotencyLevel !== 0) {
1789
+ if (message.idempotencyLevel !== 1) {
1790
1790
  writer.uint32(272).int32(message.idempotencyLevel);
1791
1791
  }
1792
1792
  for (const v of message.uninterpretedOption) {
@@ -1821,7 +1821,7 @@ export const MethodOptions = {
1821
1821
  var _object$deprecated7, _object$idempotencyLe, _object$uninterpreted9;
1822
1822
  const message = createBaseMethodOptions();
1823
1823
  message.deprecated = (_object$deprecated7 = object.deprecated) !== null && _object$deprecated7 !== void 0 ? _object$deprecated7 : false;
1824
- message.idempotencyLevel = (_object$idempotencyLe = object.idempotencyLevel) !== null && _object$idempotencyLe !== void 0 ? _object$idempotencyLe : 0;
1824
+ message.idempotencyLevel = (_object$idempotencyLe = object.idempotencyLevel) !== null && _object$idempotencyLe !== void 0 ? _object$idempotencyLe : 1;
1825
1825
  message.uninterpretedOption = ((_object$uninterpreted9 = object.uninterpretedOption) === null || _object$uninterpreted9 === void 0 ? void 0 : _object$uninterpreted9.map(e => UninterpretedOption.fromPartial(e))) || [];
1826
1826
  return message;
1827
1827
  }
@@ -1,11 +1,13 @@
1
1
  /**
2
- * This file and any referenced files were automatically generated by @osmonauts/telescope@0.59.0
2
+ * This file and any referenced files were automatically generated by @osmonauts/telescope@0.76.0
3
3
  * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
4
4
  * and run the transpile command or yarn proto command to regenerate this bundle.
5
5
  */
6
6
 
7
7
  import * as _m0 from "protobufjs/minimal";
8
- import * as Long from 'long';
8
+ import Long from 'long';
9
+
10
+ // @ts-ignore
9
11
  if (_m0.util.Long !== Long) {
10
12
  _m0.util.Long = Long;
11
13
  _m0.configure();
@@ -57,7 +59,7 @@ export function toDuration(duration) {
57
59
  }
58
60
  ;
59
61
  export function fromDuration(duration) {
60
- return (parseInt(duration.seconds) * 1000000000 + duration.nanos).toString();
62
+ return (parseInt(duration.seconds.toString()) * 1000000000 + duration.nanos).toString();
61
63
  }
62
64
  ;
63
65
  export function isSet(value) {
@@ -85,11 +87,11 @@ export const setPaginationParams = (options, pagination) => {
85
87
  // Uint8Array to String
86
88
  options.params['pagination.key'] = Buffer.from(pagination.key).toString('base64');
87
89
  }
88
- if (typeof (pagination === null || pagination === void 0 ? void 0 : pagination.offset) !== "undefined") {
89
- options.params['pagination.limit'] = Long.toString(pagination.limit);
90
- }
91
90
  if (typeof (pagination === null || pagination === void 0 ? void 0 : pagination.limit) !== "undefined") {
92
- options.params['pagination.offset'] = Long.toString(pagination.offset);
91
+ options.params["pagination.limit"] = pagination.limit.toString();
92
+ }
93
+ if (typeof (pagination === null || pagination === void 0 ? void 0 : pagination.offset) !== "undefined") {
94
+ options.params["pagination.offset"] = pagination.offset.toString();
93
95
  }
94
96
  if (typeof (pagination === null || pagination === void 0 ? void 0 : pagination.reverse) !== "undefined") {
95
97
  options.params['pagination.reverse'] = pagination.reverse;
@@ -118,13 +120,19 @@ const fromJSON = object => {
118
120
  nanos: isSet(object.nanos) ? Number(object.nanos) : 0
119
121
  };
120
122
  };
123
+ const timestampFromJSON = object => {
124
+ return {
125
+ seconds: isSet(object.seconds) ? Long.fromValue(object.seconds) : Long.ZERO,
126
+ nanos: isSet(object.nanos) ? Number(object.nanos) : 0
127
+ };
128
+ };
121
129
  export function fromJsonTimestamp(o) {
122
130
  if (o instanceof Date) {
123
- return o;
131
+ return toTimestamp(o);
124
132
  } else if (typeof o === "string") {
125
- return new Date(o);
133
+ return toTimestamp(new Date(o));
126
134
  } else {
127
- return fromTimestamp(fromJSON(o));
135
+ return timestampFromJSON(o);
128
136
  }
129
137
  }
130
138
  function numberToLong(number) {
@@ -17,7 +17,7 @@ export const AminoConverter = {
17
17
  source_channel: sourceChannel,
18
18
  token: {
19
19
  denom: token.denom,
20
- amount: Long.fromNumber(token.amount).toString()
20
+ amount: Long.fromValue(token.amount).toString()
21
21
  },
22
22
  sender,
23
23
  receiver,
@@ -35,10 +35,10 @@ import * as _141 from "./applications/transfer/v1/query.lcd";
35
35
  import * as _142 from "./core/channel/v1/query.lcd";
36
36
  import * as _143 from "./core/client/v1/query.lcd";
37
37
  import * as _144 from "./core/connection/v1/query.lcd";
38
- import * as _145 from "./applications/transfer/v1/query.rpc.query";
39
- import * as _146 from "./core/channel/v1/query.rpc.query";
40
- import * as _147 from "./core/client/v1/query.rpc.query";
41
- import * as _148 from "./core/connection/v1/query.rpc.query";
38
+ import * as _145 from "./applications/transfer/v1/query.rpc.Query";
39
+ import * as _146 from "./core/channel/v1/query.rpc.Query";
40
+ import * as _147 from "./core/client/v1/query.rpc.Query";
41
+ import * as _148 from "./core/connection/v1/query.rpc.Query";
42
42
  import * as _149 from "./applications/transfer/v1/tx.rpc.msg";
43
43
  import * as _150 from "./core/channel/v1/tx.rpc.msg";
44
44
  import * as _151 from "./core/client/v1/tx.rpc.msg";
@@ -23,7 +23,7 @@ export class LCDQueryClient {
23
23
  /* Channel queries an IBC Channel. */
24
24
 
25
25
  async channel(params) {
26
- const endpoint = `ibc/core/channel/v1/channels/${params.channelId}ports/${params.portId}`;
26
+ const endpoint = `ibc/core/channel/v1/channels/${params.channelId}/ports/${params.portId}`;
27
27
  return await this.req.get(endpoint);
28
28
  }
29
29
  /* Channels queries all the IBC channels of a chain. */
@@ -64,13 +64,13 @@ export class LCDQueryClient {
64
64
  associated with the provided channel identifiers. */
65
65
 
66
66
  async channelConsensusState(params) {
67
- const endpoint = `ibc/core/channel/v1/channels/${params.channelId}/ports/${params.portId}/consensus_state/revision/${params.revisionNumber}height/${params.revisionHeight}`;
67
+ const endpoint = `ibc/core/channel/v1/channels/${params.channelId}/ports/${params.portId}/consensus_state/revision/${params.revisionNumber}/height/${params.revisionHeight}`;
68
68
  return await this.req.get(endpoint);
69
69
  }
70
70
  /* PacketCommitment queries a stored packet commitment hash. */
71
71
 
72
72
  async packetCommitment(params) {
73
- const endpoint = `ibc/core/channel/v1/channels/${params.channelId}/ports/${params.portId}packet_commitments/${params.sequence}`;
73
+ const endpoint = `ibc/core/channel/v1/channels/${params.channelId}/ports/${params.portId}/packet_commitments/${params.sequence}`;
74
74
  return await this.req.get(endpoint);
75
75
  }
76
76
  /* PacketCommitments returns all the packet commitments hashes associated
@@ -90,13 +90,13 @@ export class LCDQueryClient {
90
90
  queried chain */
91
91
 
92
92
  async packetReceipt(params) {
93
- const endpoint = `ibc/core/channel/v1/channels/${params.channelId}/ports/${params.portId}packet_receipts/${params.sequence}`;
93
+ const endpoint = `ibc/core/channel/v1/channels/${params.channelId}/ports/${params.portId}/packet_receipts/${params.sequence}`;
94
94
  return await this.req.get(endpoint);
95
95
  }
96
96
  /* PacketAcknowledgement queries a stored packet acknowledgement hash. */
97
97
 
98
98
  async packetAcknowledgement(params) {
99
- const endpoint = `ibc/core/channel/v1/channels/${params.channelId}/ports/${params.portId}packet_acks/${params.sequence}`;
99
+ const endpoint = `ibc/core/channel/v1/channels/${params.channelId}/ports/${params.portId}/packet_acks/${params.sequence}`;
100
100
  return await this.req.get(endpoint);
101
101
  }
102
102
  /* PacketAcknowledgements returns all the packet acknowledgements associated
@@ -45,7 +45,7 @@ export class LCDQueryClient {
45
45
  if (typeof (params === null || params === void 0 ? void 0 : params.latestHeight) !== "undefined") {
46
46
  options.params.latest_height = params.latestHeight;
47
47
  }
48
- const endpoint = `ibc/core/client/v1/consensus_states/${params.clientId}/revision/${params.revisionNumber}height/${params.revisionHeight}`;
48
+ const endpoint = `ibc/core/client/v1/consensus_states/${params.clientId}/revision/${params.revisionNumber}/height/${params.revisionHeight}`;
49
49
  return await this.req.get(endpoint, options);
50
50
  }
51
51
  /* ConsensusStates queries all the consensus state associated with a given
@@ -50,7 +50,7 @@ export class LCDQueryClient {
50
50
  connection. */
51
51
 
52
52
  async connectionConsensusState(params) {
53
- const endpoint = `ibc/core/connection/v1/connections/${params.connectionId}/consensus_state/revision/${params.revisionNumber}height/${params.revisionHeight}`;
53
+ const endpoint = `ibc/core/connection/v1/connections/${params.connectionId}/consensus_state/revision/${params.revisionNumber}/height/${params.revisionHeight}`;
54
54
  return await this.req.get(endpoint);
55
55
  }
56
56
  }
@@ -8,43 +8,43 @@ export const createRPCQueryClient = async ({
8
8
  return {
9
9
  cosmos: {
10
10
  authz: {
11
- v1beta1: (await import("../cosmos/authz/v1beta1/query.rpc.query")).createRpcQueryExtension(client)
11
+ v1beta1: (await import("../cosmos/authz/v1beta1/query.rpc.Query")).createRpcQueryExtension(client)
12
12
  },
13
13
  bank: {
14
- v1beta1: (await import("../cosmos/bank/v1beta1/query.rpc.query")).createRpcQueryExtension(client)
14
+ v1beta1: (await import("../cosmos/bank/v1beta1/query.rpc.Query")).createRpcQueryExtension(client)
15
15
  },
16
16
  distribution: {
17
- v1beta1: (await import("../cosmos/distribution/v1beta1/query.rpc.query")).createRpcQueryExtension(client)
17
+ v1beta1: (await import("../cosmos/distribution/v1beta1/query.rpc.Query")).createRpcQueryExtension(client)
18
18
  },
19
19
  gov: {
20
- v1: (await import("../cosmos/gov/v1/query.rpc.query")).createRpcQueryExtension(client),
21
- v1beta1: (await import("../cosmos/gov/v1beta1/query.rpc.query")).createRpcQueryExtension(client)
20
+ v1: (await import("../cosmos/gov/v1/query.rpc.Query")).createRpcQueryExtension(client),
21
+ v1beta1: (await import("../cosmos/gov/v1beta1/query.rpc.Query")).createRpcQueryExtension(client)
22
22
  },
23
23
  staking: {
24
- v1beta1: (await import("../cosmos/staking/v1beta1/query.rpc.query")).createRpcQueryExtension(client)
24
+ v1beta1: (await import("../cosmos/staking/v1beta1/query.rpc.Query")).createRpcQueryExtension(client)
25
25
  },
26
26
  tx: {
27
- v1beta1: (await import("../cosmos/tx/v1beta1/service.rpc.svc")).createRpcQueryExtension(client)
27
+ v1beta1: (await import("../cosmos/tx/v1beta1/service.rpc.Service")).createRpcQueryExtension(client)
28
28
  },
29
29
  upgrade: {
30
- v1beta1: (await import("../cosmos/upgrade/v1beta1/query.rpc.query")).createRpcQueryExtension(client)
30
+ v1beta1: (await import("../cosmos/upgrade/v1beta1/query.rpc.Query")).createRpcQueryExtension(client)
31
31
  }
32
32
  },
33
33
  ibc: {
34
34
  applications: {
35
35
  transfer: {
36
- v1: (await import("./applications/transfer/v1/query.rpc.query")).createRpcQueryExtension(client)
36
+ v1: (await import("./applications/transfer/v1/query.rpc.Query")).createRpcQueryExtension(client)
37
37
  }
38
38
  },
39
39
  core: {
40
40
  channel: {
41
- v1: (await import("./core/channel/v1/query.rpc.query")).createRpcQueryExtension(client)
41
+ v1: (await import("./core/channel/v1/query.rpc.Query")).createRpcQueryExtension(client)
42
42
  },
43
43
  client: {
44
- v1: (await import("./core/client/v1/query.rpc.query")).createRpcQueryExtension(client)
44
+ v1: (await import("./core/client/v1/query.rpc.Query")).createRpcQueryExtension(client)
45
45
  },
46
46
  connection: {
47
- v1: (await import("./core/connection/v1/query.rpc.query")).createRpcQueryExtension(client)
47
+ v1: (await import("./core/connection/v1/query.rpc.Query")).createRpcQueryExtension(client)
48
48
  }
49
49
  }
50
50
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file and any referenced files were automatically generated by @osmonauts/telescope@0.59.0
2
+ * This file and any referenced files were automatically generated by @osmonauts/telescope@0.76.0
3
3
  * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
4
4
  * and run the transpile command or yarn proto command to regenerate this bundle.
5
5
  */
@@ -5,7 +5,7 @@ import * as _79 from "./mint/genesis";
5
5
  import * as _80 from "./mint/mint";
6
6
  import * as _81 from "./mint/query";
7
7
  import * as _153 from "./mint/query.lcd";
8
- import * as _154 from "./mint/query.rpc.query";
8
+ import * as _154 from "./mint/query.rpc.Query";
9
9
  import * as _164 from "./lcd";
10
10
  import * as _165 from "./rpc.query";
11
11
  export let juno;
@@ -8,30 +8,30 @@ export const createRPCQueryClient = async ({
8
8
  return {
9
9
  cosmos: {
10
10
  authz: {
11
- v1beta1: (await import("../cosmos/authz/v1beta1/query.rpc.query")).createRpcQueryExtension(client)
11
+ v1beta1: (await import("../cosmos/authz/v1beta1/query.rpc.Query")).createRpcQueryExtension(client)
12
12
  },
13
13
  bank: {
14
- v1beta1: (await import("../cosmos/bank/v1beta1/query.rpc.query")).createRpcQueryExtension(client)
14
+ v1beta1: (await import("../cosmos/bank/v1beta1/query.rpc.Query")).createRpcQueryExtension(client)
15
15
  },
16
16
  distribution: {
17
- v1beta1: (await import("../cosmos/distribution/v1beta1/query.rpc.query")).createRpcQueryExtension(client)
17
+ v1beta1: (await import("../cosmos/distribution/v1beta1/query.rpc.Query")).createRpcQueryExtension(client)
18
18
  },
19
19
  gov: {
20
- v1: (await import("../cosmos/gov/v1/query.rpc.query")).createRpcQueryExtension(client),
21
- v1beta1: (await import("../cosmos/gov/v1beta1/query.rpc.query")).createRpcQueryExtension(client)
20
+ v1: (await import("../cosmos/gov/v1/query.rpc.Query")).createRpcQueryExtension(client),
21
+ v1beta1: (await import("../cosmos/gov/v1beta1/query.rpc.Query")).createRpcQueryExtension(client)
22
22
  },
23
23
  staking: {
24
- v1beta1: (await import("../cosmos/staking/v1beta1/query.rpc.query")).createRpcQueryExtension(client)
24
+ v1beta1: (await import("../cosmos/staking/v1beta1/query.rpc.Query")).createRpcQueryExtension(client)
25
25
  },
26
26
  tx: {
27
- v1beta1: (await import("../cosmos/tx/v1beta1/service.rpc.svc")).createRpcQueryExtension(client)
27
+ v1beta1: (await import("../cosmos/tx/v1beta1/service.rpc.Service")).createRpcQueryExtension(client)
28
28
  },
29
29
  upgrade: {
30
- v1beta1: (await import("../cosmos/upgrade/v1beta1/query.rpc.query")).createRpcQueryExtension(client)
30
+ v1beta1: (await import("../cosmos/upgrade/v1beta1/query.rpc.Query")).createRpcQueryExtension(client)
31
31
  }
32
32
  },
33
33
  juno: {
34
- mint: (await import("./mint/query.rpc.query")).createRpcQueryExtension(client)
34
+ mint: (await import("./mint/query.rpc.Query")).createRpcQueryExtension(client)
35
35
  }
36
36
  };
37
37
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "juno-network",
3
- "version": "0.8.0",
3
+ "version": "0.10.0",
4
4
  "description": "juno",
5
5
  "author": "Dan Lynch <pyramation@gmail.com>",
6
6
  "homepage": "https://github.com/CosmosContracts/typescript#readme",
@@ -58,7 +58,7 @@
58
58
  "@babel/plugin-transform-runtime": "7.19.1",
59
59
  "@babel/preset-env": "7.19.4",
60
60
  "@babel/preset-typescript": "^7.18.6",
61
- "@osmonauts/telescope": "^0.59.0",
61
+ "@osmonauts/telescope": "^0.76.0",
62
62
  "@protobufs/cosmos": "^0.0.11",
63
63
  "@protobufs/cosmwasm": "^0.0.11",
64
64
  "@protobufs/ibc": "^0.0.11",
@@ -90,5 +90,5 @@
90
90
  "@osmonauts/lcd": "0.8.0",
91
91
  "protobufjs": "^6.11.2"
92
92
  },
93
- "gitHead": "630fa65318ecf0f6651fe4390e0af462fa60ec91"
93
+ "gitHead": "1835ae4c91f21c44dc24424dc98af3329281d3d2"
94
94
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was automatically generated by @cosmwasm/ts-codegen@0.17.0.
2
+ * This file was automatically generated by @cosmwasm/ts-codegen@0.21.1.
3
3
  * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
4
4
  * and run the @cosmwasm/ts-codegen generate command to regenerate this file.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was automatically generated by @cosmwasm/ts-codegen@0.17.0.
2
+ * This file was automatically generated by @cosmwasm/ts-codegen@0.21.1.
3
3
  * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
4
4
  * and run the @cosmwasm/ts-codegen generate command to regenerate this file.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was automatically generated by @cosmwasm/ts-codegen@0.17.0.
2
+ * This file was automatically generated by @cosmwasm/ts-codegen@0.21.1.
3
3
  * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
4
4
  * and run the @cosmwasm/ts-codegen generate command to regenerate this file.
5
5
  */
@@ -61,14 +61,14 @@ import * as _109 from "./gov/v1beta1/query.lcd";
61
61
  import * as _110 from "./staking/v1beta1/query.lcd";
62
62
  import * as _111 from "./tx/v1beta1/service.lcd";
63
63
  import * as _112 from "./upgrade/v1beta1/query.lcd";
64
- import * as _113 from "./authz/v1beta1/query.rpc.query";
65
- import * as _114 from "./bank/v1beta1/query.rpc.query";
66
- import * as _115 from "./distribution/v1beta1/query.rpc.query";
67
- import * as _116 from "./gov/v1/query.rpc.query";
68
- import * as _117 from "./gov/v1beta1/query.rpc.query";
69
- import * as _118 from "./staking/v1beta1/query.rpc.query";
70
- import * as _119 from "./tx/v1beta1/service.rpc.svc";
71
- import * as _120 from "./upgrade/v1beta1/query.rpc.query";
64
+ import * as _113 from "./authz/v1beta1/query.rpc.Query";
65
+ import * as _114 from "./bank/v1beta1/query.rpc.Query";
66
+ import * as _115 from "./distribution/v1beta1/query.rpc.Query";
67
+ import * as _116 from "./gov/v1/query.rpc.Query";
68
+ import * as _117 from "./gov/v1beta1/query.rpc.Query";
69
+ import * as _118 from "./staking/v1beta1/query.rpc.Query";
70
+ import * as _119 from "./tx/v1beta1/service.rpc.Service";
71
+ import * as _120 from "./upgrade/v1beta1/query.rpc.Query";
72
72
  import * as _121 from "./authz/v1beta1/tx.rpc.msg";
73
73
  import * as _122 from "./bank/v1beta1/tx.rpc.msg";
74
74
  import * as _123 from "./distribution/v1beta1/tx.rpc.msg";
@@ -1,5 +1,6 @@
1
- import { OfflineSigner, GeneratedType, Registry } from "@cosmjs/proto-signing";
1
+ import { GeneratedType, Registry, OfflineSigner } from "@cosmjs/proto-signing";
2
2
  import { AminoTypes, SigningStargateClient } from "@cosmjs/stargate";
3
+ import { HttpEndpoint } from "@cosmjs/tendermint-rpc";
3
4
  import * as cosmosBankV1beta1TxRegistry from "./bank/v1beta1/tx.registry";
4
5
  import * as cosmosDistributionV1beta1TxRegistry from "./distribution/v1beta1/tx.registry";
5
6
  import * as cosmosGovV1TxRegistry from "./gov/v1/tx.registry";
@@ -36,7 +37,7 @@ export const getSigningCosmosClient = async ({
36
37
  rpcEndpoint,
37
38
  signer
38
39
  }: {
39
- rpcEndpoint: string;
40
+ rpcEndpoint: string | HttpEndpoint;
40
41
  signer: OfflineSigner;
41
42
  }) => {
42
43
  const {
@@ -68,7 +68,7 @@ export class LCDQueryClient {
68
68
 
69
69
 
70
70
  async delegationRewards(params: QueryDelegationRewardsRequest): Promise<QueryDelegationRewardsResponseSDKType> {
71
- const endpoint = `cosmos/distribution/v1beta1/delegators/${params.delegatorAddress}rewards/${params.validatorAddress}`;
71
+ const endpoint = `cosmos/distribution/v1beta1/delegators/${params.delegatorAddress}/rewards/${params.validatorAddress}`;
72
72
  return await this.req.get<QueryDelegationRewardsResponseSDKType>(endpoint);
73
73
  }
74
74
  /* DelegationTotalRewards queries the total rewards accrued by a each
@@ -57,7 +57,7 @@ export class LCDQueryClient {
57
57
 
58
58
 
59
59
  async vote(params: QueryVoteRequest): Promise<QueryVoteResponseSDKType> {
60
- const endpoint = `cosmos/gov/v1/proposals/${params.proposalId}votes/${params.voter}`;
60
+ const endpoint = `cosmos/gov/v1/proposals/${params.proposalId}/votes/${params.voter}`;
61
61
  return await this.req.get<QueryVoteResponseSDKType>(endpoint);
62
62
  }
63
63
  /* Votes queries votes of a given proposal. */
@@ -86,7 +86,7 @@ export class LCDQueryClient {
86
86
 
87
87
 
88
88
  async deposit(params: QueryDepositRequest): Promise<QueryDepositResponseSDKType> {
89
- const endpoint = `cosmos/gov/v1/proposals/${params.proposalId}deposits/${params.depositor}`;
89
+ const endpoint = `cosmos/gov/v1/proposals/${params.proposalId}/deposits/${params.depositor}`;
90
90
  return await this.req.get<QueryDepositResponseSDKType>(endpoint);
91
91
  }
92
92
  /* Deposits queries all deposits of a single proposal. */
@@ -57,7 +57,7 @@ export class LCDQueryClient {
57
57
 
58
58
 
59
59
  async vote(params: QueryVoteRequest): Promise<QueryVoteResponseSDKType> {
60
- const endpoint = `cosmos/gov/v1beta1/proposals/${params.proposalId}votes/${params.voter}`;
60
+ const endpoint = `cosmos/gov/v1beta1/proposals/${params.proposalId}/votes/${params.voter}`;
61
61
  return await this.req.get<QueryVoteResponseSDKType>(endpoint);
62
62
  }
63
63
  /* Votes queries votes of a given proposal. */
@@ -86,7 +86,7 @@ export class LCDQueryClient {
86
86
 
87
87
 
88
88
  async deposit(params: QueryDepositRequest): Promise<QueryDepositResponseSDKType> {
89
- const endpoint = `cosmos/gov/v1beta1/proposals/${params.proposalId}deposits/${params.depositor}`;
89
+ const endpoint = `cosmos/gov/v1beta1/proposals/${params.proposalId}/deposits/${params.depositor}`;
90
90
  return await this.req.get<QueryDepositResponseSDKType>(endpoint);
91
91
  }
92
92
  /* Deposits queries all deposits of a single proposal. */
@@ -1,35 +1,35 @@
1
- import { Tendermint34Client } from "@cosmjs/tendermint-rpc";
1
+ import { Tendermint34Client, HttpEndpoint } from "@cosmjs/tendermint-rpc";
2
2
  import { QueryClient } from "@cosmjs/stargate";
3
3
  export const createRPCQueryClient = async ({
4
4
  rpcEndpoint
5
5
  }: {
6
- rpcEndpoint: string;
6
+ rpcEndpoint: string | HttpEndpoint;
7
7
  }) => {
8
8
  const tmClient = await Tendermint34Client.connect(rpcEndpoint);
9
9
  const client = new QueryClient(tmClient);
10
10
  return {
11
11
  cosmos: {
12
12
  authz: {
13
- v1beta1: (await import("./authz/v1beta1/query.rpc.query")).createRpcQueryExtension(client)
13
+ v1beta1: (await import("./authz/v1beta1/query.rpc.Query")).createRpcQueryExtension(client)
14
14
  },
15
15
  bank: {
16
- v1beta1: (await import("./bank/v1beta1/query.rpc.query")).createRpcQueryExtension(client)
16
+ v1beta1: (await import("./bank/v1beta1/query.rpc.Query")).createRpcQueryExtension(client)
17
17
  },
18
18
  distribution: {
19
- v1beta1: (await import("./distribution/v1beta1/query.rpc.query")).createRpcQueryExtension(client)
19
+ v1beta1: (await import("./distribution/v1beta1/query.rpc.Query")).createRpcQueryExtension(client)
20
20
  },
21
21
  gov: {
22
- v1: (await import("./gov/v1/query.rpc.query")).createRpcQueryExtension(client),
23
- v1beta1: (await import("./gov/v1beta1/query.rpc.query")).createRpcQueryExtension(client)
22
+ v1: (await import("./gov/v1/query.rpc.Query")).createRpcQueryExtension(client),
23
+ v1beta1: (await import("./gov/v1beta1/query.rpc.Query")).createRpcQueryExtension(client)
24
24
  },
25
25
  staking: {
26
- v1beta1: (await import("./staking/v1beta1/query.rpc.query")).createRpcQueryExtension(client)
26
+ v1beta1: (await import("./staking/v1beta1/query.rpc.Query")).createRpcQueryExtension(client)
27
27
  },
28
28
  tx: {
29
- v1beta1: (await import("./tx/v1beta1/service.rpc.svc")).createRpcQueryExtension(client)
29
+ v1beta1: (await import("./tx/v1beta1/service.rpc.Service")).createRpcQueryExtension(client)
30
30
  },
31
31
  upgrade: {
32
- v1beta1: (await import("./upgrade/v1beta1/query.rpc.query")).createRpcQueryExtension(client)
32
+ v1beta1: (await import("./upgrade/v1beta1/query.rpc.Query")).createRpcQueryExtension(client)
33
33
  }
34
34
  }
35
35
  };
@@ -85,7 +85,7 @@ export class LCDQueryClient {
85
85
 
86
86
 
87
87
  async delegation(params: QueryDelegationRequest): Promise<QueryDelegationResponseSDKType> {
88
- const endpoint = `cosmos/staking/v1beta1/validators/${params.validatorAddr}delegations/${params.delegatorAddr}`;
88
+ const endpoint = `cosmos/staking/v1beta1/validators/${params.validatorAddr}/delegations/${params.delegatorAddr}`;
89
89
  return await this.req.get<QueryDelegationResponseSDKType>(endpoint);
90
90
  }
91
91
  /* UnbondingDelegation queries unbonding info for given validator delegator
@@ -171,7 +171,7 @@ export class LCDQueryClient {
171
171
 
172
172
 
173
173
  async delegatorValidator(params: QueryDelegatorValidatorRequest): Promise<QueryDelegatorValidatorResponseSDKType> {
174
- const endpoint = `cosmos/staking/v1beta1/delegators/${params.delegatorAddr}validators/${params.validatorAddr}`;
174
+ const endpoint = `cosmos/staking/v1beta1/delegators/${params.delegatorAddr}/validators/${params.validatorAddr}`;
175
175
  return await this.req.get<QueryDelegatorValidatorResponseSDKType>(endpoint);
176
176
  }
177
177
  /* HistoricalInfo queries the historical info for given height. */