@initia/initia.js 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (597) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +2 -0
  3. package/dist/bundle.js +3 -0
  4. package/dist/bundle.js.LICENSE.txt +39 -0
  5. package/dist/bundle.js.map +1 -0
  6. package/dist/bundle.node.js +3 -0
  7. package/dist/bundle.node.js.LICENSE.txt +33 -0
  8. package/dist/bundle.node.js.map +1 -0
  9. package/dist/client/LocalInitia.d.ts +18 -0
  10. package/dist/client/LocalInitia.js +59 -0
  11. package/dist/client/LocalInitia.js.map +1 -0
  12. package/dist/client/WebSocketClient.d.ts +83 -0
  13. package/dist/client/WebSocketClient.js +216 -0
  14. package/dist/client/WebSocketClient.js.map +1 -0
  15. package/dist/client/index.d.ts +5 -0
  16. package/dist/client/index.js +25 -0
  17. package/dist/client/index.js.map +1 -0
  18. package/dist/client/lcd/APIRequester.d.ts +25 -0
  19. package/dist/client/lcd/APIRequester.js +95 -0
  20. package/dist/client/lcd/APIRequester.js.map +1 -0
  21. package/dist/client/lcd/LCDClient.d.ts +67 -0
  22. package/dist/client/lcd/LCDClient.js +77 -0
  23. package/dist/client/lcd/LCDClient.js.map +1 -0
  24. package/dist/client/lcd/LCDUtils.d.ts +18 -0
  25. package/dist/client/lcd/LCDUtils.js +93 -0
  26. package/dist/client/lcd/LCDUtils.js.map +1 -0
  27. package/dist/client/lcd/Wallet.d.ts +24 -0
  28. package/dist/client/lcd/Wallet.js +127 -0
  29. package/dist/client/lcd/Wallet.js.map +1 -0
  30. package/dist/client/lcd/api/AuthAPI.d.ts +29 -0
  31. package/dist/client/lcd/api/AuthAPI.js +104 -0
  32. package/dist/client/lcd/api/AuthAPI.js.map +1 -0
  33. package/dist/client/lcd/api/AuthzAPI.d.ts +18 -0
  34. package/dist/client/lcd/api/AuthzAPI.js +108 -0
  35. package/dist/client/lcd/api/AuthzAPI.js.map +1 -0
  36. package/dist/client/lcd/api/BankAPI.d.ts +40 -0
  37. package/dist/client/lcd/api/BankAPI.js +122 -0
  38. package/dist/client/lcd/api/BankAPI.js.map +1 -0
  39. package/dist/client/lcd/api/BaseAPI.d.ts +5 -0
  40. package/dist/client/lcd/api/BaseAPI.js +11 -0
  41. package/dist/client/lcd/api/BaseAPI.js.map +1 -0
  42. package/dist/client/lcd/api/DistributionAPI.d.ts +78 -0
  43. package/dist/client/lcd/api/DistributionAPI.js +156 -0
  44. package/dist/client/lcd/api/DistributionAPI.js.map +1 -0
  45. package/dist/client/lcd/api/FeeGrantAPI.d.ts +23 -0
  46. package/dist/client/lcd/api/FeeGrantAPI.js +108 -0
  47. package/dist/client/lcd/api/FeeGrantAPI.js.map +1 -0
  48. package/dist/client/lcd/api/GovAPI.d.ts +119 -0
  49. package/dist/client/lcd/api/GovAPI.js +343 -0
  50. package/dist/client/lcd/api/GovAPI.js.map +1 -0
  51. package/dist/client/lcd/api/IbcAPI.d.ts +87 -0
  52. package/dist/client/lcd/api/IbcAPI.js +229 -0
  53. package/dist/client/lcd/api/IbcAPI.js.map +1 -0
  54. package/dist/client/lcd/api/IbcTransferAPI.d.ts +25 -0
  55. package/dist/client/lcd/api/IbcTransferAPI.js +117 -0
  56. package/dist/client/lcd/api/IbcTransferAPI.js.map +1 -0
  57. package/dist/client/lcd/api/MintAPI.d.ts +35 -0
  58. package/dist/client/lcd/api/MintAPI.js +113 -0
  59. package/dist/client/lcd/api/MintAPI.js.map +1 -0
  60. package/dist/client/lcd/api/MoveAPI.d.ts +29 -0
  61. package/dist/client/lcd/api/MoveAPI.js +148 -0
  62. package/dist/client/lcd/api/MoveAPI.js.map +1 -0
  63. package/dist/client/lcd/api/SlashingAPI.d.ts +56 -0
  64. package/dist/client/lcd/api/SlashingAPI.js +125 -0
  65. package/dist/client/lcd/api/SlashingAPI.js.map +1 -0
  66. package/dist/client/lcd/api/StakingAPI.d.ts +98 -0
  67. package/dist/client/lcd/api/StakingAPI.js +296 -0
  68. package/dist/client/lcd/api/StakingAPI.js.map +1 -0
  69. package/dist/client/lcd/api/TendermintAPI.d.ts +23 -0
  70. package/dist/client/lcd/api/TendermintAPI.js +122 -0
  71. package/dist/client/lcd/api/TendermintAPI.js.map +1 -0
  72. package/dist/client/lcd/api/TxAPI.d.ts +243 -0
  73. package/dist/client/lcd/api/TxAPI.js +491 -0
  74. package/dist/client/lcd/api/TxAPI.js.map +1 -0
  75. package/dist/client/lcd/api/UpgradeAPI.d.ts +28 -0
  76. package/dist/client/lcd/api/UpgradeAPI.js +109 -0
  77. package/dist/client/lcd/api/UpgradeAPI.js.map +1 -0
  78. package/dist/client/lcd/api/index.d.ts +15 -0
  79. package/dist/client/lcd/api/index.js +32 -0
  80. package/dist/client/lcd/api/index.js.map +1 -0
  81. package/dist/core/Block.d.ts +58 -0
  82. package/dist/core/Block.js +3 -0
  83. package/dist/core/Block.js.map +1 -0
  84. package/dist/core/Coin.d.ts +87 -0
  85. package/dist/core/Coin.js +195 -0
  86. package/dist/core/Coin.js.map +1 -0
  87. package/dist/core/Coins.d.ts +120 -0
  88. package/dist/core/Coins.js +259 -0
  89. package/dist/core/Coins.js.map +1 -0
  90. package/dist/core/CompactBitArray.d.ts +23 -0
  91. package/dist/core/CompactBitArray.js +94 -0
  92. package/dist/core/CompactBitArray.js.map +1 -0
  93. package/dist/core/Denom.d.ts +1 -0
  94. package/dist/core/Denom.js +3 -0
  95. package/dist/core/Denom.js.map +1 -0
  96. package/dist/core/Deposit.d.ts +37 -0
  97. package/dist/core/Deposit.js +81 -0
  98. package/dist/core/Deposit.js.map +1 -0
  99. package/dist/core/Fee.d.ts +42 -0
  100. package/dist/core/Fee.js +88 -0
  101. package/dist/core/Fee.js.map +1 -0
  102. package/dist/core/Msg.d.ts +24 -0
  103. package/dist/core/Msg.js +335 -0
  104. package/dist/core/Msg.js.map +1 -0
  105. package/dist/core/MultiSignature.d.ts +17 -0
  106. package/dist/core/MultiSignature.js +57 -0
  107. package/dist/core/MultiSignature.js.map +1 -0
  108. package/dist/core/PublicKey.d.ts +99 -0
  109. package/dist/core/PublicKey.js +274 -0
  110. package/dist/core/PublicKey.js.map +1 -0
  111. package/dist/core/SignDoc.d.ts +54 -0
  112. package/dist/core/SignDoc.js +96 -0
  113. package/dist/core/SignDoc.js.map +1 -0
  114. package/dist/core/SignatureV2.d.ts +66 -0
  115. package/dist/core/SignatureV2.js +131 -0
  116. package/dist/core/SignatureV2.js.map +1 -0
  117. package/dist/core/Tx.d.ts +147 -0
  118. package/dist/core/Tx.js +279 -0
  119. package/dist/core/Tx.js.map +1 -0
  120. package/dist/core/TxInfo.d.ts +91 -0
  121. package/dist/core/TxInfo.js +115 -0
  122. package/dist/core/TxInfo.js.map +1 -0
  123. package/dist/core/ValidatorSet.d.ts +11 -0
  124. package/dist/core/ValidatorSet.js +3 -0
  125. package/dist/core/ValidatorSet.js.map +1 -0
  126. package/dist/core/auth/Account.d.ts +18 -0
  127. package/dist/core/auth/Account.js +62 -0
  128. package/dist/core/auth/Account.js.map +1 -0
  129. package/dist/core/auth/BaseAccount.d.ts +57 -0
  130. package/dist/core/auth/BaseAccount.js +113 -0
  131. package/dist/core/auth/BaseAccount.js.map +1 -0
  132. package/dist/core/auth/BaseVestingAccount.d.ts +58 -0
  133. package/dist/core/auth/BaseVestingAccount.js +123 -0
  134. package/dist/core/auth/BaseVestingAccount.js.map +1 -0
  135. package/dist/core/auth/ContinuousVestingAccount.d.ts +45 -0
  136. package/dist/core/auth/ContinuousVestingAccount.js +116 -0
  137. package/dist/core/auth/ContinuousVestingAccount.js.map +1 -0
  138. package/dist/core/auth/DelayedVestingAccount.d.ts +42 -0
  139. package/dist/core/auth/DelayedVestingAccount.js +108 -0
  140. package/dist/core/auth/DelayedVestingAccount.js.map +1 -0
  141. package/dist/core/auth/PeriodicVestingAccount.d.ts +72 -0
  142. package/dist/core/auth/PeriodicVestingAccount.js +170 -0
  143. package/dist/core/auth/PeriodicVestingAccount.js.map +1 -0
  144. package/dist/core/auth/index.d.ts +6 -0
  145. package/dist/core/auth/index.js +23 -0
  146. package/dist/core/auth/index.js.map +1 -0
  147. package/dist/core/authz/authorizations/Authorization.d.ts +37 -0
  148. package/dist/core/authz/authorizations/Authorization.js +103 -0
  149. package/dist/core/authz/authorizations/Authorization.js.map +1 -0
  150. package/dist/core/authz/authorizations/GenericAuthorization.d.ts +28 -0
  151. package/dist/core/authz/authorizations/GenericAuthorization.js +71 -0
  152. package/dist/core/authz/authorizations/GenericAuthorization.js.map +1 -0
  153. package/dist/core/authz/authorizations/SendAuthorization.d.ts +29 -0
  154. package/dist/core/authz/authorizations/SendAuthorization.js +72 -0
  155. package/dist/core/authz/authorizations/SendAuthorization.js.map +1 -0
  156. package/dist/core/authz/authorizations/StakeAuthorization.d.ts +48 -0
  157. package/dist/core/authz/authorizations/StakeAuthorization.js +122 -0
  158. package/dist/core/authz/authorizations/StakeAuthorization.js.map +1 -0
  159. package/dist/core/authz/authorizations/index.d.ts +4 -0
  160. package/dist/core/authz/authorizations/index.js +21 -0
  161. package/dist/core/authz/authorizations/index.js.map +1 -0
  162. package/dist/core/authz/msgs/MsgExecAuthorized.d.ts +37 -0
  163. package/dist/core/authz/msgs/MsgExecAuthorized.js +85 -0
  164. package/dist/core/authz/msgs/MsgExecAuthorized.js.map +1 -0
  165. package/dist/core/authz/msgs/MsgGrantAuthorization.d.ts +40 -0
  166. package/dist/core/authz/msgs/MsgGrantAuthorization.js +87 -0
  167. package/dist/core/authz/msgs/MsgGrantAuthorization.js.map +1 -0
  168. package/dist/core/authz/msgs/MsgRevokeAuthorization.d.ts +40 -0
  169. package/dist/core/authz/msgs/MsgRevokeAuthorization.js +87 -0
  170. package/dist/core/authz/msgs/MsgRevokeAuthorization.js.map +1 -0
  171. package/dist/core/authz/msgs/index.d.ts +12 -0
  172. package/dist/core/authz/msgs/index.js +20 -0
  173. package/dist/core/authz/msgs/index.js.map +1 -0
  174. package/dist/core/bank/msgs/MsgMultiSend.d.ts +136 -0
  175. package/dist/core/bank/msgs/MsgMultiSend.js +221 -0
  176. package/dist/core/bank/msgs/MsgMultiSend.js.map +1 -0
  177. package/dist/core/bank/msgs/MsgSend.d.ts +47 -0
  178. package/dist/core/bank/msgs/MsgSend.js +91 -0
  179. package/dist/core/bank/msgs/MsgSend.js.map +1 -0
  180. package/dist/core/bank/msgs/index.d.ts +10 -0
  181. package/dist/core/bank/msgs/index.js +19 -0
  182. package/dist/core/bank/msgs/index.js.map +1 -0
  183. package/dist/core/bech32.d.ts +68 -0
  184. package/dist/core/bech32.js +108 -0
  185. package/dist/core/bech32.js.map +1 -0
  186. package/dist/core/crisis/MsgVerifyInvariant.d.ts +43 -0
  187. package/dist/core/crisis/MsgVerifyInvariant.js +77 -0
  188. package/dist/core/crisis/MsgVerifyInvariant.js.map +1 -0
  189. package/dist/core/crisis/index.d.ts +8 -0
  190. package/dist/core/crisis/index.js +18 -0
  191. package/dist/core/crisis/index.js.map +1 -0
  192. package/dist/core/distribution/msgs/MsgFundCommunityPool.d.ts +37 -0
  193. package/dist/core/distribution/msgs/MsgFundCommunityPool.js +83 -0
  194. package/dist/core/distribution/msgs/MsgFundCommunityPool.js.map +1 -0
  195. package/dist/core/distribution/msgs/MsgSetWithdrawAddress.d.ts +41 -0
  196. package/dist/core/distribution/msgs/MsgSetWithdrawAddress.js +87 -0
  197. package/dist/core/distribution/msgs/MsgSetWithdrawAddress.js.map +1 -0
  198. package/dist/core/distribution/msgs/MsgWithdrawDelegatorReward.d.ts +43 -0
  199. package/dist/core/distribution/msgs/MsgWithdrawDelegatorReward.js +89 -0
  200. package/dist/core/distribution/msgs/MsgWithdrawDelegatorReward.js.map +1 -0
  201. package/dist/core/distribution/msgs/MsgWithdrawValidatorCommission.d.ts +37 -0
  202. package/dist/core/distribution/msgs/MsgWithdrawValidatorCommission.js +82 -0
  203. package/dist/core/distribution/msgs/MsgWithdrawValidatorCommission.js.map +1 -0
  204. package/dist/core/distribution/msgs/index.d.ts +14 -0
  205. package/dist/core/distribution/msgs/index.js +21 -0
  206. package/dist/core/distribution/msgs/index.js.map +1 -0
  207. package/dist/core/distribution/proposals/CommunityPoolSpendProposal.d.ts +49 -0
  208. package/dist/core/distribution/proposals/CommunityPoolSpendProposal.js +97 -0
  209. package/dist/core/distribution/proposals/CommunityPoolSpendProposal.js.map +1 -0
  210. package/dist/core/distribution/proposals/index.d.ts +1 -0
  211. package/dist/core/distribution/proposals/index.js +18 -0
  212. package/dist/core/distribution/proposals/index.js.map +1 -0
  213. package/dist/core/feegrant/allowances/AllowedMsgAllowance.d.ts +40 -0
  214. package/dist/core/feegrant/allowances/AllowedMsgAllowance.js +94 -0
  215. package/dist/core/feegrant/allowances/AllowedMsgAllowance.js.map +1 -0
  216. package/dist/core/feegrant/allowances/BasicAllowance.d.ts +40 -0
  217. package/dist/core/feegrant/allowances/BasicAllowance.js +103 -0
  218. package/dist/core/feegrant/allowances/BasicAllowance.js.map +1 -0
  219. package/dist/core/feegrant/allowances/PeriodicAllowance.d.ts +53 -0
  220. package/dist/core/feegrant/allowances/PeriodicAllowance.js +108 -0
  221. package/dist/core/feegrant/allowances/PeriodicAllowance.js.map +1 -0
  222. package/dist/core/feegrant/allowances/index.d.ts +16 -0
  223. package/dist/core/feegrant/allowances/index.js +61 -0
  224. package/dist/core/feegrant/allowances/index.js.map +1 -0
  225. package/dist/core/feegrant/msgs/MsgGrantAllowance.d.ts +46 -0
  226. package/dist/core/feegrant/msgs/MsgGrantAllowance.js +93 -0
  227. package/dist/core/feegrant/msgs/MsgGrantAllowance.js.map +1 -0
  228. package/dist/core/feegrant/msgs/MsgRevokeAllowance.d.ts +40 -0
  229. package/dist/core/feegrant/msgs/MsgRevokeAllowance.js +86 -0
  230. package/dist/core/feegrant/msgs/MsgRevokeAllowance.js.map +1 -0
  231. package/dist/core/feegrant/msgs/index.d.ts +10 -0
  232. package/dist/core/feegrant/msgs/index.js +19 -0
  233. package/dist/core/feegrant/msgs/index.js.map +1 -0
  234. package/dist/core/gov/Proposal.d.ts +96 -0
  235. package/dist/core/gov/Proposal.js +232 -0
  236. package/dist/core/gov/Proposal.js.map +1 -0
  237. package/dist/core/gov/Vote.d.ts +61 -0
  238. package/dist/core/gov/Vote.js +131 -0
  239. package/dist/core/gov/Vote.js.map +1 -0
  240. package/dist/core/gov/msgs/MsgDeposit.d.ts +44 -0
  241. package/dist/core/gov/msgs/MsgDeposit.js +95 -0
  242. package/dist/core/gov/msgs/MsgDeposit.js.map +1 -0
  243. package/dist/core/gov/msgs/MsgSubmitProposal.d.ts +45 -0
  244. package/dist/core/gov/msgs/MsgSubmitProposal.js +92 -0
  245. package/dist/core/gov/msgs/MsgSubmitProposal.js.map +1 -0
  246. package/dist/core/gov/msgs/MsgVote.d.ts +46 -0
  247. package/dist/core/gov/msgs/MsgVote.js +99 -0
  248. package/dist/core/gov/msgs/MsgVote.js.map +1 -0
  249. package/dist/core/gov/msgs/MsgVoteWeighted.d.ts +44 -0
  250. package/dist/core/gov/msgs/MsgVoteWeighted.js +95 -0
  251. package/dist/core/gov/msgs/MsgVoteWeighted.js.map +1 -0
  252. package/dist/core/gov/msgs/index.d.ts +14 -0
  253. package/dist/core/gov/msgs/index.js +21 -0
  254. package/dist/core/gov/msgs/index.js.map +1 -0
  255. package/dist/core/gov/proposals/TextProposal.d.ts +40 -0
  256. package/dist/core/gov/proposals/TextProposal.js +87 -0
  257. package/dist/core/gov/proposals/TextProposal.js.map +1 -0
  258. package/dist/core/gov/proposals/index.d.ts +1 -0
  259. package/dist/core/gov/proposals/index.js +18 -0
  260. package/dist/core/gov/proposals/index.js.map +1 -0
  261. package/dist/core/ibc/applications/fee/Fee.d.ts +39 -0
  262. package/dist/core/ibc/applications/fee/Fee.js +79 -0
  263. package/dist/core/ibc/applications/fee/Fee.js.map +1 -0
  264. package/dist/core/ibc/applications/fee/IdentifiedPacketFee.d.ts +33 -0
  265. package/dist/core/ibc/applications/fee/IdentifiedPacketFee.js +76 -0
  266. package/dist/core/ibc/applications/fee/IdentifiedPacketFee.js.map +1 -0
  267. package/dist/core/ibc/applications/fee/Metadata.d.ts +32 -0
  268. package/dist/core/ibc/applications/fee/Metadata.js +74 -0
  269. package/dist/core/ibc/applications/fee/Metadata.js.map +1 -0
  270. package/dist/core/ibc/applications/fee/PacketFee.d.ts +37 -0
  271. package/dist/core/ibc/applications/fee/PacketFee.js +80 -0
  272. package/dist/core/ibc/applications/fee/PacketFee.js.map +1 -0
  273. package/dist/core/ibc/applications/fee/index.d.ts +7 -0
  274. package/dist/core/ibc/applications/fee/index.js +24 -0
  275. package/dist/core/ibc/applications/fee/index.js.map +1 -0
  276. package/dist/core/ibc/applications/fee/msgs/MsgPayPacketFee.d.ts +42 -0
  277. package/dist/core/ibc/applications/fee/msgs/MsgPayPacketFee.js +92 -0
  278. package/dist/core/ibc/applications/fee/msgs/MsgPayPacketFee.js.map +1 -0
  279. package/dist/core/ibc/applications/fee/msgs/MsgPayPacketFeeAsync.d.ts +34 -0
  280. package/dist/core/ibc/applications/fee/msgs/MsgPayPacketFeeAsync.js +81 -0
  281. package/dist/core/ibc/applications/fee/msgs/MsgPayPacketFeeAsync.js.map +1 -0
  282. package/dist/core/ibc/applications/fee/msgs/MsgRegisterCounterpartAddress.d.ts +34 -0
  283. package/dist/core/ibc/applications/fee/msgs/MsgRegisterCounterpartAddress.js +82 -0
  284. package/dist/core/ibc/applications/fee/msgs/MsgRegisterCounterpartAddress.js.map +1 -0
  285. package/dist/core/ibc/applications/interchain-account/Account.d.ts +32 -0
  286. package/dist/core/ibc/applications/interchain-account/Account.js +74 -0
  287. package/dist/core/ibc/applications/interchain-account/Account.js.map +1 -0
  288. package/dist/core/ibc/applications/interchain-account/Metadata.d.ts +48 -0
  289. package/dist/core/ibc/applications/interchain-account/Metadata.js +94 -0
  290. package/dist/core/ibc/applications/interchain-account/Metadata.js.map +1 -0
  291. package/dist/core/ibc/applications/interchain-account/controller/Params.d.ts +28 -0
  292. package/dist/core/ibc/applications/interchain-account/controller/Params.js +69 -0
  293. package/dist/core/ibc/applications/interchain-account/controller/Params.js.map +1 -0
  294. package/dist/core/ibc/applications/interchain-account/host/Params.d.ts +31 -0
  295. package/dist/core/ibc/applications/interchain-account/host/Params.js +73 -0
  296. package/dist/core/ibc/applications/interchain-account/host/Params.js.map +1 -0
  297. package/dist/core/ibc/applications/interchain-account/index.d.ts +4 -0
  298. package/dist/core/ibc/applications/interchain-account/index.js +24 -0
  299. package/dist/core/ibc/applications/interchain-account/index.js.map +1 -0
  300. package/dist/core/ibc/applications/transfer/index.d.ts +10 -0
  301. package/dist/core/ibc/applications/transfer/index.js +20 -0
  302. package/dist/core/ibc/applications/transfer/index.js.map +1 -0
  303. package/dist/core/ibc/applications/transfer/v1/DenomTrace.d.ts +40 -0
  304. package/dist/core/ibc/applications/transfer/v1/DenomTrace.js +79 -0
  305. package/dist/core/ibc/applications/transfer/v1/DenomTrace.js.map +1 -0
  306. package/dist/core/ibc/applications/transfer/v1/msgs/MsgTransfer.d.ts +61 -0
  307. package/dist/core/ibc/applications/transfer/v1/msgs/MsgTransfer.js +130 -0
  308. package/dist/core/ibc/applications/transfer/v1/msgs/MsgTransfer.js.map +1 -0
  309. package/dist/core/ibc/applications/transfer/v2/FungibleTokenPacketData.d.ts +41 -0
  310. package/dist/core/ibc/applications/transfer/v2/FungibleTokenPacketData.js +85 -0
  311. package/dist/core/ibc/applications/transfer/v2/FungibleTokenPacketData.js.map +1 -0
  312. package/dist/core/ibc/core/channel/Channel.d.ts +53 -0
  313. package/dist/core/ibc/core/channel/Channel.js +100 -0
  314. package/dist/core/ibc/core/channel/Channel.js.map +1 -0
  315. package/dist/core/ibc/core/channel/Counterparty.d.ts +29 -0
  316. package/dist/core/ibc/core/channel/Counterparty.js +71 -0
  317. package/dist/core/ibc/core/channel/Counterparty.js.map +1 -0
  318. package/dist/core/ibc/core/channel/Packet.d.ts +48 -0
  319. package/dist/core/ibc/core/channel/Packet.js +100 -0
  320. package/dist/core/ibc/core/channel/Packet.js.map +1 -0
  321. package/dist/core/ibc/core/channel/PacketId.d.ts +37 -0
  322. package/dist/core/ibc/core/channel/PacketId.js +84 -0
  323. package/dist/core/ibc/core/channel/PacketId.js.map +1 -0
  324. package/dist/core/ibc/core/channel/index.d.ts +2 -0
  325. package/dist/core/ibc/core/channel/index.js +19 -0
  326. package/dist/core/ibc/core/channel/index.js.map +1 -0
  327. package/dist/core/ibc/core/client/ClientConsensusStates.d.ts +32 -0
  328. package/dist/core/ibc/core/client/ClientConsensusStates.js +76 -0
  329. package/dist/core/ibc/core/client/ClientConsensusStates.js.map +1 -0
  330. package/dist/core/ibc/core/client/ConsensusStateWithHeight.d.ts +32 -0
  331. package/dist/core/ibc/core/client/ConsensusStateWithHeight.js +74 -0
  332. package/dist/core/ibc/core/client/ConsensusStateWithHeight.js.map +1 -0
  333. package/dist/core/ibc/core/client/Height.d.ts +40 -0
  334. package/dist/core/ibc/core/client/Height.js +86 -0
  335. package/dist/core/ibc/core/client/Height.js.map +1 -0
  336. package/dist/core/ibc/core/client/IdentifiedClient.d.ts +31 -0
  337. package/dist/core/ibc/core/client/IdentifiedClient.js +73 -0
  338. package/dist/core/ibc/core/client/IdentifiedClient.js.map +1 -0
  339. package/dist/core/ibc/core/commitment/MerklePrefix.d.ts +24 -0
  340. package/dist/core/ibc/core/commitment/MerklePrefix.js +70 -0
  341. package/dist/core/ibc/core/commitment/MerklePrefix.js.map +1 -0
  342. package/dist/core/ibc/core/commitment/MerkleRoot.d.ts +24 -0
  343. package/dist/core/ibc/core/commitment/MerkleRoot.js +60 -0
  344. package/dist/core/ibc/core/commitment/MerkleRoot.js.map +1 -0
  345. package/dist/core/ibc/core/commitment/index.d.ts +2 -0
  346. package/dist/core/ibc/core/commitment/index.js +19 -0
  347. package/dist/core/ibc/core/commitment/index.js.map +1 -0
  348. package/dist/core/ibc/core/connection/Counterparty.d.ts +34 -0
  349. package/dist/core/ibc/core/connection/Counterparty.js +77 -0
  350. package/dist/core/ibc/core/connection/Counterparty.js.map +1 -0
  351. package/dist/core/ibc/core/connection/IdentifiedConnection.d.ts +51 -0
  352. package/dist/core/ibc/core/connection/IdentifiedConnection.js +105 -0
  353. package/dist/core/ibc/core/connection/IdentifiedConnection.js.map +1 -0
  354. package/dist/core/ibc/core/connection/Version.d.ts +28 -0
  355. package/dist/core/ibc/core/connection/Version.js +70 -0
  356. package/dist/core/ibc/core/connection/Version.js.map +1 -0
  357. package/dist/core/ibc/core/connection/index.d.ts +3 -0
  358. package/dist/core/ibc/core/connection/index.js +20 -0
  359. package/dist/core/ibc/core/connection/index.js.map +1 -0
  360. package/dist/core/ibc/core/index.d.ts +3 -0
  361. package/dist/core/ibc/core/index.js +20 -0
  362. package/dist/core/ibc/core/index.js.map +1 -0
  363. package/dist/core/ibc/lightclient/index.d.ts +1 -0
  364. package/dist/core/ibc/lightclient/index.js +18 -0
  365. package/dist/core/ibc/lightclient/index.js.map +1 -0
  366. package/dist/core/ibc/lightclient/tendermint/Header.d.ts +49 -0
  367. package/dist/core/ibc/lightclient/tendermint/Header.js +99 -0
  368. package/dist/core/ibc/lightclient/tendermint/Header.js.map +1 -0
  369. package/dist/core/ibc/msgs/channel/MsgChannelCloseConfirm.d.ts +42 -0
  370. package/dist/core/ibc/msgs/channel/MsgChannelCloseConfirm.js +91 -0
  371. package/dist/core/ibc/msgs/channel/MsgChannelCloseConfirm.js.map +1 -0
  372. package/dist/core/ibc/msgs/channel/MsgChannelCloseInit.d.ts +35 -0
  373. package/dist/core/ibc/msgs/channel/MsgChannelCloseInit.js +82 -0
  374. package/dist/core/ibc/msgs/channel/MsgChannelCloseInit.js.map +1 -0
  375. package/dist/core/ibc/msgs/channel/MsgChannelOpenAck.d.ts +48 -0
  376. package/dist/core/ibc/msgs/channel/MsgChannelOpenAck.js +99 -0
  377. package/dist/core/ibc/msgs/channel/MsgChannelOpenAck.js.map +1 -0
  378. package/dist/core/ibc/msgs/channel/MsgChannelOpenConfirm.d.ts +42 -0
  379. package/dist/core/ibc/msgs/channel/MsgChannelOpenConfirm.js +91 -0
  380. package/dist/core/ibc/msgs/channel/MsgChannelOpenConfirm.js.map +1 -0
  381. package/dist/core/ibc/msgs/channel/MsgChannelOpenInit.d.ts +36 -0
  382. package/dist/core/ibc/msgs/channel/MsgChannelOpenInit.js +83 -0
  383. package/dist/core/ibc/msgs/channel/MsgChannelOpenInit.js.map +1 -0
  384. package/dist/core/ibc/msgs/channel/MsgChannelOpenTry.d.ts +49 -0
  385. package/dist/core/ibc/msgs/channel/MsgChannelOpenTry.js +100 -0
  386. package/dist/core/ibc/msgs/channel/MsgChannelOpenTry.js.map +1 -0
  387. package/dist/core/ibc/msgs/channel/MsgRecvAcknowledgement.d.ts +43 -0
  388. package/dist/core/ibc/msgs/channel/MsgRecvAcknowledgement.js +92 -0
  389. package/dist/core/ibc/msgs/channel/MsgRecvAcknowledgement.js.map +1 -0
  390. package/dist/core/ibc/msgs/channel/MsgRecvPacket.d.ts +40 -0
  391. package/dist/core/ibc/msgs/channel/MsgRecvPacket.js +88 -0
  392. package/dist/core/ibc/msgs/channel/MsgRecvPacket.js.map +1 -0
  393. package/dist/core/ibc/msgs/channel/MsgTimeout.d.ts +43 -0
  394. package/dist/core/ibc/msgs/channel/MsgTimeout.js +96 -0
  395. package/dist/core/ibc/msgs/channel/MsgTimeout.js.map +1 -0
  396. package/dist/core/ibc/msgs/channel/MsgTimeoutClose.d.ts +46 -0
  397. package/dist/core/ibc/msgs/channel/MsgTimeoutClose.js +100 -0
  398. package/dist/core/ibc/msgs/channel/MsgTimeoutClose.js.map +1 -0
  399. package/dist/core/ibc/msgs/channel/index.d.ts +25 -0
  400. package/dist/core/ibc/msgs/channel/index.js +27 -0
  401. package/dist/core/ibc/msgs/channel/index.js.map +1 -0
  402. package/dist/core/ibc/msgs/client/MsgCreateClient.d.ts +35 -0
  403. package/dist/core/ibc/msgs/client/MsgCreateClient.js +82 -0
  404. package/dist/core/ibc/msgs/client/MsgCreateClient.js.map +1 -0
  405. package/dist/core/ibc/msgs/client/MsgSubmitMisbehaviour.d.ts +35 -0
  406. package/dist/core/ibc/msgs/client/MsgSubmitMisbehaviour.js +82 -0
  407. package/dist/core/ibc/msgs/client/MsgSubmitMisbehaviour.js.map +1 -0
  408. package/dist/core/ibc/msgs/client/MsgUpdateClient.d.ts +36 -0
  409. package/dist/core/ibc/msgs/client/MsgUpdateClient.js +83 -0
  410. package/dist/core/ibc/msgs/client/MsgUpdateClient.js.map +1 -0
  411. package/dist/core/ibc/msgs/client/MsgUpgradeClient.d.ts +44 -0
  412. package/dist/core/ibc/msgs/client/MsgUpgradeClient.js +94 -0
  413. package/dist/core/ibc/msgs/client/MsgUpgradeClient.js.map +1 -0
  414. package/dist/core/ibc/msgs/client/Params.d.ts +27 -0
  415. package/dist/core/ibc/msgs/client/Params.js +68 -0
  416. package/dist/core/ibc/msgs/client/Params.js.map +1 -0
  417. package/dist/core/ibc/msgs/client/index.d.ts +13 -0
  418. package/dist/core/ibc/msgs/client/index.js +21 -0
  419. package/dist/core/ibc/msgs/client/index.js.map +1 -0
  420. package/dist/core/ibc/msgs/client/tendermint/crypto.d.ts +54 -0
  421. package/dist/core/ibc/msgs/client/tendermint/crypto.js +124 -0
  422. package/dist/core/ibc/msgs/client/tendermint/crypto.js.map +1 -0
  423. package/dist/core/ibc/msgs/client/tendermint/types.d.ts +233 -0
  424. package/dist/core/ibc/msgs/client/tendermint/types.js +461 -0
  425. package/dist/core/ibc/msgs/client/tendermint/types.js.map +1 -0
  426. package/dist/core/ibc/msgs/client/tendermint/version.d.ts +57 -0
  427. package/dist/core/ibc/msgs/client/tendermint/version.js +124 -0
  428. package/dist/core/ibc/msgs/client/tendermint/version.js.map +1 -0
  429. package/dist/core/ibc/msgs/connection/MsgConnectionOpenAck.d.ts +59 -0
  430. package/dist/core/ibc/msgs/connection/MsgConnectionOpenAck.js +119 -0
  431. package/dist/core/ibc/msgs/connection/MsgConnectionOpenAck.js.map +1 -0
  432. package/dist/core/ibc/msgs/connection/MsgConnectionOpenConfirm.d.ts +40 -0
  433. package/dist/core/ibc/msgs/connection/MsgConnectionOpenConfirm.js +88 -0
  434. package/dist/core/ibc/msgs/connection/MsgConnectionOpenConfirm.js.map +1 -0
  435. package/dist/core/ibc/msgs/connection/MsgConnectionOpenInit.d.ts +43 -0
  436. package/dist/core/ibc/msgs/connection/MsgConnectionOpenInit.js +98 -0
  437. package/dist/core/ibc/msgs/connection/MsgConnectionOpenInit.js.map +1 -0
  438. package/dist/core/ibc/msgs/connection/MsgConnectionOpenTry.d.ts +65 -0
  439. package/dist/core/ibc/msgs/connection/MsgConnectionOpenTry.js +141 -0
  440. package/dist/core/ibc/msgs/connection/MsgConnectionOpenTry.js.map +1 -0
  441. package/dist/core/ibc/msgs/connection/index.d.ts +13 -0
  442. package/dist/core/ibc/msgs/connection/index.js +21 -0
  443. package/dist/core/ibc/msgs/connection/index.js.map +1 -0
  444. package/dist/core/ibc/proposals/ClientUpdateProposal.d.ts +47 -0
  445. package/dist/core/ibc/proposals/ClientUpdateProposal.js +96 -0
  446. package/dist/core/ibc/proposals/ClientUpdateProposal.js.map +1 -0
  447. package/dist/core/ibc/proposals/index.d.ts +1 -0
  448. package/dist/core/ibc/proposals/index.js +18 -0
  449. package/dist/core/ibc/proposals/index.js.map +1 -0
  450. package/dist/core/index.d.ts +48 -0
  451. package/dist/core/index.js +80 -0
  452. package/dist/core/index.js.map +1 -0
  453. package/dist/core/move/MoveCoin.d.ts +28 -0
  454. package/dist/core/move/MoveCoin.js +67 -0
  455. package/dist/core/move/MoveCoin.js.map +1 -0
  456. package/dist/core/move/msgs/MsgConvertMoveCoin.d.ts +37 -0
  457. package/dist/core/move/msgs/MsgConvertMoveCoin.js +83 -0
  458. package/dist/core/move/msgs/MsgConvertMoveCoin.js.map +1 -0
  459. package/dist/core/move/msgs/MsgConvertNativeCoin.d.ts +37 -0
  460. package/dist/core/move/msgs/MsgConvertNativeCoin.js +83 -0
  461. package/dist/core/move/msgs/MsgConvertNativeCoin.js.map +1 -0
  462. package/dist/core/move/msgs/MsgExecuteEntryFunction.d.ts +52 -0
  463. package/dist/core/move/msgs/MsgExecuteEntryFunction.js +102 -0
  464. package/dist/core/move/msgs/MsgExecuteEntryFunction.js.map +1 -0
  465. package/dist/core/move/msgs/MsgExecuteScript.d.ts +44 -0
  466. package/dist/core/move/msgs/MsgExecuteScript.js +92 -0
  467. package/dist/core/move/msgs/MsgExecuteScript.js.map +1 -0
  468. package/dist/core/move/msgs/MsgPublishModuleBundle.d.ts +36 -0
  469. package/dist/core/move/msgs/MsgPublishModuleBundle.js +82 -0
  470. package/dist/core/move/msgs/MsgPublishModuleBundle.js.map +1 -0
  471. package/dist/core/move/msgs/index.d.ts +16 -0
  472. package/dist/core/move/msgs/index.js +22 -0
  473. package/dist/core/move/msgs/index.js.map +1 -0
  474. package/dist/core/move/proposals/PublishStdModuleProposal.d.ts +42 -0
  475. package/dist/core/move/proposals/PublishStdModuleProposal.js +90 -0
  476. package/dist/core/move/proposals/PublishStdModuleProposal.js.map +1 -0
  477. package/dist/core/move/proposals/index.d.ts +1 -0
  478. package/dist/core/move/proposals/index.js +18 -0
  479. package/dist/core/move/proposals/index.js.map +1 -0
  480. package/dist/core/num.d.ts +4 -0
  481. package/dist/core/num.js +28 -0
  482. package/dist/core/num.js.map +1 -0
  483. package/dist/core/params/ParamChange.d.ts +42 -0
  484. package/dist/core/params/ParamChange.js +96 -0
  485. package/dist/core/params/ParamChange.js.map +1 -0
  486. package/dist/core/params/proposals/ParameterChangeProposal.d.ts +68 -0
  487. package/dist/core/params/proposals/ParameterChangeProposal.js +121 -0
  488. package/dist/core/params/proposals/ParameterChangeProposal.js.map +1 -0
  489. package/dist/core/params/proposals/index.d.ts +1 -0
  490. package/dist/core/params/proposals/index.js +18 -0
  491. package/dist/core/params/proposals/index.js.map +1 -0
  492. package/dist/core/slashing/msgs/MsgUnjail.d.ts +40 -0
  493. package/dist/core/slashing/msgs/MsgUnjail.js +85 -0
  494. package/dist/core/slashing/msgs/MsgUnjail.js.map +1 -0
  495. package/dist/core/slashing/msgs/index.d.ts +8 -0
  496. package/dist/core/slashing/msgs/index.js +18 -0
  497. package/dist/core/slashing/msgs/index.js.map +1 -0
  498. package/dist/core/staking/Delegation.d.ts +45 -0
  499. package/dist/core/staking/Delegation.js +91 -0
  500. package/dist/core/staking/Delegation.js.map +1 -0
  501. package/dist/core/staking/Redelegation.d.ts +96 -0
  502. package/dist/core/staking/Redelegation.js +177 -0
  503. package/dist/core/staking/Redelegation.js.map +1 -0
  504. package/dist/core/staking/UnbondingDelegation.d.ts +74 -0
  505. package/dist/core/staking/UnbondingDelegation.js +145 -0
  506. package/dist/core/staking/UnbondingDelegation.js.map +1 -0
  507. package/dist/core/staking/Validator.d.ts +169 -0
  508. package/dist/core/staking/Validator.js +283 -0
  509. package/dist/core/staking/Validator.js.map +1 -0
  510. package/dist/core/staking/msgs/MsgBeginRedelegate.d.ts +51 -0
  511. package/dist/core/staking/msgs/MsgBeginRedelegate.js +99 -0
  512. package/dist/core/staking/msgs/MsgBeginRedelegate.js.map +1 -0
  513. package/dist/core/staking/msgs/MsgCreateValidator.d.ts +64 -0
  514. package/dist/core/staking/msgs/MsgCreateValidator.js +117 -0
  515. package/dist/core/staking/msgs/MsgCreateValidator.js.map +1 -0
  516. package/dist/core/staking/msgs/MsgDelegate.d.ts +46 -0
  517. package/dist/core/staking/msgs/MsgDelegate.js +93 -0
  518. package/dist/core/staking/msgs/MsgDelegate.js.map +1 -0
  519. package/dist/core/staking/msgs/MsgEditValidator.d.ts +54 -0
  520. package/dist/core/staking/msgs/MsgEditValidator.js +120 -0
  521. package/dist/core/staking/msgs/MsgEditValidator.js.map +1 -0
  522. package/dist/core/staking/msgs/MsgUndelegate.d.ts +46 -0
  523. package/dist/core/staking/msgs/MsgUndelegate.js +93 -0
  524. package/dist/core/staking/msgs/MsgUndelegate.js.map +1 -0
  525. package/dist/core/staking/msgs/index.d.ts +16 -0
  526. package/dist/core/staking/msgs/index.js +22 -0
  527. package/dist/core/staking/msgs/index.js.map +1 -0
  528. package/dist/core/upgrade/Plan.d.ts +40 -0
  529. package/dist/core/upgrade/Plan.js +92 -0
  530. package/dist/core/upgrade/Plan.js.map +1 -0
  531. package/dist/core/upgrade/index.d.ts +2 -0
  532. package/dist/core/upgrade/index.js +19 -0
  533. package/dist/core/upgrade/index.js.map +1 -0
  534. package/dist/core/upgrade/proposals/CancelSoftwareUpgradeProposal.d.ts +39 -0
  535. package/dist/core/upgrade/proposals/CancelSoftwareUpgradeProposal.js +86 -0
  536. package/dist/core/upgrade/proposals/CancelSoftwareUpgradeProposal.js.map +1 -0
  537. package/dist/core/upgrade/proposals/SoftwareUpgradeProposal.d.ts +44 -0
  538. package/dist/core/upgrade/proposals/SoftwareUpgradeProposal.js +92 -0
  539. package/dist/core/upgrade/proposals/SoftwareUpgradeProposal.js.map +1 -0
  540. package/dist/core/upgrade/proposals/index.d.ts +2 -0
  541. package/dist/core/upgrade/proposals/index.js +19 -0
  542. package/dist/core/upgrade/proposals/index.js.map +1 -0
  543. package/dist/core/vesting/Period.d.ts +32 -0
  544. package/dist/core/vesting/Period.js +78 -0
  545. package/dist/core/vesting/Period.js.map +1 -0
  546. package/dist/core/vesting/index.d.ts +2 -0
  547. package/dist/core/vesting/index.js +19 -0
  548. package/dist/core/vesting/index.js.map +1 -0
  549. package/dist/core/vesting/msgs/MsgCreatePeriodicVestingAccount.d.ts +46 -0
  550. package/dist/core/vesting/msgs/MsgCreatePeriodicVestingAccount.js +98 -0
  551. package/dist/core/vesting/msgs/MsgCreatePeriodicVestingAccount.js.map +1 -0
  552. package/dist/core/vesting/msgs/MsgCreateVestingAccount.d.ts +50 -0
  553. package/dist/core/vesting/msgs/MsgCreateVestingAccount.js +103 -0
  554. package/dist/core/vesting/msgs/MsgCreateVestingAccount.js.map +1 -0
  555. package/dist/core/vesting/msgs/MsgDonateAllVestingTokens.d.ts +35 -0
  556. package/dist/core/vesting/msgs/MsgDonateAllVestingTokens.js +75 -0
  557. package/dist/core/vesting/msgs/MsgDonateAllVestingTokens.js.map +1 -0
  558. package/dist/core/vesting/msgs/index.d.ts +12 -0
  559. package/dist/core/vesting/msgs/index.js +20 -0
  560. package/dist/core/vesting/msgs/index.js.map +1 -0
  561. package/dist/index.d.ts +4 -0
  562. package/dist/index.js +21 -0
  563. package/dist/index.js.map +1 -0
  564. package/dist/key/CLIKey.d.ts +44 -0
  565. package/dist/key/CLIKey.js +164 -0
  566. package/dist/key/CLIKey.js.map +1 -0
  567. package/dist/key/Key.d.ts +60 -0
  568. package/dist/key/Key.js +185 -0
  569. package/dist/key/Key.js.map +1 -0
  570. package/dist/key/MnemonicKey.d.ts +55 -0
  571. package/dist/key/MnemonicKey.js +114 -0
  572. package/dist/key/MnemonicKey.js.map +1 -0
  573. package/dist/key/RawKey.d.ts +17 -0
  574. package/dist/key/RawKey.js +110 -0
  575. package/dist/key/RawKey.js.map +1 -0
  576. package/dist/key/index.d.ts +4 -0
  577. package/dist/key/index.js +21 -0
  578. package/dist/key/index.js.map +1 -0
  579. package/dist/util/bcs.d.ts +11 -0
  580. package/dist/util/bcs.js +102 -0
  581. package/dist/util/bcs.js.map +1 -0
  582. package/dist/util/contract.d.ts +9 -0
  583. package/dist/util/contract.js +57 -0
  584. package/dist/util/contract.js.map +1 -0
  585. package/dist/util/convert.d.ts +8 -0
  586. package/dist/util/convert.js +12 -0
  587. package/dist/util/convert.js.map +1 -0
  588. package/dist/util/hash.d.ts +11 -0
  589. package/dist/util/hash.js +37 -0
  590. package/dist/util/hash.js.map +1 -0
  591. package/dist/util/index.d.ts +2 -0
  592. package/dist/util/index.js +19 -0
  593. package/dist/util/index.js.map +1 -0
  594. package/dist/util/json.d.ts +9 -0
  595. package/dist/util/json.js +62 -0
  596. package/dist/util/json.js.map +1 -0
  597. package/package.json +110 -0
@@ -0,0 +1,148 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
18
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
19
+ return new (P || (P = Promise))(function (resolve, reject) {
20
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
21
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
22
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
23
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
24
+ });
25
+ };
26
+ var __generator = (this && this.__generator) || function (thisArg, body) {
27
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
28
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
29
+ function verb(n) { return function (v) { return step([n, v]); }; }
30
+ function step(op) {
31
+ if (f) throw new TypeError("Generator is already executing.");
32
+ while (_) try {
33
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
34
+ if (y = 0, t) op = [op[0] & 2, t.value];
35
+ switch (op[0]) {
36
+ case 0: case 1: t = op; break;
37
+ case 4: _.label++; return { value: op[1], done: false };
38
+ case 5: _.label++; y = op[1]; op = [0]; continue;
39
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
40
+ default:
41
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
42
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
43
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
44
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
45
+ if (t[2]) _.ops.pop();
46
+ _.trys.pop(); continue;
47
+ }
48
+ op = body.call(thisArg, _);
49
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
50
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
51
+ }
52
+ };
53
+ Object.defineProperty(exports, "__esModule", { value: true });
54
+ exports.MoveAPI = void 0;
55
+ var BaseAPI_1 = require("./BaseAPI");
56
+ var MoveAPI = /** @class */ (function (_super) {
57
+ __extends(MoveAPI, _super);
58
+ function MoveAPI() {
59
+ return _super !== null && _super.apply(this, arguments) || this;
60
+ }
61
+ MoveAPI.prototype.modules = function (address, params) {
62
+ if (params === void 0) { params = {}; }
63
+ return __awaiter(this, void 0, void 0, function () {
64
+ return __generator(this, function (_a) {
65
+ return [2 /*return*/, this.c
66
+ .get("/initia/move/v1/accounts/".concat(address, "/modules"), params)
67
+ .then(function (d) { return [d.modules.map(function (mod) { return ({
68
+ address: mod.address,
69
+ module_name: mod.module_name,
70
+ code_bytes: mod.code_bytes,
71
+ abi: mod.abi,
72
+ }); }), d.pagination]; })];
73
+ });
74
+ });
75
+ };
76
+ MoveAPI.prototype.module = function (address, moduleName, params) {
77
+ if (params === void 0) { params = {}; }
78
+ return __awaiter(this, void 0, void 0, function () {
79
+ return __generator(this, function (_a) {
80
+ return [2 /*return*/, this.c
81
+ .get("/initia/move/v1/accounts/".concat(address, "/modules/").concat(moduleName), params)
82
+ .then(function (_a) {
83
+ var d = _a.module;
84
+ return ({
85
+ address: d.address,
86
+ module_name: d.module_name,
87
+ code_bytes: d.code_bytes,
88
+ abi: d.abi,
89
+ });
90
+ })];
91
+ });
92
+ });
93
+ };
94
+ MoveAPI.prototype.executeEntryFunction = function (address, moduleName, functionName, typeArgs, args) {
95
+ return __awaiter(this, void 0, void 0, function () {
96
+ return __generator(this, function (_a) {
97
+ return [2 /*return*/, this.c
98
+ .post("/initia/move/v1/accounts/".concat(address, "/modules/").concat(moduleName, "/entry_functions/").concat(functionName), {
99
+ type_args: typeArgs,
100
+ args: args,
101
+ })];
102
+ });
103
+ });
104
+ };
105
+ MoveAPI.prototype.resources = function (address, params) {
106
+ if (params === void 0) { params = {}; }
107
+ return __awaiter(this, void 0, void 0, function () {
108
+ return __generator(this, function (_a) {
109
+ return [2 /*return*/, this.c
110
+ .get("/initia/move/v1/accounts/".concat(address, "/resources"), params)
111
+ .then(function (d) { return [d.resources.map(function (res) { return ({
112
+ address: res.address,
113
+ struct_tag: res.struct_tag,
114
+ resource_bytes: res.resource_bytes,
115
+ move_resource: res.move_resource,
116
+ }); }), d.pagination]; })];
117
+ });
118
+ });
119
+ };
120
+ MoveAPI.prototype.resource = function (address, structTag, params) {
121
+ if (params === void 0) { params = {}; }
122
+ return __awaiter(this, void 0, void 0, function () {
123
+ return __generator(this, function (_a) {
124
+ return [2 /*return*/, this.c
125
+ .get("/initia/move/v1/accounts/".concat(address, "/resources/").concat(structTag), params)
126
+ .then(function (_a) {
127
+ var d = _a.resource;
128
+ return ({
129
+ address: d.address,
130
+ struct_tag: d.struct_tag,
131
+ resource_bytes: d.resource_bytes,
132
+ move_resource: d.move_resource,
133
+ });
134
+ })];
135
+ });
136
+ });
137
+ };
138
+ MoveAPI.prototype.scriptABI = function (codeBytes) {
139
+ return __awaiter(this, void 0, void 0, function () {
140
+ return __generator(this, function (_a) {
141
+ return [2 /*return*/, this.c.post("/initia/move/v1/script/abi", { code_bytes: codeBytes })];
142
+ });
143
+ });
144
+ };
145
+ return MoveAPI;
146
+ }(BaseAPI_1.BaseAPI));
147
+ exports.MoveAPI = MoveAPI;
148
+ //# sourceMappingURL=MoveAPI.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MoveAPI.js","sourceRoot":"","sources":["../../../../src/client/lcd/api/MoveAPI.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qCAAoC;AA0BpC;IAA6B,2BAAO;IAApC;;IAkFA,CAAC;IAjFc,yBAAO,GAApB,UACE,OAAmB,EACnB,MAAmD;QAAnD,uBAAA,EAAA,WAAmD;;;gBAEnD,sBAAO,IAAI,CAAC,CAAC;yBACV,GAAG,CAGD,mCAA4B,OAAO,aAAU,EAAE,MAAM,CAAC;yBACxD,IAAI,CAAC,UAAC,CAAC,IAAK,OAAA,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,UAAC,GAAG,IAAK,OAAA,CAAC;4BACpC,OAAO,EAAE,GAAG,CAAC,OAAO;4BACpB,WAAW,EAAE,GAAG,CAAC,WAAW;4BAC5B,UAAU,EAAE,GAAG,CAAC,UAAU;4BAC1B,GAAG,EAAE,GAAG,CAAC,GAAG;yBACb,CAAC,EALmC,CAKnC,CAAC,EAAE,CAAC,CAAC,UAAU,CAAC,EALL,CAKK,CAAC,EAAC;;;KACvB;IAEY,wBAAM,GAAnB,UACE,OAAmB,EACnB,UAAkB,EAClB,MAAsB;QAAtB,uBAAA,EAAA,WAAsB;;;gBAEtB,sBAAO,IAAI,CAAC,CAAC;yBACV,GAAG,CAAqB,mCAA4B,OAAO,sBAAY,UAAU,CAAE,EAAE,MAAM,CAAC;yBAC5F,IAAI,CAAC,UAAC,EAAa;4BAAH,CAAC,YAAA;wBAAO,OAAA,CAAC;4BACxB,OAAO,EAAE,CAAC,CAAC,OAAO;4BAClB,WAAW,EAAE,CAAC,CAAC,WAAW;4BAC1B,UAAU,EAAE,CAAC,CAAC,UAAU;4BACxB,GAAG,EAAE,CAAC,CAAC,GAAG;yBACX,CAAC;oBALuB,CAKvB,CAAC,EAAC;;;KACP;IAEY,sCAAoB,GAAjC,UACE,OAAmB,EACnB,UAAkB,EAClB,YAAoB,EACpB,QAAkB,EAClB,IAAc;;;gBAEd,sBAAO,IAAI,CAAC,CAAC;yBACV,IAAI,CAAgB,mCAA4B,OAAO,sBAAY,UAAU,8BAAoB,YAAY,CAAE,EAAE;wBAChH,SAAS,EAAE,QAAQ;wBACnB,IAAI,MAAA;qBACL,CAAC,EAAC;;;KACN;IAEY,2BAAS,GAAtB,UACE,OAAmB,EACnB,MAAmD;QAAnD,uBAAA,EAAA,WAAmD;;;gBAEnD,sBAAO,IAAI,CAAC,CAAC;yBACV,GAAG,CAGD,mCAA4B,OAAO,eAAY,EAAE,MAAM,CAAC;yBAC1D,IAAI,CAAC,UAAC,CAAC,IAAK,OAAA,CAAC,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,UAAC,GAAG,IAAK,OAAA,CAAC;4BACtC,OAAO,EAAE,GAAG,CAAC,OAAO;4BACpB,UAAU,EAAE,GAAG,CAAC,UAAU;4BAC1B,cAAc,EAAE,GAAG,CAAC,cAAc;4BAClC,aAAa,EAAE,GAAG,CAAC,aAAa;yBACjC,CAAC,EALqC,CAKrC,CAAC,EAAE,CAAC,CAAC,UAAU,CAAC,EALL,CAKK,CAAC,EAAC;;;KACvB;IAEY,0BAAQ,GAArB,UACE,OAAmB,EACnB,SAAiB,EACjB,MAAsB;QAAtB,uBAAA,EAAA,WAAsB;;;gBAEtB,sBAAO,IAAI,CAAC,CAAC;yBACV,GAAG,CAAyB,mCAA4B,OAAO,wBAAc,SAAS,CAAE,EAAE,MAAM,CAAC;yBACjG,IAAI,CAAC,UAAC,EAAe;4BAAH,CAAC,cAAA;wBAAO,OAAA,CAAC;4BAC1B,OAAO,EAAE,CAAC,CAAC,OAAO;4BAClB,UAAU,EAAE,CAAC,CAAC,UAAU;4BACxB,cAAc,EAAE,CAAC,CAAC,cAAc;4BAChC,aAAa,EAAE,CAAC,CAAC,aAAa;yBAC/B,CAAC;oBALyB,CAKzB,CAAC,EAAC;;;KACP;IAEY,2BAAS,GAAtB,UAAuB,SAAiB;;;gBACtC,sBAAO,IAAI,CAAC,CAAC,CAAC,IAAI,CAAM,4BAA4B,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,CAAC,EAAC;;;KAClF;IACH,cAAC;AAAD,CAAC,AAlFD,CAA6B,iBAAO,GAkFnC;AAlFY,0BAAO"}
@@ -0,0 +1,56 @@
1
+ import { BaseAPI } from './BaseAPI';
2
+ import { ValConsAddress } from '../../../core';
3
+ import { APIParams } from '../APIRequester';
4
+ export interface SlashingParams {
5
+ /** Number of blocks over which missed blocks are tallied for downtime. */
6
+ signed_blocks_window: number;
7
+ /** If a validator misses more than this number, they will be penalized and jailed for downtime. */
8
+ min_signed_per_window: string;
9
+ /** Amount of time in seconds after which a jailed validator can be unjailed. */
10
+ downtime_jail_duration: number;
11
+ /** Ratio of funds slashed for a double-sign infraction. */
12
+ slash_fraction_double_sign: string;
13
+ /** Ratio of funds slashed for a downtime infraction. */
14
+ slash_fraction_downtime: string;
15
+ }
16
+ export declare namespace SlashingParams {
17
+ interface Data {
18
+ signed_blocks_window: string;
19
+ min_signed_per_window: string;
20
+ downtime_jail_duration: string;
21
+ slash_fraction_double_sign: string;
22
+ slash_fraction_downtime: string;
23
+ }
24
+ }
25
+ export interface SigningInfo {
26
+ /** Validator's consensus address. */
27
+ address: ValConsAddress;
28
+ /** Number of blocks over which missed blocks are tallied for downtime. */
29
+ start_height: number;
30
+ /** If a validator misses more than this number, they will be penalized and jailed for downtime. */
31
+ index_offset: number;
32
+ /** If the current validator is jailed, this value represents when they can submit a [[MsgUnjail]] to unjail themselves. */
33
+ jailed_until: Date;
34
+ /** Whether or not the validator is "tombstoned", meaning they are forever barred from joining the validator process. */
35
+ tombstoned: boolean;
36
+ /** Number of blocks the validator has missed for the current signed blocks window. */
37
+ missed_blocks_counter: number;
38
+ }
39
+ export declare namespace SigningInfo {
40
+ interface Data {
41
+ address: string;
42
+ start_height: string;
43
+ index_offset: string;
44
+ jailed_until: string;
45
+ tombstoned: boolean;
46
+ missed_blocks_counter: string;
47
+ }
48
+ }
49
+ export declare class SlashingAPI extends BaseAPI {
50
+ signingInfo(valConsAddress: ValConsAddress, params?: APIParams): Promise<SigningInfo>;
51
+ signingInfos(params?: APIParams): Promise<SigningInfo[]>;
52
+ /**
53
+ * Gets the current Slashing module's parameters.
54
+ */
55
+ parameters(params?: APIParams): Promise<SlashingParams>;
56
+ }
@@ -0,0 +1,125 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
18
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
19
+ return new (P || (P = Promise))(function (resolve, reject) {
20
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
21
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
22
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
23
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
24
+ });
25
+ };
26
+ var __generator = (this && this.__generator) || function (thisArg, body) {
27
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
28
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
29
+ function verb(n) { return function (v) { return step([n, v]); }; }
30
+ function step(op) {
31
+ if (f) throw new TypeError("Generator is already executing.");
32
+ while (_) try {
33
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
34
+ if (y = 0, t) op = [op[0] & 2, t.value];
35
+ switch (op[0]) {
36
+ case 0: case 1: t = op; break;
37
+ case 4: _.label++; return { value: op[1], done: false };
38
+ case 5: _.label++; y = op[1]; op = [0]; continue;
39
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
40
+ default:
41
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
42
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
43
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
44
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
45
+ if (t[2]) _.ops.pop();
46
+ _.trys.pop(); continue;
47
+ }
48
+ op = body.call(thisArg, _);
49
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
50
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
51
+ }
52
+ };
53
+ Object.defineProperty(exports, "__esModule", { value: true });
54
+ exports.SlashingAPI = void 0;
55
+ var BaseAPI_1 = require("./BaseAPI");
56
+ var SlashingAPI = /** @class */ (function (_super) {
57
+ __extends(SlashingAPI, _super);
58
+ function SlashingAPI() {
59
+ return _super !== null && _super.apply(this, arguments) || this;
60
+ }
61
+ SlashingAPI.prototype.signingInfo = function (valConsAddress, params) {
62
+ if (params === void 0) { params = {}; }
63
+ return __awaiter(this, void 0, void 0, function () {
64
+ return __generator(this, function (_a) {
65
+ return [2 /*return*/, this.c
66
+ .get("/cosmos/slashing/v1beta1/signing_infos/".concat(valConsAddress), params)
67
+ .then(function (_a) {
68
+ var d = _a.val_signing_info;
69
+ return ({
70
+ address: d.address,
71
+ start_height: Number.parseInt(d.start_height),
72
+ index_offset: Number.parseInt(d.index_offset),
73
+ jailed_until: new Date(d.jailed_until),
74
+ tombstoned: d.tombstoned,
75
+ missed_blocks_counter: Number.parseInt(d.missed_blocks_counter),
76
+ });
77
+ })];
78
+ });
79
+ });
80
+ };
81
+ SlashingAPI.prototype.signingInfos = function (params) {
82
+ if (params === void 0) { params = {}; }
83
+ return __awaiter(this, void 0, void 0, function () {
84
+ return __generator(this, function (_a) {
85
+ return [2 /*return*/, this.c
86
+ .get("/cosmos/slashing/v1beta1/signing_infos", params)
87
+ .then(function (d) {
88
+ return d.info.map(function (x) { return ({
89
+ address: x.address,
90
+ start_height: Number.parseInt(x.start_height),
91
+ index_offset: Number.parseInt(x.index_offset),
92
+ jailed_until: new Date(x.jailed_until),
93
+ tombstoned: x.tombstoned,
94
+ missed_blocks_counter: Number.parseInt(x.missed_blocks_counter),
95
+ }); });
96
+ })];
97
+ });
98
+ });
99
+ };
100
+ /**
101
+ * Gets the current Slashing module's parameters.
102
+ */
103
+ SlashingAPI.prototype.parameters = function (params) {
104
+ if (params === void 0) { params = {}; }
105
+ return __awaiter(this, void 0, void 0, function () {
106
+ return __generator(this, function (_a) {
107
+ return [2 /*return*/, this.c
108
+ .get("/cosmos/slashing/v1beta1/params", params)
109
+ .then(function (_a) {
110
+ var d = _a.params;
111
+ return ({
112
+ signed_blocks_window: Number.parseInt(d.signed_blocks_window),
113
+ min_signed_per_window: d.min_signed_per_window,
114
+ downtime_jail_duration: Number.parseInt(d.downtime_jail_duration),
115
+ slash_fraction_double_sign: d.slash_fraction_double_sign,
116
+ slash_fraction_downtime: d.slash_fraction_downtime,
117
+ });
118
+ })];
119
+ });
120
+ });
121
+ };
122
+ return SlashingAPI;
123
+ }(BaseAPI_1.BaseAPI));
124
+ exports.SlashingAPI = SlashingAPI;
125
+ //# sourceMappingURL=SlashingAPI.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SlashingAPI.js","sourceRoot":"","sources":["../../../../src/client/lcd/api/SlashingAPI.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qCAAoC;AA8DpC;IAAiC,+BAAO;IAAxC;;IAuDA,CAAC;IAtDc,iCAAW,GAAxB,UACE,cAA8B,EAC9B,MAAsB;QAAtB,uBAAA,EAAA,WAAsB;;;gBAEtB,sBAAO,IAAI,CAAC,CAAC;yBACV,GAAG,CACF,iDAA0C,cAAc,CAAE,EAC1D,MAAM,CACP;yBACA,IAAI,CAAC,UAAC,EAAuB;4BAAH,CAAC,sBAAA;wBAAO,OAAA,CAAC;4BAClC,OAAO,EAAE,CAAC,CAAC,OAAO;4BAClB,YAAY,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,YAAY,CAAC;4BAC7C,YAAY,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,YAAY,CAAC;4BAC7C,YAAY,EAAE,IAAI,IAAI,CAAC,CAAC,CAAC,YAAY,CAAC;4BACtC,UAAU,EAAE,CAAC,CAAC,UAAU;4BACxB,qBAAqB,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,qBAAqB,CAAC;yBAChE,CAAC;oBAPiC,CAOjC,CAAC,EAAC;;;KACP;IAEY,kCAAY,GAAzB,UAA0B,MAAsB;QAAtB,uBAAA,EAAA,WAAsB;;;gBAC9C,sBAAO,IAAI,CAAC,CAAC;yBACV,GAAG,CACF,wCAAwC,EACxC,MAAM,CACP;yBACA,IAAI,CAAC,UAAA,CAAC;wBACL,OAAA,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,UAAA,CAAC,IAAI,OAAA,CAAC;4BACf,OAAO,EAAE,CAAC,CAAC,OAAO;4BAClB,YAAY,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,YAAY,CAAC;4BAC7C,YAAY,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,YAAY,CAAC;4BAC7C,YAAY,EAAE,IAAI,IAAI,CAAC,CAAC,CAAC,YAAY,CAAC;4BACtC,UAAU,EAAE,CAAC,CAAC,UAAU;4BACxB,qBAAqB,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,qBAAqB,CAAC;yBAChE,CAAC,EAPc,CAOd,CAAC;oBAPH,CAOG,CACJ,EAAC;;;KACL;IAED;;OAEG;IACU,gCAAU,GAAvB,UAAwB,MAAsB;QAAtB,uBAAA,EAAA,WAAsB;;;gBAC5C,sBAAO,IAAI,CAAC,CAAC;yBACV,GAAG,CACF,iCAAiC,EACjC,MAAM,CACP;yBACA,IAAI,CAAC,UAAC,EAAa;4BAAH,CAAC,YAAA;wBAAO,OAAA,CAAC;4BACxB,oBAAoB,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,oBAAoB,CAAC;4BAC7D,qBAAqB,EAAE,CAAC,CAAC,qBAAqB;4BAC9C,sBAAsB,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,sBAAsB,CAAC;4BACjE,0BAA0B,EAAE,CAAC,CAAC,0BAA0B;4BACxD,uBAAuB,EAAE,CAAC,CAAC,uBAAuB;yBACnD,CAAC;oBANuB,CAMvB,CAAC,EAAC;;;KACP;IACH,kBAAC;AAAD,CAAC,AAvDD,CAAiC,iBAAO,GAuDvC;AAvDY,kCAAW"}
@@ -0,0 +1,98 @@
1
+ import { AccAddress, ValAddress, UnbondingDelegation, Coin } from '../../../core';
2
+ import { BaseAPI } from './BaseAPI';
3
+ import { Delegation } from '../../../core/staking/Delegation';
4
+ import { Validator } from '../../../core/staking/Validator';
5
+ import { Redelegation } from '../../../core/staking/Redelegation';
6
+ import { Denom } from '../../../core/Denom';
7
+ import { APIParams, Pagination, PaginationOptions } from '../APIRequester';
8
+ export interface StakingParams {
9
+ /** Amount of time, in seconds, for bonded staking tokens to be unbonded. */
10
+ unbonding_time: number;
11
+ /** Max number of validators for the validating set (delegates). */
12
+ max_validators: number;
13
+ /** Maximum entries for unbonding delegations and redelegations. */
14
+ max_entries: number;
15
+ historical_entries: number;
16
+ /** The denomination used as the staking token (probably Initia). */
17
+ bond_denom: Denom;
18
+ }
19
+ export declare namespace StakingParams {
20
+ interface Data {
21
+ unbonding_time: string;
22
+ max_validators: number;
23
+ max_entries: number;
24
+ historical_entries: number;
25
+ bond_denom: Denom;
26
+ }
27
+ }
28
+ export interface StakingPool {
29
+ /** amount of tokens are bonded, including those that are currently unbonding */
30
+ bonded_tokens: Coin;
31
+ /** amount of tokens that are not bonded */
32
+ not_bonded_tokens: Coin;
33
+ }
34
+ export declare namespace StakingPool {
35
+ interface Data {
36
+ bonded_tokens: string;
37
+ not_bonded_tokens: string;
38
+ }
39
+ }
40
+ export declare class StakingAPI extends BaseAPI {
41
+ /**
42
+ * Queries all delegations, filtering by delegator, validator, or both.
43
+ *
44
+ * At least one of the parameters must be defined.
45
+ * @param delegator delegator's account address
46
+ * @param validator validator's operator address
47
+ */
48
+ delegations(delegator?: AccAddress, validator?: ValAddress, params?: Partial<PaginationOptions & APIParams>): Promise<[Delegation[], Pagination]>;
49
+ /**
50
+ * Gets the delegation between a delegator and validator, if it exists.
51
+ * @param delegator delegator's account address
52
+ * @param validator validator's operator address
53
+ */
54
+ delegation(delegator: AccAddress, validator: ValAddress): Promise<Delegation>;
55
+ /**
56
+ * Queries all unbonding delegations, filtering by delegator, validator, or both.
57
+ *
58
+ * At least one of the parameters must be defined.
59
+ * @param delegator delegator's account address
60
+ * @param validator validator's operator address
61
+ */
62
+ unbondingDelegations(delegator?: AccAddress, validator?: ValAddress, params?: Partial<PaginationOptions & APIParams>): Promise<[UnbondingDelegation[], Pagination]>;
63
+ /**
64
+ * Gets the unbonding delegation between a delegator and validator, if it exists.
65
+ * @param delegator delegator's account address
66
+ * @param validator validator's operator address
67
+ */
68
+ unbondingDelegation(delegator?: AccAddress, validator?: ValAddress): Promise<UnbondingDelegation>;
69
+ /**
70
+ * Queries all redelegations, filterable by delegator, source validator, and target validator.
71
+ * @param delegator delegator's account address
72
+ * @param validatorSrc source validator's operator address (from).
73
+ * @param validatorDst destination validator's operator address (to).
74
+ */
75
+ redelegations(delegator: AccAddress, validatorSrc?: ValAddress, validatorDst?: ValAddress, _params?: Partial<PaginationOptions & APIParams>): Promise<[Redelegation[], Pagination]>;
76
+ /**
77
+ * Gets all bonded validators for a delegator given its address.
78
+ * @param delegator delegator's account address
79
+ */
80
+ bondedValidators(delegator: AccAddress, params?: Partial<PaginationOptions & APIParams>): Promise<[Validator[], Pagination]>;
81
+ /**
82
+ * Get all current registered validators, including validators that are not currently in the validating set.
83
+ */
84
+ validators(params?: Partial<PaginationOptions & APIParams>): Promise<[Validator[], Pagination]>;
85
+ /**
86
+ * Gets the validator information for a specific validator.
87
+ * @param validator validator's operator address
88
+ */
89
+ validator(validator: ValAddress, params?: APIParams): Promise<Validator>;
90
+ /**
91
+ * Gets the current staking pool.
92
+ */
93
+ pool(params?: APIParams): Promise<StakingPool>;
94
+ /**
95
+ * Gets the current Staking module's parameters.
96
+ */
97
+ parameters(params?: APIParams): Promise<StakingParams>;
98
+ }