carbon-js-sdk 0.3.49 → 0.3.50

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 (96) hide show
  1. package/lib/codec/broker/event.d.ts +13 -7
  2. package/lib/codec/broker/event.js +181 -93
  3. package/lib/codec/cdp/asset_params.d.ts +17 -0
  4. package/lib/codec/cdp/asset_params.js +148 -1
  5. package/lib/codec/cdp/tx.d.ts +2 -2
  6. package/lib/codec/cdp/tx.js +5 -5
  7. package/lib/codec/ibc/applications/interchain_accounts/controller/export.d.ts +1 -1
  8. package/lib/codec/ibc/applications/interchain_accounts/controller/export.js +3 -1
  9. package/lib/codec/ibc/applications/interchain_accounts/controller/v1/query.d.ts +26 -0
  10. package/lib/codec/ibc/applications/interchain_accounts/controller/v1/query.js +113 -1
  11. package/lib/codec/ibc/applications/transfer/v1/export.d.ts +1 -1
  12. package/lib/codec/ibc/applications/transfer/v1/export.js +3 -1
  13. package/lib/codec/ibc/applications/transfer/v1/query.d.ts +30 -1
  14. package/lib/codec/ibc/applications/transfer/v1/query.js +110 -1
  15. package/lib/codec/ibc/applications/transfer/v1/tx.d.ts +8 -4
  16. package/lib/codec/ibc/applications/transfer/v1/tx.js +35 -6
  17. package/lib/codec/ibc/applications/transfer/v2/packet.d.ts +2 -0
  18. package/lib/codec/ibc/applications/transfer/v2/packet.js +14 -1
  19. package/lib/codec/ibc/core/channel/v1/tx.d.ts +12 -10
  20. package/lib/codec/ibc/core/channel/v1/tx.js +50 -25
  21. package/lib/codec/ibc/core/client/v1/export.d.ts +1 -1
  22. package/lib/codec/ibc/core/client/v1/export.js +3 -1
  23. package/lib/codec/ibc/core/client/v1/query.d.ts +37 -0
  24. package/lib/codec/ibc/core/client/v1/query.js +137 -1
  25. package/lib/codec/ibc/lightclients/tendermint/v1/tendermint.d.ts +6 -4
  26. package/lib/codec/index.d.ts +1 -1
  27. package/lib/codec/index.js +13 -12
  28. package/lib/codec/{evmmerge/event.d.ts → liquiditypool/legacy.d.ts} +9 -11
  29. package/lib/codec/liquiditypool/legacy.js +64 -0
  30. package/lib/modules/admin.d.ts +8 -1
  31. package/lib/modules/admin.js +8 -8
  32. package/lib/websocket/models.d.ts +18 -0
  33. package/package.json +1 -1
  34. package/lib/clients/EvmIbcClient.d.ts +0 -86
  35. package/lib/clients/EvmIbcClient.js +0 -90
  36. package/lib/codec/ethermint/crypto/v1/ethsecp256k1/keys.d.ts +0 -39
  37. package/lib/codec/ethermint/crypto/v1/ethsecp256k1/keys.js +0 -138
  38. package/lib/codec/ethermint/evm/v1/evm.d.ts +0 -239
  39. package/lib/codec/ethermint/evm/v1/evm.js +0 -1140
  40. package/lib/codec/ethermint/evm/v1/genesis.d.ts +0 -43
  41. package/lib/codec/ethermint/evm/v1/genesis.js +0 -153
  42. package/lib/codec/ethermint/evm/v1/query.d.ts +0 -424
  43. package/lib/codec/ethermint/evm/v1/query.js +0 -1637
  44. package/lib/codec/ethermint/evm/v1/tx.d.ts +0 -183
  45. package/lib/codec/ethermint/evm/v1/tx.js +0 -836
  46. package/lib/codec/ethermint/feemarket/v1/feemarket.d.ts +0 -41
  47. package/lib/codec/ethermint/feemarket/v1/feemarket.js +0 -149
  48. package/lib/codec/ethermint/feemarket/v1/genesis.d.ts +0 -26
  49. package/lib/codec/ethermint/feemarket/v1/genesis.js +0 -79
  50. package/lib/codec/ethermint/feemarket/v1/query.d.ts +0 -100
  51. package/lib/codec/ethermint/feemarket/v1/query.js +0 -276
  52. package/lib/codec/ethermint/types/v1/account.d.ts +0 -26
  53. package/lib/codec/ethermint/types/v1/account.js +0 -78
  54. package/lib/codec/ethermint/types/v1/dynamic_fee.d.ts +0 -20
  55. package/lib/codec/ethermint/types/v1/dynamic_fee.js +0 -60
  56. package/lib/codec/ethermint/types/v1/indexer.d.ts +0 -41
  57. package/lib/codec/ethermint/types/v1/indexer.js +0 -153
  58. package/lib/codec/ethermint/types/v1/web3.d.ts +0 -36
  59. package/lib/codec/ethermint/types/v1/web3.js +0 -124
  60. package/lib/codec/evmbank/genesis.d.ts +0 -32
  61. package/lib/codec/evmbank/genesis.js +0 -152
  62. package/lib/codec/evmbank/query.d.ts +0 -40
  63. package/lib/codec/evmbank/query.js +0 -116
  64. package/lib/codec/evmmerge/event.js +0 -90
  65. package/lib/codec/evmmerge/genesis.d.ts +0 -48
  66. package/lib/codec/evmmerge/genesis.js +0 -216
  67. package/lib/codec/evmmerge/offchain.d.ts +0 -22
  68. package/lib/codec/evmmerge/offchain.js +0 -105
  69. package/lib/codec/evmmerge/query.d.ts +0 -43
  70. package/lib/codec/evmmerge/query.js +0 -117
  71. package/lib/codec/evmmerge/tx.d.ts +0 -45
  72. package/lib/codec/evmmerge/tx.js +0 -128
  73. package/lib/codec/ibc/applications/fee/v1/ack.d.ts +0 -24
  74. package/lib/codec/ibc/applications/fee/v1/ack.js +0 -125
  75. package/lib/codec/ibc/applications/fee/v1/fee.d.ts +0 -68
  76. package/lib/codec/ibc/applications/fee/v1/fee.js +0 -289
  77. package/lib/codec/ibc/applications/fee/v1/genesis.d.ts +0 -93
  78. package/lib/codec/ibc/applications/fee/v1/genesis.js +0 -390
  79. package/lib/codec/ibc/applications/fee/v1/metadata.d.ts +0 -25
  80. package/lib/codec/ibc/applications/fee/v1/metadata.js +0 -71
  81. package/lib/codec/ibc/applications/fee/v1/query.d.ts +0 -312
  82. package/lib/codec/ibc/applications/fee/v1/query.js +0 -1187
  83. package/lib/codec/ibc/applications/fee/v1/tx.d.ts +0 -171
  84. package/lib/codec/ibc/applications/fee/v1/tx.js +0 -524
  85. package/lib/codec/ibc/applications/interchain_accounts/controller/v1/tx.d.ts +0 -78
  86. package/lib/codec/ibc/applications/interchain_accounts/controller/v1/tx.js +0 -296
  87. package/lib/codec/ibc/applications/interchain_accounts/genesis/v1/genesis.d.ts +0 -80
  88. package/lib/codec/ibc/applications/interchain_accounts/genesis/v1/genesis.js +0 -439
  89. package/lib/util/ethermint/evm-ibc.d.ts +0 -97
  90. package/lib/util/ethermint/evm-ibc.js +0 -134
  91. package/lib/util/ethermint/index.d.ts +0 -3
  92. package/lib/util/ethermint/index.js +0 -12
  93. package/lib/util/ethermint/keys.d.ts +0 -39
  94. package/lib/util/ethermint/keys.js +0 -138
  95. package/lib/util/ethermint/web3.d.ts +0 -36
  96. package/lib/util/ethermint/web3.js +0 -124
@@ -13,6 +13,7 @@ const baseFungibleTokenPacketData = {
13
13
  amount: "",
14
14
  sender: "",
15
15
  receiver: "",
16
+ memo: "",
16
17
  };
17
18
  exports.FungibleTokenPacketData = {
18
19
  encode(message, writer = minimal_1.default.Writer.create()) {
@@ -28,6 +29,9 @@ exports.FungibleTokenPacketData = {
28
29
  if (message.receiver !== "") {
29
30
  writer.uint32(34).string(message.receiver);
30
31
  }
32
+ if (message.memo !== "") {
33
+ writer.uint32(42).string(message.memo);
34
+ }
31
35
  return writer;
32
36
  },
33
37
  decode(input, length) {
@@ -49,6 +53,9 @@ exports.FungibleTokenPacketData = {
49
53
  case 4:
50
54
  message.receiver = reader.string();
51
55
  break;
56
+ case 5:
57
+ message.memo = reader.string();
58
+ break;
52
59
  default:
53
60
  reader.skipType(tag & 7);
54
61
  break;
@@ -74,6 +81,10 @@ exports.FungibleTokenPacketData = {
74
81
  object.receiver !== undefined && object.receiver !== null
75
82
  ? String(object.receiver)
76
83
  : "";
84
+ message.memo =
85
+ object.memo !== undefined && object.memo !== null
86
+ ? String(object.memo)
87
+ : "";
77
88
  return message;
78
89
  },
79
90
  toJSON(message) {
@@ -82,15 +93,17 @@ exports.FungibleTokenPacketData = {
82
93
  message.amount !== undefined && (obj.amount = message.amount);
83
94
  message.sender !== undefined && (obj.sender = message.sender);
84
95
  message.receiver !== undefined && (obj.receiver = message.receiver);
96
+ message.memo !== undefined && (obj.memo = message.memo);
85
97
  return obj;
86
98
  },
87
99
  fromPartial(object) {
88
- var _a, _b, _c, _d;
100
+ var _a, _b, _c, _d, _e;
89
101
  const message = Object.assign({}, baseFungibleTokenPacketData);
90
102
  message.denom = (_a = object.denom) !== null && _a !== void 0 ? _a : "";
91
103
  message.amount = (_b = object.amount) !== null && _b !== void 0 ? _b : "";
92
104
  message.sender = (_c = object.sender) !== null && _c !== void 0 ? _c : "";
93
105
  message.receiver = (_d = object.receiver) !== null && _d !== void 0 ? _d : "";
106
+ message.memo = (_e = object.memo) !== null && _e !== void 0 ? _e : "";
94
107
  return message;
95
108
  },
96
109
  };
@@ -5,12 +5,12 @@ import { Height } from "../../client/v1/client";
5
5
  export declare const protobufPackage = "ibc.core.channel.v1";
6
6
  /** ResponseResultType defines the possible outcomes of the execution of a message */
7
7
  export declare enum ResponseResultType {
8
- /** RESPONSE_RESULT_UNSPECIFIED - Default zero value enumeration */
9
- RESPONSE_RESULT_UNSPECIFIED = 0,
10
- /** RESPONSE_RESULT_NOOP - The message did not call the IBC application callbacks (because, for example, the packet had already been relayed) */
11
- RESPONSE_RESULT_NOOP = 1,
12
- /** RESPONSE_RESULT_SUCCESS - The message was executed successfully */
13
- RESPONSE_RESULT_SUCCESS = 2,
8
+ /** RESPONSE_RESULT_TYPE_UNSPECIFIED - Default zero value enumeration */
9
+ RESPONSE_RESULT_TYPE_UNSPECIFIED = 0,
10
+ /** RESPONSE_RESULT_TYPE_NOOP - The message did not call the IBC application callbacks (because, for example, the packet had already been relayed) */
11
+ RESPONSE_RESULT_TYPE_NOOP = 1,
12
+ /** RESPONSE_RESULT_TYPE_SUCCESS - The message was executed successfully */
13
+ RESPONSE_RESULT_TYPE_SUCCESS = 2,
14
14
  UNRECOGNIZED = -1
15
15
  }
16
16
  export declare function responseResultTypeFromJSON(object: any): ResponseResultType;
@@ -27,6 +27,7 @@ export interface MsgChannelOpenInit {
27
27
  /** MsgChannelOpenInitResponse defines the Msg/ChannelOpenInit response type. */
28
28
  export interface MsgChannelOpenInitResponse {
29
29
  channelId: string;
30
+ version: string;
30
31
  }
31
32
  /**
32
33
  * MsgChannelOpenInit defines a msg sent by a Relayer to try to open a channel
@@ -49,6 +50,7 @@ export interface MsgChannelOpenTry {
49
50
  }
50
51
  /** MsgChannelOpenTryResponse defines the Msg/ChannelOpenTry response type. */
51
52
  export interface MsgChannelOpenTryResponse {
53
+ version: string;
52
54
  }
53
55
  /**
54
56
  * MsgChannelOpenAck defines a msg sent by a Relayer to Chain A to acknowledge
@@ -182,11 +184,11 @@ export declare const MsgChannelOpenTry: {
182
184
  fromPartial(object: DeepPartial<MsgChannelOpenTry>): MsgChannelOpenTry;
183
185
  };
184
186
  export declare const MsgChannelOpenTryResponse: {
185
- encode(_: MsgChannelOpenTryResponse, writer?: _m0.Writer): _m0.Writer;
187
+ encode(message: MsgChannelOpenTryResponse, writer?: _m0.Writer): _m0.Writer;
186
188
  decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgChannelOpenTryResponse;
187
- fromJSON(_: any): MsgChannelOpenTryResponse;
188
- toJSON(_: MsgChannelOpenTryResponse): unknown;
189
- fromPartial(_: DeepPartial<MsgChannelOpenTryResponse>): MsgChannelOpenTryResponse;
189
+ fromJSON(object: any): MsgChannelOpenTryResponse;
190
+ toJSON(message: MsgChannelOpenTryResponse): unknown;
191
+ fromPartial(object: DeepPartial<MsgChannelOpenTryResponse>): MsgChannelOpenTryResponse;
190
192
  };
191
193
  export declare const MsgChannelOpenAck: {
192
194
  encode(message: MsgChannelOpenAck, writer?: _m0.Writer): _m0.Writer;
@@ -13,25 +13,25 @@ exports.protobufPackage = "ibc.core.channel.v1";
13
13
  /** ResponseResultType defines the possible outcomes of the execution of a message */
14
14
  var ResponseResultType;
15
15
  (function (ResponseResultType) {
16
- /** RESPONSE_RESULT_UNSPECIFIED - Default zero value enumeration */
17
- ResponseResultType[ResponseResultType["RESPONSE_RESULT_UNSPECIFIED"] = 0] = "RESPONSE_RESULT_UNSPECIFIED";
18
- /** RESPONSE_RESULT_NOOP - The message did not call the IBC application callbacks (because, for example, the packet had already been relayed) */
19
- ResponseResultType[ResponseResultType["RESPONSE_RESULT_NOOP"] = 1] = "RESPONSE_RESULT_NOOP";
20
- /** RESPONSE_RESULT_SUCCESS - The message was executed successfully */
21
- ResponseResultType[ResponseResultType["RESPONSE_RESULT_SUCCESS"] = 2] = "RESPONSE_RESULT_SUCCESS";
16
+ /** RESPONSE_RESULT_TYPE_UNSPECIFIED - Default zero value enumeration */
17
+ ResponseResultType[ResponseResultType["RESPONSE_RESULT_TYPE_UNSPECIFIED"] = 0] = "RESPONSE_RESULT_TYPE_UNSPECIFIED";
18
+ /** RESPONSE_RESULT_TYPE_NOOP - The message did not call the IBC application callbacks (because, for example, the packet had already been relayed) */
19
+ ResponseResultType[ResponseResultType["RESPONSE_RESULT_TYPE_NOOP"] = 1] = "RESPONSE_RESULT_TYPE_NOOP";
20
+ /** RESPONSE_RESULT_TYPE_SUCCESS - The message was executed successfully */
21
+ ResponseResultType[ResponseResultType["RESPONSE_RESULT_TYPE_SUCCESS"] = 2] = "RESPONSE_RESULT_TYPE_SUCCESS";
22
22
  ResponseResultType[ResponseResultType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
23
23
  })(ResponseResultType = exports.ResponseResultType || (exports.ResponseResultType = {}));
24
24
  function responseResultTypeFromJSON(object) {
25
25
  switch (object) {
26
26
  case 0:
27
- case "RESPONSE_RESULT_UNSPECIFIED":
28
- return ResponseResultType.RESPONSE_RESULT_UNSPECIFIED;
27
+ case "RESPONSE_RESULT_TYPE_UNSPECIFIED":
28
+ return ResponseResultType.RESPONSE_RESULT_TYPE_UNSPECIFIED;
29
29
  case 1:
30
- case "RESPONSE_RESULT_NOOP":
31
- return ResponseResultType.RESPONSE_RESULT_NOOP;
30
+ case "RESPONSE_RESULT_TYPE_NOOP":
31
+ return ResponseResultType.RESPONSE_RESULT_TYPE_NOOP;
32
32
  case 2:
33
- case "RESPONSE_RESULT_SUCCESS":
34
- return ResponseResultType.RESPONSE_RESULT_SUCCESS;
33
+ case "RESPONSE_RESULT_TYPE_SUCCESS":
34
+ return ResponseResultType.RESPONSE_RESULT_TYPE_SUCCESS;
35
35
  case -1:
36
36
  case "UNRECOGNIZED":
37
37
  default:
@@ -41,12 +41,12 @@ function responseResultTypeFromJSON(object) {
41
41
  exports.responseResultTypeFromJSON = responseResultTypeFromJSON;
42
42
  function responseResultTypeToJSON(object) {
43
43
  switch (object) {
44
- case ResponseResultType.RESPONSE_RESULT_UNSPECIFIED:
45
- return "RESPONSE_RESULT_UNSPECIFIED";
46
- case ResponseResultType.RESPONSE_RESULT_NOOP:
47
- return "RESPONSE_RESULT_NOOP";
48
- case ResponseResultType.RESPONSE_RESULT_SUCCESS:
49
- return "RESPONSE_RESULT_SUCCESS";
44
+ case ResponseResultType.RESPONSE_RESULT_TYPE_UNSPECIFIED:
45
+ return "RESPONSE_RESULT_TYPE_UNSPECIFIED";
46
+ case ResponseResultType.RESPONSE_RESULT_TYPE_NOOP:
47
+ return "RESPONSE_RESULT_TYPE_NOOP";
48
+ case ResponseResultType.RESPONSE_RESULT_TYPE_SUCCESS:
49
+ return "RESPONSE_RESULT_TYPE_SUCCESS";
50
50
  default:
51
51
  return "UNKNOWN";
52
52
  }
@@ -127,12 +127,15 @@ exports.MsgChannelOpenInit = {
127
127
  return message;
128
128
  },
129
129
  };
130
- const baseMsgChannelOpenInitResponse = { channelId: "" };
130
+ const baseMsgChannelOpenInitResponse = { channelId: "", version: "" };
131
131
  exports.MsgChannelOpenInitResponse = {
132
132
  encode(message, writer = minimal_1.default.Writer.create()) {
133
133
  if (message.channelId !== "") {
134
134
  writer.uint32(10).string(message.channelId);
135
135
  }
136
+ if (message.version !== "") {
137
+ writer.uint32(18).string(message.version);
138
+ }
136
139
  return writer;
137
140
  },
138
141
  decode(input, length) {
@@ -145,6 +148,9 @@ exports.MsgChannelOpenInitResponse = {
145
148
  case 1:
146
149
  message.channelId = reader.string();
147
150
  break;
151
+ case 2:
152
+ message.version = reader.string();
153
+ break;
148
154
  default:
149
155
  reader.skipType(tag & 7);
150
156
  break;
@@ -158,17 +164,23 @@ exports.MsgChannelOpenInitResponse = {
158
164
  object.channelId !== undefined && object.channelId !== null
159
165
  ? String(object.channelId)
160
166
  : "";
167
+ message.version =
168
+ object.version !== undefined && object.version !== null
169
+ ? String(object.version)
170
+ : "";
161
171
  return message;
162
172
  },
163
173
  toJSON(message) {
164
174
  const obj = {};
165
175
  message.channelId !== undefined && (obj.channelId = message.channelId);
176
+ message.version !== undefined && (obj.version = message.version);
166
177
  return obj;
167
178
  },
168
179
  fromPartial(object) {
169
- var _a;
180
+ var _a, _b;
170
181
  const message = Object.assign({}, baseMsgChannelOpenInitResponse);
171
182
  message.channelId = (_a = object.channelId) !== null && _a !== void 0 ? _a : "";
183
+ message.version = (_b = object.version) !== null && _b !== void 0 ? _b : "";
172
184
  return message;
173
185
  },
174
186
  };
@@ -312,9 +324,12 @@ exports.MsgChannelOpenTry = {
312
324
  return message;
313
325
  },
314
326
  };
315
- const baseMsgChannelOpenTryResponse = {};
327
+ const baseMsgChannelOpenTryResponse = { version: "" };
316
328
  exports.MsgChannelOpenTryResponse = {
317
- encode(_, writer = minimal_1.default.Writer.create()) {
329
+ encode(message, writer = minimal_1.default.Writer.create()) {
330
+ if (message.version !== "") {
331
+ writer.uint32(10).string(message.version);
332
+ }
318
333
  return writer;
319
334
  },
320
335
  decode(input, length) {
@@ -324,6 +339,9 @@ exports.MsgChannelOpenTryResponse = {
324
339
  while (reader.pos < end) {
325
340
  const tag = reader.uint32();
326
341
  switch (tag >>> 3) {
342
+ case 1:
343
+ message.version = reader.string();
344
+ break;
327
345
  default:
328
346
  reader.skipType(tag & 7);
329
347
  break;
@@ -331,16 +349,23 @@ exports.MsgChannelOpenTryResponse = {
331
349
  }
332
350
  return message;
333
351
  },
334
- fromJSON(_) {
352
+ fromJSON(object) {
335
353
  const message = Object.assign({}, baseMsgChannelOpenTryResponse);
354
+ message.version =
355
+ object.version !== undefined && object.version !== null
356
+ ? String(object.version)
357
+ : "";
336
358
  return message;
337
359
  },
338
- toJSON(_) {
360
+ toJSON(message) {
339
361
  const obj = {};
362
+ message.version !== undefined && (obj.version = message.version);
340
363
  return obj;
341
364
  },
342
- fromPartial(_) {
365
+ fromPartial(object) {
366
+ var _a;
343
367
  const message = Object.assign({}, baseMsgChannelOpenTryResponse);
368
+ message.version = (_a = object.version) !== null && _a !== void 0 ? _a : "";
344
369
  return message;
345
370
  },
346
371
  };
@@ -1,4 +1,4 @@
1
1
  export { IdentifiedClientState, ConsensusStateWithHeight, ClientConsensusStates, ClientUpdateProposal, UpgradeProposal, Height, Params } from "./client";
2
2
  export { GenesisMetadata, IdentifiedGenesisMetadata } from "./genesis";
3
- export { QueryClientStateRequest, QueryClientStateResponse, QueryClientStatesRequest, QueryClientStatesResponse, QueryConsensusStateRequest, QueryConsensusStateResponse, QueryConsensusStatesRequest, QueryConsensusStatesResponse, QueryClientStatusRequest, QueryClientStatusResponse, QueryClientParamsRequest, QueryClientParamsResponse, QueryUpgradedClientStateRequest, QueryUpgradedClientStateResponse, QueryUpgradedConsensusStateRequest, QueryUpgradedConsensusStateResponse } from "./query";
3
+ export { QueryClientStateRequest, QueryClientStateResponse, QueryClientStatesRequest, QueryClientStatesResponse, QueryConsensusStateRequest, QueryConsensusStateResponse, QueryConsensusStatesRequest, QueryConsensusStatesResponse, QueryConsensusStateHeightsRequest, QueryConsensusStateHeightsResponse, QueryClientStatusRequest, QueryClientStatusResponse, QueryClientParamsRequest, QueryClientParamsResponse, QueryUpgradedClientStateRequest, QueryUpgradedClientStateResponse, QueryUpgradedConsensusStateRequest, QueryUpgradedConsensusStateResponse } from "./query";
4
4
  export { MsgCreateClient, MsgCreateClientResponse, MsgUpdateClient, MsgUpdateClientResponse, MsgUpgradeClient, MsgUpgradeClientResponse, MsgSubmitMisbehaviour, MsgSubmitMisbehaviourResponse } from "./tx";
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MsgSubmitMisbehaviourResponse = exports.MsgSubmitMisbehaviour = exports.MsgUpgradeClientResponse = exports.MsgUpgradeClient = exports.MsgUpdateClientResponse = exports.MsgUpdateClient = exports.MsgCreateClientResponse = exports.MsgCreateClient = exports.QueryUpgradedConsensusStateResponse = exports.QueryUpgradedConsensusStateRequest = exports.QueryUpgradedClientStateResponse = exports.QueryUpgradedClientStateRequest = exports.QueryClientParamsResponse = exports.QueryClientParamsRequest = exports.QueryClientStatusResponse = exports.QueryClientStatusRequest = exports.QueryConsensusStatesResponse = exports.QueryConsensusStatesRequest = exports.QueryConsensusStateResponse = exports.QueryConsensusStateRequest = exports.QueryClientStatesResponse = exports.QueryClientStatesRequest = exports.QueryClientStateResponse = exports.QueryClientStateRequest = exports.IdentifiedGenesisMetadata = exports.GenesisMetadata = exports.Params = exports.Height = exports.UpgradeProposal = exports.ClientUpdateProposal = exports.ClientConsensusStates = exports.ConsensusStateWithHeight = exports.IdentifiedClientState = void 0;
3
+ exports.MsgSubmitMisbehaviourResponse = exports.MsgSubmitMisbehaviour = exports.MsgUpgradeClientResponse = exports.MsgUpgradeClient = exports.MsgUpdateClientResponse = exports.MsgUpdateClient = exports.MsgCreateClientResponse = exports.MsgCreateClient = exports.QueryUpgradedConsensusStateResponse = exports.QueryUpgradedConsensusStateRequest = exports.QueryUpgradedClientStateResponse = exports.QueryUpgradedClientStateRequest = exports.QueryClientParamsResponse = exports.QueryClientParamsRequest = exports.QueryClientStatusResponse = exports.QueryClientStatusRequest = exports.QueryConsensusStateHeightsResponse = exports.QueryConsensusStateHeightsRequest = exports.QueryConsensusStatesResponse = exports.QueryConsensusStatesRequest = exports.QueryConsensusStateResponse = exports.QueryConsensusStateRequest = exports.QueryClientStatesResponse = exports.QueryClientStatesRequest = exports.QueryClientStateResponse = exports.QueryClientStateRequest = exports.IdentifiedGenesisMetadata = exports.GenesisMetadata = exports.Params = exports.Height = exports.UpgradeProposal = exports.ClientUpdateProposal = exports.ClientConsensusStates = exports.ConsensusStateWithHeight = exports.IdentifiedClientState = void 0;
4
4
  var client_1 = require("./client");
5
5
  Object.defineProperty(exports, "IdentifiedClientState", { enumerable: true, get: function () { return client_1.IdentifiedClientState; } });
6
6
  Object.defineProperty(exports, "ConsensusStateWithHeight", { enumerable: true, get: function () { return client_1.ConsensusStateWithHeight; } });
@@ -21,6 +21,8 @@ Object.defineProperty(exports, "QueryConsensusStateRequest", { enumerable: true,
21
21
  Object.defineProperty(exports, "QueryConsensusStateResponse", { enumerable: true, get: function () { return query_1.QueryConsensusStateResponse; } });
22
22
  Object.defineProperty(exports, "QueryConsensusStatesRequest", { enumerable: true, get: function () { return query_1.QueryConsensusStatesRequest; } });
23
23
  Object.defineProperty(exports, "QueryConsensusStatesResponse", { enumerable: true, get: function () { return query_1.QueryConsensusStatesResponse; } });
24
+ Object.defineProperty(exports, "QueryConsensusStateHeightsRequest", { enumerable: true, get: function () { return query_1.QueryConsensusStateHeightsRequest; } });
25
+ Object.defineProperty(exports, "QueryConsensusStateHeightsResponse", { enumerable: true, get: function () { return query_1.QueryConsensusStateHeightsResponse; } });
24
26
  Object.defineProperty(exports, "QueryClientStatusRequest", { enumerable: true, get: function () { return query_1.QueryClientStatusRequest; } });
25
27
  Object.defineProperty(exports, "QueryClientStatusResponse", { enumerable: true, get: function () { return query_1.QueryClientStatusResponse; } });
26
28
  Object.defineProperty(exports, "QueryClientParamsRequest", { enumerable: true, get: function () { return query_1.QueryClientParamsRequest; } });
@@ -93,6 +93,26 @@ export interface QueryConsensusStatesResponse {
93
93
  /** pagination response */
94
94
  pagination?: PageResponse;
95
95
  }
96
+ /**
97
+ * QueryConsensusStateHeightsRequest is the request type for Query/ConsensusStateHeights
98
+ * RPC method.
99
+ */
100
+ export interface QueryConsensusStateHeightsRequest {
101
+ /** client identifier */
102
+ clientId: string;
103
+ /** pagination request */
104
+ pagination?: PageRequest;
105
+ }
106
+ /**
107
+ * QueryConsensusStateHeightsResponse is the response type for the
108
+ * Query/ConsensusStateHeights RPC method
109
+ */
110
+ export interface QueryConsensusStateHeightsResponse {
111
+ /** consensus state heights */
112
+ consensusStateHeights: Height[];
113
+ /** pagination response */
114
+ pagination?: PageResponse;
115
+ }
96
116
  /**
97
117
  * QueryClientStatusRequest is the request type for the Query/ClientStatus RPC
98
118
  * method
@@ -206,6 +226,20 @@ export declare const QueryConsensusStatesResponse: {
206
226
  toJSON(message: QueryConsensusStatesResponse): unknown;
207
227
  fromPartial(object: DeepPartial<QueryConsensusStatesResponse>): QueryConsensusStatesResponse;
208
228
  };
229
+ export declare const QueryConsensusStateHeightsRequest: {
230
+ encode(message: QueryConsensusStateHeightsRequest, writer?: _m0.Writer): _m0.Writer;
231
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryConsensusStateHeightsRequest;
232
+ fromJSON(object: any): QueryConsensusStateHeightsRequest;
233
+ toJSON(message: QueryConsensusStateHeightsRequest): unknown;
234
+ fromPartial(object: DeepPartial<QueryConsensusStateHeightsRequest>): QueryConsensusStateHeightsRequest;
235
+ };
236
+ export declare const QueryConsensusStateHeightsResponse: {
237
+ encode(message: QueryConsensusStateHeightsResponse, writer?: _m0.Writer): _m0.Writer;
238
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryConsensusStateHeightsResponse;
239
+ fromJSON(object: any): QueryConsensusStateHeightsResponse;
240
+ toJSON(message: QueryConsensusStateHeightsResponse): unknown;
241
+ fromPartial(object: DeepPartial<QueryConsensusStateHeightsResponse>): QueryConsensusStateHeightsResponse;
242
+ };
209
243
  export declare const QueryClientStatusRequest: {
210
244
  encode(message: QueryClientStatusRequest, writer?: _m0.Writer): _m0.Writer;
211
245
  decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryClientStatusRequest;
@@ -278,6 +312,8 @@ export interface Query {
278
312
  * client.
279
313
  */
280
314
  ConsensusStates(request: QueryConsensusStatesRequest): Promise<QueryConsensusStatesResponse>;
315
+ /** ConsensusStateHeights queries the height of every consensus states associated with a given client. */
316
+ ConsensusStateHeights(request: QueryConsensusStateHeightsRequest): Promise<QueryConsensusStateHeightsResponse>;
281
317
  /** Status queries the status of an IBC client. */
282
318
  ClientStatus(request: QueryClientStatusRequest): Promise<QueryClientStatusResponse>;
283
319
  /** ClientParams queries all parameters of the ibc client. */
@@ -294,6 +330,7 @@ export declare class QueryClientImpl implements Query {
294
330
  ClientStates(request: QueryClientStatesRequest): Promise<QueryClientStatesResponse>;
295
331
  ConsensusState(request: QueryConsensusStateRequest): Promise<QueryConsensusStateResponse>;
296
332
  ConsensusStates(request: QueryConsensusStatesRequest): Promise<QueryConsensusStatesResponse>;
333
+ ConsensusStateHeights(request: QueryConsensusStateHeightsRequest): Promise<QueryConsensusStateHeightsResponse>;
297
334
  ClientStatus(request: QueryClientStatusRequest): Promise<QueryClientStatusResponse>;
298
335
  ClientParams(request: QueryClientParamsRequest): Promise<QueryClientParamsResponse>;
299
336
  UpgradedClientState(request: QueryUpgradedClientStateRequest): Promise<QueryUpgradedClientStateResponse>;
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.QueryClientImpl = exports.QueryUpgradedConsensusStateResponse = exports.QueryUpgradedConsensusStateRequest = exports.QueryUpgradedClientStateResponse = exports.QueryUpgradedClientStateRequest = exports.QueryClientParamsResponse = exports.QueryClientParamsRequest = exports.QueryClientStatusResponse = exports.QueryClientStatusRequest = exports.QueryConsensusStatesResponse = exports.QueryConsensusStatesRequest = exports.QueryConsensusStateResponse = exports.QueryConsensusStateRequest = exports.QueryClientStatesResponse = exports.QueryClientStatesRequest = exports.QueryClientStateResponse = exports.QueryClientStateRequest = exports.protobufPackage = void 0;
6
+ exports.QueryClientImpl = exports.QueryUpgradedConsensusStateResponse = exports.QueryUpgradedConsensusStateRequest = exports.QueryUpgradedClientStateResponse = exports.QueryUpgradedClientStateRequest = exports.QueryClientParamsResponse = exports.QueryClientParamsRequest = exports.QueryClientStatusResponse = exports.QueryClientStatusRequest = exports.QueryConsensusStateHeightsResponse = exports.QueryConsensusStateHeightsRequest = exports.QueryConsensusStatesResponse = exports.QueryConsensusStatesRequest = exports.QueryConsensusStateResponse = exports.QueryConsensusStateRequest = exports.QueryClientStatesResponse = exports.QueryClientStatesRequest = exports.QueryClientStateResponse = exports.QueryClientStateRequest = exports.protobufPackage = void 0;
7
7
  /* eslint-disable */
8
8
  const long_1 = __importDefault(require("long"));
9
9
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
@@ -564,6 +564,136 @@ exports.QueryConsensusStatesResponse = {
564
564
  return message;
565
565
  },
566
566
  };
567
+ const baseQueryConsensusStateHeightsRequest = { clientId: "" };
568
+ exports.QueryConsensusStateHeightsRequest = {
569
+ encode(message, writer = minimal_1.default.Writer.create()) {
570
+ if (message.clientId !== "") {
571
+ writer.uint32(10).string(message.clientId);
572
+ }
573
+ if (message.pagination !== undefined) {
574
+ pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim();
575
+ }
576
+ return writer;
577
+ },
578
+ decode(input, length) {
579
+ const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
580
+ let end = length === undefined ? reader.len : reader.pos + length;
581
+ const message = Object.assign({}, baseQueryConsensusStateHeightsRequest);
582
+ while (reader.pos < end) {
583
+ const tag = reader.uint32();
584
+ switch (tag >>> 3) {
585
+ case 1:
586
+ message.clientId = reader.string();
587
+ break;
588
+ case 2:
589
+ message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32());
590
+ break;
591
+ default:
592
+ reader.skipType(tag & 7);
593
+ break;
594
+ }
595
+ }
596
+ return message;
597
+ },
598
+ fromJSON(object) {
599
+ const message = Object.assign({}, baseQueryConsensusStateHeightsRequest);
600
+ message.clientId =
601
+ object.clientId !== undefined && object.clientId !== null
602
+ ? String(object.clientId)
603
+ : "";
604
+ message.pagination =
605
+ object.pagination !== undefined && object.pagination !== null
606
+ ? pagination_1.PageRequest.fromJSON(object.pagination)
607
+ : undefined;
608
+ return message;
609
+ },
610
+ toJSON(message) {
611
+ const obj = {};
612
+ message.clientId !== undefined && (obj.clientId = message.clientId);
613
+ message.pagination !== undefined &&
614
+ (obj.pagination = message.pagination
615
+ ? pagination_1.PageRequest.toJSON(message.pagination)
616
+ : undefined);
617
+ return obj;
618
+ },
619
+ fromPartial(object) {
620
+ var _a;
621
+ const message = Object.assign({}, baseQueryConsensusStateHeightsRequest);
622
+ message.clientId = (_a = object.clientId) !== null && _a !== void 0 ? _a : "";
623
+ message.pagination =
624
+ object.pagination !== undefined && object.pagination !== null
625
+ ? pagination_1.PageRequest.fromPartial(object.pagination)
626
+ : undefined;
627
+ return message;
628
+ },
629
+ };
630
+ const baseQueryConsensusStateHeightsResponse = {};
631
+ exports.QueryConsensusStateHeightsResponse = {
632
+ encode(message, writer = minimal_1.default.Writer.create()) {
633
+ for (const v of message.consensusStateHeights) {
634
+ client_1.Height.encode(v, writer.uint32(10).fork()).ldelim();
635
+ }
636
+ if (message.pagination !== undefined) {
637
+ pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
638
+ }
639
+ return writer;
640
+ },
641
+ decode(input, length) {
642
+ const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
643
+ let end = length === undefined ? reader.len : reader.pos + length;
644
+ const message = Object.assign({}, baseQueryConsensusStateHeightsResponse);
645
+ message.consensusStateHeights = [];
646
+ while (reader.pos < end) {
647
+ const tag = reader.uint32();
648
+ switch (tag >>> 3) {
649
+ case 1:
650
+ message.consensusStateHeights.push(client_1.Height.decode(reader, reader.uint32()));
651
+ break;
652
+ case 2:
653
+ message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32());
654
+ break;
655
+ default:
656
+ reader.skipType(tag & 7);
657
+ break;
658
+ }
659
+ }
660
+ return message;
661
+ },
662
+ fromJSON(object) {
663
+ var _a;
664
+ const message = Object.assign({}, baseQueryConsensusStateHeightsResponse);
665
+ message.consensusStateHeights = ((_a = object.consensusStateHeights) !== null && _a !== void 0 ? _a : []).map((e) => client_1.Height.fromJSON(e));
666
+ message.pagination =
667
+ object.pagination !== undefined && object.pagination !== null
668
+ ? pagination_1.PageResponse.fromJSON(object.pagination)
669
+ : undefined;
670
+ return message;
671
+ },
672
+ toJSON(message) {
673
+ const obj = {};
674
+ if (message.consensusStateHeights) {
675
+ obj.consensusStateHeights = message.consensusStateHeights.map((e) => e ? client_1.Height.toJSON(e) : undefined);
676
+ }
677
+ else {
678
+ obj.consensusStateHeights = [];
679
+ }
680
+ message.pagination !== undefined &&
681
+ (obj.pagination = message.pagination
682
+ ? pagination_1.PageResponse.toJSON(message.pagination)
683
+ : undefined);
684
+ return obj;
685
+ },
686
+ fromPartial(object) {
687
+ var _a;
688
+ const message = Object.assign({}, baseQueryConsensusStateHeightsResponse);
689
+ message.consensusStateHeights = ((_a = object.consensusStateHeights) !== null && _a !== void 0 ? _a : []).map((e) => client_1.Height.fromPartial(e));
690
+ message.pagination =
691
+ object.pagination !== undefined && object.pagination !== null
692
+ ? pagination_1.PageResponse.fromPartial(object.pagination)
693
+ : undefined;
694
+ return message;
695
+ },
696
+ };
567
697
  const baseQueryClientStatusRequest = { clientId: "" };
568
698
  exports.QueryClientStatusRequest = {
569
699
  encode(message, writer = minimal_1.default.Writer.create()) {
@@ -909,6 +1039,7 @@ class QueryClientImpl {
909
1039
  this.ClientStates = this.ClientStates.bind(this);
910
1040
  this.ConsensusState = this.ConsensusState.bind(this);
911
1041
  this.ConsensusStates = this.ConsensusStates.bind(this);
1042
+ this.ConsensusStateHeights = this.ConsensusStateHeights.bind(this);
912
1043
  this.ClientStatus = this.ClientStatus.bind(this);
913
1044
  this.ClientParams = this.ClientParams.bind(this);
914
1045
  this.UpgradedClientState = this.UpgradedClientState.bind(this);
@@ -934,6 +1065,11 @@ class QueryClientImpl {
934
1065
  const promise = this.rpc.request("ibc.core.client.v1.Query", "ConsensusStates", data);
935
1066
  return promise.then((data) => exports.QueryConsensusStatesResponse.decode(new minimal_1.default.Reader(data)));
936
1067
  }
1068
+ ConsensusStateHeights(request) {
1069
+ const data = exports.QueryConsensusStateHeightsRequest.encode(request).finish();
1070
+ const promise = this.rpc.request("ibc.core.client.v1.Query", "ConsensusStateHeights", data);
1071
+ return promise.then((data) => exports.QueryConsensusStateHeightsResponse.decode(new minimal_1.default.Reader(data)));
1072
+ }
937
1073
  ClientStatus(request) {
938
1074
  const data = exports.QueryClientStatusRequest.encode(request).finish();
939
1075
  const promise = this.rpc.request("ibc.core.client.v1.Query", "ClientStatus", data);
@@ -40,13 +40,15 @@ export interface ClientState {
40
40
  */
41
41
  upgradePath: string[];
42
42
  /**
43
- * This flag, when set to true, will allow governance to recover a client
44
- * which has expired
43
+ * allow_update_after_expiry is deprecated
44
+ *
45
+ * @deprecated
45
46
  */
46
47
  allowUpdateAfterExpiry: boolean;
47
48
  /**
48
- * This flag, when set to true, will allow governance to unfreeze a client
49
- * whose chain has experienced a misbehaviour event
49
+ * allow_update_after_misbehaviour is deprecated
50
+ *
51
+ * @deprecated
50
52
  */
51
53
  allowUpdateAfterMisbehaviour: boolean;
52
54
  }
@@ -353,7 +353,7 @@ export { QueryGetOrderRequest, QueryGetOrderResponse, QueryAllOrderRequest, Quer
353
353
  export { OrderEvent } from "./order/event";
354
354
  export { DebtInfo } from "./cdp/debt_info";
355
355
  export { MsgAddRateStrategy, MsgAddRateStrategyResponse, MsgUpdateRateStrategy, MsgUpdateRateStrategyResponse, MsgRemoveRateStrategy, MsgRemoveRateStrategyResponse, MsgAddAsset, MsgAddAssetResponse, MsgUpdateAsset, MsgUpdateAssetResponse, MsgSupplyAsset, MsgSupplyAssetResponse, MsgWithdrawAsset, MsgWithdrawAssetResponse, MsgLockCollateral, MsgLockCollateralResponse, MsgUnlockCollateral, MsgUnlockCollateralResponse, MsgBorrowAsset, MsgBorrowAssetResponse, MsgRepayAsset, MsgRepayAssetResponse, MsgSupplyAssetAndLockCollateral, MsgSupplyAssetAndLockCollateralResponse, MsgUnlockCollateralAndWithdrawAsset, MsgUnlockCollateralAndWithdrawAssetResponse, MsgLiquidateCollateral, MsgLiquidateCollateralResponse, MsgSetLiquidationFee, MsgSetLiquidationFeeResponse, MsgSetInterestFee, MsgSetInterestFeeResponse, MsgRepayAssetWithCdpTokens, MsgRepayAssetWithCdpTokensResponse, MsgRepayAssetWithCollateral, MsgRepayAssetWithCollateralResponse, MsgSetStablecoinInterestRate, MsgSetStablecoinInterestRateResponse, MsgSetStablecoinMintCap, MsgSetStablecoinMintCapResponse, MsgMintStablecoin, MsgMintStablecoinResponse, MsgReturnStablecoin, MsgReturnStablecoinResponse, MsgSetCompleteLiquidationThreshold, MsgSetCompleteLiquidationThresholdResponse, MsgSetMinimumCloseFactor, MsgSetMinimumCloseFactorResponse, MsgSetSmallLiquidationSize, MsgSetSmallLiquidationSizeResponse, MsgLiquidateCollateralWithCdpTokens, MsgLiquidateCollateralWithCdpTokensResponse, MsgLiquidateCollateralWithCollateral, MsgLiquidateCollateralWithCollateralResponse, MsgLiquidateCollateralWithStablecoin, MsgLiquidateCollateralWithStablecoinResponse, MsgCreateRewardScheme, MsgCreateRewardSchemeResponse, MsgUpdateRewardScheme, MsgUpdateRewardSchemeResponse, MsgClaimRewards, MsgClaimRewardsResponse, MsgSetStalePriceGracePeriod, MsgSetStalePriceGracePeriodResponse, MsgSetCdpPaused, MsgSetCdpPausedResponse, MsgReturnStablecoinWithInterestInCollateral, MsgReturnStablecoinWithInterestInCollateralResponse, MsgReturnStablecoinWithInterestInCdpTokens, MsgReturnStablecoinWithInterestInCdpTokensResponse, MsgLiquidateCollateralWithStablecoinAndInterestInCdpTokens, MsgLiquidateCollateralWithStablecoinAndInterestInCdpTokensResponse, MsgLiquidateCollateralWithStablecoinAndInterestInCollateral, MsgLiquidateCollateralWithStablecoinAndInterestInCollateralResponse, MsgConvertTokenInCdpToGroupTokens, MsgConvertTokenInCdpToGroupTokensResponse } from "./cdp/tx";
356
- export { AssetParams, AssetUtilization } from "./cdp/asset_params";
356
+ export { AssetParams, AssetUtilization, UpdateAssetParams } from "./cdp/asset_params";
357
357
  export { RateStrategyParams } from "./cdp/rate_strategy_params";
358
358
  export { StablecoinDebtInfo } from "./cdp/stablecoin_debt_info";
359
359
  export { RewardScheme, CreateRewardSchemeParams, UpdateRewardSchemeParams, RewardDebt } from "./cdp/reward_scheme";