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