@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,313 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MsgUpdateParamsResponse = exports.MsgUpdateParams = exports.MsgAddPriceEntryResponse = exports.MsgAddPriceEntry = void 0;
|
|
4
|
+
//@ts-nocheck
|
|
5
|
+
const prices_1 = require("./prices");
|
|
6
|
+
const timestamp_1 = require("../../../google/protobuf/timestamp");
|
|
7
|
+
const params_1 = require("./params");
|
|
8
|
+
const binary_1 = require("../../../binary");
|
|
9
|
+
const math_1 = require("@interchainjs/math");
|
|
10
|
+
const helpers_1 = require("../../../helpers");
|
|
11
|
+
function createBaseMsgAddPriceEntry() {
|
|
12
|
+
return {
|
|
13
|
+
signer: "",
|
|
14
|
+
id: prices_1.DataID.fromPartial({}),
|
|
15
|
+
price: "",
|
|
16
|
+
timestamp: new Date()
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* MsgAddPriceEntry defines an SDK message to add oracle price entry.
|
|
21
|
+
* @name MsgAddPriceEntry
|
|
22
|
+
* @package akash.oracle.v2
|
|
23
|
+
* @see proto type: akash.oracle.v2.MsgAddPriceEntry
|
|
24
|
+
*/
|
|
25
|
+
exports.MsgAddPriceEntry = {
|
|
26
|
+
typeUrl: "/akash.oracle.v2.MsgAddPriceEntry",
|
|
27
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
28
|
+
if (message.signer !== "") {
|
|
29
|
+
writer.uint32(10).string(message.signer);
|
|
30
|
+
}
|
|
31
|
+
if (message.id !== undefined) {
|
|
32
|
+
prices_1.DataID.encode(message.id, writer.uint32(18).fork()).ldelim();
|
|
33
|
+
}
|
|
34
|
+
if (message.price !== "") {
|
|
35
|
+
writer.uint32(26).string(math_1.Decimal.fromUserInput(message.price, 18).atomics);
|
|
36
|
+
}
|
|
37
|
+
if (message.timestamp !== undefined) {
|
|
38
|
+
timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.timestamp), 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 = createBaseMsgAddPriceEntry();
|
|
46
|
+
while (reader.pos < end) {
|
|
47
|
+
const tag = reader.uint32();
|
|
48
|
+
switch (tag >>> 3) {
|
|
49
|
+
case 1:
|
|
50
|
+
message.signer = reader.string();
|
|
51
|
+
break;
|
|
52
|
+
case 2:
|
|
53
|
+
message.id = prices_1.DataID.decode(reader, reader.uint32());
|
|
54
|
+
break;
|
|
55
|
+
case 3:
|
|
56
|
+
message.price = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
57
|
+
break;
|
|
58
|
+
case 4:
|
|
59
|
+
message.timestamp = (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 = createBaseMsgAddPriceEntry();
|
|
70
|
+
message.signer = object.signer ?? "";
|
|
71
|
+
message.id = object.id !== undefined && object.id !== null ? prices_1.DataID.fromPartial(object.id) : undefined;
|
|
72
|
+
message.price = object.price ?? "";
|
|
73
|
+
message.timestamp = object.timestamp ?? undefined;
|
|
74
|
+
return message;
|
|
75
|
+
},
|
|
76
|
+
fromAmino(object) {
|
|
77
|
+
const message = createBaseMsgAddPriceEntry();
|
|
78
|
+
if (object.signer !== undefined && object.signer !== null) {
|
|
79
|
+
message.signer = object.signer;
|
|
80
|
+
}
|
|
81
|
+
if (object.id !== undefined && object.id !== null) {
|
|
82
|
+
message.id = prices_1.DataID.fromAmino(object.id);
|
|
83
|
+
}
|
|
84
|
+
if (object.price !== undefined && object.price !== null) {
|
|
85
|
+
message.price = object.price;
|
|
86
|
+
}
|
|
87
|
+
if (object.timestamp !== undefined && object.timestamp !== null) {
|
|
88
|
+
message.timestamp = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.timestamp));
|
|
89
|
+
}
|
|
90
|
+
return message;
|
|
91
|
+
},
|
|
92
|
+
toAmino(message) {
|
|
93
|
+
const obj = {};
|
|
94
|
+
obj.signer = message.signer ?? "";
|
|
95
|
+
obj.id = message.id ? prices_1.DataID.toAmino(message.id) : prices_1.DataID.toAmino(prices_1.DataID.fromPartial({}));
|
|
96
|
+
obj.price = message.price ?? "";
|
|
97
|
+
obj.timestamp = message.timestamp ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.timestamp)) : new Date();
|
|
98
|
+
return obj;
|
|
99
|
+
},
|
|
100
|
+
fromAminoMsg(object) {
|
|
101
|
+
return exports.MsgAddPriceEntry.fromAmino(object.value);
|
|
102
|
+
},
|
|
103
|
+
fromProtoMsg(message) {
|
|
104
|
+
return exports.MsgAddPriceEntry.decode(message.value);
|
|
105
|
+
},
|
|
106
|
+
toProto(message) {
|
|
107
|
+
return exports.MsgAddPriceEntry.encode(message).finish();
|
|
108
|
+
},
|
|
109
|
+
toProtoMsg(message) {
|
|
110
|
+
return {
|
|
111
|
+
typeUrl: "/akash.oracle.v2.MsgAddPriceEntry",
|
|
112
|
+
value: exports.MsgAddPriceEntry.encode(message).finish()
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
function createBaseMsgAddPriceEntryResponse() {
|
|
117
|
+
return {};
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* MsgAddPriceEntryResponse defines the Msg/MsgAddPriceEntry response type.
|
|
121
|
+
* @name MsgAddPriceEntryResponse
|
|
122
|
+
* @package akash.oracle.v2
|
|
123
|
+
* @see proto type: akash.oracle.v2.MsgAddPriceEntryResponse
|
|
124
|
+
*/
|
|
125
|
+
exports.MsgAddPriceEntryResponse = {
|
|
126
|
+
typeUrl: "/akash.oracle.v2.MsgAddPriceEntryResponse",
|
|
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 = createBaseMsgAddPriceEntryResponse();
|
|
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 = createBaseMsgAddPriceEntryResponse();
|
|
146
|
+
return message;
|
|
147
|
+
},
|
|
148
|
+
fromAmino(_) {
|
|
149
|
+
const message = createBaseMsgAddPriceEntryResponse();
|
|
150
|
+
return message;
|
|
151
|
+
},
|
|
152
|
+
toAmino(_) {
|
|
153
|
+
const obj = {};
|
|
154
|
+
return obj;
|
|
155
|
+
},
|
|
156
|
+
fromAminoMsg(object) {
|
|
157
|
+
return exports.MsgAddPriceEntryResponse.fromAmino(object.value);
|
|
158
|
+
},
|
|
159
|
+
fromProtoMsg(message) {
|
|
160
|
+
return exports.MsgAddPriceEntryResponse.decode(message.value);
|
|
161
|
+
},
|
|
162
|
+
toProto(message) {
|
|
163
|
+
return exports.MsgAddPriceEntryResponse.encode(message).finish();
|
|
164
|
+
},
|
|
165
|
+
toProtoMsg(message) {
|
|
166
|
+
return {
|
|
167
|
+
typeUrl: "/akash.oracle.v2.MsgAddPriceEntryResponse",
|
|
168
|
+
value: exports.MsgAddPriceEntryResponse.encode(message).finish()
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
};
|
|
172
|
+
function createBaseMsgUpdateParams() {
|
|
173
|
+
return {
|
|
174
|
+
authority: "",
|
|
175
|
+
params: params_1.Params.fromPartial({})
|
|
176
|
+
};
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* MsgUpdateParams is the Msg/UpdateParams request type.
|
|
180
|
+
*
|
|
181
|
+
* Since: akash v2.0.0
|
|
182
|
+
* @name MsgUpdateParams
|
|
183
|
+
* @package akash.oracle.v2
|
|
184
|
+
* @see proto type: akash.oracle.v2.MsgUpdateParams
|
|
185
|
+
*/
|
|
186
|
+
exports.MsgUpdateParams = {
|
|
187
|
+
typeUrl: "/akash.oracle.v2.MsgUpdateParams",
|
|
188
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
189
|
+
if (message.authority !== "") {
|
|
190
|
+
writer.uint32(10).string(message.authority);
|
|
191
|
+
}
|
|
192
|
+
if (message.params !== undefined) {
|
|
193
|
+
params_1.Params.encode(message.params, writer.uint32(18).fork()).ldelim();
|
|
194
|
+
}
|
|
195
|
+
return writer;
|
|
196
|
+
},
|
|
197
|
+
decode(input, length) {
|
|
198
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
199
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
200
|
+
const message = createBaseMsgUpdateParams();
|
|
201
|
+
while (reader.pos < end) {
|
|
202
|
+
const tag = reader.uint32();
|
|
203
|
+
switch (tag >>> 3) {
|
|
204
|
+
case 1:
|
|
205
|
+
message.authority = reader.string();
|
|
206
|
+
break;
|
|
207
|
+
case 2:
|
|
208
|
+
message.params = params_1.Params.decode(reader, reader.uint32());
|
|
209
|
+
break;
|
|
210
|
+
default:
|
|
211
|
+
reader.skipType(tag & 7);
|
|
212
|
+
break;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
return message;
|
|
216
|
+
},
|
|
217
|
+
fromPartial(object) {
|
|
218
|
+
const message = createBaseMsgUpdateParams();
|
|
219
|
+
message.authority = object.authority ?? "";
|
|
220
|
+
message.params = object.params !== undefined && object.params !== null ? params_1.Params.fromPartial(object.params) : undefined;
|
|
221
|
+
return message;
|
|
222
|
+
},
|
|
223
|
+
fromAmino(object) {
|
|
224
|
+
const message = createBaseMsgUpdateParams();
|
|
225
|
+
if (object.authority !== undefined && object.authority !== null) {
|
|
226
|
+
message.authority = object.authority;
|
|
227
|
+
}
|
|
228
|
+
if (object.params !== undefined && object.params !== null) {
|
|
229
|
+
message.params = params_1.Params.fromAmino(object.params);
|
|
230
|
+
}
|
|
231
|
+
return message;
|
|
232
|
+
},
|
|
233
|
+
toAmino(message) {
|
|
234
|
+
const obj = {};
|
|
235
|
+
obj.authority = message.authority === "" ? undefined : message.authority;
|
|
236
|
+
obj.params = message.params ? params_1.Params.toAmino(message.params) : undefined;
|
|
237
|
+
return obj;
|
|
238
|
+
},
|
|
239
|
+
fromAminoMsg(object) {
|
|
240
|
+
return exports.MsgUpdateParams.fromAmino(object.value);
|
|
241
|
+
},
|
|
242
|
+
fromProtoMsg(message) {
|
|
243
|
+
return exports.MsgUpdateParams.decode(message.value);
|
|
244
|
+
},
|
|
245
|
+
toProto(message) {
|
|
246
|
+
return exports.MsgUpdateParams.encode(message).finish();
|
|
247
|
+
},
|
|
248
|
+
toProtoMsg(message) {
|
|
249
|
+
return {
|
|
250
|
+
typeUrl: "/akash.oracle.v2.MsgUpdateParams",
|
|
251
|
+
value: exports.MsgUpdateParams.encode(message).finish()
|
|
252
|
+
};
|
|
253
|
+
}
|
|
254
|
+
};
|
|
255
|
+
function createBaseMsgUpdateParamsResponse() {
|
|
256
|
+
return {};
|
|
257
|
+
}
|
|
258
|
+
/**
|
|
259
|
+
* MsgUpdateParamsResponse defines the response structure for executing a
|
|
260
|
+
* MsgUpdateParams message.
|
|
261
|
+
*
|
|
262
|
+
* Since: akash v2.0.0
|
|
263
|
+
* @name MsgUpdateParamsResponse
|
|
264
|
+
* @package akash.oracle.v2
|
|
265
|
+
* @see proto type: akash.oracle.v2.MsgUpdateParamsResponse
|
|
266
|
+
*/
|
|
267
|
+
exports.MsgUpdateParamsResponse = {
|
|
268
|
+
typeUrl: "/akash.oracle.v2.MsgUpdateParamsResponse",
|
|
269
|
+
encode(_, writer = binary_1.BinaryWriter.create()) {
|
|
270
|
+
return writer;
|
|
271
|
+
},
|
|
272
|
+
decode(input, length) {
|
|
273
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
274
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
275
|
+
const message = createBaseMsgUpdateParamsResponse();
|
|
276
|
+
while (reader.pos < end) {
|
|
277
|
+
const tag = reader.uint32();
|
|
278
|
+
switch (tag >>> 3) {
|
|
279
|
+
default:
|
|
280
|
+
reader.skipType(tag & 7);
|
|
281
|
+
break;
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
return message;
|
|
285
|
+
},
|
|
286
|
+
fromPartial(_) {
|
|
287
|
+
const message = createBaseMsgUpdateParamsResponse();
|
|
288
|
+
return message;
|
|
289
|
+
},
|
|
290
|
+
fromAmino(_) {
|
|
291
|
+
const message = createBaseMsgUpdateParamsResponse();
|
|
292
|
+
return message;
|
|
293
|
+
},
|
|
294
|
+
toAmino(_) {
|
|
295
|
+
const obj = {};
|
|
296
|
+
return obj;
|
|
297
|
+
},
|
|
298
|
+
fromAminoMsg(object) {
|
|
299
|
+
return exports.MsgUpdateParamsResponse.fromAmino(object.value);
|
|
300
|
+
},
|
|
301
|
+
fromProtoMsg(message) {
|
|
302
|
+
return exports.MsgUpdateParamsResponse.decode(message.value);
|
|
303
|
+
},
|
|
304
|
+
toProto(message) {
|
|
305
|
+
return exports.MsgUpdateParamsResponse.encode(message).finish();
|
|
306
|
+
},
|
|
307
|
+
toProtoMsg(message) {
|
|
308
|
+
return {
|
|
309
|
+
typeUrl: "/akash.oracle.v2.MsgUpdateParamsResponse",
|
|
310
|
+
value: exports.MsgUpdateParamsResponse.encode(message).finish()
|
|
311
|
+
};
|
|
312
|
+
}
|
|
313
|
+
};
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { Duration, DurationAmino } from "../../../google/protobuf/duration";
|
|
2
|
+
import { Any, AnyAmino } from "../../../google/protobuf/any";
|
|
3
|
+
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
4
|
+
import { DeepPartial } from "../../../helpers";
|
|
5
|
+
/**
|
|
6
|
+
* Params defines the parameters for the oracle module
|
|
7
|
+
* @name Params
|
|
8
|
+
* @package akash.oracle.v2
|
|
9
|
+
* @see proto type: akash.oracle.v2.Params
|
|
10
|
+
*/
|
|
11
|
+
export interface Params {
|
|
12
|
+
/**
|
|
13
|
+
* sources addresses allowed to write prices into oracle module
|
|
14
|
+
* those are to be smartcontract addresses
|
|
15
|
+
*/
|
|
16
|
+
sources: string[];
|
|
17
|
+
/**
|
|
18
|
+
* Minimum number of price sources required (default: 1)
|
|
19
|
+
*/
|
|
20
|
+
minPriceSources: number;
|
|
21
|
+
/**
|
|
22
|
+
* Maximum price staleness in seconds (default: 60s)
|
|
23
|
+
*/
|
|
24
|
+
maxPriceStalenessPeriod: Duration;
|
|
25
|
+
/**
|
|
26
|
+
* TWAP window as a duration (default: 5s)
|
|
27
|
+
*/
|
|
28
|
+
twapWindow: Duration;
|
|
29
|
+
/**
|
|
30
|
+
* Maximum price deviation in basis points (default: 150 = 1.5%)
|
|
31
|
+
*/
|
|
32
|
+
maxPriceDeviationBps: bigint;
|
|
33
|
+
/**
|
|
34
|
+
* feed_contracts_params contains the configuration for the price feed contracts
|
|
35
|
+
*/
|
|
36
|
+
feedContractsParams: Any[];
|
|
37
|
+
/**
|
|
38
|
+
* price_retention is how long to keep price records (default: 24h)
|
|
39
|
+
*/
|
|
40
|
+
priceRetention: Duration;
|
|
41
|
+
/**
|
|
42
|
+
* prune_epoch is the epoch identifier that triggers pruning (default: "hour")
|
|
43
|
+
*/
|
|
44
|
+
pruneEpoch: string;
|
|
45
|
+
/**
|
|
46
|
+
* max_prune_per_epoch is the max records to delete per epoch pruning pass (default: 1000)
|
|
47
|
+
*/
|
|
48
|
+
maxPrunePerEpoch: bigint;
|
|
49
|
+
/**
|
|
50
|
+
* max_future_time_drift is the maximum amount of time a price timestamp
|
|
51
|
+
* may exceed the current block time (default: 1m)
|
|
52
|
+
*/
|
|
53
|
+
maxFutureTimeDrift: Duration;
|
|
54
|
+
}
|
|
55
|
+
export interface ParamsProtoMsg {
|
|
56
|
+
typeUrl: "/akash.oracle.v2.Params";
|
|
57
|
+
value: Uint8Array;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Params defines the parameters for the oracle module
|
|
61
|
+
* @name ParamsAmino
|
|
62
|
+
* @package akash.oracle.v2
|
|
63
|
+
* @see proto type: akash.oracle.v2.Params
|
|
64
|
+
*/
|
|
65
|
+
export interface ParamsAmino {
|
|
66
|
+
/**
|
|
67
|
+
* sources addresses allowed to write prices into oracle module
|
|
68
|
+
* those are to be smartcontract addresses
|
|
69
|
+
*/
|
|
70
|
+
sources: string[];
|
|
71
|
+
/**
|
|
72
|
+
* Minimum number of price sources required (default: 1)
|
|
73
|
+
*/
|
|
74
|
+
min_price_sources?: number;
|
|
75
|
+
/**
|
|
76
|
+
* Maximum price staleness in seconds (default: 60s)
|
|
77
|
+
*/
|
|
78
|
+
max_price_staleness_period: DurationAmino;
|
|
79
|
+
/**
|
|
80
|
+
* TWAP window as a duration (default: 5s)
|
|
81
|
+
*/
|
|
82
|
+
twap_window: DurationAmino;
|
|
83
|
+
/**
|
|
84
|
+
* Maximum price deviation in basis points (default: 150 = 1.5%)
|
|
85
|
+
*/
|
|
86
|
+
max_price_deviation_bps?: string;
|
|
87
|
+
/**
|
|
88
|
+
* feed_contracts_params contains the configuration for the price feed contracts
|
|
89
|
+
*/
|
|
90
|
+
feed_contracts_params?: AnyAmino[];
|
|
91
|
+
/**
|
|
92
|
+
* price_retention is how long to keep price records (default: 24h)
|
|
93
|
+
*/
|
|
94
|
+
price_retention: DurationAmino;
|
|
95
|
+
/**
|
|
96
|
+
* prune_epoch is the epoch identifier that triggers pruning (default: "hour")
|
|
97
|
+
*/
|
|
98
|
+
prune_epoch: string;
|
|
99
|
+
/**
|
|
100
|
+
* max_prune_per_epoch is the max records to delete per epoch pruning pass (default: 1000)
|
|
101
|
+
*/
|
|
102
|
+
max_prune_per_epoch?: string;
|
|
103
|
+
/**
|
|
104
|
+
* max_future_time_drift is the maximum amount of time a price timestamp
|
|
105
|
+
* may exceed the current block time (default: 1m)
|
|
106
|
+
*/
|
|
107
|
+
max_future_time_drift: DurationAmino;
|
|
108
|
+
}
|
|
109
|
+
export interface ParamsAminoMsg {
|
|
110
|
+
type: "/akash.oracle.v2.Params";
|
|
111
|
+
value: ParamsAmino;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Params defines the parameters for the oracle module
|
|
115
|
+
* @name Params
|
|
116
|
+
* @package akash.oracle.v2
|
|
117
|
+
* @see proto type: akash.oracle.v2.Params
|
|
118
|
+
*/
|
|
119
|
+
export declare const Params: {
|
|
120
|
+
typeUrl: string;
|
|
121
|
+
encode(message: Params, writer?: BinaryWriter): BinaryWriter;
|
|
122
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Params;
|
|
123
|
+
fromPartial(object: DeepPartial<Params>): Params;
|
|
124
|
+
fromAmino(object: ParamsAmino): Params;
|
|
125
|
+
toAmino(message: Params): ParamsAmino;
|
|
126
|
+
fromAminoMsg(object: ParamsAminoMsg): Params;
|
|
127
|
+
fromProtoMsg(message: ParamsProtoMsg): Params;
|
|
128
|
+
toProto(message: Params): Uint8Array;
|
|
129
|
+
toProtoMsg(message: Params): ParamsProtoMsg;
|
|
130
|
+
};
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Params = void 0;
|
|
4
|
+
//@ts-nocheck
|
|
5
|
+
const duration_1 = require("../../../google/protobuf/duration");
|
|
6
|
+
const any_1 = require("../../../google/protobuf/any");
|
|
7
|
+
const binary_1 = require("../../../binary");
|
|
8
|
+
function createBaseParams() {
|
|
9
|
+
return {
|
|
10
|
+
sources: [],
|
|
11
|
+
minPriceSources: 0,
|
|
12
|
+
maxPriceStalenessPeriod: duration_1.Duration.fromPartial({}),
|
|
13
|
+
twapWindow: duration_1.Duration.fromPartial({}),
|
|
14
|
+
maxPriceDeviationBps: BigInt(0),
|
|
15
|
+
feedContractsParams: [],
|
|
16
|
+
priceRetention: duration_1.Duration.fromPartial({}),
|
|
17
|
+
pruneEpoch: "",
|
|
18
|
+
maxPrunePerEpoch: BigInt(0),
|
|
19
|
+
maxFutureTimeDrift: duration_1.Duration.fromPartial({})
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Params defines the parameters for the oracle module
|
|
24
|
+
* @name Params
|
|
25
|
+
* @package akash.oracle.v2
|
|
26
|
+
* @see proto type: akash.oracle.v2.Params
|
|
27
|
+
*/
|
|
28
|
+
exports.Params = {
|
|
29
|
+
typeUrl: "/akash.oracle.v2.Params",
|
|
30
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
31
|
+
for (const v of message.sources) {
|
|
32
|
+
writer.uint32(10).string(v);
|
|
33
|
+
}
|
|
34
|
+
if (message.minPriceSources !== 0) {
|
|
35
|
+
writer.uint32(16).uint32(message.minPriceSources);
|
|
36
|
+
}
|
|
37
|
+
if (message.maxPriceStalenessPeriod !== undefined) {
|
|
38
|
+
duration_1.Duration.encode(message.maxPriceStalenessPeriod, writer.uint32(26).fork()).ldelim();
|
|
39
|
+
}
|
|
40
|
+
if (message.twapWindow !== undefined) {
|
|
41
|
+
duration_1.Duration.encode(message.twapWindow, writer.uint32(34).fork()).ldelim();
|
|
42
|
+
}
|
|
43
|
+
if (message.maxPriceDeviationBps !== BigInt(0)) {
|
|
44
|
+
writer.uint32(40).uint64(message.maxPriceDeviationBps);
|
|
45
|
+
}
|
|
46
|
+
for (const v of message.feedContractsParams) {
|
|
47
|
+
any_1.Any.encode(v, writer.uint32(50).fork()).ldelim();
|
|
48
|
+
}
|
|
49
|
+
if (message.priceRetention !== undefined) {
|
|
50
|
+
duration_1.Duration.encode(message.priceRetention, writer.uint32(58).fork()).ldelim();
|
|
51
|
+
}
|
|
52
|
+
if (message.pruneEpoch !== "") {
|
|
53
|
+
writer.uint32(66).string(message.pruneEpoch);
|
|
54
|
+
}
|
|
55
|
+
if (message.maxPrunePerEpoch !== BigInt(0)) {
|
|
56
|
+
writer.uint32(72).int64(message.maxPrunePerEpoch);
|
|
57
|
+
}
|
|
58
|
+
if (message.maxFutureTimeDrift !== undefined) {
|
|
59
|
+
duration_1.Duration.encode(message.maxFutureTimeDrift, writer.uint32(82).fork()).ldelim();
|
|
60
|
+
}
|
|
61
|
+
return writer;
|
|
62
|
+
},
|
|
63
|
+
decode(input, length) {
|
|
64
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
65
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
66
|
+
const message = createBaseParams();
|
|
67
|
+
while (reader.pos < end) {
|
|
68
|
+
const tag = reader.uint32();
|
|
69
|
+
switch (tag >>> 3) {
|
|
70
|
+
case 1:
|
|
71
|
+
message.sources.push(reader.string());
|
|
72
|
+
break;
|
|
73
|
+
case 2:
|
|
74
|
+
message.minPriceSources = reader.uint32();
|
|
75
|
+
break;
|
|
76
|
+
case 3:
|
|
77
|
+
message.maxPriceStalenessPeriod = duration_1.Duration.decode(reader, reader.uint32());
|
|
78
|
+
break;
|
|
79
|
+
case 4:
|
|
80
|
+
message.twapWindow = duration_1.Duration.decode(reader, reader.uint32());
|
|
81
|
+
break;
|
|
82
|
+
case 5:
|
|
83
|
+
message.maxPriceDeviationBps = reader.uint64();
|
|
84
|
+
break;
|
|
85
|
+
case 6:
|
|
86
|
+
message.feedContractsParams.push(any_1.Any.decode(reader, reader.uint32()));
|
|
87
|
+
break;
|
|
88
|
+
case 7:
|
|
89
|
+
message.priceRetention = duration_1.Duration.decode(reader, reader.uint32());
|
|
90
|
+
break;
|
|
91
|
+
case 8:
|
|
92
|
+
message.pruneEpoch = reader.string();
|
|
93
|
+
break;
|
|
94
|
+
case 9:
|
|
95
|
+
message.maxPrunePerEpoch = reader.int64();
|
|
96
|
+
break;
|
|
97
|
+
case 10:
|
|
98
|
+
message.maxFutureTimeDrift = duration_1.Duration.decode(reader, reader.uint32());
|
|
99
|
+
break;
|
|
100
|
+
default:
|
|
101
|
+
reader.skipType(tag & 7);
|
|
102
|
+
break;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
return message;
|
|
106
|
+
},
|
|
107
|
+
fromPartial(object) {
|
|
108
|
+
const message = createBaseParams();
|
|
109
|
+
message.sources = object.sources?.map(e => e) || [];
|
|
110
|
+
message.minPriceSources = object.minPriceSources ?? 0;
|
|
111
|
+
message.maxPriceStalenessPeriod = object.maxPriceStalenessPeriod !== undefined && object.maxPriceStalenessPeriod !== null ? duration_1.Duration.fromPartial(object.maxPriceStalenessPeriod) : undefined;
|
|
112
|
+
message.twapWindow = object.twapWindow !== undefined && object.twapWindow !== null ? duration_1.Duration.fromPartial(object.twapWindow) : undefined;
|
|
113
|
+
message.maxPriceDeviationBps = object.maxPriceDeviationBps !== undefined && object.maxPriceDeviationBps !== null ? BigInt(object.maxPriceDeviationBps.toString()) : BigInt(0);
|
|
114
|
+
message.feedContractsParams = object.feedContractsParams?.map(e => any_1.Any.fromPartial(e)) || [];
|
|
115
|
+
message.priceRetention = object.priceRetention !== undefined && object.priceRetention !== null ? duration_1.Duration.fromPartial(object.priceRetention) : undefined;
|
|
116
|
+
message.pruneEpoch = object.pruneEpoch ?? "";
|
|
117
|
+
message.maxPrunePerEpoch = object.maxPrunePerEpoch !== undefined && object.maxPrunePerEpoch !== null ? BigInt(object.maxPrunePerEpoch.toString()) : BigInt(0);
|
|
118
|
+
message.maxFutureTimeDrift = object.maxFutureTimeDrift !== undefined && object.maxFutureTimeDrift !== null ? duration_1.Duration.fromPartial(object.maxFutureTimeDrift) : undefined;
|
|
119
|
+
return message;
|
|
120
|
+
},
|
|
121
|
+
fromAmino(object) {
|
|
122
|
+
const message = createBaseParams();
|
|
123
|
+
message.sources = object.sources?.map(e => e) || [];
|
|
124
|
+
if (object.min_price_sources !== undefined && object.min_price_sources !== null) {
|
|
125
|
+
message.minPriceSources = object.min_price_sources;
|
|
126
|
+
}
|
|
127
|
+
if (object.max_price_staleness_period !== undefined && object.max_price_staleness_period !== null) {
|
|
128
|
+
message.maxPriceStalenessPeriod = duration_1.Duration.fromAmino(object.max_price_staleness_period);
|
|
129
|
+
}
|
|
130
|
+
if (object.twap_window !== undefined && object.twap_window !== null) {
|
|
131
|
+
message.twapWindow = duration_1.Duration.fromAmino(object.twap_window);
|
|
132
|
+
}
|
|
133
|
+
if (object.max_price_deviation_bps !== undefined && object.max_price_deviation_bps !== null) {
|
|
134
|
+
message.maxPriceDeviationBps = BigInt(object.max_price_deviation_bps);
|
|
135
|
+
}
|
|
136
|
+
message.feedContractsParams = object.feed_contracts_params?.map(e => any_1.Any.fromAmino(e)) || [];
|
|
137
|
+
if (object.price_retention !== undefined && object.price_retention !== null) {
|
|
138
|
+
message.priceRetention = duration_1.Duration.fromAmino(object.price_retention);
|
|
139
|
+
}
|
|
140
|
+
if (object.prune_epoch !== undefined && object.prune_epoch !== null) {
|
|
141
|
+
message.pruneEpoch = object.prune_epoch;
|
|
142
|
+
}
|
|
143
|
+
if (object.max_prune_per_epoch !== undefined && object.max_prune_per_epoch !== null) {
|
|
144
|
+
message.maxPrunePerEpoch = BigInt(object.max_prune_per_epoch);
|
|
145
|
+
}
|
|
146
|
+
if (object.max_future_time_drift !== undefined && object.max_future_time_drift !== null) {
|
|
147
|
+
message.maxFutureTimeDrift = duration_1.Duration.fromAmino(object.max_future_time_drift);
|
|
148
|
+
}
|
|
149
|
+
return message;
|
|
150
|
+
},
|
|
151
|
+
toAmino(message) {
|
|
152
|
+
const obj = {};
|
|
153
|
+
if (message.sources) {
|
|
154
|
+
obj.sources = message.sources.map(e => e);
|
|
155
|
+
}
|
|
156
|
+
else {
|
|
157
|
+
obj.sources = message.sources;
|
|
158
|
+
}
|
|
159
|
+
obj.min_price_sources = message.minPriceSources === 0 ? undefined : message.minPriceSources;
|
|
160
|
+
obj.max_price_staleness_period = message.maxPriceStalenessPeriod ? duration_1.Duration.toAmino(message.maxPriceStalenessPeriod) : duration_1.Duration.toAmino(duration_1.Duration.fromPartial({}));
|
|
161
|
+
obj.twap_window = message.twapWindow ? duration_1.Duration.toAmino(message.twapWindow) : duration_1.Duration.toAmino(duration_1.Duration.fromPartial({}));
|
|
162
|
+
obj.max_price_deviation_bps = message.maxPriceDeviationBps !== BigInt(0) ? message.maxPriceDeviationBps?.toString() : undefined;
|
|
163
|
+
if (message.feedContractsParams) {
|
|
164
|
+
obj.feed_contracts_params = message.feedContractsParams.map(e => e ? any_1.Any.toAmino(e) : undefined);
|
|
165
|
+
}
|
|
166
|
+
else {
|
|
167
|
+
obj.feed_contracts_params = message.feedContractsParams;
|
|
168
|
+
}
|
|
169
|
+
obj.price_retention = message.priceRetention ? duration_1.Duration.toAmino(message.priceRetention) : duration_1.Duration.toAmino(duration_1.Duration.fromPartial({}));
|
|
170
|
+
obj.prune_epoch = message.pruneEpoch ?? "";
|
|
171
|
+
obj.max_prune_per_epoch = message.maxPrunePerEpoch !== BigInt(0) ? message.maxPrunePerEpoch?.toString() : undefined;
|
|
172
|
+
obj.max_future_time_drift = message.maxFutureTimeDrift ? duration_1.Duration.toAmino(message.maxFutureTimeDrift) : duration_1.Duration.toAmino(duration_1.Duration.fromPartial({}));
|
|
173
|
+
return obj;
|
|
174
|
+
},
|
|
175
|
+
fromAminoMsg(object) {
|
|
176
|
+
return exports.Params.fromAmino(object.value);
|
|
177
|
+
},
|
|
178
|
+
fromProtoMsg(message) {
|
|
179
|
+
return exports.Params.decode(message.value);
|
|
180
|
+
},
|
|
181
|
+
toProto(message) {
|
|
182
|
+
return exports.Params.encode(message).finish();
|
|
183
|
+
},
|
|
184
|
+
toProtoMsg(message) {
|
|
185
|
+
return {
|
|
186
|
+
typeUrl: "/akash.oracle.v2.Params",
|
|
187
|
+
value: exports.Params.encode(message).finish()
|
|
188
|
+
};
|
|
189
|
+
}
|
|
190
|
+
};
|