@akashnetwork/chain-sdk 1.0.0-alpha.41 → 1.0.0-alpha.43

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 (295) hide show
  1. package/dist/cjs/generated/createNodeSDK.cjs +328 -5
  2. package/dist/cjs/generated/createNodeSDK.cjs.map +2 -2
  3. package/dist/cjs/generated/createProviderSDK.cjs +36 -19
  4. package/dist/cjs/generated/createProviderSDK.cjs.map +2 -2
  5. package/dist/cjs/generated/patches/nodeCustomTypePatches.cjs +6 -0
  6. package/dist/cjs/generated/patches/nodeCustomTypePatches.cjs.map +2 -2
  7. package/dist/cjs/generated/protos/akash/base/attributes/v1/attribute.cjs +18 -2
  8. package/dist/cjs/generated/protos/akash/base/attributes/v1/attribute.cjs.map +2 -2
  9. package/dist/cjs/generated/protos/akash/inventory/v1/snapshot.cjs +943 -0
  10. package/dist/cjs/generated/protos/akash/inventory/v1/snapshot.cjs.map +7 -0
  11. package/dist/cjs/generated/protos/akash/inventory/v1/snapshot_akash.cjs +50 -0
  12. package/dist/cjs/generated/protos/akash/inventory/v1/snapshot_akash.cjs.map +7 -0
  13. package/dist/cjs/generated/protos/akash/manifest/v2beta3/httpoptions.cjs +159 -2
  14. package/dist/cjs/generated/protos/akash/manifest/v2beta3/httpoptions.cjs.map +2 -2
  15. package/dist/cjs/generated/protos/akash/market/v1/stats.cjs +248 -0
  16. package/dist/cjs/generated/protos/akash/market/v1/stats.cjs.map +7 -0
  17. package/dist/cjs/generated/protos/akash/market/v1/types.cjs +6 -0
  18. package/dist/cjs/generated/protos/akash/market/v1/types.cjs.map +2 -2
  19. package/dist/cjs/generated/protos/akash/market/v1beta5/query.cjs +139 -1
  20. package/dist/cjs/generated/protos/akash/market/v1beta5/query.cjs.map +2 -2
  21. package/dist/cjs/generated/protos/akash/market/v1beta5/query_akash.cjs +9 -0
  22. package/dist/cjs/generated/protos/akash/market/v1beta5/query_akash.cjs.map +2 -2
  23. package/dist/cjs/generated/protos/akash/provider/v1beta4/event.cjs +266 -0
  24. package/dist/cjs/generated/protos/akash/provider/v1beta4/event.cjs.map +2 -2
  25. package/dist/cjs/generated/protos/akash/provider/v1beta4/genesis.cjs +71 -2
  26. package/dist/cjs/generated/protos/akash/provider/v1beta4/genesis.cjs.map +2 -2
  27. package/dist/cjs/generated/protos/akash/provider/v1beta4/maintenance.cjs +417 -0
  28. package/dist/cjs/generated/protos/akash/provider/v1beta4/maintenance.cjs.map +7 -0
  29. package/dist/cjs/generated/protos/akash/provider/v1beta4/msg.cjs +321 -0
  30. package/dist/cjs/generated/protos/akash/provider/v1beta4/msg.cjs.map +2 -2
  31. package/dist/cjs/generated/protos/akash/provider/v1beta4/params.cjs +96 -0
  32. package/dist/cjs/generated/protos/akash/provider/v1beta4/params.cjs.map +7 -0
  33. package/dist/cjs/generated/protos/akash/provider/v1beta4/paramsmsg.cjs +132 -0
  34. package/dist/cjs/generated/protos/akash/provider/v1beta4/paramsmsg.cjs.map +7 -0
  35. package/dist/cjs/generated/protos/akash/provider/v1beta4/provider.cjs +88 -1
  36. package/dist/cjs/generated/protos/akash/provider/v1beta4/provider.cjs.map +2 -2
  37. package/dist/cjs/generated/protos/akash/provider/v1beta4/query.cjs +462 -1
  38. package/dist/cjs/generated/protos/akash/provider/v1beta4/query.cjs.map +2 -2
  39. package/dist/cjs/generated/protos/akash/provider/v1beta4/query_akash.cjs +36 -0
  40. package/dist/cjs/generated/protos/akash/provider/v1beta4/query_akash.cjs.map +2 -2
  41. package/dist/cjs/generated/protos/akash/provider/v1beta4/service_akash.cjs +25 -0
  42. package/dist/cjs/generated/protos/akash/provider/v1beta4/service_akash.cjs.map +2 -2
  43. package/dist/cjs/generated/protos/akash/verification/v1/event.cjs +2525 -0
  44. package/dist/cjs/generated/protos/akash/verification/v1/event.cjs.map +7 -0
  45. package/dist/cjs/generated/protos/akash/verification/v1/genesis.cjs +253 -0
  46. package/dist/cjs/generated/protos/akash/verification/v1/genesis.cjs.map +7 -0
  47. package/dist/cjs/generated/protos/akash/verification/v1/msg.cjs +2774 -0
  48. package/dist/cjs/generated/protos/akash/verification/v1/msg.cjs.map +7 -0
  49. package/dist/cjs/generated/protos/akash/verification/v1/params.cjs +1044 -0
  50. package/dist/cjs/generated/protos/akash/verification/v1/params.cjs.map +7 -0
  51. package/dist/cjs/generated/protos/akash/verification/v1/query.cjs +1559 -0
  52. package/dist/cjs/generated/protos/akash/verification/v1/query.cjs.map +7 -0
  53. package/dist/cjs/generated/protos/akash/verification/v1/query_akash.cjs +147 -0
  54. package/dist/cjs/generated/protos/akash/verification/v1/query_akash.cjs.map +7 -0
  55. package/dist/cjs/{sdl/types.cjs → generated/protos/akash/verification/v1/service.cjs} +3 -3
  56. package/dist/cjs/generated/protos/akash/verification/v1/service.cjs.map +7 -0
  57. package/dist/cjs/generated/protos/akash/verification/v1/service_akash.cjs +190 -0
  58. package/dist/cjs/generated/protos/akash/verification/v1/service_akash.cjs.map +7 -0
  59. package/dist/cjs/generated/protos/akash/verification/v1/state.cjs +2018 -0
  60. package/dist/cjs/generated/protos/akash/verification/v1/state.cjs.map +7 -0
  61. package/dist/cjs/generated/protos/akash/verification/v1/types.cjs +1071 -0
  62. package/dist/cjs/generated/protos/akash/verification/v1/types.cjs.map +7 -0
  63. package/dist/cjs/generated/protos/akash/verification/v1/verificationrequirement.cjs +148 -0
  64. package/dist/cjs/generated/protos/akash/verification/v1/verificationrequirement.cjs.map +7 -0
  65. package/dist/cjs/generated/protos/index.akash.v1.cjs +166 -25
  66. package/dist/cjs/generated/protos/index.akash.v1.cjs.map +3 -3
  67. package/dist/cjs/generated/protos/index.akash.v1beta4.cjs +25 -0
  68. package/dist/cjs/generated/protos/index.akash.v1beta4.cjs.map +3 -3
  69. package/dist/cjs/generated/protos/index.akash.v1beta5.cjs +2 -0
  70. package/dist/cjs/generated/protos/index.akash.v1beta5.cjs.map +2 -2
  71. package/dist/cjs/generated/protos/index.provider.akash.v1.cjs +9 -0
  72. package/dist/cjs/generated/protos/index.provider.akash.v1.cjs.map +2 -2
  73. package/dist/cjs/generated/protos/index.provider.akash.v2beta3.cjs +1 -0
  74. package/dist/cjs/generated/protos/index.provider.akash.v2beta3.cjs.map +2 -2
  75. package/dist/cjs/sdl/duration.cjs +44 -0
  76. package/dist/cjs/sdl/duration.cjs.map +7 -0
  77. package/dist/cjs/sdl/httpTimeout.cjs +59 -0
  78. package/dist/cjs/sdl/httpTimeout.cjs.map +7 -0
  79. package/dist/cjs/sdl/index.cjs +0 -2
  80. package/dist/cjs/sdl/index.cjs.map +2 -2
  81. package/dist/cjs/sdl/manifest/generateManifest.cjs +20 -1
  82. package/dist/cjs/sdl/manifest/generateManifest.cjs.map +2 -2
  83. package/dist/cjs/sdl/manifest/generateManifestVersion.cjs +11 -0
  84. package/dist/cjs/sdl/manifest/generateManifestVersion.cjs.map +2 -2
  85. package/dist/cjs/sdl/manifest/manifestUtils.cjs +10 -2
  86. package/dist/cjs/sdl/manifest/manifestUtils.cjs.map +2 -2
  87. package/dist/cjs/sdl/manifest/reclamationDuration.cjs +4 -5
  88. package/dist/cjs/sdl/manifest/reclamationDuration.cjs.map +3 -3
  89. package/dist/cjs/sdl/validateSDL/validateSDL.cjs +28 -1
  90. package/dist/cjs/sdl/validateSDL/validateSDL.cjs.map +2 -2
  91. package/dist/cjs/sdl/validateSDL/validateSDLInput.cjs +853 -454
  92. package/dist/cjs/sdl/validateSDL/validateSDLInput.cjs.map +2 -2
  93. package/dist/esm/chunk-2NPYA3YV.js +1563 -0
  94. package/dist/esm/chunk-2NPYA3YV.js.map +7 -0
  95. package/dist/esm/{chunk-4SZHF6SE.js → chunk-3U5XKNEU.js} +3 -3
  96. package/dist/esm/chunk-474YCD2T.js +356 -0
  97. package/dist/esm/chunk-474YCD2T.js.map +7 -0
  98. package/dist/esm/chunk-4CTTYO4O.js +890 -0
  99. package/dist/esm/chunk-4CTTYO4O.js.map +7 -0
  100. package/dist/esm/{chunk-IKTMMFJ5.js → chunk-54RECHZZ.js} +2 -2
  101. package/dist/esm/{chunk-WCUR732W.js → chunk-57534UAR.js} +2 -2
  102. package/dist/esm/{chunk-UHI2V2WP.js → chunk-5VWXQLXG.js} +1331 -489
  103. package/dist/esm/chunk-5VWXQLXG.js.map +7 -0
  104. package/dist/esm/{chunk-B4YVLEG7.js → chunk-7F3NJG67.js} +3 -3
  105. package/dist/esm/chunk-AIWCRXMP.js +672 -0
  106. package/dist/esm/chunk-AIWCRXMP.js.map +7 -0
  107. package/dist/esm/{chunk-XAOERZEY.js → chunk-AKNHD3CM.js} +2 -2
  108. package/dist/esm/chunk-BI4YL5KH.js +2742 -0
  109. package/dist/esm/chunk-BI4YL5KH.js.map +7 -0
  110. package/dist/esm/{chunk-ZGK4PJCD.js → chunk-BQNJHJXY.js} +3 -3
  111. package/dist/esm/{chunk-YBRE4XNB.js → chunk-CFEWW2ER.js} +2 -2
  112. package/dist/esm/{chunk-EJQUNX4L.js → chunk-DCLXPAMC.js} +3 -3
  113. package/dist/esm/{chunk-AR26HCRY.js → chunk-F4IQOYFH.js} +2 -2
  114. package/dist/esm/{chunk-ENZ3OBCL.js → chunk-F7KT5EX5.js} +2 -2
  115. package/dist/esm/{chunk-3QS3CMF4.js → chunk-GRGSTKN3.js} +2 -2
  116. package/dist/esm/{chunk-TTQ36NQ5.js → chunk-HRN6NSO2.js} +2 -2
  117. package/dist/esm/{chunk-E7KECYS7.js → chunk-IEWLP7PR.js} +7 -1
  118. package/dist/esm/chunk-IEWLP7PR.js.map +7 -0
  119. package/dist/esm/chunk-IFKY7FXY.js +484 -0
  120. package/dist/esm/chunk-IFKY7FXY.js.map +7 -0
  121. package/dist/esm/chunk-J4CJEGEM.js +3016 -0
  122. package/dist/esm/chunk-J4CJEGEM.js.map +7 -0
  123. package/dist/esm/{chunk-N42ATJOO.js → chunk-M5P5LAJJ.js} +2 -2
  124. package/dist/esm/{chunk-3K7Q5MUF.js → chunk-MIJCN6AD.js} +2 -2
  125. package/dist/esm/{chunk-OYI3IQIV.js → chunk-NNB5QBR2.js} +2 -2
  126. package/dist/esm/{chunk-WMSUADX2.js → chunk-OJ54L3XZ.js} +4 -4
  127. package/dist/esm/{chunk-5ODS4QTF.js → chunk-P64VHYRM.js} +2 -2
  128. package/dist/esm/{chunk-MFZVOFPX.js → chunk-PAOVIX5L.js} +3 -3
  129. package/dist/esm/chunk-PEHPXXTS.js +1053 -0
  130. package/dist/esm/chunk-PEHPXXTS.js.map +7 -0
  131. package/dist/esm/chunk-PTMMQODC.js +760 -0
  132. package/dist/esm/chunk-PTMMQODC.js.map +7 -0
  133. package/dist/esm/{chunk-ZXN75Q55.js → chunk-PWXFQ5FI.js} +3 -3
  134. package/dist/esm/{chunk-CZGHFBAO.js → chunk-PYD5MY63.js} +131 -9
  135. package/dist/esm/chunk-PYD5MY63.js.map +7 -0
  136. package/dist/esm/{chunk-NP4QQMME.js → chunk-RJZ46VHV.js} +2 -2
  137. package/dist/esm/chunk-SK7LOVVI.js +660 -0
  138. package/dist/esm/chunk-SK7LOVVI.js.map +7 -0
  139. package/dist/esm/{chunk-ZRZ6LUI2.js → chunk-TN4W5NLC.js} +7 -1
  140. package/dist/esm/chunk-TN4W5NLC.js.map +7 -0
  141. package/dist/esm/chunk-VYCICKFV.js +698 -0
  142. package/dist/esm/chunk-VYCICKFV.js.map +7 -0
  143. package/dist/esm/{chunk-4TSICBUM.js → chunk-W3TLZPTC.js} +3 -3
  144. package/dist/esm/{chunk-M2RS2IFR.js → chunk-WNFIFYG2.js} +2 -2
  145. package/dist/esm/{chunk-CVX7ZJQR.js → chunk-XP2XNYEA.js} +161 -4
  146. package/dist/esm/chunk-XP2XNYEA.js.map +7 -0
  147. package/dist/esm/{chunk-SGDEIQ7L.js → chunk-Y7BVCD32.js} +3 -3
  148. package/dist/esm/generated/protos/index.akash.v1.js +2988 -77
  149. package/dist/esm/generated/protos/index.akash.v1.js.map +4 -4
  150. package/dist/esm/generated/protos/index.akash.v1beta4.js +58 -13
  151. package/dist/esm/generated/protos/index.akash.v1beta5.js +17 -12
  152. package/dist/esm/generated/protos/index.akash.v1beta5.js.map +1 -1
  153. package/dist/esm/generated/protos/index.akash.v2.js +4 -4
  154. package/dist/esm/generated/protos/index.provider.akash.v1.js +29 -10
  155. package/dist/esm/generated/protos/index.provider.akash.v2beta3.js +7 -4
  156. package/dist/esm/index.js +54 -36
  157. package/dist/esm/index.js.map +2 -2
  158. package/dist/esm/index.web.js +14 -13
  159. package/dist/esm/index.web.js.map +1 -1
  160. package/dist/esm/{query_akash-I3RPHLVA.js → query_akash-BTYAA6UN.js} +5 -5
  161. package/dist/esm/{query_akash-QF2LHJQN.js → query_akash-EG43V2QH.js} +4 -4
  162. package/dist/esm/{query_akash-44SHG3FL.js → query_akash-HCIMNA7T.js} +4 -3
  163. package/dist/esm/{query_akash-44SHG3FL.js.map → query_akash-HCIMNA7T.js.map} +1 -1
  164. package/dist/esm/{query_akash-72TFPQBZ.js → query_akash-HN4NCENR.js} +4 -4
  165. package/dist/esm/query_akash-KU4YCMUU.js +85 -0
  166. package/dist/esm/query_akash-KU4YCMUU.js.map +7 -0
  167. package/dist/esm/{query_akash-TZ6F7OO4.js → query_akash-LSGWB5MI.js} +24 -12
  168. package/dist/esm/query_akash-LSGWB5MI.js.map +7 -0
  169. package/dist/esm/{query_akash-54EYS6GQ.js → query_akash-SOJJMCBH.js} +8 -7
  170. package/dist/esm/{query_akash-54EYS6GQ.js.map → query_akash-SOJJMCBH.js.map} +1 -1
  171. package/dist/esm/{query_akash-EGFDDA4L.js → query_akash-SVNQ4S67.js} +4 -4
  172. package/dist/esm/query_akash-XYSUQTZC.js +164 -0
  173. package/dist/esm/query_akash-XYSUQTZC.js.map +7 -0
  174. package/dist/esm/{service_akash-KRCYHNCN.js → service_akash-3R3TC3PH.js} +4 -3
  175. package/dist/esm/{service_akash-KRCYHNCN.js.map → service_akash-3R3TC3PH.js.map} +1 -1
  176. package/dist/esm/{service_akash-CEAZGGZS.js → service_akash-43EJ5RKY.js} +8 -7
  177. package/dist/esm/{service_akash-CEAZGGZS.js.map → service_akash-43EJ5RKY.js.map} +1 -1
  178. package/dist/esm/{service_akash-YXSRY4G3.js → service_akash-AXWB3IDG.js} +7 -6
  179. package/dist/esm/{service_akash-YXSRY4G3.js.map → service_akash-AXWB3IDG.js.map} +1 -1
  180. package/dist/esm/{service_akash-Z4CR3DWY.js → service_akash-BZTUHKJO.js} +8 -7
  181. package/dist/esm/{service_akash-Z4CR3DWY.js.map → service_akash-BZTUHKJO.js.map} +1 -1
  182. package/dist/esm/{service_akash-JQKI2SJP.js → service_akash-HFGWADC2.js} +4 -4
  183. package/dist/esm/{service_akash-SXXXZL6K.js → service_akash-KAJJV7LX.js} +4 -4
  184. package/dist/esm/service_akash-KYLB3OP3.js +78 -0
  185. package/dist/esm/service_akash-KYLB3OP3.js.map +7 -0
  186. package/dist/esm/service_akash-LJBOWZZG.js +221 -0
  187. package/dist/esm/service_akash-LJBOWZZG.js.map +7 -0
  188. package/dist/esm/{service_akash-PFTEVUGK.js → service_akash-QTGRTXLG.js} +4 -4
  189. package/dist/esm/{service_akash-44MLEMTW.js → service_akash-T36Y5DCD.js} +4 -3
  190. package/dist/esm/{service_akash-44MLEMTW.js.map → service_akash-T36Y5DCD.js.map} +1 -1
  191. package/dist/esm/{service_akash-ZITNWRBM.js → service_akash-X4HCN3EG.js} +9 -8
  192. package/dist/esm/{service_akash-ZITNWRBM.js.map → service_akash-X4HCN3EG.js.map} +1 -1
  193. package/dist/esm/snapshot_akash-KH5X5W3B.js +41 -0
  194. package/dist/esm/snapshot_akash-KH5X5W3B.js.map +7 -0
  195. package/dist/sdl-schema.yaml +84 -8
  196. package/dist/tsconfig.build.tsbuildinfo +1 -1
  197. package/dist/types/generated/createNodeSDK.d.ts +473 -0
  198. package/dist/types/generated/createProviderSDK.d.ts +31 -0
  199. package/dist/types/generated/patches/nodeCustomTypePatches.d.ts +8 -0
  200. package/dist/types/generated/protos/akash/base/attributes/v1/attribute.d.ts +3 -0
  201. package/dist/types/generated/protos/akash/inventory/v1/snapshot.d.ts +112 -0
  202. package/dist/types/generated/protos/akash/inventory/v1/snapshot_akash.d.ts +22 -0
  203. package/dist/types/generated/protos/akash/manifest/v2beta3/httpoptions.d.ts +35 -0
  204. package/dist/types/generated/protos/akash/market/v1/stats.d.ts +35 -0
  205. package/dist/types/generated/protos/akash/market/v1/types.d.ts +5 -3
  206. package/dist/types/generated/protos/akash/market/v1beta5/query.d.ts +29 -0
  207. package/dist/types/generated/protos/akash/market/v1beta5/query_akash.d.ts +8 -1
  208. package/dist/types/generated/protos/akash/provider/v1beta4/event.d.ts +40 -0
  209. package/dist/types/generated/protos/akash/provider/v1beta4/genesis.d.ts +11 -1
  210. package/dist/types/generated/protos/akash/provider/v1beta4/maintenance.d.ts +87 -0
  211. package/dist/types/generated/protos/akash/provider/v1beta4/msg.d.ts +57 -0
  212. package/dist/types/generated/protos/akash/provider/v1beta4/params.d.ts +17 -0
  213. package/dist/types/generated/protos/akash/provider/v1beta4/paramsmsg.d.ts +22 -0
  214. package/dist/types/generated/protos/akash/provider/v1beta4/provider.d.ts +13 -0
  215. package/dist/types/generated/protos/akash/provider/v1beta4/query.d.ts +93 -1
  216. package/dist/types/generated/protos/akash/provider/v1beta4/query_akash.d.ts +29 -1
  217. package/dist/types/generated/protos/akash/provider/v1beta4/service_akash.d.ts +20 -1
  218. package/dist/types/generated/protos/akash/verification/v1/event.d.ts +339 -0
  219. package/dist/types/generated/protos/akash/verification/v1/genesis.d.ts +45 -0
  220. package/dist/types/generated/protos/akash/verification/v1/msg.d.ts +614 -0
  221. package/dist/types/generated/protos/akash/verification/v1/params.d.ts +147 -0
  222. package/dist/types/generated/protos/akash/verification/v1/query.d.ts +290 -0
  223. package/dist/types/generated/protos/akash/verification/v1/query_akash.d.ts +97 -0
  224. package/dist/types/generated/protos/akash/verification/v1/service.d.ts +1 -0
  225. package/dist/types/generated/protos/akash/verification/v1/service_akash.d.ts +126 -0
  226. package/dist/types/generated/protos/akash/verification/v1/state.d.ts +320 -0
  227. package/dist/types/generated/protos/akash/verification/v1/types.d.ts +348 -0
  228. package/dist/types/generated/protos/akash/verification/v1/verificationrequirement.d.ts +36 -0
  229. package/dist/types/generated/protos/index.akash.v1.d.ts +9 -0
  230. package/dist/types/generated/protos/index.akash.v1beta4.d.ts +7 -4
  231. package/dist/types/generated/protos/index.akash.v1beta5.d.ts +1 -1
  232. package/dist/types/generated/protos/index.provider.akash.v1.d.ts +1 -0
  233. package/dist/types/generated/protos/index.provider.akash.v2beta3.d.ts +1 -1
  234. package/dist/types/sdk/chain/createChainNodeSDK.d.ts +45 -0
  235. package/dist/types/sdk/chain/createChainNodeWebSDK.d.ts +45 -0
  236. package/dist/types/sdl/duration.d.ts +13 -0
  237. package/dist/types/sdl/httpTimeout.d.ts +10 -0
  238. package/dist/types/sdl/index.d.ts +0 -1
  239. package/dist/types/sdl/manifest/reclamationDuration.d.ts +3 -7
  240. package/dist/types/sdl/validateSDL/validateSDLInput.d.ts +131 -16
  241. package/package.json +1 -1
  242. package/dist/cjs/sdl/types.cjs.map +0 -7
  243. package/dist/esm/chunk-C3WV6GJ6.js +0 -234
  244. package/dist/esm/chunk-C3WV6GJ6.js.map +0 -7
  245. package/dist/esm/chunk-CVX7ZJQR.js.map +0 -7
  246. package/dist/esm/chunk-CZGHFBAO.js.map +0 -7
  247. package/dist/esm/chunk-E7KECYS7.js.map +0 -7
  248. package/dist/esm/chunk-IVLF3VVZ.js +0 -364
  249. package/dist/esm/chunk-IVLF3VVZ.js.map +0 -7
  250. package/dist/esm/chunk-MV27RM25.js +0 -368
  251. package/dist/esm/chunk-MV27RM25.js.map +0 -7
  252. package/dist/esm/chunk-S2CZQ6AM.js +0 -211
  253. package/dist/esm/chunk-S2CZQ6AM.js.map +0 -7
  254. package/dist/esm/chunk-SXGU4O34.js +0 -258
  255. package/dist/esm/chunk-SXGU4O34.js.map +0 -7
  256. package/dist/esm/chunk-UHI2V2WP.js.map +0 -7
  257. package/dist/esm/chunk-V42TLXWK.js +0 -177
  258. package/dist/esm/chunk-V42TLXWK.js.map +0 -7
  259. package/dist/esm/chunk-ZRZ6LUI2.js.map +0 -7
  260. package/dist/esm/query_akash-N3FPIXVQ.js +0 -39
  261. package/dist/esm/query_akash-N3FPIXVQ.js.map +0 -7
  262. package/dist/esm/query_akash-TZ6F7OO4.js.map +0 -7
  263. package/dist/esm/service_akash-5AUMDLU5.js +0 -46
  264. package/dist/esm/service_akash-5AUMDLU5.js.map +0 -7
  265. package/dist/types/sdl/types.d.ts +0 -305
  266. /package/dist/esm/{chunk-4SZHF6SE.js.map → chunk-3U5XKNEU.js.map} +0 -0
  267. /package/dist/esm/{chunk-IKTMMFJ5.js.map → chunk-54RECHZZ.js.map} +0 -0
  268. /package/dist/esm/{chunk-WCUR732W.js.map → chunk-57534UAR.js.map} +0 -0
  269. /package/dist/esm/{chunk-B4YVLEG7.js.map → chunk-7F3NJG67.js.map} +0 -0
  270. /package/dist/esm/{chunk-XAOERZEY.js.map → chunk-AKNHD3CM.js.map} +0 -0
  271. /package/dist/esm/{chunk-ZGK4PJCD.js.map → chunk-BQNJHJXY.js.map} +0 -0
  272. /package/dist/esm/{chunk-YBRE4XNB.js.map → chunk-CFEWW2ER.js.map} +0 -0
  273. /package/dist/esm/{chunk-EJQUNX4L.js.map → chunk-DCLXPAMC.js.map} +0 -0
  274. /package/dist/esm/{chunk-AR26HCRY.js.map → chunk-F4IQOYFH.js.map} +0 -0
  275. /package/dist/esm/{chunk-ENZ3OBCL.js.map → chunk-F7KT5EX5.js.map} +0 -0
  276. /package/dist/esm/{chunk-3QS3CMF4.js.map → chunk-GRGSTKN3.js.map} +0 -0
  277. /package/dist/esm/{chunk-TTQ36NQ5.js.map → chunk-HRN6NSO2.js.map} +0 -0
  278. /package/dist/esm/{chunk-N42ATJOO.js.map → chunk-M5P5LAJJ.js.map} +0 -0
  279. /package/dist/esm/{chunk-3K7Q5MUF.js.map → chunk-MIJCN6AD.js.map} +0 -0
  280. /package/dist/esm/{chunk-OYI3IQIV.js.map → chunk-NNB5QBR2.js.map} +0 -0
  281. /package/dist/esm/{chunk-WMSUADX2.js.map → chunk-OJ54L3XZ.js.map} +0 -0
  282. /package/dist/esm/{chunk-5ODS4QTF.js.map → chunk-P64VHYRM.js.map} +0 -0
  283. /package/dist/esm/{chunk-MFZVOFPX.js.map → chunk-PAOVIX5L.js.map} +0 -0
  284. /package/dist/esm/{chunk-ZXN75Q55.js.map → chunk-PWXFQ5FI.js.map} +0 -0
  285. /package/dist/esm/{chunk-NP4QQMME.js.map → chunk-RJZ46VHV.js.map} +0 -0
  286. /package/dist/esm/{chunk-4TSICBUM.js.map → chunk-W3TLZPTC.js.map} +0 -0
  287. /package/dist/esm/{chunk-M2RS2IFR.js.map → chunk-WNFIFYG2.js.map} +0 -0
  288. /package/dist/esm/{chunk-SGDEIQ7L.js.map → chunk-Y7BVCD32.js.map} +0 -0
  289. /package/dist/esm/{query_akash-I3RPHLVA.js.map → query_akash-BTYAA6UN.js.map} +0 -0
  290. /package/dist/esm/{query_akash-QF2LHJQN.js.map → query_akash-EG43V2QH.js.map} +0 -0
  291. /package/dist/esm/{query_akash-72TFPQBZ.js.map → query_akash-HN4NCENR.js.map} +0 -0
  292. /package/dist/esm/{query_akash-EGFDDA4L.js.map → query_akash-SVNQ4S67.js.map} +0 -0
  293. /package/dist/esm/{service_akash-JQKI2SJP.js.map → service_akash-HFGWADC2.js.map} +0 -0
  294. /package/dist/esm/{service_akash-SXXXZL6K.js.map → service_akash-KAJJV7LX.js.map} +0 -0
  295. /package/dist/esm/{service_akash-PFTEVUGK.js.map → service_akash-QTGRTXLG.js.map} +0 -0
@@ -0,0 +1,2018 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var state_exports = {};
20
+ __export(state_exports, {
21
+ AttestationRecord: () => AttestationRecord,
22
+ AuditEscrowRecord: () => AuditEscrowRecord,
23
+ AuditorRecord: () => AuditorRecord,
24
+ DiscrepancyEvent: () => DiscrepancyEvent,
25
+ ProviderBondRecord: () => ProviderBondRecord,
26
+ ProviderSnapshotRecord: () => ProviderSnapshotRecord,
27
+ ProviderVerificationGraceRecord: () => ProviderVerificationGraceRecord,
28
+ ResourceSummary: () => ResourceSummary,
29
+ SoftwareIdentity: () => SoftwareIdentity,
30
+ UnbondingEntry: () => UnbondingEntry,
31
+ VerificationStoreRecord: () => VerificationStoreRecord
32
+ });
33
+ module.exports = __toCommonJS(state_exports);
34
+ var import_typeEncodingHelpers = require("../../../../../encoding/typeEncodingHelpers.cjs");
35
+ var import_wire = require("@bufbuild/protobuf/wire");
36
+ var import_coin = require("../../../cosmos/base/v1beta1/coin.cjs");
37
+ var import_timestamp = require("../../../google/protobuf/timestamp.cjs");
38
+ var import_types = require("./types.cjs");
39
+ function createBaseAuditorRecord() {
40
+ return {
41
+ address: "",
42
+ status: 0,
43
+ maxAttestationTier: 0,
44
+ bondAmount: void 0,
45
+ bondStatus: 0,
46
+ metadataHash: new Uint8Array(0),
47
+ registeredAt: void 0,
48
+ renewalDeadline: void 0,
49
+ discrepancyCount: 0n,
50
+ bondUnbondingCompletionTime: void 0
51
+ };
52
+ }
53
+ const AuditorRecord = {
54
+ $type: "akash.verification.v1.AuditorRecord",
55
+ encode(message, writer = new import_wire.BinaryWriter()) {
56
+ if (message.address !== "") {
57
+ writer.uint32(10).string(message.address);
58
+ }
59
+ if (message.status !== 0) {
60
+ writer.uint32(16).int32(message.status);
61
+ }
62
+ if (message.maxAttestationTier !== 0) {
63
+ writer.uint32(24).int32(message.maxAttestationTier);
64
+ }
65
+ if (message.bondAmount !== void 0) {
66
+ import_coin.Coin.encode(message.bondAmount, writer.uint32(34).fork()).join();
67
+ }
68
+ if (message.bondStatus !== 0) {
69
+ writer.uint32(40).int32(message.bondStatus);
70
+ }
71
+ if (message.metadataHash.length !== 0) {
72
+ writer.uint32(50).bytes(message.metadataHash);
73
+ }
74
+ if (message.registeredAt !== void 0) {
75
+ import_timestamp.Timestamp.encode((0, import_typeEncodingHelpers.toTimestamp)(message.registeredAt), writer.uint32(58).fork()).join();
76
+ }
77
+ if (message.renewalDeadline !== void 0) {
78
+ import_timestamp.Timestamp.encode((0, import_typeEncodingHelpers.toTimestamp)(message.renewalDeadline), writer.uint32(66).fork()).join();
79
+ }
80
+ if (message.discrepancyCount !== 0n) {
81
+ if (BigInt.asUintN(64, message.discrepancyCount) !== message.discrepancyCount) {
82
+ throw new globalThis.Error("value provided for field message.discrepancyCount of type uint64 too large");
83
+ }
84
+ writer.uint32(72).uint64(message.discrepancyCount);
85
+ }
86
+ if (message.bondUnbondingCompletionTime !== void 0) {
87
+ import_timestamp.Timestamp.encode((0, import_typeEncodingHelpers.toTimestamp)(message.bondUnbondingCompletionTime), writer.uint32(82).fork()).join();
88
+ }
89
+ return writer;
90
+ },
91
+ decode(input, length) {
92
+ const reader = input instanceof import_wire.BinaryReader ? input : new import_wire.BinaryReader(input);
93
+ const end = length === void 0 ? reader.len : reader.pos + length;
94
+ const message = createBaseAuditorRecord();
95
+ while (reader.pos < end) {
96
+ const tag = reader.uint32();
97
+ switch (tag >>> 3) {
98
+ case 1: {
99
+ if (tag !== 10) {
100
+ break;
101
+ }
102
+ message.address = reader.string();
103
+ continue;
104
+ }
105
+ case 2: {
106
+ if (tag !== 16) {
107
+ break;
108
+ }
109
+ message.status = reader.int32();
110
+ continue;
111
+ }
112
+ case 3: {
113
+ if (tag !== 24) {
114
+ break;
115
+ }
116
+ message.maxAttestationTier = reader.int32();
117
+ continue;
118
+ }
119
+ case 4: {
120
+ if (tag !== 34) {
121
+ break;
122
+ }
123
+ message.bondAmount = import_coin.Coin.decode(reader, reader.uint32());
124
+ continue;
125
+ }
126
+ case 5: {
127
+ if (tag !== 40) {
128
+ break;
129
+ }
130
+ message.bondStatus = reader.int32();
131
+ continue;
132
+ }
133
+ case 6: {
134
+ if (tag !== 50) {
135
+ break;
136
+ }
137
+ message.metadataHash = reader.bytes();
138
+ continue;
139
+ }
140
+ case 7: {
141
+ if (tag !== 58) {
142
+ break;
143
+ }
144
+ message.registeredAt = (0, import_typeEncodingHelpers.fromTimestamp)(import_timestamp.Timestamp.decode(reader, reader.uint32()));
145
+ continue;
146
+ }
147
+ case 8: {
148
+ if (tag !== 66) {
149
+ break;
150
+ }
151
+ message.renewalDeadline = (0, import_typeEncodingHelpers.fromTimestamp)(import_timestamp.Timestamp.decode(reader, reader.uint32()));
152
+ continue;
153
+ }
154
+ case 9: {
155
+ if (tag !== 72) {
156
+ break;
157
+ }
158
+ message.discrepancyCount = reader.uint64();
159
+ continue;
160
+ }
161
+ case 10: {
162
+ if (tag !== 82) {
163
+ break;
164
+ }
165
+ message.bondUnbondingCompletionTime = (0, import_typeEncodingHelpers.fromTimestamp)(import_timestamp.Timestamp.decode(reader, reader.uint32()));
166
+ continue;
167
+ }
168
+ }
169
+ if ((tag & 7) === 4 || tag === 0) {
170
+ break;
171
+ }
172
+ reader.skip(tag & 7);
173
+ }
174
+ return message;
175
+ },
176
+ fromJSON(object) {
177
+ return {
178
+ address: (0, import_typeEncodingHelpers.isSet)(object.address) ? globalThis.String(object.address) : "",
179
+ status: (0, import_typeEncodingHelpers.isSet)(object.status) ? (0, import_types.auditorStatusFromJSON)(object.status) : 0,
180
+ maxAttestationTier: (0, import_typeEncodingHelpers.isSet)(object.max_attestation_tier) ? (0, import_types.verificationTierFromJSON)(object.max_attestation_tier) : 0,
181
+ bondAmount: (0, import_typeEncodingHelpers.isSet)(object.bond_amount) ? import_coin.Coin.fromJSON(object.bond_amount) : void 0,
182
+ bondStatus: (0, import_typeEncodingHelpers.isSet)(object.bond_status) ? (0, import_types.bondStatusFromJSON)(object.bond_status) : 0,
183
+ metadataHash: (0, import_typeEncodingHelpers.isSet)(object.metadata_hash) ? (0, import_typeEncodingHelpers.bytesFromBase64)(object.metadata_hash) : new Uint8Array(0),
184
+ registeredAt: (0, import_typeEncodingHelpers.isSet)(object.registered_at) ? (0, import_typeEncodingHelpers.fromJsonTimestamp)(object.registered_at) : void 0,
185
+ renewalDeadline: (0, import_typeEncodingHelpers.isSet)(object.renewal_deadline) ? (0, import_typeEncodingHelpers.fromJsonTimestamp)(object.renewal_deadline) : void 0,
186
+ discrepancyCount: (0, import_typeEncodingHelpers.isSet)(object.discrepancy_count) ? BigInt(object.discrepancy_count) : 0n,
187
+ bondUnbondingCompletionTime: (0, import_typeEncodingHelpers.isSet)(object.bond_unbonding_completion_time) ? (0, import_typeEncodingHelpers.fromJsonTimestamp)(object.bond_unbonding_completion_time) : void 0
188
+ };
189
+ },
190
+ toJSON(message) {
191
+ const obj = {};
192
+ if (message.address !== "") {
193
+ obj.address = message.address;
194
+ }
195
+ if (message.status !== 0) {
196
+ obj.status = (0, import_types.auditorStatusToJSON)(message.status);
197
+ }
198
+ if (message.maxAttestationTier !== 0) {
199
+ obj.max_attestation_tier = (0, import_types.verificationTierToJSON)(message.maxAttestationTier);
200
+ }
201
+ if (message.bondAmount !== void 0) {
202
+ obj.bond_amount = import_coin.Coin.toJSON(message.bondAmount);
203
+ }
204
+ if (message.bondStatus !== 0) {
205
+ obj.bond_status = (0, import_types.bondStatusToJSON)(message.bondStatus);
206
+ }
207
+ if (message.metadataHash.length !== 0) {
208
+ obj.metadata_hash = (0, import_typeEncodingHelpers.base64FromBytes)(message.metadataHash);
209
+ }
210
+ if (message.registeredAt !== void 0) {
211
+ obj.registered_at = message.registeredAt.toISOString();
212
+ }
213
+ if (message.renewalDeadline !== void 0) {
214
+ obj.renewal_deadline = message.renewalDeadline.toISOString();
215
+ }
216
+ if (message.discrepancyCount !== 0n) {
217
+ obj.discrepancy_count = message.discrepancyCount.toString();
218
+ }
219
+ if (message.bondUnbondingCompletionTime !== void 0) {
220
+ obj.bond_unbonding_completion_time = message.bondUnbondingCompletionTime.toISOString();
221
+ }
222
+ return obj;
223
+ },
224
+ fromPartial(object) {
225
+ const message = createBaseAuditorRecord();
226
+ message.address = object.address ?? "";
227
+ message.status = object.status ?? 0;
228
+ message.maxAttestationTier = object.maxAttestationTier ?? 0;
229
+ message.bondAmount = object.bondAmount !== void 0 && object.bondAmount !== null ? import_coin.Coin.fromPartial(object.bondAmount) : void 0;
230
+ message.bondStatus = object.bondStatus ?? 0;
231
+ message.metadataHash = object.metadataHash ?? new Uint8Array(0);
232
+ message.registeredAt = object.registeredAt ?? void 0;
233
+ message.renewalDeadline = object.renewalDeadline ?? void 0;
234
+ message.discrepancyCount = object.discrepancyCount !== void 0 && object.discrepancyCount !== null ? BigInt(object.discrepancyCount) : 0n;
235
+ message.bondUnbondingCompletionTime = object.bondUnbondingCompletionTime ?? void 0;
236
+ return message;
237
+ }
238
+ };
239
+ function createBaseAttestationRecord() {
240
+ return {
241
+ provider: "",
242
+ auditor: "",
243
+ tier: 0,
244
+ capabilities: [],
245
+ evidenceHash: new Uint8Array(0),
246
+ fee: void 0,
247
+ feeStatus: 0,
248
+ createdAt: void 0,
249
+ expiresAt: void 0,
250
+ status: 0,
251
+ voidedReason: 0,
252
+ deposit: void 0,
253
+ depositStatus: 0,
254
+ auditEscrowId: 0n,
255
+ faultAttribution: 0
256
+ };
257
+ }
258
+ const AttestationRecord = {
259
+ $type: "akash.verification.v1.AttestationRecord",
260
+ encode(message, writer = new import_wire.BinaryWriter()) {
261
+ if (message.provider !== "") {
262
+ writer.uint32(10).string(message.provider);
263
+ }
264
+ if (message.auditor !== "") {
265
+ writer.uint32(18).string(message.auditor);
266
+ }
267
+ if (message.tier !== 0) {
268
+ writer.uint32(24).int32(message.tier);
269
+ }
270
+ for (const v of message.capabilities) {
271
+ writer.uint32(32).int32(v);
272
+ }
273
+ if (message.evidenceHash.length !== 0) {
274
+ writer.uint32(42).bytes(message.evidenceHash);
275
+ }
276
+ if (message.fee !== void 0) {
277
+ import_coin.Coin.encode(message.fee, writer.uint32(50).fork()).join();
278
+ }
279
+ if (message.feeStatus !== 0) {
280
+ writer.uint32(56).int32(message.feeStatus);
281
+ }
282
+ if (message.createdAt !== void 0) {
283
+ import_timestamp.Timestamp.encode((0, import_typeEncodingHelpers.toTimestamp)(message.createdAt), writer.uint32(66).fork()).join();
284
+ }
285
+ if (message.expiresAt !== void 0) {
286
+ import_timestamp.Timestamp.encode((0, import_typeEncodingHelpers.toTimestamp)(message.expiresAt), writer.uint32(74).fork()).join();
287
+ }
288
+ if (message.status !== 0) {
289
+ writer.uint32(80).int32(message.status);
290
+ }
291
+ if (message.voidedReason !== 0) {
292
+ writer.uint32(88).int32(message.voidedReason);
293
+ }
294
+ if (message.deposit !== void 0) {
295
+ import_coin.Coin.encode(message.deposit, writer.uint32(98).fork()).join();
296
+ }
297
+ if (message.depositStatus !== 0) {
298
+ writer.uint32(104).int32(message.depositStatus);
299
+ }
300
+ if (message.auditEscrowId !== 0n) {
301
+ if (BigInt.asUintN(64, message.auditEscrowId) !== message.auditEscrowId) {
302
+ throw new globalThis.Error("value provided for field message.auditEscrowId of type uint64 too large");
303
+ }
304
+ writer.uint32(112).uint64(message.auditEscrowId);
305
+ }
306
+ if (message.faultAttribution !== 0) {
307
+ writer.uint32(120).int32(message.faultAttribution);
308
+ }
309
+ return writer;
310
+ },
311
+ decode(input, length) {
312
+ const reader = input instanceof import_wire.BinaryReader ? input : new import_wire.BinaryReader(input);
313
+ const end = length === void 0 ? reader.len : reader.pos + length;
314
+ const message = createBaseAttestationRecord();
315
+ while (reader.pos < end) {
316
+ const tag = reader.uint32();
317
+ switch (tag >>> 3) {
318
+ case 1: {
319
+ if (tag !== 10) {
320
+ break;
321
+ }
322
+ message.provider = reader.string();
323
+ continue;
324
+ }
325
+ case 2: {
326
+ if (tag !== 18) {
327
+ break;
328
+ }
329
+ message.auditor = reader.string();
330
+ continue;
331
+ }
332
+ case 3: {
333
+ if (tag !== 24) {
334
+ break;
335
+ }
336
+ message.tier = reader.int32();
337
+ continue;
338
+ }
339
+ case 4: {
340
+ if (tag === 32) {
341
+ message.capabilities.push(reader.int32());
342
+ continue;
343
+ }
344
+ if (tag === 34) {
345
+ const end2 = reader.uint32() + reader.pos;
346
+ while (reader.pos < end2) {
347
+ message.capabilities.push(reader.int32());
348
+ }
349
+ continue;
350
+ }
351
+ break;
352
+ }
353
+ case 5: {
354
+ if (tag !== 42) {
355
+ break;
356
+ }
357
+ message.evidenceHash = reader.bytes();
358
+ continue;
359
+ }
360
+ case 6: {
361
+ if (tag !== 50) {
362
+ break;
363
+ }
364
+ message.fee = import_coin.Coin.decode(reader, reader.uint32());
365
+ continue;
366
+ }
367
+ case 7: {
368
+ if (tag !== 56) {
369
+ break;
370
+ }
371
+ message.feeStatus = reader.int32();
372
+ continue;
373
+ }
374
+ case 8: {
375
+ if (tag !== 66) {
376
+ break;
377
+ }
378
+ message.createdAt = (0, import_typeEncodingHelpers.fromTimestamp)(import_timestamp.Timestamp.decode(reader, reader.uint32()));
379
+ continue;
380
+ }
381
+ case 9: {
382
+ if (tag !== 74) {
383
+ break;
384
+ }
385
+ message.expiresAt = (0, import_typeEncodingHelpers.fromTimestamp)(import_timestamp.Timestamp.decode(reader, reader.uint32()));
386
+ continue;
387
+ }
388
+ case 10: {
389
+ if (tag !== 80) {
390
+ break;
391
+ }
392
+ message.status = reader.int32();
393
+ continue;
394
+ }
395
+ case 11: {
396
+ if (tag !== 88) {
397
+ break;
398
+ }
399
+ message.voidedReason = reader.int32();
400
+ continue;
401
+ }
402
+ case 12: {
403
+ if (tag !== 98) {
404
+ break;
405
+ }
406
+ message.deposit = import_coin.Coin.decode(reader, reader.uint32());
407
+ continue;
408
+ }
409
+ case 13: {
410
+ if (tag !== 104) {
411
+ break;
412
+ }
413
+ message.depositStatus = reader.int32();
414
+ continue;
415
+ }
416
+ case 14: {
417
+ if (tag !== 112) {
418
+ break;
419
+ }
420
+ message.auditEscrowId = reader.uint64();
421
+ continue;
422
+ }
423
+ case 15: {
424
+ if (tag !== 120) {
425
+ break;
426
+ }
427
+ message.faultAttribution = reader.int32();
428
+ continue;
429
+ }
430
+ }
431
+ if ((tag & 7) === 4 || tag === 0) {
432
+ break;
433
+ }
434
+ reader.skip(tag & 7);
435
+ }
436
+ return message;
437
+ },
438
+ fromJSON(object) {
439
+ return {
440
+ provider: (0, import_typeEncodingHelpers.isSet)(object.provider) ? globalThis.String(object.provider) : "",
441
+ auditor: (0, import_typeEncodingHelpers.isSet)(object.auditor) ? globalThis.String(object.auditor) : "",
442
+ tier: (0, import_typeEncodingHelpers.isSet)(object.tier) ? (0, import_types.verificationTierFromJSON)(object.tier) : 0,
443
+ capabilities: globalThis.Array.isArray(object?.capabilities) ? object.capabilities.map((e) => (0, import_types.capabilityFlagFromJSON)(e)) : [],
444
+ evidenceHash: (0, import_typeEncodingHelpers.isSet)(object.evidence_hash) ? (0, import_typeEncodingHelpers.bytesFromBase64)(object.evidence_hash) : new Uint8Array(0),
445
+ fee: (0, import_typeEncodingHelpers.isSet)(object.fee) ? import_coin.Coin.fromJSON(object.fee) : void 0,
446
+ feeStatus: (0, import_typeEncodingHelpers.isSet)(object.fee_status) ? (0, import_types.feeStatusFromJSON)(object.fee_status) : 0,
447
+ createdAt: (0, import_typeEncodingHelpers.isSet)(object.created_at) ? (0, import_typeEncodingHelpers.fromJsonTimestamp)(object.created_at) : void 0,
448
+ expiresAt: (0, import_typeEncodingHelpers.isSet)(object.expires_at) ? (0, import_typeEncodingHelpers.fromJsonTimestamp)(object.expires_at) : void 0,
449
+ status: (0, import_typeEncodingHelpers.isSet)(object.status) ? (0, import_types.attestationStatusFromJSON)(object.status) : 0,
450
+ voidedReason: (0, import_typeEncodingHelpers.isSet)(object.voided_reason) ? (0, import_types.voidedReasonFromJSON)(object.voided_reason) : 0,
451
+ deposit: (0, import_typeEncodingHelpers.isSet)(object.deposit) ? import_coin.Coin.fromJSON(object.deposit) : void 0,
452
+ depositStatus: (0, import_typeEncodingHelpers.isSet)(object.deposit_status) ? (0, import_types.depositStatusFromJSON)(object.deposit_status) : 0,
453
+ auditEscrowId: (0, import_typeEncodingHelpers.isSet)(object.audit_escrow_id) ? BigInt(object.audit_escrow_id) : 0n,
454
+ faultAttribution: (0, import_typeEncodingHelpers.isSet)(object.fault_attribution) ? (0, import_types.faultAttributionFromJSON)(object.fault_attribution) : 0
455
+ };
456
+ },
457
+ toJSON(message) {
458
+ const obj = {};
459
+ if (message.provider !== "") {
460
+ obj.provider = message.provider;
461
+ }
462
+ if (message.auditor !== "") {
463
+ obj.auditor = message.auditor;
464
+ }
465
+ if (message.tier !== 0) {
466
+ obj.tier = (0, import_types.verificationTierToJSON)(message.tier);
467
+ }
468
+ if (message.capabilities?.length) {
469
+ obj.capabilities = message.capabilities.map((e) => (0, import_types.capabilityFlagToJSON)(e));
470
+ }
471
+ if (message.evidenceHash.length !== 0) {
472
+ obj.evidence_hash = (0, import_typeEncodingHelpers.base64FromBytes)(message.evidenceHash);
473
+ }
474
+ if (message.fee !== void 0) {
475
+ obj.fee = import_coin.Coin.toJSON(message.fee);
476
+ }
477
+ if (message.feeStatus !== 0) {
478
+ obj.fee_status = (0, import_types.feeStatusToJSON)(message.feeStatus);
479
+ }
480
+ if (message.createdAt !== void 0) {
481
+ obj.created_at = message.createdAt.toISOString();
482
+ }
483
+ if (message.expiresAt !== void 0) {
484
+ obj.expires_at = message.expiresAt.toISOString();
485
+ }
486
+ if (message.status !== 0) {
487
+ obj.status = (0, import_types.attestationStatusToJSON)(message.status);
488
+ }
489
+ if (message.voidedReason !== 0) {
490
+ obj.voided_reason = (0, import_types.voidedReasonToJSON)(message.voidedReason);
491
+ }
492
+ if (message.deposit !== void 0) {
493
+ obj.deposit = import_coin.Coin.toJSON(message.deposit);
494
+ }
495
+ if (message.depositStatus !== 0) {
496
+ obj.deposit_status = (0, import_types.depositStatusToJSON)(message.depositStatus);
497
+ }
498
+ if (message.auditEscrowId !== 0n) {
499
+ obj.audit_escrow_id = message.auditEscrowId.toString();
500
+ }
501
+ if (message.faultAttribution !== 0) {
502
+ obj.fault_attribution = (0, import_types.faultAttributionToJSON)(message.faultAttribution);
503
+ }
504
+ return obj;
505
+ },
506
+ fromPartial(object) {
507
+ const message = createBaseAttestationRecord();
508
+ message.provider = object.provider ?? "";
509
+ message.auditor = object.auditor ?? "";
510
+ message.tier = object.tier ?? 0;
511
+ message.capabilities = object.capabilities?.map((e) => e) || [];
512
+ message.evidenceHash = object.evidenceHash ?? new Uint8Array(0);
513
+ message.fee = object.fee !== void 0 && object.fee !== null ? import_coin.Coin.fromPartial(object.fee) : void 0;
514
+ message.feeStatus = object.feeStatus ?? 0;
515
+ message.createdAt = object.createdAt ?? void 0;
516
+ message.expiresAt = object.expiresAt ?? void 0;
517
+ message.status = object.status ?? 0;
518
+ message.voidedReason = object.voidedReason ?? 0;
519
+ message.deposit = object.deposit !== void 0 && object.deposit !== null ? import_coin.Coin.fromPartial(object.deposit) : void 0;
520
+ message.depositStatus = object.depositStatus ?? 0;
521
+ message.auditEscrowId = object.auditEscrowId !== void 0 && object.auditEscrowId !== null ? BigInt(object.auditEscrowId) : 0n;
522
+ message.faultAttribution = object.faultAttribution ?? 0;
523
+ return message;
524
+ }
525
+ };
526
+ function createBaseAuditEscrowRecord() {
527
+ return {
528
+ id: 0n,
529
+ provider: "",
530
+ consumedByAuditor: "",
531
+ requestedTier: 0,
532
+ requestedCapabilities: [],
533
+ fee: void 0,
534
+ feeStatus: 0,
535
+ providerDeposit: void 0,
536
+ providerDepositStatus: 0,
537
+ status: 0,
538
+ openedAt: void 0,
539
+ consumedAt: void 0,
540
+ expiresAt: void 0,
541
+ metadataHash: new Uint8Array(0),
542
+ settlementReason: 0,
543
+ faultAttribution: 0
544
+ };
545
+ }
546
+ const AuditEscrowRecord = {
547
+ $type: "akash.verification.v1.AuditEscrowRecord",
548
+ encode(message, writer = new import_wire.BinaryWriter()) {
549
+ if (message.id !== 0n) {
550
+ if (BigInt.asUintN(64, message.id) !== message.id) {
551
+ throw new globalThis.Error("value provided for field message.id of type uint64 too large");
552
+ }
553
+ writer.uint32(8).uint64(message.id);
554
+ }
555
+ if (message.provider !== "") {
556
+ writer.uint32(18).string(message.provider);
557
+ }
558
+ if (message.consumedByAuditor !== "") {
559
+ writer.uint32(26).string(message.consumedByAuditor);
560
+ }
561
+ if (message.requestedTier !== 0) {
562
+ writer.uint32(32).int32(message.requestedTier);
563
+ }
564
+ for (const v of message.requestedCapabilities) {
565
+ writer.uint32(40).int32(v);
566
+ }
567
+ if (message.fee !== void 0) {
568
+ import_coin.Coin.encode(message.fee, writer.uint32(50).fork()).join();
569
+ }
570
+ if (message.feeStatus !== 0) {
571
+ writer.uint32(56).int32(message.feeStatus);
572
+ }
573
+ if (message.providerDeposit !== void 0) {
574
+ import_coin.Coin.encode(message.providerDeposit, writer.uint32(66).fork()).join();
575
+ }
576
+ if (message.providerDepositStatus !== 0) {
577
+ writer.uint32(72).int32(message.providerDepositStatus);
578
+ }
579
+ if (message.status !== 0) {
580
+ writer.uint32(80).int32(message.status);
581
+ }
582
+ if (message.openedAt !== void 0) {
583
+ import_timestamp.Timestamp.encode((0, import_typeEncodingHelpers.toTimestamp)(message.openedAt), writer.uint32(90).fork()).join();
584
+ }
585
+ if (message.consumedAt !== void 0) {
586
+ import_timestamp.Timestamp.encode((0, import_typeEncodingHelpers.toTimestamp)(message.consumedAt), writer.uint32(98).fork()).join();
587
+ }
588
+ if (message.expiresAt !== void 0) {
589
+ import_timestamp.Timestamp.encode((0, import_typeEncodingHelpers.toTimestamp)(message.expiresAt), writer.uint32(106).fork()).join();
590
+ }
591
+ if (message.metadataHash.length !== 0) {
592
+ writer.uint32(114).bytes(message.metadataHash);
593
+ }
594
+ if (message.settlementReason !== 0) {
595
+ writer.uint32(120).int32(message.settlementReason);
596
+ }
597
+ if (message.faultAttribution !== 0) {
598
+ writer.uint32(128).int32(message.faultAttribution);
599
+ }
600
+ return writer;
601
+ },
602
+ decode(input, length) {
603
+ const reader = input instanceof import_wire.BinaryReader ? input : new import_wire.BinaryReader(input);
604
+ const end = length === void 0 ? reader.len : reader.pos + length;
605
+ const message = createBaseAuditEscrowRecord();
606
+ while (reader.pos < end) {
607
+ const tag = reader.uint32();
608
+ switch (tag >>> 3) {
609
+ case 1: {
610
+ if (tag !== 8) {
611
+ break;
612
+ }
613
+ message.id = reader.uint64();
614
+ continue;
615
+ }
616
+ case 2: {
617
+ if (tag !== 18) {
618
+ break;
619
+ }
620
+ message.provider = reader.string();
621
+ continue;
622
+ }
623
+ case 3: {
624
+ if (tag !== 26) {
625
+ break;
626
+ }
627
+ message.consumedByAuditor = reader.string();
628
+ continue;
629
+ }
630
+ case 4: {
631
+ if (tag !== 32) {
632
+ break;
633
+ }
634
+ message.requestedTier = reader.int32();
635
+ continue;
636
+ }
637
+ case 5: {
638
+ if (tag === 40) {
639
+ message.requestedCapabilities.push(reader.int32());
640
+ continue;
641
+ }
642
+ if (tag === 42) {
643
+ const end2 = reader.uint32() + reader.pos;
644
+ while (reader.pos < end2) {
645
+ message.requestedCapabilities.push(reader.int32());
646
+ }
647
+ continue;
648
+ }
649
+ break;
650
+ }
651
+ case 6: {
652
+ if (tag !== 50) {
653
+ break;
654
+ }
655
+ message.fee = import_coin.Coin.decode(reader, reader.uint32());
656
+ continue;
657
+ }
658
+ case 7: {
659
+ if (tag !== 56) {
660
+ break;
661
+ }
662
+ message.feeStatus = reader.int32();
663
+ continue;
664
+ }
665
+ case 8: {
666
+ if (tag !== 66) {
667
+ break;
668
+ }
669
+ message.providerDeposit = import_coin.Coin.decode(reader, reader.uint32());
670
+ continue;
671
+ }
672
+ case 9: {
673
+ if (tag !== 72) {
674
+ break;
675
+ }
676
+ message.providerDepositStatus = reader.int32();
677
+ continue;
678
+ }
679
+ case 10: {
680
+ if (tag !== 80) {
681
+ break;
682
+ }
683
+ message.status = reader.int32();
684
+ continue;
685
+ }
686
+ case 11: {
687
+ if (tag !== 90) {
688
+ break;
689
+ }
690
+ message.openedAt = (0, import_typeEncodingHelpers.fromTimestamp)(import_timestamp.Timestamp.decode(reader, reader.uint32()));
691
+ continue;
692
+ }
693
+ case 12: {
694
+ if (tag !== 98) {
695
+ break;
696
+ }
697
+ message.consumedAt = (0, import_typeEncodingHelpers.fromTimestamp)(import_timestamp.Timestamp.decode(reader, reader.uint32()));
698
+ continue;
699
+ }
700
+ case 13: {
701
+ if (tag !== 106) {
702
+ break;
703
+ }
704
+ message.expiresAt = (0, import_typeEncodingHelpers.fromTimestamp)(import_timestamp.Timestamp.decode(reader, reader.uint32()));
705
+ continue;
706
+ }
707
+ case 14: {
708
+ if (tag !== 114) {
709
+ break;
710
+ }
711
+ message.metadataHash = reader.bytes();
712
+ continue;
713
+ }
714
+ case 15: {
715
+ if (tag !== 120) {
716
+ break;
717
+ }
718
+ message.settlementReason = reader.int32();
719
+ continue;
720
+ }
721
+ case 16: {
722
+ if (tag !== 128) {
723
+ break;
724
+ }
725
+ message.faultAttribution = reader.int32();
726
+ continue;
727
+ }
728
+ }
729
+ if ((tag & 7) === 4 || tag === 0) {
730
+ break;
731
+ }
732
+ reader.skip(tag & 7);
733
+ }
734
+ return message;
735
+ },
736
+ fromJSON(object) {
737
+ return {
738
+ id: (0, import_typeEncodingHelpers.isSet)(object.id) ? BigInt(object.id) : 0n,
739
+ provider: (0, import_typeEncodingHelpers.isSet)(object.provider) ? globalThis.String(object.provider) : "",
740
+ consumedByAuditor: (0, import_typeEncodingHelpers.isSet)(object.consumed_by_auditor) ? globalThis.String(object.consumed_by_auditor) : "",
741
+ requestedTier: (0, import_typeEncodingHelpers.isSet)(object.requested_tier) ? (0, import_types.verificationTierFromJSON)(object.requested_tier) : 0,
742
+ requestedCapabilities: globalThis.Array.isArray(object?.requested_capabilities) ? object.requested_capabilities.map((e) => (0, import_types.capabilityFlagFromJSON)(e)) : [],
743
+ fee: (0, import_typeEncodingHelpers.isSet)(object.fee) ? import_coin.Coin.fromJSON(object.fee) : void 0,
744
+ feeStatus: (0, import_typeEncodingHelpers.isSet)(object.fee_status) ? (0, import_types.feeStatusFromJSON)(object.fee_status) : 0,
745
+ providerDeposit: (0, import_typeEncodingHelpers.isSet)(object.provider_deposit) ? import_coin.Coin.fromJSON(object.provider_deposit) : void 0,
746
+ providerDepositStatus: (0, import_typeEncodingHelpers.isSet)(object.provider_deposit_status) ? (0, import_types.providerDepositStatusFromJSON)(object.provider_deposit_status) : 0,
747
+ status: (0, import_typeEncodingHelpers.isSet)(object.status) ? (0, import_types.auditEscrowStatusFromJSON)(object.status) : 0,
748
+ openedAt: (0, import_typeEncodingHelpers.isSet)(object.opened_at) ? (0, import_typeEncodingHelpers.fromJsonTimestamp)(object.opened_at) : void 0,
749
+ consumedAt: (0, import_typeEncodingHelpers.isSet)(object.consumed_at) ? (0, import_typeEncodingHelpers.fromJsonTimestamp)(object.consumed_at) : void 0,
750
+ expiresAt: (0, import_typeEncodingHelpers.isSet)(object.expires_at) ? (0, import_typeEncodingHelpers.fromJsonTimestamp)(object.expires_at) : void 0,
751
+ metadataHash: (0, import_typeEncodingHelpers.isSet)(object.metadata_hash) ? (0, import_typeEncodingHelpers.bytesFromBase64)(object.metadata_hash) : new Uint8Array(0),
752
+ settlementReason: (0, import_typeEncodingHelpers.isSet)(object.settlement_reason) ? (0, import_types.auditEscrowSettlementReasonFromJSON)(object.settlement_reason) : 0,
753
+ faultAttribution: (0, import_typeEncodingHelpers.isSet)(object.fault_attribution) ? (0, import_types.faultAttributionFromJSON)(object.fault_attribution) : 0
754
+ };
755
+ },
756
+ toJSON(message) {
757
+ const obj = {};
758
+ if (message.id !== 0n) {
759
+ obj.id = message.id.toString();
760
+ }
761
+ if (message.provider !== "") {
762
+ obj.provider = message.provider;
763
+ }
764
+ if (message.consumedByAuditor !== "") {
765
+ obj.consumed_by_auditor = message.consumedByAuditor;
766
+ }
767
+ if (message.requestedTier !== 0) {
768
+ obj.requested_tier = (0, import_types.verificationTierToJSON)(message.requestedTier);
769
+ }
770
+ if (message.requestedCapabilities?.length) {
771
+ obj.requested_capabilities = message.requestedCapabilities.map((e) => (0, import_types.capabilityFlagToJSON)(e));
772
+ }
773
+ if (message.fee !== void 0) {
774
+ obj.fee = import_coin.Coin.toJSON(message.fee);
775
+ }
776
+ if (message.feeStatus !== 0) {
777
+ obj.fee_status = (0, import_types.feeStatusToJSON)(message.feeStatus);
778
+ }
779
+ if (message.providerDeposit !== void 0) {
780
+ obj.provider_deposit = import_coin.Coin.toJSON(message.providerDeposit);
781
+ }
782
+ if (message.providerDepositStatus !== 0) {
783
+ obj.provider_deposit_status = (0, import_types.providerDepositStatusToJSON)(message.providerDepositStatus);
784
+ }
785
+ if (message.status !== 0) {
786
+ obj.status = (0, import_types.auditEscrowStatusToJSON)(message.status);
787
+ }
788
+ if (message.openedAt !== void 0) {
789
+ obj.opened_at = message.openedAt.toISOString();
790
+ }
791
+ if (message.consumedAt !== void 0) {
792
+ obj.consumed_at = message.consumedAt.toISOString();
793
+ }
794
+ if (message.expiresAt !== void 0) {
795
+ obj.expires_at = message.expiresAt.toISOString();
796
+ }
797
+ if (message.metadataHash.length !== 0) {
798
+ obj.metadata_hash = (0, import_typeEncodingHelpers.base64FromBytes)(message.metadataHash);
799
+ }
800
+ if (message.settlementReason !== 0) {
801
+ obj.settlement_reason = (0, import_types.auditEscrowSettlementReasonToJSON)(message.settlementReason);
802
+ }
803
+ if (message.faultAttribution !== 0) {
804
+ obj.fault_attribution = (0, import_types.faultAttributionToJSON)(message.faultAttribution);
805
+ }
806
+ return obj;
807
+ },
808
+ fromPartial(object) {
809
+ const message = createBaseAuditEscrowRecord();
810
+ message.id = object.id !== void 0 && object.id !== null ? BigInt(object.id) : 0n;
811
+ message.provider = object.provider ?? "";
812
+ message.consumedByAuditor = object.consumedByAuditor ?? "";
813
+ message.requestedTier = object.requestedTier ?? 0;
814
+ message.requestedCapabilities = object.requestedCapabilities?.map((e) => e) || [];
815
+ message.fee = object.fee !== void 0 && object.fee !== null ? import_coin.Coin.fromPartial(object.fee) : void 0;
816
+ message.feeStatus = object.feeStatus ?? 0;
817
+ message.providerDeposit = object.providerDeposit !== void 0 && object.providerDeposit !== null ? import_coin.Coin.fromPartial(object.providerDeposit) : void 0;
818
+ message.providerDepositStatus = object.providerDepositStatus ?? 0;
819
+ message.status = object.status ?? 0;
820
+ message.openedAt = object.openedAt ?? void 0;
821
+ message.consumedAt = object.consumedAt ?? void 0;
822
+ message.expiresAt = object.expiresAt ?? void 0;
823
+ message.metadataHash = object.metadataHash ?? new Uint8Array(0);
824
+ message.settlementReason = object.settlementReason ?? 0;
825
+ message.faultAttribution = object.faultAttribution ?? 0;
826
+ return message;
827
+ }
828
+ };
829
+ function createBaseVerificationStoreRecord() {
830
+ return { typeUrl: "", value: new Uint8Array(0) };
831
+ }
832
+ const VerificationStoreRecord = {
833
+ $type: "akash.verification.v1.VerificationStoreRecord",
834
+ encode(message, writer = new import_wire.BinaryWriter()) {
835
+ if (message.typeUrl !== "") {
836
+ writer.uint32(10).string(message.typeUrl);
837
+ }
838
+ if (message.value.length !== 0) {
839
+ writer.uint32(18).bytes(message.value);
840
+ }
841
+ return writer;
842
+ },
843
+ decode(input, length) {
844
+ const reader = input instanceof import_wire.BinaryReader ? input : new import_wire.BinaryReader(input);
845
+ const end = length === void 0 ? reader.len : reader.pos + length;
846
+ const message = createBaseVerificationStoreRecord();
847
+ while (reader.pos < end) {
848
+ const tag = reader.uint32();
849
+ switch (tag >>> 3) {
850
+ case 1: {
851
+ if (tag !== 10) {
852
+ break;
853
+ }
854
+ message.typeUrl = reader.string();
855
+ continue;
856
+ }
857
+ case 2: {
858
+ if (tag !== 18) {
859
+ break;
860
+ }
861
+ message.value = reader.bytes();
862
+ continue;
863
+ }
864
+ }
865
+ if ((tag & 7) === 4 || tag === 0) {
866
+ break;
867
+ }
868
+ reader.skip(tag & 7);
869
+ }
870
+ return message;
871
+ },
872
+ fromJSON(object) {
873
+ return {
874
+ typeUrl: (0, import_typeEncodingHelpers.isSet)(object.type_url) ? globalThis.String(object.type_url) : "",
875
+ value: (0, import_typeEncodingHelpers.isSet)(object.value) ? (0, import_typeEncodingHelpers.bytesFromBase64)(object.value) : new Uint8Array(0)
876
+ };
877
+ },
878
+ toJSON(message) {
879
+ const obj = {};
880
+ if (message.typeUrl !== "") {
881
+ obj.type_url = message.typeUrl;
882
+ }
883
+ if (message.value.length !== 0) {
884
+ obj.value = (0, import_typeEncodingHelpers.base64FromBytes)(message.value);
885
+ }
886
+ return obj;
887
+ },
888
+ fromPartial(object) {
889
+ const message = createBaseVerificationStoreRecord();
890
+ message.typeUrl = object.typeUrl ?? "";
891
+ message.value = object.value ?? new Uint8Array(0);
892
+ return message;
893
+ }
894
+ };
895
+ function createBaseDiscrepancyEvent() {
896
+ return {
897
+ id: 0n,
898
+ provider: "",
899
+ auditorA: "",
900
+ auditorATier: 0,
901
+ auditorB: "",
902
+ auditorBTier: 0,
903
+ timestamp: void 0,
904
+ resolutionStatus: 0,
905
+ resolutionProposalId: 0n,
906
+ graceRecordId: 0n,
907
+ resolutionReason: 0,
908
+ faultAttribution: 0,
909
+ resolutionEvidenceHash: new Uint8Array(0)
910
+ };
911
+ }
912
+ const DiscrepancyEvent = {
913
+ $type: "akash.verification.v1.DiscrepancyEvent",
914
+ encode(message, writer = new import_wire.BinaryWriter()) {
915
+ if (message.id !== 0n) {
916
+ if (BigInt.asUintN(64, message.id) !== message.id) {
917
+ throw new globalThis.Error("value provided for field message.id of type uint64 too large");
918
+ }
919
+ writer.uint32(8).uint64(message.id);
920
+ }
921
+ if (message.provider !== "") {
922
+ writer.uint32(18).string(message.provider);
923
+ }
924
+ if (message.auditorA !== "") {
925
+ writer.uint32(26).string(message.auditorA);
926
+ }
927
+ if (message.auditorATier !== 0) {
928
+ writer.uint32(32).int32(message.auditorATier);
929
+ }
930
+ if (message.auditorB !== "") {
931
+ writer.uint32(42).string(message.auditorB);
932
+ }
933
+ if (message.auditorBTier !== 0) {
934
+ writer.uint32(48).int32(message.auditorBTier);
935
+ }
936
+ if (message.timestamp !== void 0) {
937
+ import_timestamp.Timestamp.encode((0, import_typeEncodingHelpers.toTimestamp)(message.timestamp), writer.uint32(58).fork()).join();
938
+ }
939
+ if (message.resolutionStatus !== 0) {
940
+ writer.uint32(64).int32(message.resolutionStatus);
941
+ }
942
+ if (message.resolutionProposalId !== 0n) {
943
+ if (BigInt.asUintN(64, message.resolutionProposalId) !== message.resolutionProposalId) {
944
+ throw new globalThis.Error("value provided for field message.resolutionProposalId of type uint64 too large");
945
+ }
946
+ writer.uint32(72).uint64(message.resolutionProposalId);
947
+ }
948
+ if (message.graceRecordId !== 0n) {
949
+ if (BigInt.asUintN(64, message.graceRecordId) !== message.graceRecordId) {
950
+ throw new globalThis.Error("value provided for field message.graceRecordId of type uint64 too large");
951
+ }
952
+ writer.uint32(80).uint64(message.graceRecordId);
953
+ }
954
+ if (message.resolutionReason !== 0) {
955
+ writer.uint32(88).int32(message.resolutionReason);
956
+ }
957
+ if (message.faultAttribution !== 0) {
958
+ writer.uint32(96).int32(message.faultAttribution);
959
+ }
960
+ if (message.resolutionEvidenceHash.length !== 0) {
961
+ writer.uint32(106).bytes(message.resolutionEvidenceHash);
962
+ }
963
+ return writer;
964
+ },
965
+ decode(input, length) {
966
+ const reader = input instanceof import_wire.BinaryReader ? input : new import_wire.BinaryReader(input);
967
+ const end = length === void 0 ? reader.len : reader.pos + length;
968
+ const message = createBaseDiscrepancyEvent();
969
+ while (reader.pos < end) {
970
+ const tag = reader.uint32();
971
+ switch (tag >>> 3) {
972
+ case 1: {
973
+ if (tag !== 8) {
974
+ break;
975
+ }
976
+ message.id = reader.uint64();
977
+ continue;
978
+ }
979
+ case 2: {
980
+ if (tag !== 18) {
981
+ break;
982
+ }
983
+ message.provider = reader.string();
984
+ continue;
985
+ }
986
+ case 3: {
987
+ if (tag !== 26) {
988
+ break;
989
+ }
990
+ message.auditorA = reader.string();
991
+ continue;
992
+ }
993
+ case 4: {
994
+ if (tag !== 32) {
995
+ break;
996
+ }
997
+ message.auditorATier = reader.int32();
998
+ continue;
999
+ }
1000
+ case 5: {
1001
+ if (tag !== 42) {
1002
+ break;
1003
+ }
1004
+ message.auditorB = reader.string();
1005
+ continue;
1006
+ }
1007
+ case 6: {
1008
+ if (tag !== 48) {
1009
+ break;
1010
+ }
1011
+ message.auditorBTier = reader.int32();
1012
+ continue;
1013
+ }
1014
+ case 7: {
1015
+ if (tag !== 58) {
1016
+ break;
1017
+ }
1018
+ message.timestamp = (0, import_typeEncodingHelpers.fromTimestamp)(import_timestamp.Timestamp.decode(reader, reader.uint32()));
1019
+ continue;
1020
+ }
1021
+ case 8: {
1022
+ if (tag !== 64) {
1023
+ break;
1024
+ }
1025
+ message.resolutionStatus = reader.int32();
1026
+ continue;
1027
+ }
1028
+ case 9: {
1029
+ if (tag !== 72) {
1030
+ break;
1031
+ }
1032
+ message.resolutionProposalId = reader.uint64();
1033
+ continue;
1034
+ }
1035
+ case 10: {
1036
+ if (tag !== 80) {
1037
+ break;
1038
+ }
1039
+ message.graceRecordId = reader.uint64();
1040
+ continue;
1041
+ }
1042
+ case 11: {
1043
+ if (tag !== 88) {
1044
+ break;
1045
+ }
1046
+ message.resolutionReason = reader.int32();
1047
+ continue;
1048
+ }
1049
+ case 12: {
1050
+ if (tag !== 96) {
1051
+ break;
1052
+ }
1053
+ message.faultAttribution = reader.int32();
1054
+ continue;
1055
+ }
1056
+ case 13: {
1057
+ if (tag !== 106) {
1058
+ break;
1059
+ }
1060
+ message.resolutionEvidenceHash = reader.bytes();
1061
+ continue;
1062
+ }
1063
+ }
1064
+ if ((tag & 7) === 4 || tag === 0) {
1065
+ break;
1066
+ }
1067
+ reader.skip(tag & 7);
1068
+ }
1069
+ return message;
1070
+ },
1071
+ fromJSON(object) {
1072
+ return {
1073
+ id: (0, import_typeEncodingHelpers.isSet)(object.id) ? BigInt(object.id) : 0n,
1074
+ provider: (0, import_typeEncodingHelpers.isSet)(object.provider) ? globalThis.String(object.provider) : "",
1075
+ auditorA: (0, import_typeEncodingHelpers.isSet)(object.auditor_a) ? globalThis.String(object.auditor_a) : "",
1076
+ auditorATier: (0, import_typeEncodingHelpers.isSet)(object.auditor_a_tier) ? (0, import_types.verificationTierFromJSON)(object.auditor_a_tier) : 0,
1077
+ auditorB: (0, import_typeEncodingHelpers.isSet)(object.auditor_b) ? globalThis.String(object.auditor_b) : "",
1078
+ auditorBTier: (0, import_typeEncodingHelpers.isSet)(object.auditor_b_tier) ? (0, import_types.verificationTierFromJSON)(object.auditor_b_tier) : 0,
1079
+ timestamp: (0, import_typeEncodingHelpers.isSet)(object.timestamp) ? (0, import_typeEncodingHelpers.fromJsonTimestamp)(object.timestamp) : void 0,
1080
+ resolutionStatus: (0, import_typeEncodingHelpers.isSet)(object.resolution_status) ? (0, import_types.discrepancyStatusFromJSON)(object.resolution_status) : 0,
1081
+ resolutionProposalId: (0, import_typeEncodingHelpers.isSet)(object.resolution_proposal_id) ? BigInt(object.resolution_proposal_id) : 0n,
1082
+ graceRecordId: (0, import_typeEncodingHelpers.isSet)(object.grace_record_id) ? BigInt(object.grace_record_id) : 0n,
1083
+ resolutionReason: (0, import_typeEncodingHelpers.isSet)(object.resolution_reason) ? (0, import_types.discrepancyResolutionReasonFromJSON)(object.resolution_reason) : 0,
1084
+ faultAttribution: (0, import_typeEncodingHelpers.isSet)(object.fault_attribution) ? (0, import_types.faultAttributionFromJSON)(object.fault_attribution) : 0,
1085
+ resolutionEvidenceHash: (0, import_typeEncodingHelpers.isSet)(object.resolution_evidence_hash) ? (0, import_typeEncodingHelpers.bytesFromBase64)(object.resolution_evidence_hash) : new Uint8Array(0)
1086
+ };
1087
+ },
1088
+ toJSON(message) {
1089
+ const obj = {};
1090
+ if (message.id !== 0n) {
1091
+ obj.id = message.id.toString();
1092
+ }
1093
+ if (message.provider !== "") {
1094
+ obj.provider = message.provider;
1095
+ }
1096
+ if (message.auditorA !== "") {
1097
+ obj.auditor_a = message.auditorA;
1098
+ }
1099
+ if (message.auditorATier !== 0) {
1100
+ obj.auditor_a_tier = (0, import_types.verificationTierToJSON)(message.auditorATier);
1101
+ }
1102
+ if (message.auditorB !== "") {
1103
+ obj.auditor_b = message.auditorB;
1104
+ }
1105
+ if (message.auditorBTier !== 0) {
1106
+ obj.auditor_b_tier = (0, import_types.verificationTierToJSON)(message.auditorBTier);
1107
+ }
1108
+ if (message.timestamp !== void 0) {
1109
+ obj.timestamp = message.timestamp.toISOString();
1110
+ }
1111
+ if (message.resolutionStatus !== 0) {
1112
+ obj.resolution_status = (0, import_types.discrepancyStatusToJSON)(message.resolutionStatus);
1113
+ }
1114
+ if (message.resolutionProposalId !== 0n) {
1115
+ obj.resolution_proposal_id = message.resolutionProposalId.toString();
1116
+ }
1117
+ if (message.graceRecordId !== 0n) {
1118
+ obj.grace_record_id = message.graceRecordId.toString();
1119
+ }
1120
+ if (message.resolutionReason !== 0) {
1121
+ obj.resolution_reason = (0, import_types.discrepancyResolutionReasonToJSON)(message.resolutionReason);
1122
+ }
1123
+ if (message.faultAttribution !== 0) {
1124
+ obj.fault_attribution = (0, import_types.faultAttributionToJSON)(message.faultAttribution);
1125
+ }
1126
+ if (message.resolutionEvidenceHash.length !== 0) {
1127
+ obj.resolution_evidence_hash = (0, import_typeEncodingHelpers.base64FromBytes)(message.resolutionEvidenceHash);
1128
+ }
1129
+ return obj;
1130
+ },
1131
+ fromPartial(object) {
1132
+ const message = createBaseDiscrepancyEvent();
1133
+ message.id = object.id !== void 0 && object.id !== null ? BigInt(object.id) : 0n;
1134
+ message.provider = object.provider ?? "";
1135
+ message.auditorA = object.auditorA ?? "";
1136
+ message.auditorATier = object.auditorATier ?? 0;
1137
+ message.auditorB = object.auditorB ?? "";
1138
+ message.auditorBTier = object.auditorBTier ?? 0;
1139
+ message.timestamp = object.timestamp ?? void 0;
1140
+ message.resolutionStatus = object.resolutionStatus ?? 0;
1141
+ message.resolutionProposalId = object.resolutionProposalId !== void 0 && object.resolutionProposalId !== null ? BigInt(object.resolutionProposalId) : 0n;
1142
+ message.graceRecordId = object.graceRecordId !== void 0 && object.graceRecordId !== null ? BigInt(object.graceRecordId) : 0n;
1143
+ message.resolutionReason = object.resolutionReason ?? 0;
1144
+ message.faultAttribution = object.faultAttribution ?? 0;
1145
+ message.resolutionEvidenceHash = object.resolutionEvidenceHash ?? new Uint8Array(0);
1146
+ return message;
1147
+ }
1148
+ };
1149
+ function createBaseProviderVerificationGraceRecord() {
1150
+ return {
1151
+ id: 0n,
1152
+ provider: "",
1153
+ preservedTier: 0,
1154
+ sourceDiscrepancyIds: [],
1155
+ startedAt: void 0,
1156
+ expiresAt: void 0,
1157
+ status: 0
1158
+ };
1159
+ }
1160
+ const ProviderVerificationGraceRecord = {
1161
+ $type: "akash.verification.v1.ProviderVerificationGraceRecord",
1162
+ encode(message, writer = new import_wire.BinaryWriter()) {
1163
+ if (message.id !== 0n) {
1164
+ if (BigInt.asUintN(64, message.id) !== message.id) {
1165
+ throw new globalThis.Error("value provided for field message.id of type uint64 too large");
1166
+ }
1167
+ writer.uint32(8).uint64(message.id);
1168
+ }
1169
+ if (message.provider !== "") {
1170
+ writer.uint32(18).string(message.provider);
1171
+ }
1172
+ if (message.preservedTier !== 0) {
1173
+ writer.uint32(24).int32(message.preservedTier);
1174
+ }
1175
+ for (const v of message.sourceDiscrepancyIds) {
1176
+ if (BigInt.asUintN(64, v) !== v) {
1177
+ throw new globalThis.Error("value provided for field v! of type uint64 too large");
1178
+ }
1179
+ writer.uint32(32).uint64(v);
1180
+ }
1181
+ if (message.startedAt !== void 0) {
1182
+ import_timestamp.Timestamp.encode((0, import_typeEncodingHelpers.toTimestamp)(message.startedAt), writer.uint32(42).fork()).join();
1183
+ }
1184
+ if (message.expiresAt !== void 0) {
1185
+ import_timestamp.Timestamp.encode((0, import_typeEncodingHelpers.toTimestamp)(message.expiresAt), writer.uint32(50).fork()).join();
1186
+ }
1187
+ if (message.status !== 0) {
1188
+ writer.uint32(56).int32(message.status);
1189
+ }
1190
+ return writer;
1191
+ },
1192
+ decode(input, length) {
1193
+ const reader = input instanceof import_wire.BinaryReader ? input : new import_wire.BinaryReader(input);
1194
+ const end = length === void 0 ? reader.len : reader.pos + length;
1195
+ const message = createBaseProviderVerificationGraceRecord();
1196
+ while (reader.pos < end) {
1197
+ const tag = reader.uint32();
1198
+ switch (tag >>> 3) {
1199
+ case 1: {
1200
+ if (tag !== 8) {
1201
+ break;
1202
+ }
1203
+ message.id = reader.uint64();
1204
+ continue;
1205
+ }
1206
+ case 2: {
1207
+ if (tag !== 18) {
1208
+ break;
1209
+ }
1210
+ message.provider = reader.string();
1211
+ continue;
1212
+ }
1213
+ case 3: {
1214
+ if (tag !== 24) {
1215
+ break;
1216
+ }
1217
+ message.preservedTier = reader.int32();
1218
+ continue;
1219
+ }
1220
+ case 4: {
1221
+ if (tag === 32) {
1222
+ message.sourceDiscrepancyIds.push(reader.uint64());
1223
+ continue;
1224
+ }
1225
+ if (tag === 34) {
1226
+ const end2 = reader.uint32() + reader.pos;
1227
+ while (reader.pos < end2) {
1228
+ message.sourceDiscrepancyIds.push(reader.uint64());
1229
+ }
1230
+ continue;
1231
+ }
1232
+ break;
1233
+ }
1234
+ case 5: {
1235
+ if (tag !== 42) {
1236
+ break;
1237
+ }
1238
+ message.startedAt = (0, import_typeEncodingHelpers.fromTimestamp)(import_timestamp.Timestamp.decode(reader, reader.uint32()));
1239
+ continue;
1240
+ }
1241
+ case 6: {
1242
+ if (tag !== 50) {
1243
+ break;
1244
+ }
1245
+ message.expiresAt = (0, import_typeEncodingHelpers.fromTimestamp)(import_timestamp.Timestamp.decode(reader, reader.uint32()));
1246
+ continue;
1247
+ }
1248
+ case 7: {
1249
+ if (tag !== 56) {
1250
+ break;
1251
+ }
1252
+ message.status = reader.int32();
1253
+ continue;
1254
+ }
1255
+ }
1256
+ if ((tag & 7) === 4 || tag === 0) {
1257
+ break;
1258
+ }
1259
+ reader.skip(tag & 7);
1260
+ }
1261
+ return message;
1262
+ },
1263
+ fromJSON(object) {
1264
+ return {
1265
+ id: (0, import_typeEncodingHelpers.isSet)(object.id) ? BigInt(object.id) : 0n,
1266
+ provider: (0, import_typeEncodingHelpers.isSet)(object.provider) ? globalThis.String(object.provider) : "",
1267
+ preservedTier: (0, import_typeEncodingHelpers.isSet)(object.preserved_tier) ? (0, import_types.verificationTierFromJSON)(object.preserved_tier) : 0,
1268
+ sourceDiscrepancyIds: globalThis.Array.isArray(object?.source_discrepancy_ids) ? object.source_discrepancy_ids.map((e) => BigInt(e)) : [],
1269
+ startedAt: (0, import_typeEncodingHelpers.isSet)(object.started_at) ? (0, import_typeEncodingHelpers.fromJsonTimestamp)(object.started_at) : void 0,
1270
+ expiresAt: (0, import_typeEncodingHelpers.isSet)(object.expires_at) ? (0, import_typeEncodingHelpers.fromJsonTimestamp)(object.expires_at) : void 0,
1271
+ status: (0, import_typeEncodingHelpers.isSet)(object.status) ? (0, import_types.verificationGraceStatusFromJSON)(object.status) : 0
1272
+ };
1273
+ },
1274
+ toJSON(message) {
1275
+ const obj = {};
1276
+ if (message.id !== 0n) {
1277
+ obj.id = message.id.toString();
1278
+ }
1279
+ if (message.provider !== "") {
1280
+ obj.provider = message.provider;
1281
+ }
1282
+ if (message.preservedTier !== 0) {
1283
+ obj.preserved_tier = (0, import_types.verificationTierToJSON)(message.preservedTier);
1284
+ }
1285
+ if (message.sourceDiscrepancyIds?.length) {
1286
+ obj.source_discrepancy_ids = message.sourceDiscrepancyIds.map((e) => e.toString());
1287
+ }
1288
+ if (message.startedAt !== void 0) {
1289
+ obj.started_at = message.startedAt.toISOString();
1290
+ }
1291
+ if (message.expiresAt !== void 0) {
1292
+ obj.expires_at = message.expiresAt.toISOString();
1293
+ }
1294
+ if (message.status !== 0) {
1295
+ obj.status = (0, import_types.verificationGraceStatusToJSON)(message.status);
1296
+ }
1297
+ return obj;
1298
+ },
1299
+ fromPartial(object) {
1300
+ const message = createBaseProviderVerificationGraceRecord();
1301
+ message.id = object.id !== void 0 && object.id !== null ? BigInt(object.id) : 0n;
1302
+ message.provider = object.provider ?? "";
1303
+ message.preservedTier = object.preservedTier ?? 0;
1304
+ message.sourceDiscrepancyIds = object.sourceDiscrepancyIds?.map((e) => BigInt(e)) || [];
1305
+ message.startedAt = object.startedAt ?? void 0;
1306
+ message.expiresAt = object.expiresAt ?? void 0;
1307
+ message.status = object.status ?? 0;
1308
+ return message;
1309
+ }
1310
+ };
1311
+ function createBaseProviderBondRecord() {
1312
+ return { provider: "", bondedAmount: void 0, unbondingEntries: [], slashed: false, lastSlashTime: void 0 };
1313
+ }
1314
+ const ProviderBondRecord = {
1315
+ $type: "akash.verification.v1.ProviderBondRecord",
1316
+ encode(message, writer = new import_wire.BinaryWriter()) {
1317
+ if (message.provider !== "") {
1318
+ writer.uint32(10).string(message.provider);
1319
+ }
1320
+ if (message.bondedAmount !== void 0) {
1321
+ import_coin.Coin.encode(message.bondedAmount, writer.uint32(18).fork()).join();
1322
+ }
1323
+ for (const v of message.unbondingEntries) {
1324
+ UnbondingEntry.encode(v, writer.uint32(26).fork()).join();
1325
+ }
1326
+ if (message.slashed !== false) {
1327
+ writer.uint32(32).bool(message.slashed);
1328
+ }
1329
+ if (message.lastSlashTime !== void 0) {
1330
+ import_timestamp.Timestamp.encode((0, import_typeEncodingHelpers.toTimestamp)(message.lastSlashTime), writer.uint32(42).fork()).join();
1331
+ }
1332
+ return writer;
1333
+ },
1334
+ decode(input, length) {
1335
+ const reader = input instanceof import_wire.BinaryReader ? input : new import_wire.BinaryReader(input);
1336
+ const end = length === void 0 ? reader.len : reader.pos + length;
1337
+ const message = createBaseProviderBondRecord();
1338
+ while (reader.pos < end) {
1339
+ const tag = reader.uint32();
1340
+ switch (tag >>> 3) {
1341
+ case 1: {
1342
+ if (tag !== 10) {
1343
+ break;
1344
+ }
1345
+ message.provider = reader.string();
1346
+ continue;
1347
+ }
1348
+ case 2: {
1349
+ if (tag !== 18) {
1350
+ break;
1351
+ }
1352
+ message.bondedAmount = import_coin.Coin.decode(reader, reader.uint32());
1353
+ continue;
1354
+ }
1355
+ case 3: {
1356
+ if (tag !== 26) {
1357
+ break;
1358
+ }
1359
+ message.unbondingEntries.push(UnbondingEntry.decode(reader, reader.uint32()));
1360
+ continue;
1361
+ }
1362
+ case 4: {
1363
+ if (tag !== 32) {
1364
+ break;
1365
+ }
1366
+ message.slashed = reader.bool();
1367
+ continue;
1368
+ }
1369
+ case 5: {
1370
+ if (tag !== 42) {
1371
+ break;
1372
+ }
1373
+ message.lastSlashTime = (0, import_typeEncodingHelpers.fromTimestamp)(import_timestamp.Timestamp.decode(reader, reader.uint32()));
1374
+ continue;
1375
+ }
1376
+ }
1377
+ if ((tag & 7) === 4 || tag === 0) {
1378
+ break;
1379
+ }
1380
+ reader.skip(tag & 7);
1381
+ }
1382
+ return message;
1383
+ },
1384
+ fromJSON(object) {
1385
+ return {
1386
+ provider: (0, import_typeEncodingHelpers.isSet)(object.provider) ? globalThis.String(object.provider) : "",
1387
+ bondedAmount: (0, import_typeEncodingHelpers.isSet)(object.bonded_amount) ? import_coin.Coin.fromJSON(object.bonded_amount) : void 0,
1388
+ unbondingEntries: globalThis.Array.isArray(object?.unbonding_entries) ? object.unbonding_entries.map((e) => UnbondingEntry.fromJSON(e)) : [],
1389
+ slashed: (0, import_typeEncodingHelpers.isSet)(object.slashed) ? globalThis.Boolean(object.slashed) : false,
1390
+ lastSlashTime: (0, import_typeEncodingHelpers.isSet)(object.last_slash_time) ? (0, import_typeEncodingHelpers.fromJsonTimestamp)(object.last_slash_time) : void 0
1391
+ };
1392
+ },
1393
+ toJSON(message) {
1394
+ const obj = {};
1395
+ if (message.provider !== "") {
1396
+ obj.provider = message.provider;
1397
+ }
1398
+ if (message.bondedAmount !== void 0) {
1399
+ obj.bonded_amount = import_coin.Coin.toJSON(message.bondedAmount);
1400
+ }
1401
+ if (message.unbondingEntries?.length) {
1402
+ obj.unbonding_entries = message.unbondingEntries.map((e) => UnbondingEntry.toJSON(e));
1403
+ }
1404
+ if (message.slashed !== false) {
1405
+ obj.slashed = message.slashed;
1406
+ }
1407
+ if (message.lastSlashTime !== void 0) {
1408
+ obj.last_slash_time = message.lastSlashTime.toISOString();
1409
+ }
1410
+ return obj;
1411
+ },
1412
+ fromPartial(object) {
1413
+ const message = createBaseProviderBondRecord();
1414
+ message.provider = object.provider ?? "";
1415
+ message.bondedAmount = object.bondedAmount !== void 0 && object.bondedAmount !== null ? import_coin.Coin.fromPartial(object.bondedAmount) : void 0;
1416
+ message.unbondingEntries = object.unbondingEntries?.map((e) => UnbondingEntry.fromPartial(e)) || [];
1417
+ message.slashed = object.slashed ?? false;
1418
+ message.lastSlashTime = object.lastSlashTime ?? void 0;
1419
+ return message;
1420
+ }
1421
+ };
1422
+ function createBaseUnbondingEntry() {
1423
+ return { amount: void 0, completionTime: void 0 };
1424
+ }
1425
+ const UnbondingEntry = {
1426
+ $type: "akash.verification.v1.UnbondingEntry",
1427
+ encode(message, writer = new import_wire.BinaryWriter()) {
1428
+ if (message.amount !== void 0) {
1429
+ import_coin.Coin.encode(message.amount, writer.uint32(10).fork()).join();
1430
+ }
1431
+ if (message.completionTime !== void 0) {
1432
+ import_timestamp.Timestamp.encode((0, import_typeEncodingHelpers.toTimestamp)(message.completionTime), writer.uint32(18).fork()).join();
1433
+ }
1434
+ return writer;
1435
+ },
1436
+ decode(input, length) {
1437
+ const reader = input instanceof import_wire.BinaryReader ? input : new import_wire.BinaryReader(input);
1438
+ const end = length === void 0 ? reader.len : reader.pos + length;
1439
+ const message = createBaseUnbondingEntry();
1440
+ while (reader.pos < end) {
1441
+ const tag = reader.uint32();
1442
+ switch (tag >>> 3) {
1443
+ case 1: {
1444
+ if (tag !== 10) {
1445
+ break;
1446
+ }
1447
+ message.amount = import_coin.Coin.decode(reader, reader.uint32());
1448
+ continue;
1449
+ }
1450
+ case 2: {
1451
+ if (tag !== 18) {
1452
+ break;
1453
+ }
1454
+ message.completionTime = (0, import_typeEncodingHelpers.fromTimestamp)(import_timestamp.Timestamp.decode(reader, reader.uint32()));
1455
+ continue;
1456
+ }
1457
+ }
1458
+ if ((tag & 7) === 4 || tag === 0) {
1459
+ break;
1460
+ }
1461
+ reader.skip(tag & 7);
1462
+ }
1463
+ return message;
1464
+ },
1465
+ fromJSON(object) {
1466
+ return {
1467
+ amount: (0, import_typeEncodingHelpers.isSet)(object.amount) ? import_coin.Coin.fromJSON(object.amount) : void 0,
1468
+ completionTime: (0, import_typeEncodingHelpers.isSet)(object.completion_time) ? (0, import_typeEncodingHelpers.fromJsonTimestamp)(object.completion_time) : void 0
1469
+ };
1470
+ },
1471
+ toJSON(message) {
1472
+ const obj = {};
1473
+ if (message.amount !== void 0) {
1474
+ obj.amount = import_coin.Coin.toJSON(message.amount);
1475
+ }
1476
+ if (message.completionTime !== void 0) {
1477
+ obj.completion_time = message.completionTime.toISOString();
1478
+ }
1479
+ return obj;
1480
+ },
1481
+ fromPartial(object) {
1482
+ const message = createBaseUnbondingEntry();
1483
+ message.amount = object.amount !== void 0 && object.amount !== null ? import_coin.Coin.fromPartial(object.amount) : void 0;
1484
+ message.completionTime = object.completionTime ?? void 0;
1485
+ return message;
1486
+ }
1487
+ };
1488
+ function createBaseSoftwareIdentity() {
1489
+ return {
1490
+ version: "",
1491
+ artifactRef: "",
1492
+ digestAlgorithm: "",
1493
+ digest: new Uint8Array(0),
1494
+ signatureType: "",
1495
+ signature: new Uint8Array(0),
1496
+ signatureRef: "",
1497
+ publicKeyRef: ""
1498
+ };
1499
+ }
1500
+ const SoftwareIdentity = {
1501
+ $type: "akash.verification.v1.SoftwareIdentity",
1502
+ encode(message, writer = new import_wire.BinaryWriter()) {
1503
+ if (message.version !== "") {
1504
+ writer.uint32(10).string(message.version);
1505
+ }
1506
+ if (message.artifactRef !== "") {
1507
+ writer.uint32(18).string(message.artifactRef);
1508
+ }
1509
+ if (message.digestAlgorithm !== "") {
1510
+ writer.uint32(26).string(message.digestAlgorithm);
1511
+ }
1512
+ if (message.digest.length !== 0) {
1513
+ writer.uint32(34).bytes(message.digest);
1514
+ }
1515
+ if (message.signatureType !== "") {
1516
+ writer.uint32(42).string(message.signatureType);
1517
+ }
1518
+ if (message.signature.length !== 0) {
1519
+ writer.uint32(50).bytes(message.signature);
1520
+ }
1521
+ if (message.signatureRef !== "") {
1522
+ writer.uint32(58).string(message.signatureRef);
1523
+ }
1524
+ if (message.publicKeyRef !== "") {
1525
+ writer.uint32(66).string(message.publicKeyRef);
1526
+ }
1527
+ return writer;
1528
+ },
1529
+ decode(input, length) {
1530
+ const reader = input instanceof import_wire.BinaryReader ? input : new import_wire.BinaryReader(input);
1531
+ const end = length === void 0 ? reader.len : reader.pos + length;
1532
+ const message = createBaseSoftwareIdentity();
1533
+ while (reader.pos < end) {
1534
+ const tag = reader.uint32();
1535
+ switch (tag >>> 3) {
1536
+ case 1: {
1537
+ if (tag !== 10) {
1538
+ break;
1539
+ }
1540
+ message.version = reader.string();
1541
+ continue;
1542
+ }
1543
+ case 2: {
1544
+ if (tag !== 18) {
1545
+ break;
1546
+ }
1547
+ message.artifactRef = reader.string();
1548
+ continue;
1549
+ }
1550
+ case 3: {
1551
+ if (tag !== 26) {
1552
+ break;
1553
+ }
1554
+ message.digestAlgorithm = reader.string();
1555
+ continue;
1556
+ }
1557
+ case 4: {
1558
+ if (tag !== 34) {
1559
+ break;
1560
+ }
1561
+ message.digest = reader.bytes();
1562
+ continue;
1563
+ }
1564
+ case 5: {
1565
+ if (tag !== 42) {
1566
+ break;
1567
+ }
1568
+ message.signatureType = reader.string();
1569
+ continue;
1570
+ }
1571
+ case 6: {
1572
+ if (tag !== 50) {
1573
+ break;
1574
+ }
1575
+ message.signature = reader.bytes();
1576
+ continue;
1577
+ }
1578
+ case 7: {
1579
+ if (tag !== 58) {
1580
+ break;
1581
+ }
1582
+ message.signatureRef = reader.string();
1583
+ continue;
1584
+ }
1585
+ case 8: {
1586
+ if (tag !== 66) {
1587
+ break;
1588
+ }
1589
+ message.publicKeyRef = reader.string();
1590
+ continue;
1591
+ }
1592
+ }
1593
+ if ((tag & 7) === 4 || tag === 0) {
1594
+ break;
1595
+ }
1596
+ reader.skip(tag & 7);
1597
+ }
1598
+ return message;
1599
+ },
1600
+ fromJSON(object) {
1601
+ return {
1602
+ version: (0, import_typeEncodingHelpers.isSet)(object.version) ? globalThis.String(object.version) : "",
1603
+ artifactRef: (0, import_typeEncodingHelpers.isSet)(object.artifact_ref) ? globalThis.String(object.artifact_ref) : "",
1604
+ digestAlgorithm: (0, import_typeEncodingHelpers.isSet)(object.digest_algorithm) ? globalThis.String(object.digest_algorithm) : "",
1605
+ digest: (0, import_typeEncodingHelpers.isSet)(object.digest) ? (0, import_typeEncodingHelpers.bytesFromBase64)(object.digest) : new Uint8Array(0),
1606
+ signatureType: (0, import_typeEncodingHelpers.isSet)(object.signature_type) ? globalThis.String(object.signature_type) : "",
1607
+ signature: (0, import_typeEncodingHelpers.isSet)(object.signature) ? (0, import_typeEncodingHelpers.bytesFromBase64)(object.signature) : new Uint8Array(0),
1608
+ signatureRef: (0, import_typeEncodingHelpers.isSet)(object.signature_ref) ? globalThis.String(object.signature_ref) : "",
1609
+ publicKeyRef: (0, import_typeEncodingHelpers.isSet)(object.public_key_ref) ? globalThis.String(object.public_key_ref) : ""
1610
+ };
1611
+ },
1612
+ toJSON(message) {
1613
+ const obj = {};
1614
+ if (message.version !== "") {
1615
+ obj.version = message.version;
1616
+ }
1617
+ if (message.artifactRef !== "") {
1618
+ obj.artifact_ref = message.artifactRef;
1619
+ }
1620
+ if (message.digestAlgorithm !== "") {
1621
+ obj.digest_algorithm = message.digestAlgorithm;
1622
+ }
1623
+ if (message.digest.length !== 0) {
1624
+ obj.digest = (0, import_typeEncodingHelpers.base64FromBytes)(message.digest);
1625
+ }
1626
+ if (message.signatureType !== "") {
1627
+ obj.signature_type = message.signatureType;
1628
+ }
1629
+ if (message.signature.length !== 0) {
1630
+ obj.signature = (0, import_typeEncodingHelpers.base64FromBytes)(message.signature);
1631
+ }
1632
+ if (message.signatureRef !== "") {
1633
+ obj.signature_ref = message.signatureRef;
1634
+ }
1635
+ if (message.publicKeyRef !== "") {
1636
+ obj.public_key_ref = message.publicKeyRef;
1637
+ }
1638
+ return obj;
1639
+ },
1640
+ fromPartial(object) {
1641
+ const message = createBaseSoftwareIdentity();
1642
+ message.version = object.version ?? "";
1643
+ message.artifactRef = object.artifactRef ?? "";
1644
+ message.digestAlgorithm = object.digestAlgorithm ?? "";
1645
+ message.digest = object.digest ?? new Uint8Array(0);
1646
+ message.signatureType = object.signatureType ?? "";
1647
+ message.signature = object.signature ?? new Uint8Array(0);
1648
+ message.signatureRef = object.signatureRef ?? "";
1649
+ message.publicKeyRef = object.publicKeyRef ?? "";
1650
+ return message;
1651
+ }
1652
+ };
1653
+ function createBaseResourceSummary() {
1654
+ return {
1655
+ totalGpus: 0,
1656
+ totalVcpus: 0,
1657
+ totalMemoryMb: 0n,
1658
+ totalStorageMb: 0n,
1659
+ activeLeases: 0,
1660
+ softwareVersion: "",
1661
+ softwareSignature: new Uint8Array(0),
1662
+ softwareIdentity: void 0
1663
+ };
1664
+ }
1665
+ const ResourceSummary = {
1666
+ $type: "akash.verification.v1.ResourceSummary",
1667
+ encode(message, writer = new import_wire.BinaryWriter()) {
1668
+ if (message.totalGpus !== 0) {
1669
+ writer.uint32(8).uint32(message.totalGpus);
1670
+ }
1671
+ if (message.totalVcpus !== 0) {
1672
+ writer.uint32(16).uint32(message.totalVcpus);
1673
+ }
1674
+ if (message.totalMemoryMb !== 0n) {
1675
+ if (BigInt.asUintN(64, message.totalMemoryMb) !== message.totalMemoryMb) {
1676
+ throw new globalThis.Error("value provided for field message.totalMemoryMb of type uint64 too large");
1677
+ }
1678
+ writer.uint32(24).uint64(message.totalMemoryMb);
1679
+ }
1680
+ if (message.totalStorageMb !== 0n) {
1681
+ if (BigInt.asUintN(64, message.totalStorageMb) !== message.totalStorageMb) {
1682
+ throw new globalThis.Error("value provided for field message.totalStorageMb of type uint64 too large");
1683
+ }
1684
+ writer.uint32(32).uint64(message.totalStorageMb);
1685
+ }
1686
+ if (message.activeLeases !== 0) {
1687
+ writer.uint32(40).uint32(message.activeLeases);
1688
+ }
1689
+ if (message.softwareVersion !== "") {
1690
+ writer.uint32(50).string(message.softwareVersion);
1691
+ }
1692
+ if (message.softwareSignature.length !== 0) {
1693
+ writer.uint32(58).bytes(message.softwareSignature);
1694
+ }
1695
+ if (message.softwareIdentity !== void 0) {
1696
+ SoftwareIdentity.encode(message.softwareIdentity, writer.uint32(66).fork()).join();
1697
+ }
1698
+ return writer;
1699
+ },
1700
+ decode(input, length) {
1701
+ const reader = input instanceof import_wire.BinaryReader ? input : new import_wire.BinaryReader(input);
1702
+ const end = length === void 0 ? reader.len : reader.pos + length;
1703
+ const message = createBaseResourceSummary();
1704
+ while (reader.pos < end) {
1705
+ const tag = reader.uint32();
1706
+ switch (tag >>> 3) {
1707
+ case 1: {
1708
+ if (tag !== 8) {
1709
+ break;
1710
+ }
1711
+ message.totalGpus = reader.uint32();
1712
+ continue;
1713
+ }
1714
+ case 2: {
1715
+ if (tag !== 16) {
1716
+ break;
1717
+ }
1718
+ message.totalVcpus = reader.uint32();
1719
+ continue;
1720
+ }
1721
+ case 3: {
1722
+ if (tag !== 24) {
1723
+ break;
1724
+ }
1725
+ message.totalMemoryMb = reader.uint64();
1726
+ continue;
1727
+ }
1728
+ case 4: {
1729
+ if (tag !== 32) {
1730
+ break;
1731
+ }
1732
+ message.totalStorageMb = reader.uint64();
1733
+ continue;
1734
+ }
1735
+ case 5: {
1736
+ if (tag !== 40) {
1737
+ break;
1738
+ }
1739
+ message.activeLeases = reader.uint32();
1740
+ continue;
1741
+ }
1742
+ case 6: {
1743
+ if (tag !== 50) {
1744
+ break;
1745
+ }
1746
+ message.softwareVersion = reader.string();
1747
+ continue;
1748
+ }
1749
+ case 7: {
1750
+ if (tag !== 58) {
1751
+ break;
1752
+ }
1753
+ message.softwareSignature = reader.bytes();
1754
+ continue;
1755
+ }
1756
+ case 8: {
1757
+ if (tag !== 66) {
1758
+ break;
1759
+ }
1760
+ message.softwareIdentity = SoftwareIdentity.decode(reader, reader.uint32());
1761
+ continue;
1762
+ }
1763
+ }
1764
+ if ((tag & 7) === 4 || tag === 0) {
1765
+ break;
1766
+ }
1767
+ reader.skip(tag & 7);
1768
+ }
1769
+ return message;
1770
+ },
1771
+ fromJSON(object) {
1772
+ return {
1773
+ totalGpus: (0, import_typeEncodingHelpers.isSet)(object.total_gpus) ? globalThis.Number(object.total_gpus) : 0,
1774
+ totalVcpus: (0, import_typeEncodingHelpers.isSet)(object.total_vcpus) ? globalThis.Number(object.total_vcpus) : 0,
1775
+ totalMemoryMb: (0, import_typeEncodingHelpers.isSet)(object.total_memory_mb) ? BigInt(object.total_memory_mb) : 0n,
1776
+ totalStorageMb: (0, import_typeEncodingHelpers.isSet)(object.total_storage_mb) ? BigInt(object.total_storage_mb) : 0n,
1777
+ activeLeases: (0, import_typeEncodingHelpers.isSet)(object.active_leases) ? globalThis.Number(object.active_leases) : 0,
1778
+ softwareVersion: (0, import_typeEncodingHelpers.isSet)(object.software_version) ? globalThis.String(object.software_version) : "",
1779
+ softwareSignature: (0, import_typeEncodingHelpers.isSet)(object.software_signature) ? (0, import_typeEncodingHelpers.bytesFromBase64)(object.software_signature) : new Uint8Array(0),
1780
+ softwareIdentity: (0, import_typeEncodingHelpers.isSet)(object.software_identity) ? SoftwareIdentity.fromJSON(object.software_identity) : void 0
1781
+ };
1782
+ },
1783
+ toJSON(message) {
1784
+ const obj = {};
1785
+ if (message.totalGpus !== 0) {
1786
+ obj.total_gpus = Math.round(message.totalGpus);
1787
+ }
1788
+ if (message.totalVcpus !== 0) {
1789
+ obj.total_vcpus = Math.round(message.totalVcpus);
1790
+ }
1791
+ if (message.totalMemoryMb !== 0n) {
1792
+ obj.total_memory_mb = message.totalMemoryMb.toString();
1793
+ }
1794
+ if (message.totalStorageMb !== 0n) {
1795
+ obj.total_storage_mb = message.totalStorageMb.toString();
1796
+ }
1797
+ if (message.activeLeases !== 0) {
1798
+ obj.active_leases = Math.round(message.activeLeases);
1799
+ }
1800
+ if (message.softwareVersion !== "") {
1801
+ obj.software_version = message.softwareVersion;
1802
+ }
1803
+ if (message.softwareSignature.length !== 0) {
1804
+ obj.software_signature = (0, import_typeEncodingHelpers.base64FromBytes)(message.softwareSignature);
1805
+ }
1806
+ if (message.softwareIdentity !== void 0) {
1807
+ obj.software_identity = SoftwareIdentity.toJSON(message.softwareIdentity);
1808
+ }
1809
+ return obj;
1810
+ },
1811
+ fromPartial(object) {
1812
+ const message = createBaseResourceSummary();
1813
+ message.totalGpus = object.totalGpus ?? 0;
1814
+ message.totalVcpus = object.totalVcpus ?? 0;
1815
+ message.totalMemoryMb = object.totalMemoryMb !== void 0 && object.totalMemoryMb !== null ? BigInt(object.totalMemoryMb) : 0n;
1816
+ message.totalStorageMb = object.totalStorageMb !== void 0 && object.totalStorageMb !== null ? BigInt(object.totalStorageMb) : 0n;
1817
+ message.activeLeases = object.activeLeases ?? 0;
1818
+ message.softwareVersion = object.softwareVersion ?? "";
1819
+ message.softwareSignature = object.softwareSignature ?? new Uint8Array(0);
1820
+ message.softwareIdentity = object.softwareIdentity !== void 0 && object.softwareIdentity !== null ? SoftwareIdentity.fromPartial(object.softwareIdentity) : void 0;
1821
+ return message;
1822
+ }
1823
+ };
1824
+ function createBaseProviderSnapshotRecord() {
1825
+ return {
1826
+ provider: "",
1827
+ snapshotHash: new Uint8Array(0),
1828
+ resourceSummary: void 0,
1829
+ postedAt: void 0,
1830
+ snapshotTimestamp: void 0,
1831
+ complianceDeadline: void 0,
1832
+ suspended: false
1833
+ };
1834
+ }
1835
+ const ProviderSnapshotRecord = {
1836
+ $type: "akash.verification.v1.ProviderSnapshotRecord",
1837
+ encode(message, writer = new import_wire.BinaryWriter()) {
1838
+ if (message.provider !== "") {
1839
+ writer.uint32(10).string(message.provider);
1840
+ }
1841
+ if (message.snapshotHash.length !== 0) {
1842
+ writer.uint32(18).bytes(message.snapshotHash);
1843
+ }
1844
+ if (message.resourceSummary !== void 0) {
1845
+ ResourceSummary.encode(message.resourceSummary, writer.uint32(26).fork()).join();
1846
+ }
1847
+ if (message.postedAt !== void 0) {
1848
+ import_timestamp.Timestamp.encode((0, import_typeEncodingHelpers.toTimestamp)(message.postedAt), writer.uint32(34).fork()).join();
1849
+ }
1850
+ if (message.snapshotTimestamp !== void 0) {
1851
+ import_timestamp.Timestamp.encode((0, import_typeEncodingHelpers.toTimestamp)(message.snapshotTimestamp), writer.uint32(42).fork()).join();
1852
+ }
1853
+ if (message.complianceDeadline !== void 0) {
1854
+ import_timestamp.Timestamp.encode((0, import_typeEncodingHelpers.toTimestamp)(message.complianceDeadline), writer.uint32(50).fork()).join();
1855
+ }
1856
+ if (message.suspended !== false) {
1857
+ writer.uint32(56).bool(message.suspended);
1858
+ }
1859
+ return writer;
1860
+ },
1861
+ decode(input, length) {
1862
+ const reader = input instanceof import_wire.BinaryReader ? input : new import_wire.BinaryReader(input);
1863
+ const end = length === void 0 ? reader.len : reader.pos + length;
1864
+ const message = createBaseProviderSnapshotRecord();
1865
+ while (reader.pos < end) {
1866
+ const tag = reader.uint32();
1867
+ switch (tag >>> 3) {
1868
+ case 1: {
1869
+ if (tag !== 10) {
1870
+ break;
1871
+ }
1872
+ message.provider = reader.string();
1873
+ continue;
1874
+ }
1875
+ case 2: {
1876
+ if (tag !== 18) {
1877
+ break;
1878
+ }
1879
+ message.snapshotHash = reader.bytes();
1880
+ continue;
1881
+ }
1882
+ case 3: {
1883
+ if (tag !== 26) {
1884
+ break;
1885
+ }
1886
+ message.resourceSummary = ResourceSummary.decode(reader, reader.uint32());
1887
+ continue;
1888
+ }
1889
+ case 4: {
1890
+ if (tag !== 34) {
1891
+ break;
1892
+ }
1893
+ message.postedAt = (0, import_typeEncodingHelpers.fromTimestamp)(import_timestamp.Timestamp.decode(reader, reader.uint32()));
1894
+ continue;
1895
+ }
1896
+ case 5: {
1897
+ if (tag !== 42) {
1898
+ break;
1899
+ }
1900
+ message.snapshotTimestamp = (0, import_typeEncodingHelpers.fromTimestamp)(import_timestamp.Timestamp.decode(reader, reader.uint32()));
1901
+ continue;
1902
+ }
1903
+ case 6: {
1904
+ if (tag !== 50) {
1905
+ break;
1906
+ }
1907
+ message.complianceDeadline = (0, import_typeEncodingHelpers.fromTimestamp)(import_timestamp.Timestamp.decode(reader, reader.uint32()));
1908
+ continue;
1909
+ }
1910
+ case 7: {
1911
+ if (tag !== 56) {
1912
+ break;
1913
+ }
1914
+ message.suspended = reader.bool();
1915
+ continue;
1916
+ }
1917
+ }
1918
+ if ((tag & 7) === 4 || tag === 0) {
1919
+ break;
1920
+ }
1921
+ reader.skip(tag & 7);
1922
+ }
1923
+ return message;
1924
+ },
1925
+ fromJSON(object) {
1926
+ return {
1927
+ provider: (0, import_typeEncodingHelpers.isSet)(object.provider) ? globalThis.String(object.provider) : "",
1928
+ snapshotHash: (0, import_typeEncodingHelpers.isSet)(object.snapshot_hash) ? (0, import_typeEncodingHelpers.bytesFromBase64)(object.snapshot_hash) : new Uint8Array(0),
1929
+ resourceSummary: (0, import_typeEncodingHelpers.isSet)(object.resource_summary) ? ResourceSummary.fromJSON(object.resource_summary) : void 0,
1930
+ postedAt: (0, import_typeEncodingHelpers.isSet)(object.posted_at) ? (0, import_typeEncodingHelpers.fromJsonTimestamp)(object.posted_at) : void 0,
1931
+ snapshotTimestamp: (0, import_typeEncodingHelpers.isSet)(object.snapshot_timestamp) ? (0, import_typeEncodingHelpers.fromJsonTimestamp)(object.snapshot_timestamp) : void 0,
1932
+ complianceDeadline: (0, import_typeEncodingHelpers.isSet)(object.compliance_deadline) ? (0, import_typeEncodingHelpers.fromJsonTimestamp)(object.compliance_deadline) : void 0,
1933
+ suspended: (0, import_typeEncodingHelpers.isSet)(object.suspended) ? globalThis.Boolean(object.suspended) : false
1934
+ };
1935
+ },
1936
+ toJSON(message) {
1937
+ const obj = {};
1938
+ if (message.provider !== "") {
1939
+ obj.provider = message.provider;
1940
+ }
1941
+ if (message.snapshotHash.length !== 0) {
1942
+ obj.snapshot_hash = (0, import_typeEncodingHelpers.base64FromBytes)(message.snapshotHash);
1943
+ }
1944
+ if (message.resourceSummary !== void 0) {
1945
+ obj.resource_summary = ResourceSummary.toJSON(message.resourceSummary);
1946
+ }
1947
+ if (message.postedAt !== void 0) {
1948
+ obj.posted_at = message.postedAt.toISOString();
1949
+ }
1950
+ if (message.snapshotTimestamp !== void 0) {
1951
+ obj.snapshot_timestamp = message.snapshotTimestamp.toISOString();
1952
+ }
1953
+ if (message.complianceDeadline !== void 0) {
1954
+ obj.compliance_deadline = message.complianceDeadline.toISOString();
1955
+ }
1956
+ if (message.suspended !== false) {
1957
+ obj.suspended = message.suspended;
1958
+ }
1959
+ return obj;
1960
+ },
1961
+ fromPartial(object) {
1962
+ const message = createBaseProviderSnapshotRecord();
1963
+ message.provider = object.provider ?? "";
1964
+ message.snapshotHash = object.snapshotHash ?? new Uint8Array(0);
1965
+ message.resourceSummary = object.resourceSummary !== void 0 && object.resourceSummary !== null ? ResourceSummary.fromPartial(object.resourceSummary) : void 0;
1966
+ message.postedAt = object.postedAt ?? void 0;
1967
+ message.snapshotTimestamp = object.snapshotTimestamp ?? void 0;
1968
+ message.complianceDeadline = object.complianceDeadline ?? void 0;
1969
+ message.suspended = object.suspended ?? false;
1970
+ return message;
1971
+ }
1972
+ };
1973
+ function _unused_bytesFromBase64(b64) {
1974
+ if (globalThis.Buffer) {
1975
+ return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
1976
+ } else {
1977
+ const bin = globalThis.atob(b64);
1978
+ const arr = new Uint8Array(bin.length);
1979
+ for (let i = 0; i < bin.length; ++i) {
1980
+ arr[i] = bin.charCodeAt(i);
1981
+ }
1982
+ return arr;
1983
+ }
1984
+ }
1985
+ function _unused_base64FromBytes(arr) {
1986
+ if (globalThis.Buffer) {
1987
+ return globalThis.Buffer.from(arr).toString("base64");
1988
+ } else {
1989
+ const bin = [];
1990
+ arr.forEach((byte) => {
1991
+ bin.push(globalThis.String.fromCharCode(byte));
1992
+ });
1993
+ return globalThis.btoa(bin.join(""));
1994
+ }
1995
+ }
1996
+ function _unused_toTimestamp(date) {
1997
+ const seconds = BigInt(Math.trunc(date.getTime() / 1e3));
1998
+ const nanos = date.getTime() % 1e3 * 1e6;
1999
+ return { seconds, nanos };
2000
+ }
2001
+ function _unused_fromTimestamp(t) {
2002
+ let millis = (globalThis.Number(t.seconds.toString()) || 0) * 1e3;
2003
+ millis += (t.nanos || 0) / 1e6;
2004
+ return new globalThis.Date(millis);
2005
+ }
2006
+ function _unused_fromJsonTimestamp(o) {
2007
+ if (o instanceof globalThis.Date) {
2008
+ return o;
2009
+ } else if (typeof o === "string") {
2010
+ return new globalThis.Date(o);
2011
+ } else {
2012
+ return (0, import_typeEncodingHelpers.fromTimestamp)(import_timestamp.Timestamp.fromJSON(o));
2013
+ }
2014
+ }
2015
+ function _unused_isSet(value) {
2016
+ return value !== null && value !== void 0;
2017
+ }
2018
+ //# sourceMappingURL=state.cjs.map