@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,555 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.QueryPricesResponse = exports.QueryPricesRequest = exports.QueryAggregatedPriceResponse = exports.QueryAggregatedPriceRequest = exports.QueryParamsResponse = exports.QueryParamsRequest = exports.PricesFilter = void 0;
|
|
4
|
+
//@ts-nocheck
|
|
5
|
+
const timestamp_1 = require("../../../google/protobuf/timestamp");
|
|
6
|
+
const params_1 = require("./params");
|
|
7
|
+
const prices_1 = require("./prices");
|
|
8
|
+
const pagination_1 = require("../../../cosmos/base/query/v1beta1/pagination");
|
|
9
|
+
const binary_1 = require("../../../binary");
|
|
10
|
+
const helpers_1 = require("../../../helpers");
|
|
11
|
+
function createBasePricesFilter() {
|
|
12
|
+
return {
|
|
13
|
+
assetDenom: "",
|
|
14
|
+
baseDenom: "",
|
|
15
|
+
startTime: new Date(),
|
|
16
|
+
endTime: new Date()
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* PricesFilter defines filters used to query price data
|
|
21
|
+
* @name PricesFilter
|
|
22
|
+
* @package akash.oracle.v2
|
|
23
|
+
* @see proto type: akash.oracle.v2.PricesFilter
|
|
24
|
+
*/
|
|
25
|
+
exports.PricesFilter = {
|
|
26
|
+
typeUrl: "/akash.oracle.v2.PricesFilter",
|
|
27
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
28
|
+
if (message.assetDenom !== "") {
|
|
29
|
+
writer.uint32(10).string(message.assetDenom);
|
|
30
|
+
}
|
|
31
|
+
if (message.baseDenom !== "") {
|
|
32
|
+
writer.uint32(18).string(message.baseDenom);
|
|
33
|
+
}
|
|
34
|
+
if (message.startTime !== undefined) {
|
|
35
|
+
timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.startTime), writer.uint32(26).fork()).ldelim();
|
|
36
|
+
}
|
|
37
|
+
if (message.endTime !== undefined) {
|
|
38
|
+
timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.endTime), writer.uint32(34).fork()).ldelim();
|
|
39
|
+
}
|
|
40
|
+
return writer;
|
|
41
|
+
},
|
|
42
|
+
decode(input, length) {
|
|
43
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
44
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
45
|
+
const message = createBasePricesFilter();
|
|
46
|
+
while (reader.pos < end) {
|
|
47
|
+
const tag = reader.uint32();
|
|
48
|
+
switch (tag >>> 3) {
|
|
49
|
+
case 1:
|
|
50
|
+
message.assetDenom = reader.string();
|
|
51
|
+
break;
|
|
52
|
+
case 2:
|
|
53
|
+
message.baseDenom = reader.string();
|
|
54
|
+
break;
|
|
55
|
+
case 3:
|
|
56
|
+
message.startTime = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
57
|
+
break;
|
|
58
|
+
case 4:
|
|
59
|
+
message.endTime = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
60
|
+
break;
|
|
61
|
+
default:
|
|
62
|
+
reader.skipType(tag & 7);
|
|
63
|
+
break;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
return message;
|
|
67
|
+
},
|
|
68
|
+
fromPartial(object) {
|
|
69
|
+
const message = createBasePricesFilter();
|
|
70
|
+
message.assetDenom = object.assetDenom ?? "";
|
|
71
|
+
message.baseDenom = object.baseDenom ?? "";
|
|
72
|
+
message.startTime = object.startTime ?? undefined;
|
|
73
|
+
message.endTime = object.endTime ?? undefined;
|
|
74
|
+
return message;
|
|
75
|
+
},
|
|
76
|
+
fromAmino(object) {
|
|
77
|
+
const message = createBasePricesFilter();
|
|
78
|
+
if (object.asset_denom !== undefined && object.asset_denom !== null) {
|
|
79
|
+
message.assetDenom = object.asset_denom;
|
|
80
|
+
}
|
|
81
|
+
if (object.base_denom !== undefined && object.base_denom !== null) {
|
|
82
|
+
message.baseDenom = object.base_denom;
|
|
83
|
+
}
|
|
84
|
+
if (object.start_time !== undefined && object.start_time !== null) {
|
|
85
|
+
message.startTime = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.start_time));
|
|
86
|
+
}
|
|
87
|
+
if (object.end_time !== undefined && object.end_time !== null) {
|
|
88
|
+
message.endTime = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.end_time));
|
|
89
|
+
}
|
|
90
|
+
return message;
|
|
91
|
+
},
|
|
92
|
+
toAmino(message) {
|
|
93
|
+
const obj = {};
|
|
94
|
+
obj.asset_denom = message.assetDenom ?? "";
|
|
95
|
+
obj.base_denom = message.baseDenom ?? "";
|
|
96
|
+
obj.start_time = message.startTime ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.startTime)) : new Date();
|
|
97
|
+
obj.end_time = message.endTime ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.endTime)) : new Date();
|
|
98
|
+
return obj;
|
|
99
|
+
},
|
|
100
|
+
fromAminoMsg(object) {
|
|
101
|
+
return exports.PricesFilter.fromAmino(object.value);
|
|
102
|
+
},
|
|
103
|
+
fromProtoMsg(message) {
|
|
104
|
+
return exports.PricesFilter.decode(message.value);
|
|
105
|
+
},
|
|
106
|
+
toProto(message) {
|
|
107
|
+
return exports.PricesFilter.encode(message).finish();
|
|
108
|
+
},
|
|
109
|
+
toProtoMsg(message) {
|
|
110
|
+
return {
|
|
111
|
+
typeUrl: "/akash.oracle.v2.PricesFilter",
|
|
112
|
+
value: exports.PricesFilter.encode(message).finish()
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
function createBaseQueryParamsRequest() {
|
|
117
|
+
return {};
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* QueryParamsRequest is the request type for the Query/Params RPC method.
|
|
121
|
+
* @name QueryParamsRequest
|
|
122
|
+
* @package akash.oracle.v2
|
|
123
|
+
* @see proto type: akash.oracle.v2.QueryParamsRequest
|
|
124
|
+
*/
|
|
125
|
+
exports.QueryParamsRequest = {
|
|
126
|
+
typeUrl: "/akash.oracle.v2.QueryParamsRequest",
|
|
127
|
+
encode(_, writer = binary_1.BinaryWriter.create()) {
|
|
128
|
+
return writer;
|
|
129
|
+
},
|
|
130
|
+
decode(input, length) {
|
|
131
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
132
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
133
|
+
const message = createBaseQueryParamsRequest();
|
|
134
|
+
while (reader.pos < end) {
|
|
135
|
+
const tag = reader.uint32();
|
|
136
|
+
switch (tag >>> 3) {
|
|
137
|
+
default:
|
|
138
|
+
reader.skipType(tag & 7);
|
|
139
|
+
break;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
return message;
|
|
143
|
+
},
|
|
144
|
+
fromPartial(_) {
|
|
145
|
+
const message = createBaseQueryParamsRequest();
|
|
146
|
+
return message;
|
|
147
|
+
},
|
|
148
|
+
fromAmino(_) {
|
|
149
|
+
const message = createBaseQueryParamsRequest();
|
|
150
|
+
return message;
|
|
151
|
+
},
|
|
152
|
+
toAmino(_) {
|
|
153
|
+
const obj = {};
|
|
154
|
+
return obj;
|
|
155
|
+
},
|
|
156
|
+
fromAminoMsg(object) {
|
|
157
|
+
return exports.QueryParamsRequest.fromAmino(object.value);
|
|
158
|
+
},
|
|
159
|
+
fromProtoMsg(message) {
|
|
160
|
+
return exports.QueryParamsRequest.decode(message.value);
|
|
161
|
+
},
|
|
162
|
+
toProto(message) {
|
|
163
|
+
return exports.QueryParamsRequest.encode(message).finish();
|
|
164
|
+
},
|
|
165
|
+
toProtoMsg(message) {
|
|
166
|
+
return {
|
|
167
|
+
typeUrl: "/akash.oracle.v2.QueryParamsRequest",
|
|
168
|
+
value: exports.QueryParamsRequest.encode(message).finish()
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
};
|
|
172
|
+
function createBaseQueryParamsResponse() {
|
|
173
|
+
return {
|
|
174
|
+
params: params_1.Params.fromPartial({})
|
|
175
|
+
};
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* QueryParamsResponse is the response type for the Query/Params RPC method.
|
|
179
|
+
* @name QueryParamsResponse
|
|
180
|
+
* @package akash.oracle.v2
|
|
181
|
+
* @see proto type: akash.oracle.v2.QueryParamsResponse
|
|
182
|
+
*/
|
|
183
|
+
exports.QueryParamsResponse = {
|
|
184
|
+
typeUrl: "/akash.oracle.v2.QueryParamsResponse",
|
|
185
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
186
|
+
if (message.params !== undefined) {
|
|
187
|
+
params_1.Params.encode(message.params, writer.uint32(10).fork()).ldelim();
|
|
188
|
+
}
|
|
189
|
+
return writer;
|
|
190
|
+
},
|
|
191
|
+
decode(input, length) {
|
|
192
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
193
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
194
|
+
const message = createBaseQueryParamsResponse();
|
|
195
|
+
while (reader.pos < end) {
|
|
196
|
+
const tag = reader.uint32();
|
|
197
|
+
switch (tag >>> 3) {
|
|
198
|
+
case 1:
|
|
199
|
+
message.params = params_1.Params.decode(reader, reader.uint32());
|
|
200
|
+
break;
|
|
201
|
+
default:
|
|
202
|
+
reader.skipType(tag & 7);
|
|
203
|
+
break;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
return message;
|
|
207
|
+
},
|
|
208
|
+
fromPartial(object) {
|
|
209
|
+
const message = createBaseQueryParamsResponse();
|
|
210
|
+
message.params = object.params !== undefined && object.params !== null ? params_1.Params.fromPartial(object.params) : undefined;
|
|
211
|
+
return message;
|
|
212
|
+
},
|
|
213
|
+
fromAmino(object) {
|
|
214
|
+
const message = createBaseQueryParamsResponse();
|
|
215
|
+
if (object.params !== undefined && object.params !== null) {
|
|
216
|
+
message.params = params_1.Params.fromAmino(object.params);
|
|
217
|
+
}
|
|
218
|
+
return message;
|
|
219
|
+
},
|
|
220
|
+
toAmino(message) {
|
|
221
|
+
const obj = {};
|
|
222
|
+
obj.params = message.params ? params_1.Params.toAmino(message.params) : params_1.Params.toAmino(params_1.Params.fromPartial({}));
|
|
223
|
+
return obj;
|
|
224
|
+
},
|
|
225
|
+
fromAminoMsg(object) {
|
|
226
|
+
return exports.QueryParamsResponse.fromAmino(object.value);
|
|
227
|
+
},
|
|
228
|
+
fromProtoMsg(message) {
|
|
229
|
+
return exports.QueryParamsResponse.decode(message.value);
|
|
230
|
+
},
|
|
231
|
+
toProto(message) {
|
|
232
|
+
return exports.QueryParamsResponse.encode(message).finish();
|
|
233
|
+
},
|
|
234
|
+
toProtoMsg(message) {
|
|
235
|
+
return {
|
|
236
|
+
typeUrl: "/akash.oracle.v2.QueryParamsResponse",
|
|
237
|
+
value: exports.QueryParamsResponse.encode(message).finish()
|
|
238
|
+
};
|
|
239
|
+
}
|
|
240
|
+
};
|
|
241
|
+
function createBaseQueryAggregatedPriceRequest() {
|
|
242
|
+
return {
|
|
243
|
+
denom: ""
|
|
244
|
+
};
|
|
245
|
+
}
|
|
246
|
+
/**
|
|
247
|
+
* QueryAggregatedPriceRequest is the request type for aggregated price.
|
|
248
|
+
* @name QueryAggregatedPriceRequest
|
|
249
|
+
* @package akash.oracle.v2
|
|
250
|
+
* @see proto type: akash.oracle.v2.QueryAggregatedPriceRequest
|
|
251
|
+
*/
|
|
252
|
+
exports.QueryAggregatedPriceRequest = {
|
|
253
|
+
typeUrl: "/akash.oracle.v2.QueryAggregatedPriceRequest",
|
|
254
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
255
|
+
if (message.denom !== "") {
|
|
256
|
+
writer.uint32(10).string(message.denom);
|
|
257
|
+
}
|
|
258
|
+
return writer;
|
|
259
|
+
},
|
|
260
|
+
decode(input, length) {
|
|
261
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
262
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
263
|
+
const message = createBaseQueryAggregatedPriceRequest();
|
|
264
|
+
while (reader.pos < end) {
|
|
265
|
+
const tag = reader.uint32();
|
|
266
|
+
switch (tag >>> 3) {
|
|
267
|
+
case 1:
|
|
268
|
+
message.denom = reader.string();
|
|
269
|
+
break;
|
|
270
|
+
default:
|
|
271
|
+
reader.skipType(tag & 7);
|
|
272
|
+
break;
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
return message;
|
|
276
|
+
},
|
|
277
|
+
fromPartial(object) {
|
|
278
|
+
const message = createBaseQueryAggregatedPriceRequest();
|
|
279
|
+
message.denom = object.denom ?? "";
|
|
280
|
+
return message;
|
|
281
|
+
},
|
|
282
|
+
fromAmino(object) {
|
|
283
|
+
const message = createBaseQueryAggregatedPriceRequest();
|
|
284
|
+
if (object.denom !== undefined && object.denom !== null) {
|
|
285
|
+
message.denom = object.denom;
|
|
286
|
+
}
|
|
287
|
+
return message;
|
|
288
|
+
},
|
|
289
|
+
toAmino(message) {
|
|
290
|
+
const obj = {};
|
|
291
|
+
obj.denom = message.denom === "" ? undefined : message.denom;
|
|
292
|
+
return obj;
|
|
293
|
+
},
|
|
294
|
+
fromAminoMsg(object) {
|
|
295
|
+
return exports.QueryAggregatedPriceRequest.fromAmino(object.value);
|
|
296
|
+
},
|
|
297
|
+
fromProtoMsg(message) {
|
|
298
|
+
return exports.QueryAggregatedPriceRequest.decode(message.value);
|
|
299
|
+
},
|
|
300
|
+
toProto(message) {
|
|
301
|
+
return exports.QueryAggregatedPriceRequest.encode(message).finish();
|
|
302
|
+
},
|
|
303
|
+
toProtoMsg(message) {
|
|
304
|
+
return {
|
|
305
|
+
typeUrl: "/akash.oracle.v2.QueryAggregatedPriceRequest",
|
|
306
|
+
value: exports.QueryAggregatedPriceRequest.encode(message).finish()
|
|
307
|
+
};
|
|
308
|
+
}
|
|
309
|
+
};
|
|
310
|
+
function createBaseQueryAggregatedPriceResponse() {
|
|
311
|
+
return {
|
|
312
|
+
aggregatedPrice: prices_1.AggregatedPrice.fromPartial({}),
|
|
313
|
+
priceHealth: prices_1.PriceHealth.fromPartial({})
|
|
314
|
+
};
|
|
315
|
+
}
|
|
316
|
+
/**
|
|
317
|
+
* QueryAggregatedPriceResponse is the response type for aggregated price.
|
|
318
|
+
* @name QueryAggregatedPriceResponse
|
|
319
|
+
* @package akash.oracle.v2
|
|
320
|
+
* @see proto type: akash.oracle.v2.QueryAggregatedPriceResponse
|
|
321
|
+
*/
|
|
322
|
+
exports.QueryAggregatedPriceResponse = {
|
|
323
|
+
typeUrl: "/akash.oracle.v2.QueryAggregatedPriceResponse",
|
|
324
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
325
|
+
if (message.aggregatedPrice !== undefined) {
|
|
326
|
+
prices_1.AggregatedPrice.encode(message.aggregatedPrice, writer.uint32(10).fork()).ldelim();
|
|
327
|
+
}
|
|
328
|
+
if (message.priceHealth !== undefined) {
|
|
329
|
+
prices_1.PriceHealth.encode(message.priceHealth, writer.uint32(18).fork()).ldelim();
|
|
330
|
+
}
|
|
331
|
+
return writer;
|
|
332
|
+
},
|
|
333
|
+
decode(input, length) {
|
|
334
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
335
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
336
|
+
const message = createBaseQueryAggregatedPriceResponse();
|
|
337
|
+
while (reader.pos < end) {
|
|
338
|
+
const tag = reader.uint32();
|
|
339
|
+
switch (tag >>> 3) {
|
|
340
|
+
case 1:
|
|
341
|
+
message.aggregatedPrice = prices_1.AggregatedPrice.decode(reader, reader.uint32());
|
|
342
|
+
break;
|
|
343
|
+
case 2:
|
|
344
|
+
message.priceHealth = prices_1.PriceHealth.decode(reader, reader.uint32());
|
|
345
|
+
break;
|
|
346
|
+
default:
|
|
347
|
+
reader.skipType(tag & 7);
|
|
348
|
+
break;
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
return message;
|
|
352
|
+
},
|
|
353
|
+
fromPartial(object) {
|
|
354
|
+
const message = createBaseQueryAggregatedPriceResponse();
|
|
355
|
+
message.aggregatedPrice = object.aggregatedPrice !== undefined && object.aggregatedPrice !== null ? prices_1.AggregatedPrice.fromPartial(object.aggregatedPrice) : undefined;
|
|
356
|
+
message.priceHealth = object.priceHealth !== undefined && object.priceHealth !== null ? prices_1.PriceHealth.fromPartial(object.priceHealth) : undefined;
|
|
357
|
+
return message;
|
|
358
|
+
},
|
|
359
|
+
fromAmino(object) {
|
|
360
|
+
const message = createBaseQueryAggregatedPriceResponse();
|
|
361
|
+
if (object.aggregated_price !== undefined && object.aggregated_price !== null) {
|
|
362
|
+
message.aggregatedPrice = prices_1.AggregatedPrice.fromAmino(object.aggregated_price);
|
|
363
|
+
}
|
|
364
|
+
if (object.price_health !== undefined && object.price_health !== null) {
|
|
365
|
+
message.priceHealth = prices_1.PriceHealth.fromAmino(object.price_health);
|
|
366
|
+
}
|
|
367
|
+
return message;
|
|
368
|
+
},
|
|
369
|
+
toAmino(message) {
|
|
370
|
+
const obj = {};
|
|
371
|
+
obj.aggregated_price = message.aggregatedPrice ? prices_1.AggregatedPrice.toAmino(message.aggregatedPrice) : prices_1.AggregatedPrice.toAmino(prices_1.AggregatedPrice.fromPartial({}));
|
|
372
|
+
obj.price_health = message.priceHealth ? prices_1.PriceHealth.toAmino(message.priceHealth) : prices_1.PriceHealth.toAmino(prices_1.PriceHealth.fromPartial({}));
|
|
373
|
+
return obj;
|
|
374
|
+
},
|
|
375
|
+
fromAminoMsg(object) {
|
|
376
|
+
return exports.QueryAggregatedPriceResponse.fromAmino(object.value);
|
|
377
|
+
},
|
|
378
|
+
fromProtoMsg(message) {
|
|
379
|
+
return exports.QueryAggregatedPriceResponse.decode(message.value);
|
|
380
|
+
},
|
|
381
|
+
toProto(message) {
|
|
382
|
+
return exports.QueryAggregatedPriceResponse.encode(message).finish();
|
|
383
|
+
},
|
|
384
|
+
toProtoMsg(message) {
|
|
385
|
+
return {
|
|
386
|
+
typeUrl: "/akash.oracle.v2.QueryAggregatedPriceResponse",
|
|
387
|
+
value: exports.QueryAggregatedPriceResponse.encode(message).finish()
|
|
388
|
+
};
|
|
389
|
+
}
|
|
390
|
+
};
|
|
391
|
+
function createBaseQueryPricesRequest() {
|
|
392
|
+
return {
|
|
393
|
+
filters: exports.PricesFilter.fromPartial({}),
|
|
394
|
+
pagination: undefined
|
|
395
|
+
};
|
|
396
|
+
}
|
|
397
|
+
/**
|
|
398
|
+
* QueryPricesRequest is the request type for querying price history
|
|
399
|
+
* @name QueryPricesRequest
|
|
400
|
+
* @package akash.oracle.v2
|
|
401
|
+
* @see proto type: akash.oracle.v2.QueryPricesRequest
|
|
402
|
+
*/
|
|
403
|
+
exports.QueryPricesRequest = {
|
|
404
|
+
typeUrl: "/akash.oracle.v2.QueryPricesRequest",
|
|
405
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
406
|
+
if (message.filters !== undefined) {
|
|
407
|
+
exports.PricesFilter.encode(message.filters, writer.uint32(10).fork()).ldelim();
|
|
408
|
+
}
|
|
409
|
+
if (message.pagination !== undefined) {
|
|
410
|
+
pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
411
|
+
}
|
|
412
|
+
return writer;
|
|
413
|
+
},
|
|
414
|
+
decode(input, length) {
|
|
415
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
416
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
417
|
+
const message = createBaseQueryPricesRequest();
|
|
418
|
+
while (reader.pos < end) {
|
|
419
|
+
const tag = reader.uint32();
|
|
420
|
+
switch (tag >>> 3) {
|
|
421
|
+
case 1:
|
|
422
|
+
message.filters = exports.PricesFilter.decode(reader, reader.uint32());
|
|
423
|
+
break;
|
|
424
|
+
case 2:
|
|
425
|
+
message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32());
|
|
426
|
+
break;
|
|
427
|
+
default:
|
|
428
|
+
reader.skipType(tag & 7);
|
|
429
|
+
break;
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
return message;
|
|
433
|
+
},
|
|
434
|
+
fromPartial(object) {
|
|
435
|
+
const message = createBaseQueryPricesRequest();
|
|
436
|
+
message.filters = object.filters !== undefined && object.filters !== null ? exports.PricesFilter.fromPartial(object.filters) : undefined;
|
|
437
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageRequest.fromPartial(object.pagination) : undefined;
|
|
438
|
+
return message;
|
|
439
|
+
},
|
|
440
|
+
fromAmino(object) {
|
|
441
|
+
const message = createBaseQueryPricesRequest();
|
|
442
|
+
if (object.filters !== undefined && object.filters !== null) {
|
|
443
|
+
message.filters = exports.PricesFilter.fromAmino(object.filters);
|
|
444
|
+
}
|
|
445
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
446
|
+
message.pagination = pagination_1.PageRequest.fromAmino(object.pagination);
|
|
447
|
+
}
|
|
448
|
+
return message;
|
|
449
|
+
},
|
|
450
|
+
toAmino(message) {
|
|
451
|
+
const obj = {};
|
|
452
|
+
obj.filters = message.filters ? exports.PricesFilter.toAmino(message.filters) : undefined;
|
|
453
|
+
obj.pagination = message.pagination ? pagination_1.PageRequest.toAmino(message.pagination) : undefined;
|
|
454
|
+
return obj;
|
|
455
|
+
},
|
|
456
|
+
fromAminoMsg(object) {
|
|
457
|
+
return exports.QueryPricesRequest.fromAmino(object.value);
|
|
458
|
+
},
|
|
459
|
+
fromProtoMsg(message) {
|
|
460
|
+
return exports.QueryPricesRequest.decode(message.value);
|
|
461
|
+
},
|
|
462
|
+
toProto(message) {
|
|
463
|
+
return exports.QueryPricesRequest.encode(message).finish();
|
|
464
|
+
},
|
|
465
|
+
toProtoMsg(message) {
|
|
466
|
+
return {
|
|
467
|
+
typeUrl: "/akash.oracle.v2.QueryPricesRequest",
|
|
468
|
+
value: exports.QueryPricesRequest.encode(message).finish()
|
|
469
|
+
};
|
|
470
|
+
}
|
|
471
|
+
};
|
|
472
|
+
function createBaseQueryPricesResponse() {
|
|
473
|
+
return {
|
|
474
|
+
prices: [],
|
|
475
|
+
pagination: undefined
|
|
476
|
+
};
|
|
477
|
+
}
|
|
478
|
+
/**
|
|
479
|
+
* QueryPricesResponse is the response type for querying price history
|
|
480
|
+
* @name QueryPricesResponse
|
|
481
|
+
* @package akash.oracle.v2
|
|
482
|
+
* @see proto type: akash.oracle.v2.QueryPricesResponse
|
|
483
|
+
*/
|
|
484
|
+
exports.QueryPricesResponse = {
|
|
485
|
+
typeUrl: "/akash.oracle.v2.QueryPricesResponse",
|
|
486
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
487
|
+
for (const v of message.prices) {
|
|
488
|
+
prices_1.PriceData.encode(v, writer.uint32(10).fork()).ldelim();
|
|
489
|
+
}
|
|
490
|
+
if (message.pagination !== undefined) {
|
|
491
|
+
pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
492
|
+
}
|
|
493
|
+
return writer;
|
|
494
|
+
},
|
|
495
|
+
decode(input, length) {
|
|
496
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
497
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
498
|
+
const message = createBaseQueryPricesResponse();
|
|
499
|
+
while (reader.pos < end) {
|
|
500
|
+
const tag = reader.uint32();
|
|
501
|
+
switch (tag >>> 3) {
|
|
502
|
+
case 1:
|
|
503
|
+
message.prices.push(prices_1.PriceData.decode(reader, reader.uint32()));
|
|
504
|
+
break;
|
|
505
|
+
case 2:
|
|
506
|
+
message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32());
|
|
507
|
+
break;
|
|
508
|
+
default:
|
|
509
|
+
reader.skipType(tag & 7);
|
|
510
|
+
break;
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
return message;
|
|
514
|
+
},
|
|
515
|
+
fromPartial(object) {
|
|
516
|
+
const message = createBaseQueryPricesResponse();
|
|
517
|
+
message.prices = object.prices?.map(e => prices_1.PriceData.fromPartial(e)) || [];
|
|
518
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined;
|
|
519
|
+
return message;
|
|
520
|
+
},
|
|
521
|
+
fromAmino(object) {
|
|
522
|
+
const message = createBaseQueryPricesResponse();
|
|
523
|
+
message.prices = object.prices?.map(e => prices_1.PriceData.fromAmino(e)) || [];
|
|
524
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
525
|
+
message.pagination = pagination_1.PageResponse.fromAmino(object.pagination);
|
|
526
|
+
}
|
|
527
|
+
return message;
|
|
528
|
+
},
|
|
529
|
+
toAmino(message) {
|
|
530
|
+
const obj = {};
|
|
531
|
+
if (message.prices) {
|
|
532
|
+
obj.prices = message.prices.map(e => e ? prices_1.PriceData.toAmino(e) : undefined);
|
|
533
|
+
}
|
|
534
|
+
else {
|
|
535
|
+
obj.prices = message.prices;
|
|
536
|
+
}
|
|
537
|
+
obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined;
|
|
538
|
+
return obj;
|
|
539
|
+
},
|
|
540
|
+
fromAminoMsg(object) {
|
|
541
|
+
return exports.QueryPricesResponse.fromAmino(object.value);
|
|
542
|
+
},
|
|
543
|
+
fromProtoMsg(message) {
|
|
544
|
+
return exports.QueryPricesResponse.decode(message.value);
|
|
545
|
+
},
|
|
546
|
+
toProto(message) {
|
|
547
|
+
return exports.QueryPricesResponse.encode(message).finish();
|
|
548
|
+
},
|
|
549
|
+
toProtoMsg(message) {
|
|
550
|
+
return {
|
|
551
|
+
typeUrl: "/akash.oracle.v2.QueryPricesResponse",
|
|
552
|
+
value: exports.QueryPricesResponse.encode(message).finish()
|
|
553
|
+
};
|
|
554
|
+
}
|
|
555
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { LCDClient } from "@cosmology/lcd";
|
|
2
|
+
import { QueryPricesRequest, QueryPricesResponse, QueryParamsRequest, QueryParamsResponse, QueryAggregatedPriceRequest, QueryAggregatedPriceResponse } from "./query";
|
|
3
|
+
export declare class LCDQueryClient {
|
|
4
|
+
req: LCDClient;
|
|
5
|
+
constructor({ requestClient }: {
|
|
6
|
+
requestClient: LCDClient;
|
|
7
|
+
});
|
|
8
|
+
prices: (params: QueryPricesRequest) => Promise<QueryPricesResponse>;
|
|
9
|
+
params: (_params?: QueryParamsRequest) => Promise<QueryParamsResponse>;
|
|
10
|
+
aggregatedPrice: (params: QueryAggregatedPriceRequest) => Promise<QueryAggregatedPriceResponse>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LCDQueryClient = void 0;
|
|
4
|
+
//@ts-nocheck
|
|
5
|
+
const helpers_1 = require("../../../helpers");
|
|
6
|
+
class LCDQueryClient {
|
|
7
|
+
req;
|
|
8
|
+
constructor({ requestClient }) {
|
|
9
|
+
this.req = requestClient;
|
|
10
|
+
}
|
|
11
|
+
/* Prices query prices for specific denom */
|
|
12
|
+
prices = async (params) => {
|
|
13
|
+
const options = {
|
|
14
|
+
params: {}
|
|
15
|
+
};
|
|
16
|
+
if (typeof params?.filters !== "undefined") {
|
|
17
|
+
options.params.filters = params.filters;
|
|
18
|
+
}
|
|
19
|
+
if (typeof params?.pagination !== "undefined") {
|
|
20
|
+
(0, helpers_1.setPaginationParams)(options, params.pagination);
|
|
21
|
+
}
|
|
22
|
+
const endpoint = `akash/oracle/v2/prices`;
|
|
23
|
+
return await this.req.get(endpoint, options);
|
|
24
|
+
};
|
|
25
|
+
/* Params returns the total set of oracle parameters. */
|
|
26
|
+
params = async (_params = {}) => {
|
|
27
|
+
const endpoint = `akash/oracle/v2/params`;
|
|
28
|
+
return await this.req.get(endpoint);
|
|
29
|
+
};
|
|
30
|
+
/* AggregatedPrice queries the aggregated price for a given denom. */
|
|
31
|
+
aggregatedPrice = async (params) => {
|
|
32
|
+
const options = {
|
|
33
|
+
params: {}
|
|
34
|
+
};
|
|
35
|
+
if (typeof params?.denom !== "undefined") {
|
|
36
|
+
options.params.denom = params.denom;
|
|
37
|
+
}
|
|
38
|
+
const endpoint = `akash/oracle/v2/aggregated_price/${params.denom}`;
|
|
39
|
+
return await this.req.get(endpoint, options);
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
exports.LCDQueryClient = LCDQueryClient;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { TxRpc } from "../../../types";
|
|
2
|
+
import { QueryClient } from "@cosmjs/stargate";
|
|
3
|
+
import { QueryPricesRequest, QueryPricesResponse, QueryParamsRequest, QueryParamsResponse, QueryAggregatedPriceRequest, QueryAggregatedPriceResponse } from "./query";
|
|
4
|
+
/** Query defines the gRPC querier service of the oracle package. */
|
|
5
|
+
export interface Query {
|
|
6
|
+
/** Prices query prices for specific denom */
|
|
7
|
+
prices(request: QueryPricesRequest): Promise<QueryPricesResponse>;
|
|
8
|
+
/** Params returns the total set of oracle parameters. */
|
|
9
|
+
params(request?: QueryParamsRequest): Promise<QueryParamsResponse>;
|
|
10
|
+
/** AggregatedPrice queries the aggregated price for a given denom. */
|
|
11
|
+
aggregatedPrice(request: QueryAggregatedPriceRequest): Promise<QueryAggregatedPriceResponse>;
|
|
12
|
+
}
|
|
13
|
+
export declare class QueryClientImpl implements Query {
|
|
14
|
+
private readonly rpc;
|
|
15
|
+
constructor(rpc: TxRpc);
|
|
16
|
+
prices: (request: QueryPricesRequest) => Promise<QueryPricesResponse>;
|
|
17
|
+
params: (request?: QueryParamsRequest) => Promise<QueryParamsResponse>;
|
|
18
|
+
aggregatedPrice: (request: QueryAggregatedPriceRequest) => Promise<QueryAggregatedPriceResponse>;
|
|
19
|
+
}
|
|
20
|
+
export declare const createRpcQueryExtension: (base: QueryClient) => {
|
|
21
|
+
prices(request: QueryPricesRequest): Promise<QueryPricesResponse>;
|
|
22
|
+
params(request?: QueryParamsRequest): Promise<QueryParamsResponse>;
|
|
23
|
+
aggregatedPrice(request: QueryAggregatedPriceRequest): Promise<QueryAggregatedPriceResponse>;
|
|
24
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createRpcQueryExtension = exports.QueryClientImpl = void 0;
|
|
4
|
+
const binary_1 = require("../../../binary");
|
|
5
|
+
const stargate_1 = require("@cosmjs/stargate");
|
|
6
|
+
const query_1 = require("./query");
|
|
7
|
+
class QueryClientImpl {
|
|
8
|
+
rpc;
|
|
9
|
+
constructor(rpc) {
|
|
10
|
+
this.rpc = rpc;
|
|
11
|
+
}
|
|
12
|
+
/* Prices query prices for specific denom */
|
|
13
|
+
prices = async (request) => {
|
|
14
|
+
const data = query_1.QueryPricesRequest.encode(request).finish();
|
|
15
|
+
const promise = this.rpc.request("akash.oracle.v2.Query", "Prices", data);
|
|
16
|
+
return promise.then(data => query_1.QueryPricesResponse.decode(new binary_1.BinaryReader(data)));
|
|
17
|
+
};
|
|
18
|
+
/* Params returns the total set of oracle parameters. */
|
|
19
|
+
params = async (request = {}) => {
|
|
20
|
+
const data = query_1.QueryParamsRequest.encode(request).finish();
|
|
21
|
+
const promise = this.rpc.request("akash.oracle.v2.Query", "Params", data);
|
|
22
|
+
return promise.then(data => query_1.QueryParamsResponse.decode(new binary_1.BinaryReader(data)));
|
|
23
|
+
};
|
|
24
|
+
/* AggregatedPrice queries the aggregated price for a given denom. */
|
|
25
|
+
aggregatedPrice = async (request) => {
|
|
26
|
+
const data = query_1.QueryAggregatedPriceRequest.encode(request).finish();
|
|
27
|
+
const promise = this.rpc.request("akash.oracle.v2.Query", "AggregatedPrice", data);
|
|
28
|
+
return promise.then(data => query_1.QueryAggregatedPriceResponse.decode(new binary_1.BinaryReader(data)));
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
exports.QueryClientImpl = QueryClientImpl;
|
|
32
|
+
const createRpcQueryExtension = (base) => {
|
|
33
|
+
const rpc = (0, stargate_1.createProtobufRpcClient)(base);
|
|
34
|
+
const queryService = new QueryClientImpl(rpc);
|
|
35
|
+
return {
|
|
36
|
+
prices(request) {
|
|
37
|
+
return queryService.prices(request);
|
|
38
|
+
},
|
|
39
|
+
params(request) {
|
|
40
|
+
return queryService.params(request);
|
|
41
|
+
},
|
|
42
|
+
aggregatedPrice(request) {
|
|
43
|
+
return queryService.aggregatedPrice(request);
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
exports.createRpcQueryExtension = createRpcQueryExtension;
|