@akashnetwork/chain-sdk 1.0.0-alpha.26 → 1.0.0-alpha.28
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/dist/cjs/generated/createNodeSDK.cjs +65 -23
- package/dist/cjs/generated/createNodeSDK.cjs.map +2 -2
- package/dist/cjs/generated/patches/nodeCustomTypePatches.cjs +27 -0
- package/dist/cjs/generated/patches/nodeCustomTypePatches.cjs.map +2 -2
- package/dist/cjs/generated/protos/akash/bme/v1/events.cjs +152 -9
- package/dist/cjs/generated/protos/akash/bme/v1/events.cjs.map +2 -2
- package/dist/cjs/generated/protos/akash/bme/v1/filters.cjs.map +1 -1
- package/dist/cjs/generated/protos/akash/bme/v1/params.cjs +19 -2
- package/dist/cjs/generated/protos/akash/bme/v1/params.cjs.map +2 -2
- package/dist/cjs/generated/protos/akash/bme/v1/query.cjs +17 -2
- package/dist/cjs/generated/protos/akash/bme/v1/query.cjs.map +2 -2
- package/dist/cjs/generated/protos/akash/bme/v1/types.cjs +171 -53
- package/dist/cjs/generated/protos/akash/bme/v1/types.cjs.map +3 -3
- package/dist/cjs/generated/protos/akash/oracle/v1/events.cjs +60 -40
- package/dist/cjs/generated/protos/akash/oracle/v1/events.cjs.map +2 -2
- package/dist/cjs/generated/protos/akash/oracle/v2/events.cjs +428 -0
- package/dist/cjs/generated/protos/akash/oracle/v2/events.cjs.map +7 -0
- package/dist/cjs/generated/protos/akash/oracle/v2/genesis.cjs +287 -0
- package/dist/cjs/generated/protos/akash/oracle/v2/genesis.cjs.map +7 -0
- package/dist/cjs/generated/protos/akash/oracle/v2/msgs.cjs +302 -0
- package/dist/cjs/generated/protos/akash/oracle/v2/msgs.cjs.map +7 -0
- package/dist/cjs/generated/protos/akash/oracle/v2/params.cjs +239 -0
- package/dist/cjs/generated/protos/akash/oracle/v2/params.cjs.map +7 -0
- package/dist/cjs/generated/protos/akash/oracle/v2/prices.cjs +826 -0
- package/dist/cjs/generated/protos/akash/oracle/v2/prices.cjs.map +7 -0
- package/dist/cjs/generated/protos/akash/oracle/v2/query.cjs +499 -0
- package/dist/cjs/generated/protos/akash/oracle/v2/query.cjs.map +7 -0
- package/dist/cjs/generated/protos/akash/oracle/v2/query_akash.cjs +57 -0
- package/dist/cjs/generated/protos/akash/oracle/v2/query_akash.cjs.map +7 -0
- package/dist/cjs/generated/protos/akash/oracle/v2/service.cjs +17 -0
- package/dist/cjs/generated/protos/akash/oracle/v2/service.cjs.map +7 -0
- package/dist/cjs/generated/protos/akash/oracle/v2/service_akash.cjs +46 -0
- package/dist/cjs/generated/protos/akash/oracle/v2/service_akash.cjs.map +7 -0
- package/dist/cjs/generated/protos/index.akash.v1.cjs +5 -2
- package/dist/cjs/generated/protos/index.akash.v1.cjs.map +2 -2
- package/dist/cjs/generated/protos/index.akash.v2.cjs +57 -0
- package/dist/cjs/generated/protos/index.akash.v2.cjs.map +7 -0
- package/dist/cjs/utils/yaml.cjs +3 -0
- package/dist/cjs/utils/yaml.cjs.map +2 -2
- package/dist/esm/chunk-4AX2DFWM.js +459 -0
- package/dist/esm/chunk-4AX2DFWM.js.map +7 -0
- package/dist/esm/{chunk-NK3HEQIK.js → chunk-5CNNJS3V.js} +5 -5
- package/dist/esm/{chunk-VG4MSYO3.js → chunk-5RTSSO7K.js} +2 -2
- package/dist/esm/{chunk-NLEJ4EGX.js → chunk-67IG5SEC.js} +4 -4
- package/dist/esm/{chunk-FFDPZFUZ.js → chunk-67IN34AN.js} +5 -5
- package/dist/esm/{chunk-Z3KCQDCI.js → chunk-7ZECBWMX.js} +2 -2
- package/dist/esm/{chunk-GKCTHQR4.js → chunk-ABUJVUFW.js} +2 -2
- package/dist/esm/{chunk-TEBPN52A.js → chunk-B4MMOAAO.js} +2 -2
- package/dist/esm/{chunk-ULXT5CMX.js → chunk-CSHWHZAN.js} +3 -3
- package/dist/esm/{chunk-EREBC2UQ.js → chunk-GOT4YWEE.js} +4 -4
- package/dist/esm/{chunk-XCOULB5P.js → chunk-GPNENANV.js} +2 -2
- package/dist/esm/{chunk-DZA4DZ5G.js → chunk-HDAINZXA.js} +8 -8
- package/dist/esm/chunk-IK3BT54L.js +989 -0
- package/dist/esm/chunk-IK3BT54L.js.map +7 -0
- package/dist/esm/{chunk-OL4JUIQC.js → chunk-JAPXWQ3D.js} +21 -5
- package/dist/esm/chunk-JAPXWQ3D.js.map +7 -0
- package/dist/esm/{chunk-33CSM66D.js → chunk-JSSYCEVK.js} +4 -4
- package/dist/esm/{chunk-MMLVMSLL.js → chunk-MHDIR7F3.js} +2 -2
- package/dist/esm/{chunk-MJQJUDLN.js → chunk-MWE2RSPA.js} +4 -4
- package/dist/esm/{chunk-LGAXM6RX.js → chunk-PFJG3V3A.js} +193 -59
- package/dist/esm/chunk-PFJG3V3A.js.map +7 -0
- package/dist/esm/{chunk-KPF2DJHF.js → chunk-PKKLQO24.js} +5 -5
- package/dist/esm/{chunk-W2NIWBGD.js → chunk-PN5ITHYB.js} +90 -45
- package/dist/esm/{chunk-W2NIWBGD.js.map → chunk-PN5ITHYB.js.map} +2 -2
- package/dist/esm/{chunk-CPH6LY54.js → chunk-PVFWFANN.js} +2 -2
- package/dist/esm/{chunk-GEEFQK3U.js → chunk-QIS4LLV4.js} +28 -1
- package/dist/esm/chunk-QIS4LLV4.js.map +7 -0
- package/dist/esm/{chunk-DFTJWAGU.js → chunk-SJLQ462M.js} +4 -4
- package/dist/esm/chunk-SQBIPP3B.js +259 -0
- package/dist/esm/chunk-SQBIPP3B.js.map +7 -0
- package/dist/esm/{chunk-CWUY6LIH.js → chunk-T4KWTZ3E.js} +3 -3
- package/dist/esm/{chunk-YKBRNXZM.js → chunk-T7LAPKN5.js} +2 -2
- package/dist/esm/{chunk-XIHNXIBW.js → chunk-UKRRRF5V.js} +4 -4
- package/dist/esm/{chunk-BLN3B4MW.js → chunk-VC2S4TB4.js} +3 -3
- package/dist/esm/{chunk-FXRP7A3E.js → chunk-VZZ4GN23.js} +2 -2
- package/dist/esm/{chunk-5LJZW6XW.js → chunk-WMUEPNSU.js} +4 -4
- package/dist/esm/{chunk-OAFZZVHG.js → chunk-WU3UGZP6.js} +2 -2
- package/dist/esm/{chunk-7WA6OZCK.js → chunk-XPU3NKM5.js} +5 -5
- package/dist/esm/{chunk-V2U5JQHJ.js → chunk-Y2T5VNY5.js} +2 -2
- package/dist/esm/{chunk-IBPHW6GW.js → chunk-YAWU44BQ.js} +4 -4
- package/dist/esm/{chunk-BNXSING3.js → chunk-ZV4RZMBN.js} +4 -4
- package/dist/esm/generated/protos/index.akash.v1.js +273 -106
- package/dist/esm/generated/protos/index.akash.v1.js.map +2 -2
- package/dist/esm/generated/protos/index.akash.v1beta4.js +5 -5
- package/dist/esm/generated/protos/index.akash.v1beta5.js +5 -5
- package/dist/esm/generated/protos/index.akash.v2.js +681 -0
- package/dist/esm/generated/protos/index.akash.v2.js.map +7 -0
- package/dist/esm/generated/protos/index.cosmos.abci.js +4 -4
- package/dist/esm/generated/protos/index.cosmos.v1.js +25 -25
- package/dist/esm/generated/protos/index.cosmos.v1beta1.js +76 -76
- package/dist/esm/generated/protos/index.ibc.v1.js +4 -4
- package/dist/esm/generated/protos/index.provider.akash.v1.js +14 -14
- package/dist/esm/generated/protos/index.tendermint.abci.js +2 -2
- package/dist/esm/generated/protos/index.tendermint.types.js +7 -7
- package/dist/esm/{grpc_akash-WPXYPHAW.js → grpc_akash-YXP225OJ.js} +5 -5
- package/dist/esm/index.js +8 -8
- package/dist/esm/index.web.js +8 -8
- package/dist/esm/{query_akash-347IWP76.js → query_akash-3LAHGVQJ.js} +6 -6
- package/dist/esm/{query_akash-EHAEDYOH.js → query_akash-3UBRLLRZ.js} +5 -5
- package/dist/esm/{query_akash-2XAWK4QC.js → query_akash-CKZRI7R6.js} +5 -5
- package/dist/esm/{query_akash-ZYKYGHGB.js → query_akash-EEPQJYKA.js} +3 -3
- package/dist/esm/{query_akash-GKNMAC72.js → query_akash-FU3ACWAO.js} +6 -6
- package/dist/esm/{query_akash-O2VK7XI7.js → query_akash-JGZ2VS5H.js} +4 -4
- package/dist/esm/{query_akash-LQWOK2TQ.js → query_akash-K53WZSU3.js} +7 -7
- package/dist/esm/{query_akash-J6WGNFRM.js → query_akash-NELAC6IV.js} +3 -3
- package/dist/esm/{query_akash-LHHLETWS.js → query_akash-QMVZT2ZN.js} +5 -5
- package/dist/esm/query_akash-QW7MA3NO.js +53 -0
- package/dist/esm/query_akash-QW7MA3NO.js.map +7 -0
- package/dist/esm/query_akash-RNOEMF2J.js +1 -1
- package/dist/esm/{query_akash-AQHBNLRW.js → query_akash-TKFQCVYV.js} +3 -3
- package/dist/esm/{query_akash-LK7RYFHN.js → query_akash-UVZZQTKV.js} +4 -4
- package/dist/esm/{query_akash-IST3STNQ.js → query_akash-X76NVZ2L.js} +5 -5
- package/dist/esm/service_akash-3DIKTIOI.js +39 -0
- package/dist/esm/service_akash-3DIKTIOI.js.map +7 -0
- package/dist/esm/{service_akash-WPIJ5Y3Z.js → service_akash-CM7RP67D.js} +7 -7
- package/dist/esm/{service_akash-WLSC2YDO.js → service_akash-DSFYKCTK.js} +4 -4
- package/dist/esm/{service_akash-TSQPNG54.js → service_akash-UFTUJDPM.js} +4 -4
- package/dist/esm/{tx_akash-FXR4FY7E.js → tx_akash-3ZAQZWMP.js} +4 -4
- package/dist/esm/{tx_akash-U5OICQIY.js → tx_akash-FCS2KVR7.js} +4 -4
- package/dist/esm/tx_akash-XMYD5SGR.js +1 -1
- package/dist/esm/{tx_akash-2CJAERYQ.js → tx_akash-YHLPPFSA.js} +6 -6
- package/dist/esm/{types_akash-NO63F5II.js → types_akash-LWHM4M7S.js} +3 -3
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/generated/createNodeSDK.d.ts +73 -5
- package/dist/types/generated/patches/nodeCustomTypePatches.d.ts +28 -0
- package/dist/types/generated/protos/akash/bme/v1/events.d.ts +24 -4
- package/dist/types/generated/protos/akash/bme/v1/filters.d.ts +1 -1
- package/dist/types/generated/protos/akash/bme/v1/params.d.ts +3 -0
- package/dist/types/generated/protos/akash/bme/v1/query.d.ts +3 -1
- package/dist/types/generated/protos/akash/bme/v1/types.d.ts +33 -5
- package/dist/types/generated/protos/akash/oracle/v1/events.d.ts +6 -5
- package/dist/types/generated/protos/akash/oracle/v2/events.d.ts +47 -0
- package/dist/types/generated/protos/akash/oracle/v2/genesis.d.ts +34 -0
- package/dist/types/generated/protos/akash/oracle/v2/msgs.d.ts +50 -0
- package/dist/types/generated/protos/akash/oracle/v2/params.d.ts +34 -0
- package/dist/types/generated/protos/akash/oracle/v2/prices.d.ts +97 -0
- package/dist/types/generated/protos/akash/oracle/v2/query.d.ts +56 -0
- package/dist/types/generated/protos/akash/oracle/v2/query_akash.d.ts +27 -0
- package/dist/types/generated/protos/akash/oracle/v2/service.d.ts +1 -0
- package/dist/types/generated/protos/akash/oracle/v2/service_akash.d.ts +18 -0
- package/dist/types/generated/protos/index.akash.v1.d.ts +3 -3
- package/dist/types/generated/protos/index.akash.v2.d.ts +6 -0
- package/dist/types/sdk/chain/createChainNodeSDK.d.ts +7 -0
- package/dist/types/sdk/chain/createChainNodeWebSDK.d.ts +7 -0
- package/dist/types/utils/yaml.d.ts +1 -0
- package/package.json +1 -1
- package/dist/esm/chunk-GEEFQK3U.js.map +0 -7
- package/dist/esm/chunk-LGAXM6RX.js.map +0 -7
- package/dist/esm/chunk-OL4JUIQC.js.map +0 -7
- /package/dist/esm/{chunk-NK3HEQIK.js.map → chunk-5CNNJS3V.js.map} +0 -0
- /package/dist/esm/{chunk-VG4MSYO3.js.map → chunk-5RTSSO7K.js.map} +0 -0
- /package/dist/esm/{chunk-NLEJ4EGX.js.map → chunk-67IG5SEC.js.map} +0 -0
- /package/dist/esm/{chunk-FFDPZFUZ.js.map → chunk-67IN34AN.js.map} +0 -0
- /package/dist/esm/{chunk-Z3KCQDCI.js.map → chunk-7ZECBWMX.js.map} +0 -0
- /package/dist/esm/{chunk-GKCTHQR4.js.map → chunk-ABUJVUFW.js.map} +0 -0
- /package/dist/esm/{chunk-TEBPN52A.js.map → chunk-B4MMOAAO.js.map} +0 -0
- /package/dist/esm/{chunk-ULXT5CMX.js.map → chunk-CSHWHZAN.js.map} +0 -0
- /package/dist/esm/{chunk-EREBC2UQ.js.map → chunk-GOT4YWEE.js.map} +0 -0
- /package/dist/esm/{chunk-XCOULB5P.js.map → chunk-GPNENANV.js.map} +0 -0
- /package/dist/esm/{chunk-DZA4DZ5G.js.map → chunk-HDAINZXA.js.map} +0 -0
- /package/dist/esm/{chunk-33CSM66D.js.map → chunk-JSSYCEVK.js.map} +0 -0
- /package/dist/esm/{chunk-MMLVMSLL.js.map → chunk-MHDIR7F3.js.map} +0 -0
- /package/dist/esm/{chunk-MJQJUDLN.js.map → chunk-MWE2RSPA.js.map} +0 -0
- /package/dist/esm/{chunk-KPF2DJHF.js.map → chunk-PKKLQO24.js.map} +0 -0
- /package/dist/esm/{chunk-CPH6LY54.js.map → chunk-PVFWFANN.js.map} +0 -0
- /package/dist/esm/{chunk-DFTJWAGU.js.map → chunk-SJLQ462M.js.map} +0 -0
- /package/dist/esm/{chunk-CWUY6LIH.js.map → chunk-T4KWTZ3E.js.map} +0 -0
- /package/dist/esm/{chunk-YKBRNXZM.js.map → chunk-T7LAPKN5.js.map} +0 -0
- /package/dist/esm/{chunk-XIHNXIBW.js.map → chunk-UKRRRF5V.js.map} +0 -0
- /package/dist/esm/{chunk-BLN3B4MW.js.map → chunk-VC2S4TB4.js.map} +0 -0
- /package/dist/esm/{chunk-FXRP7A3E.js.map → chunk-VZZ4GN23.js.map} +0 -0
- /package/dist/esm/{chunk-5LJZW6XW.js.map → chunk-WMUEPNSU.js.map} +0 -0
- /package/dist/esm/{chunk-OAFZZVHG.js.map → chunk-WU3UGZP6.js.map} +0 -0
- /package/dist/esm/{chunk-7WA6OZCK.js.map → chunk-XPU3NKM5.js.map} +0 -0
- /package/dist/esm/{chunk-V2U5JQHJ.js.map → chunk-Y2T5VNY5.js.map} +0 -0
- /package/dist/esm/{chunk-IBPHW6GW.js.map → chunk-YAWU44BQ.js.map} +0 -0
- /package/dist/esm/{chunk-BNXSING3.js.map → chunk-ZV4RZMBN.js.map} +0 -0
- /package/dist/esm/{grpc_akash-WPXYPHAW.js.map → grpc_akash-YXP225OJ.js.map} +0 -0
- /package/dist/esm/{query_akash-347IWP76.js.map → query_akash-3LAHGVQJ.js.map} +0 -0
- /package/dist/esm/{query_akash-EHAEDYOH.js.map → query_akash-3UBRLLRZ.js.map} +0 -0
- /package/dist/esm/{query_akash-2XAWK4QC.js.map → query_akash-CKZRI7R6.js.map} +0 -0
- /package/dist/esm/{query_akash-ZYKYGHGB.js.map → query_akash-EEPQJYKA.js.map} +0 -0
- /package/dist/esm/{query_akash-GKNMAC72.js.map → query_akash-FU3ACWAO.js.map} +0 -0
- /package/dist/esm/{query_akash-O2VK7XI7.js.map → query_akash-JGZ2VS5H.js.map} +0 -0
- /package/dist/esm/{query_akash-LQWOK2TQ.js.map → query_akash-K53WZSU3.js.map} +0 -0
- /package/dist/esm/{query_akash-J6WGNFRM.js.map → query_akash-NELAC6IV.js.map} +0 -0
- /package/dist/esm/{query_akash-LHHLETWS.js.map → query_akash-QMVZT2ZN.js.map} +0 -0
- /package/dist/esm/{query_akash-AQHBNLRW.js.map → query_akash-TKFQCVYV.js.map} +0 -0
- /package/dist/esm/{query_akash-LK7RYFHN.js.map → query_akash-UVZZQTKV.js.map} +0 -0
- /package/dist/esm/{query_akash-IST3STNQ.js.map → query_akash-X76NVZ2L.js.map} +0 -0
- /package/dist/esm/{service_akash-WPIJ5Y3Z.js.map → service_akash-CM7RP67D.js.map} +0 -0
- /package/dist/esm/{service_akash-WLSC2YDO.js.map → service_akash-DSFYKCTK.js.map} +0 -0
- /package/dist/esm/{service_akash-TSQPNG54.js.map → service_akash-UFTUJDPM.js.map} +0 -0
- /package/dist/esm/{tx_akash-FXR4FY7E.js.map → tx_akash-3ZAQZWMP.js.map} +0 -0
- /package/dist/esm/{tx_akash-U5OICQIY.js.map → tx_akash-FCS2KVR7.js.map} +0 -0
- /package/dist/esm/{tx_akash-2CJAERYQ.js.map → tx_akash-YHLPPFSA.js.map} +0 -0
- /package/dist/esm/{types_akash-NO63F5II.js.map → types_akash-LWHM4M7S.js.map} +0 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../../../src/generated/protos/akash/oracle/v2/prices.ts"],
|
|
4
|
+
"sourcesContent": ["import { patched } from \"../../../../patches/nodePatchMessage.ts\";\nimport { toTimestamp, fromTimestamp, fromJsonTimestamp, numberToLong, isSet } from \"../../../../../encoding/typeEncodingHelpers.ts\"\nimport type { DeepPartial, MessageFns } from \"../../../../../encoding/typeEncodingHelpers.ts\"\n// Code generated by protoc-gen-ts_proto. DO NOT EDIT.\n// versions:\n// protoc-gen-ts_proto v2.7.7\n// protoc unknown\n// source: akash/oracle/v2/prices.proto\n\n/* eslint-disable */\nimport { BinaryReader, BinaryWriter } from \"@bufbuild/protobuf/wire\";\nimport Long from \"long\";\nimport { Timestamp } from \"../../../google/protobuf/timestamp.ts\";\n\n/** DataID uniquely identifies a price pair by asset and base denomination */\nexport interface DataID {\n /** denom is the asset denomination (e.g., \"uakt\") */\n denom: string;\n /** base_denom is the base denomination for the price pair (e.g., \"usd\") */\n baseDenom: string;\n}\n\n/** PriceDataID identifies price data from a specific source for a specific pair */\nexport interface PriceDataID {\n /** source is the index of the price source (oracle provider) */\n source: number;\n /** denom is the asset denomination */\n denom: string;\n /** base_denom is the base denomination for the price pair */\n baseDenom: string;\n}\n\n/** PriceLatestDataState holds the timestamp of the most recent price record for a source/pair */\nexport interface PriceLatestDataState {\n /** timestamp is when the price was recorded */\n timestamp:\n | Date\n | undefined;\n /** sequence disambiguates multiple price entries at the same timestamp */\n sequence: Long;\n}\n\n/**\n * PriceDataRecordID represents a price from a specific source at a specific time.\n * It also represents a single data point in TWAP history\n */\nexport interface PriceDataRecordID {\n /** source is the index of the price source (oracle provider) */\n source: number;\n /** denom is the asset denomination */\n denom: string;\n /** base_denom is the base denomination for the price pair */\n baseDenom: string;\n /** timestamp is when this price was recorded */\n timestamp:\n | Date\n | undefined;\n /** sequence disambiguates multiple price entries at the same timestamp */\n sequence: Long;\n}\n\n/** PriceDataState represents the price value */\nexport interface PriceDataState {\n /** price is the decimal price value */\n price: string;\n}\n\n/** PriceData combines a price record identifier with its state */\nexport interface PriceData {\n /** id uniquely identifies this price record */\n id:\n | PriceDataRecordID\n | undefined;\n /** state contains the price value and timestamp */\n state: PriceDataState | undefined;\n}\n\n/** AggregatedPrice represents the final aggregated price from all sources */\nexport interface AggregatedPrice {\n /** denom is the asset denomination */\n denom: string;\n /** twap is the time-weighted average price over the configured window */\n twap: string;\n /** median_price is the median of all source prices */\n medianPrice: string;\n /** min_price is the minimum price from all sources */\n minPrice: string;\n /** max_price is the maximum price from all sources */\n maxPrice: string;\n /** timestamp is when the aggregated price was computed */\n timestamp:\n | Date\n | undefined;\n /** num_sources is the number of price sources contributing to this aggregation */\n numSources: number;\n /** deviation_bps is the price deviation in basis points between min and max prices */\n deviationBps: Long;\n}\n\n/** PriceHealth represents the health status of a price feed */\nexport interface PriceHealth {\n /** denom is the asset denomination */\n denom: string;\n /** is_healthy indicates if the price feed meets all health requirements */\n isHealthy: boolean;\n /** has_min_sources indicates if minimum number of sources are reporting */\n hasMinSources: boolean;\n /** deviation_ok indicates if price deviation is within acceptable limits */\n deviationOk: boolean;\n /** total_sources indicates total amount of sources registered for price calculations */\n totalSources: number;\n /** total_healthy_sources indicates total usable sources for price calculations */\n totalHealthySources: number;\n /** failure_reason lists reasons for unhealthy status, if any */\n failureReason: string[];\n}\n\nfunction createBaseDataID(): DataID {\n return { denom: \"\", baseDenom: \"\" };\n}\n\nexport const DataID: MessageFns<DataID, \"akash.oracle.v2.DataID\"> = {\n $type: \"akash.oracle.v2.DataID\" as const,\n\n encode(message: DataID, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.denom !== \"\") {\n writer.uint32(10).string(message.denom);\n }\n if (message.baseDenom !== \"\") {\n writer.uint32(18).string(message.baseDenom);\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): DataID {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseDataID();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1: {\n if (tag !== 10) {\n break;\n }\n\n message.denom = reader.string();\n continue;\n }\n case 2: {\n if (tag !== 18) {\n break;\n }\n\n message.baseDenom = reader.string();\n continue;\n }\n }\n if ((tag & 7) === 4 || tag === 0) {\n break;\n }\n reader.skip(tag & 7);\n }\n return message;\n },\n\n fromJSON(object: any): DataID {\n return {\n denom: isSet(object.denom) ? globalThis.String(object.denom) : \"\",\n baseDenom: isSet(object.base_denom) ? globalThis.String(object.base_denom) : \"\",\n };\n },\n\n toJSON(message: DataID): unknown {\n const obj: any = {};\n if (message.denom !== \"\") {\n obj.denom = message.denom;\n }\n if (message.baseDenom !== \"\") {\n obj.base_denom = message.baseDenom;\n }\n return obj;\n },\n fromPartial(object: DeepPartial<DataID>): DataID {\n const message = createBaseDataID();\n message.denom = object.denom ?? \"\";\n message.baseDenom = object.baseDenom ?? \"\";\n return message;\n },\n};\n\nfunction createBasePriceDataID(): PriceDataID {\n return { source: 0, denom: \"\", baseDenom: \"\" };\n}\n\nexport const PriceDataID: MessageFns<PriceDataID, \"akash.oracle.v2.PriceDataID\"> = {\n $type: \"akash.oracle.v2.PriceDataID\" as const,\n\n encode(message: PriceDataID, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.source !== 0) {\n writer.uint32(8).uint32(message.source);\n }\n if (message.denom !== \"\") {\n writer.uint32(18).string(message.denom);\n }\n if (message.baseDenom !== \"\") {\n writer.uint32(26).string(message.baseDenom);\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): PriceDataID {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBasePriceDataID();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1: {\n if (tag !== 8) {\n break;\n }\n\n message.source = reader.uint32();\n continue;\n }\n case 2: {\n if (tag !== 18) {\n break;\n }\n\n message.denom = reader.string();\n continue;\n }\n case 3: {\n if (tag !== 26) {\n break;\n }\n\n message.baseDenom = reader.string();\n continue;\n }\n }\n if ((tag & 7) === 4 || tag === 0) {\n break;\n }\n reader.skip(tag & 7);\n }\n return message;\n },\n\n fromJSON(object: any): PriceDataID {\n return {\n source: isSet(object.source) ? globalThis.Number(object.source) : 0,\n denom: isSet(object.denom) ? globalThis.String(object.denom) : \"\",\n baseDenom: isSet(object.base_denom) ? globalThis.String(object.base_denom) : \"\",\n };\n },\n\n toJSON(message: PriceDataID): unknown {\n const obj: any = {};\n if (message.source !== 0) {\n obj.source = Math.round(message.source);\n }\n if (message.denom !== \"\") {\n obj.denom = message.denom;\n }\n if (message.baseDenom !== \"\") {\n obj.base_denom = message.baseDenom;\n }\n return obj;\n },\n fromPartial(object: DeepPartial<PriceDataID>): PriceDataID {\n const message = createBasePriceDataID();\n message.source = object.source ?? 0;\n message.denom = object.denom ?? \"\";\n message.baseDenom = object.baseDenom ?? \"\";\n return message;\n },\n};\n\nfunction createBasePriceLatestDataState(): PriceLatestDataState {\n return { timestamp: undefined, sequence: Long.UZERO };\n}\n\nexport const PriceLatestDataState: MessageFns<PriceLatestDataState, \"akash.oracle.v2.PriceLatestDataState\"> = {\n $type: \"akash.oracle.v2.PriceLatestDataState\" as const,\n\n encode(message: PriceLatestDataState, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.timestamp !== undefined) {\n Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(10).fork()).join();\n }\n if (!message.sequence.equals(Long.UZERO)) {\n writer.uint32(40).uint64(message.sequence.toString());\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): PriceLatestDataState {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBasePriceLatestDataState();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1: {\n if (tag !== 10) {\n break;\n }\n\n message.timestamp = fromTimestamp(Timestamp.decode(reader, reader.uint32()));\n continue;\n }\n case 5: {\n if (tag !== 40) {\n break;\n }\n\n message.sequence = Long.fromString(reader.uint64().toString(), true);\n continue;\n }\n }\n if ((tag & 7) === 4 || tag === 0) {\n break;\n }\n reader.skip(tag & 7);\n }\n return message;\n },\n\n fromJSON(object: any): PriceLatestDataState {\n return {\n timestamp: isSet(object.timestamp) ? fromJsonTimestamp(object.timestamp) : undefined,\n sequence: isSet(object.sequence) ? Long.fromValue(object.sequence) : Long.UZERO,\n };\n },\n\n toJSON(message: PriceLatestDataState): unknown {\n const obj: any = {};\n if (message.timestamp !== undefined) {\n obj.timestamp = message.timestamp.toISOString();\n }\n if (!message.sequence.equals(Long.UZERO)) {\n obj.sequence = (message.sequence || Long.UZERO).toString();\n }\n return obj;\n },\n fromPartial(object: DeepPartial<PriceLatestDataState>): PriceLatestDataState {\n const message = createBasePriceLatestDataState();\n message.timestamp = object.timestamp ?? undefined;\n message.sequence = (object.sequence !== undefined && object.sequence !== null)\n ? Long.fromValue(object.sequence)\n : Long.UZERO;\n return message;\n },\n};\n\nfunction createBasePriceDataRecordID(): PriceDataRecordID {\n return { source: 0, denom: \"\", baseDenom: \"\", timestamp: undefined, sequence: Long.UZERO };\n}\n\nexport const PriceDataRecordID: MessageFns<PriceDataRecordID, \"akash.oracle.v2.PriceDataRecordID\"> = {\n $type: \"akash.oracle.v2.PriceDataRecordID\" as const,\n\n encode(message: PriceDataRecordID, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.source !== 0) {\n writer.uint32(8).uint32(message.source);\n }\n if (message.denom !== \"\") {\n writer.uint32(18).string(message.denom);\n }\n if (message.baseDenom !== \"\") {\n writer.uint32(26).string(message.baseDenom);\n }\n if (message.timestamp !== undefined) {\n Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(34).fork()).join();\n }\n if (!message.sequence.equals(Long.UZERO)) {\n writer.uint32(40).uint64(message.sequence.toString());\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): PriceDataRecordID {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBasePriceDataRecordID();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1: {\n if (tag !== 8) {\n break;\n }\n\n message.source = reader.uint32();\n continue;\n }\n case 2: {\n if (tag !== 18) {\n break;\n }\n\n message.denom = reader.string();\n continue;\n }\n case 3: {\n if (tag !== 26) {\n break;\n }\n\n message.baseDenom = reader.string();\n continue;\n }\n case 4: {\n if (tag !== 34) {\n break;\n }\n\n message.timestamp = fromTimestamp(Timestamp.decode(reader, reader.uint32()));\n continue;\n }\n case 5: {\n if (tag !== 40) {\n break;\n }\n\n message.sequence = Long.fromString(reader.uint64().toString(), true);\n continue;\n }\n }\n if ((tag & 7) === 4 || tag === 0) {\n break;\n }\n reader.skip(tag & 7);\n }\n return message;\n },\n\n fromJSON(object: any): PriceDataRecordID {\n return {\n source: isSet(object.source) ? globalThis.Number(object.source) : 0,\n denom: isSet(object.denom) ? globalThis.String(object.denom) : \"\",\n baseDenom: isSet(object.base_denom) ? globalThis.String(object.base_denom) : \"\",\n timestamp: isSet(object.timestamp) ? fromJsonTimestamp(object.timestamp) : undefined,\n sequence: isSet(object.sequence) ? Long.fromValue(object.sequence) : Long.UZERO,\n };\n },\n\n toJSON(message: PriceDataRecordID): unknown {\n const obj: any = {};\n if (message.source !== 0) {\n obj.source = Math.round(message.source);\n }\n if (message.denom !== \"\") {\n obj.denom = message.denom;\n }\n if (message.baseDenom !== \"\") {\n obj.base_denom = message.baseDenom;\n }\n if (message.timestamp !== undefined) {\n obj.timestamp = message.timestamp.toISOString();\n }\n if (!message.sequence.equals(Long.UZERO)) {\n obj.sequence = (message.sequence || Long.UZERO).toString();\n }\n return obj;\n },\n fromPartial(object: DeepPartial<PriceDataRecordID>): PriceDataRecordID {\n const message = createBasePriceDataRecordID();\n message.source = object.source ?? 0;\n message.denom = object.denom ?? \"\";\n message.baseDenom = object.baseDenom ?? \"\";\n message.timestamp = object.timestamp ?? undefined;\n message.sequence = (object.sequence !== undefined && object.sequence !== null)\n ? Long.fromValue(object.sequence)\n : Long.UZERO;\n return message;\n },\n};\n\nfunction createBasePriceDataState(): PriceDataState {\n return { price: \"\" };\n}\n\nconst _PriceDataState: MessageFns<PriceDataState, \"akash.oracle.v2.PriceDataState\"> = {\n $type: \"akash.oracle.v2.PriceDataState\" as const,\n\n encode(message: PriceDataState, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.price !== \"\") {\n writer.uint32(10).string(message.price);\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): PriceDataState {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBasePriceDataState();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1: {\n if (tag !== 10) {\n break;\n }\n\n message.price = reader.string();\n continue;\n }\n }\n if ((tag & 7) === 4 || tag === 0) {\n break;\n }\n reader.skip(tag & 7);\n }\n return message;\n },\n\n fromJSON(object: any): PriceDataState {\n return { price: isSet(object.price) ? globalThis.String(object.price) : \"\" };\n },\n\n toJSON(message: PriceDataState): unknown {\n const obj: any = {};\n if (message.price !== \"\") {\n obj.price = message.price;\n }\n return obj;\n },\n fromPartial(object: DeepPartial<PriceDataState>): PriceDataState {\n const message = createBasePriceDataState();\n message.price = object.price ?? \"\";\n return message;\n },\n};\n\nfunction createBasePriceData(): PriceData {\n return { id: undefined, state: undefined };\n}\n\nexport const PriceData: MessageFns<PriceData, \"akash.oracle.v2.PriceData\"> = {\n $type: \"akash.oracle.v2.PriceData\" as const,\n\n encode(message: PriceData, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.id !== undefined) {\n PriceDataRecordID.encode(message.id, writer.uint32(10).fork()).join();\n }\n if (message.state !== undefined) {\n PriceDataState.encode(message.state, writer.uint32(18).fork()).join();\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): PriceData {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBasePriceData();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1: {\n if (tag !== 10) {\n break;\n }\n\n message.id = PriceDataRecordID.decode(reader, reader.uint32());\n continue;\n }\n case 2: {\n if (tag !== 18) {\n break;\n }\n\n message.state = PriceDataState.decode(reader, reader.uint32());\n continue;\n }\n }\n if ((tag & 7) === 4 || tag === 0) {\n break;\n }\n reader.skip(tag & 7);\n }\n return message;\n },\n\n fromJSON(object: any): PriceData {\n return {\n id: isSet(object.id) ? PriceDataRecordID.fromJSON(object.id) : undefined,\n state: isSet(object.state) ? PriceDataState.fromJSON(object.state) : undefined,\n };\n },\n\n toJSON(message: PriceData): unknown {\n const obj: any = {};\n if (message.id !== undefined) {\n obj.id = PriceDataRecordID.toJSON(message.id);\n }\n if (message.state !== undefined) {\n obj.state = PriceDataState.toJSON(message.state);\n }\n return obj;\n },\n fromPartial(object: DeepPartial<PriceData>): PriceData {\n const message = createBasePriceData();\n message.id = (object.id !== undefined && object.id !== null) ? PriceDataRecordID.fromPartial(object.id) : undefined;\n message.state = (object.state !== undefined && object.state !== null)\n ? PriceDataState.fromPartial(object.state)\n : undefined;\n return message;\n },\n};\n\nfunction createBaseAggregatedPrice(): AggregatedPrice {\n return {\n denom: \"\",\n twap: \"\",\n medianPrice: \"\",\n minPrice: \"\",\n maxPrice: \"\",\n timestamp: undefined,\n numSources: 0,\n deviationBps: Long.UZERO,\n };\n}\n\nconst _AggregatedPrice: MessageFns<AggregatedPrice, \"akash.oracle.v2.AggregatedPrice\"> = {\n $type: \"akash.oracle.v2.AggregatedPrice\" as const,\n\n encode(message: AggregatedPrice, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.denom !== \"\") {\n writer.uint32(10).string(message.denom);\n }\n if (message.twap !== \"\") {\n writer.uint32(18).string(message.twap);\n }\n if (message.medianPrice !== \"\") {\n writer.uint32(26).string(message.medianPrice);\n }\n if (message.minPrice !== \"\") {\n writer.uint32(34).string(message.minPrice);\n }\n if (message.maxPrice !== \"\") {\n writer.uint32(42).string(message.maxPrice);\n }\n if (message.timestamp !== undefined) {\n Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(50).fork()).join();\n }\n if (message.numSources !== 0) {\n writer.uint32(56).uint32(message.numSources);\n }\n if (!message.deviationBps.equals(Long.UZERO)) {\n writer.uint32(64).uint64(message.deviationBps.toString());\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): AggregatedPrice {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseAggregatedPrice();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1: {\n if (tag !== 10) {\n break;\n }\n\n message.denom = reader.string();\n continue;\n }\n case 2: {\n if (tag !== 18) {\n break;\n }\n\n message.twap = reader.string();\n continue;\n }\n case 3: {\n if (tag !== 26) {\n break;\n }\n\n message.medianPrice = reader.string();\n continue;\n }\n case 4: {\n if (tag !== 34) {\n break;\n }\n\n message.minPrice = reader.string();\n continue;\n }\n case 5: {\n if (tag !== 42) {\n break;\n }\n\n message.maxPrice = reader.string();\n continue;\n }\n case 6: {\n if (tag !== 50) {\n break;\n }\n\n message.timestamp = fromTimestamp(Timestamp.decode(reader, reader.uint32()));\n continue;\n }\n case 7: {\n if (tag !== 56) {\n break;\n }\n\n message.numSources = reader.uint32();\n continue;\n }\n case 8: {\n if (tag !== 64) {\n break;\n }\n\n message.deviationBps = Long.fromString(reader.uint64().toString(), true);\n continue;\n }\n }\n if ((tag & 7) === 4 || tag === 0) {\n break;\n }\n reader.skip(tag & 7);\n }\n return message;\n },\n\n fromJSON(object: any): AggregatedPrice {\n return {\n denom: isSet(object.denom) ? globalThis.String(object.denom) : \"\",\n twap: isSet(object.twap) ? globalThis.String(object.twap) : \"\",\n medianPrice: isSet(object.median_price) ? globalThis.String(object.median_price) : \"\",\n minPrice: isSet(object.min_price) ? globalThis.String(object.min_price) : \"\",\n maxPrice: isSet(object.max_price) ? globalThis.String(object.max_price) : \"\",\n timestamp: isSet(object.timestamp) ? fromJsonTimestamp(object.timestamp) : undefined,\n numSources: isSet(object.num_sources) ? globalThis.Number(object.num_sources) : 0,\n deviationBps: isSet(object.deviation_bps) ? Long.fromValue(object.deviation_bps) : Long.UZERO,\n };\n },\n\n toJSON(message: AggregatedPrice): unknown {\n const obj: any = {};\n if (message.denom !== \"\") {\n obj.denom = message.denom;\n }\n if (message.twap !== \"\") {\n obj.twap = message.twap;\n }\n if (message.medianPrice !== \"\") {\n obj.median_price = message.medianPrice;\n }\n if (message.minPrice !== \"\") {\n obj.min_price = message.minPrice;\n }\n if (message.maxPrice !== \"\") {\n obj.max_price = message.maxPrice;\n }\n if (message.timestamp !== undefined) {\n obj.timestamp = message.timestamp.toISOString();\n }\n if (message.numSources !== 0) {\n obj.num_sources = Math.round(message.numSources);\n }\n if (!message.deviationBps.equals(Long.UZERO)) {\n obj.deviation_bps = (message.deviationBps || Long.UZERO).toString();\n }\n return obj;\n },\n fromPartial(object: DeepPartial<AggregatedPrice>): AggregatedPrice {\n const message = createBaseAggregatedPrice();\n message.denom = object.denom ?? \"\";\n message.twap = object.twap ?? \"\";\n message.medianPrice = object.medianPrice ?? \"\";\n message.minPrice = object.minPrice ?? \"\";\n message.maxPrice = object.maxPrice ?? \"\";\n message.timestamp = object.timestamp ?? undefined;\n message.numSources = object.numSources ?? 0;\n message.deviationBps = (object.deviationBps !== undefined && object.deviationBps !== null)\n ? Long.fromValue(object.deviationBps)\n : Long.UZERO;\n return message;\n },\n};\n\nfunction createBasePriceHealth(): PriceHealth {\n return {\n denom: \"\",\n isHealthy: false,\n hasMinSources: false,\n deviationOk: false,\n totalSources: 0,\n totalHealthySources: 0,\n failureReason: [],\n };\n}\n\nexport const PriceHealth: MessageFns<PriceHealth, \"akash.oracle.v2.PriceHealth\"> = {\n $type: \"akash.oracle.v2.PriceHealth\" as const,\n\n encode(message: PriceHealth, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.denom !== \"\") {\n writer.uint32(10).string(message.denom);\n }\n if (message.isHealthy !== false) {\n writer.uint32(24).bool(message.isHealthy);\n }\n if (message.hasMinSources !== false) {\n writer.uint32(32).bool(message.hasMinSources);\n }\n if (message.deviationOk !== false) {\n writer.uint32(40).bool(message.deviationOk);\n }\n if (message.totalSources !== 0) {\n writer.uint32(48).uint32(message.totalSources);\n }\n if (message.totalHealthySources !== 0) {\n writer.uint32(56).uint32(message.totalHealthySources);\n }\n for (const v of message.failureReason) {\n writer.uint32(66).string(v!);\n }\n return writer;\n },\n\n decode(input: BinaryReader | Uint8Array, length?: number): PriceHealth {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n const end = length === undefined ? reader.len : reader.pos + length;\n const message = createBasePriceHealth();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1: {\n if (tag !== 10) {\n break;\n }\n\n message.denom = reader.string();\n continue;\n }\n case 3: {\n if (tag !== 24) {\n break;\n }\n\n message.isHealthy = reader.bool();\n continue;\n }\n case 4: {\n if (tag !== 32) {\n break;\n }\n\n message.hasMinSources = reader.bool();\n continue;\n }\n case 5: {\n if (tag !== 40) {\n break;\n }\n\n message.deviationOk = reader.bool();\n continue;\n }\n case 6: {\n if (tag !== 48) {\n break;\n }\n\n message.totalSources = reader.uint32();\n continue;\n }\n case 7: {\n if (tag !== 56) {\n break;\n }\n\n message.totalHealthySources = reader.uint32();\n continue;\n }\n case 8: {\n if (tag !== 66) {\n break;\n }\n\n message.failureReason.push(reader.string());\n continue;\n }\n }\n if ((tag & 7) === 4 || tag === 0) {\n break;\n }\n reader.skip(tag & 7);\n }\n return message;\n },\n\n fromJSON(object: any): PriceHealth {\n return {\n denom: isSet(object.denom) ? globalThis.String(object.denom) : \"\",\n isHealthy: isSet(object.is_healthy) ? globalThis.Boolean(object.is_healthy) : false,\n hasMinSources: isSet(object.has_min_sources) ? globalThis.Boolean(object.has_min_sources) : false,\n deviationOk: isSet(object.deviation_ok) ? globalThis.Boolean(object.deviation_ok) : false,\n totalSources: isSet(object.total_sources) ? globalThis.Number(object.total_sources) : 0,\n totalHealthySources: isSet(object.total_healthy_sources) ? globalThis.Number(object.total_healthy_sources) : 0,\n failureReason: globalThis.Array.isArray(object?.failure_reason)\n ? object.failure_reason.map((e: any) => globalThis.String(e))\n : [],\n };\n },\n\n toJSON(message: PriceHealth): unknown {\n const obj: any = {};\n if (message.denom !== \"\") {\n obj.denom = message.denom;\n }\n if (message.isHealthy !== false) {\n obj.is_healthy = message.isHealthy;\n }\n if (message.hasMinSources !== false) {\n obj.has_min_sources = message.hasMinSources;\n }\n if (message.deviationOk !== false) {\n obj.deviation_ok = message.deviationOk;\n }\n if (message.totalSources !== 0) {\n obj.total_sources = Math.round(message.totalSources);\n }\n if (message.totalHealthySources !== 0) {\n obj.total_healthy_sources = Math.round(message.totalHealthySources);\n }\n if (message.failureReason?.length) {\n obj.failure_reason = message.failureReason;\n }\n return obj;\n },\n fromPartial(object: DeepPartial<PriceHealth>): PriceHealth {\n const message = createBasePriceHealth();\n message.denom = object.denom ?? \"\";\n message.isHealthy = object.isHealthy ?? false;\n message.hasMinSources = object.hasMinSources ?? false;\n message.deviationOk = object.deviationOk ?? false;\n message.totalSources = object.totalSources ?? 0;\n message.totalHealthySources = object.totalHealthySources ?? 0;\n message.failureReason = object.failureReason?.map((e) => e) || [];\n return message;\n },\n};\n\ntype Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;\n\ntype _unused_DeepPartial<T> = T extends Builtin ? T\n : T extends Long ? string | number | Long : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>\n : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>\n : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }\n : Partial<T>;\n\nfunction _unused_toTimestamp(date: Date): Timestamp {\n const seconds = numberToLong(Math.trunc(date.getTime() / 1_000));\n const nanos = (date.getTime() % 1_000) * 1_000_000;\n return { seconds, nanos };\n}\n\nfunction _unused_fromTimestamp(t: Timestamp): Date {\n let millis = (t.seconds.toNumber() || 0) * 1_000;\n millis += (t.nanos || 0) / 1_000_000;\n return new globalThis.Date(millis);\n}\n\nfunction _unused_fromJsonTimestamp(o: any): Date {\n if (o instanceof globalThis.Date) {\n return o;\n } else if (typeof o === \"string\") {\n return new globalThis.Date(o);\n } else {\n return fromTimestamp(Timestamp.fromJSON(o));\n }\n}\n\nfunction _unused_numberToLong(number: number) {\n return Long.fromNumber(number);\n}\n\nfunction _unused_isSet(value: any): boolean {\n return value !== null && value !== undefined;\n}\n\ninterface _unused_MessageFns<T, V extends string> {\n readonly $type: V;\n encode(message: T, writer?: BinaryWriter): BinaryWriter;\n decode(input: BinaryReader | Uint8Array, length?: number): T;\n fromJSON(object: any): T;\n toJSON(message: T): unknown;\n create(base?: DeepPartial<T>): T;\n fromPartial(object: DeepPartial<T>): T;\n}\n\nexport const PriceDataState = patched(_PriceDataState);\nexport const AggregatedPrice = patched(_AggregatedPrice);\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,8BAAwB;AACxB,iCAAmF;AASnF,kBAA2C;AAC3C,kBAAiB;AACjB,uBAA0B;AAyG1B,S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AK,QAAQ,IAAI,MAAS;AACzC,SAAO,EAAE,SAAS,MAAM;AAC1B;AAEA,SAAS,sBAAsB,GAAoB;AACjD,MAAI,UAAU,EAAE,QAAQ,SAAS,KAAK,KAAK;AAC3C,aAAW,EAAE,SAAS,KAAK;AAC3B,SAAO,IAAI,WAAW,KAAK,MAAM;AACnC;AAEA,SAAS,0BAA0B,GAAc;AAC/C,MAAI,aAAa,WAAW,MAAM;AAChC,WAAO;AAAA,EACT,WAAW,OAAO,MAAM,UAAU;AAChC,WAAO,IAAI,WAAW,KAAK,CAAC;AAAA,EAC9B,OAAO;AACL,eAAO,0CAAc,2BAAU,SAAS,CAAC,CAAC;AAAA,EAC5C;AACF;AAEA,SAAS,qBAAqB,QAAgB;AAC5C,SAAO,YAAAA,QAAK,WAAW,MAAM;AAC/B;AAEA,SAAS,cAAc,OAAqB;AAC1C,SAAO,UAAU,QAAQ,UAAU;AACrC;AAYO,MAAM,qBAAiB,iCAAQ,eAAe;AAC9C,MAAM,sBAAkB,iCAAQ,gBAAgB;",
|
|
6
|
+
"names": ["Long"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,499 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var query_exports = {};
|
|
30
|
+
__export(query_exports, {
|
|
31
|
+
PricesFilter: () => PricesFilter,
|
|
32
|
+
QueryAggregatedPriceRequest: () => QueryAggregatedPriceRequest,
|
|
33
|
+
QueryAggregatedPriceResponse: () => QueryAggregatedPriceResponse,
|
|
34
|
+
QueryParamsRequest: () => QueryParamsRequest,
|
|
35
|
+
QueryParamsResponse: () => QueryParamsResponse,
|
|
36
|
+
QueryPricesRequest: () => QueryPricesRequest,
|
|
37
|
+
QueryPricesResponse: () => QueryPricesResponse
|
|
38
|
+
});
|
|
39
|
+
module.exports = __toCommonJS(query_exports);
|
|
40
|
+
var import_typeEncodingHelpers = require("../../../../../encoding/typeEncodingHelpers.cjs");
|
|
41
|
+
var import_wire = require("@bufbuild/protobuf/wire");
|
|
42
|
+
var import_long = __toESM(require("long"), 1);
|
|
43
|
+
var import_pagination = require("../../../cosmos/base/query/v1beta1/pagination.cjs");
|
|
44
|
+
var import_timestamp = require("../../../google/protobuf/timestamp.cjs");
|
|
45
|
+
var import_params = require("./params.cjs");
|
|
46
|
+
var import_prices = require("./prices.cjs");
|
|
47
|
+
function createBasePricesFilter() {
|
|
48
|
+
return { assetDenom: "", baseDenom: "", startTime: void 0, endTime: void 0 };
|
|
49
|
+
}
|
|
50
|
+
const PricesFilter = {
|
|
51
|
+
$type: "akash.oracle.v2.PricesFilter",
|
|
52
|
+
encode(message, writer = new import_wire.BinaryWriter()) {
|
|
53
|
+
if (message.assetDenom !== "") {
|
|
54
|
+
writer.uint32(10).string(message.assetDenom);
|
|
55
|
+
}
|
|
56
|
+
if (message.baseDenom !== "") {
|
|
57
|
+
writer.uint32(18).string(message.baseDenom);
|
|
58
|
+
}
|
|
59
|
+
if (message.startTime !== void 0) {
|
|
60
|
+
import_timestamp.Timestamp.encode((0, import_typeEncodingHelpers.toTimestamp)(message.startTime), writer.uint32(26).fork()).join();
|
|
61
|
+
}
|
|
62
|
+
if (message.endTime !== void 0) {
|
|
63
|
+
import_timestamp.Timestamp.encode((0, import_typeEncodingHelpers.toTimestamp)(message.endTime), writer.uint32(34).fork()).join();
|
|
64
|
+
}
|
|
65
|
+
return writer;
|
|
66
|
+
},
|
|
67
|
+
decode(input, length) {
|
|
68
|
+
const reader = input instanceof import_wire.BinaryReader ? input : new import_wire.BinaryReader(input);
|
|
69
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
70
|
+
const message = createBasePricesFilter();
|
|
71
|
+
while (reader.pos < end) {
|
|
72
|
+
const tag = reader.uint32();
|
|
73
|
+
switch (tag >>> 3) {
|
|
74
|
+
case 1: {
|
|
75
|
+
if (tag !== 10) {
|
|
76
|
+
break;
|
|
77
|
+
}
|
|
78
|
+
message.assetDenom = reader.string();
|
|
79
|
+
continue;
|
|
80
|
+
}
|
|
81
|
+
case 2: {
|
|
82
|
+
if (tag !== 18) {
|
|
83
|
+
break;
|
|
84
|
+
}
|
|
85
|
+
message.baseDenom = reader.string();
|
|
86
|
+
continue;
|
|
87
|
+
}
|
|
88
|
+
case 3: {
|
|
89
|
+
if (tag !== 26) {
|
|
90
|
+
break;
|
|
91
|
+
}
|
|
92
|
+
message.startTime = (0, import_typeEncodingHelpers.fromTimestamp)(import_timestamp.Timestamp.decode(reader, reader.uint32()));
|
|
93
|
+
continue;
|
|
94
|
+
}
|
|
95
|
+
case 4: {
|
|
96
|
+
if (tag !== 34) {
|
|
97
|
+
break;
|
|
98
|
+
}
|
|
99
|
+
message.endTime = (0, import_typeEncodingHelpers.fromTimestamp)(import_timestamp.Timestamp.decode(reader, reader.uint32()));
|
|
100
|
+
continue;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
104
|
+
break;
|
|
105
|
+
}
|
|
106
|
+
reader.skip(tag & 7);
|
|
107
|
+
}
|
|
108
|
+
return message;
|
|
109
|
+
},
|
|
110
|
+
fromJSON(object) {
|
|
111
|
+
return {
|
|
112
|
+
assetDenom: (0, import_typeEncodingHelpers.isSet)(object.asset_denom) ? globalThis.String(object.asset_denom) : "",
|
|
113
|
+
baseDenom: (0, import_typeEncodingHelpers.isSet)(object.base_denom) ? globalThis.String(object.base_denom) : "",
|
|
114
|
+
startTime: (0, import_typeEncodingHelpers.isSet)(object.start_time) ? (0, import_typeEncodingHelpers.fromJsonTimestamp)(object.start_time) : void 0,
|
|
115
|
+
endTime: (0, import_typeEncodingHelpers.isSet)(object.end_time) ? (0, import_typeEncodingHelpers.fromJsonTimestamp)(object.end_time) : void 0
|
|
116
|
+
};
|
|
117
|
+
},
|
|
118
|
+
toJSON(message) {
|
|
119
|
+
const obj = {};
|
|
120
|
+
if (message.assetDenom !== "") {
|
|
121
|
+
obj.asset_denom = message.assetDenom;
|
|
122
|
+
}
|
|
123
|
+
if (message.baseDenom !== "") {
|
|
124
|
+
obj.base_denom = message.baseDenom;
|
|
125
|
+
}
|
|
126
|
+
if (message.startTime !== void 0) {
|
|
127
|
+
obj.start_time = message.startTime.toISOString();
|
|
128
|
+
}
|
|
129
|
+
if (message.endTime !== void 0) {
|
|
130
|
+
obj.end_time = message.endTime.toISOString();
|
|
131
|
+
}
|
|
132
|
+
return obj;
|
|
133
|
+
},
|
|
134
|
+
fromPartial(object) {
|
|
135
|
+
const message = createBasePricesFilter();
|
|
136
|
+
message.assetDenom = object.assetDenom ?? "";
|
|
137
|
+
message.baseDenom = object.baseDenom ?? "";
|
|
138
|
+
message.startTime = object.startTime ?? void 0;
|
|
139
|
+
message.endTime = object.endTime ?? void 0;
|
|
140
|
+
return message;
|
|
141
|
+
}
|
|
142
|
+
};
|
|
143
|
+
function createBaseQueryParamsRequest() {
|
|
144
|
+
return {};
|
|
145
|
+
}
|
|
146
|
+
const QueryParamsRequest = {
|
|
147
|
+
$type: "akash.oracle.v2.QueryParamsRequest",
|
|
148
|
+
encode(_, writer = new import_wire.BinaryWriter()) {
|
|
149
|
+
return writer;
|
|
150
|
+
},
|
|
151
|
+
decode(input, length) {
|
|
152
|
+
const reader = input instanceof import_wire.BinaryReader ? input : new import_wire.BinaryReader(input);
|
|
153
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
154
|
+
const message = createBaseQueryParamsRequest();
|
|
155
|
+
while (reader.pos < end) {
|
|
156
|
+
const tag = reader.uint32();
|
|
157
|
+
switch (tag >>> 3) {
|
|
158
|
+
}
|
|
159
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
160
|
+
break;
|
|
161
|
+
}
|
|
162
|
+
reader.skip(tag & 7);
|
|
163
|
+
}
|
|
164
|
+
return message;
|
|
165
|
+
},
|
|
166
|
+
fromJSON(_) {
|
|
167
|
+
return {};
|
|
168
|
+
},
|
|
169
|
+
toJSON(_) {
|
|
170
|
+
const obj = {};
|
|
171
|
+
return obj;
|
|
172
|
+
},
|
|
173
|
+
fromPartial(_) {
|
|
174
|
+
const message = createBaseQueryParamsRequest();
|
|
175
|
+
return message;
|
|
176
|
+
}
|
|
177
|
+
};
|
|
178
|
+
function createBaseQueryParamsResponse() {
|
|
179
|
+
return { params: void 0 };
|
|
180
|
+
}
|
|
181
|
+
const QueryParamsResponse = {
|
|
182
|
+
$type: "akash.oracle.v2.QueryParamsResponse",
|
|
183
|
+
encode(message, writer = new import_wire.BinaryWriter()) {
|
|
184
|
+
if (message.params !== void 0) {
|
|
185
|
+
import_params.Params.encode(message.params, writer.uint32(10).fork()).join();
|
|
186
|
+
}
|
|
187
|
+
return writer;
|
|
188
|
+
},
|
|
189
|
+
decode(input, length) {
|
|
190
|
+
const reader = input instanceof import_wire.BinaryReader ? input : new import_wire.BinaryReader(input);
|
|
191
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
192
|
+
const message = createBaseQueryParamsResponse();
|
|
193
|
+
while (reader.pos < end) {
|
|
194
|
+
const tag = reader.uint32();
|
|
195
|
+
switch (tag >>> 3) {
|
|
196
|
+
case 1: {
|
|
197
|
+
if (tag !== 10) {
|
|
198
|
+
break;
|
|
199
|
+
}
|
|
200
|
+
message.params = import_params.Params.decode(reader, reader.uint32());
|
|
201
|
+
continue;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
205
|
+
break;
|
|
206
|
+
}
|
|
207
|
+
reader.skip(tag & 7);
|
|
208
|
+
}
|
|
209
|
+
return message;
|
|
210
|
+
},
|
|
211
|
+
fromJSON(object) {
|
|
212
|
+
return { params: (0, import_typeEncodingHelpers.isSet)(object.params) ? import_params.Params.fromJSON(object.params) : void 0 };
|
|
213
|
+
},
|
|
214
|
+
toJSON(message) {
|
|
215
|
+
const obj = {};
|
|
216
|
+
if (message.params !== void 0) {
|
|
217
|
+
obj.params = import_params.Params.toJSON(message.params);
|
|
218
|
+
}
|
|
219
|
+
return obj;
|
|
220
|
+
},
|
|
221
|
+
fromPartial(object) {
|
|
222
|
+
const message = createBaseQueryParamsResponse();
|
|
223
|
+
message.params = object.params !== void 0 && object.params !== null ? import_params.Params.fromPartial(object.params) : void 0;
|
|
224
|
+
return message;
|
|
225
|
+
}
|
|
226
|
+
};
|
|
227
|
+
function createBaseQueryAggregatedPriceRequest() {
|
|
228
|
+
return { denom: "" };
|
|
229
|
+
}
|
|
230
|
+
const QueryAggregatedPriceRequest = {
|
|
231
|
+
$type: "akash.oracle.v2.QueryAggregatedPriceRequest",
|
|
232
|
+
encode(message, writer = new import_wire.BinaryWriter()) {
|
|
233
|
+
if (message.denom !== "") {
|
|
234
|
+
writer.uint32(10).string(message.denom);
|
|
235
|
+
}
|
|
236
|
+
return writer;
|
|
237
|
+
},
|
|
238
|
+
decode(input, length) {
|
|
239
|
+
const reader = input instanceof import_wire.BinaryReader ? input : new import_wire.BinaryReader(input);
|
|
240
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
241
|
+
const message = createBaseQueryAggregatedPriceRequest();
|
|
242
|
+
while (reader.pos < end) {
|
|
243
|
+
const tag = reader.uint32();
|
|
244
|
+
switch (tag >>> 3) {
|
|
245
|
+
case 1: {
|
|
246
|
+
if (tag !== 10) {
|
|
247
|
+
break;
|
|
248
|
+
}
|
|
249
|
+
message.denom = reader.string();
|
|
250
|
+
continue;
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
254
|
+
break;
|
|
255
|
+
}
|
|
256
|
+
reader.skip(tag & 7);
|
|
257
|
+
}
|
|
258
|
+
return message;
|
|
259
|
+
},
|
|
260
|
+
fromJSON(object) {
|
|
261
|
+
return { denom: (0, import_typeEncodingHelpers.isSet)(object.denom) ? globalThis.String(object.denom) : "" };
|
|
262
|
+
},
|
|
263
|
+
toJSON(message) {
|
|
264
|
+
const obj = {};
|
|
265
|
+
if (message.denom !== "") {
|
|
266
|
+
obj.denom = message.denom;
|
|
267
|
+
}
|
|
268
|
+
return obj;
|
|
269
|
+
},
|
|
270
|
+
fromPartial(object) {
|
|
271
|
+
const message = createBaseQueryAggregatedPriceRequest();
|
|
272
|
+
message.denom = object.denom ?? "";
|
|
273
|
+
return message;
|
|
274
|
+
}
|
|
275
|
+
};
|
|
276
|
+
function createBaseQueryAggregatedPriceResponse() {
|
|
277
|
+
return { aggregatedPrice: void 0, priceHealth: void 0 };
|
|
278
|
+
}
|
|
279
|
+
const QueryAggregatedPriceResponse = {
|
|
280
|
+
$type: "akash.oracle.v2.QueryAggregatedPriceResponse",
|
|
281
|
+
encode(message, writer = new import_wire.BinaryWriter()) {
|
|
282
|
+
if (message.aggregatedPrice !== void 0) {
|
|
283
|
+
import_prices.AggregatedPrice.encode(message.aggregatedPrice, writer.uint32(10).fork()).join();
|
|
284
|
+
}
|
|
285
|
+
if (message.priceHealth !== void 0) {
|
|
286
|
+
import_prices.PriceHealth.encode(message.priceHealth, writer.uint32(18).fork()).join();
|
|
287
|
+
}
|
|
288
|
+
return writer;
|
|
289
|
+
},
|
|
290
|
+
decode(input, length) {
|
|
291
|
+
const reader = input instanceof import_wire.BinaryReader ? input : new import_wire.BinaryReader(input);
|
|
292
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
293
|
+
const message = createBaseQueryAggregatedPriceResponse();
|
|
294
|
+
while (reader.pos < end) {
|
|
295
|
+
const tag = reader.uint32();
|
|
296
|
+
switch (tag >>> 3) {
|
|
297
|
+
case 1: {
|
|
298
|
+
if (tag !== 10) {
|
|
299
|
+
break;
|
|
300
|
+
}
|
|
301
|
+
message.aggregatedPrice = import_prices.AggregatedPrice.decode(reader, reader.uint32());
|
|
302
|
+
continue;
|
|
303
|
+
}
|
|
304
|
+
case 2: {
|
|
305
|
+
if (tag !== 18) {
|
|
306
|
+
break;
|
|
307
|
+
}
|
|
308
|
+
message.priceHealth = import_prices.PriceHealth.decode(reader, reader.uint32());
|
|
309
|
+
continue;
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
313
|
+
break;
|
|
314
|
+
}
|
|
315
|
+
reader.skip(tag & 7);
|
|
316
|
+
}
|
|
317
|
+
return message;
|
|
318
|
+
},
|
|
319
|
+
fromJSON(object) {
|
|
320
|
+
return {
|
|
321
|
+
aggregatedPrice: (0, import_typeEncodingHelpers.isSet)(object.aggregated_price) ? import_prices.AggregatedPrice.fromJSON(object.aggregated_price) : void 0,
|
|
322
|
+
priceHealth: (0, import_typeEncodingHelpers.isSet)(object.price_health) ? import_prices.PriceHealth.fromJSON(object.price_health) : void 0
|
|
323
|
+
};
|
|
324
|
+
},
|
|
325
|
+
toJSON(message) {
|
|
326
|
+
const obj = {};
|
|
327
|
+
if (message.aggregatedPrice !== void 0) {
|
|
328
|
+
obj.aggregated_price = import_prices.AggregatedPrice.toJSON(message.aggregatedPrice);
|
|
329
|
+
}
|
|
330
|
+
if (message.priceHealth !== void 0) {
|
|
331
|
+
obj.price_health = import_prices.PriceHealth.toJSON(message.priceHealth);
|
|
332
|
+
}
|
|
333
|
+
return obj;
|
|
334
|
+
},
|
|
335
|
+
fromPartial(object) {
|
|
336
|
+
const message = createBaseQueryAggregatedPriceResponse();
|
|
337
|
+
message.aggregatedPrice = object.aggregatedPrice !== void 0 && object.aggregatedPrice !== null ? import_prices.AggregatedPrice.fromPartial(object.aggregatedPrice) : void 0;
|
|
338
|
+
message.priceHealth = object.priceHealth !== void 0 && object.priceHealth !== null ? import_prices.PriceHealth.fromPartial(object.priceHealth) : void 0;
|
|
339
|
+
return message;
|
|
340
|
+
}
|
|
341
|
+
};
|
|
342
|
+
function createBaseQueryPricesRequest() {
|
|
343
|
+
return { filters: void 0, pagination: void 0 };
|
|
344
|
+
}
|
|
345
|
+
const QueryPricesRequest = {
|
|
346
|
+
$type: "akash.oracle.v2.QueryPricesRequest",
|
|
347
|
+
encode(message, writer = new import_wire.BinaryWriter()) {
|
|
348
|
+
if (message.filters !== void 0) {
|
|
349
|
+
PricesFilter.encode(message.filters, writer.uint32(10).fork()).join();
|
|
350
|
+
}
|
|
351
|
+
if (message.pagination !== void 0) {
|
|
352
|
+
import_pagination.PageRequest.encode(message.pagination, writer.uint32(18).fork()).join();
|
|
353
|
+
}
|
|
354
|
+
return writer;
|
|
355
|
+
},
|
|
356
|
+
decode(input, length) {
|
|
357
|
+
const reader = input instanceof import_wire.BinaryReader ? input : new import_wire.BinaryReader(input);
|
|
358
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
359
|
+
const message = createBaseQueryPricesRequest();
|
|
360
|
+
while (reader.pos < end) {
|
|
361
|
+
const tag = reader.uint32();
|
|
362
|
+
switch (tag >>> 3) {
|
|
363
|
+
case 1: {
|
|
364
|
+
if (tag !== 10) {
|
|
365
|
+
break;
|
|
366
|
+
}
|
|
367
|
+
message.filters = PricesFilter.decode(reader, reader.uint32());
|
|
368
|
+
continue;
|
|
369
|
+
}
|
|
370
|
+
case 2: {
|
|
371
|
+
if (tag !== 18) {
|
|
372
|
+
break;
|
|
373
|
+
}
|
|
374
|
+
message.pagination = import_pagination.PageRequest.decode(reader, reader.uint32());
|
|
375
|
+
continue;
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
379
|
+
break;
|
|
380
|
+
}
|
|
381
|
+
reader.skip(tag & 7);
|
|
382
|
+
}
|
|
383
|
+
return message;
|
|
384
|
+
},
|
|
385
|
+
fromJSON(object) {
|
|
386
|
+
return {
|
|
387
|
+
filters: (0, import_typeEncodingHelpers.isSet)(object.filters) ? PricesFilter.fromJSON(object.filters) : void 0,
|
|
388
|
+
pagination: (0, import_typeEncodingHelpers.isSet)(object.pagination) ? import_pagination.PageRequest.fromJSON(object.pagination) : void 0
|
|
389
|
+
};
|
|
390
|
+
},
|
|
391
|
+
toJSON(message) {
|
|
392
|
+
const obj = {};
|
|
393
|
+
if (message.filters !== void 0) {
|
|
394
|
+
obj.filters = PricesFilter.toJSON(message.filters);
|
|
395
|
+
}
|
|
396
|
+
if (message.pagination !== void 0) {
|
|
397
|
+
obj.pagination = import_pagination.PageRequest.toJSON(message.pagination);
|
|
398
|
+
}
|
|
399
|
+
return obj;
|
|
400
|
+
},
|
|
401
|
+
fromPartial(object) {
|
|
402
|
+
const message = createBaseQueryPricesRequest();
|
|
403
|
+
message.filters = object.filters !== void 0 && object.filters !== null ? PricesFilter.fromPartial(object.filters) : void 0;
|
|
404
|
+
message.pagination = object.pagination !== void 0 && object.pagination !== null ? import_pagination.PageRequest.fromPartial(object.pagination) : void 0;
|
|
405
|
+
return message;
|
|
406
|
+
}
|
|
407
|
+
};
|
|
408
|
+
function createBaseQueryPricesResponse() {
|
|
409
|
+
return { prices: [], pagination: void 0 };
|
|
410
|
+
}
|
|
411
|
+
const QueryPricesResponse = {
|
|
412
|
+
$type: "akash.oracle.v2.QueryPricesResponse",
|
|
413
|
+
encode(message, writer = new import_wire.BinaryWriter()) {
|
|
414
|
+
for (const v of message.prices) {
|
|
415
|
+
import_prices.PriceData.encode(v, writer.uint32(10).fork()).join();
|
|
416
|
+
}
|
|
417
|
+
if (message.pagination !== void 0) {
|
|
418
|
+
import_pagination.PageResponse.encode(message.pagination, writer.uint32(18).fork()).join();
|
|
419
|
+
}
|
|
420
|
+
return writer;
|
|
421
|
+
},
|
|
422
|
+
decode(input, length) {
|
|
423
|
+
const reader = input instanceof import_wire.BinaryReader ? input : new import_wire.BinaryReader(input);
|
|
424
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
425
|
+
const message = createBaseQueryPricesResponse();
|
|
426
|
+
while (reader.pos < end) {
|
|
427
|
+
const tag = reader.uint32();
|
|
428
|
+
switch (tag >>> 3) {
|
|
429
|
+
case 1: {
|
|
430
|
+
if (tag !== 10) {
|
|
431
|
+
break;
|
|
432
|
+
}
|
|
433
|
+
message.prices.push(import_prices.PriceData.decode(reader, reader.uint32()));
|
|
434
|
+
continue;
|
|
435
|
+
}
|
|
436
|
+
case 2: {
|
|
437
|
+
if (tag !== 18) {
|
|
438
|
+
break;
|
|
439
|
+
}
|
|
440
|
+
message.pagination = import_pagination.PageResponse.decode(reader, reader.uint32());
|
|
441
|
+
continue;
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
445
|
+
break;
|
|
446
|
+
}
|
|
447
|
+
reader.skip(tag & 7);
|
|
448
|
+
}
|
|
449
|
+
return message;
|
|
450
|
+
},
|
|
451
|
+
fromJSON(object) {
|
|
452
|
+
return {
|
|
453
|
+
prices: globalThis.Array.isArray(object?.prices) ? object.prices.map((e) => import_prices.PriceData.fromJSON(e)) : [],
|
|
454
|
+
pagination: (0, import_typeEncodingHelpers.isSet)(object.pagination) ? import_pagination.PageResponse.fromJSON(object.pagination) : void 0
|
|
455
|
+
};
|
|
456
|
+
},
|
|
457
|
+
toJSON(message) {
|
|
458
|
+
const obj = {};
|
|
459
|
+
if (message.prices?.length) {
|
|
460
|
+
obj.prices = message.prices.map((e) => import_prices.PriceData.toJSON(e));
|
|
461
|
+
}
|
|
462
|
+
if (message.pagination !== void 0) {
|
|
463
|
+
obj.pagination = import_pagination.PageResponse.toJSON(message.pagination);
|
|
464
|
+
}
|
|
465
|
+
return obj;
|
|
466
|
+
},
|
|
467
|
+
fromPartial(object) {
|
|
468
|
+
const message = createBaseQueryPricesResponse();
|
|
469
|
+
message.prices = object.prices?.map((e) => import_prices.PriceData.fromPartial(e)) || [];
|
|
470
|
+
message.pagination = object.pagination !== void 0 && object.pagination !== null ? import_pagination.PageResponse.fromPartial(object.pagination) : void 0;
|
|
471
|
+
return message;
|
|
472
|
+
}
|
|
473
|
+
};
|
|
474
|
+
function _unused_toTimestamp(date) {
|
|
475
|
+
const seconds = (0, import_typeEncodingHelpers.numberToLong)(Math.trunc(date.getTime() / 1e3));
|
|
476
|
+
const nanos = date.getTime() % 1e3 * 1e6;
|
|
477
|
+
return { seconds, nanos };
|
|
478
|
+
}
|
|
479
|
+
function _unused_fromTimestamp(t) {
|
|
480
|
+
let millis = (t.seconds.toNumber() || 0) * 1e3;
|
|
481
|
+
millis += (t.nanos || 0) / 1e6;
|
|
482
|
+
return new globalThis.Date(millis);
|
|
483
|
+
}
|
|
484
|
+
function _unused_fromJsonTimestamp(o) {
|
|
485
|
+
if (o instanceof globalThis.Date) {
|
|
486
|
+
return o;
|
|
487
|
+
} else if (typeof o === "string") {
|
|
488
|
+
return new globalThis.Date(o);
|
|
489
|
+
} else {
|
|
490
|
+
return (0, import_typeEncodingHelpers.fromTimestamp)(import_timestamp.Timestamp.fromJSON(o));
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
function _unused_numberToLong(number) {
|
|
494
|
+
return import_long.default.fromNumber(number);
|
|
495
|
+
}
|
|
496
|
+
function _unused_isSet(value) {
|
|
497
|
+
return value !== null && value !== void 0;
|
|
498
|
+
}
|
|
499
|
+
//# sourceMappingURL=query.cjs.map
|