@akashnetwork/chain-sdk 1.0.0-alpha.27 → 1.0.0-alpha.29

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 (208) hide show
  1. package/dist/cjs/generated/createNodeSDK.cjs +65 -23
  2. package/dist/cjs/generated/createNodeSDK.cjs.map +2 -2
  3. package/dist/cjs/generated/patches/nodeCustomTypePatches.cjs +27 -0
  4. package/dist/cjs/generated/patches/nodeCustomTypePatches.cjs.map +2 -2
  5. package/dist/cjs/generated/protos/akash/bme/v1/events.cjs +39 -23
  6. package/dist/cjs/generated/protos/akash/bme/v1/events.cjs.map +2 -2
  7. package/dist/cjs/generated/protos/akash/bme/v1/params.cjs +19 -2
  8. package/dist/cjs/generated/protos/akash/bme/v1/params.cjs.map +2 -2
  9. package/dist/cjs/generated/protos/akash/bme/v1/query.cjs +17 -2
  10. package/dist/cjs/generated/protos/akash/bme/v1/query.cjs.map +2 -2
  11. package/dist/cjs/generated/protos/akash/bme/v1/types.cjs +49 -83
  12. package/dist/cjs/generated/protos/akash/bme/v1/types.cjs.map +3 -3
  13. package/dist/cjs/generated/protos/akash/oracle/v1/events.cjs +60 -40
  14. package/dist/cjs/generated/protos/akash/oracle/v1/events.cjs.map +2 -2
  15. package/dist/cjs/generated/protos/akash/oracle/v2/events.cjs +428 -0
  16. package/dist/cjs/generated/protos/akash/oracle/v2/events.cjs.map +7 -0
  17. package/dist/cjs/generated/protos/akash/oracle/v2/genesis.cjs +287 -0
  18. package/dist/cjs/generated/protos/akash/oracle/v2/genesis.cjs.map +7 -0
  19. package/dist/cjs/generated/protos/akash/oracle/v2/msgs.cjs +302 -0
  20. package/dist/cjs/generated/protos/akash/oracle/v2/msgs.cjs.map +7 -0
  21. package/dist/cjs/generated/protos/akash/oracle/v2/params.cjs +239 -0
  22. package/dist/cjs/generated/protos/akash/oracle/v2/params.cjs.map +7 -0
  23. package/dist/cjs/generated/protos/akash/oracle/v2/prices.cjs +826 -0
  24. package/dist/cjs/generated/protos/akash/oracle/v2/prices.cjs.map +7 -0
  25. package/dist/cjs/generated/protos/akash/oracle/v2/query.cjs +499 -0
  26. package/dist/cjs/generated/protos/akash/oracle/v2/query.cjs.map +7 -0
  27. package/dist/cjs/generated/protos/akash/oracle/v2/query_akash.cjs +57 -0
  28. package/dist/cjs/generated/protos/akash/oracle/v2/query_akash.cjs.map +7 -0
  29. package/dist/cjs/generated/protos/akash/oracle/v2/service.cjs +17 -0
  30. package/dist/cjs/generated/protos/akash/oracle/v2/service.cjs.map +7 -0
  31. package/dist/cjs/generated/protos/akash/oracle/v2/service_akash.cjs +46 -0
  32. package/dist/cjs/generated/protos/akash/oracle/v2/service_akash.cjs.map +7 -0
  33. package/dist/cjs/generated/protos/index.akash.v1.cjs +5 -5
  34. package/dist/cjs/generated/protos/index.akash.v1.cjs.map +2 -2
  35. package/dist/cjs/generated/protos/index.akash.v2.cjs +57 -0
  36. package/dist/cjs/generated/protos/index.akash.v2.cjs.map +7 -0
  37. package/dist/cjs/sdk/provider/auth/mtls/CertificateManager.cjs +1 -1
  38. package/dist/cjs/sdk/provider/auth/mtls/CertificateManager.cjs.map +2 -2
  39. package/dist/cjs/sdk/transport/interceptors/retry.cjs +11 -1
  40. package/dist/cjs/sdk/transport/interceptors/retry.cjs.map +2 -2
  41. package/dist/cjs/sdl/SDL/SDL.cjs +2 -2
  42. package/dist/cjs/sdl/SDL/SDL.cjs.map +2 -2
  43. package/dist/cjs/sdl/validateSDL/validateSDL.cjs +2 -2
  44. package/dist/cjs/sdl/validateSDL/validateSDL.cjs.map +2 -2
  45. package/dist/cjs/sdl/validateSDL/validateSDLInput.cjs +1717 -1227
  46. package/dist/cjs/sdl/validateSDL/validateSDLInput.cjs.map +2 -2
  47. package/dist/cjs/utils/jsonSchemaValidation.cjs +5 -3
  48. package/dist/cjs/utils/jsonSchemaValidation.cjs.map +2 -2
  49. package/dist/esm/chunk-4AX2DFWM.js +459 -0
  50. package/dist/esm/chunk-4AX2DFWM.js.map +7 -0
  51. package/dist/esm/{chunk-NK3HEQIK.js → chunk-5CNNJS3V.js} +5 -5
  52. package/dist/esm/{chunk-VG4MSYO3.js → chunk-5RTSSO7K.js} +2 -2
  53. package/dist/esm/{chunk-NLEJ4EGX.js → chunk-67IG5SEC.js} +4 -4
  54. package/dist/esm/{chunk-FFDPZFUZ.js → chunk-67IN34AN.js} +5 -5
  55. package/dist/esm/{chunk-Z3KCQDCI.js → chunk-7ZECBWMX.js} +2 -2
  56. package/dist/esm/{chunk-GKCTHQR4.js → chunk-ABUJVUFW.js} +2 -2
  57. package/dist/esm/{chunk-JPXDOHZO.js → chunk-B4MMOAAO.js} +2 -2
  58. package/dist/esm/{chunk-WH2VEITL.js → chunk-C7JHIHHY.js} +1768 -1224
  59. package/dist/esm/chunk-C7JHIHHY.js.map +7 -0
  60. package/dist/esm/{chunk-ULXT5CMX.js → chunk-CSHWHZAN.js} +3 -3
  61. package/dist/esm/{chunk-EREBC2UQ.js → chunk-GOT4YWEE.js} +4 -4
  62. package/dist/esm/{chunk-XCOULB5P.js → chunk-GPNENANV.js} +2 -2
  63. package/dist/esm/{chunk-DZA4DZ5G.js → chunk-HDAINZXA.js} +8 -8
  64. package/dist/esm/chunk-IK3BT54L.js +989 -0
  65. package/dist/esm/chunk-IK3BT54L.js.map +7 -0
  66. package/dist/esm/{chunk-OYYJMHQ3.js → chunk-JAPXWQ3D.js} +21 -5
  67. package/dist/esm/chunk-JAPXWQ3D.js.map +7 -0
  68. package/dist/esm/{chunk-33CSM66D.js → chunk-JSSYCEVK.js} +4 -4
  69. package/dist/esm/{chunk-MMLVMSLL.js → chunk-MHDIR7F3.js} +2 -2
  70. package/dist/esm/{chunk-MJQJUDLN.js → chunk-MWE2RSPA.js} +4 -4
  71. package/dist/esm/{chunk-W2FEAX2Q.js → chunk-PFJG3V3A.js} +71 -89
  72. package/dist/esm/chunk-PFJG3V3A.js.map +7 -0
  73. package/dist/esm/{chunk-KPF2DJHF.js → chunk-PKKLQO24.js} +5 -5
  74. package/dist/esm/{chunk-CPH6LY54.js → chunk-PVFWFANN.js} +2 -2
  75. package/dist/esm/{chunk-GEEFQK3U.js → chunk-QIS4LLV4.js} +28 -1
  76. package/dist/esm/chunk-QIS4LLV4.js.map +7 -0
  77. package/dist/esm/{chunk-DFTJWAGU.js → chunk-SJLQ462M.js} +4 -4
  78. package/dist/esm/chunk-SQBIPP3B.js +259 -0
  79. package/dist/esm/chunk-SQBIPP3B.js.map +7 -0
  80. package/dist/esm/{chunk-CWUY6LIH.js → chunk-T4KWTZ3E.js} +3 -3
  81. package/dist/esm/{chunk-YKBRNXZM.js → chunk-T7LAPKN5.js} +2 -2
  82. package/dist/esm/{chunk-XIHNXIBW.js → chunk-UKRRRF5V.js} +4 -4
  83. package/dist/esm/{chunk-BLN3B4MW.js → chunk-VC2S4TB4.js} +3 -3
  84. package/dist/esm/{chunk-FXRP7A3E.js → chunk-VZZ4GN23.js} +2 -2
  85. package/dist/esm/{chunk-5LJZW6XW.js → chunk-WMUEPNSU.js} +4 -4
  86. package/dist/esm/{chunk-OAFZZVHG.js → chunk-WU3UGZP6.js} +2 -2
  87. package/dist/esm/{chunk-7WA6OZCK.js → chunk-XPU3NKM5.js} +5 -5
  88. package/dist/esm/{chunk-V2U5JQHJ.js → chunk-Y2T5VNY5.js} +2 -2
  89. package/dist/esm/{chunk-IBPHW6GW.js → chunk-YAWU44BQ.js} +4 -4
  90. package/dist/esm/{chunk-BNXSING3.js → chunk-ZV4RZMBN.js} +4 -4
  91. package/dist/esm/generated/protos/index.akash.v1.js +160 -126
  92. package/dist/esm/generated/protos/index.akash.v1.js.map +2 -2
  93. package/dist/esm/generated/protos/index.akash.v1beta4.js +5 -5
  94. package/dist/esm/generated/protos/index.akash.v1beta5.js +5 -5
  95. package/dist/esm/generated/protos/index.akash.v2.js +681 -0
  96. package/dist/esm/generated/protos/index.akash.v2.js.map +7 -0
  97. package/dist/esm/generated/protos/index.cosmos.abci.js +4 -4
  98. package/dist/esm/generated/protos/index.cosmos.v1.js +25 -25
  99. package/dist/esm/generated/protos/index.cosmos.v1beta1.js +76 -76
  100. package/dist/esm/generated/protos/index.ibc.v1.js +4 -4
  101. package/dist/esm/generated/protos/index.provider.akash.v1.js +14 -14
  102. package/dist/esm/generated/protos/index.tendermint.abci.js +2 -2
  103. package/dist/esm/generated/protos/index.tendermint.types.js +7 -7
  104. package/dist/esm/{grpc_akash-WPXYPHAW.js → grpc_akash-YXP225OJ.js} +5 -5
  105. package/dist/esm/index.js +8 -8
  106. package/dist/esm/index.web.js +8 -8
  107. package/dist/esm/{query_akash-347IWP76.js → query_akash-3LAHGVQJ.js} +6 -6
  108. package/dist/esm/{query_akash-XYBD7HGP.js → query_akash-3UBRLLRZ.js} +5 -5
  109. package/dist/esm/{query_akash-2XAWK4QC.js → query_akash-CKZRI7R6.js} +5 -5
  110. package/dist/esm/{query_akash-ZYKYGHGB.js → query_akash-EEPQJYKA.js} +3 -3
  111. package/dist/esm/{query_akash-GKNMAC72.js → query_akash-FU3ACWAO.js} +6 -6
  112. package/dist/esm/{query_akash-O2VK7XI7.js → query_akash-JGZ2VS5H.js} +4 -4
  113. package/dist/esm/{query_akash-LQWOK2TQ.js → query_akash-K53WZSU3.js} +7 -7
  114. package/dist/esm/{query_akash-J6WGNFRM.js → query_akash-NELAC6IV.js} +3 -3
  115. package/dist/esm/{query_akash-LHHLETWS.js → query_akash-QMVZT2ZN.js} +5 -5
  116. package/dist/esm/query_akash-QW7MA3NO.js +53 -0
  117. package/dist/esm/query_akash-QW7MA3NO.js.map +7 -0
  118. package/dist/esm/query_akash-RNOEMF2J.js +1 -1
  119. package/dist/esm/{query_akash-AQHBNLRW.js → query_akash-TKFQCVYV.js} +3 -3
  120. package/dist/esm/{query_akash-LK7RYFHN.js → query_akash-UVZZQTKV.js} +4 -4
  121. package/dist/esm/{query_akash-IST3STNQ.js → query_akash-X76NVZ2L.js} +5 -5
  122. package/dist/esm/service_akash-3DIKTIOI.js +39 -0
  123. package/dist/esm/service_akash-3DIKTIOI.js.map +7 -0
  124. package/dist/esm/{service_akash-WPIJ5Y3Z.js → service_akash-CM7RP67D.js} +7 -7
  125. package/dist/esm/{service_akash-WLSC2YDO.js → service_akash-DSFYKCTK.js} +4 -4
  126. package/dist/esm/{service_akash-KSM5UR43.js → service_akash-UFTUJDPM.js} +4 -4
  127. package/dist/esm/{tx_akash-FXR4FY7E.js → tx_akash-3ZAQZWMP.js} +4 -4
  128. package/dist/esm/{tx_akash-U5OICQIY.js → tx_akash-FCS2KVR7.js} +4 -4
  129. package/dist/esm/tx_akash-XMYD5SGR.js +1 -1
  130. package/dist/esm/{tx_akash-2CJAERYQ.js → tx_akash-YHLPPFSA.js} +6 -6
  131. package/dist/esm/{types_akash-NO63F5II.js → types_akash-LWHM4M7S.js} +3 -3
  132. package/dist/sdl-schema.yaml +142 -83
  133. package/dist/tsconfig.build.tsbuildinfo +1 -1
  134. package/dist/types/generated/createNodeSDK.d.ts +73 -5
  135. package/dist/types/generated/patches/nodeCustomTypePatches.d.ts +28 -0
  136. package/dist/types/generated/protos/akash/bme/v1/events.d.ts +9 -8
  137. package/dist/types/generated/protos/akash/bme/v1/params.d.ts +3 -0
  138. package/dist/types/generated/protos/akash/bme/v1/query.d.ts +3 -1
  139. package/dist/types/generated/protos/akash/bme/v1/types.d.ts +13 -17
  140. package/dist/types/generated/protos/akash/oracle/v1/events.d.ts +6 -5
  141. package/dist/types/generated/protos/akash/oracle/v2/events.d.ts +47 -0
  142. package/dist/types/generated/protos/akash/oracle/v2/genesis.d.ts +34 -0
  143. package/dist/types/generated/protos/akash/oracle/v2/msgs.d.ts +50 -0
  144. package/dist/types/generated/protos/akash/oracle/v2/params.d.ts +34 -0
  145. package/dist/types/generated/protos/akash/oracle/v2/prices.d.ts +97 -0
  146. package/dist/types/generated/protos/akash/oracle/v2/query.d.ts +56 -0
  147. package/dist/types/generated/protos/akash/oracle/v2/query_akash.d.ts +27 -0
  148. package/dist/types/generated/protos/akash/oracle/v2/service.d.ts +1 -0
  149. package/dist/types/generated/protos/akash/oracle/v2/service_akash.d.ts +18 -0
  150. package/dist/types/generated/protos/index.akash.v1.d.ts +3 -3
  151. package/dist/types/generated/protos/index.akash.v2.d.ts +6 -0
  152. package/dist/types/sdk/chain/createChainNodeSDK.d.ts +7 -0
  153. package/dist/types/sdk/chain/createChainNodeWebSDK.d.ts +7 -0
  154. package/dist/types/sdk/provider/auth/mtls/CertificateManager.d.ts +1 -0
  155. package/dist/types/sdl/validateSDL/validateSDLInput.d.ts +200 -109
  156. package/package.json +2 -1
  157. package/dist/esm/chunk-GEEFQK3U.js.map +0 -7
  158. package/dist/esm/chunk-OYYJMHQ3.js.map +0 -7
  159. package/dist/esm/chunk-W2FEAX2Q.js.map +0 -7
  160. package/dist/esm/chunk-WH2VEITL.js.map +0 -7
  161. /package/dist/esm/{chunk-NK3HEQIK.js.map → chunk-5CNNJS3V.js.map} +0 -0
  162. /package/dist/esm/{chunk-VG4MSYO3.js.map → chunk-5RTSSO7K.js.map} +0 -0
  163. /package/dist/esm/{chunk-NLEJ4EGX.js.map → chunk-67IG5SEC.js.map} +0 -0
  164. /package/dist/esm/{chunk-FFDPZFUZ.js.map → chunk-67IN34AN.js.map} +0 -0
  165. /package/dist/esm/{chunk-Z3KCQDCI.js.map → chunk-7ZECBWMX.js.map} +0 -0
  166. /package/dist/esm/{chunk-GKCTHQR4.js.map → chunk-ABUJVUFW.js.map} +0 -0
  167. /package/dist/esm/{chunk-JPXDOHZO.js.map → chunk-B4MMOAAO.js.map} +0 -0
  168. /package/dist/esm/{chunk-ULXT5CMX.js.map → chunk-CSHWHZAN.js.map} +0 -0
  169. /package/dist/esm/{chunk-EREBC2UQ.js.map → chunk-GOT4YWEE.js.map} +0 -0
  170. /package/dist/esm/{chunk-XCOULB5P.js.map → chunk-GPNENANV.js.map} +0 -0
  171. /package/dist/esm/{chunk-DZA4DZ5G.js.map → chunk-HDAINZXA.js.map} +0 -0
  172. /package/dist/esm/{chunk-33CSM66D.js.map → chunk-JSSYCEVK.js.map} +0 -0
  173. /package/dist/esm/{chunk-MMLVMSLL.js.map → chunk-MHDIR7F3.js.map} +0 -0
  174. /package/dist/esm/{chunk-MJQJUDLN.js.map → chunk-MWE2RSPA.js.map} +0 -0
  175. /package/dist/esm/{chunk-KPF2DJHF.js.map → chunk-PKKLQO24.js.map} +0 -0
  176. /package/dist/esm/{chunk-CPH6LY54.js.map → chunk-PVFWFANN.js.map} +0 -0
  177. /package/dist/esm/{chunk-DFTJWAGU.js.map → chunk-SJLQ462M.js.map} +0 -0
  178. /package/dist/esm/{chunk-CWUY6LIH.js.map → chunk-T4KWTZ3E.js.map} +0 -0
  179. /package/dist/esm/{chunk-YKBRNXZM.js.map → chunk-T7LAPKN5.js.map} +0 -0
  180. /package/dist/esm/{chunk-XIHNXIBW.js.map → chunk-UKRRRF5V.js.map} +0 -0
  181. /package/dist/esm/{chunk-BLN3B4MW.js.map → chunk-VC2S4TB4.js.map} +0 -0
  182. /package/dist/esm/{chunk-FXRP7A3E.js.map → chunk-VZZ4GN23.js.map} +0 -0
  183. /package/dist/esm/{chunk-5LJZW6XW.js.map → chunk-WMUEPNSU.js.map} +0 -0
  184. /package/dist/esm/{chunk-OAFZZVHG.js.map → chunk-WU3UGZP6.js.map} +0 -0
  185. /package/dist/esm/{chunk-7WA6OZCK.js.map → chunk-XPU3NKM5.js.map} +0 -0
  186. /package/dist/esm/{chunk-V2U5JQHJ.js.map → chunk-Y2T5VNY5.js.map} +0 -0
  187. /package/dist/esm/{chunk-IBPHW6GW.js.map → chunk-YAWU44BQ.js.map} +0 -0
  188. /package/dist/esm/{chunk-BNXSING3.js.map → chunk-ZV4RZMBN.js.map} +0 -0
  189. /package/dist/esm/{grpc_akash-WPXYPHAW.js.map → grpc_akash-YXP225OJ.js.map} +0 -0
  190. /package/dist/esm/{query_akash-347IWP76.js.map → query_akash-3LAHGVQJ.js.map} +0 -0
  191. /package/dist/esm/{query_akash-XYBD7HGP.js.map → query_akash-3UBRLLRZ.js.map} +0 -0
  192. /package/dist/esm/{query_akash-2XAWK4QC.js.map → query_akash-CKZRI7R6.js.map} +0 -0
  193. /package/dist/esm/{query_akash-ZYKYGHGB.js.map → query_akash-EEPQJYKA.js.map} +0 -0
  194. /package/dist/esm/{query_akash-GKNMAC72.js.map → query_akash-FU3ACWAO.js.map} +0 -0
  195. /package/dist/esm/{query_akash-O2VK7XI7.js.map → query_akash-JGZ2VS5H.js.map} +0 -0
  196. /package/dist/esm/{query_akash-LQWOK2TQ.js.map → query_akash-K53WZSU3.js.map} +0 -0
  197. /package/dist/esm/{query_akash-J6WGNFRM.js.map → query_akash-NELAC6IV.js.map} +0 -0
  198. /package/dist/esm/{query_akash-LHHLETWS.js.map → query_akash-QMVZT2ZN.js.map} +0 -0
  199. /package/dist/esm/{query_akash-AQHBNLRW.js.map → query_akash-TKFQCVYV.js.map} +0 -0
  200. /package/dist/esm/{query_akash-LK7RYFHN.js.map → query_akash-UVZZQTKV.js.map} +0 -0
  201. /package/dist/esm/{query_akash-IST3STNQ.js.map → query_akash-X76NVZ2L.js.map} +0 -0
  202. /package/dist/esm/{service_akash-WPIJ5Y3Z.js.map → service_akash-CM7RP67D.js.map} +0 -0
  203. /package/dist/esm/{service_akash-WLSC2YDO.js.map → service_akash-DSFYKCTK.js.map} +0 -0
  204. /package/dist/esm/{service_akash-KSM5UR43.js.map → service_akash-UFTUJDPM.js.map} +0 -0
  205. /package/dist/esm/{tx_akash-FXR4FY7E.js.map → tx_akash-3ZAQZWMP.js.map} +0 -0
  206. /package/dist/esm/{tx_akash-U5OICQIY.js.map → tx_akash-FCS2KVR7.js.map} +0 -0
  207. /package/dist/esm/{tx_akash-2CJAERYQ.js.map → tx_akash-YHLPPFSA.js.map} +0 -0
  208. /package/dist/esm/{types_akash-NO63F5II.js.map → types_akash-LWHM4M7S.js.map} +0 -0
@@ -19,6 +19,8 @@ import type * as akash_market_v1beta5_paramsmsg from "./protos/akash/market/v1be
19
19
  import type * as akash_oracle_v1_prices from "./protos/akash/oracle/v1/prices.ts";
20
20
  import type * as akash_oracle_v1_query from "./protos/akash/oracle/v1/query.ts";
21
21
  import type * as akash_oracle_v1_msgs from "./protos/akash/oracle/v1/msgs.ts";
22
+ import type * as akash_oracle_v2_query from "./protos/akash/oracle/v2/query.ts";
23
+ import type * as akash_oracle_v2_msgs from "./protos/akash/oracle/v2/msgs.ts";
22
24
  import type * as akash_provider_v1beta4_query from "./protos/akash/provider/v1beta4/query.ts";
23
25
  import type * as akash_provider_v1beta4_msg from "./protos/akash/provider/v1beta4/msg.ts";
24
26
  import type * as akash_take_v1_query from "./protos/akash/take/v1/query.ts";
@@ -437,6 +439,47 @@ export declare const serviceLoader: import("../sdk/client/createServiceLoader.ts
437
439
  readonly parent: /*elided*/ any;
438
440
  };
439
441
  };
442
+ }>, () => Promise<{
443
+ readonly typeName: "akash.oracle.v2.Query";
444
+ readonly methods: {
445
+ readonly prices: {
446
+ readonly name: "Prices";
447
+ readonly httpPath: "/akash/oracle/v2/prices";
448
+ readonly input: import("../encoding/typeEncodingHelpers.ts").MessageFns<akash_oracle_v2_query.QueryPricesRequest, "akash.oracle.v2.QueryPricesRequest">;
449
+ readonly output: import("../encoding/typeEncodingHelpers.ts").MessageFns<akash_oracle_v2_query.QueryPricesResponse, "akash.oracle.v2.QueryPricesResponse">;
450
+ readonly parent: /*elided*/ any;
451
+ };
452
+ readonly params: {
453
+ readonly name: "Params";
454
+ readonly httpPath: "/akash/oracle/v2/params";
455
+ readonly input: import("../encoding/typeEncodingHelpers.ts").MessageFns<akash_oracle_v2_query.QueryParamsRequest, "akash.oracle.v2.QueryParamsRequest">;
456
+ readonly output: import("../encoding/typeEncodingHelpers.ts").MessageFns<akash_oracle_v2_query.QueryParamsResponse, "akash.oracle.v2.QueryParamsResponse">;
457
+ readonly parent: /*elided*/ any;
458
+ };
459
+ readonly aggregatedPrice: {
460
+ readonly name: "AggregatedPrice";
461
+ readonly httpPath: "/akash/oracle/v2/aggregated_price/{denom=**}";
462
+ readonly input: import("../encoding/typeEncodingHelpers.ts").MessageFns<akash_oracle_v2_query.QueryAggregatedPriceRequest, "akash.oracle.v2.QueryAggregatedPriceRequest">;
463
+ readonly output: import("../encoding/typeEncodingHelpers.ts").MessageFns<akash_oracle_v2_query.QueryAggregatedPriceResponse, "akash.oracle.v2.QueryAggregatedPriceResponse">;
464
+ readonly parent: /*elided*/ any;
465
+ };
466
+ };
467
+ }>, () => Promise<{
468
+ readonly typeName: "akash.oracle.v2.Msg";
469
+ readonly methods: {
470
+ readonly addPriceEntry: {
471
+ readonly name: "AddPriceEntry";
472
+ readonly input: import("../encoding/typeEncodingHelpers.ts").MessageFns<akash_oracle_v2_msgs.MsgAddPriceEntry, "akash.oracle.v2.MsgAddPriceEntry">;
473
+ readonly output: import("../encoding/typeEncodingHelpers.ts").MessageFns<akash_oracle_v2_msgs.MsgAddPriceEntryResponse, "akash.oracle.v2.MsgAddPriceEntryResponse">;
474
+ readonly parent: /*elided*/ any;
475
+ };
476
+ readonly updateParams: {
477
+ readonly name: "UpdateParams";
478
+ readonly input: import("../encoding/typeEncodingHelpers.ts").MessageFns<akash_oracle_v2_msgs.MsgUpdateParams, "akash.oracle.v2.MsgUpdateParams">;
479
+ readonly output: import("../encoding/typeEncodingHelpers.ts").MessageFns<akash_oracle_v2_msgs.MsgUpdateParamsResponse, "akash.oracle.v2.MsgUpdateParamsResponse">;
480
+ readonly parent: /*elided*/ any;
481
+ };
482
+ };
440
483
  }>, () => Promise<{
441
484
  readonly typeName: "akash.provider.v1beta4.Query";
442
485
  readonly methods: {
@@ -630,7 +673,7 @@ export declare function createSDK(queryTransport: Transport, txTransport: Transp
630
673
  */
631
674
  getGroup: (input: DeepPartial<akash_deployment_v1beta4_query.QueryGroupRequest>, options?: CallOptions) => Promise<akash_deployment_v1beta4_query.QueryGroupResponse>;
632
675
  /**
633
- * getParams returns the total set of minting parameters.
676
+ * getParams returns the total set of deployment parameters.
634
677
  */
635
678
  getParams: (input?: DeepPartial<akash_deployment_v1beta4_query.QueryParamsRequest>, options?: CallOptions) => Promise<akash_deployment_v1beta4_query.QueryParamsResponse>;
636
679
  /**
@@ -730,7 +773,7 @@ export declare function createSDK(queryTransport: Transport, txTransport: Transp
730
773
  */
731
774
  getLease: (input: DeepPartial<akash_market_v1beta5_query.QueryLeaseRequest>, options?: CallOptions) => Promise<akash_market_v1beta5_query.QueryLeaseResponse>;
732
775
  /**
733
- * getParams returns the total set of minting parameters.
776
+ * getParams returns the total set of market parameters.
734
777
  */
735
778
  getParams: (input?: DeepPartial<akash_market_v1beta5_query.QueryParamsRequest>, options?: CallOptions) => Promise<akash_market_v1beta5_query.QueryParamsResponse>;
736
779
  /**
@@ -769,7 +812,7 @@ export declare function createSDK(queryTransport: Transport, txTransport: Transp
769
812
  */
770
813
  getPrices: (input: DeepPartial<akash_oracle_v1_prices.QueryPricesRequest>, options?: CallOptions) => Promise<akash_oracle_v1_prices.QueryPricesResponse>;
771
814
  /**
772
- * getParams returns the total set of minting parameters.
815
+ * getParams returns the total set of oracle parameters.
773
816
  */
774
817
  getParams: (input?: DeepPartial<akash_oracle_v1_query.QueryParamsRequest>, options?: CallOptions) => Promise<akash_oracle_v1_query.QueryParamsResponse>;
775
818
  /**
@@ -788,6 +831,31 @@ export declare function createSDK(queryTransport: Transport, txTransport: Transp
788
831
  */
789
832
  updateParams: (input: DeepSimplify<akash_oracle_v1_msgs.MsgUpdateParams>, options?: TxCallOptions) => Promise<akash_oracle_v1_msgs.MsgUpdateParamsResponse>;
790
833
  };
834
+ v2: {
835
+ /**
836
+ * getPrices query prices for specific denom
837
+ */
838
+ getPrices: (input: DeepPartial<akash_oracle_v2_query.QueryPricesRequest>, options?: CallOptions) => Promise<akash_oracle_v2_query.QueryPricesResponse>;
839
+ /**
840
+ * getParams returns the total set of oracle parameters.
841
+ */
842
+ getParams: (input?: DeepPartial<akash_oracle_v2_query.QueryParamsRequest>, options?: CallOptions) => Promise<akash_oracle_v2_query.QueryParamsResponse>;
843
+ /**
844
+ * getAggregatedPrice queries the aggregated price for a given denom.
845
+ */
846
+ getAggregatedPrice: (input: DeepPartial<akash_oracle_v2_query.QueryAggregatedPriceRequest>, options?: CallOptions) => Promise<akash_oracle_v2_query.QueryAggregatedPriceResponse>;
847
+ /**
848
+ * addPriceEntry adds a new price entry for a denomination from an authorized source
849
+ */
850
+ addPriceEntry: (input: DeepSimplify<akash_oracle_v2_msgs.MsgAddPriceEntry>, options?: TxCallOptions) => Promise<akash_oracle_v2_msgs.MsgAddPriceEntryResponse>;
851
+ /**
852
+ * updateParams defines a governance operation for updating the x/oracle module
853
+ * parameters. The authority is hard-coded to the x/gov module account.
854
+ *
855
+ * Since: akash v2.0.0
856
+ */
857
+ updateParams: (input: DeepSimplify<akash_oracle_v2_msgs.MsgUpdateParams>, options?: TxCallOptions) => Promise<akash_oracle_v2_msgs.MsgUpdateParamsResponse>;
858
+ };
791
859
  };
792
860
  provider: {
793
861
  v1beta4: {
@@ -816,7 +884,7 @@ export declare function createSDK(queryTransport: Transport, txTransport: Transp
816
884
  take: {
817
885
  v1: {
818
886
  /**
819
- * getParams returns the total set of minting parameters.
887
+ * getParams returns the total set of take parameters.
820
888
  */
821
889
  getParams: (input?: DeepPartial<akash_take_v1_query.QueryParamsRequest>, options?: CallOptions) => Promise<akash_take_v1_query.QueryParamsResponse>;
822
890
  /**
@@ -831,7 +899,7 @@ export declare function createSDK(queryTransport: Transport, txTransport: Transp
831
899
  wasm: {
832
900
  v1: {
833
901
  /**
834
- * getParams returns the total set of minting parameters.
902
+ * getParams returns the total set of wasm parameters.
835
903
  */
836
904
  getParams: (input?: DeepPartial<akash_wasm_v1_query.QueryParamsRequest>, options?: CallOptions) => Promise<akash_wasm_v1_query.QueryParamsResponse>;
837
905
  /**
@@ -4,6 +4,9 @@ import type * as _protos_akash_bme_v1_query from "../protos/akash/bme/v1/query.t
4
4
  import type * as _protos_cosmos_base_v1beta1_coin from "../protos/cosmos/base/v1beta1/coin.ts";
5
5
  import type * as _protos_akash_escrow_types_v1_balance from "../protos/akash/escrow/types/v1/balance.ts";
6
6
  import type * as _protos_akash_oracle_v1_prices from "../protos/akash/oracle/v1/prices.ts";
7
+ import type * as _protos_akash_oracle_v2_prices from "../protos/akash/oracle/v2/prices.ts";
8
+ import type * as _protos_akash_oracle_v2_events from "../protos/akash/oracle/v2/events.ts";
9
+ import type * as _protos_akash_oracle_v2_msgs from "../protos/akash/oracle/v2/msgs.ts";
7
10
  export declare const patches: {
8
11
  "akash.bme.v1.CollateralRatio"(value: _protos_akash_bme_v1_types.CollateralRatio | undefined | null, transformType: "encode" | "decode"): {
9
12
  ratio: string;
@@ -49,4 +52,29 @@ export declare const patches: {
49
52
  numSources: number;
50
53
  deviationBps: import("long").default;
51
54
  } | undefined;
55
+ "akash.oracle.v2.PriceDataState"(value: _protos_akash_oracle_v2_prices.PriceDataState | undefined | null, transformType: "encode" | "decode"): {
56
+ price: string;
57
+ } | undefined;
58
+ "akash.oracle.v2.AggregatedPrice"(value: _protos_akash_oracle_v2_prices.AggregatedPrice | undefined | null, transformType: "encode" | "decode"): {
59
+ denom: string;
60
+ twap: string;
61
+ medianPrice: string;
62
+ minPrice: string;
63
+ maxPrice: string;
64
+ timestamp: Date | undefined;
65
+ numSources: number;
66
+ deviationBps: import("long").default;
67
+ } | undefined;
68
+ "akash.oracle.v2.EventPriceData"(value: _protos_akash_oracle_v2_events.EventPriceData | undefined | null, transformType: "encode" | "decode"): {
69
+ source: string;
70
+ id: _protos_akash_oracle_v2_prices.DataID | undefined;
71
+ price: string;
72
+ timestamp: Date | undefined;
73
+ } | undefined;
74
+ "akash.oracle.v2.MsgAddPriceEntry"(value: _protos_akash_oracle_v2_msgs.MsgAddPriceEntry | undefined | null, transformType: "encode" | "decode"): {
75
+ signer: string;
76
+ id: _protos_akash_oracle_v2_prices.DataID | undefined;
77
+ price: string;
78
+ timestamp: Date | undefined;
79
+ } | undefined;
52
80
  };
@@ -1,6 +1,6 @@
1
1
  import type { MessageFns } from "../../../../../encoding/typeEncodingHelpers.ts";
2
2
  import { Coin } from "../../../cosmos/base/v1beta1/coin.ts";
3
- import { CoinPrice, LedgerFailedRecord_BMFailReason, LedgerRecordID, MintStatus } from "./types.ts";
3
+ import { CoinPrice, LedgerCanceledRecord_BMCancelReason, LedgerRecordID, MintStatus } from "./types.ts";
4
4
  /** EventCircuitBreakerStatusChange is emitted when circuit breaker status changes */
5
5
  export interface EventMintStatusChange {
6
6
  /** previous_status is the previous status */
@@ -10,8 +10,8 @@ export interface EventMintStatusChange {
10
10
  /** collateral_ratio is the CR that triggered the change */
11
11
  collateralRatio: string;
12
12
  }
13
- /** EventVaultSeeded is emitted when the vault is seeded with AKT */
14
- export interface EventVaultSeeded {
13
+ /** EventVaultFunded is emitted when the vault is seeded with AKT */
14
+ export interface EventVaultFunded {
15
15
  /** amount is the AKT amount added to vault */
16
16
  amount: Coin | undefined;
17
17
  /** source is where the funds came from */
@@ -35,15 +35,16 @@ export interface EventLedgerRecordExecuted {
35
35
  burned: CoinPrice | undefined;
36
36
  /** minted is coin minted at price */
37
37
  minted: CoinPrice | undefined;
38
+ spread: Coin | undefined;
38
39
  remintCreditIssued: CoinPrice | undefined;
39
40
  remintCreditAccrued: CoinPrice | undefined;
40
41
  }
41
- /** EventLedgerRecordFailed emitted information of unsuccessful burn/mint event */
42
- export interface EventLedgerRecordFailed {
42
+ /** EventLedgerRecordCanceled emitted information of unsuccessful burn/mint event */
43
+ export interface EventLedgerRecordCanceled {
43
44
  /** burned_from source address of the tokens burned */
44
45
  id: LedgerRecordID | undefined;
45
46
  /** fail_reason */
46
- failReason: LedgerFailedRecord_BMFailReason;
47
+ cancelReason: LedgerCanceledRecord_BMCancelReason;
47
48
  /** owner source of the coins to be burned */
48
49
  owner: string;
49
50
  /**
@@ -56,7 +57,7 @@ export interface EventLedgerRecordFailed {
56
57
  /** denom_to_mint */
57
58
  denomToMint: string;
58
59
  }
59
- export declare const EventVaultSeeded: MessageFns<EventVaultSeeded, "akash.bme.v1.EventVaultSeeded">;
60
+ export declare const EventVaultFunded: MessageFns<EventVaultFunded, "akash.bme.v1.EventVaultFunded">;
60
61
  export declare const EventLedgerRecordExecuted: MessageFns<EventLedgerRecordExecuted, "akash.bme.v1.EventLedgerRecordExecuted">;
61
- export declare const EventLedgerRecordFailed: MessageFns<EventLedgerRecordFailed, "akash.bme.v1.EventLedgerRecordFailed">;
62
+ export declare const EventLedgerRecordCanceled: MessageFns<EventLedgerRecordCanceled, "akash.bme.v1.EventLedgerRecordCanceled">;
62
63
  export declare const EventMintStatusChange: MessageFns<EventMintStatusChange, "akash.bme.v1.EventMintStatusChange">;
@@ -1,5 +1,6 @@
1
1
  import type { MessageFns } from "../../../../../encoding/typeEncodingHelpers.ts";
2
2
  import Long from "long";
3
+ import { Coin } from "../../../cosmos/base/v1beta1/coin.ts";
3
4
  /** Params defines the parameters for the BME module */
4
5
  export interface Params {
5
6
  /**
@@ -42,5 +43,7 @@ export interface Params {
42
43
  * records processed in a single EndBlocker invocation.
43
44
  */
44
45
  maxEndblockerRecords: number;
46
+ /** min_mint minimum amount of ACT required to be minted in the new transaction */
47
+ minMint: Coin[];
45
48
  }
46
49
  export declare const Params: MessageFns<Params, "akash.bme.v1.Params">;
@@ -2,7 +2,7 @@ import type { MessageFns } from "../../../../../encoding/typeEncodingHelpers.ts"
2
2
  import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination.ts";
3
3
  import { LedgerRecordFilters } from "./filters.ts";
4
4
  import { Params } from "./params.ts";
5
- import { LedgerPendingRecord, LedgerRecord, LedgerRecordID, LedgerRecordStatus, MintStatus, State } from "./types.ts";
5
+ import { LedgerCanceledRecord, LedgerPendingRecord, LedgerRecord, LedgerRecordID, LedgerRecordStatus, MintStatus, State } from "./types.ts";
6
6
  /** QueryParamsRequest is the request type for the Query/Params RPC method */
7
7
  export interface QueryParamsRequest {
8
8
  }
@@ -45,6 +45,8 @@ export interface QueryLedgerRecordEntry {
45
45
  pendingRecord?: LedgerPendingRecord | undefined;
46
46
  /** executed_record is set when the record status is executed */
47
47
  executedRecord?: LedgerRecord | undefined;
48
+ /** canceled_record is set when the record status is failed */
49
+ canceledRecord?: LedgerCanceledRecord | undefined;
48
50
  }
49
51
  /** QueryLedgerRecordsRequest is the request type for the Query/LedgerRecords RPC method */
50
52
  export interface QueryLedgerRecordsRequest {
@@ -35,10 +35,10 @@ export declare enum LedgerRecordStatus {
35
35
  */
36
36
  ledger_record_status_executed = 2,
37
37
  /**
38
- * ledger_record_status_failed - LEDGER_RECORD_STATUS_FAILED indicates the burn/mint operation has encountered error and funds have been returned to the owner
38
+ * ledger_record_status_canceled - LEDGER_RECORD_STATUS_CANCELED indicates the burn/mint operation has encountered error and funds have been returned to the owner
39
39
  * successfully completed and tokens have been burned and minted
40
40
  */
41
- ledger_record_status_failed = 3,
41
+ ledger_record_status_canceled = 3,
42
42
  UNRECOGNIZED = -1
43
43
  }
44
44
  export declare function ledgerRecordStatusFromJSON(object: any): LedgerRecordStatus;
@@ -111,12 +111,12 @@ export interface LedgerPendingRecord {
111
111
  /** denom_to_mint */
112
112
  denomToMint: string;
113
113
  }
114
- /** LedgerPendingRecord */
115
- export interface LedgerFailedRecord {
114
+ /** LedgerCanceledRecord */
115
+ export interface LedgerCanceledRecord {
116
116
  /** owner source of the coins to be burned */
117
117
  owner: string;
118
- /** fail_reason */
119
- failReason: LedgerFailedRecord_BMFailReason;
118
+ /** cancel_reason */
119
+ cancelReason: LedgerCanceledRecord_BMCancelReason;
120
120
  /**
121
121
  * to destination of the minted coins.
122
122
  * if minted coin is ACT, "to" must be same as signer
@@ -127,16 +127,16 @@ export interface LedgerFailedRecord {
127
127
  /** denom_to_mint */
128
128
  denomToMint: string;
129
129
  }
130
- /** BMFailReason is an enum indicating reasons of failure for burn/mint request */
131
- export declare enum LedgerFailedRecord_BMFailReason {
130
+ /** BMCancelReason is an enum indicating reasons of failure for burn/mint request */
131
+ export declare enum LedgerCanceledRecord_BMCancelReason {
132
132
  /** unknown - Prefix should start with 0 in enum. So declaring dummy state. */
133
133
  unknown = 0,
134
- /** epsilon - BMFailReasonEpsilon the result of conversion is below the smallest meaningful difference (10^-6) */
134
+ /** epsilon - BMCanceledReasonEpsilon the result of conversion is below the smallest meaningful difference (10^-6) */
135
135
  epsilon = 1,
136
136
  UNRECOGNIZED = -1
137
137
  }
138
- export declare function ledgerFailedRecord_BMFailReasonFromJSON(object: any): LedgerFailedRecord_BMFailReason;
139
- export declare function ledgerFailedRecord_BMFailReasonToJSON(object: LedgerFailedRecord_BMFailReason): string;
138
+ export declare function ledgerCanceledRecord_BMCancelReasonFromJSON(object: any): LedgerCanceledRecord_BMCancelReason;
139
+ export declare function ledgerCanceledRecord_BMCancelReasonToJSON(object: LedgerCanceledRecord_BMCancelReason): string;
140
140
  /** LedgerRecord stores information of burn/mint event of token A burn to mint token B */
141
141
  export interface LedgerRecord {
142
142
  /** burned_from source address of the tokens burned */
@@ -151,6 +151,7 @@ export interface LedgerRecord {
151
151
  burned: CoinPrice | undefined;
152
152
  /** minted is coin minted at price */
153
153
  minted: CoinPrice | undefined;
154
+ spread: Coin | undefined;
154
155
  remintCreditIssued: CoinPrice | undefined;
155
156
  remintCreditAccrued: CoinPrice | undefined;
156
157
  }
@@ -160,18 +161,13 @@ export interface Status {
160
161
  previousStatus: MintStatus;
161
162
  epochHeightDiff: Long;
162
163
  }
163
- /** MintEpoch stores information about mint epoch */
164
- export interface MintEpoch {
165
- nextEpoch: Long;
166
- }
167
164
  export declare const LedgerID: MessageFns<LedgerID, "akash.bme.v1.LedgerID">;
168
165
  export declare const State: MessageFns<State, "akash.bme.v1.State">;
169
166
  export declare const BurnMintPair: MessageFns<BurnMintPair, "akash.bme.v1.BurnMintPair">;
170
167
  export declare const LedgerRecordID: MessageFns<LedgerRecordID, "akash.bme.v1.LedgerRecordID">;
171
168
  export declare const LedgerPendingRecord: MessageFns<LedgerPendingRecord, "akash.bme.v1.LedgerPendingRecord">;
172
- export declare const LedgerFailedRecord: MessageFns<LedgerFailedRecord, "akash.bme.v1.LedgerFailedRecord">;
169
+ export declare const LedgerCanceledRecord: MessageFns<LedgerCanceledRecord, "akash.bme.v1.LedgerCanceledRecord">;
173
170
  export declare const LedgerRecord: MessageFns<LedgerRecord, "akash.bme.v1.LedgerRecord">;
174
171
  export declare const Status: MessageFns<Status, "akash.bme.v1.Status">;
175
- export declare const MintEpoch: MessageFns<MintEpoch, "akash.bme.v1.MintEpoch">;
176
172
  export declare const CollateralRatio: MessageFns<CollateralRatio, "akash.bme.v1.CollateralRatio">;
177
173
  export declare const CoinPrice: MessageFns<CoinPrice, "akash.bme.v1.CoinPrice">;
@@ -1,6 +1,6 @@
1
1
  import type { MessageFns } from "../../../../../encoding/typeEncodingHelpers.ts";
2
2
  import Long from "long";
3
- import { DataID, PriceDataState } from "./prices.ts";
3
+ import { AggregatedPrice, DataID, PriceDataState } from "./prices.ts";
4
4
  /** EventPriceData is emitted when new price data is added to the oracle */
5
5
  export interface EventPriceData {
6
6
  /** source is the address of the price source (oracle provider) */
@@ -23,8 +23,6 @@ export interface EventPriceStaleWarning {
23
23
  }
24
24
  /** EventPriceStaled is emitted when a price has become stale */
25
25
  export interface EventPriceStaled {
26
- /** source is the address of the price source */
27
- source: string;
28
26
  /** id identifies the price pair */
29
27
  id: DataID | undefined;
30
28
  /** last_height is the block height when the price was last updated before becoming stale */
@@ -32,14 +30,17 @@ export interface EventPriceStaled {
32
30
  }
33
31
  /** EventPriceRecovered is emitted when a stale price has started receiving updates again */
34
32
  export interface EventPriceRecovered {
35
- /** source is the address of the price source */
36
- source: string;
37
33
  /** id identifies the price pair */
38
34
  id: DataID | undefined;
39
35
  /** height is the block height when the price recovery was detected */
40
36
  height: Long;
41
37
  }
38
+ /** EventAggregatedPrice is emitted when aggregated price has an update */
39
+ export interface EventAggregatedPrice {
40
+ price: AggregatedPrice | undefined;
41
+ }
42
42
  export declare const EventPriceData: MessageFns<EventPriceData, "akash.oracle.v1.EventPriceData">;
43
43
  export declare const EventPriceStaleWarning: MessageFns<EventPriceStaleWarning, "akash.oracle.v1.EventPriceStaleWarning">;
44
44
  export declare const EventPriceStaled: MessageFns<EventPriceStaled, "akash.oracle.v1.EventPriceStaled">;
45
45
  export declare const EventPriceRecovered: MessageFns<EventPriceRecovered, "akash.oracle.v1.EventPriceRecovered">;
46
+ export declare const EventAggregatedPrice: MessageFns<EventAggregatedPrice, "akash.oracle.v1.EventAggregatedPrice">;
@@ -0,0 +1,47 @@
1
+ import type { MessageFns } from "../../../../../encoding/typeEncodingHelpers.ts";
2
+ import Long from "long";
3
+ import { AggregatedPrice, DataID } from "./prices.ts";
4
+ /** EventPriceData is emitted when new price data is added to the oracle */
5
+ export interface EventPriceData {
6
+ /** source is the address of the price source (oracle provider) */
7
+ source: string;
8
+ /** id identifies the price pair (denom and base_denom) */
9
+ id: DataID | undefined;
10
+ /** price is the decimal price value */
11
+ price: string;
12
+ /** timestamp is when this price was recorded */
13
+ timestamp: Date | undefined;
14
+ }
15
+ /** EventPriceStaleWarning is emitted when price has not been updated and is about to become stale */
16
+ export interface EventPriceStaleWarning {
17
+ /** id identifies the price pair */
18
+ id: DataID | undefined;
19
+ /** last_height is the block height when the price was last updated */
20
+ lastHeight: Long;
21
+ /** blocks_to_stall is the number of blocks until the price becomes stale */
22
+ blocksToStall: Long;
23
+ }
24
+ /** EventPriceStaled is emitted when a price has become stale */
25
+ export interface EventPriceStaled {
26
+ /** id identifies the price pair */
27
+ id: DataID | undefined;
28
+ /** last_height is the block height when the price was last updated before becoming stale */
29
+ lastHeight: Long;
30
+ }
31
+ /** EventPriceRecovered is emitted when a stale price has started receiving updates again */
32
+ export interface EventPriceRecovered {
33
+ /** id identifies the price pair */
34
+ id: DataID | undefined;
35
+ /** height is the block height when the price recovery was detected */
36
+ height: Long;
37
+ }
38
+ /** EventAggregatedPrice is emitted when aggregated price has an update */
39
+ export interface EventAggregatedPrice {
40
+ /** price is the aggregated price data */
41
+ price: AggregatedPrice | undefined;
42
+ }
43
+ export declare const EventPriceStaleWarning: MessageFns<EventPriceStaleWarning, "akash.oracle.v2.EventPriceStaleWarning">;
44
+ export declare const EventPriceStaled: MessageFns<EventPriceStaled, "akash.oracle.v2.EventPriceStaled">;
45
+ export declare const EventPriceRecovered: MessageFns<EventPriceRecovered, "akash.oracle.v2.EventPriceRecovered">;
46
+ export declare const EventAggregatedPrice: MessageFns<EventAggregatedPrice, "akash.oracle.v2.EventAggregatedPrice">;
47
+ export declare const EventPriceData: MessageFns<EventPriceData, "akash.oracle.v2.EventPriceData">;
@@ -0,0 +1,34 @@
1
+ import type { MessageFns } from "../../../../../encoding/typeEncodingHelpers.ts";
2
+ import Long from "long";
3
+ import { Params } from "./params.ts";
4
+ import { PriceData, PriceDataID, PriceLatestDataState } from "./prices.ts";
5
+ /** GenesisSourceID maps an oracle source address to its numeric identifier */
6
+ export interface GenesisSourceID {
7
+ /** address is the bech32 address of the oracle source */
8
+ address: string;
9
+ /** id is the numeric identifier assigned to the source */
10
+ id: number;
11
+ }
12
+ /** GenesisLatestPricesIDs stores the latest price state for a given price pair */
13
+ export interface GenesisLatestPricesIDs {
14
+ /** id identifies the price pair (source, denom, base_denom) */
15
+ id: PriceDataID | undefined;
16
+ /** state holds the timestamp of the latest price record */
17
+ state: PriceLatestDataState | undefined;
18
+ }
19
+ /** GenesisState defines the oracle module's genesis state */
20
+ export interface GenesisState {
21
+ /** params holds the oracle module parameters */
22
+ params: Params | undefined;
23
+ /** prices is the list of all historical price data entries */
24
+ prices: PriceData[];
25
+ /** latest_height tracks the most recent block height for each price feed source */
26
+ latestPricesIds: GenesisLatestPricesIDs[];
27
+ /** source_ids is the list of oracle source address-to-ID mappings */
28
+ sourceIds: GenesisSourceID[];
29
+ /** source_seq is the next available source identifier sequence number */
30
+ sourceSeq: Long;
31
+ }
32
+ export declare const GenesisSourceID: MessageFns<GenesisSourceID, "akash.oracle.v2.GenesisSourceID">;
33
+ export declare const GenesisLatestPricesIDs: MessageFns<GenesisLatestPricesIDs, "akash.oracle.v2.GenesisLatestPricesIDs">;
34
+ export declare const GenesisState: MessageFns<GenesisState, "akash.oracle.v2.GenesisState">;
@@ -0,0 +1,50 @@
1
+ import type { MessageFns } from "../../../../../encoding/typeEncodingHelpers.ts";
2
+ import { Params } from "./params.ts";
3
+ import { DataID } from "./prices.ts";
4
+ /** MsgAddPriceEntry defines an SDK message to add oracle price entry. */
5
+ export interface MsgAddPriceEntry {
6
+ /**
7
+ * Signer is the bech32 address of the account of the provider.
8
+ * It is a string representing a valid account address.
9
+ *
10
+ * Example:
11
+ * "akash1..."
12
+ */
13
+ signer: string;
14
+ /** id uniquely identifies the price data by denomination and base denomination */
15
+ id: DataID | undefined;
16
+ /** price is the decimal price value */
17
+ price: string;
18
+ /** timestamp is when this price was observed */
19
+ timestamp: Date | undefined;
20
+ }
21
+ /** MsgAddPriceEntryResponse defines the Msg/MsgAddPriceEntry response type. */
22
+ export interface MsgAddPriceEntryResponse {
23
+ }
24
+ /**
25
+ * MsgUpdateParams is the Msg/UpdateParams request type.
26
+ *
27
+ * Since: akash v2.0.0
28
+ */
29
+ export interface MsgUpdateParams {
30
+ /** authority is the address of the governance account. */
31
+ authority: string;
32
+ /**
33
+ * params defines the x/oracle parameters to update.
34
+ *
35
+ * NOTE: All parameters must be supplied.
36
+ */
37
+ params: Params | undefined;
38
+ }
39
+ /**
40
+ * MsgUpdateParamsResponse defines the response structure for executing a
41
+ * MsgUpdateParams message.
42
+ *
43
+ * Since: akash v2.0.0
44
+ */
45
+ export interface MsgUpdateParamsResponse {
46
+ }
47
+ export declare const MsgAddPriceEntryResponse: MessageFns<MsgAddPriceEntryResponse, "akash.oracle.v2.MsgAddPriceEntryResponse">;
48
+ export declare const MsgUpdateParams: MessageFns<MsgUpdateParams, "akash.oracle.v2.MsgUpdateParams">;
49
+ export declare const MsgUpdateParamsResponse: MessageFns<MsgUpdateParamsResponse, "akash.oracle.v2.MsgUpdateParamsResponse">;
50
+ export declare const MsgAddPriceEntry: MessageFns<MsgAddPriceEntry, "akash.oracle.v2.MsgAddPriceEntry">;
@@ -0,0 +1,34 @@
1
+ import type { MessageFns } from "../../../../../encoding/typeEncodingHelpers.ts";
2
+ import Long from "long";
3
+ import { Any } from "../../../google/protobuf/any.ts";
4
+ import { Duration } from "../../../google/protobuf/duration.ts";
5
+ /** Params defines the parameters for the oracle module */
6
+ export interface Params {
7
+ /**
8
+ * sources addresses allowed to write prices into oracle module
9
+ * those are to be smartcontract addresses
10
+ */
11
+ sources: string[];
12
+ /** Minimum number of price sources required (default: 1) */
13
+ minPriceSources: number;
14
+ /** Maximum price staleness in seconds (default: 60s) */
15
+ maxPriceStalenessPeriod: Duration | undefined;
16
+ /** TWAP window as a duration (default: 5s) */
17
+ twapWindow: Duration | undefined;
18
+ /** Maximum price deviation in basis points (default: 150 = 1.5%) */
19
+ maxPriceDeviationBps: Long;
20
+ /** feed_contracts_params contains the configuration for the price feed contracts */
21
+ feedContractsParams: Any[];
22
+ /** price_retention is how long to keep price records (default: 24h) */
23
+ priceRetention: Duration | undefined;
24
+ /** prune_epoch is the epoch identifier that triggers pruning (default: "hour") */
25
+ pruneEpoch: string;
26
+ /** max_prune_per_epoch is the max records to delete per epoch pruning pass (default: 1000) */
27
+ maxPrunePerEpoch: Long;
28
+ /**
29
+ * max_future_time_drift is the maximum amount of time a price timestamp
30
+ * may exceed the current block time (default: 1m)
31
+ */
32
+ maxFutureTimeDrift: Duration | undefined;
33
+ }
34
+ export declare const Params: MessageFns<Params, "akash.oracle.v2.Params">;
@@ -0,0 +1,97 @@
1
+ import type { MessageFns } from "../../../../../encoding/typeEncodingHelpers.ts";
2
+ import Long from "long";
3
+ /** DataID uniquely identifies a price pair by asset and base denomination */
4
+ export interface DataID {
5
+ /** denom is the asset denomination (e.g., "uakt") */
6
+ denom: string;
7
+ /** base_denom is the base denomination for the price pair (e.g., "usd") */
8
+ baseDenom: string;
9
+ }
10
+ /** PriceDataID identifies price data from a specific source for a specific pair */
11
+ export interface PriceDataID {
12
+ /** source is the index of the price source (oracle provider) */
13
+ source: number;
14
+ /** denom is the asset denomination */
15
+ denom: string;
16
+ /** base_denom is the base denomination for the price pair */
17
+ baseDenom: string;
18
+ }
19
+ /** PriceLatestDataState holds the timestamp of the most recent price record for a source/pair */
20
+ export interface PriceLatestDataState {
21
+ /** timestamp is when the price was recorded */
22
+ timestamp: Date | undefined;
23
+ /** sequence disambiguates multiple price entries at the same timestamp */
24
+ sequence: Long;
25
+ }
26
+ /**
27
+ * PriceDataRecordID represents a price from a specific source at a specific time.
28
+ * It also represents a single data point in TWAP history
29
+ */
30
+ export interface PriceDataRecordID {
31
+ /** source is the index of the price source (oracle provider) */
32
+ source: number;
33
+ /** denom is the asset denomination */
34
+ denom: string;
35
+ /** base_denom is the base denomination for the price pair */
36
+ baseDenom: string;
37
+ /** timestamp is when this price was recorded */
38
+ timestamp: Date | undefined;
39
+ /** sequence disambiguates multiple price entries at the same timestamp */
40
+ sequence: Long;
41
+ }
42
+ /** PriceDataState represents the price value */
43
+ export interface PriceDataState {
44
+ /** price is the decimal price value */
45
+ price: string;
46
+ }
47
+ /** PriceData combines a price record identifier with its state */
48
+ export interface PriceData {
49
+ /** id uniquely identifies this price record */
50
+ id: PriceDataRecordID | undefined;
51
+ /** state contains the price value and timestamp */
52
+ state: PriceDataState | undefined;
53
+ }
54
+ /** AggregatedPrice represents the final aggregated price from all sources */
55
+ export interface AggregatedPrice {
56
+ /** denom is the asset denomination */
57
+ denom: string;
58
+ /** twap is the time-weighted average price over the configured window */
59
+ twap: string;
60
+ /** median_price is the median of all source prices */
61
+ medianPrice: string;
62
+ /** min_price is the minimum price from all sources */
63
+ minPrice: string;
64
+ /** max_price is the maximum price from all sources */
65
+ maxPrice: string;
66
+ /** timestamp is when the aggregated price was computed */
67
+ timestamp: Date | undefined;
68
+ /** num_sources is the number of price sources contributing to this aggregation */
69
+ numSources: number;
70
+ /** deviation_bps is the price deviation in basis points between min and max prices */
71
+ deviationBps: Long;
72
+ }
73
+ /** PriceHealth represents the health status of a price feed */
74
+ export interface PriceHealth {
75
+ /** denom is the asset denomination */
76
+ denom: string;
77
+ /** is_healthy indicates if the price feed meets all health requirements */
78
+ isHealthy: boolean;
79
+ /** has_min_sources indicates if minimum number of sources are reporting */
80
+ hasMinSources: boolean;
81
+ /** deviation_ok indicates if price deviation is within acceptable limits */
82
+ deviationOk: boolean;
83
+ /** total_sources indicates total amount of sources registered for price calculations */
84
+ totalSources: number;
85
+ /** total_healthy_sources indicates total usable sources for price calculations */
86
+ totalHealthySources: number;
87
+ /** failure_reason lists reasons for unhealthy status, if any */
88
+ failureReason: string[];
89
+ }
90
+ export declare const DataID: MessageFns<DataID, "akash.oracle.v2.DataID">;
91
+ export declare const PriceDataID: MessageFns<PriceDataID, "akash.oracle.v2.PriceDataID">;
92
+ export declare const PriceLatestDataState: MessageFns<PriceLatestDataState, "akash.oracle.v2.PriceLatestDataState">;
93
+ export declare const PriceDataRecordID: MessageFns<PriceDataRecordID, "akash.oracle.v2.PriceDataRecordID">;
94
+ export declare const PriceData: MessageFns<PriceData, "akash.oracle.v2.PriceData">;
95
+ export declare const PriceHealth: MessageFns<PriceHealth, "akash.oracle.v2.PriceHealth">;
96
+ export declare const PriceDataState: MessageFns<PriceDataState, "akash.oracle.v2.PriceDataState">;
97
+ export declare const AggregatedPrice: MessageFns<AggregatedPrice, "akash.oracle.v2.AggregatedPrice">;