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

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