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

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 (293) 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/generateManifestVersion.cjs +11 -0
  82. package/dist/cjs/sdl/manifest/generateManifestVersion.cjs.map +2 -2
  83. package/dist/cjs/sdl/manifest/manifestUtils.cjs +10 -2
  84. package/dist/cjs/sdl/manifest/manifestUtils.cjs.map +2 -2
  85. package/dist/cjs/sdl/manifest/reclamationDuration.cjs +4 -5
  86. package/dist/cjs/sdl/manifest/reclamationDuration.cjs.map +3 -3
  87. package/dist/cjs/sdl/validateSDL/validateSDL.cjs +28 -1
  88. package/dist/cjs/sdl/validateSDL/validateSDL.cjs.map +2 -2
  89. package/dist/cjs/sdl/validateSDL/validateSDLInput.cjs +853 -454
  90. package/dist/cjs/sdl/validateSDL/validateSDLInput.cjs.map +2 -2
  91. package/dist/esm/chunk-2NPYA3YV.js +1563 -0
  92. package/dist/esm/chunk-2NPYA3YV.js.map +7 -0
  93. package/dist/esm/{chunk-4SZHF6SE.js → chunk-3U5XKNEU.js} +3 -3
  94. package/dist/esm/chunk-474YCD2T.js +356 -0
  95. package/dist/esm/chunk-474YCD2T.js.map +7 -0
  96. package/dist/esm/chunk-4CTTYO4O.js +890 -0
  97. package/dist/esm/chunk-4CTTYO4O.js.map +7 -0
  98. package/dist/esm/{chunk-IKTMMFJ5.js → chunk-54RECHZZ.js} +2 -2
  99. package/dist/esm/{chunk-WCUR732W.js → chunk-57534UAR.js} +2 -2
  100. package/dist/esm/{chunk-B4YVLEG7.js → chunk-7F3NJG67.js} +3 -3
  101. package/dist/esm/chunk-AIWCRXMP.js +672 -0
  102. package/dist/esm/chunk-AIWCRXMP.js.map +7 -0
  103. package/dist/esm/{chunk-XAOERZEY.js → chunk-AKNHD3CM.js} +2 -2
  104. package/dist/esm/chunk-BI4YL5KH.js +2742 -0
  105. package/dist/esm/chunk-BI4YL5KH.js.map +7 -0
  106. package/dist/esm/{chunk-ZGK4PJCD.js → chunk-BQNJHJXY.js} +3 -3
  107. package/dist/esm/{chunk-YBRE4XNB.js → chunk-CFEWW2ER.js} +2 -2
  108. package/dist/esm/{chunk-EJQUNX4L.js → chunk-DCLXPAMC.js} +3 -3
  109. package/dist/esm/{chunk-AR26HCRY.js → chunk-F4IQOYFH.js} +2 -2
  110. package/dist/esm/{chunk-ENZ3OBCL.js → chunk-F7KT5EX5.js} +2 -2
  111. package/dist/esm/{chunk-3QS3CMF4.js → chunk-GRGSTKN3.js} +2 -2
  112. package/dist/esm/{chunk-TTQ36NQ5.js → chunk-HRN6NSO2.js} +2 -2
  113. package/dist/esm/{chunk-E7KECYS7.js → chunk-IEWLP7PR.js} +7 -1
  114. package/dist/esm/chunk-IEWLP7PR.js.map +7 -0
  115. package/dist/esm/chunk-IFKY7FXY.js +484 -0
  116. package/dist/esm/chunk-IFKY7FXY.js.map +7 -0
  117. package/dist/esm/chunk-J4CJEGEM.js +3016 -0
  118. package/dist/esm/chunk-J4CJEGEM.js.map +7 -0
  119. package/dist/esm/{chunk-N42ATJOO.js → chunk-M5P5LAJJ.js} +2 -2
  120. package/dist/esm/{chunk-3K7Q5MUF.js → chunk-MIJCN6AD.js} +2 -2
  121. package/dist/esm/{chunk-OYI3IQIV.js → chunk-NNB5QBR2.js} +2 -2
  122. package/dist/esm/{chunk-WMSUADX2.js → chunk-OJ54L3XZ.js} +4 -4
  123. package/dist/esm/{chunk-5ODS4QTF.js → chunk-P64VHYRM.js} +2 -2
  124. package/dist/esm/{chunk-MFZVOFPX.js → chunk-PAOVIX5L.js} +3 -3
  125. package/dist/esm/chunk-PEHPXXTS.js +1053 -0
  126. package/dist/esm/chunk-PEHPXXTS.js.map +7 -0
  127. package/dist/esm/chunk-PTMMQODC.js +760 -0
  128. package/dist/esm/chunk-PTMMQODC.js.map +7 -0
  129. package/dist/esm/{chunk-ZXN75Q55.js → chunk-PWXFQ5FI.js} +3 -3
  130. package/dist/esm/{chunk-CZGHFBAO.js → chunk-PYD5MY63.js} +131 -9
  131. package/dist/esm/chunk-PYD5MY63.js.map +7 -0
  132. package/dist/esm/{chunk-NP4QQMME.js → chunk-RJZ46VHV.js} +2 -2
  133. package/dist/esm/chunk-SK7LOVVI.js +660 -0
  134. package/dist/esm/chunk-SK7LOVVI.js.map +7 -0
  135. package/dist/esm/{chunk-ZRZ6LUI2.js → chunk-TN4W5NLC.js} +7 -1
  136. package/dist/esm/chunk-TN4W5NLC.js.map +7 -0
  137. package/dist/esm/chunk-VYCICKFV.js +698 -0
  138. package/dist/esm/chunk-VYCICKFV.js.map +7 -0
  139. package/dist/esm/{chunk-4TSICBUM.js → chunk-W3TLZPTC.js} +3 -3
  140. package/dist/esm/{chunk-M2RS2IFR.js → chunk-WNFIFYG2.js} +2 -2
  141. package/dist/esm/{chunk-CVX7ZJQR.js → chunk-XP2XNYEA.js} +161 -4
  142. package/dist/esm/chunk-XP2XNYEA.js.map +7 -0
  143. package/dist/esm/{chunk-SGDEIQ7L.js → chunk-Y7BVCD32.js} +3 -3
  144. package/dist/esm/{chunk-UHI2V2WP.js → chunk-YFIDWQNM.js} +1308 -487
  145. package/dist/esm/chunk-YFIDWQNM.js.map +7 -0
  146. package/dist/esm/generated/protos/index.akash.v1.js +2988 -77
  147. package/dist/esm/generated/protos/index.akash.v1.js.map +4 -4
  148. package/dist/esm/generated/protos/index.akash.v1beta4.js +58 -13
  149. package/dist/esm/generated/protos/index.akash.v1beta5.js +17 -12
  150. package/dist/esm/generated/protos/index.akash.v1beta5.js.map +1 -1
  151. package/dist/esm/generated/protos/index.akash.v2.js +4 -4
  152. package/dist/esm/generated/protos/index.provider.akash.v1.js +29 -10
  153. package/dist/esm/generated/protos/index.provider.akash.v2beta3.js +7 -4
  154. package/dist/esm/index.js +54 -36
  155. package/dist/esm/index.js.map +2 -2
  156. package/dist/esm/index.web.js +14 -13
  157. package/dist/esm/index.web.js.map +1 -1
  158. package/dist/esm/{query_akash-I3RPHLVA.js → query_akash-BTYAA6UN.js} +5 -5
  159. package/dist/esm/{query_akash-QF2LHJQN.js → query_akash-EG43V2QH.js} +4 -4
  160. package/dist/esm/{query_akash-44SHG3FL.js → query_akash-HCIMNA7T.js} +4 -3
  161. package/dist/esm/{query_akash-44SHG3FL.js.map → query_akash-HCIMNA7T.js.map} +1 -1
  162. package/dist/esm/{query_akash-72TFPQBZ.js → query_akash-HN4NCENR.js} +4 -4
  163. package/dist/esm/query_akash-KU4YCMUU.js +85 -0
  164. package/dist/esm/query_akash-KU4YCMUU.js.map +7 -0
  165. package/dist/esm/{query_akash-TZ6F7OO4.js → query_akash-LSGWB5MI.js} +24 -12
  166. package/dist/esm/query_akash-LSGWB5MI.js.map +7 -0
  167. package/dist/esm/{query_akash-54EYS6GQ.js → query_akash-SOJJMCBH.js} +8 -7
  168. package/dist/esm/{query_akash-54EYS6GQ.js.map → query_akash-SOJJMCBH.js.map} +1 -1
  169. package/dist/esm/{query_akash-EGFDDA4L.js → query_akash-SVNQ4S67.js} +4 -4
  170. package/dist/esm/query_akash-XYSUQTZC.js +164 -0
  171. package/dist/esm/query_akash-XYSUQTZC.js.map +7 -0
  172. package/dist/esm/{service_akash-KRCYHNCN.js → service_akash-3R3TC3PH.js} +4 -3
  173. package/dist/esm/{service_akash-KRCYHNCN.js.map → service_akash-3R3TC3PH.js.map} +1 -1
  174. package/dist/esm/{service_akash-CEAZGGZS.js → service_akash-43EJ5RKY.js} +8 -7
  175. package/dist/esm/{service_akash-CEAZGGZS.js.map → service_akash-43EJ5RKY.js.map} +1 -1
  176. package/dist/esm/{service_akash-YXSRY4G3.js → service_akash-AXWB3IDG.js} +7 -6
  177. package/dist/esm/{service_akash-YXSRY4G3.js.map → service_akash-AXWB3IDG.js.map} +1 -1
  178. package/dist/esm/{service_akash-Z4CR3DWY.js → service_akash-BZTUHKJO.js} +8 -7
  179. package/dist/esm/{service_akash-Z4CR3DWY.js.map → service_akash-BZTUHKJO.js.map} +1 -1
  180. package/dist/esm/{service_akash-JQKI2SJP.js → service_akash-HFGWADC2.js} +4 -4
  181. package/dist/esm/{service_akash-SXXXZL6K.js → service_akash-KAJJV7LX.js} +4 -4
  182. package/dist/esm/service_akash-KYLB3OP3.js +78 -0
  183. package/dist/esm/service_akash-KYLB3OP3.js.map +7 -0
  184. package/dist/esm/service_akash-LJBOWZZG.js +221 -0
  185. package/dist/esm/service_akash-LJBOWZZG.js.map +7 -0
  186. package/dist/esm/{service_akash-PFTEVUGK.js → service_akash-QTGRTXLG.js} +4 -4
  187. package/dist/esm/{service_akash-44MLEMTW.js → service_akash-T36Y5DCD.js} +4 -3
  188. package/dist/esm/{service_akash-44MLEMTW.js.map → service_akash-T36Y5DCD.js.map} +1 -1
  189. package/dist/esm/{service_akash-ZITNWRBM.js → service_akash-X4HCN3EG.js} +9 -8
  190. package/dist/esm/{service_akash-ZITNWRBM.js.map → service_akash-X4HCN3EG.js.map} +1 -1
  191. package/dist/esm/snapshot_akash-KH5X5W3B.js +41 -0
  192. package/dist/esm/snapshot_akash-KH5X5W3B.js.map +7 -0
  193. package/dist/sdl-schema.yaml +84 -8
  194. package/dist/tsconfig.build.tsbuildinfo +1 -1
  195. package/dist/types/generated/createNodeSDK.d.ts +473 -0
  196. package/dist/types/generated/createProviderSDK.d.ts +31 -0
  197. package/dist/types/generated/patches/nodeCustomTypePatches.d.ts +8 -0
  198. package/dist/types/generated/protos/akash/base/attributes/v1/attribute.d.ts +3 -0
  199. package/dist/types/generated/protos/akash/inventory/v1/snapshot.d.ts +112 -0
  200. package/dist/types/generated/protos/akash/inventory/v1/snapshot_akash.d.ts +22 -0
  201. package/dist/types/generated/protos/akash/manifest/v2beta3/httpoptions.d.ts +35 -0
  202. package/dist/types/generated/protos/akash/market/v1/stats.d.ts +35 -0
  203. package/dist/types/generated/protos/akash/market/v1/types.d.ts +5 -3
  204. package/dist/types/generated/protos/akash/market/v1beta5/query.d.ts +29 -0
  205. package/dist/types/generated/protos/akash/market/v1beta5/query_akash.d.ts +8 -1
  206. package/dist/types/generated/protos/akash/provider/v1beta4/event.d.ts +40 -0
  207. package/dist/types/generated/protos/akash/provider/v1beta4/genesis.d.ts +11 -1
  208. package/dist/types/generated/protos/akash/provider/v1beta4/maintenance.d.ts +87 -0
  209. package/dist/types/generated/protos/akash/provider/v1beta4/msg.d.ts +57 -0
  210. package/dist/types/generated/protos/akash/provider/v1beta4/params.d.ts +17 -0
  211. package/dist/types/generated/protos/akash/provider/v1beta4/paramsmsg.d.ts +22 -0
  212. package/dist/types/generated/protos/akash/provider/v1beta4/provider.d.ts +13 -0
  213. package/dist/types/generated/protos/akash/provider/v1beta4/query.d.ts +93 -1
  214. package/dist/types/generated/protos/akash/provider/v1beta4/query_akash.d.ts +29 -1
  215. package/dist/types/generated/protos/akash/provider/v1beta4/service_akash.d.ts +20 -1
  216. package/dist/types/generated/protos/akash/verification/v1/event.d.ts +339 -0
  217. package/dist/types/generated/protos/akash/verification/v1/genesis.d.ts +45 -0
  218. package/dist/types/generated/protos/akash/verification/v1/msg.d.ts +614 -0
  219. package/dist/types/generated/protos/akash/verification/v1/params.d.ts +147 -0
  220. package/dist/types/generated/protos/akash/verification/v1/query.d.ts +290 -0
  221. package/dist/types/generated/protos/akash/verification/v1/query_akash.d.ts +97 -0
  222. package/dist/types/generated/protos/akash/verification/v1/service.d.ts +1 -0
  223. package/dist/types/generated/protos/akash/verification/v1/service_akash.d.ts +126 -0
  224. package/dist/types/generated/protos/akash/verification/v1/state.d.ts +320 -0
  225. package/dist/types/generated/protos/akash/verification/v1/types.d.ts +348 -0
  226. package/dist/types/generated/protos/akash/verification/v1/verificationrequirement.d.ts +36 -0
  227. package/dist/types/generated/protos/index.akash.v1.d.ts +9 -0
  228. package/dist/types/generated/protos/index.akash.v1beta4.d.ts +7 -4
  229. package/dist/types/generated/protos/index.akash.v1beta5.d.ts +1 -1
  230. package/dist/types/generated/protos/index.provider.akash.v1.d.ts +1 -0
  231. package/dist/types/generated/protos/index.provider.akash.v2beta3.d.ts +1 -1
  232. package/dist/types/sdk/chain/createChainNodeSDK.d.ts +45 -0
  233. package/dist/types/sdk/chain/createChainNodeWebSDK.d.ts +45 -0
  234. package/dist/types/sdl/duration.d.ts +13 -0
  235. package/dist/types/sdl/httpTimeout.d.ts +10 -0
  236. package/dist/types/sdl/index.d.ts +0 -1
  237. package/dist/types/sdl/manifest/reclamationDuration.d.ts +3 -7
  238. package/dist/types/sdl/validateSDL/validateSDLInput.d.ts +131 -16
  239. package/package.json +1 -1
  240. package/dist/cjs/sdl/types.cjs.map +0 -7
  241. package/dist/esm/chunk-C3WV6GJ6.js +0 -234
  242. package/dist/esm/chunk-C3WV6GJ6.js.map +0 -7
  243. package/dist/esm/chunk-CVX7ZJQR.js.map +0 -7
  244. package/dist/esm/chunk-CZGHFBAO.js.map +0 -7
  245. package/dist/esm/chunk-E7KECYS7.js.map +0 -7
  246. package/dist/esm/chunk-IVLF3VVZ.js +0 -364
  247. package/dist/esm/chunk-IVLF3VVZ.js.map +0 -7
  248. package/dist/esm/chunk-MV27RM25.js +0 -368
  249. package/dist/esm/chunk-MV27RM25.js.map +0 -7
  250. package/dist/esm/chunk-S2CZQ6AM.js +0 -211
  251. package/dist/esm/chunk-S2CZQ6AM.js.map +0 -7
  252. package/dist/esm/chunk-SXGU4O34.js +0 -258
  253. package/dist/esm/chunk-SXGU4O34.js.map +0 -7
  254. package/dist/esm/chunk-UHI2V2WP.js.map +0 -7
  255. package/dist/esm/chunk-V42TLXWK.js +0 -177
  256. package/dist/esm/chunk-V42TLXWK.js.map +0 -7
  257. package/dist/esm/chunk-ZRZ6LUI2.js.map +0 -7
  258. package/dist/esm/query_akash-N3FPIXVQ.js +0 -39
  259. package/dist/esm/query_akash-N3FPIXVQ.js.map +0 -7
  260. package/dist/esm/query_akash-TZ6F7OO4.js.map +0 -7
  261. package/dist/esm/service_akash-5AUMDLU5.js +0 -46
  262. package/dist/esm/service_akash-5AUMDLU5.js.map +0 -7
  263. package/dist/types/sdl/types.d.ts +0 -305
  264. /package/dist/esm/{chunk-4SZHF6SE.js.map → chunk-3U5XKNEU.js.map} +0 -0
  265. /package/dist/esm/{chunk-IKTMMFJ5.js.map → chunk-54RECHZZ.js.map} +0 -0
  266. /package/dist/esm/{chunk-WCUR732W.js.map → chunk-57534UAR.js.map} +0 -0
  267. /package/dist/esm/{chunk-B4YVLEG7.js.map → chunk-7F3NJG67.js.map} +0 -0
  268. /package/dist/esm/{chunk-XAOERZEY.js.map → chunk-AKNHD3CM.js.map} +0 -0
  269. /package/dist/esm/{chunk-ZGK4PJCD.js.map → chunk-BQNJHJXY.js.map} +0 -0
  270. /package/dist/esm/{chunk-YBRE4XNB.js.map → chunk-CFEWW2ER.js.map} +0 -0
  271. /package/dist/esm/{chunk-EJQUNX4L.js.map → chunk-DCLXPAMC.js.map} +0 -0
  272. /package/dist/esm/{chunk-AR26HCRY.js.map → chunk-F4IQOYFH.js.map} +0 -0
  273. /package/dist/esm/{chunk-ENZ3OBCL.js.map → chunk-F7KT5EX5.js.map} +0 -0
  274. /package/dist/esm/{chunk-3QS3CMF4.js.map → chunk-GRGSTKN3.js.map} +0 -0
  275. /package/dist/esm/{chunk-TTQ36NQ5.js.map → chunk-HRN6NSO2.js.map} +0 -0
  276. /package/dist/esm/{chunk-N42ATJOO.js.map → chunk-M5P5LAJJ.js.map} +0 -0
  277. /package/dist/esm/{chunk-3K7Q5MUF.js.map → chunk-MIJCN6AD.js.map} +0 -0
  278. /package/dist/esm/{chunk-OYI3IQIV.js.map → chunk-NNB5QBR2.js.map} +0 -0
  279. /package/dist/esm/{chunk-WMSUADX2.js.map → chunk-OJ54L3XZ.js.map} +0 -0
  280. /package/dist/esm/{chunk-5ODS4QTF.js.map → chunk-P64VHYRM.js.map} +0 -0
  281. /package/dist/esm/{chunk-MFZVOFPX.js.map → chunk-PAOVIX5L.js.map} +0 -0
  282. /package/dist/esm/{chunk-ZXN75Q55.js.map → chunk-PWXFQ5FI.js.map} +0 -0
  283. /package/dist/esm/{chunk-NP4QQMME.js.map → chunk-RJZ46VHV.js.map} +0 -0
  284. /package/dist/esm/{chunk-4TSICBUM.js.map → chunk-W3TLZPTC.js.map} +0 -0
  285. /package/dist/esm/{chunk-M2RS2IFR.js.map → chunk-WNFIFYG2.js.map} +0 -0
  286. /package/dist/esm/{chunk-SGDEIQ7L.js.map → chunk-Y7BVCD32.js.map} +0 -0
  287. /package/dist/esm/{query_akash-I3RPHLVA.js.map → query_akash-BTYAA6UN.js.map} +0 -0
  288. /package/dist/esm/{query_akash-QF2LHJQN.js.map → query_akash-EG43V2QH.js.map} +0 -0
  289. /package/dist/esm/{query_akash-72TFPQBZ.js.map → query_akash-HN4NCENR.js.map} +0 -0
  290. /package/dist/esm/{query_akash-EGFDDA4L.js.map → query_akash-SVNQ4S67.js.map} +0 -0
  291. /package/dist/esm/{service_akash-JQKI2SJP.js.map → service_akash-HFGWADC2.js.map} +0 -0
  292. /package/dist/esm/{service_akash-SXXXZL6K.js.map → service_akash-KAJJV7LX.js.map} +0 -0
  293. /package/dist/esm/{service_akash-PFTEVUGK.js.map → service_akash-QTGRTXLG.js.map} +0 -0
@@ -0,0 +1,2742 @@
1
+ import {
2
+ Params,
3
+ ResourceSummary
4
+ } from "./chunk-J4CJEGEM.js";
5
+ import {
6
+ attestationRevocationReasonFromJSON,
7
+ attestationRevocationReasonToJSON,
8
+ auditEscrowSettlementReasonFromJSON,
9
+ auditEscrowSettlementReasonToJSON,
10
+ capabilityFlagFromJSON,
11
+ capabilityFlagToJSON,
12
+ discrepancyResolutionReasonFromJSON,
13
+ discrepancyResolutionReasonToJSON,
14
+ faultAttributionFromJSON,
15
+ faultAttributionToJSON,
16
+ governanceAttestationReasonFromJSON,
17
+ governanceAttestationReasonToJSON,
18
+ providerBondSlashReasonFromJSON,
19
+ providerBondSlashReasonToJSON,
20
+ verificationTierFromJSON,
21
+ verificationTierToJSON
22
+ } from "./chunk-PEHPXXTS.js";
23
+ import {
24
+ Coin
25
+ } from "./chunk-IOBGCPUE.js";
26
+ import {
27
+ patched
28
+ } from "./chunk-TN4W5NLC.js";
29
+ import {
30
+ Timestamp,
31
+ base64FromBytes,
32
+ bytesFromBase64,
33
+ fromJsonTimestamp,
34
+ fromTimestamp,
35
+ isSet,
36
+ toTimestamp
37
+ } from "./chunk-5EZRSM6V.js";
38
+
39
+ // src/generated/protos/akash/verification/v1/msg.ts
40
+ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
41
+ function createBaseMsgPostAuditorBond() {
42
+ return { auditor: "", amount: void 0 };
43
+ }
44
+ var MsgPostAuditorBond = {
45
+ $type: "akash.verification.v1.MsgPostAuditorBond",
46
+ encode(message, writer = new BinaryWriter()) {
47
+ if (message.auditor !== "") {
48
+ writer.uint32(10).string(message.auditor);
49
+ }
50
+ if (message.amount !== void 0) {
51
+ Coin.encode(message.amount, writer.uint32(18).fork()).join();
52
+ }
53
+ return writer;
54
+ },
55
+ decode(input, length) {
56
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
57
+ const end = length === void 0 ? reader.len : reader.pos + length;
58
+ const message = createBaseMsgPostAuditorBond();
59
+ while (reader.pos < end) {
60
+ const tag = reader.uint32();
61
+ switch (tag >>> 3) {
62
+ case 1: {
63
+ if (tag !== 10) {
64
+ break;
65
+ }
66
+ message.auditor = reader.string();
67
+ continue;
68
+ }
69
+ case 2: {
70
+ if (tag !== 18) {
71
+ break;
72
+ }
73
+ message.amount = Coin.decode(reader, reader.uint32());
74
+ continue;
75
+ }
76
+ }
77
+ if ((tag & 7) === 4 || tag === 0) {
78
+ break;
79
+ }
80
+ reader.skip(tag & 7);
81
+ }
82
+ return message;
83
+ },
84
+ fromJSON(object) {
85
+ return {
86
+ auditor: isSet(object.auditor) ? globalThis.String(object.auditor) : "",
87
+ amount: isSet(object.amount) ? Coin.fromJSON(object.amount) : void 0
88
+ };
89
+ },
90
+ toJSON(message) {
91
+ const obj = {};
92
+ if (message.auditor !== "") {
93
+ obj.auditor = message.auditor;
94
+ }
95
+ if (message.amount !== void 0) {
96
+ obj.amount = Coin.toJSON(message.amount);
97
+ }
98
+ return obj;
99
+ },
100
+ fromPartial(object) {
101
+ const message = createBaseMsgPostAuditorBond();
102
+ message.auditor = object.auditor ?? "";
103
+ message.amount = object.amount !== void 0 && object.amount !== null ? Coin.fromPartial(object.amount) : void 0;
104
+ return message;
105
+ }
106
+ };
107
+ function createBaseMsgPostAuditorBondResponse() {
108
+ return {};
109
+ }
110
+ var MsgPostAuditorBondResponse = {
111
+ $type: "akash.verification.v1.MsgPostAuditorBondResponse",
112
+ encode(_, writer = new BinaryWriter()) {
113
+ return writer;
114
+ },
115
+ decode(input, length) {
116
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
117
+ const end = length === void 0 ? reader.len : reader.pos + length;
118
+ const message = createBaseMsgPostAuditorBondResponse();
119
+ while (reader.pos < end) {
120
+ const tag = reader.uint32();
121
+ switch (tag >>> 3) {
122
+ }
123
+ if ((tag & 7) === 4 || tag === 0) {
124
+ break;
125
+ }
126
+ reader.skip(tag & 7);
127
+ }
128
+ return message;
129
+ },
130
+ fromJSON(_) {
131
+ return {};
132
+ },
133
+ toJSON(_) {
134
+ const obj = {};
135
+ return obj;
136
+ },
137
+ fromPartial(_) {
138
+ const message = createBaseMsgPostAuditorBondResponse();
139
+ return message;
140
+ }
141
+ };
142
+ function createBaseMsgSubmitAttestation() {
143
+ return {
144
+ provider: "",
145
+ auditor: "",
146
+ tier: 0,
147
+ capabilities: [],
148
+ evidenceHash: new Uint8Array(0),
149
+ fee: void 0,
150
+ deposit: void 0,
151
+ auditEscrowId: 0n
152
+ };
153
+ }
154
+ var MsgSubmitAttestation = {
155
+ $type: "akash.verification.v1.MsgSubmitAttestation",
156
+ encode(message, writer = new BinaryWriter()) {
157
+ if (message.provider !== "") {
158
+ writer.uint32(10).string(message.provider);
159
+ }
160
+ if (message.auditor !== "") {
161
+ writer.uint32(18).string(message.auditor);
162
+ }
163
+ if (message.tier !== 0) {
164
+ writer.uint32(24).int32(message.tier);
165
+ }
166
+ for (const v of message.capabilities) {
167
+ writer.uint32(32).int32(v);
168
+ }
169
+ if (message.evidenceHash.length !== 0) {
170
+ writer.uint32(42).bytes(message.evidenceHash);
171
+ }
172
+ if (message.fee !== void 0) {
173
+ Coin.encode(message.fee, writer.uint32(50).fork()).join();
174
+ }
175
+ if (message.deposit !== void 0) {
176
+ Coin.encode(message.deposit, writer.uint32(58).fork()).join();
177
+ }
178
+ if (message.auditEscrowId !== 0n) {
179
+ if (BigInt.asUintN(64, message.auditEscrowId) !== message.auditEscrowId) {
180
+ throw new globalThis.Error("value provided for field message.auditEscrowId of type uint64 too large");
181
+ }
182
+ writer.uint32(64).uint64(message.auditEscrowId);
183
+ }
184
+ return writer;
185
+ },
186
+ decode(input, length) {
187
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
188
+ const end = length === void 0 ? reader.len : reader.pos + length;
189
+ const message = createBaseMsgSubmitAttestation();
190
+ while (reader.pos < end) {
191
+ const tag = reader.uint32();
192
+ switch (tag >>> 3) {
193
+ case 1: {
194
+ if (tag !== 10) {
195
+ break;
196
+ }
197
+ message.provider = reader.string();
198
+ continue;
199
+ }
200
+ case 2: {
201
+ if (tag !== 18) {
202
+ break;
203
+ }
204
+ message.auditor = reader.string();
205
+ continue;
206
+ }
207
+ case 3: {
208
+ if (tag !== 24) {
209
+ break;
210
+ }
211
+ message.tier = reader.int32();
212
+ continue;
213
+ }
214
+ case 4: {
215
+ if (tag === 32) {
216
+ message.capabilities.push(reader.int32());
217
+ continue;
218
+ }
219
+ if (tag === 34) {
220
+ const end2 = reader.uint32() + reader.pos;
221
+ while (reader.pos < end2) {
222
+ message.capabilities.push(reader.int32());
223
+ }
224
+ continue;
225
+ }
226
+ break;
227
+ }
228
+ case 5: {
229
+ if (tag !== 42) {
230
+ break;
231
+ }
232
+ message.evidenceHash = reader.bytes();
233
+ continue;
234
+ }
235
+ case 6: {
236
+ if (tag !== 50) {
237
+ break;
238
+ }
239
+ message.fee = Coin.decode(reader, reader.uint32());
240
+ continue;
241
+ }
242
+ case 7: {
243
+ if (tag !== 58) {
244
+ break;
245
+ }
246
+ message.deposit = Coin.decode(reader, reader.uint32());
247
+ continue;
248
+ }
249
+ case 8: {
250
+ if (tag !== 64) {
251
+ break;
252
+ }
253
+ message.auditEscrowId = reader.uint64();
254
+ continue;
255
+ }
256
+ }
257
+ if ((tag & 7) === 4 || tag === 0) {
258
+ break;
259
+ }
260
+ reader.skip(tag & 7);
261
+ }
262
+ return message;
263
+ },
264
+ fromJSON(object) {
265
+ return {
266
+ provider: isSet(object.provider) ? globalThis.String(object.provider) : "",
267
+ auditor: isSet(object.auditor) ? globalThis.String(object.auditor) : "",
268
+ tier: isSet(object.tier) ? verificationTierFromJSON(object.tier) : 0,
269
+ capabilities: globalThis.Array.isArray(object?.capabilities) ? object.capabilities.map((e) => capabilityFlagFromJSON(e)) : [],
270
+ evidenceHash: isSet(object.evidence_hash) ? bytesFromBase64(object.evidence_hash) : new Uint8Array(0),
271
+ fee: isSet(object.fee) ? Coin.fromJSON(object.fee) : void 0,
272
+ deposit: isSet(object.deposit) ? Coin.fromJSON(object.deposit) : void 0,
273
+ auditEscrowId: isSet(object.audit_escrow_id) ? BigInt(object.audit_escrow_id) : 0n
274
+ };
275
+ },
276
+ toJSON(message) {
277
+ const obj = {};
278
+ if (message.provider !== "") {
279
+ obj.provider = message.provider;
280
+ }
281
+ if (message.auditor !== "") {
282
+ obj.auditor = message.auditor;
283
+ }
284
+ if (message.tier !== 0) {
285
+ obj.tier = verificationTierToJSON(message.tier);
286
+ }
287
+ if (message.capabilities?.length) {
288
+ obj.capabilities = message.capabilities.map((e) => capabilityFlagToJSON(e));
289
+ }
290
+ if (message.evidenceHash.length !== 0) {
291
+ obj.evidence_hash = base64FromBytes(message.evidenceHash);
292
+ }
293
+ if (message.fee !== void 0) {
294
+ obj.fee = Coin.toJSON(message.fee);
295
+ }
296
+ if (message.deposit !== void 0) {
297
+ obj.deposit = Coin.toJSON(message.deposit);
298
+ }
299
+ if (message.auditEscrowId !== 0n) {
300
+ obj.audit_escrow_id = message.auditEscrowId.toString();
301
+ }
302
+ return obj;
303
+ },
304
+ fromPartial(object) {
305
+ const message = createBaseMsgSubmitAttestation();
306
+ message.provider = object.provider ?? "";
307
+ message.auditor = object.auditor ?? "";
308
+ message.tier = object.tier ?? 0;
309
+ message.capabilities = object.capabilities?.map((e) => e) || [];
310
+ message.evidenceHash = object.evidenceHash ?? new Uint8Array(0);
311
+ message.fee = object.fee !== void 0 && object.fee !== null ? Coin.fromPartial(object.fee) : void 0;
312
+ message.deposit = object.deposit !== void 0 && object.deposit !== null ? Coin.fromPartial(object.deposit) : void 0;
313
+ message.auditEscrowId = object.auditEscrowId !== void 0 && object.auditEscrowId !== null ? BigInt(object.auditEscrowId) : 0n;
314
+ return message;
315
+ }
316
+ };
317
+ function createBaseMsgSubmitAttestationResponse() {
318
+ return {};
319
+ }
320
+ var MsgSubmitAttestationResponse = {
321
+ $type: "akash.verification.v1.MsgSubmitAttestationResponse",
322
+ encode(_, writer = new BinaryWriter()) {
323
+ return writer;
324
+ },
325
+ decode(input, length) {
326
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
327
+ const end = length === void 0 ? reader.len : reader.pos + length;
328
+ const message = createBaseMsgSubmitAttestationResponse();
329
+ while (reader.pos < end) {
330
+ const tag = reader.uint32();
331
+ switch (tag >>> 3) {
332
+ }
333
+ if ((tag & 7) === 4 || tag === 0) {
334
+ break;
335
+ }
336
+ reader.skip(tag & 7);
337
+ }
338
+ return message;
339
+ },
340
+ fromJSON(_) {
341
+ return {};
342
+ },
343
+ toJSON(_) {
344
+ const obj = {};
345
+ return obj;
346
+ },
347
+ fromPartial(_) {
348
+ const message = createBaseMsgSubmitAttestationResponse();
349
+ return message;
350
+ }
351
+ };
352
+ function createBaseMsgOpenAuditEscrow() {
353
+ return {
354
+ provider: "",
355
+ requestedTier: 0,
356
+ requestedCapabilities: [],
357
+ fee: void 0,
358
+ providerDeposit: void 0,
359
+ expiresAt: void 0,
360
+ metadataHash: new Uint8Array(0)
361
+ };
362
+ }
363
+ var MsgOpenAuditEscrow = {
364
+ $type: "akash.verification.v1.MsgOpenAuditEscrow",
365
+ encode(message, writer = new BinaryWriter()) {
366
+ if (message.provider !== "") {
367
+ writer.uint32(10).string(message.provider);
368
+ }
369
+ if (message.requestedTier !== 0) {
370
+ writer.uint32(16).int32(message.requestedTier);
371
+ }
372
+ for (const v of message.requestedCapabilities) {
373
+ writer.uint32(24).int32(v);
374
+ }
375
+ if (message.fee !== void 0) {
376
+ Coin.encode(message.fee, writer.uint32(34).fork()).join();
377
+ }
378
+ if (message.providerDeposit !== void 0) {
379
+ Coin.encode(message.providerDeposit, writer.uint32(42).fork()).join();
380
+ }
381
+ if (message.expiresAt !== void 0) {
382
+ Timestamp.encode(toTimestamp(message.expiresAt), writer.uint32(50).fork()).join();
383
+ }
384
+ if (message.metadataHash.length !== 0) {
385
+ writer.uint32(58).bytes(message.metadataHash);
386
+ }
387
+ return writer;
388
+ },
389
+ decode(input, length) {
390
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
391
+ const end = length === void 0 ? reader.len : reader.pos + length;
392
+ const message = createBaseMsgOpenAuditEscrow();
393
+ while (reader.pos < end) {
394
+ const tag = reader.uint32();
395
+ switch (tag >>> 3) {
396
+ case 1: {
397
+ if (tag !== 10) {
398
+ break;
399
+ }
400
+ message.provider = reader.string();
401
+ continue;
402
+ }
403
+ case 2: {
404
+ if (tag !== 16) {
405
+ break;
406
+ }
407
+ message.requestedTier = reader.int32();
408
+ continue;
409
+ }
410
+ case 3: {
411
+ if (tag === 24) {
412
+ message.requestedCapabilities.push(reader.int32());
413
+ continue;
414
+ }
415
+ if (tag === 26) {
416
+ const end2 = reader.uint32() + reader.pos;
417
+ while (reader.pos < end2) {
418
+ message.requestedCapabilities.push(reader.int32());
419
+ }
420
+ continue;
421
+ }
422
+ break;
423
+ }
424
+ case 4: {
425
+ if (tag !== 34) {
426
+ break;
427
+ }
428
+ message.fee = Coin.decode(reader, reader.uint32());
429
+ continue;
430
+ }
431
+ case 5: {
432
+ if (tag !== 42) {
433
+ break;
434
+ }
435
+ message.providerDeposit = Coin.decode(reader, reader.uint32());
436
+ continue;
437
+ }
438
+ case 6: {
439
+ if (tag !== 50) {
440
+ break;
441
+ }
442
+ message.expiresAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
443
+ continue;
444
+ }
445
+ case 7: {
446
+ if (tag !== 58) {
447
+ break;
448
+ }
449
+ message.metadataHash = reader.bytes();
450
+ continue;
451
+ }
452
+ }
453
+ if ((tag & 7) === 4 || tag === 0) {
454
+ break;
455
+ }
456
+ reader.skip(tag & 7);
457
+ }
458
+ return message;
459
+ },
460
+ fromJSON(object) {
461
+ return {
462
+ provider: isSet(object.provider) ? globalThis.String(object.provider) : "",
463
+ requestedTier: isSet(object.requested_tier) ? verificationTierFromJSON(object.requested_tier) : 0,
464
+ requestedCapabilities: globalThis.Array.isArray(object?.requested_capabilities) ? object.requested_capabilities.map((e) => capabilityFlagFromJSON(e)) : [],
465
+ fee: isSet(object.fee) ? Coin.fromJSON(object.fee) : void 0,
466
+ providerDeposit: isSet(object.provider_deposit) ? Coin.fromJSON(object.provider_deposit) : void 0,
467
+ expiresAt: isSet(object.expires_at) ? fromJsonTimestamp(object.expires_at) : void 0,
468
+ metadataHash: isSet(object.metadata_hash) ? bytesFromBase64(object.metadata_hash) : new Uint8Array(0)
469
+ };
470
+ },
471
+ toJSON(message) {
472
+ const obj = {};
473
+ if (message.provider !== "") {
474
+ obj.provider = message.provider;
475
+ }
476
+ if (message.requestedTier !== 0) {
477
+ obj.requested_tier = verificationTierToJSON(message.requestedTier);
478
+ }
479
+ if (message.requestedCapabilities?.length) {
480
+ obj.requested_capabilities = message.requestedCapabilities.map((e) => capabilityFlagToJSON(e));
481
+ }
482
+ if (message.fee !== void 0) {
483
+ obj.fee = Coin.toJSON(message.fee);
484
+ }
485
+ if (message.providerDeposit !== void 0) {
486
+ obj.provider_deposit = Coin.toJSON(message.providerDeposit);
487
+ }
488
+ if (message.expiresAt !== void 0) {
489
+ obj.expires_at = message.expiresAt.toISOString();
490
+ }
491
+ if (message.metadataHash.length !== 0) {
492
+ obj.metadata_hash = base64FromBytes(message.metadataHash);
493
+ }
494
+ return obj;
495
+ },
496
+ fromPartial(object) {
497
+ const message = createBaseMsgOpenAuditEscrow();
498
+ message.provider = object.provider ?? "";
499
+ message.requestedTier = object.requestedTier ?? 0;
500
+ message.requestedCapabilities = object.requestedCapabilities?.map((e) => e) || [];
501
+ message.fee = object.fee !== void 0 && object.fee !== null ? Coin.fromPartial(object.fee) : void 0;
502
+ message.providerDeposit = object.providerDeposit !== void 0 && object.providerDeposit !== null ? Coin.fromPartial(object.providerDeposit) : void 0;
503
+ message.expiresAt = object.expiresAt ?? void 0;
504
+ message.metadataHash = object.metadataHash ?? new Uint8Array(0);
505
+ return message;
506
+ }
507
+ };
508
+ function createBaseMsgOpenAuditEscrowResponse() {
509
+ return { auditEscrowId: 0n };
510
+ }
511
+ var MsgOpenAuditEscrowResponse = {
512
+ $type: "akash.verification.v1.MsgOpenAuditEscrowResponse",
513
+ encode(message, writer = new BinaryWriter()) {
514
+ if (message.auditEscrowId !== 0n) {
515
+ if (BigInt.asUintN(64, message.auditEscrowId) !== message.auditEscrowId) {
516
+ throw new globalThis.Error("value provided for field message.auditEscrowId of type uint64 too large");
517
+ }
518
+ writer.uint32(8).uint64(message.auditEscrowId);
519
+ }
520
+ return writer;
521
+ },
522
+ decode(input, length) {
523
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
524
+ const end = length === void 0 ? reader.len : reader.pos + length;
525
+ const message = createBaseMsgOpenAuditEscrowResponse();
526
+ while (reader.pos < end) {
527
+ const tag = reader.uint32();
528
+ switch (tag >>> 3) {
529
+ case 1: {
530
+ if (tag !== 8) {
531
+ break;
532
+ }
533
+ message.auditEscrowId = reader.uint64();
534
+ continue;
535
+ }
536
+ }
537
+ if ((tag & 7) === 4 || tag === 0) {
538
+ break;
539
+ }
540
+ reader.skip(tag & 7);
541
+ }
542
+ return message;
543
+ },
544
+ fromJSON(object) {
545
+ return { auditEscrowId: isSet(object.audit_escrow_id) ? BigInt(object.audit_escrow_id) : 0n };
546
+ },
547
+ toJSON(message) {
548
+ const obj = {};
549
+ if (message.auditEscrowId !== 0n) {
550
+ obj.audit_escrow_id = message.auditEscrowId.toString();
551
+ }
552
+ return obj;
553
+ },
554
+ fromPartial(object) {
555
+ const message = createBaseMsgOpenAuditEscrowResponse();
556
+ message.auditEscrowId = object.auditEscrowId !== void 0 && object.auditEscrowId !== null ? BigInt(object.auditEscrowId) : 0n;
557
+ return message;
558
+ }
559
+ };
560
+ function createBaseMsgCancelAuditEscrow() {
561
+ return { provider: "", auditEscrowId: 0n };
562
+ }
563
+ var MsgCancelAuditEscrow = {
564
+ $type: "akash.verification.v1.MsgCancelAuditEscrow",
565
+ encode(message, writer = new BinaryWriter()) {
566
+ if (message.provider !== "") {
567
+ writer.uint32(10).string(message.provider);
568
+ }
569
+ if (message.auditEscrowId !== 0n) {
570
+ if (BigInt.asUintN(64, message.auditEscrowId) !== message.auditEscrowId) {
571
+ throw new globalThis.Error("value provided for field message.auditEscrowId of type uint64 too large");
572
+ }
573
+ writer.uint32(16).uint64(message.auditEscrowId);
574
+ }
575
+ return writer;
576
+ },
577
+ decode(input, length) {
578
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
579
+ const end = length === void 0 ? reader.len : reader.pos + length;
580
+ const message = createBaseMsgCancelAuditEscrow();
581
+ while (reader.pos < end) {
582
+ const tag = reader.uint32();
583
+ switch (tag >>> 3) {
584
+ case 1: {
585
+ if (tag !== 10) {
586
+ break;
587
+ }
588
+ message.provider = reader.string();
589
+ continue;
590
+ }
591
+ case 2: {
592
+ if (tag !== 16) {
593
+ break;
594
+ }
595
+ message.auditEscrowId = reader.uint64();
596
+ continue;
597
+ }
598
+ }
599
+ if ((tag & 7) === 4 || tag === 0) {
600
+ break;
601
+ }
602
+ reader.skip(tag & 7);
603
+ }
604
+ return message;
605
+ },
606
+ fromJSON(object) {
607
+ return {
608
+ provider: isSet(object.provider) ? globalThis.String(object.provider) : "",
609
+ auditEscrowId: isSet(object.audit_escrow_id) ? BigInt(object.audit_escrow_id) : 0n
610
+ };
611
+ },
612
+ toJSON(message) {
613
+ const obj = {};
614
+ if (message.provider !== "") {
615
+ obj.provider = message.provider;
616
+ }
617
+ if (message.auditEscrowId !== 0n) {
618
+ obj.audit_escrow_id = message.auditEscrowId.toString();
619
+ }
620
+ return obj;
621
+ },
622
+ fromPartial(object) {
623
+ const message = createBaseMsgCancelAuditEscrow();
624
+ message.provider = object.provider ?? "";
625
+ message.auditEscrowId = object.auditEscrowId !== void 0 && object.auditEscrowId !== null ? BigInt(object.auditEscrowId) : 0n;
626
+ return message;
627
+ }
628
+ };
629
+ function createBaseMsgCancelAuditEscrowResponse() {
630
+ return {};
631
+ }
632
+ var MsgCancelAuditEscrowResponse = {
633
+ $type: "akash.verification.v1.MsgCancelAuditEscrowResponse",
634
+ encode(_, writer = new BinaryWriter()) {
635
+ return writer;
636
+ },
637
+ decode(input, length) {
638
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
639
+ const end = length === void 0 ? reader.len : reader.pos + length;
640
+ const message = createBaseMsgCancelAuditEscrowResponse();
641
+ while (reader.pos < end) {
642
+ const tag = reader.uint32();
643
+ switch (tag >>> 3) {
644
+ }
645
+ if ((tag & 7) === 4 || tag === 0) {
646
+ break;
647
+ }
648
+ reader.skip(tag & 7);
649
+ }
650
+ return message;
651
+ },
652
+ fromJSON(_) {
653
+ return {};
654
+ },
655
+ toJSON(_) {
656
+ const obj = {};
657
+ return obj;
658
+ },
659
+ fromPartial(_) {
660
+ const message = createBaseMsgCancelAuditEscrowResponse();
661
+ return message;
662
+ }
663
+ };
664
+ function createBaseMsgSettleAuditEscrow() {
665
+ return { authority: "", auditEscrowId: 0n, reason: 0, faultAttribution: 0, evidenceHash: new Uint8Array(0) };
666
+ }
667
+ var MsgSettleAuditEscrow = {
668
+ $type: "akash.verification.v1.MsgSettleAuditEscrow",
669
+ encode(message, writer = new BinaryWriter()) {
670
+ if (message.authority !== "") {
671
+ writer.uint32(10).string(message.authority);
672
+ }
673
+ if (message.auditEscrowId !== 0n) {
674
+ if (BigInt.asUintN(64, message.auditEscrowId) !== message.auditEscrowId) {
675
+ throw new globalThis.Error("value provided for field message.auditEscrowId of type uint64 too large");
676
+ }
677
+ writer.uint32(16).uint64(message.auditEscrowId);
678
+ }
679
+ if (message.reason !== 0) {
680
+ writer.uint32(24).int32(message.reason);
681
+ }
682
+ if (message.faultAttribution !== 0) {
683
+ writer.uint32(32).int32(message.faultAttribution);
684
+ }
685
+ if (message.evidenceHash.length !== 0) {
686
+ writer.uint32(42).bytes(message.evidenceHash);
687
+ }
688
+ return writer;
689
+ },
690
+ decode(input, length) {
691
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
692
+ const end = length === void 0 ? reader.len : reader.pos + length;
693
+ const message = createBaseMsgSettleAuditEscrow();
694
+ while (reader.pos < end) {
695
+ const tag = reader.uint32();
696
+ switch (tag >>> 3) {
697
+ case 1: {
698
+ if (tag !== 10) {
699
+ break;
700
+ }
701
+ message.authority = reader.string();
702
+ continue;
703
+ }
704
+ case 2: {
705
+ if (tag !== 16) {
706
+ break;
707
+ }
708
+ message.auditEscrowId = reader.uint64();
709
+ continue;
710
+ }
711
+ case 3: {
712
+ if (tag !== 24) {
713
+ break;
714
+ }
715
+ message.reason = reader.int32();
716
+ continue;
717
+ }
718
+ case 4: {
719
+ if (tag !== 32) {
720
+ break;
721
+ }
722
+ message.faultAttribution = reader.int32();
723
+ continue;
724
+ }
725
+ case 5: {
726
+ if (tag !== 42) {
727
+ break;
728
+ }
729
+ message.evidenceHash = reader.bytes();
730
+ continue;
731
+ }
732
+ }
733
+ if ((tag & 7) === 4 || tag === 0) {
734
+ break;
735
+ }
736
+ reader.skip(tag & 7);
737
+ }
738
+ return message;
739
+ },
740
+ fromJSON(object) {
741
+ return {
742
+ authority: isSet(object.authority) ? globalThis.String(object.authority) : "",
743
+ auditEscrowId: isSet(object.audit_escrow_id) ? BigInt(object.audit_escrow_id) : 0n,
744
+ reason: isSet(object.reason) ? auditEscrowSettlementReasonFromJSON(object.reason) : 0,
745
+ faultAttribution: isSet(object.fault_attribution) ? faultAttributionFromJSON(object.fault_attribution) : 0,
746
+ evidenceHash: isSet(object.evidence_hash) ? bytesFromBase64(object.evidence_hash) : new Uint8Array(0)
747
+ };
748
+ },
749
+ toJSON(message) {
750
+ const obj = {};
751
+ if (message.authority !== "") {
752
+ obj.authority = message.authority;
753
+ }
754
+ if (message.auditEscrowId !== 0n) {
755
+ obj.audit_escrow_id = message.auditEscrowId.toString();
756
+ }
757
+ if (message.reason !== 0) {
758
+ obj.reason = auditEscrowSettlementReasonToJSON(message.reason);
759
+ }
760
+ if (message.faultAttribution !== 0) {
761
+ obj.fault_attribution = faultAttributionToJSON(message.faultAttribution);
762
+ }
763
+ if (message.evidenceHash.length !== 0) {
764
+ obj.evidence_hash = base64FromBytes(message.evidenceHash);
765
+ }
766
+ return obj;
767
+ },
768
+ fromPartial(object) {
769
+ const message = createBaseMsgSettleAuditEscrow();
770
+ message.authority = object.authority ?? "";
771
+ message.auditEscrowId = object.auditEscrowId !== void 0 && object.auditEscrowId !== null ? BigInt(object.auditEscrowId) : 0n;
772
+ message.reason = object.reason ?? 0;
773
+ message.faultAttribution = object.faultAttribution ?? 0;
774
+ message.evidenceHash = object.evidenceHash ?? new Uint8Array(0);
775
+ return message;
776
+ }
777
+ };
778
+ function createBaseMsgSettleAuditEscrowResponse() {
779
+ return {};
780
+ }
781
+ var MsgSettleAuditEscrowResponse = {
782
+ $type: "akash.verification.v1.MsgSettleAuditEscrowResponse",
783
+ encode(_, writer = new BinaryWriter()) {
784
+ return writer;
785
+ },
786
+ decode(input, length) {
787
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
788
+ const end = length === void 0 ? reader.len : reader.pos + length;
789
+ const message = createBaseMsgSettleAuditEscrowResponse();
790
+ while (reader.pos < end) {
791
+ const tag = reader.uint32();
792
+ switch (tag >>> 3) {
793
+ }
794
+ if ((tag & 7) === 4 || tag === 0) {
795
+ break;
796
+ }
797
+ reader.skip(tag & 7);
798
+ }
799
+ return message;
800
+ },
801
+ fromJSON(_) {
802
+ return {};
803
+ },
804
+ toJSON(_) {
805
+ const obj = {};
806
+ return obj;
807
+ },
808
+ fromPartial(_) {
809
+ const message = createBaseMsgSettleAuditEscrowResponse();
810
+ return message;
811
+ }
812
+ };
813
+ function createBaseMsgRevokeAttestation() {
814
+ return { provider: "", auditor: "", reason: 0, evidenceHash: new Uint8Array(0) };
815
+ }
816
+ var MsgRevokeAttestation = {
817
+ $type: "akash.verification.v1.MsgRevokeAttestation",
818
+ encode(message, writer = new BinaryWriter()) {
819
+ if (message.provider !== "") {
820
+ writer.uint32(10).string(message.provider);
821
+ }
822
+ if (message.auditor !== "") {
823
+ writer.uint32(18).string(message.auditor);
824
+ }
825
+ if (message.reason !== 0) {
826
+ writer.uint32(24).int32(message.reason);
827
+ }
828
+ if (message.evidenceHash.length !== 0) {
829
+ writer.uint32(34).bytes(message.evidenceHash);
830
+ }
831
+ return writer;
832
+ },
833
+ decode(input, length) {
834
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
835
+ const end = length === void 0 ? reader.len : reader.pos + length;
836
+ const message = createBaseMsgRevokeAttestation();
837
+ while (reader.pos < end) {
838
+ const tag = reader.uint32();
839
+ switch (tag >>> 3) {
840
+ case 1: {
841
+ if (tag !== 10) {
842
+ break;
843
+ }
844
+ message.provider = reader.string();
845
+ continue;
846
+ }
847
+ case 2: {
848
+ if (tag !== 18) {
849
+ break;
850
+ }
851
+ message.auditor = reader.string();
852
+ continue;
853
+ }
854
+ case 3: {
855
+ if (tag !== 24) {
856
+ break;
857
+ }
858
+ message.reason = reader.int32();
859
+ continue;
860
+ }
861
+ case 4: {
862
+ if (tag !== 34) {
863
+ break;
864
+ }
865
+ message.evidenceHash = reader.bytes();
866
+ continue;
867
+ }
868
+ }
869
+ if ((tag & 7) === 4 || tag === 0) {
870
+ break;
871
+ }
872
+ reader.skip(tag & 7);
873
+ }
874
+ return message;
875
+ },
876
+ fromJSON(object) {
877
+ return {
878
+ provider: isSet(object.provider) ? globalThis.String(object.provider) : "",
879
+ auditor: isSet(object.auditor) ? globalThis.String(object.auditor) : "",
880
+ reason: isSet(object.reason) ? attestationRevocationReasonFromJSON(object.reason) : 0,
881
+ evidenceHash: isSet(object.evidence_hash) ? bytesFromBase64(object.evidence_hash) : new Uint8Array(0)
882
+ };
883
+ },
884
+ toJSON(message) {
885
+ const obj = {};
886
+ if (message.provider !== "") {
887
+ obj.provider = message.provider;
888
+ }
889
+ if (message.auditor !== "") {
890
+ obj.auditor = message.auditor;
891
+ }
892
+ if (message.reason !== 0) {
893
+ obj.reason = attestationRevocationReasonToJSON(message.reason);
894
+ }
895
+ if (message.evidenceHash.length !== 0) {
896
+ obj.evidence_hash = base64FromBytes(message.evidenceHash);
897
+ }
898
+ return obj;
899
+ },
900
+ fromPartial(object) {
901
+ const message = createBaseMsgRevokeAttestation();
902
+ message.provider = object.provider ?? "";
903
+ message.auditor = object.auditor ?? "";
904
+ message.reason = object.reason ?? 0;
905
+ message.evidenceHash = object.evidenceHash ?? new Uint8Array(0);
906
+ return message;
907
+ }
908
+ };
909
+ function createBaseMsgRevokeAttestationResponse() {
910
+ return {};
911
+ }
912
+ var MsgRevokeAttestationResponse = {
913
+ $type: "akash.verification.v1.MsgRevokeAttestationResponse",
914
+ encode(_, writer = new BinaryWriter()) {
915
+ return writer;
916
+ },
917
+ decode(input, length) {
918
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
919
+ const end = length === void 0 ? reader.len : reader.pos + length;
920
+ const message = createBaseMsgRevokeAttestationResponse();
921
+ while (reader.pos < end) {
922
+ const tag = reader.uint32();
923
+ switch (tag >>> 3) {
924
+ }
925
+ if ((tag & 7) === 4 || tag === 0) {
926
+ break;
927
+ }
928
+ reader.skip(tag & 7);
929
+ }
930
+ return message;
931
+ },
932
+ fromJSON(_) {
933
+ return {};
934
+ },
935
+ toJSON(_) {
936
+ const obj = {};
937
+ return obj;
938
+ },
939
+ fromPartial(_) {
940
+ const message = createBaseMsgRevokeAttestationResponse();
941
+ return message;
942
+ }
943
+ };
944
+ function createBaseMsgRemoveAttestation() {
945
+ return { provider: "", auditor: "" };
946
+ }
947
+ var MsgRemoveAttestation = {
948
+ $type: "akash.verification.v1.MsgRemoveAttestation",
949
+ encode(message, writer = new BinaryWriter()) {
950
+ if (message.provider !== "") {
951
+ writer.uint32(10).string(message.provider);
952
+ }
953
+ if (message.auditor !== "") {
954
+ writer.uint32(18).string(message.auditor);
955
+ }
956
+ return writer;
957
+ },
958
+ decode(input, length) {
959
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
960
+ const end = length === void 0 ? reader.len : reader.pos + length;
961
+ const message = createBaseMsgRemoveAttestation();
962
+ while (reader.pos < end) {
963
+ const tag = reader.uint32();
964
+ switch (tag >>> 3) {
965
+ case 1: {
966
+ if (tag !== 10) {
967
+ break;
968
+ }
969
+ message.provider = reader.string();
970
+ continue;
971
+ }
972
+ case 2: {
973
+ if (tag !== 18) {
974
+ break;
975
+ }
976
+ message.auditor = reader.string();
977
+ continue;
978
+ }
979
+ }
980
+ if ((tag & 7) === 4 || tag === 0) {
981
+ break;
982
+ }
983
+ reader.skip(tag & 7);
984
+ }
985
+ return message;
986
+ },
987
+ fromJSON(object) {
988
+ return {
989
+ provider: isSet(object.provider) ? globalThis.String(object.provider) : "",
990
+ auditor: isSet(object.auditor) ? globalThis.String(object.auditor) : ""
991
+ };
992
+ },
993
+ toJSON(message) {
994
+ const obj = {};
995
+ if (message.provider !== "") {
996
+ obj.provider = message.provider;
997
+ }
998
+ if (message.auditor !== "") {
999
+ obj.auditor = message.auditor;
1000
+ }
1001
+ return obj;
1002
+ },
1003
+ fromPartial(object) {
1004
+ const message = createBaseMsgRemoveAttestation();
1005
+ message.provider = object.provider ?? "";
1006
+ message.auditor = object.auditor ?? "";
1007
+ return message;
1008
+ }
1009
+ };
1010
+ function createBaseMsgRemoveAttestationResponse() {
1011
+ return {};
1012
+ }
1013
+ var MsgRemoveAttestationResponse = {
1014
+ $type: "akash.verification.v1.MsgRemoveAttestationResponse",
1015
+ encode(_, writer = new BinaryWriter()) {
1016
+ return writer;
1017
+ },
1018
+ decode(input, length) {
1019
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1020
+ const end = length === void 0 ? reader.len : reader.pos + length;
1021
+ const message = createBaseMsgRemoveAttestationResponse();
1022
+ while (reader.pos < end) {
1023
+ const tag = reader.uint32();
1024
+ switch (tag >>> 3) {
1025
+ }
1026
+ if ((tag & 7) === 4 || tag === 0) {
1027
+ break;
1028
+ }
1029
+ reader.skip(tag & 7);
1030
+ }
1031
+ return message;
1032
+ },
1033
+ fromJSON(_) {
1034
+ return {};
1035
+ },
1036
+ toJSON(_) {
1037
+ const obj = {};
1038
+ return obj;
1039
+ },
1040
+ fromPartial(_) {
1041
+ const message = createBaseMsgRemoveAttestationResponse();
1042
+ return message;
1043
+ }
1044
+ };
1045
+ function createBaseMsgResignAuditor() {
1046
+ return { auditor: "" };
1047
+ }
1048
+ var MsgResignAuditor = {
1049
+ $type: "akash.verification.v1.MsgResignAuditor",
1050
+ encode(message, writer = new BinaryWriter()) {
1051
+ if (message.auditor !== "") {
1052
+ writer.uint32(10).string(message.auditor);
1053
+ }
1054
+ return writer;
1055
+ },
1056
+ decode(input, length) {
1057
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1058
+ const end = length === void 0 ? reader.len : reader.pos + length;
1059
+ const message = createBaseMsgResignAuditor();
1060
+ while (reader.pos < end) {
1061
+ const tag = reader.uint32();
1062
+ switch (tag >>> 3) {
1063
+ case 1: {
1064
+ if (tag !== 10) {
1065
+ break;
1066
+ }
1067
+ message.auditor = reader.string();
1068
+ continue;
1069
+ }
1070
+ }
1071
+ if ((tag & 7) === 4 || tag === 0) {
1072
+ break;
1073
+ }
1074
+ reader.skip(tag & 7);
1075
+ }
1076
+ return message;
1077
+ },
1078
+ fromJSON(object) {
1079
+ return { auditor: isSet(object.auditor) ? globalThis.String(object.auditor) : "" };
1080
+ },
1081
+ toJSON(message) {
1082
+ const obj = {};
1083
+ if (message.auditor !== "") {
1084
+ obj.auditor = message.auditor;
1085
+ }
1086
+ return obj;
1087
+ },
1088
+ fromPartial(object) {
1089
+ const message = createBaseMsgResignAuditor();
1090
+ message.auditor = object.auditor ?? "";
1091
+ return message;
1092
+ }
1093
+ };
1094
+ function createBaseMsgResignAuditorResponse() {
1095
+ return {};
1096
+ }
1097
+ var MsgResignAuditorResponse = {
1098
+ $type: "akash.verification.v1.MsgResignAuditorResponse",
1099
+ encode(_, writer = new BinaryWriter()) {
1100
+ return writer;
1101
+ },
1102
+ decode(input, length) {
1103
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1104
+ const end = length === void 0 ? reader.len : reader.pos + length;
1105
+ const message = createBaseMsgResignAuditorResponse();
1106
+ while (reader.pos < end) {
1107
+ const tag = reader.uint32();
1108
+ switch (tag >>> 3) {
1109
+ }
1110
+ if ((tag & 7) === 4 || tag === 0) {
1111
+ break;
1112
+ }
1113
+ reader.skip(tag & 7);
1114
+ }
1115
+ return message;
1116
+ },
1117
+ fromJSON(_) {
1118
+ return {};
1119
+ },
1120
+ toJSON(_) {
1121
+ const obj = {};
1122
+ return obj;
1123
+ },
1124
+ fromPartial(_) {
1125
+ const message = createBaseMsgResignAuditorResponse();
1126
+ return message;
1127
+ }
1128
+ };
1129
+ function createBaseMsgPostProviderBond() {
1130
+ return { provider: "", amount: void 0 };
1131
+ }
1132
+ var MsgPostProviderBond = {
1133
+ $type: "akash.verification.v1.MsgPostProviderBond",
1134
+ encode(message, writer = new BinaryWriter()) {
1135
+ if (message.provider !== "") {
1136
+ writer.uint32(10).string(message.provider);
1137
+ }
1138
+ if (message.amount !== void 0) {
1139
+ Coin.encode(message.amount, writer.uint32(18).fork()).join();
1140
+ }
1141
+ return writer;
1142
+ },
1143
+ decode(input, length) {
1144
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1145
+ const end = length === void 0 ? reader.len : reader.pos + length;
1146
+ const message = createBaseMsgPostProviderBond();
1147
+ while (reader.pos < end) {
1148
+ const tag = reader.uint32();
1149
+ switch (tag >>> 3) {
1150
+ case 1: {
1151
+ if (tag !== 10) {
1152
+ break;
1153
+ }
1154
+ message.provider = reader.string();
1155
+ continue;
1156
+ }
1157
+ case 2: {
1158
+ if (tag !== 18) {
1159
+ break;
1160
+ }
1161
+ message.amount = Coin.decode(reader, reader.uint32());
1162
+ continue;
1163
+ }
1164
+ }
1165
+ if ((tag & 7) === 4 || tag === 0) {
1166
+ break;
1167
+ }
1168
+ reader.skip(tag & 7);
1169
+ }
1170
+ return message;
1171
+ },
1172
+ fromJSON(object) {
1173
+ return {
1174
+ provider: isSet(object.provider) ? globalThis.String(object.provider) : "",
1175
+ amount: isSet(object.amount) ? Coin.fromJSON(object.amount) : void 0
1176
+ };
1177
+ },
1178
+ toJSON(message) {
1179
+ const obj = {};
1180
+ if (message.provider !== "") {
1181
+ obj.provider = message.provider;
1182
+ }
1183
+ if (message.amount !== void 0) {
1184
+ obj.amount = Coin.toJSON(message.amount);
1185
+ }
1186
+ return obj;
1187
+ },
1188
+ fromPartial(object) {
1189
+ const message = createBaseMsgPostProviderBond();
1190
+ message.provider = object.provider ?? "";
1191
+ message.amount = object.amount !== void 0 && object.amount !== null ? Coin.fromPartial(object.amount) : void 0;
1192
+ return message;
1193
+ }
1194
+ };
1195
+ function createBaseMsgPostProviderBondResponse() {
1196
+ return {};
1197
+ }
1198
+ var MsgPostProviderBondResponse = {
1199
+ $type: "akash.verification.v1.MsgPostProviderBondResponse",
1200
+ encode(_, writer = new BinaryWriter()) {
1201
+ return writer;
1202
+ },
1203
+ decode(input, length) {
1204
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1205
+ const end = length === void 0 ? reader.len : reader.pos + length;
1206
+ const message = createBaseMsgPostProviderBondResponse();
1207
+ while (reader.pos < end) {
1208
+ const tag = reader.uint32();
1209
+ switch (tag >>> 3) {
1210
+ }
1211
+ if ((tag & 7) === 4 || tag === 0) {
1212
+ break;
1213
+ }
1214
+ reader.skip(tag & 7);
1215
+ }
1216
+ return message;
1217
+ },
1218
+ fromJSON(_) {
1219
+ return {};
1220
+ },
1221
+ toJSON(_) {
1222
+ const obj = {};
1223
+ return obj;
1224
+ },
1225
+ fromPartial(_) {
1226
+ const message = createBaseMsgPostProviderBondResponse();
1227
+ return message;
1228
+ }
1229
+ };
1230
+ function createBaseMsgWithdrawProviderBond() {
1231
+ return { provider: "", amount: void 0 };
1232
+ }
1233
+ var MsgWithdrawProviderBond = {
1234
+ $type: "akash.verification.v1.MsgWithdrawProviderBond",
1235
+ encode(message, writer = new BinaryWriter()) {
1236
+ if (message.provider !== "") {
1237
+ writer.uint32(10).string(message.provider);
1238
+ }
1239
+ if (message.amount !== void 0) {
1240
+ Coin.encode(message.amount, writer.uint32(18).fork()).join();
1241
+ }
1242
+ return writer;
1243
+ },
1244
+ decode(input, length) {
1245
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1246
+ const end = length === void 0 ? reader.len : reader.pos + length;
1247
+ const message = createBaseMsgWithdrawProviderBond();
1248
+ while (reader.pos < end) {
1249
+ const tag = reader.uint32();
1250
+ switch (tag >>> 3) {
1251
+ case 1: {
1252
+ if (tag !== 10) {
1253
+ break;
1254
+ }
1255
+ message.provider = reader.string();
1256
+ continue;
1257
+ }
1258
+ case 2: {
1259
+ if (tag !== 18) {
1260
+ break;
1261
+ }
1262
+ message.amount = Coin.decode(reader, reader.uint32());
1263
+ continue;
1264
+ }
1265
+ }
1266
+ if ((tag & 7) === 4 || tag === 0) {
1267
+ break;
1268
+ }
1269
+ reader.skip(tag & 7);
1270
+ }
1271
+ return message;
1272
+ },
1273
+ fromJSON(object) {
1274
+ return {
1275
+ provider: isSet(object.provider) ? globalThis.String(object.provider) : "",
1276
+ amount: isSet(object.amount) ? Coin.fromJSON(object.amount) : void 0
1277
+ };
1278
+ },
1279
+ toJSON(message) {
1280
+ const obj = {};
1281
+ if (message.provider !== "") {
1282
+ obj.provider = message.provider;
1283
+ }
1284
+ if (message.amount !== void 0) {
1285
+ obj.amount = Coin.toJSON(message.amount);
1286
+ }
1287
+ return obj;
1288
+ },
1289
+ fromPartial(object) {
1290
+ const message = createBaseMsgWithdrawProviderBond();
1291
+ message.provider = object.provider ?? "";
1292
+ message.amount = object.amount !== void 0 && object.amount !== null ? Coin.fromPartial(object.amount) : void 0;
1293
+ return message;
1294
+ }
1295
+ };
1296
+ function createBaseMsgWithdrawProviderBondResponse() {
1297
+ return {};
1298
+ }
1299
+ var MsgWithdrawProviderBondResponse = {
1300
+ $type: "akash.verification.v1.MsgWithdrawProviderBondResponse",
1301
+ encode(_, writer = new BinaryWriter()) {
1302
+ return writer;
1303
+ },
1304
+ decode(input, length) {
1305
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1306
+ const end = length === void 0 ? reader.len : reader.pos + length;
1307
+ const message = createBaseMsgWithdrawProviderBondResponse();
1308
+ while (reader.pos < end) {
1309
+ const tag = reader.uint32();
1310
+ switch (tag >>> 3) {
1311
+ }
1312
+ if ((tag & 7) === 4 || tag === 0) {
1313
+ break;
1314
+ }
1315
+ reader.skip(tag & 7);
1316
+ }
1317
+ return message;
1318
+ },
1319
+ fromJSON(_) {
1320
+ return {};
1321
+ },
1322
+ toJSON(_) {
1323
+ const obj = {};
1324
+ return obj;
1325
+ },
1326
+ fromPartial(_) {
1327
+ const message = createBaseMsgWithdrawProviderBondResponse();
1328
+ return message;
1329
+ }
1330
+ };
1331
+ function createBaseMsgPostSnapshotHash() {
1332
+ return { provider: "", snapshotHash: new Uint8Array(0), resourceSummary: void 0, snapshotTimestamp: void 0 };
1333
+ }
1334
+ var MsgPostSnapshotHash = {
1335
+ $type: "akash.verification.v1.MsgPostSnapshotHash",
1336
+ encode(message, writer = new BinaryWriter()) {
1337
+ if (message.provider !== "") {
1338
+ writer.uint32(10).string(message.provider);
1339
+ }
1340
+ if (message.snapshotHash.length !== 0) {
1341
+ writer.uint32(18).bytes(message.snapshotHash);
1342
+ }
1343
+ if (message.resourceSummary !== void 0) {
1344
+ ResourceSummary.encode(message.resourceSummary, writer.uint32(26).fork()).join();
1345
+ }
1346
+ if (message.snapshotTimestamp !== void 0) {
1347
+ Timestamp.encode(toTimestamp(message.snapshotTimestamp), writer.uint32(34).fork()).join();
1348
+ }
1349
+ return writer;
1350
+ },
1351
+ decode(input, length) {
1352
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1353
+ const end = length === void 0 ? reader.len : reader.pos + length;
1354
+ const message = createBaseMsgPostSnapshotHash();
1355
+ while (reader.pos < end) {
1356
+ const tag = reader.uint32();
1357
+ switch (tag >>> 3) {
1358
+ case 1: {
1359
+ if (tag !== 10) {
1360
+ break;
1361
+ }
1362
+ message.provider = reader.string();
1363
+ continue;
1364
+ }
1365
+ case 2: {
1366
+ if (tag !== 18) {
1367
+ break;
1368
+ }
1369
+ message.snapshotHash = reader.bytes();
1370
+ continue;
1371
+ }
1372
+ case 3: {
1373
+ if (tag !== 26) {
1374
+ break;
1375
+ }
1376
+ message.resourceSummary = ResourceSummary.decode(reader, reader.uint32());
1377
+ continue;
1378
+ }
1379
+ case 4: {
1380
+ if (tag !== 34) {
1381
+ break;
1382
+ }
1383
+ message.snapshotTimestamp = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
1384
+ continue;
1385
+ }
1386
+ }
1387
+ if ((tag & 7) === 4 || tag === 0) {
1388
+ break;
1389
+ }
1390
+ reader.skip(tag & 7);
1391
+ }
1392
+ return message;
1393
+ },
1394
+ fromJSON(object) {
1395
+ return {
1396
+ provider: isSet(object.provider) ? globalThis.String(object.provider) : "",
1397
+ snapshotHash: isSet(object.snapshot_hash) ? bytesFromBase64(object.snapshot_hash) : new Uint8Array(0),
1398
+ resourceSummary: isSet(object.resource_summary) ? ResourceSummary.fromJSON(object.resource_summary) : void 0,
1399
+ snapshotTimestamp: isSet(object.snapshot_timestamp) ? fromJsonTimestamp(object.snapshot_timestamp) : void 0
1400
+ };
1401
+ },
1402
+ toJSON(message) {
1403
+ const obj = {};
1404
+ if (message.provider !== "") {
1405
+ obj.provider = message.provider;
1406
+ }
1407
+ if (message.snapshotHash.length !== 0) {
1408
+ obj.snapshot_hash = base64FromBytes(message.snapshotHash);
1409
+ }
1410
+ if (message.resourceSummary !== void 0) {
1411
+ obj.resource_summary = ResourceSummary.toJSON(message.resourceSummary);
1412
+ }
1413
+ if (message.snapshotTimestamp !== void 0) {
1414
+ obj.snapshot_timestamp = message.snapshotTimestamp.toISOString();
1415
+ }
1416
+ return obj;
1417
+ },
1418
+ fromPartial(object) {
1419
+ const message = createBaseMsgPostSnapshotHash();
1420
+ message.provider = object.provider ?? "";
1421
+ message.snapshotHash = object.snapshotHash ?? new Uint8Array(0);
1422
+ message.resourceSummary = object.resourceSummary !== void 0 && object.resourceSummary !== null ? ResourceSummary.fromPartial(object.resourceSummary) : void 0;
1423
+ message.snapshotTimestamp = object.snapshotTimestamp ?? void 0;
1424
+ return message;
1425
+ }
1426
+ };
1427
+ function createBaseMsgPostSnapshotHashResponse() {
1428
+ return {};
1429
+ }
1430
+ var MsgPostSnapshotHashResponse = {
1431
+ $type: "akash.verification.v1.MsgPostSnapshotHashResponse",
1432
+ encode(_, writer = new BinaryWriter()) {
1433
+ return writer;
1434
+ },
1435
+ decode(input, length) {
1436
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1437
+ const end = length === void 0 ? reader.len : reader.pos + length;
1438
+ const message = createBaseMsgPostSnapshotHashResponse();
1439
+ while (reader.pos < end) {
1440
+ const tag = reader.uint32();
1441
+ switch (tag >>> 3) {
1442
+ }
1443
+ if ((tag & 7) === 4 || tag === 0) {
1444
+ break;
1445
+ }
1446
+ reader.skip(tag & 7);
1447
+ }
1448
+ return message;
1449
+ },
1450
+ fromJSON(_) {
1451
+ return {};
1452
+ },
1453
+ toJSON(_) {
1454
+ const obj = {};
1455
+ return obj;
1456
+ },
1457
+ fromPartial(_) {
1458
+ const message = createBaseMsgPostSnapshotHashResponse();
1459
+ return message;
1460
+ }
1461
+ };
1462
+ function createBaseMsgRegisterAuditor() {
1463
+ return { authority: "", auditor: "", maxAttestationTier: 0, metadataHash: new Uint8Array(0) };
1464
+ }
1465
+ var MsgRegisterAuditor = {
1466
+ $type: "akash.verification.v1.MsgRegisterAuditor",
1467
+ encode(message, writer = new BinaryWriter()) {
1468
+ if (message.authority !== "") {
1469
+ writer.uint32(10).string(message.authority);
1470
+ }
1471
+ if (message.auditor !== "") {
1472
+ writer.uint32(18).string(message.auditor);
1473
+ }
1474
+ if (message.maxAttestationTier !== 0) {
1475
+ writer.uint32(24).int32(message.maxAttestationTier);
1476
+ }
1477
+ if (message.metadataHash.length !== 0) {
1478
+ writer.uint32(34).bytes(message.metadataHash);
1479
+ }
1480
+ return writer;
1481
+ },
1482
+ decode(input, length) {
1483
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1484
+ const end = length === void 0 ? reader.len : reader.pos + length;
1485
+ const message = createBaseMsgRegisterAuditor();
1486
+ while (reader.pos < end) {
1487
+ const tag = reader.uint32();
1488
+ switch (tag >>> 3) {
1489
+ case 1: {
1490
+ if (tag !== 10) {
1491
+ break;
1492
+ }
1493
+ message.authority = reader.string();
1494
+ continue;
1495
+ }
1496
+ case 2: {
1497
+ if (tag !== 18) {
1498
+ break;
1499
+ }
1500
+ message.auditor = reader.string();
1501
+ continue;
1502
+ }
1503
+ case 3: {
1504
+ if (tag !== 24) {
1505
+ break;
1506
+ }
1507
+ message.maxAttestationTier = reader.int32();
1508
+ continue;
1509
+ }
1510
+ case 4: {
1511
+ if (tag !== 34) {
1512
+ break;
1513
+ }
1514
+ message.metadataHash = reader.bytes();
1515
+ continue;
1516
+ }
1517
+ }
1518
+ if ((tag & 7) === 4 || tag === 0) {
1519
+ break;
1520
+ }
1521
+ reader.skip(tag & 7);
1522
+ }
1523
+ return message;
1524
+ },
1525
+ fromJSON(object) {
1526
+ return {
1527
+ authority: isSet(object.authority) ? globalThis.String(object.authority) : "",
1528
+ auditor: isSet(object.auditor) ? globalThis.String(object.auditor) : "",
1529
+ maxAttestationTier: isSet(object.max_attestation_tier) ? verificationTierFromJSON(object.max_attestation_tier) : 0,
1530
+ metadataHash: isSet(object.metadata_hash) ? bytesFromBase64(object.metadata_hash) : new Uint8Array(0)
1531
+ };
1532
+ },
1533
+ toJSON(message) {
1534
+ const obj = {};
1535
+ if (message.authority !== "") {
1536
+ obj.authority = message.authority;
1537
+ }
1538
+ if (message.auditor !== "") {
1539
+ obj.auditor = message.auditor;
1540
+ }
1541
+ if (message.maxAttestationTier !== 0) {
1542
+ obj.max_attestation_tier = verificationTierToJSON(message.maxAttestationTier);
1543
+ }
1544
+ if (message.metadataHash.length !== 0) {
1545
+ obj.metadata_hash = base64FromBytes(message.metadataHash);
1546
+ }
1547
+ return obj;
1548
+ },
1549
+ fromPartial(object) {
1550
+ const message = createBaseMsgRegisterAuditor();
1551
+ message.authority = object.authority ?? "";
1552
+ message.auditor = object.auditor ?? "";
1553
+ message.maxAttestationTier = object.maxAttestationTier ?? 0;
1554
+ message.metadataHash = object.metadataHash ?? new Uint8Array(0);
1555
+ return message;
1556
+ }
1557
+ };
1558
+ function createBaseMsgRegisterAuditorResponse() {
1559
+ return {};
1560
+ }
1561
+ var MsgRegisterAuditorResponse = {
1562
+ $type: "akash.verification.v1.MsgRegisterAuditorResponse",
1563
+ encode(_, writer = new BinaryWriter()) {
1564
+ return writer;
1565
+ },
1566
+ decode(input, length) {
1567
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1568
+ const end = length === void 0 ? reader.len : reader.pos + length;
1569
+ const message = createBaseMsgRegisterAuditorResponse();
1570
+ while (reader.pos < end) {
1571
+ const tag = reader.uint32();
1572
+ switch (tag >>> 3) {
1573
+ }
1574
+ if ((tag & 7) === 4 || tag === 0) {
1575
+ break;
1576
+ }
1577
+ reader.skip(tag & 7);
1578
+ }
1579
+ return message;
1580
+ },
1581
+ fromJSON(_) {
1582
+ return {};
1583
+ },
1584
+ toJSON(_) {
1585
+ const obj = {};
1586
+ return obj;
1587
+ },
1588
+ fromPartial(_) {
1589
+ const message = createBaseMsgRegisterAuditorResponse();
1590
+ return message;
1591
+ }
1592
+ };
1593
+ function createBaseMsgRenewAuditor() {
1594
+ return { authority: "", auditor: "" };
1595
+ }
1596
+ var MsgRenewAuditor = {
1597
+ $type: "akash.verification.v1.MsgRenewAuditor",
1598
+ encode(message, writer = new BinaryWriter()) {
1599
+ if (message.authority !== "") {
1600
+ writer.uint32(10).string(message.authority);
1601
+ }
1602
+ if (message.auditor !== "") {
1603
+ writer.uint32(18).string(message.auditor);
1604
+ }
1605
+ return writer;
1606
+ },
1607
+ decode(input, length) {
1608
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1609
+ const end = length === void 0 ? reader.len : reader.pos + length;
1610
+ const message = createBaseMsgRenewAuditor();
1611
+ while (reader.pos < end) {
1612
+ const tag = reader.uint32();
1613
+ switch (tag >>> 3) {
1614
+ case 1: {
1615
+ if (tag !== 10) {
1616
+ break;
1617
+ }
1618
+ message.authority = reader.string();
1619
+ continue;
1620
+ }
1621
+ case 2: {
1622
+ if (tag !== 18) {
1623
+ break;
1624
+ }
1625
+ message.auditor = reader.string();
1626
+ continue;
1627
+ }
1628
+ }
1629
+ if ((tag & 7) === 4 || tag === 0) {
1630
+ break;
1631
+ }
1632
+ reader.skip(tag & 7);
1633
+ }
1634
+ return message;
1635
+ },
1636
+ fromJSON(object) {
1637
+ return {
1638
+ authority: isSet(object.authority) ? globalThis.String(object.authority) : "",
1639
+ auditor: isSet(object.auditor) ? globalThis.String(object.auditor) : ""
1640
+ };
1641
+ },
1642
+ toJSON(message) {
1643
+ const obj = {};
1644
+ if (message.authority !== "") {
1645
+ obj.authority = message.authority;
1646
+ }
1647
+ if (message.auditor !== "") {
1648
+ obj.auditor = message.auditor;
1649
+ }
1650
+ return obj;
1651
+ },
1652
+ fromPartial(object) {
1653
+ const message = createBaseMsgRenewAuditor();
1654
+ message.authority = object.authority ?? "";
1655
+ message.auditor = object.auditor ?? "";
1656
+ return message;
1657
+ }
1658
+ };
1659
+ function createBaseMsgRenewAuditorResponse() {
1660
+ return {};
1661
+ }
1662
+ var MsgRenewAuditorResponse = {
1663
+ $type: "akash.verification.v1.MsgRenewAuditorResponse",
1664
+ encode(_, writer = new BinaryWriter()) {
1665
+ return writer;
1666
+ },
1667
+ decode(input, length) {
1668
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1669
+ const end = length === void 0 ? reader.len : reader.pos + length;
1670
+ const message = createBaseMsgRenewAuditorResponse();
1671
+ while (reader.pos < end) {
1672
+ const tag = reader.uint32();
1673
+ switch (tag >>> 3) {
1674
+ }
1675
+ if ((tag & 7) === 4 || tag === 0) {
1676
+ break;
1677
+ }
1678
+ reader.skip(tag & 7);
1679
+ }
1680
+ return message;
1681
+ },
1682
+ fromJSON(_) {
1683
+ return {};
1684
+ },
1685
+ toJSON(_) {
1686
+ const obj = {};
1687
+ return obj;
1688
+ },
1689
+ fromPartial(_) {
1690
+ const message = createBaseMsgRenewAuditorResponse();
1691
+ return message;
1692
+ }
1693
+ };
1694
+ function createBaseMsgRemoveAuditor() {
1695
+ return { authority: "", auditor: "" };
1696
+ }
1697
+ var MsgRemoveAuditor = {
1698
+ $type: "akash.verification.v1.MsgRemoveAuditor",
1699
+ encode(message, writer = new BinaryWriter()) {
1700
+ if (message.authority !== "") {
1701
+ writer.uint32(10).string(message.authority);
1702
+ }
1703
+ if (message.auditor !== "") {
1704
+ writer.uint32(18).string(message.auditor);
1705
+ }
1706
+ return writer;
1707
+ },
1708
+ decode(input, length) {
1709
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1710
+ const end = length === void 0 ? reader.len : reader.pos + length;
1711
+ const message = createBaseMsgRemoveAuditor();
1712
+ while (reader.pos < end) {
1713
+ const tag = reader.uint32();
1714
+ switch (tag >>> 3) {
1715
+ case 1: {
1716
+ if (tag !== 10) {
1717
+ break;
1718
+ }
1719
+ message.authority = reader.string();
1720
+ continue;
1721
+ }
1722
+ case 2: {
1723
+ if (tag !== 18) {
1724
+ break;
1725
+ }
1726
+ message.auditor = reader.string();
1727
+ continue;
1728
+ }
1729
+ }
1730
+ if ((tag & 7) === 4 || tag === 0) {
1731
+ break;
1732
+ }
1733
+ reader.skip(tag & 7);
1734
+ }
1735
+ return message;
1736
+ },
1737
+ fromJSON(object) {
1738
+ return {
1739
+ authority: isSet(object.authority) ? globalThis.String(object.authority) : "",
1740
+ auditor: isSet(object.auditor) ? globalThis.String(object.auditor) : ""
1741
+ };
1742
+ },
1743
+ toJSON(message) {
1744
+ const obj = {};
1745
+ if (message.authority !== "") {
1746
+ obj.authority = message.authority;
1747
+ }
1748
+ if (message.auditor !== "") {
1749
+ obj.auditor = message.auditor;
1750
+ }
1751
+ return obj;
1752
+ },
1753
+ fromPartial(object) {
1754
+ const message = createBaseMsgRemoveAuditor();
1755
+ message.authority = object.authority ?? "";
1756
+ message.auditor = object.auditor ?? "";
1757
+ return message;
1758
+ }
1759
+ };
1760
+ function createBaseMsgRemoveAuditorResponse() {
1761
+ return {};
1762
+ }
1763
+ var MsgRemoveAuditorResponse = {
1764
+ $type: "akash.verification.v1.MsgRemoveAuditorResponse",
1765
+ encode(_, writer = new BinaryWriter()) {
1766
+ return writer;
1767
+ },
1768
+ decode(input, length) {
1769
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1770
+ const end = length === void 0 ? reader.len : reader.pos + length;
1771
+ const message = createBaseMsgRemoveAuditorResponse();
1772
+ while (reader.pos < end) {
1773
+ const tag = reader.uint32();
1774
+ switch (tag >>> 3) {
1775
+ }
1776
+ if ((tag & 7) === 4 || tag === 0) {
1777
+ break;
1778
+ }
1779
+ reader.skip(tag & 7);
1780
+ }
1781
+ return message;
1782
+ },
1783
+ fromJSON(_) {
1784
+ return {};
1785
+ },
1786
+ toJSON(_) {
1787
+ const obj = {};
1788
+ return obj;
1789
+ },
1790
+ fromPartial(_) {
1791
+ const message = createBaseMsgRemoveAuditorResponse();
1792
+ return message;
1793
+ }
1794
+ };
1795
+ function createBaseMsgRevokeProviderAttestation() {
1796
+ return { authority: "", provider: "", auditor: "", reason: 0, faultAttribution: 0, evidenceHash: new Uint8Array(0) };
1797
+ }
1798
+ var MsgRevokeProviderAttestation = {
1799
+ $type: "akash.verification.v1.MsgRevokeProviderAttestation",
1800
+ encode(message, writer = new BinaryWriter()) {
1801
+ if (message.authority !== "") {
1802
+ writer.uint32(10).string(message.authority);
1803
+ }
1804
+ if (message.provider !== "") {
1805
+ writer.uint32(18).string(message.provider);
1806
+ }
1807
+ if (message.auditor !== "") {
1808
+ writer.uint32(26).string(message.auditor);
1809
+ }
1810
+ if (message.reason !== 0) {
1811
+ writer.uint32(32).int32(message.reason);
1812
+ }
1813
+ if (message.faultAttribution !== 0) {
1814
+ writer.uint32(40).int32(message.faultAttribution);
1815
+ }
1816
+ if (message.evidenceHash.length !== 0) {
1817
+ writer.uint32(50).bytes(message.evidenceHash);
1818
+ }
1819
+ return writer;
1820
+ },
1821
+ decode(input, length) {
1822
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1823
+ const end = length === void 0 ? reader.len : reader.pos + length;
1824
+ const message = createBaseMsgRevokeProviderAttestation();
1825
+ while (reader.pos < end) {
1826
+ const tag = reader.uint32();
1827
+ switch (tag >>> 3) {
1828
+ case 1: {
1829
+ if (tag !== 10) {
1830
+ break;
1831
+ }
1832
+ message.authority = reader.string();
1833
+ continue;
1834
+ }
1835
+ case 2: {
1836
+ if (tag !== 18) {
1837
+ break;
1838
+ }
1839
+ message.provider = reader.string();
1840
+ continue;
1841
+ }
1842
+ case 3: {
1843
+ if (tag !== 26) {
1844
+ break;
1845
+ }
1846
+ message.auditor = reader.string();
1847
+ continue;
1848
+ }
1849
+ case 4: {
1850
+ if (tag !== 32) {
1851
+ break;
1852
+ }
1853
+ message.reason = reader.int32();
1854
+ continue;
1855
+ }
1856
+ case 5: {
1857
+ if (tag !== 40) {
1858
+ break;
1859
+ }
1860
+ message.faultAttribution = reader.int32();
1861
+ continue;
1862
+ }
1863
+ case 6: {
1864
+ if (tag !== 50) {
1865
+ break;
1866
+ }
1867
+ message.evidenceHash = reader.bytes();
1868
+ continue;
1869
+ }
1870
+ }
1871
+ if ((tag & 7) === 4 || tag === 0) {
1872
+ break;
1873
+ }
1874
+ reader.skip(tag & 7);
1875
+ }
1876
+ return message;
1877
+ },
1878
+ fromJSON(object) {
1879
+ return {
1880
+ authority: isSet(object.authority) ? globalThis.String(object.authority) : "",
1881
+ provider: isSet(object.provider) ? globalThis.String(object.provider) : "",
1882
+ auditor: isSet(object.auditor) ? globalThis.String(object.auditor) : "",
1883
+ reason: isSet(object.reason) ? governanceAttestationReasonFromJSON(object.reason) : 0,
1884
+ faultAttribution: isSet(object.fault_attribution) ? faultAttributionFromJSON(object.fault_attribution) : 0,
1885
+ evidenceHash: isSet(object.evidence_hash) ? bytesFromBase64(object.evidence_hash) : new Uint8Array(0)
1886
+ };
1887
+ },
1888
+ toJSON(message) {
1889
+ const obj = {};
1890
+ if (message.authority !== "") {
1891
+ obj.authority = message.authority;
1892
+ }
1893
+ if (message.provider !== "") {
1894
+ obj.provider = message.provider;
1895
+ }
1896
+ if (message.auditor !== "") {
1897
+ obj.auditor = message.auditor;
1898
+ }
1899
+ if (message.reason !== 0) {
1900
+ obj.reason = governanceAttestationReasonToJSON(message.reason);
1901
+ }
1902
+ if (message.faultAttribution !== 0) {
1903
+ obj.fault_attribution = faultAttributionToJSON(message.faultAttribution);
1904
+ }
1905
+ if (message.evidenceHash.length !== 0) {
1906
+ obj.evidence_hash = base64FromBytes(message.evidenceHash);
1907
+ }
1908
+ return obj;
1909
+ },
1910
+ fromPartial(object) {
1911
+ const message = createBaseMsgRevokeProviderAttestation();
1912
+ message.authority = object.authority ?? "";
1913
+ message.provider = object.provider ?? "";
1914
+ message.auditor = object.auditor ?? "";
1915
+ message.reason = object.reason ?? 0;
1916
+ message.faultAttribution = object.faultAttribution ?? 0;
1917
+ message.evidenceHash = object.evidenceHash ?? new Uint8Array(0);
1918
+ return message;
1919
+ }
1920
+ };
1921
+ function createBaseMsgRevokeProviderAttestationResponse() {
1922
+ return {};
1923
+ }
1924
+ var MsgRevokeProviderAttestationResponse = {
1925
+ $type: "akash.verification.v1.MsgRevokeProviderAttestationResponse",
1926
+ encode(_, writer = new BinaryWriter()) {
1927
+ return writer;
1928
+ },
1929
+ decode(input, length) {
1930
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1931
+ const end = length === void 0 ? reader.len : reader.pos + length;
1932
+ const message = createBaseMsgRevokeProviderAttestationResponse();
1933
+ while (reader.pos < end) {
1934
+ const tag = reader.uint32();
1935
+ switch (tag >>> 3) {
1936
+ }
1937
+ if ((tag & 7) === 4 || tag === 0) {
1938
+ break;
1939
+ }
1940
+ reader.skip(tag & 7);
1941
+ }
1942
+ return message;
1943
+ },
1944
+ fromJSON(_) {
1945
+ return {};
1946
+ },
1947
+ toJSON(_) {
1948
+ const obj = {};
1949
+ return obj;
1950
+ },
1951
+ fromPartial(_) {
1952
+ const message = createBaseMsgRevokeProviderAttestationResponse();
1953
+ return message;
1954
+ }
1955
+ };
1956
+ function createBaseMsgRevokeAllProviderAttestations() {
1957
+ return { authority: "", provider: "", reason: 0, faultAttribution: 0, evidenceHash: new Uint8Array(0) };
1958
+ }
1959
+ var MsgRevokeAllProviderAttestations = {
1960
+ $type: "akash.verification.v1.MsgRevokeAllProviderAttestations",
1961
+ encode(message, writer = new BinaryWriter()) {
1962
+ if (message.authority !== "") {
1963
+ writer.uint32(10).string(message.authority);
1964
+ }
1965
+ if (message.provider !== "") {
1966
+ writer.uint32(18).string(message.provider);
1967
+ }
1968
+ if (message.reason !== 0) {
1969
+ writer.uint32(24).int32(message.reason);
1970
+ }
1971
+ if (message.faultAttribution !== 0) {
1972
+ writer.uint32(32).int32(message.faultAttribution);
1973
+ }
1974
+ if (message.evidenceHash.length !== 0) {
1975
+ writer.uint32(42).bytes(message.evidenceHash);
1976
+ }
1977
+ return writer;
1978
+ },
1979
+ decode(input, length) {
1980
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1981
+ const end = length === void 0 ? reader.len : reader.pos + length;
1982
+ const message = createBaseMsgRevokeAllProviderAttestations();
1983
+ while (reader.pos < end) {
1984
+ const tag = reader.uint32();
1985
+ switch (tag >>> 3) {
1986
+ case 1: {
1987
+ if (tag !== 10) {
1988
+ break;
1989
+ }
1990
+ message.authority = reader.string();
1991
+ continue;
1992
+ }
1993
+ case 2: {
1994
+ if (tag !== 18) {
1995
+ break;
1996
+ }
1997
+ message.provider = reader.string();
1998
+ continue;
1999
+ }
2000
+ case 3: {
2001
+ if (tag !== 24) {
2002
+ break;
2003
+ }
2004
+ message.reason = reader.int32();
2005
+ continue;
2006
+ }
2007
+ case 4: {
2008
+ if (tag !== 32) {
2009
+ break;
2010
+ }
2011
+ message.faultAttribution = reader.int32();
2012
+ continue;
2013
+ }
2014
+ case 5: {
2015
+ if (tag !== 42) {
2016
+ break;
2017
+ }
2018
+ message.evidenceHash = reader.bytes();
2019
+ continue;
2020
+ }
2021
+ }
2022
+ if ((tag & 7) === 4 || tag === 0) {
2023
+ break;
2024
+ }
2025
+ reader.skip(tag & 7);
2026
+ }
2027
+ return message;
2028
+ },
2029
+ fromJSON(object) {
2030
+ return {
2031
+ authority: isSet(object.authority) ? globalThis.String(object.authority) : "",
2032
+ provider: isSet(object.provider) ? globalThis.String(object.provider) : "",
2033
+ reason: isSet(object.reason) ? governanceAttestationReasonFromJSON(object.reason) : 0,
2034
+ faultAttribution: isSet(object.fault_attribution) ? faultAttributionFromJSON(object.fault_attribution) : 0,
2035
+ evidenceHash: isSet(object.evidence_hash) ? bytesFromBase64(object.evidence_hash) : new Uint8Array(0)
2036
+ };
2037
+ },
2038
+ toJSON(message) {
2039
+ const obj = {};
2040
+ if (message.authority !== "") {
2041
+ obj.authority = message.authority;
2042
+ }
2043
+ if (message.provider !== "") {
2044
+ obj.provider = message.provider;
2045
+ }
2046
+ if (message.reason !== 0) {
2047
+ obj.reason = governanceAttestationReasonToJSON(message.reason);
2048
+ }
2049
+ if (message.faultAttribution !== 0) {
2050
+ obj.fault_attribution = faultAttributionToJSON(message.faultAttribution);
2051
+ }
2052
+ if (message.evidenceHash.length !== 0) {
2053
+ obj.evidence_hash = base64FromBytes(message.evidenceHash);
2054
+ }
2055
+ return obj;
2056
+ },
2057
+ fromPartial(object) {
2058
+ const message = createBaseMsgRevokeAllProviderAttestations();
2059
+ message.authority = object.authority ?? "";
2060
+ message.provider = object.provider ?? "";
2061
+ message.reason = object.reason ?? 0;
2062
+ message.faultAttribution = object.faultAttribution ?? 0;
2063
+ message.evidenceHash = object.evidenceHash ?? new Uint8Array(0);
2064
+ return message;
2065
+ }
2066
+ };
2067
+ function createBaseMsgRevokeAllProviderAttestationsResponse() {
2068
+ return {};
2069
+ }
2070
+ var MsgRevokeAllProviderAttestationsResponse = {
2071
+ $type: "akash.verification.v1.MsgRevokeAllProviderAttestationsResponse",
2072
+ encode(_, writer = new BinaryWriter()) {
2073
+ return writer;
2074
+ },
2075
+ decode(input, length) {
2076
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2077
+ const end = length === void 0 ? reader.len : reader.pos + length;
2078
+ const message = createBaseMsgRevokeAllProviderAttestationsResponse();
2079
+ while (reader.pos < end) {
2080
+ const tag = reader.uint32();
2081
+ switch (tag >>> 3) {
2082
+ }
2083
+ if ((tag & 7) === 4 || tag === 0) {
2084
+ break;
2085
+ }
2086
+ reader.skip(tag & 7);
2087
+ }
2088
+ return message;
2089
+ },
2090
+ fromJSON(_) {
2091
+ return {};
2092
+ },
2093
+ toJSON(_) {
2094
+ const obj = {};
2095
+ return obj;
2096
+ },
2097
+ fromPartial(_) {
2098
+ const message = createBaseMsgRevokeAllProviderAttestationsResponse();
2099
+ return message;
2100
+ }
2101
+ };
2102
+ function createBaseMsgRevokeAuditorAttestations() {
2103
+ return { authority: "", auditor: "", reason: 0, faultAttribution: 0, evidenceHash: new Uint8Array(0) };
2104
+ }
2105
+ var MsgRevokeAuditorAttestations = {
2106
+ $type: "akash.verification.v1.MsgRevokeAuditorAttestations",
2107
+ encode(message, writer = new BinaryWriter()) {
2108
+ if (message.authority !== "") {
2109
+ writer.uint32(10).string(message.authority);
2110
+ }
2111
+ if (message.auditor !== "") {
2112
+ writer.uint32(18).string(message.auditor);
2113
+ }
2114
+ if (message.reason !== 0) {
2115
+ writer.uint32(24).int32(message.reason);
2116
+ }
2117
+ if (message.faultAttribution !== 0) {
2118
+ writer.uint32(32).int32(message.faultAttribution);
2119
+ }
2120
+ if (message.evidenceHash.length !== 0) {
2121
+ writer.uint32(42).bytes(message.evidenceHash);
2122
+ }
2123
+ return writer;
2124
+ },
2125
+ decode(input, length) {
2126
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2127
+ const end = length === void 0 ? reader.len : reader.pos + length;
2128
+ const message = createBaseMsgRevokeAuditorAttestations();
2129
+ while (reader.pos < end) {
2130
+ const tag = reader.uint32();
2131
+ switch (tag >>> 3) {
2132
+ case 1: {
2133
+ if (tag !== 10) {
2134
+ break;
2135
+ }
2136
+ message.authority = reader.string();
2137
+ continue;
2138
+ }
2139
+ case 2: {
2140
+ if (tag !== 18) {
2141
+ break;
2142
+ }
2143
+ message.auditor = reader.string();
2144
+ continue;
2145
+ }
2146
+ case 3: {
2147
+ if (tag !== 24) {
2148
+ break;
2149
+ }
2150
+ message.reason = reader.int32();
2151
+ continue;
2152
+ }
2153
+ case 4: {
2154
+ if (tag !== 32) {
2155
+ break;
2156
+ }
2157
+ message.faultAttribution = reader.int32();
2158
+ continue;
2159
+ }
2160
+ case 5: {
2161
+ if (tag !== 42) {
2162
+ break;
2163
+ }
2164
+ message.evidenceHash = reader.bytes();
2165
+ continue;
2166
+ }
2167
+ }
2168
+ if ((tag & 7) === 4 || tag === 0) {
2169
+ break;
2170
+ }
2171
+ reader.skip(tag & 7);
2172
+ }
2173
+ return message;
2174
+ },
2175
+ fromJSON(object) {
2176
+ return {
2177
+ authority: isSet(object.authority) ? globalThis.String(object.authority) : "",
2178
+ auditor: isSet(object.auditor) ? globalThis.String(object.auditor) : "",
2179
+ reason: isSet(object.reason) ? governanceAttestationReasonFromJSON(object.reason) : 0,
2180
+ faultAttribution: isSet(object.fault_attribution) ? faultAttributionFromJSON(object.fault_attribution) : 0,
2181
+ evidenceHash: isSet(object.evidence_hash) ? bytesFromBase64(object.evidence_hash) : new Uint8Array(0)
2182
+ };
2183
+ },
2184
+ toJSON(message) {
2185
+ const obj = {};
2186
+ if (message.authority !== "") {
2187
+ obj.authority = message.authority;
2188
+ }
2189
+ if (message.auditor !== "") {
2190
+ obj.auditor = message.auditor;
2191
+ }
2192
+ if (message.reason !== 0) {
2193
+ obj.reason = governanceAttestationReasonToJSON(message.reason);
2194
+ }
2195
+ if (message.faultAttribution !== 0) {
2196
+ obj.fault_attribution = faultAttributionToJSON(message.faultAttribution);
2197
+ }
2198
+ if (message.evidenceHash.length !== 0) {
2199
+ obj.evidence_hash = base64FromBytes(message.evidenceHash);
2200
+ }
2201
+ return obj;
2202
+ },
2203
+ fromPartial(object) {
2204
+ const message = createBaseMsgRevokeAuditorAttestations();
2205
+ message.authority = object.authority ?? "";
2206
+ message.auditor = object.auditor ?? "";
2207
+ message.reason = object.reason ?? 0;
2208
+ message.faultAttribution = object.faultAttribution ?? 0;
2209
+ message.evidenceHash = object.evidenceHash ?? new Uint8Array(0);
2210
+ return message;
2211
+ }
2212
+ };
2213
+ function createBaseMsgRevokeAuditorAttestationsResponse() {
2214
+ return {};
2215
+ }
2216
+ var MsgRevokeAuditorAttestationsResponse = {
2217
+ $type: "akash.verification.v1.MsgRevokeAuditorAttestationsResponse",
2218
+ encode(_, writer = new BinaryWriter()) {
2219
+ return writer;
2220
+ },
2221
+ decode(input, length) {
2222
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2223
+ const end = length === void 0 ? reader.len : reader.pos + length;
2224
+ const message = createBaseMsgRevokeAuditorAttestationsResponse();
2225
+ while (reader.pos < end) {
2226
+ const tag = reader.uint32();
2227
+ switch (tag >>> 3) {
2228
+ }
2229
+ if ((tag & 7) === 4 || tag === 0) {
2230
+ break;
2231
+ }
2232
+ reader.skip(tag & 7);
2233
+ }
2234
+ return message;
2235
+ },
2236
+ fromJSON(_) {
2237
+ return {};
2238
+ },
2239
+ toJSON(_) {
2240
+ const obj = {};
2241
+ return obj;
2242
+ },
2243
+ fromPartial(_) {
2244
+ const message = createBaseMsgRevokeAuditorAttestationsResponse();
2245
+ return message;
2246
+ }
2247
+ };
2248
+ function createBaseMsgResolveDiscrepancy() {
2249
+ return {
2250
+ authority: "",
2251
+ discrepancyId: 0n,
2252
+ vindicatedAuditor: "",
2253
+ slashAuditorA: false,
2254
+ slashAuditorB: false,
2255
+ reason: 0,
2256
+ faultAttribution: 0,
2257
+ evidenceHash: new Uint8Array(0)
2258
+ };
2259
+ }
2260
+ var MsgResolveDiscrepancy = {
2261
+ $type: "akash.verification.v1.MsgResolveDiscrepancy",
2262
+ encode(message, writer = new BinaryWriter()) {
2263
+ if (message.authority !== "") {
2264
+ writer.uint32(10).string(message.authority);
2265
+ }
2266
+ if (message.discrepancyId !== 0n) {
2267
+ if (BigInt.asUintN(64, message.discrepancyId) !== message.discrepancyId) {
2268
+ throw new globalThis.Error("value provided for field message.discrepancyId of type uint64 too large");
2269
+ }
2270
+ writer.uint32(16).uint64(message.discrepancyId);
2271
+ }
2272
+ if (message.vindicatedAuditor !== "") {
2273
+ writer.uint32(26).string(message.vindicatedAuditor);
2274
+ }
2275
+ if (message.slashAuditorA !== false) {
2276
+ writer.uint32(32).bool(message.slashAuditorA);
2277
+ }
2278
+ if (message.slashAuditorB !== false) {
2279
+ writer.uint32(40).bool(message.slashAuditorB);
2280
+ }
2281
+ if (message.reason !== 0) {
2282
+ writer.uint32(48).int32(message.reason);
2283
+ }
2284
+ if (message.faultAttribution !== 0) {
2285
+ writer.uint32(56).int32(message.faultAttribution);
2286
+ }
2287
+ if (message.evidenceHash.length !== 0) {
2288
+ writer.uint32(66).bytes(message.evidenceHash);
2289
+ }
2290
+ return writer;
2291
+ },
2292
+ decode(input, length) {
2293
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2294
+ const end = length === void 0 ? reader.len : reader.pos + length;
2295
+ const message = createBaseMsgResolveDiscrepancy();
2296
+ while (reader.pos < end) {
2297
+ const tag = reader.uint32();
2298
+ switch (tag >>> 3) {
2299
+ case 1: {
2300
+ if (tag !== 10) {
2301
+ break;
2302
+ }
2303
+ message.authority = reader.string();
2304
+ continue;
2305
+ }
2306
+ case 2: {
2307
+ if (tag !== 16) {
2308
+ break;
2309
+ }
2310
+ message.discrepancyId = reader.uint64();
2311
+ continue;
2312
+ }
2313
+ case 3: {
2314
+ if (tag !== 26) {
2315
+ break;
2316
+ }
2317
+ message.vindicatedAuditor = reader.string();
2318
+ continue;
2319
+ }
2320
+ case 4: {
2321
+ if (tag !== 32) {
2322
+ break;
2323
+ }
2324
+ message.slashAuditorA = reader.bool();
2325
+ continue;
2326
+ }
2327
+ case 5: {
2328
+ if (tag !== 40) {
2329
+ break;
2330
+ }
2331
+ message.slashAuditorB = reader.bool();
2332
+ continue;
2333
+ }
2334
+ case 6: {
2335
+ if (tag !== 48) {
2336
+ break;
2337
+ }
2338
+ message.reason = reader.int32();
2339
+ continue;
2340
+ }
2341
+ case 7: {
2342
+ if (tag !== 56) {
2343
+ break;
2344
+ }
2345
+ message.faultAttribution = reader.int32();
2346
+ continue;
2347
+ }
2348
+ case 8: {
2349
+ if (tag !== 66) {
2350
+ break;
2351
+ }
2352
+ message.evidenceHash = reader.bytes();
2353
+ continue;
2354
+ }
2355
+ }
2356
+ if ((tag & 7) === 4 || tag === 0) {
2357
+ break;
2358
+ }
2359
+ reader.skip(tag & 7);
2360
+ }
2361
+ return message;
2362
+ },
2363
+ fromJSON(object) {
2364
+ return {
2365
+ authority: isSet(object.authority) ? globalThis.String(object.authority) : "",
2366
+ discrepancyId: isSet(object.discrepancy_id) ? BigInt(object.discrepancy_id) : 0n,
2367
+ vindicatedAuditor: isSet(object.vindicated_auditor) ? globalThis.String(object.vindicated_auditor) : "",
2368
+ slashAuditorA: isSet(object.slash_auditor_a) ? globalThis.Boolean(object.slash_auditor_a) : false,
2369
+ slashAuditorB: isSet(object.slash_auditor_b) ? globalThis.Boolean(object.slash_auditor_b) : false,
2370
+ reason: isSet(object.reason) ? discrepancyResolutionReasonFromJSON(object.reason) : 0,
2371
+ faultAttribution: isSet(object.fault_attribution) ? faultAttributionFromJSON(object.fault_attribution) : 0,
2372
+ evidenceHash: isSet(object.evidence_hash) ? bytesFromBase64(object.evidence_hash) : new Uint8Array(0)
2373
+ };
2374
+ },
2375
+ toJSON(message) {
2376
+ const obj = {};
2377
+ if (message.authority !== "") {
2378
+ obj.authority = message.authority;
2379
+ }
2380
+ if (message.discrepancyId !== 0n) {
2381
+ obj.discrepancy_id = message.discrepancyId.toString();
2382
+ }
2383
+ if (message.vindicatedAuditor !== "") {
2384
+ obj.vindicated_auditor = message.vindicatedAuditor;
2385
+ }
2386
+ if (message.slashAuditorA !== false) {
2387
+ obj.slash_auditor_a = message.slashAuditorA;
2388
+ }
2389
+ if (message.slashAuditorB !== false) {
2390
+ obj.slash_auditor_b = message.slashAuditorB;
2391
+ }
2392
+ if (message.reason !== 0) {
2393
+ obj.reason = discrepancyResolutionReasonToJSON(message.reason);
2394
+ }
2395
+ if (message.faultAttribution !== 0) {
2396
+ obj.fault_attribution = faultAttributionToJSON(message.faultAttribution);
2397
+ }
2398
+ if (message.evidenceHash.length !== 0) {
2399
+ obj.evidence_hash = base64FromBytes(message.evidenceHash);
2400
+ }
2401
+ return obj;
2402
+ },
2403
+ fromPartial(object) {
2404
+ const message = createBaseMsgResolveDiscrepancy();
2405
+ message.authority = object.authority ?? "";
2406
+ message.discrepancyId = object.discrepancyId !== void 0 && object.discrepancyId !== null ? BigInt(object.discrepancyId) : 0n;
2407
+ message.vindicatedAuditor = object.vindicatedAuditor ?? "";
2408
+ message.slashAuditorA = object.slashAuditorA ?? false;
2409
+ message.slashAuditorB = object.slashAuditorB ?? false;
2410
+ message.reason = object.reason ?? 0;
2411
+ message.faultAttribution = object.faultAttribution ?? 0;
2412
+ message.evidenceHash = object.evidenceHash ?? new Uint8Array(0);
2413
+ return message;
2414
+ }
2415
+ };
2416
+ function createBaseMsgResolveDiscrepancyResponse() {
2417
+ return {};
2418
+ }
2419
+ var MsgResolveDiscrepancyResponse = {
2420
+ $type: "akash.verification.v1.MsgResolveDiscrepancyResponse",
2421
+ encode(_, writer = new BinaryWriter()) {
2422
+ return writer;
2423
+ },
2424
+ decode(input, length) {
2425
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2426
+ const end = length === void 0 ? reader.len : reader.pos + length;
2427
+ const message = createBaseMsgResolveDiscrepancyResponse();
2428
+ while (reader.pos < end) {
2429
+ const tag = reader.uint32();
2430
+ switch (tag >>> 3) {
2431
+ }
2432
+ if ((tag & 7) === 4 || tag === 0) {
2433
+ break;
2434
+ }
2435
+ reader.skip(tag & 7);
2436
+ }
2437
+ return message;
2438
+ },
2439
+ fromJSON(_) {
2440
+ return {};
2441
+ },
2442
+ toJSON(_) {
2443
+ const obj = {};
2444
+ return obj;
2445
+ },
2446
+ fromPartial(_) {
2447
+ const message = createBaseMsgResolveDiscrepancyResponse();
2448
+ return message;
2449
+ }
2450
+ };
2451
+ function createBaseMsgSlashProviderBond() {
2452
+ return { authority: "", provider: "", slashFraction: "", reason: 0, evidenceHash: new Uint8Array(0) };
2453
+ }
2454
+ var _MsgSlashProviderBond = {
2455
+ $type: "akash.verification.v1.MsgSlashProviderBond",
2456
+ encode(message, writer = new BinaryWriter()) {
2457
+ if (message.authority !== "") {
2458
+ writer.uint32(10).string(message.authority);
2459
+ }
2460
+ if (message.provider !== "") {
2461
+ writer.uint32(18).string(message.provider);
2462
+ }
2463
+ if (message.slashFraction !== "") {
2464
+ writer.uint32(26).string(message.slashFraction);
2465
+ }
2466
+ if (message.reason !== 0) {
2467
+ writer.uint32(32).int32(message.reason);
2468
+ }
2469
+ if (message.evidenceHash.length !== 0) {
2470
+ writer.uint32(42).bytes(message.evidenceHash);
2471
+ }
2472
+ return writer;
2473
+ },
2474
+ decode(input, length) {
2475
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2476
+ const end = length === void 0 ? reader.len : reader.pos + length;
2477
+ const message = createBaseMsgSlashProviderBond();
2478
+ while (reader.pos < end) {
2479
+ const tag = reader.uint32();
2480
+ switch (tag >>> 3) {
2481
+ case 1: {
2482
+ if (tag !== 10) {
2483
+ break;
2484
+ }
2485
+ message.authority = reader.string();
2486
+ continue;
2487
+ }
2488
+ case 2: {
2489
+ if (tag !== 18) {
2490
+ break;
2491
+ }
2492
+ message.provider = reader.string();
2493
+ continue;
2494
+ }
2495
+ case 3: {
2496
+ if (tag !== 26) {
2497
+ break;
2498
+ }
2499
+ message.slashFraction = reader.string();
2500
+ continue;
2501
+ }
2502
+ case 4: {
2503
+ if (tag !== 32) {
2504
+ break;
2505
+ }
2506
+ message.reason = reader.int32();
2507
+ continue;
2508
+ }
2509
+ case 5: {
2510
+ if (tag !== 42) {
2511
+ break;
2512
+ }
2513
+ message.evidenceHash = reader.bytes();
2514
+ continue;
2515
+ }
2516
+ }
2517
+ if ((tag & 7) === 4 || tag === 0) {
2518
+ break;
2519
+ }
2520
+ reader.skip(tag & 7);
2521
+ }
2522
+ return message;
2523
+ },
2524
+ fromJSON(object) {
2525
+ return {
2526
+ authority: isSet(object.authority) ? globalThis.String(object.authority) : "",
2527
+ provider: isSet(object.provider) ? globalThis.String(object.provider) : "",
2528
+ slashFraction: isSet(object.slash_fraction) ? globalThis.String(object.slash_fraction) : "",
2529
+ reason: isSet(object.reason) ? providerBondSlashReasonFromJSON(object.reason) : 0,
2530
+ evidenceHash: isSet(object.evidence_hash) ? bytesFromBase64(object.evidence_hash) : new Uint8Array(0)
2531
+ };
2532
+ },
2533
+ toJSON(message) {
2534
+ const obj = {};
2535
+ if (message.authority !== "") {
2536
+ obj.authority = message.authority;
2537
+ }
2538
+ if (message.provider !== "") {
2539
+ obj.provider = message.provider;
2540
+ }
2541
+ if (message.slashFraction !== "") {
2542
+ obj.slash_fraction = message.slashFraction;
2543
+ }
2544
+ if (message.reason !== 0) {
2545
+ obj.reason = providerBondSlashReasonToJSON(message.reason);
2546
+ }
2547
+ if (message.evidenceHash.length !== 0) {
2548
+ obj.evidence_hash = base64FromBytes(message.evidenceHash);
2549
+ }
2550
+ return obj;
2551
+ },
2552
+ fromPartial(object) {
2553
+ const message = createBaseMsgSlashProviderBond();
2554
+ message.authority = object.authority ?? "";
2555
+ message.provider = object.provider ?? "";
2556
+ message.slashFraction = object.slashFraction ?? "";
2557
+ message.reason = object.reason ?? 0;
2558
+ message.evidenceHash = object.evidenceHash ?? new Uint8Array(0);
2559
+ return message;
2560
+ }
2561
+ };
2562
+ function createBaseMsgSlashProviderBondResponse() {
2563
+ return {};
2564
+ }
2565
+ var MsgSlashProviderBondResponse = {
2566
+ $type: "akash.verification.v1.MsgSlashProviderBondResponse",
2567
+ encode(_, writer = new BinaryWriter()) {
2568
+ return writer;
2569
+ },
2570
+ decode(input, length) {
2571
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2572
+ const end = length === void 0 ? reader.len : reader.pos + length;
2573
+ const message = createBaseMsgSlashProviderBondResponse();
2574
+ while (reader.pos < end) {
2575
+ const tag = reader.uint32();
2576
+ switch (tag >>> 3) {
2577
+ }
2578
+ if ((tag & 7) === 4 || tag === 0) {
2579
+ break;
2580
+ }
2581
+ reader.skip(tag & 7);
2582
+ }
2583
+ return message;
2584
+ },
2585
+ fromJSON(_) {
2586
+ return {};
2587
+ },
2588
+ toJSON(_) {
2589
+ const obj = {};
2590
+ return obj;
2591
+ },
2592
+ fromPartial(_) {
2593
+ const message = createBaseMsgSlashProviderBondResponse();
2594
+ return message;
2595
+ }
2596
+ };
2597
+ function createBaseMsgUpdateParams() {
2598
+ return { authority: "", params: void 0 };
2599
+ }
2600
+ var MsgUpdateParams = {
2601
+ $type: "akash.verification.v1.MsgUpdateParams",
2602
+ encode(message, writer = new BinaryWriter()) {
2603
+ if (message.authority !== "") {
2604
+ writer.uint32(10).string(message.authority);
2605
+ }
2606
+ if (message.params !== void 0) {
2607
+ Params.encode(message.params, writer.uint32(18).fork()).join();
2608
+ }
2609
+ return writer;
2610
+ },
2611
+ decode(input, length) {
2612
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2613
+ const end = length === void 0 ? reader.len : reader.pos + length;
2614
+ const message = createBaseMsgUpdateParams();
2615
+ while (reader.pos < end) {
2616
+ const tag = reader.uint32();
2617
+ switch (tag >>> 3) {
2618
+ case 1: {
2619
+ if (tag !== 10) {
2620
+ break;
2621
+ }
2622
+ message.authority = reader.string();
2623
+ continue;
2624
+ }
2625
+ case 2: {
2626
+ if (tag !== 18) {
2627
+ break;
2628
+ }
2629
+ message.params = Params.decode(reader, reader.uint32());
2630
+ continue;
2631
+ }
2632
+ }
2633
+ if ((tag & 7) === 4 || tag === 0) {
2634
+ break;
2635
+ }
2636
+ reader.skip(tag & 7);
2637
+ }
2638
+ return message;
2639
+ },
2640
+ fromJSON(object) {
2641
+ return {
2642
+ authority: isSet(object.authority) ? globalThis.String(object.authority) : "",
2643
+ params: isSet(object.params) ? Params.fromJSON(object.params) : void 0
2644
+ };
2645
+ },
2646
+ toJSON(message) {
2647
+ const obj = {};
2648
+ if (message.authority !== "") {
2649
+ obj.authority = message.authority;
2650
+ }
2651
+ if (message.params !== void 0) {
2652
+ obj.params = Params.toJSON(message.params);
2653
+ }
2654
+ return obj;
2655
+ },
2656
+ fromPartial(object) {
2657
+ const message = createBaseMsgUpdateParams();
2658
+ message.authority = object.authority ?? "";
2659
+ message.params = object.params !== void 0 && object.params !== null ? Params.fromPartial(object.params) : void 0;
2660
+ return message;
2661
+ }
2662
+ };
2663
+ function createBaseMsgUpdateParamsResponse() {
2664
+ return {};
2665
+ }
2666
+ var MsgUpdateParamsResponse = {
2667
+ $type: "akash.verification.v1.MsgUpdateParamsResponse",
2668
+ encode(_, writer = new BinaryWriter()) {
2669
+ return writer;
2670
+ },
2671
+ decode(input, length) {
2672
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2673
+ const end = length === void 0 ? reader.len : reader.pos + length;
2674
+ const message = createBaseMsgUpdateParamsResponse();
2675
+ while (reader.pos < end) {
2676
+ const tag = reader.uint32();
2677
+ switch (tag >>> 3) {
2678
+ }
2679
+ if ((tag & 7) === 4 || tag === 0) {
2680
+ break;
2681
+ }
2682
+ reader.skip(tag & 7);
2683
+ }
2684
+ return message;
2685
+ },
2686
+ fromJSON(_) {
2687
+ return {};
2688
+ },
2689
+ toJSON(_) {
2690
+ const obj = {};
2691
+ return obj;
2692
+ },
2693
+ fromPartial(_) {
2694
+ const message = createBaseMsgUpdateParamsResponse();
2695
+ return message;
2696
+ }
2697
+ };
2698
+ var MsgSlashProviderBond = patched(_MsgSlashProviderBond);
2699
+
2700
+ export {
2701
+ MsgPostAuditorBond,
2702
+ MsgPostAuditorBondResponse,
2703
+ MsgSubmitAttestation,
2704
+ MsgSubmitAttestationResponse,
2705
+ MsgOpenAuditEscrow,
2706
+ MsgOpenAuditEscrowResponse,
2707
+ MsgCancelAuditEscrow,
2708
+ MsgCancelAuditEscrowResponse,
2709
+ MsgSettleAuditEscrow,
2710
+ MsgSettleAuditEscrowResponse,
2711
+ MsgRevokeAttestation,
2712
+ MsgRevokeAttestationResponse,
2713
+ MsgRemoveAttestation,
2714
+ MsgRemoveAttestationResponse,
2715
+ MsgResignAuditor,
2716
+ MsgResignAuditorResponse,
2717
+ MsgPostProviderBond,
2718
+ MsgPostProviderBondResponse,
2719
+ MsgWithdrawProviderBond,
2720
+ MsgWithdrawProviderBondResponse,
2721
+ MsgPostSnapshotHash,
2722
+ MsgPostSnapshotHashResponse,
2723
+ MsgRegisterAuditor,
2724
+ MsgRegisterAuditorResponse,
2725
+ MsgRenewAuditor,
2726
+ MsgRenewAuditorResponse,
2727
+ MsgRemoveAuditor,
2728
+ MsgRemoveAuditorResponse,
2729
+ MsgRevokeProviderAttestation,
2730
+ MsgRevokeProviderAttestationResponse,
2731
+ MsgRevokeAllProviderAttestations,
2732
+ MsgRevokeAllProviderAttestationsResponse,
2733
+ MsgRevokeAuditorAttestations,
2734
+ MsgRevokeAuditorAttestationsResponse,
2735
+ MsgResolveDiscrepancy,
2736
+ MsgResolveDiscrepancyResponse,
2737
+ MsgSlashProviderBondResponse,
2738
+ MsgUpdateParams,
2739
+ MsgUpdateParamsResponse,
2740
+ MsgSlashProviderBond
2741
+ };
2742
+ //# sourceMappingURL=chunk-BI4YL5KH.js.map