@injectivelabs/sdk-ts 1.20.68 → 1.21.0-alpha.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 (110) hide show
  1. package/README.md +25 -0
  2. package/dist/cjs/{BaseGrpcConsumer-DVDjYQks.d.cts → BaseGrpcConsumer-CRYBdXm9.d.cts} +1 -1
  3. package/dist/cjs/{ChainGrpcExchangeApi-DEoO0jhR.cjs → ChainGrpcExchangeApi-D2diaVMC.cjs} +2 -73
  4. package/dist/cjs/{ChainRestTendermintApi-BkHzZIRZ.cjs → ChainRestTendermintApi-BSGN-XV3.cjs} +2 -2
  5. package/dist/cjs/{DirectEthSecp256k1Wallet-DfvrKuF8.cjs → DirectEthSecp256k1Wallet-CsOHUTrG.cjs} +1 -1
  6. package/dist/cjs/{ExecArgNeptuneWithdraw-BJHAQJlT.cjs → ExecArgNeptuneWithdraw-CHK2kF7l.cjs} +2 -2
  7. package/dist/cjs/{IndexerGrpcWeb3GwApi-C9VUHKOj.cjs → IndexerGrpcWeb3GwApi-BaCa4M1S.cjs} +4 -2
  8. package/dist/cjs/{MsgBase-jNBijPHQ.cjs → MsgBase-Dt0pa34P.cjs} +93 -36
  9. package/dist/cjs/{MsgSetDenomMetadata-Did-0k6O.cjs → MsgSetDenomMetadata-BKnmW-f2.cjs} +3361 -4248
  10. package/dist/cjs/{QueryTradingStrategyContractTotalStrategies-B3pcJep3.cjs → QueryTradingStrategyContractTotalStrategies-BiIzwy-H.cjs} +2 -2
  11. package/dist/cjs/{StreamManagerV2-DRWQ5QH0.cjs → StreamManagerV2-DftPsZ02.cjs} +2 -2
  12. package/dist/cjs/{accounts-BeV7wTTf.cjs → accounts-C6QIpAkP.cjs} +22 -2
  13. package/dist/cjs/{chain-B3HLDM4b.cjs → chain-D4Z7pAD0.cjs} +120 -206
  14. package/dist/cjs/client/abacus.d.cts +5 -5
  15. package/dist/cjs/client/chain.cjs +4 -5
  16. package/dist/cjs/client/chain.d.cts +12 -12
  17. package/dist/cjs/client/indexer.cjs +3 -3
  18. package/dist/cjs/client/indexer.d.cts +12 -12
  19. package/dist/cjs/client/olp.d.cts +5 -5
  20. package/dist/cjs/client/platformServices.d.cts +5 -5
  21. package/dist/cjs/client/tcAbacus.d.cts +5 -5
  22. package/dist/cjs/client/wasm.cjs +7 -7
  23. package/dist/cjs/client/wasm.d.cts +4 -4
  24. package/dist/cjs/core/accounts.cjs +3 -3
  25. package/dist/cjs/core/accounts.d.cts +11 -11
  26. package/dist/cjs/core/modules.cjs +15 -23
  27. package/dist/cjs/core/modules.d.cts +12 -12
  28. package/dist/cjs/core/tx.cjs +7 -6
  29. package/dist/cjs/core/tx.d.cts +12 -12
  30. package/dist/cjs/cosmjs.cjs +7 -7
  31. package/dist/cjs/cosmjs.d.cts +2 -2
  32. package/dist/cjs/exports.cjs +7 -7
  33. package/dist/cjs/exports.d.cts +2 -2
  34. package/dist/cjs/{index-BtwpJOwb.d.cts → index-5s92DIT3.d.cts} +1 -1
  35. package/dist/{esm/index-B4-RPlmi.d.ts → cjs/index-B7LT8B2g.d.cts} +25673 -26257
  36. package/dist/cjs/{index-CfGvB4c1.d.cts → index-BNqPdwIL.d.cts} +1 -1
  37. package/dist/cjs/{index-iLM1noAM.d.cts → index-ByaAgMci.d.cts} +1 -1
  38. package/dist/{esm/index-CTEvW2RT.d.ts → cjs/index-CBEIfBLI.d.cts} +34 -84
  39. package/dist/{esm/index--I7NYLY5.d.ts → cjs/index-CKFM2Zot.d.cts} +35 -350
  40. package/dist/cjs/{index-Beskv_ry.d.cts → index-CcNtmgW5.d.cts} +2 -2
  41. package/dist/cjs/{index-Bv-5dlo_.d.cts → index-DzI7PClu.d.cts} +1 -1
  42. package/dist/cjs/{index-CY06tllr.d.cts → index-fb-zX9fQ.d.cts} +1 -1
  43. package/dist/cjs/index.cjs +19 -27
  44. package/dist/cjs/index.d.cts +12 -12
  45. package/dist/{esm/light-BFGvKXwS.d.ts → cjs/light-Dyi8qJP_.d.cts} +3 -0
  46. package/dist/cjs/proto/cosmos-tx.d.cts +1 -1
  47. package/dist/cjs/service.cjs +1 -1
  48. package/dist/cjs/service.d.cts +4 -4
  49. package/dist/cjs/{tx-C8efeicO.cjs → tx-U8W1g3W8.cjs} +4 -4
  50. package/dist/cjs/{tx_pb-DSDGNMKS.d.cts → tx_pb-rX24LEP1.d.cts} +58 -107
  51. package/dist/cjs/types/light.d.cts +1 -1
  52. package/dist/cjs/types.d.cts +3 -3
  53. package/dist/cjs/{utils-DZoXzNOj.cjs → utils-CjlVVckg.cjs} +14 -24
  54. package/dist/cjs/utils.cjs +1 -1
  55. package/dist/cjs/utils.d.cts +11 -11
  56. package/dist/esm/{BaseGrpcConsumer-DzOno3EM.d.ts → BaseGrpcConsumer-BfhC9A-3.d.ts} +1 -1
  57. package/dist/esm/{ChainGrpcExchangeApi-N27wNM6N.js → ChainGrpcExchangeApi-YNNZqhBt.js} +2 -73
  58. package/dist/esm/{ChainRestTendermintApi-CfvwCl2L.js → ChainRestTendermintApi-DGLg38SO.js} +2 -2
  59. package/dist/esm/{DirectEthSecp256k1Wallet-Cq8NYHKd.js → DirectEthSecp256k1Wallet-mXW_mPaC.js} +1 -1
  60. package/dist/esm/{ExecArgNeptuneWithdraw-BRrsGhPy.js → ExecArgNeptuneWithdraw-CpaH5nlc.js} +2 -2
  61. package/dist/esm/{IndexerGrpcWeb3GwApi-CG_ZevUX.js → IndexerGrpcWeb3GwApi-BaQI4k4D.js} +4 -2
  62. package/dist/esm/{MsgBase-BC3GNddA.js → MsgBase-D3okqFzc.js} +88 -37
  63. package/dist/esm/{MsgSetDenomMetadata-B7IN-5j2.js → MsgSetDenomMetadata-snSM4b_f.js} +900 -1738
  64. package/dist/esm/{QueryTradingStrategyContractTotalStrategies-DNbF4zfF.js → QueryTradingStrategyContractTotalStrategies-C5T8K9t0.js} +2 -2
  65. package/dist/esm/{StreamManagerV2-IyJuIDxz.js → StreamManagerV2-DayR_Wxb.js} +2 -2
  66. package/dist/esm/{accounts-D2h6m8BF.js → accounts-BNTm8lj5.js} +22 -2
  67. package/dist/esm/{chain-cb8a0SyE.js → chain-Bx2cRWCa.js} +141 -220
  68. package/dist/esm/client/abacus.d.ts +5 -5
  69. package/dist/esm/client/chain.d.ts +12 -12
  70. package/dist/esm/client/chain.js +5 -5
  71. package/dist/esm/client/indexer.d.ts +12 -12
  72. package/dist/esm/client/indexer.js +3 -3
  73. package/dist/esm/client/olp.d.ts +5 -5
  74. package/dist/esm/client/platformServices.d.ts +5 -5
  75. package/dist/esm/client/tcAbacus.d.ts +5 -5
  76. package/dist/esm/client/wasm.d.ts +4 -4
  77. package/dist/esm/client/wasm.js +7 -7
  78. package/dist/esm/core/accounts.d.ts +11 -11
  79. package/dist/esm/core/accounts.js +3 -3
  80. package/dist/esm/core/modules.d.ts +12 -12
  81. package/dist/esm/core/modules.js +10 -10
  82. package/dist/esm/core/tx.d.ts +12 -12
  83. package/dist/esm/core/tx.js +7 -7
  84. package/dist/esm/cosmjs.d.ts +2 -2
  85. package/dist/esm/cosmjs.js +7 -7
  86. package/dist/esm/exports.d.ts +2 -2
  87. package/dist/esm/exports.js +7 -7
  88. package/dist/esm/{index-DG-I0T6b.d.ts → index-BLlbbiGL.d.ts} +1 -1
  89. package/dist/{cjs/index-B8XGu-SI.d.cts → esm/index-BeikP7Cq.d.ts} +35 -350
  90. package/dist/esm/{index-B2tw9CHl.d.ts → index-CQGymzVV.d.ts} +1 -1
  91. package/dist/esm/{index-BtOljr6v.d.ts → index-DhhaPvLx.d.ts} +1 -1
  92. package/dist/{cjs/index-4IPdy0bE.d.cts → esm/index-DjAbTs6N.d.ts} +34 -84
  93. package/dist/{cjs/index-Zlg1uSyt.d.cts → esm/index-DyuSCKzD.d.ts} +25673 -26257
  94. package/dist/esm/{index-CJxCX4wl.d.ts → index-KPxccQ6b.d.ts} +1 -1
  95. package/dist/esm/{index-BHELcAAg.d.ts → index-SCzTXWme.d.ts} +2 -2
  96. package/dist/esm/{index-OpqhooKr.d.ts → index-c0wEF5XN.d.ts} +1 -1
  97. package/dist/esm/index.d.ts +12 -12
  98. package/dist/esm/index.js +13 -13
  99. package/dist/{cjs/light-B-3BDUJ7.d.cts → esm/light-cJI0PSqu.d.ts} +3 -0
  100. package/dist/esm/proto/cosmos-tx.d.ts +1 -1
  101. package/dist/esm/service.d.ts +4 -4
  102. package/dist/esm/service.js +1 -1
  103. package/dist/esm/{tx-C9bEwXA1.js → tx-COcI7kYx.js} +4 -4
  104. package/dist/esm/{tx_pb-Blty6MDM.d.ts → tx_pb-pR8s8ZkE.d.ts} +58 -107
  105. package/dist/esm/types/light.d.ts +1 -1
  106. package/dist/esm/types.d.ts +3 -3
  107. package/dist/esm/{utils-Cs0fKB6M.js → utils-Bprop_i9.js} +14 -24
  108. package/dist/esm/utils.d.ts +11 -11
  109. package/dist/esm/utils.js +1 -1
  110. package/package.json +6 -6
@@ -25,14 +25,15 @@ const objectKeysToEip712Types = ({ object, messageType, primaryType = "MsgValue"
25
25
  "proposal_id",
26
26
  "creation_height",
27
27
  "contract_hook_max_gas",
28
- "expiration_block"
28
+ "owner_blacklist_query_max_gas",
29
+ "expiration_block",
30
+ "redemption_notice_period_seconds"
29
31
  ];
30
32
  const stringFieldsWithNumberValue = [
31
33
  "timeout_timestamp",
32
34
  "revision_height",
33
35
  "revision_number"
34
36
  ];
35
- const stringFieldsToOmitIfEmpty = ["cid"];
36
37
  const fieldsToOmitIfEmpty = ["admin_info", "order"];
37
38
  const output = /* @__PURE__ */ new Map();
38
39
  const types = new Array();
@@ -50,7 +51,7 @@ const objectKeysToEip712Types = ({ object, messageType, primaryType = "MsgValue"
50
51
  type: numberTypeToReflectionNumberType(property, messageType)
51
52
  });
52
53
  else if (type === "string") {
53
- if (stringFieldsToOmitIfEmpty.includes(property) && !propertyValue) continue;
54
+ if (!propertyValue) continue;
54
55
  if (stringFieldsWithNumberValue.includes(property)) {
55
56
  types.push({
56
57
  name: property,
@@ -127,6 +128,27 @@ const objectKeysToEip712Types = ({ object, messageType, primaryType = "MsgValue"
127
128
  return output;
128
129
  };
129
130
  /**
131
+ * A wrapper (MsgExec, a proposal) infers its schema from the values it embeds,
132
+ * which cannot declare what a child omits or what a child's own rules decide.
133
+ * Replaces the schema inferred for the child at `nestedPrimaryType` with the
134
+ * child's own `toEip712Types()`, renamed to where it sits in the wrapper: type
135
+ * names are the path of the field (`TypeSwapParams` is `TypeMsgsValueSwapParams`
136
+ * under `msgs[].value`)
137
+ */
138
+ const graftEip712Types = (types, nestedPrimaryType, childTypes) => {
139
+ const rename = (name) => name === "MsgValue" ? nestedPrimaryType : nestedPrimaryType + name.replace(/^Type/, "");
140
+ const renameFieldType = (type) => {
141
+ const name = type.replace(/\[\]$/, "");
142
+ return childTypes.has(name) ? rename(name) + type.slice(name.length) : type;
143
+ };
144
+ for (const name of [...types.keys()]) if (name.startsWith(nestedPrimaryType)) types.delete(name);
145
+ for (const [name, fields] of childTypes) types.set(rename(name), fields.map((field) => ({
146
+ ...field,
147
+ type: renameFieldType(field.type)
148
+ })));
149
+ return types;
150
+ };
151
+ /**
130
152
  * The chain always includes expiration_block in order type schemas
131
153
  * even when the EIP712 v1 message value omits zero-valued fields.
132
154
  * Patch the resolved type map to add it to any of the given keys
@@ -173,6 +195,10 @@ const numberTypeToReflectionNumberType = (property, messageType) => {
173
195
  "exchange/MsgInstantSpotMarketLaunch": {
174
196
  base_decimals: "uint32",
175
197
  quote_decimals: "uint32"
198
+ },
199
+ "exchange/v2/MsgInstantSpotMarketLaunch": {
200
+ base_decimals: "uint32",
201
+ quote_decimals: "uint32"
176
202
  }
177
203
  };
178
204
  if (msgTypeKey && messageTypeToNumberTypeMaps[msgTypeKey] && property) {
@@ -189,11 +215,16 @@ const numberTypeToReflectionNumberType = (property, messageType) => {
189
215
  case "admin_permissions": return "uint32";
190
216
  case "oracle_scale_factor": return "uint32";
191
217
  case "oracle_type": return "int32";
218
+ case "reference_price_source": return "int32";
219
+ case "reference_window_seconds": return "uint32";
220
+ case "max_open_deviation_bps": return "uint32";
192
221
  case "exponent": return "uint32";
193
222
  case "round": return "uint64";
194
223
  case "expiry": return "int64";
195
224
  case "creation_height": return "int64";
196
225
  case "expiration_block": return "int64";
226
+ case "redemption_notice_period_seconds": return "int64";
227
+ case "quote_decimals": return "uint32";
197
228
  case "option": return "int32";
198
229
  case "proposal_id": return "uint64";
199
230
  default: return "uint64";
@@ -287,8 +318,8 @@ const protoTypeToAminoType = (type) => {
287
318
  case "injective.exchange.v1beta1.BinaryOptionsMarketParamUpdateProposal": return "exchange/BinaryOptionsMarketParamUpdateProposal";
288
319
  case "injective.exchange.v1beta1.BinaryOptionsMarketLaunchProposal": return "exchange/BinaryOptionsMarketLaunchProposal";
289
320
  case "injective.exchange.v1beta1.MsgTransferAndExecute": return "exchange/MsgTransferAndExecute";
290
- case "injective.exchange.v2.MsgUpdateSpotMarket": return "exchange/MsgUpdateSpotMarket";
291
- case "injective.exchange.v2.MsgUpdateDerivativeMarket": return "exchange/MsgUpdateDerivativeMarket";
321
+ case "injective.exchange.v2.MsgUpdateSpotMarket": return "exchange/v2/MsgUpdateSpotMarket";
322
+ case "injective.exchange.v2.MsgUpdateDerivativeMarket": return "exchange/v2/MsgUpdateDerivativeMarket";
292
323
  case "injective.exchange.v1beta1.CreateSpotLimitOrderAuthz": return "exchange/CreateSpotLimitOrderAuthz";
293
324
  case "injective.exchange.v1beta1.CreateSpotMarketOrderAuthz": return "exchange/CreateSpotMarketOrderAuthz";
294
325
  case "injective.exchange.v1beta1.BatchCreateSpotLimitOrdersAuthz": return "exchange/BatchCreateSpotLimitOrdersAuthz";
@@ -300,38 +331,44 @@ const protoTypeToAminoType = (type) => {
300
331
  case "injective.exchange.v1beta1.CancelDerivativeOrderAuthz": return "exchange/CancelDerivativeOrderAuthz";
301
332
  case "injective.exchange.v1beta1.BatchCancelDerivativeOrdersAuthz": return "exchange/BatchCancelDerivativeOrdersAuthz";
302
333
  case "injective.exchange.v1beta1.BatchUpdateOrdersAuthz": return "exchange/BatchUpdateOrdersAuthz";
303
- case "injective.exchange.v2.MsgUpdateSwapParams": return "exchange/MsgUpdateSwapParams";
304
- case "injective.exchange.v2.MsgSetDelegationTransferReceivers": return "exchange/MsgSetDelegationTransferReceivers";
305
- case "injective.exchange.v2.MsgDeposit": return "exchange/MsgDeposit";
306
- case "injective.exchange.v2.MsgWithdraw": return "exchange/MsgWithdraw";
334
+ case "injective.exchange.v2.MsgUpdateSwapParams": return "exchange/v2/MsgUpdateSwapParams";
335
+ case "injective.exchange.v2.MsgUpdateSubaccountMarketRiskMode": return "exchange/v2/MsgUpdateSubaccountMarketRiskMode";
336
+ case "injective.exchange.v2.MsgSetDelegationTransferReceivers": return "exchange/v2/MsgSetDelegationTransferReceivers";
337
+ case "injective.exchange.v2.MsgDeposit": return "exchange/v2/MsgDeposit";
338
+ case "injective.exchange.v2.MsgWithdraw": return "exchange/v2/MsgWithdraw";
307
339
  case "injective.exchange.v2.MsgSignData": return "exchange/MsgSignData";
308
- case "injective.exchange.v2.MsgRewardsOptOut": return "exchange/MsgRewardsOptOut";
309
- case "injective.exchange.v2.MsgCancelSpotOrder": return "exchange/MsgCancelSpotOrder";
310
- case "injective.exchange.v2.MsgExternalTransfer": return "exchange/MsgExternalTransfer";
311
- case "injective.exchange.v2.MsgBatchUpdateOrders": return "exchange/MsgBatchUpdateOrders";
312
- case "injective.exchange.v2.MsgLiquidatePosition": return "exchange/MsgLiquidatePosition";
313
- case "injective.exchange.v2.MsgReclaimLockedFunds": return "exchange/MsgReclaimLockedFunds";
314
- case "injective.exchange.v2.MsgAuthorizeStakeGrants": return "exchange/MsgAuthorizeStakeGrants";
315
- case "injective.exchange.v2.MsgCancelDerivativeOrder": return "exchange/MsgCancelDerivativeOrder";
316
- case "injective.exchange.v2.MsgBatchCancelSpotOrders": return "exchange/MsgBatchCancelSpotOrders";
317
- case "injective.exchange.v2.MsgCreateSpotLimitOrder": return "exchange/MsgCreateSpotLimitOrder";
318
- case "injective.exchange.v2.MsgCreateSpotMarketOrder": return "exchange/MsgCreateSpotMarketOrder";
319
- case "injective.exchange.v2.MsgIncreasePositionMargin": return "exchange/MsgIncreasePositionMargin";
320
- case "injective.exchange.v2.MsgDecreasePositionMargin": return "exchange/MsgDecreasePositionMargin";
321
- case "injective.exchange.v2.MsgInstantSpotMarketLaunch": return "exchange/MsgInstantSpotMarketLaunch";
322
- case "injective.exchange.v2.MsgCancelBinaryOptionsOrder": return "exchange/MsgCancelBinaryOptionsOrder";
323
- case "injective.exchange.v2.MsgCreateDerivativeLimitOrder": return "exchange/MsgCreateDerivativeLimitOrder";
324
- case "injective.exchange.v2.MsgBatchCancelDerivativeOrders": return "exchange/MsgBatchCancelDerivativeOrders";
325
- case "injective.exchange.v2.MsgCreateDerivativeMarketOrder": return "exchange/MsgCreateDerivativeMarketOrder";
326
- case "injective.exchange.v2.MsgCreateBinaryOptionsLimitOrder": return "exchange/MsgCreateBinaryOptionsLimitOrder";
327
- case "injective.exchange.v2.MsgAdminUpdateBinaryOptionsMarket": return "exchange/MsgAdminUpdateBinaryOptionsMarket";
328
- case "injective.exchange.v2.MsgBatchCancelBinaryOptionsOrders": return "exchange/MsgBatchCancelBinaryOptionsOrders";
329
- case "injective.exchange.v2.MsgCreateBinaryOptionsMarketOrder": return "exchange/MsgCreateBinaryOptionsMarketOrder";
330
- case "injective.exchange.v2.MsgInstantBinaryOptionsMarketLaunch": return "exchange/MsgInstantBinaryOptionsMarketLaunch";
340
+ case "injective.exchange.v2.MsgRewardsOptOut": return "exchange/v2/MsgRewardsOptOut";
341
+ case "injective.exchange.v2.MsgCancelSpotOrder": return "exchange/v2/MsgCancelSpotOrder";
342
+ case "injective.exchange.v2.MsgExternalTransfer": return "exchange/v2/MsgExternalTransfer";
343
+ case "injective.exchange.v2.MsgBatchUpdateOrders": return "exchange/v2/MsgBatchUpdateOrders";
344
+ case "injective.exchange.v2.MsgLiquidatePosition": return "exchange/v2/MsgLiquidatePosition";
345
+ case "injective.exchange.v2.MsgReclaimLockedFunds": return "exchange/v2/MsgReclaimLockedFunds";
346
+ case "injective.exchange.v2.MsgAuthorizeStakeGrants": return "exchange/v2/MsgAuthorizeStakeGrants";
347
+ case "injective.exchange.v2.MsgCancelDerivativeOrder": return "exchange/v2/MsgCancelDerivativeOrder";
348
+ case "injective.exchange.v2.MsgBatchCancelSpotOrders": return "exchange/v2/MsgBatchCancelSpotOrders";
349
+ case "injective.exchange.v2.MsgCreateSpotLimitOrder": return "exchange/v2/MsgCreateSpotLimitOrder";
350
+ case "injective.exchange.v2.MsgCreateSpotMarketOrder": return "exchange/v2/MsgCreateSpotMarketOrder";
351
+ case "injective.exchange.v2.MsgIncreasePositionMargin": return "exchange/v2/MsgIncreasePositionMargin";
352
+ case "injective.exchange.v2.MsgDecreasePositionMargin": return "exchange/v2/MsgDecreasePositionMargin";
353
+ case "injective.exchange.v2.MsgInstantSpotMarketLaunch": return "exchange/v2/MsgInstantSpotMarketLaunch";
354
+ case "injective.exchange.v2.MsgCancelBinaryOptionsOrder": return "exchange/v2/MsgCancelBinaryOptionsOrder";
355
+ case "injective.exchange.v2.MsgCreateDerivativeLimitOrder": return "exchange/v2/MsgCreateDerivativeLimitOrder";
356
+ case "injective.exchange.v2.MsgBatchCancelDerivativeOrders": return "exchange/v2/MsgBatchCancelDerivativeOrders";
357
+ case "injective.exchange.v2.MsgCreateDerivativeMarketOrder": return "exchange/v2/MsgCreateDerivativeMarketOrder";
358
+ case "injective.exchange.v2.MsgCreateBinaryOptionsLimitOrder": return "exchange/v2/MsgCreateBinaryOptionsLimitOrder";
359
+ case "injective.exchange.v2.MsgAdminUpdateBinaryOptionsMarket": return "exchange/v2/MsgAdminUpdateBinaryOptionsMarket";
360
+ case "injective.exchange.v2.MsgBatchCancelBinaryOptionsOrders": return "exchange/v2/MsgBatchCancelBinaryOptionsOrders";
361
+ case "injective.exchange.v2.MsgCreateBinaryOptionsMarketOrder": return "exchange/v2/MsgCreateBinaryOptionsMarketOrder";
362
+ case "injective.exchange.v2.MsgInstantBinaryOptionsMarketLaunch": return "exchange/v2/MsgInstantBinaryOptionsMarketLaunch";
331
363
  case "injective.auction.v1beta1.MsgBid": return "auction/MsgBid";
332
364
  case "injective.insurance.v1beta1.MsgCreateInsuranceFund": return "insurance/MsgCreateInsuranceFund";
333
365
  case "injective.insurance.v1beta1.MsgUnderwrite": return "insurance/MsgUnderwrite";
334
366
  case "injective.insurance.v1beta1.MsgRequestRedemption": return "insurance/MsgRequestRedemption";
367
+ case "injective.insurance.v1beta1.MsgCreateConsolidatedInsurancePool": return "insurance/MsgCreateConsolidatedInsurancePool";
368
+ case "injective.insurance.v1beta1.MsgSetConsolidatedInsurancePoolPause": return "insurance/MsgSetConsolidatedInsurancePoolPause";
369
+ case "injective.insurance.v1beta1.MsgUpdateConsolidatedInsurancePolicy": return "insurance/MsgUpdateConsolidatedInsurancePolicy";
370
+ case "injective.insurance.v1beta1.MsgUnderwriteConsolidatedInsurancePool": return "insurance/MsgUnderwriteConsolidatedInsurancePool";
371
+ case "injective.insurance.v1beta1.MsgRequestConsolidatedRedemption": return "insurance/MsgRequestConsolidatedRedemption";
335
372
  case "injective.peggy.v1beta1.MsgSetOrchestratorAddresses": return "peggy/MsgSetOrchestratorAddresses";
336
373
  case "injective.peggy.v1beta1.MsgValsetConfirm": return "peggy/MsgValsetConfirm";
337
374
  case "injective.peggy.v1beta1.MsgSendToEth": return "peggy/MsgSendToEth";
@@ -351,8 +388,8 @@ const protoTypeToAminoType = (type) => {
351
388
  case "injective.peggy.v1beta1.MsgSubmitBadSignatureEvidence": return "peggy/MsgSubmitBadSignatureEvidence";
352
389
  case "injective.peggy.v1beta1.BlacklistEthereumAddressesProposal": return "peggy/BlacklistEthereumAddressesProposal";
353
390
  case "injective.peggy.v1beta1.RevokeEthereumBlacklistProposal": return "peggy/RevokeEthereumBlacklistProposal";
354
- case "injective.wasmx.v1beta1.ContractRegistrationRequestProposal": return "wasmx/ContractRegistrationRequestProposal";
355
- case "injective.wasmx.v1beta1.BatchContractRegistrationRequestProposal": return "wasmx/BatchContractRegistrationRequestProposal";
391
+ case "injective.wasmx.v1.ContractRegistrationRequestProposal": return "wasmx/ContractRegistrationRequestProposal";
392
+ case "injective.wasmx.v1.BatchContractRegistrationRequestProposal": return "wasmx/BatchContractRegistrationRequestProposal";
356
393
  case "injective.tokenfactory.v1beta1.MsgCreateDenom": return "injective/tokenfactory/create-denom";
357
394
  case "injective.tokenfactory.v1beta1.MsgMint": return "injective/tokenfactory/mint";
358
395
  case "injective.tokenfactory.v1beta1.MsgBurn": return "injective/tokenfactory/burn";
@@ -422,17 +459,27 @@ var MsgBase = class {
422
459
  return JSON.stringify(prepareSignBytes(this.toData()));
423
460
  }
424
461
  /**
462
+ * The full-field, human-readable object behind toWeb3Gw (proto-JSON keeps zero
463
+ * values) and the EIP712 v1 types (the chain lists every field in the types).
464
+ * Defaults to toAmino(); messages whose toAmino() follows the chain's aminojson
465
+ * sign bytes (Ledger), which omit zero values, override this.
466
+ */
467
+ toAminoRaw() {
468
+ return this.toAmino();
469
+ }
470
+ /**
425
471
  * Returns the types of the message for EIP712
426
472
  */
427
473
  toEip712Types() {
428
- const amino = this.toAmino();
474
+ const amino = this.toAminoRaw();
429
475
  return objectKeysToEip712Types({
430
476
  object: amino.value,
431
477
  messageType: amino.type
432
478
  });
433
479
  }
434
480
  /**
435
- * Returns the values of the message for EIP712
481
+ * Returns the values of the message for EIP712: the chain derives the v1 typed
482
+ * data values from its amino-json, so this is toAmino()
436
483
  */
437
484
  toEip712() {
438
485
  return this.toAmino();
@@ -443,10 +490,14 @@ var MsgBase = class {
443
490
  toEip712V2() {
444
491
  return this.toWeb3Gw();
445
492
  }
493
+ assertEip712V1Supported() {
494
+ if (!this.constructor.eip712V1Supported) throw new GeneralException(/* @__PURE__ */ new Error(`EIP712_v1 is not supported for ${this.constructor.name}. Please use EIP712_v2`));
495
+ }
446
496
  toDirectSignJSON() {
447
497
  return JSON.stringify(prepareSignBytes(this.toDirectSign()));
448
498
  }
449
499
  };
500
+ _defineProperty(MsgBase, "eip712V1Supported", true);
450
501
 
451
502
  //#endregion
452
- export { objectKeysToEip712Types as a, stringTypeToReflectionStringType as c, numberTypeToReflectionNumberType as i, prepareSignBytes as n, patchOrderTypesWithExpirationBlock as o, getObjectEip712PropertyType as r, protoTypeToAminoType as s, MsgBase as t };
503
+ export { numberTypeToReflectionNumberType as a, protoTypeToAminoType as c, graftEip712Types as i, stringTypeToReflectionStringType as l, prepareSignBytes as n, objectKeysToEip712Types as o, getObjectEip712PropertyType as r, patchOrderTypesWithExpirationBlock as s, MsgBase as t };