@sparkdreamnft/sparkdreamjs 0.0.28 → 0.0.29
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/akash/audit/v1/audit.d.ts +209 -0
- package/akash/audit/v1/audit.js +265 -0
- package/akash/audit/v1/event.d.ts +150 -0
- package/akash/audit/v1/event.js +167 -0
- package/akash/audit/v1/genesis.d.ts +53 -0
- package/akash/audit/v1/genesis.js +78 -0
- package/akash/audit/v1/msg.d.ts +253 -0
- package/akash/audit/v1/msg.js +310 -0
- package/akash/audit/v1/query.d.ts +392 -0
- package/akash/audit/v1/query.js +484 -0
- package/akash/audit/v1/query.lcd.d.ts +12 -0
- package/akash/audit/v1/query.lcd.js +60 -0
- package/akash/audit/v1/query.rpc.Query.d.ts +44 -0
- package/akash/audit/v1/query.rpc.Query.js +66 -0
- package/akash/audit/v1/service.amino.d.ts +13 -0
- package/akash/audit/v1/service.amino.js +17 -0
- package/akash/audit/v1/service.d.ts +1 -0
- package/akash/audit/v1/service.js +2 -0
- package/akash/audit/v1/service.registry.d.ts +37 -0
- package/akash/audit/v1/service.registry.js +55 -0
- package/akash/audit/v1/service.rpc.msg.d.ts +16 -0
- package/akash/audit/v1/service.rpc.msg.js +28 -0
- package/akash/audit/v1beta3/audit.amino.d.ts +13 -0
- package/akash/audit/v1beta3/audit.amino.js +17 -0
- package/akash/audit/v1beta3/audit.d.ts +369 -0
- package/akash/audit/v1beta3/audit.js +661 -0
- package/akash/audit/v1beta3/audit.registry.d.ts +37 -0
- package/akash/audit/v1beta3/audit.registry.js +55 -0
- package/akash/audit/v1beta3/audit.rpc.msg.d.ts +16 -0
- package/akash/audit/v1beta3/audit.rpc.msg.js +28 -0
- package/akash/audit/v1beta3/genesis.d.ts +47 -0
- package/akash/audit/v1beta3/genesis.js +78 -0
- package/akash/audit/v1beta3/query.d.ts +278 -0
- package/akash/audit/v1beta3/query.js +484 -0
- package/akash/audit/v1beta3/query.lcd.d.ts +12 -0
- package/akash/audit/v1beta3/query.lcd.js +60 -0
- package/akash/audit/v1beta3/query.rpc.Query.d.ts +44 -0
- package/akash/audit/v1beta3/query.rpc.Query.js +66 -0
- package/akash/base/attributes/v1/attribute.d.ts +185 -0
- package/akash/base/attributes/v1/attribute.js +260 -0
- package/akash/base/resources/v1beta4/cpu.d.ts +66 -0
- package/akash/base/resources/v1beta4/cpu.js +91 -0
- package/akash/base/resources/v1beta4/endpoint.d.ts +73 -0
- package/akash/base/resources/v1beta4/endpoint.js +130 -0
- package/akash/base/resources/v1beta4/gpu.d.ts +58 -0
- package/akash/base/resources/v1beta4/gpu.js +91 -0
- package/akash/base/resources/v1beta4/memory.d.ts +66 -0
- package/akash/base/resources/v1beta4/memory.js +91 -0
- package/akash/base/resources/v1beta4/resources.d.ts +108 -0
- package/akash/base/resources/v1beta4/resources.js +146 -0
- package/akash/base/resources/v1beta4/resourcevalue.d.ts +46 -0
- package/akash/base/resources/v1beta4/resourcevalue.js +75 -0
- package/akash/base/resources/v1beta4/storage.d.ts +74 -0
- package/akash/base/resources/v1beta4/storage.js +103 -0
- package/akash/base/v1beta3/attribute.d.ts +173 -0
- package/akash/base/v1beta3/attribute.js +260 -0
- package/akash/base/v1beta3/cpu.d.ts +50 -0
- package/akash/base/v1beta3/cpu.js +91 -0
- package/akash/base/v1beta3/endpoint.d.ts +61 -0
- package/akash/base/v1beta3/endpoint.js +130 -0
- package/akash/base/v1beta3/gpu.d.ts +50 -0
- package/akash/base/v1beta3/gpu.js +91 -0
- package/akash/base/v1beta3/memory.d.ts +50 -0
- package/akash/base/v1beta3/memory.js +91 -0
- package/akash/base/v1beta3/resources.d.ts +64 -0
- package/akash/base/v1beta3/resources.js +146 -0
- package/akash/base/v1beta3/resourcevalue.d.ts +46 -0
- package/akash/base/v1beta3/resourcevalue.js +75 -0
- package/akash/base/v1beta3/storage.d.ts +52 -0
- package/akash/base/v1beta3/storage.js +103 -0
- package/akash/bundle.d.ts +5068 -0
- package/akash/bundle.js +465 -0
- package/akash/cert/v1/cert.d.ts +154 -0
- package/akash/cert/v1/cert.js +225 -0
- package/akash/cert/v1/filters.d.ts +80 -0
- package/akash/cert/v1/filters.js +98 -0
- package/akash/cert/v1/genesis.d.ts +119 -0
- package/akash/cert/v1/genesis.js +159 -0
- package/akash/cert/v1/msg.d.ts +211 -0
- package/akash/cert/v1/msg.js +281 -0
- package/akash/cert/v1/query.d.ts +179 -0
- package/akash/cert/v1/query.js +254 -0
- package/akash/cert/v1/query.lcd.d.ts +9 -0
- package/akash/cert/v1/query.lcd.js +26 -0
- package/akash/cert/v1/query.rpc.Query.d.ts +16 -0
- package/akash/cert/v1/query.rpc.Query.js +29 -0
- package/akash/cert/v1/service.amino.d.ts +13 -0
- package/akash/cert/v1/service.amino.js +17 -0
- package/akash/cert/v1/service.d.ts +1 -0
- package/akash/cert/v1/service.js +2 -0
- package/akash/cert/v1/service.registry.d.ts +37 -0
- package/akash/cert/v1/service.registry.js +55 -0
- package/akash/cert/v1/service.rpc.msg.d.ts +16 -0
- package/akash/cert/v1/service.rpc.msg.js +28 -0
- package/akash/cert/v1beta3/cert.amino.d.ts +13 -0
- package/akash/cert/v1beta3/cert.amino.js +17 -0
- package/akash/cert/v1beta3/cert.d.ts +333 -0
- package/akash/cert/v1beta3/cert.js +591 -0
- package/akash/cert/v1beta3/cert.registry.d.ts +37 -0
- package/akash/cert/v1beta3/cert.registry.js +55 -0
- package/akash/cert/v1beta3/cert.rpc.msg.d.ts +16 -0
- package/akash/cert/v1beta3/cert.rpc.msg.js +28 -0
- package/akash/cert/v1beta3/genesis.d.ts +93 -0
- package/akash/cert/v1beta3/genesis.js +159 -0
- package/akash/cert/v1beta3/query.d.ts +142 -0
- package/akash/cert/v1beta3/query.js +253 -0
- package/akash/cert/v1beta3/query.lcd.d.ts +9 -0
- package/akash/cert/v1beta3/query.lcd.js +26 -0
- package/akash/cert/v1beta3/query.rpc.Query.d.ts +16 -0
- package/akash/cert/v1beta3/query.rpc.Query.js +29 -0
- package/akash/client.d.ts +222 -0
- package/akash/client.js +97 -0
- package/akash/deployment/v1/authz.d.ts +58 -0
- package/akash/deployment/v1/authz.js +76 -0
- package/akash/deployment/v1/deployment.d.ts +162 -0
- package/akash/deployment/v1/deployment.js +237 -0
- package/akash/deployment/v1/event.d.ts +338 -0
- package/akash/deployment/v1/event.js +452 -0
- package/akash/deployment/v1/group.d.ts +89 -0
- package/akash/deployment/v1/group.js +101 -0
- package/akash/deployment/v1/msg.d.ts +122 -0
- package/akash/deployment/v1/msg.js +158 -0
- package/akash/deployment/v1beta3/authz.d.ts +58 -0
- package/akash/deployment/v1beta3/authz.js +76 -0
- package/akash/deployment/v1beta3/deployment.d.ts +159 -0
- package/akash/deployment/v1beta3/deployment.js +329 -0
- package/akash/deployment/v1beta3/deploymentmsg.d.ts +375 -0
- package/akash/deployment/v1beta3/deploymentmsg.js +596 -0
- package/akash/deployment/v1beta3/genesis.d.ts +97 -0
- package/akash/deployment/v1beta3/genesis.js +176 -0
- package/akash/deployment/v1beta3/group.d.ts +71 -0
- package/akash/deployment/v1beta3/group.js +170 -0
- package/akash/deployment/v1beta3/groupid.d.ts +50 -0
- package/akash/deployment/v1beta3/groupid.js +98 -0
- package/akash/deployment/v1beta3/groupmsg.d.ts +261 -0
- package/akash/deployment/v1beta3/groupmsg.js +381 -0
- package/akash/deployment/v1beta3/groupspec.d.ts +52 -0
- package/akash/deployment/v1beta3/groupspec.js +103 -0
- package/akash/deployment/v1beta3/params.d.ts +47 -0
- package/akash/deployment/v1beta3/params.js +78 -0
- package/akash/deployment/v1beta3/query.d.ts +279 -0
- package/akash/deployment/v1beta3/query.js +478 -0
- package/akash/deployment/v1beta3/query.lcd.d.ts +11 -0
- package/akash/deployment/v1beta3/query.lcd.js +48 -0
- package/akash/deployment/v1beta3/query.rpc.Query.d.ts +24 -0
- package/akash/deployment/v1beta3/query.rpc.Query.js +47 -0
- package/akash/deployment/v1beta3/resourceunit.d.ts +52 -0
- package/akash/deployment/v1beta3/resourceunit.js +100 -0
- package/akash/deployment/v1beta3/service.amino.d.ts +39 -0
- package/akash/deployment/v1beta3/service.amino.js +43 -0
- package/akash/deployment/v1beta3/service.d.ts +1 -0
- package/akash/deployment/v1beta3/service.js +2 -0
- package/akash/deployment/v1beta3/service.registry.d.ts +98 -0
- package/akash/deployment/v1beta3/service.registry.js +146 -0
- package/akash/deployment/v1beta3/service.rpc.msg.d.ts +32 -0
- package/akash/deployment/v1beta3/service.rpc.msg.js +59 -0
- package/akash/deployment/v1beta4/deploymentmsg.d.ts +333 -0
- package/akash/deployment/v1beta4/deploymentmsg.js +447 -0
- package/akash/deployment/v1beta4/filters.d.ts +164 -0
- package/akash/deployment/v1beta4/filters.js +203 -0
- package/akash/deployment/v1beta4/genesis.d.ts +121 -0
- package/akash/deployment/v1beta4/genesis.js +176 -0
- package/akash/deployment/v1beta4/group.d.ts +95 -0
- package/akash/deployment/v1beta4/group.js +170 -0
- package/akash/deployment/v1beta4/groupmsg.d.ts +279 -0
- package/akash/deployment/v1beta4/groupmsg.js +381 -0
- package/akash/deployment/v1beta4/groupspec.d.ts +77 -0
- package/akash/deployment/v1beta4/groupspec.js +104 -0
- package/akash/deployment/v1beta4/params.d.ts +53 -0
- package/akash/deployment/v1beta4/params.js +78 -0
- package/akash/deployment/v1beta4/paramsmsg.d.ts +122 -0
- package/akash/deployment/v1beta4/paramsmsg.js +148 -0
- package/akash/deployment/v1beta4/query.d.ts +437 -0
- package/akash/deployment/v1beta4/query.js +605 -0
- package/akash/deployment/v1beta4/query.lcd.d.ts +12 -0
- package/akash/deployment/v1beta4/query.lcd.js +53 -0
- package/akash/deployment/v1beta4/query.rpc.Query.d.ts +28 -0
- package/akash/deployment/v1beta4/query.rpc.Query.js +56 -0
- package/akash/deployment/v1beta4/resourceunit.d.ts +70 -0
- package/akash/deployment/v1beta4/resourceunit.js +100 -0
- package/akash/deployment/v1beta4/service.amino.d.ts +46 -0
- package/akash/deployment/v1beta4/service.amino.js +50 -0
- package/akash/deployment/v1beta4/service.d.ts +1 -0
- package/akash/deployment/v1beta4/service.js +2 -0
- package/akash/deployment/v1beta4/service.registry.d.ts +112 -0
- package/akash/deployment/v1beta4/service.registry.js +166 -0
- package/akash/deployment/v1beta4/service.rpc.msg.d.ts +42 -0
- package/akash/deployment/v1beta4/service.rpc.msg.js +70 -0
- package/akash/discovery/v1/akash.d.ts +53 -0
- package/akash/discovery/v1/akash.js +75 -0
- package/akash/discovery/v1/client_info.d.ts +52 -0
- package/akash/discovery/v1/client_info.js +74 -0
- package/akash/escrow/v1/account.d.ts +147 -0
- package/akash/escrow/v1/account.js +211 -0
- package/akash/escrow/v1/accountid.d.ts +60 -0
- package/akash/escrow/v1/accountid.js +86 -0
- package/akash/escrow/v1/fractional_payment.d.ts +125 -0
- package/akash/escrow/v1/fractional_payment.js +199 -0
- package/akash/escrow/v1/genesis.d.ts +62 -0
- package/akash/escrow/v1/genesis.js +94 -0
- package/akash/escrow/v1/query.d.ts +309 -0
- package/akash/escrow/v1/query.js +422 -0
- package/akash/escrow/v1/query.lcd.d.ts +10 -0
- package/akash/escrow/v1/query.lcd.js +65 -0
- package/akash/escrow/v1/query.rpc.Query.d.ts +28 -0
- package/akash/escrow/v1/query.rpc.Query.js +42 -0
- package/akash/escrow/v1beta3/genesis.d.ts +49 -0
- package/akash/escrow/v1beta3/genesis.js +93 -0
- package/akash/escrow/v1beta3/query.d.ts +202 -0
- package/akash/escrow/v1beta3/query.js +421 -0
- package/akash/escrow/v1beta3/query.lcd.d.ts +10 -0
- package/akash/escrow/v1beta3/query.lcd.js +65 -0
- package/akash/escrow/v1beta3/query.rpc.Query.d.ts +28 -0
- package/akash/escrow/v1beta3/query.rpc.Query.js +42 -0
- package/akash/escrow/v1beta3/types.d.ts +247 -0
- package/akash/escrow/v1beta3/types.js +483 -0
- package/akash/lcd.d.ts +89 -0
- package/akash/lcd.js +193 -0
- package/akash/market/v1/bid.d.ts +109 -0
- package/akash/market/v1/bid.js +123 -0
- package/akash/market/v1/event.d.ts +340 -0
- package/akash/market/v1/event.js +453 -0
- package/akash/market/v1/filters.d.ts +114 -0
- package/akash/market/v1/filters.js +134 -0
- package/akash/market/v1/lease.d.ts +213 -0
- package/akash/market/v1/lease.js +294 -0
- package/akash/market/v1/order.d.ts +90 -0
- package/akash/market/v1/order.js +110 -0
- package/akash/market/v1beta4/bid.d.ts +412 -0
- package/akash/market/v1beta4/bid.js +816 -0
- package/akash/market/v1beta4/genesis.d.ts +56 -0
- package/akash/market/v1beta4/genesis.js +123 -0
- package/akash/market/v1beta4/lease.d.ts +435 -0
- package/akash/market/v1beta4/lease.js +796 -0
- package/akash/market/v1beta4/order.d.ts +170 -0
- package/akash/market/v1beta4/order.js +384 -0
- package/akash/market/v1beta4/params.d.ts +49 -0
- package/akash/market/v1beta4/params.js +87 -0
- package/akash/market/v1beta4/query.d.ts +551 -0
- package/akash/market/v1beta4/query.js +943 -0
- package/akash/market/v1beta4/query.lcd.d.ts +14 -0
- package/akash/market/v1beta4/query.lcd.js +87 -0
- package/akash/market/v1beta4/query.rpc.Query.d.ts +36 -0
- package/akash/market/v1beta4/query.rpc.Query.js +74 -0
- package/akash/market/v1beta4/service.amino.d.ts +29 -0
- package/akash/market/v1beta4/service.amino.js +33 -0
- package/akash/market/v1beta4/service.d.ts +1 -0
- package/akash/market/v1beta4/service.js +2 -0
- package/akash/market/v1beta4/service.registry.d.ts +74 -0
- package/akash/market/v1beta4/service.registry.js +111 -0
- package/akash/market/v1beta4/service.rpc.msg.d.ts +26 -0
- package/akash/market/v1beta4/service.rpc.msg.js +48 -0
- package/akash/market/v1beta5/bid.d.ts +106 -0
- package/akash/market/v1beta5/bid.js +186 -0
- package/akash/market/v1beta5/bidmsg.d.ts +230 -0
- package/akash/market/v1beta5/bidmsg.js +310 -0
- package/akash/market/v1beta5/filters.d.ts +210 -0
- package/akash/market/v1beta5/filters.js +251 -0
- package/akash/market/v1beta5/genesis.d.ts +80 -0
- package/akash/market/v1beta5/genesis.js +123 -0
- package/akash/market/v1beta5/leasemsg.d.ts +280 -0
- package/akash/market/v1beta5/leasemsg.js +382 -0
- package/akash/market/v1beta5/order.d.ts +75 -0
- package/akash/market/v1beta5/order.js +163 -0
- package/akash/market/v1beta5/params.d.ts +61 -0
- package/akash/market/v1beta5/params.js +87 -0
- package/akash/market/v1beta5/paramsmsg.d.ts +122 -0
- package/akash/market/v1beta5/paramsmsg.js +148 -0
- package/akash/market/v1beta5/query.d.ts +769 -0
- package/akash/market/v1beta5/query.js +1074 -0
- package/akash/market/v1beta5/query.lcd.d.ts +15 -0
- package/akash/market/v1beta5/query.lcd.js +92 -0
- package/akash/market/v1beta5/query.rpc.Query.d.ts +40 -0
- package/akash/market/v1beta5/query.rpc.Query.js +83 -0
- package/akash/market/v1beta5/resourcesoffer.d.ts +64 -0
- package/akash/market/v1beta5/resourcesoffer.js +88 -0
- package/akash/market/v1beta5/service.amino.d.ts +35 -0
- package/akash/market/v1beta5/service.amino.js +39 -0
- package/akash/market/v1beta5/service.d.ts +1 -0
- package/akash/market/v1beta5/service.js +2 -0
- package/akash/market/v1beta5/service.registry.d.ts +87 -0
- package/akash/market/v1beta5/service.registry.js +129 -0
- package/akash/market/v1beta5/service.rpc.msg.d.ts +35 -0
- package/akash/market/v1beta5/service.rpc.msg.js +57 -0
- package/akash/provider/v1beta3/genesis.d.ts +47 -0
- package/akash/provider/v1beta3/genesis.js +78 -0
- package/akash/provider/v1beta3/provider.amino.d.ts +18 -0
- package/akash/provider/v1beta3/provider.amino.js +22 -0
- package/akash/provider/v1beta3/provider.d.ts +369 -0
- package/akash/provider/v1beta3/provider.js +648 -0
- package/akash/provider/v1beta3/provider.registry.d.ts +49 -0
- package/akash/provider/v1beta3/provider.registry.js +73 -0
- package/akash/provider/v1beta3/provider.rpc.msg.d.ts +19 -0
- package/akash/provider/v1beta3/provider.rpc.msg.js +34 -0
- package/akash/provider/v1beta3/query.d.ts +182 -0
- package/akash/provider/v1beta3/query.js +298 -0
- package/akash/provider/v1beta3/query.lcd.d.ts +10 -0
- package/akash/provider/v1beta3/query.lcd.js +30 -0
- package/akash/provider/v1beta3/query.rpc.Query.d.ts +20 -0
- package/akash/provider/v1beta3/query.rpc.Query.js +40 -0
- package/akash/provider/v1beta4/event.d.ts +182 -0
- package/akash/provider/v1beta4/event.js +214 -0
- package/akash/provider/v1beta4/genesis.d.ts +53 -0
- package/akash/provider/v1beta4/genesis.js +78 -0
- package/akash/provider/v1beta4/msg.d.ts +308 -0
- package/akash/provider/v1beta4/msg.js +460 -0
- package/akash/provider/v1beta4/provider.d.ts +157 -0
- package/akash/provider/v1beta4/provider.js +199 -0
- package/akash/provider/v1beta4/query.d.ts +220 -0
- package/akash/provider/v1beta4/query.js +298 -0
- package/akash/provider/v1beta4/query.lcd.d.ts +10 -0
- package/akash/provider/v1beta4/query.lcd.js +30 -0
- package/akash/provider/v1beta4/query.rpc.Query.d.ts +20 -0
- package/akash/provider/v1beta4/query.rpc.Query.js +40 -0
- package/akash/provider/v1beta4/service.amino.d.ts +18 -0
- package/akash/provider/v1beta4/service.amino.js +22 -0
- package/akash/provider/v1beta4/service.d.ts +1 -0
- package/akash/provider/v1beta4/service.js +2 -0
- package/akash/provider/v1beta4/service.registry.d.ts +49 -0
- package/akash/provider/v1beta4/service.registry.js +73 -0
- package/akash/provider/v1beta4/service.rpc.msg.d.ts +19 -0
- package/akash/provider/v1beta4/service.rpc.msg.js +34 -0
- package/akash/rpc.query.d.ts +281 -0
- package/akash/rpc.query.js +135 -0
- package/akash/rpc.tx.d.ts +81 -0
- package/akash/rpc.tx.js +115 -0
- package/akash/take/v1/genesis.d.ts +53 -0
- package/akash/take/v1/genesis.js +75 -0
- package/akash/take/v1/params.d.ts +118 -0
- package/akash/take/v1/params.js +170 -0
- package/akash/take/v1/paramsmsg.d.ts +122 -0
- package/akash/take/v1/paramsmsg.js +148 -0
- package/akash/take/v1/query.d.ts +95 -0
- package/akash/take/v1/query.js +131 -0
- package/akash/take/v1/query.lcd.d.ts +9 -0
- package/akash/take/v1/query.lcd.js +15 -0
- package/akash/take/v1/query.rpc.Query.d.ts +16 -0
- package/akash/take/v1/query.rpc.Query.js +29 -0
- package/akash/take/v1/service.amino.d.ts +8 -0
- package/akash/take/v1/service.amino.js +12 -0
- package/akash/take/v1/service.d.ts +1 -0
- package/akash/take/v1/service.js +2 -0
- package/akash/take/v1/service.registry.d.ts +25 -0
- package/akash/take/v1/service.registry.js +37 -0
- package/akash/take/v1/service.rpc.msg.d.ts +18 -0
- package/akash/take/v1/service.rpc.msg.js +25 -0
- package/akash/take/v1beta3/genesis.d.ts +47 -0
- package/akash/take/v1beta3/genesis.js +75 -0
- package/akash/take/v1beta3/params.d.ts +100 -0
- package/akash/take/v1beta3/params.js +170 -0
- package/akash/take/v1beta3/query.d.ts +1 -0
- package/akash/take/v1beta3/query.js +2 -0
- package/akash/take/v1beta3/query.rpc.Query.d.ts +10 -0
- package/akash/take/v1beta3/query.rpc.Query.js +17 -0
- package/amino/bundle.js +2 -2
- package/cosmos/bundle.d.ts +7609 -7547
- package/cosmos/bundle.js +420 -412
- package/cosmos/client.d.ts +2 -2
- package/cosmos/crypto/bls12_381/keys.d.ts +106 -0
- package/cosmos/crypto/bls12_381/keys.js +162 -0
- package/cosmos/crypto/mldsa65/keys.d.ts +106 -0
- package/cosmos/crypto/mldsa65/keys.js +162 -0
- package/cosmos_proto/bundle.d.ts +23 -23
- package/cosmos_proto/bundle.js +2 -2
- package/esm/akash/audit/v1/audit.js +262 -0
- package/esm/akash/audit/v1/event.js +164 -0
- package/esm/akash/audit/v1/genesis.js +75 -0
- package/esm/akash/audit/v1/msg.js +307 -0
- package/esm/akash/audit/v1/query.js +481 -0
- package/esm/akash/audit/v1/query.lcd.js +56 -0
- package/esm/akash/audit/v1/query.rpc.Query.js +61 -0
- package/esm/akash/audit/v1/service.amino.js +14 -0
- package/esm/akash/audit/v1/service.js +1 -0
- package/esm/akash/audit/v1/service.registry.js +51 -0
- package/esm/akash/audit/v1/service.rpc.msg.js +23 -0
- package/esm/akash/audit/v1beta3/audit.amino.js +14 -0
- package/esm/akash/audit/v1beta3/audit.js +658 -0
- package/esm/akash/audit/v1beta3/audit.registry.js +51 -0
- package/esm/akash/audit/v1beta3/audit.rpc.msg.js +23 -0
- package/esm/akash/audit/v1beta3/genesis.js +75 -0
- package/esm/akash/audit/v1beta3/query.js +481 -0
- package/esm/akash/audit/v1beta3/query.lcd.js +56 -0
- package/esm/akash/audit/v1beta3/query.rpc.Query.js +61 -0
- package/esm/akash/base/attributes/v1/attribute.js +257 -0
- package/esm/akash/base/resources/v1beta4/cpu.js +88 -0
- package/esm/akash/base/resources/v1beta4/endpoint.js +125 -0
- package/esm/akash/base/resources/v1beta4/gpu.js +88 -0
- package/esm/akash/base/resources/v1beta4/memory.js +88 -0
- package/esm/akash/base/resources/v1beta4/resources.js +143 -0
- package/esm/akash/base/resources/v1beta4/resourcevalue.js +72 -0
- package/esm/akash/base/resources/v1beta4/storage.js +100 -0
- package/esm/akash/base/v1beta3/attribute.js +257 -0
- package/esm/akash/base/v1beta3/cpu.js +88 -0
- package/esm/akash/base/v1beta3/endpoint.js +125 -0
- package/esm/akash/base/v1beta3/gpu.js +88 -0
- package/esm/akash/base/v1beta3/memory.js +88 -0
- package/esm/akash/base/v1beta3/resources.js +143 -0
- package/esm/akash/base/v1beta3/resourcevalue.js +72 -0
- package/esm/akash/base/v1beta3/storage.js +100 -0
- package/esm/akash/bundle.js +429 -0
- package/esm/akash/cert/v1/cert.js +220 -0
- package/esm/akash/cert/v1/filters.js +95 -0
- package/esm/akash/cert/v1/genesis.js +156 -0
- package/esm/akash/cert/v1/msg.js +278 -0
- package/esm/akash/cert/v1/query.js +251 -0
- package/esm/akash/cert/v1/query.lcd.js +22 -0
- package/esm/akash/cert/v1/query.rpc.Query.js +24 -0
- package/esm/akash/cert/v1/service.amino.js +14 -0
- package/esm/akash/cert/v1/service.js +1 -0
- package/esm/akash/cert/v1/service.registry.js +51 -0
- package/esm/akash/cert/v1/service.rpc.msg.js +23 -0
- package/esm/akash/cert/v1beta3/cert.amino.js +14 -0
- package/esm/akash/cert/v1beta3/cert.js +586 -0
- package/esm/akash/cert/v1beta3/cert.registry.js +51 -0
- package/esm/akash/cert/v1beta3/cert.rpc.msg.js +23 -0
- package/esm/akash/cert/v1beta3/genesis.js +156 -0
- package/esm/akash/cert/v1beta3/query.js +250 -0
- package/esm/akash/cert/v1beta3/query.lcd.js +22 -0
- package/esm/akash/cert/v1beta3/query.rpc.Query.js +24 -0
- package/esm/akash/client.js +59 -0
- package/esm/akash/deployment/v1/authz.js +73 -0
- package/esm/akash/deployment/v1/deployment.js +232 -0
- package/esm/akash/deployment/v1/event.js +449 -0
- package/esm/akash/deployment/v1/group.js +98 -0
- package/esm/akash/deployment/v1/msg.js +155 -0
- package/esm/akash/deployment/v1beta3/authz.js +73 -0
- package/esm/akash/deployment/v1beta3/deployment.js +324 -0
- package/esm/akash/deployment/v1beta3/deploymentmsg.js +593 -0
- package/esm/akash/deployment/v1beta3/genesis.js +173 -0
- package/esm/akash/deployment/v1beta3/group.js +165 -0
- package/esm/akash/deployment/v1beta3/groupid.js +95 -0
- package/esm/akash/deployment/v1beta3/groupmsg.js +378 -0
- package/esm/akash/deployment/v1beta3/groupspec.js +100 -0
- package/esm/akash/deployment/v1beta3/params.js +75 -0
- package/esm/akash/deployment/v1beta3/query.js +475 -0
- package/esm/akash/deployment/v1beta3/query.lcd.js +44 -0
- package/esm/akash/deployment/v1beta3/query.rpc.Query.js +42 -0
- package/esm/akash/deployment/v1beta3/resourceunit.js +97 -0
- package/esm/akash/deployment/v1beta3/service.amino.js +40 -0
- package/esm/akash/deployment/v1beta3/service.js +1 -0
- package/esm/akash/deployment/v1beta3/service.registry.js +142 -0
- package/esm/akash/deployment/v1beta3/service.rpc.msg.js +54 -0
- package/esm/akash/deployment/v1beta4/deploymentmsg.js +444 -0
- package/esm/akash/deployment/v1beta4/filters.js +200 -0
- package/esm/akash/deployment/v1beta4/genesis.js +173 -0
- package/esm/akash/deployment/v1beta4/group.js +165 -0
- package/esm/akash/deployment/v1beta4/groupmsg.js +378 -0
- package/esm/akash/deployment/v1beta4/groupspec.js +101 -0
- package/esm/akash/deployment/v1beta4/params.js +75 -0
- package/esm/akash/deployment/v1beta4/paramsmsg.js +145 -0
- package/esm/akash/deployment/v1beta4/query.js +602 -0
- package/esm/akash/deployment/v1beta4/query.lcd.js +49 -0
- package/esm/akash/deployment/v1beta4/query.rpc.Query.js +51 -0
- package/esm/akash/deployment/v1beta4/resourceunit.js +97 -0
- package/esm/akash/deployment/v1beta4/service.amino.js +47 -0
- package/esm/akash/deployment/v1beta4/service.js +1 -0
- package/esm/akash/deployment/v1beta4/service.registry.js +162 -0
- package/esm/akash/deployment/v1beta4/service.rpc.msg.js +65 -0
- package/esm/akash/discovery/v1/akash.js +72 -0
- package/esm/akash/discovery/v1/client_info.js +71 -0
- package/esm/akash/escrow/v1/account.js +206 -0
- package/esm/akash/escrow/v1/accountid.js +83 -0
- package/esm/akash/escrow/v1/fractional_payment.js +194 -0
- package/esm/akash/escrow/v1/genesis.js +91 -0
- package/esm/akash/escrow/v1/query.js +419 -0
- package/esm/akash/escrow/v1/query.lcd.js +61 -0
- package/esm/akash/escrow/v1/query.rpc.Query.js +37 -0
- package/esm/akash/escrow/v1beta3/genesis.js +90 -0
- package/esm/akash/escrow/v1beta3/query.js +418 -0
- package/esm/akash/escrow/v1beta3/query.lcd.js +61 -0
- package/esm/akash/escrow/v1beta3/query.rpc.Query.js +37 -0
- package/esm/akash/escrow/v1beta3/types.js +476 -0
- package/esm/akash/lcd.js +156 -0
- package/esm/akash/market/v1/bid.js +120 -0
- package/esm/akash/market/v1/event.js +450 -0
- package/esm/akash/market/v1/filters.js +131 -0
- package/esm/akash/market/v1/lease.js +289 -0
- package/esm/akash/market/v1/order.js +107 -0
- package/esm/akash/market/v1beta4/bid.js +811 -0
- package/esm/akash/market/v1beta4/genesis.js +120 -0
- package/esm/akash/market/v1beta4/lease.js +791 -0
- package/esm/akash/market/v1beta4/order.js +379 -0
- package/esm/akash/market/v1beta4/params.js +84 -0
- package/esm/akash/market/v1beta4/query.js +940 -0
- package/esm/akash/market/v1beta4/query.lcd.js +83 -0
- package/esm/akash/market/v1beta4/query.rpc.Query.js +69 -0
- package/esm/akash/market/v1beta4/service.amino.js +30 -0
- package/esm/akash/market/v1beta4/service.js +1 -0
- package/esm/akash/market/v1beta4/service.registry.js +107 -0
- package/esm/akash/market/v1beta4/service.rpc.msg.js +43 -0
- package/esm/akash/market/v1beta5/bid.js +181 -0
- package/esm/akash/market/v1beta5/bidmsg.js +307 -0
- package/esm/akash/market/v1beta5/filters.js +248 -0
- package/esm/akash/market/v1beta5/genesis.js +120 -0
- package/esm/akash/market/v1beta5/leasemsg.js +379 -0
- package/esm/akash/market/v1beta5/order.js +158 -0
- package/esm/akash/market/v1beta5/params.js +84 -0
- package/esm/akash/market/v1beta5/paramsmsg.js +145 -0
- package/esm/akash/market/v1beta5/query.js +1071 -0
- package/esm/akash/market/v1beta5/query.lcd.js +88 -0
- package/esm/akash/market/v1beta5/query.rpc.Query.js +78 -0
- package/esm/akash/market/v1beta5/resourcesoffer.js +85 -0
- package/esm/akash/market/v1beta5/service.amino.js +36 -0
- package/esm/akash/market/v1beta5/service.js +1 -0
- package/esm/akash/market/v1beta5/service.registry.js +125 -0
- package/esm/akash/market/v1beta5/service.rpc.msg.js +52 -0
- package/esm/akash/provider/v1beta3/genesis.js +75 -0
- package/esm/akash/provider/v1beta3/provider.amino.js +19 -0
- package/esm/akash/provider/v1beta3/provider.js +645 -0
- package/esm/akash/provider/v1beta3/provider.registry.js +69 -0
- package/esm/akash/provider/v1beta3/provider.rpc.msg.js +29 -0
- package/esm/akash/provider/v1beta3/query.js +295 -0
- package/esm/akash/provider/v1beta3/query.lcd.js +26 -0
- package/esm/akash/provider/v1beta3/query.rpc.Query.js +35 -0
- package/esm/akash/provider/v1beta4/event.js +211 -0
- package/esm/akash/provider/v1beta4/genesis.js +75 -0
- package/esm/akash/provider/v1beta4/msg.js +457 -0
- package/esm/akash/provider/v1beta4/provider.js +196 -0
- package/esm/akash/provider/v1beta4/query.js +295 -0
- package/esm/akash/provider/v1beta4/query.lcd.js +26 -0
- package/esm/akash/provider/v1beta4/query.rpc.Query.js +35 -0
- package/esm/akash/provider/v1beta4/service.amino.js +19 -0
- package/esm/akash/provider/v1beta4/service.js +1 -0
- package/esm/akash/provider/v1beta4/service.registry.js +69 -0
- package/esm/akash/provider/v1beta4/service.rpc.msg.js +29 -0
- package/esm/akash/rpc.query.js +98 -0
- package/esm/akash/rpc.tx.js +78 -0
- package/esm/akash/take/v1/genesis.js +72 -0
- package/esm/akash/take/v1/params.js +167 -0
- package/esm/akash/take/v1/paramsmsg.js +145 -0
- package/esm/akash/take/v1/query.js +128 -0
- package/esm/akash/take/v1/query.lcd.js +11 -0
- package/esm/akash/take/v1/query.rpc.Query.js +24 -0
- package/esm/akash/take/v1/service.amino.js +9 -0
- package/esm/akash/take/v1/service.js +1 -0
- package/esm/akash/take/v1/service.registry.js +33 -0
- package/esm/akash/take/v1/service.rpc.msg.js +20 -0
- package/esm/akash/take/v1beta3/genesis.js +72 -0
- package/esm/akash/take/v1beta3/params.js +167 -0
- package/esm/akash/take/v1beta3/query.js +1 -0
- package/esm/akash/take/v1beta3/query.rpc.Query.js +12 -0
- package/esm/amino/bundle.js +2 -2
- package/esm/cosmos/bundle.js +420 -412
- package/esm/cosmos/crypto/bls12_381/keys.js +159 -0
- package/esm/cosmos/crypto/mldsa65/keys.js +159 -0
- package/esm/cosmos_proto/bundle.js +2 -2
- package/esm/gogoproto/bundle.js +2 -2
- package/esm/google/bundle.js +8 -8
- package/esm/google/protobuf/any.js +22 -77
- package/esm/google/protobuf/descriptor.js +135 -1
- package/esm/google/protobuf/timestamp.js +2 -2
- package/esm/ibc/applications/gmp/v1/account.js +271 -0
- package/esm/ibc/applications/gmp/v1/genesis.js +170 -0
- package/esm/ibc/applications/gmp/v1/packet.js +203 -0
- package/esm/ibc/applications/gmp/v1/query.js +331 -0
- package/esm/ibc/applications/gmp/v1/query.lcd.js +23 -0
- package/esm/ibc/applications/gmp/v1/query.rpc.Query.js +34 -0
- package/esm/ibc/applications/gmp/v1/tx.amino.js +9 -0
- package/esm/ibc/applications/gmp/v1/tx.js +239 -0
- package/esm/ibc/applications/gmp/v1/tx.registry.js +33 -0
- package/esm/ibc/applications/gmp/v1/tx.rpc.msg.js +17 -0
- package/esm/ibc/applications/packet_forward_middleware/v1/genesis.js +1 -13
- package/esm/ibc/applications/rate_limiting/v1/genesis.js +16 -1
- package/esm/ibc/bundle.js +244 -212
- package/esm/ibc/client.js +4 -1
- package/esm/ibc/lcd.js +5 -0
- package/esm/ibc/lightclients/attestations/v1/attestations.js +288 -0
- package/esm/ibc/rpc.query.js +3 -0
- package/esm/ibc/rpc.tx.js +3 -0
- package/esm/index.js +2 -0
- package/esm/sparkdream/bundle.js +540 -540
- package/esm/tendermint/bundle.js +20 -20
- package/gogoproto/bundle.js +2 -2
- package/google/bundle.d.ts +434 -418
- package/google/bundle.js +8 -8
- package/google/protobuf/any.d.ts +133 -296
- package/google/protobuf/any.js +22 -77
- package/google/protobuf/descriptor.d.ts +106 -0
- package/google/protobuf/descriptor.js +139 -3
- package/google/protobuf/timestamp.d.ts +13 -12
- package/google/protobuf/timestamp.js +2 -2
- package/ibc/applications/gmp/v1/account.d.ts +165 -0
- package/ibc/applications/gmp/v1/account.js +274 -0
- package/ibc/applications/gmp/v1/genesis.d.ts +115 -0
- package/ibc/applications/gmp/v1/genesis.js +173 -0
- package/ibc/applications/gmp/v1/packet.d.ts +138 -0
- package/ibc/applications/gmp/v1/packet.js +206 -0
- package/ibc/applications/gmp/v1/query.d.ts +215 -0
- package/ibc/applications/gmp/v1/query.js +334 -0
- package/ibc/applications/gmp/v1/query.lcd.d.ts +10 -0
- package/ibc/applications/gmp/v1/query.lcd.js +27 -0
- package/ibc/applications/gmp/v1/query.rpc.Query.d.ts +23 -0
- package/ibc/applications/gmp/v1/query.rpc.Query.js +39 -0
- package/ibc/applications/gmp/v1/tx.amino.d.ts +8 -0
- package/ibc/applications/gmp/v1/tx.amino.js +12 -0
- package/ibc/applications/gmp/v1/tx.d.ts +162 -0
- package/ibc/applications/gmp/v1/tx.js +242 -0
- package/ibc/applications/gmp/v1/tx.registry.d.ts +25 -0
- package/ibc/applications/gmp/v1/tx.registry.js +37 -0
- package/ibc/applications/gmp/v1/tx.rpc.msg.d.ts +13 -0
- package/ibc/applications/gmp/v1/tx.rpc.msg.js +22 -0
- package/ibc/applications/packet_forward_middleware/v1/genesis.d.ts +0 -2
- package/ibc/applications/packet_forward_middleware/v1/genesis.js +1 -13
- package/ibc/applications/rate_limiting/v1/genesis.d.ts +2 -0
- package/ibc/applications/rate_limiting/v1/genesis.js +16 -1
- package/ibc/bundle.d.ts +3971 -3681
- package/ibc/bundle.js +244 -212
- package/ibc/client.d.ts +7 -2
- package/ibc/client.js +4 -1
- package/ibc/lcd.d.ts +3 -0
- package/ibc/lcd.js +5 -0
- package/ibc/lightclients/attestations/v1/attestations.d.ts +199 -0
- package/ibc/lightclients/attestations/v1/attestations.js +291 -0
- package/ibc/rpc.query.d.ts +6 -0
- package/ibc/rpc.query.js +3 -0
- package/ibc/rpc.tx.d.ts +3 -0
- package/ibc/rpc.tx.js +3 -0
- package/index.d.ts +2 -0
- package/index.js +2 -0
- package/package.json +8 -5
- package/sparkdream/bundle.d.ts +17390 -17390
- package/sparkdream/bundle.js +540 -540
- package/sparkdream/client.d.ts +2 -2
- package/tendermint/bundle.d.ts +844 -844
- package/tendermint/bundle.js +20 -20
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Endpoint = exports.Endpoint_KindAmino = exports.Endpoint_Kind = void 0;
|
|
4
|
+
exports.endpoint_KindFromJSON = endpoint_KindFromJSON;
|
|
5
|
+
exports.endpoint_KindToJSON = endpoint_KindToJSON;
|
|
6
|
+
//@ts-nocheck
|
|
7
|
+
const binary_1 = require("../../../../binary");
|
|
8
|
+
/** Kind describes how the endpoint is implemented when the lease is deployed. */
|
|
9
|
+
var Endpoint_Kind;
|
|
10
|
+
(function (Endpoint_Kind) {
|
|
11
|
+
/** SHARED_HTTP - Describes an endpoint that becomes a Kubernetes Ingress. */
|
|
12
|
+
Endpoint_Kind[Endpoint_Kind["SHARED_HTTP"] = 0] = "SHARED_HTTP";
|
|
13
|
+
/** RANDOM_PORT - Describes an endpoint that becomes a Kubernetes NodePort. */
|
|
14
|
+
Endpoint_Kind[Endpoint_Kind["RANDOM_PORT"] = 1] = "RANDOM_PORT";
|
|
15
|
+
/** LEASED_IP - Describes an endpoint that becomes a leased IP. */
|
|
16
|
+
Endpoint_Kind[Endpoint_Kind["LEASED_IP"] = 2] = "LEASED_IP";
|
|
17
|
+
Endpoint_Kind[Endpoint_Kind["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
18
|
+
})(Endpoint_Kind || (exports.Endpoint_Kind = Endpoint_Kind = {}));
|
|
19
|
+
exports.Endpoint_KindAmino = Endpoint_Kind;
|
|
20
|
+
function endpoint_KindFromJSON(object) {
|
|
21
|
+
switch (object) {
|
|
22
|
+
case 0:
|
|
23
|
+
case "SHARED_HTTP":
|
|
24
|
+
return Endpoint_Kind.SHARED_HTTP;
|
|
25
|
+
case 1:
|
|
26
|
+
case "RANDOM_PORT":
|
|
27
|
+
return Endpoint_Kind.RANDOM_PORT;
|
|
28
|
+
case 2:
|
|
29
|
+
case "LEASED_IP":
|
|
30
|
+
return Endpoint_Kind.LEASED_IP;
|
|
31
|
+
case -1:
|
|
32
|
+
case "UNRECOGNIZED":
|
|
33
|
+
default:
|
|
34
|
+
return Endpoint_Kind.UNRECOGNIZED;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
function endpoint_KindToJSON(object) {
|
|
38
|
+
switch (object) {
|
|
39
|
+
case Endpoint_Kind.SHARED_HTTP:
|
|
40
|
+
return "SHARED_HTTP";
|
|
41
|
+
case Endpoint_Kind.RANDOM_PORT:
|
|
42
|
+
return "RANDOM_PORT";
|
|
43
|
+
case Endpoint_Kind.LEASED_IP:
|
|
44
|
+
return "LEASED_IP";
|
|
45
|
+
case Endpoint_Kind.UNRECOGNIZED:
|
|
46
|
+
default:
|
|
47
|
+
return "UNRECOGNIZED";
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
function createBaseEndpoint() {
|
|
51
|
+
return {
|
|
52
|
+
kind: 0,
|
|
53
|
+
sequenceNumber: 0
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Endpoint describes a publicly accessible IP service.
|
|
58
|
+
* @name Endpoint
|
|
59
|
+
* @package akash.base.resources.v1beta4
|
|
60
|
+
* @see proto type: akash.base.resources.v1beta4.Endpoint
|
|
61
|
+
*/
|
|
62
|
+
exports.Endpoint = {
|
|
63
|
+
typeUrl: "/akash.base.resources.v1beta4.Endpoint",
|
|
64
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
65
|
+
if (message.kind !== 0) {
|
|
66
|
+
writer.uint32(8).int32(message.kind);
|
|
67
|
+
}
|
|
68
|
+
if (message.sequenceNumber !== 0) {
|
|
69
|
+
writer.uint32(16).uint32(message.sequenceNumber);
|
|
70
|
+
}
|
|
71
|
+
return writer;
|
|
72
|
+
},
|
|
73
|
+
decode(input, length) {
|
|
74
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
75
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
76
|
+
const message = createBaseEndpoint();
|
|
77
|
+
while (reader.pos < end) {
|
|
78
|
+
const tag = reader.uint32();
|
|
79
|
+
switch (tag >>> 3) {
|
|
80
|
+
case 1:
|
|
81
|
+
message.kind = reader.int32();
|
|
82
|
+
break;
|
|
83
|
+
case 2:
|
|
84
|
+
message.sequenceNumber = reader.uint32();
|
|
85
|
+
break;
|
|
86
|
+
default:
|
|
87
|
+
reader.skipType(tag & 7);
|
|
88
|
+
break;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
return message;
|
|
92
|
+
},
|
|
93
|
+
fromPartial(object) {
|
|
94
|
+
const message = createBaseEndpoint();
|
|
95
|
+
message.kind = object.kind ?? 0;
|
|
96
|
+
message.sequenceNumber = object.sequenceNumber ?? 0;
|
|
97
|
+
return message;
|
|
98
|
+
},
|
|
99
|
+
fromAmino(object) {
|
|
100
|
+
const message = createBaseEndpoint();
|
|
101
|
+
if (object.kind !== undefined && object.kind !== null) {
|
|
102
|
+
message.kind = object.kind;
|
|
103
|
+
}
|
|
104
|
+
if (object.sequence_number !== undefined && object.sequence_number !== null) {
|
|
105
|
+
message.sequenceNumber = object.sequence_number;
|
|
106
|
+
}
|
|
107
|
+
return message;
|
|
108
|
+
},
|
|
109
|
+
toAmino(message) {
|
|
110
|
+
const obj = {};
|
|
111
|
+
obj.kind = message.kind === 0 ? undefined : message.kind;
|
|
112
|
+
obj.sequence_number = message.sequenceNumber ?? 0;
|
|
113
|
+
return obj;
|
|
114
|
+
},
|
|
115
|
+
fromAminoMsg(object) {
|
|
116
|
+
return exports.Endpoint.fromAmino(object.value);
|
|
117
|
+
},
|
|
118
|
+
fromProtoMsg(message) {
|
|
119
|
+
return exports.Endpoint.decode(message.value);
|
|
120
|
+
},
|
|
121
|
+
toProto(message) {
|
|
122
|
+
return exports.Endpoint.encode(message).finish();
|
|
123
|
+
},
|
|
124
|
+
toProtoMsg(message) {
|
|
125
|
+
return {
|
|
126
|
+
typeUrl: "/akash.base.resources.v1beta4.Endpoint",
|
|
127
|
+
value: exports.Endpoint.encode(message).finish()
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { ResourceValue, ResourceValueAmino } from "./resourcevalue";
|
|
2
|
+
import { Attribute, AttributeAmino } from "../../attributes/v1/attribute";
|
|
3
|
+
import { BinaryReader, BinaryWriter } from "../../../../binary";
|
|
4
|
+
import { DeepPartial } from "../../../../helpers";
|
|
5
|
+
/**
|
|
6
|
+
* GPU stores resource units and gpu configuration attributes.
|
|
7
|
+
* @name GPU
|
|
8
|
+
* @package akash.base.resources.v1beta4
|
|
9
|
+
* @see proto type: akash.base.resources.v1beta4.GPU
|
|
10
|
+
*/
|
|
11
|
+
export interface GPU {
|
|
12
|
+
/**
|
|
13
|
+
* The resource value of the GPU, which represents the number of GPUs available.
|
|
14
|
+
* This field is required and must be a non-negative integer.
|
|
15
|
+
*/
|
|
16
|
+
units: ResourceValue;
|
|
17
|
+
attributes: Attribute[];
|
|
18
|
+
}
|
|
19
|
+
export interface GPUProtoMsg {
|
|
20
|
+
typeUrl: "/akash.base.resources.v1beta4.GPU";
|
|
21
|
+
value: Uint8Array;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* GPU stores resource units and gpu configuration attributes.
|
|
25
|
+
* @name GPUAmino
|
|
26
|
+
* @package akash.base.resources.v1beta4
|
|
27
|
+
* @see proto type: akash.base.resources.v1beta4.GPU
|
|
28
|
+
*/
|
|
29
|
+
export interface GPUAmino {
|
|
30
|
+
/**
|
|
31
|
+
* The resource value of the GPU, which represents the number of GPUs available.
|
|
32
|
+
* This field is required and must be a non-negative integer.
|
|
33
|
+
*/
|
|
34
|
+
units?: ResourceValueAmino;
|
|
35
|
+
attributes?: AttributeAmino[];
|
|
36
|
+
}
|
|
37
|
+
export interface GPUAminoMsg {
|
|
38
|
+
type: "/akash.base.resources.v1beta4.GPU";
|
|
39
|
+
value: GPUAmino;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* GPU stores resource units and gpu configuration attributes.
|
|
43
|
+
* @name GPU
|
|
44
|
+
* @package akash.base.resources.v1beta4
|
|
45
|
+
* @see proto type: akash.base.resources.v1beta4.GPU
|
|
46
|
+
*/
|
|
47
|
+
export declare const GPU: {
|
|
48
|
+
typeUrl: string;
|
|
49
|
+
encode(message: GPU, writer?: BinaryWriter): BinaryWriter;
|
|
50
|
+
decode(input: BinaryReader | Uint8Array, length?: number): GPU;
|
|
51
|
+
fromPartial(object: DeepPartial<GPU>): GPU;
|
|
52
|
+
fromAmino(object: GPUAmino): GPU;
|
|
53
|
+
toAmino(message: GPU): GPUAmino;
|
|
54
|
+
fromAminoMsg(object: GPUAminoMsg): GPU;
|
|
55
|
+
fromProtoMsg(message: GPUProtoMsg): GPU;
|
|
56
|
+
toProto(message: GPU): Uint8Array;
|
|
57
|
+
toProtoMsg(message: GPU): GPUProtoMsg;
|
|
58
|
+
};
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GPU = void 0;
|
|
4
|
+
//@ts-nocheck
|
|
5
|
+
const resourcevalue_1 = require("./resourcevalue");
|
|
6
|
+
const attribute_1 = require("../../attributes/v1/attribute");
|
|
7
|
+
const binary_1 = require("../../../../binary");
|
|
8
|
+
function createBaseGPU() {
|
|
9
|
+
return {
|
|
10
|
+
units: resourcevalue_1.ResourceValue.fromPartial({}),
|
|
11
|
+
attributes: []
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* GPU stores resource units and gpu configuration attributes.
|
|
16
|
+
* @name GPU
|
|
17
|
+
* @package akash.base.resources.v1beta4
|
|
18
|
+
* @see proto type: akash.base.resources.v1beta4.GPU
|
|
19
|
+
*/
|
|
20
|
+
exports.GPU = {
|
|
21
|
+
typeUrl: "/akash.base.resources.v1beta4.GPU",
|
|
22
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
23
|
+
if (message.units !== undefined) {
|
|
24
|
+
resourcevalue_1.ResourceValue.encode(message.units, writer.uint32(10).fork()).ldelim();
|
|
25
|
+
}
|
|
26
|
+
for (const v of message.attributes) {
|
|
27
|
+
attribute_1.Attribute.encode(v, writer.uint32(18).fork()).ldelim();
|
|
28
|
+
}
|
|
29
|
+
return writer;
|
|
30
|
+
},
|
|
31
|
+
decode(input, length) {
|
|
32
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
33
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
34
|
+
const message = createBaseGPU();
|
|
35
|
+
while (reader.pos < end) {
|
|
36
|
+
const tag = reader.uint32();
|
|
37
|
+
switch (tag >>> 3) {
|
|
38
|
+
case 1:
|
|
39
|
+
message.units = resourcevalue_1.ResourceValue.decode(reader, reader.uint32());
|
|
40
|
+
break;
|
|
41
|
+
case 2:
|
|
42
|
+
message.attributes.push(attribute_1.Attribute.decode(reader, reader.uint32()));
|
|
43
|
+
break;
|
|
44
|
+
default:
|
|
45
|
+
reader.skipType(tag & 7);
|
|
46
|
+
break;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
return message;
|
|
50
|
+
},
|
|
51
|
+
fromPartial(object) {
|
|
52
|
+
const message = createBaseGPU();
|
|
53
|
+
message.units = object.units !== undefined && object.units !== null ? resourcevalue_1.ResourceValue.fromPartial(object.units) : undefined;
|
|
54
|
+
message.attributes = object.attributes?.map(e => attribute_1.Attribute.fromPartial(e)) || [];
|
|
55
|
+
return message;
|
|
56
|
+
},
|
|
57
|
+
fromAmino(object) {
|
|
58
|
+
const message = createBaseGPU();
|
|
59
|
+
if (object.units !== undefined && object.units !== null) {
|
|
60
|
+
message.units = resourcevalue_1.ResourceValue.fromAmino(object.units);
|
|
61
|
+
}
|
|
62
|
+
message.attributes = object.attributes?.map(e => attribute_1.Attribute.fromAmino(e)) || [];
|
|
63
|
+
return message;
|
|
64
|
+
},
|
|
65
|
+
toAmino(message) {
|
|
66
|
+
const obj = {};
|
|
67
|
+
obj.units = message.units ? resourcevalue_1.ResourceValue.toAmino(message.units) : undefined;
|
|
68
|
+
if (message.attributes) {
|
|
69
|
+
obj.attributes = message.attributes.map(e => e ? attribute_1.Attribute.toAmino(e) : undefined);
|
|
70
|
+
}
|
|
71
|
+
else {
|
|
72
|
+
obj.attributes = message.attributes;
|
|
73
|
+
}
|
|
74
|
+
return obj;
|
|
75
|
+
},
|
|
76
|
+
fromAminoMsg(object) {
|
|
77
|
+
return exports.GPU.fromAmino(object.value);
|
|
78
|
+
},
|
|
79
|
+
fromProtoMsg(message) {
|
|
80
|
+
return exports.GPU.decode(message.value);
|
|
81
|
+
},
|
|
82
|
+
toProto(message) {
|
|
83
|
+
return exports.GPU.encode(message).finish();
|
|
84
|
+
},
|
|
85
|
+
toProtoMsg(message) {
|
|
86
|
+
return {
|
|
87
|
+
typeUrl: "/akash.base.resources.v1beta4.GPU",
|
|
88
|
+
value: exports.GPU.encode(message).finish()
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { ResourceValue, ResourceValueAmino } from "./resourcevalue";
|
|
2
|
+
import { Attribute, AttributeAmino } from "../../attributes/v1/attribute";
|
|
3
|
+
import { BinaryReader, BinaryWriter } from "../../../../binary";
|
|
4
|
+
import { DeepPartial } from "../../../../helpers";
|
|
5
|
+
/**
|
|
6
|
+
* Memory stores resource quantity and memory attributes.
|
|
7
|
+
* @name Memory
|
|
8
|
+
* @package akash.base.resources.v1beta4
|
|
9
|
+
* @see proto type: akash.base.resources.v1beta4.Memory
|
|
10
|
+
*/
|
|
11
|
+
export interface Memory {
|
|
12
|
+
/**
|
|
13
|
+
* Quantity of memory available, which represents the amount of memory in bytes.
|
|
14
|
+
* This field is required and must be a non-negative integer.
|
|
15
|
+
*/
|
|
16
|
+
quantity: ResourceValue;
|
|
17
|
+
/**
|
|
18
|
+
* Attributes that describe the memory, such as its type and speed.
|
|
19
|
+
* This field is required and must be a list of Attribute key-values.
|
|
20
|
+
*/
|
|
21
|
+
attributes: Attribute[];
|
|
22
|
+
}
|
|
23
|
+
export interface MemoryProtoMsg {
|
|
24
|
+
typeUrl: "/akash.base.resources.v1beta4.Memory";
|
|
25
|
+
value: Uint8Array;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Memory stores resource quantity and memory attributes.
|
|
29
|
+
* @name MemoryAmino
|
|
30
|
+
* @package akash.base.resources.v1beta4
|
|
31
|
+
* @see proto type: akash.base.resources.v1beta4.Memory
|
|
32
|
+
*/
|
|
33
|
+
export interface MemoryAmino {
|
|
34
|
+
/**
|
|
35
|
+
* Quantity of memory available, which represents the amount of memory in bytes.
|
|
36
|
+
* This field is required and must be a non-negative integer.
|
|
37
|
+
*/
|
|
38
|
+
quantity: ResourceValueAmino;
|
|
39
|
+
/**
|
|
40
|
+
* Attributes that describe the memory, such as its type and speed.
|
|
41
|
+
* This field is required and must be a list of Attribute key-values.
|
|
42
|
+
*/
|
|
43
|
+
attributes?: AttributeAmino[];
|
|
44
|
+
}
|
|
45
|
+
export interface MemoryAminoMsg {
|
|
46
|
+
type: "/akash.base.resources.v1beta4.Memory";
|
|
47
|
+
value: MemoryAmino;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Memory stores resource quantity and memory attributes.
|
|
51
|
+
* @name Memory
|
|
52
|
+
* @package akash.base.resources.v1beta4
|
|
53
|
+
* @see proto type: akash.base.resources.v1beta4.Memory
|
|
54
|
+
*/
|
|
55
|
+
export declare const Memory: {
|
|
56
|
+
typeUrl: string;
|
|
57
|
+
encode(message: Memory, writer?: BinaryWriter): BinaryWriter;
|
|
58
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Memory;
|
|
59
|
+
fromPartial(object: DeepPartial<Memory>): Memory;
|
|
60
|
+
fromAmino(object: MemoryAmino): Memory;
|
|
61
|
+
toAmino(message: Memory): MemoryAmino;
|
|
62
|
+
fromAminoMsg(object: MemoryAminoMsg): Memory;
|
|
63
|
+
fromProtoMsg(message: MemoryProtoMsg): Memory;
|
|
64
|
+
toProto(message: Memory): Uint8Array;
|
|
65
|
+
toProtoMsg(message: Memory): MemoryProtoMsg;
|
|
66
|
+
};
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Memory = void 0;
|
|
4
|
+
//@ts-nocheck
|
|
5
|
+
const resourcevalue_1 = require("./resourcevalue");
|
|
6
|
+
const attribute_1 = require("../../attributes/v1/attribute");
|
|
7
|
+
const binary_1 = require("../../../../binary");
|
|
8
|
+
function createBaseMemory() {
|
|
9
|
+
return {
|
|
10
|
+
quantity: resourcevalue_1.ResourceValue.fromPartial({}),
|
|
11
|
+
attributes: []
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Memory stores resource quantity and memory attributes.
|
|
16
|
+
* @name Memory
|
|
17
|
+
* @package akash.base.resources.v1beta4
|
|
18
|
+
* @see proto type: akash.base.resources.v1beta4.Memory
|
|
19
|
+
*/
|
|
20
|
+
exports.Memory = {
|
|
21
|
+
typeUrl: "/akash.base.resources.v1beta4.Memory",
|
|
22
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
23
|
+
if (message.quantity !== undefined) {
|
|
24
|
+
resourcevalue_1.ResourceValue.encode(message.quantity, writer.uint32(10).fork()).ldelim();
|
|
25
|
+
}
|
|
26
|
+
for (const v of message.attributes) {
|
|
27
|
+
attribute_1.Attribute.encode(v, writer.uint32(18).fork()).ldelim();
|
|
28
|
+
}
|
|
29
|
+
return writer;
|
|
30
|
+
},
|
|
31
|
+
decode(input, length) {
|
|
32
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
33
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
34
|
+
const message = createBaseMemory();
|
|
35
|
+
while (reader.pos < end) {
|
|
36
|
+
const tag = reader.uint32();
|
|
37
|
+
switch (tag >>> 3) {
|
|
38
|
+
case 1:
|
|
39
|
+
message.quantity = resourcevalue_1.ResourceValue.decode(reader, reader.uint32());
|
|
40
|
+
break;
|
|
41
|
+
case 2:
|
|
42
|
+
message.attributes.push(attribute_1.Attribute.decode(reader, reader.uint32()));
|
|
43
|
+
break;
|
|
44
|
+
default:
|
|
45
|
+
reader.skipType(tag & 7);
|
|
46
|
+
break;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
return message;
|
|
50
|
+
},
|
|
51
|
+
fromPartial(object) {
|
|
52
|
+
const message = createBaseMemory();
|
|
53
|
+
message.quantity = object.quantity !== undefined && object.quantity !== null ? resourcevalue_1.ResourceValue.fromPartial(object.quantity) : undefined;
|
|
54
|
+
message.attributes = object.attributes?.map(e => attribute_1.Attribute.fromPartial(e)) || [];
|
|
55
|
+
return message;
|
|
56
|
+
},
|
|
57
|
+
fromAmino(object) {
|
|
58
|
+
const message = createBaseMemory();
|
|
59
|
+
if (object.quantity !== undefined && object.quantity !== null) {
|
|
60
|
+
message.quantity = resourcevalue_1.ResourceValue.fromAmino(object.quantity);
|
|
61
|
+
}
|
|
62
|
+
message.attributes = object.attributes?.map(e => attribute_1.Attribute.fromAmino(e)) || [];
|
|
63
|
+
return message;
|
|
64
|
+
},
|
|
65
|
+
toAmino(message) {
|
|
66
|
+
const obj = {};
|
|
67
|
+
obj.quantity = message.quantity ? resourcevalue_1.ResourceValue.toAmino(message.quantity) : resourcevalue_1.ResourceValue.toAmino(resourcevalue_1.ResourceValue.fromPartial({}));
|
|
68
|
+
if (message.attributes) {
|
|
69
|
+
obj.attributes = message.attributes.map(e => e ? attribute_1.Attribute.toAmino(e) : undefined);
|
|
70
|
+
}
|
|
71
|
+
else {
|
|
72
|
+
obj.attributes = message.attributes;
|
|
73
|
+
}
|
|
74
|
+
return obj;
|
|
75
|
+
},
|
|
76
|
+
fromAminoMsg(object) {
|
|
77
|
+
return exports.Memory.fromAmino(object.value);
|
|
78
|
+
},
|
|
79
|
+
fromProtoMsg(message) {
|
|
80
|
+
return exports.Memory.decode(message.value);
|
|
81
|
+
},
|
|
82
|
+
toProto(message) {
|
|
83
|
+
return exports.Memory.encode(message).finish();
|
|
84
|
+
},
|
|
85
|
+
toProtoMsg(message) {
|
|
86
|
+
return {
|
|
87
|
+
typeUrl: "/akash.base.resources.v1beta4.Memory",
|
|
88
|
+
value: exports.Memory.encode(message).finish()
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
};
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { CPU, CPUAmino } from "./cpu";
|
|
2
|
+
import { Memory, MemoryAmino } from "./memory";
|
|
3
|
+
import { Storage, StorageAmino } from "./storage";
|
|
4
|
+
import { GPU, GPUAmino } from "./gpu";
|
|
5
|
+
import { Endpoint, EndpointAmino } from "./endpoint";
|
|
6
|
+
import { BinaryReader, BinaryWriter } from "../../../../binary";
|
|
7
|
+
import { DeepPartial } from "../../../../helpers";
|
|
8
|
+
/**
|
|
9
|
+
* Resources describes all available resources types for deployment/node etc
|
|
10
|
+
* if field is nil resource is not present in the given data-structure
|
|
11
|
+
* @name Resources
|
|
12
|
+
* @package akash.base.resources.v1beta4
|
|
13
|
+
* @see proto type: akash.base.resources.v1beta4.Resources
|
|
14
|
+
*/
|
|
15
|
+
export interface Resources {
|
|
16
|
+
/**
|
|
17
|
+
* Id is a unique identifier for the resources.
|
|
18
|
+
*/
|
|
19
|
+
id: number;
|
|
20
|
+
/**
|
|
21
|
+
* CPU resources available, including the architecture, number of cores and other details.
|
|
22
|
+
* This field is optional and can be empty if no CPU resources are available.
|
|
23
|
+
*/
|
|
24
|
+
cpu?: CPU;
|
|
25
|
+
/**
|
|
26
|
+
* Memory resources available, including the quantity and attributes.
|
|
27
|
+
* This field is optional and can be empty if no memory resources are available.
|
|
28
|
+
*/
|
|
29
|
+
memory?: Memory;
|
|
30
|
+
/**
|
|
31
|
+
* Storage resources available, including the quantity and attributes.
|
|
32
|
+
* This field is optional and can be empty if no storage resources are available.
|
|
33
|
+
*/
|
|
34
|
+
storage: Storage[];
|
|
35
|
+
/**
|
|
36
|
+
* GPU resources available, including the type, architecture and other details.
|
|
37
|
+
* This field is optional and can be empty if no GPU resources are available.
|
|
38
|
+
*/
|
|
39
|
+
gpu?: GPU;
|
|
40
|
+
/**
|
|
41
|
+
* Endpoint resources available
|
|
42
|
+
*/
|
|
43
|
+
endpoints: Endpoint[];
|
|
44
|
+
}
|
|
45
|
+
export interface ResourcesProtoMsg {
|
|
46
|
+
typeUrl: "/akash.base.resources.v1beta4.Resources";
|
|
47
|
+
value: Uint8Array;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Resources describes all available resources types for deployment/node etc
|
|
51
|
+
* if field is nil resource is not present in the given data-structure
|
|
52
|
+
* @name ResourcesAmino
|
|
53
|
+
* @package akash.base.resources.v1beta4
|
|
54
|
+
* @see proto type: akash.base.resources.v1beta4.Resources
|
|
55
|
+
*/
|
|
56
|
+
export interface ResourcesAmino {
|
|
57
|
+
/**
|
|
58
|
+
* Id is a unique identifier for the resources.
|
|
59
|
+
*/
|
|
60
|
+
id: number;
|
|
61
|
+
/**
|
|
62
|
+
* CPU resources available, including the architecture, number of cores and other details.
|
|
63
|
+
* This field is optional and can be empty if no CPU resources are available.
|
|
64
|
+
*/
|
|
65
|
+
cpu?: CPUAmino;
|
|
66
|
+
/**
|
|
67
|
+
* Memory resources available, including the quantity and attributes.
|
|
68
|
+
* This field is optional and can be empty if no memory resources are available.
|
|
69
|
+
*/
|
|
70
|
+
memory?: MemoryAmino;
|
|
71
|
+
/**
|
|
72
|
+
* Storage resources available, including the quantity and attributes.
|
|
73
|
+
* This field is optional and can be empty if no storage resources are available.
|
|
74
|
+
*/
|
|
75
|
+
storage?: StorageAmino[];
|
|
76
|
+
/**
|
|
77
|
+
* GPU resources available, including the type, architecture and other details.
|
|
78
|
+
* This field is optional and can be empty if no GPU resources are available.
|
|
79
|
+
*/
|
|
80
|
+
gpu?: GPUAmino;
|
|
81
|
+
/**
|
|
82
|
+
* Endpoint resources available
|
|
83
|
+
*/
|
|
84
|
+
endpoints?: EndpointAmino[];
|
|
85
|
+
}
|
|
86
|
+
export interface ResourcesAminoMsg {
|
|
87
|
+
type: "/akash.base.resources.v1beta4.Resources";
|
|
88
|
+
value: ResourcesAmino;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Resources describes all available resources types for deployment/node etc
|
|
92
|
+
* if field is nil resource is not present in the given data-structure
|
|
93
|
+
* @name Resources
|
|
94
|
+
* @package akash.base.resources.v1beta4
|
|
95
|
+
* @see proto type: akash.base.resources.v1beta4.Resources
|
|
96
|
+
*/
|
|
97
|
+
export declare const Resources: {
|
|
98
|
+
typeUrl: string;
|
|
99
|
+
encode(message: Resources, writer?: BinaryWriter): BinaryWriter;
|
|
100
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Resources;
|
|
101
|
+
fromPartial(object: DeepPartial<Resources>): Resources;
|
|
102
|
+
fromAmino(object: ResourcesAmino): Resources;
|
|
103
|
+
toAmino(message: Resources): ResourcesAmino;
|
|
104
|
+
fromAminoMsg(object: ResourcesAminoMsg): Resources;
|
|
105
|
+
fromProtoMsg(message: ResourcesProtoMsg): Resources;
|
|
106
|
+
toProto(message: Resources): Uint8Array;
|
|
107
|
+
toProtoMsg(message: Resources): ResourcesProtoMsg;
|
|
108
|
+
};
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Resources = void 0;
|
|
4
|
+
//@ts-nocheck
|
|
5
|
+
const cpu_1 = require("./cpu");
|
|
6
|
+
const memory_1 = require("./memory");
|
|
7
|
+
const storage_1 = require("./storage");
|
|
8
|
+
const gpu_1 = require("./gpu");
|
|
9
|
+
const endpoint_1 = require("./endpoint");
|
|
10
|
+
const binary_1 = require("../../../../binary");
|
|
11
|
+
function createBaseResources() {
|
|
12
|
+
return {
|
|
13
|
+
id: 0,
|
|
14
|
+
cpu: undefined,
|
|
15
|
+
memory: undefined,
|
|
16
|
+
storage: [],
|
|
17
|
+
gpu: undefined,
|
|
18
|
+
endpoints: []
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Resources describes all available resources types for deployment/node etc
|
|
23
|
+
* if field is nil resource is not present in the given data-structure
|
|
24
|
+
* @name Resources
|
|
25
|
+
* @package akash.base.resources.v1beta4
|
|
26
|
+
* @see proto type: akash.base.resources.v1beta4.Resources
|
|
27
|
+
*/
|
|
28
|
+
exports.Resources = {
|
|
29
|
+
typeUrl: "/akash.base.resources.v1beta4.Resources",
|
|
30
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
31
|
+
if (message.id !== 0) {
|
|
32
|
+
writer.uint32(8).uint32(message.id);
|
|
33
|
+
}
|
|
34
|
+
if (message.cpu !== undefined) {
|
|
35
|
+
cpu_1.CPU.encode(message.cpu, writer.uint32(18).fork()).ldelim();
|
|
36
|
+
}
|
|
37
|
+
if (message.memory !== undefined) {
|
|
38
|
+
memory_1.Memory.encode(message.memory, writer.uint32(26).fork()).ldelim();
|
|
39
|
+
}
|
|
40
|
+
for (const v of message.storage) {
|
|
41
|
+
storage_1.Storage.encode(v, writer.uint32(34).fork()).ldelim();
|
|
42
|
+
}
|
|
43
|
+
if (message.gpu !== undefined) {
|
|
44
|
+
gpu_1.GPU.encode(message.gpu, writer.uint32(42).fork()).ldelim();
|
|
45
|
+
}
|
|
46
|
+
for (const v of message.endpoints) {
|
|
47
|
+
endpoint_1.Endpoint.encode(v, writer.uint32(50).fork()).ldelim();
|
|
48
|
+
}
|
|
49
|
+
return writer;
|
|
50
|
+
},
|
|
51
|
+
decode(input, length) {
|
|
52
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
53
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
54
|
+
const message = createBaseResources();
|
|
55
|
+
while (reader.pos < end) {
|
|
56
|
+
const tag = reader.uint32();
|
|
57
|
+
switch (tag >>> 3) {
|
|
58
|
+
case 1:
|
|
59
|
+
message.id = reader.uint32();
|
|
60
|
+
break;
|
|
61
|
+
case 2:
|
|
62
|
+
message.cpu = cpu_1.CPU.decode(reader, reader.uint32());
|
|
63
|
+
break;
|
|
64
|
+
case 3:
|
|
65
|
+
message.memory = memory_1.Memory.decode(reader, reader.uint32());
|
|
66
|
+
break;
|
|
67
|
+
case 4:
|
|
68
|
+
message.storage.push(storage_1.Storage.decode(reader, reader.uint32()));
|
|
69
|
+
break;
|
|
70
|
+
case 5:
|
|
71
|
+
message.gpu = gpu_1.GPU.decode(reader, reader.uint32());
|
|
72
|
+
break;
|
|
73
|
+
case 6:
|
|
74
|
+
message.endpoints.push(endpoint_1.Endpoint.decode(reader, reader.uint32()));
|
|
75
|
+
break;
|
|
76
|
+
default:
|
|
77
|
+
reader.skipType(tag & 7);
|
|
78
|
+
break;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
return message;
|
|
82
|
+
},
|
|
83
|
+
fromPartial(object) {
|
|
84
|
+
const message = createBaseResources();
|
|
85
|
+
message.id = object.id ?? 0;
|
|
86
|
+
message.cpu = object.cpu !== undefined && object.cpu !== null ? cpu_1.CPU.fromPartial(object.cpu) : undefined;
|
|
87
|
+
message.memory = object.memory !== undefined && object.memory !== null ? memory_1.Memory.fromPartial(object.memory) : undefined;
|
|
88
|
+
message.storage = object.storage?.map(e => storage_1.Storage.fromPartial(e)) || [];
|
|
89
|
+
message.gpu = object.gpu !== undefined && object.gpu !== null ? gpu_1.GPU.fromPartial(object.gpu) : undefined;
|
|
90
|
+
message.endpoints = object.endpoints?.map(e => endpoint_1.Endpoint.fromPartial(e)) || [];
|
|
91
|
+
return message;
|
|
92
|
+
},
|
|
93
|
+
fromAmino(object) {
|
|
94
|
+
const message = createBaseResources();
|
|
95
|
+
if (object.id !== undefined && object.id !== null) {
|
|
96
|
+
message.id = object.id;
|
|
97
|
+
}
|
|
98
|
+
if (object.cpu !== undefined && object.cpu !== null) {
|
|
99
|
+
message.cpu = cpu_1.CPU.fromAmino(object.cpu);
|
|
100
|
+
}
|
|
101
|
+
if (object.memory !== undefined && object.memory !== null) {
|
|
102
|
+
message.memory = memory_1.Memory.fromAmino(object.memory);
|
|
103
|
+
}
|
|
104
|
+
message.storage = object.storage?.map(e => storage_1.Storage.fromAmino(e)) || [];
|
|
105
|
+
if (object.gpu !== undefined && object.gpu !== null) {
|
|
106
|
+
message.gpu = gpu_1.GPU.fromAmino(object.gpu);
|
|
107
|
+
}
|
|
108
|
+
message.endpoints = object.endpoints?.map(e => endpoint_1.Endpoint.fromAmino(e)) || [];
|
|
109
|
+
return message;
|
|
110
|
+
},
|
|
111
|
+
toAmino(message) {
|
|
112
|
+
const obj = {};
|
|
113
|
+
obj.id = message.id ?? 0;
|
|
114
|
+
obj.cpu = message.cpu ? cpu_1.CPU.toAmino(message.cpu) : undefined;
|
|
115
|
+
obj.memory = message.memory ? memory_1.Memory.toAmino(message.memory) : undefined;
|
|
116
|
+
if (message.storage) {
|
|
117
|
+
obj.storage = message.storage.map(e => e ? storage_1.Storage.toAmino(e) : undefined);
|
|
118
|
+
}
|
|
119
|
+
else {
|
|
120
|
+
obj.storage = message.storage;
|
|
121
|
+
}
|
|
122
|
+
obj.gpu = message.gpu ? gpu_1.GPU.toAmino(message.gpu) : undefined;
|
|
123
|
+
if (message.endpoints) {
|
|
124
|
+
obj.endpoints = message.endpoints.map(e => e ? endpoint_1.Endpoint.toAmino(e) : undefined);
|
|
125
|
+
}
|
|
126
|
+
else {
|
|
127
|
+
obj.endpoints = message.endpoints;
|
|
128
|
+
}
|
|
129
|
+
return obj;
|
|
130
|
+
},
|
|
131
|
+
fromAminoMsg(object) {
|
|
132
|
+
return exports.Resources.fromAmino(object.value);
|
|
133
|
+
},
|
|
134
|
+
fromProtoMsg(message) {
|
|
135
|
+
return exports.Resources.decode(message.value);
|
|
136
|
+
},
|
|
137
|
+
toProto(message) {
|
|
138
|
+
return exports.Resources.encode(message).finish();
|
|
139
|
+
},
|
|
140
|
+
toProtoMsg(message) {
|
|
141
|
+
return {
|
|
142
|
+
typeUrl: "/akash.base.resources.v1beta4.Resources",
|
|
143
|
+
value: exports.Resources.encode(message).finish()
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
};
|