@sparkdreamnft/sparkdreamjs 0.0.30 → 0.0.32

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 (511) hide show
  1. package/akash/audit/v1/genesis.d.ts +2 -2
  2. package/akash/audit/v1/query.d.ts +6 -6
  3. package/akash/base/attributes/v1/attribute.d.ts +2 -2
  4. package/akash/base/deposit/v1/deposit.d.ts +74 -0
  5. package/akash/base/deposit/v1/deposit.js +144 -0
  6. package/akash/base/offchain/sign/v1/sign.d.ts +60 -0
  7. package/akash/base/offchain/sign/v1/sign.js +87 -0
  8. package/akash/base/resources/v1beta4/resources.d.ts +1 -1
  9. package/akash/bundle.d.ts +5409 -3608
  10. package/akash/bundle.js +475 -306
  11. package/akash/cert/v1/query.d.ts +2 -2
  12. package/akash/client.d.ts +84 -84
  13. package/akash/client.js +20 -17
  14. package/akash/deployment/v1/deployment.d.ts +64 -0
  15. package/akash/deployment/v1/deployment.js +85 -2
  16. package/akash/deployment/v1beta4/deploymentmsg.d.ts +10 -18
  17. package/akash/deployment/v1beta4/deploymentmsg.js +15 -15
  18. package/akash/deployment/v1beta4/query.d.ts +3 -3
  19. package/akash/deployment/v1beta4/query.js +1 -1
  20. package/akash/deployment/v1beta4/query.lcd.js +1 -1
  21. package/akash/deployment/v1beta4/query.rpc.Query.d.ts +1 -1
  22. package/akash/deployment/v1beta4/query.rpc.Query.js +1 -1
  23. package/akash/deployment/v1beta4/service.amino.d.ts +0 -6
  24. package/akash/deployment/v1beta4/service.amino.js +0 -6
  25. package/akash/deployment/v1beta4/service.registry.d.ts +0 -13
  26. package/akash/deployment/v1beta4/service.registry.js +1 -20
  27. package/akash/deployment/v1beta4/service.rpc.msg.d.ts +2 -6
  28. package/akash/deployment/v1beta4/service.rpc.msg.js +2 -9
  29. package/akash/deployment/v1beta5/deploymentmsg.d.ts +315 -0
  30. package/akash/deployment/v1beta5/deploymentmsg.js +438 -0
  31. package/akash/deployment/v1beta5/filters.d.ts +164 -0
  32. package/akash/deployment/v1beta5/filters.js +203 -0
  33. package/akash/deployment/v1beta5/genesis.d.ts +121 -0
  34. package/akash/deployment/v1beta5/genesis.js +176 -0
  35. package/akash/deployment/v1beta5/group.d.ts +95 -0
  36. package/akash/deployment/v1beta5/group.js +170 -0
  37. package/akash/deployment/v1beta5/groupmsg.d.ts +279 -0
  38. package/akash/deployment/v1beta5/groupmsg.js +381 -0
  39. package/akash/deployment/v1beta5/groupspec.d.ts +77 -0
  40. package/akash/deployment/v1beta5/groupspec.js +104 -0
  41. package/akash/deployment/v1beta5/params.d.ts +53 -0
  42. package/akash/deployment/v1beta5/params.js +78 -0
  43. package/akash/deployment/v1beta5/paramsmsg.d.ts +122 -0
  44. package/akash/deployment/v1beta5/paramsmsg.js +148 -0
  45. package/akash/deployment/{v1beta3 → v1beta5}/query.d.ts +221 -63
  46. package/akash/deployment/{v1beta3 → v1beta5}/query.js +189 -62
  47. package/akash/deployment/{v1beta3 → v1beta5}/query.lcd.d.ts +2 -1
  48. package/akash/deployment/{v1beta3 → v1beta5}/query.lcd.js +11 -6
  49. package/akash/deployment/{v1beta3 → v1beta5}/query.rpc.Query.d.ts +9 -5
  50. package/akash/deployment/{v1beta3 → v1beta5}/query.rpc.Query.js +15 -6
  51. package/akash/deployment/v1beta5/resourceunit.d.ts +70 -0
  52. package/akash/deployment/v1beta5/resourceunit.js +103 -0
  53. package/akash/deployment/{v1beta3 → v1beta5}/service.amino.d.ts +13 -12
  54. package/akash/deployment/{v1beta3 → v1beta5}/service.amino.js +18 -17
  55. package/akash/deployment/{v1beta3 → v1beta5}/service.registry.d.ts +14 -13
  56. package/akash/deployment/{v1beta3 → v1beta5}/service.registry.js +38 -37
  57. package/akash/deployment/{v1beta3 → v1beta5}/service.rpc.msg.d.ts +13 -7
  58. package/akash/deployment/{v1beta3 → v1beta5}/service.rpc.msg.js +18 -14
  59. package/akash/discovery/v1/akash.d.ts +38 -2
  60. package/akash/discovery/v1/akash.js +52 -1
  61. package/akash/discovery/v1/client_info.d.ts +124 -0
  62. package/akash/discovery/v1/client_info.js +181 -1
  63. package/akash/discovery/v1/service.d.ts +95 -0
  64. package/akash/discovery/v1/service.js +131 -0
  65. package/akash/downtimedetector/v1beta1/downtime_duration.d.ts +60 -0
  66. package/akash/downtimedetector/v1beta1/downtime_duration.js +205 -0
  67. package/akash/downtimedetector/v1beta1/genesis.d.ts +119 -0
  68. package/akash/downtimedetector/v1beta1/genesis.js +171 -0
  69. package/akash/downtimedetector/v1beta1/query.d.ts +120 -0
  70. package/akash/downtimedetector/v1beta1/query.js +157 -0
  71. package/akash/downtimedetector/v1beta1/query.lcd.d.ts +9 -0
  72. package/akash/downtimedetector/v1beta1/query.lcd.js +25 -0
  73. package/akash/downtimedetector/v1beta1/query.rpc.Query.d.ts +19 -0
  74. package/akash/downtimedetector/v1beta1/query.rpc.Query.js +30 -0
  75. package/akash/epochs/v1beta1/events.d.ts +92 -0
  76. package/akash/epochs/v1beta1/events.js +155 -0
  77. package/akash/epochs/v1beta1/genesis.d.ts +200 -0
  78. package/akash/epochs/v1beta1/genesis.js +222 -0
  79. package/akash/epochs/v1beta1/query.d.ts +189 -0
  80. package/akash/epochs/v1beta1/query.js +276 -0
  81. package/akash/epochs/v1beta1/query.lcd.d.ts +10 -0
  82. package/akash/epochs/v1beta1/query.lcd.js +26 -0
  83. package/akash/epochs/v1beta1/query.rpc.Query.d.ts +20 -0
  84. package/akash/epochs/v1beta1/query.rpc.Query.js +38 -0
  85. package/akash/escrow/id/v1/id.d.ts +107 -0
  86. package/akash/escrow/id/v1/id.js +211 -0
  87. package/akash/escrow/types/v1/account.d.ts +146 -0
  88. package/akash/escrow/types/v1/account.js +227 -0
  89. package/akash/escrow/types/v1/balance.d.ts +54 -0
  90. package/akash/escrow/types/v1/balance.js +89 -0
  91. package/akash/escrow/types/v1/deposit.d.ts +90 -0
  92. package/akash/escrow/types/v1/deposit.js +110 -0
  93. package/akash/escrow/types/v1/payment.d.ts +150 -0
  94. package/akash/escrow/types/v1/payment.js +216 -0
  95. package/akash/escrow/types/v1/state.d.ts +15 -0
  96. package/akash/escrow/types/v1/state.js +55 -0
  97. package/akash/escrow/v1/authz.d.ts +114 -0
  98. package/akash/escrow/v1/authz.js +174 -0
  99. package/akash/escrow/v1/genesis.d.ts +4 -4
  100. package/akash/escrow/v1/genesis.js +7 -7
  101. package/akash/escrow/v1/msg.d.ts +128 -0
  102. package/akash/escrow/v1/msg.js +158 -0
  103. package/akash/escrow/v1/query.d.ts +21 -83
  104. package/akash/escrow/v1/query.js +23 -83
  105. package/akash/escrow/v1/query.lcd.js +6 -21
  106. package/akash/escrow/v1/service.amino.d.ts +8 -0
  107. package/akash/escrow/v1/service.amino.js +12 -0
  108. package/akash/escrow/v1/service.registry.d.ts +25 -0
  109. package/akash/escrow/v1/service.registry.js +37 -0
  110. package/akash/escrow/v1/service.rpc.msg.d.ts +13 -0
  111. package/akash/escrow/v1/service.rpc.msg.js +22 -0
  112. package/akash/lcd.d.ts +15 -5
  113. package/akash/lcd.js +26 -12
  114. package/akash/market/v1/bid.d.ts +8 -0
  115. package/akash/market/v1/bid.js +13 -1
  116. package/akash/market/v1/event.d.ts +69 -0
  117. package/akash/market/v1/event.js +107 -2
  118. package/akash/market/v1/filters.d.ts +8 -0
  119. package/akash/market/v1/filters.js +13 -1
  120. package/akash/market/v1/lease.d.ts +24 -0
  121. package/akash/market/v1/lease.js +46 -2
  122. package/akash/market/v1/reclamation.d.ts +82 -0
  123. package/akash/market/v1/reclamation.js +111 -0
  124. package/akash/market/v1/types.d.ts +28 -0
  125. package/akash/market/v1/types.js +83 -0
  126. package/akash/market/v1beta5/bid.d.ts +9 -0
  127. package/akash/market/v1beta5/bid.js +14 -1
  128. package/akash/market/v1beta5/bidmsg.d.ts +23 -29
  129. package/akash/market/v1beta5/bidmsg.js +45 -32
  130. package/akash/market/v1beta5/filters.d.ts +8 -0
  131. package/akash/market/v1beta5/filters.js +13 -1
  132. package/akash/market/v1beta5/leasemsg.d.ts +109 -6
  133. package/akash/market/v1beta5/leasemsg.js +166 -17
  134. package/akash/market/v1beta5/order.d.ts +11 -0
  135. package/akash/market/v1beta5/order.js +14 -1
  136. package/akash/market/v1beta5/params.d.ts +27 -0
  137. package/akash/market/v1beta5/params.js +41 -1
  138. package/akash/market/v1beta5/query.d.ts +10 -10
  139. package/akash/market/v1beta5/query.js +8 -8
  140. package/akash/market/v1beta5/query.lcd.js +1 -1
  141. package/akash/market/v1beta5/query.rpc.Query.d.ts +1 -1
  142. package/akash/market/v1beta5/query.rpc.Query.js +1 -1
  143. package/akash/market/v1beta5/resourcesoffer.d.ts +291 -0
  144. package/akash/market/v1beta5/resourcesoffer.js +317 -2
  145. package/akash/market/v1beta5/service.amino.d.ts +6 -1
  146. package/akash/market/v1beta5/service.amino.js +5 -0
  147. package/akash/market/v1beta5/service.registry.d.ts +13 -1
  148. package/akash/market/v1beta5/service.registry.js +19 -1
  149. package/akash/market/v1beta5/service.rpc.msg.d.ts +4 -1
  150. package/akash/market/v1beta5/service.rpc.msg.js +6 -0
  151. package/akash/market/v2beta1/bid.d.ts +220 -0
  152. package/akash/market/v2beta1/bid.js +318 -0
  153. package/akash/market/v2beta1/bidmsg.d.ts +211 -0
  154. package/akash/market/v2beta1/bidmsg.js +313 -0
  155. package/akash/market/v2beta1/event.d.ts +343 -0
  156. package/akash/market/v2beta1/event.js +471 -0
  157. package/akash/market/v2beta1/filters.d.ts +338 -0
  158. package/akash/market/v2beta1/filters.js +404 -0
  159. package/akash/market/v2beta1/genesis.d.ts +80 -0
  160. package/akash/market/v2beta1/genesis.js +123 -0
  161. package/akash/market/v2beta1/lease.d.ts +224 -0
  162. package/akash/market/v2beta1/lease.js +321 -0
  163. package/akash/market/v2beta1/leasemsg.d.ts +283 -0
  164. package/akash/market/v2beta1/leasemsg.js +394 -0
  165. package/akash/market/v2beta1/order.d.ts +162 -0
  166. package/akash/market/v2beta1/order.js +267 -0
  167. package/akash/market/v2beta1/params.d.ts +61 -0
  168. package/akash/market/v2beta1/params.js +87 -0
  169. package/akash/market/v2beta1/paramsmsg.d.ts +122 -0
  170. package/akash/market/v2beta1/paramsmsg.js +148 -0
  171. package/akash/market/{v1beta4 → v2beta1}/query.d.ts +344 -129
  172. package/akash/market/{v1beta4 → v2beta1}/query.js +218 -90
  173. package/akash/market/{v1beta4 → v2beta1}/query.lcd.d.ts +2 -1
  174. package/akash/market/{v1beta4 → v2beta1}/query.lcd.js +17 -12
  175. package/akash/market/{v1beta4 → v2beta1}/query.rpc.Query.d.ts +12 -8
  176. package/akash/market/{v1beta4 → v2beta1}/query.rpc.Query.js +21 -12
  177. package/akash/market/v2beta1/resourcesoffer.d.ts +64 -0
  178. package/akash/market/v2beta1/resourcesoffer.js +88 -0
  179. package/akash/market/v2beta1/service.amino.d.ts +35 -0
  180. package/akash/market/v2beta1/service.amino.js +39 -0
  181. package/akash/market/v2beta1/service.js +2 -0
  182. package/akash/market/{v1beta4 → v2beta1}/service.registry.d.ts +15 -2
  183. package/akash/market/v2beta1/service.registry.js +129 -0
  184. package/akash/market/{v1beta4 → v2beta1}/service.rpc.msg.d.ts +12 -3
  185. package/akash/market/v2beta1/service.rpc.msg.js +57 -0
  186. package/akash/market/v2beta1/types.d.ts +28 -0
  187. package/akash/market/v2beta1/types.js +83 -0
  188. package/akash/oracle/v1/events.d.ts +303 -0
  189. package/akash/oracle/v1/events.js +435 -0
  190. package/akash/oracle/v1/genesis.d.ts +70 -0
  191. package/akash/oracle/v1/genesis.js +106 -0
  192. package/akash/oracle/v1/msgs.d.ts +239 -0
  193. package/akash/oracle/v1/msgs.js +298 -0
  194. package/akash/oracle/v1/params.d.ts +95 -0
  195. package/akash/oracle/v1/params.js +141 -0
  196. package/akash/oracle/v1/prices.d.ts +706 -0
  197. package/akash/oracle/v1/prices.js +1006 -0
  198. package/akash/oracle/v1/query.d.ts +204 -0
  199. package/akash/oracle/v1/query.js +282 -0
  200. package/akash/oracle/v1/query.lcd.d.ts +12 -0
  201. package/akash/oracle/v1/query.lcd.js +35 -0
  202. package/akash/oracle/v1/query.rpc.Query.d.ts +25 -0
  203. package/akash/oracle/v1/query.rpc.Query.js +49 -0
  204. package/akash/oracle/v1/service.amino.d.ts +13 -0
  205. package/akash/oracle/v1/service.amino.js +17 -0
  206. package/akash/oracle/v1/service.js +2 -0
  207. package/akash/{cert/v1beta3/cert.registry.d.ts → oracle/v1/service.registry.d.ts} +11 -11
  208. package/akash/oracle/v1/service.registry.js +55 -0
  209. package/akash/oracle/v1/service.rpc.msg.d.ts +21 -0
  210. package/akash/oracle/v1/service.rpc.msg.js +31 -0
  211. package/akash/oracle/v2/events.d.ts +309 -0
  212. package/akash/oracle/v2/events.js +438 -0
  213. package/akash/oracle/v2/genesis.d.ts +202 -0
  214. package/akash/oracle/v2/genesis.js +295 -0
  215. package/akash/oracle/v2/msgs.d.ts +247 -0
  216. package/akash/oracle/v2/msgs.js +313 -0
  217. package/akash/oracle/v2/params.d.ts +130 -0
  218. package/akash/oracle/v2/params.js +190 -0
  219. package/akash/oracle/v2/prices.d.ts +581 -0
  220. package/akash/oracle/v2/prices.js +828 -0
  221. package/akash/oracle/v2/query.d.ts +395 -0
  222. package/akash/oracle/v2/query.js +555 -0
  223. package/akash/oracle/v2/query.lcd.d.ts +11 -0
  224. package/akash/oracle/v2/query.lcd.js +42 -0
  225. package/akash/oracle/v2/query.rpc.Query.d.ts +24 -0
  226. package/akash/oracle/v2/query.rpc.Query.js +47 -0
  227. package/akash/oracle/v2/service.amino.d.ts +13 -0
  228. package/akash/oracle/v2/service.amino.js +17 -0
  229. package/akash/oracle/v2/service.d.ts +1 -0
  230. package/akash/oracle/v2/service.js +2 -0
  231. package/akash/{audit/v1beta3/audit.registry.d.ts → oracle/v2/service.registry.d.ts} +11 -11
  232. package/akash/oracle/v2/service.registry.js +55 -0
  233. package/akash/oracle/v2/service.rpc.msg.d.ts +21 -0
  234. package/akash/oracle/v2/service.rpc.msg.js +31 -0
  235. package/akash/provider/v1beta4/query.d.ts +2 -2
  236. package/akash/rpc.query.d.ts +43 -26
  237. package/akash/rpc.query.js +19 -9
  238. package/akash/rpc.tx.d.ts +12 -5
  239. package/akash/rpc.tx.js +16 -9
  240. package/akash/take/v1/query.lcd.js +1 -1
  241. package/akash/take/v1/query.rpc.Query.d.ts +1 -1
  242. package/akash/take/v1/query.rpc.Query.js +1 -1
  243. package/akash/take/v1/service.rpc.msg.d.ts +1 -1
  244. package/akash/wasm/v1/event.d.ts +53 -0
  245. package/akash/wasm/v1/event.js +99 -0
  246. package/akash/wasm/v1/genesis.d.ts +53 -0
  247. package/akash/wasm/v1/genesis.js +75 -0
  248. package/akash/wasm/v1/params.d.ts +46 -0
  249. package/akash/wasm/v1/params.js +77 -0
  250. package/akash/wasm/v1/paramsmsg.d.ts +122 -0
  251. package/akash/wasm/v1/paramsmsg.js +148 -0
  252. package/akash/wasm/v1/query.d.ts +95 -0
  253. package/akash/wasm/v1/query.js +131 -0
  254. package/akash/{cert/v1beta3 → wasm/v1}/query.lcd.d.ts +2 -2
  255. package/akash/wasm/v1/query.lcd.js +15 -0
  256. package/akash/wasm/v1/query.rpc.Query.d.ts +16 -0
  257. package/akash/{cert/v1beta3 → wasm/v1}/query.rpc.Query.js +7 -7
  258. package/akash/wasm/v1/service.amino.d.ts +8 -0
  259. package/akash/wasm/v1/service.amino.js +12 -0
  260. package/akash/wasm/v1/service.d.ts +1 -0
  261. package/akash/wasm/v1/service.js +2 -0
  262. package/akash/wasm/v1/service.registry.d.ts +25 -0
  263. package/akash/wasm/v1/service.registry.js +37 -0
  264. package/akash/wasm/v1/service.rpc.msg.d.ts +18 -0
  265. package/akash/wasm/v1/service.rpc.msg.js +25 -0
  266. package/amino/bundle.js +2 -2
  267. package/cosmos/authz/v1beta1/authz.d.ts +6 -5
  268. package/cosmos/authz/v1beta1/authz.js +25 -12
  269. package/cosmos/bundle.d.ts +7545 -7545
  270. package/cosmos/bundle.js +416 -416
  271. package/cosmos_proto/bundle.d.ts +23 -23
  272. package/cosmos_proto/bundle.js +2 -2
  273. package/esm/akash/base/deposit/v1/deposit.js +139 -0
  274. package/esm/akash/base/offchain/sign/v1/sign.js +84 -0
  275. package/esm/akash/bundle.js +475 -306
  276. package/esm/akash/client.js +20 -17
  277. package/esm/akash/deployment/v1/deployment.js +84 -1
  278. package/esm/akash/deployment/v1beta4/deploymentmsg.js +16 -16
  279. package/esm/akash/deployment/v1beta4/query.js +1 -1
  280. package/esm/akash/deployment/v1beta4/query.lcd.js +1 -1
  281. package/esm/akash/deployment/v1beta4/query.rpc.Query.js +1 -1
  282. package/esm/akash/deployment/v1beta4/service.amino.js +0 -6
  283. package/esm/akash/deployment/v1beta4/service.registry.js +1 -20
  284. package/esm/akash/deployment/v1beta4/service.rpc.msg.js +2 -9
  285. package/esm/akash/deployment/v1beta5/deploymentmsg.js +435 -0
  286. package/esm/akash/deployment/v1beta5/filters.js +200 -0
  287. package/esm/akash/deployment/v1beta5/genesis.js +173 -0
  288. package/esm/akash/deployment/v1beta5/group.js +165 -0
  289. package/esm/akash/deployment/v1beta5/groupmsg.js +378 -0
  290. package/esm/akash/deployment/v1beta5/groupspec.js +101 -0
  291. package/esm/akash/deployment/v1beta5/params.js +75 -0
  292. package/esm/akash/deployment/v1beta5/paramsmsg.js +145 -0
  293. package/esm/akash/deployment/{v1beta3 → v1beta5}/query.js +158 -31
  294. package/esm/akash/deployment/{v1beta3 → v1beta5}/query.lcd.js +11 -6
  295. package/esm/akash/deployment/{v1beta3 → v1beta5}/query.rpc.Query.js +16 -7
  296. package/esm/akash/deployment/v1beta5/resourceunit.js +100 -0
  297. package/esm/akash/deployment/v1beta5/service.amino.js +41 -0
  298. package/esm/akash/deployment/v1beta5/service.js +1 -0
  299. package/esm/akash/deployment/{v1beta3 → v1beta5}/service.registry.js +39 -38
  300. package/esm/akash/deployment/{v1beta3 → v1beta5}/service.rpc.msg.js +19 -15
  301. package/esm/akash/discovery/v1/akash.js +53 -2
  302. package/esm/akash/discovery/v1/client_info.js +180 -0
  303. package/esm/akash/discovery/v1/service.js +128 -0
  304. package/esm/akash/downtimedetector/v1beta1/downtime_duration.js +200 -0
  305. package/esm/akash/downtimedetector/v1beta1/genesis.js +168 -0
  306. package/esm/akash/downtimedetector/v1beta1/query.js +154 -0
  307. package/esm/akash/downtimedetector/v1beta1/query.lcd.js +21 -0
  308. package/esm/akash/downtimedetector/v1beta1/query.rpc.Query.js +25 -0
  309. package/esm/akash/epochs/v1beta1/events.js +152 -0
  310. package/esm/akash/epochs/v1beta1/genesis.js +219 -0
  311. package/esm/akash/epochs/v1beta1/query.js +273 -0
  312. package/esm/akash/epochs/v1beta1/query.lcd.js +22 -0
  313. package/esm/akash/epochs/v1beta1/query.rpc.Query.js +33 -0
  314. package/esm/akash/escrow/id/v1/id.js +206 -0
  315. package/esm/akash/escrow/types/v1/account.js +224 -0
  316. package/esm/akash/escrow/types/v1/balance.js +86 -0
  317. package/esm/akash/escrow/types/v1/deposit.js +107 -0
  318. package/esm/akash/escrow/types/v1/payment.js +213 -0
  319. package/esm/akash/escrow/types/v1/state.js +50 -0
  320. package/esm/akash/escrow/v1/authz.js +169 -0
  321. package/esm/akash/escrow/v1/genesis.js +7 -7
  322. package/esm/akash/escrow/v1/msg.js +155 -0
  323. package/esm/akash/escrow/v1/query.js +23 -83
  324. package/esm/akash/escrow/v1/query.lcd.js +6 -21
  325. package/esm/akash/escrow/v1/service.amino.js +9 -0
  326. package/esm/akash/escrow/v1/service.js +1 -0
  327. package/esm/akash/escrow/v1/service.registry.js +33 -0
  328. package/esm/akash/escrow/v1/service.rpc.msg.js +17 -0
  329. package/esm/akash/lcd.js +26 -12
  330. package/esm/akash/market/v1/bid.js +13 -1
  331. package/esm/akash/market/v1/event.js +106 -1
  332. package/esm/akash/market/v1/filters.js +13 -1
  333. package/esm/akash/market/v1/lease.js +46 -2
  334. package/esm/akash/market/v1/reclamation.js +108 -0
  335. package/esm/akash/market/v1/types.js +78 -0
  336. package/esm/akash/market/v1beta5/bid.js +14 -1
  337. package/esm/akash/market/v1beta5/bidmsg.js +46 -33
  338. package/esm/akash/market/v1beta5/filters.js +13 -1
  339. package/esm/akash/market/v1beta5/leasemsg.js +165 -16
  340. package/esm/akash/market/v1beta5/order.js +14 -1
  341. package/esm/akash/market/v1beta5/params.js +41 -1
  342. package/esm/akash/market/v1beta5/query.js +8 -8
  343. package/esm/akash/market/v1beta5/query.lcd.js +1 -1
  344. package/esm/akash/market/v1beta5/query.rpc.Query.js +1 -1
  345. package/esm/akash/market/v1beta5/resourcesoffer.js +316 -1
  346. package/esm/akash/market/v1beta5/service.amino.js +6 -1
  347. package/esm/akash/market/v1beta5/service.registry.js +20 -2
  348. package/esm/akash/market/v1beta5/service.rpc.msg.js +7 -1
  349. package/esm/akash/market/v2beta1/bid.js +313 -0
  350. package/esm/akash/market/v2beta1/bidmsg.js +310 -0
  351. package/esm/akash/market/v2beta1/event.js +468 -0
  352. package/esm/akash/market/v2beta1/filters.js +401 -0
  353. package/esm/akash/market/v2beta1/genesis.js +120 -0
  354. package/esm/akash/market/v2beta1/lease.js +316 -0
  355. package/esm/akash/market/v2beta1/leasemsg.js +391 -0
  356. package/esm/akash/market/v2beta1/order.js +262 -0
  357. package/esm/akash/market/v2beta1/params.js +84 -0
  358. package/esm/akash/market/v2beta1/paramsmsg.js +145 -0
  359. package/esm/akash/market/{v1beta4 → v2beta1}/query.js +195 -67
  360. package/esm/akash/market/{v1beta4 → v2beta1}/query.lcd.js +17 -12
  361. package/esm/akash/market/{v1beta4 → v2beta1}/query.rpc.Query.js +22 -13
  362. package/esm/akash/market/v2beta1/resourcesoffer.js +85 -0
  363. package/esm/akash/market/v2beta1/service.amino.js +36 -0
  364. package/esm/akash/market/v2beta1/service.js +1 -0
  365. package/esm/akash/market/{v1beta4 → v2beta1}/service.registry.js +37 -19
  366. package/esm/akash/market/{v1beta4 → v2beta1}/service.rpc.msg.js +17 -8
  367. package/esm/akash/market/v2beta1/types.js +78 -0
  368. package/esm/akash/oracle/v1/events.js +432 -0
  369. package/esm/akash/oracle/v1/genesis.js +103 -0
  370. package/esm/akash/oracle/v1/msgs.js +295 -0
  371. package/esm/akash/oracle/v1/params.js +138 -0
  372. package/esm/akash/oracle/v1/prices.js +1003 -0
  373. package/esm/akash/oracle/v1/query.js +279 -0
  374. package/esm/akash/oracle/v1/query.lcd.js +31 -0
  375. package/esm/akash/oracle/v1/query.rpc.Query.js +44 -0
  376. package/esm/akash/oracle/v1/service.amino.js +14 -0
  377. package/esm/akash/oracle/v1/service.js +1 -0
  378. package/esm/akash/oracle/v1/service.registry.js +51 -0
  379. package/esm/akash/oracle/v1/service.rpc.msg.js +26 -0
  380. package/esm/akash/oracle/v2/events.js +435 -0
  381. package/esm/akash/oracle/v2/genesis.js +292 -0
  382. package/esm/akash/oracle/v2/msgs.js +310 -0
  383. package/esm/akash/oracle/v2/params.js +187 -0
  384. package/esm/akash/oracle/v2/prices.js +825 -0
  385. package/esm/akash/oracle/v2/query.js +552 -0
  386. package/esm/akash/oracle/v2/query.lcd.js +38 -0
  387. package/esm/akash/oracle/v2/query.rpc.Query.js +42 -0
  388. package/esm/akash/oracle/v2/service.amino.js +14 -0
  389. package/esm/akash/oracle/v2/service.js +1 -0
  390. package/esm/akash/oracle/v2/service.registry.js +51 -0
  391. package/esm/akash/oracle/v2/service.rpc.msg.js +26 -0
  392. package/esm/akash/rpc.query.js +19 -9
  393. package/esm/akash/rpc.tx.js +16 -9
  394. package/esm/akash/take/v1/query.lcd.js +1 -1
  395. package/esm/akash/take/v1/query.rpc.Query.js +1 -1
  396. package/esm/akash/wasm/v1/event.js +96 -0
  397. package/esm/akash/wasm/v1/genesis.js +72 -0
  398. package/esm/akash/wasm/v1/params.js +74 -0
  399. package/esm/akash/wasm/v1/paramsmsg.js +145 -0
  400. package/esm/akash/wasm/v1/query.js +128 -0
  401. package/esm/akash/wasm/v1/query.lcd.js +11 -0
  402. package/esm/akash/wasm/v1/query.rpc.Query.js +24 -0
  403. package/esm/akash/wasm/v1/service.amino.js +9 -0
  404. package/esm/akash/wasm/v1/service.js +1 -0
  405. package/esm/akash/wasm/v1/service.registry.js +33 -0
  406. package/esm/akash/wasm/v1/service.rpc.msg.js +20 -0
  407. package/esm/amino/bundle.js +2 -2
  408. package/esm/cosmos/authz/v1beta1/authz.js +13 -0
  409. package/esm/cosmos/bundle.js +416 -416
  410. package/esm/cosmos_proto/bundle.js +2 -2
  411. package/esm/gogoproto/bundle.js +2 -2
  412. package/esm/google/bundle.js +8 -8
  413. package/esm/ibc/bundle.js +234 -234
  414. package/esm/sparkdream/bundle.js +540 -540
  415. package/esm/sparkdream/commons/v1/genesis.js +128 -1
  416. package/esm/sparkdream/rep/v1/initiative.js +13 -1
  417. package/esm/sparkdream/rep/v1/params.js +37 -1
  418. package/esm/tendermint/bundle.js +20 -20
  419. package/gogoproto/bundle.js +2 -2
  420. package/google/bundle.d.ts +431 -431
  421. package/google/bundle.js +8 -8
  422. package/ibc/bundle.d.ts +3843 -3843
  423. package/ibc/bundle.js +234 -234
  424. package/package.json +1 -1
  425. package/sparkdream/bundle.d.ts +17364 -17352
  426. package/sparkdream/bundle.js +540 -540
  427. package/sparkdream/commons/v1/genesis.d.ts +114 -0
  428. package/sparkdream/commons/v1/genesis.js +129 -2
  429. package/sparkdream/rep/v1/initiative.d.ts +10 -0
  430. package/sparkdream/rep/v1/initiative.js +13 -1
  431. package/sparkdream/rep/v1/params.d.ts +36 -0
  432. package/sparkdream/rep/v1/params.js +37 -1
  433. package/tendermint/bundle.d.ts +844 -844
  434. package/tendermint/bundle.js +20 -20
  435. package/akash/audit/v1beta3/audit.amino.d.ts +0 -13
  436. package/akash/audit/v1beta3/audit.amino.js +0 -17
  437. package/akash/audit/v1beta3/audit.registry.js +0 -55
  438. package/akash/audit/v1beta3/audit.rpc.msg.d.ts +0 -16
  439. package/akash/audit/v1beta3/audit.rpc.msg.js +0 -28
  440. package/akash/audit/v1beta3/query.d.ts +0 -278
  441. package/akash/audit/v1beta3/query.js +0 -484
  442. package/akash/audit/v1beta3/query.lcd.d.ts +0 -12
  443. package/akash/audit/v1beta3/query.lcd.js +0 -60
  444. package/akash/audit/v1beta3/query.rpc.Query.d.ts +0 -44
  445. package/akash/audit/v1beta3/query.rpc.Query.js +0 -66
  446. package/akash/cert/v1beta3/cert.amino.d.ts +0 -13
  447. package/akash/cert/v1beta3/cert.amino.js +0 -17
  448. package/akash/cert/v1beta3/cert.registry.js +0 -55
  449. package/akash/cert/v1beta3/cert.rpc.msg.d.ts +0 -16
  450. package/akash/cert/v1beta3/cert.rpc.msg.js +0 -28
  451. package/akash/cert/v1beta3/query.d.ts +0 -142
  452. package/akash/cert/v1beta3/query.js +0 -253
  453. package/akash/cert/v1beta3/query.lcd.js +0 -26
  454. package/akash/cert/v1beta3/query.rpc.Query.d.ts +0 -16
  455. package/akash/deployment/v1/authz.d.ts +0 -58
  456. package/akash/deployment/v1/authz.js +0 -76
  457. package/akash/deployment/v1/msg.d.ts +0 -122
  458. package/akash/deployment/v1/msg.js +0 -158
  459. package/akash/escrow/v1/account.d.ts +0 -147
  460. package/akash/escrow/v1/account.js +0 -211
  461. package/akash/escrow/v1/accountid.d.ts +0 -60
  462. package/akash/escrow/v1/accountid.js +0 -86
  463. package/akash/escrow/v1/fractional_payment.d.ts +0 -125
  464. package/akash/escrow/v1/fractional_payment.js +0 -199
  465. package/akash/market/v1beta4/service.amino.d.ts +0 -29
  466. package/akash/market/v1beta4/service.amino.js +0 -33
  467. package/akash/market/v1beta4/service.registry.js +0 -111
  468. package/akash/market/v1beta4/service.rpc.msg.js +0 -48
  469. package/akash/provider/v1beta3/provider.amino.d.ts +0 -18
  470. package/akash/provider/v1beta3/provider.amino.js +0 -22
  471. package/akash/provider/v1beta3/provider.registry.d.ts +0 -49
  472. package/akash/provider/v1beta3/provider.registry.js +0 -73
  473. package/akash/provider/v1beta3/provider.rpc.msg.d.ts +0 -19
  474. package/akash/provider/v1beta3/provider.rpc.msg.js +0 -34
  475. package/akash/provider/v1beta3/query.d.ts +0 -182
  476. package/akash/provider/v1beta3/query.js +0 -298
  477. package/akash/provider/v1beta3/query.lcd.d.ts +0 -10
  478. package/akash/provider/v1beta3/query.lcd.js +0 -30
  479. package/akash/provider/v1beta3/query.rpc.Query.d.ts +0 -20
  480. package/akash/provider/v1beta3/query.rpc.Query.js +0 -40
  481. package/esm/akash/audit/v1beta3/audit.amino.js +0 -14
  482. package/esm/akash/audit/v1beta3/audit.registry.js +0 -51
  483. package/esm/akash/audit/v1beta3/audit.rpc.msg.js +0 -23
  484. package/esm/akash/audit/v1beta3/query.js +0 -481
  485. package/esm/akash/audit/v1beta3/query.lcd.js +0 -56
  486. package/esm/akash/audit/v1beta3/query.rpc.Query.js +0 -61
  487. package/esm/akash/cert/v1beta3/cert.amino.js +0 -14
  488. package/esm/akash/cert/v1beta3/cert.registry.js +0 -51
  489. package/esm/akash/cert/v1beta3/cert.rpc.msg.js +0 -23
  490. package/esm/akash/cert/v1beta3/query.js +0 -250
  491. package/esm/akash/cert/v1beta3/query.lcd.js +0 -22
  492. package/esm/akash/cert/v1beta3/query.rpc.Query.js +0 -24
  493. package/esm/akash/deployment/v1/authz.js +0 -73
  494. package/esm/akash/deployment/v1/msg.js +0 -155
  495. package/esm/akash/deployment/v1beta3/service.amino.js +0 -40
  496. package/esm/akash/escrow/v1/account.js +0 -206
  497. package/esm/akash/escrow/v1/accountid.js +0 -83
  498. package/esm/akash/escrow/v1/fractional_payment.js +0 -194
  499. package/esm/akash/market/v1beta4/service.amino.js +0 -30
  500. package/esm/akash/provider/v1beta3/provider.amino.js +0 -19
  501. package/esm/akash/provider/v1beta3/provider.registry.js +0 -69
  502. package/esm/akash/provider/v1beta3/provider.rpc.msg.js +0 -29
  503. package/esm/akash/provider/v1beta3/query.js +0 -295
  504. package/esm/akash/provider/v1beta3/query.lcd.js +0 -26
  505. package/esm/akash/provider/v1beta3/query.rpc.Query.js +0 -35
  506. /package/akash/deployment/{v1beta3 → v1beta5}/service.d.ts +0 -0
  507. /package/akash/deployment/{v1beta3 → v1beta5}/service.js +0 -0
  508. /package/akash/{market/v1beta4 → escrow/v1}/service.d.ts +0 -0
  509. /package/akash/{market/v1beta4 → escrow/v1}/service.js +0 -0
  510. /package/{esm/akash/deployment/v1beta3/service.js → akash/market/v2beta1/service.d.ts} +0 -0
  511. /package/{esm/akash/market/v1beta4/service.js → akash/oracle/v1/service.d.ts} +0 -0
@@ -0,0 +1,552 @@
1
+ //@ts-nocheck
2
+ import { Timestamp } from "../../../google/protobuf/timestamp";
3
+ import { Params } from "./params";
4
+ import { AggregatedPrice, PriceHealth, PriceData } from "./prices";
5
+ import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination";
6
+ import { BinaryReader, BinaryWriter } from "../../../binary";
7
+ import { toTimestamp, fromTimestamp } from "../../../helpers";
8
+ function createBasePricesFilter() {
9
+ return {
10
+ assetDenom: "",
11
+ baseDenom: "",
12
+ startTime: new Date(),
13
+ endTime: new Date()
14
+ };
15
+ }
16
+ /**
17
+ * PricesFilter defines filters used to query price data
18
+ * @name PricesFilter
19
+ * @package akash.oracle.v2
20
+ * @see proto type: akash.oracle.v2.PricesFilter
21
+ */
22
+ export const PricesFilter = {
23
+ typeUrl: "/akash.oracle.v2.PricesFilter",
24
+ encode(message, writer = BinaryWriter.create()) {
25
+ if (message.assetDenom !== "") {
26
+ writer.uint32(10).string(message.assetDenom);
27
+ }
28
+ if (message.baseDenom !== "") {
29
+ writer.uint32(18).string(message.baseDenom);
30
+ }
31
+ if (message.startTime !== undefined) {
32
+ Timestamp.encode(toTimestamp(message.startTime), writer.uint32(26).fork()).ldelim();
33
+ }
34
+ if (message.endTime !== undefined) {
35
+ Timestamp.encode(toTimestamp(message.endTime), writer.uint32(34).fork()).ldelim();
36
+ }
37
+ return writer;
38
+ },
39
+ decode(input, length) {
40
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
41
+ let end = length === undefined ? reader.len : reader.pos + length;
42
+ const message = createBasePricesFilter();
43
+ while (reader.pos < end) {
44
+ const tag = reader.uint32();
45
+ switch (tag >>> 3) {
46
+ case 1:
47
+ message.assetDenom = reader.string();
48
+ break;
49
+ case 2:
50
+ message.baseDenom = reader.string();
51
+ break;
52
+ case 3:
53
+ message.startTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
54
+ break;
55
+ case 4:
56
+ message.endTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
57
+ break;
58
+ default:
59
+ reader.skipType(tag & 7);
60
+ break;
61
+ }
62
+ }
63
+ return message;
64
+ },
65
+ fromPartial(object) {
66
+ const message = createBasePricesFilter();
67
+ message.assetDenom = object.assetDenom ?? "";
68
+ message.baseDenom = object.baseDenom ?? "";
69
+ message.startTime = object.startTime ?? undefined;
70
+ message.endTime = object.endTime ?? undefined;
71
+ return message;
72
+ },
73
+ fromAmino(object) {
74
+ const message = createBasePricesFilter();
75
+ if (object.asset_denom !== undefined && object.asset_denom !== null) {
76
+ message.assetDenom = object.asset_denom;
77
+ }
78
+ if (object.base_denom !== undefined && object.base_denom !== null) {
79
+ message.baseDenom = object.base_denom;
80
+ }
81
+ if (object.start_time !== undefined && object.start_time !== null) {
82
+ message.startTime = fromTimestamp(Timestamp.fromAmino(object.start_time));
83
+ }
84
+ if (object.end_time !== undefined && object.end_time !== null) {
85
+ message.endTime = fromTimestamp(Timestamp.fromAmino(object.end_time));
86
+ }
87
+ return message;
88
+ },
89
+ toAmino(message) {
90
+ const obj = {};
91
+ obj.asset_denom = message.assetDenom ?? "";
92
+ obj.base_denom = message.baseDenom ?? "";
93
+ obj.start_time = message.startTime ? Timestamp.toAmino(toTimestamp(message.startTime)) : new Date();
94
+ obj.end_time = message.endTime ? Timestamp.toAmino(toTimestamp(message.endTime)) : new Date();
95
+ return obj;
96
+ },
97
+ fromAminoMsg(object) {
98
+ return PricesFilter.fromAmino(object.value);
99
+ },
100
+ fromProtoMsg(message) {
101
+ return PricesFilter.decode(message.value);
102
+ },
103
+ toProto(message) {
104
+ return PricesFilter.encode(message).finish();
105
+ },
106
+ toProtoMsg(message) {
107
+ return {
108
+ typeUrl: "/akash.oracle.v2.PricesFilter",
109
+ value: PricesFilter.encode(message).finish()
110
+ };
111
+ }
112
+ };
113
+ function createBaseQueryParamsRequest() {
114
+ return {};
115
+ }
116
+ /**
117
+ * QueryParamsRequest is the request type for the Query/Params RPC method.
118
+ * @name QueryParamsRequest
119
+ * @package akash.oracle.v2
120
+ * @see proto type: akash.oracle.v2.QueryParamsRequest
121
+ */
122
+ export const QueryParamsRequest = {
123
+ typeUrl: "/akash.oracle.v2.QueryParamsRequest",
124
+ encode(_, writer = BinaryWriter.create()) {
125
+ return writer;
126
+ },
127
+ decode(input, length) {
128
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
129
+ let end = length === undefined ? reader.len : reader.pos + length;
130
+ const message = createBaseQueryParamsRequest();
131
+ while (reader.pos < end) {
132
+ const tag = reader.uint32();
133
+ switch (tag >>> 3) {
134
+ default:
135
+ reader.skipType(tag & 7);
136
+ break;
137
+ }
138
+ }
139
+ return message;
140
+ },
141
+ fromPartial(_) {
142
+ const message = createBaseQueryParamsRequest();
143
+ return message;
144
+ },
145
+ fromAmino(_) {
146
+ const message = createBaseQueryParamsRequest();
147
+ return message;
148
+ },
149
+ toAmino(_) {
150
+ const obj = {};
151
+ return obj;
152
+ },
153
+ fromAminoMsg(object) {
154
+ return QueryParamsRequest.fromAmino(object.value);
155
+ },
156
+ fromProtoMsg(message) {
157
+ return QueryParamsRequest.decode(message.value);
158
+ },
159
+ toProto(message) {
160
+ return QueryParamsRequest.encode(message).finish();
161
+ },
162
+ toProtoMsg(message) {
163
+ return {
164
+ typeUrl: "/akash.oracle.v2.QueryParamsRequest",
165
+ value: QueryParamsRequest.encode(message).finish()
166
+ };
167
+ }
168
+ };
169
+ function createBaseQueryParamsResponse() {
170
+ return {
171
+ params: Params.fromPartial({})
172
+ };
173
+ }
174
+ /**
175
+ * QueryParamsResponse is the response type for the Query/Params RPC method.
176
+ * @name QueryParamsResponse
177
+ * @package akash.oracle.v2
178
+ * @see proto type: akash.oracle.v2.QueryParamsResponse
179
+ */
180
+ export const QueryParamsResponse = {
181
+ typeUrl: "/akash.oracle.v2.QueryParamsResponse",
182
+ encode(message, writer = BinaryWriter.create()) {
183
+ if (message.params !== undefined) {
184
+ Params.encode(message.params, writer.uint32(10).fork()).ldelim();
185
+ }
186
+ return writer;
187
+ },
188
+ decode(input, length) {
189
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
190
+ let end = length === undefined ? reader.len : reader.pos + length;
191
+ const message = createBaseQueryParamsResponse();
192
+ while (reader.pos < end) {
193
+ const tag = reader.uint32();
194
+ switch (tag >>> 3) {
195
+ case 1:
196
+ message.params = Params.decode(reader, reader.uint32());
197
+ break;
198
+ default:
199
+ reader.skipType(tag & 7);
200
+ break;
201
+ }
202
+ }
203
+ return message;
204
+ },
205
+ fromPartial(object) {
206
+ const message = createBaseQueryParamsResponse();
207
+ message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined;
208
+ return message;
209
+ },
210
+ fromAmino(object) {
211
+ const message = createBaseQueryParamsResponse();
212
+ if (object.params !== undefined && object.params !== null) {
213
+ message.params = Params.fromAmino(object.params);
214
+ }
215
+ return message;
216
+ },
217
+ toAmino(message) {
218
+ const obj = {};
219
+ obj.params = message.params ? Params.toAmino(message.params) : Params.toAmino(Params.fromPartial({}));
220
+ return obj;
221
+ },
222
+ fromAminoMsg(object) {
223
+ return QueryParamsResponse.fromAmino(object.value);
224
+ },
225
+ fromProtoMsg(message) {
226
+ return QueryParamsResponse.decode(message.value);
227
+ },
228
+ toProto(message) {
229
+ return QueryParamsResponse.encode(message).finish();
230
+ },
231
+ toProtoMsg(message) {
232
+ return {
233
+ typeUrl: "/akash.oracle.v2.QueryParamsResponse",
234
+ value: QueryParamsResponse.encode(message).finish()
235
+ };
236
+ }
237
+ };
238
+ function createBaseQueryAggregatedPriceRequest() {
239
+ return {
240
+ denom: ""
241
+ };
242
+ }
243
+ /**
244
+ * QueryAggregatedPriceRequest is the request type for aggregated price.
245
+ * @name QueryAggregatedPriceRequest
246
+ * @package akash.oracle.v2
247
+ * @see proto type: akash.oracle.v2.QueryAggregatedPriceRequest
248
+ */
249
+ export const QueryAggregatedPriceRequest = {
250
+ typeUrl: "/akash.oracle.v2.QueryAggregatedPriceRequest",
251
+ encode(message, writer = BinaryWriter.create()) {
252
+ if (message.denom !== "") {
253
+ writer.uint32(10).string(message.denom);
254
+ }
255
+ return writer;
256
+ },
257
+ decode(input, length) {
258
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
259
+ let end = length === undefined ? reader.len : reader.pos + length;
260
+ const message = createBaseQueryAggregatedPriceRequest();
261
+ while (reader.pos < end) {
262
+ const tag = reader.uint32();
263
+ switch (tag >>> 3) {
264
+ case 1:
265
+ message.denom = reader.string();
266
+ break;
267
+ default:
268
+ reader.skipType(tag & 7);
269
+ break;
270
+ }
271
+ }
272
+ return message;
273
+ },
274
+ fromPartial(object) {
275
+ const message = createBaseQueryAggregatedPriceRequest();
276
+ message.denom = object.denom ?? "";
277
+ return message;
278
+ },
279
+ fromAmino(object) {
280
+ const message = createBaseQueryAggregatedPriceRequest();
281
+ if (object.denom !== undefined && object.denom !== null) {
282
+ message.denom = object.denom;
283
+ }
284
+ return message;
285
+ },
286
+ toAmino(message) {
287
+ const obj = {};
288
+ obj.denom = message.denom === "" ? undefined : message.denom;
289
+ return obj;
290
+ },
291
+ fromAminoMsg(object) {
292
+ return QueryAggregatedPriceRequest.fromAmino(object.value);
293
+ },
294
+ fromProtoMsg(message) {
295
+ return QueryAggregatedPriceRequest.decode(message.value);
296
+ },
297
+ toProto(message) {
298
+ return QueryAggregatedPriceRequest.encode(message).finish();
299
+ },
300
+ toProtoMsg(message) {
301
+ return {
302
+ typeUrl: "/akash.oracle.v2.QueryAggregatedPriceRequest",
303
+ value: QueryAggregatedPriceRequest.encode(message).finish()
304
+ };
305
+ }
306
+ };
307
+ function createBaseQueryAggregatedPriceResponse() {
308
+ return {
309
+ aggregatedPrice: AggregatedPrice.fromPartial({}),
310
+ priceHealth: PriceHealth.fromPartial({})
311
+ };
312
+ }
313
+ /**
314
+ * QueryAggregatedPriceResponse is the response type for aggregated price.
315
+ * @name QueryAggregatedPriceResponse
316
+ * @package akash.oracle.v2
317
+ * @see proto type: akash.oracle.v2.QueryAggregatedPriceResponse
318
+ */
319
+ export const QueryAggregatedPriceResponse = {
320
+ typeUrl: "/akash.oracle.v2.QueryAggregatedPriceResponse",
321
+ encode(message, writer = BinaryWriter.create()) {
322
+ if (message.aggregatedPrice !== undefined) {
323
+ AggregatedPrice.encode(message.aggregatedPrice, writer.uint32(10).fork()).ldelim();
324
+ }
325
+ if (message.priceHealth !== undefined) {
326
+ PriceHealth.encode(message.priceHealth, writer.uint32(18).fork()).ldelim();
327
+ }
328
+ return writer;
329
+ },
330
+ decode(input, length) {
331
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
332
+ let end = length === undefined ? reader.len : reader.pos + length;
333
+ const message = createBaseQueryAggregatedPriceResponse();
334
+ while (reader.pos < end) {
335
+ const tag = reader.uint32();
336
+ switch (tag >>> 3) {
337
+ case 1:
338
+ message.aggregatedPrice = AggregatedPrice.decode(reader, reader.uint32());
339
+ break;
340
+ case 2:
341
+ message.priceHealth = PriceHealth.decode(reader, reader.uint32());
342
+ break;
343
+ default:
344
+ reader.skipType(tag & 7);
345
+ break;
346
+ }
347
+ }
348
+ return message;
349
+ },
350
+ fromPartial(object) {
351
+ const message = createBaseQueryAggregatedPriceResponse();
352
+ message.aggregatedPrice = object.aggregatedPrice !== undefined && object.aggregatedPrice !== null ? AggregatedPrice.fromPartial(object.aggregatedPrice) : undefined;
353
+ message.priceHealth = object.priceHealth !== undefined && object.priceHealth !== null ? PriceHealth.fromPartial(object.priceHealth) : undefined;
354
+ return message;
355
+ },
356
+ fromAmino(object) {
357
+ const message = createBaseQueryAggregatedPriceResponse();
358
+ if (object.aggregated_price !== undefined && object.aggregated_price !== null) {
359
+ message.aggregatedPrice = AggregatedPrice.fromAmino(object.aggregated_price);
360
+ }
361
+ if (object.price_health !== undefined && object.price_health !== null) {
362
+ message.priceHealth = PriceHealth.fromAmino(object.price_health);
363
+ }
364
+ return message;
365
+ },
366
+ toAmino(message) {
367
+ const obj = {};
368
+ obj.aggregated_price = message.aggregatedPrice ? AggregatedPrice.toAmino(message.aggregatedPrice) : AggregatedPrice.toAmino(AggregatedPrice.fromPartial({}));
369
+ obj.price_health = message.priceHealth ? PriceHealth.toAmino(message.priceHealth) : PriceHealth.toAmino(PriceHealth.fromPartial({}));
370
+ return obj;
371
+ },
372
+ fromAminoMsg(object) {
373
+ return QueryAggregatedPriceResponse.fromAmino(object.value);
374
+ },
375
+ fromProtoMsg(message) {
376
+ return QueryAggregatedPriceResponse.decode(message.value);
377
+ },
378
+ toProto(message) {
379
+ return QueryAggregatedPriceResponse.encode(message).finish();
380
+ },
381
+ toProtoMsg(message) {
382
+ return {
383
+ typeUrl: "/akash.oracle.v2.QueryAggregatedPriceResponse",
384
+ value: QueryAggregatedPriceResponse.encode(message).finish()
385
+ };
386
+ }
387
+ };
388
+ function createBaseQueryPricesRequest() {
389
+ return {
390
+ filters: PricesFilter.fromPartial({}),
391
+ pagination: undefined
392
+ };
393
+ }
394
+ /**
395
+ * QueryPricesRequest is the request type for querying price history
396
+ * @name QueryPricesRequest
397
+ * @package akash.oracle.v2
398
+ * @see proto type: akash.oracle.v2.QueryPricesRequest
399
+ */
400
+ export const QueryPricesRequest = {
401
+ typeUrl: "/akash.oracle.v2.QueryPricesRequest",
402
+ encode(message, writer = BinaryWriter.create()) {
403
+ if (message.filters !== undefined) {
404
+ PricesFilter.encode(message.filters, writer.uint32(10).fork()).ldelim();
405
+ }
406
+ if (message.pagination !== undefined) {
407
+ PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim();
408
+ }
409
+ return writer;
410
+ },
411
+ decode(input, length) {
412
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
413
+ let end = length === undefined ? reader.len : reader.pos + length;
414
+ const message = createBaseQueryPricesRequest();
415
+ while (reader.pos < end) {
416
+ const tag = reader.uint32();
417
+ switch (tag >>> 3) {
418
+ case 1:
419
+ message.filters = PricesFilter.decode(reader, reader.uint32());
420
+ break;
421
+ case 2:
422
+ message.pagination = PageRequest.decode(reader, reader.uint32());
423
+ break;
424
+ default:
425
+ reader.skipType(tag & 7);
426
+ break;
427
+ }
428
+ }
429
+ return message;
430
+ },
431
+ fromPartial(object) {
432
+ const message = createBaseQueryPricesRequest();
433
+ message.filters = object.filters !== undefined && object.filters !== null ? PricesFilter.fromPartial(object.filters) : undefined;
434
+ message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined;
435
+ return message;
436
+ },
437
+ fromAmino(object) {
438
+ const message = createBaseQueryPricesRequest();
439
+ if (object.filters !== undefined && object.filters !== null) {
440
+ message.filters = PricesFilter.fromAmino(object.filters);
441
+ }
442
+ if (object.pagination !== undefined && object.pagination !== null) {
443
+ message.pagination = PageRequest.fromAmino(object.pagination);
444
+ }
445
+ return message;
446
+ },
447
+ toAmino(message) {
448
+ const obj = {};
449
+ obj.filters = message.filters ? PricesFilter.toAmino(message.filters) : undefined;
450
+ obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined;
451
+ return obj;
452
+ },
453
+ fromAminoMsg(object) {
454
+ return QueryPricesRequest.fromAmino(object.value);
455
+ },
456
+ fromProtoMsg(message) {
457
+ return QueryPricesRequest.decode(message.value);
458
+ },
459
+ toProto(message) {
460
+ return QueryPricesRequest.encode(message).finish();
461
+ },
462
+ toProtoMsg(message) {
463
+ return {
464
+ typeUrl: "/akash.oracle.v2.QueryPricesRequest",
465
+ value: QueryPricesRequest.encode(message).finish()
466
+ };
467
+ }
468
+ };
469
+ function createBaseQueryPricesResponse() {
470
+ return {
471
+ prices: [],
472
+ pagination: undefined
473
+ };
474
+ }
475
+ /**
476
+ * QueryPricesResponse is the response type for querying price history
477
+ * @name QueryPricesResponse
478
+ * @package akash.oracle.v2
479
+ * @see proto type: akash.oracle.v2.QueryPricesResponse
480
+ */
481
+ export const QueryPricesResponse = {
482
+ typeUrl: "/akash.oracle.v2.QueryPricesResponse",
483
+ encode(message, writer = BinaryWriter.create()) {
484
+ for (const v of message.prices) {
485
+ PriceData.encode(v, writer.uint32(10).fork()).ldelim();
486
+ }
487
+ if (message.pagination !== undefined) {
488
+ PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
489
+ }
490
+ return writer;
491
+ },
492
+ decode(input, length) {
493
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
494
+ let end = length === undefined ? reader.len : reader.pos + length;
495
+ const message = createBaseQueryPricesResponse();
496
+ while (reader.pos < end) {
497
+ const tag = reader.uint32();
498
+ switch (tag >>> 3) {
499
+ case 1:
500
+ message.prices.push(PriceData.decode(reader, reader.uint32()));
501
+ break;
502
+ case 2:
503
+ message.pagination = PageResponse.decode(reader, reader.uint32());
504
+ break;
505
+ default:
506
+ reader.skipType(tag & 7);
507
+ break;
508
+ }
509
+ }
510
+ return message;
511
+ },
512
+ fromPartial(object) {
513
+ const message = createBaseQueryPricesResponse();
514
+ message.prices = object.prices?.map(e => PriceData.fromPartial(e)) || [];
515
+ message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined;
516
+ return message;
517
+ },
518
+ fromAmino(object) {
519
+ const message = createBaseQueryPricesResponse();
520
+ message.prices = object.prices?.map(e => PriceData.fromAmino(e)) || [];
521
+ if (object.pagination !== undefined && object.pagination !== null) {
522
+ message.pagination = PageResponse.fromAmino(object.pagination);
523
+ }
524
+ return message;
525
+ },
526
+ toAmino(message) {
527
+ const obj = {};
528
+ if (message.prices) {
529
+ obj.prices = message.prices.map(e => e ? PriceData.toAmino(e) : undefined);
530
+ }
531
+ else {
532
+ obj.prices = message.prices;
533
+ }
534
+ obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined;
535
+ return obj;
536
+ },
537
+ fromAminoMsg(object) {
538
+ return QueryPricesResponse.fromAmino(object.value);
539
+ },
540
+ fromProtoMsg(message) {
541
+ return QueryPricesResponse.decode(message.value);
542
+ },
543
+ toProto(message) {
544
+ return QueryPricesResponse.encode(message).finish();
545
+ },
546
+ toProtoMsg(message) {
547
+ return {
548
+ typeUrl: "/akash.oracle.v2.QueryPricesResponse",
549
+ value: QueryPricesResponse.encode(message).finish()
550
+ };
551
+ }
552
+ };
@@ -0,0 +1,38 @@
1
+ //@ts-nocheck
2
+ import { setPaginationParams } from "../../../helpers";
3
+ export class LCDQueryClient {
4
+ req;
5
+ constructor({ requestClient }) {
6
+ this.req = requestClient;
7
+ }
8
+ /* Prices query prices for specific denom */
9
+ prices = async (params) => {
10
+ const options = {
11
+ params: {}
12
+ };
13
+ if (typeof params?.filters !== "undefined") {
14
+ options.params.filters = params.filters;
15
+ }
16
+ if (typeof params?.pagination !== "undefined") {
17
+ setPaginationParams(options, params.pagination);
18
+ }
19
+ const endpoint = `akash/oracle/v2/prices`;
20
+ return await this.req.get(endpoint, options);
21
+ };
22
+ /* Params returns the total set of oracle parameters. */
23
+ params = async (_params = {}) => {
24
+ const endpoint = `akash/oracle/v2/params`;
25
+ return await this.req.get(endpoint);
26
+ };
27
+ /* AggregatedPrice queries the aggregated price for a given denom. */
28
+ aggregatedPrice = async (params) => {
29
+ const options = {
30
+ params: {}
31
+ };
32
+ if (typeof params?.denom !== "undefined") {
33
+ options.params.denom = params.denom;
34
+ }
35
+ const endpoint = `akash/oracle/v2/aggregated_price/${params.denom}`;
36
+ return await this.req.get(endpoint, options);
37
+ };
38
+ }
@@ -0,0 +1,42 @@
1
+ import { BinaryReader } from "../../../binary";
2
+ import { createProtobufRpcClient } from "@cosmjs/stargate";
3
+ import { QueryPricesRequest, QueryPricesResponse, QueryParamsRequest, QueryParamsResponse, QueryAggregatedPriceRequest, QueryAggregatedPriceResponse } from "./query";
4
+ export class QueryClientImpl {
5
+ rpc;
6
+ constructor(rpc) {
7
+ this.rpc = rpc;
8
+ }
9
+ /* Prices query prices for specific denom */
10
+ prices = async (request) => {
11
+ const data = QueryPricesRequest.encode(request).finish();
12
+ const promise = this.rpc.request("akash.oracle.v2.Query", "Prices", data);
13
+ return promise.then(data => QueryPricesResponse.decode(new BinaryReader(data)));
14
+ };
15
+ /* Params returns the total set of oracle parameters. */
16
+ params = async (request = {}) => {
17
+ const data = QueryParamsRequest.encode(request).finish();
18
+ const promise = this.rpc.request("akash.oracle.v2.Query", "Params", data);
19
+ return promise.then(data => QueryParamsResponse.decode(new BinaryReader(data)));
20
+ };
21
+ /* AggregatedPrice queries the aggregated price for a given denom. */
22
+ aggregatedPrice = async (request) => {
23
+ const data = QueryAggregatedPriceRequest.encode(request).finish();
24
+ const promise = this.rpc.request("akash.oracle.v2.Query", "AggregatedPrice", data);
25
+ return promise.then(data => QueryAggregatedPriceResponse.decode(new BinaryReader(data)));
26
+ };
27
+ }
28
+ export const createRpcQueryExtension = (base) => {
29
+ const rpc = createProtobufRpcClient(base);
30
+ const queryService = new QueryClientImpl(rpc);
31
+ return {
32
+ prices(request) {
33
+ return queryService.prices(request);
34
+ },
35
+ params(request) {
36
+ return queryService.params(request);
37
+ },
38
+ aggregatedPrice(request) {
39
+ return queryService.aggregatedPrice(request);
40
+ }
41
+ };
42
+ };
@@ -0,0 +1,14 @@
1
+ //@ts-nocheck
2
+ import { MsgAddPriceEntry, MsgUpdateParams } from "./msgs";
3
+ export const AminoConverter = {
4
+ "/akash.oracle.v2.MsgAddPriceEntry": {
5
+ aminoType: "/akash.oracle.v2.MsgAddPriceEntry",
6
+ toAmino: MsgAddPriceEntry.toAmino,
7
+ fromAmino: MsgAddPriceEntry.fromAmino
8
+ },
9
+ "/akash.oracle.v2.MsgUpdateParams": {
10
+ aminoType: "/akash.oracle.v2.MsgUpdateParams",
11
+ toAmino: MsgUpdateParams.toAmino,
12
+ fromAmino: MsgUpdateParams.fromAmino
13
+ }
14
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,51 @@
1
+ import { MsgAddPriceEntry, MsgUpdateParams } from "./msgs";
2
+ export const registry = [["/akash.oracle.v2.MsgAddPriceEntry", MsgAddPriceEntry], ["/akash.oracle.v2.MsgUpdateParams", MsgUpdateParams]];
3
+ export const load = (protoRegistry) => {
4
+ registry.forEach(([typeUrl, mod]) => {
5
+ protoRegistry.register(typeUrl, mod);
6
+ });
7
+ };
8
+ export const MessageComposer = {
9
+ encoded: {
10
+ addPriceEntry(value) {
11
+ return {
12
+ typeUrl: "/akash.oracle.v2.MsgAddPriceEntry",
13
+ value: MsgAddPriceEntry.encode(value).finish()
14
+ };
15
+ },
16
+ updateParams(value) {
17
+ return {
18
+ typeUrl: "/akash.oracle.v2.MsgUpdateParams",
19
+ value: MsgUpdateParams.encode(value).finish()
20
+ };
21
+ }
22
+ },
23
+ withTypeUrl: {
24
+ addPriceEntry(value) {
25
+ return {
26
+ typeUrl: "/akash.oracle.v2.MsgAddPriceEntry",
27
+ value
28
+ };
29
+ },
30
+ updateParams(value) {
31
+ return {
32
+ typeUrl: "/akash.oracle.v2.MsgUpdateParams",
33
+ value
34
+ };
35
+ }
36
+ },
37
+ fromPartial: {
38
+ addPriceEntry(value) {
39
+ return {
40
+ typeUrl: "/akash.oracle.v2.MsgAddPriceEntry",
41
+ value: MsgAddPriceEntry.fromPartial(value)
42
+ };
43
+ },
44
+ updateParams(value) {
45
+ return {
46
+ typeUrl: "/akash.oracle.v2.MsgUpdateParams",
47
+ value: MsgUpdateParams.fromPartial(value)
48
+ };
49
+ }
50
+ }
51
+ };