@sparkdreamnft/sparkdreamjs 0.0.29 → 0.0.31
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/bme/v1/events.d.ts +332 -0
- package/akash/bme/v1/events.js +500 -0
- package/akash/bme/v1/filters.d.ts +80 -0
- package/akash/bme/v1/filters.js +110 -0
- package/akash/bme/v1/genesis.d.ts +271 -0
- package/akash/bme/v1/genesis.js +452 -0
- package/akash/bme/v1/msgs.d.ts +585 -0
- package/akash/bme/v1/msgs.js +867 -0
- package/akash/bme/v1/params.d.ts +147 -0
- package/akash/bme/v1/params.js +174 -0
- package/akash/bme/v1/query.d.ts +508 -0
- package/akash/bme/v1/query.js +727 -0
- package/akash/bme/v1/query.lcd.d.ts +12 -0
- package/akash/bme/v1/query.lcd.js +41 -0
- package/akash/bme/v1/query.rpc.Query.d.ts +28 -0
- package/akash/bme/v1/query.rpc.Query.js +56 -0
- package/akash/bme/v1/service.amino.d.ts +28 -0
- package/akash/bme/v1/service.amino.js +32 -0
- package/akash/bme/v1/service.registry.d.ts +73 -0
- package/akash/bme/v1/service.registry.js +109 -0
- package/akash/bme/v1/service.rpc.msg.d.ts +46 -0
- package/akash/bme/v1/service.rpc.msg.js +55 -0
- package/akash/bme/v1/types.d.ts +766 -0
- package/akash/bme/v1/types.js +1283 -0
- package/akash/bundle.d.ts +5593 -3155
- package/akash/bundle.js +499 -299
- package/akash/cert/v1/query.d.ts +2 -2
- package/akash/client.d.ts +105 -80
- package/akash/client.js +23 -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.js +2 -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 +18 -5
- package/akash/lcd.js +30 -11
- 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.d.ts +1 -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 +50 -25
- package/akash/rpc.query.js +22 -9
- package/akash/rpc.tx.d.ts +15 -5
- package/akash/rpc.tx.js +19 -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/bme/v1/events.js +497 -0
- package/esm/akash/bme/v1/filters.js +107 -0
- package/esm/akash/bme/v1/genesis.js +449 -0
- package/esm/akash/bme/v1/msgs.js +864 -0
- package/esm/akash/bme/v1/params.js +171 -0
- package/esm/akash/bme/v1/query.js +724 -0
- package/esm/akash/bme/v1/query.lcd.js +37 -0
- package/esm/akash/bme/v1/query.rpc.Query.js +51 -0
- package/esm/akash/bme/v1/service.amino.js +29 -0
- package/esm/akash/bme/v1/service.js +1 -0
- package/esm/akash/bme/v1/service.registry.js +105 -0
- package/esm/akash/bme/v1/service.rpc.msg.js +50 -0
- package/esm/akash/bme/v1/types.js +1274 -0
- package/esm/akash/bundle.js +499 -299
- package/esm/akash/client.js +23 -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 +30 -11
- 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 +22 -9
- package/esm/akash/rpc.tx.js +19 -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/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 +17352 -17352
- package/sparkdream/bundle.js +540 -540
- 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 → bme/v1}/service.d.ts +0 -0
- /package/akash/{deployment/v1beta3 → bme/v1}/service.js +0 -0
- /package/akash/{market/v1beta4 → deployment/v1beta5}/service.d.ts +0 -0
- /package/akash/{market/v1beta4 → deployment/v1beta5}/service.js +0 -0
- /package/{esm/akash/deployment/v1beta3/service.js → akash/escrow/v1/service.d.ts} +0 -0
- /package/{esm/akash/market/v1beta4/service.js → akash/market/v2beta1/service.d.ts} +0 -0
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
//@ts-nocheck
|
|
2
|
+
import { BinaryReader, BinaryWriter } from "../../../../binary";
|
|
3
|
+
/** Scope is an enum which refers to the account scope */
|
|
4
|
+
export var Scope;
|
|
5
|
+
(function (Scope) {
|
|
6
|
+
/** invalid - Prefix should start with 0 in enum. So declaring dummy state. */
|
|
7
|
+
Scope[Scope["invalid"] = 0] = "invalid";
|
|
8
|
+
/** deployment - DeploymentActive denotes state for deployment active. */
|
|
9
|
+
Scope[Scope["deployment"] = 1] = "deployment";
|
|
10
|
+
/** bid - DeploymentClosed denotes state for deployment closed. */
|
|
11
|
+
Scope[Scope["bid"] = 2] = "bid";
|
|
12
|
+
Scope[Scope["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
13
|
+
})(Scope || (Scope = {}));
|
|
14
|
+
export const ScopeAmino = Scope;
|
|
15
|
+
export function scopeFromJSON(object) {
|
|
16
|
+
switch (object) {
|
|
17
|
+
case 0:
|
|
18
|
+
case "invalid":
|
|
19
|
+
return Scope.invalid;
|
|
20
|
+
case 1:
|
|
21
|
+
case "deployment":
|
|
22
|
+
return Scope.deployment;
|
|
23
|
+
case 2:
|
|
24
|
+
case "bid":
|
|
25
|
+
return Scope.bid;
|
|
26
|
+
case -1:
|
|
27
|
+
case "UNRECOGNIZED":
|
|
28
|
+
default:
|
|
29
|
+
return Scope.UNRECOGNIZED;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
export function scopeToJSON(object) {
|
|
33
|
+
switch (object) {
|
|
34
|
+
case Scope.invalid:
|
|
35
|
+
return "invalid";
|
|
36
|
+
case Scope.deployment:
|
|
37
|
+
return "deployment";
|
|
38
|
+
case Scope.bid:
|
|
39
|
+
return "bid";
|
|
40
|
+
case Scope.UNRECOGNIZED:
|
|
41
|
+
default:
|
|
42
|
+
return "UNRECOGNIZED";
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
function createBaseAccount() {
|
|
46
|
+
return {
|
|
47
|
+
scope: 0,
|
|
48
|
+
xid: ""
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Account is the account identifier.
|
|
53
|
+
* @name Account
|
|
54
|
+
* @package akash.escrow.id.v1
|
|
55
|
+
* @see proto type: akash.escrow.id.v1.Account
|
|
56
|
+
*/
|
|
57
|
+
export const Account = {
|
|
58
|
+
typeUrl: "/akash.escrow.id.v1.Account",
|
|
59
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
60
|
+
if (message.scope !== 0) {
|
|
61
|
+
writer.uint32(8).int32(message.scope);
|
|
62
|
+
}
|
|
63
|
+
if (message.xid !== "") {
|
|
64
|
+
writer.uint32(18).string(message.xid);
|
|
65
|
+
}
|
|
66
|
+
return writer;
|
|
67
|
+
},
|
|
68
|
+
decode(input, length) {
|
|
69
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
70
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
71
|
+
const message = createBaseAccount();
|
|
72
|
+
while (reader.pos < end) {
|
|
73
|
+
const tag = reader.uint32();
|
|
74
|
+
switch (tag >>> 3) {
|
|
75
|
+
case 1:
|
|
76
|
+
message.scope = reader.int32();
|
|
77
|
+
break;
|
|
78
|
+
case 2:
|
|
79
|
+
message.xid = reader.string();
|
|
80
|
+
break;
|
|
81
|
+
default:
|
|
82
|
+
reader.skipType(tag & 7);
|
|
83
|
+
break;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
return message;
|
|
87
|
+
},
|
|
88
|
+
fromPartial(object) {
|
|
89
|
+
const message = createBaseAccount();
|
|
90
|
+
message.scope = object.scope ?? 0;
|
|
91
|
+
message.xid = object.xid ?? "";
|
|
92
|
+
return message;
|
|
93
|
+
},
|
|
94
|
+
fromAmino(object) {
|
|
95
|
+
const message = createBaseAccount();
|
|
96
|
+
if (object.scope !== undefined && object.scope !== null) {
|
|
97
|
+
message.scope = object.scope;
|
|
98
|
+
}
|
|
99
|
+
if (object.xid !== undefined && object.xid !== null) {
|
|
100
|
+
message.xid = object.xid;
|
|
101
|
+
}
|
|
102
|
+
return message;
|
|
103
|
+
},
|
|
104
|
+
toAmino(message) {
|
|
105
|
+
const obj = {};
|
|
106
|
+
obj.scope = message.scope ?? 0;
|
|
107
|
+
obj.xid = message.xid ?? "";
|
|
108
|
+
return obj;
|
|
109
|
+
},
|
|
110
|
+
fromAminoMsg(object) {
|
|
111
|
+
return Account.fromAmino(object.value);
|
|
112
|
+
},
|
|
113
|
+
fromProtoMsg(message) {
|
|
114
|
+
return Account.decode(message.value);
|
|
115
|
+
},
|
|
116
|
+
toProto(message) {
|
|
117
|
+
return Account.encode(message).finish();
|
|
118
|
+
},
|
|
119
|
+
toProtoMsg(message) {
|
|
120
|
+
return {
|
|
121
|
+
typeUrl: "/akash.escrow.id.v1.Account",
|
|
122
|
+
value: Account.encode(message).finish()
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
};
|
|
126
|
+
function createBasePayment() {
|
|
127
|
+
return {
|
|
128
|
+
aid: Account.fromPartial({}),
|
|
129
|
+
xid: ""
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Payment is the payment identifier.
|
|
134
|
+
* @name Payment
|
|
135
|
+
* @package akash.escrow.id.v1
|
|
136
|
+
* @see proto type: akash.escrow.id.v1.Payment
|
|
137
|
+
*/
|
|
138
|
+
export const Payment = {
|
|
139
|
+
typeUrl: "/akash.escrow.id.v1.Payment",
|
|
140
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
141
|
+
if (message.aid !== undefined) {
|
|
142
|
+
Account.encode(message.aid, writer.uint32(10).fork()).ldelim();
|
|
143
|
+
}
|
|
144
|
+
if (message.xid !== "") {
|
|
145
|
+
writer.uint32(18).string(message.xid);
|
|
146
|
+
}
|
|
147
|
+
return writer;
|
|
148
|
+
},
|
|
149
|
+
decode(input, length) {
|
|
150
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
151
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
152
|
+
const message = createBasePayment();
|
|
153
|
+
while (reader.pos < end) {
|
|
154
|
+
const tag = reader.uint32();
|
|
155
|
+
switch (tag >>> 3) {
|
|
156
|
+
case 1:
|
|
157
|
+
message.aid = Account.decode(reader, reader.uint32());
|
|
158
|
+
break;
|
|
159
|
+
case 2:
|
|
160
|
+
message.xid = reader.string();
|
|
161
|
+
break;
|
|
162
|
+
default:
|
|
163
|
+
reader.skipType(tag & 7);
|
|
164
|
+
break;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
return message;
|
|
168
|
+
},
|
|
169
|
+
fromPartial(object) {
|
|
170
|
+
const message = createBasePayment();
|
|
171
|
+
message.aid = object.aid !== undefined && object.aid !== null ? Account.fromPartial(object.aid) : undefined;
|
|
172
|
+
message.xid = object.xid ?? "";
|
|
173
|
+
return message;
|
|
174
|
+
},
|
|
175
|
+
fromAmino(object) {
|
|
176
|
+
const message = createBasePayment();
|
|
177
|
+
if (object.aid !== undefined && object.aid !== null) {
|
|
178
|
+
message.aid = Account.fromAmino(object.aid);
|
|
179
|
+
}
|
|
180
|
+
if (object.xid !== undefined && object.xid !== null) {
|
|
181
|
+
message.xid = object.xid;
|
|
182
|
+
}
|
|
183
|
+
return message;
|
|
184
|
+
},
|
|
185
|
+
toAmino(message) {
|
|
186
|
+
const obj = {};
|
|
187
|
+
obj.aid = message.aid ? Account.toAmino(message.aid) : Account.toAmino(Account.fromPartial({}));
|
|
188
|
+
obj.xid = message.xid ?? "";
|
|
189
|
+
return obj;
|
|
190
|
+
},
|
|
191
|
+
fromAminoMsg(object) {
|
|
192
|
+
return Payment.fromAmino(object.value);
|
|
193
|
+
},
|
|
194
|
+
fromProtoMsg(message) {
|
|
195
|
+
return Payment.decode(message.value);
|
|
196
|
+
},
|
|
197
|
+
toProto(message) {
|
|
198
|
+
return Payment.encode(message).finish();
|
|
199
|
+
},
|
|
200
|
+
toProtoMsg(message) {
|
|
201
|
+
return {
|
|
202
|
+
typeUrl: "/akash.escrow.id.v1.Payment",
|
|
203
|
+
value: Payment.encode(message).finish()
|
|
204
|
+
};
|
|
205
|
+
}
|
|
206
|
+
};
|
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
import { DecCoin } from "../../../../cosmos/base/v1beta1/coin";
|
|
2
|
+
import { Balance } from "./balance";
|
|
3
|
+
import { Depositor } from "./deposit";
|
|
4
|
+
import { Account as Account1 } from "../../id/v1/id";
|
|
5
|
+
import { BinaryReader, BinaryWriter } from "../../../../binary";
|
|
6
|
+
function createBaseAccountState() {
|
|
7
|
+
return {
|
|
8
|
+
owner: "",
|
|
9
|
+
state: 0,
|
|
10
|
+
transferred: [],
|
|
11
|
+
settledAt: BigInt(0),
|
|
12
|
+
funds: [],
|
|
13
|
+
deposits: []
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Account stores state for an escrow account.
|
|
18
|
+
* @name AccountState
|
|
19
|
+
* @package akash.escrow.types.v1
|
|
20
|
+
* @see proto type: akash.escrow.types.v1.AccountState
|
|
21
|
+
*/
|
|
22
|
+
export const AccountState = {
|
|
23
|
+
typeUrl: "/akash.escrow.types.v1.AccountState",
|
|
24
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
25
|
+
if (message.owner !== "") {
|
|
26
|
+
writer.uint32(10).string(message.owner);
|
|
27
|
+
}
|
|
28
|
+
if (message.state !== 0) {
|
|
29
|
+
writer.uint32(16).int32(message.state);
|
|
30
|
+
}
|
|
31
|
+
for (const v of message.transferred) {
|
|
32
|
+
DecCoin.encode(v, writer.uint32(26).fork()).ldelim();
|
|
33
|
+
}
|
|
34
|
+
if (message.settledAt !== BigInt(0)) {
|
|
35
|
+
writer.uint32(32).int64(message.settledAt);
|
|
36
|
+
}
|
|
37
|
+
for (const v of message.funds) {
|
|
38
|
+
Balance.encode(v, writer.uint32(42).fork()).ldelim();
|
|
39
|
+
}
|
|
40
|
+
for (const v of message.deposits) {
|
|
41
|
+
Depositor.encode(v, writer.uint32(50).fork()).ldelim();
|
|
42
|
+
}
|
|
43
|
+
return writer;
|
|
44
|
+
},
|
|
45
|
+
decode(input, length) {
|
|
46
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
47
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
48
|
+
const message = createBaseAccountState();
|
|
49
|
+
while (reader.pos < end) {
|
|
50
|
+
const tag = reader.uint32();
|
|
51
|
+
switch (tag >>> 3) {
|
|
52
|
+
case 1:
|
|
53
|
+
message.owner = reader.string();
|
|
54
|
+
break;
|
|
55
|
+
case 2:
|
|
56
|
+
message.state = reader.int32();
|
|
57
|
+
break;
|
|
58
|
+
case 3:
|
|
59
|
+
message.transferred.push(DecCoin.decode(reader, reader.uint32()));
|
|
60
|
+
break;
|
|
61
|
+
case 4:
|
|
62
|
+
message.settledAt = reader.int64();
|
|
63
|
+
break;
|
|
64
|
+
case 5:
|
|
65
|
+
message.funds.push(Balance.decode(reader, reader.uint32()));
|
|
66
|
+
break;
|
|
67
|
+
case 6:
|
|
68
|
+
message.deposits.push(Depositor.decode(reader, reader.uint32()));
|
|
69
|
+
break;
|
|
70
|
+
default:
|
|
71
|
+
reader.skipType(tag & 7);
|
|
72
|
+
break;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
return message;
|
|
76
|
+
},
|
|
77
|
+
fromPartial(object) {
|
|
78
|
+
const message = createBaseAccountState();
|
|
79
|
+
message.owner = object.owner ?? "";
|
|
80
|
+
message.state = object.state ?? 0;
|
|
81
|
+
message.transferred = object.transferred?.map(e => DecCoin.fromPartial(e)) || [];
|
|
82
|
+
message.settledAt = object.settledAt !== undefined && object.settledAt !== null ? BigInt(object.settledAt.toString()) : BigInt(0);
|
|
83
|
+
message.funds = object.funds?.map(e => Balance.fromPartial(e)) || [];
|
|
84
|
+
message.deposits = object.deposits?.map(e => Depositor.fromPartial(e)) || [];
|
|
85
|
+
return message;
|
|
86
|
+
},
|
|
87
|
+
fromAmino(object) {
|
|
88
|
+
const message = createBaseAccountState();
|
|
89
|
+
if (object.owner !== undefined && object.owner !== null) {
|
|
90
|
+
message.owner = object.owner;
|
|
91
|
+
}
|
|
92
|
+
if (object.state !== undefined && object.state !== null) {
|
|
93
|
+
message.state = object.state;
|
|
94
|
+
}
|
|
95
|
+
message.transferred = object.transferred?.map(e => DecCoin.fromAmino(e)) || [];
|
|
96
|
+
if (object.settled_at !== undefined && object.settled_at !== null) {
|
|
97
|
+
message.settledAt = BigInt(object.settled_at);
|
|
98
|
+
}
|
|
99
|
+
message.funds = object.funds?.map(e => Balance.fromAmino(e)) || [];
|
|
100
|
+
message.deposits = object.deposits?.map(e => Depositor.fromAmino(e)) || [];
|
|
101
|
+
return message;
|
|
102
|
+
},
|
|
103
|
+
toAmino(message) {
|
|
104
|
+
const obj = {};
|
|
105
|
+
obj.owner = message.owner ?? "";
|
|
106
|
+
obj.state = message.state ?? 0;
|
|
107
|
+
if (message.transferred) {
|
|
108
|
+
obj.transferred = message.transferred.map(e => e ? DecCoin.toAmino(e) : undefined);
|
|
109
|
+
}
|
|
110
|
+
else {
|
|
111
|
+
obj.transferred = message.transferred;
|
|
112
|
+
}
|
|
113
|
+
obj.settled_at = message.settledAt ? message.settledAt?.toString() : "0";
|
|
114
|
+
if (message.funds) {
|
|
115
|
+
obj.funds = message.funds.map(e => e ? Balance.toAmino(e) : undefined);
|
|
116
|
+
}
|
|
117
|
+
else {
|
|
118
|
+
obj.funds = message.funds;
|
|
119
|
+
}
|
|
120
|
+
if (message.deposits) {
|
|
121
|
+
obj.deposits = message.deposits.map(e => e ? Depositor.toAmino(e) : undefined);
|
|
122
|
+
}
|
|
123
|
+
else {
|
|
124
|
+
obj.deposits = message.deposits;
|
|
125
|
+
}
|
|
126
|
+
return obj;
|
|
127
|
+
},
|
|
128
|
+
fromAminoMsg(object) {
|
|
129
|
+
return AccountState.fromAmino(object.value);
|
|
130
|
+
},
|
|
131
|
+
fromProtoMsg(message) {
|
|
132
|
+
return AccountState.decode(message.value);
|
|
133
|
+
},
|
|
134
|
+
toProto(message) {
|
|
135
|
+
return AccountState.encode(message).finish();
|
|
136
|
+
},
|
|
137
|
+
toProtoMsg(message) {
|
|
138
|
+
return {
|
|
139
|
+
typeUrl: "/akash.escrow.types.v1.AccountState",
|
|
140
|
+
value: AccountState.encode(message).finish()
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
};
|
|
144
|
+
function createBaseAccount() {
|
|
145
|
+
return {
|
|
146
|
+
id: Account1.fromPartial({}),
|
|
147
|
+
state: AccountState.fromPartial({})
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* Account
|
|
152
|
+
* @name Account
|
|
153
|
+
* @package akash.escrow.types.v1
|
|
154
|
+
* @see proto type: akash.escrow.types.v1.Account
|
|
155
|
+
*/
|
|
156
|
+
export const Account = {
|
|
157
|
+
typeUrl: "/akash.escrow.types.v1.Account",
|
|
158
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
159
|
+
if (message.id !== undefined) {
|
|
160
|
+
Account1.encode(message.id, writer.uint32(10).fork()).ldelim();
|
|
161
|
+
}
|
|
162
|
+
if (message.state !== undefined) {
|
|
163
|
+
AccountState.encode(message.state, writer.uint32(18).fork()).ldelim();
|
|
164
|
+
}
|
|
165
|
+
return writer;
|
|
166
|
+
},
|
|
167
|
+
decode(input, length) {
|
|
168
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
169
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
170
|
+
const message = createBaseAccount();
|
|
171
|
+
while (reader.pos < end) {
|
|
172
|
+
const tag = reader.uint32();
|
|
173
|
+
switch (tag >>> 3) {
|
|
174
|
+
case 1:
|
|
175
|
+
message.id = Account1.decode(reader, reader.uint32());
|
|
176
|
+
break;
|
|
177
|
+
case 2:
|
|
178
|
+
message.state = AccountState.decode(reader, reader.uint32());
|
|
179
|
+
break;
|
|
180
|
+
default:
|
|
181
|
+
reader.skipType(tag & 7);
|
|
182
|
+
break;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
return message;
|
|
186
|
+
},
|
|
187
|
+
fromPartial(object) {
|
|
188
|
+
const message = createBaseAccount();
|
|
189
|
+
message.id = object.id !== undefined && object.id !== null ? Account1.fromPartial(object.id) : undefined;
|
|
190
|
+
message.state = object.state !== undefined && object.state !== null ? AccountState.fromPartial(object.state) : undefined;
|
|
191
|
+
return message;
|
|
192
|
+
},
|
|
193
|
+
fromAmino(object) {
|
|
194
|
+
const message = createBaseAccount();
|
|
195
|
+
if (object.id !== undefined && object.id !== null) {
|
|
196
|
+
message.id = Account1.fromAmino(object.id);
|
|
197
|
+
}
|
|
198
|
+
if (object.state !== undefined && object.state !== null) {
|
|
199
|
+
message.state = AccountState.fromAmino(object.state);
|
|
200
|
+
}
|
|
201
|
+
return message;
|
|
202
|
+
},
|
|
203
|
+
toAmino(message) {
|
|
204
|
+
const obj = {};
|
|
205
|
+
obj.id = message.id ? Account1.toAmino(message.id) : Account1.toAmino(Account1.fromPartial({}));
|
|
206
|
+
obj.state = message.state ? AccountState.toAmino(message.state) : AccountState.toAmino(AccountState.fromPartial({}));
|
|
207
|
+
return obj;
|
|
208
|
+
},
|
|
209
|
+
fromAminoMsg(object) {
|
|
210
|
+
return Account.fromAmino(object.value);
|
|
211
|
+
},
|
|
212
|
+
fromProtoMsg(message) {
|
|
213
|
+
return Account.decode(message.value);
|
|
214
|
+
},
|
|
215
|
+
toProto(message) {
|
|
216
|
+
return Account.encode(message).finish();
|
|
217
|
+
},
|
|
218
|
+
toProtoMsg(message) {
|
|
219
|
+
return {
|
|
220
|
+
typeUrl: "/akash.escrow.types.v1.Account",
|
|
221
|
+
value: Account.encode(message).finish()
|
|
222
|
+
};
|
|
223
|
+
}
|
|
224
|
+
};
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
//@ts-nocheck
|
|
2
|
+
import { BinaryReader, BinaryWriter } from "../../../../binary";
|
|
3
|
+
import { Decimal } from "@interchainjs/math";
|
|
4
|
+
function createBaseBalance() {
|
|
5
|
+
return {
|
|
6
|
+
denom: "",
|
|
7
|
+
amount: ""
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Balance holds the unspent coin received from all deposits with same denom
|
|
12
|
+
* DecCoin is not being used here as it does not support negative values,
|
|
13
|
+
* and balance may go negative if account is overdrawn.
|
|
14
|
+
* @name Balance
|
|
15
|
+
* @package akash.escrow.types.v1
|
|
16
|
+
* @see proto type: akash.escrow.types.v1.Balance
|
|
17
|
+
*/
|
|
18
|
+
export const Balance = {
|
|
19
|
+
typeUrl: "/akash.escrow.types.v1.Balance",
|
|
20
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
21
|
+
if (message.denom !== "") {
|
|
22
|
+
writer.uint32(10).string(message.denom);
|
|
23
|
+
}
|
|
24
|
+
if (message.amount !== "") {
|
|
25
|
+
writer.uint32(18).string(Decimal.fromUserInput(message.amount, 18).atomics);
|
|
26
|
+
}
|
|
27
|
+
return writer;
|
|
28
|
+
},
|
|
29
|
+
decode(input, length) {
|
|
30
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
31
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
32
|
+
const message = createBaseBalance();
|
|
33
|
+
while (reader.pos < end) {
|
|
34
|
+
const tag = reader.uint32();
|
|
35
|
+
switch (tag >>> 3) {
|
|
36
|
+
case 1:
|
|
37
|
+
message.denom = reader.string();
|
|
38
|
+
break;
|
|
39
|
+
case 2:
|
|
40
|
+
message.amount = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
41
|
+
break;
|
|
42
|
+
default:
|
|
43
|
+
reader.skipType(tag & 7);
|
|
44
|
+
break;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
return message;
|
|
48
|
+
},
|
|
49
|
+
fromPartial(object) {
|
|
50
|
+
const message = createBaseBalance();
|
|
51
|
+
message.denom = object.denom ?? "";
|
|
52
|
+
message.amount = object.amount ?? "";
|
|
53
|
+
return message;
|
|
54
|
+
},
|
|
55
|
+
fromAmino(object) {
|
|
56
|
+
const message = createBaseBalance();
|
|
57
|
+
if (object.denom !== undefined && object.denom !== null) {
|
|
58
|
+
message.denom = object.denom;
|
|
59
|
+
}
|
|
60
|
+
if (object.amount !== undefined && object.amount !== null) {
|
|
61
|
+
message.amount = object.amount;
|
|
62
|
+
}
|
|
63
|
+
return message;
|
|
64
|
+
},
|
|
65
|
+
toAmino(message) {
|
|
66
|
+
const obj = {};
|
|
67
|
+
obj.denom = message.denom === "" ? undefined : message.denom;
|
|
68
|
+
obj.amount = message.amount === "" ? undefined : message.amount;
|
|
69
|
+
return obj;
|
|
70
|
+
},
|
|
71
|
+
fromAminoMsg(object) {
|
|
72
|
+
return Balance.fromAmino(object.value);
|
|
73
|
+
},
|
|
74
|
+
fromProtoMsg(message) {
|
|
75
|
+
return Balance.decode(message.value);
|
|
76
|
+
},
|
|
77
|
+
toProto(message) {
|
|
78
|
+
return Balance.encode(message).finish();
|
|
79
|
+
},
|
|
80
|
+
toProtoMsg(message) {
|
|
81
|
+
return {
|
|
82
|
+
typeUrl: "/akash.escrow.types.v1.Balance",
|
|
83
|
+
value: Balance.encode(message).finish()
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
};
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { DecCoin } from "../../../../cosmos/base/v1beta1/coin";
|
|
2
|
+
import { BinaryReader, BinaryWriter } from "../../../../binary";
|
|
3
|
+
function createBaseDepositor() {
|
|
4
|
+
return {
|
|
5
|
+
owner: "",
|
|
6
|
+
height: BigInt(0),
|
|
7
|
+
source: 0,
|
|
8
|
+
balance: DecCoin.fromPartial({})
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Depositor stores state of a deposit.
|
|
13
|
+
* @name Depositor
|
|
14
|
+
* @package akash.escrow.types.v1
|
|
15
|
+
* @see proto type: akash.escrow.types.v1.Depositor
|
|
16
|
+
*/
|
|
17
|
+
export const Depositor = {
|
|
18
|
+
typeUrl: "/akash.escrow.types.v1.Depositor",
|
|
19
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
20
|
+
if (message.owner !== "") {
|
|
21
|
+
writer.uint32(10).string(message.owner);
|
|
22
|
+
}
|
|
23
|
+
if (message.height !== BigInt(0)) {
|
|
24
|
+
writer.uint32(16).int64(message.height);
|
|
25
|
+
}
|
|
26
|
+
if (message.source !== 0) {
|
|
27
|
+
writer.uint32(24).int32(message.source);
|
|
28
|
+
}
|
|
29
|
+
if (message.balance !== undefined) {
|
|
30
|
+
DecCoin.encode(message.balance, writer.uint32(34).fork()).ldelim();
|
|
31
|
+
}
|
|
32
|
+
return writer;
|
|
33
|
+
},
|
|
34
|
+
decode(input, length) {
|
|
35
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
36
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
37
|
+
const message = createBaseDepositor();
|
|
38
|
+
while (reader.pos < end) {
|
|
39
|
+
const tag = reader.uint32();
|
|
40
|
+
switch (tag >>> 3) {
|
|
41
|
+
case 1:
|
|
42
|
+
message.owner = reader.string();
|
|
43
|
+
break;
|
|
44
|
+
case 2:
|
|
45
|
+
message.height = reader.int64();
|
|
46
|
+
break;
|
|
47
|
+
case 3:
|
|
48
|
+
message.source = reader.int32();
|
|
49
|
+
break;
|
|
50
|
+
case 4:
|
|
51
|
+
message.balance = DecCoin.decode(reader, reader.uint32());
|
|
52
|
+
break;
|
|
53
|
+
default:
|
|
54
|
+
reader.skipType(tag & 7);
|
|
55
|
+
break;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
return message;
|
|
59
|
+
},
|
|
60
|
+
fromPartial(object) {
|
|
61
|
+
const message = createBaseDepositor();
|
|
62
|
+
message.owner = object.owner ?? "";
|
|
63
|
+
message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0);
|
|
64
|
+
message.source = object.source ?? 0;
|
|
65
|
+
message.balance = object.balance !== undefined && object.balance !== null ? DecCoin.fromPartial(object.balance) : undefined;
|
|
66
|
+
return message;
|
|
67
|
+
},
|
|
68
|
+
fromAmino(object) {
|
|
69
|
+
const message = createBaseDepositor();
|
|
70
|
+
if (object.owner !== undefined && object.owner !== null) {
|
|
71
|
+
message.owner = object.owner;
|
|
72
|
+
}
|
|
73
|
+
if (object.height !== undefined && object.height !== null) {
|
|
74
|
+
message.height = BigInt(object.height);
|
|
75
|
+
}
|
|
76
|
+
if (object.source !== undefined && object.source !== null) {
|
|
77
|
+
message.source = object.source;
|
|
78
|
+
}
|
|
79
|
+
if (object.balance !== undefined && object.balance !== null) {
|
|
80
|
+
message.balance = DecCoin.fromAmino(object.balance);
|
|
81
|
+
}
|
|
82
|
+
return message;
|
|
83
|
+
},
|
|
84
|
+
toAmino(message) {
|
|
85
|
+
const obj = {};
|
|
86
|
+
obj.owner = message.owner ?? "";
|
|
87
|
+
obj.height = message.height ? message.height?.toString() : "0";
|
|
88
|
+
obj.source = message.source ?? 0;
|
|
89
|
+
obj.balance = message.balance ? DecCoin.toAmino(message.balance) : DecCoin.toAmino(DecCoin.fromPartial({}));
|
|
90
|
+
return obj;
|
|
91
|
+
},
|
|
92
|
+
fromAminoMsg(object) {
|
|
93
|
+
return Depositor.fromAmino(object.value);
|
|
94
|
+
},
|
|
95
|
+
fromProtoMsg(message) {
|
|
96
|
+
return Depositor.decode(message.value);
|
|
97
|
+
},
|
|
98
|
+
toProto(message) {
|
|
99
|
+
return Depositor.encode(message).finish();
|
|
100
|
+
},
|
|
101
|
+
toProtoMsg(message) {
|
|
102
|
+
return {
|
|
103
|
+
typeUrl: "/akash.escrow.types.v1.Depositor",
|
|
104
|
+
value: Depositor.encode(message).finish()
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
};
|