@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,943 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var snapshot_exports = {};
|
|
20
|
+
__export(snapshot_exports, {
|
|
21
|
+
GetCommittedInventorySnapshotRequest: () => GetCommittedInventorySnapshotRequest,
|
|
22
|
+
GetCommittedInventorySnapshotResponse: () => GetCommittedInventorySnapshotResponse,
|
|
23
|
+
GetInventorySnapshotRequest: () => GetInventorySnapshotRequest,
|
|
24
|
+
GetInventorySnapshotResponse: () => GetInventorySnapshotResponse,
|
|
25
|
+
SnapshotEvidenceSection: () => SnapshotEvidenceSection,
|
|
26
|
+
SnapshotPayload: () => SnapshotPayload,
|
|
27
|
+
SnapshotResourceSummary: () => SnapshotResourceSummary,
|
|
28
|
+
SoftwareIdentity: () => SoftwareIdentity
|
|
29
|
+
});
|
|
30
|
+
module.exports = __toCommonJS(snapshot_exports);
|
|
31
|
+
var import_typeEncodingHelpers = require("../../../../../encoding/typeEncodingHelpers.cjs");
|
|
32
|
+
var import_wire = require("@bufbuild/protobuf/wire");
|
|
33
|
+
var import_timestamp = require("../../../google/protobuf/timestamp.cjs");
|
|
34
|
+
var import_cluster = require("./cluster.cjs");
|
|
35
|
+
function createBaseSnapshotPayload() {
|
|
36
|
+
return {
|
|
37
|
+
schemaVersion: 0,
|
|
38
|
+
provider: "",
|
|
39
|
+
chainId: "",
|
|
40
|
+
nonce: new Uint8Array(0),
|
|
41
|
+
timestamp: void 0,
|
|
42
|
+
cluster: void 0,
|
|
43
|
+
resourceSummary: void 0,
|
|
44
|
+
evidenceSections: []
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
const SnapshotPayload = {
|
|
48
|
+
$type: "akash.inventory.v1.SnapshotPayload",
|
|
49
|
+
encode(message, writer = new import_wire.BinaryWriter()) {
|
|
50
|
+
if (message.schemaVersion !== 0) {
|
|
51
|
+
writer.uint32(8).uint32(message.schemaVersion);
|
|
52
|
+
}
|
|
53
|
+
if (message.provider !== "") {
|
|
54
|
+
writer.uint32(18).string(message.provider);
|
|
55
|
+
}
|
|
56
|
+
if (message.chainId !== "") {
|
|
57
|
+
writer.uint32(26).string(message.chainId);
|
|
58
|
+
}
|
|
59
|
+
if (message.nonce.length !== 0) {
|
|
60
|
+
writer.uint32(34).bytes(message.nonce);
|
|
61
|
+
}
|
|
62
|
+
if (message.timestamp !== void 0) {
|
|
63
|
+
import_timestamp.Timestamp.encode((0, import_typeEncodingHelpers.toTimestamp)(message.timestamp), writer.uint32(42).fork()).join();
|
|
64
|
+
}
|
|
65
|
+
if (message.cluster !== void 0) {
|
|
66
|
+
import_cluster.Cluster.encode(message.cluster, writer.uint32(50).fork()).join();
|
|
67
|
+
}
|
|
68
|
+
if (message.resourceSummary !== void 0) {
|
|
69
|
+
SnapshotResourceSummary.encode(message.resourceSummary, writer.uint32(58).fork()).join();
|
|
70
|
+
}
|
|
71
|
+
for (const v of message.evidenceSections) {
|
|
72
|
+
SnapshotEvidenceSection.encode(v, writer.uint32(66).fork()).join();
|
|
73
|
+
}
|
|
74
|
+
return writer;
|
|
75
|
+
},
|
|
76
|
+
decode(input, length) {
|
|
77
|
+
const reader = input instanceof import_wire.BinaryReader ? input : new import_wire.BinaryReader(input);
|
|
78
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
79
|
+
const message = createBaseSnapshotPayload();
|
|
80
|
+
while (reader.pos < end) {
|
|
81
|
+
const tag = reader.uint32();
|
|
82
|
+
switch (tag >>> 3) {
|
|
83
|
+
case 1: {
|
|
84
|
+
if (tag !== 8) {
|
|
85
|
+
break;
|
|
86
|
+
}
|
|
87
|
+
message.schemaVersion = reader.uint32();
|
|
88
|
+
continue;
|
|
89
|
+
}
|
|
90
|
+
case 2: {
|
|
91
|
+
if (tag !== 18) {
|
|
92
|
+
break;
|
|
93
|
+
}
|
|
94
|
+
message.provider = reader.string();
|
|
95
|
+
continue;
|
|
96
|
+
}
|
|
97
|
+
case 3: {
|
|
98
|
+
if (tag !== 26) {
|
|
99
|
+
break;
|
|
100
|
+
}
|
|
101
|
+
message.chainId = reader.string();
|
|
102
|
+
continue;
|
|
103
|
+
}
|
|
104
|
+
case 4: {
|
|
105
|
+
if (tag !== 34) {
|
|
106
|
+
break;
|
|
107
|
+
}
|
|
108
|
+
message.nonce = reader.bytes();
|
|
109
|
+
continue;
|
|
110
|
+
}
|
|
111
|
+
case 5: {
|
|
112
|
+
if (tag !== 42) {
|
|
113
|
+
break;
|
|
114
|
+
}
|
|
115
|
+
message.timestamp = (0, import_typeEncodingHelpers.fromTimestamp)(import_timestamp.Timestamp.decode(reader, reader.uint32()));
|
|
116
|
+
continue;
|
|
117
|
+
}
|
|
118
|
+
case 6: {
|
|
119
|
+
if (tag !== 50) {
|
|
120
|
+
break;
|
|
121
|
+
}
|
|
122
|
+
message.cluster = import_cluster.Cluster.decode(reader, reader.uint32());
|
|
123
|
+
continue;
|
|
124
|
+
}
|
|
125
|
+
case 7: {
|
|
126
|
+
if (tag !== 58) {
|
|
127
|
+
break;
|
|
128
|
+
}
|
|
129
|
+
message.resourceSummary = SnapshotResourceSummary.decode(reader, reader.uint32());
|
|
130
|
+
continue;
|
|
131
|
+
}
|
|
132
|
+
case 8: {
|
|
133
|
+
if (tag !== 66) {
|
|
134
|
+
break;
|
|
135
|
+
}
|
|
136
|
+
message.evidenceSections.push(SnapshotEvidenceSection.decode(reader, reader.uint32()));
|
|
137
|
+
continue;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
141
|
+
break;
|
|
142
|
+
}
|
|
143
|
+
reader.skip(tag & 7);
|
|
144
|
+
}
|
|
145
|
+
return message;
|
|
146
|
+
},
|
|
147
|
+
fromJSON(object) {
|
|
148
|
+
return {
|
|
149
|
+
schemaVersion: (0, import_typeEncodingHelpers.isSet)(object.schema_version) ? globalThis.Number(object.schema_version) : 0,
|
|
150
|
+
provider: (0, import_typeEncodingHelpers.isSet)(object.provider) ? globalThis.String(object.provider) : "",
|
|
151
|
+
chainId: (0, import_typeEncodingHelpers.isSet)(object.chain_id) ? globalThis.String(object.chain_id) : "",
|
|
152
|
+
nonce: (0, import_typeEncodingHelpers.isSet)(object.nonce) ? (0, import_typeEncodingHelpers.bytesFromBase64)(object.nonce) : new Uint8Array(0),
|
|
153
|
+
timestamp: (0, import_typeEncodingHelpers.isSet)(object.timestamp) ? (0, import_typeEncodingHelpers.fromJsonTimestamp)(object.timestamp) : void 0,
|
|
154
|
+
cluster: (0, import_typeEncodingHelpers.isSet)(object.cluster) ? import_cluster.Cluster.fromJSON(object.cluster) : void 0,
|
|
155
|
+
resourceSummary: (0, import_typeEncodingHelpers.isSet)(object.resource_summary) ? SnapshotResourceSummary.fromJSON(object.resource_summary) : void 0,
|
|
156
|
+
evidenceSections: globalThis.Array.isArray(object?.evidence_sections) ? object.evidence_sections.map((e) => SnapshotEvidenceSection.fromJSON(e)) : []
|
|
157
|
+
};
|
|
158
|
+
},
|
|
159
|
+
toJSON(message) {
|
|
160
|
+
const obj = {};
|
|
161
|
+
if (message.schemaVersion !== 0) {
|
|
162
|
+
obj.schema_version = Math.round(message.schemaVersion);
|
|
163
|
+
}
|
|
164
|
+
if (message.provider !== "") {
|
|
165
|
+
obj.provider = message.provider;
|
|
166
|
+
}
|
|
167
|
+
if (message.chainId !== "") {
|
|
168
|
+
obj.chain_id = message.chainId;
|
|
169
|
+
}
|
|
170
|
+
if (message.nonce.length !== 0) {
|
|
171
|
+
obj.nonce = (0, import_typeEncodingHelpers.base64FromBytes)(message.nonce);
|
|
172
|
+
}
|
|
173
|
+
if (message.timestamp !== void 0) {
|
|
174
|
+
obj.timestamp = message.timestamp.toISOString();
|
|
175
|
+
}
|
|
176
|
+
if (message.cluster !== void 0) {
|
|
177
|
+
obj.cluster = import_cluster.Cluster.toJSON(message.cluster);
|
|
178
|
+
}
|
|
179
|
+
if (message.resourceSummary !== void 0) {
|
|
180
|
+
obj.resource_summary = SnapshotResourceSummary.toJSON(message.resourceSummary);
|
|
181
|
+
}
|
|
182
|
+
if (message.evidenceSections?.length) {
|
|
183
|
+
obj.evidence_sections = message.evidenceSections.map((e) => SnapshotEvidenceSection.toJSON(e));
|
|
184
|
+
}
|
|
185
|
+
return obj;
|
|
186
|
+
},
|
|
187
|
+
fromPartial(object) {
|
|
188
|
+
const message = createBaseSnapshotPayload();
|
|
189
|
+
message.schemaVersion = object.schemaVersion ?? 0;
|
|
190
|
+
message.provider = object.provider ?? "";
|
|
191
|
+
message.chainId = object.chainId ?? "";
|
|
192
|
+
message.nonce = object.nonce ?? new Uint8Array(0);
|
|
193
|
+
message.timestamp = object.timestamp ?? void 0;
|
|
194
|
+
message.cluster = object.cluster !== void 0 && object.cluster !== null ? import_cluster.Cluster.fromPartial(object.cluster) : void 0;
|
|
195
|
+
message.resourceSummary = object.resourceSummary !== void 0 && object.resourceSummary !== null ? SnapshotResourceSummary.fromPartial(object.resourceSummary) : void 0;
|
|
196
|
+
message.evidenceSections = object.evidenceSections?.map((e) => SnapshotEvidenceSection.fromPartial(e)) || [];
|
|
197
|
+
return message;
|
|
198
|
+
}
|
|
199
|
+
};
|
|
200
|
+
function createBaseSoftwareIdentity() {
|
|
201
|
+
return {
|
|
202
|
+
version: "",
|
|
203
|
+
artifactRef: "",
|
|
204
|
+
digestAlgorithm: "",
|
|
205
|
+
digest: new Uint8Array(0),
|
|
206
|
+
signatureType: "",
|
|
207
|
+
signature: new Uint8Array(0),
|
|
208
|
+
signatureRef: "",
|
|
209
|
+
publicKeyRef: ""
|
|
210
|
+
};
|
|
211
|
+
}
|
|
212
|
+
const SoftwareIdentity = {
|
|
213
|
+
$type: "akash.inventory.v1.SoftwareIdentity",
|
|
214
|
+
encode(message, writer = new import_wire.BinaryWriter()) {
|
|
215
|
+
if (message.version !== "") {
|
|
216
|
+
writer.uint32(10).string(message.version);
|
|
217
|
+
}
|
|
218
|
+
if (message.artifactRef !== "") {
|
|
219
|
+
writer.uint32(18).string(message.artifactRef);
|
|
220
|
+
}
|
|
221
|
+
if (message.digestAlgorithm !== "") {
|
|
222
|
+
writer.uint32(26).string(message.digestAlgorithm);
|
|
223
|
+
}
|
|
224
|
+
if (message.digest.length !== 0) {
|
|
225
|
+
writer.uint32(34).bytes(message.digest);
|
|
226
|
+
}
|
|
227
|
+
if (message.signatureType !== "") {
|
|
228
|
+
writer.uint32(42).string(message.signatureType);
|
|
229
|
+
}
|
|
230
|
+
if (message.signature.length !== 0) {
|
|
231
|
+
writer.uint32(50).bytes(message.signature);
|
|
232
|
+
}
|
|
233
|
+
if (message.signatureRef !== "") {
|
|
234
|
+
writer.uint32(58).string(message.signatureRef);
|
|
235
|
+
}
|
|
236
|
+
if (message.publicKeyRef !== "") {
|
|
237
|
+
writer.uint32(66).string(message.publicKeyRef);
|
|
238
|
+
}
|
|
239
|
+
return writer;
|
|
240
|
+
},
|
|
241
|
+
decode(input, length) {
|
|
242
|
+
const reader = input instanceof import_wire.BinaryReader ? input : new import_wire.BinaryReader(input);
|
|
243
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
244
|
+
const message = createBaseSoftwareIdentity();
|
|
245
|
+
while (reader.pos < end) {
|
|
246
|
+
const tag = reader.uint32();
|
|
247
|
+
switch (tag >>> 3) {
|
|
248
|
+
case 1: {
|
|
249
|
+
if (tag !== 10) {
|
|
250
|
+
break;
|
|
251
|
+
}
|
|
252
|
+
message.version = reader.string();
|
|
253
|
+
continue;
|
|
254
|
+
}
|
|
255
|
+
case 2: {
|
|
256
|
+
if (tag !== 18) {
|
|
257
|
+
break;
|
|
258
|
+
}
|
|
259
|
+
message.artifactRef = reader.string();
|
|
260
|
+
continue;
|
|
261
|
+
}
|
|
262
|
+
case 3: {
|
|
263
|
+
if (tag !== 26) {
|
|
264
|
+
break;
|
|
265
|
+
}
|
|
266
|
+
message.digestAlgorithm = reader.string();
|
|
267
|
+
continue;
|
|
268
|
+
}
|
|
269
|
+
case 4: {
|
|
270
|
+
if (tag !== 34) {
|
|
271
|
+
break;
|
|
272
|
+
}
|
|
273
|
+
message.digest = reader.bytes();
|
|
274
|
+
continue;
|
|
275
|
+
}
|
|
276
|
+
case 5: {
|
|
277
|
+
if (tag !== 42) {
|
|
278
|
+
break;
|
|
279
|
+
}
|
|
280
|
+
message.signatureType = reader.string();
|
|
281
|
+
continue;
|
|
282
|
+
}
|
|
283
|
+
case 6: {
|
|
284
|
+
if (tag !== 50) {
|
|
285
|
+
break;
|
|
286
|
+
}
|
|
287
|
+
message.signature = reader.bytes();
|
|
288
|
+
continue;
|
|
289
|
+
}
|
|
290
|
+
case 7: {
|
|
291
|
+
if (tag !== 58) {
|
|
292
|
+
break;
|
|
293
|
+
}
|
|
294
|
+
message.signatureRef = reader.string();
|
|
295
|
+
continue;
|
|
296
|
+
}
|
|
297
|
+
case 8: {
|
|
298
|
+
if (tag !== 66) {
|
|
299
|
+
break;
|
|
300
|
+
}
|
|
301
|
+
message.publicKeyRef = reader.string();
|
|
302
|
+
continue;
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
306
|
+
break;
|
|
307
|
+
}
|
|
308
|
+
reader.skip(tag & 7);
|
|
309
|
+
}
|
|
310
|
+
return message;
|
|
311
|
+
},
|
|
312
|
+
fromJSON(object) {
|
|
313
|
+
return {
|
|
314
|
+
version: (0, import_typeEncodingHelpers.isSet)(object.version) ? globalThis.String(object.version) : "",
|
|
315
|
+
artifactRef: (0, import_typeEncodingHelpers.isSet)(object.artifact_ref) ? globalThis.String(object.artifact_ref) : "",
|
|
316
|
+
digestAlgorithm: (0, import_typeEncodingHelpers.isSet)(object.digest_algorithm) ? globalThis.String(object.digest_algorithm) : "",
|
|
317
|
+
digest: (0, import_typeEncodingHelpers.isSet)(object.digest) ? (0, import_typeEncodingHelpers.bytesFromBase64)(object.digest) : new Uint8Array(0),
|
|
318
|
+
signatureType: (0, import_typeEncodingHelpers.isSet)(object.signature_type) ? globalThis.String(object.signature_type) : "",
|
|
319
|
+
signature: (0, import_typeEncodingHelpers.isSet)(object.signature) ? (0, import_typeEncodingHelpers.bytesFromBase64)(object.signature) : new Uint8Array(0),
|
|
320
|
+
signatureRef: (0, import_typeEncodingHelpers.isSet)(object.signature_ref) ? globalThis.String(object.signature_ref) : "",
|
|
321
|
+
publicKeyRef: (0, import_typeEncodingHelpers.isSet)(object.public_key_ref) ? globalThis.String(object.public_key_ref) : ""
|
|
322
|
+
};
|
|
323
|
+
},
|
|
324
|
+
toJSON(message) {
|
|
325
|
+
const obj = {};
|
|
326
|
+
if (message.version !== "") {
|
|
327
|
+
obj.version = message.version;
|
|
328
|
+
}
|
|
329
|
+
if (message.artifactRef !== "") {
|
|
330
|
+
obj.artifact_ref = message.artifactRef;
|
|
331
|
+
}
|
|
332
|
+
if (message.digestAlgorithm !== "") {
|
|
333
|
+
obj.digest_algorithm = message.digestAlgorithm;
|
|
334
|
+
}
|
|
335
|
+
if (message.digest.length !== 0) {
|
|
336
|
+
obj.digest = (0, import_typeEncodingHelpers.base64FromBytes)(message.digest);
|
|
337
|
+
}
|
|
338
|
+
if (message.signatureType !== "") {
|
|
339
|
+
obj.signature_type = message.signatureType;
|
|
340
|
+
}
|
|
341
|
+
if (message.signature.length !== 0) {
|
|
342
|
+
obj.signature = (0, import_typeEncodingHelpers.base64FromBytes)(message.signature);
|
|
343
|
+
}
|
|
344
|
+
if (message.signatureRef !== "") {
|
|
345
|
+
obj.signature_ref = message.signatureRef;
|
|
346
|
+
}
|
|
347
|
+
if (message.publicKeyRef !== "") {
|
|
348
|
+
obj.public_key_ref = message.publicKeyRef;
|
|
349
|
+
}
|
|
350
|
+
return obj;
|
|
351
|
+
},
|
|
352
|
+
fromPartial(object) {
|
|
353
|
+
const message = createBaseSoftwareIdentity();
|
|
354
|
+
message.version = object.version ?? "";
|
|
355
|
+
message.artifactRef = object.artifactRef ?? "";
|
|
356
|
+
message.digestAlgorithm = object.digestAlgorithm ?? "";
|
|
357
|
+
message.digest = object.digest ?? new Uint8Array(0);
|
|
358
|
+
message.signatureType = object.signatureType ?? "";
|
|
359
|
+
message.signature = object.signature ?? new Uint8Array(0);
|
|
360
|
+
message.signatureRef = object.signatureRef ?? "";
|
|
361
|
+
message.publicKeyRef = object.publicKeyRef ?? "";
|
|
362
|
+
return message;
|
|
363
|
+
}
|
|
364
|
+
};
|
|
365
|
+
function createBaseSnapshotResourceSummary() {
|
|
366
|
+
return {
|
|
367
|
+
totalGpus: 0,
|
|
368
|
+
totalVcpus: 0,
|
|
369
|
+
totalMemoryMb: 0n,
|
|
370
|
+
totalStorageMb: 0n,
|
|
371
|
+
activeLeases: 0,
|
|
372
|
+
softwareVersion: "",
|
|
373
|
+
softwareSignature: new Uint8Array(0),
|
|
374
|
+
softwareIdentity: void 0
|
|
375
|
+
};
|
|
376
|
+
}
|
|
377
|
+
const SnapshotResourceSummary = {
|
|
378
|
+
$type: "akash.inventory.v1.SnapshotResourceSummary",
|
|
379
|
+
encode(message, writer = new import_wire.BinaryWriter()) {
|
|
380
|
+
if (message.totalGpus !== 0) {
|
|
381
|
+
writer.uint32(8).uint32(message.totalGpus);
|
|
382
|
+
}
|
|
383
|
+
if (message.totalVcpus !== 0) {
|
|
384
|
+
writer.uint32(16).uint32(message.totalVcpus);
|
|
385
|
+
}
|
|
386
|
+
if (message.totalMemoryMb !== 0n) {
|
|
387
|
+
if (BigInt.asUintN(64, message.totalMemoryMb) !== message.totalMemoryMb) {
|
|
388
|
+
throw new globalThis.Error("value provided for field message.totalMemoryMb of type uint64 too large");
|
|
389
|
+
}
|
|
390
|
+
writer.uint32(24).uint64(message.totalMemoryMb);
|
|
391
|
+
}
|
|
392
|
+
if (message.totalStorageMb !== 0n) {
|
|
393
|
+
if (BigInt.asUintN(64, message.totalStorageMb) !== message.totalStorageMb) {
|
|
394
|
+
throw new globalThis.Error("value provided for field message.totalStorageMb of type uint64 too large");
|
|
395
|
+
}
|
|
396
|
+
writer.uint32(32).uint64(message.totalStorageMb);
|
|
397
|
+
}
|
|
398
|
+
if (message.activeLeases !== 0) {
|
|
399
|
+
writer.uint32(40).uint32(message.activeLeases);
|
|
400
|
+
}
|
|
401
|
+
if (message.softwareVersion !== "") {
|
|
402
|
+
writer.uint32(50).string(message.softwareVersion);
|
|
403
|
+
}
|
|
404
|
+
if (message.softwareSignature.length !== 0) {
|
|
405
|
+
writer.uint32(58).bytes(message.softwareSignature);
|
|
406
|
+
}
|
|
407
|
+
if (message.softwareIdentity !== void 0) {
|
|
408
|
+
SoftwareIdentity.encode(message.softwareIdentity, writer.uint32(66).fork()).join();
|
|
409
|
+
}
|
|
410
|
+
return writer;
|
|
411
|
+
},
|
|
412
|
+
decode(input, length) {
|
|
413
|
+
const reader = input instanceof import_wire.BinaryReader ? input : new import_wire.BinaryReader(input);
|
|
414
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
415
|
+
const message = createBaseSnapshotResourceSummary();
|
|
416
|
+
while (reader.pos < end) {
|
|
417
|
+
const tag = reader.uint32();
|
|
418
|
+
switch (tag >>> 3) {
|
|
419
|
+
case 1: {
|
|
420
|
+
if (tag !== 8) {
|
|
421
|
+
break;
|
|
422
|
+
}
|
|
423
|
+
message.totalGpus = reader.uint32();
|
|
424
|
+
continue;
|
|
425
|
+
}
|
|
426
|
+
case 2: {
|
|
427
|
+
if (tag !== 16) {
|
|
428
|
+
break;
|
|
429
|
+
}
|
|
430
|
+
message.totalVcpus = reader.uint32();
|
|
431
|
+
continue;
|
|
432
|
+
}
|
|
433
|
+
case 3: {
|
|
434
|
+
if (tag !== 24) {
|
|
435
|
+
break;
|
|
436
|
+
}
|
|
437
|
+
message.totalMemoryMb = reader.uint64();
|
|
438
|
+
continue;
|
|
439
|
+
}
|
|
440
|
+
case 4: {
|
|
441
|
+
if (tag !== 32) {
|
|
442
|
+
break;
|
|
443
|
+
}
|
|
444
|
+
message.totalStorageMb = reader.uint64();
|
|
445
|
+
continue;
|
|
446
|
+
}
|
|
447
|
+
case 5: {
|
|
448
|
+
if (tag !== 40) {
|
|
449
|
+
break;
|
|
450
|
+
}
|
|
451
|
+
message.activeLeases = reader.uint32();
|
|
452
|
+
continue;
|
|
453
|
+
}
|
|
454
|
+
case 6: {
|
|
455
|
+
if (tag !== 50) {
|
|
456
|
+
break;
|
|
457
|
+
}
|
|
458
|
+
message.softwareVersion = reader.string();
|
|
459
|
+
continue;
|
|
460
|
+
}
|
|
461
|
+
case 7: {
|
|
462
|
+
if (tag !== 58) {
|
|
463
|
+
break;
|
|
464
|
+
}
|
|
465
|
+
message.softwareSignature = reader.bytes();
|
|
466
|
+
continue;
|
|
467
|
+
}
|
|
468
|
+
case 8: {
|
|
469
|
+
if (tag !== 66) {
|
|
470
|
+
break;
|
|
471
|
+
}
|
|
472
|
+
message.softwareIdentity = SoftwareIdentity.decode(reader, reader.uint32());
|
|
473
|
+
continue;
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
477
|
+
break;
|
|
478
|
+
}
|
|
479
|
+
reader.skip(tag & 7);
|
|
480
|
+
}
|
|
481
|
+
return message;
|
|
482
|
+
},
|
|
483
|
+
fromJSON(object) {
|
|
484
|
+
return {
|
|
485
|
+
totalGpus: (0, import_typeEncodingHelpers.isSet)(object.total_gpus) ? globalThis.Number(object.total_gpus) : 0,
|
|
486
|
+
totalVcpus: (0, import_typeEncodingHelpers.isSet)(object.total_vcpus) ? globalThis.Number(object.total_vcpus) : 0,
|
|
487
|
+
totalMemoryMb: (0, import_typeEncodingHelpers.isSet)(object.total_memory_mb) ? BigInt(object.total_memory_mb) : 0n,
|
|
488
|
+
totalStorageMb: (0, import_typeEncodingHelpers.isSet)(object.total_storage_mb) ? BigInt(object.total_storage_mb) : 0n,
|
|
489
|
+
activeLeases: (0, import_typeEncodingHelpers.isSet)(object.active_leases) ? globalThis.Number(object.active_leases) : 0,
|
|
490
|
+
softwareVersion: (0, import_typeEncodingHelpers.isSet)(object.software_version) ? globalThis.String(object.software_version) : "",
|
|
491
|
+
softwareSignature: (0, import_typeEncodingHelpers.isSet)(object.software_signature) ? (0, import_typeEncodingHelpers.bytesFromBase64)(object.software_signature) : new Uint8Array(0),
|
|
492
|
+
softwareIdentity: (0, import_typeEncodingHelpers.isSet)(object.software_identity) ? SoftwareIdentity.fromJSON(object.software_identity) : void 0
|
|
493
|
+
};
|
|
494
|
+
},
|
|
495
|
+
toJSON(message) {
|
|
496
|
+
const obj = {};
|
|
497
|
+
if (message.totalGpus !== 0) {
|
|
498
|
+
obj.total_gpus = Math.round(message.totalGpus);
|
|
499
|
+
}
|
|
500
|
+
if (message.totalVcpus !== 0) {
|
|
501
|
+
obj.total_vcpus = Math.round(message.totalVcpus);
|
|
502
|
+
}
|
|
503
|
+
if (message.totalMemoryMb !== 0n) {
|
|
504
|
+
obj.total_memory_mb = message.totalMemoryMb.toString();
|
|
505
|
+
}
|
|
506
|
+
if (message.totalStorageMb !== 0n) {
|
|
507
|
+
obj.total_storage_mb = message.totalStorageMb.toString();
|
|
508
|
+
}
|
|
509
|
+
if (message.activeLeases !== 0) {
|
|
510
|
+
obj.active_leases = Math.round(message.activeLeases);
|
|
511
|
+
}
|
|
512
|
+
if (message.softwareVersion !== "") {
|
|
513
|
+
obj.software_version = message.softwareVersion;
|
|
514
|
+
}
|
|
515
|
+
if (message.softwareSignature.length !== 0) {
|
|
516
|
+
obj.software_signature = (0, import_typeEncodingHelpers.base64FromBytes)(message.softwareSignature);
|
|
517
|
+
}
|
|
518
|
+
if (message.softwareIdentity !== void 0) {
|
|
519
|
+
obj.software_identity = SoftwareIdentity.toJSON(message.softwareIdentity);
|
|
520
|
+
}
|
|
521
|
+
return obj;
|
|
522
|
+
},
|
|
523
|
+
fromPartial(object) {
|
|
524
|
+
const message = createBaseSnapshotResourceSummary();
|
|
525
|
+
message.totalGpus = object.totalGpus ?? 0;
|
|
526
|
+
message.totalVcpus = object.totalVcpus ?? 0;
|
|
527
|
+
message.totalMemoryMb = object.totalMemoryMb !== void 0 && object.totalMemoryMb !== null ? BigInt(object.totalMemoryMb) : 0n;
|
|
528
|
+
message.totalStorageMb = object.totalStorageMb !== void 0 && object.totalStorageMb !== null ? BigInt(object.totalStorageMb) : 0n;
|
|
529
|
+
message.activeLeases = object.activeLeases ?? 0;
|
|
530
|
+
message.softwareVersion = object.softwareVersion ?? "";
|
|
531
|
+
message.softwareSignature = object.softwareSignature ?? new Uint8Array(0);
|
|
532
|
+
message.softwareIdentity = object.softwareIdentity !== void 0 && object.softwareIdentity !== null ? SoftwareIdentity.fromPartial(object.softwareIdentity) : void 0;
|
|
533
|
+
return message;
|
|
534
|
+
}
|
|
535
|
+
};
|
|
536
|
+
function createBaseSnapshotEvidenceSection() {
|
|
537
|
+
return { name: "", payload: new Uint8Array(0) };
|
|
538
|
+
}
|
|
539
|
+
const SnapshotEvidenceSection = {
|
|
540
|
+
$type: "akash.inventory.v1.SnapshotEvidenceSection",
|
|
541
|
+
encode(message, writer = new import_wire.BinaryWriter()) {
|
|
542
|
+
if (message.name !== "") {
|
|
543
|
+
writer.uint32(10).string(message.name);
|
|
544
|
+
}
|
|
545
|
+
if (message.payload.length !== 0) {
|
|
546
|
+
writer.uint32(18).bytes(message.payload);
|
|
547
|
+
}
|
|
548
|
+
return writer;
|
|
549
|
+
},
|
|
550
|
+
decode(input, length) {
|
|
551
|
+
const reader = input instanceof import_wire.BinaryReader ? input : new import_wire.BinaryReader(input);
|
|
552
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
553
|
+
const message = createBaseSnapshotEvidenceSection();
|
|
554
|
+
while (reader.pos < end) {
|
|
555
|
+
const tag = reader.uint32();
|
|
556
|
+
switch (tag >>> 3) {
|
|
557
|
+
case 1: {
|
|
558
|
+
if (tag !== 10) {
|
|
559
|
+
break;
|
|
560
|
+
}
|
|
561
|
+
message.name = reader.string();
|
|
562
|
+
continue;
|
|
563
|
+
}
|
|
564
|
+
case 2: {
|
|
565
|
+
if (tag !== 18) {
|
|
566
|
+
break;
|
|
567
|
+
}
|
|
568
|
+
message.payload = reader.bytes();
|
|
569
|
+
continue;
|
|
570
|
+
}
|
|
571
|
+
}
|
|
572
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
573
|
+
break;
|
|
574
|
+
}
|
|
575
|
+
reader.skip(tag & 7);
|
|
576
|
+
}
|
|
577
|
+
return message;
|
|
578
|
+
},
|
|
579
|
+
fromJSON(object) {
|
|
580
|
+
return {
|
|
581
|
+
name: (0, import_typeEncodingHelpers.isSet)(object.name) ? globalThis.String(object.name) : "",
|
|
582
|
+
payload: (0, import_typeEncodingHelpers.isSet)(object.payload) ? (0, import_typeEncodingHelpers.bytesFromBase64)(object.payload) : new Uint8Array(0)
|
|
583
|
+
};
|
|
584
|
+
},
|
|
585
|
+
toJSON(message) {
|
|
586
|
+
const obj = {};
|
|
587
|
+
if (message.name !== "") {
|
|
588
|
+
obj.name = message.name;
|
|
589
|
+
}
|
|
590
|
+
if (message.payload.length !== 0) {
|
|
591
|
+
obj.payload = (0, import_typeEncodingHelpers.base64FromBytes)(message.payload);
|
|
592
|
+
}
|
|
593
|
+
return obj;
|
|
594
|
+
},
|
|
595
|
+
fromPartial(object) {
|
|
596
|
+
const message = createBaseSnapshotEvidenceSection();
|
|
597
|
+
message.name = object.name ?? "";
|
|
598
|
+
message.payload = object.payload ?? new Uint8Array(0);
|
|
599
|
+
return message;
|
|
600
|
+
}
|
|
601
|
+
};
|
|
602
|
+
function createBaseGetInventorySnapshotRequest() {
|
|
603
|
+
return { nonce: new Uint8Array(0) };
|
|
604
|
+
}
|
|
605
|
+
const GetInventorySnapshotRequest = {
|
|
606
|
+
$type: "akash.inventory.v1.GetInventorySnapshotRequest",
|
|
607
|
+
encode(message, writer = new import_wire.BinaryWriter()) {
|
|
608
|
+
if (message.nonce.length !== 0) {
|
|
609
|
+
writer.uint32(10).bytes(message.nonce);
|
|
610
|
+
}
|
|
611
|
+
return writer;
|
|
612
|
+
},
|
|
613
|
+
decode(input, length) {
|
|
614
|
+
const reader = input instanceof import_wire.BinaryReader ? input : new import_wire.BinaryReader(input);
|
|
615
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
616
|
+
const message = createBaseGetInventorySnapshotRequest();
|
|
617
|
+
while (reader.pos < end) {
|
|
618
|
+
const tag = reader.uint32();
|
|
619
|
+
switch (tag >>> 3) {
|
|
620
|
+
case 1: {
|
|
621
|
+
if (tag !== 10) {
|
|
622
|
+
break;
|
|
623
|
+
}
|
|
624
|
+
message.nonce = reader.bytes();
|
|
625
|
+
continue;
|
|
626
|
+
}
|
|
627
|
+
}
|
|
628
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
629
|
+
break;
|
|
630
|
+
}
|
|
631
|
+
reader.skip(tag & 7);
|
|
632
|
+
}
|
|
633
|
+
return message;
|
|
634
|
+
},
|
|
635
|
+
fromJSON(object) {
|
|
636
|
+
return { nonce: (0, import_typeEncodingHelpers.isSet)(object.nonce) ? (0, import_typeEncodingHelpers.bytesFromBase64)(object.nonce) : new Uint8Array(0) };
|
|
637
|
+
},
|
|
638
|
+
toJSON(message) {
|
|
639
|
+
const obj = {};
|
|
640
|
+
if (message.nonce.length !== 0) {
|
|
641
|
+
obj.nonce = (0, import_typeEncodingHelpers.base64FromBytes)(message.nonce);
|
|
642
|
+
}
|
|
643
|
+
return obj;
|
|
644
|
+
},
|
|
645
|
+
fromPartial(object) {
|
|
646
|
+
const message = createBaseGetInventorySnapshotRequest();
|
|
647
|
+
message.nonce = object.nonce ?? new Uint8Array(0);
|
|
648
|
+
return message;
|
|
649
|
+
}
|
|
650
|
+
};
|
|
651
|
+
function createBaseGetInventorySnapshotResponse() {
|
|
652
|
+
return { snapshotPayload: new Uint8Array(0), signature: new Uint8Array(0), provider: "" };
|
|
653
|
+
}
|
|
654
|
+
const GetInventorySnapshotResponse = {
|
|
655
|
+
$type: "akash.inventory.v1.GetInventorySnapshotResponse",
|
|
656
|
+
encode(message, writer = new import_wire.BinaryWriter()) {
|
|
657
|
+
if (message.snapshotPayload.length !== 0) {
|
|
658
|
+
writer.uint32(10).bytes(message.snapshotPayload);
|
|
659
|
+
}
|
|
660
|
+
if (message.signature.length !== 0) {
|
|
661
|
+
writer.uint32(18).bytes(message.signature);
|
|
662
|
+
}
|
|
663
|
+
if (message.provider !== "") {
|
|
664
|
+
writer.uint32(26).string(message.provider);
|
|
665
|
+
}
|
|
666
|
+
return writer;
|
|
667
|
+
},
|
|
668
|
+
decode(input, length) {
|
|
669
|
+
const reader = input instanceof import_wire.BinaryReader ? input : new import_wire.BinaryReader(input);
|
|
670
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
671
|
+
const message = createBaseGetInventorySnapshotResponse();
|
|
672
|
+
while (reader.pos < end) {
|
|
673
|
+
const tag = reader.uint32();
|
|
674
|
+
switch (tag >>> 3) {
|
|
675
|
+
case 1: {
|
|
676
|
+
if (tag !== 10) {
|
|
677
|
+
break;
|
|
678
|
+
}
|
|
679
|
+
message.snapshotPayload = reader.bytes();
|
|
680
|
+
continue;
|
|
681
|
+
}
|
|
682
|
+
case 2: {
|
|
683
|
+
if (tag !== 18) {
|
|
684
|
+
break;
|
|
685
|
+
}
|
|
686
|
+
message.signature = reader.bytes();
|
|
687
|
+
continue;
|
|
688
|
+
}
|
|
689
|
+
case 3: {
|
|
690
|
+
if (tag !== 26) {
|
|
691
|
+
break;
|
|
692
|
+
}
|
|
693
|
+
message.provider = reader.string();
|
|
694
|
+
continue;
|
|
695
|
+
}
|
|
696
|
+
}
|
|
697
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
698
|
+
break;
|
|
699
|
+
}
|
|
700
|
+
reader.skip(tag & 7);
|
|
701
|
+
}
|
|
702
|
+
return message;
|
|
703
|
+
},
|
|
704
|
+
fromJSON(object) {
|
|
705
|
+
return {
|
|
706
|
+
snapshotPayload: (0, import_typeEncodingHelpers.isSet)(object.snapshot_payload) ? (0, import_typeEncodingHelpers.bytesFromBase64)(object.snapshot_payload) : new Uint8Array(0),
|
|
707
|
+
signature: (0, import_typeEncodingHelpers.isSet)(object.signature) ? (0, import_typeEncodingHelpers.bytesFromBase64)(object.signature) : new Uint8Array(0),
|
|
708
|
+
provider: (0, import_typeEncodingHelpers.isSet)(object.provider) ? globalThis.String(object.provider) : ""
|
|
709
|
+
};
|
|
710
|
+
},
|
|
711
|
+
toJSON(message) {
|
|
712
|
+
const obj = {};
|
|
713
|
+
if (message.snapshotPayload.length !== 0) {
|
|
714
|
+
obj.snapshot_payload = (0, import_typeEncodingHelpers.base64FromBytes)(message.snapshotPayload);
|
|
715
|
+
}
|
|
716
|
+
if (message.signature.length !== 0) {
|
|
717
|
+
obj.signature = (0, import_typeEncodingHelpers.base64FromBytes)(message.signature);
|
|
718
|
+
}
|
|
719
|
+
if (message.provider !== "") {
|
|
720
|
+
obj.provider = message.provider;
|
|
721
|
+
}
|
|
722
|
+
return obj;
|
|
723
|
+
},
|
|
724
|
+
fromPartial(object) {
|
|
725
|
+
const message = createBaseGetInventorySnapshotResponse();
|
|
726
|
+
message.snapshotPayload = object.snapshotPayload ?? new Uint8Array(0);
|
|
727
|
+
message.signature = object.signature ?? new Uint8Array(0);
|
|
728
|
+
message.provider = object.provider ?? "";
|
|
729
|
+
return message;
|
|
730
|
+
}
|
|
731
|
+
};
|
|
732
|
+
function createBaseGetCommittedInventorySnapshotRequest() {
|
|
733
|
+
return { snapshotHash: new Uint8Array(0) };
|
|
734
|
+
}
|
|
735
|
+
const GetCommittedInventorySnapshotRequest = {
|
|
736
|
+
$type: "akash.inventory.v1.GetCommittedInventorySnapshotRequest",
|
|
737
|
+
encode(message, writer = new import_wire.BinaryWriter()) {
|
|
738
|
+
if (message.snapshotHash.length !== 0) {
|
|
739
|
+
writer.uint32(10).bytes(message.snapshotHash);
|
|
740
|
+
}
|
|
741
|
+
return writer;
|
|
742
|
+
},
|
|
743
|
+
decode(input, length) {
|
|
744
|
+
const reader = input instanceof import_wire.BinaryReader ? input : new import_wire.BinaryReader(input);
|
|
745
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
746
|
+
const message = createBaseGetCommittedInventorySnapshotRequest();
|
|
747
|
+
while (reader.pos < end) {
|
|
748
|
+
const tag = reader.uint32();
|
|
749
|
+
switch (tag >>> 3) {
|
|
750
|
+
case 1: {
|
|
751
|
+
if (tag !== 10) {
|
|
752
|
+
break;
|
|
753
|
+
}
|
|
754
|
+
message.snapshotHash = reader.bytes();
|
|
755
|
+
continue;
|
|
756
|
+
}
|
|
757
|
+
}
|
|
758
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
759
|
+
break;
|
|
760
|
+
}
|
|
761
|
+
reader.skip(tag & 7);
|
|
762
|
+
}
|
|
763
|
+
return message;
|
|
764
|
+
},
|
|
765
|
+
fromJSON(object) {
|
|
766
|
+
return { snapshotHash: (0, import_typeEncodingHelpers.isSet)(object.snapshot_hash) ? (0, import_typeEncodingHelpers.bytesFromBase64)(object.snapshot_hash) : new Uint8Array(0) };
|
|
767
|
+
},
|
|
768
|
+
toJSON(message) {
|
|
769
|
+
const obj = {};
|
|
770
|
+
if (message.snapshotHash.length !== 0) {
|
|
771
|
+
obj.snapshot_hash = (0, import_typeEncodingHelpers.base64FromBytes)(message.snapshotHash);
|
|
772
|
+
}
|
|
773
|
+
return obj;
|
|
774
|
+
},
|
|
775
|
+
fromPartial(object) {
|
|
776
|
+
const message = createBaseGetCommittedInventorySnapshotRequest();
|
|
777
|
+
message.snapshotHash = object.snapshotHash ?? new Uint8Array(0);
|
|
778
|
+
return message;
|
|
779
|
+
}
|
|
780
|
+
};
|
|
781
|
+
function createBaseGetCommittedInventorySnapshotResponse() {
|
|
782
|
+
return {
|
|
783
|
+
snapshotPayload: new Uint8Array(0),
|
|
784
|
+
signature: new Uint8Array(0),
|
|
785
|
+
provider: "",
|
|
786
|
+
snapshotHash: new Uint8Array(0),
|
|
787
|
+
postedAt: void 0
|
|
788
|
+
};
|
|
789
|
+
}
|
|
790
|
+
const GetCommittedInventorySnapshotResponse = {
|
|
791
|
+
$type: "akash.inventory.v1.GetCommittedInventorySnapshotResponse",
|
|
792
|
+
encode(message, writer = new import_wire.BinaryWriter()) {
|
|
793
|
+
if (message.snapshotPayload.length !== 0) {
|
|
794
|
+
writer.uint32(10).bytes(message.snapshotPayload);
|
|
795
|
+
}
|
|
796
|
+
if (message.signature.length !== 0) {
|
|
797
|
+
writer.uint32(18).bytes(message.signature);
|
|
798
|
+
}
|
|
799
|
+
if (message.provider !== "") {
|
|
800
|
+
writer.uint32(26).string(message.provider);
|
|
801
|
+
}
|
|
802
|
+
if (message.snapshotHash.length !== 0) {
|
|
803
|
+
writer.uint32(34).bytes(message.snapshotHash);
|
|
804
|
+
}
|
|
805
|
+
if (message.postedAt !== void 0) {
|
|
806
|
+
import_timestamp.Timestamp.encode((0, import_typeEncodingHelpers.toTimestamp)(message.postedAt), writer.uint32(42).fork()).join();
|
|
807
|
+
}
|
|
808
|
+
return writer;
|
|
809
|
+
},
|
|
810
|
+
decode(input, length) {
|
|
811
|
+
const reader = input instanceof import_wire.BinaryReader ? input : new import_wire.BinaryReader(input);
|
|
812
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
813
|
+
const message = createBaseGetCommittedInventorySnapshotResponse();
|
|
814
|
+
while (reader.pos < end) {
|
|
815
|
+
const tag = reader.uint32();
|
|
816
|
+
switch (tag >>> 3) {
|
|
817
|
+
case 1: {
|
|
818
|
+
if (tag !== 10) {
|
|
819
|
+
break;
|
|
820
|
+
}
|
|
821
|
+
message.snapshotPayload = reader.bytes();
|
|
822
|
+
continue;
|
|
823
|
+
}
|
|
824
|
+
case 2: {
|
|
825
|
+
if (tag !== 18) {
|
|
826
|
+
break;
|
|
827
|
+
}
|
|
828
|
+
message.signature = reader.bytes();
|
|
829
|
+
continue;
|
|
830
|
+
}
|
|
831
|
+
case 3: {
|
|
832
|
+
if (tag !== 26) {
|
|
833
|
+
break;
|
|
834
|
+
}
|
|
835
|
+
message.provider = reader.string();
|
|
836
|
+
continue;
|
|
837
|
+
}
|
|
838
|
+
case 4: {
|
|
839
|
+
if (tag !== 34) {
|
|
840
|
+
break;
|
|
841
|
+
}
|
|
842
|
+
message.snapshotHash = reader.bytes();
|
|
843
|
+
continue;
|
|
844
|
+
}
|
|
845
|
+
case 5: {
|
|
846
|
+
if (tag !== 42) {
|
|
847
|
+
break;
|
|
848
|
+
}
|
|
849
|
+
message.postedAt = (0, import_typeEncodingHelpers.fromTimestamp)(import_timestamp.Timestamp.decode(reader, reader.uint32()));
|
|
850
|
+
continue;
|
|
851
|
+
}
|
|
852
|
+
}
|
|
853
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
854
|
+
break;
|
|
855
|
+
}
|
|
856
|
+
reader.skip(tag & 7);
|
|
857
|
+
}
|
|
858
|
+
return message;
|
|
859
|
+
},
|
|
860
|
+
fromJSON(object) {
|
|
861
|
+
return {
|
|
862
|
+
snapshotPayload: (0, import_typeEncodingHelpers.isSet)(object.snapshot_payload) ? (0, import_typeEncodingHelpers.bytesFromBase64)(object.snapshot_payload) : new Uint8Array(0),
|
|
863
|
+
signature: (0, import_typeEncodingHelpers.isSet)(object.signature) ? (0, import_typeEncodingHelpers.bytesFromBase64)(object.signature) : new Uint8Array(0),
|
|
864
|
+
provider: (0, import_typeEncodingHelpers.isSet)(object.provider) ? globalThis.String(object.provider) : "",
|
|
865
|
+
snapshotHash: (0, import_typeEncodingHelpers.isSet)(object.snapshot_hash) ? (0, import_typeEncodingHelpers.bytesFromBase64)(object.snapshot_hash) : new Uint8Array(0),
|
|
866
|
+
postedAt: (0, import_typeEncodingHelpers.isSet)(object.posted_at) ? (0, import_typeEncodingHelpers.fromJsonTimestamp)(object.posted_at) : void 0
|
|
867
|
+
};
|
|
868
|
+
},
|
|
869
|
+
toJSON(message) {
|
|
870
|
+
const obj = {};
|
|
871
|
+
if (message.snapshotPayload.length !== 0) {
|
|
872
|
+
obj.snapshot_payload = (0, import_typeEncodingHelpers.base64FromBytes)(message.snapshotPayload);
|
|
873
|
+
}
|
|
874
|
+
if (message.signature.length !== 0) {
|
|
875
|
+
obj.signature = (0, import_typeEncodingHelpers.base64FromBytes)(message.signature);
|
|
876
|
+
}
|
|
877
|
+
if (message.provider !== "") {
|
|
878
|
+
obj.provider = message.provider;
|
|
879
|
+
}
|
|
880
|
+
if (message.snapshotHash.length !== 0) {
|
|
881
|
+
obj.snapshot_hash = (0, import_typeEncodingHelpers.base64FromBytes)(message.snapshotHash);
|
|
882
|
+
}
|
|
883
|
+
if (message.postedAt !== void 0) {
|
|
884
|
+
obj.posted_at = message.postedAt.toISOString();
|
|
885
|
+
}
|
|
886
|
+
return obj;
|
|
887
|
+
},
|
|
888
|
+
fromPartial(object) {
|
|
889
|
+
const message = createBaseGetCommittedInventorySnapshotResponse();
|
|
890
|
+
message.snapshotPayload = object.snapshotPayload ?? new Uint8Array(0);
|
|
891
|
+
message.signature = object.signature ?? new Uint8Array(0);
|
|
892
|
+
message.provider = object.provider ?? "";
|
|
893
|
+
message.snapshotHash = object.snapshotHash ?? new Uint8Array(0);
|
|
894
|
+
message.postedAt = object.postedAt ?? void 0;
|
|
895
|
+
return message;
|
|
896
|
+
}
|
|
897
|
+
};
|
|
898
|
+
function _unused_bytesFromBase64(b64) {
|
|
899
|
+
if (globalThis.Buffer) {
|
|
900
|
+
return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
|
|
901
|
+
} else {
|
|
902
|
+
const bin = globalThis.atob(b64);
|
|
903
|
+
const arr = new Uint8Array(bin.length);
|
|
904
|
+
for (let i = 0; i < bin.length; ++i) {
|
|
905
|
+
arr[i] = bin.charCodeAt(i);
|
|
906
|
+
}
|
|
907
|
+
return arr;
|
|
908
|
+
}
|
|
909
|
+
}
|
|
910
|
+
function _unused_base64FromBytes(arr) {
|
|
911
|
+
if (globalThis.Buffer) {
|
|
912
|
+
return globalThis.Buffer.from(arr).toString("base64");
|
|
913
|
+
} else {
|
|
914
|
+
const bin = [];
|
|
915
|
+
arr.forEach((byte) => {
|
|
916
|
+
bin.push(globalThis.String.fromCharCode(byte));
|
|
917
|
+
});
|
|
918
|
+
return globalThis.btoa(bin.join(""));
|
|
919
|
+
}
|
|
920
|
+
}
|
|
921
|
+
function _unused_toTimestamp(date) {
|
|
922
|
+
const seconds = BigInt(Math.trunc(date.getTime() / 1e3));
|
|
923
|
+
const nanos = date.getTime() % 1e3 * 1e6;
|
|
924
|
+
return { seconds, nanos };
|
|
925
|
+
}
|
|
926
|
+
function _unused_fromTimestamp(t) {
|
|
927
|
+
let millis = (globalThis.Number(t.seconds.toString()) || 0) * 1e3;
|
|
928
|
+
millis += (t.nanos || 0) / 1e6;
|
|
929
|
+
return new globalThis.Date(millis);
|
|
930
|
+
}
|
|
931
|
+
function _unused_fromJsonTimestamp(o) {
|
|
932
|
+
if (o instanceof globalThis.Date) {
|
|
933
|
+
return o;
|
|
934
|
+
} else if (typeof o === "string") {
|
|
935
|
+
return new globalThis.Date(o);
|
|
936
|
+
} else {
|
|
937
|
+
return (0, import_typeEncodingHelpers.fromTimestamp)(import_timestamp.Timestamp.fromJSON(o));
|
|
938
|
+
}
|
|
939
|
+
}
|
|
940
|
+
function _unused_isSet(value) {
|
|
941
|
+
return value !== null && value !== void 0;
|
|
942
|
+
}
|
|
943
|
+
//# sourceMappingURL=snapshot.cjs.map
|