@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,14 @@
|
|
|
1
|
+
import { LCDClient } from "@cosmology/lcd";
|
|
2
|
+
import { QueryOrdersRequest, QueryOrdersResponse, QueryOrderRequest, QueryOrderResponse, QueryBidsRequest, QueryBidsResponse, QueryBidRequest, QueryBidResponse, QueryLeasesRequest, QueryLeasesResponse, QueryLeaseRequest, QueryLeaseResponse } from "./query";
|
|
3
|
+
export declare class LCDQueryClient {
|
|
4
|
+
req: LCDClient;
|
|
5
|
+
constructor({ requestClient }: {
|
|
6
|
+
requestClient: LCDClient;
|
|
7
|
+
});
|
|
8
|
+
orders: (params: QueryOrdersRequest) => Promise<QueryOrdersResponse>;
|
|
9
|
+
order: (params: QueryOrderRequest) => Promise<QueryOrderResponse>;
|
|
10
|
+
bids: (params: QueryBidsRequest) => Promise<QueryBidsResponse>;
|
|
11
|
+
bid: (params: QueryBidRequest) => Promise<QueryBidResponse>;
|
|
12
|
+
leases: (params: QueryLeasesRequest) => Promise<QueryLeasesResponse>;
|
|
13
|
+
lease: (params: QueryLeaseRequest) => Promise<QueryLeaseResponse>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LCDQueryClient = void 0;
|
|
4
|
+
//@ts-nocheck
|
|
5
|
+
const helpers_1 = require("../../../helpers");
|
|
6
|
+
class LCDQueryClient {
|
|
7
|
+
req;
|
|
8
|
+
constructor({ requestClient }) {
|
|
9
|
+
this.req = requestClient;
|
|
10
|
+
}
|
|
11
|
+
/* Orders queries orders with filters */
|
|
12
|
+
orders = async (params) => {
|
|
13
|
+
const options = {
|
|
14
|
+
params: {}
|
|
15
|
+
};
|
|
16
|
+
if (typeof params?.filters !== "undefined") {
|
|
17
|
+
options.params.filters = params.filters;
|
|
18
|
+
}
|
|
19
|
+
if (typeof params?.pagination !== "undefined") {
|
|
20
|
+
(0, helpers_1.setPaginationParams)(options, params.pagination);
|
|
21
|
+
}
|
|
22
|
+
const endpoint = `akash/market/v1beta4/orders/list`;
|
|
23
|
+
return await this.req.get(endpoint, options);
|
|
24
|
+
};
|
|
25
|
+
/* Order queries order details */
|
|
26
|
+
order = async (params) => {
|
|
27
|
+
const options = {
|
|
28
|
+
params: {}
|
|
29
|
+
};
|
|
30
|
+
if (typeof params?.id !== "undefined") {
|
|
31
|
+
options.params.id = params.id;
|
|
32
|
+
}
|
|
33
|
+
const endpoint = `akash/market/v1beta4/orders/info`;
|
|
34
|
+
return await this.req.get(endpoint, options);
|
|
35
|
+
};
|
|
36
|
+
/* Bids queries bids with filters */
|
|
37
|
+
bids = async (params) => {
|
|
38
|
+
const options = {
|
|
39
|
+
params: {}
|
|
40
|
+
};
|
|
41
|
+
if (typeof params?.filters !== "undefined") {
|
|
42
|
+
options.params.filters = params.filters;
|
|
43
|
+
}
|
|
44
|
+
if (typeof params?.pagination !== "undefined") {
|
|
45
|
+
(0, helpers_1.setPaginationParams)(options, params.pagination);
|
|
46
|
+
}
|
|
47
|
+
const endpoint = `akash/market/v1beta4/bids/list`;
|
|
48
|
+
return await this.req.get(endpoint, options);
|
|
49
|
+
};
|
|
50
|
+
/* Bid queries bid details */
|
|
51
|
+
bid = async (params) => {
|
|
52
|
+
const options = {
|
|
53
|
+
params: {}
|
|
54
|
+
};
|
|
55
|
+
if (typeof params?.id !== "undefined") {
|
|
56
|
+
options.params.id = params.id;
|
|
57
|
+
}
|
|
58
|
+
const endpoint = `akash/market/v1beta4/bids/info`;
|
|
59
|
+
return await this.req.get(endpoint, options);
|
|
60
|
+
};
|
|
61
|
+
/* Leases queries leases with filters */
|
|
62
|
+
leases = async (params) => {
|
|
63
|
+
const options = {
|
|
64
|
+
params: {}
|
|
65
|
+
};
|
|
66
|
+
if (typeof params?.filters !== "undefined") {
|
|
67
|
+
options.params.filters = params.filters;
|
|
68
|
+
}
|
|
69
|
+
if (typeof params?.pagination !== "undefined") {
|
|
70
|
+
(0, helpers_1.setPaginationParams)(options, params.pagination);
|
|
71
|
+
}
|
|
72
|
+
const endpoint = `akash/market/v1beta4/leases/list`;
|
|
73
|
+
return await this.req.get(endpoint, options);
|
|
74
|
+
};
|
|
75
|
+
/* Lease queries lease details */
|
|
76
|
+
lease = async (params) => {
|
|
77
|
+
const options = {
|
|
78
|
+
params: {}
|
|
79
|
+
};
|
|
80
|
+
if (typeof params?.id !== "undefined") {
|
|
81
|
+
options.params.id = params.id;
|
|
82
|
+
}
|
|
83
|
+
const endpoint = `akash/market/v1beta4/leases/info`;
|
|
84
|
+
return await this.req.get(endpoint, options);
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
exports.LCDQueryClient = LCDQueryClient;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { TxRpc } from "../../../types";
|
|
2
|
+
import { QueryClient } from "@cosmjs/stargate";
|
|
3
|
+
import { QueryOrdersRequest, QueryOrdersResponse, QueryOrderRequest, QueryOrderResponse, QueryBidsRequest, QueryBidsResponse, QueryBidRequest, QueryBidResponse, QueryLeasesRequest, QueryLeasesResponse, QueryLeaseRequest, QueryLeaseResponse } from "./query";
|
|
4
|
+
/** Query defines the gRPC querier service */
|
|
5
|
+
export interface Query {
|
|
6
|
+
/** Orders queries orders with filters */
|
|
7
|
+
orders(request: QueryOrdersRequest): Promise<QueryOrdersResponse>;
|
|
8
|
+
/** Order queries order details */
|
|
9
|
+
order(request: QueryOrderRequest): Promise<QueryOrderResponse>;
|
|
10
|
+
/** Bids queries bids with filters */
|
|
11
|
+
bids(request: QueryBidsRequest): Promise<QueryBidsResponse>;
|
|
12
|
+
/** Bid queries bid details */
|
|
13
|
+
bid(request: QueryBidRequest): Promise<QueryBidResponse>;
|
|
14
|
+
/** Leases queries leases with filters */
|
|
15
|
+
leases(request: QueryLeasesRequest): Promise<QueryLeasesResponse>;
|
|
16
|
+
/** Lease queries lease details */
|
|
17
|
+
lease(request: QueryLeaseRequest): Promise<QueryLeaseResponse>;
|
|
18
|
+
}
|
|
19
|
+
export declare class QueryClientImpl implements Query {
|
|
20
|
+
private readonly rpc;
|
|
21
|
+
constructor(rpc: TxRpc);
|
|
22
|
+
orders: (request: QueryOrdersRequest) => Promise<QueryOrdersResponse>;
|
|
23
|
+
order: (request: QueryOrderRequest) => Promise<QueryOrderResponse>;
|
|
24
|
+
bids: (request: QueryBidsRequest) => Promise<QueryBidsResponse>;
|
|
25
|
+
bid: (request: QueryBidRequest) => Promise<QueryBidResponse>;
|
|
26
|
+
leases: (request: QueryLeasesRequest) => Promise<QueryLeasesResponse>;
|
|
27
|
+
lease: (request: QueryLeaseRequest) => Promise<QueryLeaseResponse>;
|
|
28
|
+
}
|
|
29
|
+
export declare const createRpcQueryExtension: (base: QueryClient) => {
|
|
30
|
+
orders(request: QueryOrdersRequest): Promise<QueryOrdersResponse>;
|
|
31
|
+
order(request: QueryOrderRequest): Promise<QueryOrderResponse>;
|
|
32
|
+
bids(request: QueryBidsRequest): Promise<QueryBidsResponse>;
|
|
33
|
+
bid(request: QueryBidRequest): Promise<QueryBidResponse>;
|
|
34
|
+
leases(request: QueryLeasesRequest): Promise<QueryLeasesResponse>;
|
|
35
|
+
lease(request: QueryLeaseRequest): Promise<QueryLeaseResponse>;
|
|
36
|
+
};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createRpcQueryExtension = exports.QueryClientImpl = void 0;
|
|
4
|
+
const binary_1 = require("../../../binary");
|
|
5
|
+
const stargate_1 = require("@cosmjs/stargate");
|
|
6
|
+
const query_1 = require("./query");
|
|
7
|
+
class QueryClientImpl {
|
|
8
|
+
rpc;
|
|
9
|
+
constructor(rpc) {
|
|
10
|
+
this.rpc = rpc;
|
|
11
|
+
}
|
|
12
|
+
/* Orders queries orders with filters */
|
|
13
|
+
orders = async (request) => {
|
|
14
|
+
const data = query_1.QueryOrdersRequest.encode(request).finish();
|
|
15
|
+
const promise = this.rpc.request("akash.market.v1beta4.Query", "Orders", data);
|
|
16
|
+
return promise.then(data => query_1.QueryOrdersResponse.decode(new binary_1.BinaryReader(data)));
|
|
17
|
+
};
|
|
18
|
+
/* Order queries order details */
|
|
19
|
+
order = async (request) => {
|
|
20
|
+
const data = query_1.QueryOrderRequest.encode(request).finish();
|
|
21
|
+
const promise = this.rpc.request("akash.market.v1beta4.Query", "Order", data);
|
|
22
|
+
return promise.then(data => query_1.QueryOrderResponse.decode(new binary_1.BinaryReader(data)));
|
|
23
|
+
};
|
|
24
|
+
/* Bids queries bids with filters */
|
|
25
|
+
bids = async (request) => {
|
|
26
|
+
const data = query_1.QueryBidsRequest.encode(request).finish();
|
|
27
|
+
const promise = this.rpc.request("akash.market.v1beta4.Query", "Bids", data);
|
|
28
|
+
return promise.then(data => query_1.QueryBidsResponse.decode(new binary_1.BinaryReader(data)));
|
|
29
|
+
};
|
|
30
|
+
/* Bid queries bid details */
|
|
31
|
+
bid = async (request) => {
|
|
32
|
+
const data = query_1.QueryBidRequest.encode(request).finish();
|
|
33
|
+
const promise = this.rpc.request("akash.market.v1beta4.Query", "Bid", data);
|
|
34
|
+
return promise.then(data => query_1.QueryBidResponse.decode(new binary_1.BinaryReader(data)));
|
|
35
|
+
};
|
|
36
|
+
/* Leases queries leases with filters */
|
|
37
|
+
leases = async (request) => {
|
|
38
|
+
const data = query_1.QueryLeasesRequest.encode(request).finish();
|
|
39
|
+
const promise = this.rpc.request("akash.market.v1beta4.Query", "Leases", data);
|
|
40
|
+
return promise.then(data => query_1.QueryLeasesResponse.decode(new binary_1.BinaryReader(data)));
|
|
41
|
+
};
|
|
42
|
+
/* Lease queries lease details */
|
|
43
|
+
lease = async (request) => {
|
|
44
|
+
const data = query_1.QueryLeaseRequest.encode(request).finish();
|
|
45
|
+
const promise = this.rpc.request("akash.market.v1beta4.Query", "Lease", data);
|
|
46
|
+
return promise.then(data => query_1.QueryLeaseResponse.decode(new binary_1.BinaryReader(data)));
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
exports.QueryClientImpl = QueryClientImpl;
|
|
50
|
+
const createRpcQueryExtension = (base) => {
|
|
51
|
+
const rpc = (0, stargate_1.createProtobufRpcClient)(base);
|
|
52
|
+
const queryService = new QueryClientImpl(rpc);
|
|
53
|
+
return {
|
|
54
|
+
orders(request) {
|
|
55
|
+
return queryService.orders(request);
|
|
56
|
+
},
|
|
57
|
+
order(request) {
|
|
58
|
+
return queryService.order(request);
|
|
59
|
+
},
|
|
60
|
+
bids(request) {
|
|
61
|
+
return queryService.bids(request);
|
|
62
|
+
},
|
|
63
|
+
bid(request) {
|
|
64
|
+
return queryService.bid(request);
|
|
65
|
+
},
|
|
66
|
+
leases(request) {
|
|
67
|
+
return queryService.leases(request);
|
|
68
|
+
},
|
|
69
|
+
lease(request) {
|
|
70
|
+
return queryService.lease(request);
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
exports.createRpcQueryExtension = createRpcQueryExtension;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { MsgCreateBid, MsgCloseBid } from "./bid";
|
|
2
|
+
import { MsgWithdrawLease, MsgCreateLease, MsgCloseLease } from "./lease";
|
|
3
|
+
export declare const AminoConverter: {
|
|
4
|
+
"/akash.market.v1beta4.MsgCreateBid": {
|
|
5
|
+
aminoType: string;
|
|
6
|
+
toAmino: (message: MsgCreateBid) => import("./bid").MsgCreateBidAmino;
|
|
7
|
+
fromAmino: (object: import("./bid").MsgCreateBidAmino) => MsgCreateBid;
|
|
8
|
+
};
|
|
9
|
+
"/akash.market.v1beta4.MsgCloseBid": {
|
|
10
|
+
aminoType: string;
|
|
11
|
+
toAmino: (message: MsgCloseBid) => import("./bid").MsgCloseBidAmino;
|
|
12
|
+
fromAmino: (object: import("./bid").MsgCloseBidAmino) => MsgCloseBid;
|
|
13
|
+
};
|
|
14
|
+
"/akash.market.v1beta4.MsgWithdrawLease": {
|
|
15
|
+
aminoType: string;
|
|
16
|
+
toAmino: (message: MsgWithdrawLease) => import("./lease").MsgWithdrawLeaseAmino;
|
|
17
|
+
fromAmino: (object: import("./lease").MsgWithdrawLeaseAmino) => MsgWithdrawLease;
|
|
18
|
+
};
|
|
19
|
+
"/akash.market.v1beta4.MsgCreateLease": {
|
|
20
|
+
aminoType: string;
|
|
21
|
+
toAmino: (message: MsgCreateLease) => import("./lease").MsgCreateLeaseAmino;
|
|
22
|
+
fromAmino: (object: import("./lease").MsgCreateLeaseAmino) => MsgCreateLease;
|
|
23
|
+
};
|
|
24
|
+
"/akash.market.v1beta4.MsgCloseLease": {
|
|
25
|
+
aminoType: string;
|
|
26
|
+
toAmino: (message: MsgCloseLease) => import("./lease").MsgCloseLeaseAmino;
|
|
27
|
+
fromAmino: (object: import("./lease").MsgCloseLeaseAmino) => MsgCloseLease;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AminoConverter = void 0;
|
|
4
|
+
//@ts-nocheck
|
|
5
|
+
const bid_1 = require("./bid");
|
|
6
|
+
const lease_1 = require("./lease");
|
|
7
|
+
exports.AminoConverter = {
|
|
8
|
+
"/akash.market.v1beta4.MsgCreateBid": {
|
|
9
|
+
aminoType: "/akash.market.v1beta4.MsgCreateBid",
|
|
10
|
+
toAmino: bid_1.MsgCreateBid.toAmino,
|
|
11
|
+
fromAmino: bid_1.MsgCreateBid.fromAmino
|
|
12
|
+
},
|
|
13
|
+
"/akash.market.v1beta4.MsgCloseBid": {
|
|
14
|
+
aminoType: "/akash.market.v1beta4.MsgCloseBid",
|
|
15
|
+
toAmino: bid_1.MsgCloseBid.toAmino,
|
|
16
|
+
fromAmino: bid_1.MsgCloseBid.fromAmino
|
|
17
|
+
},
|
|
18
|
+
"/akash.market.v1beta4.MsgWithdrawLease": {
|
|
19
|
+
aminoType: "/akash.market.v1beta4.MsgWithdrawLease",
|
|
20
|
+
toAmino: lease_1.MsgWithdrawLease.toAmino,
|
|
21
|
+
fromAmino: lease_1.MsgWithdrawLease.fromAmino
|
|
22
|
+
},
|
|
23
|
+
"/akash.market.v1beta4.MsgCreateLease": {
|
|
24
|
+
aminoType: "/akash.market.v1beta4.MsgCreateLease",
|
|
25
|
+
toAmino: lease_1.MsgCreateLease.toAmino,
|
|
26
|
+
fromAmino: lease_1.MsgCreateLease.fromAmino
|
|
27
|
+
},
|
|
28
|
+
"/akash.market.v1beta4.MsgCloseLease": {
|
|
29
|
+
aminoType: "/akash.market.v1beta4.MsgCloseLease",
|
|
30
|
+
toAmino: lease_1.MsgCloseLease.toAmino,
|
|
31
|
+
fromAmino: lease_1.MsgCloseLease.fromAmino
|
|
32
|
+
}
|
|
33
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { MsgCreateBid, MsgCloseBid } from "./bid";
|
|
2
|
+
import { MsgWithdrawLease, MsgCreateLease, MsgCloseLease } from "./lease";
|
|
3
|
+
import { TelescopeGeneratedType } from "../../../types";
|
|
4
|
+
import { Registry } from "@cosmjs/proto-signing";
|
|
5
|
+
export declare const registry: ReadonlyArray<[string, TelescopeGeneratedType<any, any, any>]>;
|
|
6
|
+
export declare const load: (protoRegistry: Registry) => void;
|
|
7
|
+
export declare const MessageComposer: {
|
|
8
|
+
encoded: {
|
|
9
|
+
createBid(value: MsgCreateBid): {
|
|
10
|
+
typeUrl: string;
|
|
11
|
+
value: Uint8Array<ArrayBufferLike>;
|
|
12
|
+
};
|
|
13
|
+
closeBid(value: MsgCloseBid): {
|
|
14
|
+
typeUrl: string;
|
|
15
|
+
value: Uint8Array<ArrayBufferLike>;
|
|
16
|
+
};
|
|
17
|
+
withdrawLease(value: MsgWithdrawLease): {
|
|
18
|
+
typeUrl: string;
|
|
19
|
+
value: Uint8Array<ArrayBufferLike>;
|
|
20
|
+
};
|
|
21
|
+
createLease(value: MsgCreateLease): {
|
|
22
|
+
typeUrl: string;
|
|
23
|
+
value: Uint8Array<ArrayBufferLike>;
|
|
24
|
+
};
|
|
25
|
+
closeLease(value: MsgCloseLease): {
|
|
26
|
+
typeUrl: string;
|
|
27
|
+
value: Uint8Array<ArrayBufferLike>;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
withTypeUrl: {
|
|
31
|
+
createBid(value: MsgCreateBid): {
|
|
32
|
+
typeUrl: string;
|
|
33
|
+
value: MsgCreateBid;
|
|
34
|
+
};
|
|
35
|
+
closeBid(value: MsgCloseBid): {
|
|
36
|
+
typeUrl: string;
|
|
37
|
+
value: MsgCloseBid;
|
|
38
|
+
};
|
|
39
|
+
withdrawLease(value: MsgWithdrawLease): {
|
|
40
|
+
typeUrl: string;
|
|
41
|
+
value: MsgWithdrawLease;
|
|
42
|
+
};
|
|
43
|
+
createLease(value: MsgCreateLease): {
|
|
44
|
+
typeUrl: string;
|
|
45
|
+
value: MsgCreateLease;
|
|
46
|
+
};
|
|
47
|
+
closeLease(value: MsgCloseLease): {
|
|
48
|
+
typeUrl: string;
|
|
49
|
+
value: MsgCloseLease;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
fromPartial: {
|
|
53
|
+
createBid(value: MsgCreateBid): {
|
|
54
|
+
typeUrl: string;
|
|
55
|
+
value: MsgCreateBid;
|
|
56
|
+
};
|
|
57
|
+
closeBid(value: MsgCloseBid): {
|
|
58
|
+
typeUrl: string;
|
|
59
|
+
value: MsgCloseBid;
|
|
60
|
+
};
|
|
61
|
+
withdrawLease(value: MsgWithdrawLease): {
|
|
62
|
+
typeUrl: string;
|
|
63
|
+
value: MsgWithdrawLease;
|
|
64
|
+
};
|
|
65
|
+
createLease(value: MsgCreateLease): {
|
|
66
|
+
typeUrl: string;
|
|
67
|
+
value: MsgCreateLease;
|
|
68
|
+
};
|
|
69
|
+
closeLease(value: MsgCloseLease): {
|
|
70
|
+
typeUrl: string;
|
|
71
|
+
value: MsgCloseLease;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
};
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MessageComposer = exports.load = exports.registry = void 0;
|
|
4
|
+
//@ts-nocheck
|
|
5
|
+
const bid_1 = require("./bid");
|
|
6
|
+
const lease_1 = require("./lease");
|
|
7
|
+
exports.registry = [["/akash.market.v1beta4.MsgCreateBid", bid_1.MsgCreateBid], ["/akash.market.v1beta4.MsgCloseBid", bid_1.MsgCloseBid], ["/akash.market.v1beta4.MsgWithdrawLease", lease_1.MsgWithdrawLease], ["/akash.market.v1beta4.MsgCreateLease", lease_1.MsgCreateLease], ["/akash.market.v1beta4.MsgCloseLease", lease_1.MsgCloseLease]];
|
|
8
|
+
const load = (protoRegistry) => {
|
|
9
|
+
exports.registry.forEach(([typeUrl, mod]) => {
|
|
10
|
+
protoRegistry.register(typeUrl, mod);
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
exports.load = load;
|
|
14
|
+
exports.MessageComposer = {
|
|
15
|
+
encoded: {
|
|
16
|
+
createBid(value) {
|
|
17
|
+
return {
|
|
18
|
+
typeUrl: "/akash.market.v1beta4.MsgCreateBid",
|
|
19
|
+
value: bid_1.MsgCreateBid.encode(value).finish()
|
|
20
|
+
};
|
|
21
|
+
},
|
|
22
|
+
closeBid(value) {
|
|
23
|
+
return {
|
|
24
|
+
typeUrl: "/akash.market.v1beta4.MsgCloseBid",
|
|
25
|
+
value: bid_1.MsgCloseBid.encode(value).finish()
|
|
26
|
+
};
|
|
27
|
+
},
|
|
28
|
+
withdrawLease(value) {
|
|
29
|
+
return {
|
|
30
|
+
typeUrl: "/akash.market.v1beta4.MsgWithdrawLease",
|
|
31
|
+
value: lease_1.MsgWithdrawLease.encode(value).finish()
|
|
32
|
+
};
|
|
33
|
+
},
|
|
34
|
+
createLease(value) {
|
|
35
|
+
return {
|
|
36
|
+
typeUrl: "/akash.market.v1beta4.MsgCreateLease",
|
|
37
|
+
value: lease_1.MsgCreateLease.encode(value).finish()
|
|
38
|
+
};
|
|
39
|
+
},
|
|
40
|
+
closeLease(value) {
|
|
41
|
+
return {
|
|
42
|
+
typeUrl: "/akash.market.v1beta4.MsgCloseLease",
|
|
43
|
+
value: lease_1.MsgCloseLease.encode(value).finish()
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
withTypeUrl: {
|
|
48
|
+
createBid(value) {
|
|
49
|
+
return {
|
|
50
|
+
typeUrl: "/akash.market.v1beta4.MsgCreateBid",
|
|
51
|
+
value
|
|
52
|
+
};
|
|
53
|
+
},
|
|
54
|
+
closeBid(value) {
|
|
55
|
+
return {
|
|
56
|
+
typeUrl: "/akash.market.v1beta4.MsgCloseBid",
|
|
57
|
+
value
|
|
58
|
+
};
|
|
59
|
+
},
|
|
60
|
+
withdrawLease(value) {
|
|
61
|
+
return {
|
|
62
|
+
typeUrl: "/akash.market.v1beta4.MsgWithdrawLease",
|
|
63
|
+
value
|
|
64
|
+
};
|
|
65
|
+
},
|
|
66
|
+
createLease(value) {
|
|
67
|
+
return {
|
|
68
|
+
typeUrl: "/akash.market.v1beta4.MsgCreateLease",
|
|
69
|
+
value
|
|
70
|
+
};
|
|
71
|
+
},
|
|
72
|
+
closeLease(value) {
|
|
73
|
+
return {
|
|
74
|
+
typeUrl: "/akash.market.v1beta4.MsgCloseLease",
|
|
75
|
+
value
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
fromPartial: {
|
|
80
|
+
createBid(value) {
|
|
81
|
+
return {
|
|
82
|
+
typeUrl: "/akash.market.v1beta4.MsgCreateBid",
|
|
83
|
+
value: bid_1.MsgCreateBid.fromPartial(value)
|
|
84
|
+
};
|
|
85
|
+
},
|
|
86
|
+
closeBid(value) {
|
|
87
|
+
return {
|
|
88
|
+
typeUrl: "/akash.market.v1beta4.MsgCloseBid",
|
|
89
|
+
value: bid_1.MsgCloseBid.fromPartial(value)
|
|
90
|
+
};
|
|
91
|
+
},
|
|
92
|
+
withdrawLease(value) {
|
|
93
|
+
return {
|
|
94
|
+
typeUrl: "/akash.market.v1beta4.MsgWithdrawLease",
|
|
95
|
+
value: lease_1.MsgWithdrawLease.fromPartial(value)
|
|
96
|
+
};
|
|
97
|
+
},
|
|
98
|
+
createLease(value) {
|
|
99
|
+
return {
|
|
100
|
+
typeUrl: "/akash.market.v1beta4.MsgCreateLease",
|
|
101
|
+
value: lease_1.MsgCreateLease.fromPartial(value)
|
|
102
|
+
};
|
|
103
|
+
},
|
|
104
|
+
closeLease(value) {
|
|
105
|
+
return {
|
|
106
|
+
typeUrl: "/akash.market.v1beta4.MsgCloseLease",
|
|
107
|
+
value: lease_1.MsgCloseLease.fromPartial(value)
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { MsgCreateBid, MsgCreateBidResponse, MsgCloseBid, MsgCloseBidResponse } from "./bid";
|
|
2
|
+
import { MsgWithdrawLease, MsgWithdrawLeaseResponse, MsgCreateLease, MsgCreateLeaseResponse, MsgCloseLease, MsgCloseLeaseResponse } from "./lease";
|
|
3
|
+
import { TxRpc } from "../../../types";
|
|
4
|
+
/** Msg defines the market Msg service */
|
|
5
|
+
export interface Msg {
|
|
6
|
+
/** CreateBid defines a method to create a bid given proper inputs. */
|
|
7
|
+
createBid(request: MsgCreateBid): Promise<MsgCreateBidResponse>;
|
|
8
|
+
/** CloseBid defines a method to close a bid given proper inputs. */
|
|
9
|
+
closeBid(request: MsgCloseBid): Promise<MsgCloseBidResponse>;
|
|
10
|
+
/** WithdrawLease withdraws accrued funds from the lease payment */
|
|
11
|
+
withdrawLease(request: MsgWithdrawLease): Promise<MsgWithdrawLeaseResponse>;
|
|
12
|
+
/** CreateLease creates a new lease */
|
|
13
|
+
createLease(request: MsgCreateLease): Promise<MsgCreateLeaseResponse>;
|
|
14
|
+
/** CloseLease defines a method to close an order given proper inputs. */
|
|
15
|
+
closeLease(request: MsgCloseLease): Promise<MsgCloseLeaseResponse>;
|
|
16
|
+
}
|
|
17
|
+
export declare class MsgClientImpl implements Msg {
|
|
18
|
+
private readonly rpc;
|
|
19
|
+
constructor(rpc: TxRpc);
|
|
20
|
+
createBid: (request: MsgCreateBid) => Promise<MsgCreateBidResponse>;
|
|
21
|
+
closeBid: (request: MsgCloseBid) => Promise<MsgCloseBidResponse>;
|
|
22
|
+
withdrawLease: (request: MsgWithdrawLease) => Promise<MsgWithdrawLeaseResponse>;
|
|
23
|
+
createLease: (request: MsgCreateLease) => Promise<MsgCreateLeaseResponse>;
|
|
24
|
+
closeLease: (request: MsgCloseLease) => Promise<MsgCloseLeaseResponse>;
|
|
25
|
+
}
|
|
26
|
+
export declare const createClientImpl: (rpc: TxRpc) => MsgClientImpl;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createClientImpl = exports.MsgClientImpl = void 0;
|
|
4
|
+
//@ts-nocheck
|
|
5
|
+
const bid_1 = require("./bid");
|
|
6
|
+
const lease_1 = require("./lease");
|
|
7
|
+
const binary_1 = require("../../../binary");
|
|
8
|
+
class MsgClientImpl {
|
|
9
|
+
rpc;
|
|
10
|
+
constructor(rpc) {
|
|
11
|
+
this.rpc = rpc;
|
|
12
|
+
}
|
|
13
|
+
/* CreateBid defines a method to create a bid given proper inputs. */
|
|
14
|
+
createBid = async (request) => {
|
|
15
|
+
const data = bid_1.MsgCreateBid.encode(request).finish();
|
|
16
|
+
const promise = this.rpc.request("akash.market.v1beta4.Msg", "CreateBid", data);
|
|
17
|
+
return promise.then(data => bid_1.MsgCreateBidResponse.decode(new binary_1.BinaryReader(data)));
|
|
18
|
+
};
|
|
19
|
+
/* CloseBid defines a method to close a bid given proper inputs. */
|
|
20
|
+
closeBid = async (request) => {
|
|
21
|
+
const data = bid_1.MsgCloseBid.encode(request).finish();
|
|
22
|
+
const promise = this.rpc.request("akash.market.v1beta4.Msg", "CloseBid", data);
|
|
23
|
+
return promise.then(data => bid_1.MsgCloseBidResponse.decode(new binary_1.BinaryReader(data)));
|
|
24
|
+
};
|
|
25
|
+
/* WithdrawLease withdraws accrued funds from the lease payment */
|
|
26
|
+
withdrawLease = async (request) => {
|
|
27
|
+
const data = lease_1.MsgWithdrawLease.encode(request).finish();
|
|
28
|
+
const promise = this.rpc.request("akash.market.v1beta4.Msg", "WithdrawLease", data);
|
|
29
|
+
return promise.then(data => lease_1.MsgWithdrawLeaseResponse.decode(new binary_1.BinaryReader(data)));
|
|
30
|
+
};
|
|
31
|
+
/* CreateLease creates a new lease */
|
|
32
|
+
createLease = async (request) => {
|
|
33
|
+
const data = lease_1.MsgCreateLease.encode(request).finish();
|
|
34
|
+
const promise = this.rpc.request("akash.market.v1beta4.Msg", "CreateLease", data);
|
|
35
|
+
return promise.then(data => lease_1.MsgCreateLeaseResponse.decode(new binary_1.BinaryReader(data)));
|
|
36
|
+
};
|
|
37
|
+
/* CloseLease defines a method to close an order given proper inputs. */
|
|
38
|
+
closeLease = async (request) => {
|
|
39
|
+
const data = lease_1.MsgCloseLease.encode(request).finish();
|
|
40
|
+
const promise = this.rpc.request("akash.market.v1beta4.Msg", "CloseLease", data);
|
|
41
|
+
return promise.then(data => lease_1.MsgCloseLeaseResponse.decode(new binary_1.BinaryReader(data)));
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
exports.MsgClientImpl = MsgClientImpl;
|
|
45
|
+
const createClientImpl = (rpc) => {
|
|
46
|
+
return new MsgClientImpl(rpc);
|
|
47
|
+
};
|
|
48
|
+
exports.createClientImpl = createClientImpl;
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { BidID, BidIDAmino } from "../v1/bid";
|
|
2
|
+
import { DecCoin, DecCoinAmino } from "../../../cosmos/base/v1beta1/coin";
|
|
3
|
+
import { ResourceOffer, ResourceOfferAmino } from "./resourcesoffer";
|
|
4
|
+
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
5
|
+
import { DeepPartial } from "../../../helpers";
|
|
6
|
+
/** BidState is an enum which refers to state of bid. */
|
|
7
|
+
export declare enum Bid_State {
|
|
8
|
+
/** invalid - Prefix should start with 0 in enum. So declaring dummy state. */
|
|
9
|
+
invalid = 0,
|
|
10
|
+
/** open - BidOpen denotes state for bid open. */
|
|
11
|
+
open = 1,
|
|
12
|
+
/** active - BidMatched denotes state for bid open. */
|
|
13
|
+
active = 2,
|
|
14
|
+
/** lost - BidLost denotes state for bid lost. */
|
|
15
|
+
lost = 3,
|
|
16
|
+
/** closed - BidClosed denotes state for bid closed. */
|
|
17
|
+
closed = 4,
|
|
18
|
+
UNRECOGNIZED = -1
|
|
19
|
+
}
|
|
20
|
+
export declare const Bid_StateAmino: typeof Bid_State;
|
|
21
|
+
export declare function bid_StateFromJSON(object: any): Bid_State;
|
|
22
|
+
export declare function bid_StateToJSON(object: Bid_State): string;
|
|
23
|
+
/**
|
|
24
|
+
* Bid stores BidID, state of bid and price.
|
|
25
|
+
* @name Bid
|
|
26
|
+
* @package akash.market.v1beta5
|
|
27
|
+
* @see proto type: akash.market.v1beta5.Bid
|
|
28
|
+
*/
|
|
29
|
+
export interface Bid {
|
|
30
|
+
/**
|
|
31
|
+
* BidID stores owner and all other seq numbers.
|
|
32
|
+
* A successful bid becomes a Lease(ID).
|
|
33
|
+
*/
|
|
34
|
+
id: BidID;
|
|
35
|
+
/**
|
|
36
|
+
* State represents the state of the Bid.
|
|
37
|
+
*/
|
|
38
|
+
state: Bid_State;
|
|
39
|
+
/**
|
|
40
|
+
* Price holds the pricing stated on the Bid.
|
|
41
|
+
*/
|
|
42
|
+
price: DecCoin;
|
|
43
|
+
/**
|
|
44
|
+
* CreatedAt is the block height at which the Bid was created.
|
|
45
|
+
*/
|
|
46
|
+
createdAt: bigint;
|
|
47
|
+
/**
|
|
48
|
+
* ResourceOffer is a list of offers.
|
|
49
|
+
*/
|
|
50
|
+
resourcesOffer: ResourceOffer[];
|
|
51
|
+
}
|
|
52
|
+
export interface BidProtoMsg {
|
|
53
|
+
typeUrl: "/akash.market.v1beta5.Bid";
|
|
54
|
+
value: Uint8Array;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Bid stores BidID, state of bid and price.
|
|
58
|
+
* @name BidAmino
|
|
59
|
+
* @package akash.market.v1beta5
|
|
60
|
+
* @see proto type: akash.market.v1beta5.Bid
|
|
61
|
+
*/
|
|
62
|
+
export interface BidAmino {
|
|
63
|
+
/**
|
|
64
|
+
* BidID stores owner and all other seq numbers.
|
|
65
|
+
* A successful bid becomes a Lease(ID).
|
|
66
|
+
*/
|
|
67
|
+
id: BidIDAmino;
|
|
68
|
+
/**
|
|
69
|
+
* State represents the state of the Bid.
|
|
70
|
+
*/
|
|
71
|
+
state: Bid_State;
|
|
72
|
+
/**
|
|
73
|
+
* Price holds the pricing stated on the Bid.
|
|
74
|
+
*/
|
|
75
|
+
price: DecCoinAmino;
|
|
76
|
+
/**
|
|
77
|
+
* CreatedAt is the block height at which the Bid was created.
|
|
78
|
+
*/
|
|
79
|
+
created_at: string;
|
|
80
|
+
/**
|
|
81
|
+
* ResourceOffer is a list of offers.
|
|
82
|
+
*/
|
|
83
|
+
resources_offer: ResourceOfferAmino[];
|
|
84
|
+
}
|
|
85
|
+
export interface BidAminoMsg {
|
|
86
|
+
type: "/akash.market.v1beta5.Bid";
|
|
87
|
+
value: BidAmino;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Bid stores BidID, state of bid and price.
|
|
91
|
+
* @name Bid
|
|
92
|
+
* @package akash.market.v1beta5
|
|
93
|
+
* @see proto type: akash.market.v1beta5.Bid
|
|
94
|
+
*/
|
|
95
|
+
export declare const Bid: {
|
|
96
|
+
typeUrl: string;
|
|
97
|
+
encode(message: Bid, writer?: BinaryWriter): BinaryWriter;
|
|
98
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Bid;
|
|
99
|
+
fromPartial(object: DeepPartial<Bid>): Bid;
|
|
100
|
+
fromAmino(object: BidAmino): Bid;
|
|
101
|
+
toAmino(message: Bid): BidAmino;
|
|
102
|
+
fromAminoMsg(object: BidAminoMsg): Bid;
|
|
103
|
+
fromProtoMsg(message: BidProtoMsg): Bid;
|
|
104
|
+
toProto(message: Bid): Uint8Array;
|
|
105
|
+
toProtoMsg(message: Bid): BidProtoMsg;
|
|
106
|
+
};
|