@aeternity/aepp-sdk 14.1.1 → 15.0.0

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 (82) hide show
  1. package/dist/aepp-sdk.browser-script.cjs +1 -1
  2. package/dist/aepp-sdk.browser-script.cjs.map +1 -1
  3. package/dist/aepp-sdk.browser.cjs +1 -1
  4. package/dist/aepp-sdk.browser.cjs.map +1 -1
  5. package/dist/aepp-sdk.cjs +3068 -502
  6. package/dist/aepp-sdk.cjs.map +1 -1
  7. package/es/account/Base.d.ts +6 -1
  8. package/es/account/Base.js.map +1 -1
  9. package/es/account/Generalized.d.ts +1 -1
  10. package/es/account/Generalized.js +7 -1
  11. package/es/account/Generalized.js.map +1 -1
  12. package/es/apis/node/models/index.d.ts +405 -79
  13. package/es/apis/node/models/index.js.map +1 -1
  14. package/es/apis/node/models/mappers.d.ts +54 -4
  15. package/es/apis/node/models/mappers.js +1910 -500
  16. package/es/apis/node/models/mappers.js.map +1 -1
  17. package/es/apis/node/node.d.ts +28 -6
  18. package/es/apis/node/node.js +276 -5
  19. package/es/apis/node/node.js.map +1 -1
  20. package/es/channel/Contract.d.ts +5 -0
  21. package/es/channel/Contract.js +8 -2
  22. package/es/channel/Contract.js.map +1 -1
  23. package/es/channel/handlers.js +3 -3
  24. package/es/channel/handlers.js.map +1 -1
  25. package/es/contract/ga.d.ts +5 -2
  26. package/es/contract/ga.js +53 -21
  27. package/es/contract/ga.js.map +1 -1
  28. package/es/index-browser.d.ts +3 -1
  29. package/es/index-browser.js +2 -1
  30. package/es/index-browser.js.map +1 -1
  31. package/es/tx/builder/constants.d.ts +12 -2
  32. package/es/tx/builder/constants.js +11 -1
  33. package/es/tx/builder/constants.js.map +1 -1
  34. package/es/tx/builder/entry/index.js +6 -0
  35. package/es/tx/builder/entry/index.js.map +1 -1
  36. package/es/tx/builder/entry/schema.d.ts +10 -10
  37. package/es/tx/builder/field-types/ct-version.d.ts +14 -0
  38. package/es/tx/builder/field-types/ct-version.js +14 -0
  39. package/es/tx/builder/field-types/ct-version.js.map +1 -1
  40. package/es/tx/builder/field-types/fee.d.ts +9 -7
  41. package/es/tx/builder/field-types/fee.js +75 -66
  42. package/es/tx/builder/field-types/fee.js.map +1 -1
  43. package/es/tx/builder/field-types/gas-limit.d.ts +5 -3
  44. package/es/tx/builder/field-types/gas-limit.js +25 -14
  45. package/es/tx/builder/field-types/gas-limit.js.map +1 -1
  46. package/es/tx/builder/field-types/gas-price.d.ts +6 -4
  47. package/es/tx/builder/field-types/gas-price.js +87 -21
  48. package/es/tx/builder/field-types/gas-price.js.map +1 -1
  49. package/es/tx/builder/field-types/interface.d.ts +20 -0
  50. package/es/tx/builder/field-types/interface.js +17 -1
  51. package/es/tx/builder/field-types/interface.js.map +1 -1
  52. package/es/tx/builder/field-types/name-fee.d.ts +3 -2
  53. package/es/tx/builder/field-types/name-fee.js +6 -0
  54. package/es/tx/builder/field-types/name-fee.js.map +1 -1
  55. package/es/tx/builder/field-types/pointers.d.ts +2 -1
  56. package/es/tx/builder/field-types/pointers.js +6 -2
  57. package/es/tx/builder/field-types/pointers.js.map +1 -1
  58. package/es/tx/builder/field-types/transaction.d.ts +4 -1
  59. package/es/tx/builder/field-types/transaction.js +18 -3
  60. package/es/tx/builder/field-types/transaction.js.map +1 -1
  61. package/es/tx/builder/field-types/with-formatting.d.ts +1 -1
  62. package/es/tx/builder/field-types/with-formatting.js +1 -1
  63. package/es/tx/builder/field-types/with-formatting.js.map +1 -1
  64. package/es/tx/builder/index.d.ts +13 -0
  65. package/es/tx/builder/index.js +92 -5
  66. package/es/tx/builder/index.js.map +1 -1
  67. package/es/tx/builder/protocol-parameters.d.ts +123 -0
  68. package/es/tx/builder/protocol-parameters.js +519 -0
  69. package/es/tx/builder/protocol-parameters.js.map +1 -0
  70. package/es/tx/builder/schema.d.ts +156 -155
  71. package/es/tx/builder/schema.js +5 -1
  72. package/es/tx/builder/schema.js.map +1 -1
  73. package/es/tx/execution-cost.js +5 -5
  74. package/es/tx/execution-cost.js.map +1 -1
  75. package/es/tx/transaction-signer.js +2 -2
  76. package/es/tx/transaction-signer.js.map +1 -1
  77. package/es/tx/validator.js +4 -4
  78. package/es/tx/validator.js.map +1 -1
  79. package/es/utils/wrap-proxy.d.ts +10 -0
  80. package/es/utils/wrap-proxy.js +18 -0
  81. package/es/utils/wrap-proxy.js.map +1 -1
  82. package/package.json +2 -2
@@ -1,5 +1,5 @@
1
1
  import * as coreClient from "@azure/core-client";
2
- import { NodeOptionalParams, GetAccountByPubkeyOptionalParams, GetAccountByPubkeyResponse, GetAccountByPubkeyAndHashOptionalParams, GetAccountByPubkeyAndHashResponse, GetAccountByPubkeyAndHeightOptionalParams, GetAccountByPubkeyAndHeightResponse, GetAccountNextNonceOptionalParams, GetAccountNextNonceResponse, GetPendingAccountTransactionsByPubkeyOptionalParams, GetPendingAccountTransactionsByPubkeyResponse, GetAuctionEntryByNameOptionalParams, GetAuctionEntryByNameResponse, GetChannelByPubkeyOptionalParams, GetChannelByPubkeyResponse, GetContractOptionalParams, GetContractResponse, GetContractCodeOptionalParams, GetContractCodeResponse, GetContractPoIOptionalParams, GetContractPoIResponse, GetCurrencyOptionalParams, GetCurrencyResponse, DryRunInput, ProtectedDryRunTxsOptionalParams, ProtectedDryRunTxsResponse, GetCurrentGenerationOptionalParams, GetCurrentGenerationResponse, GetGenerationByHashOptionalParams, GetGenerationByHashResponse, GetGenerationByHeightOptionalParams, GetGenerationByHeightResponse, GetTopHeaderOptionalParams, GetTopHeaderResponse, GetPinningTxOptionalParams, GetPinningTxResponse, GetHyperchainContractPubkeysOptionalParams, GetHyperchainContractPubkeysResponse, GetCurrentKeyBlockOptionalParams, GetCurrentKeyBlockResponse, GetCurrentKeyBlockHashOptionalParams, GetCurrentKeyBlockHashResponse, GetCurrentKeyBlockHeightOptionalParams, GetCurrentKeyBlockHeightResponse, GetKeyBlockByHashOptionalParams, GetKeyBlockByHashResponse, GetKeyBlockByHeightOptionalParams, GetKeyBlockByHeightResponse, GetPendingKeyBlockOptionalParams, GetPendingKeyBlockResponse, GetMicroBlockHeaderByHashOptionalParams, GetMicroBlockHeaderByHashResponse, GetMicroBlockTransactionsByHashOptionalParams, GetMicroBlockTransactionsByHashResponse, GetMicroBlockTransactionsCountByHashOptionalParams, GetMicroBlockTransactionsCountByHashResponse, GetMicroBlockTransactionByHashAndIndexOptionalParams, GetMicroBlockTransactionByHashAndIndexResponse, GetNameEntryByNameOptionalParams, GetNameEntryByNameResponse, GetNameEntryByNameHashOptionalParams, GetNameEntryByNameHashResponse, GetOracleByPubkeyOptionalParams, GetOracleByPubkeyResponse, GetOracleQueriesByPubkeyOptionalParams, GetOracleQueriesByPubkeyResponse, GetOracleQueryByPubkeyAndQueryIdOptionalParams, GetOracleQueryByPubkeyAndQueryIdResponse, GetPeerPubkeyOptionalParams, GetPeerPubkeyResponse, GetRecentGasPricesOptionalParams, GetRecentGasPricesResponse, GetStatusOptionalParams, GetStatusResponse, GetChainEndsOptionalParams, GetChainEndsResponse, GetSyncStatusOptionalParams, GetSyncStatusResponse, EncodedTx, PostTransactionOptionalParams, PostTransactionResponse, GetTransactionByHashOptionalParams, GetTransactionByHashResponse, GetTransactionInfoByHashOptionalParams, GetTransactionInfoByHashResponse } from "./models/index.js";
2
+ import { NodeOptionalParams, GetAccountByPubkeyOptionalParams, GetAccountByPubkeyResponse, GetAccountByPubkeyAndHashOptionalParams, GetAccountByPubkeyAndHashResponse, GetAccountByPubkeyAndHeightOptionalParams, GetAccountByPubkeyAndHeightResponse, GetAccountNextNonceOptionalParams, GetAccountNextNonceResponse, GetPendingAccountTransactionsByPubkeyOptionalParams, GetPendingAccountTransactionsByPubkeyResponse, GetAuctionEntryByNameOptionalParams, GetAuctionEntryByNameResponse, GetChannelByPubkeyOptionalParams, GetChannelByPubkeyResponse, GetContractOptionalParams, GetContractResponse, GetContractCodeOptionalParams, GetContractCodeResponse, GetContractPoIOptionalParams, GetContractPoIResponse, GetCurrencyOptionalParams, GetCurrencyResponse, DryRunInput, ProtectedDryRunTxsOptionalParams, ProtectedDryRunTxsResponse, GetCurrentGenerationOptionalParams, GetCurrentGenerationResponse, GetGenerationByHashOptionalParams, GetGenerationByHashResponse, GetGenerationByHeightOptionalParams, GetGenerationByHeightResponse, GetTopHeaderOptionalParams, GetTopHeaderResponse, GetPinningTxOptionalParams, GetPinningTxResponse, GetHyperchainContractPubkeysOptionalParams, GetHyperchainContractPubkeysResponse, GetCurrentKeyBlockOptionalParams, GetCurrentKeyBlockResponse, GetCurrentKeyBlockHashOptionalParams, GetCurrentKeyBlockHashResponse, GetCurrentKeyBlockHeightOptionalParams, GetCurrentKeyBlockHeightResponse, GetKeyBlockByHashOptionalParams, GetKeyBlockByHashResponse, GetKeyBlockByHeightOptionalParams, GetKeyBlockByHeightResponse, GetPendingKeyBlockOptionalParams, GetPendingKeyBlockResponse, GetMicroBlockHeaderByHashOptionalParams, GetMicroBlockHeaderByHashResponse, GetMicroBlockTransactionsByHashOptionalParams, GetMicroBlockTransactionsByHashResponse, GetMicroBlockTransactionsCountByHashOptionalParams, GetMicroBlockTransactionsCountByHashResponse, GetMicroBlockTransactionByHashAndIndexOptionalParams, GetMicroBlockTransactionByHashAndIndexResponse, GetNameEntryByNameOptionalParams, GetNameEntryByNameResponse, GetNameEntryByNameHashOptionalParams, GetNameEntryByNameHashResponse, GetOracleByPubkeyOptionalParams, GetOracleByPubkeyResponse, GetOracleQueriesByPubkeyOptionalParams, GetOracleQueriesByPubkeyResponse, GetOracleQueryByPubkeyAndQueryIdOptionalParams, GetOracleQueryByPubkeyAndQueryIdResponse, GetPeerPubkeyOptionalParams, GetPeerPubkeyResponse, GetRecentGasPricesOptionalParams, GetRecentGasPricesResponse, GetNodeSettingsOptionalParams, GetNodeSettingsResponse, GetProtocolParametersOptionalParams, GetProtocolParametersResponse, GetStatusOptionalParams, GetStatusResponse, GetChainEndsOptionalParams, GetChainEndsResponse, GetSyncStatusOptionalParams, GetSyncStatusResponse, EncodedTx, PostTransactionOptionalParams, PostTransactionResponse, GetTransactionByHashOptionalParams, GetTransactionByHashResponse, GetTransactionInfoByHashOptionalParams, GetTransactionInfoByHashResponse } from "./models/index.js";
3
3
  export declare class Node extends coreClient.ServiceClient {
4
4
  readonly $host: string;
5
5
  /**
@@ -79,9 +79,11 @@ export declare class Node extends coreClient.ServiceClient {
79
79
  getCurrency(options?: GetCurrencyOptionalParams): Promise<GetCurrencyResponse>;
80
80
  /**
81
81
  * Dry-run unsigned transactions on top of a given block. Supports all TXs except GAMetaTx, PayingForTx
82
- * and OffchainTx. The maximum gas limit of all calls is capped. The maximum gas limit per request is a
83
- * global node setting. Since DryRunCallReq object do not have a mandatory gas field, if not set a
84
- * default value of 1000000 is being used instead.
82
+ * and OffchainTx. Gas defaults to 1000000 when not set on a call request; total gas per request is
83
+ * capped by a node-configured limit. FATE contract-storage reads are metered at a size-proportional
84
+ * gas cost, so reported gas is an estimate of the on-chain cost, not an exact figure. Reported gas is
85
+ * never below what the same call costs on chain at the currently activated protocol, because each
86
+ * repriced storage register read is floored at that charge.
85
87
  * @param body transactions
86
88
  * @param options The options parameters.
87
89
  */
@@ -137,7 +139,7 @@ export declare class Node extends coreClient.ServiceClient {
137
139
  getCurrentKeyBlockHeight(options?: GetCurrentKeyBlockHeightOptionalParams): Promise<GetCurrentKeyBlockHeightResponse>;
138
140
  /**
139
141
  * Get a key block by hash
140
- * @param hash The hash of the block - either a keyblock or a microblock
142
+ * @param hash The hash of the key block
141
143
  * @param options The options parameters.
142
144
  */
143
145
  getKeyBlockByHash(hash: string, options?: GetKeyBlockByHashOptionalParams): Promise<GetKeyBlockByHashResponse>;
@@ -154,7 +156,7 @@ export declare class Node extends coreClient.ServiceClient {
154
156
  getPendingKeyBlock(options?: GetPendingKeyBlockOptionalParams): Promise<GetPendingKeyBlockResponse>;
155
157
  /**
156
158
  * Get a micro block header by hash
157
- * @param hash The hash of the block - either a keyblock or a microblock
159
+ * @param hash The hash of the micro block
158
160
  * @param options The options parameters.
159
161
  */
160
162
  getMicroBlockHeaderByHash(hash: string, options?: GetMicroBlockHeaderByHashOptionalParams): Promise<GetMicroBlockHeaderByHashResponse>;
@@ -218,6 +220,26 @@ export declare class Node extends coreClient.ServiceClient {
218
220
  * @param options The options parameters.
219
221
  */
220
222
  getRecentGasPrices(options?: GetRecentGasPricesOptionalParams): Promise<GetRecentGasPricesResponse>;
223
+ /**
224
+ * Get this node's local policy settings. These are not consensus rules: they are operator
225
+ * configuration, they may differ between nodes, and an operator can change them at runtime.
226
+ * min_miner_gas_price is a decimal string; the other values are JSON numbers, or strings when
227
+ * int-as-string=true.
228
+ * @param options The options parameters.
229
+ */
230
+ getNodeSettings(options?: GetNodeSettingsOptionalParams): Promise<GetNodeSettingsResponse>;
231
+ /**
232
+ * Get the consensus protocol parameters needed to build valid transactions. Covers the protocol
233
+ * effective at the current top block and any later protocol whose fork height has not been reached
234
+ * yet; a community fork under signalling is reported only once it has activated, since until then it
235
+ * may still fail to. See /node-settings for this node's local policy. Aettos amounts
236
+ * (minimum_gas_price, name_claim_fees, name_claim_locked_fee) are always decimal strings, never JSON
237
+ * numbers: the largest name fee is about 2^69 and would lose precision in an IEEE-754 client. Gas, key
238
+ * block heights, counts and version numbers are JSON numbers; pass int-as-string=true to receive those
239
+ * as strings too.
240
+ * @param options The options parameters.
241
+ */
242
+ getProtocolParameters(options?: GetProtocolParametersOptionalParams): Promise<GetProtocolParametersResponse>;
221
243
  /**
222
244
  * Get the status of a node
223
245
  * @param options The options parameters.
@@ -174,9 +174,11 @@ export class Node extends coreClient.ServiceClient {
174
174
 
175
175
  /**
176
176
  * Dry-run unsigned transactions on top of a given block. Supports all TXs except GAMetaTx, PayingForTx
177
- * and OffchainTx. The maximum gas limit of all calls is capped. The maximum gas limit per request is a
178
- * global node setting. Since DryRunCallReq object do not have a mandatory gas field, if not set a
179
- * default value of 1000000 is being used instead.
177
+ * and OffchainTx. Gas defaults to 1000000 when not set on a call request; total gas per request is
178
+ * capped by a node-configured limit. FATE contract-storage reads are metered at a size-proportional
179
+ * gas cost, so reported gas is an estimate of the on-chain cost, not an exact figure. Reported gas is
180
+ * never below what the same call costs on chain at the currently activated protocol, because each
181
+ * repriced storage register read is floored at that charge.
180
182
  * @param body transactions
181
183
  * @param options The options parameters.
182
184
  */
@@ -285,7 +287,7 @@ export class Node extends coreClient.ServiceClient {
285
287
 
286
288
  /**
287
289
  * Get a key block by hash
288
- * @param hash The hash of the block - either a keyblock or a microblock
290
+ * @param hash The hash of the key block
289
291
  * @param options The options parameters.
290
292
  */
291
293
  getKeyBlockByHash(hash, options) {
@@ -319,7 +321,7 @@ export class Node extends coreClient.ServiceClient {
319
321
 
320
322
  /**
321
323
  * Get a micro block header by hash
322
- * @param hash The hash of the block - either a keyblock or a microblock
324
+ * @param hash The hash of the micro block
323
325
  * @param options The options parameters.
324
326
  */
325
327
  getMicroBlockHeaderByHash(hash, options) {
@@ -449,6 +451,36 @@ export class Node extends coreClient.ServiceClient {
449
451
  }, getRecentGasPricesOperationSpec);
450
452
  }
451
453
 
454
+ /**
455
+ * Get this node's local policy settings. These are not consensus rules: they are operator
456
+ * configuration, they may differ between nodes, and an operator can change them at runtime.
457
+ * min_miner_gas_price is a decimal string; the other values are JSON numbers, or strings when
458
+ * int-as-string=true.
459
+ * @param options The options parameters.
460
+ */
461
+ getNodeSettings(options) {
462
+ return this.sendOperationRequest({
463
+ options
464
+ }, getNodeSettingsOperationSpec);
465
+ }
466
+
467
+ /**
468
+ * Get the consensus protocol parameters needed to build valid transactions. Covers the protocol
469
+ * effective at the current top block and any later protocol whose fork height has not been reached
470
+ * yet; a community fork under signalling is reported only once it has activated, since until then it
471
+ * may still fail to. See /node-settings for this node's local policy. Aettos amounts
472
+ * (minimum_gas_price, name_claim_fees, name_claim_locked_fee) are always decimal strings, never JSON
473
+ * numbers: the largest name fee is about 2^69 and would lose precision in an IEEE-754 client. Gas, key
474
+ * block heights, counts and version numbers are JSON numbers; pass int-as-string=true to receive those
475
+ * as strings too.
476
+ * @param options The options parameters.
477
+ */
478
+ getProtocolParameters(options) {
479
+ return this.sendOperationRequest({
480
+ options
481
+ }, getProtocolParametersOperationSpec);
482
+ }
483
+
452
484
  /**
453
485
  * Get the status of a node
454
486
  * @param options The options parameters.
@@ -530,6 +562,11 @@ const getAccountByPubkeyOperationSpec = {
530
562
  404: {
531
563
  bodyMapper: Mappers.ErrorModel,
532
564
  isError: true
565
+ },
566
+ 503: {
567
+ bodyMapper: Mappers.ErrorModel,
568
+ headersMapper: Mappers.NodeGetAccountByPubkeyExceptionHeaders,
569
+ isError: true
533
570
  }
534
571
  },
535
572
  urlParameters: [Parameters.$host, Parameters.pubkey],
@@ -550,6 +587,11 @@ const getAccountByPubkeyAndHashOperationSpec = {
550
587
  404: {
551
588
  bodyMapper: Mappers.ErrorModel,
552
589
  isError: true
590
+ },
591
+ 503: {
592
+ bodyMapper: Mappers.ErrorModel,
593
+ headersMapper: Mappers.NodeGetAccountByPubkeyAndHashExceptionHeaders,
594
+ isError: true
553
595
  }
554
596
  },
555
597
  urlParameters: [Parameters.$host, Parameters.pubkey, Parameters.hash],
@@ -574,6 +616,11 @@ const getAccountByPubkeyAndHeightOperationSpec = {
574
616
  410: {
575
617
  bodyMapper: Mappers.ErrorModel,
576
618
  isError: true
619
+ },
620
+ 503: {
621
+ bodyMapper: Mappers.ErrorModel,
622
+ headersMapper: Mappers.NodeGetAccountByPubkeyAndHeightExceptionHeaders,
623
+ isError: true
577
624
  }
578
625
  },
579
626
  urlParameters: [Parameters.$host, Parameters.pubkey, Parameters.height],
@@ -594,6 +641,11 @@ const getAccountNextNonceOperationSpec = {
594
641
  404: {
595
642
  bodyMapper: Mappers.ErrorModel,
596
643
  isError: true
644
+ },
645
+ 503: {
646
+ bodyMapper: Mappers.ErrorModel,
647
+ headersMapper: Mappers.NodeGetAccountNextNonceExceptionHeaders,
648
+ isError: true
597
649
  }
598
650
  },
599
651
  queryParameters: [Parameters.strategy],
@@ -615,6 +667,11 @@ const getPendingAccountTransactionsByPubkeyOperationSpec = {
615
667
  404: {
616
668
  bodyMapper: Mappers.ErrorModel,
617
669
  isError: true
670
+ },
671
+ 503: {
672
+ bodyMapper: Mappers.ErrorModel,
673
+ headersMapper: Mappers.NodeGetPendingAccountTransactionsByPubkeyExceptionHeaders,
674
+ isError: true
618
675
  }
619
676
  },
620
677
  urlParameters: [Parameters.$host, Parameters.pubkey],
@@ -635,6 +692,11 @@ const getAuctionEntryByNameOperationSpec = {
635
692
  404: {
636
693
  bodyMapper: Mappers.ErrorModel,
637
694
  isError: true
695
+ },
696
+ 503: {
697
+ bodyMapper: Mappers.ErrorModel,
698
+ headersMapper: Mappers.NodeGetAuctionEntryByNameExceptionHeaders,
699
+ isError: true
638
700
  }
639
701
  },
640
702
  urlParameters: [Parameters.$host, Parameters.name],
@@ -655,6 +717,11 @@ const getChannelByPubkeyOperationSpec = {
655
717
  404: {
656
718
  bodyMapper: Mappers.ErrorModel,
657
719
  isError: true
720
+ },
721
+ 503: {
722
+ bodyMapper: Mappers.ErrorModel,
723
+ headersMapper: Mappers.NodeGetChannelByPubkeyExceptionHeaders,
724
+ isError: true
658
725
  }
659
726
  },
660
727
  urlParameters: [Parameters.$host, Parameters.pubkey],
@@ -675,6 +742,11 @@ const getContractOperationSpec = {
675
742
  404: {
676
743
  bodyMapper: Mappers.ErrorModel,
677
744
  isError: true
745
+ },
746
+ 503: {
747
+ bodyMapper: Mappers.ErrorModel,
748
+ headersMapper: Mappers.NodeGetContractExceptionHeaders,
749
+ isError: true
678
750
  }
679
751
  },
680
752
  urlParameters: [Parameters.$host, Parameters.pubkey],
@@ -695,6 +767,11 @@ const getContractCodeOperationSpec = {
695
767
  404: {
696
768
  bodyMapper: Mappers.ErrorModel,
697
769
  isError: true
770
+ },
771
+ 503: {
772
+ bodyMapper: Mappers.ErrorModel,
773
+ headersMapper: Mappers.NodeGetContractCodeExceptionHeaders,
774
+ isError: true
698
775
  }
699
776
  },
700
777
  urlParameters: [Parameters.$host, Parameters.pubkey],
@@ -715,6 +792,11 @@ const getContractPoIOperationSpec = {
715
792
  404: {
716
793
  bodyMapper: Mappers.ErrorModel,
717
794
  isError: true
795
+ },
796
+ 503: {
797
+ bodyMapper: Mappers.ErrorModel,
798
+ headersMapper: Mappers.NodeGetContractPoIExceptionHeaders,
799
+ isError: true
718
800
  }
719
801
  },
720
802
  urlParameters: [Parameters.$host, Parameters.pubkey],
@@ -727,6 +809,11 @@ const getCurrencyOperationSpec = {
727
809
  responses: {
728
810
  200: {
729
811
  bodyMapper: Mappers.Currency
812
+ },
813
+ 503: {
814
+ bodyMapper: Mappers.ErrorModel,
815
+ headersMapper: Mappers.NodeGetCurrencyExceptionHeaders,
816
+ isError: true
730
817
  }
731
818
  },
732
819
  urlParameters: [Parameters.$host],
@@ -747,6 +834,11 @@ const protectedDryRunTxsOperationSpec = {
747
834
  403: {
748
835
  bodyMapper: Mappers.ErrorModel,
749
836
  isError: true
837
+ },
838
+ 503: {
839
+ bodyMapper: Mappers.ErrorModel,
840
+ headersMapper: Mappers.NodeProtectedDryRunTxsExceptionHeaders,
841
+ isError: true
750
842
  }
751
843
  },
752
844
  requestBody: Parameters.body,
@@ -765,6 +857,11 @@ const getCurrentGenerationOperationSpec = {
765
857
  404: {
766
858
  bodyMapper: Mappers.ErrorModel,
767
859
  isError: true
860
+ },
861
+ 503: {
862
+ bodyMapper: Mappers.ErrorModel,
863
+ headersMapper: Mappers.NodeGetCurrentGenerationExceptionHeaders,
864
+ isError: true
768
865
  }
769
866
  },
770
867
  urlParameters: [Parameters.$host],
@@ -785,6 +882,11 @@ const getGenerationByHashOperationSpec = {
785
882
  404: {
786
883
  bodyMapper: Mappers.ErrorModel,
787
884
  isError: true
885
+ },
886
+ 503: {
887
+ bodyMapper: Mappers.ErrorModel,
888
+ headersMapper: Mappers.NodeGetGenerationByHashExceptionHeaders,
889
+ isError: true
788
890
  }
789
891
  },
790
892
  urlParameters: [Parameters.$host, Parameters.hash],
@@ -801,6 +903,11 @@ const getGenerationByHeightOperationSpec = {
801
903
  404: {
802
904
  bodyMapper: Mappers.ErrorModel,
803
905
  isError: true
906
+ },
907
+ 503: {
908
+ bodyMapper: Mappers.ErrorModel,
909
+ headersMapper: Mappers.NodeGetGenerationByHeightExceptionHeaders,
910
+ isError: true
804
911
  }
805
912
  },
806
913
  urlParameters: [Parameters.$host, Parameters.height],
@@ -817,6 +924,11 @@ const getTopHeaderOperationSpec = {
817
924
  404: {
818
925
  bodyMapper: Mappers.ErrorModel,
819
926
  isError: true
927
+ },
928
+ 503: {
929
+ bodyMapper: Mappers.ErrorModel,
930
+ headersMapper: Mappers.NodeGetTopHeaderExceptionHeaders,
931
+ isError: true
820
932
  }
821
933
  },
822
934
  urlParameters: [Parameters.$host],
@@ -833,6 +945,11 @@ const getPinningTxOperationSpec = {
833
945
  404: {
834
946
  bodyMapper: Mappers.ErrorModel,
835
947
  isError: true
948
+ },
949
+ 503: {
950
+ bodyMapper: Mappers.ErrorModel,
951
+ headersMapper: Mappers.NodeGetPinningTxExceptionHeaders,
952
+ isError: true
836
953
  }
837
954
  },
838
955
  urlParameters: [Parameters.$host],
@@ -849,6 +966,11 @@ const getHyperchainContractPubkeysOperationSpec = {
849
966
  404: {
850
967
  bodyMapper: Mappers.ErrorModel,
851
968
  isError: true
969
+ },
970
+ 503: {
971
+ bodyMapper: Mappers.ErrorModel,
972
+ headersMapper: Mappers.NodeGetHyperchainContractPubkeysExceptionHeaders,
973
+ isError: true
852
974
  }
853
975
  },
854
976
  urlParameters: [Parameters.$host],
@@ -865,6 +987,11 @@ const getCurrentKeyBlockOperationSpec = {
865
987
  404: {
866
988
  bodyMapper: Mappers.ErrorModel,
867
989
  isError: true
990
+ },
991
+ 503: {
992
+ bodyMapper: Mappers.ErrorModel,
993
+ headersMapper: Mappers.NodeGetCurrentKeyBlockExceptionHeaders,
994
+ isError: true
868
995
  }
869
996
  },
870
997
  urlParameters: [Parameters.$host],
@@ -881,6 +1008,11 @@ const getCurrentKeyBlockHashOperationSpec = {
881
1008
  404: {
882
1009
  bodyMapper: Mappers.ErrorModel,
883
1010
  isError: true
1011
+ },
1012
+ 503: {
1013
+ bodyMapper: Mappers.ErrorModel,
1014
+ headersMapper: Mappers.NodeGetCurrentKeyBlockHashExceptionHeaders,
1015
+ isError: true
884
1016
  }
885
1017
  },
886
1018
  urlParameters: [Parameters.$host],
@@ -897,6 +1029,11 @@ const getCurrentKeyBlockHeightOperationSpec = {
897
1029
  404: {
898
1030
  bodyMapper: Mappers.ErrorModel,
899
1031
  isError: true
1032
+ },
1033
+ 503: {
1034
+ bodyMapper: Mappers.ErrorModel,
1035
+ headersMapper: Mappers.NodeGetCurrentKeyBlockHeightExceptionHeaders,
1036
+ isError: true
900
1037
  }
901
1038
  },
902
1039
  urlParameters: [Parameters.$host],
@@ -917,6 +1054,11 @@ const getKeyBlockByHashOperationSpec = {
917
1054
  404: {
918
1055
  bodyMapper: Mappers.ErrorModel,
919
1056
  isError: true
1057
+ },
1058
+ 503: {
1059
+ bodyMapper: Mappers.ErrorModel,
1060
+ headersMapper: Mappers.NodeGetKeyBlockByHashExceptionHeaders,
1061
+ isError: true
920
1062
  }
921
1063
  },
922
1064
  urlParameters: [Parameters.$host, Parameters.hash],
@@ -933,6 +1075,11 @@ const getKeyBlockByHeightOperationSpec = {
933
1075
  404: {
934
1076
  bodyMapper: Mappers.ErrorModel,
935
1077
  isError: true
1078
+ },
1079
+ 503: {
1080
+ bodyMapper: Mappers.ErrorModel,
1081
+ headersMapper: Mappers.NodeGetKeyBlockByHeightExceptionHeaders,
1082
+ isError: true
936
1083
  }
937
1084
  },
938
1085
  urlParameters: [Parameters.$host, Parameters.height],
@@ -953,6 +1100,11 @@ const getPendingKeyBlockOperationSpec = {
953
1100
  404: {
954
1101
  bodyMapper: Mappers.ErrorModel,
955
1102
  isError: true
1103
+ },
1104
+ 503: {
1105
+ bodyMapper: Mappers.ErrorModel,
1106
+ headersMapper: Mappers.NodeGetPendingKeyBlockExceptionHeaders,
1107
+ isError: true
956
1108
  }
957
1109
  },
958
1110
  urlParameters: [Parameters.$host],
@@ -973,6 +1125,11 @@ const getMicroBlockHeaderByHashOperationSpec = {
973
1125
  404: {
974
1126
  bodyMapper: Mappers.ErrorModel,
975
1127
  isError: true
1128
+ },
1129
+ 503: {
1130
+ bodyMapper: Mappers.ErrorModel,
1131
+ headersMapper: Mappers.NodeGetMicroBlockHeaderByHashExceptionHeaders,
1132
+ isError: true
976
1133
  }
977
1134
  },
978
1135
  urlParameters: [Parameters.$host, Parameters.hash],
@@ -993,6 +1150,11 @@ const getMicroBlockTransactionsByHashOperationSpec = {
993
1150
  404: {
994
1151
  bodyMapper: Mappers.ErrorModel,
995
1152
  isError: true
1153
+ },
1154
+ 503: {
1155
+ bodyMapper: Mappers.ErrorModel,
1156
+ headersMapper: Mappers.NodeGetMicroBlockTransactionsByHashExceptionHeaders,
1157
+ isError: true
996
1158
  }
997
1159
  },
998
1160
  urlParameters: [Parameters.$host, Parameters.hash],
@@ -1013,6 +1175,11 @@ const getMicroBlockTransactionsCountByHashOperationSpec = {
1013
1175
  404: {
1014
1176
  bodyMapper: Mappers.ErrorModel,
1015
1177
  isError: true
1178
+ },
1179
+ 503: {
1180
+ bodyMapper: Mappers.ErrorModel,
1181
+ headersMapper: Mappers.NodeGetMicroBlockTransactionsCountByHashExceptionHeaders,
1182
+ isError: true
1016
1183
  }
1017
1184
  },
1018
1185
  urlParameters: [Parameters.$host, Parameters.hash],
@@ -1033,6 +1200,11 @@ const getMicroBlockTransactionByHashAndIndexOperationSpec = {
1033
1200
  404: {
1034
1201
  bodyMapper: Mappers.ErrorModel,
1035
1202
  isError: true
1203
+ },
1204
+ 503: {
1205
+ bodyMapper: Mappers.ErrorModel,
1206
+ headersMapper: Mappers.NodeGetMicroBlockTransactionByHashAndIndexExceptionHeaders,
1207
+ isError: true
1036
1208
  }
1037
1209
  },
1038
1210
  urlParameters: [Parameters.$host, Parameters.hash, Parameters.index],
@@ -1053,6 +1225,11 @@ const getNameEntryByNameOperationSpec = {
1053
1225
  404: {
1054
1226
  bodyMapper: Mappers.ErrorModel,
1055
1227
  isError: true
1228
+ },
1229
+ 503: {
1230
+ bodyMapper: Mappers.ErrorModel,
1231
+ headersMapper: Mappers.NodeGetNameEntryByNameExceptionHeaders,
1232
+ isError: true
1056
1233
  }
1057
1234
  },
1058
1235
  urlParameters: [Parameters.$host, Parameters.name],
@@ -1073,6 +1250,11 @@ const getNameEntryByNameHashOperationSpec = {
1073
1250
  404: {
1074
1251
  bodyMapper: Mappers.ErrorModel,
1075
1252
  isError: true
1253
+ },
1254
+ 503: {
1255
+ bodyMapper: Mappers.ErrorModel,
1256
+ headersMapper: Mappers.NodeGetNameEntryByNameHashExceptionHeaders,
1257
+ isError: true
1076
1258
  }
1077
1259
  },
1078
1260
  urlParameters: [Parameters.$host, Parameters.nameHash],
@@ -1093,6 +1275,11 @@ const getOracleByPubkeyOperationSpec = {
1093
1275
  404: {
1094
1276
  bodyMapper: Mappers.ErrorModel,
1095
1277
  isError: true
1278
+ },
1279
+ 503: {
1280
+ bodyMapper: Mappers.ErrorModel,
1281
+ headersMapper: Mappers.NodeGetOracleByPubkeyExceptionHeaders,
1282
+ isError: true
1096
1283
  }
1097
1284
  },
1098
1285
  urlParameters: [Parameters.$host, Parameters.pubkey],
@@ -1113,6 +1300,11 @@ const getOracleQueriesByPubkeyOperationSpec = {
1113
1300
  404: {
1114
1301
  bodyMapper: Mappers.ErrorModel,
1115
1302
  isError: true
1303
+ },
1304
+ 503: {
1305
+ bodyMapper: Mappers.ErrorModel,
1306
+ headersMapper: Mappers.NodeGetOracleQueriesByPubkeyExceptionHeaders,
1307
+ isError: true
1116
1308
  }
1117
1309
  },
1118
1310
  queryParameters: [Parameters.fromParam, Parameters.limit, Parameters.typeParam],
@@ -1134,6 +1326,11 @@ const getOracleQueryByPubkeyAndQueryIdOperationSpec = {
1134
1326
  404: {
1135
1327
  bodyMapper: Mappers.ErrorModel,
1136
1328
  isError: true
1329
+ },
1330
+ 503: {
1331
+ bodyMapper: Mappers.ErrorModel,
1332
+ headersMapper: Mappers.NodeGetOracleQueryByPubkeyAndQueryIdExceptionHeaders,
1333
+ isError: true
1137
1334
  }
1138
1335
  },
1139
1336
  urlParameters: [Parameters.$host, Parameters.pubkey, Parameters.queryId],
@@ -1146,6 +1343,11 @@ const getPeerPubkeyOperationSpec = {
1146
1343
  responses: {
1147
1344
  200: {
1148
1345
  bodyMapper: Mappers.PeerPubKey
1346
+ },
1347
+ 503: {
1348
+ bodyMapper: Mappers.ErrorModel,
1349
+ headersMapper: Mappers.NodeGetPeerPubkeyExceptionHeaders,
1350
+ isError: true
1149
1351
  }
1150
1352
  },
1151
1353
  urlParameters: [Parameters.$host],
@@ -1172,6 +1374,45 @@ const getRecentGasPricesOperationSpec = {
1172
1374
  400: {
1173
1375
  bodyMapper: Mappers.ErrorModel,
1174
1376
  isError: true
1377
+ },
1378
+ 503: {
1379
+ bodyMapper: Mappers.ErrorModel,
1380
+ headersMapper: Mappers.NodeGetRecentGasPricesExceptionHeaders,
1381
+ isError: true
1382
+ }
1383
+ },
1384
+ urlParameters: [Parameters.$host],
1385
+ headerParameters: [Parameters.accept],
1386
+ serializer
1387
+ };
1388
+ const getNodeSettingsOperationSpec = {
1389
+ path: "/v3/node-settings",
1390
+ httpMethod: "GET",
1391
+ responses: {
1392
+ 200: {
1393
+ bodyMapper: Mappers.NodeSettings
1394
+ },
1395
+ 503: {
1396
+ bodyMapper: Mappers.ErrorModel,
1397
+ headersMapper: Mappers.NodeGetNodeSettingsExceptionHeaders,
1398
+ isError: true
1399
+ }
1400
+ },
1401
+ urlParameters: [Parameters.$host],
1402
+ headerParameters: [Parameters.accept],
1403
+ serializer
1404
+ };
1405
+ const getProtocolParametersOperationSpec = {
1406
+ path: "/v3/protocol-parameters",
1407
+ httpMethod: "GET",
1408
+ responses: {
1409
+ 200: {
1410
+ bodyMapper: Mappers.ProtocolParameters
1411
+ },
1412
+ 503: {
1413
+ bodyMapper: Mappers.ErrorModel,
1414
+ headersMapper: Mappers.NodeGetProtocolParametersExceptionHeaders,
1415
+ isError: true
1175
1416
  }
1176
1417
  },
1177
1418
  urlParameters: [Parameters.$host],
@@ -1184,6 +1425,11 @@ const getStatusOperationSpec = {
1184
1425
  responses: {
1185
1426
  200: {
1186
1427
  bodyMapper: Mappers.Status
1428
+ },
1429
+ 503: {
1430
+ bodyMapper: Mappers.ErrorModel,
1431
+ headersMapper: Mappers.NodeGetStatusExceptionHeaders,
1432
+ isError: true
1187
1433
  }
1188
1434
  },
1189
1435
  urlParameters: [Parameters.$host],
@@ -1205,6 +1451,11 @@ const getChainEndsOperationSpec = {
1205
1451
  }
1206
1452
  }
1207
1453
  }
1454
+ },
1455
+ 503: {
1456
+ bodyMapper: Mappers.ErrorModel,
1457
+ headersMapper: Mappers.NodeGetChainEndsExceptionHeaders,
1458
+ isError: true
1208
1459
  }
1209
1460
  },
1210
1461
  urlParameters: [Parameters.$host],
@@ -1221,6 +1472,11 @@ const getSyncStatusOperationSpec = {
1221
1472
  404: {
1222
1473
  bodyMapper: Mappers.ErrorModel,
1223
1474
  isError: true
1475
+ },
1476
+ 503: {
1477
+ bodyMapper: Mappers.ErrorModel,
1478
+ headersMapper: Mappers.NodeGetSyncStatusExceptionHeaders,
1479
+ isError: true
1224
1480
  }
1225
1481
  },
1226
1482
  urlParameters: [Parameters.$host],
@@ -1237,6 +1493,11 @@ const postTransactionOperationSpec = {
1237
1493
  400: {
1238
1494
  bodyMapper: Mappers.ErrorModel,
1239
1495
  isError: true
1496
+ },
1497
+ 503: {
1498
+ bodyMapper: Mappers.ErrorModel,
1499
+ headersMapper: Mappers.NodePostTransactionExceptionHeaders,
1500
+ isError: true
1240
1501
  }
1241
1502
  },
1242
1503
  requestBody: Parameters.body1,
@@ -1259,6 +1520,11 @@ const getTransactionByHashOperationSpec = {
1259
1520
  404: {
1260
1521
  bodyMapper: Mappers.ErrorModel,
1261
1522
  isError: true
1523
+ },
1524
+ 503: {
1525
+ bodyMapper: Mappers.ErrorModel,
1526
+ headersMapper: Mappers.NodeGetTransactionByHashExceptionHeaders,
1527
+ isError: true
1262
1528
  }
1263
1529
  },
1264
1530
  urlParameters: [Parameters.$host, Parameters.hash],
@@ -1283,6 +1549,11 @@ const getTransactionInfoByHashOperationSpec = {
1283
1549
  410: {
1284
1550
  bodyMapper: Mappers.ErrorModel,
1285
1551
  isError: true
1552
+ },
1553
+ 503: {
1554
+ bodyMapper: Mappers.ErrorModel,
1555
+ headersMapper: Mappers.NodeGetTransactionInfoByHashExceptionHeaders,
1556
+ isError: true
1286
1557
  }
1287
1558
  },
1288
1559
  urlParameters: [Parameters.$host, Parameters.hash],