@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
|
@@ -31,6 +31,11 @@ exports.AminoConverter = {
|
|
|
31
31
|
toAmino: leasemsg_1.MsgCloseLease.toAmino,
|
|
32
32
|
fromAmino: leasemsg_1.MsgCloseLease.fromAmino
|
|
33
33
|
},
|
|
34
|
+
"/akash.market.v1beta5.MsgLeaseStartReclaim": {
|
|
35
|
+
aminoType: "/akash.market.v1beta5.MsgLeaseStartReclaim",
|
|
36
|
+
toAmino: leasemsg_1.MsgLeaseStartReclaim.toAmino,
|
|
37
|
+
fromAmino: leasemsg_1.MsgLeaseStartReclaim.fromAmino
|
|
38
|
+
},
|
|
34
39
|
"/akash.market.v1beta5.MsgUpdateParams": {
|
|
35
40
|
aminoType: "/akash.market.v1beta5.MsgUpdateParams",
|
|
36
41
|
toAmino: paramsmsg_1.MsgUpdateParams.toAmino,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TelescopeGeneratedType } from "../../../types";
|
|
2
2
|
import { Registry } from "@cosmjs/proto-signing";
|
|
3
3
|
import { MsgCreateBid, MsgCloseBid } from "./bidmsg";
|
|
4
|
-
import { MsgWithdrawLease, MsgCreateLease, MsgCloseLease } from "./leasemsg";
|
|
4
|
+
import { MsgWithdrawLease, MsgCreateLease, MsgCloseLease, MsgLeaseStartReclaim } from "./leasemsg";
|
|
5
5
|
import { MsgUpdateParams } from "./paramsmsg";
|
|
6
6
|
export declare const registry: ReadonlyArray<[string, TelescopeGeneratedType<any, any, any>]>;
|
|
7
7
|
export declare const load: (protoRegistry: Registry) => void;
|
|
@@ -27,6 +27,10 @@ export declare const MessageComposer: {
|
|
|
27
27
|
typeUrl: string;
|
|
28
28
|
value: Uint8Array<ArrayBufferLike>;
|
|
29
29
|
};
|
|
30
|
+
leaseStartReclaim(value: MsgLeaseStartReclaim): {
|
|
31
|
+
typeUrl: string;
|
|
32
|
+
value: Uint8Array<ArrayBufferLike>;
|
|
33
|
+
};
|
|
30
34
|
updateParams(value: MsgUpdateParams): {
|
|
31
35
|
typeUrl: string;
|
|
32
36
|
value: Uint8Array<ArrayBufferLike>;
|
|
@@ -53,6 +57,10 @@ export declare const MessageComposer: {
|
|
|
53
57
|
typeUrl: string;
|
|
54
58
|
value: MsgCloseLease;
|
|
55
59
|
};
|
|
60
|
+
leaseStartReclaim(value: MsgLeaseStartReclaim): {
|
|
61
|
+
typeUrl: string;
|
|
62
|
+
value: MsgLeaseStartReclaim;
|
|
63
|
+
};
|
|
56
64
|
updateParams(value: MsgUpdateParams): {
|
|
57
65
|
typeUrl: string;
|
|
58
66
|
value: MsgUpdateParams;
|
|
@@ -79,6 +87,10 @@ export declare const MessageComposer: {
|
|
|
79
87
|
typeUrl: string;
|
|
80
88
|
value: MsgCloseLease;
|
|
81
89
|
};
|
|
90
|
+
leaseStartReclaim(value: MsgLeaseStartReclaim): {
|
|
91
|
+
typeUrl: string;
|
|
92
|
+
value: MsgLeaseStartReclaim;
|
|
93
|
+
};
|
|
82
94
|
updateParams(value: MsgUpdateParams): {
|
|
83
95
|
typeUrl: string;
|
|
84
96
|
value: MsgUpdateParams;
|
|
@@ -4,7 +4,7 @@ exports.MessageComposer = exports.load = exports.registry = void 0;
|
|
|
4
4
|
const bidmsg_1 = require("./bidmsg");
|
|
5
5
|
const leasemsg_1 = require("./leasemsg");
|
|
6
6
|
const paramsmsg_1 = require("./paramsmsg");
|
|
7
|
-
exports.registry = [["/akash.market.v1beta5.MsgCreateBid", bidmsg_1.MsgCreateBid], ["/akash.market.v1beta5.MsgCloseBid", bidmsg_1.MsgCloseBid], ["/akash.market.v1beta5.MsgWithdrawLease", leasemsg_1.MsgWithdrawLease], ["/akash.market.v1beta5.MsgCreateLease", leasemsg_1.MsgCreateLease], ["/akash.market.v1beta5.MsgCloseLease", leasemsg_1.MsgCloseLease], ["/akash.market.v1beta5.MsgUpdateParams", paramsmsg_1.MsgUpdateParams]];
|
|
7
|
+
exports.registry = [["/akash.market.v1beta5.MsgCreateBid", bidmsg_1.MsgCreateBid], ["/akash.market.v1beta5.MsgCloseBid", bidmsg_1.MsgCloseBid], ["/akash.market.v1beta5.MsgWithdrawLease", leasemsg_1.MsgWithdrawLease], ["/akash.market.v1beta5.MsgCreateLease", leasemsg_1.MsgCreateLease], ["/akash.market.v1beta5.MsgCloseLease", leasemsg_1.MsgCloseLease], ["/akash.market.v1beta5.MsgLeaseStartReclaim", leasemsg_1.MsgLeaseStartReclaim], ["/akash.market.v1beta5.MsgUpdateParams", paramsmsg_1.MsgUpdateParams]];
|
|
8
8
|
const load = (protoRegistry) => {
|
|
9
9
|
exports.registry.forEach(([typeUrl, mod]) => {
|
|
10
10
|
protoRegistry.register(typeUrl, mod);
|
|
@@ -43,6 +43,12 @@ exports.MessageComposer = {
|
|
|
43
43
|
value: leasemsg_1.MsgCloseLease.encode(value).finish()
|
|
44
44
|
};
|
|
45
45
|
},
|
|
46
|
+
leaseStartReclaim(value) {
|
|
47
|
+
return {
|
|
48
|
+
typeUrl: "/akash.market.v1beta5.MsgLeaseStartReclaim",
|
|
49
|
+
value: leasemsg_1.MsgLeaseStartReclaim.encode(value).finish()
|
|
50
|
+
};
|
|
51
|
+
},
|
|
46
52
|
updateParams(value) {
|
|
47
53
|
return {
|
|
48
54
|
typeUrl: "/akash.market.v1beta5.MsgUpdateParams",
|
|
@@ -81,6 +87,12 @@ exports.MessageComposer = {
|
|
|
81
87
|
value
|
|
82
88
|
};
|
|
83
89
|
},
|
|
90
|
+
leaseStartReclaim(value) {
|
|
91
|
+
return {
|
|
92
|
+
typeUrl: "/akash.market.v1beta5.MsgLeaseStartReclaim",
|
|
93
|
+
value
|
|
94
|
+
};
|
|
95
|
+
},
|
|
84
96
|
updateParams(value) {
|
|
85
97
|
return {
|
|
86
98
|
typeUrl: "/akash.market.v1beta5.MsgUpdateParams",
|
|
@@ -119,6 +131,12 @@ exports.MessageComposer = {
|
|
|
119
131
|
value: leasemsg_1.MsgCloseLease.fromPartial(value)
|
|
120
132
|
};
|
|
121
133
|
},
|
|
134
|
+
leaseStartReclaim(value) {
|
|
135
|
+
return {
|
|
136
|
+
typeUrl: "/akash.market.v1beta5.MsgLeaseStartReclaim",
|
|
137
|
+
value: leasemsg_1.MsgLeaseStartReclaim.fromPartial(value)
|
|
138
|
+
};
|
|
139
|
+
},
|
|
122
140
|
updateParams(value) {
|
|
123
141
|
return {
|
|
124
142
|
typeUrl: "/akash.market.v1beta5.MsgUpdateParams",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TxRpc } from "../../../types";
|
|
2
2
|
import { MsgCreateBid, MsgCreateBidResponse, MsgCloseBid, MsgCloseBidResponse } from "./bidmsg";
|
|
3
|
-
import { MsgWithdrawLease, MsgWithdrawLeaseResponse, MsgCreateLease, MsgCreateLeaseResponse, MsgCloseLease, MsgCloseLeaseResponse } from "./leasemsg";
|
|
3
|
+
import { MsgWithdrawLease, MsgWithdrawLeaseResponse, MsgCreateLease, MsgCreateLeaseResponse, MsgCloseLease, MsgCloseLeaseResponse, MsgLeaseStartReclaim, MsgLeaseStartReclaimResponse } from "./leasemsg";
|
|
4
4
|
import { MsgUpdateParams, MsgUpdateParamsResponse } from "./paramsmsg";
|
|
5
5
|
/** Msg defines the market Msg service. */
|
|
6
6
|
export interface Msg {
|
|
@@ -14,6 +14,8 @@ export interface Msg {
|
|
|
14
14
|
createLease(request: MsgCreateLease): Promise<MsgCreateLeaseResponse>;
|
|
15
15
|
/** CloseLease defines a method to close an order given proper inputs. */
|
|
16
16
|
closeLease(request: MsgCloseLease): Promise<MsgCloseLeaseResponse>;
|
|
17
|
+
/** LeaseStartReclaim initiates the reclamation window on an active lease. */
|
|
18
|
+
leaseStartReclaim(request: MsgLeaseStartReclaim): Promise<MsgLeaseStartReclaimResponse>;
|
|
17
19
|
/**
|
|
18
20
|
* UpdateParams defines a governance operation for updating the x/market module
|
|
19
21
|
* parameters. The authority is hard-coded to the x/gov module account.
|
|
@@ -30,6 +32,7 @@ export declare class MsgClientImpl implements Msg {
|
|
|
30
32
|
withdrawLease: (request: MsgWithdrawLease) => Promise<MsgWithdrawLeaseResponse>;
|
|
31
33
|
createLease: (request: MsgCreateLease) => Promise<MsgCreateLeaseResponse>;
|
|
32
34
|
closeLease: (request: MsgCloseLease) => Promise<MsgCloseLeaseResponse>;
|
|
35
|
+
leaseStartReclaim: (request: MsgLeaseStartReclaim) => Promise<MsgLeaseStartReclaimResponse>;
|
|
33
36
|
updateParams: (request: MsgUpdateParams) => Promise<MsgUpdateParamsResponse>;
|
|
34
37
|
}
|
|
35
38
|
export declare const createClientImpl: (rpc: TxRpc) => MsgClientImpl;
|
|
@@ -40,6 +40,12 @@ class MsgClientImpl {
|
|
|
40
40
|
const promise = this.rpc.request("akash.market.v1beta5.Msg", "CloseLease", data);
|
|
41
41
|
return promise.then(data => leasemsg_1.MsgCloseLeaseResponse.decode(new binary_1.BinaryReader(data)));
|
|
42
42
|
};
|
|
43
|
+
/* LeaseStartReclaim initiates the reclamation window on an active lease. */
|
|
44
|
+
leaseStartReclaim = async (request) => {
|
|
45
|
+
const data = leasemsg_1.MsgLeaseStartReclaim.encode(request).finish();
|
|
46
|
+
const promise = this.rpc.request("akash.market.v1beta5.Msg", "LeaseStartReclaim", data);
|
|
47
|
+
return promise.then(data => leasemsg_1.MsgLeaseStartReclaimResponse.decode(new binary_1.BinaryReader(data)));
|
|
48
|
+
};
|
|
43
49
|
/* UpdateParams defines a governance operation for updating the x/market module
|
|
44
50
|
parameters. The authority is hard-coded to the x/gov module account.
|
|
45
51
|
|
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
import { DecCoin, DecCoinAmino } from "../../../cosmos/base/v1beta1/coin";
|
|
2
|
+
import { ResourceOffer, ResourceOfferAmino } from "./resourcesoffer";
|
|
3
|
+
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
4
|
+
import { DeepPartial } from "../../../helpers";
|
|
5
|
+
/** BidState is an enum which refers to state of bid. */
|
|
6
|
+
export declare enum Bid_State {
|
|
7
|
+
/** invalid - Prefix should start with 0 in enum. So declaring dummy state. */
|
|
8
|
+
invalid = 0,
|
|
9
|
+
/** open - BidOpen denotes state for bid open. */
|
|
10
|
+
open = 1,
|
|
11
|
+
/** active - BidMatched denotes state for bid open. */
|
|
12
|
+
active = 2,
|
|
13
|
+
/** lost - BidLost denotes state for bid lost. */
|
|
14
|
+
lost = 3,
|
|
15
|
+
/** closed - BidClosed denotes state for bid closed. */
|
|
16
|
+
closed = 4,
|
|
17
|
+
UNRECOGNIZED = -1
|
|
18
|
+
}
|
|
19
|
+
export declare const Bid_StateAmino: typeof Bid_State;
|
|
20
|
+
export declare function bid_StateFromJSON(object: any): Bid_State;
|
|
21
|
+
export declare function bid_StateToJSON(object: Bid_State): string;
|
|
22
|
+
/**
|
|
23
|
+
* BidID stores owner and all other seq numbers.
|
|
24
|
+
* A successful bid becomes a Lease(ID).
|
|
25
|
+
* @name BidID
|
|
26
|
+
* @package akash.market.v2beta1
|
|
27
|
+
* @see proto type: akash.market.v2beta1.BidID
|
|
28
|
+
*/
|
|
29
|
+
export interface BidID {
|
|
30
|
+
/**
|
|
31
|
+
* Owner is the account bech32 address of the user who owns the deployment.
|
|
32
|
+
* It is a string representing a valid bech32 account address.
|
|
33
|
+
*
|
|
34
|
+
* Example:
|
|
35
|
+
* "akash1..."
|
|
36
|
+
*/
|
|
37
|
+
owner: string;
|
|
38
|
+
/**
|
|
39
|
+
* Dseq (deployment sequence number) is a unique numeric identifier for the deployment.
|
|
40
|
+
* It is used to differentiate deployments created by the same owner.
|
|
41
|
+
*/
|
|
42
|
+
dseq: bigint;
|
|
43
|
+
/**
|
|
44
|
+
* Gseq (group sequence number) is a unique numeric identifier for the group.
|
|
45
|
+
* It is used to differentiate groups created by the same owner in a deployment.
|
|
46
|
+
*/
|
|
47
|
+
gseq: number;
|
|
48
|
+
/**
|
|
49
|
+
* Oseq (order sequence) distinguishes multiple orders associated with a single deployment.
|
|
50
|
+
* Oseq is incremented when a lease associated with an existing deployment is closed, and a new order is generated.
|
|
51
|
+
*/
|
|
52
|
+
oseq: number;
|
|
53
|
+
/**
|
|
54
|
+
* Provider is the account bech32 address of the provider making the bid.
|
|
55
|
+
* It is a string representing a valid account bech32 address.
|
|
56
|
+
*
|
|
57
|
+
* Example:
|
|
58
|
+
* "akash1..."
|
|
59
|
+
*/
|
|
60
|
+
provider: string;
|
|
61
|
+
/**
|
|
62
|
+
* BSeq (bid sequence) distinguishes multiple bids associated with a single deployment from same provider.
|
|
63
|
+
*/
|
|
64
|
+
bseq: number;
|
|
65
|
+
}
|
|
66
|
+
export interface BidIDProtoMsg {
|
|
67
|
+
typeUrl: "/akash.market.v2beta1.BidID";
|
|
68
|
+
value: Uint8Array;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* BidID stores owner and all other seq numbers.
|
|
72
|
+
* A successful bid becomes a Lease(ID).
|
|
73
|
+
* @name BidIDAmino
|
|
74
|
+
* @package akash.market.v2beta1
|
|
75
|
+
* @see proto type: akash.market.v2beta1.BidID
|
|
76
|
+
*/
|
|
77
|
+
export interface BidIDAmino {
|
|
78
|
+
/**
|
|
79
|
+
* Owner is the account bech32 address of the user who owns the deployment.
|
|
80
|
+
* It is a string representing a valid bech32 account address.
|
|
81
|
+
*
|
|
82
|
+
* Example:
|
|
83
|
+
* "akash1..."
|
|
84
|
+
*/
|
|
85
|
+
owner: string;
|
|
86
|
+
/**
|
|
87
|
+
* Dseq (deployment sequence number) is a unique numeric identifier for the deployment.
|
|
88
|
+
* It is used to differentiate deployments created by the same owner.
|
|
89
|
+
*/
|
|
90
|
+
dseq: string;
|
|
91
|
+
/**
|
|
92
|
+
* Gseq (group sequence number) is a unique numeric identifier for the group.
|
|
93
|
+
* It is used to differentiate groups created by the same owner in a deployment.
|
|
94
|
+
*/
|
|
95
|
+
gseq: number;
|
|
96
|
+
/**
|
|
97
|
+
* Oseq (order sequence) distinguishes multiple orders associated with a single deployment.
|
|
98
|
+
* Oseq is incremented when a lease associated with an existing deployment is closed, and a new order is generated.
|
|
99
|
+
*/
|
|
100
|
+
oseq: number;
|
|
101
|
+
/**
|
|
102
|
+
* Provider is the account bech32 address of the provider making the bid.
|
|
103
|
+
* It is a string representing a valid account bech32 address.
|
|
104
|
+
*
|
|
105
|
+
* Example:
|
|
106
|
+
* "akash1..."
|
|
107
|
+
*/
|
|
108
|
+
provider: string;
|
|
109
|
+
/**
|
|
110
|
+
* BSeq (bid sequence) distinguishes multiple bids associated with a single deployment from same provider.
|
|
111
|
+
*/
|
|
112
|
+
bseq: number;
|
|
113
|
+
}
|
|
114
|
+
export interface BidIDAminoMsg {
|
|
115
|
+
type: "/akash.market.v2beta1.BidID";
|
|
116
|
+
value: BidIDAmino;
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* Bid stores BidID, state of bid and price.
|
|
120
|
+
* @name Bid
|
|
121
|
+
* @package akash.market.v2beta1
|
|
122
|
+
* @see proto type: akash.market.v2beta1.Bid
|
|
123
|
+
*/
|
|
124
|
+
export interface Bid {
|
|
125
|
+
/**
|
|
126
|
+
* BidID stores owner and all other seq numbers.
|
|
127
|
+
* A successful bid becomes a Lease(ID).
|
|
128
|
+
*/
|
|
129
|
+
id: BidID;
|
|
130
|
+
/**
|
|
131
|
+
* State represents the state of the Bid.
|
|
132
|
+
*/
|
|
133
|
+
state: Bid_State;
|
|
134
|
+
/**
|
|
135
|
+
* Price holds the pricing stated on the Bid.
|
|
136
|
+
*/
|
|
137
|
+
prices: DecCoin[];
|
|
138
|
+
/**
|
|
139
|
+
* CreatedAt is the block height at which the Bid was created.
|
|
140
|
+
*/
|
|
141
|
+
createdAt: bigint;
|
|
142
|
+
/**
|
|
143
|
+
* ResourceOffer is a list of offers.
|
|
144
|
+
*/
|
|
145
|
+
resourcesOffer: ResourceOffer[];
|
|
146
|
+
}
|
|
147
|
+
export interface BidProtoMsg {
|
|
148
|
+
typeUrl: "/akash.market.v2beta1.Bid";
|
|
149
|
+
value: Uint8Array;
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Bid stores BidID, state of bid and price.
|
|
153
|
+
* @name BidAmino
|
|
154
|
+
* @package akash.market.v2beta1
|
|
155
|
+
* @see proto type: akash.market.v2beta1.Bid
|
|
156
|
+
*/
|
|
157
|
+
export interface BidAmino {
|
|
158
|
+
/**
|
|
159
|
+
* BidID stores owner and all other seq numbers.
|
|
160
|
+
* A successful bid becomes a Lease(ID).
|
|
161
|
+
*/
|
|
162
|
+
id: BidIDAmino;
|
|
163
|
+
/**
|
|
164
|
+
* State represents the state of the Bid.
|
|
165
|
+
*/
|
|
166
|
+
state: Bid_State;
|
|
167
|
+
/**
|
|
168
|
+
* Price holds the pricing stated on the Bid.
|
|
169
|
+
*/
|
|
170
|
+
prices: DecCoinAmino[];
|
|
171
|
+
/**
|
|
172
|
+
* CreatedAt is the block height at which the Bid was created.
|
|
173
|
+
*/
|
|
174
|
+
created_at: string;
|
|
175
|
+
/**
|
|
176
|
+
* ResourceOffer is a list of offers.
|
|
177
|
+
*/
|
|
178
|
+
resources_offer: ResourceOfferAmino[];
|
|
179
|
+
}
|
|
180
|
+
export interface BidAminoMsg {
|
|
181
|
+
type: "/akash.market.v2beta1.Bid";
|
|
182
|
+
value: BidAmino;
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
* BidID stores owner and all other seq numbers.
|
|
186
|
+
* A successful bid becomes a Lease(ID).
|
|
187
|
+
* @name BidID
|
|
188
|
+
* @package akash.market.v2beta1
|
|
189
|
+
* @see proto type: akash.market.v2beta1.BidID
|
|
190
|
+
*/
|
|
191
|
+
export declare const BidID: {
|
|
192
|
+
typeUrl: string;
|
|
193
|
+
encode(message: BidID, writer?: BinaryWriter): BinaryWriter;
|
|
194
|
+
decode(input: BinaryReader | Uint8Array, length?: number): BidID;
|
|
195
|
+
fromPartial(object: DeepPartial<BidID>): BidID;
|
|
196
|
+
fromAmino(object: BidIDAmino): BidID;
|
|
197
|
+
toAmino(message: BidID): BidIDAmino;
|
|
198
|
+
fromAminoMsg(object: BidIDAminoMsg): BidID;
|
|
199
|
+
fromProtoMsg(message: BidIDProtoMsg): BidID;
|
|
200
|
+
toProto(message: BidID): Uint8Array;
|
|
201
|
+
toProtoMsg(message: BidID): BidIDProtoMsg;
|
|
202
|
+
};
|
|
203
|
+
/**
|
|
204
|
+
* Bid stores BidID, state of bid and price.
|
|
205
|
+
* @name Bid
|
|
206
|
+
* @package akash.market.v2beta1
|
|
207
|
+
* @see proto type: akash.market.v2beta1.Bid
|
|
208
|
+
*/
|
|
209
|
+
export declare const Bid: {
|
|
210
|
+
typeUrl: string;
|
|
211
|
+
encode(message: Bid, writer?: BinaryWriter): BinaryWriter;
|
|
212
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Bid;
|
|
213
|
+
fromPartial(object: DeepPartial<Bid>): Bid;
|
|
214
|
+
fromAmino(object: BidAmino): Bid;
|
|
215
|
+
toAmino(message: Bid): BidAmino;
|
|
216
|
+
fromAminoMsg(object: BidAminoMsg): Bid;
|
|
217
|
+
fromProtoMsg(message: BidProtoMsg): Bid;
|
|
218
|
+
toProto(message: Bid): Uint8Array;
|
|
219
|
+
toProtoMsg(message: Bid): BidProtoMsg;
|
|
220
|
+
};
|
|
@@ -0,0 +1,318 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Bid = exports.BidID = exports.Bid_StateAmino = exports.Bid_State = void 0;
|
|
4
|
+
exports.bid_StateFromJSON = bid_StateFromJSON;
|
|
5
|
+
exports.bid_StateToJSON = bid_StateToJSON;
|
|
6
|
+
//@ts-nocheck
|
|
7
|
+
const coin_1 = require("../../../cosmos/base/v1beta1/coin");
|
|
8
|
+
const resourcesoffer_1 = require("./resourcesoffer");
|
|
9
|
+
const binary_1 = require("../../../binary");
|
|
10
|
+
/** BidState is an enum which refers to state of bid. */
|
|
11
|
+
var Bid_State;
|
|
12
|
+
(function (Bid_State) {
|
|
13
|
+
/** invalid - Prefix should start with 0 in enum. So declaring dummy state. */
|
|
14
|
+
Bid_State[Bid_State["invalid"] = 0] = "invalid";
|
|
15
|
+
/** open - BidOpen denotes state for bid open. */
|
|
16
|
+
Bid_State[Bid_State["open"] = 1] = "open";
|
|
17
|
+
/** active - BidMatched denotes state for bid open. */
|
|
18
|
+
Bid_State[Bid_State["active"] = 2] = "active";
|
|
19
|
+
/** lost - BidLost denotes state for bid lost. */
|
|
20
|
+
Bid_State[Bid_State["lost"] = 3] = "lost";
|
|
21
|
+
/** closed - BidClosed denotes state for bid closed. */
|
|
22
|
+
Bid_State[Bid_State["closed"] = 4] = "closed";
|
|
23
|
+
Bid_State[Bid_State["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
24
|
+
})(Bid_State || (exports.Bid_State = Bid_State = {}));
|
|
25
|
+
exports.Bid_StateAmino = Bid_State;
|
|
26
|
+
function bid_StateFromJSON(object) {
|
|
27
|
+
switch (object) {
|
|
28
|
+
case 0:
|
|
29
|
+
case "invalid":
|
|
30
|
+
return Bid_State.invalid;
|
|
31
|
+
case 1:
|
|
32
|
+
case "open":
|
|
33
|
+
return Bid_State.open;
|
|
34
|
+
case 2:
|
|
35
|
+
case "active":
|
|
36
|
+
return Bid_State.active;
|
|
37
|
+
case 3:
|
|
38
|
+
case "lost":
|
|
39
|
+
return Bid_State.lost;
|
|
40
|
+
case 4:
|
|
41
|
+
case "closed":
|
|
42
|
+
return Bid_State.closed;
|
|
43
|
+
case -1:
|
|
44
|
+
case "UNRECOGNIZED":
|
|
45
|
+
default:
|
|
46
|
+
return Bid_State.UNRECOGNIZED;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
function bid_StateToJSON(object) {
|
|
50
|
+
switch (object) {
|
|
51
|
+
case Bid_State.invalid:
|
|
52
|
+
return "invalid";
|
|
53
|
+
case Bid_State.open:
|
|
54
|
+
return "open";
|
|
55
|
+
case Bid_State.active:
|
|
56
|
+
return "active";
|
|
57
|
+
case Bid_State.lost:
|
|
58
|
+
return "lost";
|
|
59
|
+
case Bid_State.closed:
|
|
60
|
+
return "closed";
|
|
61
|
+
case Bid_State.UNRECOGNIZED:
|
|
62
|
+
default:
|
|
63
|
+
return "UNRECOGNIZED";
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
function createBaseBidID() {
|
|
67
|
+
return {
|
|
68
|
+
owner: "",
|
|
69
|
+
dseq: BigInt(0),
|
|
70
|
+
gseq: 0,
|
|
71
|
+
oseq: 0,
|
|
72
|
+
provider: "",
|
|
73
|
+
bseq: 0
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* BidID stores owner and all other seq numbers.
|
|
78
|
+
* A successful bid becomes a Lease(ID).
|
|
79
|
+
* @name BidID
|
|
80
|
+
* @package akash.market.v2beta1
|
|
81
|
+
* @see proto type: akash.market.v2beta1.BidID
|
|
82
|
+
*/
|
|
83
|
+
exports.BidID = {
|
|
84
|
+
typeUrl: "/akash.market.v2beta1.BidID",
|
|
85
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
86
|
+
if (message.owner !== "") {
|
|
87
|
+
writer.uint32(10).string(message.owner);
|
|
88
|
+
}
|
|
89
|
+
if (message.dseq !== BigInt(0)) {
|
|
90
|
+
writer.uint32(16).uint64(message.dseq);
|
|
91
|
+
}
|
|
92
|
+
if (message.gseq !== 0) {
|
|
93
|
+
writer.uint32(24).uint32(message.gseq);
|
|
94
|
+
}
|
|
95
|
+
if (message.oseq !== 0) {
|
|
96
|
+
writer.uint32(32).uint32(message.oseq);
|
|
97
|
+
}
|
|
98
|
+
if (message.provider !== "") {
|
|
99
|
+
writer.uint32(42).string(message.provider);
|
|
100
|
+
}
|
|
101
|
+
if (message.bseq !== 0) {
|
|
102
|
+
writer.uint32(48).uint32(message.bseq);
|
|
103
|
+
}
|
|
104
|
+
return writer;
|
|
105
|
+
},
|
|
106
|
+
decode(input, length) {
|
|
107
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
108
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
109
|
+
const message = createBaseBidID();
|
|
110
|
+
while (reader.pos < end) {
|
|
111
|
+
const tag = reader.uint32();
|
|
112
|
+
switch (tag >>> 3) {
|
|
113
|
+
case 1:
|
|
114
|
+
message.owner = reader.string();
|
|
115
|
+
break;
|
|
116
|
+
case 2:
|
|
117
|
+
message.dseq = reader.uint64();
|
|
118
|
+
break;
|
|
119
|
+
case 3:
|
|
120
|
+
message.gseq = reader.uint32();
|
|
121
|
+
break;
|
|
122
|
+
case 4:
|
|
123
|
+
message.oseq = reader.uint32();
|
|
124
|
+
break;
|
|
125
|
+
case 5:
|
|
126
|
+
message.provider = reader.string();
|
|
127
|
+
break;
|
|
128
|
+
case 6:
|
|
129
|
+
message.bseq = reader.uint32();
|
|
130
|
+
break;
|
|
131
|
+
default:
|
|
132
|
+
reader.skipType(tag & 7);
|
|
133
|
+
break;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
return message;
|
|
137
|
+
},
|
|
138
|
+
fromPartial(object) {
|
|
139
|
+
const message = createBaseBidID();
|
|
140
|
+
message.owner = object.owner ?? "";
|
|
141
|
+
message.dseq = object.dseq !== undefined && object.dseq !== null ? BigInt(object.dseq.toString()) : BigInt(0);
|
|
142
|
+
message.gseq = object.gseq ?? 0;
|
|
143
|
+
message.oseq = object.oseq ?? 0;
|
|
144
|
+
message.provider = object.provider ?? "";
|
|
145
|
+
message.bseq = object.bseq ?? 0;
|
|
146
|
+
return message;
|
|
147
|
+
},
|
|
148
|
+
fromAmino(object) {
|
|
149
|
+
const message = createBaseBidID();
|
|
150
|
+
if (object.owner !== undefined && object.owner !== null) {
|
|
151
|
+
message.owner = object.owner;
|
|
152
|
+
}
|
|
153
|
+
if (object.dseq !== undefined && object.dseq !== null) {
|
|
154
|
+
message.dseq = BigInt(object.dseq);
|
|
155
|
+
}
|
|
156
|
+
if (object.gseq !== undefined && object.gseq !== null) {
|
|
157
|
+
message.gseq = object.gseq;
|
|
158
|
+
}
|
|
159
|
+
if (object.oseq !== undefined && object.oseq !== null) {
|
|
160
|
+
message.oseq = object.oseq;
|
|
161
|
+
}
|
|
162
|
+
if (object.provider !== undefined && object.provider !== null) {
|
|
163
|
+
message.provider = object.provider;
|
|
164
|
+
}
|
|
165
|
+
if (object.bseq !== undefined && object.bseq !== null) {
|
|
166
|
+
message.bseq = object.bseq;
|
|
167
|
+
}
|
|
168
|
+
return message;
|
|
169
|
+
},
|
|
170
|
+
toAmino(message) {
|
|
171
|
+
const obj = {};
|
|
172
|
+
obj.owner = message.owner ?? "";
|
|
173
|
+
obj.dseq = message.dseq ? message.dseq?.toString() : "0";
|
|
174
|
+
obj.gseq = message.gseq ?? 0;
|
|
175
|
+
obj.oseq = message.oseq ?? 0;
|
|
176
|
+
obj.provider = message.provider ?? "";
|
|
177
|
+
obj.bseq = message.bseq ?? 0;
|
|
178
|
+
return obj;
|
|
179
|
+
},
|
|
180
|
+
fromAminoMsg(object) {
|
|
181
|
+
return exports.BidID.fromAmino(object.value);
|
|
182
|
+
},
|
|
183
|
+
fromProtoMsg(message) {
|
|
184
|
+
return exports.BidID.decode(message.value);
|
|
185
|
+
},
|
|
186
|
+
toProto(message) {
|
|
187
|
+
return exports.BidID.encode(message).finish();
|
|
188
|
+
},
|
|
189
|
+
toProtoMsg(message) {
|
|
190
|
+
return {
|
|
191
|
+
typeUrl: "/akash.market.v2beta1.BidID",
|
|
192
|
+
value: exports.BidID.encode(message).finish()
|
|
193
|
+
};
|
|
194
|
+
}
|
|
195
|
+
};
|
|
196
|
+
function createBaseBid() {
|
|
197
|
+
return {
|
|
198
|
+
id: exports.BidID.fromPartial({}),
|
|
199
|
+
state: 0,
|
|
200
|
+
prices: [],
|
|
201
|
+
createdAt: BigInt(0),
|
|
202
|
+
resourcesOffer: []
|
|
203
|
+
};
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
* Bid stores BidID, state of bid and price.
|
|
207
|
+
* @name Bid
|
|
208
|
+
* @package akash.market.v2beta1
|
|
209
|
+
* @see proto type: akash.market.v2beta1.Bid
|
|
210
|
+
*/
|
|
211
|
+
exports.Bid = {
|
|
212
|
+
typeUrl: "/akash.market.v2beta1.Bid",
|
|
213
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
214
|
+
if (message.id !== undefined) {
|
|
215
|
+
exports.BidID.encode(message.id, writer.uint32(10).fork()).ldelim();
|
|
216
|
+
}
|
|
217
|
+
if (message.state !== 0) {
|
|
218
|
+
writer.uint32(16).int32(message.state);
|
|
219
|
+
}
|
|
220
|
+
for (const v of message.prices) {
|
|
221
|
+
coin_1.DecCoin.encode(v, writer.uint32(26).fork()).ldelim();
|
|
222
|
+
}
|
|
223
|
+
if (message.createdAt !== BigInt(0)) {
|
|
224
|
+
writer.uint32(32).int64(message.createdAt);
|
|
225
|
+
}
|
|
226
|
+
for (const v of message.resourcesOffer) {
|
|
227
|
+
resourcesoffer_1.ResourceOffer.encode(v, writer.uint32(42).fork()).ldelim();
|
|
228
|
+
}
|
|
229
|
+
return writer;
|
|
230
|
+
},
|
|
231
|
+
decode(input, length) {
|
|
232
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
233
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
234
|
+
const message = createBaseBid();
|
|
235
|
+
while (reader.pos < end) {
|
|
236
|
+
const tag = reader.uint32();
|
|
237
|
+
switch (tag >>> 3) {
|
|
238
|
+
case 1:
|
|
239
|
+
message.id = exports.BidID.decode(reader, reader.uint32());
|
|
240
|
+
break;
|
|
241
|
+
case 2:
|
|
242
|
+
message.state = reader.int32();
|
|
243
|
+
break;
|
|
244
|
+
case 3:
|
|
245
|
+
message.prices.push(coin_1.DecCoin.decode(reader, reader.uint32()));
|
|
246
|
+
break;
|
|
247
|
+
case 4:
|
|
248
|
+
message.createdAt = reader.int64();
|
|
249
|
+
break;
|
|
250
|
+
case 5:
|
|
251
|
+
message.resourcesOffer.push(resourcesoffer_1.ResourceOffer.decode(reader, reader.uint32()));
|
|
252
|
+
break;
|
|
253
|
+
default:
|
|
254
|
+
reader.skipType(tag & 7);
|
|
255
|
+
break;
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
return message;
|
|
259
|
+
},
|
|
260
|
+
fromPartial(object) {
|
|
261
|
+
const message = createBaseBid();
|
|
262
|
+
message.id = object.id !== undefined && object.id !== null ? exports.BidID.fromPartial(object.id) : undefined;
|
|
263
|
+
message.state = object.state ?? 0;
|
|
264
|
+
message.prices = object.prices?.map(e => coin_1.DecCoin.fromPartial(e)) || [];
|
|
265
|
+
message.createdAt = object.createdAt !== undefined && object.createdAt !== null ? BigInt(object.createdAt.toString()) : BigInt(0);
|
|
266
|
+
message.resourcesOffer = object.resourcesOffer?.map(e => resourcesoffer_1.ResourceOffer.fromPartial(e)) || [];
|
|
267
|
+
return message;
|
|
268
|
+
},
|
|
269
|
+
fromAmino(object) {
|
|
270
|
+
const message = createBaseBid();
|
|
271
|
+
if (object.id !== undefined && object.id !== null) {
|
|
272
|
+
message.id = exports.BidID.fromAmino(object.id);
|
|
273
|
+
}
|
|
274
|
+
if (object.state !== undefined && object.state !== null) {
|
|
275
|
+
message.state = object.state;
|
|
276
|
+
}
|
|
277
|
+
message.prices = object.prices?.map(e => coin_1.DecCoin.fromAmino(e)) || [];
|
|
278
|
+
if (object.created_at !== undefined && object.created_at !== null) {
|
|
279
|
+
message.createdAt = BigInt(object.created_at);
|
|
280
|
+
}
|
|
281
|
+
message.resourcesOffer = object.resources_offer?.map(e => resourcesoffer_1.ResourceOffer.fromAmino(e)) || [];
|
|
282
|
+
return message;
|
|
283
|
+
},
|
|
284
|
+
toAmino(message) {
|
|
285
|
+
const obj = {};
|
|
286
|
+
obj.id = message.id ? exports.BidID.toAmino(message.id) : exports.BidID.toAmino(exports.BidID.fromPartial({}));
|
|
287
|
+
obj.state = message.state ?? 0;
|
|
288
|
+
if (message.prices) {
|
|
289
|
+
obj.prices = message.prices.map(e => e ? coin_1.DecCoin.toAmino(e) : undefined);
|
|
290
|
+
}
|
|
291
|
+
else {
|
|
292
|
+
obj.prices = message.prices;
|
|
293
|
+
}
|
|
294
|
+
obj.created_at = message.createdAt ? message.createdAt?.toString() : "0";
|
|
295
|
+
if (message.resourcesOffer) {
|
|
296
|
+
obj.resources_offer = message.resourcesOffer.map(e => e ? resourcesoffer_1.ResourceOffer.toAmino(e) : undefined);
|
|
297
|
+
}
|
|
298
|
+
else {
|
|
299
|
+
obj.resources_offer = message.resourcesOffer;
|
|
300
|
+
}
|
|
301
|
+
return obj;
|
|
302
|
+
},
|
|
303
|
+
fromAminoMsg(object) {
|
|
304
|
+
return exports.Bid.fromAmino(object.value);
|
|
305
|
+
},
|
|
306
|
+
fromProtoMsg(message) {
|
|
307
|
+
return exports.Bid.decode(message.value);
|
|
308
|
+
},
|
|
309
|
+
toProto(message) {
|
|
310
|
+
return exports.Bid.encode(message).finish();
|
|
311
|
+
},
|
|
312
|
+
toProtoMsg(message) {
|
|
313
|
+
return {
|
|
314
|
+
typeUrl: "/akash.market.v2beta1.Bid",
|
|
315
|
+
value: exports.Bid.encode(message).finish()
|
|
316
|
+
};
|
|
317
|
+
}
|
|
318
|
+
};
|