@akashnetwork/chain-sdk 1.0.0-alpha.27 → 1.0.0-alpha.29
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 +39 -23
- package/dist/cjs/generated/protos/akash/bme/v1/events.cjs.map +2 -2
- 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 +49 -83
- 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 -5
- 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/sdk/provider/auth/mtls/CertificateManager.cjs +1 -1
- package/dist/cjs/sdk/provider/auth/mtls/CertificateManager.cjs.map +2 -2
- package/dist/cjs/sdk/transport/interceptors/retry.cjs +11 -1
- package/dist/cjs/sdk/transport/interceptors/retry.cjs.map +2 -2
- package/dist/cjs/sdl/SDL/SDL.cjs +2 -2
- package/dist/cjs/sdl/SDL/SDL.cjs.map +2 -2
- package/dist/cjs/sdl/validateSDL/validateSDL.cjs +2 -2
- package/dist/cjs/sdl/validateSDL/validateSDL.cjs.map +2 -2
- package/dist/cjs/sdl/validateSDL/validateSDLInput.cjs +1717 -1227
- package/dist/cjs/sdl/validateSDL/validateSDLInput.cjs.map +2 -2
- package/dist/cjs/utils/jsonSchemaValidation.cjs +5 -3
- package/dist/cjs/utils/jsonSchemaValidation.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-JPXDOHZO.js → chunk-B4MMOAAO.js} +2 -2
- package/dist/esm/{chunk-WH2VEITL.js → chunk-C7JHIHHY.js} +1768 -1224
- package/dist/esm/chunk-C7JHIHHY.js.map +7 -0
- 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-OYYJMHQ3.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-W2FEAX2Q.js → chunk-PFJG3V3A.js} +71 -89
- package/dist/esm/chunk-PFJG3V3A.js.map +7 -0
- package/dist/esm/{chunk-KPF2DJHF.js → chunk-PKKLQO24.js} +5 -5
- 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 +160 -126
- 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-XYBD7HGP.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-KSM5UR43.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/sdl-schema.yaml +142 -83
- 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 +9 -8
- 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 +13 -17
- 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/sdk/provider/auth/mtls/CertificateManager.d.ts +1 -0
- package/dist/types/sdl/validateSDL/validateSDLInput.d.ts +200 -109
- package/package.json +2 -1
- package/dist/esm/chunk-GEEFQK3U.js.map +0 -7
- package/dist/esm/chunk-OYYJMHQ3.js.map +0 -7
- package/dist/esm/chunk-W2FEAX2Q.js.map +0 -7
- package/dist/esm/chunk-WH2VEITL.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-JPXDOHZO.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-XYBD7HGP.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-KSM5UR43.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,56 @@
|
|
|
1
|
+
import type { MessageFns } from "../../../../../encoding/typeEncodingHelpers.ts";
|
|
2
|
+
import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination.ts";
|
|
3
|
+
import { Params } from "./params.ts";
|
|
4
|
+
import { AggregatedPrice, PriceData, PriceHealth } from "./prices.ts";
|
|
5
|
+
/** PricesFilter defines filters used to query price data */
|
|
6
|
+
export interface PricesFilter {
|
|
7
|
+
/** asset_denom is the asset denomination to filter by */
|
|
8
|
+
assetDenom: string;
|
|
9
|
+
/** base_denom is the base denomination to filter by */
|
|
10
|
+
baseDenom: string;
|
|
11
|
+
/** start_time is the inclusive start of the time range to filter by */
|
|
12
|
+
startTime: Date | undefined;
|
|
13
|
+
/** end_time is the inclusive end of the time range to filter by */
|
|
14
|
+
endTime: Date | undefined;
|
|
15
|
+
}
|
|
16
|
+
/** QueryParamsRequest is the request type for the Query/Params RPC method. */
|
|
17
|
+
export interface QueryParamsRequest {
|
|
18
|
+
}
|
|
19
|
+
/** QueryParamsResponse is the response type for the Query/Params RPC method. */
|
|
20
|
+
export interface QueryParamsResponse {
|
|
21
|
+
/** params defines the parameters of the module. */
|
|
22
|
+
params: Params | undefined;
|
|
23
|
+
}
|
|
24
|
+
/** QueryAggregatedPriceRequest is the request type for aggregated price. */
|
|
25
|
+
export interface QueryAggregatedPriceRequest {
|
|
26
|
+
/** denom is the asset denomination */
|
|
27
|
+
denom: string;
|
|
28
|
+
}
|
|
29
|
+
/** QueryAggregatedPriceResponse is the response type for aggregated price. */
|
|
30
|
+
export interface QueryAggregatedPriceResponse {
|
|
31
|
+
/** aggregated_price is the aggregated price data */
|
|
32
|
+
aggregatedPrice: AggregatedPrice | undefined;
|
|
33
|
+
/** price_health is the health status for the price feed */
|
|
34
|
+
priceHealth: PriceHealth | undefined;
|
|
35
|
+
}
|
|
36
|
+
/** QueryPricesRequest is the request type for querying price history */
|
|
37
|
+
export interface QueryPricesRequest {
|
|
38
|
+
/** filters holds the price fields to filter the request */
|
|
39
|
+
filters: PricesFilter | undefined;
|
|
40
|
+
/** pagination is used to paginate the request */
|
|
41
|
+
pagination: PageRequest | undefined;
|
|
42
|
+
}
|
|
43
|
+
/** QueryPricesResponse is the response type for querying price history */
|
|
44
|
+
export interface QueryPricesResponse {
|
|
45
|
+
/** prices is the list of historical price data matching the filters */
|
|
46
|
+
prices: PriceData[];
|
|
47
|
+
/** pagination contains the information about response pagination */
|
|
48
|
+
pagination: PageResponse | undefined;
|
|
49
|
+
}
|
|
50
|
+
export declare const PricesFilter: MessageFns<PricesFilter, "akash.oracle.v2.PricesFilter">;
|
|
51
|
+
export declare const QueryParamsRequest: MessageFns<QueryParamsRequest, "akash.oracle.v2.QueryParamsRequest">;
|
|
52
|
+
export declare const QueryParamsResponse: MessageFns<QueryParamsResponse, "akash.oracle.v2.QueryParamsResponse">;
|
|
53
|
+
export declare const QueryAggregatedPriceRequest: MessageFns<QueryAggregatedPriceRequest, "akash.oracle.v2.QueryAggregatedPriceRequest">;
|
|
54
|
+
export declare const QueryAggregatedPriceResponse: MessageFns<QueryAggregatedPriceResponse, "akash.oracle.v2.QueryAggregatedPriceResponse">;
|
|
55
|
+
export declare const QueryPricesRequest: MessageFns<QueryPricesRequest, "akash.oracle.v2.QueryPricesRequest">;
|
|
56
|
+
export declare const QueryPricesResponse: MessageFns<QueryPricesResponse, "akash.oracle.v2.QueryPricesResponse">;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { QueryAggregatedPriceRequest, QueryAggregatedPriceResponse, QueryParamsRequest, QueryParamsResponse, QueryPricesRequest, QueryPricesResponse } from "./query.ts";
|
|
2
|
+
export declare const Query: {
|
|
3
|
+
readonly typeName: "akash.oracle.v2.Query";
|
|
4
|
+
readonly methods: {
|
|
5
|
+
readonly prices: {
|
|
6
|
+
readonly name: "Prices";
|
|
7
|
+
readonly httpPath: "/akash/oracle/v2/prices";
|
|
8
|
+
readonly input: import("../../../../../encoding/typeEncodingHelpers.ts").MessageFns<QueryPricesRequest, "akash.oracle.v2.QueryPricesRequest">;
|
|
9
|
+
readonly output: import("../../../../../encoding/typeEncodingHelpers.ts").MessageFns<QueryPricesResponse, "akash.oracle.v2.QueryPricesResponse">;
|
|
10
|
+
readonly parent: /*elided*/ any;
|
|
11
|
+
};
|
|
12
|
+
readonly params: {
|
|
13
|
+
readonly name: "Params";
|
|
14
|
+
readonly httpPath: "/akash/oracle/v2/params";
|
|
15
|
+
readonly input: import("../../../../../encoding/typeEncodingHelpers.ts").MessageFns<QueryParamsRequest, "akash.oracle.v2.QueryParamsRequest">;
|
|
16
|
+
readonly output: import("../../../../../encoding/typeEncodingHelpers.ts").MessageFns<QueryParamsResponse, "akash.oracle.v2.QueryParamsResponse">;
|
|
17
|
+
readonly parent: /*elided*/ any;
|
|
18
|
+
};
|
|
19
|
+
readonly aggregatedPrice: {
|
|
20
|
+
readonly name: "AggregatedPrice";
|
|
21
|
+
readonly httpPath: "/akash/oracle/v2/aggregated_price/{denom=**}";
|
|
22
|
+
readonly input: import("../../../../../encoding/typeEncodingHelpers.ts").MessageFns<QueryAggregatedPriceRequest, "akash.oracle.v2.QueryAggregatedPriceRequest">;
|
|
23
|
+
readonly output: import("../../../../../encoding/typeEncodingHelpers.ts").MessageFns<QueryAggregatedPriceResponse, "akash.oracle.v2.QueryAggregatedPriceResponse">;
|
|
24
|
+
readonly parent: /*elided*/ any;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { MsgAddPriceEntry, MsgAddPriceEntryResponse, MsgUpdateParams, MsgUpdateParamsResponse } from "./msgs.ts";
|
|
2
|
+
export declare const Msg: {
|
|
3
|
+
readonly typeName: "akash.oracle.v2.Msg";
|
|
4
|
+
readonly methods: {
|
|
5
|
+
readonly addPriceEntry: {
|
|
6
|
+
readonly name: "AddPriceEntry";
|
|
7
|
+
readonly input: import("../../../../../encoding/typeEncodingHelpers.ts").MessageFns<MsgAddPriceEntry, "akash.oracle.v2.MsgAddPriceEntry">;
|
|
8
|
+
readonly output: import("../../../../../encoding/typeEncodingHelpers.ts").MessageFns<MsgAddPriceEntryResponse, "akash.oracle.v2.MsgAddPriceEntryResponse">;
|
|
9
|
+
readonly parent: /*elided*/ any;
|
|
10
|
+
};
|
|
11
|
+
readonly updateParams: {
|
|
12
|
+
readonly name: "UpdateParams";
|
|
13
|
+
readonly input: import("../../../../../encoding/typeEncodingHelpers.ts").MessageFns<MsgUpdateParams, "akash.oracle.v2.MsgUpdateParams">;
|
|
14
|
+
readonly output: import("../../../../../encoding/typeEncodingHelpers.ts").MessageFns<MsgUpdateParamsResponse, "akash.oracle.v2.MsgUpdateParamsResponse">;
|
|
15
|
+
readonly parent: /*elided*/ any;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -6,8 +6,8 @@ export { MsgSignProviderAttributes, MsgSignProviderAttributesResponse, MsgDelete
|
|
|
6
6
|
export { QueryProvidersResponse, QueryProviderRequest, QueryAllProvidersAttributesRequest, QueryProviderAttributesRequest, QueryProviderAuditorRequest, QueryAuditorAttributesRequest } from "./akash/audit/v1/query.ts";
|
|
7
7
|
export { Deposit, Source } from "./akash/base/deposit/v1/deposit.ts";
|
|
8
8
|
export { MsgSignData } from "./akash/base/offchain/sign/v1/sign.ts";
|
|
9
|
-
export { LedgerID, CollateralRatio, State, CoinPrice, BurnMintPair, LedgerRecordID, LedgerPendingRecord,
|
|
10
|
-
export { EventMintStatusChange,
|
|
9
|
+
export { LedgerID, CollateralRatio, State, CoinPrice, BurnMintPair, LedgerRecordID, LedgerPendingRecord, LedgerCanceledRecord, LedgerCanceledRecord_BMCancelReason, LedgerRecord, Status, MintStatus, LedgerRecordStatus } from "./akash/bme/v1/types.ts";
|
|
10
|
+
export { EventMintStatusChange, EventVaultFunded, EventLedgerRecordExecuted, EventLedgerRecordCanceled } from "./akash/bme/v1/events.ts";
|
|
11
11
|
export { LedgerRecordFilters } from "./akash/bme/v1/filters.ts";
|
|
12
12
|
export { Params } from "./akash/bme/v1/params.ts";
|
|
13
13
|
export { GenesisLedgerRecord, GenesisLedgerPendingRecord, GenesisLedgerState, GenesisVaultState, GenesisState as Bme_GenesisState } from "./akash/bme/v1/genesis.ts";
|
|
@@ -40,7 +40,7 @@ export { LeaseID, Lease, Lease_State } from "./akash/market/v1/lease.ts";
|
|
|
40
40
|
export { EventOrderCreated, EventOrderClosed, EventBidCreated, EventBidClosed, EventLeaseCreated, EventLeaseClosed } from "./akash/market/v1/event.ts";
|
|
41
41
|
export { LeaseFilters } from "./akash/market/v1/filters.ts";
|
|
42
42
|
export { DataID, PriceDataID, PriceDataRecordID, PriceDataState, PriceData, AggregatedPrice, PriceHealth, PricesFilter, QueryPricesRequest, QueryPricesResponse } from "./akash/oracle/v1/prices.ts";
|
|
43
|
-
export { EventPriceData, EventPriceStaleWarning, EventPriceStaled, EventPriceRecovered } from "./akash/oracle/v1/events.ts";
|
|
43
|
+
export { EventPriceData, EventPriceStaleWarning, EventPriceStaled, EventPriceRecovered, EventAggregatedPrice } from "./akash/oracle/v1/events.ts";
|
|
44
44
|
export { Params as Oracle_Params } from "./akash/oracle/v1/params.ts";
|
|
45
45
|
export { GenesisState as Oracle_GenesisState } from "./akash/oracle/v1/genesis.ts";
|
|
46
46
|
export { MsgAddPriceEntry, MsgAddPriceEntryResponse, MsgUpdateParams as Oracle_MsgUpdateParams, MsgUpdateParamsResponse as Oracle_MsgUpdateParamsResponse } from "./akash/oracle/v1/msgs.ts";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { DataID, PriceDataID, PriceLatestDataState, PriceDataRecordID, PriceDataState, PriceData, AggregatedPrice, PriceHealth } from "./akash/oracle/v2/prices.ts";
|
|
2
|
+
export { EventPriceData, EventPriceStaleWarning, EventPriceStaled, EventPriceRecovered, EventAggregatedPrice } from "./akash/oracle/v2/events.ts";
|
|
3
|
+
export { Params } from "./akash/oracle/v2/params.ts";
|
|
4
|
+
export { GenesisSourceID, GenesisLatestPricesIDs, GenesisState } from "./akash/oracle/v2/genesis.ts";
|
|
5
|
+
export { MsgAddPriceEntry, MsgAddPriceEntryResponse, MsgUpdateParams, MsgUpdateParamsResponse } from "./akash/oracle/v2/msgs.ts";
|
|
6
|
+
export { PricesFilter, QueryParamsRequest, QueryParamsResponse, QueryAggregatedPriceRequest, QueryAggregatedPriceResponse, QueryPricesRequest, QueryPricesResponse } from "./akash/oracle/v2/query.ts";
|
|
@@ -466,6 +466,13 @@ export declare function createChainNodeSDK(options: ChainNodeSDKOptions): {
|
|
|
466
466
|
addPriceEntry: (input: import("../index.shared.ts").TxInput<import("../../generated/protos/index.akash.v1.ts").MsgAddPriceEntry>, options?: TxCallOptions) => Promise<import("../../generated/protos/index.akash.v1.ts").MsgAddPriceEntryResponse>;
|
|
467
467
|
updateParams: (input: import("../index.shared.ts").TxInput<import("../../generated/protos/index.akash.v1.ts").Oracle_MsgUpdateParams>, options?: TxCallOptions) => Promise<import("../../generated/protos/index.akash.v1.ts").Oracle_MsgUpdateParamsResponse>;
|
|
468
468
|
};
|
|
469
|
+
v2: {
|
|
470
|
+
getPrices: (input: import("../index.shared.ts").QueryInput<import("../../generated/protos/index.akash.v2.ts").QueryPricesRequest>, options?: import("../transport/types.ts").CallOptions) => Promise<import("../../generated/protos/index.akash.v2.ts").QueryPricesResponse>;
|
|
471
|
+
getParams: (input?: import("../index.shared.ts").QueryInput<import("../../generated/protos/index.akash.v2.ts").QueryParamsRequest>, options?: import("../transport/types.ts").CallOptions) => Promise<import("../../generated/protos/index.akash.v2.ts").QueryParamsResponse>;
|
|
472
|
+
getAggregatedPrice: (input: import("../index.shared.ts").QueryInput<import("../../generated/protos/index.akash.v2.ts").QueryAggregatedPriceRequest>, options?: import("../transport/types.ts").CallOptions) => Promise<import("../../generated/protos/index.akash.v2.ts").QueryAggregatedPriceResponse>;
|
|
473
|
+
addPriceEntry: (input: import("../index.shared.ts").TxInput<import("../../generated/protos/index.akash.v2.ts").MsgAddPriceEntry>, options?: TxCallOptions) => Promise<import("../../generated/protos/index.akash.v2.ts").MsgAddPriceEntryResponse>;
|
|
474
|
+
updateParams: (input: import("../index.shared.ts").TxInput<import("../../generated/protos/index.akash.v2.ts").MsgUpdateParams>, options?: TxCallOptions) => Promise<import("../../generated/protos/index.akash.v2.ts").MsgUpdateParamsResponse>;
|
|
475
|
+
};
|
|
469
476
|
};
|
|
470
477
|
provider: {
|
|
471
478
|
v1beta4: {
|
|
@@ -464,6 +464,13 @@ export declare function createChainNodeWebSDK(options: ChainNodeWebSDKOptions):
|
|
|
464
464
|
addPriceEntry: (input: import("../index.shared.ts").TxInput<import("../../generated/protos/index.akash.v1.ts").MsgAddPriceEntry>, options?: import("../transport/types.ts").TxCallOptions) => Promise<import("../../generated/protos/index.akash.v1.ts").MsgAddPriceEntryResponse>;
|
|
465
465
|
updateParams: (input: import("../index.shared.ts").TxInput<import("../../generated/protos/index.akash.v1.ts").Oracle_MsgUpdateParams>, options?: import("../transport/types.ts").TxCallOptions) => Promise<import("../../generated/protos/index.akash.v1.ts").Oracle_MsgUpdateParamsResponse>;
|
|
466
466
|
};
|
|
467
|
+
v2: {
|
|
468
|
+
getPrices: (input: import("../index.shared.ts").QueryInput<import("../../generated/protos/index.akash.v2.ts").QueryPricesRequest>, options?: import("../transport/types.ts").CallOptions) => Promise<import("../../generated/protos/index.akash.v2.ts").QueryPricesResponse>;
|
|
469
|
+
getParams: (input?: import("../index.shared.ts").QueryInput<import("../../generated/protos/index.akash.v2.ts").QueryParamsRequest>, options?: import("../transport/types.ts").CallOptions) => Promise<import("../../generated/protos/index.akash.v2.ts").QueryParamsResponse>;
|
|
470
|
+
getAggregatedPrice: (input: import("../index.shared.ts").QueryInput<import("../../generated/protos/index.akash.v2.ts").QueryAggregatedPriceRequest>, options?: import("../transport/types.ts").CallOptions) => Promise<import("../../generated/protos/index.akash.v2.ts").QueryAggregatedPriceResponse>;
|
|
471
|
+
addPriceEntry: (input: import("../index.shared.ts").TxInput<import("../../generated/protos/index.akash.v2.ts").MsgAddPriceEntry>, options?: import("../transport/types.ts").TxCallOptions) => Promise<import("../../generated/protos/index.akash.v2.ts").MsgAddPriceEntryResponse>;
|
|
472
|
+
updateParams: (input: import("../index.shared.ts").TxInput<import("../../generated/protos/index.akash.v2.ts").MsgUpdateParams>, options?: import("../transport/types.ts").TxCallOptions) => Promise<import("../../generated/protos/index.akash.v2.ts").MsgUpdateParamsResponse>;
|
|
473
|
+
};
|
|
467
474
|
};
|
|
468
475
|
provider: {
|
|
469
476
|
v1beta4: {
|
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Storage attributes validation:
|
|
3
|
+
* 1. RAM class must not be persistent
|
|
4
|
+
* 2. Non-RAM classes (beta1, beta2, beta3, default) require persistent=true
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
export type StorageAttributesValidation = StorageRamClassMustNotBePersistent & {
|
|
8
|
+
class: string;
|
|
9
|
+
persistent: boolean | string;
|
|
10
|
+
};
|
|
1
11
|
/**
|
|
2
12
|
* String array or null value (used for command args and env vars)
|
|
3
13
|
*/
|
|
@@ -70,7 +80,7 @@ export interface SDLInput {
|
|
|
70
80
|
}[] | null;
|
|
71
81
|
};
|
|
72
82
|
};
|
|
73
|
-
units
|
|
83
|
+
units?: string | number;
|
|
74
84
|
};
|
|
75
85
|
memory: {
|
|
76
86
|
size: string;
|
|
@@ -135,7 +145,7 @@ export interface SDLInput {
|
|
|
135
145
|
ip?: string;
|
|
136
146
|
service?: string;
|
|
137
147
|
}[];
|
|
138
|
-
}[];
|
|
148
|
+
}[] | null;
|
|
139
149
|
image: string;
|
|
140
150
|
params?: {
|
|
141
151
|
storage?: {
|
|
@@ -164,14 +174,10 @@ export interface StorageVolume {
|
|
|
164
174
|
size: string;
|
|
165
175
|
}
|
|
166
176
|
/**
|
|
167
|
-
*
|
|
168
|
-
* 1. RAM class must not be persistent
|
|
169
|
-
* 2. Non-RAM classes (beta1, beta2, beta3, default) require persistent=true
|
|
170
|
-
*
|
|
177
|
+
* RAM storage class must not have persistent=true
|
|
171
178
|
*/
|
|
172
|
-
export interface
|
|
173
|
-
|
|
174
|
-
persistent?: boolean | string;
|
|
179
|
+
export interface StorageRamClassMustNotBePersistent {
|
|
180
|
+
[k: string]: unknown;
|
|
175
181
|
}
|
|
176
182
|
/**
|
|
177
183
|
* Price definition with amount and denomination
|
|
@@ -239,19 +245,8 @@ declare var schema: {
|
|
|
239
245
|
required: string[];
|
|
240
246
|
type: string;
|
|
241
247
|
};
|
|
242
|
-
|
|
248
|
+
storageRamClassMustNotBePersistent: {
|
|
243
249
|
description: string;
|
|
244
|
-
additionalProperties: boolean;
|
|
245
|
-
properties: {
|
|
246
|
-
class: {
|
|
247
|
-
type: string;
|
|
248
|
-
};
|
|
249
|
-
persistent: {
|
|
250
|
-
oneOf: {
|
|
251
|
-
type: string;
|
|
252
|
-
}[];
|
|
253
|
-
};
|
|
254
|
-
};
|
|
255
250
|
not: {
|
|
256
251
|
properties: {
|
|
257
252
|
class: {
|
|
@@ -267,6 +262,47 @@ declare var schema: {
|
|
|
267
262
|
};
|
|
268
263
|
required: string[];
|
|
269
264
|
};
|
|
265
|
+
};
|
|
266
|
+
storageNonRamClassRequiresPersistent: {
|
|
267
|
+
description: string;
|
|
268
|
+
if: {
|
|
269
|
+
properties: {
|
|
270
|
+
class: {
|
|
271
|
+
enum: string[];
|
|
272
|
+
};
|
|
273
|
+
};
|
|
274
|
+
required: string[];
|
|
275
|
+
};
|
|
276
|
+
then: {
|
|
277
|
+
properties: {
|
|
278
|
+
persistent: {
|
|
279
|
+
oneOf: ({
|
|
280
|
+
const: boolean;
|
|
281
|
+
} | {
|
|
282
|
+
const: string;
|
|
283
|
+
})[];
|
|
284
|
+
};
|
|
285
|
+
};
|
|
286
|
+
required: string[];
|
|
287
|
+
};
|
|
288
|
+
};
|
|
289
|
+
storageAttributesValidation: {
|
|
290
|
+
description: string;
|
|
291
|
+
additionalProperties: boolean;
|
|
292
|
+
properties: {
|
|
293
|
+
class: {
|
|
294
|
+
type: string;
|
|
295
|
+
};
|
|
296
|
+
persistent: {
|
|
297
|
+
oneOf: {
|
|
298
|
+
type: string;
|
|
299
|
+
}[];
|
|
300
|
+
};
|
|
301
|
+
};
|
|
302
|
+
allOf: {
|
|
303
|
+
$ref: string;
|
|
304
|
+
}[];
|
|
305
|
+
required: string[];
|
|
270
306
|
type: string;
|
|
271
307
|
};
|
|
272
308
|
storageVolume: {
|
|
@@ -292,6 +328,54 @@ declare var schema: {
|
|
|
292
328
|
minLength: number;
|
|
293
329
|
pattern: string;
|
|
294
330
|
};
|
|
331
|
+
gpuUnitsGt0RequiresAttributes: {
|
|
332
|
+
description: string;
|
|
333
|
+
if: {
|
|
334
|
+
properties: {
|
|
335
|
+
units: {
|
|
336
|
+
oneOf: ({
|
|
337
|
+
type: string;
|
|
338
|
+
exclusiveMinimum: number;
|
|
339
|
+
not?: undefined;
|
|
340
|
+
} | {
|
|
341
|
+
type: string;
|
|
342
|
+
not: {
|
|
343
|
+
pattern: string;
|
|
344
|
+
};
|
|
345
|
+
exclusiveMinimum?: undefined;
|
|
346
|
+
})[];
|
|
347
|
+
};
|
|
348
|
+
};
|
|
349
|
+
required: string[];
|
|
350
|
+
};
|
|
351
|
+
then: {
|
|
352
|
+
required: string[];
|
|
353
|
+
};
|
|
354
|
+
};
|
|
355
|
+
gpuAttributesRequireUnitsGt0: {
|
|
356
|
+
description: string;
|
|
357
|
+
if: {
|
|
358
|
+
required: string[];
|
|
359
|
+
};
|
|
360
|
+
then: {
|
|
361
|
+
properties: {
|
|
362
|
+
units: {
|
|
363
|
+
oneOf: ({
|
|
364
|
+
type: string;
|
|
365
|
+
exclusiveMinimum: number;
|
|
366
|
+
not?: undefined;
|
|
367
|
+
} | {
|
|
368
|
+
type: string;
|
|
369
|
+
not: {
|
|
370
|
+
pattern: string;
|
|
371
|
+
};
|
|
372
|
+
exclusiveMinimum?: undefined;
|
|
373
|
+
})[];
|
|
374
|
+
};
|
|
375
|
+
};
|
|
376
|
+
required: string[];
|
|
377
|
+
};
|
|
378
|
+
};
|
|
295
379
|
exposeToWithIpEnforcesGlobal: {
|
|
296
380
|
description: string;
|
|
297
381
|
if: {
|
|
@@ -440,7 +524,9 @@ declare var schema: {
|
|
|
440
524
|
}[];
|
|
441
525
|
};
|
|
442
526
|
};
|
|
443
|
-
|
|
527
|
+
allOf: {
|
|
528
|
+
$ref: string;
|
|
529
|
+
}[];
|
|
444
530
|
type: string;
|
|
445
531
|
};
|
|
446
532
|
memory: {
|
|
@@ -565,111 +651,116 @@ declare var schema: {
|
|
|
565
651
|
$ref: string;
|
|
566
652
|
};
|
|
567
653
|
expose: {
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
type: string;
|
|
576
|
-
};
|
|
577
|
-
as: {
|
|
578
|
-
$ref: string;
|
|
579
|
-
};
|
|
580
|
-
http_options: {
|
|
581
|
-
additionalProperties: boolean;
|
|
582
|
-
properties: {
|
|
583
|
-
max_body_size: {
|
|
654
|
+
oneOf: ({
|
|
655
|
+
type: string;
|
|
656
|
+
items: {
|
|
657
|
+
additionalProperties: boolean;
|
|
658
|
+
properties: {
|
|
659
|
+
accept: {
|
|
660
|
+
items: {
|
|
584
661
|
type: string;
|
|
585
|
-
minimum: number;
|
|
586
|
-
maximum: number;
|
|
587
|
-
description: string;
|
|
588
662
|
};
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
maxItems: number;
|
|
599
|
-
minItems: number;
|
|
600
|
-
not?: undefined;
|
|
601
|
-
} | {
|
|
663
|
+
type: string;
|
|
664
|
+
};
|
|
665
|
+
as: {
|
|
666
|
+
$ref: string;
|
|
667
|
+
};
|
|
668
|
+
http_options: {
|
|
669
|
+
additionalProperties: boolean;
|
|
670
|
+
properties: {
|
|
671
|
+
max_body_size: {
|
|
602
672
|
type: string;
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
673
|
+
minimum: number;
|
|
674
|
+
maximum: number;
|
|
675
|
+
description: string;
|
|
676
|
+
};
|
|
677
|
+
next_cases: {
|
|
678
|
+
oneOf: ({
|
|
679
|
+
type: string;
|
|
680
|
+
items: {
|
|
681
|
+
$ref: string;
|
|
682
|
+
};
|
|
607
683
|
contains: {
|
|
608
684
|
const: string;
|
|
609
685
|
};
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
};
|
|
630
|
-
send_timeout: {
|
|
631
|
-
type: string;
|
|
632
|
-
minimum: number;
|
|
633
|
-
maximum: number;
|
|
634
|
-
description: string;
|
|
635
|
-
};
|
|
636
|
-
};
|
|
637
|
-
type: string;
|
|
638
|
-
};
|
|
639
|
-
port: {
|
|
640
|
-
$ref: string;
|
|
641
|
-
};
|
|
642
|
-
proto: {
|
|
643
|
-
enum: string[];
|
|
644
|
-
type: string;
|
|
645
|
-
};
|
|
646
|
-
to: {
|
|
647
|
-
items: {
|
|
648
|
-
additionalProperties: boolean;
|
|
649
|
-
properties: {
|
|
650
|
-
global: {
|
|
686
|
+
maxItems: number;
|
|
687
|
+
minItems: number;
|
|
688
|
+
not?: undefined;
|
|
689
|
+
} | {
|
|
690
|
+
type: string;
|
|
691
|
+
items: {
|
|
692
|
+
$ref: string;
|
|
693
|
+
};
|
|
694
|
+
not: {
|
|
695
|
+
contains: {
|
|
696
|
+
const: string;
|
|
697
|
+
};
|
|
698
|
+
};
|
|
699
|
+
contains?: undefined;
|
|
700
|
+
maxItems?: undefined;
|
|
701
|
+
minItems?: undefined;
|
|
702
|
+
})[];
|
|
703
|
+
};
|
|
704
|
+
next_timeout: {
|
|
651
705
|
type: string;
|
|
706
|
+
minimum: number;
|
|
652
707
|
};
|
|
653
|
-
|
|
654
|
-
minLength: number;
|
|
708
|
+
next_tries: {
|
|
655
709
|
type: string;
|
|
710
|
+
minimum: number;
|
|
656
711
|
};
|
|
657
|
-
|
|
712
|
+
read_timeout: {
|
|
658
713
|
type: string;
|
|
714
|
+
minimum: number;
|
|
715
|
+
maximum: number;
|
|
716
|
+
description: string;
|
|
717
|
+
};
|
|
718
|
+
send_timeout: {
|
|
719
|
+
type: string;
|
|
720
|
+
minimum: number;
|
|
721
|
+
maximum: number;
|
|
722
|
+
description: string;
|
|
659
723
|
};
|
|
660
724
|
};
|
|
661
|
-
allOf: {
|
|
662
|
-
$ref: string;
|
|
663
|
-
}[];
|
|
664
725
|
type: string;
|
|
665
726
|
};
|
|
666
|
-
|
|
727
|
+
port: {
|
|
728
|
+
$ref: string;
|
|
729
|
+
};
|
|
730
|
+
proto: {
|
|
731
|
+
enum: string[];
|
|
732
|
+
type: string;
|
|
733
|
+
};
|
|
734
|
+
to: {
|
|
735
|
+
items: {
|
|
736
|
+
additionalProperties: boolean;
|
|
737
|
+
properties: {
|
|
738
|
+
global: {
|
|
739
|
+
type: string;
|
|
740
|
+
};
|
|
741
|
+
ip: {
|
|
742
|
+
minLength: number;
|
|
743
|
+
type: string;
|
|
744
|
+
};
|
|
745
|
+
service: {
|
|
746
|
+
type: string;
|
|
747
|
+
};
|
|
748
|
+
};
|
|
749
|
+
allOf: {
|
|
750
|
+
$ref: string;
|
|
751
|
+
}[];
|
|
752
|
+
type: string;
|
|
753
|
+
};
|
|
754
|
+
type: string;
|
|
755
|
+
};
|
|
667
756
|
};
|
|
757
|
+
required: string[];
|
|
758
|
+
type: string;
|
|
668
759
|
};
|
|
669
|
-
|
|
760
|
+
} | {
|
|
670
761
|
type: string;
|
|
671
|
-
|
|
672
|
-
|
|
762
|
+
items?: undefined;
|
|
763
|
+
})[];
|
|
673
764
|
};
|
|
674
765
|
image: {
|
|
675
766
|
type: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@akashnetwork/chain-sdk",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.29",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Akash API TypeScript client",
|
|
6
6
|
"keywords": [],
|
|
@@ -39,6 +39,7 @@
|
|
|
39
39
|
"test:cov": "jest --selectProjects unit functional --coverage",
|
|
40
40
|
"test:functional": "jest --selectProjects functional",
|
|
41
41
|
"test:unit": "jest --selectProjects unit",
|
|
42
|
+
"test:sdk-compatibility": "jest --selectProjects functional --testPathPattern=sdl-parity.spec.ts",
|
|
42
43
|
"compile:validators": "node --experimental-strip-types --no-warnings ./script/compile-json-schema-to-ts.ts",
|
|
43
44
|
"release": "npm run build && npm test && npm publish --tag alpha"
|
|
44
45
|
},
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/generated/patches/nodeCustomTypePatches.ts", "../../src/generated/patches/nodePatchMessage.ts"],
|
|
4
|
-
"sourcesContent": ["import { LegacyDec } from \"../../encoding/customTypes/LegacyDec.ts\";\nimport type * as _protos_akash_bme_v1_types from \"../protos/akash/bme/v1/types.ts\";\nimport type * as _protos_akash_bme_v1_events from \"../protos/akash/bme/v1/events.ts\";\nimport type * as _protos_akash_bme_v1_query from \"../protos/akash/bme/v1/query.ts\";\nimport type * as _protos_cosmos_base_v1beta1_coin from \"../protos/cosmos/base/v1beta1/coin.ts\";\nimport type * as _protos_akash_escrow_types_v1_balance from \"../protos/akash/escrow/types/v1/balance.ts\";\nimport type * as _protos_akash_oracle_v1_prices from \"../protos/akash/oracle/v1/prices.ts\";\n\nconst p = {\n \"akash.bme.v1.CollateralRatio\"(value: _protos_akash_bme_v1_types.CollateralRatio | undefined | null, transformType: 'encode' | 'decode') {\n if (value == null) return;\n const newValue = { ...value };\n if (value.ratio != null) newValue.ratio = LegacyDec[transformType](value.ratio);\n if (value.referencePrice != null) newValue.referencePrice = LegacyDec[transformType](value.referencePrice);\n return newValue;\n },\n \"akash.bme.v1.CoinPrice\"(value: _protos_akash_bme_v1_types.CoinPrice | undefined | null, transformType: 'encode' | 'decode') {\n if (value == null) return;\n const newValue = { ...value };\n if (value.price != null) newValue.price = LegacyDec[transformType](value.price);\n return newValue;\n },\n \"akash.bme.v1.EventMintStatusChange\"(value: _protos_akash_bme_v1_events.EventMintStatusChange | undefined | null, transformType: 'encode' | 'decode') {\n if (value == null) return;\n const newValue = { ...value };\n if (value.collateralRatio != null) newValue.collateralRatio = LegacyDec[transformType](value.collateralRatio);\n return newValue;\n },\n \"akash.bme.v1.QueryStatusResponse\"(value: _protos_akash_bme_v1_query.QueryStatusResponse | undefined | null, transformType: 'encode' | 'decode') {\n if (value == null) return;\n const newValue = { ...value };\n if (value.collateralRatio != null) newValue.collateralRatio = LegacyDec[transformType](value.collateralRatio);\n if (value.warnThreshold != null) newValue.warnThreshold = LegacyDec[transformType](value.warnThreshold);\n if (value.haltThreshold != null) newValue.haltThreshold = LegacyDec[transformType](value.haltThreshold);\n return newValue;\n },\n \"cosmos.base.v1beta1.DecCoin\"(value: _protos_cosmos_base_v1beta1_coin.DecCoin | undefined | null, transformType: 'encode' | 'decode') {\n if (value == null) return;\n const newValue = { ...value };\n if (value.amount != null) newValue.amount = LegacyDec[transformType](value.amount);\n return newValue;\n },\n \"akash.escrow.types.v1.Balance\"(value: _protos_akash_escrow_types_v1_balance.Balance | undefined | null, transformType: 'encode' | 'decode') {\n if (value == null) return;\n const newValue = { ...value };\n if (value.amount != null) newValue.amount = LegacyDec[transformType](value.amount);\n return newValue;\n },\n \"akash.oracle.v1.PriceDataState\"(value: _protos_akash_oracle_v1_prices.PriceDataState | undefined | null, transformType: 'encode' | 'decode') {\n if (value == null) return;\n const newValue = { ...value };\n if (value.price != null) newValue.price = LegacyDec[transformType](value.price);\n return newValue;\n },\n \"akash.oracle.v1.AggregatedPrice\"(value: _protos_akash_oracle_v1_prices.AggregatedPrice | undefined | null, transformType: 'encode' | 'decode') {\n if (value == null) return;\n const newValue = { ...value };\n if (value.twap != null) newValue.twap = LegacyDec[transformType](value.twap);\n if (value.medianPrice != null) newValue.medianPrice = LegacyDec[transformType](value.medianPrice);\n if (value.minPrice != null) newValue.minPrice = LegacyDec[transformType](value.minPrice);\n if (value.maxPrice != null) newValue.maxPrice = LegacyDec[transformType](value.maxPrice);\n return newValue;\n }\n};\n\nexport const patches = p;\n", "import { patches } from \"./nodeCustomTypePatches.ts\";\nimport type { MessageDesc } from \"../../sdk/client/types.ts\";\nexport const patched = <T extends MessageDesc>(messageDesc: T): T => {\n const patchMessage = patches[messageDesc.$type as keyof typeof patches] as any;\n if (!patchMessage) return messageDesc;\n return {\n ...messageDesc,\n encode(message, writer) {\n return messageDesc.encode(patchMessage(message, 'encode'), writer);\n },\n decode(input, length) {\n return patchMessage(messageDesc.decode(input, length), 'decode');\n },\n };\n};\n"],
|
|
5
|
-
"mappings": "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",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|