coreum-js 2.16.3 → 2.17.1

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 (236) hide show
  1. package/dist/main/client/index.js +15 -16
  2. package/dist/main/coreum/asset/ft/v1/authz.d.ts +38 -0
  3. package/dist/main/coreum/asset/ft/v1/authz.js +122 -0
  4. package/dist/main/coreum/asset/ft/v1/event.d.ts +52 -28
  5. package/dist/main/coreum/asset/ft/v1/event.js +744 -138
  6. package/dist/main/coreum/asset/ft/v1/genesis.d.ts +31 -21
  7. package/dist/main/coreum/asset/ft/v1/genesis.js +273 -62
  8. package/dist/main/coreum/asset/ft/v1/params.d.ts +12 -11
  9. package/dist/main/coreum/asset/ft/v1/params.js +37 -33
  10. package/dist/main/coreum/asset/ft/v1/query.d.ts +87 -127
  11. package/dist/main/coreum/asset/ft/v1/query.js +697 -217
  12. package/dist/main/coreum/asset/ft/v1/token.d.ts +17 -51
  13. package/dist/main/coreum/asset/ft/v1/token.js +276 -200
  14. package/dist/main/coreum/asset/ft/v1/tx.d.ts +30 -147
  15. package/dist/main/coreum/asset/ft/v1/tx.js +502 -386
  16. package/dist/main/coreum/asset/index.d.ts +2 -3
  17. package/dist/main/coreum/asset/nft/v1/authz.d.ts +33 -0
  18. package/dist/main/coreum/asset/nft/v1/authz.js +137 -0
  19. package/dist/main/coreum/asset/nft/v1/event.d.ts +35 -43
  20. package/dist/main/coreum/asset/nft/v1/event.js +475 -147
  21. package/dist/main/coreum/asset/nft/v1/genesis.d.ts +27 -36
  22. package/dist/main/coreum/asset/nft/v1/genesis.js +311 -119
  23. package/dist/main/coreum/asset/nft/v1/nft.d.ts +20 -26
  24. package/dist/main/coreum/asset/nft/v1/nft.js +139 -104
  25. package/dist/main/coreum/asset/nft/v1/params.d.ts +12 -12
  26. package/dist/main/coreum/asset/nft/v1/params.js +17 -20
  27. package/dist/main/coreum/asset/nft/v1/query.d.ts +110 -88
  28. package/dist/main/coreum/asset/nft/v1/query.js +1079 -185
  29. package/dist/main/coreum/asset/nft/v1/tx.d.ts +96 -70
  30. package/dist/main/coreum/asset/nft/v1/tx.js +865 -234
  31. package/dist/main/coreum/asset/nft/v1/types.d.ts +38 -11
  32. package/dist/main/coreum/asset/nft/v1/types.js +273 -45
  33. package/dist/main/coreum/customparams/v1/genesis.d.ts +12 -12
  34. package/dist/main/coreum/customparams/v1/genesis.js +26 -22
  35. package/dist/main/coreum/customparams/v1/params.d.ts +11 -11
  36. package/dist/main/coreum/customparams/v1/params.js +23 -20
  37. package/dist/main/coreum/customparams/v1/query.d.ts +14 -20
  38. package/dist/main/coreum/customparams/v1/query.js +35 -29
  39. package/dist/main/coreum/dex/index.d.ts +2 -0
  40. package/dist/main/coreum/dex/index.js +11 -0
  41. package/dist/main/coreum/dex/v1/event.d.ts +73 -0
  42. package/dist/main/coreum/dex/v1/event.js +470 -0
  43. package/dist/main/coreum/dex/v1/genesis.d.ts +49 -0
  44. package/dist/main/coreum/dex/v1/genesis.js +318 -0
  45. package/dist/main/coreum/dex/v1/order.d.ts +172 -0
  46. package/dist/main/coreum/dex/v1/order.js +1137 -0
  47. package/dist/main/coreum/dex/v1/params.d.ts +34 -0
  48. package/dist/main/coreum/dex/v1/params.js +139 -0
  49. package/dist/main/coreum/dex/v1/query.d.ts +133 -0
  50. package/dist/main/coreum/dex/v1/query.js +873 -0
  51. package/dist/main/coreum/dex/v1/tx.d.ts +102 -0
  52. package/dist/main/coreum/dex/v1/tx.js +521 -0
  53. package/dist/main/coreum/extensions/dex.d.ts +12 -0
  54. package/dist/main/coreum/extensions/dex.js +32 -0
  55. package/dist/main/coreum/extensions/ft.js +2 -1
  56. package/dist/main/coreum/extensions/nft.js +2 -1
  57. package/dist/main/coreum/extensions/nftbeta.js +2 -1
  58. package/dist/main/coreum/feemodel/v1/genesis.d.ts +13 -13
  59. package/dist/main/coreum/feemodel/v1/genesis.js +23 -24
  60. package/dist/main/coreum/feemodel/v1/params.d.ts +14 -21
  61. package/dist/main/coreum/feemodel/v1/params.js +113 -66
  62. package/dist/main/coreum/feemodel/v1/query.d.ts +30 -37
  63. package/dist/main/coreum/feemodel/v1/query.js +196 -43
  64. package/dist/main/coreum/index.d.ts +46 -0
  65. package/dist/main/coreum/index.js +58 -1
  66. package/dist/main/coreum/nft/index.d.ts +1 -2
  67. package/dist/main/coreum/nft/v1beta1/event.d.ts +23 -27
  68. package/dist/main/coreum/nft/v1beta1/event.js +103 -77
  69. package/dist/main/coreum/nft/v1beta1/genesis.d.ts +13 -19
  70. package/dist/main/coreum/nft/v1beta1/genesis.js +50 -52
  71. package/dist/main/coreum/nft/v1beta1/nft.d.ts +15 -22
  72. package/dist/main/coreum/nft/v1beta1/nft.js +111 -81
  73. package/dist/main/coreum/nft/v1beta1/query.d.ts +54 -124
  74. package/dist/main/coreum/nft/v1beta1/query.js +259 -223
  75. package/dist/main/coreum/nft/v1beta1/tx.d.ts +13 -19
  76. package/dist/main/coreum/nft/v1beta1/tx.js +54 -43
  77. package/dist/main/cosmos/extensions/bank.js +2 -1
  78. package/dist/main/cosmos/extensions/distribution.d.ts +4 -4
  79. package/dist/main/cosmos/extensions/distribution.js +11 -10
  80. package/dist/main/cosmos/extensions/gov.d.ts +13 -13
  81. package/dist/main/cosmos/extensions/gov.js +16 -9
  82. package/dist/main/cosmos/index.d.ts +8 -8
  83. package/dist/main/google/api/http.d.ts +2636 -6
  84. package/dist/main/google/api/http.js +18 -21
  85. package/dist/main/google/protobuf/any.d.ts +14 -2
  86. package/dist/main/google/protobuf/any.js +6 -7
  87. package/dist/main/google/protobuf/duration.d.ts +14 -2
  88. package/dist/main/google/protobuf/duration.js +3 -4
  89. package/dist/main/google/protobuf/timestamp.d.ts +14 -2
  90. package/dist/main/google/protobuf/timestamp.js +3 -4
  91. package/dist/main/index.js +7 -17
  92. package/dist/main/services/cosmostation.js +1 -1
  93. package/dist/main/tendermint/abci/types.d.ts +6360 -92
  94. package/dist/main/tendermint/abci/types.js +195 -235
  95. package/dist/main/tendermint/crypto/keys.d.ts +14 -2
  96. package/dist/main/tendermint/crypto/keys.js +3 -4
  97. package/dist/main/tendermint/crypto/proof.d.ts +152 -10
  98. package/dist/main/tendermint/crypto/proof.js +19 -24
  99. package/dist/main/tendermint/types/params.d.ts +196 -12
  100. package/dist/main/tendermint/types/params.js +15 -20
  101. package/dist/main/tendermint/types/types.d.ts +1744 -26
  102. package/dist/main/tendermint/types/types.js +62 -73
  103. package/dist/main/tendermint/types/validator.d.ts +230 -6
  104. package/dist/main/tendermint/types/validator.js +10 -13
  105. package/dist/main/tendermint/version/types.d.ts +28 -4
  106. package/dist/main/tendermint/version/types.js +6 -8
  107. package/dist/main/types/core.d.ts +2 -1
  108. package/dist/main/types/core.js +2 -0
  109. package/dist/main/utils/convertStringToAny.d.ts +0 -1
  110. package/dist/main/utils/nft.js +2 -1
  111. package/dist/main/wasm/v1/authz.d.ts +20 -75
  112. package/dist/main/wasm/v1/authz.js +129 -148
  113. package/dist/main/wasm/v1/extensions/wasm.js +2 -1
  114. package/dist/main/wasm/v1/genesis.d.ts +14 -34
  115. package/dist/main/wasm/v1/genesis.js +169 -140
  116. package/dist/main/wasm/v1/ibc.d.ts +13 -26
  117. package/dist/main/wasm/v1/ibc.js +91 -76
  118. package/dist/main/wasm/v1/index.d.ts +1 -2
  119. package/dist/main/wasm/v1/pagination.d.ts +40 -4
  120. package/dist/main/wasm/v1/pagination.js +9 -11
  121. package/dist/main/wasm/v1/proposal.d.ts +23 -106
  122. package/dist/main/wasm/v1/proposal.js +634 -465
  123. package/dist/main/wasm/v1/query.d.ts +35 -187
  124. package/dist/main/wasm/v1/query.js +370 -363
  125. package/dist/main/wasm/v1/tx.d.ts +37 -210
  126. package/dist/main/wasm/v1/tx.js +621 -497
  127. package/dist/main/wasm/v1/types.d.ts +19 -67
  128. package/dist/main/wasm/v1/types.js +224 -195
  129. package/dist/module/client/index.js +2 -1
  130. package/dist/module/coreum/asset/ft/v1/authz.d.ts +38 -0
  131. package/dist/module/coreum/asset/ft/v1/authz.js +119 -0
  132. package/dist/module/coreum/asset/ft/v1/event.d.ts +52 -28
  133. package/dist/module/coreum/asset/ft/v1/event.js +721 -109
  134. package/dist/module/coreum/asset/ft/v1/genesis.d.ts +31 -21
  135. package/dist/module/coreum/asset/ft/v1/genesis.js +266 -50
  136. package/dist/module/coreum/asset/ft/v1/params.d.ts +12 -11
  137. package/dist/module/coreum/asset/ft/v1/params.js +35 -27
  138. package/dist/module/coreum/asset/ft/v1/query.d.ts +87 -127
  139. package/dist/module/coreum/asset/ft/v1/query.js +672 -180
  140. package/dist/module/coreum/asset/ft/v1/token.d.ts +17 -51
  141. package/dist/module/coreum/asset/ft/v1/token.js +236 -152
  142. package/dist/module/coreum/asset/ft/v1/tx.d.ts +30 -147
  143. package/dist/module/coreum/asset/ft/v1/tx.js +437 -301
  144. package/dist/module/coreum/asset/index.d.ts +2 -3
  145. package/dist/module/coreum/asset/nft/v1/authz.d.ts +33 -0
  146. package/dist/module/coreum/asset/nft/v1/authz.js +134 -0
  147. package/dist/module/coreum/asset/nft/v1/event.d.ts +35 -43
  148. package/dist/module/coreum/asset/nft/v1/event.js +448 -112
  149. package/dist/module/coreum/asset/nft/v1/genesis.d.ts +27 -36
  150. package/dist/module/coreum/asset/nft/v1/genesis.js +299 -100
  151. package/dist/module/coreum/asset/nft/v1/nft.d.ts +20 -26
  152. package/dist/module/coreum/asset/nft/v1/nft.js +121 -81
  153. package/dist/module/coreum/asset/nft/v1/params.d.ts +12 -12
  154. package/dist/module/coreum/asset/nft/v1/params.js +16 -16
  155. package/dist/module/coreum/asset/nft/v1/query.d.ts +110 -88
  156. package/dist/module/coreum/asset/nft/v1/query.js +1057 -153
  157. package/dist/module/coreum/asset/nft/v1/tx.d.ts +96 -70
  158. package/dist/module/coreum/asset/nft/v1/tx.js +825 -184
  159. package/dist/module/coreum/asset/nft/v1/types.d.ts +38 -11
  160. package/dist/module/coreum/asset/nft/v1/types.js +269 -39
  161. package/dist/module/coreum/customparams/v1/genesis.d.ts +12 -12
  162. package/dist/module/coreum/customparams/v1/genesis.js +25 -18
  163. package/dist/module/coreum/customparams/v1/params.d.ts +11 -11
  164. package/dist/module/coreum/customparams/v1/params.js +21 -14
  165. package/dist/module/coreum/customparams/v1/query.d.ts +14 -20
  166. package/dist/module/coreum/customparams/v1/query.js +32 -23
  167. package/dist/module/coreum/dex/index.d.ts +2 -0
  168. package/dist/module/coreum/dex/index.js +8 -0
  169. package/dist/module/coreum/dex/v1/event.d.ts +73 -0
  170. package/dist/module/coreum/dex/v1/event.js +467 -0
  171. package/dist/module/coreum/dex/v1/genesis.d.ts +49 -0
  172. package/dist/module/coreum/dex/v1/genesis.js +315 -0
  173. package/dist/module/coreum/dex/v1/order.d.ts +172 -0
  174. package/dist/module/coreum/dex/v1/order.js +1128 -0
  175. package/dist/module/coreum/dex/v1/params.d.ts +34 -0
  176. package/dist/module/coreum/dex/v1/params.js +136 -0
  177. package/dist/module/coreum/dex/v1/query.d.ts +133 -0
  178. package/dist/module/coreum/dex/v1/query.js +871 -0
  179. package/dist/module/coreum/dex/v1/tx.d.ts +102 -0
  180. package/dist/module/coreum/dex/v1/tx.js +519 -0
  181. package/dist/module/coreum/extensions/dex.d.ts +12 -0
  182. package/dist/module/coreum/extensions/dex.js +28 -0
  183. package/dist/module/coreum/feemodel/v1/genesis.d.ts +13 -13
  184. package/dist/module/coreum/feemodel/v1/genesis.js +22 -20
  185. package/dist/module/coreum/feemodel/v1/params.d.ts +14 -21
  186. package/dist/module/coreum/feemodel/v1/params.js +105 -54
  187. package/dist/module/coreum/feemodel/v1/query.d.ts +30 -37
  188. package/dist/module/coreum/feemodel/v1/query.js +191 -35
  189. package/dist/module/coreum/index.d.ts +46 -0
  190. package/dist/module/coreum/index.js +57 -0
  191. package/dist/module/coreum/nft/index.d.ts +1 -2
  192. package/dist/module/coreum/nft/v1beta1/event.d.ts +23 -27
  193. package/dist/module/coreum/nft/v1beta1/event.js +90 -58
  194. package/dist/module/coreum/nft/v1beta1/genesis.d.ts +13 -19
  195. package/dist/module/coreum/nft/v1beta1/genesis.js +44 -41
  196. package/dist/module/coreum/nft/v1beta1/nft.d.ts +15 -22
  197. package/dist/module/coreum/nft/v1beta1/nft.js +99 -64
  198. package/dist/module/coreum/nft/v1beta1/query.d.ts +54 -124
  199. package/dist/module/coreum/nft/v1beta1/query.js +231 -183
  200. package/dist/module/coreum/nft/v1beta1/tx.d.ts +13 -19
  201. package/dist/module/coreum/nft/v1beta1/tx.js +47 -32
  202. package/dist/module/cosmos/extensions/distribution.d.ts +4 -4
  203. package/dist/module/cosmos/extensions/gov.d.ts +13 -13
  204. package/dist/module/cosmos/index.d.ts +8 -8
  205. package/dist/module/google/api/http.d.ts +2636 -6
  206. package/dist/module/google/protobuf/any.d.ts +14 -2
  207. package/dist/module/google/protobuf/duration.d.ts +14 -2
  208. package/dist/module/google/protobuf/timestamp.d.ts +14 -2
  209. package/dist/module/services/cosmostation.js +1 -1
  210. package/dist/module/tendermint/abci/types.d.ts +6360 -92
  211. package/dist/module/tendermint/crypto/keys.d.ts +14 -2
  212. package/dist/module/tendermint/crypto/proof.d.ts +152 -10
  213. package/dist/module/tendermint/types/params.d.ts +196 -12
  214. package/dist/module/tendermint/types/types.d.ts +1744 -26
  215. package/dist/module/tendermint/types/validator.d.ts +230 -6
  216. package/dist/module/tendermint/version/types.d.ts +28 -4
  217. package/dist/module/types/core.d.ts +2 -1
  218. package/dist/module/types/core.js +2 -0
  219. package/dist/module/utils/convertStringToAny.d.ts +0 -1
  220. package/dist/module/wasm/v1/authz.d.ts +20 -75
  221. package/dist/module/wasm/v1/authz.js +111 -119
  222. package/dist/module/wasm/v1/genesis.d.ts +14 -34
  223. package/dist/module/wasm/v1/genesis.js +161 -125
  224. package/dist/module/wasm/v1/ibc.d.ts +13 -26
  225. package/dist/module/wasm/v1/ibc.js +83 -62
  226. package/dist/module/wasm/v1/index.d.ts +1 -2
  227. package/dist/module/wasm/v1/pagination.d.ts +40 -4
  228. package/dist/module/wasm/v1/proposal.d.ts +23 -106
  229. package/dist/module/wasm/v1/proposal.js +562 -377
  230. package/dist/module/wasm/v1/query.d.ts +35 -187
  231. package/dist/module/wasm/v1/query.js +330 -301
  232. package/dist/module/wasm/v1/tx.d.ts +37 -210
  233. package/dist/module/wasm/v1/tx.js +551 -404
  234. package/dist/module/wasm/v1/types.d.ts +19 -67
  235. package/dist/module/wasm/v1/types.js +196 -156
  236. package/package.json +11 -10
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.setupNFTBetaExtension = setupNFTBetaExtension;
3
+ exports.setupNFTBetaExtension = void 0;
4
4
  const query_1 = require("../nft/v1beta1/query");
5
5
  const stargate_1 = require("@cosmjs/stargate");
6
6
  function setupNFTBetaExtension(base) {
@@ -39,3 +39,4 @@ function setupNFTBetaExtension(base) {
39
39
  },
40
40
  };
41
41
  }
42
+ exports.setupNFTBetaExtension = setupNFTBetaExtension;
@@ -1,25 +1,17 @@
1
- import Long from "long";
2
- import _m0 from "protobufjs/minimal";
1
+ import { BinaryReader, BinaryWriter } from "cosmjs-types/binary";
3
2
  import { DecCoin } from "cosmjs-types/cosmos/base/v1beta1/coin";
4
3
  import { Params } from "./params";
5
4
  export declare const protobufPackage = "coreum.feemodel.v1";
6
5
  /** GenesisState defines the module's genesis state. */
7
6
  export interface GenesisState {
8
7
  /** params defines all the parameters of the module. */
9
- params?: Params;
8
+ params: Params | undefined;
10
9
  /** min_gas_price is the current minimum gas price required by the chain. */
11
- minGasPrice?: DecCoin;
10
+ minGasPrice: DecCoin | undefined;
12
11
  }
13
- export declare const GenesisState: {
14
- encode(message: GenesisState, writer?: _m0.Writer): _m0.Writer;
15
- decode(input: _m0.Reader | Uint8Array, length?: number): GenesisState;
16
- fromJSON(object: any): GenesisState;
17
- toJSON(message: GenesisState): unknown;
18
- create<I extends Exact<DeepPartial<GenesisState>, I>>(base?: I): GenesisState;
19
- fromPartial<I extends Exact<DeepPartial<GenesisState>, I>>(object: I): GenesisState;
20
- };
12
+ export declare const GenesisState: MessageFns<GenesisState>;
21
13
  type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
22
- export type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
14
+ export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
23
15
  [K in keyof T]?: DeepPartial<T[K]>;
24
16
  } : Partial<T>;
25
17
  type KeysOfUnion<T> = T extends T ? keyof T : never;
@@ -28,4 +20,12 @@ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
28
20
  } & {
29
21
  [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
30
22
  };
23
+ export interface MessageFns<T> {
24
+ encode(message: T, writer?: BinaryWriter): BinaryWriter;
25
+ decode(input: BinaryReader | Uint8Array, length?: number): T;
26
+ fromJSON(object: any): T;
27
+ toJSON(message: T): unknown;
28
+ create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
29
+ fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
30
+ }
31
31
  export {};
@@ -1,12 +1,13 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
2
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
+ // versions:
4
+ // protoc-gen-ts_proto v2.7.0
5
+ // protoc v3.21.12
6
+ // source: coreum-protos/feemodel/genesis.proto
5
7
  Object.defineProperty(exports, "__esModule", { value: true });
6
8
  exports.GenesisState = exports.protobufPackage = void 0;
7
9
  /* eslint-disable */
8
- const long_1 = __importDefault(require("long"));
9
- const minimal_1 = __importDefault(require("protobufjs/minimal"));
10
+ const binary_1 = require("cosmjs-types/binary");
10
11
  const coin_1 = require("cosmjs-types/cosmos/base/v1beta1/coin");
11
12
  const params_1 = require("./params");
12
13
  exports.protobufPackage = "coreum.feemodel.v1";
@@ -14,7 +15,7 @@ function createBaseGenesisState() {
14
15
  return { params: undefined, minGasPrice: undefined };
15
16
  }
16
17
  exports.GenesisState = {
17
- encode(message, writer = minimal_1.default.Writer.create()) {
18
+ encode(message, writer = new binary_1.BinaryWriter()) {
18
19
  if (message.params !== undefined) {
19
20
  params_1.Params.encode(message.params, writer.uint32(10).fork()).ldelim();
20
21
  }
@@ -24,29 +25,31 @@ exports.GenesisState = {
24
25
  return writer;
25
26
  },
26
27
  decode(input, length) {
27
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
28
+ const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
28
29
  let end = length === undefined ? reader.len : reader.pos + length;
29
30
  const message = createBaseGenesisState();
30
31
  while (reader.pos < end) {
31
32
  const tag = reader.uint32();
32
33
  switch (tag >>> 3) {
33
- case 1:
34
- if (tag != 10) {
34
+ case 1: {
35
+ if (tag !== 10) {
35
36
  break;
36
37
  }
37
38
  message.params = params_1.Params.decode(reader, reader.uint32());
38
39
  continue;
39
- case 2:
40
- if (tag != 18) {
40
+ }
41
+ case 2: {
42
+ if (tag !== 18) {
41
43
  break;
42
44
  }
43
45
  message.minGasPrice = coin_1.DecCoin.decode(reader, reader.uint32());
44
46
  continue;
47
+ }
45
48
  }
46
- if ((tag & 7) == 4 || tag == 0) {
49
+ if ((tag & 7) === 4 || tag === 0) {
47
50
  break;
48
51
  }
49
- reader.skipType(tag & 7);
52
+ reader.skip(tag & 7);
50
53
  }
51
54
  return message;
52
55
  },
@@ -60,16 +63,16 @@ exports.GenesisState = {
60
63
  },
61
64
  toJSON(message) {
62
65
  const obj = {};
63
- message.params !== undefined &&
64
- (obj.params = message.params ? params_1.Params.toJSON(message.params) : undefined);
65
- message.minGasPrice !== undefined &&
66
- (obj.minGasPrice = message.minGasPrice
67
- ? coin_1.DecCoin.toJSON(message.minGasPrice)
68
- : undefined);
66
+ if (message.params !== undefined) {
67
+ obj.params = params_1.Params.toJSON(message.params);
68
+ }
69
+ if (message.minGasPrice !== undefined) {
70
+ obj.minGasPrice = coin_1.DecCoin.toJSON(message.minGasPrice);
71
+ }
69
72
  return obj;
70
73
  },
71
74
  create(base) {
72
- return exports.GenesisState.fromPartial(base !== null && base !== void 0 ? base : {});
75
+ return exports.GenesisState.fromPartial(base ?? {});
73
76
  },
74
77
  fromPartial(object) {
75
78
  const message = createBaseGenesisState();
@@ -84,10 +87,6 @@ exports.GenesisState = {
84
87
  return message;
85
88
  },
86
89
  };
87
- if (minimal_1.default.util.Long !== long_1.default) {
88
- minimal_1.default.util.Long = long_1.default;
89
- minimal_1.default.configure();
90
- }
91
90
  function isSet(value) {
92
91
  return value !== null && value !== undefined;
93
92
  }
@@ -1,5 +1,4 @@
1
- import Long from "long";
2
- import _m0 from "protobufjs/minimal";
1
+ import { BinaryReader, BinaryWriter } from "cosmjs-types/binary";
3
2
  export declare const protobufPackage = "coreum.feemodel.v1";
4
3
  /**
5
4
  * ModelParams define fee model params.
@@ -22,7 +21,7 @@ export interface ModelParams {
22
21
  /** escalation_start_fraction defines fraction of max block gas usage where gas price escalation starts if short average block gas is higher than this value. */
23
22
  escalationStartFraction: string;
24
23
  /** max_block_gas sets the maximum capacity of block. This is enforced on tendermint level in genesis configuration. Once short average block gas goes above this value, gas price is a flat line equal to MaxGasPrice. */
25
- maxBlockGas: Long;
24
+ maxBlockGas: number;
26
25
  /**
27
26
  * short_ema_block_length defines inertia for short average long gas in EMA model. The equation is: NewAverage = ((ShortAverageBlockLength - 1)*PreviousAverage + GasUsedByCurrentBlock) / ShortAverageBlockLength
28
27
  * The value might be interpreted as the number of blocks which are taken to calculate the average. It would be exactly like that in SMA model, in EMA this is an approximation.
@@ -37,26 +36,12 @@ export interface ModelParams {
37
36
  /** Params store gov manageable feemodel parameters. */
38
37
  export interface Params {
39
38
  /** model is a fee model params. */
40
- model?: ModelParams;
39
+ model: ModelParams | undefined;
41
40
  }
42
- export declare const ModelParams: {
43
- encode(message: ModelParams, writer?: _m0.Writer): _m0.Writer;
44
- decode(input: _m0.Reader | Uint8Array, length?: number): ModelParams;
45
- fromJSON(object: any): ModelParams;
46
- toJSON(message: ModelParams): unknown;
47
- create<I extends Exact<DeepPartial<ModelParams>, I>>(base?: I): ModelParams;
48
- fromPartial<I extends Exact<DeepPartial<ModelParams>, I>>(object: I): ModelParams;
49
- };
50
- export declare const Params: {
51
- encode(message: Params, writer?: _m0.Writer): _m0.Writer;
52
- decode(input: _m0.Reader | Uint8Array, length?: number): Params;
53
- fromJSON(object: any): Params;
54
- toJSON(message: Params): unknown;
55
- create<I extends Exact<DeepPartial<Params>, I>>(base?: I): Params;
56
- fromPartial<I extends Exact<DeepPartial<Params>, I>>(object: I): Params;
57
- };
41
+ export declare const ModelParams: MessageFns<ModelParams>;
42
+ export declare const Params: MessageFns<Params>;
58
43
  type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
59
- export type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
44
+ export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
60
45
  [K in keyof T]?: DeepPartial<T[K]>;
61
46
  } : Partial<T>;
62
47
  type KeysOfUnion<T> = T extends T ? keyof T : never;
@@ -65,4 +50,12 @@ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
65
50
  } & {
66
51
  [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
67
52
  };
53
+ export interface MessageFns<T> {
54
+ encode(message: T, writer?: BinaryWriter): BinaryWriter;
55
+ decode(input: BinaryReader | Uint8Array, length?: number): T;
56
+ fromJSON(object: any): T;
57
+ toJSON(message: T): unknown;
58
+ create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
59
+ fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
60
+ }
68
61
  export {};
@@ -1,12 +1,13 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
2
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
+ // versions:
4
+ // protoc-gen-ts_proto v2.7.0
5
+ // protoc v3.21.12
6
+ // source: coreum-protos/feemodel/params.proto
5
7
  Object.defineProperty(exports, "__esModule", { value: true });
6
8
  exports.Params = exports.ModelParams = exports.protobufPackage = void 0;
7
9
  /* eslint-disable */
8
- const long_1 = __importDefault(require("long"));
9
- const minimal_1 = __importDefault(require("protobufjs/minimal"));
10
+ const binary_1 = require("cosmjs-types/binary");
10
11
  exports.protobufPackage = "coreum.feemodel.v1";
11
12
  function createBaseModelParams() {
12
13
  return {
@@ -14,13 +15,13 @@ function createBaseModelParams() {
14
15
  maxGasPriceMultiplier: "",
15
16
  maxDiscount: "",
16
17
  escalationStartFraction: "",
17
- maxBlockGas: long_1.default.ZERO,
18
+ maxBlockGas: 0,
18
19
  shortEmaBlockLength: 0,
19
20
  longEmaBlockLength: 0,
20
21
  };
21
22
  }
22
23
  exports.ModelParams = {
23
- encode(message, writer = minimal_1.default.Writer.create()) {
24
+ encode(message, writer = new binary_1.BinaryWriter()) {
24
25
  if (message.initialGasPrice !== "") {
25
26
  writer.uint32(10).string(message.initialGasPrice);
26
27
  }
@@ -33,7 +34,7 @@ exports.ModelParams = {
33
34
  if (message.escalationStartFraction !== "") {
34
35
  writer.uint32(34).string(message.escalationStartFraction);
35
36
  }
36
- if (!message.maxBlockGas.isZero()) {
37
+ if (message.maxBlockGas !== 0) {
37
38
  writer.uint32(40).int64(message.maxBlockGas);
38
39
  }
39
40
  if (message.shortEmaBlockLength !== 0) {
@@ -45,99 +46,131 @@ exports.ModelParams = {
45
46
  return writer;
46
47
  },
47
48
  decode(input, length) {
48
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
49
+ const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
49
50
  let end = length === undefined ? reader.len : reader.pos + length;
50
51
  const message = createBaseModelParams();
51
52
  while (reader.pos < end) {
52
53
  const tag = reader.uint32();
53
54
  switch (tag >>> 3) {
54
- case 1:
55
- if (tag != 10) {
55
+ case 1: {
56
+ if (tag !== 10) {
56
57
  break;
57
58
  }
58
59
  message.initialGasPrice = reader.string();
59
60
  continue;
60
- case 2:
61
- if (tag != 18) {
61
+ }
62
+ case 2: {
63
+ if (tag !== 18) {
62
64
  break;
63
65
  }
64
66
  message.maxGasPriceMultiplier = reader.string();
65
67
  continue;
66
- case 3:
67
- if (tag != 26) {
68
+ }
69
+ case 3: {
70
+ if (tag !== 26) {
68
71
  break;
69
72
  }
70
73
  message.maxDiscount = reader.string();
71
74
  continue;
72
- case 4:
73
- if (tag != 34) {
75
+ }
76
+ case 4: {
77
+ if (tag !== 34) {
74
78
  break;
75
79
  }
76
80
  message.escalationStartFraction = reader.string();
77
81
  continue;
78
- case 5:
79
- if (tag != 40) {
82
+ }
83
+ case 5: {
84
+ if (tag !== 40) {
80
85
  break;
81
86
  }
82
- message.maxBlockGas = reader.int64();
87
+ message.maxBlockGas = longToNumber(reader.int64());
83
88
  continue;
84
- case 6:
85
- if (tag != 48) {
89
+ }
90
+ case 6: {
91
+ if (tag !== 48) {
86
92
  break;
87
93
  }
88
94
  message.shortEmaBlockLength = reader.uint32();
89
95
  continue;
90
- case 7:
91
- if (tag != 56) {
96
+ }
97
+ case 7: {
98
+ if (tag !== 56) {
92
99
  break;
93
100
  }
94
101
  message.longEmaBlockLength = reader.uint32();
95
102
  continue;
103
+ }
96
104
  }
97
- if ((tag & 7) == 4 || tag == 0) {
105
+ if ((tag & 7) === 4 || tag === 0) {
98
106
  break;
99
107
  }
100
- reader.skipType(tag & 7);
108
+ reader.skip(tag & 7);
101
109
  }
102
110
  return message;
103
111
  },
104
112
  fromJSON(object) {
105
113
  return {
106
- initialGasPrice: isSet(object.initialGasPrice) ? String(object.initialGasPrice) : "",
107
- maxGasPriceMultiplier: isSet(object.maxGasPriceMultiplier) ? String(object.maxGasPriceMultiplier) : "",
108
- maxDiscount: isSet(object.maxDiscount) ? String(object.maxDiscount) : "",
109
- escalationStartFraction: isSet(object.escalationStartFraction) ? String(object.escalationStartFraction) : "",
110
- maxBlockGas: isSet(object.maxBlockGas) ? long_1.default.fromValue(object.maxBlockGas) : long_1.default.ZERO,
111
- shortEmaBlockLength: isSet(object.shortEmaBlockLength) ? Number(object.shortEmaBlockLength) : 0,
112
- longEmaBlockLength: isSet(object.longEmaBlockLength) ? Number(object.longEmaBlockLength) : 0,
114
+ initialGasPrice: isSet(object.initialGasPrice)
115
+ ? globalThis.String(object.initialGasPrice)
116
+ : "",
117
+ maxGasPriceMultiplier: isSet(object.maxGasPriceMultiplier)
118
+ ? globalThis.String(object.maxGasPriceMultiplier)
119
+ : "",
120
+ maxDiscount: isSet(object.maxDiscount)
121
+ ? globalThis.String(object.maxDiscount)
122
+ : "",
123
+ escalationStartFraction: isSet(object.escalationStartFraction)
124
+ ? globalThis.String(object.escalationStartFraction)
125
+ : "",
126
+ maxBlockGas: isSet(object.maxBlockGas)
127
+ ? globalThis.Number(object.maxBlockGas)
128
+ : 0,
129
+ shortEmaBlockLength: isSet(object.shortEmaBlockLength)
130
+ ? globalThis.Number(object.shortEmaBlockLength)
131
+ : 0,
132
+ longEmaBlockLength: isSet(object.longEmaBlockLength)
133
+ ? globalThis.Number(object.longEmaBlockLength)
134
+ : 0,
113
135
  };
114
136
  },
115
137
  toJSON(message) {
116
138
  const obj = {};
117
- message.initialGasPrice !== undefined && (obj.initialGasPrice = message.initialGasPrice);
118
- message.maxGasPriceMultiplier !== undefined && (obj.maxGasPriceMultiplier = message.maxGasPriceMultiplier);
119
- message.maxDiscount !== undefined && (obj.maxDiscount = message.maxDiscount);
120
- message.escalationStartFraction !== undefined && (obj.escalationStartFraction = message.escalationStartFraction);
121
- message.maxBlockGas !== undefined && (obj.maxBlockGas = (message.maxBlockGas || long_1.default.ZERO).toString());
122
- message.shortEmaBlockLength !== undefined && (obj.shortEmaBlockLength = Math.round(message.shortEmaBlockLength));
123
- message.longEmaBlockLength !== undefined && (obj.longEmaBlockLength = Math.round(message.longEmaBlockLength));
139
+ if (message.initialGasPrice !== "") {
140
+ obj.initialGasPrice = message.initialGasPrice;
141
+ }
142
+ if (message.maxGasPriceMultiplier !== "") {
143
+ obj.maxGasPriceMultiplier = message.maxGasPriceMultiplier;
144
+ }
145
+ if (message.maxDiscount !== "") {
146
+ obj.maxDiscount = message.maxDiscount;
147
+ }
148
+ if (message.escalationStartFraction !== "") {
149
+ obj.escalationStartFraction = message.escalationStartFraction;
150
+ }
151
+ if (message.maxBlockGas !== 0) {
152
+ obj.maxBlockGas = Math.round(message.maxBlockGas);
153
+ }
154
+ if (message.shortEmaBlockLength !== 0) {
155
+ obj.shortEmaBlockLength = Math.round(message.shortEmaBlockLength);
156
+ }
157
+ if (message.longEmaBlockLength !== 0) {
158
+ obj.longEmaBlockLength = Math.round(message.longEmaBlockLength);
159
+ }
124
160
  return obj;
125
161
  },
126
162
  create(base) {
127
- return exports.ModelParams.fromPartial(base !== null && base !== void 0 ? base : {});
163
+ return exports.ModelParams.fromPartial(base ?? {});
128
164
  },
129
165
  fromPartial(object) {
130
- var _a, _b, _c, _d, _e, _f;
131
166
  const message = createBaseModelParams();
132
- message.initialGasPrice = (_a = object.initialGasPrice) !== null && _a !== void 0 ? _a : "";
133
- message.maxGasPriceMultiplier = (_b = object.maxGasPriceMultiplier) !== null && _b !== void 0 ? _b : "";
134
- message.maxDiscount = (_c = object.maxDiscount) !== null && _c !== void 0 ? _c : "";
135
- message.escalationStartFraction = (_d = object.escalationStartFraction) !== null && _d !== void 0 ? _d : "";
136
- message.maxBlockGas = (object.maxBlockGas !== undefined && object.maxBlockGas !== null)
137
- ? long_1.default.fromValue(object.maxBlockGas)
138
- : long_1.default.ZERO;
139
- message.shortEmaBlockLength = (_e = object.shortEmaBlockLength) !== null && _e !== void 0 ? _e : 0;
140
- message.longEmaBlockLength = (_f = object.longEmaBlockLength) !== null && _f !== void 0 ? _f : 0;
167
+ message.initialGasPrice = object.initialGasPrice ?? "";
168
+ message.maxGasPriceMultiplier = object.maxGasPriceMultiplier ?? "";
169
+ message.maxDiscount = object.maxDiscount ?? "";
170
+ message.escalationStartFraction = object.escalationStartFraction ?? "";
171
+ message.maxBlockGas = object.maxBlockGas ?? 0;
172
+ message.shortEmaBlockLength = object.shortEmaBlockLength ?? 0;
173
+ message.longEmaBlockLength = object.longEmaBlockLength ?? 0;
141
174
  return message;
142
175
  },
143
176
  };
@@ -145,55 +178,69 @@ function createBaseParams() {
145
178
  return { model: undefined };
146
179
  }
147
180
  exports.Params = {
148
- encode(message, writer = minimal_1.default.Writer.create()) {
181
+ encode(message, writer = new binary_1.BinaryWriter()) {
149
182
  if (message.model !== undefined) {
150
183
  exports.ModelParams.encode(message.model, writer.uint32(10).fork()).ldelim();
151
184
  }
152
185
  return writer;
153
186
  },
154
187
  decode(input, length) {
155
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
188
+ const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
156
189
  let end = length === undefined ? reader.len : reader.pos + length;
157
190
  const message = createBaseParams();
158
191
  while (reader.pos < end) {
159
192
  const tag = reader.uint32();
160
193
  switch (tag >>> 3) {
161
- case 1:
162
- if (tag != 10) {
194
+ case 1: {
195
+ if (tag !== 10) {
163
196
  break;
164
197
  }
165
198
  message.model = exports.ModelParams.decode(reader, reader.uint32());
166
199
  continue;
200
+ }
167
201
  }
168
- if ((tag & 7) == 4 || tag == 0) {
202
+ if ((tag & 7) === 4 || tag === 0) {
169
203
  break;
170
204
  }
171
- reader.skipType(tag & 7);
205
+ reader.skip(tag & 7);
172
206
  }
173
207
  return message;
174
208
  },
175
209
  fromJSON(object) {
176
- return { model: isSet(object.model) ? exports.ModelParams.fromJSON(object.model) : undefined };
210
+ return {
211
+ model: isSet(object.model)
212
+ ? exports.ModelParams.fromJSON(object.model)
213
+ : undefined,
214
+ };
177
215
  },
178
216
  toJSON(message) {
179
217
  const obj = {};
180
- message.model !== undefined && (obj.model = message.model ? exports.ModelParams.toJSON(message.model) : undefined);
218
+ if (message.model !== undefined) {
219
+ obj.model = exports.ModelParams.toJSON(message.model);
220
+ }
181
221
  return obj;
182
222
  },
183
223
  create(base) {
184
- return exports.Params.fromPartial(base !== null && base !== void 0 ? base : {});
224
+ return exports.Params.fromPartial(base ?? {});
185
225
  },
186
226
  fromPartial(object) {
187
227
  const message = createBaseParams();
188
- message.model = (object.model !== undefined && object.model !== null)
189
- ? exports.ModelParams.fromPartial(object.model)
190
- : undefined;
228
+ message.model =
229
+ object.model !== undefined && object.model !== null
230
+ ? exports.ModelParams.fromPartial(object.model)
231
+ : undefined;
191
232
  return message;
192
233
  },
193
234
  };
194
- if (minimal_1.default.util.Long !== long_1.default) {
195
- minimal_1.default.util.Long = long_1.default;
196
- minimal_1.default.configure();
235
+ function longToNumber(int64) {
236
+ const num = globalThis.Number(int64.toString());
237
+ if (num > globalThis.Number.MAX_SAFE_INTEGER) {
238
+ throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
239
+ }
240
+ if (num < globalThis.Number.MIN_SAFE_INTEGER) {
241
+ throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
242
+ }
243
+ return num;
197
244
  }
198
245
  function isSet(value) {
199
246
  return value !== null && value !== undefined;
@@ -1,5 +1,4 @@
1
- import Long from "long";
2
- import _m0 from "protobufjs/minimal";
1
+ import { BinaryReader, BinaryWriter } from "cosmjs-types/binary";
3
2
  import { DecCoin } from "cosmjs-types/cosmos/base/v1beta1/coin";
4
3
  import { Params } from "./params";
5
4
  export declare const protobufPackage = "coreum.feemodel.v1";
@@ -9,54 +8,39 @@ export interface QueryMinGasPriceRequest {
9
8
  /** QueryMinGasPriceResponse is the response type for the Query/MinGasPrice RPC method. */
10
9
  export interface QueryMinGasPriceResponse {
11
10
  /** min_gas_price is the current minimum gas price required by the network. */
12
- minGasPrice?: DecCoin;
11
+ minGasPrice: DecCoin | undefined;
12
+ }
13
+ export interface QueryRecommendedGasPriceRequest {
14
+ afterBlocks: number;
15
+ }
16
+ export interface QueryRecommendedGasPriceResponse {
17
+ low: DecCoin | undefined;
18
+ med: DecCoin | undefined;
19
+ high: DecCoin | undefined;
13
20
  }
14
21
  /** QueryParamsRequest defines the request type for querying x/feemodel parameters. */
15
22
  export interface QueryParamsRequest {
16
23
  }
17
24
  /** QueryParamsResponse defines the response type for querying x/feemodel parameters. */
18
25
  export interface QueryParamsResponse {
19
- params?: Params;
26
+ params: Params | undefined;
20
27
  }
21
- export declare const QueryMinGasPriceRequest: {
22
- encode(_: QueryMinGasPriceRequest, writer?: _m0.Writer): _m0.Writer;
23
- decode(input: _m0.Reader | Uint8Array, length?: number): QueryMinGasPriceRequest;
24
- fromJSON(_: any): QueryMinGasPriceRequest;
25
- toJSON(_: QueryMinGasPriceRequest): unknown;
26
- create<I extends Exact<DeepPartial<QueryMinGasPriceRequest>, I>>(base?: I): QueryMinGasPriceRequest;
27
- fromPartial<I extends Exact<DeepPartial<QueryMinGasPriceRequest>, I>>(_: I): QueryMinGasPriceRequest;
28
- };
29
- export declare const QueryMinGasPriceResponse: {
30
- encode(message: QueryMinGasPriceResponse, writer?: _m0.Writer): _m0.Writer;
31
- decode(input: _m0.Reader | Uint8Array, length?: number): QueryMinGasPriceResponse;
32
- fromJSON(object: any): QueryMinGasPriceResponse;
33
- toJSON(message: QueryMinGasPriceResponse): unknown;
34
- create<I extends Exact<DeepPartial<QueryMinGasPriceResponse>, I>>(base?: I): QueryMinGasPriceResponse;
35
- fromPartial<I extends Exact<DeepPartial<QueryMinGasPriceResponse>, I>>(object: I): QueryMinGasPriceResponse;
36
- };
37
- export declare const QueryParamsRequest: {
38
- encode(_: QueryParamsRequest, writer?: _m0.Writer): _m0.Writer;
39
- decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsRequest;
40
- fromJSON(_: any): QueryParamsRequest;
41
- toJSON(_: QueryParamsRequest): unknown;
42
- create<I extends Exact<DeepPartial<QueryParamsRequest>, I>>(base?: I): QueryParamsRequest;
43
- fromPartial<I extends Exact<DeepPartial<QueryParamsRequest>, I>>(_: I): QueryParamsRequest;
44
- };
45
- export declare const QueryParamsResponse: {
46
- encode(message: QueryParamsResponse, writer?: _m0.Writer): _m0.Writer;
47
- decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsResponse;
48
- fromJSON(object: any): QueryParamsResponse;
49
- toJSON(message: QueryParamsResponse): unknown;
50
- create<I extends Exact<DeepPartial<QueryParamsResponse>, I>>(base?: I): QueryParamsResponse;
51
- fromPartial<I extends Exact<DeepPartial<QueryParamsResponse>, I>>(object: I): QueryParamsResponse;
52
- };
28
+ export declare const QueryMinGasPriceRequest: MessageFns<QueryMinGasPriceRequest>;
29
+ export declare const QueryMinGasPriceResponse: MessageFns<QueryMinGasPriceResponse>;
30
+ export declare const QueryRecommendedGasPriceRequest: MessageFns<QueryRecommendedGasPriceRequest>;
31
+ export declare const QueryRecommendedGasPriceResponse: MessageFns<QueryRecommendedGasPriceResponse>;
32
+ export declare const QueryParamsRequest: MessageFns<QueryParamsRequest>;
33
+ export declare const QueryParamsResponse: MessageFns<QueryParamsResponse>;
53
34
  /** Query defines the gRPC querier service. */
54
35
  export interface Query {
55
36
  /** MinGasPrice queries the current minimum gas price required by the network. */
56
37
  MinGasPrice(request: QueryMinGasPriceRequest): Promise<QueryMinGasPriceResponse>;
38
+ /** RecommendedGasPrice queries the recommended gas price for the next n blocks. */
39
+ RecommendedGasPrice(request: QueryRecommendedGasPriceRequest): Promise<QueryRecommendedGasPriceResponse>;
57
40
  /** Params queries the parameters of x/feemodel module. */
58
41
  Params(request: QueryParamsRequest): Promise<QueryParamsResponse>;
59
42
  }
43
+ export declare const QueryServiceName = "coreum.feemodel.v1.Query";
60
44
  export declare class QueryClientImpl implements Query {
61
45
  private readonly rpc;
62
46
  private readonly service;
@@ -64,13 +48,14 @@ export declare class QueryClientImpl implements Query {
64
48
  service?: string;
65
49
  });
66
50
  MinGasPrice(request: QueryMinGasPriceRequest): Promise<QueryMinGasPriceResponse>;
51
+ RecommendedGasPrice(request: QueryRecommendedGasPriceRequest): Promise<QueryRecommendedGasPriceResponse>;
67
52
  Params(request: QueryParamsRequest): Promise<QueryParamsResponse>;
68
53
  }
69
54
  interface Rpc {
70
55
  request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
71
56
  }
72
57
  type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
73
- export type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
58
+ export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
74
59
  [K in keyof T]?: DeepPartial<T[K]>;
75
60
  } : Partial<T>;
76
61
  type KeysOfUnion<T> = T extends T ? keyof T : never;
@@ -79,4 +64,12 @@ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
79
64
  } & {
80
65
  [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
81
66
  };
67
+ export interface MessageFns<T> {
68
+ encode(message: T, writer?: BinaryWriter): BinaryWriter;
69
+ decode(input: BinaryReader | Uint8Array, length?: number): T;
70
+ fromJSON(object: any): T;
71
+ toJSON(message: T): unknown;
72
+ create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
73
+ fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
74
+ }
82
75
  export {};