@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,213 @@
|
|
|
1
|
+
import { DecCoin, Coin } from "../../../../cosmos/base/v1beta1/coin";
|
|
2
|
+
import { Payment as Payment1 } from "../../id/v1/id";
|
|
3
|
+
import { BinaryReader, BinaryWriter } from "../../../../binary";
|
|
4
|
+
function createBasePaymentState() {
|
|
5
|
+
return {
|
|
6
|
+
owner: "",
|
|
7
|
+
state: 0,
|
|
8
|
+
rate: DecCoin.fromPartial({}),
|
|
9
|
+
balance: DecCoin.fromPartial({}),
|
|
10
|
+
unsettled: DecCoin.fromPartial({}),
|
|
11
|
+
withdrawn: Coin.fromPartial({})
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Payment stores state for a payment.
|
|
16
|
+
* @name PaymentState
|
|
17
|
+
* @package akash.escrow.types.v1
|
|
18
|
+
* @see proto type: akash.escrow.types.v1.PaymentState
|
|
19
|
+
*/
|
|
20
|
+
export const PaymentState = {
|
|
21
|
+
typeUrl: "/akash.escrow.types.v1.PaymentState",
|
|
22
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
23
|
+
if (message.owner !== "") {
|
|
24
|
+
writer.uint32(10).string(message.owner);
|
|
25
|
+
}
|
|
26
|
+
if (message.state !== 0) {
|
|
27
|
+
writer.uint32(16).int32(message.state);
|
|
28
|
+
}
|
|
29
|
+
if (message.rate !== undefined) {
|
|
30
|
+
DecCoin.encode(message.rate, writer.uint32(26).fork()).ldelim();
|
|
31
|
+
}
|
|
32
|
+
if (message.balance !== undefined) {
|
|
33
|
+
DecCoin.encode(message.balance, writer.uint32(34).fork()).ldelim();
|
|
34
|
+
}
|
|
35
|
+
if (message.unsettled !== undefined) {
|
|
36
|
+
DecCoin.encode(message.unsettled, writer.uint32(42).fork()).ldelim();
|
|
37
|
+
}
|
|
38
|
+
if (message.withdrawn !== undefined) {
|
|
39
|
+
Coin.encode(message.withdrawn, writer.uint32(50).fork()).ldelim();
|
|
40
|
+
}
|
|
41
|
+
return writer;
|
|
42
|
+
},
|
|
43
|
+
decode(input, length) {
|
|
44
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
45
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
46
|
+
const message = createBasePaymentState();
|
|
47
|
+
while (reader.pos < end) {
|
|
48
|
+
const tag = reader.uint32();
|
|
49
|
+
switch (tag >>> 3) {
|
|
50
|
+
case 1:
|
|
51
|
+
message.owner = reader.string();
|
|
52
|
+
break;
|
|
53
|
+
case 2:
|
|
54
|
+
message.state = reader.int32();
|
|
55
|
+
break;
|
|
56
|
+
case 3:
|
|
57
|
+
message.rate = DecCoin.decode(reader, reader.uint32());
|
|
58
|
+
break;
|
|
59
|
+
case 4:
|
|
60
|
+
message.balance = DecCoin.decode(reader, reader.uint32());
|
|
61
|
+
break;
|
|
62
|
+
case 5:
|
|
63
|
+
message.unsettled = DecCoin.decode(reader, reader.uint32());
|
|
64
|
+
break;
|
|
65
|
+
case 6:
|
|
66
|
+
message.withdrawn = Coin.decode(reader, reader.uint32());
|
|
67
|
+
break;
|
|
68
|
+
default:
|
|
69
|
+
reader.skipType(tag & 7);
|
|
70
|
+
break;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
return message;
|
|
74
|
+
},
|
|
75
|
+
fromPartial(object) {
|
|
76
|
+
const message = createBasePaymentState();
|
|
77
|
+
message.owner = object.owner ?? "";
|
|
78
|
+
message.state = object.state ?? 0;
|
|
79
|
+
message.rate = object.rate !== undefined && object.rate !== null ? DecCoin.fromPartial(object.rate) : undefined;
|
|
80
|
+
message.balance = object.balance !== undefined && object.balance !== null ? DecCoin.fromPartial(object.balance) : undefined;
|
|
81
|
+
message.unsettled = object.unsettled !== undefined && object.unsettled !== null ? DecCoin.fromPartial(object.unsettled) : undefined;
|
|
82
|
+
message.withdrawn = object.withdrawn !== undefined && object.withdrawn !== null ? Coin.fromPartial(object.withdrawn) : undefined;
|
|
83
|
+
return message;
|
|
84
|
+
},
|
|
85
|
+
fromAmino(object) {
|
|
86
|
+
const message = createBasePaymentState();
|
|
87
|
+
if (object.owner !== undefined && object.owner !== null) {
|
|
88
|
+
message.owner = object.owner;
|
|
89
|
+
}
|
|
90
|
+
if (object.state !== undefined && object.state !== null) {
|
|
91
|
+
message.state = object.state;
|
|
92
|
+
}
|
|
93
|
+
if (object.rate !== undefined && object.rate !== null) {
|
|
94
|
+
message.rate = DecCoin.fromAmino(object.rate);
|
|
95
|
+
}
|
|
96
|
+
if (object.balance !== undefined && object.balance !== null) {
|
|
97
|
+
message.balance = DecCoin.fromAmino(object.balance);
|
|
98
|
+
}
|
|
99
|
+
if (object.unsettled !== undefined && object.unsettled !== null) {
|
|
100
|
+
message.unsettled = DecCoin.fromAmino(object.unsettled);
|
|
101
|
+
}
|
|
102
|
+
if (object.withdrawn !== undefined && object.withdrawn !== null) {
|
|
103
|
+
message.withdrawn = Coin.fromAmino(object.withdrawn);
|
|
104
|
+
}
|
|
105
|
+
return message;
|
|
106
|
+
},
|
|
107
|
+
toAmino(message) {
|
|
108
|
+
const obj = {};
|
|
109
|
+
obj.owner = message.owner ?? "";
|
|
110
|
+
obj.state = message.state ?? 0;
|
|
111
|
+
obj.rate = message.rate ? DecCoin.toAmino(message.rate) : DecCoin.toAmino(DecCoin.fromPartial({}));
|
|
112
|
+
obj.balance = message.balance ? DecCoin.toAmino(message.balance) : DecCoin.toAmino(DecCoin.fromPartial({}));
|
|
113
|
+
obj.unsettled = message.unsettled ? DecCoin.toAmino(message.unsettled) : DecCoin.toAmino(DecCoin.fromPartial({}));
|
|
114
|
+
obj.withdrawn = message.withdrawn ? Coin.toAmino(message.withdrawn) : Coin.toAmino(Coin.fromPartial({}));
|
|
115
|
+
return obj;
|
|
116
|
+
},
|
|
117
|
+
fromAminoMsg(object) {
|
|
118
|
+
return PaymentState.fromAmino(object.value);
|
|
119
|
+
},
|
|
120
|
+
fromProtoMsg(message) {
|
|
121
|
+
return PaymentState.decode(message.value);
|
|
122
|
+
},
|
|
123
|
+
toProto(message) {
|
|
124
|
+
return PaymentState.encode(message).finish();
|
|
125
|
+
},
|
|
126
|
+
toProtoMsg(message) {
|
|
127
|
+
return {
|
|
128
|
+
typeUrl: "/akash.escrow.types.v1.PaymentState",
|
|
129
|
+
value: PaymentState.encode(message).finish()
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
};
|
|
133
|
+
function createBasePayment() {
|
|
134
|
+
return {
|
|
135
|
+
id: Payment1.fromPartial({}),
|
|
136
|
+
state: PaymentState.fromPartial({})
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* Payment
|
|
141
|
+
* @name Payment
|
|
142
|
+
* @package akash.escrow.types.v1
|
|
143
|
+
* @see proto type: akash.escrow.types.v1.Payment
|
|
144
|
+
*/
|
|
145
|
+
export const Payment = {
|
|
146
|
+
typeUrl: "/akash.escrow.types.v1.Payment",
|
|
147
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
148
|
+
if (message.id !== undefined) {
|
|
149
|
+
Payment1.encode(message.id, writer.uint32(10).fork()).ldelim();
|
|
150
|
+
}
|
|
151
|
+
if (message.state !== undefined) {
|
|
152
|
+
PaymentState.encode(message.state, writer.uint32(18).fork()).ldelim();
|
|
153
|
+
}
|
|
154
|
+
return writer;
|
|
155
|
+
},
|
|
156
|
+
decode(input, length) {
|
|
157
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
158
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
159
|
+
const message = createBasePayment();
|
|
160
|
+
while (reader.pos < end) {
|
|
161
|
+
const tag = reader.uint32();
|
|
162
|
+
switch (tag >>> 3) {
|
|
163
|
+
case 1:
|
|
164
|
+
message.id = Payment1.decode(reader, reader.uint32());
|
|
165
|
+
break;
|
|
166
|
+
case 2:
|
|
167
|
+
message.state = PaymentState.decode(reader, reader.uint32());
|
|
168
|
+
break;
|
|
169
|
+
default:
|
|
170
|
+
reader.skipType(tag & 7);
|
|
171
|
+
break;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
return message;
|
|
175
|
+
},
|
|
176
|
+
fromPartial(object) {
|
|
177
|
+
const message = createBasePayment();
|
|
178
|
+
message.id = object.id !== undefined && object.id !== null ? Payment1.fromPartial(object.id) : undefined;
|
|
179
|
+
message.state = object.state !== undefined && object.state !== null ? PaymentState.fromPartial(object.state) : undefined;
|
|
180
|
+
return message;
|
|
181
|
+
},
|
|
182
|
+
fromAmino(object) {
|
|
183
|
+
const message = createBasePayment();
|
|
184
|
+
if (object.id !== undefined && object.id !== null) {
|
|
185
|
+
message.id = Payment1.fromAmino(object.id);
|
|
186
|
+
}
|
|
187
|
+
if (object.state !== undefined && object.state !== null) {
|
|
188
|
+
message.state = PaymentState.fromAmino(object.state);
|
|
189
|
+
}
|
|
190
|
+
return message;
|
|
191
|
+
},
|
|
192
|
+
toAmino(message) {
|
|
193
|
+
const obj = {};
|
|
194
|
+
obj.id = message.id ? Payment1.toAmino(message.id) : Payment1.toAmino(Payment1.fromPartial({}));
|
|
195
|
+
obj.state = message.state ? PaymentState.toAmino(message.state) : PaymentState.toAmino(PaymentState.fromPartial({}));
|
|
196
|
+
return obj;
|
|
197
|
+
},
|
|
198
|
+
fromAminoMsg(object) {
|
|
199
|
+
return Payment.fromAmino(object.value);
|
|
200
|
+
},
|
|
201
|
+
fromProtoMsg(message) {
|
|
202
|
+
return Payment.decode(message.value);
|
|
203
|
+
},
|
|
204
|
+
toProto(message) {
|
|
205
|
+
return Payment.encode(message).finish();
|
|
206
|
+
},
|
|
207
|
+
toProtoMsg(message) {
|
|
208
|
+
return {
|
|
209
|
+
typeUrl: "/akash.escrow.types.v1.Payment",
|
|
210
|
+
value: Payment.encode(message).finish()
|
|
211
|
+
};
|
|
212
|
+
}
|
|
213
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
//@ts-nocheck
|
|
2
|
+
/** State stores state for an escrow account. */
|
|
3
|
+
export var State;
|
|
4
|
+
(function (State) {
|
|
5
|
+
/** invalid - AccountStateInvalid is an invalid state. */
|
|
6
|
+
State[State["invalid"] = 0] = "invalid";
|
|
7
|
+
/** open - StateOpen is the state when an object is open. */
|
|
8
|
+
State[State["open"] = 1] = "open";
|
|
9
|
+
/** closed - StateClosed is the state when an object is closed. */
|
|
10
|
+
State[State["closed"] = 2] = "closed";
|
|
11
|
+
/** overdrawn - StateOverdrawn is the state when an object are overdrawn. */
|
|
12
|
+
State[State["overdrawn"] = 3] = "overdrawn";
|
|
13
|
+
State[State["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
14
|
+
})(State || (State = {}));
|
|
15
|
+
export const StateAmino = State;
|
|
16
|
+
export function stateFromJSON(object) {
|
|
17
|
+
switch (object) {
|
|
18
|
+
case 0:
|
|
19
|
+
case "invalid":
|
|
20
|
+
return State.invalid;
|
|
21
|
+
case 1:
|
|
22
|
+
case "open":
|
|
23
|
+
return State.open;
|
|
24
|
+
case 2:
|
|
25
|
+
case "closed":
|
|
26
|
+
return State.closed;
|
|
27
|
+
case 3:
|
|
28
|
+
case "overdrawn":
|
|
29
|
+
return State.overdrawn;
|
|
30
|
+
case -1:
|
|
31
|
+
case "UNRECOGNIZED":
|
|
32
|
+
default:
|
|
33
|
+
return State.UNRECOGNIZED;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
export function stateToJSON(object) {
|
|
37
|
+
switch (object) {
|
|
38
|
+
case State.invalid:
|
|
39
|
+
return "invalid";
|
|
40
|
+
case State.open:
|
|
41
|
+
return "open";
|
|
42
|
+
case State.closed:
|
|
43
|
+
return "closed";
|
|
44
|
+
case State.overdrawn:
|
|
45
|
+
return "overdrawn";
|
|
46
|
+
case State.UNRECOGNIZED:
|
|
47
|
+
default:
|
|
48
|
+
return "UNRECOGNIZED";
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
//@ts-nocheck
|
|
2
|
+
import { Coin } from "../../../cosmos/base/v1beta1/coin";
|
|
3
|
+
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
4
|
+
/**
|
|
5
|
+
* Scope defines the types of deposit operations that can be authorized.
|
|
6
|
+
* This enum is used to restrict the authorization to specific deposit contexts,
|
|
7
|
+
* allowing fine-grained permission control within the authz system.
|
|
8
|
+
*/
|
|
9
|
+
export var DepositAuthorization_Scope;
|
|
10
|
+
(function (DepositAuthorization_Scope) {
|
|
11
|
+
/** invalid - Prefix should start with 0 in enum. So declaring dummy state. */
|
|
12
|
+
DepositAuthorization_Scope[DepositAuthorization_Scope["invalid"] = 0] = "invalid";
|
|
13
|
+
/** deployment - DepositScopeDeployment allows deposits for deployment-related operations. */
|
|
14
|
+
DepositAuthorization_Scope[DepositAuthorization_Scope["deployment"] = 1] = "deployment";
|
|
15
|
+
/** bid - DepositScopeBid allows deposits for bid-related operations. */
|
|
16
|
+
DepositAuthorization_Scope[DepositAuthorization_Scope["bid"] = 2] = "bid";
|
|
17
|
+
DepositAuthorization_Scope[DepositAuthorization_Scope["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
18
|
+
})(DepositAuthorization_Scope || (DepositAuthorization_Scope = {}));
|
|
19
|
+
export const DepositAuthorization_ScopeAmino = DepositAuthorization_Scope;
|
|
20
|
+
export function depositAuthorization_ScopeFromJSON(object) {
|
|
21
|
+
switch (object) {
|
|
22
|
+
case 0:
|
|
23
|
+
case "invalid":
|
|
24
|
+
return DepositAuthorization_Scope.invalid;
|
|
25
|
+
case 1:
|
|
26
|
+
case "deployment":
|
|
27
|
+
return DepositAuthorization_Scope.deployment;
|
|
28
|
+
case 2:
|
|
29
|
+
case "bid":
|
|
30
|
+
return DepositAuthorization_Scope.bid;
|
|
31
|
+
case -1:
|
|
32
|
+
case "UNRECOGNIZED":
|
|
33
|
+
default:
|
|
34
|
+
return DepositAuthorization_Scope.UNRECOGNIZED;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
export function depositAuthorization_ScopeToJSON(object) {
|
|
38
|
+
switch (object) {
|
|
39
|
+
case DepositAuthorization_Scope.invalid:
|
|
40
|
+
return "invalid";
|
|
41
|
+
case DepositAuthorization_Scope.deployment:
|
|
42
|
+
return "deployment";
|
|
43
|
+
case DepositAuthorization_Scope.bid:
|
|
44
|
+
return "bid";
|
|
45
|
+
case DepositAuthorization_Scope.UNRECOGNIZED:
|
|
46
|
+
default:
|
|
47
|
+
return "UNRECOGNIZED";
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
function createBaseDepositAuthorization() {
|
|
51
|
+
return {
|
|
52
|
+
spendLimit: Coin.fromPartial({}),
|
|
53
|
+
scopes: [],
|
|
54
|
+
spendLimits: []
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* DepositAuthorization allows the grantee to deposit up to spend_limit coins from
|
|
59
|
+
* the granter's account for Akash deployments and bids. This authorization is used
|
|
60
|
+
* within the Cosmos SDK authz module to grant scoped permissions for deposit operations.
|
|
61
|
+
* The authorization can be restricted to specific scopes (deployment or bid) to limit
|
|
62
|
+
* what types of deposits the grantee is authorized to make on behalf of the granter.
|
|
63
|
+
* @name DepositAuthorization
|
|
64
|
+
* @package akash.escrow.v1
|
|
65
|
+
* @see proto type: akash.escrow.v1.DepositAuthorization
|
|
66
|
+
*/
|
|
67
|
+
export const DepositAuthorization = {
|
|
68
|
+
typeUrl: "/akash.escrow.v1.DepositAuthorization",
|
|
69
|
+
aminoType: "akash/DepositAuthorization",
|
|
70
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
71
|
+
if (message.spendLimit !== undefined) {
|
|
72
|
+
Coin.encode(message.spendLimit, writer.uint32(10).fork()).ldelim();
|
|
73
|
+
}
|
|
74
|
+
writer.uint32(18).fork();
|
|
75
|
+
for (const v of message.scopes) {
|
|
76
|
+
writer.int32(v);
|
|
77
|
+
}
|
|
78
|
+
writer.ldelim();
|
|
79
|
+
for (const v of message.spendLimits) {
|
|
80
|
+
Coin.encode(v, writer.uint32(26).fork()).ldelim();
|
|
81
|
+
}
|
|
82
|
+
return writer;
|
|
83
|
+
},
|
|
84
|
+
decode(input, length) {
|
|
85
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
86
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
87
|
+
const message = createBaseDepositAuthorization();
|
|
88
|
+
while (reader.pos < end) {
|
|
89
|
+
const tag = reader.uint32();
|
|
90
|
+
switch (tag >>> 3) {
|
|
91
|
+
case 1:
|
|
92
|
+
message.spendLimit = Coin.decode(reader, reader.uint32());
|
|
93
|
+
break;
|
|
94
|
+
case 2:
|
|
95
|
+
if ((tag & 7) === 2) {
|
|
96
|
+
const end2 = reader.uint32() + reader.pos;
|
|
97
|
+
while (reader.pos < end2) {
|
|
98
|
+
message.scopes.push(reader.int32());
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
else {
|
|
102
|
+
message.scopes.push(reader.int32());
|
|
103
|
+
}
|
|
104
|
+
break;
|
|
105
|
+
case 3:
|
|
106
|
+
message.spendLimits.push(Coin.decode(reader, reader.uint32()));
|
|
107
|
+
break;
|
|
108
|
+
default:
|
|
109
|
+
reader.skipType(tag & 7);
|
|
110
|
+
break;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
return message;
|
|
114
|
+
},
|
|
115
|
+
fromPartial(object) {
|
|
116
|
+
const message = createBaseDepositAuthorization();
|
|
117
|
+
message.spendLimit = object.spendLimit !== undefined && object.spendLimit !== null ? Coin.fromPartial(object.spendLimit) : undefined;
|
|
118
|
+
message.scopes = object.scopes?.map(e => e) || [];
|
|
119
|
+
message.spendLimits = object.spendLimits?.map(e => Coin.fromPartial(e)) || [];
|
|
120
|
+
return message;
|
|
121
|
+
},
|
|
122
|
+
fromAmino(object) {
|
|
123
|
+
const message = createBaseDepositAuthorization();
|
|
124
|
+
if (object.spend_limit !== undefined && object.spend_limit !== null) {
|
|
125
|
+
message.spendLimit = Coin.fromAmino(object.spend_limit);
|
|
126
|
+
}
|
|
127
|
+
message.scopes = object.scopes?.map(e => e) || [];
|
|
128
|
+
message.spendLimits = object.spend_limits?.map(e => Coin.fromAmino(e)) || [];
|
|
129
|
+
return message;
|
|
130
|
+
},
|
|
131
|
+
toAmino(message) {
|
|
132
|
+
const obj = {};
|
|
133
|
+
obj.spend_limit = message.spendLimit ? Coin.toAmino(message.spendLimit) : Coin.toAmino(Coin.fromPartial({}));
|
|
134
|
+
if (message.scopes) {
|
|
135
|
+
obj.scopes = message.scopes.map(e => e);
|
|
136
|
+
}
|
|
137
|
+
else {
|
|
138
|
+
obj.scopes = message.scopes;
|
|
139
|
+
}
|
|
140
|
+
if (message.spendLimits) {
|
|
141
|
+
obj.spend_limits = message.spendLimits.map(e => e ? Coin.toAmino(e) : undefined);
|
|
142
|
+
}
|
|
143
|
+
else {
|
|
144
|
+
obj.spend_limits = message.spendLimits;
|
|
145
|
+
}
|
|
146
|
+
return obj;
|
|
147
|
+
},
|
|
148
|
+
fromAminoMsg(object) {
|
|
149
|
+
return DepositAuthorization.fromAmino(object.value);
|
|
150
|
+
},
|
|
151
|
+
toAminoMsg(message) {
|
|
152
|
+
return {
|
|
153
|
+
type: "akash/DepositAuthorization",
|
|
154
|
+
value: DepositAuthorization.toAmino(message)
|
|
155
|
+
};
|
|
156
|
+
},
|
|
157
|
+
fromProtoMsg(message) {
|
|
158
|
+
return DepositAuthorization.decode(message.value);
|
|
159
|
+
},
|
|
160
|
+
toProto(message) {
|
|
161
|
+
return DepositAuthorization.encode(message).finish();
|
|
162
|
+
},
|
|
163
|
+
toProtoMsg(message) {
|
|
164
|
+
return {
|
|
165
|
+
typeUrl: "/akash.escrow.v1.DepositAuthorization",
|
|
166
|
+
value: DepositAuthorization.encode(message).finish()
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
//@ts-nocheck
|
|
2
|
-
import { Account } from "
|
|
3
|
-
import {
|
|
2
|
+
import { Account } from "../types/v1/account";
|
|
3
|
+
import { Payment } from "../types/v1/payment";
|
|
4
4
|
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
5
5
|
function createBaseGenesisState() {
|
|
6
6
|
return {
|
|
@@ -21,7 +21,7 @@ export const GenesisState = {
|
|
|
21
21
|
Account.encode(v, writer.uint32(10).fork()).ldelim();
|
|
22
22
|
}
|
|
23
23
|
for (const v of message.payments) {
|
|
24
|
-
|
|
24
|
+
Payment.encode(v, writer.uint32(18).fork()).ldelim();
|
|
25
25
|
}
|
|
26
26
|
return writer;
|
|
27
27
|
},
|
|
@@ -36,7 +36,7 @@ export const GenesisState = {
|
|
|
36
36
|
message.accounts.push(Account.decode(reader, reader.uint32()));
|
|
37
37
|
break;
|
|
38
38
|
case 2:
|
|
39
|
-
message.payments.push(
|
|
39
|
+
message.payments.push(Payment.decode(reader, reader.uint32()));
|
|
40
40
|
break;
|
|
41
41
|
default:
|
|
42
42
|
reader.skipType(tag & 7);
|
|
@@ -48,13 +48,13 @@ export const GenesisState = {
|
|
|
48
48
|
fromPartial(object) {
|
|
49
49
|
const message = createBaseGenesisState();
|
|
50
50
|
message.accounts = object.accounts?.map(e => Account.fromPartial(e)) || [];
|
|
51
|
-
message.payments = object.payments?.map(e =>
|
|
51
|
+
message.payments = object.payments?.map(e => Payment.fromPartial(e)) || [];
|
|
52
52
|
return message;
|
|
53
53
|
},
|
|
54
54
|
fromAmino(object) {
|
|
55
55
|
const message = createBaseGenesisState();
|
|
56
56
|
message.accounts = object.accounts?.map(e => Account.fromAmino(e)) || [];
|
|
57
|
-
message.payments = object.payments?.map(e =>
|
|
57
|
+
message.payments = object.payments?.map(e => Payment.fromAmino(e)) || [];
|
|
58
58
|
return message;
|
|
59
59
|
},
|
|
60
60
|
toAmino(message) {
|
|
@@ -66,7 +66,7 @@ export const GenesisState = {
|
|
|
66
66
|
obj.accounts = message.accounts;
|
|
67
67
|
}
|
|
68
68
|
if (message.payments) {
|
|
69
|
-
obj.payments = message.payments.map(e => e ?
|
|
69
|
+
obj.payments = message.payments.map(e => e ? Payment.toAmino(e) : undefined);
|
|
70
70
|
}
|
|
71
71
|
else {
|
|
72
72
|
obj.payments = message.payments;
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
//@ts-nocheck
|
|
2
|
+
import { Account } from "../id/v1/id";
|
|
3
|
+
import { Deposit } from "../../base/deposit/v1/deposit";
|
|
4
|
+
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
5
|
+
function createBaseMsgAccountDeposit() {
|
|
6
|
+
return {
|
|
7
|
+
signer: "",
|
|
8
|
+
id: Account.fromPartial({}),
|
|
9
|
+
deposit: Deposit.fromPartial({})
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* MsgAccountDeposit represents a message to deposit funds into an existing escrow account
|
|
14
|
+
* on the blockchain. This is part of the interaction mechanism for managing
|
|
15
|
+
* deployment-related resources.
|
|
16
|
+
* @name MsgAccountDeposit
|
|
17
|
+
* @package akash.escrow.v1
|
|
18
|
+
* @see proto type: akash.escrow.v1.MsgAccountDeposit
|
|
19
|
+
*/
|
|
20
|
+
export const MsgAccountDeposit = {
|
|
21
|
+
typeUrl: "/akash.escrow.v1.MsgAccountDeposit",
|
|
22
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
23
|
+
if (message.signer !== "") {
|
|
24
|
+
writer.uint32(10).string(message.signer);
|
|
25
|
+
}
|
|
26
|
+
if (message.id !== undefined) {
|
|
27
|
+
Account.encode(message.id, writer.uint32(18).fork()).ldelim();
|
|
28
|
+
}
|
|
29
|
+
if (message.deposit !== undefined) {
|
|
30
|
+
Deposit.encode(message.deposit, writer.uint32(26).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 = createBaseMsgAccountDeposit();
|
|
38
|
+
while (reader.pos < end) {
|
|
39
|
+
const tag = reader.uint32();
|
|
40
|
+
switch (tag >>> 3) {
|
|
41
|
+
case 1:
|
|
42
|
+
message.signer = reader.string();
|
|
43
|
+
break;
|
|
44
|
+
case 2:
|
|
45
|
+
message.id = Account.decode(reader, reader.uint32());
|
|
46
|
+
break;
|
|
47
|
+
case 3:
|
|
48
|
+
message.deposit = Deposit.decode(reader, reader.uint32());
|
|
49
|
+
break;
|
|
50
|
+
default:
|
|
51
|
+
reader.skipType(tag & 7);
|
|
52
|
+
break;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
return message;
|
|
56
|
+
},
|
|
57
|
+
fromPartial(object) {
|
|
58
|
+
const message = createBaseMsgAccountDeposit();
|
|
59
|
+
message.signer = object.signer ?? "";
|
|
60
|
+
message.id = object.id !== undefined && object.id !== null ? Account.fromPartial(object.id) : undefined;
|
|
61
|
+
message.deposit = object.deposit !== undefined && object.deposit !== null ? Deposit.fromPartial(object.deposit) : undefined;
|
|
62
|
+
return message;
|
|
63
|
+
},
|
|
64
|
+
fromAmino(object) {
|
|
65
|
+
const message = createBaseMsgAccountDeposit();
|
|
66
|
+
if (object.signer !== undefined && object.signer !== null) {
|
|
67
|
+
message.signer = object.signer;
|
|
68
|
+
}
|
|
69
|
+
if (object.id !== undefined && object.id !== null) {
|
|
70
|
+
message.id = Account.fromAmino(object.id);
|
|
71
|
+
}
|
|
72
|
+
if (object.deposit !== undefined && object.deposit !== null) {
|
|
73
|
+
message.deposit = Deposit.fromAmino(object.deposit);
|
|
74
|
+
}
|
|
75
|
+
return message;
|
|
76
|
+
},
|
|
77
|
+
toAmino(message) {
|
|
78
|
+
const obj = {};
|
|
79
|
+
obj.signer = message.signer ?? "";
|
|
80
|
+
obj.id = message.id ? Account.toAmino(message.id) : Account.toAmino(Account.fromPartial({}));
|
|
81
|
+
obj.deposit = message.deposit ? Deposit.toAmino(message.deposit) : Deposit.toAmino(Deposit.fromPartial({}));
|
|
82
|
+
return obj;
|
|
83
|
+
},
|
|
84
|
+
fromAminoMsg(object) {
|
|
85
|
+
return MsgAccountDeposit.fromAmino(object.value);
|
|
86
|
+
},
|
|
87
|
+
fromProtoMsg(message) {
|
|
88
|
+
return MsgAccountDeposit.decode(message.value);
|
|
89
|
+
},
|
|
90
|
+
toProto(message) {
|
|
91
|
+
return MsgAccountDeposit.encode(message).finish();
|
|
92
|
+
},
|
|
93
|
+
toProtoMsg(message) {
|
|
94
|
+
return {
|
|
95
|
+
typeUrl: "/akash.escrow.v1.MsgAccountDeposit",
|
|
96
|
+
value: MsgAccountDeposit.encode(message).finish()
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
function createBaseMsgAccountDepositResponse() {
|
|
101
|
+
return {};
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* MsgAccountDepositResponse defines response type for the MsgDeposit.
|
|
105
|
+
* @name MsgAccountDepositResponse
|
|
106
|
+
* @package akash.escrow.v1
|
|
107
|
+
* @see proto type: akash.escrow.v1.MsgAccountDepositResponse
|
|
108
|
+
*/
|
|
109
|
+
export const MsgAccountDepositResponse = {
|
|
110
|
+
typeUrl: "/akash.escrow.v1.MsgAccountDepositResponse",
|
|
111
|
+
encode(_, writer = BinaryWriter.create()) {
|
|
112
|
+
return writer;
|
|
113
|
+
},
|
|
114
|
+
decode(input, length) {
|
|
115
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
116
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
117
|
+
const message = createBaseMsgAccountDepositResponse();
|
|
118
|
+
while (reader.pos < end) {
|
|
119
|
+
const tag = reader.uint32();
|
|
120
|
+
switch (tag >>> 3) {
|
|
121
|
+
default:
|
|
122
|
+
reader.skipType(tag & 7);
|
|
123
|
+
break;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
return message;
|
|
127
|
+
},
|
|
128
|
+
fromPartial(_) {
|
|
129
|
+
const message = createBaseMsgAccountDepositResponse();
|
|
130
|
+
return message;
|
|
131
|
+
},
|
|
132
|
+
fromAmino(_) {
|
|
133
|
+
const message = createBaseMsgAccountDepositResponse();
|
|
134
|
+
return message;
|
|
135
|
+
},
|
|
136
|
+
toAmino(_) {
|
|
137
|
+
const obj = {};
|
|
138
|
+
return obj;
|
|
139
|
+
},
|
|
140
|
+
fromAminoMsg(object) {
|
|
141
|
+
return MsgAccountDepositResponse.fromAmino(object.value);
|
|
142
|
+
},
|
|
143
|
+
fromProtoMsg(message) {
|
|
144
|
+
return MsgAccountDepositResponse.decode(message.value);
|
|
145
|
+
},
|
|
146
|
+
toProto(message) {
|
|
147
|
+
return MsgAccountDepositResponse.encode(message).finish();
|
|
148
|
+
},
|
|
149
|
+
toProtoMsg(message) {
|
|
150
|
+
return {
|
|
151
|
+
typeUrl: "/akash.escrow.v1.MsgAccountDepositResponse",
|
|
152
|
+
value: MsgAccountDepositResponse.encode(message).finish()
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
};
|