@injectivelabs/sdk-ts 1.16.36 → 1.16.38-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 (1725) hide show
  1. package/dist/cjs/DirectEthSecp256k1Wallet-D_jUZ84b.cjs +24541 -0
  2. package/dist/cjs/PrivateKey-DPfbCNGV.cjs +2996 -0
  3. package/dist/cjs/cosmjs.cjs +9 -0
  4. package/dist/cjs/cosmjs.d.cts +3 -0
  5. package/dist/cjs/exports.cjs +9 -0
  6. package/dist/cjs/exports.d.cts +3 -0
  7. package/dist/cjs/index-sYYxCC0v.d.cts +2516 -0
  8. package/dist/cjs/index.cjs +18831 -0
  9. package/dist/cjs/index.d.cts +44183 -0
  10. package/dist/cjs/package.json +2 -2
  11. package/dist/cjs/tx_pb-DsbtXDuW.d.cts +779 -0
  12. package/dist/esm/DirectEthSecp256k1Wallet-DgfxZCvi.js +462 -0
  13. package/dist/esm/cosmjs.d.ts +3 -5
  14. package/dist/esm/cosmjs.js +4 -5
  15. package/dist/esm/exports.d.ts +3 -6
  16. package/dist/esm/exports.js +4 -6
  17. package/dist/esm/index-C_Gvx1b1.d.ts +2516 -0
  18. package/dist/esm/index.d.ts +44183 -7
  19. package/dist/esm/index.js +17789 -7
  20. package/dist/esm/package.json +2 -2
  21. package/dist/esm/tx-eHoJe09q.js +2693 -0
  22. package/dist/esm/tx_pb-C0MUzLiu.d.ts +779 -0
  23. package/package.json +51 -67
  24. package/dist/cjs/client/abacus/grpc/AbacusGrpcApi.d.ts +0 -10
  25. package/dist/cjs/client/abacus/grpc/AbacusGrpcApi.js +0 -91
  26. package/dist/cjs/client/abacus/grpc/index.d.ts +0 -2
  27. package/dist/cjs/client/abacus/grpc/index.js +0 -5
  28. package/dist/cjs/client/abacus/grpc/transformers/index.d.ts +0 -6
  29. package/dist/cjs/client/abacus/grpc/transformers/index.js +0 -15
  30. package/dist/cjs/client/abacus/index.d.ts +0 -1
  31. package/dist/cjs/client/abacus/index.js +0 -17
  32. package/dist/cjs/client/base/BaseGrpcConsumer.d.ts +0 -11
  33. package/dist/cjs/client/base/BaseGrpcConsumer.js +0 -40
  34. package/dist/cjs/client/base/BaseGrpcWebConsumer.d.ts +0 -9
  35. package/dist/cjs/client/base/BaseGrpcWebConsumer.js +0 -18
  36. package/dist/cjs/client/base/BaseIndexerGrpcConsumer.d.ts +0 -11
  37. package/dist/cjs/client/base/BaseIndexerGrpcConsumer.js +0 -40
  38. package/dist/cjs/client/base/BaseIndexerGrpcWebConsumer.d.ts +0 -9
  39. package/dist/cjs/client/base/BaseIndexerGrpcWebConsumer.js +0 -19
  40. package/dist/cjs/client/base/BaseRestConsumer.d.ts +0 -6
  41. package/dist/cjs/client/base/BaseRestConsumer.js +0 -9
  42. package/dist/cjs/client/base/GrpcWebImpl.d.ts +0 -27
  43. package/dist/cjs/client/base/GrpcWebImpl.js +0 -46
  44. package/dist/cjs/client/base/IndexerGrpcWebImpl.d.ts +0 -30
  45. package/dist/cjs/client/base/IndexerGrpcWebImpl.js +0 -85
  46. package/dist/cjs/client/chain/ChainGrpcClient.d.ts +0 -43
  47. package/dist/cjs/client/chain/ChainGrpcClient.js +0 -66
  48. package/dist/cjs/client/chain/ChainRestClient.d.ts +0 -9
  49. package/dist/cjs/client/chain/ChainRestClient.js +0 -15
  50. package/dist/cjs/client/chain/grpc/ChainGrpcAuctionApi.d.ts +0 -14
  51. package/dist/cjs/client/chain/grpc/ChainGrpcAuctionApi.js +0 -107
  52. package/dist/cjs/client/chain/grpc/ChainGrpcAuthApi.d.ts +0 -17
  53. package/dist/cjs/client/chain/grpc/ChainGrpcAuthApi.js +0 -92
  54. package/dist/cjs/client/chain/grpc/ChainGrpcAuthZApi.d.ts +0 -28
  55. package/dist/cjs/client/chain/grpc/ChainGrpcAuthZApi.js +0 -114
  56. package/dist/cjs/client/chain/grpc/ChainGrpcBankApi.d.ts +0 -42
  57. package/dist/cjs/client/chain/grpc/ChainGrpcBankApi.js +0 -220
  58. package/dist/cjs/client/chain/grpc/ChainGrpcDistributionApi.d.ts +0 -23
  59. package/dist/cjs/client/chain/grpc/ChainGrpcDistributionApi.js +0 -141
  60. package/dist/cjs/client/chain/grpc/ChainGrpcErc20Api.d.ts +0 -28
  61. package/dist/cjs/client/chain/grpc/ChainGrpcErc20Api.js +0 -124
  62. package/dist/cjs/client/chain/grpc/ChainGrpcEvmApi.d.ts +0 -30
  63. package/dist/cjs/client/chain/grpc/ChainGrpcEvmApi.js +0 -198
  64. package/dist/cjs/client/chain/grpc/ChainGrpcExchangeApi.d.ts +0 -31
  65. package/dist/cjs/client/chain/grpc/ChainGrpcExchangeApi.js +0 -431
  66. package/dist/cjs/client/chain/grpc/ChainGrpcGovApi.d.ts +0 -36
  67. package/dist/cjs/client/chain/grpc/ChainGrpcGovApi.js +0 -177
  68. package/dist/cjs/client/chain/grpc/ChainGrpcIbcApi.d.ts +0 -13
  69. package/dist/cjs/client/chain/grpc/ChainGrpcIbcApi.js +0 -70
  70. package/dist/cjs/client/chain/grpc/ChainGrpcInsuranceFundApi.d.ts +0 -27
  71. package/dist/cjs/client/chain/grpc/ChainGrpcInsuranceFundApi.js +0 -133
  72. package/dist/cjs/client/chain/grpc/ChainGrpcMintApi.d.ts +0 -17
  73. package/dist/cjs/client/chain/grpc/ChainGrpcMintApi.js +0 -92
  74. package/dist/cjs/client/chain/grpc/ChainGrpcOracleApi.d.ts +0 -12
  75. package/dist/cjs/client/chain/grpc/ChainGrpcOracleApi.js +0 -43
  76. package/dist/cjs/client/chain/grpc/ChainGrpcPeggyApi.d.ts +0 -11
  77. package/dist/cjs/client/chain/grpc/ChainGrpcPeggyApi.js +0 -44
  78. package/dist/cjs/client/chain/grpc/ChainGrpcPermissionsApi.d.ts +0 -43
  79. package/dist/cjs/client/chain/grpc/ChainGrpcPermissionsApi.js +0 -304
  80. package/dist/cjs/client/chain/grpc/ChainGrpcStakingApi.d.ts +0 -106
  81. package/dist/cjs/client/chain/grpc/ChainGrpcStakingApi.js +0 -466
  82. package/dist/cjs/client/chain/grpc/ChainGrpcTendermintApi.d.ts +0 -12
  83. package/dist/cjs/client/chain/grpc/ChainGrpcTendermintApi.js +0 -65
  84. package/dist/cjs/client/chain/grpc/ChainGrpcTokenFactoryApi.d.ts +0 -14
  85. package/dist/cjs/client/chain/grpc/ChainGrpcTokenFactoryApi.js +0 -110
  86. package/dist/cjs/client/chain/grpc/ChainGrpcTxFeesApi.d.ts +0 -12
  87. package/dist/cjs/client/chain/grpc/ChainGrpcTxFeesApi.js +0 -65
  88. package/dist/cjs/client/chain/grpc/ChainGrpcWasmApi.d.ts +0 -38
  89. package/dist/cjs/client/chain/grpc/ChainGrpcWasmApi.js +0 -248
  90. package/dist/cjs/client/chain/grpc/ChainGrpcWasmXApi.d.ts +0 -12
  91. package/dist/cjs/client/chain/grpc/ChainGrpcWasmXApi.js +0 -64
  92. package/dist/cjs/client/chain/grpc/index.d.ts +0 -21
  93. package/dist/cjs/client/chain/grpc/index.js +0 -45
  94. package/dist/cjs/client/chain/index.d.ts +0 -4
  95. package/dist/cjs/client/chain/index.js +0 -22
  96. package/dist/cjs/client/chain/rest/ChainRestAuthApi.d.ts +0 -19
  97. package/dist/cjs/client/chain/rest/ChainRestAuthApi.js +0 -63
  98. package/dist/cjs/client/chain/rest/ChainRestBankApi.d.ts +0 -20
  99. package/dist/cjs/client/chain/rest/ChainRestBankApi.js +0 -90
  100. package/dist/cjs/client/chain/rest/ChainRestTendermintApi.d.ts +0 -13
  101. package/dist/cjs/client/chain/rest/ChainRestTendermintApi.js +0 -69
  102. package/dist/cjs/client/chain/rest/ChainRestWasmApi.d.ts +0 -8
  103. package/dist/cjs/client/chain/rest/ChainRestWasmApi.js +0 -32
  104. package/dist/cjs/client/chain/rest/index.d.ts +0 -4
  105. package/dist/cjs/client/chain/rest/index.js +0 -11
  106. package/dist/cjs/client/chain/transformers/ChainGrpcAuctionTransformer.d.ts +0 -13
  107. package/dist/cjs/client/chain/transformers/ChainGrpcAuctionTransformer.js +0 -67
  108. package/dist/cjs/client/chain/transformers/ChainGrpcAuthTransformer.d.ts +0 -14
  109. package/dist/cjs/client/chain/transformers/ChainGrpcAuthTransformer.js +0 -50
  110. package/dist/cjs/client/chain/transformers/ChainGrpcAuthZTransformer.d.ts +0 -22
  111. package/dist/cjs/client/chain/transformers/ChainGrpcAuthZTransformer.js +0 -70
  112. package/dist/cjs/client/chain/transformers/ChainGrpcBankTransformer.d.ts +0 -31
  113. package/dist/cjs/client/chain/transformers/ChainGrpcBankTransformer.js +0 -55
  114. package/dist/cjs/client/chain/transformers/ChainGrpcCommonTransformer.d.ts +0 -10
  115. package/dist/cjs/client/chain/transformers/ChainGrpcCommonTransformer.js +0 -54
  116. package/dist/cjs/client/chain/transformers/ChainGrpcDistributionTransformer.d.ts +0 -12
  117. package/dist/cjs/client/chain/transformers/ChainGrpcDistributionTransformer.js +0 -41
  118. package/dist/cjs/client/chain/transformers/ChainGrpcErc20Transformer.d.ts +0 -16
  119. package/dist/cjs/client/chain/transformers/ChainGrpcErc20Transformer.js +0 -31
  120. package/dist/cjs/client/chain/transformers/ChainGrpcEvmTransformer.d.ts +0 -29
  121. package/dist/cjs/client/chain/transformers/ChainGrpcEvmTransformer.js +0 -102
  122. package/dist/cjs/client/chain/transformers/ChainGrpcExchangeTransformer.d.ts +0 -37
  123. package/dist/cjs/client/chain/transformers/ChainGrpcExchangeTransformer.js +0 -273
  124. package/dist/cjs/client/chain/transformers/ChainGrpcGovTransformer.d.ts +0 -31
  125. package/dist/cjs/client/chain/transformers/ChainGrpcGovTransformer.js +0 -146
  126. package/dist/cjs/client/chain/transformers/ChainGrpcInsuranceFundTransformer.d.ts +0 -20
  127. package/dist/cjs/client/chain/transformers/ChainGrpcInsuranceFundTransformer.js +0 -52
  128. package/dist/cjs/client/chain/transformers/ChainGrpcMintTransformer.d.ts +0 -8
  129. package/dist/cjs/client/chain/transformers/ChainGrpcMintTransformer.js +0 -13
  130. package/dist/cjs/client/chain/transformers/ChainGrpcPeggyTransformer.d.ts +0 -8
  131. package/dist/cjs/client/chain/transformers/ChainGrpcPeggyTransformer.js +0 -39
  132. package/dist/cjs/client/chain/transformers/ChainGrpcPermissionsTransformer.d.ts +0 -35
  133. package/dist/cjs/client/chain/transformers/ChainGrpcPermissionsTransformer.js +0 -131
  134. package/dist/cjs/client/chain/transformers/ChainGrpcStakingTransformer.d.ts +0 -32
  135. package/dist/cjs/client/chain/transformers/ChainGrpcStakingTransformer.js +0 -184
  136. package/dist/cjs/client/chain/transformers/ChainGrpcTokenFactoryTransformer.d.ts +0 -11
  137. package/dist/cjs/client/chain/transformers/ChainGrpcTokenFactoryTransformer.js +0 -31
  138. package/dist/cjs/client/chain/transformers/ChainGrpcTxFeesTransformer.d.ts +0 -9
  139. package/dist/cjs/client/chain/transformers/ChainGrpcTxFeesTransformer.js +0 -35
  140. package/dist/cjs/client/chain/transformers/ChainGrpcWasmTransformer.d.ts +0 -28
  141. package/dist/cjs/client/chain/transformers/ChainGrpcWasmTransformer.js +0 -142
  142. package/dist/cjs/client/chain/transformers/index.d.ts +0 -19
  143. package/dist/cjs/client/chain/transformers/index.js +0 -35
  144. package/dist/cjs/client/chain/types/auction.d.ts +0 -66
  145. package/dist/cjs/client/chain/types/auction.js +0 -2
  146. package/dist/cjs/client/chain/types/auth-rest.d.ts +0 -54
  147. package/dist/cjs/client/chain/types/auth-rest.js +0 -2
  148. package/dist/cjs/client/chain/types/auth.d.ts +0 -23
  149. package/dist/cjs/client/chain/types/auth.js +0 -2
  150. package/dist/cjs/client/chain/types/authZ.d.ts +0 -22
  151. package/dist/cjs/client/chain/types/authZ.js +0 -2
  152. package/dist/cjs/client/chain/types/bank-rest.d.ts +0 -16
  153. package/dist/cjs/client/chain/types/bank-rest.js +0 -2
  154. package/dist/cjs/client/chain/types/bank.d.ts +0 -12
  155. package/dist/cjs/client/chain/types/bank.js +0 -2
  156. package/dist/cjs/client/chain/types/distribution.d.ts +0 -14
  157. package/dist/cjs/client/chain/types/distribution.js +0 -2
  158. package/dist/cjs/client/chain/types/erc20.d.ts +0 -13
  159. package/dist/cjs/client/chain/types/erc20.js +0 -2
  160. package/dist/cjs/client/chain/types/evm.d.ts +0 -62
  161. package/dist/cjs/client/chain/types/evm.js +0 -2
  162. package/dist/cjs/client/chain/types/exchange.d.ts +0 -171
  163. package/dist/cjs/client/chain/types/exchange.js +0 -7
  164. package/dist/cjs/client/chain/types/gov.d.ts +0 -83
  165. package/dist/cjs/client/chain/types/gov.js +0 -6
  166. package/dist/cjs/client/chain/types/index.d.ts +0 -46
  167. package/dist/cjs/client/chain/types/index.js +0 -25
  168. package/dist/cjs/client/chain/types/insurance.d.ts +0 -38
  169. package/dist/cjs/client/chain/types/insurance.js +0 -5
  170. package/dist/cjs/client/chain/types/mint.d.ts +0 -4
  171. package/dist/cjs/client/chain/types/mint.js +0 -2
  172. package/dist/cjs/client/chain/types/oracle.d.ts +0 -4
  173. package/dist/cjs/client/chain/types/oracle.js +0 -2
  174. package/dist/cjs/client/chain/types/peggy.d.ts +0 -27
  175. package/dist/cjs/client/chain/types/peggy.js +0 -2
  176. package/dist/cjs/client/chain/types/permissions.d.ts +0 -96
  177. package/dist/cjs/client/chain/types/permissions.js +0 -5
  178. package/dist/cjs/client/chain/types/staking.d.ts +0 -81
  179. package/dist/cjs/client/chain/types/staking.js +0 -8
  180. package/dist/cjs/client/chain/types/tendermint-rest.d.ts +0 -98
  181. package/dist/cjs/client/chain/types/tendermint-rest.js +0 -2
  182. package/dist/cjs/client/chain/types/tokenfactory.d.ts +0 -15
  183. package/dist/cjs/client/chain/types/tokenfactory.js +0 -2
  184. package/dist/cjs/client/chain/types/txFees.d.ts +0 -21
  185. package/dist/cjs/client/chain/types/txFees.js +0 -2
  186. package/dist/cjs/client/chain/types/wasm.d.ts +0 -81
  187. package/dist/cjs/client/chain/types/wasm.js +0 -5
  188. package/dist/cjs/client/gql/client.d.ts +0 -9
  189. package/dist/cjs/client/gql/client.js +0 -52
  190. package/dist/cjs/client/gql/index.d.ts +0 -3
  191. package/dist/cjs/client/gql/index.js +0 -18
  192. package/dist/cjs/client/gql/queries.d.ts +0 -5
  193. package/dist/cjs/client/gql/queries.js +0 -44
  194. package/dist/cjs/client/gql/types.d.ts +0 -19
  195. package/dist/cjs/client/gql/types.js +0 -2
  196. package/dist/cjs/client/index.d.ts +0 -5
  197. package/dist/cjs/client/index.js +0 -21
  198. package/dist/cjs/client/indexer/IndexerGrpcClient.d.ts +0 -25
  199. package/dist/cjs/client/indexer/IndexerGrpcClient.js +0 -39
  200. package/dist/cjs/client/indexer/IndexerGrpcStreamClient.d.ts +0 -21
  201. package/dist/cjs/client/indexer/IndexerGrpcStreamClient.js +0 -33
  202. package/dist/cjs/client/indexer/IndexerRestClient.d.ts +0 -16
  203. package/dist/cjs/client/indexer/IndexerRestClient.js +0 -24
  204. package/dist/cjs/client/indexer/grpc/IndexerGrpcAccountApi.d.ts +0 -40
  205. package/dist/cjs/client/indexer/grpc/IndexerGrpcAccountApi.js +0 -212
  206. package/dist/cjs/client/indexer/grpc/IndexerGrpcArchiverApi.d.ts +0 -52
  207. package/dist/cjs/client/indexer/grpc/IndexerGrpcArchiverApi.js +0 -256
  208. package/dist/cjs/client/indexer/grpc/IndexerGrpcAuctionApi.d.ts +0 -35
  209. package/dist/cjs/client/indexer/grpc/IndexerGrpcAuctionApi.js +0 -192
  210. package/dist/cjs/client/indexer/grpc/IndexerGrpcCampaignApi.d.ts +0 -71
  211. package/dist/cjs/client/indexer/grpc/IndexerGrpcCampaignApi.js +0 -215
  212. package/dist/cjs/client/indexer/grpc/IndexerGrpcDerivativesApi.d.ts +0 -141
  213. package/dist/cjs/client/indexer/grpc/IndexerGrpcDerivativesApi.js +0 -633
  214. package/dist/cjs/client/indexer/grpc/IndexerGrpcExplorerApi.d.ts +0 -108
  215. package/dist/cjs/client/indexer/grpc/IndexerGrpcExplorerApi.js +0 -517
  216. package/dist/cjs/client/indexer/grpc/IndexerGrpcInsuranceFundApi.d.ts +0 -16
  217. package/dist/cjs/client/indexer/grpc/IndexerGrpcInsuranceFundApi.js +0 -72
  218. package/dist/cjs/client/indexer/grpc/IndexerGrpcMegaVaultApi.d.ts +0 -45
  219. package/dist/cjs/client/indexer/grpc/IndexerGrpcMegaVaultApi.js +0 -207
  220. package/dist/cjs/client/indexer/grpc/IndexerGrpcMetaApi.d.ts +0 -13
  221. package/dist/cjs/client/indexer/grpc/IndexerGrpcMetaApi.js +0 -86
  222. package/dist/cjs/client/indexer/grpc/IndexerGrpcMitoApi.d.ts +0 -178
  223. package/dist/cjs/client/indexer/grpc/IndexerGrpcMitoApi.js +0 -642
  224. package/dist/cjs/client/indexer/grpc/IndexerGrpcOracleApi.d.ts +0 -23
  225. package/dist/cjs/client/indexer/grpc/IndexerGrpcOracleApi.js +0 -103
  226. package/dist/cjs/client/indexer/grpc/IndexerGrpcPortfolioApi.d.ts +0 -12
  227. package/dist/cjs/client/indexer/grpc/IndexerGrpcPortfolioApi.js +0 -82
  228. package/dist/cjs/client/indexer/grpc/IndexerGrpcReferralApi.d.ts +0 -13
  229. package/dist/cjs/client/indexer/grpc/IndexerGrpcReferralApi.js +0 -89
  230. package/dist/cjs/client/indexer/grpc/IndexerGrpcSpotApi.d.ts +0 -98
  231. package/dist/cjs/client/indexer/grpc/IndexerGrpcSpotApi.js +0 -444
  232. package/dist/cjs/client/indexer/grpc/IndexerGrpcTradingApi.d.ts +0 -29
  233. package/dist/cjs/client/indexer/grpc/IndexerGrpcTradingApi.js +0 -109
  234. package/dist/cjs/client/indexer/grpc/IndexerGrpcTransactionApi.d.ts +0 -66
  235. package/dist/cjs/client/indexer/grpc/IndexerGrpcTransactionApi.js +0 -229
  236. package/dist/cjs/client/indexer/grpc/IndexerGrpcWeb3GwApi.d.ts +0 -24
  237. package/dist/cjs/client/indexer/grpc/IndexerGrpcWeb3GwApi.js +0 -70
  238. package/dist/cjs/client/indexer/grpc/index.d.ts +0 -17
  239. package/dist/cjs/client/indexer/grpc/index.js +0 -37
  240. package/dist/cjs/client/indexer/grpc_stream/IndexerGrpcAccountPortfolioStream.d.ts +0 -20
  241. package/dist/cjs/client/indexer/grpc_stream/IndexerGrpcAccountPortfolioStream.js +0 -42
  242. package/dist/cjs/client/indexer/grpc_stream/IndexerGrpcAccountStream.d.ts +0 -18
  243. package/dist/cjs/client/indexer/grpc_stream/IndexerGrpcAccountStream.js +0 -38
  244. package/dist/cjs/client/indexer/grpc_stream/IndexerGrpcArchiverStream.d.ts +0 -18
  245. package/dist/cjs/client/indexer/grpc_stream/IndexerGrpcArchiverStream.js +0 -38
  246. package/dist/cjs/client/indexer/grpc_stream/IndexerGrpcAuctionStream.d.ts +0 -17
  247. package/dist/cjs/client/indexer/grpc_stream/IndexerGrpcAuctionStream.js +0 -35
  248. package/dist/cjs/client/indexer/grpc_stream/IndexerGrpcDerivativesStream.d.ts +0 -94
  249. package/dist/cjs/client/indexer/grpc_stream/IndexerGrpcDerivativesStream.js +0 -250
  250. package/dist/cjs/client/indexer/grpc_stream/IndexerGrpcExplorerStream.d.ts +0 -29
  251. package/dist/cjs/client/indexer/grpc_stream/IndexerGrpcExplorerStream.js +0 -73
  252. package/dist/cjs/client/indexer/grpc_stream/IndexerGrpcMitoStream.d.ts +0 -51
  253. package/dist/cjs/client/indexer/grpc_stream/IndexerGrpcMitoStream.js +0 -137
  254. package/dist/cjs/client/indexer/grpc_stream/IndexerGrpcOracleStream.d.ts +0 -27
  255. package/dist/cjs/client/indexer/grpc_stream/IndexerGrpcOracleStream.js +0 -64
  256. package/dist/cjs/client/indexer/grpc_stream/IndexerGrpcSpotStream.d.ts +0 -76
  257. package/dist/cjs/client/indexer/grpc_stream/IndexerGrpcSpotStream.js +0 -194
  258. package/dist/cjs/client/indexer/grpc_stream/IndexerGrpcTradingStream.d.ts +0 -17
  259. package/dist/cjs/client/indexer/grpc_stream/IndexerGrpcTradingStream.js +0 -46
  260. package/dist/cjs/client/indexer/grpc_stream/index.d.ts +0 -10
  261. package/dist/cjs/client/indexer/grpc_stream/index.js +0 -26
  262. package/dist/cjs/client/indexer/index.d.ts +0 -5
  263. package/dist/cjs/client/indexer/index.js +0 -24
  264. package/dist/cjs/client/indexer/rest/IndexerRestDerivativesChronosApi.d.ts +0 -8
  265. package/dist/cjs/client/indexer/rest/IndexerRestDerivativesChronosApi.js +0 -54
  266. package/dist/cjs/client/indexer/rest/IndexerRestExplorerApi.d.ts +0 -129
  267. package/dist/cjs/client/indexer/rest/IndexerRestExplorerApi.js +0 -456
  268. package/dist/cjs/client/indexer/rest/IndexerRestLeaderboardChronosApi.d.ts +0 -7
  269. package/dist/cjs/client/indexer/rest/IndexerRestLeaderboardChronosApi.js +0 -33
  270. package/dist/cjs/client/indexer/rest/IndexerRestMarketChronosApi.d.ts +0 -8
  271. package/dist/cjs/client/indexer/rest/IndexerRestMarketChronosApi.js +0 -41
  272. package/dist/cjs/client/indexer/rest/IndexerRestSpotChronosApi.d.ts +0 -8
  273. package/dist/cjs/client/indexer/rest/IndexerRestSpotChronosApi.js +0 -54
  274. package/dist/cjs/client/indexer/rest/index.d.ts +0 -5
  275. package/dist/cjs/client/indexer/rest/index.js +0 -13
  276. package/dist/cjs/client/indexer/transformers/IndexerAccountPortfolioStreamTransformer.d.ts +0 -12
  277. package/dist/cjs/client/indexer/transformers/IndexerAccountPortfolioStreamTransformer.js +0 -17
  278. package/dist/cjs/client/indexer/transformers/IndexerAccountPortfolioTransformer.d.ts +0 -9
  279. package/dist/cjs/client/indexer/transformers/IndexerAccountPortfolioTransformer.js +0 -70
  280. package/dist/cjs/client/indexer/transformers/IndexerAccountStreamTransformer.d.ts +0 -11
  281. package/dist/cjs/client/indexer/transformers/IndexerAccountStreamTransformer.js +0 -21
  282. package/dist/cjs/client/indexer/transformers/IndexerArchiverStreamTransformer.d.ts +0 -11
  283. package/dist/cjs/client/indexer/transformers/IndexerArchiverStreamTransformer.js +0 -21
  284. package/dist/cjs/client/indexer/transformers/IndexerAuctionStreamTransformer.d.ts +0 -11
  285. package/dist/cjs/client/indexer/transformers/IndexerAuctionStreamTransformer.js +0 -18
  286. package/dist/cjs/client/indexer/transformers/IndexerCampaignTransformer.d.ts +0 -38
  287. package/dist/cjs/client/indexer/transformers/IndexerCampaignTransformer.js +0 -155
  288. package/dist/cjs/client/indexer/transformers/IndexerCommonTransformer.d.ts +0 -5
  289. package/dist/cjs/client/indexer/transformers/IndexerCommonTransformer.js +0 -12
  290. package/dist/cjs/client/indexer/transformers/IndexerDerivativeStreamTransformer.d.ts +0 -42
  291. package/dist/cjs/client/indexer/transformers/IndexerDerivativeStreamTransformer.js +0 -88
  292. package/dist/cjs/client/indexer/transformers/IndexerExplorerStreamTransformer.d.ts +0 -18
  293. package/dist/cjs/client/indexer/transformers/IndexerExplorerStreamTransformer.js +0 -23
  294. package/dist/cjs/client/indexer/transformers/IndexerGrpcAccountTransformer.d.ts +0 -32
  295. package/dist/cjs/client/indexer/transformers/IndexerGrpcAccountTransformer.js +0 -117
  296. package/dist/cjs/client/indexer/transformers/IndexerGrpcArchiverTransformer.d.ts +0 -21
  297. package/dist/cjs/client/indexer/transformers/IndexerGrpcArchiverTransformer.js +0 -117
  298. package/dist/cjs/client/indexer/transformers/IndexerGrpcAuctionTransformer.d.ts +0 -28
  299. package/dist/cjs/client/indexer/transformers/IndexerGrpcAuctionTransformer.js +0 -89
  300. package/dist/cjs/client/indexer/transformers/IndexerGrpcDerivativeTransformer.d.ts +0 -90
  301. package/dist/cjs/client/indexer/transformers/IndexerGrpcDerivativeTransformer.js +0 -401
  302. package/dist/cjs/client/indexer/transformers/IndexerGrpcExplorerTransformer.d.ts +0 -55
  303. package/dist/cjs/client/indexer/transformers/IndexerGrpcExplorerTransformer.js +0 -475
  304. package/dist/cjs/client/indexer/transformers/IndexerGrpcInsuranceFundTransformer.d.ts +0 -13
  305. package/dist/cjs/client/indexer/transformers/IndexerGrpcInsuranceFundTransformer.js +0 -56
  306. package/dist/cjs/client/indexer/transformers/IndexerGrpcMegaVaultTransformer.d.ts +0 -31
  307. package/dist/cjs/client/indexer/transformers/IndexerGrpcMegaVaultTransformer.js +0 -243
  308. package/dist/cjs/client/indexer/transformers/IndexerGrpcMitoStreamTransformer.d.ts +0 -44
  309. package/dist/cjs/client/indexer/transformers/IndexerGrpcMitoStreamTransformer.js +0 -40
  310. package/dist/cjs/client/indexer/transformers/IndexerGrpcMitoTransformer.d.ts +0 -137
  311. package/dist/cjs/client/indexer/transformers/IndexerGrpcMitoTransformer.js +0 -478
  312. package/dist/cjs/client/indexer/transformers/IndexerGrpcOracleTransformer.d.ts +0 -6
  313. package/dist/cjs/client/indexer/transformers/IndexerGrpcOracleTransformer.js +0 -13
  314. package/dist/cjs/client/indexer/transformers/IndexerGrpcReferralTransformer.d.ts +0 -7
  315. package/dist/cjs/client/indexer/transformers/IndexerGrpcReferralTransformer.js +0 -22
  316. package/dist/cjs/client/indexer/transformers/IndexerGrpcSpotTransformer.d.ts +0 -53
  317. package/dist/cjs/client/indexer/transformers/IndexerGrpcSpotTransformer.js +0 -220
  318. package/dist/cjs/client/indexer/transformers/IndexerOracleStreamTransformer.d.ts +0 -17
  319. package/dist/cjs/client/indexer/transformers/IndexerOracleStreamTransformer.js +0 -18
  320. package/dist/cjs/client/indexer/transformers/IndexerRestExplorerTransformer.d.ts +0 -24
  321. package/dist/cjs/client/indexer/transformers/IndexerRestExplorerTransformer.js +0 -247
  322. package/dist/cjs/client/indexer/transformers/IndexerSpotStreamTransformer.d.ts +0 -34
  323. package/dist/cjs/client/indexer/transformers/IndexerSpotStreamTransformer.js +0 -70
  324. package/dist/cjs/client/indexer/transformers/index.d.ts +0 -23
  325. package/dist/cjs/client/indexer/transformers/index.js +0 -39
  326. package/dist/cjs/client/indexer/types/account-portfolio.d.ts +0 -32
  327. package/dist/cjs/client/indexer/types/account-portfolio.js +0 -2
  328. package/dist/cjs/client/indexer/types/account.d.ts +0 -55
  329. package/dist/cjs/client/indexer/types/account.js +0 -9
  330. package/dist/cjs/client/indexer/types/archiver.d.ts +0 -58
  331. package/dist/cjs/client/indexer/types/archiver.js +0 -2
  332. package/dist/cjs/client/indexer/types/auction.d.ts +0 -69
  333. package/dist/cjs/client/indexer/types/auction.js +0 -2
  334. package/dist/cjs/client/indexer/types/campaign.d.ts +0 -94
  335. package/dist/cjs/client/indexer/types/campaign.js +0 -2
  336. package/dist/cjs/client/indexer/types/derivatives-rest.d.ts +0 -23
  337. package/dist/cjs/client/indexer/types/derivatives-rest.js +0 -2
  338. package/dist/cjs/client/indexer/types/derivatives.d.ts +0 -191
  339. package/dist/cjs/client/indexer/types/derivatives.js +0 -2
  340. package/dist/cjs/client/indexer/types/exchange.d.ts +0 -22
  341. package/dist/cjs/client/indexer/types/exchange.js +0 -2
  342. package/dist/cjs/client/indexer/types/explorer-rest.d.ts +0 -160
  343. package/dist/cjs/client/indexer/types/explorer-rest.js +0 -2
  344. package/dist/cjs/client/indexer/types/explorer.d.ts +0 -385
  345. package/dist/cjs/client/indexer/types/explorer.js +0 -22
  346. package/dist/cjs/client/indexer/types/incentives.d.ts +0 -20
  347. package/dist/cjs/client/indexer/types/incentives.js +0 -2
  348. package/dist/cjs/client/indexer/types/index.d.ts +0 -52
  349. package/dist/cjs/client/indexer/types/index.js +0 -24
  350. package/dist/cjs/client/indexer/types/insurance-funds.d.ts +0 -43
  351. package/dist/cjs/client/indexer/types/insurance-funds.js +0 -7
  352. package/dist/cjs/client/indexer/types/leaderboard-rest.d.ts +0 -13
  353. package/dist/cjs/client/indexer/types/leaderboard-rest.js +0 -2
  354. package/dist/cjs/client/indexer/types/markets-history-rest.d.ts +0 -13
  355. package/dist/cjs/client/indexer/types/markets-history-rest.js +0 -2
  356. package/dist/cjs/client/indexer/types/mega-vault.d.ts +0 -175
  357. package/dist/cjs/client/indexer/types/mega-vault.js +0 -13
  358. package/dist/cjs/client/indexer/types/mito.d.ts +0 -294
  359. package/dist/cjs/client/indexer/types/mito.js +0 -7
  360. package/dist/cjs/client/indexer/types/oracle.d.ts +0 -4
  361. package/dist/cjs/client/indexer/types/oracle.js +0 -2
  362. package/dist/cjs/client/indexer/types/referral.d.ts +0 -9
  363. package/dist/cjs/client/indexer/types/referral.js +0 -2
  364. package/dist/cjs/client/indexer/types/spot-rest.d.ts +0 -23
  365. package/dist/cjs/client/indexer/types/spot-rest.js +0 -2
  366. package/dist/cjs/client/indexer/types/spot.d.ts +0 -98
  367. package/dist/cjs/client/indexer/types/spot.js +0 -2
  368. package/dist/cjs/client/indexer/types/swap.d.ts +0 -10
  369. package/dist/cjs/client/indexer/types/swap.js +0 -2
  370. package/dist/cjs/client/indexer/types/trading.d.ts +0 -15
  371. package/dist/cjs/client/indexer/types/trading.js +0 -14
  372. package/dist/cjs/client/olp/grpc/OLPGrpcApi.d.ts +0 -50
  373. package/dist/cjs/client/olp/grpc/OLPGrpcApi.js +0 -296
  374. package/dist/cjs/client/olp/grpc/index.d.ts +0 -3
  375. package/dist/cjs/client/olp/grpc/index.js +0 -6
  376. package/dist/cjs/client/olp/grpc/transformers/index.d.ts +0 -22
  377. package/dist/cjs/client/olp/grpc/transformers/index.js +0 -222
  378. package/dist/cjs/client/olp/grpc/types/index.d.ts +0 -214
  379. package/dist/cjs/client/olp/grpc/types/index.js +0 -2
  380. package/dist/cjs/client/olp/index.d.ts +0 -1
  381. package/dist/cjs/client/olp/index.js +0 -17
  382. package/dist/cjs/client/wasm/BaseWasmQuery.d.ts +0 -5
  383. package/dist/cjs/client/wasm/BaseWasmQuery.js +0 -10
  384. package/dist/cjs/client/wasm/incentives/index.d.ts +0 -3
  385. package/dist/cjs/client/wasm/incentives/index.js +0 -18
  386. package/dist/cjs/client/wasm/incentives/queries/QueryAllRounds.d.ts +0 -10
  387. package/dist/cjs/client/wasm/incentives/queries/QueryAllRounds.js +0 -21
  388. package/dist/cjs/client/wasm/incentives/queries/QueryGetCampaigns.d.ts +0 -9
  389. package/dist/cjs/client/wasm/incentives/queries/QueryGetCampaigns.js +0 -16
  390. package/dist/cjs/client/wasm/incentives/queries/index.d.ts +0 -2
  391. package/dist/cjs/client/wasm/incentives/queries/index.js +0 -7
  392. package/dist/cjs/client/wasm/incentives/transformer.d.ts +0 -22
  393. package/dist/cjs/client/wasm/incentives/transformer.js +0 -32
  394. package/dist/cjs/client/wasm/incentives/types.d.ts +0 -20
  395. package/dist/cjs/client/wasm/incentives/types.js +0 -2
  396. package/dist/cjs/client/wasm/index.d.ts +0 -6
  397. package/dist/cjs/client/wasm/index.js +0 -21
  398. package/dist/cjs/client/wasm/nameservice/index.d.ts +0 -2
  399. package/dist/cjs/client/wasm/nameservice/index.js +0 -18
  400. package/dist/cjs/client/wasm/nameservice/queries/QueryInjName.d.ts +0 -9
  401. package/dist/cjs/client/wasm/nameservice/queries/QueryInjName.js +0 -15
  402. package/dist/cjs/client/wasm/nameservice/queries/QueryInjectiveAddress.d.ts +0 -9
  403. package/dist/cjs/client/wasm/nameservice/queries/QueryInjectiveAddress.js +0 -15
  404. package/dist/cjs/client/wasm/nameservice/queries/QueryResolverAddress.d.ts +0 -9
  405. package/dist/cjs/client/wasm/nameservice/queries/QueryResolverAddress.js +0 -15
  406. package/dist/cjs/client/wasm/nameservice/queries/index.d.ts +0 -3
  407. package/dist/cjs/client/wasm/nameservice/queries/index.js +0 -9
  408. package/dist/cjs/client/wasm/nameservice/transformer.d.ts +0 -6
  409. package/dist/cjs/client/wasm/nameservice/transformer.js +0 -19
  410. package/dist/cjs/client/wasm/neptune/helper.d.ts +0 -2
  411. package/dist/cjs/client/wasm/neptune/helper.js +0 -9
  412. package/dist/cjs/client/wasm/neptune/index.d.ts +0 -5
  413. package/dist/cjs/client/wasm/neptune/index.js +0 -22
  414. package/dist/cjs/client/wasm/neptune/queries/QueryGetPrices.d.ts +0 -10
  415. package/dist/cjs/client/wasm/neptune/queries/QueryGetPrices.js +0 -15
  416. package/dist/cjs/client/wasm/neptune/queries/QueryLendingRates.d.ts +0 -11
  417. package/dist/cjs/client/wasm/neptune/queries/QueryLendingRates.js +0 -21
  418. package/dist/cjs/client/wasm/neptune/queries/index.d.ts +0 -2
  419. package/dist/cjs/client/wasm/neptune/queries/index.js +0 -7
  420. package/dist/cjs/client/wasm/neptune/service.d.ts +0 -102
  421. package/dist/cjs/client/wasm/neptune/service.js +0 -181
  422. package/dist/cjs/client/wasm/neptune/transformer.d.ts +0 -12
  423. package/dist/cjs/client/wasm/neptune/transformer.js +0 -21
  424. package/dist/cjs/client/wasm/neptune/types.d.ts +0 -18
  425. package/dist/cjs/client/wasm/neptune/types.js +0 -4
  426. package/dist/cjs/client/wasm/swap/index.d.ts +0 -3
  427. package/dist/cjs/client/wasm/swap/index.js +0 -18
  428. package/dist/cjs/client/wasm/swap/queries/QueryAllRoutes.d.ts +0 -8
  429. package/dist/cjs/client/wasm/swap/queries/QueryAllRoutes.js +0 -11
  430. package/dist/cjs/client/wasm/swap/queries/QueryInputQuantity.d.ts +0 -11
  431. package/dist/cjs/client/wasm/swap/queries/QueryInputQuantity.js +0 -17
  432. package/dist/cjs/client/wasm/swap/queries/QueryOutputQuantity.d.ts +0 -11
  433. package/dist/cjs/client/wasm/swap/queries/QueryOutputQuantity.js +0 -17
  434. package/dist/cjs/client/wasm/swap/queries/QueryRoute.d.ts +0 -10
  435. package/dist/cjs/client/wasm/swap/queries/QueryRoute.js +0 -16
  436. package/dist/cjs/client/wasm/swap/queries/index.d.ts +0 -4
  437. package/dist/cjs/client/wasm/swap/queries/index.js +0 -11
  438. package/dist/cjs/client/wasm/swap/transformer.d.ts +0 -20
  439. package/dist/cjs/client/wasm/swap/transformer.js +0 -30
  440. package/dist/cjs/client/wasm/swap/types.d.ts +0 -12
  441. package/dist/cjs/client/wasm/swap/types.js +0 -2
  442. package/dist/cjs/client/wasm/trading_strategies/index.d.ts +0 -1
  443. package/dist/cjs/client/wasm/trading_strategies/index.js +0 -17
  444. package/dist/cjs/client/wasm/trading_strategies/queries/QueryTradingStrategyContractAllStrategies.d.ts +0 -10
  445. package/dist/cjs/client/wasm/trading_strategies/queries/QueryTradingStrategyContractAllStrategies.js +0 -17
  446. package/dist/cjs/client/wasm/trading_strategies/queries/QueryTradingStrategyContractConfig.d.ts +0 -8
  447. package/dist/cjs/client/wasm/trading_strategies/queries/QueryTradingStrategyContractConfig.js +0 -14
  448. package/dist/cjs/client/wasm/trading_strategies/queries/QueryTradingStrategyContractTotalStrategies.d.ts +0 -8
  449. package/dist/cjs/client/wasm/trading_strategies/queries/QueryTradingStrategyContractTotalStrategies.js +0 -14
  450. package/dist/cjs/client/wasm/trading_strategies/queries/QueryTradingStrategyContractUserStrategies.d.ts +0 -9
  451. package/dist/cjs/client/wasm/trading_strategies/queries/QueryTradingStrategyContractUserStrategies.js +0 -16
  452. package/dist/cjs/client/wasm/trading_strategies/queries/index.d.ts +0 -4
  453. package/dist/cjs/client/wasm/trading_strategies/queries/index.js +0 -11
  454. package/dist/cjs/client/wasm/trading_strategies/types.d.ts +0 -33
  455. package/dist/cjs/client/wasm/trading_strategies/types.js +0 -2
  456. package/dist/cjs/client/wasm/types.d.ts +0 -3
  457. package/dist/cjs/client/wasm/types.js +0 -2
  458. package/dist/cjs/core/accounts/AccountParser.d.ts +0 -2
  459. package/dist/cjs/core/accounts/AccountParser.js +0 -21
  460. package/dist/cjs/core/accounts/AccountParserNoCosmjs.d.ts +0 -1
  461. package/dist/cjs/core/accounts/AccountParserNoCosmjs.js +0 -21
  462. package/dist/cjs/core/accounts/Address.d.ts +0 -68
  463. package/dist/cjs/core/accounts/Address.js +0 -120
  464. package/dist/cjs/core/accounts/BaseAccount.d.ts +0 -27
  465. package/dist/cjs/core/accounts/BaseAccount.js +0 -70
  466. package/dist/cjs/core/accounts/PrivateKey.d.ts +0 -167
  467. package/dist/cjs/core/accounts/PrivateKey.js +0 -336
  468. package/dist/cjs/core/accounts/PublicKey.d.ts +0 -25
  469. package/dist/cjs/core/accounts/PublicKey.js +0 -79
  470. package/dist/cjs/core/accounts/index.d.ts +0 -4
  471. package/dist/cjs/core/accounts/index.js +0 -20
  472. package/dist/cjs/core/accounts/signers/DirectEthSecp256k1Wallet.d.ts +0 -21
  473. package/dist/cjs/core/accounts/signers/DirectEthSecp256k1Wallet.js +0 -58
  474. package/dist/cjs/core/accounts/signers/EthSecp256k1Wallet.d.ts +0 -18
  475. package/dist/cjs/core/accounts/signers/EthSecp256k1Wallet.js +0 -58
  476. package/dist/cjs/core/accounts/signers/index.d.ts +0 -2
  477. package/dist/cjs/core/accounts/signers/index.js +0 -7
  478. package/dist/cjs/core/accounts/signers/types/amino-signer.d.ts +0 -8
  479. package/dist/cjs/core/accounts/signers/types/amino-signer.js +0 -2
  480. package/dist/cjs/core/accounts/signers/types/index.d.ts +0 -3
  481. package/dist/cjs/core/accounts/signers/types/index.js +0 -2
  482. package/dist/cjs/core/accounts/signers/types/proto-signer.d.ts +0 -8
  483. package/dist/cjs/core/accounts/signers/types/proto-signer.js +0 -2
  484. package/dist/cjs/core/index.d.ts +0 -4
  485. package/dist/cjs/core/index.js +0 -20
  486. package/dist/cjs/core/modules/MsgBase.d.ts +0 -48
  487. package/dist/cjs/core/modules/MsgBase.js +0 -47
  488. package/dist/cjs/core/modules/auction/index.d.ts +0 -2
  489. package/dist/cjs/core/modules/auction/index.js +0 -8
  490. package/dist/cjs/core/modules/auction/msgs/MsgBid.d.ts +0 -45
  491. package/dist/cjs/core/modules/auction/msgs/MsgBid.js +0 -63
  492. package/dist/cjs/core/modules/authz/index.d.ts +0 -8
  493. package/dist/cjs/core/modules/authz/index.js +0 -31
  494. package/dist/cjs/core/modules/authz/msgs/MsgExec.d.ts +0 -44
  495. package/dist/cjs/core/modules/authz/msgs/MsgExec.js +0 -75
  496. package/dist/cjs/core/modules/authz/msgs/MsgGrant.d.ts +0 -61
  497. package/dist/cjs/core/modules/authz/msgs/MsgGrant.js +0 -132
  498. package/dist/cjs/core/modules/authz/msgs/MsgGrantWithAuthorization.d.ts +0 -50
  499. package/dist/cjs/core/modules/authz/msgs/MsgGrantWithAuthorization.js +0 -104
  500. package/dist/cjs/core/modules/authz/msgs/MsgRevoke.d.ts +0 -39
  501. package/dist/cjs/core/modules/authz/msgs/MsgRevoke.js +0 -60
  502. package/dist/cjs/core/modules/authz/msgs/authorizations/Base.d.ts +0 -9
  503. package/dist/cjs/core/modules/authz/msgs/authorizations/Base.js +0 -10
  504. package/dist/cjs/core/modules/authz/msgs/authorizations/ContractExecutionAuthorization.d.ts +0 -28
  505. package/dist/cjs/core/modules/authz/msgs/authorizations/ContractExecutionAuthorization.js +0 -155
  506. package/dist/cjs/core/modules/authz/msgs/authorizations/ContractExecutionCompatAuthorization.d.ts +0 -28
  507. package/dist/cjs/core/modules/authz/msgs/authorizations/ContractExecutionCompatAuthorization.js +0 -155
  508. package/dist/cjs/core/modules/authz/msgs/authorizations/GenericAuthorization.d.ts +0 -22
  509. package/dist/cjs/core/modules/authz/msgs/authorizations/GenericAuthorization.js +0 -41
  510. package/dist/cjs/core/modules/authz/msgs/authorizations/index.d.ts +0 -4
  511. package/dist/cjs/core/modules/authz/msgs/authorizations/index.js +0 -12
  512. package/dist/cjs/core/modules/authz/types.d.ts +0 -5
  513. package/dist/cjs/core/modules/authz/types.js +0 -7
  514. package/dist/cjs/core/modules/authz/utils.d.ts +0 -4
  515. package/dist/cjs/core/modules/authz/utils.js +0 -28
  516. package/dist/cjs/core/modules/bank/index.d.ts +0 -3
  517. package/dist/cjs/core/modules/bank/index.js +0 -10
  518. package/dist/cjs/core/modules/bank/msgs/MsgMultiSend.d.ts +0 -44
  519. package/dist/cjs/core/modules/bank/msgs/MsgMultiSend.js +0 -81
  520. package/dist/cjs/core/modules/bank/msgs/MsgSend.d.ts +0 -48
  521. package/dist/cjs/core/modules/bank/msgs/MsgSend.js +0 -69
  522. package/dist/cjs/core/modules/distribution/index.d.ts +0 -4
  523. package/dist/cjs/core/modules/distribution/index.js +0 -12
  524. package/dist/cjs/core/modules/distribution/msgs/MsgFundCommunityPool.d.ts +0 -39
  525. package/dist/cjs/core/modules/distribution/msgs/MsgFundCommunityPool.js +0 -65
  526. package/dist/cjs/core/modules/distribution/msgs/MsgWithdrawDelegatorReward.d.ts +0 -38
  527. package/dist/cjs/core/modules/distribution/msgs/MsgWithdrawDelegatorReward.js +0 -59
  528. package/dist/cjs/core/modules/distribution/msgs/MsgWithdrawValidatorCommission.d.ts +0 -34
  529. package/dist/cjs/core/modules/distribution/msgs/MsgWithdrawValidatorCommission.js +0 -58
  530. package/dist/cjs/core/modules/exchange/index.d.ts +0 -31
  531. package/dist/cjs/core/modules/exchange/index.js +0 -79
  532. package/dist/cjs/core/modules/exchange/msgs/MsgAdminUpdateBinaryOptionsMarket.d.ts +0 -75
  533. package/dist/cjs/core/modules/exchange/msgs/MsgAdminUpdateBinaryOptionsMarket.js +0 -94
  534. package/dist/cjs/core/modules/exchange/msgs/MsgAuthorizeStakeGrants.d.ts +0 -39
  535. package/dist/cjs/core/modules/exchange/msgs/MsgAuthorizeStakeGrants.js +0 -64
  536. package/dist/cjs/core/modules/exchange/msgs/MsgBatchCancelBinaryOptionsOrders.d.ts +0 -48
  537. package/dist/cjs/core/modules/exchange/msgs/MsgBatchCancelBinaryOptionsOrders.js +0 -73
  538. package/dist/cjs/core/modules/exchange/msgs/MsgBatchCancelDerivativeOrders.d.ts +0 -48
  539. package/dist/cjs/core/modules/exchange/msgs/MsgBatchCancelDerivativeOrders.js +0 -73
  540. package/dist/cjs/core/modules/exchange/msgs/MsgBatchCancelSpotOrders.d.ts +0 -48
  541. package/dist/cjs/core/modules/exchange/msgs/MsgBatchCancelSpotOrders.js +0 -73
  542. package/dist/cjs/core/modules/exchange/msgs/MsgBatchUpdateOrders.d.ts +0 -161
  543. package/dist/cjs/core/modules/exchange/msgs/MsgBatchUpdateOrders.js +0 -328
  544. package/dist/cjs/core/modules/exchange/msgs/MsgCancelBinaryOptionsOrder.d.ts +0 -54
  545. package/dist/cjs/core/modules/exchange/msgs/MsgCancelBinaryOptionsOrder.js +0 -68
  546. package/dist/cjs/core/modules/exchange/msgs/MsgCancelDerivativeOrder.d.ts +0 -51
  547. package/dist/cjs/core/modules/exchange/msgs/MsgCancelDerivativeOrder.js +0 -65
  548. package/dist/cjs/core/modules/exchange/msgs/MsgCancelPostOnlyModeV2.d.ts +0 -44
  549. package/dist/cjs/core/modules/exchange/msgs/MsgCancelPostOnlyModeV2.js +0 -83
  550. package/dist/cjs/core/modules/exchange/msgs/MsgCancelSpotOrder.d.ts +0 -50
  551. package/dist/cjs/core/modules/exchange/msgs/MsgCancelSpotOrder.js +0 -67
  552. package/dist/cjs/core/modules/exchange/msgs/MsgCreateBinaryOptionsLimitOrder.d.ts +0 -80
  553. package/dist/cjs/core/modules/exchange/msgs/MsgCreateBinaryOptionsLimitOrder.js +0 -128
  554. package/dist/cjs/core/modules/exchange/msgs/MsgCreateBinaryOptionsMarketOrder.d.ts +0 -80
  555. package/dist/cjs/core/modules/exchange/msgs/MsgCreateBinaryOptionsMarketOrder.js +0 -128
  556. package/dist/cjs/core/modules/exchange/msgs/MsgCreateDerivativeLimitOrder.d.ts +0 -80
  557. package/dist/cjs/core/modules/exchange/msgs/MsgCreateDerivativeLimitOrder.js +0 -128
  558. package/dist/cjs/core/modules/exchange/msgs/MsgCreateDerivativeMarketOrder.d.ts +0 -80
  559. package/dist/cjs/core/modules/exchange/msgs/MsgCreateDerivativeMarketOrder.js +0 -128
  560. package/dist/cjs/core/modules/exchange/msgs/MsgCreateSpotLimitOrder.d.ts +0 -77
  561. package/dist/cjs/core/modules/exchange/msgs/MsgCreateSpotLimitOrder.js +0 -124
  562. package/dist/cjs/core/modules/exchange/msgs/MsgCreateSpotMarketOrder.d.ts +0 -77
  563. package/dist/cjs/core/modules/exchange/msgs/MsgCreateSpotMarketOrder.js +0 -124
  564. package/dist/cjs/core/modules/exchange/msgs/MsgDeposit.d.ts +0 -45
  565. package/dist/cjs/core/modules/exchange/msgs/MsgDeposit.js +0 -63
  566. package/dist/cjs/core/modules/exchange/msgs/MsgExternalTransfer.d.ts +0 -49
  567. package/dist/cjs/core/modules/exchange/msgs/MsgExternalTransfer.js +0 -64
  568. package/dist/cjs/core/modules/exchange/msgs/MsgIncreasePositionMargin.d.ts +0 -68
  569. package/dist/cjs/core/modules/exchange/msgs/MsgIncreasePositionMargin.js +0 -93
  570. package/dist/cjs/core/modules/exchange/msgs/MsgInstantBinaryOptionsMarketLaunch.d.ts +0 -130
  571. package/dist/cjs/core/modules/exchange/msgs/MsgInstantBinaryOptionsMarketLaunch.js +0 -119
  572. package/dist/cjs/core/modules/exchange/msgs/MsgInstantSpotMarketLaunch.d.ts +0 -95
  573. package/dist/cjs/core/modules/exchange/msgs/MsgInstantSpotMarketLaunch.js +0 -105
  574. package/dist/cjs/core/modules/exchange/msgs/MsgLiquidatePosition.d.ts +0 -73
  575. package/dist/cjs/core/modules/exchange/msgs/MsgLiquidatePosition.js +0 -141
  576. package/dist/cjs/core/modules/exchange/msgs/MsgReclaimLockedFunds.d.ts +0 -39
  577. package/dist/cjs/core/modules/exchange/msgs/MsgReclaimLockedFunds.js +0 -60
  578. package/dist/cjs/core/modules/exchange/msgs/MsgRewardsOptOut.d.ts +0 -34
  579. package/dist/cjs/core/modules/exchange/msgs/MsgRewardsOptOut.js +0 -58
  580. package/dist/cjs/core/modules/exchange/msgs/MsgSetDelegationTransferReceivers.d.ts +0 -38
  581. package/dist/cjs/core/modules/exchange/msgs/MsgSetDelegationTransferReceivers.js +0 -59
  582. package/dist/cjs/core/modules/exchange/msgs/MsgSignData.d.ts +0 -38
  583. package/dist/cjs/core/modules/exchange/msgs/MsgSignData.js +0 -60
  584. package/dist/cjs/core/modules/exchange/msgs/MsgUpdateDerivativeMarketV2.d.ts +0 -92
  585. package/dist/cjs/core/modules/exchange/msgs/MsgUpdateDerivativeMarketV2.js +0 -106
  586. package/dist/cjs/core/modules/exchange/msgs/MsgUpdateSpotMarketV2.d.ts +0 -74
  587. package/dist/cjs/core/modules/exchange/msgs/MsgUpdateSpotMarketV2.js +0 -97
  588. package/dist/cjs/core/modules/exchange/msgs/MsgWithdraw.d.ts +0 -45
  589. package/dist/cjs/core/modules/exchange/msgs/MsgWithdraw.js +0 -63
  590. package/dist/cjs/core/modules/exchange/utils/classes/OrderHashManager.d.ts +0 -58
  591. package/dist/cjs/core/modules/exchange/utils/classes/OrderHashManager.js +0 -324
  592. package/dist/cjs/core/modules/exchange/utils/classes/index.d.ts +0 -1
  593. package/dist/cjs/core/modules/exchange/utils/classes/index.js +0 -5
  594. package/dist/cjs/core/modules/exchange/utils/index.d.ts +0 -1
  595. package/dist/cjs/core/modules/exchange/utils/index.js +0 -17
  596. package/dist/cjs/core/modules/feegrant/index.d.ts +0 -3
  597. package/dist/cjs/core/modules/feegrant/index.js +0 -10
  598. package/dist/cjs/core/modules/feegrant/msgs/MsgGrantAllowance.d.ts +0 -66
  599. package/dist/cjs/core/modules/feegrant/msgs/MsgGrantAllowance.js +0 -130
  600. package/dist/cjs/core/modules/feegrant/msgs/MsgRevokeAllowance.d.ts +0 -50
  601. package/dist/cjs/core/modules/feegrant/msgs/MsgRevokeAllowance.js +0 -59
  602. package/dist/cjs/core/modules/feegrant/utils/allowance.d.ts +0 -13
  603. package/dist/cjs/core/modules/feegrant/utils/allowance.js +0 -72
  604. package/dist/cjs/core/modules/feegrant/utils/index.d.ts +0 -1
  605. package/dist/cjs/core/modules/feegrant/utils/index.js +0 -17
  606. package/dist/cjs/core/modules/gov/Proposal.d.ts +0 -0
  607. package/dist/cjs/core/modules/gov/Proposal.js +0 -1
  608. package/dist/cjs/core/modules/gov/ProposalContentDecomposer.d.ts +0 -23
  609. package/dist/cjs/core/modules/gov/ProposalContentDecomposer.js +0 -67
  610. package/dist/cjs/core/modules/gov/index.d.ts +0 -13
  611. package/dist/cjs/core/modules/gov/index.js +0 -39
  612. package/dist/cjs/core/modules/gov/msgs/MsgDeposit.d.ts +0 -45
  613. package/dist/cjs/core/modules/gov/msgs/MsgDeposit.js +0 -63
  614. package/dist/cjs/core/modules/gov/msgs/MsgSubmitGenericProposal.d.ts +0 -49
  615. package/dist/cjs/core/modules/gov/msgs/MsgSubmitGenericProposal.js +0 -89
  616. package/dist/cjs/core/modules/gov/msgs/MsgSubmitProposalExpiryFuturesMarketLaunch.d.ts +0 -88
  617. package/dist/cjs/core/modules/gov/msgs/MsgSubmitProposalExpiryFuturesMarketLaunch.js +0 -172
  618. package/dist/cjs/core/modules/gov/msgs/MsgSubmitProposalPerpetualMarketLaunch.d.ts +0 -87
  619. package/dist/cjs/core/modules/gov/msgs/MsgSubmitProposalPerpetualMarketLaunch.js +0 -171
  620. package/dist/cjs/core/modules/gov/msgs/MsgSubmitProposalPerpetualMarketLaunchV2.d.ts +0 -88
  621. package/dist/cjs/core/modules/gov/msgs/MsgSubmitProposalPerpetualMarketLaunchV2.js +0 -175
  622. package/dist/cjs/core/modules/gov/msgs/MsgSubmitProposalSpotMarketLaunch.d.ts +0 -84
  623. package/dist/cjs/core/modules/gov/msgs/MsgSubmitProposalSpotMarketLaunch.js +0 -161
  624. package/dist/cjs/core/modules/gov/msgs/MsgSubmitProposalSpotMarketParamUpdate.d.ts +0 -85
  625. package/dist/cjs/core/modules/gov/msgs/MsgSubmitProposalSpotMarketParamUpdate.js +0 -166
  626. package/dist/cjs/core/modules/gov/msgs/MsgSubmitTextProposal.d.ts +0 -56
  627. package/dist/cjs/core/modules/gov/msgs/MsgSubmitTextProposal.js +0 -97
  628. package/dist/cjs/core/modules/gov/msgs/MsgVote.d.ts +0 -53
  629. package/dist/cjs/core/modules/gov/msgs/MsgVote.js +0 -67
  630. package/dist/cjs/core/modules/ibc/index.d.ts +0 -2
  631. package/dist/cjs/core/modules/ibc/index.js +0 -8
  632. package/dist/cjs/core/modules/ibc/msgs/MsgTransfer.d.ts +0 -66
  633. package/dist/cjs/core/modules/ibc/msgs/MsgTransfer.js +0 -78
  634. package/dist/cjs/core/modules/ibc/msgs/MsgTransferCosmjs.d.ts +0 -60
  635. package/dist/cjs/core/modules/ibc/msgs/MsgTransferCosmjs.js +0 -85
  636. package/dist/cjs/core/modules/index.d.ts +0 -15
  637. package/dist/cjs/core/modules/index.js +0 -30
  638. package/dist/cjs/core/modules/insurance/index.d.ts +0 -4
  639. package/dist/cjs/core/modules/insurance/index.js +0 -12
  640. package/dist/cjs/core/modules/insurance/msgs/MsgCreateInsuranceFund.d.ts +0 -78
  641. package/dist/cjs/core/modules/insurance/msgs/MsgCreateInsuranceFund.js +0 -77
  642. package/dist/cjs/core/modules/insurance/msgs/MsgRequestRedemption.d.ts +0 -45
  643. package/dist/cjs/core/modules/insurance/msgs/MsgRequestRedemption.js +0 -63
  644. package/dist/cjs/core/modules/insurance/msgs/MsgUnderwrite.d.ts +0 -45
  645. package/dist/cjs/core/modules/insurance/msgs/MsgUnderwrite.js +0 -63
  646. package/dist/cjs/core/modules/msgs.d.ts +0 -83
  647. package/dist/cjs/core/modules/msgs.js +0 -2
  648. package/dist/cjs/core/modules/peggy/index.d.ts +0 -2
  649. package/dist/cjs/core/modules/peggy/index.js +0 -8
  650. package/dist/cjs/core/modules/peggy/msgs/MsgSendToEth.d.ts +0 -52
  651. package/dist/cjs/core/modules/peggy/msgs/MsgSendToEth.js +0 -72
  652. package/dist/cjs/core/modules/permissions/index.d.ts +0 -6
  653. package/dist/cjs/core/modules/permissions/index.js +0 -16
  654. package/dist/cjs/core/modules/permissions/msgs/MsgClaimVoucher.d.ts +0 -38
  655. package/dist/cjs/core/modules/permissions/msgs/MsgClaimVoucher.js +0 -59
  656. package/dist/cjs/core/modules/permissions/msgs/MsgCreateNamespace.d.ts +0 -77
  657. package/dist/cjs/core/modules/permissions/msgs/MsgCreateNamespace.js +0 -135
  658. package/dist/cjs/core/modules/permissions/msgs/MsgUpdateActorRoles.d.ts +0 -47
  659. package/dist/cjs/core/modules/permissions/msgs/MsgUpdateActorRoles.js +0 -73
  660. package/dist/cjs/core/modules/permissions/msgs/MsgUpdateNamespace.d.ts +0 -70
  661. package/dist/cjs/core/modules/permissions/msgs/MsgUpdateNamespace.js +0 -123
  662. package/dist/cjs/core/modules/permissions/msgs/MsgUpdateParams.d.ts +0 -40
  663. package/dist/cjs/core/modules/permissions/msgs/MsgUpdateParams.js +0 -62
  664. package/dist/cjs/core/modules/staking/index.d.ts +0 -8
  665. package/dist/cjs/core/modules/staking/index.js +0 -20
  666. package/dist/cjs/core/modules/staking/msgs/MsgBeginRedelegate.d.ts +0 -49
  667. package/dist/cjs/core/modules/staking/msgs/MsgBeginRedelegate.js +0 -64
  668. package/dist/cjs/core/modules/staking/msgs/MsgCancelUnbondingDelegation.d.ts +0 -49
  669. package/dist/cjs/core/modules/staking/msgs/MsgCancelUnbondingDelegation.js +0 -64
  670. package/dist/cjs/core/modules/staking/msgs/MsgCreateValidator.d.ts +0 -72
  671. package/dist/cjs/core/modules/staking/msgs/MsgCreateValidator.js +0 -126
  672. package/dist/cjs/core/modules/staking/msgs/MsgDelegate.d.ts +0 -45
  673. package/dist/cjs/core/modules/staking/msgs/MsgDelegate.js +0 -63
  674. package/dist/cjs/core/modules/staking/msgs/MsgEditValidator.d.ts +0 -82
  675. package/dist/cjs/core/modules/staking/msgs/MsgEditValidator.js +0 -104
  676. package/dist/cjs/core/modules/staking/msgs/MsgTransferDelegation.d.ts +0 -49
  677. package/dist/cjs/core/modules/staking/msgs/MsgTransferDelegation.js +0 -64
  678. package/dist/cjs/core/modules/staking/msgs/MsgUndelegate.d.ts +0 -45
  679. package/dist/cjs/core/modules/staking/msgs/MsgUndelegate.js +0 -63
  680. package/dist/cjs/core/modules/tokenfactory/index.d.ts +0 -6
  681. package/dist/cjs/core/modules/tokenfactory/index.js +0 -16
  682. package/dist/cjs/core/modules/tokenfactory/msgs/MsgBurn.d.ts +0 -47
  683. package/dist/cjs/core/modules/tokenfactory/msgs/MsgBurn.js +0 -96
  684. package/dist/cjs/core/modules/tokenfactory/msgs/MsgChangeAdmin.d.ts +0 -42
  685. package/dist/cjs/core/modules/tokenfactory/msgs/MsgChangeAdmin.js +0 -60
  686. package/dist/cjs/core/modules/tokenfactory/msgs/MsgCreateDenom.d.ts +0 -54
  687. package/dist/cjs/core/modules/tokenfactory/msgs/MsgCreateDenom.js +0 -65
  688. package/dist/cjs/core/modules/tokenfactory/msgs/MsgMint.d.ts +0 -45
  689. package/dist/cjs/core/modules/tokenfactory/msgs/MsgMint.js +0 -65
  690. package/dist/cjs/core/modules/tokenfactory/msgs/MsgSetDenomMetadata.d.ts +0 -42
  691. package/dist/cjs/core/modules/tokenfactory/msgs/MsgSetDenomMetadata.js +0 -80
  692. package/dist/cjs/core/modules/utils.d.ts +0 -1
  693. package/dist/cjs/core/modules/utils.js +0 -21
  694. package/dist/cjs/core/modules/wasm/ExecArgBase.d.ts +0 -12
  695. package/dist/cjs/core/modules/wasm/ExecArgBase.js +0 -21
  696. package/dist/cjs/core/modules/wasm/ExecPrivilegedArgBase.d.ts +0 -35
  697. package/dist/cjs/core/modules/wasm/ExecPrivilegedArgBase.js +0 -46
  698. package/dist/cjs/core/modules/wasm/exec-args/ExecArgCW20AdapterRedeemAndTransfer.d.ts +0 -18
  699. package/dist/cjs/core/modules/wasm/exec-args/ExecArgCW20AdapterRedeemAndTransfer.js +0 -21
  700. package/dist/cjs/core/modules/wasm/exec-args/ExecArgCW20Send.d.ts +0 -39
  701. package/dist/cjs/core/modules/wasm/exec-args/ExecArgCW20Send.js +0 -24
  702. package/dist/cjs/core/modules/wasm/exec-args/ExecArgCW20Transfer.d.ts +0 -29
  703. package/dist/cjs/core/modules/wasm/exec-args/ExecArgCW20Transfer.js +0 -22
  704. package/dist/cjs/core/modules/wasm/exec-args/ExecArgCreateCampaign.d.ts +0 -29
  705. package/dist/cjs/core/modules/wasm/exec-args/ExecArgCreateCampaign.js +0 -26
  706. package/dist/cjs/core/modules/wasm/exec-args/ExecArgCreatePerpGridStrategy.d.ts +0 -45
  707. package/dist/cjs/core/modules/wasm/exec-args/ExecArgCreatePerpGridStrategy.js +0 -46
  708. package/dist/cjs/core/modules/wasm/exec-args/ExecArgCreateRound.d.ts +0 -22
  709. package/dist/cjs/core/modules/wasm/exec-args/ExecArgCreateRound.js +0 -23
  710. package/dist/cjs/core/modules/wasm/exec-args/ExecArgCreateSpotGridStrategy.d.ts +0 -49
  711. package/dist/cjs/core/modules/wasm/exec-args/ExecArgCreateSpotGridStrategy.js +0 -54
  712. package/dist/cjs/core/modules/wasm/exec-args/ExecArgDepositTokens.d.ts +0 -16
  713. package/dist/cjs/core/modules/wasm/exec-args/ExecArgDepositTokens.js +0 -18
  714. package/dist/cjs/core/modules/wasm/exec-args/ExecArgFundCampaign.d.ts +0 -18
  715. package/dist/cjs/core/modules/wasm/exec-args/ExecArgFundCampaign.js +0 -21
  716. package/dist/cjs/core/modules/wasm/exec-args/ExecArgIncreaseAllowance.d.ts +0 -22
  717. package/dist/cjs/core/modules/wasm/exec-args/ExecArgIncreaseAllowance.js +0 -23
  718. package/dist/cjs/core/modules/wasm/exec-args/ExecArgInitiateTransfer.d.ts +0 -32
  719. package/dist/cjs/core/modules/wasm/exec-args/ExecArgInitiateTransfer.js +0 -34
  720. package/dist/cjs/core/modules/wasm/exec-args/ExecArgNeptuneDeposit.d.ts +0 -16
  721. package/dist/cjs/core/modules/wasm/exec-args/ExecArgNeptuneDeposit.js +0 -18
  722. package/dist/cjs/core/modules/wasm/exec-args/ExecArgNeptuneWithdraw.d.ts +0 -21
  723. package/dist/cjs/core/modules/wasm/exec-args/ExecArgNeptuneWithdraw.js +0 -26
  724. package/dist/cjs/core/modules/wasm/exec-args/ExecArgRemoveGridStrategy.d.ts +0 -18
  725. package/dist/cjs/core/modules/wasm/exec-args/ExecArgRemoveGridStrategy.js +0 -21
  726. package/dist/cjs/core/modules/wasm/exec-args/ExecArgSubmitVaa.d.ts +0 -18
  727. package/dist/cjs/core/modules/wasm/exec-args/ExecArgSubmitVaa.js +0 -22
  728. package/dist/cjs/core/modules/wasm/exec-args/ExecArgSwapExactOutput.d.ts +0 -22
  729. package/dist/cjs/core/modules/wasm/exec-args/ExecArgSwapExactOutput.js +0 -25
  730. package/dist/cjs/core/modules/wasm/exec-args/ExecArgSwapMinOutput.d.ts +0 -22
  731. package/dist/cjs/core/modules/wasm/exec-args/ExecArgSwapMinOutput.js +0 -25
  732. package/dist/cjs/core/modules/wasm/exec-args/ExecArgUpdateGridConfig.d.ts +0 -22
  733. package/dist/cjs/core/modules/wasm/exec-args/ExecArgUpdateGridConfig.js +0 -23
  734. package/dist/cjs/core/modules/wasm/exec-args.d.ts +0 -22
  735. package/dist/cjs/core/modules/wasm/exec-args.js +0 -2
  736. package/dist/cjs/core/modules/wasm/exec-priv-args/ExecPrivilegedArgOffChainVaultRedeem.d.ts +0 -21
  737. package/dist/cjs/core/modules/wasm/exec-priv-args/ExecPrivilegedArgOffChainVaultRedeem.js +0 -25
  738. package/dist/cjs/core/modules/wasm/exec-priv-args/ExecPrivilegedArgOffChainVaultSubscribe.d.ts +0 -21
  739. package/dist/cjs/core/modules/wasm/exec-priv-args/ExecPrivilegedArgOffChainVaultSubscribe.js +0 -25
  740. package/dist/cjs/core/modules/wasm/exec-priv-args/ExecPrivilegedArgVaultRedeem.d.ts +0 -25
  741. package/dist/cjs/core/modules/wasm/exec-priv-args/ExecPrivilegedArgVaultRedeem.js +0 -29
  742. package/dist/cjs/core/modules/wasm/exec-priv-args/ExecPrivilegedArgVaultSubscribe.d.ts +0 -25
  743. package/dist/cjs/core/modules/wasm/exec-priv-args/ExecPrivilegedArgVaultSubscribe.js +0 -29
  744. package/dist/cjs/core/modules/wasm/index.d.ts +0 -32
  745. package/dist/cjs/core/modules/wasm/index.js +0 -79
  746. package/dist/cjs/core/modules/wasm/msgs/MsgExecuteContract.d.ts +0 -63
  747. package/dist/cjs/core/modules/wasm/msgs/MsgExecuteContract.js +0 -97
  748. package/dist/cjs/core/modules/wasm/msgs/MsgExecuteContractCompat.d.ts +0 -73
  749. package/dist/cjs/core/modules/wasm/msgs/MsgExecuteContractCompat.js +0 -95
  750. package/dist/cjs/core/modules/wasm/msgs/MsgInstantiateContract.d.ts +0 -58
  751. package/dist/cjs/core/modules/wasm/msgs/MsgInstantiateContract.js +0 -73
  752. package/dist/cjs/core/modules/wasm/msgs/MsgMigrateContract.d.ts +0 -45
  753. package/dist/cjs/core/modules/wasm/msgs/MsgMigrateContract.js +0 -68
  754. package/dist/cjs/core/modules/wasm/msgs/MsgPrivilegedExecuteContract.d.ts +0 -43
  755. package/dist/cjs/core/modules/wasm/msgs/MsgPrivilegedExecuteContract.js +0 -61
  756. package/dist/cjs/core/modules/wasm/msgs/MsgStoreCode.d.ts +0 -52
  757. package/dist/cjs/core/modules/wasm/msgs/MsgStoreCode.js +0 -81
  758. package/dist/cjs/core/modules/wasm/msgs/MsgUpdateAdmin.d.ts +0 -42
  759. package/dist/cjs/core/modules/wasm/msgs/MsgUpdateAdmin.js +0 -60
  760. package/dist/cjs/core/modules/wasm/types.d.ts +0 -28
  761. package/dist/cjs/core/modules/wasm/types.js +0 -13
  762. package/dist/cjs/core/stargate/SigningStargateClient.d.ts +0 -83
  763. package/dist/cjs/core/stargate/SigningStargateClient.js +0 -262
  764. package/dist/cjs/core/stargate/StargateClient.d.ts +0 -5
  765. package/dist/cjs/core/stargate/StargateClient.js +0 -28
  766. package/dist/cjs/core/stargate/index.d.ts +0 -2
  767. package/dist/cjs/core/stargate/index.js +0 -7
  768. package/dist/cjs/core/tx/api/TxGrpcApi.d.ts +0 -30
  769. package/dist/cjs/core/tx/api/TxGrpcApi.js +0 -206
  770. package/dist/cjs/core/tx/api/TxRestApi.d.ts +0 -55
  771. package/dist/cjs/core/tx/api/TxRestApi.js +0 -246
  772. package/dist/cjs/core/tx/api/index.d.ts +0 -3
  773. package/dist/cjs/core/tx/api/index.js +0 -19
  774. package/dist/cjs/core/tx/api/utils.d.ts +0 -8
  775. package/dist/cjs/core/tx/api/utils.js +0 -15
  776. package/dist/cjs/core/tx/arbitrary.d.ts +0 -21
  777. package/dist/cjs/core/tx/arbitrary.js +0 -33
  778. package/dist/cjs/core/tx/broadcaster/MsgBroadcasterWithPk.d.ts +0 -108
  779. package/dist/cjs/core/tx/broadcaster/MsgBroadcasterWithPk.js +0 -285
  780. package/dist/cjs/core/tx/broadcaster/index.d.ts +0 -1
  781. package/dist/cjs/core/tx/broadcaster/index.js +0 -17
  782. package/dist/cjs/core/tx/eip712/MsgDecoder.d.ts +0 -5
  783. package/dist/cjs/core/tx/eip712/MsgDecoder.js +0 -33
  784. package/dist/cjs/core/tx/eip712/eip712.d.ts +0 -88
  785. package/dist/cjs/core/tx/eip712/eip712.js +0 -47
  786. package/dist/cjs/core/tx/eip712/index.d.ts +0 -5
  787. package/dist/cjs/core/tx/eip712/index.js +0 -20
  788. package/dist/cjs/core/tx/eip712/maps.d.ts +0 -35
  789. package/dist/cjs/core/tx/eip712/maps.js +0 -540
  790. package/dist/cjs/core/tx/eip712/types.d.ts +0 -24
  791. package/dist/cjs/core/tx/eip712/types.js +0 -2
  792. package/dist/cjs/core/tx/eip712/utils.d.ts +0 -120
  793. package/dist/cjs/core/tx/eip712/utils.js +0 -169
  794. package/dist/cjs/core/tx/index.d.ts +0 -9
  795. package/dist/cjs/core/tx/index.js +0 -26
  796. package/dist/cjs/core/tx/tx.d.ts +0 -108
  797. package/dist/cjs/core/tx/tx.js +0 -223
  798. package/dist/cjs/core/tx/types/index.d.ts +0 -2
  799. package/dist/cjs/core/tx/types/index.js +0 -18
  800. package/dist/cjs/core/tx/types/tx-rest-client.d.ts +0 -105
  801. package/dist/cjs/core/tx/types/tx-rest-client.js +0 -13
  802. package/dist/cjs/core/tx/types/tx.d.ts +0 -101
  803. package/dist/cjs/core/tx/types/tx.js +0 -7
  804. package/dist/cjs/core/tx/utils/api.d.ts +0 -2
  805. package/dist/cjs/core/tx/utils/api.js +0 -31
  806. package/dist/cjs/core/tx/utils/classes/TxClient.d.ts +0 -18
  807. package/dist/cjs/core/tx/utils/classes/TxClient.js +0 -29
  808. package/dist/cjs/core/tx/utils/constants.d.ts +0 -4
  809. package/dist/cjs/core/tx/utils/constants.js +0 -8
  810. package/dist/cjs/core/tx/utils/helpers.d.ts +0 -8
  811. package/dist/cjs/core/tx/utils/helpers.js +0 -45
  812. package/dist/cjs/core/tx/utils/index.d.ts +0 -5
  813. package/dist/cjs/core/tx/utils/index.js +0 -21
  814. package/dist/cjs/core/tx/utils/tx.d.ts +0 -92
  815. package/dist/cjs/core/tx/utils/tx.js +0 -160
  816. package/dist/cjs/core/utils/coins.d.ts +0 -4
  817. package/dist/cjs/core/utils/coins.js +0 -19
  818. package/dist/cjs/core/utils/index.d.ts +0 -1
  819. package/dist/cjs/core/utils/index.js +0 -17
  820. package/dist/cjs/cosmjs.d.ts +0 -5
  821. package/dist/cjs/cosmjs.js +0 -26
  822. package/dist/cjs/exports.d.ts +0 -6
  823. package/dist/cjs/exports.js +0 -27
  824. package/dist/cjs/index.d.ts +0 -7
  825. package/dist/cjs/index.js +0 -23
  826. package/dist/cjs/json/index.d.ts +0 -1
  827. package/dist/cjs/json/index.js +0 -17
  828. package/dist/cjs/json/ofac.d.ts +0 -1
  829. package/dist/cjs/json/ofac.js +0 -51
  830. package/dist/cjs/service/TokenFactoryStatic.d.ts +0 -17
  831. package/dist/cjs/service/TokenFactoryStatic.js +0 -75
  832. package/dist/cjs/service/TokenPrice.d.ts +0 -6
  833. package/dist/cjs/service/TokenPrice.js +0 -36
  834. package/dist/cjs/service/TokenStaticFactory.d.ts +0 -36
  835. package/dist/cjs/service/TokenStaticFactory.js +0 -168
  836. package/dist/cjs/service/index.d.ts +0 -3
  837. package/dist/cjs/service/index.js +0 -19
  838. package/dist/cjs/types/auth.d.ts +0 -9
  839. package/dist/cjs/types/auth.js +0 -2
  840. package/dist/cjs/types/cosmos.d.ts +0 -19
  841. package/dist/cjs/types/cosmos.js +0 -10
  842. package/dist/cjs/types/exchange.d.ts +0 -32
  843. package/dist/cjs/types/exchange.js +0 -21
  844. package/dist/cjs/types/index.d.ts +0 -4
  845. package/dist/cjs/types/index.js +0 -19
  846. package/dist/cjs/types/pagination.d.ts +0 -26
  847. package/dist/cjs/types/pagination.js +0 -2
  848. package/dist/cjs/types/token.d.ts +0 -64
  849. package/dist/cjs/types/token.js +0 -37
  850. package/dist/cjs/utils/address.d.ts +0 -41
  851. package/dist/cjs/utils/address.js +0 -89
  852. package/dist/cjs/utils/buff.d.ts +0 -2
  853. package/dist/cjs/utils/buff.js +0 -11
  854. package/dist/cjs/utils/constants.d.ts +0 -7
  855. package/dist/cjs/utils/constants.js +0 -10
  856. package/dist/cjs/utils/crypto.d.ts +0 -23
  857. package/dist/cjs/utils/crypto.js +0 -160
  858. package/dist/cjs/utils/grpc.d.ts +0 -4
  859. package/dist/cjs/utils/grpc.js +0 -56
  860. package/dist/cjs/utils/helpers.d.ts +0 -24
  861. package/dist/cjs/utils/helpers.js +0 -127
  862. package/dist/cjs/utils/index.d.ts +0 -13
  863. package/dist/cjs/utils/index.js +0 -29
  864. package/dist/cjs/utils/markets.d.ts +0 -34
  865. package/dist/cjs/utils/markets.js +0 -37
  866. package/dist/cjs/utils/msgs.d.ts +0 -2
  867. package/dist/cjs/utils/msgs.js +0 -55
  868. package/dist/cjs/utils/numbers.d.ts +0 -313
  869. package/dist/cjs/utils/numbers.js +0 -406
  870. package/dist/cjs/utils/pagination.d.ts +0 -21
  871. package/dist/cjs/utils/pagination.js +0 -56
  872. package/dist/cjs/utils/time.d.ts +0 -10
  873. package/dist/cjs/utils/time.js +0 -21
  874. package/dist/cjs/utils/transaction.d.ts +0 -2
  875. package/dist/cjs/utils/transaction.js +0 -52
  876. package/dist/cjs/utils/utf8.d.ts +0 -5
  877. package/dist/cjs/utils/utf8.js +0 -28
  878. package/dist/esm/client/abacus/grpc/AbacusGrpcApi.d.ts +0 -10
  879. package/dist/esm/client/abacus/grpc/AbacusGrpcApi.js +0 -84
  880. package/dist/esm/client/abacus/grpc/index.d.ts +0 -2
  881. package/dist/esm/client/abacus/grpc/index.js +0 -2
  882. package/dist/esm/client/abacus/grpc/transformers/index.d.ts +0 -6
  883. package/dist/esm/client/abacus/grpc/transformers/index.js +0 -11
  884. package/dist/esm/client/abacus/index.d.ts +0 -1
  885. package/dist/esm/client/abacus/index.js +0 -1
  886. package/dist/esm/client/base/BaseGrpcConsumer.d.ts +0 -11
  887. package/dist/esm/client/base/BaseGrpcConsumer.js +0 -37
  888. package/dist/esm/client/base/BaseGrpcWebConsumer.d.ts +0 -9
  889. package/dist/esm/client/base/BaseGrpcWebConsumer.js +0 -15
  890. package/dist/esm/client/base/BaseIndexerGrpcConsumer.d.ts +0 -11
  891. package/dist/esm/client/base/BaseIndexerGrpcConsumer.js +0 -37
  892. package/dist/esm/client/base/BaseIndexerGrpcWebConsumer.d.ts +0 -9
  893. package/dist/esm/client/base/BaseIndexerGrpcWebConsumer.js +0 -14
  894. package/dist/esm/client/base/BaseRestConsumer.d.ts +0 -6
  895. package/dist/esm/client/base/BaseRestConsumer.js +0 -6
  896. package/dist/esm/client/base/GrpcWebImpl.d.ts +0 -27
  897. package/dist/esm/client/base/GrpcWebImpl.js +0 -41
  898. package/dist/esm/client/base/IndexerGrpcWebImpl.d.ts +0 -30
  899. package/dist/esm/client/base/IndexerGrpcWebImpl.js +0 -80
  900. package/dist/esm/client/chain/ChainGrpcClient.d.ts +0 -43
  901. package/dist/esm/client/chain/ChainGrpcClient.js +0 -62
  902. package/dist/esm/client/chain/ChainRestClient.d.ts +0 -9
  903. package/dist/esm/client/chain/ChainRestClient.js +0 -11
  904. package/dist/esm/client/chain/grpc/ChainGrpcAuctionApi.d.ts +0 -14
  905. package/dist/esm/client/chain/grpc/ChainGrpcAuctionApi.js +0 -100
  906. package/dist/esm/client/chain/grpc/ChainGrpcAuthApi.d.ts +0 -17
  907. package/dist/esm/client/chain/grpc/ChainGrpcAuthApi.js +0 -85
  908. package/dist/esm/client/chain/grpc/ChainGrpcAuthZApi.d.ts +0 -28
  909. package/dist/esm/client/chain/grpc/ChainGrpcAuthZApi.js +0 -107
  910. package/dist/esm/client/chain/grpc/ChainGrpcBankApi.d.ts +0 -42
  911. package/dist/esm/client/chain/grpc/ChainGrpcBankApi.js +0 -213
  912. package/dist/esm/client/chain/grpc/ChainGrpcDistributionApi.d.ts +0 -23
  913. package/dist/esm/client/chain/grpc/ChainGrpcDistributionApi.js +0 -134
  914. package/dist/esm/client/chain/grpc/ChainGrpcErc20Api.d.ts +0 -28
  915. package/dist/esm/client/chain/grpc/ChainGrpcErc20Api.js +0 -117
  916. package/dist/esm/client/chain/grpc/ChainGrpcEvmApi.d.ts +0 -30
  917. package/dist/esm/client/chain/grpc/ChainGrpcEvmApi.js +0 -191
  918. package/dist/esm/client/chain/grpc/ChainGrpcExchangeApi.d.ts +0 -31
  919. package/dist/esm/client/chain/grpc/ChainGrpcExchangeApi.js +0 -424
  920. package/dist/esm/client/chain/grpc/ChainGrpcGovApi.d.ts +0 -36
  921. package/dist/esm/client/chain/grpc/ChainGrpcGovApi.js +0 -170
  922. package/dist/esm/client/chain/grpc/ChainGrpcIbcApi.d.ts +0 -13
  923. package/dist/esm/client/chain/grpc/ChainGrpcIbcApi.js +0 -63
  924. package/dist/esm/client/chain/grpc/ChainGrpcInsuranceFundApi.d.ts +0 -27
  925. package/dist/esm/client/chain/grpc/ChainGrpcInsuranceFundApi.js +0 -126
  926. package/dist/esm/client/chain/grpc/ChainGrpcMintApi.d.ts +0 -17
  927. package/dist/esm/client/chain/grpc/ChainGrpcMintApi.js +0 -85
  928. package/dist/esm/client/chain/grpc/ChainGrpcOracleApi.d.ts +0 -12
  929. package/dist/esm/client/chain/grpc/ChainGrpcOracleApi.js +0 -36
  930. package/dist/esm/client/chain/grpc/ChainGrpcPeggyApi.d.ts +0 -11
  931. package/dist/esm/client/chain/grpc/ChainGrpcPeggyApi.js +0 -37
  932. package/dist/esm/client/chain/grpc/ChainGrpcPermissionsApi.d.ts +0 -43
  933. package/dist/esm/client/chain/grpc/ChainGrpcPermissionsApi.js +0 -297
  934. package/dist/esm/client/chain/grpc/ChainGrpcStakingApi.d.ts +0 -106
  935. package/dist/esm/client/chain/grpc/ChainGrpcStakingApi.js +0 -459
  936. package/dist/esm/client/chain/grpc/ChainGrpcTendermintApi.d.ts +0 -12
  937. package/dist/esm/client/chain/grpc/ChainGrpcTendermintApi.js +0 -58
  938. package/dist/esm/client/chain/grpc/ChainGrpcTokenFactoryApi.d.ts +0 -14
  939. package/dist/esm/client/chain/grpc/ChainGrpcTokenFactoryApi.js +0 -103
  940. package/dist/esm/client/chain/grpc/ChainGrpcTxFeesApi.d.ts +0 -12
  941. package/dist/esm/client/chain/grpc/ChainGrpcTxFeesApi.js +0 -58
  942. package/dist/esm/client/chain/grpc/ChainGrpcWasmApi.d.ts +0 -38
  943. package/dist/esm/client/chain/grpc/ChainGrpcWasmApi.js +0 -241
  944. package/dist/esm/client/chain/grpc/ChainGrpcWasmXApi.d.ts +0 -12
  945. package/dist/esm/client/chain/grpc/ChainGrpcWasmXApi.js +0 -57
  946. package/dist/esm/client/chain/grpc/index.d.ts +0 -21
  947. package/dist/esm/client/chain/grpc/index.js +0 -21
  948. package/dist/esm/client/chain/index.d.ts +0 -4
  949. package/dist/esm/client/chain/index.js +0 -6
  950. package/dist/esm/client/chain/rest/ChainRestAuthApi.d.ts +0 -19
  951. package/dist/esm/client/chain/rest/ChainRestAuthApi.js +0 -56
  952. package/dist/esm/client/chain/rest/ChainRestBankApi.d.ts +0 -20
  953. package/dist/esm/client/chain/rest/ChainRestBankApi.js +0 -83
  954. package/dist/esm/client/chain/rest/ChainRestTendermintApi.d.ts +0 -13
  955. package/dist/esm/client/chain/rest/ChainRestTendermintApi.js +0 -62
  956. package/dist/esm/client/chain/rest/ChainRestWasmApi.d.ts +0 -8
  957. package/dist/esm/client/chain/rest/ChainRestWasmApi.js +0 -25
  958. package/dist/esm/client/chain/rest/index.d.ts +0 -4
  959. package/dist/esm/client/chain/rest/index.js +0 -4
  960. package/dist/esm/client/chain/transformers/ChainGrpcAuctionTransformer.d.ts +0 -13
  961. package/dist/esm/client/chain/transformers/ChainGrpcAuctionTransformer.js +0 -63
  962. package/dist/esm/client/chain/transformers/ChainGrpcAuthTransformer.d.ts +0 -14
  963. package/dist/esm/client/chain/transformers/ChainGrpcAuthTransformer.js +0 -46
  964. package/dist/esm/client/chain/transformers/ChainGrpcAuthZTransformer.d.ts +0 -22
  965. package/dist/esm/client/chain/transformers/ChainGrpcAuthZTransformer.js +0 -66
  966. package/dist/esm/client/chain/transformers/ChainGrpcBankTransformer.d.ts +0 -31
  967. package/dist/esm/client/chain/transformers/ChainGrpcBankTransformer.js +0 -51
  968. package/dist/esm/client/chain/transformers/ChainGrpcCommonTransformer.d.ts +0 -10
  969. package/dist/esm/client/chain/transformers/ChainGrpcCommonTransformer.js +0 -50
  970. package/dist/esm/client/chain/transformers/ChainGrpcDistributionTransformer.d.ts +0 -12
  971. package/dist/esm/client/chain/transformers/ChainGrpcDistributionTransformer.js +0 -37
  972. package/dist/esm/client/chain/transformers/ChainGrpcErc20Transformer.d.ts +0 -16
  973. package/dist/esm/client/chain/transformers/ChainGrpcErc20Transformer.js +0 -27
  974. package/dist/esm/client/chain/transformers/ChainGrpcEvmTransformer.d.ts +0 -29
  975. package/dist/esm/client/chain/transformers/ChainGrpcEvmTransformer.js +0 -98
  976. package/dist/esm/client/chain/transformers/ChainGrpcExchangeTransformer.d.ts +0 -37
  977. package/dist/esm/client/chain/transformers/ChainGrpcExchangeTransformer.js +0 -269
  978. package/dist/esm/client/chain/transformers/ChainGrpcGovTransformer.d.ts +0 -31
  979. package/dist/esm/client/chain/transformers/ChainGrpcGovTransformer.js +0 -142
  980. package/dist/esm/client/chain/transformers/ChainGrpcInsuranceFundTransformer.d.ts +0 -20
  981. package/dist/esm/client/chain/transformers/ChainGrpcInsuranceFundTransformer.js +0 -48
  982. package/dist/esm/client/chain/transformers/ChainGrpcMintTransformer.d.ts +0 -8
  983. package/dist/esm/client/chain/transformers/ChainGrpcMintTransformer.js +0 -9
  984. package/dist/esm/client/chain/transformers/ChainGrpcPeggyTransformer.d.ts +0 -8
  985. package/dist/esm/client/chain/transformers/ChainGrpcPeggyTransformer.js +0 -35
  986. package/dist/esm/client/chain/transformers/ChainGrpcPermissionsTransformer.d.ts +0 -35
  987. package/dist/esm/client/chain/transformers/ChainGrpcPermissionsTransformer.js +0 -127
  988. package/dist/esm/client/chain/transformers/ChainGrpcStakingTransformer.d.ts +0 -32
  989. package/dist/esm/client/chain/transformers/ChainGrpcStakingTransformer.js +0 -180
  990. package/dist/esm/client/chain/transformers/ChainGrpcTokenFactoryTransformer.d.ts +0 -11
  991. package/dist/esm/client/chain/transformers/ChainGrpcTokenFactoryTransformer.js +0 -27
  992. package/dist/esm/client/chain/transformers/ChainGrpcTxFeesTransformer.d.ts +0 -9
  993. package/dist/esm/client/chain/transformers/ChainGrpcTxFeesTransformer.js +0 -31
  994. package/dist/esm/client/chain/transformers/ChainGrpcWasmTransformer.d.ts +0 -28
  995. package/dist/esm/client/chain/transformers/ChainGrpcWasmTransformer.js +0 -138
  996. package/dist/esm/client/chain/transformers/index.d.ts +0 -19
  997. package/dist/esm/client/chain/transformers/index.js +0 -19
  998. package/dist/esm/client/chain/types/auction.d.ts +0 -66
  999. package/dist/esm/client/chain/types/auction.js +0 -1
  1000. package/dist/esm/client/chain/types/auth-rest.d.ts +0 -54
  1001. package/dist/esm/client/chain/types/auth-rest.js +0 -1
  1002. package/dist/esm/client/chain/types/auth.d.ts +0 -23
  1003. package/dist/esm/client/chain/types/auth.js +0 -1
  1004. package/dist/esm/client/chain/types/authZ.d.ts +0 -22
  1005. package/dist/esm/client/chain/types/authZ.js +0 -1
  1006. package/dist/esm/client/chain/types/bank-rest.d.ts +0 -16
  1007. package/dist/esm/client/chain/types/bank-rest.js +0 -1
  1008. package/dist/esm/client/chain/types/bank.d.ts +0 -12
  1009. package/dist/esm/client/chain/types/bank.js +0 -1
  1010. package/dist/esm/client/chain/types/distribution.d.ts +0 -14
  1011. package/dist/esm/client/chain/types/distribution.js +0 -1
  1012. package/dist/esm/client/chain/types/erc20.d.ts +0 -13
  1013. package/dist/esm/client/chain/types/erc20.js +0 -1
  1014. package/dist/esm/client/chain/types/evm.d.ts +0 -62
  1015. package/dist/esm/client/chain/types/evm.js +0 -1
  1016. package/dist/esm/client/chain/types/exchange.d.ts +0 -171
  1017. package/dist/esm/client/chain/types/exchange.js +0 -4
  1018. package/dist/esm/client/chain/types/gov.d.ts +0 -83
  1019. package/dist/esm/client/chain/types/gov.js +0 -3
  1020. package/dist/esm/client/chain/types/index.d.ts +0 -46
  1021. package/dist/esm/client/chain/types/index.js +0 -8
  1022. package/dist/esm/client/chain/types/insurance.d.ts +0 -38
  1023. package/dist/esm/client/chain/types/insurance.js +0 -2
  1024. package/dist/esm/client/chain/types/mint.d.ts +0 -4
  1025. package/dist/esm/client/chain/types/mint.js +0 -1
  1026. package/dist/esm/client/chain/types/oracle.d.ts +0 -4
  1027. package/dist/esm/client/chain/types/oracle.js +0 -1
  1028. package/dist/esm/client/chain/types/peggy.d.ts +0 -27
  1029. package/dist/esm/client/chain/types/peggy.js +0 -1
  1030. package/dist/esm/client/chain/types/permissions.d.ts +0 -96
  1031. package/dist/esm/client/chain/types/permissions.js +0 -2
  1032. package/dist/esm/client/chain/types/staking.d.ts +0 -81
  1033. package/dist/esm/client/chain/types/staking.js +0 -5
  1034. package/dist/esm/client/chain/types/tendermint-rest.d.ts +0 -98
  1035. package/dist/esm/client/chain/types/tendermint-rest.js +0 -1
  1036. package/dist/esm/client/chain/types/tokenfactory.d.ts +0 -15
  1037. package/dist/esm/client/chain/types/tokenfactory.js +0 -1
  1038. package/dist/esm/client/chain/types/txFees.d.ts +0 -21
  1039. package/dist/esm/client/chain/types/txFees.js +0 -1
  1040. package/dist/esm/client/chain/types/wasm.d.ts +0 -81
  1041. package/dist/esm/client/chain/types/wasm.js +0 -2
  1042. package/dist/esm/client/gql/client.d.ts +0 -9
  1043. package/dist/esm/client/gql/client.js +0 -48
  1044. package/dist/esm/client/gql/index.d.ts +0 -3
  1045. package/dist/esm/client/gql/index.js +0 -2
  1046. package/dist/esm/client/gql/queries.d.ts +0 -5
  1047. package/dist/esm/client/gql/queries.js +0 -41
  1048. package/dist/esm/client/gql/types.d.ts +0 -19
  1049. package/dist/esm/client/gql/types.js +0 -1
  1050. package/dist/esm/client/index.d.ts +0 -5
  1051. package/dist/esm/client/index.js +0 -5
  1052. package/dist/esm/client/indexer/IndexerGrpcClient.d.ts +0 -25
  1053. package/dist/esm/client/indexer/IndexerGrpcClient.js +0 -35
  1054. package/dist/esm/client/indexer/IndexerGrpcStreamClient.d.ts +0 -21
  1055. package/dist/esm/client/indexer/IndexerGrpcStreamClient.js +0 -29
  1056. package/dist/esm/client/indexer/IndexerRestClient.d.ts +0 -16
  1057. package/dist/esm/client/indexer/IndexerRestClient.js +0 -20
  1058. package/dist/esm/client/indexer/grpc/IndexerGrpcAccountApi.d.ts +0 -40
  1059. package/dist/esm/client/indexer/grpc/IndexerGrpcAccountApi.js +0 -205
  1060. package/dist/esm/client/indexer/grpc/IndexerGrpcArchiverApi.d.ts +0 -52
  1061. package/dist/esm/client/indexer/grpc/IndexerGrpcArchiverApi.js +0 -249
  1062. package/dist/esm/client/indexer/grpc/IndexerGrpcAuctionApi.d.ts +0 -35
  1063. package/dist/esm/client/indexer/grpc/IndexerGrpcAuctionApi.js +0 -185
  1064. package/dist/esm/client/indexer/grpc/IndexerGrpcCampaignApi.d.ts +0 -71
  1065. package/dist/esm/client/indexer/grpc/IndexerGrpcCampaignApi.js +0 -208
  1066. package/dist/esm/client/indexer/grpc/IndexerGrpcDerivativesApi.d.ts +0 -141
  1067. package/dist/esm/client/indexer/grpc/IndexerGrpcDerivativesApi.js +0 -626
  1068. package/dist/esm/client/indexer/grpc/IndexerGrpcExplorerApi.d.ts +0 -108
  1069. package/dist/esm/client/indexer/grpc/IndexerGrpcExplorerApi.js +0 -510
  1070. package/dist/esm/client/indexer/grpc/IndexerGrpcInsuranceFundApi.d.ts +0 -16
  1071. package/dist/esm/client/indexer/grpc/IndexerGrpcInsuranceFundApi.js +0 -65
  1072. package/dist/esm/client/indexer/grpc/IndexerGrpcMegaVaultApi.d.ts +0 -45
  1073. package/dist/esm/client/indexer/grpc/IndexerGrpcMegaVaultApi.js +0 -200
  1074. package/dist/esm/client/indexer/grpc/IndexerGrpcMetaApi.d.ts +0 -13
  1075. package/dist/esm/client/indexer/grpc/IndexerGrpcMetaApi.js +0 -79
  1076. package/dist/esm/client/indexer/grpc/IndexerGrpcMitoApi.d.ts +0 -178
  1077. package/dist/esm/client/indexer/grpc/IndexerGrpcMitoApi.js +0 -635
  1078. package/dist/esm/client/indexer/grpc/IndexerGrpcOracleApi.d.ts +0 -23
  1079. package/dist/esm/client/indexer/grpc/IndexerGrpcOracleApi.js +0 -96
  1080. package/dist/esm/client/indexer/grpc/IndexerGrpcPortfolioApi.d.ts +0 -12
  1081. package/dist/esm/client/indexer/grpc/IndexerGrpcPortfolioApi.js +0 -75
  1082. package/dist/esm/client/indexer/grpc/IndexerGrpcReferralApi.d.ts +0 -13
  1083. package/dist/esm/client/indexer/grpc/IndexerGrpcReferralApi.js +0 -82
  1084. package/dist/esm/client/indexer/grpc/IndexerGrpcSpotApi.d.ts +0 -98
  1085. package/dist/esm/client/indexer/grpc/IndexerGrpcSpotApi.js +0 -437
  1086. package/dist/esm/client/indexer/grpc/IndexerGrpcTradingApi.d.ts +0 -29
  1087. package/dist/esm/client/indexer/grpc/IndexerGrpcTradingApi.js +0 -102
  1088. package/dist/esm/client/indexer/grpc/IndexerGrpcTransactionApi.d.ts +0 -66
  1089. package/dist/esm/client/indexer/grpc/IndexerGrpcTransactionApi.js +0 -222
  1090. package/dist/esm/client/indexer/grpc/IndexerGrpcWeb3GwApi.d.ts +0 -24
  1091. package/dist/esm/client/indexer/grpc/IndexerGrpcWeb3GwApi.js +0 -66
  1092. package/dist/esm/client/indexer/grpc/index.d.ts +0 -17
  1093. package/dist/esm/client/indexer/grpc/index.js +0 -17
  1094. package/dist/esm/client/indexer/grpc_stream/IndexerGrpcAccountPortfolioStream.d.ts +0 -20
  1095. package/dist/esm/client/indexer/grpc_stream/IndexerGrpcAccountPortfolioStream.js +0 -38
  1096. package/dist/esm/client/indexer/grpc_stream/IndexerGrpcAccountStream.d.ts +0 -18
  1097. package/dist/esm/client/indexer/grpc_stream/IndexerGrpcAccountStream.js +0 -34
  1098. package/dist/esm/client/indexer/grpc_stream/IndexerGrpcArchiverStream.d.ts +0 -18
  1099. package/dist/esm/client/indexer/grpc_stream/IndexerGrpcArchiverStream.js +0 -34
  1100. package/dist/esm/client/indexer/grpc_stream/IndexerGrpcAuctionStream.d.ts +0 -17
  1101. package/dist/esm/client/indexer/grpc_stream/IndexerGrpcAuctionStream.js +0 -31
  1102. package/dist/esm/client/indexer/grpc_stream/IndexerGrpcDerivativesStream.d.ts +0 -94
  1103. package/dist/esm/client/indexer/grpc_stream/IndexerGrpcDerivativesStream.js +0 -246
  1104. package/dist/esm/client/indexer/grpc_stream/IndexerGrpcExplorerStream.d.ts +0 -29
  1105. package/dist/esm/client/indexer/grpc_stream/IndexerGrpcExplorerStream.js +0 -69
  1106. package/dist/esm/client/indexer/grpc_stream/IndexerGrpcMitoStream.d.ts +0 -51
  1107. package/dist/esm/client/indexer/grpc_stream/IndexerGrpcMitoStream.js +0 -133
  1108. package/dist/esm/client/indexer/grpc_stream/IndexerGrpcOracleStream.d.ts +0 -27
  1109. package/dist/esm/client/indexer/grpc_stream/IndexerGrpcOracleStream.js +0 -60
  1110. package/dist/esm/client/indexer/grpc_stream/IndexerGrpcSpotStream.d.ts +0 -76
  1111. package/dist/esm/client/indexer/grpc_stream/IndexerGrpcSpotStream.js +0 -190
  1112. package/dist/esm/client/indexer/grpc_stream/IndexerGrpcTradingStream.d.ts +0 -17
  1113. package/dist/esm/client/indexer/grpc_stream/IndexerGrpcTradingStream.js +0 -42
  1114. package/dist/esm/client/indexer/grpc_stream/index.d.ts +0 -10
  1115. package/dist/esm/client/indexer/grpc_stream/index.js +0 -10
  1116. package/dist/esm/client/indexer/index.d.ts +0 -5
  1117. package/dist/esm/client/indexer/index.js +0 -8
  1118. package/dist/esm/client/indexer/rest/IndexerRestDerivativesChronosApi.d.ts +0 -8
  1119. package/dist/esm/client/indexer/rest/IndexerRestDerivativesChronosApi.js +0 -47
  1120. package/dist/esm/client/indexer/rest/IndexerRestExplorerApi.d.ts +0 -129
  1121. package/dist/esm/client/indexer/rest/IndexerRestExplorerApi.js +0 -449
  1122. package/dist/esm/client/indexer/rest/IndexerRestLeaderboardChronosApi.d.ts +0 -7
  1123. package/dist/esm/client/indexer/rest/IndexerRestLeaderboardChronosApi.js +0 -26
  1124. package/dist/esm/client/indexer/rest/IndexerRestMarketChronosApi.d.ts +0 -8
  1125. package/dist/esm/client/indexer/rest/IndexerRestMarketChronosApi.js +0 -34
  1126. package/dist/esm/client/indexer/rest/IndexerRestSpotChronosApi.d.ts +0 -8
  1127. package/dist/esm/client/indexer/rest/IndexerRestSpotChronosApi.js +0 -47
  1128. package/dist/esm/client/indexer/rest/index.d.ts +0 -5
  1129. package/dist/esm/client/indexer/rest/index.js +0 -5
  1130. package/dist/esm/client/indexer/transformers/IndexerAccountPortfolioStreamTransformer.d.ts +0 -12
  1131. package/dist/esm/client/indexer/transformers/IndexerAccountPortfolioStreamTransformer.js +0 -13
  1132. package/dist/esm/client/indexer/transformers/IndexerAccountPortfolioTransformer.d.ts +0 -9
  1133. package/dist/esm/client/indexer/transformers/IndexerAccountPortfolioTransformer.js +0 -66
  1134. package/dist/esm/client/indexer/transformers/IndexerAccountStreamTransformer.d.ts +0 -11
  1135. package/dist/esm/client/indexer/transformers/IndexerAccountStreamTransformer.js +0 -17
  1136. package/dist/esm/client/indexer/transformers/IndexerArchiverStreamTransformer.d.ts +0 -11
  1137. package/dist/esm/client/indexer/transformers/IndexerArchiverStreamTransformer.js +0 -17
  1138. package/dist/esm/client/indexer/transformers/IndexerAuctionStreamTransformer.d.ts +0 -11
  1139. package/dist/esm/client/indexer/transformers/IndexerAuctionStreamTransformer.js +0 -14
  1140. package/dist/esm/client/indexer/transformers/IndexerCampaignTransformer.d.ts +0 -38
  1141. package/dist/esm/client/indexer/transformers/IndexerCampaignTransformer.js +0 -151
  1142. package/dist/esm/client/indexer/transformers/IndexerCommonTransformer.d.ts +0 -5
  1143. package/dist/esm/client/indexer/transformers/IndexerCommonTransformer.js +0 -8
  1144. package/dist/esm/client/indexer/transformers/IndexerDerivativeStreamTransformer.d.ts +0 -42
  1145. package/dist/esm/client/indexer/transformers/IndexerDerivativeStreamTransformer.js +0 -84
  1146. package/dist/esm/client/indexer/transformers/IndexerExplorerStreamTransformer.d.ts +0 -18
  1147. package/dist/esm/client/indexer/transformers/IndexerExplorerStreamTransformer.js +0 -19
  1148. package/dist/esm/client/indexer/transformers/IndexerGrpcAccountTransformer.d.ts +0 -32
  1149. package/dist/esm/client/indexer/transformers/IndexerGrpcAccountTransformer.js +0 -113
  1150. package/dist/esm/client/indexer/transformers/IndexerGrpcArchiverTransformer.d.ts +0 -21
  1151. package/dist/esm/client/indexer/transformers/IndexerGrpcArchiverTransformer.js +0 -113
  1152. package/dist/esm/client/indexer/transformers/IndexerGrpcAuctionTransformer.d.ts +0 -28
  1153. package/dist/esm/client/indexer/transformers/IndexerGrpcAuctionTransformer.js +0 -85
  1154. package/dist/esm/client/indexer/transformers/IndexerGrpcDerivativeTransformer.d.ts +0 -90
  1155. package/dist/esm/client/indexer/transformers/IndexerGrpcDerivativeTransformer.js +0 -397
  1156. package/dist/esm/client/indexer/transformers/IndexerGrpcExplorerTransformer.d.ts +0 -55
  1157. package/dist/esm/client/indexer/transformers/IndexerGrpcExplorerTransformer.js +0 -471
  1158. package/dist/esm/client/indexer/transformers/IndexerGrpcInsuranceFundTransformer.d.ts +0 -13
  1159. package/dist/esm/client/indexer/transformers/IndexerGrpcInsuranceFundTransformer.js +0 -52
  1160. package/dist/esm/client/indexer/transformers/IndexerGrpcMegaVaultTransformer.d.ts +0 -31
  1161. package/dist/esm/client/indexer/transformers/IndexerGrpcMegaVaultTransformer.js +0 -239
  1162. package/dist/esm/client/indexer/transformers/IndexerGrpcMitoStreamTransformer.d.ts +0 -44
  1163. package/dist/esm/client/indexer/transformers/IndexerGrpcMitoStreamTransformer.js +0 -36
  1164. package/dist/esm/client/indexer/transformers/IndexerGrpcMitoTransformer.d.ts +0 -137
  1165. package/dist/esm/client/indexer/transformers/IndexerGrpcMitoTransformer.js +0 -474
  1166. package/dist/esm/client/indexer/transformers/IndexerGrpcOracleTransformer.d.ts +0 -6
  1167. package/dist/esm/client/indexer/transformers/IndexerGrpcOracleTransformer.js +0 -9
  1168. package/dist/esm/client/indexer/transformers/IndexerGrpcReferralTransformer.d.ts +0 -7
  1169. package/dist/esm/client/indexer/transformers/IndexerGrpcReferralTransformer.js +0 -18
  1170. package/dist/esm/client/indexer/transformers/IndexerGrpcSpotTransformer.d.ts +0 -53
  1171. package/dist/esm/client/indexer/transformers/IndexerGrpcSpotTransformer.js +0 -216
  1172. package/dist/esm/client/indexer/transformers/IndexerOracleStreamTransformer.d.ts +0 -17
  1173. package/dist/esm/client/indexer/transformers/IndexerOracleStreamTransformer.js +0 -14
  1174. package/dist/esm/client/indexer/transformers/IndexerRestExplorerTransformer.d.ts +0 -24
  1175. package/dist/esm/client/indexer/transformers/IndexerRestExplorerTransformer.js +0 -243
  1176. package/dist/esm/client/indexer/transformers/IndexerSpotStreamTransformer.d.ts +0 -34
  1177. package/dist/esm/client/indexer/transformers/IndexerSpotStreamTransformer.js +0 -66
  1178. package/dist/esm/client/indexer/transformers/index.d.ts +0 -23
  1179. package/dist/esm/client/indexer/transformers/index.js +0 -23
  1180. package/dist/esm/client/indexer/types/account-portfolio.d.ts +0 -32
  1181. package/dist/esm/client/indexer/types/account-portfolio.js +0 -1
  1182. package/dist/esm/client/indexer/types/account.d.ts +0 -55
  1183. package/dist/esm/client/indexer/types/account.js +0 -6
  1184. package/dist/esm/client/indexer/types/archiver.d.ts +0 -58
  1185. package/dist/esm/client/indexer/types/archiver.js +0 -1
  1186. package/dist/esm/client/indexer/types/auction.d.ts +0 -69
  1187. package/dist/esm/client/indexer/types/auction.js +0 -1
  1188. package/dist/esm/client/indexer/types/campaign.d.ts +0 -94
  1189. package/dist/esm/client/indexer/types/campaign.js +0 -1
  1190. package/dist/esm/client/indexer/types/derivatives-rest.d.ts +0 -23
  1191. package/dist/esm/client/indexer/types/derivatives-rest.js +0 -1
  1192. package/dist/esm/client/indexer/types/derivatives.d.ts +0 -191
  1193. package/dist/esm/client/indexer/types/derivatives.js +0 -1
  1194. package/dist/esm/client/indexer/types/exchange.d.ts +0 -22
  1195. package/dist/esm/client/indexer/types/exchange.js +0 -1
  1196. package/dist/esm/client/indexer/types/explorer-rest.d.ts +0 -160
  1197. package/dist/esm/client/indexer/types/explorer-rest.js +0 -1
  1198. package/dist/esm/client/indexer/types/explorer.d.ts +0 -385
  1199. package/dist/esm/client/indexer/types/explorer.js +0 -19
  1200. package/dist/esm/client/indexer/types/incentives.d.ts +0 -20
  1201. package/dist/esm/client/indexer/types/incentives.js +0 -1
  1202. package/dist/esm/client/indexer/types/index.d.ts +0 -52
  1203. package/dist/esm/client/indexer/types/index.js +0 -7
  1204. package/dist/esm/client/indexer/types/insurance-funds.d.ts +0 -43
  1205. package/dist/esm/client/indexer/types/insurance-funds.js +0 -4
  1206. package/dist/esm/client/indexer/types/leaderboard-rest.d.ts +0 -13
  1207. package/dist/esm/client/indexer/types/leaderboard-rest.js +0 -1
  1208. package/dist/esm/client/indexer/types/markets-history-rest.d.ts +0 -13
  1209. package/dist/esm/client/indexer/types/markets-history-rest.js +0 -1
  1210. package/dist/esm/client/indexer/types/mega-vault.d.ts +0 -175
  1211. package/dist/esm/client/indexer/types/mega-vault.js +0 -10
  1212. package/dist/esm/client/indexer/types/mito.d.ts +0 -294
  1213. package/dist/esm/client/indexer/types/mito.js +0 -4
  1214. package/dist/esm/client/indexer/types/oracle.d.ts +0 -4
  1215. package/dist/esm/client/indexer/types/oracle.js +0 -1
  1216. package/dist/esm/client/indexer/types/referral.d.ts +0 -9
  1217. package/dist/esm/client/indexer/types/referral.js +0 -1
  1218. package/dist/esm/client/indexer/types/spot-rest.d.ts +0 -23
  1219. package/dist/esm/client/indexer/types/spot-rest.js +0 -1
  1220. package/dist/esm/client/indexer/types/spot.d.ts +0 -98
  1221. package/dist/esm/client/indexer/types/spot.js +0 -1
  1222. package/dist/esm/client/indexer/types/swap.d.ts +0 -10
  1223. package/dist/esm/client/indexer/types/swap.js +0 -1
  1224. package/dist/esm/client/indexer/types/trading.d.ts +0 -15
  1225. package/dist/esm/client/indexer/types/trading.js +0 -11
  1226. package/dist/esm/client/olp/grpc/OLPGrpcApi.d.ts +0 -50
  1227. package/dist/esm/client/olp/grpc/OLPGrpcApi.js +0 -289
  1228. package/dist/esm/client/olp/grpc/index.d.ts +0 -3
  1229. package/dist/esm/client/olp/grpc/index.js +0 -2
  1230. package/dist/esm/client/olp/grpc/transformers/index.d.ts +0 -22
  1231. package/dist/esm/client/olp/grpc/transformers/index.js +0 -218
  1232. package/dist/esm/client/olp/grpc/types/index.d.ts +0 -214
  1233. package/dist/esm/client/olp/grpc/types/index.js +0 -1
  1234. package/dist/esm/client/olp/index.d.ts +0 -1
  1235. package/dist/esm/client/olp/index.js +0 -1
  1236. package/dist/esm/client/wasm/BaseWasmQuery.d.ts +0 -5
  1237. package/dist/esm/client/wasm/BaseWasmQuery.js +0 -6
  1238. package/dist/esm/client/wasm/incentives/index.d.ts +0 -3
  1239. package/dist/esm/client/wasm/incentives/index.js +0 -2
  1240. package/dist/esm/client/wasm/incentives/queries/QueryAllRounds.d.ts +0 -10
  1241. package/dist/esm/client/wasm/incentives/queries/QueryAllRounds.js +0 -17
  1242. package/dist/esm/client/wasm/incentives/queries/QueryGetCampaigns.d.ts +0 -9
  1243. package/dist/esm/client/wasm/incentives/queries/QueryGetCampaigns.js +0 -12
  1244. package/dist/esm/client/wasm/incentives/queries/index.d.ts +0 -2
  1245. package/dist/esm/client/wasm/incentives/queries/index.js +0 -2
  1246. package/dist/esm/client/wasm/incentives/transformer.d.ts +0 -22
  1247. package/dist/esm/client/wasm/incentives/transformer.js +0 -28
  1248. package/dist/esm/client/wasm/incentives/types.d.ts +0 -20
  1249. package/dist/esm/client/wasm/incentives/types.js +0 -1
  1250. package/dist/esm/client/wasm/index.d.ts +0 -6
  1251. package/dist/esm/client/wasm/index.js +0 -5
  1252. package/dist/esm/client/wasm/nameservice/index.d.ts +0 -2
  1253. package/dist/esm/client/wasm/nameservice/index.js +0 -2
  1254. package/dist/esm/client/wasm/nameservice/queries/QueryInjName.d.ts +0 -9
  1255. package/dist/esm/client/wasm/nameservice/queries/QueryInjName.js +0 -11
  1256. package/dist/esm/client/wasm/nameservice/queries/QueryInjectiveAddress.d.ts +0 -9
  1257. package/dist/esm/client/wasm/nameservice/queries/QueryInjectiveAddress.js +0 -11
  1258. package/dist/esm/client/wasm/nameservice/queries/QueryResolverAddress.d.ts +0 -9
  1259. package/dist/esm/client/wasm/nameservice/queries/QueryResolverAddress.js +0 -11
  1260. package/dist/esm/client/wasm/nameservice/queries/index.d.ts +0 -3
  1261. package/dist/esm/client/wasm/nameservice/queries/index.js +0 -3
  1262. package/dist/esm/client/wasm/nameservice/transformer.d.ts +0 -6
  1263. package/dist/esm/client/wasm/nameservice/transformer.js +0 -15
  1264. package/dist/esm/client/wasm/neptune/helper.d.ts +0 -2
  1265. package/dist/esm/client/wasm/neptune/helper.js +0 -6
  1266. package/dist/esm/client/wasm/neptune/index.d.ts +0 -5
  1267. package/dist/esm/client/wasm/neptune/index.js +0 -5
  1268. package/dist/esm/client/wasm/neptune/queries/QueryGetPrices.d.ts +0 -10
  1269. package/dist/esm/client/wasm/neptune/queries/QueryGetPrices.js +0 -11
  1270. package/dist/esm/client/wasm/neptune/queries/QueryLendingRates.d.ts +0 -11
  1271. package/dist/esm/client/wasm/neptune/queries/QueryLendingRates.js +0 -17
  1272. package/dist/esm/client/wasm/neptune/queries/index.d.ts +0 -2
  1273. package/dist/esm/client/wasm/neptune/queries/index.js +0 -2
  1274. package/dist/esm/client/wasm/neptune/service.d.ts +0 -102
  1275. package/dist/esm/client/wasm/neptune/service.js +0 -174
  1276. package/dist/esm/client/wasm/neptune/transformer.d.ts +0 -12
  1277. package/dist/esm/client/wasm/neptune/transformer.js +0 -17
  1278. package/dist/esm/client/wasm/neptune/types.d.ts +0 -18
  1279. package/dist/esm/client/wasm/neptune/types.js +0 -1
  1280. package/dist/esm/client/wasm/swap/index.d.ts +0 -3
  1281. package/dist/esm/client/wasm/swap/index.js +0 -2
  1282. package/dist/esm/client/wasm/swap/queries/QueryAllRoutes.d.ts +0 -8
  1283. package/dist/esm/client/wasm/swap/queries/QueryAllRoutes.js +0 -7
  1284. package/dist/esm/client/wasm/swap/queries/QueryInputQuantity.d.ts +0 -11
  1285. package/dist/esm/client/wasm/swap/queries/QueryInputQuantity.js +0 -13
  1286. package/dist/esm/client/wasm/swap/queries/QueryOutputQuantity.d.ts +0 -11
  1287. package/dist/esm/client/wasm/swap/queries/QueryOutputQuantity.js +0 -13
  1288. package/dist/esm/client/wasm/swap/queries/QueryRoute.d.ts +0 -10
  1289. package/dist/esm/client/wasm/swap/queries/QueryRoute.js +0 -12
  1290. package/dist/esm/client/wasm/swap/queries/index.d.ts +0 -4
  1291. package/dist/esm/client/wasm/swap/queries/index.js +0 -4
  1292. package/dist/esm/client/wasm/swap/transformer.d.ts +0 -20
  1293. package/dist/esm/client/wasm/swap/transformer.js +0 -26
  1294. package/dist/esm/client/wasm/swap/types.d.ts +0 -12
  1295. package/dist/esm/client/wasm/swap/types.js +0 -1
  1296. package/dist/esm/client/wasm/trading_strategies/index.d.ts +0 -1
  1297. package/dist/esm/client/wasm/trading_strategies/index.js +0 -1
  1298. package/dist/esm/client/wasm/trading_strategies/queries/QueryTradingStrategyContractAllStrategies.d.ts +0 -10
  1299. package/dist/esm/client/wasm/trading_strategies/queries/QueryTradingStrategyContractAllStrategies.js +0 -13
  1300. package/dist/esm/client/wasm/trading_strategies/queries/QueryTradingStrategyContractConfig.d.ts +0 -8
  1301. package/dist/esm/client/wasm/trading_strategies/queries/QueryTradingStrategyContractConfig.js +0 -10
  1302. package/dist/esm/client/wasm/trading_strategies/queries/QueryTradingStrategyContractTotalStrategies.d.ts +0 -8
  1303. package/dist/esm/client/wasm/trading_strategies/queries/QueryTradingStrategyContractTotalStrategies.js +0 -10
  1304. package/dist/esm/client/wasm/trading_strategies/queries/QueryTradingStrategyContractUserStrategies.d.ts +0 -9
  1305. package/dist/esm/client/wasm/trading_strategies/queries/QueryTradingStrategyContractUserStrategies.js +0 -12
  1306. package/dist/esm/client/wasm/trading_strategies/queries/index.d.ts +0 -4
  1307. package/dist/esm/client/wasm/trading_strategies/queries/index.js +0 -4
  1308. package/dist/esm/client/wasm/trading_strategies/types.d.ts +0 -33
  1309. package/dist/esm/client/wasm/trading_strategies/types.js +0 -1
  1310. package/dist/esm/client/wasm/types.d.ts +0 -3
  1311. package/dist/esm/client/wasm/types.js +0 -1
  1312. package/dist/esm/core/accounts/AccountParser.d.ts +0 -2
  1313. package/dist/esm/core/accounts/AccountParser.js +0 -17
  1314. package/dist/esm/core/accounts/AccountParserNoCosmjs.d.ts +0 -1
  1315. package/dist/esm/core/accounts/AccountParserNoCosmjs.js +0 -17
  1316. package/dist/esm/core/accounts/Address.d.ts +0 -68
  1317. package/dist/esm/core/accounts/Address.js +0 -116
  1318. package/dist/esm/core/accounts/BaseAccount.d.ts +0 -27
  1319. package/dist/esm/core/accounts/BaseAccount.js +0 -66
  1320. package/dist/esm/core/accounts/PrivateKey.d.ts +0 -167
  1321. package/dist/esm/core/accounts/PrivateKey.js +0 -329
  1322. package/dist/esm/core/accounts/PublicKey.d.ts +0 -25
  1323. package/dist/esm/core/accounts/PublicKey.js +0 -72
  1324. package/dist/esm/core/accounts/index.d.ts +0 -4
  1325. package/dist/esm/core/accounts/index.js +0 -4
  1326. package/dist/esm/core/accounts/signers/DirectEthSecp256k1Wallet.d.ts +0 -21
  1327. package/dist/esm/core/accounts/signers/DirectEthSecp256k1Wallet.js +0 -54
  1328. package/dist/esm/core/accounts/signers/EthSecp256k1Wallet.d.ts +0 -18
  1329. package/dist/esm/core/accounts/signers/EthSecp256k1Wallet.js +0 -54
  1330. package/dist/esm/core/accounts/signers/index.d.ts +0 -2
  1331. package/dist/esm/core/accounts/signers/index.js +0 -2
  1332. package/dist/esm/core/accounts/signers/types/amino-signer.d.ts +0 -8
  1333. package/dist/esm/core/accounts/signers/types/amino-signer.js +0 -1
  1334. package/dist/esm/core/accounts/signers/types/index.d.ts +0 -3
  1335. package/dist/esm/core/accounts/signers/types/index.js +0 -1
  1336. package/dist/esm/core/accounts/signers/types/proto-signer.d.ts +0 -8
  1337. package/dist/esm/core/accounts/signers/types/proto-signer.js +0 -1
  1338. package/dist/esm/core/index.d.ts +0 -4
  1339. package/dist/esm/core/index.js +0 -4
  1340. package/dist/esm/core/modules/MsgBase.d.ts +0 -48
  1341. package/dist/esm/core/modules/MsgBase.js +0 -43
  1342. package/dist/esm/core/modules/auction/index.d.ts +0 -2
  1343. package/dist/esm/core/modules/auction/index.js +0 -2
  1344. package/dist/esm/core/modules/auction/msgs/MsgBid.d.ts +0 -45
  1345. package/dist/esm/core/modules/auction/msgs/MsgBid.js +0 -57
  1346. package/dist/esm/core/modules/authz/index.d.ts +0 -8
  1347. package/dist/esm/core/modules/authz/index.js +0 -8
  1348. package/dist/esm/core/modules/authz/msgs/MsgExec.d.ts +0 -44
  1349. package/dist/esm/core/modules/authz/msgs/MsgExec.js +0 -72
  1350. package/dist/esm/core/modules/authz/msgs/MsgGrant.d.ts +0 -61
  1351. package/dist/esm/core/modules/authz/msgs/MsgGrant.js +0 -126
  1352. package/dist/esm/core/modules/authz/msgs/MsgGrantWithAuthorization.d.ts +0 -50
  1353. package/dist/esm/core/modules/authz/msgs/MsgGrantWithAuthorization.js +0 -98
  1354. package/dist/esm/core/modules/authz/msgs/MsgRevoke.d.ts +0 -39
  1355. package/dist/esm/core/modules/authz/msgs/MsgRevoke.js +0 -54
  1356. package/dist/esm/core/modules/authz/msgs/authorizations/Base.d.ts +0 -9
  1357. package/dist/esm/core/modules/authz/msgs/authorizations/Base.js +0 -6
  1358. package/dist/esm/core/modules/authz/msgs/authorizations/ContractExecutionAuthorization.d.ts +0 -28
  1359. package/dist/esm/core/modules/authz/msgs/authorizations/ContractExecutionAuthorization.js +0 -152
  1360. package/dist/esm/core/modules/authz/msgs/authorizations/ContractExecutionCompatAuthorization.d.ts +0 -28
  1361. package/dist/esm/core/modules/authz/msgs/authorizations/ContractExecutionCompatAuthorization.js +0 -152
  1362. package/dist/esm/core/modules/authz/msgs/authorizations/GenericAuthorization.d.ts +0 -22
  1363. package/dist/esm/core/modules/authz/msgs/authorizations/GenericAuthorization.js +0 -38
  1364. package/dist/esm/core/modules/authz/msgs/authorizations/index.d.ts +0 -4
  1365. package/dist/esm/core/modules/authz/msgs/authorizations/index.js +0 -4
  1366. package/dist/esm/core/modules/authz/types.d.ts +0 -5
  1367. package/dist/esm/core/modules/authz/types.js +0 -4
  1368. package/dist/esm/core/modules/authz/utils.d.ts +0 -4
  1369. package/dist/esm/core/modules/authz/utils.js +0 -20
  1370. package/dist/esm/core/modules/bank/index.d.ts +0 -3
  1371. package/dist/esm/core/modules/bank/index.js +0 -3
  1372. package/dist/esm/core/modules/bank/msgs/MsgMultiSend.d.ts +0 -44
  1373. package/dist/esm/core/modules/bank/msgs/MsgMultiSend.js +0 -75
  1374. package/dist/esm/core/modules/bank/msgs/MsgSend.d.ts +0 -48
  1375. package/dist/esm/core/modules/bank/msgs/MsgSend.js +0 -63
  1376. package/dist/esm/core/modules/distribution/index.d.ts +0 -4
  1377. package/dist/esm/core/modules/distribution/index.js +0 -4
  1378. package/dist/esm/core/modules/distribution/msgs/MsgFundCommunityPool.d.ts +0 -39
  1379. package/dist/esm/core/modules/distribution/msgs/MsgFundCommunityPool.js +0 -59
  1380. package/dist/esm/core/modules/distribution/msgs/MsgWithdrawDelegatorReward.d.ts +0 -38
  1381. package/dist/esm/core/modules/distribution/msgs/MsgWithdrawDelegatorReward.js +0 -53
  1382. package/dist/esm/core/modules/distribution/msgs/MsgWithdrawValidatorCommission.d.ts +0 -34
  1383. package/dist/esm/core/modules/distribution/msgs/MsgWithdrawValidatorCommission.js +0 -52
  1384. package/dist/esm/core/modules/exchange/index.d.ts +0 -31
  1385. package/dist/esm/core/modules/exchange/index.js +0 -31
  1386. package/dist/esm/core/modules/exchange/msgs/MsgAdminUpdateBinaryOptionsMarket.d.ts +0 -75
  1387. package/dist/esm/core/modules/exchange/msgs/MsgAdminUpdateBinaryOptionsMarket.js +0 -88
  1388. package/dist/esm/core/modules/exchange/msgs/MsgAuthorizeStakeGrants.d.ts +0 -39
  1389. package/dist/esm/core/modules/exchange/msgs/MsgAuthorizeStakeGrants.js +0 -58
  1390. package/dist/esm/core/modules/exchange/msgs/MsgBatchCancelBinaryOptionsOrders.d.ts +0 -48
  1391. package/dist/esm/core/modules/exchange/msgs/MsgBatchCancelBinaryOptionsOrders.js +0 -67
  1392. package/dist/esm/core/modules/exchange/msgs/MsgBatchCancelDerivativeOrders.d.ts +0 -48
  1393. package/dist/esm/core/modules/exchange/msgs/MsgBatchCancelDerivativeOrders.js +0 -67
  1394. package/dist/esm/core/modules/exchange/msgs/MsgBatchCancelSpotOrders.d.ts +0 -48
  1395. package/dist/esm/core/modules/exchange/msgs/MsgBatchCancelSpotOrders.js +0 -67
  1396. package/dist/esm/core/modules/exchange/msgs/MsgBatchUpdateOrders.d.ts +0 -161
  1397. package/dist/esm/core/modules/exchange/msgs/MsgBatchUpdateOrders.js +0 -322
  1398. package/dist/esm/core/modules/exchange/msgs/MsgCancelBinaryOptionsOrder.d.ts +0 -54
  1399. package/dist/esm/core/modules/exchange/msgs/MsgCancelBinaryOptionsOrder.js +0 -62
  1400. package/dist/esm/core/modules/exchange/msgs/MsgCancelDerivativeOrder.d.ts +0 -51
  1401. package/dist/esm/core/modules/exchange/msgs/MsgCancelDerivativeOrder.js +0 -59
  1402. package/dist/esm/core/modules/exchange/msgs/MsgCancelPostOnlyModeV2.d.ts +0 -44
  1403. package/dist/esm/core/modules/exchange/msgs/MsgCancelPostOnlyModeV2.js +0 -77
  1404. package/dist/esm/core/modules/exchange/msgs/MsgCancelSpotOrder.d.ts +0 -50
  1405. package/dist/esm/core/modules/exchange/msgs/MsgCancelSpotOrder.js +0 -61
  1406. package/dist/esm/core/modules/exchange/msgs/MsgCreateBinaryOptionsLimitOrder.d.ts +0 -80
  1407. package/dist/esm/core/modules/exchange/msgs/MsgCreateBinaryOptionsLimitOrder.js +0 -122
  1408. package/dist/esm/core/modules/exchange/msgs/MsgCreateBinaryOptionsMarketOrder.d.ts +0 -80
  1409. package/dist/esm/core/modules/exchange/msgs/MsgCreateBinaryOptionsMarketOrder.js +0 -122
  1410. package/dist/esm/core/modules/exchange/msgs/MsgCreateDerivativeLimitOrder.d.ts +0 -80
  1411. package/dist/esm/core/modules/exchange/msgs/MsgCreateDerivativeLimitOrder.js +0 -122
  1412. package/dist/esm/core/modules/exchange/msgs/MsgCreateDerivativeMarketOrder.d.ts +0 -80
  1413. package/dist/esm/core/modules/exchange/msgs/MsgCreateDerivativeMarketOrder.js +0 -122
  1414. package/dist/esm/core/modules/exchange/msgs/MsgCreateSpotLimitOrder.d.ts +0 -77
  1415. package/dist/esm/core/modules/exchange/msgs/MsgCreateSpotLimitOrder.js +0 -118
  1416. package/dist/esm/core/modules/exchange/msgs/MsgCreateSpotMarketOrder.d.ts +0 -77
  1417. package/dist/esm/core/modules/exchange/msgs/MsgCreateSpotMarketOrder.js +0 -118
  1418. package/dist/esm/core/modules/exchange/msgs/MsgDeposit.d.ts +0 -45
  1419. package/dist/esm/core/modules/exchange/msgs/MsgDeposit.js +0 -57
  1420. package/dist/esm/core/modules/exchange/msgs/MsgExternalTransfer.d.ts +0 -49
  1421. package/dist/esm/core/modules/exchange/msgs/MsgExternalTransfer.js +0 -58
  1422. package/dist/esm/core/modules/exchange/msgs/MsgIncreasePositionMargin.d.ts +0 -68
  1423. package/dist/esm/core/modules/exchange/msgs/MsgIncreasePositionMargin.js +0 -87
  1424. package/dist/esm/core/modules/exchange/msgs/MsgInstantBinaryOptionsMarketLaunch.d.ts +0 -130
  1425. package/dist/esm/core/modules/exchange/msgs/MsgInstantBinaryOptionsMarketLaunch.js +0 -113
  1426. package/dist/esm/core/modules/exchange/msgs/MsgInstantSpotMarketLaunch.d.ts +0 -95
  1427. package/dist/esm/core/modules/exchange/msgs/MsgInstantSpotMarketLaunch.js +0 -99
  1428. package/dist/esm/core/modules/exchange/msgs/MsgLiquidatePosition.d.ts +0 -73
  1429. package/dist/esm/core/modules/exchange/msgs/MsgLiquidatePosition.js +0 -135
  1430. package/dist/esm/core/modules/exchange/msgs/MsgReclaimLockedFunds.d.ts +0 -39
  1431. package/dist/esm/core/modules/exchange/msgs/MsgReclaimLockedFunds.js +0 -57
  1432. package/dist/esm/core/modules/exchange/msgs/MsgRewardsOptOut.d.ts +0 -34
  1433. package/dist/esm/core/modules/exchange/msgs/MsgRewardsOptOut.js +0 -52
  1434. package/dist/esm/core/modules/exchange/msgs/MsgSetDelegationTransferReceivers.d.ts +0 -38
  1435. package/dist/esm/core/modules/exchange/msgs/MsgSetDelegationTransferReceivers.js +0 -53
  1436. package/dist/esm/core/modules/exchange/msgs/MsgSignData.d.ts +0 -38
  1437. package/dist/esm/core/modules/exchange/msgs/MsgSignData.js +0 -54
  1438. package/dist/esm/core/modules/exchange/msgs/MsgUpdateDerivativeMarketV2.d.ts +0 -92
  1439. package/dist/esm/core/modules/exchange/msgs/MsgUpdateDerivativeMarketV2.js +0 -100
  1440. package/dist/esm/core/modules/exchange/msgs/MsgUpdateSpotMarketV2.d.ts +0 -74
  1441. package/dist/esm/core/modules/exchange/msgs/MsgUpdateSpotMarketV2.js +0 -91
  1442. package/dist/esm/core/modules/exchange/msgs/MsgWithdraw.d.ts +0 -45
  1443. package/dist/esm/core/modules/exchange/msgs/MsgWithdraw.js +0 -57
  1444. package/dist/esm/core/modules/exchange/utils/classes/OrderHashManager.d.ts +0 -58
  1445. package/dist/esm/core/modules/exchange/utils/classes/OrderHashManager.js +0 -320
  1446. package/dist/esm/core/modules/exchange/utils/classes/index.d.ts +0 -1
  1447. package/dist/esm/core/modules/exchange/utils/classes/index.js +0 -1
  1448. package/dist/esm/core/modules/exchange/utils/index.d.ts +0 -1
  1449. package/dist/esm/core/modules/exchange/utils/index.js +0 -1
  1450. package/dist/esm/core/modules/feegrant/index.d.ts +0 -3
  1451. package/dist/esm/core/modules/feegrant/index.js +0 -3
  1452. package/dist/esm/core/modules/feegrant/msgs/MsgGrantAllowance.d.ts +0 -66
  1453. package/dist/esm/core/modules/feegrant/msgs/MsgGrantAllowance.js +0 -124
  1454. package/dist/esm/core/modules/feegrant/msgs/MsgRevokeAllowance.d.ts +0 -50
  1455. package/dist/esm/core/modules/feegrant/msgs/MsgRevokeAllowance.js +0 -53
  1456. package/dist/esm/core/modules/feegrant/utils/allowance.d.ts +0 -13
  1457. package/dist/esm/core/modules/feegrant/utils/allowance.js +0 -68
  1458. package/dist/esm/core/modules/feegrant/utils/index.d.ts +0 -1
  1459. package/dist/esm/core/modules/feegrant/utils/index.js +0 -1
  1460. package/dist/esm/core/modules/gov/Proposal.d.ts +0 -1
  1461. package/dist/esm/core/modules/gov/Proposal.js +0 -1
  1462. package/dist/esm/core/modules/gov/ProposalContentDecomposer.d.ts +0 -23
  1463. package/dist/esm/core/modules/gov/ProposalContentDecomposer.js +0 -63
  1464. package/dist/esm/core/modules/gov/index.d.ts +0 -13
  1465. package/dist/esm/core/modules/gov/index.js +0 -12
  1466. package/dist/esm/core/modules/gov/msgs/MsgDeposit.d.ts +0 -45
  1467. package/dist/esm/core/modules/gov/msgs/MsgDeposit.js +0 -57
  1468. package/dist/esm/core/modules/gov/msgs/MsgSubmitGenericProposal.d.ts +0 -49
  1469. package/dist/esm/core/modules/gov/msgs/MsgSubmitGenericProposal.js +0 -83
  1470. package/dist/esm/core/modules/gov/msgs/MsgSubmitProposalExpiryFuturesMarketLaunch.d.ts +0 -88
  1471. package/dist/esm/core/modules/gov/msgs/MsgSubmitProposalExpiryFuturesMarketLaunch.js +0 -166
  1472. package/dist/esm/core/modules/gov/msgs/MsgSubmitProposalPerpetualMarketLaunch.d.ts +0 -87
  1473. package/dist/esm/core/modules/gov/msgs/MsgSubmitProposalPerpetualMarketLaunch.js +0 -165
  1474. package/dist/esm/core/modules/gov/msgs/MsgSubmitProposalPerpetualMarketLaunchV2.d.ts +0 -88
  1475. package/dist/esm/core/modules/gov/msgs/MsgSubmitProposalPerpetualMarketLaunchV2.js +0 -169
  1476. package/dist/esm/core/modules/gov/msgs/MsgSubmitProposalSpotMarketLaunch.d.ts +0 -84
  1477. package/dist/esm/core/modules/gov/msgs/MsgSubmitProposalSpotMarketLaunch.js +0 -155
  1478. package/dist/esm/core/modules/gov/msgs/MsgSubmitProposalSpotMarketParamUpdate.d.ts +0 -85
  1479. package/dist/esm/core/modules/gov/msgs/MsgSubmitProposalSpotMarketParamUpdate.js +0 -160
  1480. package/dist/esm/core/modules/gov/msgs/MsgSubmitTextProposal.d.ts +0 -56
  1481. package/dist/esm/core/modules/gov/msgs/MsgSubmitTextProposal.js +0 -91
  1482. package/dist/esm/core/modules/gov/msgs/MsgVote.d.ts +0 -53
  1483. package/dist/esm/core/modules/gov/msgs/MsgVote.js +0 -61
  1484. package/dist/esm/core/modules/ibc/index.d.ts +0 -2
  1485. package/dist/esm/core/modules/ibc/index.js +0 -2
  1486. package/dist/esm/core/modules/ibc/msgs/MsgTransfer.d.ts +0 -66
  1487. package/dist/esm/core/modules/ibc/msgs/MsgTransfer.js +0 -72
  1488. package/dist/esm/core/modules/ibc/msgs/MsgTransferCosmjs.d.ts +0 -60
  1489. package/dist/esm/core/modules/ibc/msgs/MsgTransferCosmjs.js +0 -82
  1490. package/dist/esm/core/modules/index.d.ts +0 -15
  1491. package/dist/esm/core/modules/index.js +0 -14
  1492. package/dist/esm/core/modules/insurance/index.d.ts +0 -4
  1493. package/dist/esm/core/modules/insurance/index.js +0 -4
  1494. package/dist/esm/core/modules/insurance/msgs/MsgCreateInsuranceFund.d.ts +0 -78
  1495. package/dist/esm/core/modules/insurance/msgs/MsgCreateInsuranceFund.js +0 -71
  1496. package/dist/esm/core/modules/insurance/msgs/MsgRequestRedemption.d.ts +0 -45
  1497. package/dist/esm/core/modules/insurance/msgs/MsgRequestRedemption.js +0 -57
  1498. package/dist/esm/core/modules/insurance/msgs/MsgUnderwrite.d.ts +0 -45
  1499. package/dist/esm/core/modules/insurance/msgs/MsgUnderwrite.js +0 -57
  1500. package/dist/esm/core/modules/msgs.d.ts +0 -83
  1501. package/dist/esm/core/modules/msgs.js +0 -1
  1502. package/dist/esm/core/modules/peggy/index.d.ts +0 -2
  1503. package/dist/esm/core/modules/peggy/index.js +0 -2
  1504. package/dist/esm/core/modules/peggy/msgs/MsgSendToEth.d.ts +0 -52
  1505. package/dist/esm/core/modules/peggy/msgs/MsgSendToEth.js +0 -66
  1506. package/dist/esm/core/modules/permissions/index.d.ts +0 -6
  1507. package/dist/esm/core/modules/permissions/index.js +0 -6
  1508. package/dist/esm/core/modules/permissions/msgs/MsgClaimVoucher.d.ts +0 -38
  1509. package/dist/esm/core/modules/permissions/msgs/MsgClaimVoucher.js +0 -53
  1510. package/dist/esm/core/modules/permissions/msgs/MsgCreateNamespace.d.ts +0 -77
  1511. package/dist/esm/core/modules/permissions/msgs/MsgCreateNamespace.js +0 -129
  1512. package/dist/esm/core/modules/permissions/msgs/MsgUpdateActorRoles.d.ts +0 -47
  1513. package/dist/esm/core/modules/permissions/msgs/MsgUpdateActorRoles.js +0 -67
  1514. package/dist/esm/core/modules/permissions/msgs/MsgUpdateNamespace.d.ts +0 -70
  1515. package/dist/esm/core/modules/permissions/msgs/MsgUpdateNamespace.js +0 -117
  1516. package/dist/esm/core/modules/permissions/msgs/MsgUpdateParams.d.ts +0 -40
  1517. package/dist/esm/core/modules/permissions/msgs/MsgUpdateParams.js +0 -56
  1518. package/dist/esm/core/modules/staking/index.d.ts +0 -8
  1519. package/dist/esm/core/modules/staking/index.js +0 -8
  1520. package/dist/esm/core/modules/staking/msgs/MsgBeginRedelegate.d.ts +0 -49
  1521. package/dist/esm/core/modules/staking/msgs/MsgBeginRedelegate.js +0 -58
  1522. package/dist/esm/core/modules/staking/msgs/MsgCancelUnbondingDelegation.d.ts +0 -49
  1523. package/dist/esm/core/modules/staking/msgs/MsgCancelUnbondingDelegation.js +0 -58
  1524. package/dist/esm/core/modules/staking/msgs/MsgCreateValidator.d.ts +0 -72
  1525. package/dist/esm/core/modules/staking/msgs/MsgCreateValidator.js +0 -120
  1526. package/dist/esm/core/modules/staking/msgs/MsgDelegate.d.ts +0 -45
  1527. package/dist/esm/core/modules/staking/msgs/MsgDelegate.js +0 -57
  1528. package/dist/esm/core/modules/staking/msgs/MsgEditValidator.d.ts +0 -82
  1529. package/dist/esm/core/modules/staking/msgs/MsgEditValidator.js +0 -98
  1530. package/dist/esm/core/modules/staking/msgs/MsgTransferDelegation.d.ts +0 -49
  1531. package/dist/esm/core/modules/staking/msgs/MsgTransferDelegation.js +0 -58
  1532. package/dist/esm/core/modules/staking/msgs/MsgUndelegate.d.ts +0 -45
  1533. package/dist/esm/core/modules/staking/msgs/MsgUndelegate.js +0 -57
  1534. package/dist/esm/core/modules/tokenfactory/index.d.ts +0 -6
  1535. package/dist/esm/core/modules/tokenfactory/index.js +0 -6
  1536. package/dist/esm/core/modules/tokenfactory/msgs/MsgBurn.d.ts +0 -47
  1537. package/dist/esm/core/modules/tokenfactory/msgs/MsgBurn.js +0 -90
  1538. package/dist/esm/core/modules/tokenfactory/msgs/MsgChangeAdmin.d.ts +0 -42
  1539. package/dist/esm/core/modules/tokenfactory/msgs/MsgChangeAdmin.js +0 -54
  1540. package/dist/esm/core/modules/tokenfactory/msgs/MsgCreateDenom.d.ts +0 -54
  1541. package/dist/esm/core/modules/tokenfactory/msgs/MsgCreateDenom.js +0 -59
  1542. package/dist/esm/core/modules/tokenfactory/msgs/MsgMint.d.ts +0 -45
  1543. package/dist/esm/core/modules/tokenfactory/msgs/MsgMint.js +0 -59
  1544. package/dist/esm/core/modules/tokenfactory/msgs/MsgSetDenomMetadata.d.ts +0 -42
  1545. package/dist/esm/core/modules/tokenfactory/msgs/MsgSetDenomMetadata.js +0 -74
  1546. package/dist/esm/core/modules/utils.d.ts +0 -1
  1547. package/dist/esm/core/modules/utils.js +0 -18
  1548. package/dist/esm/core/modules/wasm/ExecArgBase.d.ts +0 -12
  1549. package/dist/esm/core/modules/wasm/ExecArgBase.js +0 -16
  1550. package/dist/esm/core/modules/wasm/ExecPrivilegedArgBase.d.ts +0 -35
  1551. package/dist/esm/core/modules/wasm/ExecPrivilegedArgBase.js +0 -39
  1552. package/dist/esm/core/modules/wasm/exec-args/ExecArgCW20AdapterRedeemAndTransfer.d.ts +0 -18
  1553. package/dist/esm/core/modules/wasm/exec-args/ExecArgCW20AdapterRedeemAndTransfer.js +0 -18
  1554. package/dist/esm/core/modules/wasm/exec-args/ExecArgCW20Send.d.ts +0 -39
  1555. package/dist/esm/core/modules/wasm/exec-args/ExecArgCW20Send.js +0 -21
  1556. package/dist/esm/core/modules/wasm/exec-args/ExecArgCW20Transfer.d.ts +0 -29
  1557. package/dist/esm/core/modules/wasm/exec-args/ExecArgCW20Transfer.js +0 -19
  1558. package/dist/esm/core/modules/wasm/exec-args/ExecArgCreateCampaign.d.ts +0 -29
  1559. package/dist/esm/core/modules/wasm/exec-args/ExecArgCreateCampaign.js +0 -23
  1560. package/dist/esm/core/modules/wasm/exec-args/ExecArgCreatePerpGridStrategy.d.ts +0 -45
  1561. package/dist/esm/core/modules/wasm/exec-args/ExecArgCreatePerpGridStrategy.js +0 -43
  1562. package/dist/esm/core/modules/wasm/exec-args/ExecArgCreateRound.d.ts +0 -22
  1563. package/dist/esm/core/modules/wasm/exec-args/ExecArgCreateRound.js +0 -20
  1564. package/dist/esm/core/modules/wasm/exec-args/ExecArgCreateSpotGridStrategy.d.ts +0 -49
  1565. package/dist/esm/core/modules/wasm/exec-args/ExecArgCreateSpotGridStrategy.js +0 -51
  1566. package/dist/esm/core/modules/wasm/exec-args/ExecArgDepositTokens.d.ts +0 -16
  1567. package/dist/esm/core/modules/wasm/exec-args/ExecArgDepositTokens.js +0 -15
  1568. package/dist/esm/core/modules/wasm/exec-args/ExecArgFundCampaign.d.ts +0 -18
  1569. package/dist/esm/core/modules/wasm/exec-args/ExecArgFundCampaign.js +0 -18
  1570. package/dist/esm/core/modules/wasm/exec-args/ExecArgIncreaseAllowance.d.ts +0 -22
  1571. package/dist/esm/core/modules/wasm/exec-args/ExecArgIncreaseAllowance.js +0 -20
  1572. package/dist/esm/core/modules/wasm/exec-args/ExecArgInitiateTransfer.d.ts +0 -32
  1573. package/dist/esm/core/modules/wasm/exec-args/ExecArgInitiateTransfer.js +0 -31
  1574. package/dist/esm/core/modules/wasm/exec-args/ExecArgNeptuneDeposit.d.ts +0 -16
  1575. package/dist/esm/core/modules/wasm/exec-args/ExecArgNeptuneDeposit.js +0 -15
  1576. package/dist/esm/core/modules/wasm/exec-args/ExecArgNeptuneWithdraw.d.ts +0 -21
  1577. package/dist/esm/core/modules/wasm/exec-args/ExecArgNeptuneWithdraw.js +0 -23
  1578. package/dist/esm/core/modules/wasm/exec-args/ExecArgRemoveGridStrategy.d.ts +0 -18
  1579. package/dist/esm/core/modules/wasm/exec-args/ExecArgRemoveGridStrategy.js +0 -18
  1580. package/dist/esm/core/modules/wasm/exec-args/ExecArgSubmitVaa.d.ts +0 -18
  1581. package/dist/esm/core/modules/wasm/exec-args/ExecArgSubmitVaa.js +0 -19
  1582. package/dist/esm/core/modules/wasm/exec-args/ExecArgSwapExactOutput.d.ts +0 -22
  1583. package/dist/esm/core/modules/wasm/exec-args/ExecArgSwapExactOutput.js +0 -22
  1584. package/dist/esm/core/modules/wasm/exec-args/ExecArgSwapMinOutput.d.ts +0 -22
  1585. package/dist/esm/core/modules/wasm/exec-args/ExecArgSwapMinOutput.js +0 -22
  1586. package/dist/esm/core/modules/wasm/exec-args/ExecArgUpdateGridConfig.d.ts +0 -22
  1587. package/dist/esm/core/modules/wasm/exec-args/ExecArgUpdateGridConfig.js +0 -20
  1588. package/dist/esm/core/modules/wasm/exec-args.d.ts +0 -22
  1589. package/dist/esm/core/modules/wasm/exec-args.js +0 -1
  1590. package/dist/esm/core/modules/wasm/exec-priv-args/ExecPrivilegedArgOffChainVaultRedeem.d.ts +0 -21
  1591. package/dist/esm/core/modules/wasm/exec-priv-args/ExecPrivilegedArgOffChainVaultRedeem.js +0 -22
  1592. package/dist/esm/core/modules/wasm/exec-priv-args/ExecPrivilegedArgOffChainVaultSubscribe.d.ts +0 -21
  1593. package/dist/esm/core/modules/wasm/exec-priv-args/ExecPrivilegedArgOffChainVaultSubscribe.js +0 -22
  1594. package/dist/esm/core/modules/wasm/exec-priv-args/ExecPrivilegedArgVaultRedeem.d.ts +0 -25
  1595. package/dist/esm/core/modules/wasm/exec-priv-args/ExecPrivilegedArgVaultRedeem.js +0 -26
  1596. package/dist/esm/core/modules/wasm/exec-priv-args/ExecPrivilegedArgVaultSubscribe.d.ts +0 -25
  1597. package/dist/esm/core/modules/wasm/exec-priv-args/ExecPrivilegedArgVaultSubscribe.js +0 -26
  1598. package/dist/esm/core/modules/wasm/index.d.ts +0 -32
  1599. package/dist/esm/core/modules/wasm/index.js +0 -35
  1600. package/dist/esm/core/modules/wasm/msgs/MsgExecuteContract.d.ts +0 -63
  1601. package/dist/esm/core/modules/wasm/msgs/MsgExecuteContract.js +0 -91
  1602. package/dist/esm/core/modules/wasm/msgs/MsgExecuteContractCompat.d.ts +0 -73
  1603. package/dist/esm/core/modules/wasm/msgs/MsgExecuteContractCompat.js +0 -89
  1604. package/dist/esm/core/modules/wasm/msgs/MsgInstantiateContract.d.ts +0 -58
  1605. package/dist/esm/core/modules/wasm/msgs/MsgInstantiateContract.js +0 -67
  1606. package/dist/esm/core/modules/wasm/msgs/MsgMigrateContract.d.ts +0 -45
  1607. package/dist/esm/core/modules/wasm/msgs/MsgMigrateContract.js +0 -62
  1608. package/dist/esm/core/modules/wasm/msgs/MsgPrivilegedExecuteContract.d.ts +0 -43
  1609. package/dist/esm/core/modules/wasm/msgs/MsgPrivilegedExecuteContract.js +0 -55
  1610. package/dist/esm/core/modules/wasm/msgs/MsgStoreCode.d.ts +0 -52
  1611. package/dist/esm/core/modules/wasm/msgs/MsgStoreCode.js +0 -75
  1612. package/dist/esm/core/modules/wasm/msgs/MsgUpdateAdmin.d.ts +0 -42
  1613. package/dist/esm/core/modules/wasm/msgs/MsgUpdateAdmin.js +0 -54
  1614. package/dist/esm/core/modules/wasm/types.d.ts +0 -28
  1615. package/dist/esm/core/modules/wasm/types.js +0 -10
  1616. package/dist/esm/core/stargate/SigningStargateClient.d.ts +0 -83
  1617. package/dist/esm/core/stargate/SigningStargateClient.js +0 -257
  1618. package/dist/esm/core/stargate/StargateClient.d.ts +0 -5
  1619. package/dist/esm/core/stargate/StargateClient.js +0 -24
  1620. package/dist/esm/core/stargate/index.d.ts +0 -2
  1621. package/dist/esm/core/stargate/index.js +0 -2
  1622. package/dist/esm/core/tx/api/TxGrpcApi.d.ts +0 -30
  1623. package/dist/esm/core/tx/api/TxGrpcApi.js +0 -199
  1624. package/dist/esm/core/tx/api/TxRestApi.d.ts +0 -55
  1625. package/dist/esm/core/tx/api/TxRestApi.js +0 -239
  1626. package/dist/esm/core/tx/api/index.d.ts +0 -3
  1627. package/dist/esm/core/tx/api/index.js +0 -3
  1628. package/dist/esm/core/tx/api/utils.d.ts +0 -8
  1629. package/dist/esm/core/tx/api/utils.js +0 -11
  1630. package/dist/esm/core/tx/arbitrary.d.ts +0 -21
  1631. package/dist/esm/core/tx/arbitrary.js +0 -29
  1632. package/dist/esm/core/tx/broadcaster/MsgBroadcasterWithPk.d.ts +0 -108
  1633. package/dist/esm/core/tx/broadcaster/MsgBroadcasterWithPk.js +0 -281
  1634. package/dist/esm/core/tx/broadcaster/index.d.ts +0 -1
  1635. package/dist/esm/core/tx/broadcaster/index.js +0 -1
  1636. package/dist/esm/core/tx/eip712/MsgDecoder.d.ts +0 -5
  1637. package/dist/esm/core/tx/eip712/MsgDecoder.js +0 -29
  1638. package/dist/esm/core/tx/eip712/eip712.d.ts +0 -88
  1639. package/dist/esm/core/tx/eip712/eip712.js +0 -42
  1640. package/dist/esm/core/tx/eip712/index.d.ts +0 -5
  1641. package/dist/esm/core/tx/eip712/index.js +0 -4
  1642. package/dist/esm/core/tx/eip712/maps.d.ts +0 -35
  1643. package/dist/esm/core/tx/eip712/maps.js +0 -529
  1644. package/dist/esm/core/tx/eip712/types.d.ts +0 -24
  1645. package/dist/esm/core/tx/eip712/types.js +0 -1
  1646. package/dist/esm/core/tx/eip712/utils.d.ts +0 -120
  1647. package/dist/esm/core/tx/eip712/utils.js +0 -157
  1648. package/dist/esm/core/tx/index.d.ts +0 -9
  1649. package/dist/esm/core/tx/index.js +0 -9
  1650. package/dist/esm/core/tx/tx.d.ts +0 -108
  1651. package/dist/esm/core/tx/tx.js +0 -212
  1652. package/dist/esm/core/tx/types/index.d.ts +0 -2
  1653. package/dist/esm/core/tx/types/index.js +0 -2
  1654. package/dist/esm/core/tx/types/tx-rest-client.d.ts +0 -105
  1655. package/dist/esm/core/tx/types/tx-rest-client.js +0 -10
  1656. package/dist/esm/core/tx/types/tx.d.ts +0 -101
  1657. package/dist/esm/core/tx/types/tx.js +0 -4
  1658. package/dist/esm/core/tx/utils/api.d.ts +0 -2
  1659. package/dist/esm/core/tx/utils/api.js +0 -26
  1660. package/dist/esm/core/tx/utils/classes/TxClient.d.ts +0 -18
  1661. package/dist/esm/core/tx/utils/classes/TxClient.js +0 -25
  1662. package/dist/esm/core/tx/utils/constants.d.ts +0 -4
  1663. package/dist/esm/core/tx/utils/constants.js +0 -5
  1664. package/dist/esm/core/tx/utils/helpers.d.ts +0 -8
  1665. package/dist/esm/core/tx/utils/helpers.js +0 -38
  1666. package/dist/esm/core/tx/utils/index.d.ts +0 -5
  1667. package/dist/esm/core/tx/utils/index.js +0 -5
  1668. package/dist/esm/core/tx/utils/tx.d.ts +0 -92
  1669. package/dist/esm/core/tx/utils/tx.js +0 -144
  1670. package/dist/esm/core/utils/coins.d.ts +0 -4
  1671. package/dist/esm/core/utils/coins.js +0 -15
  1672. package/dist/esm/core/utils/index.d.ts +0 -1
  1673. package/dist/esm/core/utils/index.js +0 -1
  1674. package/dist/esm/json/index.d.ts +0 -1
  1675. package/dist/esm/json/index.js +0 -1
  1676. package/dist/esm/json/ofac.d.ts +0 -1
  1677. package/dist/esm/json/ofac.js +0 -48
  1678. package/dist/esm/service/TokenFactoryStatic.d.ts +0 -17
  1679. package/dist/esm/service/TokenFactoryStatic.js +0 -71
  1680. package/dist/esm/service/TokenPrice.d.ts +0 -6
  1681. package/dist/esm/service/TokenPrice.js +0 -32
  1682. package/dist/esm/service/TokenStaticFactory.d.ts +0 -36
  1683. package/dist/esm/service/TokenStaticFactory.js +0 -164
  1684. package/dist/esm/service/index.d.ts +0 -3
  1685. package/dist/esm/service/index.js +0 -3
  1686. package/dist/esm/types/auth.d.ts +0 -9
  1687. package/dist/esm/types/auth.js +0 -1
  1688. package/dist/esm/types/cosmos.d.ts +0 -19
  1689. package/dist/esm/types/cosmos.js +0 -7
  1690. package/dist/esm/types/exchange.d.ts +0 -32
  1691. package/dist/esm/types/exchange.js +0 -18
  1692. package/dist/esm/types/index.d.ts +0 -4
  1693. package/dist/esm/types/index.js +0 -3
  1694. package/dist/esm/types/pagination.d.ts +0 -26
  1695. package/dist/esm/types/pagination.js +0 -1
  1696. package/dist/esm/types/token.d.ts +0 -64
  1697. package/dist/esm/types/token.js +0 -34
  1698. package/dist/esm/utils/address.d.ts +0 -41
  1699. package/dist/esm/utils/address.js +0 -76
  1700. package/dist/esm/utils/buff.d.ts +0 -2
  1701. package/dist/esm/utils/buff.js +0 -6
  1702. package/dist/esm/utils/constants.d.ts +0 -7
  1703. package/dist/esm/utils/constants.js +0 -7
  1704. package/dist/esm/utils/crypto.d.ts +0 -23
  1705. package/dist/esm/utils/crypto.js +0 -140
  1706. package/dist/esm/utils/grpc.d.ts +0 -4
  1707. package/dist/esm/utils/grpc.js +0 -18
  1708. package/dist/esm/utils/helpers.d.ts +0 -24
  1709. package/dist/esm/utils/helpers.js +0 -111
  1710. package/dist/esm/utils/index.d.ts +0 -13
  1711. package/dist/esm/utils/index.js +0 -13
  1712. package/dist/esm/utils/markets.d.ts +0 -34
  1713. package/dist/esm/utils/markets.js +0 -30
  1714. package/dist/esm/utils/msgs.d.ts +0 -2
  1715. package/dist/esm/utils/msgs.js +0 -51
  1716. package/dist/esm/utils/numbers.d.ts +0 -313
  1717. package/dist/esm/utils/numbers.js +0 -365
  1718. package/dist/esm/utils/pagination.d.ts +0 -21
  1719. package/dist/esm/utils/pagination.js +0 -48
  1720. package/dist/esm/utils/time.d.ts +0 -10
  1721. package/dist/esm/utils/time.js +0 -16
  1722. package/dist/esm/utils/transaction.d.ts +0 -2
  1723. package/dist/esm/utils/transaction.js +0 -15
  1724. package/dist/esm/utils/utf8.d.ts +0 -5
  1725. package/dist/esm/utils/utf8.js +0 -21
@@ -0,0 +1,2693 @@
1
+ import * as CosmosTxV1Beta1TxPb from "@injectivelabs/core-proto-ts-v2/generated/cosmos/tx/v1beta1/tx_pb";
2
+ import { bytesToHex, hashTypedData, hexToBytes, keccak256, recoverPublicKey, toBytes } from "viem";
3
+ import { BigNumber, DEFAULT_BLOCK_TIMEOUT_HEIGHT, DEFAULT_GAS_LIMIT, HttpRestClient, getDefaultStdFee, getExactDecimalsFromNumber, getSignificantDecimalsFromNumber, getStdFee, getStdFeeFromString, snakeToPascal, toBigNumber, toChainFormat, toHumanReadable } from "@injectivelabs/utils";
4
+ import { ChainErrorModule, ErrorType, GeneralException, HttpRequestException, UnspecifiedErrorCode } from "@injectivelabs/exceptions";
5
+ import { base64, bech32 } from "@scure/base";
6
+ import { secp256k1 } from "@noble/curves/secp256k1";
7
+ import * as GoogleProtobufAnyPb from "@injectivelabs/core-proto-ts-v2/generated/google/protobuf/any_pb";
8
+ import * as InjectiveCryptoV1Beta1Ethsecp256k1KeysPb from "@injectivelabs/core-proto-ts-v2/generated/injective/crypto/v1beta1/ethsecp256k1/keys_pb";
9
+ import CryptoEs from "crypto-js";
10
+ import { generateMnemonic } from "bip39";
11
+ import { ChainId, EvmChainId } from "@injectivelabs/ts-types";
12
+ import { HDNodeWallet, Signature, Wallet, concat, getBytes } from "ethers";
13
+ import * as InjectiveTypesV1Beta1TxExtPb from "@injectivelabs/core-proto-ts-v2/generated/injective/types/v1beta1/tx_ext_pb";
14
+ import * as CosmosBaseV1Beta1CoinPb from "@injectivelabs/core-proto-ts-v2/generated/cosmos/base/v1beta1/coin_pb";
15
+ import * as CosmosCryptoSecp256k1KeysPb from "@injectivelabs/core-proto-ts-v2/generated/cosmos/crypto/secp256k1/keys_pb";
16
+ import snakecaseKeys from "snakecase-keys";
17
+ import * as InjectiveExchangeV1Beta1TxPb from "@injectivelabs/core-proto-ts-v2/generated/injective/exchange/v1beta1/tx_pb";
18
+ import * as ExchangePb from "@injectivelabs/core-proto-ts-v2/generated/injective/exchange/v1beta1/exchange_pb";
19
+ import { OracleType } from "@injectivelabs/core-proto-ts-v2/generated/injective/oracle/v1beta1/oracle_pb";
20
+ import * as CosmosGovV1GovPb from "@injectivelabs/core-proto-ts-v2/generated/cosmos/gov/v1/gov_pb";
21
+ import * as CosmwasmWasmV1TypesPb from "@injectivelabs/core-proto-ts-v2/generated/cosmwasm/wasm/v1/types_pb";
22
+ import * as InjectivePermissionsV1Beta1PermissionsPb from "@injectivelabs/core-proto-ts-v2/generated/injective/permissions/v1beta1/permissions_pb";
23
+ import * as CosmosTxSigningV1Beta1SigningPb from "@injectivelabs/core-proto-ts-v2/generated/cosmos/tx/signing/v1beta1/signing_pb";
24
+
25
+ //#region src/utils/encoding.ts
26
+ /**
27
+ * Encoding/decoding utilities using industry-standard libraries
28
+ *
29
+ * Uses viem for hex encoding and @scure/base for base64 encoding
30
+ * to ensure compatibility, better performance, and reduce bundle size.
31
+ *
32
+ * These libraries are already dependencies in the project and are
33
+ * battle-tested by millions of developers.
34
+ */
35
+ /**
36
+ * Convert a hex string to Uint8Array
37
+ * @param hex - Hex string (with or without 0x prefix)
38
+ * @returns Uint8Array
39
+ * @throws Error if hex string is invalid
40
+ */
41
+ function hexToUint8Array(hex) {
42
+ if (typeof hex !== "string") throw new Error("Hex string must be a string");
43
+ if (hex.trim() === "") throw new Error("Hex string cannot be empty");
44
+ const prefixedHex = hex.startsWith("0x") ? hex : `0x${hex}`;
45
+ try {
46
+ return hexToBytes(prefixedHex);
47
+ } catch (_unused) {
48
+ throw new Error(`Invalid hex string: ${hex}`);
49
+ }
50
+ }
51
+ /**
52
+ * Convert a Uint8Array to hex string
53
+ * @param arr - Uint8Array to convert
54
+ * @returns Hex string (without 0x prefix)
55
+ */
56
+ function uint8ArrayToHex(arr) {
57
+ return bytesToHex(arr).slice(2);
58
+ }
59
+ /**
60
+ * Convert a base64 string to Uint8Array
61
+ * @param base64String - Base64 encoded string
62
+ * @returns Uint8Array
63
+ * @throws Error if base64 string is invalid
64
+ */
65
+ function base64ToUint8Array(base64String) {
66
+ if (typeof base64String !== "string") throw new Error("Base64 string must be a string");
67
+ if (base64String.trim() === "") throw new Error("Base64 string cannot be empty");
68
+ try {
69
+ return base64.decode(base64String);
70
+ } catch (_unused2) {
71
+ throw new Error(`Invalid base64 string: ${base64String}`);
72
+ }
73
+ }
74
+ /**
75
+ * Convert a Uint8Array to base64 string
76
+ * @param arr - Uint8Array to convert
77
+ * @returns Base64 encoded string
78
+ */
79
+ function uint8ArrayToBase64(arr) {
80
+ return base64.encode(arr);
81
+ }
82
+ /**
83
+ * Convert a string to Uint8Array using UTF-8 encoding
84
+ * @param str - String to encode
85
+ * @returns Uint8Array
86
+ */
87
+ function stringToUint8Array(str) {
88
+ return new TextEncoder().encode(str);
89
+ }
90
+ /**
91
+ * Convert a hex string to Uint8Array (buffer-like)
92
+ * Handles hex strings with or without 0x prefix
93
+ * @param hex - Hex string (with or without 0x prefix)
94
+ * @returns Uint8Array
95
+ */
96
+ function hexToBuff(hex) {
97
+ return hexToUint8Array(hex.startsWith("0x") ? hex.slice(2) : hex);
98
+ }
99
+ /**
100
+ * Convert a hex string to base64 string
101
+ * Handles hex strings with or without 0x prefix
102
+ * @param hex - Hex string (with or without 0x prefix)
103
+ * @returns Base64 encoded string
104
+ */
105
+ function hexToBase64(hex) {
106
+ return uint8ArrayToBase64(hexToUint8Array(hex.startsWith("0x") ? hex.slice(2) : hex));
107
+ }
108
+ /**
109
+ * Convert a base64 string to UTF-8 string
110
+ * @param base64String - Base64 encoded string
111
+ * @returns Decoded UTF-8 string
112
+ * @throws Error if base64 string is invalid
113
+ */
114
+ function base64ToUtf8(base64String) {
115
+ return toUtf8(base64ToUint8Array(base64String));
116
+ }
117
+ /**
118
+ * Convert a string or Uint8Array to Uint8Array using UTF-8 encoding
119
+ * If input is already Uint8Array, returns it as-is
120
+ * @param str - String or Uint8Array to encode
121
+ * @returns Uint8Array
122
+ */
123
+ function fromUtf8(str) {
124
+ if (typeof str !== "string") return str;
125
+ return stringToUint8Array(str);
126
+ }
127
+ /**
128
+ * Convert a Uint8Array or string to string using UTF-8 decoding
129
+ * If input is already a string, returns it as-is
130
+ * @param data - Uint8Array or string to decode
131
+ * @returns Decoded string
132
+ */
133
+ function toUtf8(data) {
134
+ if (typeof data === "string") return data;
135
+ return new TextDecoder().decode(data);
136
+ }
137
+ /**
138
+ * Convert a Uint8Array, string, null, or undefined to string using UTF-8 decoding
139
+ * More robust version that handles null/undefined gracefully
140
+ * @param string - Uint8Array, string, null, or undefined to decode
141
+ * @returns Decoded string (empty string if input is null/undefined)
142
+ */
143
+ function uint8ArrayToString(string) {
144
+ if (!string) return "";
145
+ if (string.constructor !== Uint8Array) return string;
146
+ return new TextDecoder().decode(string);
147
+ }
148
+ /**
149
+ * Convert binary data (string or Uint8Array) to base64 string
150
+ * If input is already a string, returns it as-is
151
+ * @param data - String or Uint8Array to encode
152
+ * @returns Base64 encoded string
153
+ */
154
+ function binaryToBase64(data) {
155
+ return typeof data === "string" ? data : uint8ArrayToBase64(data);
156
+ }
157
+ /**
158
+ * Convert a JSON object to base64 string
159
+ * @param data - JSON object to encode
160
+ * @returns Base64 encoded string
161
+ */
162
+ function toBase64(data) {
163
+ return uint8ArrayToBase64(stringToUint8Array(JSON.stringify(data)));
164
+ }
165
+ /**
166
+ * Convert a base64 string to JSON object
167
+ * @param payload - Base64 encoded string
168
+ * @returns Decoded JSON object
169
+ * @throws Error if base64 string is invalid or contains invalid JSON
170
+ */
171
+ function fromBase64(payload) {
172
+ if (typeof payload !== "string") throw new Error("Base64 payload must be a string");
173
+ if (payload.trim() === "") throw new Error("Base64 payload cannot be empty");
174
+ try {
175
+ const decoded = new TextDecoder().decode(base64ToUint8Array(payload));
176
+ return JSON.parse(decoded);
177
+ } catch (_unused3) {
178
+ throw new Error(`Failed to decode base64 JSON: ${payload}`);
179
+ }
180
+ }
181
+ /**
182
+ * Concatenate multiple Uint8Arrays into a single Uint8Array
183
+ * Replacement for Buffer.concat()
184
+ * @param arrays - Array of Uint8Arrays to concatenate
185
+ * @returns Concatenated Uint8Array
186
+ */
187
+ function concatUint8Arrays(arrays) {
188
+ if (arrays.length === 0) return new Uint8Array(0);
189
+ const totalLength = arrays.reduce((sum, arr) => sum + arr.length, 0);
190
+ const result = new Uint8Array(totalLength);
191
+ let offset = 0;
192
+ for (const arr of arrays) {
193
+ result.set(arr, offset);
194
+ offset += arr.length;
195
+ }
196
+ return result;
197
+ }
198
+
199
+ //#endregion
200
+ //#region src/utils/constants.ts
201
+ const BECH32_PUBKEY_ACC_PREFIX = "injpub";
202
+ const BECH32_PUBKEY_VAL_PREFIX = "injvaloperpub";
203
+ const BECH32_PUBKEY_CONS_PREFIX = "injvalconspub";
204
+ const BECH32_ADDR_ACC_PREFIX = "inj";
205
+ const BECH32_ADDR_VAL_PREFIX = "injvaloper";
206
+ const BECH32_ADDR_CONS_PREFIX = "injvalcons";
207
+ const DEFAULT_DERIVATION_PATH = "m/44'/60'/0'/0/0";
208
+
209
+ //#endregion
210
+ //#region \0@oxc-project+runtime@0.98.0/helpers/typeof.js
211
+ function _typeof(o) {
212
+ "@babel/helpers - typeof";
213
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o$1) {
214
+ return typeof o$1;
215
+ } : function(o$1) {
216
+ return o$1 && "function" == typeof Symbol && o$1.constructor === Symbol && o$1 !== Symbol.prototype ? "symbol" : typeof o$1;
217
+ }, _typeof(o);
218
+ }
219
+
220
+ //#endregion
221
+ //#region \0@oxc-project+runtime@0.98.0/helpers/toPrimitive.js
222
+ function toPrimitive(t, r) {
223
+ if ("object" != _typeof(t) || !t) return t;
224
+ var e = t[Symbol.toPrimitive];
225
+ if (void 0 !== e) {
226
+ var i = e.call(t, r || "default");
227
+ if ("object" != _typeof(i)) return i;
228
+ throw new TypeError("@@toPrimitive must return a primitive value.");
229
+ }
230
+ return ("string" === r ? String : Number)(t);
231
+ }
232
+
233
+ //#endregion
234
+ //#region \0@oxc-project+runtime@0.98.0/helpers/toPropertyKey.js
235
+ function toPropertyKey(t) {
236
+ var i = toPrimitive(t, "string");
237
+ return "symbol" == _typeof(i) ? i : i + "";
238
+ }
239
+
240
+ //#endregion
241
+ //#region \0@oxc-project+runtime@0.98.0/helpers/defineProperty.js
242
+ function _defineProperty(e, r, t) {
243
+ return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
244
+ value: t,
245
+ enumerable: !0,
246
+ configurable: !0,
247
+ writable: !0
248
+ }) : e[r] = t, e;
249
+ }
250
+
251
+ //#endregion
252
+ //#region src/core/accounts/Address.ts
253
+ /**
254
+ * @category Utility Classes
255
+ */
256
+ var Address = class Address {
257
+ constructor(bech32Address) {
258
+ _defineProperty(this, "bech32Address", void 0);
259
+ this.bech32Address = bech32Address;
260
+ }
261
+ compare(address) {
262
+ return this.bech32Address === address.bech32Address;
263
+ }
264
+ get address() {
265
+ return this.bech32Address;
266
+ }
267
+ /**
268
+ * Create an address instance from a bech32-encoded address and a prefix
269
+ * @param {string} bech32 bech32-encoded address
270
+ * @param {string} prefix
271
+ * @return {Address}
272
+ * @throws {Error} if bech is not a valid bech32-encoded address
273
+ */
274
+ static fromBech32(bech, prefix = BECH32_ADDR_ACC_PREFIX) {
275
+ try {
276
+ const address = uint8ArrayToHex(bech32.fromWords(bech32.decode(bech).words));
277
+ const addressBuffer = toBytes((address.startsWith("0x") ? address : `0x${address}`).toString());
278
+ return new Address(bech32.encode(prefix, bech32.toWords(addressBuffer)));
279
+ } catch (e) {
280
+ throw new GeneralException(new Error(e), { type: ErrorType.ValidationError });
281
+ }
282
+ }
283
+ /**
284
+ * Create an address instance from an ethereum address
285
+ * @param {string} hex Ethereum address
286
+ * @param {string} prefix
287
+ * @return {Address}
288
+ * @throws {Error} if bech is not a valid bech32-encoded address
289
+ */
290
+ static fromHex(hex, prefix = BECH32_ADDR_ACC_PREFIX) {
291
+ const addressBuffer = toBytes((hex.startsWith("0x") ? hex : `0x${hex}`).toString());
292
+ return new Address(bech32.encode(prefix, bech32.toWords(addressBuffer)));
293
+ }
294
+ /**
295
+ * Convert an address instance to a bech32-encoded account address
296
+ * @param {string} prefix
297
+ * @returns {string}
298
+ */
299
+ toBech32(prefix = BECH32_ADDR_ACC_PREFIX) {
300
+ const address = this.toHex();
301
+ const addressBuffer = toBytes(address.startsWith("0x") ? address : `0x${address}`);
302
+ return bech32.encode(prefix, bech32.toWords(addressBuffer));
303
+ }
304
+ /**
305
+ * Return a bech32-encoded account address
306
+ * @return {string}
307
+ * @throws {Error} if this address is not a valid account address
308
+ * */
309
+ toAccountAddress() {
310
+ return this.toBech32(BECH32_ADDR_ACC_PREFIX);
311
+ }
312
+ /**
313
+ * Return a bech32-encoded validator address
314
+ * @return {string}
315
+ * @throws {Error} if this address is not a valid validator address
316
+ * */
317
+ toValidatorAddress() {
318
+ return this.toBech32(BECH32_ADDR_VAL_PREFIX);
319
+ }
320
+ /**
321
+ * Return a bech32-encoded consensus address
322
+ * @return {string}
323
+ * @throws {Error} if this address is not a valid consensus address
324
+ * */
325
+ toConsensusAddress() {
326
+ return this.toBech32(BECH32_ADDR_CONS_PREFIX);
327
+ }
328
+ /**
329
+ * Return a hex representation of address
330
+ * @return {string}
331
+ * @throws {Error} if this address is not a valid account address
332
+ * */
333
+ toHex() {
334
+ const { bech32Address } = this;
335
+ const address = uint8ArrayToHex(bech32.fromWords(bech32.decode(bech32Address).words));
336
+ return address.startsWith("0x") ? address : `0x${address}`;
337
+ }
338
+ /**
339
+ * Return a subaccount address from the given bech32 encoded address
340
+ * @param {number} index the subaccount index
341
+ * @return {string}
342
+ * @throws {Error} if this address is not a valid account address
343
+ * */
344
+ getSubaccountId(index = 0) {
345
+ const suffix = "0".repeat(23) + index;
346
+ return `${this.toHex()}${suffix}`;
347
+ }
348
+ /**
349
+ * Return a ethereum address from the given bech32 encoded address
350
+ * @return {string}
351
+ * @throws {Error} if this address is not a valid account address
352
+ * */
353
+ getEthereumAddress() {
354
+ return this.toHex();
355
+ }
356
+ };
357
+
358
+ //#endregion
359
+ //#region src/utils/crypto.ts
360
+ /**
361
+ * Hash data to hex string using SHA256
362
+ * @param data - Base64 encoded string to hash
363
+ * @returns Uppercase hex string
364
+ */
365
+ const hashToHex = (data) => {
366
+ return CryptoEs.SHA256(CryptoEs.enc.Base64.parse(data)).toString().toUpperCase();
367
+ };
368
+ /**
369
+ * Compute SHA256 hash of Uint8Array data
370
+ * @param data - Data to hash
371
+ * @returns SHA256 hash as Uint8Array
372
+ */
373
+ const sha256 = (data) => {
374
+ const wordArray = CryptoEs.lib.WordArray.create(data);
375
+ return hexToUint8Array(CryptoEs.SHA256(wordArray).toString());
376
+ };
377
+ /**
378
+ * Compute RIPEMD160 hash of Uint8Array data
379
+ * @param data - Data to hash
380
+ * @returns RIPEMD160 hash as Uint8Array
381
+ */
382
+ const ripemd160 = (data) => {
383
+ const wordArray = CryptoEs.lib.WordArray.create(data);
384
+ return hexToUint8Array(CryptoEs.RIPEMD160(wordArray).toString());
385
+ };
386
+ /**
387
+ * Derive public key from private key
388
+ * @param privateKey - Private key as Uint8Array
389
+ * @returns Compressed public key (33 bytes)
390
+ */
391
+ const privateKeyToPublicKey = (privateKey) => {
392
+ return secp256k1.getPublicKey(privateKey, true);
393
+ };
394
+ /**
395
+ * Derive public key from private key hash (hex string)
396
+ * @param privateKeyHash - Private key as hex string (with or without 0x prefix)
397
+ * @returns Compressed public key (33 bytes)
398
+ */
399
+ const privateKeyHashToPublicKey = (privateKeyHash) => {
400
+ const privateKey = privateKeyHash.startsWith("0x") ? privateKeyHash.slice(2) : privateKeyHash;
401
+ return secp256k1.getPublicKey(hexToUint8Array(privateKey), true);
402
+ };
403
+ /**
404
+ * Derive public key from private key and encode as base64
405
+ * @param privateKey - Private key as Uint8Array
406
+ * @returns Base64 encoded compressed public key
407
+ */
408
+ const privateKeyToPublicKeyBase64 = (privateKey) => {
409
+ return uint8ArrayToBase64(privateKeyToPublicKey(privateKey));
410
+ };
411
+ /**
412
+ * Derive public key from private key hash and encode as base64
413
+ * @param privateKeyHash - Private key as hex string (with or without 0x prefix)
414
+ * @returns Base64 encoded compressed public key
415
+ */
416
+ const privateKeyHashToPublicKeyBase64 = (privateKeyHash) => {
417
+ return uint8ArrayToBase64(privateKeyHashToPublicKey(privateKeyHash));
418
+ };
419
+ /**
420
+ * Hash only the domain portion of EIP-712 typed data
421
+ * @param message - EIP-712 typed data definition
422
+ * @returns Hash of the domain
423
+ */
424
+ const domainHash = (message) => {
425
+ return hashTypedData({
426
+ domain: message.domain,
427
+ types: message.types,
428
+ primaryType: "EIP712Domain",
429
+ message: {}
430
+ });
431
+ };
432
+ /**
433
+ * Hash only the message portion of EIP-712 typed data
434
+ * @param message - EIP-712 typed data definition
435
+ * @returns Hash of the message
436
+ */
437
+ const messageHash = (message) => {
438
+ return hashTypedData({
439
+ domain: {},
440
+ types: message.types,
441
+ primaryType: message.primaryType,
442
+ message: message.message
443
+ });
444
+ };
445
+ /**
446
+ * Decompress a compressed public key (starts with 02 or 03)
447
+ * If the key is already 64 bytes, prepends '04' to make it uncompressed
448
+ * @param startsWith02Or03 - Compressed public key hex string
449
+ * @returns Decompressed public key hex string (without 04 prefix)
450
+ */
451
+ function decompressPubKey(startsWith02Or03) {
452
+ if (hexToUint8Array(startsWith02Or03).length === 64) startsWith02Or03 = "04" + startsWith02Or03;
453
+ const decompressed = secp256k1.ProjectivePoint.fromHex(startsWith02Or03).toHex(false);
454
+ if (!decompressed.startsWith("04")) return decompressed;
455
+ return decompressed.slice(2);
456
+ }
457
+ /**
458
+ * Convert public key to Ethereum address using Keccak256
459
+ * @param pubKey - Public key as Uint8Array (64 bytes uncompressed or 33 bytes compressed)
460
+ * @param sanitize - If true, will decompress compressed keys before hashing
461
+ * @returns Ethereum address (20 bytes)
462
+ * @throws Error if pubKey length is not 64 after sanitization
463
+ */
464
+ const publicKeyToAddress = function(pubKey, sanitize = false) {
465
+ if (sanitize && pubKey.length !== 64) pubKey = secp256k1.ProjectivePoint.fromHex(pubKey).toRawBytes(false).slice(1);
466
+ if (pubKey.length !== 64) throw new Error("Expected pubKey to be of length 64");
467
+ return keccak256(pubKey, "bytes").subarray(-20);
468
+ };
469
+ /**
470
+ * Sanitize typed data by converting BigInt values to strings
471
+ * Recursively processes objects and arrays
472
+ * @param data - Data to sanitize (can be object, array, or primitive)
473
+ * @returns Sanitized data with BigInt values converted to strings
474
+ */
475
+ const sanitizeTypedData = (data) => {
476
+ switch (Object.prototype.toString.call(data)) {
477
+ case "[object Object]": {
478
+ const entries = Object.keys(data).map((k) => [k, sanitizeTypedData(data[k])]);
479
+ return Object.fromEntries(entries);
480
+ }
481
+ case "[object Array]": return data.map((v) => sanitizeTypedData(v));
482
+ case "[object BigInt]": return data.toString();
483
+ default: return data;
484
+ }
485
+ };
486
+ function hashStruct(primaryType, data, types, _version) {
487
+ if (!data) throw new Error("Invalid data: data is empty");
488
+ let typedData;
489
+ if (primaryType === "EIP712Domain") typedData = {
490
+ domain: data,
491
+ types: { EIP712Domain: types.EIP712Domain },
492
+ primaryType: "EIP712Domain",
493
+ message: {}
494
+ };
495
+ else typedData = {
496
+ domain: types.domain || {},
497
+ types,
498
+ primaryType,
499
+ message: data
500
+ };
501
+ const hash = hashTypedData(typedData);
502
+ return { toString: (encoding) => {
503
+ if (encoding === "hex") return hash.slice(2);
504
+ return hash;
505
+ } };
506
+ }
507
+ const TypedDataUtilsSanitizeData = sanitizeTypedData;
508
+ const TypedDataUtilsHashStruct = hashStruct;
509
+ const SignTypedDataVersionV4 = "V4";
510
+
511
+ //#endregion
512
+ //#region src/utils/helpers.ts
513
+ const isServerSide = () => typeof window === "undefined";
514
+ const isReactNative = () => {
515
+ return typeof document === "undefined" && typeof navigator !== "undefined" && navigator.product === "ReactNative";
516
+ };
517
+ const isNode = () => {
518
+ if (typeof window === "undefined") return true;
519
+ return typeof process !== "undefined" && typeof process.versions !== "undefined" && typeof process.versions.node !== "undefined";
520
+ };
521
+ const isBrowser = () => {
522
+ if (isReactNative()) return false;
523
+ if (isNode()) return false;
524
+ return typeof window !== "undefined";
525
+ };
526
+ const objectToJson = (object, params) => {
527
+ const { replacer, indentation } = params || {
528
+ replacer: null,
529
+ indentation: 2
530
+ };
531
+ return JSON.stringify(object, replacer, indentation);
532
+ };
533
+ const protoObjectToJson = (object, params) => {
534
+ const { replacer, indentation } = params || {
535
+ replacer: null,
536
+ indentation: 2
537
+ };
538
+ if (object.toObject !== void 0) return JSON.stringify(object.toObject(), replacer, indentation);
539
+ return objectToJson(object, {
540
+ replacer,
541
+ indentation
542
+ });
543
+ };
544
+ const grpcCoinToUiCoin = (coin) => ({
545
+ amount: coin.amount,
546
+ denom: coin.denom
547
+ });
548
+ const sortObjectByKeysWithReduce = (obj) => {
549
+ if (typeof obj !== "object" || obj === null) return obj;
550
+ if (Array.isArray(obj)) return obj.map((e) => sortObjectByKeysWithReduce(e)).sort();
551
+ return Object.keys(obj).sort().reduce((sorted, k) => {
552
+ const key = k;
553
+ sorted[key] = sortObjectByKeysWithReduce(obj[key]);
554
+ return sorted;
555
+ }, {});
556
+ };
557
+ const sortObjectByKeys = (obj) => {
558
+ if (typeof obj !== "object" || obj === null) return obj;
559
+ if (Array.isArray(obj)) return obj.map(sortObjectByKeys);
560
+ const sortedKeys = Object.keys(obj).sort();
561
+ const result = {};
562
+ sortedKeys.forEach((key) => {
563
+ result[key] = sortObjectByKeys(obj[key]);
564
+ });
565
+ return result;
566
+ };
567
+ const getErrorMessage = (error, endpoint) => {
568
+ if (!error.response) return `The request to ${endpoint} has failed.`;
569
+ return error.response.data ? error.response.data.message || error.response.data : error.response.statusText;
570
+ };
571
+ /**
572
+ * Converts value to it's number representation
573
+ */
574
+ const hexToNumber = (value) => {
575
+ const [negative, hexValue] = value.startsWith("-") ? [true, value.slice(1)] : [false, value];
576
+ const num = BigInt(hexValue);
577
+ if (num > Number.MAX_SAFE_INTEGER) return Number(negative ? -num : num);
578
+ if (num < Number.MIN_SAFE_INTEGER) return Number(num);
579
+ return negative ? -1 * Number(num) : Number(num);
580
+ };
581
+ function isJsonString(str) {
582
+ if (typeof str !== "string") return false;
583
+ try {
584
+ JSON.parse(str);
585
+ } catch (_unused) {
586
+ return false;
587
+ }
588
+ return true;
589
+ }
590
+
591
+ //#endregion
592
+ //#region src/utils/numbers.ts
593
+ const $BigNumber = BigNumber.clone({ ROUNDING_MODE: BigNumber.ROUND_DOWN });
594
+ const isNumber = (number) => {
595
+ if (typeof number === "number") return true;
596
+ return !isNaN(parseFloat(number));
597
+ };
598
+ const formatNumberToAllowableDecimals = (value, allowableDecimals, roundingMode) => {
599
+ const decimalPlacesInValue = toBigNumber(getExactDecimalsFromNumber(value));
600
+ const valueToString = value.toString();
601
+ if (decimalPlacesInValue.lte(0)) return valueToString;
602
+ return decimalPlacesInValue.gte(allowableDecimals) ? toBigNumber(valueToString).toFixed(allowableDecimals, roundingMode) : valueToString;
603
+ };
604
+ const formatNumberToAllowableTensMultiplier = (value, tensMultiplier, roundingMode) => {
605
+ const valueToBn = toBigNumber(value);
606
+ if (tensMultiplier === 0) return valueToBn.toFixed(0, roundingMode);
607
+ const tensMul = toBigNumber(10).pow(tensMultiplier);
608
+ if (valueToBn.lte(tensMul)) return tensMul.toFixed(0, roundingMode);
609
+ return toBigNumber(valueToBn.div(tensMul).toFixed(0, roundingMode)).multipliedBy(tensMul).toFixed(0);
610
+ };
611
+ const formatAmountToAllowableAmount = (value, tensMultiplier) => {
612
+ return tensMultiplier < 0 ? formatNumberToAllowableDecimals(value, -tensMultiplier, BigNumber.ROUND_DOWN) : formatNumberToAllowableTensMultiplier(value, tensMultiplier, BigNumber.ROUND_DOWN);
613
+ };
614
+ const formatPriceToAllowablePrice = (value, tensMultiplier) => {
615
+ return tensMultiplier <= 0 ? formatNumberToAllowableDecimals(value, -tensMultiplier) : formatNumberToAllowableTensMultiplier(value, tensMultiplier);
616
+ };
617
+ /**
618
+ *
619
+ * Legacy function - use formatNumberToAllowableDecimals
620
+ *
621
+ * @param value
622
+ * @param allowableDecimals
623
+ * @returns
624
+ */
625
+ const formatAmountToAllowableDecimals = (value, allowableDecimals) => {
626
+ return formatNumberToAllowableDecimals(value, allowableDecimals, BigNumber.ROUND_DOWN);
627
+ };
628
+ /**
629
+ *
630
+ * Legacy function - use formatNumberToAllowableDecimals
631
+ *
632
+ * @param value
633
+ * @param allowableDecimals
634
+ * @returns
635
+ */
636
+ const formatPriceToAllowableDecimals = (value, allowableDecimals) => {
637
+ return formatNumberToAllowableDecimals(value, allowableDecimals);
638
+ };
639
+ /**
640
+ * On chain amounts queried from a sentry using the
641
+ * gRPC API are returned with an extra decimal point
642
+ * 18 places from the beginning, so we need to remove it
643
+ * to get a workable amount
644
+ */
645
+ const denomAmountFromGrpcChainDenomAmount = (value) => new $BigNumber(value).dividedBy(new $BigNumber(10).pow(18));
646
+ /**
647
+ * @deprecated use toChainFormat from injectivelabs/utils instead
648
+ *
649
+ * On chain amounts broadcasted to a sentry directly using the
650
+ * gRPC API should be passed with an extra decimal point
651
+ * 18 places from the beginning, so we need to add it
652
+ * to get a workable amount
653
+ */
654
+ const denomAmountToGrpcChainDenomAmount = (value) => new $BigNumber(value).multipliedBy(new $BigNumber(10).pow(18));
655
+ /**
656
+ * @deprecated use toChainFormat from injectivelabs/utils instead
657
+ *
658
+ * On chain amounts (based on the cosmosSdk.Dec type)
659
+ * broadcasted to a sentry directly using the
660
+ * gRPC API should be passed with an extra decimal point
661
+ * 18 places from the beginning (i.e multiplied by 1e18), so we need to add it
662
+ * to get a workable amount
663
+ */
664
+ const amountToCosmosSdkDecAmount = (value) => new $BigNumber(value).multipliedBy(new $BigNumber(10).pow(18));
665
+ /**
666
+ * * @deprecated use toChainFormat from injectivelabs/utils instead
667
+ *
668
+ * Amount that the chain requires is in the x * 10^(quoteDecimals) format
669
+ * where x is a human readable number
670
+ */
671
+ const denomAmountToChainDenomAmount = ({ value, decimals = 18 }) => new $BigNumber(value).multipliedBy(new $BigNumber(10).pow(decimals));
672
+ /**
673
+ * Amount that the chain returns is in the x * 10^(quoteDecimals) format
674
+ * where x is a human readable number
675
+ */
676
+ const denomAmountToChainDenomAmountToFixed = ({ value, decimals = 18, tensMultiplier, decimalPlaces = void 0, roundingMode = BigNumber.ROUND_DOWN }) => {
677
+ const valueToBn = toBigNumber(value).toFixed();
678
+ const number = denomAmountToChainDenomAmount({
679
+ value: tensMultiplier ? formatPriceToAllowablePrice(valueToBn, tensMultiplier) : value,
680
+ decimals
681
+ });
682
+ if (decimalPlaces === void 0) return number.toFixed();
683
+ return number.toFixed(getSignificantDecimalsFromNumber(number), roundingMode);
684
+ };
685
+ /**
686
+ * @deprecated use toHumanReadable from injectivelabs/utils instead
687
+ *
688
+ * Amount that the chain returns is in the x * 10^(quoteDecimals) format
689
+ * where x is a human readable number
690
+ */
691
+ const denomAmountFromChainDenomAmount = ({ value, decimals = 18 }) => new $BigNumber(value).dividedBy(new $BigNumber(10).pow(decimals));
692
+ /**
693
+ *
694
+ * Amount that the chain returns is in the x * 10^(quoteDecimals) format
695
+ * where x is a human readable number stringified
696
+ */
697
+ const denomAmountFromChainDenomAmountToFixed = ({ value, decimals = 18, decimalPlaces = void 0, roundingMode = BigNumber.ROUND_DOWN }) => {
698
+ const number = toHumanReadable(value, decimals);
699
+ if (decimalPlaces === void 0) return number.toFixed();
700
+ return number.toFixed(getSignificantDecimalsFromNumber(number), roundingMode);
701
+ };
702
+ /**
703
+ * @deprecated use toChainFormat from injectivelabs/utils instead
704
+ *
705
+ * Amount that the chain requires is in the x * 10^(quoteDecimals) format
706
+ * where x is a human readable number
707
+ */
708
+ const derivativeMarginToChainMargin = ({ value, quoteDecimals = 18 }) => new $BigNumber(value).multipliedBy(new $BigNumber(10).pow(quoteDecimals));
709
+ /**
710
+ * Amount that the chain requires is in the x * 10^(quoteDecimals) format
711
+ * where x is a human readable number stringified
712
+ */
713
+ const derivativeMarginToChainMarginToFixed = ({ value, quoteDecimals = 18, tensMultiplier, decimalPlaces = void 0, roundingMode = BigNumber.ROUND_DOWN }) => {
714
+ const valueToBn = toBigNumber(value).toFixed();
715
+ const number = derivativeMarginToChainMargin({
716
+ value: tensMultiplier ? formatPriceToAllowablePrice(valueToBn, tensMultiplier) : value,
717
+ quoteDecimals
718
+ });
719
+ if (decimalPlaces === void 0) return number.toFixed();
720
+ return number.toFixed(getSignificantDecimalsFromNumber(number), roundingMode);
721
+ };
722
+ /**
723
+ * @deprecated use toHumanReadable from injectivelabs/utils instead
724
+ *
725
+ * Amount that the chain returns is in the x * 10^(quoteDecimals) format
726
+ * where x is a human readable number
727
+ */
728
+ const derivativeMarginFromChainMargin = ({ value, quoteDecimals = 18 }) => new $BigNumber(value).dividedBy(new $BigNumber(10).pow(quoteDecimals));
729
+ /**
730
+ * Amount that the chain returns is in the x * 10^(quoteDecimals) format
731
+ * where x is a human readable number
732
+ */
733
+ const derivativeMarginFromChainMarginToFixed = ({ value, quoteDecimals = 18, decimalPlaces = void 0, roundingMode = BigNumber.ROUND_DOWN }) => {
734
+ const number = toHumanReadable(value, quoteDecimals);
735
+ if (decimalPlaces === void 0) return number.toFixed();
736
+ return number.toFixed(getSignificantDecimalsFromNumber(number), roundingMode);
737
+ };
738
+ /**
739
+ * @deprecated use toChainFormat from injectivelabs/utils instead
740
+ * Amount that the chain requires is in the x * 10^(quoteDecimals) format
741
+ * where x is a human readable number
742
+ */
743
+ const derivativePriceToChainPrice = ({ value, quoteDecimals = 18 }) => new $BigNumber(value).multipliedBy(new $BigNumber(10).pow(quoteDecimals));
744
+ /**
745
+ * Amount that the chain requires is in the x * 10^(quoteDecimals) format
746
+ * where x is a human readable number stringified
747
+ */
748
+ const derivativePriceToChainPriceToFixed = ({ value, tensMultiplier, quoteDecimals = 18, decimalPlaces = void 0, roundingMode = BigNumber.ROUND_DOWN }) => {
749
+ const valueToBn = toBigNumber(value).toFixed();
750
+ const number = toChainFormat(tensMultiplier ? formatPriceToAllowablePrice(valueToBn, tensMultiplier) : value, quoteDecimals);
751
+ if (decimalPlaces === void 0) return number.toFixed();
752
+ return number.toFixed(getSignificantDecimalsFromNumber(number), roundingMode);
753
+ };
754
+ /**
755
+ * @deprecated use toHumanReadable from injectivelabs/utils instead
756
+ *
757
+ * Amount that the chain returns is in the x * 10^(quoteDecimals) format
758
+ * where x is a human readable number
759
+ */
760
+ const derivativePriceFromChainPrice = ({ value, quoteDecimals = 18 }) => new $BigNumber(value).dividedBy(new $BigNumber(10).pow(quoteDecimals));
761
+ /**
762
+ * Amount that the chain returns is in the x * 10^(quoteDecimals) format
763
+ * where x is a human readable number stringified
764
+ */
765
+ const derivativePriceFromChainPriceToFixed = ({ value, quoteDecimals = 18, decimalPlaces = void 0, roundingMode = BigNumber.ROUND_DOWN }) => {
766
+ const number = toHumanReadable(value, quoteDecimals);
767
+ if (decimalPlaces === void 0) return number.toFixed();
768
+ return number.toFixed(getSignificantDecimalsFromNumber(number), roundingMode);
769
+ };
770
+ /**
771
+ * @deprecated use toBigNumber from injectivelabs/utils instead
772
+ * Amount that the chain requires is in the x format
773
+ * where x is a human readable number
774
+ */
775
+ const derivativeQuantityToChainQuantity = ({ value }) => new $BigNumber(value);
776
+ /**
777
+ * Amount that the chain requires is in the x format
778
+ * where x is a human readable number stringified
779
+ */
780
+ const derivativeQuantityToChainQuantityToFixed = ({ value, decimalPlaces = void 0, tensMultiplier, roundingMode = BigNumber.ROUND_DOWN }) => {
781
+ const valueToBn = toBigNumber(value).toFixed();
782
+ const number = derivativeQuantityToChainQuantity({ value: tensMultiplier ? formatPriceToAllowablePrice(valueToBn, tensMultiplier) : value });
783
+ if (decimalPlaces === void 0) return number.toFixed();
784
+ return number.toFixed(getSignificantDecimalsFromNumber(number), roundingMode);
785
+ };
786
+ /**
787
+ * @deprecated
788
+ * Amount that the chain requires is in the x format
789
+ * where x is a human readable number
790
+ */
791
+ const derivativeQuantityFromChainQuantity = ({ value }) => new $BigNumber(value);
792
+ /**
793
+ * Amount that the chain requires is in the x format
794
+ * where x is a human readable number stringified
795
+ */
796
+ const derivativeQuantityFromChainQuantityToFixed = ({ value, decimalPlaces = void 0, roundingMode = BigNumber.ROUND_DOWN }) => {
797
+ const number = new $BigNumber(value);
798
+ if (decimalPlaces === void 0) return number.toFixed();
799
+ return number.toFixed(getSignificantDecimalsFromNumber(number), roundingMode);
800
+ };
801
+ /**
802
+ * @deprecated use toChainFormat from injectivelabs/utils instead
803
+ * Amount that the chain requires is in the x / 10^(quoteDecimals - baseDecimals) format
804
+ * where x is a human readable number
805
+ */
806
+ const spotPriceToChainPrice = ({ value, baseDecimals = 18, quoteDecimals = 6 }) => new $BigNumber(value).multipliedBy(new $BigNumber(10).pow(new $BigNumber(quoteDecimals).minus(baseDecimals)));
807
+ /**
808
+ * Amount that the chain requires is in the x / 10^(quoteDecimals - baseDecimals) format
809
+ * where x is a human readable number stringified
810
+ */
811
+ const spotPriceToChainPriceToFixed = ({ value, baseDecimals = 18, quoteDecimals = 6, tensMultiplier, decimalPlaces = void 0, roundingMode = BigNumber.ROUND_DOWN }) => {
812
+ const valueToBn = toBigNumber(value).toFixed();
813
+ const number = toChainFormat(tensMultiplier ? formatPriceToAllowablePrice(valueToBn, tensMultiplier) : value, toBigNumber(quoteDecimals).minus(baseDecimals).toNumber());
814
+ if (decimalPlaces === void 0) return number.toFixed();
815
+ return number.toFixed(getSignificantDecimalsFromNumber(number), roundingMode);
816
+ };
817
+ /**
818
+ * @deprecated use toHumanReadable from injectivelabs/utils instead
819
+ *
820
+ * Amount that the chain returns is in the x / 10^(quoteDecimals - baseDecimals) format
821
+ * where x is a human readable number
822
+ */
823
+ const spotPriceFromChainPrice = ({ value, baseDecimals = 18, quoteDecimals = 6 }) => new $BigNumber(value).dividedBy(new $BigNumber(10).pow(new $BigNumber(quoteDecimals).minus(baseDecimals)));
824
+ /**
825
+ * Amount that the chain returns is in the x / 10^(quoteDecimals - baseDecimals) format
826
+ * where x is a human readable number stringified
827
+ */
828
+ const spotPriceFromChainPriceToFixed = ({ value, baseDecimals = 18, quoteDecimals = 6, decimalPlaces = void 0, roundingMode = BigNumber.ROUND_DOWN }) => {
829
+ const number = toHumanReadable(value, quoteDecimals - baseDecimals);
830
+ if (decimalPlaces === void 0) return number.toFixed();
831
+ return number.toFixed(getSignificantDecimalsFromNumber(number), roundingMode);
832
+ };
833
+ /**
834
+ * @deprecated use toChainFormat from injectivelabs/utils instead
835
+ *
836
+ * Amount that the chain requires is in the x * 10^(baseDecimals) format
837
+ * where x is a human readable number
838
+ */
839
+ const spotQuantityToChainQuantity = ({ value, baseDecimals = 18 }) => new $BigNumber(value).multipliedBy(new $BigNumber(10).pow(baseDecimals));
840
+ /**
841
+ * Amount that the chain requires is in the x * 10^(baseDecimals) format
842
+ * where x is a human readable number
843
+ */
844
+ const spotQuantityToChainQuantityToFixed = ({ value, baseDecimals = 18, tensMultiplier, decimalPlaces = void 0, roundingMode = BigNumber.ROUND_DOWN }) => {
845
+ const valueToBn = toBigNumber(value).toFixed();
846
+ const number = toChainFormat(tensMultiplier ? formatPriceToAllowablePrice(valueToBn, tensMultiplier) : value, baseDecimals);
847
+ if (decimalPlaces === void 0) return number.toFixed();
848
+ return number.toFixed(getSignificantDecimalsFromNumber(number), roundingMode);
849
+ };
850
+ /**
851
+ * @deprecated use toHumanReadable from injectivelabs/utils instead
852
+ *
853
+ * Amount that the chain returns is in the x * 10^(baseDecimals) format
854
+ * where x is a human readable number
855
+ */
856
+ const spotQuantityFromChainQuantity = ({ value, baseDecimals = 18 }) => new $BigNumber(value).dividedBy(new $BigNumber(10).pow(baseDecimals));
857
+ /**
858
+ * Amount that the chain returns is in the x * 10^(baseDecimals) format
859
+ * where x is a human readable number
860
+ */
861
+ const spotQuantityFromChainQuantityToFixed = ({ value, baseDecimals = 18, decimalPlaces = void 0, roundingMode = BigNumber.ROUND_DOWN }) => {
862
+ const number = toHumanReadable(value, baseDecimals);
863
+ if (decimalPlaces === void 0) return number.toFixed();
864
+ return number.toFixed(getSignificantDecimalsFromNumber(number), roundingMode);
865
+ };
866
+ /**
867
+ * @deprecated use toHumanReadable from injectivelabs/utils instead
868
+ */
869
+ const cosmosSdkDecToBigNumber = (number) => new BigNumber(number).dividedBy(new BigNumber(10).pow(18));
870
+ const numberToCosmosSdkDecString = (value) => {
871
+ return new BigNumber(value).toFixed(18);
872
+ };
873
+ /**
874
+ * This function returns a multiplier of 10
875
+ * based on the input. There are two cases:
876
+ *
877
+ * 1. If the number is less than 1, it returns a NEGATIVE
878
+ * number which is the number of decimals the number has
879
+ *
880
+ * 2. If the number is higher than 1, it returns a POSITIVE
881
+ * number which is the number of 10 multiplier the number has
882
+ *
883
+ * @param number
884
+ * @returns {number}
885
+ */
886
+ const getTensMultiplier = (number) => {
887
+ const numberToBn = new BigNumber(number);
888
+ if (numberToBn.eq(1)) return 0;
889
+ if (numberToBn.lt(1)) return -1 * getExactDecimalsFromNumber(numberToBn.toFixed());
890
+ const [, zerosInTheNumber] = numberToBn.toFixed().split("1");
891
+ return zerosInTheNumber.length;
892
+ };
893
+
894
+ //#endregion
895
+ //#region src/utils/address.ts
896
+ /**
897
+ * Get injective address from Ethereum hex address
898
+ *
899
+ * @param ethAddress string
900
+ * @returns string
901
+ */
902
+ const getInjectiveAddress = (ethAddress) => {
903
+ const addressBuffer = toBytes(ethAddress.toString());
904
+ return bech32.encode("inj", bech32.toWords(addressBuffer));
905
+ };
906
+ /**
907
+ * Get ethereum address from injective bech32 address
908
+ *
909
+ * @param injectiveAddress string
910
+ * @returns string
911
+ */
912
+ const getEthereumAddress = (injectiveAddress) => {
913
+ if (injectiveAddress.startsWith("0x")) return injectiveAddress;
914
+ return `0x${uint8ArrayToHex(bech32.fromWords(bech32.decode(injectiveAddress).words))}`;
915
+ };
916
+ /**
917
+ * Get ethereum address from injective bech32 address
918
+ *
919
+ * @param injectiveAddress string
920
+ * @returns string
921
+ */
922
+ const getInjectiveAddressFromSubaccountId = (subaccountId) => {
923
+ return getInjectiveAddress(subaccountId.slice(0, 42));
924
+ };
925
+ /**
926
+ * Get default subaccount id from injective bech32 address
927
+ *
928
+ * @param injectiveAddress string
929
+ * @returns string
930
+ */
931
+ const getDefaultSubaccountId = (injectiveAddress) => {
932
+ return `0x${uint8ArrayToHex(bech32.fromWords(bech32.decode(injectiveAddress).words))}${"0".repeat(24)}`;
933
+ };
934
+ /**
935
+ * Get subaccount id from injective bech32 address and an index (defaults to 0)
936
+ * @param injectiveAddress string
937
+ * @param nonce number
938
+ * @returns string
939
+ */
940
+ const getSubaccountId = (injectiveAddress, nonce = 0) => {
941
+ return `0x${uint8ArrayToHex(bech32.fromWords(bech32.decode(injectiveAddress).words))}${"0".repeat(23)}${nonce}`;
942
+ };
943
+ /** @deprecated - use getEthereumAddress */
944
+ const getAddressFromInjectiveAddress = (address) => {
945
+ if (address.startsWith("0x")) return address;
946
+ return `0x${uint8ArrayToHex(bech32.fromWords(bech32.decode(address).words))}`;
947
+ };
948
+ /**
949
+ * Convert Ethereum address to checksummed format (EIP-55)
950
+ * @param ethAddress - Ethereum address (with or without 0x prefix)
951
+ * @returns Checksummed Ethereum address
952
+ */
953
+ const getChecksumAddress = (ethAddress) => {
954
+ const lowercasedAddress = ethAddress.toLowerCase().replace("0x", "");
955
+ const addressHash = keccak256(lowercasedAddress).replace("0x", "");
956
+ return "0x" + lowercasedAddress.split("").map((char, i) => {
957
+ return parseInt(addressHash[i], 16) > 7 ? char.toUpperCase() : char;
958
+ }).join("");
959
+ };
960
+ /**
961
+ * Check if address is a CW20 contract address
962
+ * @param address - Address to check
963
+ * @returns True if address is a CW20 contract address
964
+ */
965
+ const isCw20ContractAddress = (address) => address.length === 42 && address.startsWith("inj");
966
+ /**
967
+ * Add 0x prefix to hex string if not present
968
+ * @param hex - Hex string
969
+ * @returns Hex string with 0x prefix
970
+ */
971
+ const addHexPrefix = (hex) => hex.startsWith("0x") ? hex : `0x${hex}`;
972
+ /**
973
+ * Remove 0x prefix from hex string if present
974
+ * @param hex - Hex string
975
+ * @returns Hex string without 0x prefix
976
+ */
977
+ const removeHexPrefix = (hex) => hex.startsWith("0x") ? hex.slice(2) : hex;
978
+
979
+ //#endregion
980
+ //#region src/utils/transaction.ts
981
+ const recoverTypedSignaturePubKey = async (data, signature) => {
982
+ const publicKeyHex = await recoverPublicKey({
983
+ hash: hashTypedData(data),
984
+ signature
985
+ });
986
+ return `0x${uint8ArrayToHex(secp256k1.ProjectivePoint.fromHex(publicKeyHex.slice(2)).toRawBytes(true))}`;
987
+ };
988
+
989
+ //#endregion
990
+ //#region src/core/accounts/PublicKey.ts
991
+ /**
992
+ * @category Crypto Utility Classes
993
+ */
994
+ var PublicKey = class PublicKey {
995
+ constructor(key, type) {
996
+ _defineProperty(this, "type", void 0);
997
+ _defineProperty(this, "key", void 0);
998
+ this.key = key;
999
+ this.type = type || "/injective.crypto.v1beta1.ethsecp256k1.PubKey";
1000
+ }
1001
+ static fromBase64(publicKey) {
1002
+ return new PublicKey(base64ToUint8Array(publicKey));
1003
+ }
1004
+ static fromBytes(publicKey) {
1005
+ return new PublicKey(publicKey);
1006
+ }
1007
+ static fromHex(pubKey) {
1008
+ return new PublicKey(hexToUint8Array((pubKey.startsWith("0x") ? pubKey.slice(2) : pubKey).toString()));
1009
+ }
1010
+ static fromPrivateKeyHex(privateKey) {
1011
+ const isString = typeof privateKey === "string";
1012
+ const privateKeyHex = isString && privateKey.startsWith("0x") ? privateKey.slice(2) : privateKey;
1013
+ const privateKeyBuff = isString ? hexToUint8Array(privateKeyHex.toString()) : privateKey;
1014
+ return new PublicKey(secp256k1.getPublicKey(privateKeyBuff, true), "/injective.crypto.v1beta1.ethsecp256k1.PubKey");
1015
+ }
1016
+ toPubKeyBytes() {
1017
+ return this.key;
1018
+ }
1019
+ toBase64() {
1020
+ return uint8ArrayToBase64(this.toPubKeyBytes());
1021
+ }
1022
+ toHex() {
1023
+ return uint8ArrayToHex(this.toPubKeyBytes());
1024
+ }
1025
+ /**
1026
+ * Convert the public key to a pubkey in bech32 format.
1027
+ * Note: this does not convert the public key to an address.
1028
+ */
1029
+ toBech32() {
1030
+ return bech32.encode(BECH32_PUBKEY_ACC_PREFIX, bech32.toWords(hexToUint8Array(this.toHex())));
1031
+ }
1032
+ toAddress() {
1033
+ const decompressedPublicKey = decompressPubKey(this.toHex());
1034
+ const addressBuffer = keccak256(toBytes(decompressedPublicKey.startsWith("0x") ? decompressedPublicKey : "0x" + decompressedPublicKey), "bytes").subarray(-20);
1035
+ return Address.fromHex(uint8ArrayToHex(addressBuffer).toLowerCase());
1036
+ }
1037
+ toProto() {
1038
+ const proto = InjectiveCryptoV1Beta1Ethsecp256k1KeysPb.PubKey.create();
1039
+ proto.key = this.key;
1040
+ return proto;
1041
+ }
1042
+ toAny() {
1043
+ const proto = this.toProto();
1044
+ const message = GoogleProtobufAnyPb.Any.create();
1045
+ message.typeUrl = this.type;
1046
+ message.value = InjectiveCryptoV1Beta1Ethsecp256k1KeysPb.PubKey.toBinary(proto);
1047
+ return message;
1048
+ }
1049
+ };
1050
+
1051
+ //#endregion
1052
+ //#region src/core/tx/utils/helpers.ts
1053
+ const createAnyMessage = (msg) => {
1054
+ const message = GoogleProtobufAnyPb.Any.create();
1055
+ message.typeUrl = `${msg.type.startsWith("/") ? "" : "/"}${msg.type}`;
1056
+ message.value = msg.value;
1057
+ return message;
1058
+ };
1059
+ const createAny = (value, type) => {
1060
+ const message = GoogleProtobufAnyPb.Any.create();
1061
+ message.typeUrl = type;
1062
+ message.value = value;
1063
+ return message;
1064
+ };
1065
+ const getInjectiveSignerAddress = (address) => {
1066
+ if (!address) return "";
1067
+ if (address.startsWith("inj")) return address;
1068
+ if (address.startsWith("0x")) return getInjectiveAddress(address);
1069
+ return address;
1070
+ };
1071
+ const getEthereumSignerAddress = (address) => {
1072
+ if (!address) return "";
1073
+ if (address.startsWith("0x")) return address;
1074
+ if (address.startsWith("inj")) return getEthereumAddress(address);
1075
+ return `0x${address}`;
1076
+ };
1077
+
1078
+ //#endregion
1079
+ //#region src/core/tx/utils/tx.ts
1080
+ const getPublicKey = ({ chainId, key }) => {
1081
+ if (typeof key !== "string") return key;
1082
+ let proto;
1083
+ let path;
1084
+ let baseProto;
1085
+ if (chainId.startsWith("injective")) {
1086
+ proto = CosmosCryptoSecp256k1KeysPb.PubKey.create();
1087
+ baseProto = CosmosCryptoSecp256k1KeysPb.PubKey;
1088
+ path = "/injective.crypto.v1beta1.ethsecp256k1.PubKey";
1089
+ } else if (chainId.startsWith("evmos")) {
1090
+ proto = CosmosCryptoSecp256k1KeysPb.PubKey.create();
1091
+ baseProto = CosmosCryptoSecp256k1KeysPb.PubKey;
1092
+ path = "/ethermint.crypto.v1.ethsecp256k1.PubKey";
1093
+ } else {
1094
+ proto = CosmosCryptoSecp256k1KeysPb.PubKey.create();
1095
+ baseProto = CosmosCryptoSecp256k1KeysPb.PubKey;
1096
+ path = "/cosmos.crypto.secp256k1.PubKey";
1097
+ }
1098
+ proto.key = base64ToUint8Array(key);
1099
+ return createAny(baseProto.toBinary(proto), path);
1100
+ };
1101
+ const createBody = ({ message, memo = "", timeoutHeight }) => {
1102
+ const messages = Array.isArray(message) ? message : [message];
1103
+ const txBody = CosmosTxV1Beta1TxPb.TxBody.create();
1104
+ txBody.messages = messages.map((message$1) => createAnyMessage({
1105
+ value: message$1.toBinary(),
1106
+ type: message$1.toDirectSign().type
1107
+ }));
1108
+ txBody.memo = memo;
1109
+ if (timeoutHeight) txBody.timeoutHeight = BigInt(timeoutHeight);
1110
+ return txBody;
1111
+ };
1112
+ const createFee = ({ fee, payer, granter, gasLimit }) => {
1113
+ const feeAmount = CosmosBaseV1Beta1CoinPb.Coin.create();
1114
+ feeAmount.amount = fee.amount;
1115
+ feeAmount.denom = fee.denom;
1116
+ const feeProto = CosmosTxV1Beta1TxPb.Fee.create();
1117
+ feeProto.gasLimit = BigInt(gasLimit);
1118
+ feeProto.amount = [feeAmount];
1119
+ if (payer) feeProto.payer = payer;
1120
+ if (granter) feeProto.granter = granter;
1121
+ return feeProto;
1122
+ };
1123
+ const createSigners = ({ chainId, mode, signers }) => {
1124
+ return signers.map((s) => createSignerInfo({
1125
+ mode,
1126
+ chainId,
1127
+ publicKey: s.pubKey,
1128
+ sequence: s.sequence
1129
+ }));
1130
+ };
1131
+ const createSignerInfo = ({ chainId, publicKey, sequence, mode }) => {
1132
+ const pubKey = getPublicKey({
1133
+ chainId,
1134
+ key: publicKey
1135
+ });
1136
+ const single = CosmosTxV1Beta1TxPb.ModeInfo_Single.create();
1137
+ single.mode = mode;
1138
+ const modeInfo = CosmosTxV1Beta1TxPb.ModeInfo.create();
1139
+ modeInfo.sum = {
1140
+ oneofKind: "single",
1141
+ single
1142
+ };
1143
+ const signerInfo = CosmosTxV1Beta1TxPb.SignerInfo.create();
1144
+ signerInfo.publicKey = pubKey;
1145
+ signerInfo.sequence = BigInt(sequence);
1146
+ signerInfo.modeInfo = modeInfo;
1147
+ return signerInfo;
1148
+ };
1149
+ const createAuthInfo = ({ signerInfo, fee }) => {
1150
+ const authInfo = CosmosTxV1Beta1TxPb.AuthInfo.create();
1151
+ authInfo.signerInfos = signerInfo;
1152
+ authInfo.fee = fee;
1153
+ return authInfo;
1154
+ };
1155
+ const createSignDoc = ({ bodyBytes, authInfoBytes, chainId, accountNumber }) => {
1156
+ const signDoc = CosmosTxV1Beta1TxPb.SignDoc.create();
1157
+ signDoc.accountNumber = BigInt(accountNumber);
1158
+ signDoc.chainId = chainId;
1159
+ signDoc.bodyBytes = bodyBytes;
1160
+ signDoc.authInfoBytes = authInfoBytes;
1161
+ return signDoc;
1162
+ };
1163
+ const createSignDocFromTransaction = (args) => {
1164
+ return CosmosTxV1Beta1TxPb.SignDoc.create({
1165
+ bodyBytes: args.txRaw.bodyBytes,
1166
+ authInfoBytes: args.txRaw.authInfoBytes,
1167
+ accountNumber: BigInt(args.accountNumber),
1168
+ chainId: args.chainId
1169
+ });
1170
+ };
1171
+ const createTxRawEIP712 = (txRaw, extension, nonCriticalExtension) => {
1172
+ const body = CosmosTxV1Beta1TxPb.TxBody.fromBinary(txRaw.bodyBytes);
1173
+ body.extensionOptions = [createAny(InjectiveTypesV1Beta1TxExtPb.ExtensionOptionsWeb3Tx.toBinary(extension), "/injective.types.v1beta1.ExtensionOptionsWeb3Tx")];
1174
+ if (nonCriticalExtension) body.nonCriticalExtensionOptions = Array.isArray(nonCriticalExtension) ? nonCriticalExtension : [nonCriticalExtension];
1175
+ txRaw.bodyBytes = CosmosTxV1Beta1TxPb.TxBody.toBinary(body);
1176
+ return txRaw;
1177
+ };
1178
+ const createWeb3Extension = ({ evmChainId, feePayer, feePayerSig }) => {
1179
+ const web3Extension = InjectiveTypesV1Beta1TxExtPb.ExtensionOptionsWeb3Tx.create();
1180
+ web3Extension.typedDataChainID = BigInt(evmChainId);
1181
+ if (feePayer) web3Extension.feePayer = feePayer;
1182
+ if (feePayerSig) web3Extension.feePayerSig = feePayerSig;
1183
+ return web3Extension;
1184
+ };
1185
+ const createNonCriticalExtensionFromObject = (object) => {
1186
+ return createAny(new TextEncoder().encode(JSON.stringify(object)), "/google.protobuf.Struct");
1187
+ };
1188
+ const getTransactionPartsFromTxRaw = (txRaw) => {
1189
+ const authInfo = CosmosTxV1Beta1TxPb.AuthInfo.fromBinary(txRaw.authInfoBytes);
1190
+ return {
1191
+ body: CosmosTxV1Beta1TxPb.TxBody.fromBinary(txRaw.bodyBytes),
1192
+ authInfo,
1193
+ signatures: txRaw.signatures
1194
+ };
1195
+ };
1196
+ const getAminoStdSignDoc = ({ memo, chainId, accountNumber, timeoutHeight, sequence, gas, msgs }) => ({
1197
+ chain_id: chainId,
1198
+ timeout_height: timeoutHeight || "",
1199
+ account_number: accountNumber.toString(),
1200
+ sequence: sequence.toString(),
1201
+ fee: getStdFee({ gas }),
1202
+ msgs: msgs.map((m) => m.toAmino()),
1203
+ memo: memo || ""
1204
+ });
1205
+
1206
+ //#endregion
1207
+ //#region src/core/tx/eip712/maps.ts
1208
+ const msgExecuteContractType = "wasm/MsgExecuteContract";
1209
+ /**
1210
+ * ONLY USED FOR EIP712_V1
1211
+ *
1212
+ * Function used to generate EIP712 types based on a message object
1213
+ * and its structure (recursive)
1214
+ */
1215
+ const objectKeysToEip712Types = ({ object, messageType, primaryType = "MsgValue" }) => {
1216
+ const numberFieldsWithStringValue = [
1217
+ "order_mask",
1218
+ "order_type",
1219
+ "oracle_type",
1220
+ "round",
1221
+ "expiration_timestamp",
1222
+ "settlement_timestamp",
1223
+ "oracle_scale_factor",
1224
+ "expiry",
1225
+ "option",
1226
+ "proposal_id",
1227
+ "creation_height",
1228
+ "wasm_hook_query_max_gas"
1229
+ ];
1230
+ const stringFieldsWithNumberValue = [
1231
+ "timeout_timestamp",
1232
+ "revision_height",
1233
+ "revision_number"
1234
+ ];
1235
+ const stringFieldsToOmitIfEmpty = ["cid"];
1236
+ const fieldsToOmitIfEmpty = ["admin_info", "order"];
1237
+ const output = /* @__PURE__ */ new Map();
1238
+ const types = new Array();
1239
+ for (const property in snakecaseKeys(object)) {
1240
+ let propertyValue = snakecaseKeys(object)[property];
1241
+ if (property === "@type") continue;
1242
+ if (fieldsToOmitIfEmpty.includes(property) && !propertyValue) continue;
1243
+ const type = typeof propertyValue;
1244
+ if (type === "boolean") types.push({
1245
+ name: property,
1246
+ type: "bool"
1247
+ });
1248
+ else if (type === "number" || type === "bigint" || numberFieldsWithStringValue.includes(property)) types.push({
1249
+ name: property,
1250
+ type: numberTypeToReflectionNumberType(property, messageType)
1251
+ });
1252
+ else if (type === "string") {
1253
+ if (stringFieldsToOmitIfEmpty.includes(property) && !propertyValue) continue;
1254
+ if (stringFieldsWithNumberValue.includes(property)) {
1255
+ types.push({
1256
+ name: property,
1257
+ type: stringTypeToReflectionStringType(property)
1258
+ });
1259
+ continue;
1260
+ }
1261
+ types.push({
1262
+ name: property,
1263
+ type: "string"
1264
+ });
1265
+ } else if (type === "object") if (Array.isArray(propertyValue) && propertyValue.length === 0) throw new GeneralException(/* @__PURE__ */ new Error("Array with length 0 found"));
1266
+ else if (Array.isArray(propertyValue) && propertyValue.length > 0) {
1267
+ const arrayFirstType = typeof propertyValue[0];
1268
+ if (arrayFirstType === "boolean" || arrayFirstType === "number" || arrayFirstType === "string") {
1269
+ for (const arrayEntry in propertyValue) if (typeof arrayEntry !== arrayFirstType) throw new GeneralException(/* @__PURE__ */ new Error("Array with different types found"));
1270
+ if (arrayFirstType === "boolean") types.push({
1271
+ name: property,
1272
+ type: "bool[]"
1273
+ });
1274
+ else if (arrayFirstType === "number") types.push({
1275
+ name: property,
1276
+ type: "number[]"
1277
+ });
1278
+ else if (arrayFirstType === "string") types.push({
1279
+ name: property,
1280
+ type: "string[]"
1281
+ });
1282
+ } else if (arrayFirstType === "object") {
1283
+ const propertyType = getObjectEip712PropertyType({
1284
+ property: snakeToPascal(property),
1285
+ parentProperty: primaryType,
1286
+ messageType
1287
+ });
1288
+ const recursiveOutput = objectKeysToEip712Types({
1289
+ object: propertyValue[0],
1290
+ primaryType: propertyType,
1291
+ messageType
1292
+ });
1293
+ const recursiveTypes = recursiveOutput.get(propertyType);
1294
+ types.push({
1295
+ name: property,
1296
+ type: `${propertyType}[]`
1297
+ });
1298
+ output.set(propertyType, recursiveTypes);
1299
+ for (const key of recursiveOutput.keys()) if (key !== primaryType) output.set(key, recursiveOutput.get(key));
1300
+ } else throw new GeneralException(/* @__PURE__ */ new Error("Array with elements of unknown type found"));
1301
+ } else if (propertyValue instanceof Date) types.push({
1302
+ name: property,
1303
+ type: "string"
1304
+ });
1305
+ else {
1306
+ const propertyType = getObjectEip712PropertyType({
1307
+ property: snakeToPascal(property),
1308
+ parentProperty: primaryType,
1309
+ messageType
1310
+ });
1311
+ const recursiveOutput = objectKeysToEip712Types({
1312
+ object: propertyValue,
1313
+ primaryType: propertyType,
1314
+ messageType
1315
+ });
1316
+ const recursiveTypes = recursiveOutput.get(propertyType);
1317
+ types.push({
1318
+ name: property,
1319
+ type: propertyType
1320
+ });
1321
+ output.set(propertyType, recursiveTypes);
1322
+ for (const key of recursiveOutput.keys()) if (key !== primaryType) output.set(key, recursiveOutput.get(key));
1323
+ }
1324
+ else throw new GeneralException(/* @__PURE__ */ new Error(`Type ${property} not found`));
1325
+ }
1326
+ output.set(primaryType, types);
1327
+ return output;
1328
+ };
1329
+ /**
1330
+ * JavaScript doesn't know the exact number types that
1331
+ * we represent these fields on chain so we have to map
1332
+ * them in their chain representation from the number value
1333
+ * that is available in JavaScript
1334
+ */
1335
+ const numberTypeToReflectionNumberType = (property, messageType) => {
1336
+ const msgTypeKey = messageType;
1337
+ const messageTypeToNumberTypeMaps = {
1338
+ "cosmos-sdk/MsgSubmitProposal": {
1339
+ status: "int32",
1340
+ base_decimals: "uint32",
1341
+ quote_decimals: "uint32"
1342
+ },
1343
+ "injective/tokenfactory/set-denom-metadata": { decimals: "uint32" },
1344
+ "injective/tokenfactory/create-denom": { decimals: "uint32" },
1345
+ "exchange/MsgAdminUpdateBinaryOptionsMarket": {
1346
+ status: "int32",
1347
+ expiration_timestamp: "int64",
1348
+ settlement_timestamp: "int64"
1349
+ },
1350
+ "exchange/MsgInstantBinaryOptionsMarketLaunch": {
1351
+ status: "int32",
1352
+ expiration_timestamp: "int64",
1353
+ settlement_timestamp: "int64"
1354
+ },
1355
+ "exchange/MsgInstantSpotMarketLaunch": {
1356
+ base_decimals: "uint32",
1357
+ quote_decimals: "uint32"
1358
+ }
1359
+ };
1360
+ if (msgTypeKey && messageTypeToNumberTypeMaps[msgTypeKey] && property) {
1361
+ const type = messageTypeToNumberTypeMaps[msgTypeKey];
1362
+ const typeKey = property;
1363
+ if (type[typeKey]) return type[typeKey];
1364
+ }
1365
+ switch (property) {
1366
+ case "order_mask": return "int32";
1367
+ case "timeout_timestamp": return "timeout_timestamp";
1368
+ case "revision_number": return "uint64";
1369
+ case "revision_height": return "uint64";
1370
+ case "order_type": return "int32";
1371
+ case "admin_permissions": return "uint32";
1372
+ case "oracle_scale_factor": return "uint32";
1373
+ case "oracle_type": return "int32";
1374
+ case "exponent": return "uint32";
1375
+ case "round": return "uint64";
1376
+ case "oracle_scale_factor": return "uint64";
1377
+ case "expiry": return "int64";
1378
+ case "creation_height": return "int64";
1379
+ case "option": return "int32";
1380
+ case "proposal_id": return "uint64";
1381
+ default: return "uint64";
1382
+ }
1383
+ };
1384
+ /**
1385
+ * JavaScript doesn't know the exact string types that
1386
+ * we represent these fields on chain so we have to map
1387
+ * them in their chain representation from the string value
1388
+ * that is available in JavaScript
1389
+ */
1390
+ const stringTypeToReflectionStringType = (property) => {
1391
+ switch (property) {
1392
+ case "timeout_timestamp": return "uint64";
1393
+ case "revision_number": return "uint64";
1394
+ case "revision_height": return "uint64";
1395
+ default: return "uint64";
1396
+ }
1397
+ };
1398
+ const getObjectEip712PropertyType = ({ property, parentProperty, messageType }) => {
1399
+ if (messageType === msgExecuteContractType) return appendWasmTypePrefixToPropertyType(property, parentProperty);
1400
+ return appendTypePrefixToPropertyType(property, parentProperty);
1401
+ };
1402
+ /**
1403
+ * Append Wasm Type prefix to a Level0 EIP712 type
1404
+ * including its parent property type
1405
+ */
1406
+ const appendWasmTypePrefixToPropertyType = (property, parentProperty = "") => {
1407
+ const cosmWasmMsgPrefix = "CosmwasmInnerMsgMarker";
1408
+ const propertyWithoutTypePrefix = property.replace("Type", "");
1409
+ if (propertyWithoutTypePrefix === "Msg") return cosmWasmMsgPrefix;
1410
+ return `${parentProperty.replace(cosmWasmMsgPrefix, "") + propertyWithoutTypePrefix}Value`;
1411
+ };
1412
+ /**
1413
+ * Append Type prefix to a Level0 EIP712 type
1414
+ * including its parent property type
1415
+ */
1416
+ const appendTypePrefixToPropertyType = (property, parentProperty = "") => {
1417
+ const propertyWithoutTypePrefix = property.replace("Type", "");
1418
+ return `Type${(parentProperty === "MsgValue" ? "" : parentProperty.replace("Type", "")) + propertyWithoutTypePrefix}`;
1419
+ };
1420
+ /**
1421
+ * Mapping a path type to amino type for messages
1422
+ */
1423
+ const protoTypeToAminoType = (type) => {
1424
+ switch (type.startsWith("/") ? type.substring(1) : type) {
1425
+ case "injective.exchange.v1beta1.MsgDeposit": return "exchange/MsgDeposit";
1426
+ case "injective.exchange.v1beta1.MsgWithdraw": return "exchange/MsgWithdraw";
1427
+ case "injective.exchange.v1beta1.MsgInstantSpotMarketLaunch": return "exchange/MsgInstantSpotMarketLaunch";
1428
+ case "injective.exchange.v1beta1.MsgInstantPerpetualMarketLaunch": return "exchange/MsgInstantPerpetualMarketLaunch";
1429
+ case "injective.exchange.v1beta1.MsgInstantExpiryFuturesMarketLaunch": return "exchange/MsgInstantExpiryFuturesMarketLaunch";
1430
+ case "injective.exchange.v1beta1.MsgCreateSpotLimitOrder": return "exchange/MsgCreateSpotLimitOrder";
1431
+ case "injective.exchange.v1beta1.MsgBatchCreateSpotLimitOrders": return "exchange/MsgBatchCreateSpotLimitOrders";
1432
+ case "injective.exchange.v1beta1.MsgCreateSpotMarketOrder": return "exchange/MsgCreateSpotMarketOrder";
1433
+ case "injective.exchange.v1beta1.MsgCancelSpotOrder": return "exchange/MsgCancelSpotOrder";
1434
+ case "injective.exchange.v1beta1.MsgBatchCancelSpotOrders": return "exchange/MsgBatchCancelSpotOrders";
1435
+ case "injective.exchange.v1beta1.MsgCreateDerivativeLimitOrder": return "exchange/MsgCreateDerivativeLimitOrder";
1436
+ case "injective.exchange.v1beta1.MsgBatchCreateDerivativeLimitOrders": return "exchange/MsgBatchCreateDerivativeLimitOrders";
1437
+ case "injective.exchange.v1beta1.MsgCreateDerivativeMarketOrder": return "exchange/MsgCreateDerivativeMarketOrder";
1438
+ case "injective.exchange.v1beta1.MsgCancelDerivativeOrder": return "exchange/MsgCancelDerivativeOrder";
1439
+ case "injective.exchange.v1beta1.MsgBatchCancelDerivativeOrders": return "exchange/MsgBatchCancelDerivativeOrders";
1440
+ case "injective.exchange.v1beta1.MsgBatchCancelBinaryOptionsOrders": return "exchange/MsgBatchCancelBinaryOptionsOrders";
1441
+ case "injective.exchange.v1beta1.MsgSubaccountTransfer": return "exchange/MsgSubaccountTransfer";
1442
+ case "injective.exchange.v1beta1.MsgExternalTransfer": return "exchange/MsgExternalTransfer";
1443
+ case "injective.exchange.v1beta1.MsgIncreasePositionMargin": return "exchange/MsgIncreasePositionMargin";
1444
+ case "injective.exchange.v1beta1.MsgLiquidatePosition": return "exchange/MsgLiquidatePosition";
1445
+ case "injective.exchange.v1beta1.MsgBatchUpdateOrders": return "exchange/MsgBatchUpdateOrders";
1446
+ case "injective.exchange.v1beta1.MsgExec": return "exchange/MsgExec";
1447
+ case "injective.exchange.v1beta1.MsgRegisterAsDMM": return "exchange/MsgRegisterAsDMM";
1448
+ case "injective.exchange.v1beta1.MsgInstantBinaryOptionsMarketLaunch": return "exchange/MsgInstantBinaryOptionsMarketLaunch";
1449
+ case "injective.exchange.v1beta1.MsgCreateBinaryOptionsLimitOrder": return "exchange/MsgCreateBinaryOptionsLimitOrder";
1450
+ case "injective.exchange.v1beta1.MsgCreateBinaryOptionsMarketOrder": return "exchange/MsgCreateBinaryOptionsMarketOrder";
1451
+ case "injective.exchange.v1beta1.MsgCancelBinaryOptionsOrder": return "exchange/MsgCancelBinaryOptionsOrder";
1452
+ case "injective.exchange.v1beta1.MsgAdminUpdateBinaryOptionsMarket": return "exchange/MsgAdminUpdateBinaryOptionsMarket";
1453
+ case "injective.exchange.v1beta1.ExchangeEnableProposal": return "exchange/ExchangeEnableProposal";
1454
+ case "injective.exchange.v1beta1.BatchExchangeModificationProposal": return "exchange/BatchExchangeModificationProposal";
1455
+ case "injective.exchange.v1beta1.SpotMarketParamUpdateProposal": return "exchange/SpotMarketParamUpdateProposal";
1456
+ case "injective.exchange.v1beta1.SpotMarketLaunchProposal": return "exchange/SpotMarketLaunchProposal";
1457
+ case "injective.exchange.v1beta1.PerpetualMarketLaunchProposal": return "exchange/PerpetualMarketLaunchProposal";
1458
+ case "injective.exchange.v1beta1.ExpiryFuturesMarketLaunchProposal": return "exchange/ExpiryFuturesMarketLaunchProposal";
1459
+ case "injective.exchange.v1beta1.DerivativeMarketParamUpdateProposal": return "exchange/DerivativeMarketParamUpdateProposal";
1460
+ case "injective.exchange.v1beta1.MarketForcedSettlementProposal": return "exchange/MarketForcedSettlementProposal";
1461
+ case "injective.exchange.v1beta1.UpdateDenomDecimalsProposal": return "exchange/UpdateDenomDecimalsProposal";
1462
+ case "injective.exchange.v1beta1.TradingRewardCampaignLaunchProposal": return "exchange/TradingRewardCampaignLaunchProposal";
1463
+ case "injective.exchange.v1beta1.TradingRewardCampaignUpdateProposal": return "exchange/TradingRewardCampaignUpdateProposal";
1464
+ case "injective.exchange.v1beta1.TradingRewardPendingPointsUpdateProposal": return "exchange/TradingRewardPendingPointsUpdateProposal";
1465
+ case "injective.exchange.v1beta1.FeeDiscountProposal": return "exchange/FeeDiscountProposal";
1466
+ case "injective.exchange.v1beta1.BatchCommunityPoolSpendProposal": return "exchange/BatchCommunityPoolSpendProposal";
1467
+ case "injective.exchange.v1beta1.BinaryOptionsMarketParamUpdateProposal": return "exchange/BinaryOptionsMarketParamUpdateProposal";
1468
+ case "injective.exchange.v1beta1.BinaryOptionsMarketLaunchProposal": return "exchange/BinaryOptionsMarketLaunchProposal";
1469
+ case "injective.exchange.v1beta1.MsgTransferAndExecute": return "exchange/MsgTransferAndExecute";
1470
+ case "injective.exchange.v2.MsgUpdateSpotMarket": return "exchange/MsgUpdateSpotMarket";
1471
+ case "injective.exchange.v2.MsgUpdateDerivativeMarket": return "exchange/MsgUpdateDerivativeMarket";
1472
+ case "injective.exchange.v1beta1.CreateSpotLimitOrderAuthz": return "exchange/CreateSpotLimitOrderAuthz";
1473
+ case "injective.exchange.v1beta1.CreateSpotMarketOrderAuthz": return "exchange/CreateSpotMarketOrderAuthz";
1474
+ case "injective.exchange.v1beta1.BatchCreateSpotLimitOrdersAuthz": return "exchange/BatchCreateSpotLimitOrdersAuthz";
1475
+ case "injective.exchange.v1beta1.CancelSpotOrderAuthz": return "exchange/CancelSpotOrderAuthz";
1476
+ case "injective.exchange.v1beta1.BatchCancelSpotOrdersAuthz": return "exchange/BatchCancelSpotOrdersAuthz";
1477
+ case "injective.exchange.v1beta1.CreateDerivativeLimitOrderAuthz": return "exchange/CreateDerivativeLimitOrderAuthz";
1478
+ case "injective.exchange.v1beta1.CreateDerivativeMarketOrderAuthz": return "exchange/CreateDerivativeMarketOrderAuthz";
1479
+ case "injective.exchange.v1beta1.BatchCreateDerivativeLimitOrdersAuthz": return "exchange/BatchCreateDerivativeLimitOrdersAuthz";
1480
+ case "injective.exchange.v1beta1.CancelDerivativeOrderAuthz": return "exchange/CancelDerivativeOrderAuthz";
1481
+ case "injective.exchange.v1beta1.BatchCancelDerivativeOrdersAuthz": return "exchange/BatchCancelDerivativeOrdersAuthz";
1482
+ case "injective.exchange.v1beta1.BatchUpdateOrdersAuthz": return "exchange/BatchUpdateOrdersAuthz";
1483
+ case "injective.exchange.v2.MsgSetDelegationTransferReceivers": return "exchange/MsgSetDelegationTransferReceivers";
1484
+ case "injective.auction.v1beta1.MsgBid": return "auction/MsgBid";
1485
+ case "injective.insurance.v1beta1.MsgCreateInsuranceFund": return "insurance/MsgCreateInsuranceFund";
1486
+ case "injective.insurance.v1beta1.MsgUnderwrite": return "insurance/MsgUnderwrite";
1487
+ case "injective.insurance.v1beta1.MsgRequestRedemption": return "insurance/MsgRequestRedemption";
1488
+ case "injective.peggy.v1beta1.MsgSetOrchestratorAddresses": return "peggy/MsgSetOrchestratorAddresses";
1489
+ case "injective.peggy.v1beta1.MsgValsetConfirm": return "peggy/MsgValsetConfirm";
1490
+ case "injective.peggy.v1beta1.MsgSendToEth": return "peggy/MsgSendToEth";
1491
+ case "injective.peggy.v1beta1.MsgCancelSendToEth": return "peggy/MsgCancelSendToEth";
1492
+ case "injective.peggy.v1beta1.MsgRequestBatch": return "peggy/MsgRequestBatch";
1493
+ case "injective.peggy.v1beta1.MsgConfirmBatch": return "peggy/MsgConfirmBatch";
1494
+ case "injective.peggy.v1beta1.Valset": return "peggy/Valset";
1495
+ case "injective.peggy.v1beta1.MsgDepositClaim": return "peggy/MsgDepositClaim";
1496
+ case "injective.peggy.v1beta1.MsgWithdrawClaim": return "peggy/MsgWithdrawClaim";
1497
+ case "injective.peggy.v1beta1.MsgERC20DeployedClaim": return "peggy/MsgERC20DeployedClaim";
1498
+ case "injective.peggy.v1beta1.MsgValsetUpdatedClaim": return "peggy/MsgValsetUpdatedClaim";
1499
+ case "injective.peggy.v1beta1.OutgoingTxBatch": return "peggy/OutgoingTxBatch";
1500
+ case "injective.peggy.v1beta1.OutgoingTransferTx": return "peggy/OutgoingTransferTx";
1501
+ case "injective.peggy.v1beta1.ERC20Token": return "peggy/ERC20Token";
1502
+ case "injective.peggy.v1beta1.IDSet": return "peggy/IDSet";
1503
+ case "injective.peggy.v1beta1.Attestation": return "peggy/Attestation";
1504
+ case "injective.peggy.v1beta1.MsgSubmitBadSignatureEvidence": return "peggy/MsgSubmitBadSignatureEvidence";
1505
+ case "injective.peggy.v1beta1.BlacklistEthereumAddressesProposal": return "peggy/BlacklistEthereumAddressesProposal";
1506
+ case "injective.peggy.v1beta1.RevokeEthereumBlacklistProposal": return "peggy/RevokeEthereumBlacklistProposal";
1507
+ case "injective.wasmx.v1beta1.ContractRegistrationRequestProposal": return "wasmx/ContractRegistrationRequestProposal";
1508
+ case "injective.wasmx.v1beta1.BatchContractRegistrationRequestProposal": return "wasmx/BatchContractRegistrationRequestProposal";
1509
+ case "injective.tokenfactory.v1beta1.MsgCreateDenom": return "injective/tokenfactory/create-denom";
1510
+ case "injective.tokenfactory.v1beta1.MsgMint": return "injective/tokenfactory/mint";
1511
+ case "injective.tokenfactory.v1beta1.MsgBurn": return "injective/tokenfactory/burn";
1512
+ case "injective.tokenfactory.v1beta1.MsgSetDenomMetadata": return "injective/tokenfactory/set-denom-metadata";
1513
+ case "cosmos.auth.v1beta1.MsgUpdateParams": return "cosmos-sdk/x/auth/MsgUpdateParams";
1514
+ case "cosmos.authz.v1beta1.MsgGrant": return "cosmos-sdk/MsgGrant";
1515
+ case "cosmos.authz.v1beta1.MsgRevoke": return "cosmos-sdk/MsgRevoke";
1516
+ case "cosmos.authz.v1beta1.MsgExec": return "cosmos-sdk/MsgExec";
1517
+ case "cosmos.bank.v1beta1.MsgSend": return "cosmos-sdk/MsgSend";
1518
+ case "cosmos.bank.v1beta1.MsgMultiSend": return "cosmos-sdk/MsgMultiSend";
1519
+ case "cosmos.bank.v1beta1.MsgUpdateParams": return "cosmos-sdk/x/bank/MsgUpdateParams";
1520
+ case "cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward": return "cosmos-sdk/MsgWithdrawDelegationReward";
1521
+ case "cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission": return "cosmos-sdk/MsgWithdrawValCommission";
1522
+ case "cosmos.distribution.v1beta1.MsgSetWithdrawAddress": return "cosmos-sdk/MsgModifyWithdrawAddress";
1523
+ case "cosmos.distribution.v1beta1.MsgFundCommunityPool": return "cosmos-sdk/MsgFundCommunityPool";
1524
+ case "cosmos.distribution.v1beta1.MsgUpdateParams": return "cosmos-sdk/distribution/MsgUpdateParams";
1525
+ case "cosmos.gov.v1beta1.MsgSubmitProposal": return "cosmos-sdk/MsgSubmitProposal";
1526
+ case "cosmos.gov.v1beta1.MsgDeposit": return "cosmos-sdk/MsgDeposit";
1527
+ case "cosmos.gov.v1.MsgDeposit": return "cosmos-sdk/v1/MsgDeposit";
1528
+ case "cosmos.gov.v1beta1.MsgVote": return "cosmos-sdk/MsgVote";
1529
+ case "cosmos.gov.v1.MsgVote": return "cosmos-sdk/v1/MsgVote";
1530
+ case "cosmos.gov.v1beta1.MsgVoteWeighted": return "cosmos-sdk/MsgVoteWeighted";
1531
+ case "cosmos.staking.v1beta1.MsgCreateValidator": return "cosmos-sdk/MsgCreateValidator";
1532
+ case "cosmos.staking.v1beta1.MsgEditValidator": return "cosmos-sdk/MsgEditValidator";
1533
+ case "cosmos.staking.v1beta1.MsgDelegate": return "cosmos-sdk/MsgDelegate";
1534
+ case "cosmos.staking.v1beta1.MsgUndelegate": return "cosmos-sdk/MsgUndelegate";
1535
+ case "cosmos.staking.v1beta1.MsgBeginRedelegate": return "cosmos-sdk/MsgBeginRedelegate";
1536
+ case "cosmos.staking.v1beta1.MsgTransferDelegation": return "cosmos-sdk/MsgTransferDelegation";
1537
+ case "cosmos.staking.v1beta1.MsgCancelUnbondingDelegation": return "cosmos-sdk/MsgCancelUnbondingDelegation";
1538
+ case "cosmos.staking.v1beta1.MsgUpdateParams": return "cosmos-sdk/x/staking/MsgUpdateParams";
1539
+ case "ibc.applications.transfer.v1.MsgTransfer": return "cosmos-sdk/MsgTransfer";
1540
+ case "cosmos.feegrant.v1beta1.MsgGrantAllowance": return "cosmos-sdk/MsgGrantAllowance";
1541
+ case "cosmos.feegrant.v1beta1.MsgRevokeAllowance": return "cosmos-sdk/MsgRevokeAllowance";
1542
+ default: throw new GeneralException(/* @__PURE__ */ new Error("Unknown message type: " + type));
1543
+ }
1544
+ };
1545
+
1546
+ //#endregion
1547
+ //#region src/core/tx/eip712/utils.ts
1548
+ const getEip712Domain = (evmChainId) => {
1549
+ return { domain: {
1550
+ name: "Injective Web3",
1551
+ version: "1.0.0",
1552
+ chainId: "0x" + toBigNumber(evmChainId).toString(16),
1553
+ salt: "0",
1554
+ verifyingContract: "cosmos"
1555
+ } };
1556
+ };
1557
+ const getEip712DomainV2 = (evmChainId) => {
1558
+ return { domain: {
1559
+ name: "Injective Web3",
1560
+ version: "1.0.0",
1561
+ chainId: "0x" + toBigNumber(evmChainId).toString(16),
1562
+ verifyingContract: "0xCcCCccccCCCCcCCCCCCcCcCccCcCCCcCcccccccC",
1563
+ salt: "0"
1564
+ } };
1565
+ };
1566
+ const getDefaultEip712Types = () => {
1567
+ return { types: {
1568
+ EIP712Domain: [
1569
+ {
1570
+ name: "name",
1571
+ type: "string"
1572
+ },
1573
+ {
1574
+ name: "version",
1575
+ type: "string"
1576
+ },
1577
+ {
1578
+ name: "chainId",
1579
+ type: "uint256"
1580
+ },
1581
+ {
1582
+ name: "verifyingContract",
1583
+ type: "string"
1584
+ },
1585
+ {
1586
+ name: "salt",
1587
+ type: "string"
1588
+ }
1589
+ ],
1590
+ Tx: [
1591
+ {
1592
+ name: "account_number",
1593
+ type: "string"
1594
+ },
1595
+ {
1596
+ name: "chain_id",
1597
+ type: "string"
1598
+ },
1599
+ {
1600
+ name: "fee",
1601
+ type: "Fee"
1602
+ },
1603
+ {
1604
+ name: "memo",
1605
+ type: "string"
1606
+ },
1607
+ {
1608
+ name: "msgs",
1609
+ type: "Msg[]"
1610
+ },
1611
+ {
1612
+ name: "sequence",
1613
+ type: "string"
1614
+ },
1615
+ {
1616
+ name: "timeout_height",
1617
+ type: "string"
1618
+ }
1619
+ ],
1620
+ Fee: [{
1621
+ name: "amount",
1622
+ type: "Coin[]"
1623
+ }, {
1624
+ name: "gas",
1625
+ type: "string"
1626
+ }],
1627
+ Coin: [{
1628
+ name: "denom",
1629
+ type: "string"
1630
+ }, {
1631
+ name: "amount",
1632
+ type: "string"
1633
+ }],
1634
+ Msg: [{
1635
+ name: "type",
1636
+ type: "string"
1637
+ }, {
1638
+ name: "value",
1639
+ type: "MsgValue"
1640
+ }]
1641
+ } };
1642
+ };
1643
+ const getDefaultEip712TypesV2 = () => {
1644
+ return { types: {
1645
+ EIP712Domain: [
1646
+ {
1647
+ name: "name",
1648
+ type: "string"
1649
+ },
1650
+ {
1651
+ name: "version",
1652
+ type: "string"
1653
+ },
1654
+ {
1655
+ name: "chainId",
1656
+ type: "uint256"
1657
+ },
1658
+ {
1659
+ name: "verifyingContract",
1660
+ type: "address"
1661
+ },
1662
+ {
1663
+ name: "salt",
1664
+ type: "string"
1665
+ }
1666
+ ],
1667
+ Tx: [{
1668
+ name: "context",
1669
+ type: "string"
1670
+ }, {
1671
+ name: "msgs",
1672
+ type: "string"
1673
+ }]
1674
+ } };
1675
+ };
1676
+ const getEip712Fee = (params) => {
1677
+ const defaultStdFee = getDefaultStdFee();
1678
+ if (!params) return { fee: defaultStdFee };
1679
+ const { amount, gas, feePayer } = {
1680
+ amount: params.amount || defaultStdFee.amount,
1681
+ gas: params.gas || DEFAULT_GAS_LIMIT.toFixed(),
1682
+ feePayer: params.feePayer
1683
+ };
1684
+ return { fee: {
1685
+ ...feePayer && { feePayer },
1686
+ gas,
1687
+ amount
1688
+ } };
1689
+ };
1690
+ const getEip712FeeV2 = (params) => {
1691
+ const defaultStdFee = getDefaultStdFee();
1692
+ if (!params) return { fee: {
1693
+ amount: [{
1694
+ denom: defaultStdFee.amount[0].denom,
1695
+ amount: defaultStdFee.amount[0].amount
1696
+ }],
1697
+ gas: Number(defaultStdFee.gas)
1698
+ } };
1699
+ const amountFromParams = (params.amount || defaultStdFee.amount)[0];
1700
+ const { amount, gas, payer } = {
1701
+ amount: [{
1702
+ denom: amountFromParams.denom,
1703
+ amount: amountFromParams.amount
1704
+ }],
1705
+ gas: Number(params.gas || DEFAULT_GAS_LIMIT.toFixed()),
1706
+ payer: params.feePayer
1707
+ };
1708
+ return { fee: {
1709
+ amount,
1710
+ gas,
1711
+ ...payer && { payer }
1712
+ } };
1713
+ };
1714
+ const getTypesIncludingFeePayer = ({ fee, types }) => {
1715
+ if (!fee) return types;
1716
+ if (!fee.feePayer) return types;
1717
+ types.types["Fee"].unshift({
1718
+ name: "feePayer",
1719
+ type: "string"
1720
+ });
1721
+ return types;
1722
+ };
1723
+ const getEipTxDetails = ({ accountNumber, sequence, timeoutHeight, chainId, memo }) => {
1724
+ return {
1725
+ account_number: accountNumber,
1726
+ chain_id: chainId,
1727
+ timeout_height: timeoutHeight,
1728
+ memo: memo || "",
1729
+ sequence
1730
+ };
1731
+ };
1732
+ const getEipTxContext = ({ accountNumber, sequence, fee, timeoutHeight, chainId, memo }) => {
1733
+ return {
1734
+ account_number: Number(accountNumber),
1735
+ chain_id: chainId,
1736
+ ...getEip712FeeV2(fee),
1737
+ memo: memo || "",
1738
+ sequence: Number(sequence),
1739
+ timeout_height: Number(timeoutHeight)
1740
+ };
1741
+ };
1742
+
1743
+ //#endregion
1744
+ //#region src/core/tx/eip712/eip712.ts
1745
+ const getEip712TypedData = ({ msgs, tx, fee, evmChainId }) => {
1746
+ const messages = Array.isArray(msgs) ? msgs : [msgs];
1747
+ const eip712Msgs = messages.map((m) => m.toEip712());
1748
+ const eip712MessageTypes = messages[0].toEip712Types();
1749
+ return {
1750
+ ...getTypesIncludingFeePayer({
1751
+ fee,
1752
+ types: { types: {
1753
+ ...getDefaultEip712Types().types,
1754
+ ...Object.fromEntries(eip712MessageTypes)
1755
+ } }
1756
+ }),
1757
+ primaryType: "Tx",
1758
+ ...getEip712Domain(evmChainId),
1759
+ message: {
1760
+ ...getEipTxDetails(tx),
1761
+ ...getEip712Fee(fee),
1762
+ msgs: eip712Msgs
1763
+ }
1764
+ };
1765
+ };
1766
+ const getEip712TypedDataV2 = ({ msgs, tx, fee, evmChainId }) => {
1767
+ const eip712Msgs = (Array.isArray(msgs) ? msgs : [msgs]).map((m) => m.toEip712V2());
1768
+ return {
1769
+ ...getDefaultEip712TypesV2(),
1770
+ primaryType: "Tx",
1771
+ ...getEip712DomainV2(evmChainId),
1772
+ message: {
1773
+ context: JSON.stringify(getEipTxContext({
1774
+ ...tx,
1775
+ fee
1776
+ }), (_, value) => typeof value === "bigint" ? value.toString() : value),
1777
+ msgs: JSON.stringify(eip712Msgs, (_, value) => typeof value === "bigint" ? value.toString() : value)
1778
+ }
1779
+ };
1780
+ };
1781
+
1782
+ //#endregion
1783
+ //#region src/core/modules/utils.ts
1784
+ function prepareSignBytes(obj) {
1785
+ if (Array.isArray(obj)) return obj.map(prepareSignBytes);
1786
+ if (typeof obj !== `object` || obj === null) return obj;
1787
+ const sorted = {};
1788
+ Object.keys(obj).sort().forEach((key) => {
1789
+ if (obj[key] === void 0 || obj[key] === null) return;
1790
+ sorted[key] = prepareSignBytes(obj[key]);
1791
+ });
1792
+ return sorted;
1793
+ }
1794
+
1795
+ //#endregion
1796
+ //#region src/core/modules/MsgBase.ts
1797
+ /**
1798
+ * @category Messages
1799
+ */
1800
+ var MsgBase = class {
1801
+ constructor(params) {
1802
+ _defineProperty(this, "params", void 0);
1803
+ this.params = params;
1804
+ }
1805
+ /** @deprecated - use toWeb3Gw instead, renamed for clarity */
1806
+ toWeb3() {
1807
+ return this.toWeb3Gw();
1808
+ }
1809
+ toJSON() {
1810
+ return JSON.stringify(prepareSignBytes(this.toData()));
1811
+ }
1812
+ /**
1813
+ * Returns the types of the message for EIP712
1814
+ */
1815
+ toEip712Types() {
1816
+ const amino = this.toAmino();
1817
+ return objectKeysToEip712Types({
1818
+ object: amino.value,
1819
+ messageType: amino.type
1820
+ });
1821
+ }
1822
+ /**
1823
+ * Returns the values of the message for EIP712
1824
+ */
1825
+ toEip712() {
1826
+ return this.toAmino();
1827
+ }
1828
+ /**
1829
+ * Returns the values of the message for EIP712_V2
1830
+ */
1831
+ toEip712V2() {
1832
+ return this.toWeb3Gw();
1833
+ }
1834
+ toDirectSignJSON() {
1835
+ return JSON.stringify(prepareSignBytes(this.toDirectSign()));
1836
+ }
1837
+ };
1838
+
1839
+ //#endregion
1840
+ //#region src/core/modules/exchange/msgs/MsgSignData.ts
1841
+ /**
1842
+ * @category Messages
1843
+ */
1844
+ var MsgSignData = class MsgSignData extends MsgBase {
1845
+ static fromJSON(params) {
1846
+ return new MsgSignData(params);
1847
+ }
1848
+ toProto() {
1849
+ const { params } = this;
1850
+ return InjectiveExchangeV1Beta1TxPb.MsgSignData.create({
1851
+ signer: hexToUint8Array(getEthereumAddress(params.sender)),
1852
+ data: stringToUint8Array(toUtf8(params.data))
1853
+ });
1854
+ }
1855
+ toData() {
1856
+ const proto = this.toProto();
1857
+ return {
1858
+ "@type": "/injective.exchange.v1beta1.MsgSignData",
1859
+ ...proto
1860
+ };
1861
+ }
1862
+ toAmino() {
1863
+ const proto = this.toProto();
1864
+ return {
1865
+ type: "sign/MsgSignData",
1866
+ value: {
1867
+ signer: uint8ArrayToHex(proto.signer),
1868
+ data: toUtf8(proto.data)
1869
+ }
1870
+ };
1871
+ }
1872
+ toWeb3Gw() {
1873
+ const { value } = this.toAmino();
1874
+ return {
1875
+ "@type": "/injective.exchange.v1beta1.MsgSignData",
1876
+ ...value
1877
+ };
1878
+ }
1879
+ toDirectSign() {
1880
+ return {
1881
+ type: "/injective.exchange.v1beta1.MsgSignData",
1882
+ message: this.toProto()
1883
+ };
1884
+ }
1885
+ toBinary() {
1886
+ return InjectiveExchangeV1Beta1TxPb.MsgSignData.toBinary(this.toProto());
1887
+ }
1888
+ };
1889
+
1890
+ //#endregion
1891
+ //#region src/core/modules/exchange/msgs/MsgIncreasePositionMargin.ts
1892
+ const createMessage = (params) => {
1893
+ return InjectiveExchangeV1Beta1TxPb.MsgIncreasePositionMargin.create({
1894
+ sender: params.injectiveAddress,
1895
+ sourceSubaccountId: params.srcSubaccountId,
1896
+ destinationSubaccountId: params.dstSubaccountId,
1897
+ marketId: params.marketId,
1898
+ amount: params.amount
1899
+ });
1900
+ };
1901
+ /**
1902
+ * @category Messages
1903
+ */
1904
+ var MsgIncreasePositionMargin = class MsgIncreasePositionMargin extends MsgBase {
1905
+ static fromJSON(params) {
1906
+ return new MsgIncreasePositionMargin(params);
1907
+ }
1908
+ toProto() {
1909
+ const { params: initialParams } = this;
1910
+ return createMessage({
1911
+ ...initialParams,
1912
+ amount: toChainFormat(initialParams.amount).toFixed()
1913
+ });
1914
+ }
1915
+ toData() {
1916
+ const proto = this.toProto();
1917
+ return {
1918
+ "@type": "/injective.exchange.v1beta1.MsgIncreasePositionMargin",
1919
+ ...proto
1920
+ };
1921
+ }
1922
+ toAmino() {
1923
+ const { params } = this;
1924
+ return {
1925
+ type: "exchange/MsgIncreasePositionMargin",
1926
+ value: {
1927
+ sender: params.injectiveAddress,
1928
+ source_subaccount_id: params.srcSubaccountId,
1929
+ destination_subaccount_id: params.dstSubaccountId,
1930
+ market_id: params.marketId,
1931
+ amount: params.amount
1932
+ }
1933
+ };
1934
+ }
1935
+ toWeb3Gw() {
1936
+ const { value } = this.toAmino();
1937
+ return {
1938
+ "@type": "/injective.exchange.v1beta1.MsgIncreasePositionMargin",
1939
+ ...value
1940
+ };
1941
+ }
1942
+ toEip712() {
1943
+ const { type, value } = this.toAmino();
1944
+ return {
1945
+ type,
1946
+ value: {
1947
+ ...value,
1948
+ amount: toChainFormat(value.amount).toFixed()
1949
+ }
1950
+ };
1951
+ }
1952
+ toEip712V2() {
1953
+ const { params } = this;
1954
+ return {
1955
+ ...this.toWeb3Gw(),
1956
+ amount: numberToCosmosSdkDecString(params.amount)
1957
+ };
1958
+ }
1959
+ toDirectSign() {
1960
+ return {
1961
+ type: "/injective.exchange.v1beta1.MsgIncreasePositionMargin",
1962
+ message: this.toProto()
1963
+ };
1964
+ }
1965
+ toBinary() {
1966
+ return InjectiveExchangeV1Beta1TxPb.MsgIncreasePositionMargin.toBinary(this.toProto());
1967
+ }
1968
+ };
1969
+
1970
+ //#endregion
1971
+ //#region src/client/chain/types/gov.ts
1972
+ const VoteOptionMap = CosmosGovV1GovPb.VoteOption;
1973
+ const ProposalStatusMap = CosmosGovV1GovPb.ProposalStatus;
1974
+
1975
+ //#endregion
1976
+ //#region src/client/chain/types/wasm.ts
1977
+ const ContractCodeHistoryOperationTypeMap = CosmwasmWasmV1TypesPb.ContractCodeHistoryOperationType;
1978
+
1979
+ //#endregion
1980
+ //#region src/client/chain/types/staking.ts
1981
+ const BondStatus = {
1982
+ UnBonded: "UnBonded",
1983
+ UnBonding: "UnBonding",
1984
+ Bonded: "Bonded"
1985
+ };
1986
+
1987
+ //#endregion
1988
+ //#region src/client/chain/types/exchange.ts
1989
+ const GrpcOrderTypeMap = ExchangePb.OrderType;
1990
+ const OrderTypeMap = ExchangePb.OrderType;
1991
+ const GrpcMarketStatusMap = ExchangePb.MarketStatus;
1992
+
1993
+ //#endregion
1994
+ //#region src/client/chain/types/insurance.ts
1995
+ const OracleTypeMap = OracleType;
1996
+
1997
+ //#endregion
1998
+ //#region src/client/chain/types/permissions.ts
1999
+ const PermissionActionMap = InjectivePermissionsV1Beta1PermissionsPb.Action;
2000
+
2001
+ //#endregion
2002
+ //#region src/client/chain/types/index.ts
2003
+ const ChainModule = { ...ChainErrorModule };
2004
+
2005
+ //#endregion
2006
+ //#region src/core/tx/eip712/MsgDecoder.ts
2007
+ var MsgDecoder = class {
2008
+ static decode(message) {
2009
+ const type = message.typeUrl;
2010
+ switch (true) {
2011
+ case type.includes("MsgIncreasePositionMargin"): {
2012
+ const msg = InjectiveExchangeV1Beta1TxPb.MsgIncreasePositionMargin.fromBinary(message.value);
2013
+ return MsgIncreasePositionMargin.fromJSON({
2014
+ marketId: msg.marketId,
2015
+ injectiveAddress: msg.sender,
2016
+ srcSubaccountId: msg.sourceSubaccountId,
2017
+ dstSubaccountId: msg.destinationSubaccountId,
2018
+ amount: msg.amount
2019
+ });
2020
+ }
2021
+ case type.includes("MsgSignData"): {
2022
+ const msg = InjectiveExchangeV1Beta1TxPb.MsgSignData.fromBinary(message.value);
2023
+ return MsgSignData.fromJSON({
2024
+ data: toUtf8(msg.data),
2025
+ sender: getInjectiveAddress(uint8ArrayToHex(msg.signer))
2026
+ });
2027
+ }
2028
+ default: throw new Error("Unknown message type");
2029
+ }
2030
+ }
2031
+ };
2032
+
2033
+ //#endregion
2034
+ //#region src/core/accounts/PrivateKey.ts
2035
+ /**
2036
+ * Class for wrapping SigningKey that is used for signature creation and public key derivation.
2037
+ *
2038
+ * @category Crypto Utility Classes
2039
+ */
2040
+ var PrivateKey = class PrivateKey {
2041
+ constructor(wallet) {
2042
+ _defineProperty(this, "wallet", void 0);
2043
+ this.wallet = wallet;
2044
+ }
2045
+ /**
2046
+ * Generate new private key with random mnemonic phrase
2047
+ * @returns { privateKey: PrivateKey, mnemonic: string }
2048
+ */
2049
+ static generate() {
2050
+ const mnemonic = generateMnemonic();
2051
+ return {
2052
+ privateKey: PrivateKey.fromMnemonic(mnemonic),
2053
+ mnemonic
2054
+ };
2055
+ }
2056
+ /**
2057
+ * Create a PrivateKey instance from a given mnemonic phrase and a HD derivation path.
2058
+ * If path is not given, default to Band's HD prefix 494 and all other indexes being zeroes.
2059
+ * @param {string} words the mnemonic phrase
2060
+ * @param {string|undefined} path the HD path that follows the BIP32 standard (optional)
2061
+ * @returns {PrivateKey} Initialized PrivateKey object
2062
+ */
2063
+ static fromMnemonic(words, path = DEFAULT_DERIVATION_PATH) {
2064
+ return new PrivateKey(new Wallet(HDNodeWallet.fromPhrase(words, void 0, path).privateKey));
2065
+ }
2066
+ /**
2067
+ * Create a PrivateKey instance from a given private key and a HD derivation path.
2068
+ * If path is not given, default to Band's HD prefix 494 and all other indexes being zeroes.
2069
+ * @param {string} privateKey the private key
2070
+ * @returns {PrivateKey} Initialized PrivateKey object
2071
+ *
2072
+ * @deprecated - use fromHex instead
2073
+ */
2074
+ static fromPrivateKey(privateKey) {
2075
+ return new PrivateKey(new Wallet(privateKey));
2076
+ }
2077
+ /**
2078
+ * Create a PrivateKey instance from a given private key and a HD derivation path.
2079
+ * If path is not given, default to Band's HD prefix 494 and all other indexes being zeroes.
2080
+ * @param {string} privateKey the private key
2081
+ * @returns {PrivateKey} Initialized PrivateKey object
2082
+ */
2083
+ static fromHex(privateKey) {
2084
+ const isString = typeof privateKey === "string";
2085
+ const privateKeyHex = isString && privateKey.startsWith("0x") ? privateKey.slice(2) : privateKey;
2086
+ return new PrivateKey(new Wallet(uint8ArrayToHex(isString ? hexToUint8Array(privateKeyHex.toString()) : privateKey)));
2087
+ }
2088
+ /**
2089
+ * Return the private key in hex
2090
+ * @returns {string}
2091
+ **/
2092
+ toPrivateKeyHex() {
2093
+ return this.wallet.privateKey.startsWith("0x") ? this.wallet.privateKey : `0x${this.wallet.privateKey}`;
2094
+ }
2095
+ /**
2096
+ * Return the PublicKey associated with this private key.
2097
+ * @returns {PublicKey} a Public key that can be used to verify the signatures made with this PrivateKey
2098
+ **/
2099
+ toPublicKey() {
2100
+ return PublicKey.fromPrivateKeyHex(this.wallet.privateKey);
2101
+ }
2102
+ /**
2103
+ * Return the hex address associated with this private key.
2104
+ * @returns {string}
2105
+ */
2106
+ toHex() {
2107
+ return this.wallet.address.startsWith("0x") ? this.wallet.address : `0x${this.wallet.address}`;
2108
+ }
2109
+ /**
2110
+ * Return the Address associated with this private key.
2111
+ * @returns {Address}
2112
+ **/
2113
+ toAddress() {
2114
+ return Address.fromHex(this.toHex());
2115
+ }
2116
+ /**
2117
+ * Return the Bech32 address associated with this private key.
2118
+ * @returns {string}
2119
+ **/
2120
+ toBech32() {
2121
+ return Address.fromHex(this.toHex()).toBech32();
2122
+ }
2123
+ /**
2124
+ * Sign the given message using the wallet's _signingKey function.
2125
+ * @param {string} messageBytes: the message that will be hashed and signed, a Buffer made of bytes
2126
+ * @returns {Uint8Array} a signature of this private key over the given message
2127
+ */
2128
+ sign(messageBytes) {
2129
+ const { wallet } = this;
2130
+ const msgHash = keccak256(messageBytes);
2131
+ const signature = wallet.signingKey.sign(msgHash);
2132
+ const splittedSignature = Signature.from(signature);
2133
+ return getBytes(concat([splittedSignature.r, splittedSignature.s]));
2134
+ }
2135
+ /**
2136
+ * Sign the given message using the edcsa sign_deterministic function.
2137
+ * @param {Buffer} messageBytes: the message that will be hashed and signed, a Buffer made of bytes
2138
+ * @returns {Uint8Array} a signature of this private key over the given message
2139
+ */
2140
+ signEcda(messageBytes) {
2141
+ const { wallet } = this;
2142
+ const msgHash = keccak256(messageBytes);
2143
+ const privateKey = hexToUint8Array(wallet.privateKey.startsWith("0x") ? wallet.privateKey.slice(2) : wallet.privateKey);
2144
+ return secp256k1.sign(toBytes(msgHash), privateKey).toCompactRawBytes();
2145
+ }
2146
+ /**
2147
+ * Sign the given message using the wallet's _signingKey function.
2148
+ * @param {string} messageHashedBytes: the message that will be signed, a Buffer made of bytes
2149
+ * @returns {Uint8Array} a signature of this private key over the given message
2150
+ */
2151
+ signHashed(messageHashedBytes) {
2152
+ const { wallet } = this;
2153
+ const signature = wallet.signingKey.sign(messageHashedBytes);
2154
+ const splittedSignature = Signature.from(signature);
2155
+ return getBytes(concat([splittedSignature.r, splittedSignature.s]));
2156
+ }
2157
+ /**
2158
+ * Sign the given message using the edcsa sign_deterministic function.
2159
+ * @param {Buffer} messageHashedBytes: the message that will be signed, a Buffer made of bytes
2160
+ * @returns {Uint8Array} a signature of this private key over the given message
2161
+ */
2162
+ signHashedEcda(messageHashedBytes) {
2163
+ const { wallet } = this;
2164
+ const privateKey = hexToUint8Array(wallet.privateKey.startsWith("0x") ? wallet.privateKey.slice(2) : wallet.privateKey);
2165
+ return secp256k1.sign(messageHashedBytes, privateKey).toCompactRawBytes();
2166
+ }
2167
+ /**
2168
+ * Sign the given typed data using the edcsa sign_deterministic function.
2169
+ * @param {TypedDataDefinition | any} eip712Data: the typed data that will be hashed and signed
2170
+ * @returns {Uint8Array} a signature of this private key over the given message
2171
+ */
2172
+ async signTypedData(eip712Data) {
2173
+ const { wallet } = this;
2174
+ const privateKeyHex = wallet.privateKey.startsWith("0x") ? wallet.privateKey.slice(2) : wallet.privateKey;
2175
+ const msgHashBytes = hashTypedData(TypedDataUtilsSanitizeData(eip712Data));
2176
+ const privateKey = hexToUint8Array(privateKeyHex);
2177
+ const sig = secp256k1.sign(toBytes(msgHashBytes), privateKey);
2178
+ const signature = sig.toCompactRawBytes();
2179
+ const signatureWithRecovery = new Uint8Array(signature.length + 1);
2180
+ signatureWithRecovery.set(signature);
2181
+ signatureWithRecovery[signature.length] = sig.recovery + 27;
2182
+ return signatureWithRecovery;
2183
+ }
2184
+ /**
2185
+ * Sign the given typed data using the edcsa sign_deterministic function.
2186
+ * @param {Buffer} eip712Data: the typed data that will be signed, a Buffer made of bytes
2187
+ * @returns {Uint8Array} a signature of this private key over the given message
2188
+ */
2189
+ signHashedTypedData(eip712Data) {
2190
+ const { wallet } = this;
2191
+ const privateKey = hexToUint8Array(wallet.privateKey.startsWith("0x") ? wallet.privateKey.slice(2) : wallet.privateKey);
2192
+ return secp256k1.sign(eip712Data, privateKey).toCompactRawBytes();
2193
+ }
2194
+ /**
2195
+ * Verify signature using EIP712 typed data
2196
+ * and the publicKey
2197
+ *
2198
+ * (params are passed as an object)
2199
+ *
2200
+ * @param {string} signature: the signature to verify in hex
2201
+ * @param {any} eip712: the EIP712 typed data to verify against
2202
+ * @param {string} publicKey: the public key to verify against in hex
2203
+ * */
2204
+ static async verifySignature({ signature, eip712, publicKey }) {
2205
+ const publicKeyInHex = publicKey.startsWith("0x") ? publicKey : `0x${publicKey}`;
2206
+ const recoveredPubKey = await recoverTypedSignaturePubKey(eip712, signature);
2207
+ const recoveredPubKeyInHex = recoveredPubKey.startsWith("0x") ? recoveredPubKey : `0x${recoveredPubKey}`;
2208
+ /** uncompressed/compressed key */
2209
+ if (publicKeyInHex.length !== recoveredPubKeyInHex.length) return recoveredPubKeyInHex.substring(0, publicKeyInHex.length) === publicKeyInHex;
2210
+ return publicKeyInHex === recoveredPubKeyInHex;
2211
+ }
2212
+ /**
2213
+ * Verify signature using EIP712 typed data
2214
+ * and the publicKey
2215
+ *
2216
+ * (params are passed as an object)
2217
+ *
2218
+ * @param {string} signature: the signature to verify in hex
2219
+ * @param {any} eip712: the EIP712 typed data to verify against
2220
+ * @param {string} publicKey: the public key to verify against in hex
2221
+ * */
2222
+ async verifyThisPkSignature({ signature, eip712 }) {
2223
+ const publicKeyInHex = `0x${this.toPublicKey().toHex()}`;
2224
+ const recoveredPubKey = await recoverTypedSignaturePubKey(eip712, signature);
2225
+ const recoveredPubKeyInHex = recoveredPubKey.startsWith("0x") ? recoveredPubKey : `0x${recoveredPubKey}`;
2226
+ /** uncompressed/compressed key */
2227
+ if (publicKeyInHex.length !== recoveredPubKeyInHex.length) return recoveredPubKeyInHex.substring(0, publicKeyInHex.length) === publicKeyInHex;
2228
+ return publicKeyInHex === recoveredPubKeyInHex;
2229
+ }
2230
+ /**
2231
+ * Verify cosmos signature EIP712 typed
2232
+ * data from the TxRaw and verify the signature
2233
+ * that's included in the TxRaw
2234
+ *
2235
+ * (params are passed as an object)
2236
+ *
2237
+ * @param {CosmosTxV1Beta1TxPb.TxRaw} txRaw: the signature to verify in hex
2238
+ * @param {object} signer: the public key and the account number to verify against
2239
+ **/
2240
+ static async verifyCosmosSignature({ txRaw, signer }) {
2241
+ const { body, authInfo, signatures } = getTransactionPartsFromTxRaw(txRaw);
2242
+ if (authInfo.signerInfos.length > 1 || signatures.length > 1) throw new GeneralException(/* @__PURE__ */ new Error("Validation of multiple signers is not supported"));
2243
+ if (body.messages.length > 1) throw new GeneralException(/* @__PURE__ */ new Error("Validation of multiple messages is not supported"));
2244
+ const getChainIds = () => {
2245
+ if (!body.extensionOptions.length) return {
2246
+ chainId: ChainId.Mainnet,
2247
+ EvmChainId: EvmChainId.Mainnet
2248
+ };
2249
+ const extension = body.extensionOptions.find((extension$1) => extension$1.typeUrl.includes("ExtensionOptionsWeb3Tx"));
2250
+ if (!extension) return {
2251
+ chainId: ChainId.Mainnet,
2252
+ EvmChainId: EvmChainId.Mainnet
2253
+ };
2254
+ const decodedExtension = InjectiveTypesV1Beta1TxExtPb.ExtensionOptionsWeb3Tx.fromBinary(extension.value);
2255
+ const evmChainId$1 = Number(decodedExtension.typedDataChainID);
2256
+ return {
2257
+ evmChainId: EvmChainId,
2258
+ chainId: [
2259
+ EvmChainId.Kovan,
2260
+ EvmChainId.Goerli,
2261
+ EvmChainId.Sepolia
2262
+ ].includes(evmChainId$1) ? ChainId.Testnet : ChainId.Mainnet
2263
+ };
2264
+ };
2265
+ const { evmChainId, chainId } = getChainIds();
2266
+ const [signerInfo] = authInfo.signerInfos;
2267
+ const [signature] = signatures;
2268
+ const [msg] = body.messages;
2269
+ const eip712TypedData = getEip712TypedData({
2270
+ msgs: [MsgDecoder.decode(msg)],
2271
+ fee: authInfo.fee,
2272
+ tx: {
2273
+ memo: body.memo,
2274
+ accountNumber: signer.accountNumber.toString(),
2275
+ sequence: signerInfo.sequence.toString(),
2276
+ timeoutHeight: body.timeoutHeight.toString(),
2277
+ chainId
2278
+ },
2279
+ evmChainId
2280
+ });
2281
+ return await this.verifySignature({
2282
+ eip712: eip712TypedData,
2283
+ signature: uint8ArrayToHex(signature),
2284
+ publicKey: uint8ArrayToHex(base64ToUint8Array(signer.publicKey))
2285
+ });
2286
+ }
2287
+ /**
2288
+ * Verify signature using ADR-36 sign doc
2289
+ * and the publicKey
2290
+ *
2291
+ * (params are passed as an object)
2292
+ *
2293
+ * @param {string} signature: the signature to verify in hex
2294
+ * @param {any} signDoc: the signDoc to verify against
2295
+ * @param {string} publicKey:the public key to verify against in hex
2296
+ * */
2297
+ static verifyArbitrarySignature({ signature, signDoc, publicKey }) {
2298
+ const sigHex = signature.startsWith("0x") ? signature : `0x${signature}`;
2299
+ const pubHex = publicKey.startsWith("0x") ? publicKey : `0x${publicKey}`;
2300
+ return secp256k1.verify(toBytes(sigHex), toBytes(keccak256(signDoc)), toBytes(pubHex));
2301
+ }
2302
+ };
2303
+
2304
+ //#endregion
2305
+ //#region src/core/accounts/BaseAccount.ts
2306
+ /**
2307
+ * @category Utility Classes
2308
+ */
2309
+ var BaseAccount = class BaseAccount extends Address {
2310
+ constructor({ address, accountNumber, sequence, pubKey }) {
2311
+ super(address);
2312
+ _defineProperty(this, "accountNumber", void 0);
2313
+ _defineProperty(this, "sequence", void 0);
2314
+ _defineProperty(this, "pubKey", void 0);
2315
+ this.accountNumber = accountNumber;
2316
+ this.sequence = sequence;
2317
+ this.pubKey = pubKey;
2318
+ }
2319
+ static fromRestApi(accountResponse) {
2320
+ const { base_account: baseAccount } = accountResponse.account;
2321
+ return new BaseAccount({
2322
+ address: baseAccount.address,
2323
+ accountNumber: baseAccount.account_number ? parseInt(baseAccount.account_number, 10) : 0,
2324
+ sequence: baseAccount.sequence ? parseInt(baseAccount.sequence, 10) : 0,
2325
+ pubKey: baseAccount.pub_key ? {
2326
+ type: baseAccount.pub_key["@type"],
2327
+ key: baseAccount.pub_key.key
2328
+ } : {
2329
+ type: "",
2330
+ key: ""
2331
+ }
2332
+ });
2333
+ }
2334
+ static fromRestCosmosApi(accountResponse) {
2335
+ return new BaseAccount({
2336
+ address: accountResponse.address,
2337
+ accountNumber: accountResponse.account_number ? parseInt(accountResponse.account_number, 10) : 0,
2338
+ sequence: accountResponse.sequence ? parseInt(accountResponse.sequence, 10) : 0,
2339
+ pubKey: accountResponse.pub_key ? {
2340
+ type: accountResponse.pub_key["@type"],
2341
+ key: accountResponse.pub_key.key
2342
+ } : {
2343
+ type: "",
2344
+ key: ""
2345
+ }
2346
+ });
2347
+ }
2348
+ incrementSequence() {
2349
+ this.sequence += 1;
2350
+ return this;
2351
+ }
2352
+ toAccountDetails() {
2353
+ return {
2354
+ pubKey: this.pubKey,
2355
+ sequence: this.sequence,
2356
+ address: this.bech32Address,
2357
+ accountNumber: this.accountNumber
2358
+ };
2359
+ }
2360
+ };
2361
+
2362
+ //#endregion
2363
+ //#region src/client/base/BaseRestConsumer.ts
2364
+ /**
2365
+ * @hidden
2366
+ */
2367
+ var BaseRestConsumer = class extends HttpRestClient {};
2368
+
2369
+ //#endregion
2370
+ //#region src/client/chain/rest/ChainRestAuthApi.ts
2371
+ /**
2372
+ * @category Chain Rest API
2373
+ */
2374
+ var ChainRestAuthApi = class extends BaseRestConsumer {
2375
+ /**
2376
+ * Looks up the account information for the Injective address.
2377
+ *
2378
+ * @param address address of account to look up
2379
+ */
2380
+ async fetchAccount(address, params = {}) {
2381
+ const endpoint = `cosmos/auth/v1beta1/accounts/${address}`;
2382
+ try {
2383
+ return (await this.retry(() => this.get(endpoint, params))).data;
2384
+ } catch (e) {
2385
+ if (e instanceof HttpRequestException) throw e;
2386
+ throw new HttpRequestException(new Error(e), {
2387
+ code: UnspecifiedErrorCode,
2388
+ context: `${this.endpoint}/${endpoint}`,
2389
+ contextModule: ChainModule.Auth
2390
+ });
2391
+ }
2392
+ }
2393
+ /**
2394
+ * Looks up the account information for any cosmos chain address.
2395
+ *
2396
+ * @param address address of account to look up
2397
+ */
2398
+ async fetchCosmosAccount(address, params = {}) {
2399
+ const endpoint = `cosmos/auth/v1beta1/accounts/${address}`;
2400
+ try {
2401
+ const isInjectiveAddress = address.startsWith("inj") || address.startsWith("evmos");
2402
+ const response = await this.retry(() => this.get(endpoint, params));
2403
+ return isInjectiveAddress ? response.data.account.base_account : response.data.account;
2404
+ } catch (e) {
2405
+ if (e instanceof HttpRequestException) throw e;
2406
+ throw new HttpRequestException(new Error(e), {
2407
+ code: UnspecifiedErrorCode,
2408
+ context: `${this.endpoint}/${endpoint}`,
2409
+ contextModule: ChainModule.Auth
2410
+ });
2411
+ }
2412
+ }
2413
+ };
2414
+
2415
+ //#endregion
2416
+ //#region src/client/chain/rest/ChainRestTendermintApi.ts
2417
+ /**
2418
+ * @category Chain Rest API
2419
+ */
2420
+ var ChainRestTendermintApi = class extends BaseRestConsumer {
2421
+ async fetchLatestBlock(params = {}) {
2422
+ const endpoint = `cosmos/base/tendermint/v1beta1/blocks/latest`;
2423
+ try {
2424
+ const response = await this.retry(() => this.get(endpoint, params));
2425
+ return response.data.sdk_block || response.data.block;
2426
+ } catch (e) {
2427
+ if (e instanceof HttpRequestException) throw e;
2428
+ throw new HttpRequestException(new Error(e), {
2429
+ code: UnspecifiedErrorCode,
2430
+ context: `${this.endpoint}/${endpoint}`,
2431
+ contextModule: ChainModule.Tendermint
2432
+ });
2433
+ }
2434
+ }
2435
+ async fetchBlock(height, params = {}) {
2436
+ const endpoint = `cosmos/base/tendermint/v1beta1/blocks/${height}`;
2437
+ try {
2438
+ const response = await this.retry(() => this.get(endpoint, params));
2439
+ return response.data.sdk_block || response.data.block;
2440
+ } catch (e) {
2441
+ if (e instanceof HttpRequestException) throw e;
2442
+ throw new HttpRequestException(new Error(e), {
2443
+ code: UnspecifiedErrorCode,
2444
+ context: `${this.endpoint}/${endpoint}`,
2445
+ contextModule: ChainModule.Tendermint
2446
+ });
2447
+ }
2448
+ }
2449
+ async fetchNodeInfo(params = {}) {
2450
+ const endpoint = `cosmos/base/tendermint/v1beta1/node_info`;
2451
+ try {
2452
+ const response = await this.retry(() => this.get(endpoint, params));
2453
+ return {
2454
+ nodeInfo: response.data.default_node_info,
2455
+ applicationVersion: response.data.application_version
2456
+ };
2457
+ } catch (e) {
2458
+ if (e instanceof HttpRequestException) throw e;
2459
+ throw new HttpRequestException(new Error(e), {
2460
+ code: UnspecifiedErrorCode,
2461
+ context: `${this.endpoint}/${endpoint}`,
2462
+ contextModule: ChainModule.Tendermint
2463
+ });
2464
+ }
2465
+ }
2466
+ };
2467
+
2468
+ //#endregion
2469
+ //#region src/core/tx/utils/constants.ts
2470
+ const SIGN_DIRECT = CosmosTxSigningV1Beta1SigningPb.SignMode.DIRECT;
2471
+ const SIGN_AMINO = CosmosTxSigningV1Beta1SigningPb.SignMode.LEGACY_AMINO_JSON;
2472
+ const SIGN_EIP712 = CosmosTxSigningV1Beta1SigningPb.SignMode.LEGACY_AMINO_JSON;
2473
+ const SIGN_EIP712_V2 = CosmosTxSigningV1Beta1SigningPb.SignMode.EIP712_V2;
2474
+
2475
+ //#endregion
2476
+ //#region src/core/tx/tx.ts
2477
+ /**
2478
+ * @typedef {Object} CreateTransactionWithSignersArgs
2479
+ * @param {CreateTransactionWithSignersArgs} params
2480
+ * @property {Msg | Msg[]} message - the Cosmos messages to wrap them in a transaction
2481
+ * @property {string} memo - the memo to attach to the transaction
2482
+ * @property {StdFee} fee - the fee to attach to the transaction
2483
+ * @property {SignerDetails} signers - the signers of the transaction
2484
+ * @property {number} number - the account number to attach to the transaction
2485
+ * @property {number} chainId - the chain-id to attach to the transaction
2486
+ * @property {string} pubKey - the account pubKey to attach to the transaction (in base64)
2487
+ *
2488
+ * @typedef {Object} CreateTransactionResult
2489
+ * @property {TxRaw} txRaw - the Tx raw that was created
2490
+ * @property {SignDoc} signDoc - the SignDoc that was created - used for signing of the transaction
2491
+ * @property {SignerDetails} signers - the signers of the transaction
2492
+ * @property {Uint8Array} bodyBytes - the body bytes of the transaction
2493
+ * @property {Uint8Array} authInfoBytes - the auth info bytes of the transaction
2494
+ * @property {Uint8Array} signBytes - the sign bytes of the transaction (SignDoc serialized to binary)
2495
+ * @property {Uint8Array} signHashedBytes - the sign bytes of the transaction (SignDoc serialized to binary) and hashed using keccak256
2496
+ * @returns {CreateTransactionResult} result
2497
+ */
2498
+ const createTransactionWithSigners = ({ signers, chainId, message, timeoutHeight, memo = "", fee = getDefaultStdFee(), signMode = SIGN_DIRECT }) => {
2499
+ const actualSigners = Array.isArray(signers) ? signers : [signers];
2500
+ const [signer] = actualSigners;
2501
+ const body = createBody({
2502
+ message,
2503
+ memo,
2504
+ timeoutHeight
2505
+ });
2506
+ const actualFee = typeof fee === "string" ? getStdFeeFromString(fee) : fee;
2507
+ const feeMessage = createFee({
2508
+ fee: actualFee.amount[0],
2509
+ payer: actualFee.payer,
2510
+ granter: actualFee.granter,
2511
+ gasLimit: parseInt(actualFee.gas, 10)
2512
+ });
2513
+ const authInfo = createAuthInfo({
2514
+ signerInfo: createSigners({
2515
+ chainId,
2516
+ mode: signMode,
2517
+ signers: actualSigners
2518
+ }),
2519
+ fee: feeMessage
2520
+ });
2521
+ const bodyBytes = CosmosTxV1Beta1TxPb.TxBody.toBinary(body);
2522
+ const authInfoBytes = CosmosTxV1Beta1TxPb.AuthInfo.toBinary(authInfo);
2523
+ const signDoc = createSignDoc({
2524
+ chainId,
2525
+ bodyBytes,
2526
+ authInfoBytes,
2527
+ accountNumber: signer.accountNumber
2528
+ });
2529
+ const signDocBytes = CosmosTxV1Beta1TxPb.SignDoc.toBinary(signDoc);
2530
+ const toSignBytes = signDocBytes;
2531
+ const toSignHash = keccak256(signDocBytes, "bytes");
2532
+ const txRaw = CosmosTxV1Beta1TxPb.TxRaw.create();
2533
+ txRaw.authInfoBytes = authInfoBytes;
2534
+ txRaw.bodyBytes = bodyBytes;
2535
+ return {
2536
+ txRaw,
2537
+ signDoc,
2538
+ signers,
2539
+ signer,
2540
+ signBytes: toSignBytes,
2541
+ signHashedBytes: toSignHash,
2542
+ bodyBytes,
2543
+ authInfoBytes
2544
+ };
2545
+ };
2546
+ /**
2547
+ * @typedef {Object} CreateTransactionArgs
2548
+ * @param {CreateTransactionArgs} params
2549
+ * @property {MsgArg | MsgArg[]} message - the Cosmos messages to wrap them in a transaction
2550
+ * @property {string} memo - the memo to attach to the transaction
2551
+ * @property {StdFee} fee - the fee to attach to the transaction
2552
+ * @property {string} sequence - the account sequence to attach to the transaction
2553
+ * @property {number} number - the account number to attach to the transaction
2554
+ * @property {number} chainId - the chain-id to attach to the transaction
2555
+ * @property {string} pubKey - the account pubKey to attach to the transaction (in base64)
2556
+ *
2557
+ * @typedef {Object} CreateTransactionResult
2558
+ * @property {TxRaw} txRaw // the Tx raw that was created
2559
+ * @property {SignDoc} signDoc // the SignDoc that was created - used for signing of the transaction
2560
+ * @property {number} accountNumber // the account number of the signer of the transaction
2561
+ * @property {Uint8Array} bodyBytes // the body bytes of the transaction
2562
+ * @property {Uint8Array} authInfoBytes // the auth info bytes of the transaction
2563
+ * @property {Uint8Array} signBytes // the sign bytes of the transaction (SignDoc serialized to binary)
2564
+ * @property {Uint8Array} signHashedBytes // the sign bytes of the transaction (SignDoc serialized to binary) and hashed using keccak256
2565
+ * @returns {CreateTransactionResult} result
2566
+ */
2567
+ const createTransaction = (args) => {
2568
+ return createTransactionWithSigners({
2569
+ ...args,
2570
+ signers: {
2571
+ pubKey: args.pubKey,
2572
+ accountNumber: args.accountNumber,
2573
+ sequence: args.sequence
2574
+ }
2575
+ });
2576
+ };
2577
+ /**
2578
+ * Used when we want to pass a Msg class instead of the {type, message}
2579
+ * object of the Message (using the toDirectSign() method)
2580
+ * @returns
2581
+ */
2582
+ const createTransactionFromMsg = (params) => {
2583
+ const messages = Array.isArray(params.message) ? params.message : [params.message];
2584
+ return createTransaction({
2585
+ ...params,
2586
+ message: messages
2587
+ });
2588
+ };
2589
+ /**
2590
+ * Used when we get a DirectSignResponse from
2591
+ * Cosmos native wallets like Keplr, Leap, etc after
2592
+ * the TxRaw has been signed.
2593
+ *
2594
+ * The reason why we need to create a new TxRaw and
2595
+ * not use the one that we passed to signing is that the users
2596
+ * can change the gas fees and that will alter the original
2597
+ * TxRaw which will cause signature miss match if we broadcast
2598
+ * that transaction on chain
2599
+ * @returns TxRaw
2600
+ */
2601
+ const createTxRawFromSigResponse = (response) => {
2602
+ if (response.signed === void 0) return response;
2603
+ const directSignResponse = response;
2604
+ const txRaw = CosmosTxV1Beta1TxPb.TxRaw.create();
2605
+ txRaw.authInfoBytes = directSignResponse.signed.authInfoBytes;
2606
+ txRaw.bodyBytes = directSignResponse.signed.bodyBytes;
2607
+ txRaw.signatures = [base64ToUint8Array(directSignResponse.signature.signature)];
2608
+ return txRaw;
2609
+ };
2610
+ /**
2611
+ * Used when we don't have account details and block details
2612
+ * and we pass the message and the user's address only
2613
+ * @returns
2614
+ */
2615
+ const createTransactionForAddressAndMsg = async (params) => {
2616
+ const messages = Array.isArray(params.message) ? params.message : [params.message];
2617
+ const chainRestAuthApi = new ChainRestAuthApi(params.endpoint);
2618
+ const tendermintRestApi = new ChainRestTendermintApi(params.endpoint);
2619
+ /** Account Details * */
2620
+ const accountDetails = await chainRestAuthApi.fetchCosmosAccount(params.address);
2621
+ const baseAccount = BaseAccount.fromRestCosmosApi(accountDetails);
2622
+ const latestHeight = (await tendermintRestApi.fetchLatestBlock()).header.height;
2623
+ const timeoutHeight = toBigNumber(latestHeight).plus(DEFAULT_BLOCK_TIMEOUT_HEIGHT);
2624
+ if (!(params.pubKey || baseAccount.pubKey.key)) throw new GeneralException(/* @__PURE__ */ new Error(`The pubKey for ${params.address} is missing.`));
2625
+ return createTransaction({
2626
+ ...params,
2627
+ pubKey: params.pubKey || baseAccount.pubKey.key,
2628
+ sequence: Number(baseAccount.sequence),
2629
+ accountNumber: Number(baseAccount.accountNumber),
2630
+ timeoutHeight: timeoutHeight.toNumber(),
2631
+ message: messages
2632
+ });
2633
+ };
2634
+ const createTransactionAndCosmosSignDoc = (args) => {
2635
+ const result = createTransaction(args);
2636
+ const [signer] = Array.isArray(result.signers) ? result.signers : [result.signers];
2637
+ return {
2638
+ ...result,
2639
+ cosmosSignDoc: CosmosTxV1Beta1TxPb.SignDoc.create({
2640
+ bodyBytes: result.bodyBytes,
2641
+ authInfoBytes: result.authInfoBytes,
2642
+ accountNumber: BigInt(signer.accountNumber),
2643
+ chainId: args.chainId
2644
+ })
2645
+ };
2646
+ };
2647
+ const createTransactionAndCosmosSignDocForAddressAndMsg = async (params) => {
2648
+ const result = await createTransactionForAddressAndMsg(params);
2649
+ const [signer] = Array.isArray(result.signers) ? result.signers : [result.signers];
2650
+ return {
2651
+ ...result,
2652
+ cosmosSignDoc: CosmosTxV1Beta1TxPb.SignDoc.create({
2653
+ bodyBytes: result.bodyBytes,
2654
+ authInfoBytes: result.authInfoBytes,
2655
+ accountNumber: BigInt(signer.accountNumber),
2656
+ chainId: params.chainId
2657
+ })
2658
+ };
2659
+ };
2660
+ const getTxRawFromTxRawOrDirectSignResponse = (txRawOrDirectSignResponse) => {
2661
+ return txRawOrDirectSignResponse.signed === void 0 ? txRawOrDirectSignResponse : createTxRawFromSigResponse(txRawOrDirectSignResponse);
2662
+ };
2663
+
2664
+ //#endregion
2665
+ //#region src/core/tx/arbitrary.ts
2666
+ const generateArbitrarySignDoc = (message, signer) => {
2667
+ const signDoc = {
2668
+ account_number: "0",
2669
+ chain_id: "",
2670
+ fee: {
2671
+ amount: [],
2672
+ gas: "0"
2673
+ },
2674
+ memo: "",
2675
+ msgs: [{
2676
+ type: "sign/MsgSignData",
2677
+ value: {
2678
+ data: uint8ArrayToBase64(stringToUint8Array(toUtf8(message))),
2679
+ signer
2680
+ }
2681
+ }],
2682
+ sequence: "0"
2683
+ };
2684
+ const stringified = toUtf8(JSON.stringify(sortObjectByKeys(signDoc)));
2685
+ return {
2686
+ signDoc,
2687
+ signDocBuff: stringified,
2688
+ stringifiedSignDoc: stringified
2689
+ };
2690
+ };
2691
+
2692
+ //#endregion
2693
+ export { createBody as $, fromUtf8 as $n, getExactDecimalsFromNumber as $t, VoteOptionMap as A, messageHash as An, denomAmountFromChainDenomAmountToFixed as At, getEip712DomainV2 as B, _defineProperty as Bn, derivativePriceFromChainPriceToFixed as Bt, OracleTypeMap as C, sortObjectByKeysWithReduce as Cn, getInjectiveAddressFromSubaccountId as Ct, BondStatus as D, decompressPubKey as Dn, amountToCosmosSdkDecAmount as Dt, OrderTypeMap as E, TypedDataUtilsSanitizeData as En, removeHexPrefix as Et, getEip712TypedData as F, publicKeyToAddress as Fn, derivativeMarginFromChainMargin as Ft, getTypesIncludingFeePayer as G, BECH32_PUBKEY_CONS_PREFIX as Gn, derivativeQuantityToChainQuantity as Gt, getEip712FeeV2 as H, BECH32_ADDR_CONS_PREFIX as Hn, derivativePriceToChainPriceToFixed as Ht, getEip712TypedDataV2 as I, ripemd160 as In, derivativeMarginFromChainMarginToFixed as It, objectKeysToEip712Types as J, base64ToUint8Array as Jn, formatAmountToAllowableDecimals as Jt, getObjectEip712PropertyType as K, BECH32_PUBKEY_VAL_PREFIX as Kn, derivativeQuantityToChainQuantityToFixed as Kt, getDefaultEip712Types as L, sanitizeTypedData as Ln, derivativeMarginToChainMargin as Lt, MsgSignData as M, privateKeyHashToPublicKeyBase64 as Mn, denomAmountToChainDenomAmount as Mt, MsgBase as N, privateKeyToPublicKey as Nn, denomAmountToChainDenomAmountToFixed as Nt, ContractCodeHistoryOperationTypeMap as O, domainHash as On, cosmosSdkDecToBigNumber as Ot, prepareSignBytes as P, privateKeyToPublicKeyBase64 as Pn, denomAmountToGrpcChainDenomAmount as Pt, createAuthInfo as Q, fromBase64 as Qn, formatPriceToAllowablePrice as Qt, getDefaultEip712TypesV2 as R, sha256 as Rn, derivativeMarginToChainMarginToFixed as Rt, OracleType as S, sortObjectByKeys as Sn, getInjectiveAddress as St, GrpcOrderTypeMap as T, TypedDataUtilsHashStruct as Tn, isCw20ContractAddress as Tt, getEipTxContext as U, BECH32_ADDR_VAL_PREFIX as Un, derivativeQuantityFromChainQuantity as Ut, getEip712Fee as V, BECH32_ADDR_ACC_PREFIX as Vn, derivativePriceToChainPrice as Vt, getEipTxDetails as W, BECH32_PUBKEY_ACC_PREFIX as Wn, derivativeQuantityFromChainQuantityToFixed as Wt, stringTypeToReflectionStringType as X, binaryToBase64 as Xn, formatNumberToAllowableTensMultiplier as Xt, protoTypeToAminoType as Y, base64ToUtf8 as Yn, formatNumberToAllowableDecimals as Yt, CosmosTxV1Beta1TxPb as Z, concatUint8Arrays as Zn, formatPriceToAllowableDecimals as Zt, BaseAccount as _, isNode as _n, addHexPrefix as _t, createTransactionForAddressAndMsg as a, spotPriceFromChainPriceToFixed as an, toUtf8 as ar, createSigners as at, ChainModule as b, objectToJson as bn, getDefaultSubaccountId as bt, createTxRawFromSigResponse as c, spotQuantityFromChainQuantity as cn, uint8ArrayToString as cr, getAminoStdSignDoc as ct, SIGN_DIRECT as d, spotQuantityToChainQuantityToFixed as dn, createAny as dt, getSignificantDecimalsFromNumber as en, hexToBase64 as er, createFee as et, SIGN_EIP712 as f, getErrorMessage as fn, createAnyMessage as ft, BaseRestConsumer as g, isJsonString as gn, recoverTypedSignaturePubKey as gt, ChainRestAuthApi as h, isBrowser as hn, PublicKey as ht, createTransactionAndCosmosSignDocForAddressAndMsg as i, spotPriceFromChainPrice as in, toBase64 as ir, createSignerInfo as it, MsgIncreasePositionMargin as j, privateKeyHashToPublicKey as jn, denomAmountFromGrpcChainDenomAmount as jt, ProposalStatusMap as k, hashToHex as kn, denomAmountFromChainDenomAmount as kt, getTxRawFromTxRawOrDirectSignResponse as l, spotQuantityFromChainQuantityToFixed as ln, getPublicKey as lt, ChainRestTendermintApi as m, hexToNumber as mn, getInjectiveSignerAddress as mt, createTransaction as n, isNumber as nn, hexToUint8Array as nr, createSignDoc as nt, createTransactionFromMsg as o, spotPriceToChainPrice as on, uint8ArrayToBase64 as or, createTxRawEIP712 as ot, SIGN_EIP712_V2 as p, grpcCoinToUiCoin as pn, getEthereumSignerAddress as pt, numberTypeToReflectionNumberType as q, DEFAULT_DERIVATION_PATH as qn, formatAmountToAllowableAmount as qt, createTransactionAndCosmosSignDoc as r, numberToCosmosSdkDecString as rn, stringToUint8Array as rr, createSignDocFromTransaction as rt, createTransactionWithSigners as s, spotPriceToChainPriceToFixed as sn, uint8ArrayToHex as sr, createWeb3Extension as st, generateArbitrarySignDoc as t, getTensMultiplier as tn, hexToBuff as tr, createNonCriticalExtensionFromObject as tt, SIGN_AMINO as u, spotQuantityToChainQuantity as un, getTransactionPartsFromTxRaw as ut, PrivateKey as v, isReactNative as vn, getAddressFromInjectiveAddress as vt, GrpcMarketStatusMap as w, SignTypedDataVersionV4 as wn, getSubaccountId as wt, PermissionActionMap as x, protoObjectToJson as xn, getEthereumAddress as xt, MsgDecoder as y, isServerSide as yn, getChecksumAddress as yt, getEip712Domain as z, Address as zn, derivativePriceFromChainPrice as zt };