@akashnetwork/chain-sdk 1.0.0-alpha.24 → 1.0.0-alpha.25

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.
Files changed (176) hide show
  1. package/README.md +25 -0
  2. package/dist/cjs/generated/createCosmosSDK.cjs +237 -237
  3. package/dist/cjs/generated/createCosmosSDK.cjs.map +2 -2
  4. package/dist/cjs/generated/createIbc-goSDK.cjs +91 -91
  5. package/dist/cjs/generated/createIbc-goSDK.cjs.map +2 -2
  6. package/dist/cjs/generated/createNodeSDK.cjs +68 -61
  7. package/dist/cjs/generated/createNodeSDK.cjs.map +2 -2
  8. package/dist/cjs/generated/createProviderSDK.cjs +18 -11
  9. package/dist/cjs/generated/createProviderSDK.cjs.map +2 -2
  10. package/dist/cjs/generated/patches/providerCustomTypePatches.cjs +34 -0
  11. package/dist/cjs/generated/patches/providerCustomTypePatches.cjs.map +7 -0
  12. package/dist/cjs/generated/patches/providerPatchMessage.cjs +38 -0
  13. package/dist/cjs/generated/patches/providerPatchMessage.cjs.map +7 -0
  14. package/dist/cjs/generated/protos/akash/bme/v1/filters.cjs +125 -0
  15. package/dist/cjs/generated/protos/akash/bme/v1/filters.cjs.map +7 -0
  16. package/dist/cjs/generated/protos/akash/bme/v1/params.cjs +26 -10
  17. package/dist/cjs/generated/protos/akash/bme/v1/params.cjs.map +2 -2
  18. package/dist/cjs/generated/protos/akash/bme/v1/query.cjs +233 -0
  19. package/dist/cjs/generated/protos/akash/bme/v1/query.cjs.map +2 -2
  20. package/dist/cjs/generated/protos/akash/bme/v1/query_akash.cjs +9 -0
  21. package/dist/cjs/generated/protos/akash/bme/v1/query_akash.cjs.map +2 -2
  22. package/dist/cjs/generated/protos/akash/manifest/v2beta3/service.cjs +67 -2
  23. package/dist/cjs/generated/protos/akash/manifest/v2beta3/service.cjs.map +2 -2
  24. package/dist/cjs/generated/protos/akash/market/v1beta5/params.cjs +17 -2
  25. package/dist/cjs/generated/protos/akash/market/v1beta5/params.cjs.map +2 -2
  26. package/dist/cjs/generated/protos/akash/market/v1beta5/resourcesoffer.cjs +266 -3
  27. package/dist/cjs/generated/protos/akash/market/v1beta5/resourcesoffer.cjs.map +2 -2
  28. package/dist/cjs/generated/protos/akash/oracle/v1/params.cjs +53 -1
  29. package/dist/cjs/generated/protos/akash/oracle/v1/params.cjs.map +2 -2
  30. package/dist/cjs/generated/protos/akash/provider/v1/service_akash.cjs +9 -0
  31. package/dist/cjs/generated/protos/akash/provider/v1/service_akash.cjs.map +2 -2
  32. package/dist/cjs/generated/protos/akash/provider/v1/validation.cjs +195 -0
  33. package/dist/cjs/generated/protos/akash/provider/v1/validation.cjs.map +7 -0
  34. package/dist/cjs/generated/protos/google/protobuf/descriptor.cjs +6 -0
  35. package/dist/cjs/generated/protos/google/protobuf/descriptor.cjs.map +2 -2
  36. package/dist/cjs/generated/protos/index.akash.v1.cjs +11 -5
  37. package/dist/cjs/generated/protos/index.akash.v1.cjs.map +3 -3
  38. package/dist/cjs/generated/protos/index.akash.v1beta5.cjs +4 -1
  39. package/dist/cjs/generated/protos/index.akash.v1beta5.cjs.map +2 -2
  40. package/dist/cjs/generated/protos/index.provider.akash.v1.cjs +3 -0
  41. package/dist/cjs/generated/protos/index.provider.akash.v1.cjs.map +2 -2
  42. package/dist/cjs/generated/protos/index.provider.akash.v2beta3.cjs +1 -0
  43. package/dist/cjs/generated/protos/index.provider.akash.v2beta3.cjs.map +2 -2
  44. package/dist/cjs/sdk/chain/createChainNodeSDK.cjs +2 -1
  45. package/dist/cjs/sdk/chain/createChainNodeSDK.cjs.map +2 -2
  46. package/dist/cjs/sdk/chain/createChainNodeWebSDK.cjs +2 -1
  47. package/dist/cjs/sdk/chain/createChainNodeWebSDK.cjs.map +2 -2
  48. package/dist/cjs/sdk/chain/helpers.cjs +56 -0
  49. package/dist/cjs/sdk/chain/helpers.cjs.map +7 -0
  50. package/dist/cjs/sdk/client/sdkMetadata.cjs.map +2 -2
  51. package/dist/cjs/sdk/index.cjs.map +2 -2
  52. package/dist/cjs/sdk/index.shared.cjs +4 -1
  53. package/dist/cjs/sdk/index.shared.cjs.map +2 -2
  54. package/dist/cjs/sdk/index.web.cjs.map +2 -2
  55. package/dist/cjs/sdk/transport/tx/createTxTransport.cjs +1 -1
  56. package/dist/cjs/sdk/transport/tx/createTxTransport.cjs.map +2 -2
  57. package/dist/cjs/sdl/manifest/generateManifest.cjs +8 -6
  58. package/dist/cjs/sdl/manifest/generateManifest.cjs.map +2 -2
  59. package/dist/cjs/sdl/manifest/generateManifestVersion.cjs.map +2 -2
  60. package/dist/cjs/sdl/manifest/manifestUtils.cjs +16 -9
  61. package/dist/cjs/sdl/manifest/manifestUtils.cjs.map +2 -2
  62. package/dist/cjs/utils/yaml.cjs +10 -3
  63. package/dist/cjs/utils/yaml.cjs.map +2 -2
  64. package/dist/esm/{chunk-BYQF33C6.js → chunk-5YIS3XNX.js} +2 -2
  65. package/dist/esm/{chunk-JISXXX24.js → chunk-6CIH635G.js} +2 -2
  66. package/dist/esm/{chunk-GUNMCW7A.js → chunk-BWGYKJLS.js} +2 -2
  67. package/dist/esm/{chunk-MQPC6TDF.js → chunk-C3DBWOZD.js} +53 -1
  68. package/dist/esm/{chunk-MQPC6TDF.js.map → chunk-C3DBWOZD.js.map} +2 -2
  69. package/dist/esm/{chunk-TCVGOF7L.js → chunk-DJASDN6A.js} +2 -2
  70. package/dist/esm/{chunk-5DCYIWCG.js → chunk-E76SLJJ3.js} +3 -1
  71. package/dist/esm/{chunk-4D3QNKFB.js → chunk-EKFJV4QU.js} +6 -4
  72. package/dist/esm/{chunk-4D3QNKFB.js.map → chunk-EKFJV4QU.js.map} +1 -1
  73. package/dist/esm/{chunk-XFCN5LRY.js → chunk-H5WUFEMM.js} +2 -2
  74. package/dist/esm/{chunk-YSMDEW4E.js → chunk-JZTFWLSX.js} +178 -2
  75. package/dist/esm/{chunk-YSMDEW4E.js.map → chunk-JZTFWLSX.js.map} +4 -4
  76. package/dist/esm/{chunk-C7UQYVYH.js → chunk-KFWTFROT.js} +21 -79
  77. package/dist/esm/chunk-KFWTFROT.js.map +7 -0
  78. package/dist/esm/{chunk-IZQCYKLD.js → chunk-LGAXM6RX.js} +27 -11
  79. package/dist/esm/chunk-LGAXM6RX.js.map +7 -0
  80. package/dist/esm/{chunk-VRE72ZD5.js → chunk-M2ZK7HEC.js} +69 -4
  81. package/dist/esm/chunk-M2ZK7HEC.js.map +7 -0
  82. package/dist/esm/{chunk-Z5KZUB7X.js → chunk-MVADLHLI.js} +2 -2
  83. package/dist/esm/chunk-OL4JUIQC.js +702 -0
  84. package/dist/esm/chunk-OL4JUIQC.js.map +7 -0
  85. package/dist/esm/{chunk-5YECXI3P.js → chunk-RUC3LXDX.js} +2 -2
  86. package/dist/esm/{chunk-SA4SEZ6F.js → chunk-TXQ2BR6G.js} +5 -3
  87. package/dist/esm/{chunk-SA4SEZ6F.js.map → chunk-TXQ2BR6G.js.map} +1 -1
  88. package/dist/esm/{chunk-IJSLZIPC.js → chunk-UFJRY3ID.js} +2 -2
  89. package/dist/esm/chunk-Y7JCYDLU.js +346 -0
  90. package/dist/esm/chunk-Y7JCYDLU.js.map +7 -0
  91. package/dist/esm/{chunk-RON4KFMD.js → chunk-ZQDAXUFL.js} +6 -1
  92. package/dist/esm/chunk-ZQDAXUFL.js.map +7 -0
  93. package/dist/esm/{chunk-RIIYZIXM.js → chunk-ZRM47VCZ.js} +398 -338
  94. package/dist/esm/{chunk-RIIYZIXM.js.map → chunk-ZRM47VCZ.js.map} +4 -4
  95. package/dist/esm/generated/protos/index.akash.v1.js +18 -8
  96. package/dist/esm/generated/protos/index.akash.v1.js.map +1 -1
  97. package/dist/esm/generated/protos/index.akash.v1beta4.js +5 -5
  98. package/dist/esm/generated/protos/index.akash.v1beta5.js +16 -8
  99. package/dist/esm/generated/protos/index.akash.v1beta5.js.map +1 -1
  100. package/dist/esm/generated/protos/index.cosmos.v1.js +1 -1
  101. package/dist/esm/generated/protos/index.provider.akash.v1.js +10 -4
  102. package/dist/esm/generated/protos/index.provider.akash.v2beta3.js +4 -2
  103. package/dist/esm/index.js +33 -21
  104. package/dist/esm/index.js.map +2 -2
  105. package/dist/esm/index.web.js +13 -8
  106. package/dist/esm/index.web.js.map +2 -2
  107. package/dist/esm/{query_akash-RGYTHUNZ.js → query_akash-745M5I3X.js} +3 -3
  108. package/dist/esm/{query_akash-N2BNNOTD.js → query_akash-EHAEDYOH.js} +15 -3
  109. package/dist/esm/query_akash-EHAEDYOH.js.map +7 -0
  110. package/dist/esm/{query_akash-DJ7LTLRE.js → query_akash-FYNRLU72.js} +6 -5
  111. package/dist/esm/{query_akash-DJ7LTLRE.js.map → query_akash-FYNRLU72.js.map} +1 -1
  112. package/dist/esm/{query_akash-4CTLBKZR.js → query_akash-LW3YJGS6.js} +4 -4
  113. package/dist/esm/{reflection_akash-WUBSNT7I.js → reflection_akash-YHEVUIB6.js} +2 -2
  114. package/dist/esm/{service_akash-KPU6LPVP.js → service_akash-2VS4VW6P.js} +3 -3
  115. package/dist/esm/{service_akash-AZFAYT7H.js → service_akash-5JSE44LJ.js} +4 -4
  116. package/dist/esm/{service_akash-VMU3LNBA.js → service_akash-FI6WXDZP.js} +4 -4
  117. package/dist/esm/{service_akash-WRGOVR7I.js → service_akash-QEN5EQUY.js} +5 -4
  118. package/dist/esm/{service_akash-WRGOVR7I.js.map → service_akash-QEN5EQUY.js.map} +1 -1
  119. package/dist/esm/{service_akash-CQVYVSHE.js → service_akash-UDPD4GFX.js} +18 -2
  120. package/dist/esm/service_akash-UDPD4GFX.js.map +7 -0
  121. package/dist/esm/{service_akash-RQDCQLQH.js → service_akash-VFDQVHZD.js} +3 -3
  122. package/dist/tsconfig.build.tsbuildinfo +1 -1
  123. package/dist/types/generated/createNodeSDK.d.ts +11 -0
  124. package/dist/types/generated/createProviderSDK.d.ts +11 -0
  125. package/dist/types/generated/patches/providerCustomTypePatches.d.ts +7 -0
  126. package/dist/types/generated/patches/providerPatchMessage.d.ts +2 -0
  127. package/dist/types/generated/protos/akash/bme/v1/filters.d.ts +17 -0
  128. package/dist/types/generated/protos/akash/bme/v1/params.d.ts +6 -1
  129. package/dist/types/generated/protos/akash/bme/v1/query.d.ts +31 -1
  130. package/dist/types/generated/protos/akash/bme/v1/query_akash.d.ts +8 -1
  131. package/dist/types/generated/protos/akash/manifest/v2beta3/service.d.ts +10 -0
  132. package/dist/types/generated/protos/akash/market/v1beta5/params.d.ts +6 -1
  133. package/dist/types/generated/protos/akash/market/v1beta5/resourcesoffer.d.ts +91 -0
  134. package/dist/types/generated/protos/akash/oracle/v1/params.d.ts +14 -0
  135. package/dist/types/generated/protos/akash/provider/v1/service_akash.d.ts +7 -0
  136. package/dist/types/generated/protos/akash/provider/v1/validation.d.ts +30 -0
  137. package/dist/types/generated/protos/google/protobuf/descriptor.d.ts +2 -0
  138. package/dist/types/generated/protos/index.akash.v1.d.ts +3 -2
  139. package/dist/types/generated/protos/index.akash.v1beta5.d.ts +1 -1
  140. package/dist/types/generated/protos/index.provider.akash.v1.d.ts +1 -0
  141. package/dist/types/generated/protos/index.provider.akash.v2beta3.d.ts +1 -1
  142. package/dist/types/sdk/chain/createChainNodeSDK.d.ts +3 -0
  143. package/dist/types/sdk/chain/createChainNodeWebSDK.d.ts +3 -0
  144. package/dist/types/sdk/chain/helpers.d.ts +14 -0
  145. package/dist/types/sdk/client/sdkMetadata.d.ts +5 -2
  146. package/dist/types/sdk/index.d.ts +2 -0
  147. package/dist/types/sdk/index.shared.d.ts +2 -0
  148. package/dist/types/sdk/index.web.d.ts +2 -0
  149. package/dist/types/sdl/manifest/generateManifest.d.ts +3 -3
  150. package/dist/types/sdl/manifest/generateManifestVersion.d.ts +2 -2
  151. package/dist/types/utils/yaml.d.ts +3 -0
  152. package/package.json +1 -1
  153. package/dist/esm/chunk-C7UQYVYH.js.map +0 -7
  154. package/dist/esm/chunk-IZQCYKLD.js.map +0 -7
  155. package/dist/esm/chunk-RON4KFMD.js.map +0 -7
  156. package/dist/esm/chunk-VRE72ZD5.js.map +0 -7
  157. package/dist/esm/chunk-XPIWBE65.js +0 -362
  158. package/dist/esm/chunk-XPIWBE65.js.map +0 -7
  159. package/dist/esm/query_akash-N2BNNOTD.js.map +0 -7
  160. package/dist/esm/service_akash-CQVYVSHE.js.map +0 -7
  161. /package/dist/esm/{chunk-BYQF33C6.js.map → chunk-5YIS3XNX.js.map} +0 -0
  162. /package/dist/esm/{chunk-JISXXX24.js.map → chunk-6CIH635G.js.map} +0 -0
  163. /package/dist/esm/{chunk-GUNMCW7A.js.map → chunk-BWGYKJLS.js.map} +0 -0
  164. /package/dist/esm/{chunk-TCVGOF7L.js.map → chunk-DJASDN6A.js.map} +0 -0
  165. /package/dist/esm/{chunk-5DCYIWCG.js.map → chunk-E76SLJJ3.js.map} +0 -0
  166. /package/dist/esm/{chunk-XFCN5LRY.js.map → chunk-H5WUFEMM.js.map} +0 -0
  167. /package/dist/esm/{chunk-Z5KZUB7X.js.map → chunk-MVADLHLI.js.map} +0 -0
  168. /package/dist/esm/{chunk-5YECXI3P.js.map → chunk-RUC3LXDX.js.map} +0 -0
  169. /package/dist/esm/{chunk-IJSLZIPC.js.map → chunk-UFJRY3ID.js.map} +0 -0
  170. /package/dist/esm/{query_akash-RGYTHUNZ.js.map → query_akash-745M5I3X.js.map} +0 -0
  171. /package/dist/esm/{query_akash-4CTLBKZR.js.map → query_akash-LW3YJGS6.js.map} +0 -0
  172. /package/dist/esm/{reflection_akash-WUBSNT7I.js.map → reflection_akash-YHEVUIB6.js.map} +0 -0
  173. /package/dist/esm/{service_akash-KPU6LPVP.js.map → service_akash-2VS4VW6P.js.map} +0 -0
  174. /package/dist/esm/{service_akash-AZFAYT7H.js.map → service_akash-5JSE44LJ.js.map} +0 -0
  175. /package/dist/esm/{service_akash-VMU3LNBA.js.map → service_akash-FI6WXDZP.js.map} +0 -0
  176. /package/dist/esm/{service_akash-RQDCQLQH.js.map → service_akash-VFDQVHZD.js.map} +0 -0
@@ -99,6 +99,13 @@ export declare const serviceLoader: import("../sdk/client/createServiceLoader.ts
99
99
  readonly output: import("../encoding/typeEncodingHelpers.ts").MessageFns<akash_bme_v1_query.QueryStatusResponse, "akash.bme.v1.QueryStatusResponse">;
100
100
  readonly parent: /*elided*/ any;
101
101
  };
102
+ readonly ledgerRecords: {
103
+ readonly name: "LedgerRecords";
104
+ readonly httpPath: "/akash/bme/v1/ledger";
105
+ readonly input: import("../encoding/typeEncodingHelpers.ts").MessageFns<akash_bme_v1_query.QueryLedgerRecordsRequest, "akash.bme.v1.QueryLedgerRecordsRequest">;
106
+ readonly output: import("../encoding/typeEncodingHelpers.ts").MessageFns<akash_bme_v1_query.QueryLedgerRecordsResponse, "akash.bme.v1.QueryLedgerRecordsResponse">;
107
+ readonly parent: /*elided*/ any;
108
+ };
102
109
  };
103
110
  }>, () => Promise<{
104
111
  readonly typeName: "akash.bme.v1.Msg";
@@ -558,6 +565,10 @@ export declare function createSDK(queryTransport: Transport, txTransport: Transp
558
565
  * getStatus returns the current circuit breaker status
559
566
  */
560
567
  getStatus: (input?: DeepPartial<akash_bme_v1_query.QueryStatusRequest>, options?: CallOptions) => Promise<akash_bme_v1_query.QueryStatusResponse>;
568
+ /**
569
+ * getLedgerRecords queries ledger records with optional filters for status, source, denom, to_denom
570
+ */
571
+ getLedgerRecords: (input: DeepPartial<akash_bme_v1_query.QueryLedgerRecordsRequest>, options?: CallOptions) => Promise<akash_bme_v1_query.QueryLedgerRecordsResponse>;
561
572
  /**
562
573
  * updateParams updates the module parameters.
563
574
  * This operation can only be performed through governance proposals.
@@ -1,5 +1,6 @@
1
1
  import type * as google_protobuf_empty from "./protos/google/protobuf/empty.ts";
2
2
  import type * as akash_provider_lease_v1_service from "./protos/akash/provider/lease/v1/service.ts";
3
+ import type * as akash_provider_v1_validation from "./protos/akash/provider/v1/validation.ts";
3
4
  import type { Transport, CallOptions } from "../sdk/transport/types.ts";
4
5
  import type { DeepPartial } from "../encoding/typeEncodingHelpers.ts";
5
6
  export declare const serviceLoader: import("../sdk/client/createServiceLoader.ts").ServiceLoader<readonly [() => Promise<{
@@ -91,6 +92,12 @@ export declare const serviceLoader: import("../sdk/client/createServiceLoader.ts
91
92
  readonly output: import("../encoding/typeEncodingHelpers.ts").MessageFns<import("./protos/index.provider.akash.v1.ts").Status, "akash.provider.v1.Status">;
92
93
  readonly parent: /*elided*/ any;
93
94
  };
95
+ readonly bidScreening: {
96
+ readonly name: "BidScreening";
97
+ readonly input: import("../encoding/typeEncodingHelpers.ts").MessageFns<akash_provider_v1_validation.BidScreeningRequest, "akash.provider.v1.BidScreeningRequest">;
98
+ readonly output: import("../encoding/typeEncodingHelpers.ts").MessageFns<akash_provider_v1_validation.BidScreeningResponse, "akash.provider.v1.BidScreeningResponse">;
99
+ readonly parent: /*elided*/ any;
100
+ };
94
101
  };
95
102
  }>]>;
96
103
  export declare function createSDK(transport: Transport): {
@@ -149,6 +156,10 @@ export declare function createSDK(transport: Transport): {
149
156
  * Status defines a method to stream provider state
150
157
  */
151
158
  streamStatus: (input?: DeepPartial<google_protobuf_empty.Empty>, options?: CallOptions) => Promise<AsyncIterable<import("./protos/index.provider.akash.v1.ts").Status>>;
159
+ /**
160
+ * bidScreening screens a deployment group spec for bid eligibility and returns pricing
161
+ */
162
+ bidScreening: (input: DeepPartial<akash_provider_v1_validation.BidScreeningRequest>, options?: CallOptions) => Promise<akash_provider_v1_validation.BidScreeningResponse>;
152
163
  };
153
164
  };
154
165
  };
@@ -0,0 +1,7 @@
1
+ import type * as _protos_cosmos_base_v1beta1_coin from "../protos/cosmos/base/v1beta1/coin.ts";
2
+ export declare const patches: {
3
+ "cosmos.base.v1beta1.DecCoin"(value: _protos_cosmos_base_v1beta1_coin.DecCoin | undefined | null, transformType: "encode" | "decode"): {
4
+ denom: string;
5
+ amount: string;
6
+ } | undefined;
7
+ };
@@ -0,0 +1,2 @@
1
+ import type { MessageDesc } from "../../sdk/client/types.ts";
2
+ export declare const patched: <T extends MessageDesc>(messageDesc: T) => T;
@@ -0,0 +1,17 @@
1
+ import type { MessageFns } from "../../../../../encoding/typeEncodingHelpers.ts";
2
+ /** LedgerRecordFilters defines filters used to filter ledger records */
3
+ export interface LedgerRecordFilters {
4
+ /** source is the account address of the user who initiated the burn/mint */
5
+ source: string;
6
+ /** denom filters by the burn denomination */
7
+ denom: string;
8
+ /** to_denom filters by the mint denomination */
9
+ toDenom: string;
10
+ /**
11
+ * status filters by record status (pending or executed).
12
+ * Uses the string representation of LedgerRecordStatus enum values.
13
+ * If empty, returns both pending and executed records.
14
+ */
15
+ status: string;
16
+ }
17
+ export declare const LedgerRecordFilters: MessageFns<LedgerRecordFilters, "akash.bme.v1.LedgerRecordFilters">;
@@ -26,7 +26,7 @@ export interface Params {
26
26
  * circuit_breaker_warn_threshold drops from 0.94 to 0.92
27
27
  * then runway_blocks = (110*(0.1*2) + 110) = 132
28
28
  */
29
- epochBlocksBackoff: number;
29
+ epochBlocksBackoffPercent: number;
30
30
  /**
31
31
  * mint_spread_bps is the spread in basis points applied during ACT mint
32
32
  * (default: 25 bps = 0.25%)
@@ -37,5 +37,10 @@ export interface Params {
37
37
  * (default: 0 for no provider tax)
38
38
  */
39
39
  settleSpreadBps: number;
40
+ /**
41
+ * max_endblocker_records is the deterministic upper bound on pending ledger
42
+ * records processed in a single EndBlocker invocation.
43
+ */
44
+ maxEndblockerRecords: number;
40
45
  }
41
46
  export declare const Params: MessageFns<Params, "akash.bme.v1.Params">;
@@ -1,6 +1,8 @@
1
1
  import type { MessageFns } from "../../../../../encoding/typeEncodingHelpers.ts";
2
+ import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination.ts";
3
+ import { LedgerRecordFilters } from "./filters.ts";
2
4
  import { Params } from "./params.ts";
3
- import { MintStatus, State } from "./types.ts";
5
+ import { LedgerPendingRecord, LedgerRecord, LedgerRecordID, LedgerRecordStatus, MintStatus, State } from "./types.ts";
4
6
  /** QueryParamsRequest is the request type for the Query/Params RPC method */
5
7
  export interface QueryParamsRequest {
6
8
  }
@@ -33,9 +35,37 @@ export interface QueryStatusResponse {
33
35
  /** refunds_allowed indicates if ACT refunds are allowed */
34
36
  refundsAllowed: boolean;
35
37
  }
38
+ /** QueryLedgerRecordEntry wraps a ledger record with its ID and status */
39
+ export interface QueryLedgerRecordEntry {
40
+ /** id is the unique identifier of the ledger record */
41
+ id: LedgerRecordID | undefined;
42
+ /** status indicates whether this record is pending or executed */
43
+ status: LedgerRecordStatus;
44
+ /** pending_record is set when the record status is pending */
45
+ pendingRecord?: LedgerPendingRecord | undefined;
46
+ /** executed_record is set when the record status is executed */
47
+ executedRecord?: LedgerRecord | undefined;
48
+ }
49
+ /** QueryLedgerRecordsRequest is the request type for the Query/LedgerRecords RPC method */
50
+ export interface QueryLedgerRecordsRequest {
51
+ /** filters holds the ledger record fields to filter the request */
52
+ filters: LedgerRecordFilters | undefined;
53
+ /** pagination defines the pagination for the request */
54
+ pagination: PageRequest | undefined;
55
+ }
56
+ /** QueryLedgerRecordsResponse is the response type for the Query/LedgerRecords RPC method */
57
+ export interface QueryLedgerRecordsResponse {
58
+ /** records is a list of ledger records matching the filters */
59
+ records: QueryLedgerRecordEntry[];
60
+ /** pagination contains the information about response pagination */
61
+ pagination: PageResponse | undefined;
62
+ }
36
63
  export declare const QueryParamsRequest: MessageFns<QueryParamsRequest, "akash.bme.v1.QueryParamsRequest">;
37
64
  export declare const QueryParamsResponse: MessageFns<QueryParamsResponse, "akash.bme.v1.QueryParamsResponse">;
38
65
  export declare const QueryVaultStateRequest: MessageFns<QueryVaultStateRequest, "akash.bme.v1.QueryVaultStateRequest">;
39
66
  export declare const QueryVaultStateResponse: MessageFns<QueryVaultStateResponse, "akash.bme.v1.QueryVaultStateResponse">;
40
67
  export declare const QueryStatusRequest: MessageFns<QueryStatusRequest, "akash.bme.v1.QueryStatusRequest">;
68
+ export declare const QueryLedgerRecordEntry: MessageFns<QueryLedgerRecordEntry, "akash.bme.v1.QueryLedgerRecordEntry">;
69
+ export declare const QueryLedgerRecordsRequest: MessageFns<QueryLedgerRecordsRequest, "akash.bme.v1.QueryLedgerRecordsRequest">;
70
+ export declare const QueryLedgerRecordsResponse: MessageFns<QueryLedgerRecordsResponse, "akash.bme.v1.QueryLedgerRecordsResponse">;
41
71
  export declare const QueryStatusResponse: MessageFns<QueryStatusResponse, "akash.bme.v1.QueryStatusResponse">;
@@ -1,4 +1,4 @@
1
- import { QueryParamsRequest, QueryParamsResponse, QueryStatusRequest, QueryStatusResponse, QueryVaultStateRequest, QueryVaultStateResponse } from "./query.ts";
1
+ import { QueryLedgerRecordsRequest, QueryLedgerRecordsResponse, QueryParamsRequest, QueryParamsResponse, QueryStatusRequest, QueryStatusResponse, QueryVaultStateRequest, QueryVaultStateResponse } from "./query.ts";
2
2
  export declare const Query: {
3
3
  readonly typeName: "akash.bme.v1.Query";
4
4
  readonly methods: {
@@ -23,5 +23,12 @@ export declare const Query: {
23
23
  readonly output: import("../../../../../encoding/typeEncodingHelpers.ts").MessageFns<QueryStatusResponse, "akash.bme.v1.QueryStatusResponse">;
24
24
  readonly parent: /*elided*/ any;
25
25
  };
26
+ readonly ledgerRecords: {
27
+ readonly name: "LedgerRecords";
28
+ readonly httpPath: "/akash/bme/v1/ledger";
29
+ readonly input: import("../../../../../encoding/typeEncodingHelpers.ts").MessageFns<QueryLedgerRecordsRequest, "akash.bme.v1.QueryLedgerRecordsRequest">;
30
+ readonly output: import("../../../../../encoding/typeEncodingHelpers.ts").MessageFns<QueryLedgerRecordsResponse, "akash.bme.v1.QueryLedgerRecordsResponse">;
31
+ readonly parent: /*elided*/ any;
32
+ };
26
33
  };
27
34
  };
@@ -7,10 +7,19 @@ export interface StorageParams {
7
7
  mount: string;
8
8
  readOnly: boolean;
9
9
  }
10
+ /**
11
+ * ServicePermissions defines resource access permissions for the service.
12
+ * Resources map to Kubernetes RBAC permissions:
13
+ * - logs
14
+ */
15
+ export interface ServicePermissions {
16
+ read: string[];
17
+ }
10
18
  /** ServiceParams */
11
19
  export interface ServiceParams {
12
20
  storage: StorageParams[];
13
21
  credentials: ImageCredentials | undefined;
22
+ permissions: ServicePermissions | undefined;
14
23
  }
15
24
  /** Credentials to fetch image from registry */
16
25
  export interface ImageCredentials {
@@ -33,6 +42,7 @@ export interface Service {
33
42
  credentials: ImageCredentials | undefined;
34
43
  }
35
44
  export declare const StorageParams: MessageFns<StorageParams, "akash.manifest.v2beta3.StorageParams">;
45
+ export declare const ServicePermissions: MessageFns<ServicePermissions, "akash.manifest.v2beta3.ServicePermissions">;
36
46
  export declare const ServiceParams: MessageFns<ServiceParams, "akash.manifest.v2beta3.ServiceParams">;
37
47
  export declare const ImageCredentials: MessageFns<ImageCredentials, "akash.manifest.v2beta3.ImageCredentials">;
38
48
  export declare const Service: MessageFns<Service, "akash.manifest.v2beta3.Service">;
@@ -2,9 +2,14 @@ import type { MessageFns } from "../../../../../encoding/typeEncodingHelpers.ts"
2
2
  import { Coin } from "../../../cosmos/base/v1beta1/coin.ts";
3
3
  /** Params is the params for the x/market module. */
4
4
  export interface Params {
5
- /** BidMinDeposit is a parameter for the minimum deposit on a Bid. */
5
+ /**
6
+ * BidMinDeposit is a parameter for the minimum deposit on a Bid.
7
+ * Deprecated: use BidMinDeposits
8
+ */
6
9
  bidMinDeposit: Coin | undefined;
7
10
  /** OrderMaxBids is a parameter for the maximum number of bids in an order. */
8
11
  orderMaxBids: number;
12
+ /** BidMinDeposits is a parameter for the minimum deposits per denom on a Bid. */
13
+ bidMinDeposits: Coin[];
9
14
  }
10
15
  export declare const Params: MessageFns<Params, "akash.market.v1beta5.Params">;
@@ -1,5 +1,91 @@
1
1
  import type { MessageFns } from "../../../../../encoding/typeEncodingHelpers.ts";
2
+ import { DecCoin } from "../../../cosmos/base/v1beta1/coin.ts";
3
+ import { Endpoint_Kind } from "../../base/resources/v1beta4/endpoint.ts";
2
4
  import { Resources } from "../../base/resources/v1beta4/resources.ts";
5
+ /**
6
+ * StorageOfferPrice represents the price a provider is offering for a specific
7
+ * class of persistent storage. Providers may offer multiple storage classes
8
+ * (e.g., SSD, HDD, NVMe), each identified by name and priced independently.
9
+ * This type is used as a repeated field within OfferPrices to express
10
+ * per-class storage pricing in a bid.
11
+ */
12
+ export interface StorageOfferPrice {
13
+ /**
14
+ * Name holds an arbitrary name for the storage class (e.g., "default", "ssd", "hdd").
15
+ * This must match a storage class name from the corresponding resource specification.
16
+ */
17
+ name: string;
18
+ /**
19
+ * Price is the offered price per unit of this storage class, expressed as a
20
+ * DecCoin (decimal coin) to allow fractional pricing. When nil, no explicit
21
+ * price is set for this storage class.
22
+ */
23
+ price: DecCoin | undefined;
24
+ }
25
+ /**
26
+ * EndpointOfferPrice represents the price a provider is offering for a specific
27
+ * kind of network endpoint. Providers may price each endpoint kind differently
28
+ * (e.g., a leased IP may cost more than a shared HTTP ingress). This type is
29
+ * used as a repeated field within OfferPrices to express per-kind endpoint
30
+ * pricing in a bid.
31
+ */
32
+ export interface EndpointOfferPrice {
33
+ /**
34
+ * Kind specifies the type of network endpoint being priced. Possible values:
35
+ * - SHARED_HTTP (0): A Kubernetes Ingress endpoint.
36
+ * - RANDOM_PORT (1): A Kubernetes NodePort endpoint.
37
+ * - LEASED_IP (2): A dedicated leased IP endpoint.
38
+ */
39
+ kind: Endpoint_Kind;
40
+ /**
41
+ * Price is the offered price per unit of this endpoint kind, expressed as a
42
+ * DecCoin (decimal coin) to allow fractional pricing. When nil, no explicit
43
+ * price is set for this endpoint kind.
44
+ */
45
+ price: DecCoin | undefined;
46
+ }
47
+ /**
48
+ * OfferPrices contains the complete pricing breakdown that a provider includes
49
+ * in a bid for a deployment resource group. Each field represents the price for
50
+ * a specific compute resource type. All price fields use DecCoin (decimal coin)
51
+ * to support fractional pricing denominated in any supported token.
52
+ *
53
+ * This message is embedded as a nullable field on ResourceOffer, which in turn
54
+ * is carried by Bid and MsgCreateBid messages. A nil OfferPrices on a
55
+ * ResourceOffer indicates that no per-resource pricing was specified.
56
+ *
57
+ * Field 1 is reserved for backward compatibility with a previously removed field.
58
+ */
59
+ export interface OfferPrices {
60
+ /**
61
+ * Cpu is the offered price for CPU resources. When nil, no explicit
62
+ * CPU price is set.
63
+ */
64
+ cpu: DecCoin | undefined;
65
+ /**
66
+ * Memory is the offered price for memory resources. When nil, no explicit
67
+ * memory price is set.
68
+ */
69
+ memory: DecCoin | undefined;
70
+ /**
71
+ * Storage is a list of per-class storage prices. Each entry corresponds to a
72
+ * named storage class (e.g., "default", "ssd") and its associated price.
73
+ * Multiple entries allow providers to price different storage tiers independently.
74
+ */
75
+ storage: StorageOfferPrice[];
76
+ /**
77
+ * Gpu is the offered price for GPU resources. When nil, no explicit
78
+ * GPU price is set.
79
+ */
80
+ gpu: DecCoin | undefined;
81
+ /**
82
+ * Endpoints is a list of per-kind endpoint prices. Each entry corresponds to
83
+ * a network endpoint kind (SHARED_HTTP, RANDOM_PORT, or LEASED_IP) and its
84
+ * associated price. Multiple entries allow providers to price different
85
+ * endpoint types independently.
86
+ */
87
+ endpoints: EndpointOfferPrice[];
88
+ }
3
89
  /**
4
90
  * ResourceOffer describes resources that provider is offering
5
91
  * for deployment.
@@ -9,5 +95,10 @@ export interface ResourceOffer {
9
95
  resources: Resources | undefined;
10
96
  /** Count is the number of resources. */
11
97
  count: number;
98
+ /** Prices contains per-resource pricing details (CPU, memory, storage, GPU, endpoints) for this offer. */
99
+ prices: OfferPrices | undefined;
12
100
  }
101
+ export declare const StorageOfferPrice: MessageFns<StorageOfferPrice, "akash.market.v1beta5.StorageOfferPrice">;
102
+ export declare const EndpointOfferPrice: MessageFns<EndpointOfferPrice, "akash.market.v1beta5.EndpointOfferPrice">;
103
+ export declare const OfferPrices: MessageFns<OfferPrices, "akash.market.v1beta5.OfferPrices">;
13
104
  export declare const ResourceOffer: MessageFns<ResourceOffer, "akash.market.v1beta5.ResourceOffer">;
@@ -6,6 +6,19 @@ export interface PythContractParams {
6
6
  /** akt_price_feed_id is the Pyth price feed identifier for AKT/USD */
7
7
  aktPriceFeedId: string;
8
8
  }
9
+ /**
10
+ * WormholeContractParams contains configuration for Wormhole guardian set.
11
+ * This allows the Wormhole contract to pull guardian public keys from x/oracle
12
+ * module params, enabling guardian set updates via Akash governance.
13
+ */
14
+ export interface WormholeContractParams {
15
+ /**
16
+ * guardian_addresses is the list of Wormhole guardian addresses.
17
+ * Each address is a 20-byte Ethereum-style address, hex-encoded.
18
+ * The Wormhole contract uses these to verify VAA signatures.
19
+ */
20
+ guardianAddresses: string[];
21
+ }
9
22
  /** Params defines the parameters for the oracle module */
10
23
  export interface Params {
11
24
  /**
@@ -25,4 +38,5 @@ export interface Params {
25
38
  feedContractsParams: Any[];
26
39
  }
27
40
  export declare const PythContractParams: MessageFns<PythContractParams, "akash.oracle.v1.PythContractParams">;
41
+ export declare const WormholeContractParams: MessageFns<WormholeContractParams, "akash.oracle.v1.WormholeContractParams">;
28
42
  export declare const Params: MessageFns<Params, "akash.oracle.v1.Params">;
@@ -1,5 +1,6 @@
1
1
  import { Empty } from "../../../google/protobuf/empty.ts";
2
2
  import { Status } from "./status.ts";
3
+ import { BidScreeningRequest, BidScreeningResponse } from "./validation.ts";
3
4
  export declare const ProviderRPC: {
4
5
  readonly typeName: "akash.provider.v1.ProviderRPC";
5
6
  readonly methods: {
@@ -17,5 +18,11 @@ export declare const ProviderRPC: {
17
18
  readonly output: import("../../../../../encoding/typeEncodingHelpers.ts").MessageFns<Status, "akash.provider.v1.Status">;
18
19
  readonly parent: /*elided*/ any;
19
20
  };
21
+ readonly bidScreening: {
22
+ readonly name: "BidScreening";
23
+ readonly input: import("../../../../../encoding/typeEncodingHelpers.ts").MessageFns<BidScreeningRequest, "akash.provider.v1.BidScreeningRequest">;
24
+ readonly output: import("../../../../../encoding/typeEncodingHelpers.ts").MessageFns<BidScreeningResponse, "akash.provider.v1.BidScreeningResponse">;
25
+ readonly parent: /*elided*/ any;
26
+ };
20
27
  };
21
28
  };
@@ -0,0 +1,30 @@
1
+ import type { MessageFns } from "../../../../../encoding/typeEncodingHelpers.ts";
2
+ import { DecCoin } from "../../../cosmos/base/v1beta1/coin.ts";
3
+ import { GroupSpec } from "../../deployment/v1beta4/groupspec.ts";
4
+ import { ResourceOffer } from "../../market/v1beta5/resourcesoffer.ts";
5
+ /**
6
+ * BidScreeningRequest represents a request to screen a deployment group
7
+ * specification for bid eligibility against the provider's capabilities.
8
+ */
9
+ export interface BidScreeningRequest {
10
+ /** GroupSpec is the deployment group specification to screen for bid eligibility. */
11
+ groupSpec: GroupSpec | undefined;
12
+ /** Hostnames is the list of hostnames requested by the deployment. */
13
+ hostnames: string[];
14
+ }
15
+ /**
16
+ * BidScreeningResponse represents the result of screening a deployment group
17
+ * specification for bid eligibility against the provider's capabilities.
18
+ */
19
+ export interface BidScreeningResponse {
20
+ /** Passed indicates whether the deployment group passed bid screening. */
21
+ passed: boolean;
22
+ /** Reasons contains explanations when screening fails. */
23
+ reasons: string[];
24
+ /** ResourceOffer is the provider's resource offer for the screened group, if passed. */
25
+ resourceOffer: ResourceOffer | undefined;
26
+ /** Price is the minimum bid price for the screened group. */
27
+ price: DecCoin | undefined;
28
+ }
29
+ export declare const BidScreeningRequest: MessageFns<BidScreeningRequest, "akash.provider.v1.BidScreeningRequest">;
30
+ export declare const BidScreeningResponse: MessageFns<BidScreeningResponse, "akash.provider.v1.BidScreeningResponse">;
@@ -24,6 +24,8 @@ export declare enum Edition {
24
24
  */
25
25
  EDITION_2023 = 1000,
26
26
  EDITION_2024 = 1001,
27
+ /** EDITION_UNSTABLE - A placeholder edition for developing and testing unscheduled features. */
28
+ EDITION_UNSTABLE = 9999,
27
29
  /**
28
30
  * EDITION_1_TEST_ONLY - Placeholder editions for testing feature resolution. These should not be
29
31
  * used or relied on outside of tests.
@@ -8,10 +8,11 @@ export { Deposit, Source } from "./akash/base/deposit/v1/deposit.ts";
8
8
  export { MsgSignData } from "./akash/base/offchain/sign/v1/sign.ts";
9
9
  export { LedgerID, CollateralRatio, State, CoinPrice, BurnMintPair, LedgerRecordID, LedgerPendingRecord, LedgerRecord, Status, MintEpoch, MintStatus, LedgerRecordStatus } from "./akash/bme/v1/types.ts";
10
10
  export { EventMintStatusChange, EventVaultSeeded, EventLedgerRecordExecuted } from "./akash/bme/v1/events.ts";
11
+ export { LedgerRecordFilters } from "./akash/bme/v1/filters.ts";
11
12
  export { Params } from "./akash/bme/v1/params.ts";
12
13
  export { GenesisLedgerRecord, GenesisLedgerPendingRecord, GenesisLedgerState, GenesisVaultState, GenesisState as Bme_GenesisState } from "./akash/bme/v1/genesis.ts";
13
14
  export { MsgUpdateParams, MsgUpdateParamsResponse, MsgSeedVault, MsgSeedVaultResponse, MsgBurnMint, MsgMintACT, MsgBurnACT, MsgBurnMintResponse, MsgMintACTResponse, MsgBurnACTResponse } from "./akash/bme/v1/msgs.ts";
14
- export { QueryParamsRequest, QueryParamsResponse, QueryVaultStateRequest, QueryVaultStateResponse, QueryStatusRequest, QueryStatusResponse } from "./akash/bme/v1/query.ts";
15
+ export { QueryParamsRequest, QueryParamsResponse, QueryVaultStateRequest, QueryVaultStateResponse, QueryStatusRequest, QueryStatusResponse, QueryLedgerRecordEntry, QueryLedgerRecordsRequest, QueryLedgerRecordsResponse } from "./akash/bme/v1/query.ts";
15
16
  export { ID, Certificate, State as Cert_State } from "./akash/cert/v1/cert.ts";
16
17
  export { CertificateFilter } from "./akash/cert/v1/filters.ts";
17
18
  export { GenesisCertificate, GenesisState as Cert_GenesisState } from "./akash/cert/v1/genesis.ts";
@@ -40,7 +41,7 @@ export { EventOrderCreated, EventOrderClosed, EventBidCreated, EventBidClosed, E
40
41
  export { LeaseFilters } from "./akash/market/v1/filters.ts";
41
42
  export { DataID, PriceDataID, PriceDataRecordID, PriceDataState, PriceData, AggregatedPrice, PriceHealth, PricesFilter, QueryPricesRequest, QueryPricesResponse } from "./akash/oracle/v1/prices.ts";
42
43
  export { EventPriceData, EventPriceStaleWarning, EventPriceStaled, EventPriceRecovered } from "./akash/oracle/v1/events.ts";
43
- export { PythContractParams, Params as Oracle_Params } from "./akash/oracle/v1/params.ts";
44
+ export { PythContractParams, WormholeContractParams, Params as Oracle_Params } from "./akash/oracle/v1/params.ts";
44
45
  export { GenesisState as Oracle_GenesisState } from "./akash/oracle/v1/genesis.ts";
45
46
  export { MsgAddPriceEntry, MsgAddPriceEntryResponse, MsgUpdateParams as Oracle_MsgUpdateParams, MsgUpdateParamsResponse as Oracle_MsgUpdateParamsResponse } from "./akash/oracle/v1/msgs.ts";
46
47
  export { QueryParamsRequest as Oracle_QueryParamsRequest, QueryParamsResponse as Oracle_QueryParamsResponse, QueryPriceFeedConfigRequest, QueryPriceFeedConfigResponse, QueryAggregatedPriceRequest, QueryAggregatedPriceResponse } from "./akash/oracle/v1/query.ts";
@@ -1,4 +1,4 @@
1
- export { ResourceOffer } from "./akash/market/v1beta5/resourcesoffer.ts";
1
+ export { StorageOfferPrice, EndpointOfferPrice, OfferPrices, ResourceOffer } from "./akash/market/v1beta5/resourcesoffer.ts";
2
2
  export { Bid, Bid_State } from "./akash/market/v1beta5/bid.ts";
3
3
  export { MsgCreateBid, MsgCreateBidResponse, MsgCloseBid, MsgCloseBidResponse } from "./akash/market/v1beta5/bidmsg.ts";
4
4
  export { BidFilters, OrderFilters } from "./akash/market/v1beta5/filters.ts";
@@ -8,3 +8,4 @@ export { StorageInfo, Storage } from "./akash/inventory/v1/storage.ts";
8
8
  export { Cluster } from "./akash/inventory/v1/cluster.ts";
9
9
  export { LeaseServiceStatus, LeaseIPStatus, ForwarderPortStatus, ServiceStatus, SendManifestRequest, SendManifestResponse, ServiceLogsRequest, ServiceLogs, ServiceLogsResponse, ShellRequest, ServiceStatusRequest, ServiceStatusResponse } from "./akash/provider/lease/v1/service.ts";
10
10
  export { ResourcesMetric, Leases, ReservationsMetric, Reservations, Inventory, ClusterStatus, BidEngineStatus, ManifestStatus, Status } from "./akash/provider/v1/status.ts";
11
+ export { BidScreeningRequest, BidScreeningResponse } from "./akash/provider/v1/validation.ts";
@@ -1,4 +1,4 @@
1
1
  export { ServiceExposeHTTPOptions } from "./akash/manifest/v2beta3/httpoptions.ts";
2
2
  export { ServiceExpose } from "./akash/manifest/v2beta3/serviceexpose.ts";
3
- export { StorageParams, ServiceParams, ImageCredentials, Service } from "./akash/manifest/v2beta3/service.ts";
3
+ export { StorageParams, ServicePermissions, ServiceParams, ImageCredentials, Service } from "./akash/manifest/v2beta3/service.ts";
4
4
  export { Group } from "./akash/manifest/v2beta3/group.ts";
@@ -2,8 +2,10 @@ import type { GrpcTransportOptions } from "../transport/grpc/createGrpcTransport
2
2
  import type { RetryOptions } from "../transport/interceptors/retry.ts";
3
3
  import type { TxClient } from "../transport/tx/TxClient.ts";
4
4
  import type { TxCallOptions } from "../transport/types.ts";
5
+ import { SIGNER_KEY } from "./helpers.ts";
5
6
  export type { PayloadOf, ResponseOf } from "../types.ts";
6
7
  export declare function createChainNodeSDK(options: ChainNodeSDKOptions): {
8
+ [SIGNER_KEY]: TxClient | undefined;
7
9
  cosmos: {
8
10
  app: {
9
11
  v1alpha1: {
@@ -391,6 +393,7 @@ export declare function createChainNodeSDK(options: ChainNodeSDKOptions): {
391
393
  getParams: (input?: import("../index.shared.ts").QueryInput<import("../../generated/protos/index.akash.v1.ts").QueryParamsRequest>, options?: import("../transport/types.ts").CallOptions) => Promise<import("../../generated/protos/index.akash.v1.ts").QueryParamsResponse>;
392
394
  getVaultState: (input?: import("../index.shared.ts").QueryInput<import("../../generated/protos/index.akash.v1.ts").QueryVaultStateRequest>, options?: import("../transport/types.ts").CallOptions) => Promise<import("../../generated/protos/index.akash.v1.ts").QueryVaultStateResponse>;
393
395
  getStatus: (input?: import("../index.shared.ts").QueryInput<import("../../generated/protos/index.akash.v1.ts").QueryStatusRequest>, options?: import("../transport/types.ts").CallOptions) => Promise<import("../../generated/protos/index.akash.v1.ts").QueryStatusResponse>;
396
+ getLedgerRecords: (input: import("../index.shared.ts").QueryInput<import("../../generated/protos/index.akash.v1.ts").QueryLedgerRecordsRequest>, options?: import("../transport/types.ts").CallOptions) => Promise<import("../../generated/protos/index.akash.v1.ts").QueryLedgerRecordsResponse>;
394
397
  updateParams: (input: import("../index.shared.ts").TxInput<import("../../generated/protos/index.akash.v1.ts").MsgUpdateParams>, options?: TxCallOptions) => Promise<import("../../generated/protos/index.akash.v1.ts").MsgUpdateParamsResponse>;
395
398
  burnMint: (input: import("../index.shared.ts").TxInput<import("../../generated/protos/index.akash.v1.ts").MsgBurnMint>, options?: TxCallOptions) => Promise<import("../../generated/protos/index.akash.v1.ts").MsgBurnMintResponse>;
396
399
  mintACT: (input: import("../index.shared.ts").TxInput<import("../../generated/protos/index.akash.v1.ts").MsgMintACT>, options?: TxCallOptions) => Promise<import("../../generated/protos/index.akash.v1.ts").MsgMintACTResponse>;
@@ -1,7 +1,9 @@
1
1
  import type { RetryOptions } from "../transport/interceptors/retry.ts";
2
2
  import type { TxClient } from "../transport/tx/TxClient.ts";
3
+ import { SIGNER_KEY } from "./helpers.ts";
3
4
  export type { PayloadOf, ResponseOf } from "../types.ts";
4
5
  export declare function createChainNodeWebSDK(options: ChainNodeWebSDKOptions): {
6
+ [SIGNER_KEY]: TxClient | undefined;
5
7
  cosmos: {
6
8
  app: {
7
9
  v1alpha1: {
@@ -389,6 +391,7 @@ export declare function createChainNodeWebSDK(options: ChainNodeWebSDKOptions):
389
391
  getParams: (input?: import("../index.shared.ts").QueryInput<import("../../generated/protos/index.akash.v1.ts").QueryParamsRequest>, options?: import("../transport/types.ts").CallOptions) => Promise<import("../../generated/protos/index.akash.v1.ts").QueryParamsResponse>;
390
392
  getVaultState: (input?: import("../index.shared.ts").QueryInput<import("../../generated/protos/index.akash.v1.ts").QueryVaultStateRequest>, options?: import("../transport/types.ts").CallOptions) => Promise<import("../../generated/protos/index.akash.v1.ts").QueryVaultStateResponse>;
391
393
  getStatus: (input?: import("../index.shared.ts").QueryInput<import("../../generated/protos/index.akash.v1.ts").QueryStatusRequest>, options?: import("../transport/types.ts").CallOptions) => Promise<import("../../generated/protos/index.akash.v1.ts").QueryStatusResponse>;
394
+ getLedgerRecords: (input: import("../index.shared.ts").QueryInput<import("../../generated/protos/index.akash.v1.ts").QueryLedgerRecordsRequest>, options?: import("../transport/types.ts").CallOptions) => Promise<import("../../generated/protos/index.akash.v1.ts").QueryLedgerRecordsResponse>;
392
395
  updateParams: (input: import("../index.shared.ts").TxInput<import("../../generated/protos/index.akash.v1.ts").MsgUpdateParams>, options?: import("../transport/types.ts").TxCallOptions) => Promise<import("../../generated/protos/index.akash.v1.ts").MsgUpdateParamsResponse>;
393
396
  burnMint: (input: import("../index.shared.ts").TxInput<import("../../generated/protos/index.akash.v1.ts").MsgBurnMint>, options?: import("../transport/types.ts").TxCallOptions) => Promise<import("../../generated/protos/index.akash.v1.ts").MsgBurnMintResponse>;
394
397
  mintACT: (input: import("../index.shared.ts").TxInput<import("../../generated/protos/index.akash.v1.ts").MsgMintACT>, options?: import("../transport/types.ts").TxCallOptions) => Promise<import("../../generated/protos/index.akash.v1.ts").MsgMintACTResponse>;
@@ -0,0 +1,14 @@
1
+ import { type SDKMethod } from "../client/sdkMetadata.ts";
2
+ import type { TxClient, TxSignAndBroadcastOptions } from "../transport/tx/TxClient.ts";
3
+ export declare function msg<T extends SDKMethod>(tx: T, ...args: [Parameters<T>[0]]): TxMessage<T>;
4
+ /**
5
+ * Representation of a transaction message, containing the SDK transaction method and its input.
6
+ */
7
+ export type TxMessage<T extends SDKMethod = SDKMethod> = {
8
+ tx: T;
9
+ data: Parameters<T>[0];
10
+ };
11
+ export declare const SIGNER_KEY: unique symbol;
12
+ export declare function transaction(sdk: {
13
+ [SIGNER_KEY]?: TxClient;
14
+ }, messages: TxMessage[], options?: TxSignAndBroadcastOptions): Promise<import("@cosmjs/stargate/build/stargateclient.js").DeliverTxResponse>;
@@ -1,11 +1,14 @@
1
+ import type { ServiceLoader } from "./createServiceLoader.ts";
2
+ import type { ServiceDesc } from "./types.ts";
1
3
  export declare function withMetadata<T extends SDKMethod>(fn: T, metadata: SDKMethodMetadata): T;
2
4
  export declare function getMetadata(fn: SDKMethod): SDKMethodMetadata | undefined;
3
5
  export type SDKMethod = (input: any, options?: any) => Promise<any>;
4
6
  interface SDKMethodMetadata {
5
7
  /**
6
8
  * The path to the method in the service loader.
7
- * 1st number is the index of the service and the 2nd is the index of the method.
9
+ * 1st number is the index of the service and the 2nd is the local name of the method.
8
10
  */
9
- path: [number, number];
11
+ path: [number, string];
12
+ serviceLoader: ServiceLoader<ReadonlyArray<() => Promise<ServiceDesc>>>;
10
13
  }
11
14
  export {};
@@ -1,4 +1,6 @@
1
+ import type { createChainNodeSDK } from "./chain/createChainNodeSDK.ts";
1
2
  export * from "./index.shared.ts";
2
3
  export { createChainNodeSDK, type ChainNodeSDKOptions } from "./chain/createChainNodeSDK.ts";
3
4
  export { createProviderSDK, type ProviderSDKOptions } from "./provider/createProviderSDK.ts";
4
5
  export { createStargateClient, type StargateClientOptions } from "./transport/tx/createStargateClient/createStargateClient.ts";
6
+ export type ChainNodeSDK = ReturnType<typeof createChainNodeSDK>;
@@ -4,3 +4,5 @@ export { TxError } from "./transport/tx/TxError.ts";
4
4
  export { certificateManager, CertificateManager, type CertificateInfo, type CertificatePem, type ValidityRangeOptions } from "./provider/auth/mtls/index.ts";
5
5
  export * from "./provider/auth/jwt/index.ts";
6
6
  export type { DeepSimplify as TxInput, DeepPartial as QueryInput } from "../encoding/typeEncodingHelpers.ts";
7
+ export { transaction, msg } from "./chain/helpers.ts";
8
+ export type { TxMessage } from "./chain/helpers.ts";
@@ -1,2 +1,4 @@
1
+ import type { createChainNodeWebSDK } from "./chain/createChainNodeWebSDK.ts";
1
2
  export * from "./index.shared.ts";
2
3
  export { createChainNodeWebSDK, type ChainNodeWebSDKOptions } from "./chain/createChainNodeWebSDK.ts";
4
+ export type ChainNodeWebSDK = ReturnType<typeof createChainNodeWebSDK>;
@@ -3,16 +3,16 @@ import { Group } from "../../generated/protos/akash/manifest/v2beta3/group.ts";
3
3
  import type { NetworkId } from "../../network/types.ts";
4
4
  import type { ValidationError } from "../../utils/jsonSchemaValidation.ts";
5
5
  import type { SDLInput } from "../validateSDL/validateSDL.ts";
6
- export interface BuildResult {
6
+ export interface GenerateManifestOkResult {
7
7
  groups: Group[];
8
8
  groupSpecs: GroupSpec[];
9
9
  }
10
- export type Manifest = BuildResult["groups"];
10
+ export type Manifest = GenerateManifestOkResult["groups"];
11
11
  export type GenerateManifestResult = {
12
12
  ok?: false;
13
13
  value: ValidationError[];
14
14
  } | {
15
15
  ok: true;
16
- value: BuildResult;
16
+ value: GenerateManifestOkResult;
17
17
  };
18
18
  export declare function generateManifest(sdl: SDLInput, networkId?: NetworkId): GenerateManifestResult;
@@ -1,3 +1,3 @@
1
- import type { Manifest } from "./generateManifest.ts";
1
+ import type { GenerateManifestOkResult, Manifest } from "./generateManifest.ts";
2
2
  export declare function generateManifestVersion(manifest: Manifest): Promise<Uint8Array>;
3
- export declare function manifestToSortedJSON(manifest: Manifest): string;
3
+ export declare function manifestToSortedJSON(manifest: Manifest | GenerateManifestOkResult["groupSpecs"]): string;
@@ -1,4 +1,7 @@
1
1
  /**
2
+ * Generate YAML string from template literal and parse it into object of type T.
3
+ * If some interpolated value is undefined, the whole line containing it will be removed from the resulting YAML string.
4
+ *
2
5
  * @example
3
6
  * ```ts
4
7
  * const version = "2.1";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akashnetwork/chain-sdk",
3
- "version": "1.0.0-alpha.24",
3
+ "version": "1.0.0-alpha.25",
4
4
  "type": "module",
5
5
  "description": "Akash API TypeScript client",
6
6
  "keywords": [],