carbon-js-sdk 0.7.13 → 0.8.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 (659) hide show
  1. package/lib/clients/CarbonQueryClient.d.ts +1 -1
  2. package/lib/clients/CarbonQueryClient.js +1 -1
  3. package/lib/clients/InsightsQueryClient.d.ts +1 -1
  4. package/lib/clients/InsightsQueryClient.js +2 -4
  5. package/lib/codec/Switcheo/carbon/book/event.d.ts +20 -1
  6. package/lib/codec/Switcheo/carbon/book/event.js +101 -19
  7. package/lib/codec/Switcheo/carbon/book/export.d.ts +1 -1
  8. package/lib/codec/Switcheo/carbon/book/export.js +3 -1
  9. package/lib/codec/Switcheo/carbon/book/query.d.ts +12 -6
  10. package/lib/codec/Switcheo/carbon/book/query.js +18 -6
  11. package/lib/codec/Switcheo/carbon/broker/amm.d.ts +8 -0
  12. package/lib/codec/Switcheo/carbon/ccm/export.d.ts +1 -1
  13. package/lib/codec/Switcheo/carbon/ccm/export.js +3 -1
  14. package/lib/codec/Switcheo/carbon/ccm/tx.d.ts +46 -0
  15. package/lib/codec/Switcheo/carbon/ccm/tx.js +101 -1
  16. package/lib/codec/Switcheo/carbon/cdp/export.d.ts +1 -1
  17. package/lib/codec/Switcheo/carbon/cdp/export.js +3 -1
  18. package/lib/codec/Switcheo/carbon/cdp/tx.d.ts +46 -1
  19. package/lib/codec/Switcheo/carbon/cdp/tx.js +101 -1
  20. package/lib/codec/Switcheo/carbon/evmcontract/genesis.d.ts +10 -4
  21. package/lib/codec/Switcheo/carbon/evmcontract/genesis.js +54 -4
  22. package/lib/codec/Switcheo/carbon/evmcontract/query.d.ts +98 -0
  23. package/lib/codec/Switcheo/carbon/evmcontract/query.js +374 -1
  24. package/lib/codec/Switcheo/carbon/evmcontract/tx.d.ts +103 -0
  25. package/lib/codec/Switcheo/carbon/evmcontract/tx.js +425 -1
  26. package/lib/codec/Switcheo/carbon/liquidation/export.d.ts +1 -2
  27. package/lib/codec/Switcheo/carbon/liquidation/export.js +1 -5
  28. package/lib/codec/Switcheo/carbon/liquidation/query.d.ts +0 -25
  29. package/lib/codec/Switcheo/carbon/liquidation/query.js +1 -88
  30. package/lib/codec/Switcheo/carbon/liquiditypool/export.d.ts +2 -2
  31. package/lib/codec/Switcheo/carbon/liquiditypool/export.js +6 -3
  32. package/lib/codec/Switcheo/carbon/liquiditypool/liquiditypool.d.ts +20 -0
  33. package/lib/codec/Switcheo/carbon/liquiditypool/liquiditypool.js +191 -1
  34. package/lib/codec/Switcheo/carbon/liquiditypool/tx.d.ts +46 -0
  35. package/lib/codec/Switcheo/carbon/liquiditypool/tx.js +101 -1
  36. package/lib/codec/Switcheo/carbon/market/export.d.ts +2 -2
  37. package/lib/codec/Switcheo/carbon/market/export.js +6 -2
  38. package/lib/codec/Switcheo/carbon/market/query.d.ts +31 -0
  39. package/lib/codec/Switcheo/carbon/market/query.js +226 -1
  40. package/lib/codec/Switcheo/carbon/market/tx.d.ts +46 -2
  41. package/lib/codec/Switcheo/carbon/market/tx.js +100 -1
  42. package/lib/codec/Switcheo/carbon/marketstats/export.d.ts +1 -2
  43. package/lib/codec/Switcheo/carbon/marketstats/export.js +1 -5
  44. package/lib/codec/Switcheo/carbon/marketstats/genesis.d.ts +4 -7
  45. package/lib/codec/Switcheo/carbon/marketstats/genesis.js +4 -21
  46. package/lib/codec/Switcheo/carbon/marketstats/query.d.ts +0 -26
  47. package/lib/codec/Switcheo/carbon/marketstats/query.js +1 -88
  48. package/lib/codec/Switcheo/carbon/oracle/export.d.ts +1 -1
  49. package/lib/codec/Switcheo/carbon/oracle/export.js +4 -1
  50. package/lib/codec/Switcheo/carbon/oracle/tx.d.ts +46 -0
  51. package/lib/codec/Switcheo/carbon/oracle/tx.js +101 -1
  52. package/lib/codec/Switcheo/carbon/order/export.d.ts +4 -3
  53. package/lib/codec/Switcheo/carbon/order/export.js +11 -4
  54. package/lib/codec/Switcheo/carbon/order/genesis.d.ts +10 -10
  55. package/lib/codec/Switcheo/carbon/order/genesis.js +16 -16
  56. package/lib/codec/Switcheo/carbon/order/order.d.ts +14 -14
  57. package/lib/codec/Switcheo/carbon/order/order.js +11 -11
  58. package/lib/codec/Switcheo/carbon/order/tx.d.ts +46 -0
  59. package/lib/codec/Switcheo/carbon/order/tx.js +101 -1
  60. package/lib/codec/Switcheo/carbon/perpspool/export.d.ts +1 -1
  61. package/lib/codec/Switcheo/carbon/perpspool/export.js +3 -1
  62. package/lib/codec/Switcheo/carbon/perpspool/tx.d.ts +46 -1
  63. package/lib/codec/Switcheo/carbon/perpspool/tx.js +101 -1
  64. package/lib/codec/Switcheo/carbon/position/export.d.ts +1 -0
  65. package/lib/codec/Switcheo/carbon/position/export.js +4 -1
  66. package/lib/codec/Switcheo/carbon/pricing/export.d.ts +1 -1
  67. package/lib/codec/Switcheo/carbon/pricing/export.js +3 -1
  68. package/lib/codec/Switcheo/carbon/pricing/tx.d.ts +46 -0
  69. package/lib/codec/Switcheo/carbon/pricing/tx.js +101 -1
  70. package/lib/codec/Switcheo/carbon/subaccount/export.d.ts +1 -1
  71. package/lib/codec/Switcheo/carbon/subaccount/export.js +3 -1
  72. package/lib/codec/Switcheo/carbon/subaccount/tx.d.ts +46 -0
  73. package/lib/codec/Switcheo/carbon/subaccount/tx.js +101 -1
  74. package/lib/codec/carbon-models.d.ts +2 -1
  75. package/lib/codec/carbon-models.js +3 -2
  76. package/lib/codec/cosmos/app/v1alpha1/config.d.ts +26 -0
  77. package/lib/codec/cosmos/app/v1alpha1/config.js +94 -4
  78. package/lib/codec/cosmos/auth/v1beta1/auth.d.ts +21 -0
  79. package/lib/codec/cosmos/auth/v1beta1/auth.js +92 -1
  80. package/lib/codec/cosmos/auth/v1beta1/export.d.ts +3 -2
  81. package/lib/codec/cosmos/auth/v1beta1/export.js +7 -1
  82. package/lib/codec/cosmos/auth/v1beta1/genesis.d.ts +1 -1
  83. package/lib/codec/cosmos/auth/v1beta1/query.d.ts +54 -2
  84. package/lib/codec/cosmos/auth/v1beta1/query.js +120 -2
  85. package/lib/codec/cosmos/authz/v1beta1/tx.d.ts +1 -1
  86. package/lib/codec/cosmos/bank/v1beta1/authz.d.ts +7 -0
  87. package/lib/codec/cosmos/bank/v1beta1/authz.js +18 -3
  88. package/lib/codec/cosmos/bank/v1beta1/bank.d.ts +9 -0
  89. package/lib/codec/cosmos/bank/v1beta1/export.d.ts +2 -2
  90. package/lib/codec/cosmos/bank/v1beta1/export.js +9 -1
  91. package/lib/codec/cosmos/bank/v1beta1/genesis.d.ts +9 -3
  92. package/lib/codec/cosmos/bank/v1beta1/genesis.js +17 -2
  93. package/lib/codec/cosmos/bank/v1beta1/query.d.ts +125 -5
  94. package/lib/codec/cosmos/bank/v1beta1/query.js +257 -1
  95. package/lib/codec/cosmos/bank/v1beta1/tx.d.ts +102 -1
  96. package/lib/codec/cosmos/bank/v1beta1/tx.js +215 -2
  97. package/lib/codec/cosmos/base/snapshots/v1beta1/snapshot.d.ts +8 -0
  98. package/lib/codec/cosmos/base/store/v1beta1/commit_info.d.ts +2 -1
  99. package/lib/codec/cosmos/base/store/v1beta1/commit_info.js +39 -1
  100. package/lib/codec/cosmos/base/tendermint/v1beta1/query.d.ts +16 -46
  101. package/lib/codec/cosmos/consensus/v1/export.d.ts +2 -0
  102. package/lib/codec/cosmos/consensus/v1/export.js +9 -0
  103. package/lib/codec/cosmos/crisis/v1beta1/tx.d.ts +46 -1
  104. package/lib/codec/cosmos/crisis/v1beta1/tx.js +103 -1
  105. package/lib/codec/cosmos/distribution/v1beta1/distribution.d.ts +20 -1
  106. package/lib/codec/cosmos/distribution/v1beta1/distribution.js +16 -16
  107. package/lib/codec/cosmos/distribution/v1beta1/export.d.ts +2 -2
  108. package/lib/codec/cosmos/distribution/v1beta1/export.js +8 -1
  109. package/lib/codec/cosmos/distribution/v1beta1/genesis.d.ts +4 -4
  110. package/lib/codec/cosmos/distribution/v1beta1/query.d.ts +32 -1
  111. package/lib/codec/cosmos/distribution/v1beta1/query.js +134 -1
  112. package/lib/codec/cosmos/distribution/v1beta1/tx.d.ts +103 -3
  113. package/lib/codec/cosmos/distribution/v1beta1/tx.js +212 -1
  114. package/lib/codec/cosmos/evidence/v1beta1/evidence.d.ts +4 -0
  115. package/lib/codec/cosmos/evidence/v1beta1/query.d.ts +12 -1
  116. package/lib/codec/cosmos/evidence/v1beta1/query.js +14 -2
  117. package/lib/codec/cosmos/evidence/v1beta1/tx.d.ts +2 -0
  118. package/lib/codec/cosmos/gov/v1/genesis.d.ts +25 -4
  119. package/lib/codec/cosmos/gov/v1/genesis.js +16 -0
  120. package/lib/codec/cosmos/gov/v1/gov.d.ts +83 -2
  121. package/lib/codec/cosmos/gov/v1/gov.js +231 -3
  122. package/lib/codec/cosmos/gov/v1/query.d.ts +30 -6
  123. package/lib/codec/cosmos/gov/v1/query.js +16 -0
  124. package/lib/codec/cosmos/gov/v1/tx.d.ts +74 -2
  125. package/lib/codec/cosmos/gov/v1/tx.js +131 -3
  126. package/lib/codec/cosmos/gov/v1beta1/genesis.d.ts +3 -3
  127. package/lib/codec/cosmos/gov/v1beta1/gov.d.ts +30 -5
  128. package/lib/codec/cosmos/gov/v1beta1/query.d.ts +4 -2
  129. package/lib/codec/cosmos/gov/v1beta1/tx.d.ts +13 -0
  130. package/lib/codec/cosmos/group/v1/events.d.ts +17 -1
  131. package/lib/codec/cosmos/group/v1/events.js +81 -1
  132. package/lib/codec/cosmos/group/v1/query.d.ts +5 -5
  133. package/lib/codec/cosmos/group/v1/tx.d.ts +25 -13
  134. package/lib/codec/cosmos/group/v1/tx.js +60 -34
  135. package/lib/codec/cosmos/group/v1/types.d.ts +26 -6
  136. package/lib/codec/cosmos/group/v1/types.js +27 -1
  137. package/lib/codec/cosmos/mint/v1beta1/export.d.ts +1 -0
  138. package/lib/codec/cosmos/mint/v1beta1/export.js +4 -1
  139. package/lib/codec/cosmos/mint/v1beta1/genesis.d.ts +1 -1
  140. package/lib/codec/cosmos/mint/v1beta1/mint.d.ts +1 -1
  141. package/lib/codec/cosmos/nft/v1beta1/event.d.ts +10 -0
  142. package/lib/codec/cosmos/nft/v1beta1/genesis.d.ts +1 -0
  143. package/lib/codec/cosmos/nft/v1beta1/query.d.ts +20 -0
  144. package/lib/codec/cosmos/slashing/v1beta1/export.d.ts +1 -1
  145. package/lib/codec/cosmos/slashing/v1beta1/export.js +3 -1
  146. package/lib/codec/cosmos/slashing/v1beta1/genesis.d.ts +1 -1
  147. package/lib/codec/cosmos/slashing/v1beta1/tx.d.ts +46 -0
  148. package/lib/codec/cosmos/slashing/v1beta1/tx.js +101 -1
  149. package/lib/codec/cosmos/staking/v1beta1/export.d.ts +2 -2
  150. package/lib/codec/cosmos/staking/v1beta1/export.js +8 -2
  151. package/lib/codec/cosmos/staking/v1beta1/genesis.d.ts +1 -1
  152. package/lib/codec/cosmos/staking/v1beta1/query.d.ts +36 -5
  153. package/lib/codec/cosmos/staking/v1beta1/staking.d.ts +40 -1
  154. package/lib/codec/cosmos/staking/v1beta1/staking.js +212 -2
  155. package/lib/codec/cosmos/staking/v1beta1/tx.d.ts +45 -1
  156. package/lib/codec/cosmos/staking/v1beta1/tx.js +100 -1
  157. package/lib/codec/cosmos/tx/v1beta1/export.d.ts +1 -1
  158. package/lib/codec/cosmos/tx/v1beta1/export.js +9 -1
  159. package/lib/codec/cosmos/tx/v1beta1/service.d.ts +164 -2
  160. package/lib/codec/cosmos/tx/v1beta1/service.js +407 -3
  161. package/lib/codec/cosmos/upgrade/v1beta1/tx.d.ts +3 -3
  162. package/lib/codec/cosmos/upgrade/v1beta1/upgrade.d.ts +6 -4
  163. package/lib/codec/ethermint/evm/v1/export.d.ts +2 -1
  164. package/lib/codec/ethermint/evm/v1/export.js +8 -1
  165. package/lib/codec/ethermint/evm/v1/tx.d.ts +37 -1
  166. package/lib/codec/ethermint/evm/v1/tx.js +100 -1
  167. package/lib/codec/ethermint/feemarket/v1/export.d.ts +2 -0
  168. package/lib/codec/ethermint/feemarket/v1/export.js +7 -1
  169. package/lib/codec/ethermint/feemarket/v1/feemarket.d.ts +10 -0
  170. package/lib/codec/ethermint/feemarket/v1/feemarket.js +28 -1
  171. package/lib/codec/ibc/applications/interchain_accounts/controller/export.d.ts +2 -1
  172. package/lib/codec/ibc/applications/interchain_accounts/controller/export.js +8 -1
  173. package/lib/codec/ibc/applications/interchain_accounts/controller/v1/query.d.ts +26 -0
  174. package/lib/codec/ibc/applications/interchain_accounts/controller/v1/query.js +113 -1
  175. package/lib/codec/ibc/applications/interchain_accounts/v1/export.d.ts +0 -1
  176. package/lib/codec/ibc/applications/interchain_accounts/v1/export.js +1 -6
  177. package/lib/codec/ibc/applications/transfer/v1/export.d.ts +2 -1
  178. package/lib/codec/ibc/applications/transfer/v1/export.js +8 -1
  179. package/lib/codec/ibc/applications/transfer/v1/genesis.d.ts +6 -0
  180. package/lib/codec/ibc/applications/transfer/v1/genesis.js +18 -2
  181. package/lib/codec/ibc/applications/transfer/v1/query.d.ts +56 -1
  182. package/lib/codec/ibc/applications/transfer/v1/query.js +210 -1
  183. package/lib/codec/ibc/applications/transfer/v1/tx.d.ts +8 -4
  184. package/lib/codec/ibc/applications/transfer/v1/tx.js +35 -6
  185. package/lib/codec/ibc/applications/transfer/v2/packet.d.ts +2 -0
  186. package/lib/codec/ibc/applications/transfer/v2/packet.js +14 -1
  187. package/lib/codec/ibc/core/channel/v1/channel.d.ts +20 -0
  188. package/lib/codec/ibc/core/channel/v1/channel.js +78 -1
  189. package/lib/codec/ibc/core/channel/v1/export.d.ts +1 -1
  190. package/lib/codec/ibc/core/channel/v1/export.js +3 -2
  191. package/lib/codec/ibc/core/channel/v1/tx.d.ts +16 -12
  192. package/lib/codec/ibc/core/channel/v1/tx.js +62 -25
  193. package/lib/codec/ibc/core/client/v1/client.d.ts +5 -1
  194. package/lib/codec/ibc/core/client/v1/export.d.ts +1 -1
  195. package/lib/codec/ibc/core/client/v1/export.js +3 -1
  196. package/lib/codec/ibc/core/client/v1/query.d.ts +38 -1
  197. package/lib/codec/ibc/core/client/v1/query.js +137 -1
  198. package/lib/codec/ibc/core/client/v1/tx.d.ts +19 -6
  199. package/lib/codec/ibc/core/client/v1/tx.js +13 -11
  200. package/lib/codec/ibc/core/commitment/v1/commitment.d.ts +1 -1
  201. package/lib/codec/ibc/core/commitment/v1/commitment.js +1 -1
  202. package/lib/codec/ibc/core/connection/v1/export.d.ts +1 -1
  203. package/lib/codec/ibc/core/connection/v1/export.js +3 -1
  204. package/lib/codec/ibc/core/connection/v1/query.d.ts +26 -1
  205. package/lib/codec/ibc/core/connection/v1/query.js +87 -1
  206. package/lib/codec/ibc/core/connection/v1/tx.d.ts +7 -2
  207. package/lib/codec/ibc/core/connection/v1/tx.js +38 -2
  208. package/lib/codec/ibc/lightclients/tendermint/v1/tendermint.d.ts +12 -5
  209. package/lib/codec/ibc/lightclients/tendermint/v1/tendermint.js +1 -1
  210. package/lib/codec/ibc-models.d.ts +3 -2
  211. package/lib/codec/ibc-models.js +4 -3
  212. package/lib/codec/index.d.ts +99 -20
  213. package/lib/codec/index.js +3371 -890
  214. package/lib/codec/tendermint/abci/types.d.ts +131 -84
  215. package/lib/codec/tendermint/abci/types.js +706 -350
  216. package/lib/codec/tendermint/types/params.d.ts +1 -8
  217. package/lib/codec/tendermint/types/params.js +13 -33
  218. package/lib/constant/signless.d.ts +2 -0
  219. package/lib/constant/signless.js +5 -0
  220. package/lib/insights/common.d.ts +1 -1
  221. package/lib/insights/common.js +1 -1
  222. package/lib/insights/funding.d.ts +13 -2
  223. package/lib/modules/evm.js +1 -1
  224. package/lib/modules/signless.d.ts +24 -0
  225. package/lib/modules/signless.js +108 -0
  226. package/lib/provider/amino/types/evm.js +1 -1
  227. package/lib/provider/amino/types/signless.d.ts +12 -0
  228. package/lib/provider/amino/types/signless.js +189 -0
  229. package/lib/util/signless.d.ts +11 -0
  230. package/lib/util/signless.js +92 -0
  231. package/lib/util/tx.d.ts +89 -7
  232. package/lib/wallet/CarbonWallet.js +6 -2
  233. package/package.json +1 -1
  234. package/lib/codec/adl/genesis.d.ts +0 -18
  235. package/lib/codec/adl/genesis.js +0 -46
  236. package/lib/codec/adl/query.d.ts +0 -12
  237. package/lib/codec/adl/query.js +0 -20
  238. package/lib/codec/adl/tx.d.ts +0 -12
  239. package/lib/codec/adl/tx.js +0 -20
  240. package/lib/codec/admin/export.d.ts +0 -2
  241. package/lib/codec/admin/export.js +0 -13
  242. package/lib/codec/admin/genesis.d.ts +0 -18
  243. package/lib/codec/admin/genesis.js +0 -46
  244. package/lib/codec/admin/query.d.ts +0 -62
  245. package/lib/codec/admin/query.js +0 -186
  246. package/lib/codec/admin/tx.d.ts +0 -62
  247. package/lib/codec/admin/tx.js +0 -198
  248. package/lib/codec/bank/event.d.ts +0 -65
  249. package/lib/codec/bank/event.js +0 -332
  250. package/lib/codec/bank/export.d.ts +0 -2
  251. package/lib/codec/bank/export.js +0 -14
  252. package/lib/codec/bank/genesis.d.ts +0 -18
  253. package/lib/codec/bank/genesis.js +0 -46
  254. package/lib/codec/bank/query.d.ts +0 -77
  255. package/lib/codec/bank/query.js +0 -459
  256. package/lib/codec/book/book.d.ts +0 -45
  257. package/lib/codec/book/book.js +0 -252
  258. package/lib/codec/book/event.d.ts +0 -22
  259. package/lib/codec/book/event.js +0 -113
  260. package/lib/codec/book/export.d.ts +0 -4
  261. package/lib/codec/book/export.js +0 -23
  262. package/lib/codec/book/genesis.d.ts +0 -25
  263. package/lib/codec/book/genesis.js +0 -79
  264. package/lib/codec/book/legacy.d.ts +0 -22
  265. package/lib/codec/book/legacy.js +0 -120
  266. package/lib/codec/book/query.d.ts +0 -94
  267. package/lib/codec/book/query.js +0 -383
  268. package/lib/codec/book/tx.d.ts +0 -12
  269. package/lib/codec/book/tx.js +0 -20
  270. package/lib/codec/broker/amm.d.ts +0 -22
  271. package/lib/codec/broker/amm.js +0 -151
  272. package/lib/codec/broker/candlestick.d.ts +0 -27
  273. package/lib/codec/broker/candlestick.js +0 -211
  274. package/lib/codec/broker/event.d.ts +0 -40
  275. package/lib/codec/broker/event.js +0 -397
  276. package/lib/codec/broker/export.d.ts +0 -7
  277. package/lib/codec/broker/export.js +0 -27
  278. package/lib/codec/broker/genesis.d.ts +0 -24
  279. package/lib/codec/broker/genesis.js +0 -64
  280. package/lib/codec/broker/incoming_liquidations.d.ts +0 -18
  281. package/lib/codec/broker/incoming_liquidations.js +0 -93
  282. package/lib/codec/broker/pagination.d.ts +0 -19
  283. package/lib/codec/broker/pagination.js +0 -78
  284. package/lib/codec/broker/query.d.ts +0 -107
  285. package/lib/codec/broker/query.js +0 -597
  286. package/lib/codec/broker/tx.d.ts +0 -53
  287. package/lib/codec/broker/tx.js +0 -176
  288. package/lib/codec/btcx/denom_cross_chain_info.d.ts +0 -21
  289. package/lib/codec/btcx/denom_cross_chain_info.js +0 -98
  290. package/lib/codec/btcx/denom_info.d.ts +0 -24
  291. package/lib/codec/btcx/denom_info.js +0 -140
  292. package/lib/codec/btcx/export.d.ts +0 -4
  293. package/lib/codec/btcx/export.js +0 -19
  294. package/lib/codec/btcx/genesis.d.ts +0 -18
  295. package/lib/codec/btcx/genesis.js +0 -46
  296. package/lib/codec/btcx/query.d.ts +0 -68
  297. package/lib/codec/btcx/query.js +0 -275
  298. package/lib/codec/btcx/tx.d.ts +0 -92
  299. package/lib/codec/btcx/tx.js +0 -436
  300. package/lib/codec/ccm/ccm.d.ts +0 -19
  301. package/lib/codec/ccm/ccm.js +0 -60
  302. package/lib/codec/ccm/export.d.ts +0 -4
  303. package/lib/codec/ccm/export.js +0 -20
  304. package/lib/codec/ccm/genesis.d.ts +0 -83
  305. package/lib/codec/ccm/genesis.js +0 -438
  306. package/lib/codec/ccm/query.d.ts +0 -45
  307. package/lib/codec/ccm/query.js +0 -197
  308. package/lib/codec/ccm/tx.d.ts +0 -97
  309. package/lib/codec/ccm/tx.js +0 -462
  310. package/lib/codec/cdp/asset_params.d.ts +0 -57
  311. package/lib/codec/cdp/asset_params.js +0 -411
  312. package/lib/codec/cdp/cdp_liquidations.d.ts +0 -32
  313. package/lib/codec/cdp/cdp_liquidations.js +0 -288
  314. package/lib/codec/cdp/debt_info.d.ts +0 -23
  315. package/lib/codec/cdp/debt_info.js +0 -158
  316. package/lib/codec/cdp/e_mode_category.d.ts +0 -23
  317. package/lib/codec/cdp/e_mode_category.js +0 -135
  318. package/lib/codec/cdp/event.d.ts +0 -439
  319. package/lib/codec/cdp/event.js +0 -2831
  320. package/lib/codec/cdp/export.d.ts +0 -13
  321. package/lib/codec/cdp/export.js +0 -210
  322. package/lib/codec/cdp/genesis.d.ts +0 -134
  323. package/lib/codec/cdp/genesis.js +0 -825
  324. package/lib/codec/cdp/params.d.ts +0 -70
  325. package/lib/codec/cdp/params.js +0 -220
  326. package/lib/codec/cdp/query.d.ts +0 -623
  327. package/lib/codec/cdp/query.js +0 -3012
  328. package/lib/codec/cdp/rate_strategy_params.d.ts +0 -26
  329. package/lib/codec/cdp/rate_strategy_params.js +0 -180
  330. package/lib/codec/cdp/reward_scheme.d.ts +0 -71
  331. package/lib/codec/cdp/reward_scheme.js +0 -550
  332. package/lib/codec/cdp/stablecoin_debt_info.d.ts +0 -22
  333. package/lib/codec/cdp/stablecoin_debt_info.js +0 -144
  334. package/lib/codec/cdp/stablecoin_interest_info.d.ts +0 -19
  335. package/lib/codec/cdp/stablecoin_interest_info.js +0 -99
  336. package/lib/codec/cdp/tx.d.ts +0 -1004
  337. package/lib/codec/cdp/tx.js +0 -5107
  338. package/lib/codec/coin/bridge.d.ts +0 -24
  339. package/lib/codec/coin/bridge.js +0 -151
  340. package/lib/codec/coin/event.d.ts +0 -143
  341. package/lib/codec/coin/event.js +0 -775
  342. package/lib/codec/coin/export.d.ts +0 -8
  343. package/lib/codec/coin/export.js +0 -107
  344. package/lib/codec/coin/genesis.d.ts +0 -42
  345. package/lib/codec/coin/genesis.js +0 -207
  346. package/lib/codec/coin/group.d.ts +0 -50
  347. package/lib/codec/coin/group.js +0 -230
  348. package/lib/codec/coin/proposal.d.ts +0 -21
  349. package/lib/codec/coin/proposal.js +0 -91
  350. package/lib/codec/coin/query.d.ts +0 -310
  351. package/lib/codec/coin/query.js +0 -1439
  352. package/lib/codec/coin/token.d.ts +0 -103
  353. package/lib/codec/coin/token.js +0 -681
  354. package/lib/codec/coin/tx.d.ts +0 -586
  355. package/lib/codec/coin/tx.js +0 -3131
  356. package/lib/codec/erc20/erc20.d.ts +0 -41
  357. package/lib/codec/erc20/erc20.js +0 -144
  358. package/lib/codec/erc20/events.d.ts +0 -76
  359. package/lib/codec/erc20/events.js +0 -330
  360. package/lib/codec/erc20/export.d.ts +0 -5
  361. package/lib/codec/erc20/export.js +0 -37
  362. package/lib/codec/erc20/genesis.d.ts +0 -40
  363. package/lib/codec/erc20/genesis.js +0 -139
  364. package/lib/codec/erc20/query.d.ts +0 -117
  365. package/lib/codec/erc20/query.js +0 -333
  366. package/lib/codec/erc20/tx.d.ts +0 -232
  367. package/lib/codec/erc20/tx.js +0 -765
  368. package/lib/codec/evmbank/export.d.ts +0 -2
  369. package/lib/codec/evmbank/export.js +0 -8
  370. package/lib/codec/evmbank/genesis.d.ts +0 -32
  371. package/lib/codec/evmbank/genesis.js +0 -152
  372. package/lib/codec/evmbank/query.d.ts +0 -40
  373. package/lib/codec/evmbank/query.js +0 -116
  374. package/lib/codec/evmcontract/genesis.d.ts +0 -18
  375. package/lib/codec/evmcontract/genesis.js +0 -46
  376. package/lib/codec/evmcontract/query.d.ts +0 -12
  377. package/lib/codec/evmcontract/query.js +0 -20
  378. package/lib/codec/evmcontract/tx.d.ts +0 -12
  379. package/lib/codec/evmcontract/tx.js +0 -20
  380. package/lib/codec/evmmerge/address.d.ts +0 -19
  381. package/lib/codec/evmmerge/address.js +0 -75
  382. package/lib/codec/evmmerge/event.d.ts +0 -20
  383. package/lib/codec/evmmerge/event.js +0 -90
  384. package/lib/codec/evmmerge/export.d.ts +0 -6
  385. package/lib/codec/evmmerge/export.js +0 -20
  386. package/lib/codec/evmmerge/genesis.d.ts +0 -48
  387. package/lib/codec/evmmerge/genesis.js +0 -216
  388. package/lib/codec/evmmerge/offchain.d.ts +0 -22
  389. package/lib/codec/evmmerge/offchain.js +0 -105
  390. package/lib/codec/evmmerge/query.d.ts +0 -75
  391. package/lib/codec/evmmerge/query.js +0 -254
  392. package/lib/codec/evmmerge/tx.d.ts +0 -45
  393. package/lib/codec/evmmerge/tx.js +0 -128
  394. package/lib/codec/fee/event.d.ts +0 -20
  395. package/lib/codec/fee/event.js +0 -83
  396. package/lib/codec/fee/export.d.ts +0 -5
  397. package/lib/codec/fee/export.js +0 -32
  398. package/lib/codec/fee/fee.d.ts +0 -42
  399. package/lib/codec/fee/fee.js +0 -183
  400. package/lib/codec/fee/genesis.d.ts +0 -23
  401. package/lib/codec/fee/genesis.js +0 -79
  402. package/lib/codec/fee/proposal.d.ts +0 -57
  403. package/lib/codec/fee/proposal.js +0 -311
  404. package/lib/codec/fee/query.d.ts +0 -114
  405. package/lib/codec/fee/query.js +0 -470
  406. package/lib/codec/fee/tx.d.ts +0 -108
  407. package/lib/codec/fee/tx.js +0 -415
  408. package/lib/codec/headersync/consensus_peers.d.ts +0 -70
  409. package/lib/codec/headersync/consensus_peers.js +0 -383
  410. package/lib/codec/headersync/export.d.ts +0 -4
  411. package/lib/codec/headersync/export.js +0 -24
  412. package/lib/codec/headersync/genesis.d.ts +0 -79
  413. package/lib/codec/headersync/genesis.js +0 -419
  414. package/lib/codec/headersync/query.d.ts +0 -64
  415. package/lib/codec/headersync/query.js +0 -231
  416. package/lib/codec/headersync/tx.d.ts +0 -64
  417. package/lib/codec/headersync/tx.js +0 -215
  418. package/lib/codec/inflation/export.d.ts +0 -2
  419. package/lib/codec/inflation/export.js +0 -8
  420. package/lib/codec/inflation/genesis.d.ts +0 -25
  421. package/lib/codec/inflation/genesis.js +0 -79
  422. package/lib/codec/inflation/inflation.d.ts +0 -22
  423. package/lib/codec/inflation/inflation.js +0 -110
  424. package/lib/codec/inflation/query.d.ts +0 -41
  425. package/lib/codec/inflation/query.js +0 -109
  426. package/lib/codec/inflation/tx.d.ts +0 -12
  427. package/lib/codec/inflation/tx.js +0 -20
  428. package/lib/codec/insurance/event.d.ts +0 -24
  429. package/lib/codec/insurance/event.js +0 -46
  430. package/lib/codec/insurance/export.d.ts +0 -4
  431. package/lib/codec/insurance/export.js +0 -14
  432. package/lib/codec/insurance/fund.d.ts +0 -29
  433. package/lib/codec/insurance/fund.js +0 -148
  434. package/lib/codec/insurance/genesis.d.ts +0 -18
  435. package/lib/codec/insurance/genesis.js +0 -46
  436. package/lib/codec/insurance/query.d.ts +0 -41
  437. package/lib/codec/insurance/query.js +0 -108
  438. package/lib/codec/insurance/tx.d.ts +0 -44
  439. package/lib/codec/insurance/tx.js +0 -144
  440. package/lib/codec/leverage/event.d.ts +0 -21
  441. package/lib/codec/leverage/event.js +0 -100
  442. package/lib/codec/leverage/export.d.ts +0 -4
  443. package/lib/codec/leverage/export.js +0 -16
  444. package/lib/codec/leverage/genesis.d.ts +0 -24
  445. package/lib/codec/leverage/genesis.js +0 -64
  446. package/lib/codec/leverage/leverage.d.ts +0 -30
  447. package/lib/codec/leverage/leverage.js +0 -134
  448. package/lib/codec/leverage/query.d.ts +0 -70
  449. package/lib/codec/leverage/query.js +0 -234
  450. package/lib/codec/leverage/tx.d.ts +0 -43
  451. package/lib/codec/leverage/tx.js +0 -127
  452. package/lib/codec/liquidation/export.d.ts +0 -5
  453. package/lib/codec/liquidation/export.js +0 -17
  454. package/lib/codec/liquidation/genesis.d.ts +0 -37
  455. package/lib/codec/liquidation/genesis.js +0 -136
  456. package/lib/codec/liquidation/liquidation.d.ts +0 -17
  457. package/lib/codec/liquidation/liquidation.js +0 -46
  458. package/lib/codec/liquidation/outstanding_position.d.ts +0 -33
  459. package/lib/codec/liquidation/outstanding_position.js +0 -203
  460. package/lib/codec/liquidation/query.d.ts +0 -77
  461. package/lib/codec/liquidation/query.js +0 -341
  462. package/lib/codec/liquidation/quote_changes.d.ts +0 -22
  463. package/lib/codec/liquidation/quote_changes.js +0 -95
  464. package/lib/codec/liquidation/tx.d.ts +0 -12
  465. package/lib/codec/liquidation/tx.js +0 -20
  466. package/lib/codec/liquiditypool/event.d.ts +0 -143
  467. package/lib/codec/liquiditypool/event.js +0 -975
  468. package/lib/codec/liquiditypool/export.d.ts +0 -6
  469. package/lib/codec/liquiditypool/export.js +0 -125
  470. package/lib/codec/liquiditypool/genesis.d.ts +0 -33
  471. package/lib/codec/liquiditypool/genesis.js +0 -243
  472. package/lib/codec/liquiditypool/liquiditypool.d.ts +0 -138
  473. package/lib/codec/liquiditypool/liquiditypool.js +0 -943
  474. package/lib/codec/liquiditypool/proposal.d.ts +0 -117
  475. package/lib/codec/liquiditypool/proposal.js +0 -697
  476. package/lib/codec/liquiditypool/query.d.ts +0 -419
  477. package/lib/codec/liquiditypool/query.js +0 -1985
  478. package/lib/codec/liquiditypool/reward.d.ts +0 -196
  479. package/lib/codec/liquiditypool/reward.js +0 -1218
  480. package/lib/codec/liquiditypool/tx.d.ts +0 -453
  481. package/lib/codec/liquiditypool/tx.js +0 -2423
  482. package/lib/codec/lockproxy/event.d.ts +0 -46
  483. package/lib/codec/lockproxy/event.js +0 -348
  484. package/lib/codec/lockproxy/export.d.ts +0 -5
  485. package/lib/codec/lockproxy/export.js +0 -28
  486. package/lib/codec/lockproxy/genesis.d.ts +0 -68
  487. package/lib/codec/lockproxy/genesis.js +0 -355
  488. package/lib/codec/lockproxy/lockproxy.d.ts +0 -22
  489. package/lib/codec/lockproxy/lockproxy.js +0 -147
  490. package/lib/codec/lockproxy/query.d.ts +0 -67
  491. package/lib/codec/lockproxy/query.js +0 -274
  492. package/lib/codec/lockproxy/tx.d.ts +0 -147
  493. package/lib/codec/lockproxy/tx.js +0 -808
  494. package/lib/codec/market/event.d.ts +0 -20
  495. package/lib/codec/market/event.js +0 -76
  496. package/lib/codec/market/export.d.ts +0 -6
  497. package/lib/codec/market/export.js +0 -61
  498. package/lib/codec/market/fee.d.ts +0 -123
  499. package/lib/codec/market/fee.js +0 -334
  500. package/lib/codec/market/genesis.d.ts +0 -31
  501. package/lib/codec/market/genesis.js +0 -147
  502. package/lib/codec/market/market.d.ts +0 -131
  503. package/lib/codec/market/market.js +0 -1245
  504. package/lib/codec/market/proposal.d.ts +0 -46
  505. package/lib/codec/market/proposal.js +0 -245
  506. package/lib/codec/market/query.d.ts +0 -233
  507. package/lib/codec/market/query.js +0 -938
  508. package/lib/codec/market/tx.d.ts +0 -250
  509. package/lib/codec/market/tx.js +0 -1265
  510. package/lib/codec/marketstats/export.d.ts +0 -3
  511. package/lib/codec/marketstats/export.js +0 -12
  512. package/lib/codec/marketstats/genesis.d.ts +0 -21
  513. package/lib/codec/marketstats/genesis.js +0 -63
  514. package/lib/codec/marketstats/marketstats.d.ts +0 -31
  515. package/lib/codec/marketstats/marketstats.js +0 -258
  516. package/lib/codec/marketstats/params.d.ts +0 -18
  517. package/lib/codec/marketstats/params.js +0 -46
  518. package/lib/codec/marketstats/query.d.ts +0 -66
  519. package/lib/codec/marketstats/query.js +0 -195
  520. package/lib/codec/marketstats/tx.d.ts +0 -12
  521. package/lib/codec/marketstats/tx.js +0 -20
  522. package/lib/codec/misc/block.d.ts +0 -21
  523. package/lib/codec/misc/block.js +0 -105
  524. package/lib/codec/misc/export.d.ts +0 -6
  525. package/lib/codec/misc/export.js +0 -29
  526. package/lib/codec/misc/message.d.ts +0 -22
  527. package/lib/codec/misc/message.js +0 -128
  528. package/lib/codec/misc/message_type.d.ts +0 -18
  529. package/lib/codec/misc/message_type.js +0 -60
  530. package/lib/codec/misc/query.d.ts +0 -192
  531. package/lib/codec/misc/query.js +0 -884
  532. package/lib/codec/misc/trade.d.ts +0 -28
  533. package/lib/codec/misc/trade.js +0 -224
  534. package/lib/codec/misc/transaction.d.ts +0 -45
  535. package/lib/codec/misc/transaction.js +0 -369
  536. package/lib/codec/oracle/event.d.ts +0 -37
  537. package/lib/codec/oracle/event.js +0 -228
  538. package/lib/codec/oracle/export.d.ts +0 -6
  539. package/lib/codec/oracle/export.js +0 -58
  540. package/lib/codec/oracle/genesis.d.ts +0 -28
  541. package/lib/codec/oracle/genesis.js +0 -141
  542. package/lib/codec/oracle/oracle.d.ts +0 -94
  543. package/lib/codec/oracle/oracle.js +0 -650
  544. package/lib/codec/oracle/proposal.d.ts +0 -21
  545. package/lib/codec/oracle/proposal.js +0 -91
  546. package/lib/codec/oracle/query.d.ts +0 -333
  547. package/lib/codec/oracle/query.js +0 -1545
  548. package/lib/codec/oracle/slashing.d.ts +0 -33
  549. package/lib/codec/oracle/slashing.js +0 -191
  550. package/lib/codec/oracle/tx.d.ts +0 -169
  551. package/lib/codec/oracle/tx.js +0 -877
  552. package/lib/codec/order/event.d.ts +0 -23
  553. package/lib/codec/order/event.js +0 -146
  554. package/lib/codec/order/export.d.ts +0 -5
  555. package/lib/codec/order/export.js +0 -39
  556. package/lib/codec/order/genesis.d.ts +0 -62
  557. package/lib/codec/order/genesis.js +0 -322
  558. package/lib/codec/order/order.d.ts +0 -113
  559. package/lib/codec/order/order.js +0 -875
  560. package/lib/codec/order/query.d.ts +0 -143
  561. package/lib/codec/order/query.js +0 -596
  562. package/lib/codec/order/tx.d.ts +0 -146
  563. package/lib/codec/order/tx.js +0 -715
  564. package/lib/codec/perpsliquidity/event.d.ts +0 -115
  565. package/lib/codec/perpsliquidity/event.js +0 -657
  566. package/lib/codec/perpsliquidity/genesis.d.ts +0 -36
  567. package/lib/codec/perpsliquidity/genesis.js +0 -163
  568. package/lib/codec/perpsliquidity/market.d.ts +0 -84
  569. package/lib/codec/perpsliquidity/market.js +0 -431
  570. package/lib/codec/perpsliquidity/params.d.ts +0 -27
  571. package/lib/codec/perpsliquidity/params.js +0 -129
  572. package/lib/codec/perpsliquidity/pool.d.ts +0 -119
  573. package/lib/codec/perpsliquidity/pool.js +0 -774
  574. package/lib/codec/perpsliquidity/query.d.ts +0 -246
  575. package/lib/codec/perpsliquidity/query.js +0 -1125
  576. package/lib/codec/perpsliquidity/tx.d.ts +0 -203
  577. package/lib/codec/perpsliquidity/tx.js +0 -973
  578. package/lib/codec/perpspool/event.d.ts +0 -95
  579. package/lib/codec/perpspool/event.js +0 -561
  580. package/lib/codec/perpspool/export.d.ts +0 -7
  581. package/lib/codec/perpspool/export.js +0 -68
  582. package/lib/codec/perpspool/genesis.d.ts +0 -61
  583. package/lib/codec/perpspool/genesis.js +0 -343
  584. package/lib/codec/perpspool/market.d.ts +0 -96
  585. package/lib/codec/perpspool/market.js +0 -493
  586. package/lib/codec/perpspool/params.d.ts +0 -30
  587. package/lib/codec/perpspool/params.js +0 -189
  588. package/lib/codec/perpspool/pool.d.ts +0 -103
  589. package/lib/codec/perpspool/pool.js +0 -638
  590. package/lib/codec/perpspool/query.d.ts +0 -247
  591. package/lib/codec/perpspool/query.js +0 -1141
  592. package/lib/codec/perpspool/tx.d.ts +0 -229
  593. package/lib/codec/perpspool/tx.js +0 -1144
  594. package/lib/codec/position/event.d.ts +0 -26
  595. package/lib/codec/position/event.js +0 -180
  596. package/lib/codec/position/export.d.ts +0 -4
  597. package/lib/codec/position/export.js +0 -20
  598. package/lib/codec/position/genesis.d.ts +0 -24
  599. package/lib/codec/position/genesis.js +0 -64
  600. package/lib/codec/position/position.d.ts +0 -72
  601. package/lib/codec/position/position.js +0 -567
  602. package/lib/codec/position/query.d.ts +0 -92
  603. package/lib/codec/position/query.js +0 -400
  604. package/lib/codec/position/tx.d.ts +0 -42
  605. package/lib/codec/position/tx.js +0 -127
  606. package/lib/codec/pricing/event.d.ts +0 -74
  607. package/lib/codec/pricing/event.js +0 -361
  608. package/lib/codec/pricing/export.d.ts +0 -6
  609. package/lib/codec/pricing/export.js +0 -45
  610. package/lib/codec/pricing/genesis.d.ts +0 -26
  611. package/lib/codec/pricing/genesis.js +0 -95
  612. package/lib/codec/pricing/legacy.d.ts +0 -22
  613. package/lib/codec/pricing/legacy.js +0 -93
  614. package/lib/codec/pricing/pricing.d.ts +0 -60
  615. package/lib/codec/pricing/pricing.js +0 -456
  616. package/lib/codec/pricing/proposal.d.ts +0 -31
  617. package/lib/codec/pricing/proposal.js +0 -148
  618. package/lib/codec/pricing/query.d.ts +0 -183
  619. package/lib/codec/pricing/query.js +0 -759
  620. package/lib/codec/pricing/tx.d.ts +0 -131
  621. package/lib/codec/pricing/tx.js +0 -529
  622. package/lib/codec/profile/event.d.ts +0 -20
  623. package/lib/codec/profile/event.js +0 -78
  624. package/lib/codec/profile/export.d.ts +0 -4
  625. package/lib/codec/profile/export.js +0 -17
  626. package/lib/codec/profile/genesis.d.ts +0 -24
  627. package/lib/codec/profile/genesis.js +0 -64
  628. package/lib/codec/profile/profile.d.ts +0 -20
  629. package/lib/codec/profile/profile.js +0 -83
  630. package/lib/codec/profile/query.d.ts +0 -92
  631. package/lib/codec/profile/query.js +0 -360
  632. package/lib/codec/profile/tx.d.ts +0 -43
  633. package/lib/codec/profile/tx.js +0 -127
  634. package/lib/codec/sequence/export.d.ts +0 -3
  635. package/lib/codec/sequence/export.js +0 -13
  636. package/lib/codec/sequence/genesis.d.ts +0 -30
  637. package/lib/codec/sequence/genesis.js +0 -122
  638. package/lib/codec/sequence/query.d.ts +0 -63
  639. package/lib/codec/sequence/query.js +0 -208
  640. package/lib/codec/sequence/tx.d.ts +0 -41
  641. package/lib/codec/sequence/tx.js +0 -148
  642. package/lib/codec/subaccount/export.d.ts +0 -4
  643. package/lib/codec/subaccount/export.js +0 -35
  644. package/lib/codec/subaccount/genesis.d.ts +0 -24
  645. package/lib/codec/subaccount/genesis.js +0 -64
  646. package/lib/codec/subaccount/legacy.d.ts +0 -19
  647. package/lib/codec/subaccount/legacy.js +0 -72
  648. package/lib/codec/subaccount/query.d.ts +0 -115
  649. package/lib/codec/subaccount/query.js +0 -456
  650. package/lib/codec/subaccount/subaccount.d.ts +0 -31
  651. package/lib/codec/subaccount/subaccount.js +0 -146
  652. package/lib/codec/subaccount/tx.d.ts +0 -86
  653. package/lib/codec/subaccount/tx.js +0 -310
  654. package/lib/modules/feemarket.d.ts +0 -20
  655. package/lib/modules/feemarket.js +0 -45
  656. package/lib/modules/perpsliquidity.d.ts +0 -49
  657. package/lib/modules/perpsliquidity.js +0 -118
  658. package/lib/provider/amino/types/perpsliquidity.d.ts +0 -4
  659. package/lib/provider/amino/types/perpsliquidity.js +0 -73
@@ -24,13 +24,6 @@ export interface BlockParams {
24
24
  * Note: must be greater or equal to -1
25
25
  */
26
26
  maxGas: Long;
27
- /**
28
- * Minimum time increment between consecutive blocks (in milliseconds) If the
29
- * block header timestamp is ahead of the system clock, decrease this value.
30
- *
31
- * Not exposed to the application.
32
- */
33
- timeIotaMs: Long;
34
27
  }
35
28
  /** EvidenceParams determine how we handle evidence of malfeasance. */
36
29
  export interface EvidenceParams {
@@ -65,7 +58,7 @@ export interface ValidatorParams {
65
58
  }
66
59
  /** VersionParams contains the ABCI application version. */
67
60
  export interface VersionParams {
68
- appVersion: Long;
61
+ app: Long;
69
62
  }
70
63
  /**
71
64
  * HashedParams is a subset of ConsensusParams.
@@ -113,11 +113,7 @@ exports.ConsensusParams = {
113
113
  return message;
114
114
  },
115
115
  };
116
- const baseBlockParams = {
117
- maxBytes: long_1.default.ZERO,
118
- maxGas: long_1.default.ZERO,
119
- timeIotaMs: long_1.default.ZERO,
120
- };
116
+ const baseBlockParams = { maxBytes: long_1.default.ZERO, maxGas: long_1.default.ZERO };
121
117
  exports.BlockParams = {
122
118
  encode(message, writer = minimal_1.default.Writer.create()) {
123
119
  if (!message.maxBytes.isZero()) {
@@ -126,9 +122,6 @@ exports.BlockParams = {
126
122
  if (!message.maxGas.isZero()) {
127
123
  writer.uint32(16).int64(message.maxGas);
128
124
  }
129
- if (!message.timeIotaMs.isZero()) {
130
- writer.uint32(24).int64(message.timeIotaMs);
131
- }
132
125
  return writer;
133
126
  },
134
127
  decode(input, length) {
@@ -144,9 +137,6 @@ exports.BlockParams = {
144
137
  case 2:
145
138
  message.maxGas = reader.int64();
146
139
  break;
147
- case 3:
148
- message.timeIotaMs = reader.int64();
149
- break;
150
140
  default:
151
141
  reader.skipType(tag & 7);
152
142
  break;
@@ -164,10 +154,6 @@ exports.BlockParams = {
164
154
  object.maxGas !== undefined && object.maxGas !== null
165
155
  ? long_1.default.fromString(object.maxGas)
166
156
  : long_1.default.ZERO;
167
- message.timeIotaMs =
168
- object.timeIotaMs !== undefined && object.timeIotaMs !== null
169
- ? long_1.default.fromString(object.timeIotaMs)
170
- : long_1.default.ZERO;
171
157
  return message;
172
158
  },
173
159
  toJSON(message) {
@@ -176,8 +162,6 @@ exports.BlockParams = {
176
162
  (obj.maxBytes = (message.maxBytes || long_1.default.ZERO).toString());
177
163
  message.maxGas !== undefined &&
178
164
  (obj.maxGas = (message.maxGas || long_1.default.ZERO).toString());
179
- message.timeIotaMs !== undefined &&
180
- (obj.timeIotaMs = (message.timeIotaMs || long_1.default.ZERO).toString());
181
165
  return obj;
182
166
  },
183
167
  fromPartial(object) {
@@ -190,10 +174,6 @@ exports.BlockParams = {
190
174
  object.maxGas !== undefined && object.maxGas !== null
191
175
  ? long_1.default.fromValue(object.maxGas)
192
176
  : long_1.default.ZERO;
193
- message.timeIotaMs =
194
- object.timeIotaMs !== undefined && object.timeIotaMs !== null
195
- ? long_1.default.fromValue(object.timeIotaMs)
196
- : long_1.default.ZERO;
197
177
  return message;
198
178
  },
199
179
  };
@@ -331,11 +311,11 @@ exports.ValidatorParams = {
331
311
  return message;
332
312
  },
333
313
  };
334
- const baseVersionParams = { appVersion: long_1.default.UZERO };
314
+ const baseVersionParams = { app: long_1.default.UZERO };
335
315
  exports.VersionParams = {
336
316
  encode(message, writer = minimal_1.default.Writer.create()) {
337
- if (!message.appVersion.isZero()) {
338
- writer.uint32(8).uint64(message.appVersion);
317
+ if (!message.app.isZero()) {
318
+ writer.uint32(8).uint64(message.app);
339
319
  }
340
320
  return writer;
341
321
  },
@@ -347,7 +327,7 @@ exports.VersionParams = {
347
327
  const tag = reader.uint32();
348
328
  switch (tag >>> 3) {
349
329
  case 1:
350
- message.appVersion = reader.uint64();
330
+ message.app = reader.uint64();
351
331
  break;
352
332
  default:
353
333
  reader.skipType(tag & 7);
@@ -358,23 +338,23 @@ exports.VersionParams = {
358
338
  },
359
339
  fromJSON(object) {
360
340
  const message = Object.assign({}, baseVersionParams);
361
- message.appVersion =
362
- object.appVersion !== undefined && object.appVersion !== null
363
- ? long_1.default.fromString(object.appVersion)
341
+ message.app =
342
+ object.app !== undefined && object.app !== null
343
+ ? long_1.default.fromString(object.app)
364
344
  : long_1.default.UZERO;
365
345
  return message;
366
346
  },
367
347
  toJSON(message) {
368
348
  const obj = {};
369
- message.appVersion !== undefined &&
370
- (obj.appVersion = (message.appVersion || long_1.default.UZERO).toString());
349
+ message.app !== undefined &&
350
+ (obj.app = (message.app || long_1.default.UZERO).toString());
371
351
  return obj;
372
352
  },
373
353
  fromPartial(object) {
374
354
  const message = Object.assign({}, baseVersionParams);
375
- message.appVersion =
376
- object.appVersion !== undefined && object.appVersion !== null
377
- ? long_1.default.fromValue(object.appVersion)
355
+ message.app =
356
+ object.app !== undefined && object.app !== null
357
+ ? long_1.default.fromValue(object.app)
378
358
  : long_1.default.UZERO;
379
359
  return message;
380
360
  },
@@ -0,0 +1,2 @@
1
+ export declare const AUTHORIZED_SIGNLESS_MSGS_VERSION = 1;
2
+ export declare const BUFFER_PERIOD = 60;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BUFFER_PERIOD = exports.AUTHORIZED_SIGNLESS_MSGS_VERSION = void 0;
4
+ exports.AUTHORIZED_SIGNLESS_MSGS_VERSION = 1;
5
+ exports.BUFFER_PERIOD = 60;
@@ -35,7 +35,7 @@ export declare const InsightsEndpoints: {
35
35
  "competition/leaderboardleague": string;
36
36
  "competition/leaderboardvolume": string;
37
37
  "info/denom_gecko_map": string;
38
- "market/funding": string;
38
+ "market/funding/history/all": string;
39
39
  "market/funding/history": string;
40
40
  "proposal/votes": string;
41
41
  "delegations/delegator": string;
@@ -47,7 +47,7 @@ exports.InsightsEndpoints = {
47
47
  //Coin Gecko Tokens api
48
48
  "info/denom_gecko_map": "/info/denom_gecko_map",
49
49
  //funding
50
- "market/funding": "/market/funding",
50
+ "market/funding/history/all": "/market/funding/history/all",
51
51
  "market/funding/history": "/market/funding/history",
52
52
  // Proposal api
53
53
  "proposal/votes": "/gov/proposal/:proposalId/votes",
@@ -1,4 +1,4 @@
1
- export interface FundingHistory {
1
+ export interface FundingRate {
2
2
  market: string;
3
3
  "1h": string;
4
4
  "4h": string;
@@ -9,9 +9,20 @@ export interface FundingHistory {
9
9
  "24h": string;
10
10
  }
11
11
  export interface QueryGetFundingRateResponse {
12
- entries: FundingHistory[];
12
+ entries: FundingRate[];
13
13
  }
14
14
  export interface QueryGetFundingRateRequest {
15
+ market: string;
16
+ }
17
+ export interface FundingHistory {
18
+ market: string;
19
+ fundingRate: number;
20
+ lastFundingAt: string;
21
+ }
22
+ export interface QueryGetFundingHistoryResponse {
23
+ entries: FundingHistory[];
24
+ }
25
+ export interface QueryGetFundingHistoryRequest {
15
26
  market?: string;
16
27
  limit?: number;
17
28
  offset?: number;
@@ -26,7 +26,7 @@ class EvmModule extends base_1.default {
26
26
  data: constructTxDataAny(req),
27
27
  });
28
28
  return yield wallet.sendTx({
29
- typeUrl: util_1.CarbonTx.Types.MsgEvmEthereumTx,
29
+ typeUrl: util_1.CarbonTx.Types.MsgEthereumTx,
30
30
  value,
31
31
  }, opts);
32
32
  });
@@ -0,0 +1,24 @@
1
+ import { CarbonTx } from "../util";
2
+ import BaseModule from "./base";
3
+ export declare class SignlessModule extends BaseModule {
4
+ grantSignlessPermission(params: SignlessModule.GrantSignlessPermissionParams, opts?: CarbonTx.SignTxOpts): Promise<import("..").CarbonWallet.SendTxResponse>;
5
+ queryGranteeDetails(params: SignlessModule.QueryGrantParams): Promise<import("../codec/cosmos/authz/v1beta1/query").QueryGrantsResponse>;
6
+ queryGranteeAllowance(params: SignlessModule.QueryAllowanceParams): Promise<import("../codec/cosmos/feegrant/v1beta1/query").QueryAllowanceResponse>;
7
+ }
8
+ export declare namespace SignlessModule {
9
+ interface GrantSignlessPermissionParams {
10
+ grantee: string;
11
+ granter?: string;
12
+ expiry: Date;
13
+ existingGrantee?: boolean;
14
+ }
15
+ interface QueryGrantParams {
16
+ grantee?: string;
17
+ granter?: string;
18
+ msgTypeUrl?: string;
19
+ }
20
+ interface QueryAllowanceParams {
21
+ grantee?: string;
22
+ granter?: string;
23
+ }
24
+ }
@@ -0,0 +1,108 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.SignlessModule = void 0;
16
+ const tx_1 = require("../codec/cosmos/authz/v1beta1/tx");
17
+ const util_1 = require("../util");
18
+ const authz_1 = require("../codec/cosmos/authz/v1beta1/authz");
19
+ const feegrant_1 = require("../codec/cosmos/feegrant/v1beta1/feegrant");
20
+ const tx_2 = require("../codec/cosmos/feegrant/v1beta1/tx");
21
+ const signless_1 = require("../util/signless");
22
+ const base_1 = __importDefault(require("./base"));
23
+ class SignlessModule extends base_1.default {
24
+ grantSignlessPermission(params, opts) {
25
+ var _a, _b;
26
+ return __awaiter(this, void 0, void 0, function* () {
27
+ const wallet = this.getWallet();
28
+ const encodedGrantMsgs = signless_1.AuthorizedSignlessMsgs.map((msg) => {
29
+ var _a;
30
+ const grantMsg = tx_1.MsgGrant.fromPartial({
31
+ granter: (_a = params.granter) !== null && _a !== void 0 ? _a : wallet.bech32Address,
32
+ grantee: params.grantee,
33
+ grant: {
34
+ authorization: {
35
+ typeUrl: '/cosmos.authz.v1beta1.GenericAuthorization',
36
+ value: authz_1.GenericAuthorization.encode(authz_1.GenericAuthorization.fromPartial({
37
+ msg,
38
+ })).finish(),
39
+ },
40
+ expiration: params.expiry,
41
+ },
42
+ });
43
+ return {
44
+ typeUrl: util_1.CarbonTx.Types.MsgGrant, value: grantMsg,
45
+ };
46
+ });
47
+ let messages = encodedGrantMsgs;
48
+ if (params.existingGrantee) {
49
+ const encodedRevokeAllowanceMsg = [{
50
+ typeUrl: util_1.CarbonTx.Types.MsgRevokeAllowance,
51
+ value: tx_2.MsgRevokeAllowance.fromPartial({
52
+ granter: (_a = params.granter) !== null && _a !== void 0 ? _a : wallet.bech32Address,
53
+ grantee: params.grantee,
54
+ }),
55
+ }];
56
+ messages = messages.concat(encodedRevokeAllowanceMsg);
57
+ }
58
+ const encodedAllowanceMsg = [{
59
+ typeUrl: util_1.CarbonTx.Types.MsgGrantAllowance,
60
+ value: tx_2.MsgGrantAllowance.fromPartial({
61
+ granter: (_b = params.granter) !== null && _b !== void 0 ? _b : wallet.bech32Address,
62
+ grantee: params.grantee,
63
+ allowance: {
64
+ typeUrl: '/cosmos.feegrant.v1beta1.AllowedMsgAllowance',
65
+ value: feegrant_1.AllowedMsgAllowance.encode(feegrant_1.AllowedMsgAllowance.fromPartial({
66
+ allowance: {
67
+ typeUrl: '/cosmos.feegrant.v1beta1.BasicAllowance',
68
+ value: feegrant_1.BasicAllowance.encode(feegrant_1.BasicAllowance.fromPartial({
69
+ expiration: params.expiry,
70
+ })).finish(),
71
+ },
72
+ allowedMessages: ["/cosmos.authz.v1beta1.MsgExec"],
73
+ })).finish(),
74
+ },
75
+ }),
76
+ }];
77
+ messages = messages.concat(encodedAllowanceMsg);
78
+ const result = yield wallet.sendTxs(messages, opts);
79
+ return result;
80
+ });
81
+ }
82
+ queryGranteeDetails(params) {
83
+ var _a, _b, _c;
84
+ return __awaiter(this, void 0, void 0, function* () {
85
+ const wallet = this.getWallet();
86
+ const queryParams = {
87
+ grantee: (_a = params.grantee) !== null && _a !== void 0 ? _a : '',
88
+ granter: (_b = params.granter) !== null && _b !== void 0 ? _b : wallet.bech32Address,
89
+ msgTypeUrl: (_c = params.msgTypeUrl) !== null && _c !== void 0 ? _c : '',
90
+ };
91
+ const response = yield this.sdkProvider.query.grant.Grants(queryParams);
92
+ return response;
93
+ });
94
+ }
95
+ queryGranteeAllowance(params) {
96
+ var _a, _b;
97
+ return __awaiter(this, void 0, void 0, function* () {
98
+ const wallet = this.getWallet();
99
+ const queryParams = {
100
+ grantee: (_a = params.grantee) !== null && _a !== void 0 ? _a : '',
101
+ granter: (_b = params.granter) !== null && _b !== void 0 ? _b : wallet.bech32Address,
102
+ };
103
+ const response = yield this.sdkProvider.query.feegrant.Allowance(queryParams);
104
+ return response;
105
+ });
106
+ }
107
+ }
108
+ exports.SignlessModule = SignlessModule;
@@ -29,6 +29,6 @@ const MsgEthereumTx = {
29
29
  valueMap: {},
30
30
  };
31
31
  const EvmAmino = {
32
- [CarbonTx.Types.MsgEvmEthereumTx]: utils_1.generateAminoType(MsgEthereumTx),
32
+ [CarbonTx.Types.MsgEthereumTx]: utils_1.generateAminoType(MsgEthereumTx),
33
33
  };
34
34
  exports.default = EvmAmino;
@@ -0,0 +1,12 @@
1
+ import { TypeUtils } from "../../../util";
2
+ import { AminoConverter } from "@cosmjs/stargate";
3
+ export declare enum SignlessTypes {
4
+ GrantAuthz = "/cosmos.authz.v1beta1.MsgGrant",
5
+ FeeGrant = "/cosmos.feegrant.v1beta1.MsgGrantAllowance",
6
+ MsgExec = "/cosmos.authz.v1beta1.MsgExec",
7
+ GenericAuthorization = "/cosmos.authz.v1beta1.GenericAuthorization",
8
+ AllowedMsgAllowance = "/cosmos.feegrant.v1beta1.AllowedMsgAllowance",
9
+ BasicAllowance = "/cosmos.feegrant.v1beta1.BasicAllowance"
10
+ }
11
+ declare const SignlessAmino: TypeUtils.SimpleMap<AminoConverter>;
12
+ export default SignlessAmino;
@@ -0,0 +1,189 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
11
+ }) : function(o, v) {
12
+ o["default"] = v;
13
+ });
14
+ var __importStar = (this && this.__importStar) || function (mod) {
15
+ if (mod && mod.__esModule) return mod;
16
+ var result = {};
17
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
+ __setModuleDefault(result, mod);
19
+ return result;
20
+ };
21
+ Object.defineProperty(exports, "__esModule", { value: true });
22
+ exports.SignlessTypes = void 0;
23
+ const authz_1 = require("../../../codec/cosmos/authz/v1beta1/authz");
24
+ const tx_1 = require("../../../codec/cosmos/feegrant/v1beta1/tx");
25
+ const util_1 = require("../../../util");
26
+ const CarbonTx = __importStar(require("../../../util/tx"));
27
+ const utils_1 = require("../utils");
28
+ const TxTypes = {
29
+ GrantAuthz: "cosmos-sdk/MsgGrant",
30
+ GrantAllowance: "cosmos-sdk/MsgGrantAllowance",
31
+ RevokeFeegrant: "cosmos-sdk/MsgRevokeAllowance",
32
+ MsgExec: "cosmos-sdk/MsgExec",
33
+ };
34
+ var SignlessTypes;
35
+ (function (SignlessTypes) {
36
+ SignlessTypes["GrantAuthz"] = "/cosmos.authz.v1beta1.MsgGrant";
37
+ SignlessTypes["FeeGrant"] = "/cosmos.feegrant.v1beta1.MsgGrantAllowance";
38
+ SignlessTypes["MsgExec"] = "/cosmos.authz.v1beta1.MsgExec";
39
+ SignlessTypes["GenericAuthorization"] = "/cosmos.authz.v1beta1.GenericAuthorization";
40
+ SignlessTypes["AllowedMsgAllowance"] = "/cosmos.feegrant.v1beta1.AllowedMsgAllowance";
41
+ SignlessTypes["BasicAllowance"] = "/cosmos.feegrant.v1beta1.BasicAllowance";
42
+ })(SignlessTypes = exports.SignlessTypes || (exports.SignlessTypes = {}));
43
+ const ContentTypes = {
44
+ [SignlessTypes.GenericAuthorization]: "cosmos-sdk/GenericAuthorization",
45
+ [SignlessTypes.AllowedMsgAllowance]: "cosmos-sdk/AllowedMsgAllowance",
46
+ [SignlessTypes.BasicAllowance]: "cosmos-sdk/BasicAllowance",
47
+ };
48
+ const GenericAuthorizationAminoType = {
49
+ aminoType: ContentTypes[SignlessTypes.GenericAuthorization],
50
+ valueMap: {},
51
+ };
52
+ const AllowedMsgAllowanceAminoType = {
53
+ aminoType: ContentTypes[SignlessTypes.AllowedMsgAllowance],
54
+ valueMap: {},
55
+ };
56
+ const BasicAllowanceAminoType = {
57
+ aminoType: ContentTypes[SignlessTypes.BasicAllowance],
58
+ valueMap: {
59
+ expiration: utils_1.ConvertEncType.Date,
60
+ },
61
+ };
62
+ const MsgGrantAuthz = {
63
+ aminoType: TxTypes.GrantAuthz,
64
+ valueMap: {
65
+ grant: {
66
+ expiration: utils_1.ConvertEncType.Date,
67
+ },
68
+ },
69
+ };
70
+ const MsgFeeGrantAllowance = {
71
+ aminoType: TxTypes.GrantAllowance,
72
+ valueMap: {},
73
+ };
74
+ const MsgRevokeAllowance = {
75
+ aminoType: TxTypes.RevokeFeegrant,
76
+ valueMap: {},
77
+ };
78
+ const MsgExec = {
79
+ aminoType: TxTypes.MsgExec,
80
+ valueMap: {},
81
+ };
82
+ const GenericAuthorizationAmino = {
83
+ value: {
84
+ msg: utils_1.ConvertEncType,
85
+ },
86
+ };
87
+ const MsgFeeGrantAllowanceAmino = {
88
+ value: {
89
+ msg: utils_1.ConvertEncType,
90
+ },
91
+ };
92
+ const preProcessAmino = (value, valueMap) => {
93
+ return utils_1.mapEachIndiv(value, valueMap, false);
94
+ };
95
+ const checkDecodeGrantAuthz = (content, amino) => {
96
+ const decodedValue = util_1.SignlessUtils.decodeContent(content);
97
+ const newContent = {
98
+ type: ContentTypes[content.typeUrl],
99
+ value: decodedValue.value,
100
+ };
101
+ const newAmino = Object.assign({}, amino);
102
+ newAmino.content = Object.assign({}, GenericAuthorizationAmino.value);
103
+ return {
104
+ newContent,
105
+ newAmino,
106
+ };
107
+ };
108
+ const checkEncodeGrantAuthz = (content, amino) => {
109
+ const grantAuthzMsg = preProcessAmino(content.value, GenericAuthorizationAmino.value.msg);
110
+ const grantAuthzProp = authz_1.GenericAuthorization.fromPartial(Object.assign(Object.assign({}, content.value), { msg: grantAuthzMsg }));
111
+ return {
112
+ newContent: {
113
+ typeUrl: SignlessTypes.GenericAuthorization,
114
+ value: authz_1.GenericAuthorization.encode(grantAuthzProp).finish(),
115
+ },
116
+ newAmino: Object.assign({}, amino),
117
+ };
118
+ };
119
+ const grantAuthzAminoProcess = {
120
+ toAminoProcess: (amino, input) => {
121
+ const { grant } = input;
122
+ const propResponse = checkDecodeGrantAuthz(grant === null || grant === void 0 ? void 0 : grant.authorization, amino);
123
+ return {
124
+ amino: propResponse.newAmino,
125
+ input: Object.assign(Object.assign({}, input), { grant: Object.assign(Object.assign({}, grant), { authorization: propResponse.newContent }) }),
126
+ };
127
+ },
128
+ fromAminoProcess: (amino, input) => {
129
+ const { grant } = input;
130
+ const propResponse = checkEncodeGrantAuthz(grant === null || grant === void 0 ? void 0 : grant.authorization, amino);
131
+ return Object.assign(Object.assign({ amino: propResponse.newAmino }, input), { grant: Object.assign(Object.assign({}, grant), { authorization: propResponse.newContent }) });
132
+ },
133
+ };
134
+ const checkEncodeFeegrant = (content, amino) => {
135
+ const msg = preProcessAmino(content.value, MsgFeeGrantAllowanceAmino.value.msg);
136
+ const grantAllowance = tx_1.MsgGrantAllowance.fromPartial(Object.assign(Object.assign({}, content.value), { msg }));
137
+ return {
138
+ newContent: {
139
+ typeUrl: SignlessTypes.FeeGrant,
140
+ value: tx_1.MsgGrantAllowance.encode(grantAllowance).finish(),
141
+ },
142
+ newAmino: Object.assign({}, amino),
143
+ };
144
+ };
145
+ const checkDecodeFeegrant = (content, amino) => {
146
+ const decodedValue = util_1.SignlessUtils.decodeContent(content);
147
+ decodedValue.value.allowance = {
148
+ type: ContentTypes[decodedValue.value.allowance.typeUrl],
149
+ value: decodedValue.value.allowance.value,
150
+ };
151
+ const newContent = {
152
+ type: ContentTypes[content.typeUrl],
153
+ value: decodedValue.value,
154
+ };
155
+ const newAmino = Object.assign({}, amino);
156
+ newAmino.content = Object.assign({}, MsgFeeGrantAllowanceAmino.value);
157
+ return {
158
+ newContent,
159
+ newAmino,
160
+ };
161
+ };
162
+ const feegrantAminoProcess = {
163
+ toAminoProcess: (amino, input) => {
164
+ const { allowance } = input;
165
+ const propResponse = checkDecodeFeegrant(allowance, amino);
166
+ return {
167
+ amino: propResponse.newAmino,
168
+ input: Object.assign(Object.assign({}, input), { allowance: propResponse.newContent }),
169
+ };
170
+ },
171
+ fromAminoProcess: (amino, input) => {
172
+ const { allowance } = input;
173
+ const propResponse = checkEncodeFeegrant(allowance, amino);
174
+ return {
175
+ amino: propResponse.newAmino,
176
+ input: Object.assign(Object.assign({}, input), { allowance: propResponse.newContent }),
177
+ };
178
+ },
179
+ };
180
+ const SignlessAmino = {
181
+ [CarbonTx.Types.MsgGrant]: utils_1.generateAminoType(MsgGrantAuthz, grantAuthzAminoProcess),
182
+ [CarbonTx.Types.MsgGrantAllowance]: utils_1.generateAminoType(MsgFeeGrantAllowance, feegrantAminoProcess),
183
+ [CarbonTx.Types.MsgRevokeAllowance]: utils_1.generateAminoType(MsgRevokeAllowance),
184
+ [CarbonTx.Types.MsgExec]: utils_1.generateAminoType(MsgExec),
185
+ [SignlessTypes.GenericAuthorization]: utils_1.generateAminoType(GenericAuthorizationAminoType),
186
+ [SignlessTypes.AllowedMsgAllowance]: utils_1.generateAminoType(AllowedMsgAllowanceAminoType),
187
+ [SignlessTypes.BasicAllowance]: utils_1.generateAminoType(BasicAllowanceAminoType),
188
+ };
189
+ exports.default = SignlessAmino;
@@ -0,0 +1,11 @@
1
+ import { Any } from "../codec/google/protobuf/any";
2
+ export declare const AuthorizedSignlessMsgs: string[];
3
+ export interface ValueDecoded {
4
+ typeUrl: string;
5
+ value: any;
6
+ }
7
+ export declare const emptyValue: {
8
+ typeUrl: string;
9
+ value: {};
10
+ };
11
+ export declare const decodeContent: (content?: Any | undefined) => ValueDecoded;
@@ -0,0 +1,92 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.decodeContent = exports.emptyValue = exports.AuthorizedSignlessMsgs = void 0;
4
+ const codec_1 = require("../codec");
5
+ const authz_1 = require("../codec/cosmos/authz/v1beta1/authz");
6
+ const feegrant_1 = require("../codec/cosmos/feegrant/v1beta1/feegrant");
7
+ const signless_1 = require("../provider/amino/types/signless");
8
+ // Increment AUTHORIZED_SIGNLESS_MSGS_VERSION whenever this list is updated
9
+ exports.AuthorizedSignlessMsgs = [
10
+ // alliance
11
+ codec_1.TxTypes.MsgAllianceDelegate,
12
+ codec_1.TxTypes.MsgAllianceUndelegate,
13
+ codec_1.TxTypes.MsgAllianceRedelegate,
14
+ codec_1.TxTypes.MsgAllianceClaimDelegationRewards,
15
+ codec_1.TxTypes.MsgWithdrawDelegatorReward,
16
+ codec_1.TxTypes.MsgAllianceClaimDelegationRewards,
17
+ // cdp
18
+ codec_1.TxTypes.MsgSupplyAsset,
19
+ codec_1.TxTypes.MsgWithdrawAsset,
20
+ codec_1.TxTypes.MsgLockCollateral,
21
+ codec_1.TxTypes.MsgUnlockCollateral,
22
+ codec_1.TxTypes.MsgBorrowAsset,
23
+ codec_1.TxTypes.MsgSupplyAssetAndLockCollateral,
24
+ codec_1.TxTypes.MsgUnlockCollateral,
25
+ codec_1.TxTypes.MsgUnlockCollateralAndWithdrawAsset,
26
+ codec_1.TxTypes.MsgLiquidateCollateral,
27
+ codec_1.TxTypes.MsgLiquidateCollateralWithCdpTokens,
28
+ codec_1.TxTypes.MsgLiquidateCollateralWithCollateral,
29
+ codec_1.TxTypes.MsgLiquidateCollateralWithStablecoin,
30
+ codec_1.TxTypes.MsgRepayAsset,
31
+ codec_1.TxTypes.MsgRepayAssetWithCdpTokens,
32
+ codec_1.TxTypes.MsgRepayAssetWithCollateral,
33
+ codec_1.TxTypes.MsgMintStablecoin,
34
+ codec_1.TxTypes.MsgReturnStablecoin,
35
+ codec_1.TxTypes.MsgClaimRewards,
36
+ codec_1.TxTypes.MsgSetAccountEMode,
37
+ codec_1.TxTypes.MsgRemoveAccountEMode,
38
+ // coin
39
+ codec_1.TxTypes.MsgMintToken,
40
+ codec_1.TxTypes.MsgDepositToGroup,
41
+ codec_1.TxTypes.MsgDepositToGroup,
42
+ codec_1.TxTypes.MsgCreateToken,
43
+ // leverages
44
+ codec_1.TxTypes.MsgSetLeverage,
45
+ // liquiditypool
46
+ codec_1.TxTypes.MsgCreatePoolWithLiquidity,
47
+ codec_1.TxTypes.MsgAddLiquidity,
48
+ codec_1.TxTypes.MsgRemoveLiquidity,
49
+ codec_1.TxTypes.MsgStakePoolToken,
50
+ codec_1.TxTypes.MsgUnstakePoolToken,
51
+ codec_1.TxTypes.MsgClaimPoolRewards,
52
+ // order
53
+ codec_1.TxTypes.MsgCreateOrder,
54
+ codec_1.TxTypes.MsgCancelOrder,
55
+ codec_1.TxTypes.MsgEditOrder,
56
+ codec_1.TxTypes.MsgCancelAll,
57
+ // perpspool
58
+ codec_1.TxTypes.MsgDepositToPool,
59
+ codec_1.TxTypes.MsgWithdrawFromPool,
60
+ // position
61
+ codec_1.TxTypes.MsgSetMargin,
62
+ // profile
63
+ codec_1.TxTypes.MsgUpdateProfile,
64
+ // staking
65
+ codec_1.TxTypes.MsgDelegate,
66
+ codec_1.TxTypes.MsgUndelegate,
67
+ codec_1.TxTypes.MsgBeginRedelegate,
68
+ ];
69
+ exports.emptyValue = {
70
+ typeUrl: "",
71
+ value: {},
72
+ };
73
+ const decodeContent = (content) => {
74
+ if (!content) {
75
+ return exports.emptyValue;
76
+ }
77
+ switch (content.typeUrl) {
78
+ case signless_1.SignlessTypes.GenericAuthorization: {
79
+ return Object.assign(Object.assign({}, content), { value: authz_1.GenericAuthorization.decode(content.value) });
80
+ }
81
+ case signless_1.SignlessTypes.AllowedMsgAllowance: {
82
+ const value = feegrant_1.AllowedMsgAllowance.decode(content.value);
83
+ return Object.assign(Object.assign({}, content), { value: Object.assign(Object.assign({}, value), { allowance: Object.assign({}, exports.decodeContent(value.allowance)) }) });
84
+ }
85
+ case signless_1.SignlessTypes.BasicAllowance: {
86
+ return Object.assign(Object.assign({}, content), { value: feegrant_1.BasicAllowance.decode(content.value) });
87
+ }
88
+ default:
89
+ return exports.emptyValue;
90
+ }
91
+ };
92
+ exports.decodeContent = decodeContent;