@sparkdreamnft/sparkdreamjs 0.0.30 → 0.0.32
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/genesis.d.ts +2 -2
- package/akash/audit/v1/query.d.ts +6 -6
- package/akash/base/attributes/v1/attribute.d.ts +2 -2
- package/akash/base/deposit/v1/deposit.d.ts +74 -0
- package/akash/base/deposit/v1/deposit.js +144 -0
- package/akash/base/offchain/sign/v1/sign.d.ts +60 -0
- package/akash/base/offchain/sign/v1/sign.js +87 -0
- package/akash/base/resources/v1beta4/resources.d.ts +1 -1
- package/akash/bundle.d.ts +5409 -3608
- package/akash/bundle.js +475 -306
- package/akash/cert/v1/query.d.ts +2 -2
- package/akash/client.d.ts +84 -84
- package/akash/client.js +20 -17
- package/akash/deployment/v1/deployment.d.ts +64 -0
- package/akash/deployment/v1/deployment.js +85 -2
- package/akash/deployment/v1beta4/deploymentmsg.d.ts +10 -18
- package/akash/deployment/v1beta4/deploymentmsg.js +15 -15
- package/akash/deployment/v1beta4/query.d.ts +3 -3
- package/akash/deployment/v1beta4/query.js +1 -1
- package/akash/deployment/v1beta4/query.lcd.js +1 -1
- package/akash/deployment/v1beta4/query.rpc.Query.d.ts +1 -1
- package/akash/deployment/v1beta4/query.rpc.Query.js +1 -1
- package/akash/deployment/v1beta4/service.amino.d.ts +0 -6
- package/akash/deployment/v1beta4/service.amino.js +0 -6
- package/akash/deployment/v1beta4/service.registry.d.ts +0 -13
- package/akash/deployment/v1beta4/service.registry.js +1 -20
- package/akash/deployment/v1beta4/service.rpc.msg.d.ts +2 -6
- package/akash/deployment/v1beta4/service.rpc.msg.js +2 -9
- package/akash/deployment/v1beta5/deploymentmsg.d.ts +315 -0
- package/akash/deployment/v1beta5/deploymentmsg.js +438 -0
- package/akash/deployment/v1beta5/filters.d.ts +164 -0
- package/akash/deployment/v1beta5/filters.js +203 -0
- package/akash/deployment/v1beta5/genesis.d.ts +121 -0
- package/akash/deployment/v1beta5/genesis.js +176 -0
- package/akash/deployment/v1beta5/group.d.ts +95 -0
- package/akash/deployment/v1beta5/group.js +170 -0
- package/akash/deployment/v1beta5/groupmsg.d.ts +279 -0
- package/akash/deployment/v1beta5/groupmsg.js +381 -0
- package/akash/deployment/v1beta5/groupspec.d.ts +77 -0
- package/akash/deployment/v1beta5/groupspec.js +104 -0
- package/akash/deployment/v1beta5/params.d.ts +53 -0
- package/akash/deployment/v1beta5/params.js +78 -0
- package/akash/deployment/v1beta5/paramsmsg.d.ts +122 -0
- package/akash/deployment/v1beta5/paramsmsg.js +148 -0
- package/akash/deployment/{v1beta3 → v1beta5}/query.d.ts +221 -63
- package/akash/deployment/{v1beta3 → v1beta5}/query.js +189 -62
- package/akash/deployment/{v1beta3 → v1beta5}/query.lcd.d.ts +2 -1
- package/akash/deployment/{v1beta3 → v1beta5}/query.lcd.js +11 -6
- package/akash/deployment/{v1beta3 → v1beta5}/query.rpc.Query.d.ts +9 -5
- package/akash/deployment/{v1beta3 → v1beta5}/query.rpc.Query.js +15 -6
- package/akash/deployment/v1beta5/resourceunit.d.ts +70 -0
- package/akash/deployment/v1beta5/resourceunit.js +103 -0
- package/akash/deployment/{v1beta3 → v1beta5}/service.amino.d.ts +13 -12
- package/akash/deployment/{v1beta3 → v1beta5}/service.amino.js +18 -17
- package/akash/deployment/{v1beta3 → v1beta5}/service.registry.d.ts +14 -13
- package/akash/deployment/{v1beta3 → v1beta5}/service.registry.js +38 -37
- package/akash/deployment/{v1beta3 → v1beta5}/service.rpc.msg.d.ts +13 -7
- package/akash/deployment/{v1beta3 → v1beta5}/service.rpc.msg.js +18 -14
- package/akash/discovery/v1/akash.d.ts +38 -2
- package/akash/discovery/v1/akash.js +52 -1
- package/akash/discovery/v1/client_info.d.ts +124 -0
- package/akash/discovery/v1/client_info.js +181 -1
- package/akash/discovery/v1/service.d.ts +95 -0
- package/akash/discovery/v1/service.js +131 -0
- package/akash/downtimedetector/v1beta1/downtime_duration.d.ts +60 -0
- package/akash/downtimedetector/v1beta1/downtime_duration.js +205 -0
- package/akash/downtimedetector/v1beta1/genesis.d.ts +119 -0
- package/akash/downtimedetector/v1beta1/genesis.js +171 -0
- package/akash/downtimedetector/v1beta1/query.d.ts +120 -0
- package/akash/downtimedetector/v1beta1/query.js +157 -0
- package/akash/downtimedetector/v1beta1/query.lcd.d.ts +9 -0
- package/akash/downtimedetector/v1beta1/query.lcd.js +25 -0
- package/akash/downtimedetector/v1beta1/query.rpc.Query.d.ts +19 -0
- package/akash/downtimedetector/v1beta1/query.rpc.Query.js +30 -0
- package/akash/epochs/v1beta1/events.d.ts +92 -0
- package/akash/epochs/v1beta1/events.js +155 -0
- package/akash/epochs/v1beta1/genesis.d.ts +200 -0
- package/akash/epochs/v1beta1/genesis.js +222 -0
- package/akash/epochs/v1beta1/query.d.ts +189 -0
- package/akash/epochs/v1beta1/query.js +276 -0
- package/akash/epochs/v1beta1/query.lcd.d.ts +10 -0
- package/akash/epochs/v1beta1/query.lcd.js +26 -0
- package/akash/epochs/v1beta1/query.rpc.Query.d.ts +20 -0
- package/akash/epochs/v1beta1/query.rpc.Query.js +38 -0
- package/akash/escrow/id/v1/id.d.ts +107 -0
- package/akash/escrow/id/v1/id.js +211 -0
- package/akash/escrow/types/v1/account.d.ts +146 -0
- package/akash/escrow/types/v1/account.js +227 -0
- package/akash/escrow/types/v1/balance.d.ts +54 -0
- package/akash/escrow/types/v1/balance.js +89 -0
- package/akash/escrow/types/v1/deposit.d.ts +90 -0
- package/akash/escrow/types/v1/deposit.js +110 -0
- package/akash/escrow/types/v1/payment.d.ts +150 -0
- package/akash/escrow/types/v1/payment.js +216 -0
- package/akash/escrow/types/v1/state.d.ts +15 -0
- package/akash/escrow/types/v1/state.js +55 -0
- package/akash/escrow/v1/authz.d.ts +114 -0
- package/akash/escrow/v1/authz.js +174 -0
- package/akash/escrow/v1/genesis.d.ts +4 -4
- package/akash/escrow/v1/genesis.js +7 -7
- package/akash/escrow/v1/msg.d.ts +128 -0
- package/akash/escrow/v1/msg.js +158 -0
- package/akash/escrow/v1/query.d.ts +21 -83
- package/akash/escrow/v1/query.js +23 -83
- package/akash/escrow/v1/query.lcd.js +6 -21
- package/akash/escrow/v1/service.amino.d.ts +8 -0
- package/akash/escrow/v1/service.amino.js +12 -0
- package/akash/escrow/v1/service.registry.d.ts +25 -0
- package/akash/escrow/v1/service.registry.js +37 -0
- package/akash/escrow/v1/service.rpc.msg.d.ts +13 -0
- package/akash/escrow/v1/service.rpc.msg.js +22 -0
- package/akash/lcd.d.ts +15 -5
- package/akash/lcd.js +26 -12
- package/akash/market/v1/bid.d.ts +8 -0
- package/akash/market/v1/bid.js +13 -1
- package/akash/market/v1/event.d.ts +69 -0
- package/akash/market/v1/event.js +107 -2
- package/akash/market/v1/filters.d.ts +8 -0
- package/akash/market/v1/filters.js +13 -1
- package/akash/market/v1/lease.d.ts +24 -0
- package/akash/market/v1/lease.js +46 -2
- package/akash/market/v1/reclamation.d.ts +82 -0
- package/akash/market/v1/reclamation.js +111 -0
- package/akash/market/v1/types.d.ts +28 -0
- package/akash/market/v1/types.js +83 -0
- package/akash/market/v1beta5/bid.d.ts +9 -0
- package/akash/market/v1beta5/bid.js +14 -1
- package/akash/market/v1beta5/bidmsg.d.ts +23 -29
- package/akash/market/v1beta5/bidmsg.js +45 -32
- package/akash/market/v1beta5/filters.d.ts +8 -0
- package/akash/market/v1beta5/filters.js +13 -1
- package/akash/market/v1beta5/leasemsg.d.ts +109 -6
- package/akash/market/v1beta5/leasemsg.js +166 -17
- package/akash/market/v1beta5/order.d.ts +11 -0
- package/akash/market/v1beta5/order.js +14 -1
- package/akash/market/v1beta5/params.d.ts +27 -0
- package/akash/market/v1beta5/params.js +41 -1
- package/akash/market/v1beta5/query.d.ts +10 -10
- package/akash/market/v1beta5/query.js +8 -8
- package/akash/market/v1beta5/query.lcd.js +1 -1
- package/akash/market/v1beta5/query.rpc.Query.d.ts +1 -1
- package/akash/market/v1beta5/query.rpc.Query.js +1 -1
- package/akash/market/v1beta5/resourcesoffer.d.ts +291 -0
- package/akash/market/v1beta5/resourcesoffer.js +317 -2
- package/akash/market/v1beta5/service.amino.d.ts +6 -1
- package/akash/market/v1beta5/service.amino.js +5 -0
- package/akash/market/v1beta5/service.registry.d.ts +13 -1
- package/akash/market/v1beta5/service.registry.js +19 -1
- package/akash/market/v1beta5/service.rpc.msg.d.ts +4 -1
- package/akash/market/v1beta5/service.rpc.msg.js +6 -0
- package/akash/market/v2beta1/bid.d.ts +220 -0
- package/akash/market/v2beta1/bid.js +318 -0
- package/akash/market/v2beta1/bidmsg.d.ts +211 -0
- package/akash/market/v2beta1/bidmsg.js +313 -0
- package/akash/market/v2beta1/event.d.ts +343 -0
- package/akash/market/v2beta1/event.js +471 -0
- package/akash/market/v2beta1/filters.d.ts +338 -0
- package/akash/market/v2beta1/filters.js +404 -0
- package/akash/market/v2beta1/genesis.d.ts +80 -0
- package/akash/market/v2beta1/genesis.js +123 -0
- package/akash/market/v2beta1/lease.d.ts +224 -0
- package/akash/market/v2beta1/lease.js +321 -0
- package/akash/market/v2beta1/leasemsg.d.ts +283 -0
- package/akash/market/v2beta1/leasemsg.js +394 -0
- package/akash/market/v2beta1/order.d.ts +162 -0
- package/akash/market/v2beta1/order.js +267 -0
- package/akash/market/v2beta1/params.d.ts +61 -0
- package/akash/market/v2beta1/params.js +87 -0
- package/akash/market/v2beta1/paramsmsg.d.ts +122 -0
- package/akash/market/v2beta1/paramsmsg.js +148 -0
- package/akash/market/{v1beta4 → v2beta1}/query.d.ts +344 -129
- package/akash/market/{v1beta4 → v2beta1}/query.js +218 -90
- package/akash/market/{v1beta4 → v2beta1}/query.lcd.d.ts +2 -1
- package/akash/market/{v1beta4 → v2beta1}/query.lcd.js +17 -12
- package/akash/market/{v1beta4 → v2beta1}/query.rpc.Query.d.ts +12 -8
- package/akash/market/{v1beta4 → v2beta1}/query.rpc.Query.js +21 -12
- package/akash/market/v2beta1/resourcesoffer.d.ts +64 -0
- package/akash/market/v2beta1/resourcesoffer.js +88 -0
- package/akash/market/v2beta1/service.amino.d.ts +35 -0
- package/akash/market/v2beta1/service.amino.js +39 -0
- package/akash/market/v2beta1/service.js +2 -0
- package/akash/market/{v1beta4 → v2beta1}/service.registry.d.ts +15 -2
- package/akash/market/v2beta1/service.registry.js +129 -0
- package/akash/market/{v1beta4 → v2beta1}/service.rpc.msg.d.ts +12 -3
- package/akash/market/v2beta1/service.rpc.msg.js +57 -0
- package/akash/market/v2beta1/types.d.ts +28 -0
- package/akash/market/v2beta1/types.js +83 -0
- package/akash/oracle/v1/events.d.ts +303 -0
- package/akash/oracle/v1/events.js +435 -0
- package/akash/oracle/v1/genesis.d.ts +70 -0
- package/akash/oracle/v1/genesis.js +106 -0
- package/akash/oracle/v1/msgs.d.ts +239 -0
- package/akash/oracle/v1/msgs.js +298 -0
- package/akash/oracle/v1/params.d.ts +95 -0
- package/akash/oracle/v1/params.js +141 -0
- package/akash/oracle/v1/prices.d.ts +706 -0
- package/akash/oracle/v1/prices.js +1006 -0
- package/akash/oracle/v1/query.d.ts +204 -0
- package/akash/oracle/v1/query.js +282 -0
- package/akash/oracle/v1/query.lcd.d.ts +12 -0
- package/akash/oracle/v1/query.lcd.js +35 -0
- package/akash/oracle/v1/query.rpc.Query.d.ts +25 -0
- package/akash/oracle/v1/query.rpc.Query.js +49 -0
- package/akash/oracle/v1/service.amino.d.ts +13 -0
- package/akash/oracle/v1/service.amino.js +17 -0
- package/akash/oracle/v1/service.js +2 -0
- package/akash/{cert/v1beta3/cert.registry.d.ts → oracle/v1/service.registry.d.ts} +11 -11
- package/akash/oracle/v1/service.registry.js +55 -0
- package/akash/oracle/v1/service.rpc.msg.d.ts +21 -0
- package/akash/oracle/v1/service.rpc.msg.js +31 -0
- package/akash/oracle/v2/events.d.ts +309 -0
- package/akash/oracle/v2/events.js +438 -0
- package/akash/oracle/v2/genesis.d.ts +202 -0
- package/akash/oracle/v2/genesis.js +295 -0
- package/akash/oracle/v2/msgs.d.ts +247 -0
- package/akash/oracle/v2/msgs.js +313 -0
- package/akash/oracle/v2/params.d.ts +130 -0
- package/akash/oracle/v2/params.js +190 -0
- package/akash/oracle/v2/prices.d.ts +581 -0
- package/akash/oracle/v2/prices.js +828 -0
- package/akash/oracle/v2/query.d.ts +395 -0
- package/akash/oracle/v2/query.js +555 -0
- package/akash/oracle/v2/query.lcd.d.ts +11 -0
- package/akash/oracle/v2/query.lcd.js +42 -0
- package/akash/oracle/v2/query.rpc.Query.d.ts +24 -0
- package/akash/oracle/v2/query.rpc.Query.js +47 -0
- package/akash/oracle/v2/service.amino.d.ts +13 -0
- package/akash/oracle/v2/service.amino.js +17 -0
- package/akash/oracle/v2/service.d.ts +1 -0
- package/akash/oracle/v2/service.js +2 -0
- package/akash/{audit/v1beta3/audit.registry.d.ts → oracle/v2/service.registry.d.ts} +11 -11
- package/akash/oracle/v2/service.registry.js +55 -0
- package/akash/oracle/v2/service.rpc.msg.d.ts +21 -0
- package/akash/oracle/v2/service.rpc.msg.js +31 -0
- package/akash/provider/v1beta4/query.d.ts +2 -2
- package/akash/rpc.query.d.ts +43 -26
- package/akash/rpc.query.js +19 -9
- package/akash/rpc.tx.d.ts +12 -5
- package/akash/rpc.tx.js +16 -9
- package/akash/take/v1/query.lcd.js +1 -1
- package/akash/take/v1/query.rpc.Query.d.ts +1 -1
- package/akash/take/v1/query.rpc.Query.js +1 -1
- package/akash/take/v1/service.rpc.msg.d.ts +1 -1
- package/akash/wasm/v1/event.d.ts +53 -0
- package/akash/wasm/v1/event.js +99 -0
- package/akash/wasm/v1/genesis.d.ts +53 -0
- package/akash/wasm/v1/genesis.js +75 -0
- package/akash/wasm/v1/params.d.ts +46 -0
- package/akash/wasm/v1/params.js +77 -0
- package/akash/wasm/v1/paramsmsg.d.ts +122 -0
- package/akash/wasm/v1/paramsmsg.js +148 -0
- package/akash/wasm/v1/query.d.ts +95 -0
- package/akash/wasm/v1/query.js +131 -0
- package/akash/{cert/v1beta3 → wasm/v1}/query.lcd.d.ts +2 -2
- package/akash/wasm/v1/query.lcd.js +15 -0
- package/akash/wasm/v1/query.rpc.Query.d.ts +16 -0
- package/akash/{cert/v1beta3 → wasm/v1}/query.rpc.Query.js +7 -7
- package/akash/wasm/v1/service.amino.d.ts +8 -0
- package/akash/wasm/v1/service.amino.js +12 -0
- package/akash/wasm/v1/service.d.ts +1 -0
- package/akash/wasm/v1/service.js +2 -0
- package/akash/wasm/v1/service.registry.d.ts +25 -0
- package/akash/wasm/v1/service.registry.js +37 -0
- package/akash/wasm/v1/service.rpc.msg.d.ts +18 -0
- package/akash/wasm/v1/service.rpc.msg.js +25 -0
- package/amino/bundle.js +2 -2
- package/cosmos/authz/v1beta1/authz.d.ts +6 -5
- package/cosmos/authz/v1beta1/authz.js +25 -12
- package/cosmos/bundle.d.ts +7545 -7545
- package/cosmos/bundle.js +416 -416
- package/cosmos_proto/bundle.d.ts +23 -23
- package/cosmos_proto/bundle.js +2 -2
- package/esm/akash/base/deposit/v1/deposit.js +139 -0
- package/esm/akash/base/offchain/sign/v1/sign.js +84 -0
- package/esm/akash/bundle.js +475 -306
- package/esm/akash/client.js +20 -17
- package/esm/akash/deployment/v1/deployment.js +84 -1
- package/esm/akash/deployment/v1beta4/deploymentmsg.js +16 -16
- package/esm/akash/deployment/v1beta4/query.js +1 -1
- package/esm/akash/deployment/v1beta4/query.lcd.js +1 -1
- package/esm/akash/deployment/v1beta4/query.rpc.Query.js +1 -1
- package/esm/akash/deployment/v1beta4/service.amino.js +0 -6
- package/esm/akash/deployment/v1beta4/service.registry.js +1 -20
- package/esm/akash/deployment/v1beta4/service.rpc.msg.js +2 -9
- package/esm/akash/deployment/v1beta5/deploymentmsg.js +435 -0
- package/esm/akash/deployment/v1beta5/filters.js +200 -0
- package/esm/akash/deployment/v1beta5/genesis.js +173 -0
- package/esm/akash/deployment/v1beta5/group.js +165 -0
- package/esm/akash/deployment/v1beta5/groupmsg.js +378 -0
- package/esm/akash/deployment/v1beta5/groupspec.js +101 -0
- package/esm/akash/deployment/v1beta5/params.js +75 -0
- package/esm/akash/deployment/v1beta5/paramsmsg.js +145 -0
- package/esm/akash/deployment/{v1beta3 → v1beta5}/query.js +158 -31
- package/esm/akash/deployment/{v1beta3 → v1beta5}/query.lcd.js +11 -6
- package/esm/akash/deployment/{v1beta3 → v1beta5}/query.rpc.Query.js +16 -7
- package/esm/akash/deployment/v1beta5/resourceunit.js +100 -0
- package/esm/akash/deployment/v1beta5/service.amino.js +41 -0
- package/esm/akash/deployment/v1beta5/service.js +1 -0
- package/esm/akash/deployment/{v1beta3 → v1beta5}/service.registry.js +39 -38
- package/esm/akash/deployment/{v1beta3 → v1beta5}/service.rpc.msg.js +19 -15
- package/esm/akash/discovery/v1/akash.js +53 -2
- package/esm/akash/discovery/v1/client_info.js +180 -0
- package/esm/akash/discovery/v1/service.js +128 -0
- package/esm/akash/downtimedetector/v1beta1/downtime_duration.js +200 -0
- package/esm/akash/downtimedetector/v1beta1/genesis.js +168 -0
- package/esm/akash/downtimedetector/v1beta1/query.js +154 -0
- package/esm/akash/downtimedetector/v1beta1/query.lcd.js +21 -0
- package/esm/akash/downtimedetector/v1beta1/query.rpc.Query.js +25 -0
- package/esm/akash/epochs/v1beta1/events.js +152 -0
- package/esm/akash/epochs/v1beta1/genesis.js +219 -0
- package/esm/akash/epochs/v1beta1/query.js +273 -0
- package/esm/akash/epochs/v1beta1/query.lcd.js +22 -0
- package/esm/akash/epochs/v1beta1/query.rpc.Query.js +33 -0
- package/esm/akash/escrow/id/v1/id.js +206 -0
- package/esm/akash/escrow/types/v1/account.js +224 -0
- package/esm/akash/escrow/types/v1/balance.js +86 -0
- package/esm/akash/escrow/types/v1/deposit.js +107 -0
- package/esm/akash/escrow/types/v1/payment.js +213 -0
- package/esm/akash/escrow/types/v1/state.js +50 -0
- package/esm/akash/escrow/v1/authz.js +169 -0
- package/esm/akash/escrow/v1/genesis.js +7 -7
- package/esm/akash/escrow/v1/msg.js +155 -0
- package/esm/akash/escrow/v1/query.js +23 -83
- package/esm/akash/escrow/v1/query.lcd.js +6 -21
- package/esm/akash/escrow/v1/service.amino.js +9 -0
- package/esm/akash/escrow/v1/service.js +1 -0
- package/esm/akash/escrow/v1/service.registry.js +33 -0
- package/esm/akash/escrow/v1/service.rpc.msg.js +17 -0
- package/esm/akash/lcd.js +26 -12
- package/esm/akash/market/v1/bid.js +13 -1
- package/esm/akash/market/v1/event.js +106 -1
- package/esm/akash/market/v1/filters.js +13 -1
- package/esm/akash/market/v1/lease.js +46 -2
- package/esm/akash/market/v1/reclamation.js +108 -0
- package/esm/akash/market/v1/types.js +78 -0
- package/esm/akash/market/v1beta5/bid.js +14 -1
- package/esm/akash/market/v1beta5/bidmsg.js +46 -33
- package/esm/akash/market/v1beta5/filters.js +13 -1
- package/esm/akash/market/v1beta5/leasemsg.js +165 -16
- package/esm/akash/market/v1beta5/order.js +14 -1
- package/esm/akash/market/v1beta5/params.js +41 -1
- package/esm/akash/market/v1beta5/query.js +8 -8
- package/esm/akash/market/v1beta5/query.lcd.js +1 -1
- package/esm/akash/market/v1beta5/query.rpc.Query.js +1 -1
- package/esm/akash/market/v1beta5/resourcesoffer.js +316 -1
- package/esm/akash/market/v1beta5/service.amino.js +6 -1
- package/esm/akash/market/v1beta5/service.registry.js +20 -2
- package/esm/akash/market/v1beta5/service.rpc.msg.js +7 -1
- package/esm/akash/market/v2beta1/bid.js +313 -0
- package/esm/akash/market/v2beta1/bidmsg.js +310 -0
- package/esm/akash/market/v2beta1/event.js +468 -0
- package/esm/akash/market/v2beta1/filters.js +401 -0
- package/esm/akash/market/v2beta1/genesis.js +120 -0
- package/esm/akash/market/v2beta1/lease.js +316 -0
- package/esm/akash/market/v2beta1/leasemsg.js +391 -0
- package/esm/akash/market/v2beta1/order.js +262 -0
- package/esm/akash/market/v2beta1/params.js +84 -0
- package/esm/akash/market/v2beta1/paramsmsg.js +145 -0
- package/esm/akash/market/{v1beta4 → v2beta1}/query.js +195 -67
- package/esm/akash/market/{v1beta4 → v2beta1}/query.lcd.js +17 -12
- package/esm/akash/market/{v1beta4 → v2beta1}/query.rpc.Query.js +22 -13
- package/esm/akash/market/v2beta1/resourcesoffer.js +85 -0
- package/esm/akash/market/v2beta1/service.amino.js +36 -0
- package/esm/akash/market/v2beta1/service.js +1 -0
- package/esm/akash/market/{v1beta4 → v2beta1}/service.registry.js +37 -19
- package/esm/akash/market/{v1beta4 → v2beta1}/service.rpc.msg.js +17 -8
- package/esm/akash/market/v2beta1/types.js +78 -0
- package/esm/akash/oracle/v1/events.js +432 -0
- package/esm/akash/oracle/v1/genesis.js +103 -0
- package/esm/akash/oracle/v1/msgs.js +295 -0
- package/esm/akash/oracle/v1/params.js +138 -0
- package/esm/akash/oracle/v1/prices.js +1003 -0
- package/esm/akash/oracle/v1/query.js +279 -0
- package/esm/akash/oracle/v1/query.lcd.js +31 -0
- package/esm/akash/oracle/v1/query.rpc.Query.js +44 -0
- package/esm/akash/oracle/v1/service.amino.js +14 -0
- package/esm/akash/oracle/v1/service.js +1 -0
- package/esm/akash/oracle/v1/service.registry.js +51 -0
- package/esm/akash/oracle/v1/service.rpc.msg.js +26 -0
- package/esm/akash/oracle/v2/events.js +435 -0
- package/esm/akash/oracle/v2/genesis.js +292 -0
- package/esm/akash/oracle/v2/msgs.js +310 -0
- package/esm/akash/oracle/v2/params.js +187 -0
- package/esm/akash/oracle/v2/prices.js +825 -0
- package/esm/akash/oracle/v2/query.js +552 -0
- package/esm/akash/oracle/v2/query.lcd.js +38 -0
- package/esm/akash/oracle/v2/query.rpc.Query.js +42 -0
- package/esm/akash/oracle/v2/service.amino.js +14 -0
- package/esm/akash/oracle/v2/service.js +1 -0
- package/esm/akash/oracle/v2/service.registry.js +51 -0
- package/esm/akash/oracle/v2/service.rpc.msg.js +26 -0
- package/esm/akash/rpc.query.js +19 -9
- package/esm/akash/rpc.tx.js +16 -9
- package/esm/akash/take/v1/query.lcd.js +1 -1
- package/esm/akash/take/v1/query.rpc.Query.js +1 -1
- package/esm/akash/wasm/v1/event.js +96 -0
- package/esm/akash/wasm/v1/genesis.js +72 -0
- package/esm/akash/wasm/v1/params.js +74 -0
- package/esm/akash/wasm/v1/paramsmsg.js +145 -0
- package/esm/akash/wasm/v1/query.js +128 -0
- package/esm/akash/wasm/v1/query.lcd.js +11 -0
- package/esm/akash/wasm/v1/query.rpc.Query.js +24 -0
- package/esm/akash/wasm/v1/service.amino.js +9 -0
- package/esm/akash/wasm/v1/service.js +1 -0
- package/esm/akash/wasm/v1/service.registry.js +33 -0
- package/esm/akash/wasm/v1/service.rpc.msg.js +20 -0
- package/esm/amino/bundle.js +2 -2
- package/esm/cosmos/authz/v1beta1/authz.js +13 -0
- package/esm/cosmos/bundle.js +416 -416
- package/esm/cosmos_proto/bundle.js +2 -2
- package/esm/gogoproto/bundle.js +2 -2
- package/esm/google/bundle.js +8 -8
- package/esm/ibc/bundle.js +234 -234
- package/esm/sparkdream/bundle.js +540 -540
- package/esm/sparkdream/commons/v1/genesis.js +128 -1
- package/esm/sparkdream/rep/v1/initiative.js +13 -1
- package/esm/sparkdream/rep/v1/params.js +37 -1
- package/esm/tendermint/bundle.js +20 -20
- package/gogoproto/bundle.js +2 -2
- package/google/bundle.d.ts +431 -431
- package/google/bundle.js +8 -8
- package/ibc/bundle.d.ts +3843 -3843
- package/ibc/bundle.js +234 -234
- package/package.json +1 -1
- package/sparkdream/bundle.d.ts +17364 -17352
- package/sparkdream/bundle.js +540 -540
- package/sparkdream/commons/v1/genesis.d.ts +114 -0
- package/sparkdream/commons/v1/genesis.js +129 -2
- package/sparkdream/rep/v1/initiative.d.ts +10 -0
- package/sparkdream/rep/v1/initiative.js +13 -1
- package/sparkdream/rep/v1/params.d.ts +36 -0
- package/sparkdream/rep/v1/params.js +37 -1
- package/tendermint/bundle.d.ts +844 -844
- package/tendermint/bundle.js +20 -20
- package/akash/audit/v1beta3/audit.amino.d.ts +0 -13
- package/akash/audit/v1beta3/audit.amino.js +0 -17
- package/akash/audit/v1beta3/audit.registry.js +0 -55
- package/akash/audit/v1beta3/audit.rpc.msg.d.ts +0 -16
- package/akash/audit/v1beta3/audit.rpc.msg.js +0 -28
- package/akash/audit/v1beta3/query.d.ts +0 -278
- package/akash/audit/v1beta3/query.js +0 -484
- package/akash/audit/v1beta3/query.lcd.d.ts +0 -12
- package/akash/audit/v1beta3/query.lcd.js +0 -60
- package/akash/audit/v1beta3/query.rpc.Query.d.ts +0 -44
- package/akash/audit/v1beta3/query.rpc.Query.js +0 -66
- package/akash/cert/v1beta3/cert.amino.d.ts +0 -13
- package/akash/cert/v1beta3/cert.amino.js +0 -17
- package/akash/cert/v1beta3/cert.registry.js +0 -55
- package/akash/cert/v1beta3/cert.rpc.msg.d.ts +0 -16
- package/akash/cert/v1beta3/cert.rpc.msg.js +0 -28
- package/akash/cert/v1beta3/query.d.ts +0 -142
- package/akash/cert/v1beta3/query.js +0 -253
- package/akash/cert/v1beta3/query.lcd.js +0 -26
- package/akash/cert/v1beta3/query.rpc.Query.d.ts +0 -16
- package/akash/deployment/v1/authz.d.ts +0 -58
- package/akash/deployment/v1/authz.js +0 -76
- package/akash/deployment/v1/msg.d.ts +0 -122
- package/akash/deployment/v1/msg.js +0 -158
- package/akash/escrow/v1/account.d.ts +0 -147
- package/akash/escrow/v1/account.js +0 -211
- package/akash/escrow/v1/accountid.d.ts +0 -60
- package/akash/escrow/v1/accountid.js +0 -86
- package/akash/escrow/v1/fractional_payment.d.ts +0 -125
- package/akash/escrow/v1/fractional_payment.js +0 -199
- package/akash/market/v1beta4/service.amino.d.ts +0 -29
- package/akash/market/v1beta4/service.amino.js +0 -33
- package/akash/market/v1beta4/service.registry.js +0 -111
- package/akash/market/v1beta4/service.rpc.msg.js +0 -48
- package/akash/provider/v1beta3/provider.amino.d.ts +0 -18
- package/akash/provider/v1beta3/provider.amino.js +0 -22
- package/akash/provider/v1beta3/provider.registry.d.ts +0 -49
- package/akash/provider/v1beta3/provider.registry.js +0 -73
- package/akash/provider/v1beta3/provider.rpc.msg.d.ts +0 -19
- package/akash/provider/v1beta3/provider.rpc.msg.js +0 -34
- package/akash/provider/v1beta3/query.d.ts +0 -182
- package/akash/provider/v1beta3/query.js +0 -298
- package/akash/provider/v1beta3/query.lcd.d.ts +0 -10
- package/akash/provider/v1beta3/query.lcd.js +0 -30
- package/akash/provider/v1beta3/query.rpc.Query.d.ts +0 -20
- package/akash/provider/v1beta3/query.rpc.Query.js +0 -40
- package/esm/akash/audit/v1beta3/audit.amino.js +0 -14
- package/esm/akash/audit/v1beta3/audit.registry.js +0 -51
- package/esm/akash/audit/v1beta3/audit.rpc.msg.js +0 -23
- package/esm/akash/audit/v1beta3/query.js +0 -481
- package/esm/akash/audit/v1beta3/query.lcd.js +0 -56
- package/esm/akash/audit/v1beta3/query.rpc.Query.js +0 -61
- package/esm/akash/cert/v1beta3/cert.amino.js +0 -14
- package/esm/akash/cert/v1beta3/cert.registry.js +0 -51
- package/esm/akash/cert/v1beta3/cert.rpc.msg.js +0 -23
- package/esm/akash/cert/v1beta3/query.js +0 -250
- package/esm/akash/cert/v1beta3/query.lcd.js +0 -22
- package/esm/akash/cert/v1beta3/query.rpc.Query.js +0 -24
- package/esm/akash/deployment/v1/authz.js +0 -73
- package/esm/akash/deployment/v1/msg.js +0 -155
- package/esm/akash/deployment/v1beta3/service.amino.js +0 -40
- package/esm/akash/escrow/v1/account.js +0 -206
- package/esm/akash/escrow/v1/accountid.js +0 -83
- package/esm/akash/escrow/v1/fractional_payment.js +0 -194
- package/esm/akash/market/v1beta4/service.amino.js +0 -30
- package/esm/akash/provider/v1beta3/provider.amino.js +0 -19
- package/esm/akash/provider/v1beta3/provider.registry.js +0 -69
- package/esm/akash/provider/v1beta3/provider.rpc.msg.js +0 -29
- package/esm/akash/provider/v1beta3/query.js +0 -295
- package/esm/akash/provider/v1beta3/query.lcd.js +0 -26
- package/esm/akash/provider/v1beta3/query.rpc.Query.js +0 -35
- /package/akash/deployment/{v1beta3 → v1beta5}/service.d.ts +0 -0
- /package/akash/deployment/{v1beta3 → v1beta5}/service.js +0 -0
- /package/akash/{market/v1beta4 → escrow/v1}/service.d.ts +0 -0
- /package/akash/{market/v1beta4 → escrow/v1}/service.js +0 -0
- /package/{esm/akash/deployment/v1beta3/service.js → akash/market/v2beta1/service.d.ts} +0 -0
- /package/{esm/akash/market/v1beta4/service.js → akash/oracle/v1/service.d.ts} +0 -0
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
//@ts-nocheck
|
|
2
|
+
/**
|
|
3
|
+
* Downtime defines the predefined downtime durations that can be tracked
|
|
4
|
+
* by the downtime detector module to monitor chain availability
|
|
5
|
+
*/
|
|
6
|
+
export var Downtime;
|
|
7
|
+
(function (Downtime) {
|
|
8
|
+
/** DURATION_30S - DURATION_30S represents a 30 second downtime period */
|
|
9
|
+
Downtime[Downtime["DURATION_30S"] = 0] = "DURATION_30S";
|
|
10
|
+
/** DURATION_1M - DURATION_1M represents a 1 minute downtime period */
|
|
11
|
+
Downtime[Downtime["DURATION_1M"] = 1] = "DURATION_1M";
|
|
12
|
+
/** DURATION_2M - DURATION_2M represents a 2 minute downtime period */
|
|
13
|
+
Downtime[Downtime["DURATION_2M"] = 2] = "DURATION_2M";
|
|
14
|
+
/** DURATION_3M - DURATION_3M represents a 3 minute downtime period */
|
|
15
|
+
Downtime[Downtime["DURATION_3M"] = 3] = "DURATION_3M";
|
|
16
|
+
/** DURATION_4M - DURATION_4M represents a 4 minute downtime period */
|
|
17
|
+
Downtime[Downtime["DURATION_4M"] = 4] = "DURATION_4M";
|
|
18
|
+
/** DURATION_5M - DURATION_5M represents a 5 minute downtime period */
|
|
19
|
+
Downtime[Downtime["DURATION_5M"] = 5] = "DURATION_5M";
|
|
20
|
+
/** DURATION_10M - DURATION_10M represents a 10 minute downtime period */
|
|
21
|
+
Downtime[Downtime["DURATION_10M"] = 6] = "DURATION_10M";
|
|
22
|
+
/** DURATION_20M - DURATION_20M represents a 20 minute downtime period */
|
|
23
|
+
Downtime[Downtime["DURATION_20M"] = 7] = "DURATION_20M";
|
|
24
|
+
/** DURATION_30M - DURATION_30M represents a 30 minute downtime period */
|
|
25
|
+
Downtime[Downtime["DURATION_30M"] = 8] = "DURATION_30M";
|
|
26
|
+
/** DURATION_40M - DURATION_40M represents a 40 minute downtime period */
|
|
27
|
+
Downtime[Downtime["DURATION_40M"] = 9] = "DURATION_40M";
|
|
28
|
+
/** DURATION_50M - DURATION_50M represents a 50 minute downtime period */
|
|
29
|
+
Downtime[Downtime["DURATION_50M"] = 10] = "DURATION_50M";
|
|
30
|
+
/** DURATION_1H - DURATION_1H represents a 1 hour downtime period */
|
|
31
|
+
Downtime[Downtime["DURATION_1H"] = 11] = "DURATION_1H";
|
|
32
|
+
/** DURATION_1_5H - DURATION_1_5H represents a 1.5 hour downtime period */
|
|
33
|
+
Downtime[Downtime["DURATION_1_5H"] = 12] = "DURATION_1_5H";
|
|
34
|
+
/** DURATION_2H - DURATION_2H represents a 2 hour downtime period */
|
|
35
|
+
Downtime[Downtime["DURATION_2H"] = 13] = "DURATION_2H";
|
|
36
|
+
/** DURATION_2_5H - DURATION_2_5H represents a 2.5 hour downtime period */
|
|
37
|
+
Downtime[Downtime["DURATION_2_5H"] = 14] = "DURATION_2_5H";
|
|
38
|
+
/** DURATION_3H - DURATION_3H represents a 3 hour downtime period */
|
|
39
|
+
Downtime[Downtime["DURATION_3H"] = 15] = "DURATION_3H";
|
|
40
|
+
/** DURATION_4H - DURATION_4H represents a 4 hour downtime period */
|
|
41
|
+
Downtime[Downtime["DURATION_4H"] = 16] = "DURATION_4H";
|
|
42
|
+
/** DURATION_5H - DURATION_5H represents a 5 hour downtime period */
|
|
43
|
+
Downtime[Downtime["DURATION_5H"] = 17] = "DURATION_5H";
|
|
44
|
+
/** DURATION_6H - DURATION_6H represents a 6 hour downtime period */
|
|
45
|
+
Downtime[Downtime["DURATION_6H"] = 18] = "DURATION_6H";
|
|
46
|
+
/** DURATION_9H - DURATION_9H represents a 9 hour downtime period */
|
|
47
|
+
Downtime[Downtime["DURATION_9H"] = 19] = "DURATION_9H";
|
|
48
|
+
/** DURATION_12H - DURATION_12H represents a 12 hour downtime period */
|
|
49
|
+
Downtime[Downtime["DURATION_12H"] = 20] = "DURATION_12H";
|
|
50
|
+
/** DURATION_18H - DURATION_18H represents a 18 hour downtime period */
|
|
51
|
+
Downtime[Downtime["DURATION_18H"] = 21] = "DURATION_18H";
|
|
52
|
+
/** DURATION_24H - DURATION_24H represents a 24 hour downtime period */
|
|
53
|
+
Downtime[Downtime["DURATION_24H"] = 22] = "DURATION_24H";
|
|
54
|
+
/** DURATION_36H - DURATION_36H represents a 36 hour downtime period */
|
|
55
|
+
Downtime[Downtime["DURATION_36H"] = 23] = "DURATION_36H";
|
|
56
|
+
/** DURATION_48H - DURATION_48H represents a 48 hour downtime period */
|
|
57
|
+
Downtime[Downtime["DURATION_48H"] = 24] = "DURATION_48H";
|
|
58
|
+
Downtime[Downtime["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
59
|
+
})(Downtime || (Downtime = {}));
|
|
60
|
+
export const DowntimeAmino = Downtime;
|
|
61
|
+
export function downtimeFromJSON(object) {
|
|
62
|
+
switch (object) {
|
|
63
|
+
case 0:
|
|
64
|
+
case "DURATION_30S":
|
|
65
|
+
return Downtime.DURATION_30S;
|
|
66
|
+
case 1:
|
|
67
|
+
case "DURATION_1M":
|
|
68
|
+
return Downtime.DURATION_1M;
|
|
69
|
+
case 2:
|
|
70
|
+
case "DURATION_2M":
|
|
71
|
+
return Downtime.DURATION_2M;
|
|
72
|
+
case 3:
|
|
73
|
+
case "DURATION_3M":
|
|
74
|
+
return Downtime.DURATION_3M;
|
|
75
|
+
case 4:
|
|
76
|
+
case "DURATION_4M":
|
|
77
|
+
return Downtime.DURATION_4M;
|
|
78
|
+
case 5:
|
|
79
|
+
case "DURATION_5M":
|
|
80
|
+
return Downtime.DURATION_5M;
|
|
81
|
+
case 6:
|
|
82
|
+
case "DURATION_10M":
|
|
83
|
+
return Downtime.DURATION_10M;
|
|
84
|
+
case 7:
|
|
85
|
+
case "DURATION_20M":
|
|
86
|
+
return Downtime.DURATION_20M;
|
|
87
|
+
case 8:
|
|
88
|
+
case "DURATION_30M":
|
|
89
|
+
return Downtime.DURATION_30M;
|
|
90
|
+
case 9:
|
|
91
|
+
case "DURATION_40M":
|
|
92
|
+
return Downtime.DURATION_40M;
|
|
93
|
+
case 10:
|
|
94
|
+
case "DURATION_50M":
|
|
95
|
+
return Downtime.DURATION_50M;
|
|
96
|
+
case 11:
|
|
97
|
+
case "DURATION_1H":
|
|
98
|
+
return Downtime.DURATION_1H;
|
|
99
|
+
case 12:
|
|
100
|
+
case "DURATION_1_5H":
|
|
101
|
+
return Downtime.DURATION_1_5H;
|
|
102
|
+
case 13:
|
|
103
|
+
case "DURATION_2H":
|
|
104
|
+
return Downtime.DURATION_2H;
|
|
105
|
+
case 14:
|
|
106
|
+
case "DURATION_2_5H":
|
|
107
|
+
return Downtime.DURATION_2_5H;
|
|
108
|
+
case 15:
|
|
109
|
+
case "DURATION_3H":
|
|
110
|
+
return Downtime.DURATION_3H;
|
|
111
|
+
case 16:
|
|
112
|
+
case "DURATION_4H":
|
|
113
|
+
return Downtime.DURATION_4H;
|
|
114
|
+
case 17:
|
|
115
|
+
case "DURATION_5H":
|
|
116
|
+
return Downtime.DURATION_5H;
|
|
117
|
+
case 18:
|
|
118
|
+
case "DURATION_6H":
|
|
119
|
+
return Downtime.DURATION_6H;
|
|
120
|
+
case 19:
|
|
121
|
+
case "DURATION_9H":
|
|
122
|
+
return Downtime.DURATION_9H;
|
|
123
|
+
case 20:
|
|
124
|
+
case "DURATION_12H":
|
|
125
|
+
return Downtime.DURATION_12H;
|
|
126
|
+
case 21:
|
|
127
|
+
case "DURATION_18H":
|
|
128
|
+
return Downtime.DURATION_18H;
|
|
129
|
+
case 22:
|
|
130
|
+
case "DURATION_24H":
|
|
131
|
+
return Downtime.DURATION_24H;
|
|
132
|
+
case 23:
|
|
133
|
+
case "DURATION_36H":
|
|
134
|
+
return Downtime.DURATION_36H;
|
|
135
|
+
case 24:
|
|
136
|
+
case "DURATION_48H":
|
|
137
|
+
return Downtime.DURATION_48H;
|
|
138
|
+
case -1:
|
|
139
|
+
case "UNRECOGNIZED":
|
|
140
|
+
default:
|
|
141
|
+
return Downtime.UNRECOGNIZED;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
export function downtimeToJSON(object) {
|
|
145
|
+
switch (object) {
|
|
146
|
+
case Downtime.DURATION_30S:
|
|
147
|
+
return "DURATION_30S";
|
|
148
|
+
case Downtime.DURATION_1M:
|
|
149
|
+
return "DURATION_1M";
|
|
150
|
+
case Downtime.DURATION_2M:
|
|
151
|
+
return "DURATION_2M";
|
|
152
|
+
case Downtime.DURATION_3M:
|
|
153
|
+
return "DURATION_3M";
|
|
154
|
+
case Downtime.DURATION_4M:
|
|
155
|
+
return "DURATION_4M";
|
|
156
|
+
case Downtime.DURATION_5M:
|
|
157
|
+
return "DURATION_5M";
|
|
158
|
+
case Downtime.DURATION_10M:
|
|
159
|
+
return "DURATION_10M";
|
|
160
|
+
case Downtime.DURATION_20M:
|
|
161
|
+
return "DURATION_20M";
|
|
162
|
+
case Downtime.DURATION_30M:
|
|
163
|
+
return "DURATION_30M";
|
|
164
|
+
case Downtime.DURATION_40M:
|
|
165
|
+
return "DURATION_40M";
|
|
166
|
+
case Downtime.DURATION_50M:
|
|
167
|
+
return "DURATION_50M";
|
|
168
|
+
case Downtime.DURATION_1H:
|
|
169
|
+
return "DURATION_1H";
|
|
170
|
+
case Downtime.DURATION_1_5H:
|
|
171
|
+
return "DURATION_1_5H";
|
|
172
|
+
case Downtime.DURATION_2H:
|
|
173
|
+
return "DURATION_2H";
|
|
174
|
+
case Downtime.DURATION_2_5H:
|
|
175
|
+
return "DURATION_2_5H";
|
|
176
|
+
case Downtime.DURATION_3H:
|
|
177
|
+
return "DURATION_3H";
|
|
178
|
+
case Downtime.DURATION_4H:
|
|
179
|
+
return "DURATION_4H";
|
|
180
|
+
case Downtime.DURATION_5H:
|
|
181
|
+
return "DURATION_5H";
|
|
182
|
+
case Downtime.DURATION_6H:
|
|
183
|
+
return "DURATION_6H";
|
|
184
|
+
case Downtime.DURATION_9H:
|
|
185
|
+
return "DURATION_9H";
|
|
186
|
+
case Downtime.DURATION_12H:
|
|
187
|
+
return "DURATION_12H";
|
|
188
|
+
case Downtime.DURATION_18H:
|
|
189
|
+
return "DURATION_18H";
|
|
190
|
+
case Downtime.DURATION_24H:
|
|
191
|
+
return "DURATION_24H";
|
|
192
|
+
case Downtime.DURATION_36H:
|
|
193
|
+
return "DURATION_36H";
|
|
194
|
+
case Downtime.DURATION_48H:
|
|
195
|
+
return "DURATION_48H";
|
|
196
|
+
case Downtime.UNRECOGNIZED:
|
|
197
|
+
default:
|
|
198
|
+
return "UNRECOGNIZED";
|
|
199
|
+
}
|
|
200
|
+
}
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import { Timestamp } from "../../../google/protobuf/timestamp";
|
|
2
|
+
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
3
|
+
import { toTimestamp, fromTimestamp } from "../../../helpers";
|
|
4
|
+
function createBaseGenesisDowntimeEntry() {
|
|
5
|
+
return {
|
|
6
|
+
duration: 0,
|
|
7
|
+
lastDowntime: new Date()
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* GenesisDowntimeEntry tracks the last occurrence of a specific downtime duration
|
|
12
|
+
* @name GenesisDowntimeEntry
|
|
13
|
+
* @package akash.downtimedetector.v1beta1
|
|
14
|
+
* @see proto type: akash.downtimedetector.v1beta1.GenesisDowntimeEntry
|
|
15
|
+
*/
|
|
16
|
+
export const GenesisDowntimeEntry = {
|
|
17
|
+
typeUrl: "/akash.downtimedetector.v1beta1.GenesisDowntimeEntry",
|
|
18
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
19
|
+
if (message.duration !== 0) {
|
|
20
|
+
writer.uint32(8).int32(message.duration);
|
|
21
|
+
}
|
|
22
|
+
if (message.lastDowntime !== undefined) {
|
|
23
|
+
Timestamp.encode(toTimestamp(message.lastDowntime), writer.uint32(18).fork()).ldelim();
|
|
24
|
+
}
|
|
25
|
+
return writer;
|
|
26
|
+
},
|
|
27
|
+
decode(input, length) {
|
|
28
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
29
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
30
|
+
const message = createBaseGenesisDowntimeEntry();
|
|
31
|
+
while (reader.pos < end) {
|
|
32
|
+
const tag = reader.uint32();
|
|
33
|
+
switch (tag >>> 3) {
|
|
34
|
+
case 1:
|
|
35
|
+
message.duration = reader.int32();
|
|
36
|
+
break;
|
|
37
|
+
case 2:
|
|
38
|
+
message.lastDowntime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
39
|
+
break;
|
|
40
|
+
default:
|
|
41
|
+
reader.skipType(tag & 7);
|
|
42
|
+
break;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
return message;
|
|
46
|
+
},
|
|
47
|
+
fromPartial(object) {
|
|
48
|
+
const message = createBaseGenesisDowntimeEntry();
|
|
49
|
+
message.duration = object.duration ?? 0;
|
|
50
|
+
message.lastDowntime = object.lastDowntime ?? undefined;
|
|
51
|
+
return message;
|
|
52
|
+
},
|
|
53
|
+
fromAmino(object) {
|
|
54
|
+
const message = createBaseGenesisDowntimeEntry();
|
|
55
|
+
if (object.duration !== undefined && object.duration !== null) {
|
|
56
|
+
message.duration = object.duration;
|
|
57
|
+
}
|
|
58
|
+
if (object.last_downtime !== undefined && object.last_downtime !== null) {
|
|
59
|
+
message.lastDowntime = fromTimestamp(Timestamp.fromAmino(object.last_downtime));
|
|
60
|
+
}
|
|
61
|
+
return message;
|
|
62
|
+
},
|
|
63
|
+
toAmino(message) {
|
|
64
|
+
const obj = {};
|
|
65
|
+
obj.duration = message.duration === 0 ? undefined : message.duration;
|
|
66
|
+
obj.last_downtime = message.lastDowntime ? Timestamp.toAmino(toTimestamp(message.lastDowntime)) : undefined;
|
|
67
|
+
return obj;
|
|
68
|
+
},
|
|
69
|
+
fromAminoMsg(object) {
|
|
70
|
+
return GenesisDowntimeEntry.fromAmino(object.value);
|
|
71
|
+
},
|
|
72
|
+
fromProtoMsg(message) {
|
|
73
|
+
return GenesisDowntimeEntry.decode(message.value);
|
|
74
|
+
},
|
|
75
|
+
toProto(message) {
|
|
76
|
+
return GenesisDowntimeEntry.encode(message).finish();
|
|
77
|
+
},
|
|
78
|
+
toProtoMsg(message) {
|
|
79
|
+
return {
|
|
80
|
+
typeUrl: "/akash.downtimedetector.v1beta1.GenesisDowntimeEntry",
|
|
81
|
+
value: GenesisDowntimeEntry.encode(message).finish()
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
function createBaseGenesisState() {
|
|
86
|
+
return {
|
|
87
|
+
downtimes: [],
|
|
88
|
+
lastBlockTime: new Date()
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* GenesisState defines the downtime detector module's genesis state
|
|
93
|
+
* @name GenesisState
|
|
94
|
+
* @package akash.downtimedetector.v1beta1
|
|
95
|
+
* @see proto type: akash.downtimedetector.v1beta1.GenesisState
|
|
96
|
+
*/
|
|
97
|
+
export const GenesisState = {
|
|
98
|
+
typeUrl: "/akash.downtimedetector.v1beta1.GenesisState",
|
|
99
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
100
|
+
for (const v of message.downtimes) {
|
|
101
|
+
GenesisDowntimeEntry.encode(v, writer.uint32(10).fork()).ldelim();
|
|
102
|
+
}
|
|
103
|
+
if (message.lastBlockTime !== undefined) {
|
|
104
|
+
Timestamp.encode(toTimestamp(message.lastBlockTime), writer.uint32(18).fork()).ldelim();
|
|
105
|
+
}
|
|
106
|
+
return writer;
|
|
107
|
+
},
|
|
108
|
+
decode(input, length) {
|
|
109
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
110
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
111
|
+
const message = createBaseGenesisState();
|
|
112
|
+
while (reader.pos < end) {
|
|
113
|
+
const tag = reader.uint32();
|
|
114
|
+
switch (tag >>> 3) {
|
|
115
|
+
case 1:
|
|
116
|
+
message.downtimes.push(GenesisDowntimeEntry.decode(reader, reader.uint32()));
|
|
117
|
+
break;
|
|
118
|
+
case 2:
|
|
119
|
+
message.lastBlockTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
120
|
+
break;
|
|
121
|
+
default:
|
|
122
|
+
reader.skipType(tag & 7);
|
|
123
|
+
break;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
return message;
|
|
127
|
+
},
|
|
128
|
+
fromPartial(object) {
|
|
129
|
+
const message = createBaseGenesisState();
|
|
130
|
+
message.downtimes = object.downtimes?.map(e => GenesisDowntimeEntry.fromPartial(e)) || [];
|
|
131
|
+
message.lastBlockTime = object.lastBlockTime ?? undefined;
|
|
132
|
+
return message;
|
|
133
|
+
},
|
|
134
|
+
fromAmino(object) {
|
|
135
|
+
const message = createBaseGenesisState();
|
|
136
|
+
message.downtimes = object.downtimes?.map(e => GenesisDowntimeEntry.fromAmino(e)) || [];
|
|
137
|
+
if (object.last_block_time !== undefined && object.last_block_time !== null) {
|
|
138
|
+
message.lastBlockTime = fromTimestamp(Timestamp.fromAmino(object.last_block_time));
|
|
139
|
+
}
|
|
140
|
+
return message;
|
|
141
|
+
},
|
|
142
|
+
toAmino(message) {
|
|
143
|
+
const obj = {};
|
|
144
|
+
if (message.downtimes) {
|
|
145
|
+
obj.downtimes = message.downtimes.map(e => e ? GenesisDowntimeEntry.toAmino(e) : undefined);
|
|
146
|
+
}
|
|
147
|
+
else {
|
|
148
|
+
obj.downtimes = message.downtimes;
|
|
149
|
+
}
|
|
150
|
+
obj.last_block_time = message.lastBlockTime ? Timestamp.toAmino(toTimestamp(message.lastBlockTime)) : undefined;
|
|
151
|
+
return obj;
|
|
152
|
+
},
|
|
153
|
+
fromAminoMsg(object) {
|
|
154
|
+
return GenesisState.fromAmino(object.value);
|
|
155
|
+
},
|
|
156
|
+
fromProtoMsg(message) {
|
|
157
|
+
return GenesisState.decode(message.value);
|
|
158
|
+
},
|
|
159
|
+
toProto(message) {
|
|
160
|
+
return GenesisState.encode(message).finish();
|
|
161
|
+
},
|
|
162
|
+
toProtoMsg(message) {
|
|
163
|
+
return {
|
|
164
|
+
typeUrl: "/akash.downtimedetector.v1beta1.GenesisState",
|
|
165
|
+
value: GenesisState.encode(message).finish()
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
};
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
import { Duration } from "../../../google/protobuf/duration";
|
|
2
|
+
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
3
|
+
function createBaseRecoveredSinceDowntimeOfLengthRequest() {
|
|
4
|
+
return {
|
|
5
|
+
downtime: 0,
|
|
6
|
+
recovery: Duration.fromPartial({})
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* RecoveredSinceDowntimeOfLengthRequest is the request type for querying if the chain
|
|
11
|
+
* has been operational for at least the specified recovery duration since experiencing
|
|
12
|
+
* downtime of the specified length
|
|
13
|
+
* @name RecoveredSinceDowntimeOfLengthRequest
|
|
14
|
+
* @package akash.downtimedetector.v1beta1
|
|
15
|
+
* @see proto type: akash.downtimedetector.v1beta1.RecoveredSinceDowntimeOfLengthRequest
|
|
16
|
+
*/
|
|
17
|
+
export const RecoveredSinceDowntimeOfLengthRequest = {
|
|
18
|
+
typeUrl: "/akash.downtimedetector.v1beta1.RecoveredSinceDowntimeOfLengthRequest",
|
|
19
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
20
|
+
if (message.downtime !== 0) {
|
|
21
|
+
writer.uint32(8).int32(message.downtime);
|
|
22
|
+
}
|
|
23
|
+
if (message.recovery !== undefined) {
|
|
24
|
+
Duration.encode(message.recovery, writer.uint32(18).fork()).ldelim();
|
|
25
|
+
}
|
|
26
|
+
return writer;
|
|
27
|
+
},
|
|
28
|
+
decode(input, length) {
|
|
29
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
30
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
31
|
+
const message = createBaseRecoveredSinceDowntimeOfLengthRequest();
|
|
32
|
+
while (reader.pos < end) {
|
|
33
|
+
const tag = reader.uint32();
|
|
34
|
+
switch (tag >>> 3) {
|
|
35
|
+
case 1:
|
|
36
|
+
message.downtime = reader.int32();
|
|
37
|
+
break;
|
|
38
|
+
case 2:
|
|
39
|
+
message.recovery = Duration.decode(reader, reader.uint32());
|
|
40
|
+
break;
|
|
41
|
+
default:
|
|
42
|
+
reader.skipType(tag & 7);
|
|
43
|
+
break;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
return message;
|
|
47
|
+
},
|
|
48
|
+
fromPartial(object) {
|
|
49
|
+
const message = createBaseRecoveredSinceDowntimeOfLengthRequest();
|
|
50
|
+
message.downtime = object.downtime ?? 0;
|
|
51
|
+
message.recovery = object.recovery !== undefined && object.recovery !== null ? Duration.fromPartial(object.recovery) : undefined;
|
|
52
|
+
return message;
|
|
53
|
+
},
|
|
54
|
+
fromAmino(object) {
|
|
55
|
+
const message = createBaseRecoveredSinceDowntimeOfLengthRequest();
|
|
56
|
+
if (object.downtime !== undefined && object.downtime !== null) {
|
|
57
|
+
message.downtime = object.downtime;
|
|
58
|
+
}
|
|
59
|
+
if (object.recovery !== undefined && object.recovery !== null) {
|
|
60
|
+
message.recovery = Duration.fromAmino(object.recovery);
|
|
61
|
+
}
|
|
62
|
+
return message;
|
|
63
|
+
},
|
|
64
|
+
toAmino(message) {
|
|
65
|
+
const obj = {};
|
|
66
|
+
obj.downtime = message.downtime === 0 ? undefined : message.downtime;
|
|
67
|
+
obj.recovery = message.recovery ? Duration.toAmino(message.recovery) : undefined;
|
|
68
|
+
return obj;
|
|
69
|
+
},
|
|
70
|
+
fromAminoMsg(object) {
|
|
71
|
+
return RecoveredSinceDowntimeOfLengthRequest.fromAmino(object.value);
|
|
72
|
+
},
|
|
73
|
+
fromProtoMsg(message) {
|
|
74
|
+
return RecoveredSinceDowntimeOfLengthRequest.decode(message.value);
|
|
75
|
+
},
|
|
76
|
+
toProto(message) {
|
|
77
|
+
return RecoveredSinceDowntimeOfLengthRequest.encode(message).finish();
|
|
78
|
+
},
|
|
79
|
+
toProtoMsg(message) {
|
|
80
|
+
return {
|
|
81
|
+
typeUrl: "/akash.downtimedetector.v1beta1.RecoveredSinceDowntimeOfLengthRequest",
|
|
82
|
+
value: RecoveredSinceDowntimeOfLengthRequest.encode(message).finish()
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
function createBaseRecoveredSinceDowntimeOfLengthResponse() {
|
|
87
|
+
return {
|
|
88
|
+
succesfullyRecovered: false
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* RecoveredSinceDowntimeOfLengthResponse is the response type for the recovery query
|
|
93
|
+
* @name RecoveredSinceDowntimeOfLengthResponse
|
|
94
|
+
* @package akash.downtimedetector.v1beta1
|
|
95
|
+
* @see proto type: akash.downtimedetector.v1beta1.RecoveredSinceDowntimeOfLengthResponse
|
|
96
|
+
*/
|
|
97
|
+
export const RecoveredSinceDowntimeOfLengthResponse = {
|
|
98
|
+
typeUrl: "/akash.downtimedetector.v1beta1.RecoveredSinceDowntimeOfLengthResponse",
|
|
99
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
100
|
+
if (message.succesfullyRecovered === true) {
|
|
101
|
+
writer.uint32(8).bool(message.succesfullyRecovered);
|
|
102
|
+
}
|
|
103
|
+
return writer;
|
|
104
|
+
},
|
|
105
|
+
decode(input, length) {
|
|
106
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
107
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
108
|
+
const message = createBaseRecoveredSinceDowntimeOfLengthResponse();
|
|
109
|
+
while (reader.pos < end) {
|
|
110
|
+
const tag = reader.uint32();
|
|
111
|
+
switch (tag >>> 3) {
|
|
112
|
+
case 1:
|
|
113
|
+
message.succesfullyRecovered = reader.bool();
|
|
114
|
+
break;
|
|
115
|
+
default:
|
|
116
|
+
reader.skipType(tag & 7);
|
|
117
|
+
break;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
return message;
|
|
121
|
+
},
|
|
122
|
+
fromPartial(object) {
|
|
123
|
+
const message = createBaseRecoveredSinceDowntimeOfLengthResponse();
|
|
124
|
+
message.succesfullyRecovered = object.succesfullyRecovered ?? false;
|
|
125
|
+
return message;
|
|
126
|
+
},
|
|
127
|
+
fromAmino(object) {
|
|
128
|
+
const message = createBaseRecoveredSinceDowntimeOfLengthResponse();
|
|
129
|
+
if (object.succesfully_recovered !== undefined && object.succesfully_recovered !== null) {
|
|
130
|
+
message.succesfullyRecovered = object.succesfully_recovered;
|
|
131
|
+
}
|
|
132
|
+
return message;
|
|
133
|
+
},
|
|
134
|
+
toAmino(message) {
|
|
135
|
+
const obj = {};
|
|
136
|
+
obj.succesfully_recovered = message.succesfullyRecovered === false ? undefined : message.succesfullyRecovered;
|
|
137
|
+
return obj;
|
|
138
|
+
},
|
|
139
|
+
fromAminoMsg(object) {
|
|
140
|
+
return RecoveredSinceDowntimeOfLengthResponse.fromAmino(object.value);
|
|
141
|
+
},
|
|
142
|
+
fromProtoMsg(message) {
|
|
143
|
+
return RecoveredSinceDowntimeOfLengthResponse.decode(message.value);
|
|
144
|
+
},
|
|
145
|
+
toProto(message) {
|
|
146
|
+
return RecoveredSinceDowntimeOfLengthResponse.encode(message).finish();
|
|
147
|
+
},
|
|
148
|
+
toProtoMsg(message) {
|
|
149
|
+
return {
|
|
150
|
+
typeUrl: "/akash.downtimedetector.v1beta1.RecoveredSinceDowntimeOfLengthResponse",
|
|
151
|
+
value: RecoveredSinceDowntimeOfLengthResponse.encode(message).finish()
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export class LCDQueryClient {
|
|
2
|
+
req;
|
|
3
|
+
constructor({ requestClient }) {
|
|
4
|
+
this.req = requestClient;
|
|
5
|
+
}
|
|
6
|
+
/* RecoveredSinceDowntimeOfLength queries if the chain has recovered for a specified duration
|
|
7
|
+
since experiencing downtime of a given length */
|
|
8
|
+
recoveredSinceDowntimeOfLength = async (params) => {
|
|
9
|
+
const options = {
|
|
10
|
+
params: {}
|
|
11
|
+
};
|
|
12
|
+
if (typeof params?.downtime !== "undefined") {
|
|
13
|
+
options.params.downtime = params.downtime;
|
|
14
|
+
}
|
|
15
|
+
if (typeof params?.recovery !== "undefined") {
|
|
16
|
+
options.params.recovery = params.recovery;
|
|
17
|
+
}
|
|
18
|
+
const endpoint = `akash/downtime-detector/v1beta1/RecoveredSinceDowntimeOfLength`;
|
|
19
|
+
return await this.req.get(endpoint, options);
|
|
20
|
+
};
|
|
21
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { BinaryReader } from "../../../binary";
|
|
2
|
+
import { createProtobufRpcClient } from "@cosmjs/stargate";
|
|
3
|
+
import { RecoveredSinceDowntimeOfLengthRequest, RecoveredSinceDowntimeOfLengthResponse } from "./query";
|
|
4
|
+
export class QueryClientImpl {
|
|
5
|
+
rpc;
|
|
6
|
+
constructor(rpc) {
|
|
7
|
+
this.rpc = rpc;
|
|
8
|
+
}
|
|
9
|
+
/* RecoveredSinceDowntimeOfLength queries if the chain has recovered for a specified duration
|
|
10
|
+
since experiencing downtime of a given length */
|
|
11
|
+
recoveredSinceDowntimeOfLength = async (request) => {
|
|
12
|
+
const data = RecoveredSinceDowntimeOfLengthRequest.encode(request).finish();
|
|
13
|
+
const promise = this.rpc.request("akash.downtimedetector.v1beta1.Query", "RecoveredSinceDowntimeOfLength", data);
|
|
14
|
+
return promise.then(data => RecoveredSinceDowntimeOfLengthResponse.decode(new BinaryReader(data)));
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
export const createRpcQueryExtension = (base) => {
|
|
18
|
+
const rpc = createProtobufRpcClient(base);
|
|
19
|
+
const queryService = new QueryClientImpl(rpc);
|
|
20
|
+
return {
|
|
21
|
+
recoveredSinceDowntimeOfLength(request) {
|
|
22
|
+
return queryService.recoveredSinceDowntimeOfLength(request);
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
};
|