chia-agent 13.2.0-beta.0 → 13.2.0-beta.2

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 (190) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/api/chia/consensus/block_record.d.ts +32 -32
  3. package/api/chia/consensus/block_record.js +2 -2
  4. package/api/chia/consensus/blockchain.d.ts +1 -1
  5. package/api/chia/consensus/blockchain.js +2 -2
  6. package/api/chia/consensus/cost_calculator.d.ts +7 -7
  7. package/api/chia/consensus/cost_calculator.js +2 -2
  8. package/api/chia/data_layer/data_layer_util.d.ts +49 -49
  9. package/api/chia/data_layer/data_layer_util.js +2 -2
  10. package/api/chia/data_layer/data_layer_wallet.d.ts +21 -21
  11. package/api/chia/data_layer/data_layer_wallet.js +2 -2
  12. package/api/chia/farmer/farmer.d.ts +26 -26
  13. package/api/chia/farmer/farmer.js +3 -3
  14. package/api/chia/farmer/farmer_api.js +2 -2
  15. package/api/chia/full_node/signage_point.d.ts +8 -8
  16. package/api/chia/full_node/signage_point.js +2 -2
  17. package/api/chia/harvester/harvester.d.ts +13 -13
  18. package/api/chia/harvester/harvester.js +2 -2
  19. package/api/chia/harvester/harvester_api.js +2 -2
  20. package/api/chia/plot-sync/receiver.d.ts +25 -25
  21. package/api/chia/plot-sync/receiver.js +2 -2
  22. package/api/chia/plotters/bladebit.d.ts +10 -10
  23. package/api/chia/plotters/bladebit.js +4 -4
  24. package/api/chia/plotters/chiapos.d.ts +7 -7
  25. package/api/chia/plotters/chiapos.js +4 -4
  26. package/api/chia/plotters/maxmax.d.ts +8 -8
  27. package/api/chia/plotters/maxmax.js +4 -4
  28. package/api/chia/plotting/util.d.ts +3 -3
  29. package/api/chia/plotting/util.js +2 -2
  30. package/api/chia/pool/store.d.ts +17 -17
  31. package/api/chia/pool/store.js +2 -2
  32. package/api/chia/pools/pool_config.d.ts +10 -10
  33. package/api/chia/pools/pool_config.js +2 -2
  34. package/api/chia/pools/pool_wallet_info.d.ts +22 -22
  35. package/api/chia/pools/pool_wallet_info.js +2 -2
  36. package/api/chia/protocols/farmer_protocol.d.ts +43 -43
  37. package/api/chia/protocols/farmer_protocol.js +2 -2
  38. package/api/chia/protocols/harvester_protocol.d.ts +12 -12
  39. package/api/chia/protocols/harvester_protocol.js +2 -2
  40. package/api/chia/protocols/pool_protocol.d.ts +93 -93
  41. package/api/chia/protocols/pool_protocol.js +21 -21
  42. package/api/chia/server/outbound_message.d.ts +1 -1
  43. package/api/chia/server/outbound_message.js +2 -2
  44. package/api/chia/timelord/types.d.ts +1 -1
  45. package/api/chia/timelord/types.js +2 -2
  46. package/api/chia/types/_python_types_.d.ts +22 -22
  47. package/api/chia/types/_python_types_.js +2 -2
  48. package/api/chia/types/blockchain_format/classgroup.d.ts +4 -4
  49. package/api/chia/types/blockchain_format/classgroup.js +2 -2
  50. package/api/chia/types/blockchain_format/coin.d.ts +11 -11
  51. package/api/chia/types/blockchain_format/coin.js +2 -2
  52. package/api/chia/types/blockchain_format/foliage.d.ts +35 -35
  53. package/api/chia/types/blockchain_format/foliage.js +2 -2
  54. package/api/chia/types/blockchain_format/pool_target.d.ts +6 -6
  55. package/api/chia/types/blockchain_format/pool_target.js +2 -2
  56. package/api/chia/types/blockchain_format/program.d.ts +1 -1
  57. package/api/chia/types/blockchain_format/program.js +2 -2
  58. package/api/chia/types/blockchain_format/proof_of_space.d.ts +10 -10
  59. package/api/chia/types/blockchain_format/proof_of_space.js +2 -2
  60. package/api/chia/types/blockchain_format/reward_chain_block.d.ts +30 -30
  61. package/api/chia/types/blockchain_format/reward_chain_block.js +2 -2
  62. package/api/chia/types/blockchain_format/serialized_program.d.ts +2 -2
  63. package/api/chia/types/blockchain_format/serialized_program.js +2 -2
  64. package/api/chia/types/blockchain_format/sized_bytes.d.ts +8 -8
  65. package/api/chia/types/blockchain_format/sized_bytes.js +2 -2
  66. package/api/chia/types/blockchain_format/slots.d.ts +24 -24
  67. package/api/chia/types/blockchain_format/slots.js +2 -2
  68. package/api/chia/types/blockchain_format/sub_epoch_summary.d.ts +9 -9
  69. package/api/chia/types/blockchain_format/sub_epoch_summary.js +2 -2
  70. package/api/chia/types/blockchain_format/vdf.d.ts +13 -13
  71. package/api/chia/types/blockchain_format/vdf.js +2 -2
  72. package/api/chia/types/clvm_cost.d.ts +2 -2
  73. package/api/chia/types/clvm_cost.js +2 -2
  74. package/api/chia/types/coin_record.d.ts +12 -12
  75. package/api/chia/types/coin_record.js +2 -2
  76. package/api/chia/types/coin_spend.d.ts +7 -7
  77. package/api/chia/types/coin_spend.js +2 -2
  78. package/api/chia/types/coin_spend_with_conditions.d.ts +6 -6
  79. package/api/chia/types/coin_spend_with_conditions.js +2 -2
  80. package/api/chia/types/condition_opcode.d.ts +2 -2
  81. package/api/chia/types/condition_opcode.js +2 -2
  82. package/api/chia/types/condition_with_args.d.ts +6 -6
  83. package/api/chia/types/condition_with_args.js +2 -2
  84. package/api/chia/types/end_of_slot_bundle.d.ts +8 -8
  85. package/api/chia/types/end_of_slot_bundle.js +2 -2
  86. package/api/chia/types/full_block.d.ts +20 -20
  87. package/api/chia/types/full_block.js +2 -2
  88. package/api/chia/types/mempool_item.d.ts +32 -32
  89. package/api/chia/types/mempool_item.js +2 -2
  90. package/api/chia/types/mojos.d.ts +2 -2
  91. package/api/chia/types/mojos.js +2 -2
  92. package/api/chia/types/signing_mode.d.ts +4 -4
  93. package/api/chia/types/signing_mode.js +2 -2
  94. package/api/chia/types/spend_bundle.d.ts +6 -6
  95. package/api/chia/types/spend_bundle.js +2 -2
  96. package/api/chia/types/spend_bundle_condition.d.ts +26 -26
  97. package/api/chia/types/spend_bundle_condition.js +2 -2
  98. package/api/chia/types/unfinished_header_block.d.ts +14 -14
  99. package/api/chia/types/unfinished_header_block.js +2 -2
  100. package/api/chia/util/keychain.d.ts +12 -12
  101. package/api/chia/util/keychain.js +2 -2
  102. package/api/chia/util/misc.d.ts +5 -5
  103. package/api/chia/util/misc.js +2 -2
  104. package/api/chia/wallet/cat_wallet/cat_constants.d.ts +6 -6
  105. package/api/chia/wallet/cat_wallet/cat_constants.js +2 -2
  106. package/api/chia/wallet/conditions.d.ts +12 -12
  107. package/api/chia/wallet/conditions.js +2 -2
  108. package/api/chia/wallet/lineage_proof.d.ts +7 -7
  109. package/api/chia/wallet/lineage_proof.js +2 -2
  110. package/api/chia/wallet/nft_wallet/nft_info.d.ts +28 -28
  111. package/api/chia/wallet/nft_wallet/nft_info.js +2 -2
  112. package/api/chia/wallet/puzzle_drivers.d.ts +6 -6
  113. package/api/chia/wallet/puzzle_drivers.js +2 -2
  114. package/api/chia/wallet/puzzles/clawback/metadata.d.ts +13 -13
  115. package/api/chia/wallet/puzzles/clawback/metadata.js +2 -2
  116. package/api/chia/wallet/trade_record.d.ts +31 -31
  117. package/api/chia/wallet/trade_record.js +3 -3
  118. package/api/chia/wallet/transaction_record.d.ts +37 -37
  119. package/api/chia/wallet/transaction_record.js +2 -2
  120. package/api/chia/wallet/util/quality_filter.d.ts +22 -22
  121. package/api/chia/wallet/util/quality_filter.js +2 -2
  122. package/api/chia/wallet/util/tx_config.d.ts +24 -24
  123. package/api/chia/wallet/util/tx_config.js +2 -2
  124. package/api/chia/wallet/util/wallet_types.d.ts +27 -27
  125. package/api/chia/wallet/util/wallet_types.js +27 -27
  126. package/api/chia/wallet/vc_wallet/vc_drivers.d.ts +16 -16
  127. package/api/chia/wallet/vc_wallet/vc_drivers.js +2 -2
  128. package/api/chia/wallet/vc_wallet/vc_store.d.ts +6 -6
  129. package/api/chia/wallet/vc_wallet/vc_store.js +2 -2
  130. package/api/chia/wallet/wallet_coin_record.d.ts +25 -25
  131. package/api/chia/wallet/wallet_coin_record.js +2 -2
  132. package/api/chia/wallet/wallet_coin_store.d.ts +19 -19
  133. package/api/chia/wallet/wallet_coin_store.js +2 -2
  134. package/api/chia/wallet/wallet_info.d.ts +10 -10
  135. package/api/chia/wallet/wallet_info.js +2 -2
  136. package/api/chia/wallet/wallet_node.d.ts +10 -10
  137. package/api/chia/wallet/wallet_node.js +2 -2
  138. package/api/rpc/common/index.d.ts +61 -61
  139. package/api/rpc/common/index.js +55 -55
  140. package/api/rpc/crawler/index.d.ts +35 -35
  141. package/api/rpc/crawler/index.js +27 -27
  142. package/api/rpc/data_layer/index.d.ts +357 -357
  143. package/api/rpc/data_layer/index.js +224 -224
  144. package/api/rpc/farmer/index.d.ts +183 -183
  145. package/api/rpc/farmer/index.js +104 -104
  146. package/api/rpc/full_node/index.d.ts +456 -456
  147. package/api/rpc/full_node/index.js +274 -274
  148. package/api/rpc/harvester/index.d.ts +87 -87
  149. package/api/rpc/harvester/index.js +69 -69
  150. package/api/rpc/index.d.ts +15 -15
  151. package/api/rpc/index.js +234 -234
  152. package/api/rpc/pool/index.d.ts +32 -32
  153. package/api/rpc/pool/index.js +48 -48
  154. package/api/rpc/wallet/index.d.ts +1788 -1788
  155. package/api/rpc/wallet/index.js +886 -886
  156. package/api/types.d.ts +28 -28
  157. package/api/types.js +5 -5
  158. package/api/ws/chia_plots_create/index.d.ts +17 -17
  159. package/api/ws/chia_plots_create/index.js +38 -38
  160. package/api/ws/crawler/index.d.ts +28 -28
  161. package/api/ws/crawler/index.js +40 -40
  162. package/api/ws/daemon/index.d.ts +608 -608
  163. package/api/ws/daemon/index.js +282 -282
  164. package/api/ws/farmer/index.d.ts +93 -93
  165. package/api/ws/farmer/index.js +159 -159
  166. package/api/ws/full_node/index.d.ts +79 -79
  167. package/api/ws/full_node/index.js +78 -78
  168. package/api/ws/harvester/index.d.ts +47 -47
  169. package/api/ws/harvester/index.js +91 -91
  170. package/api/ws/index.d.ts +17 -17
  171. package/api/ws/index.js +94 -94
  172. package/api/ws/timelord/index.d.ts +43 -43
  173. package/api/ws/timelord/index.js +66 -66
  174. package/api/ws/wallet/index.d.ts +69 -69
  175. package/api/ws/wallet/index.js +108 -108
  176. package/bin/cli.d.ts +2 -2
  177. package/bin/cli.js +81 -81
  178. package/config/index.d.ts +39 -39
  179. package/config/index.js +95 -95
  180. package/daemon/connection.d.ts +6 -6
  181. package/daemon/connection.js +49 -49
  182. package/daemon/index.d.ts +61 -61
  183. package/daemon/index.js +292 -292
  184. package/index.d.ts +4 -4
  185. package/index.js +16 -16
  186. package/logger.d.ts +22 -22
  187. package/logger.js +77 -77
  188. package/package.json +1 -1
  189. package/rpc/index.d.ts +59 -57
  190. package/rpc/index.js +262 -255
@@ -1,22 +1,22 @@
1
- import { G1Element, Optional, str, uint32, uint8 } from "../types/_python_types_";
2
- import { bytes32 } from "../types/blockchain_format/sized_bytes";
3
- import { Coin } from "../types/blockchain_format/coin";
4
- import { Program } from "../types/blockchain_format/program";
5
- export declare type PoolState = {
6
- version: uint8;
7
- state: uint8;
8
- target_puzzle_hash: bytes32;
9
- owner_pubkey: G1Element;
10
- pool_url: Optional<str>;
11
- relative_lock_height: uint32;
12
- };
13
- export declare type PoolWalletInfo = {
14
- current: PoolState;
15
- target: Optional<PoolState>;
16
- launcher_coin: Coin;
17
- launcher_id: bytes32;
18
- p2_singleton_puzzle_hash: bytes32;
19
- current_inner: Program;
20
- tip_singleton_coin_id: bytes32;
21
- singleton_block_height: uint32;
22
- };
1
+ import { G1Element, Optional, str, uint32, uint8 } from "../types/_python_types_";
2
+ import { bytes32 } from "../types/blockchain_format/sized_bytes";
3
+ import { Coin } from "../types/blockchain_format/coin";
4
+ import { Program } from "../types/blockchain_format/program";
5
+ export declare type PoolState = {
6
+ version: uint8;
7
+ state: uint8;
8
+ target_puzzle_hash: bytes32;
9
+ owner_pubkey: G1Element;
10
+ pool_url: Optional<str>;
11
+ relative_lock_height: uint32;
12
+ };
13
+ export declare type PoolWalletInfo = {
14
+ current: PoolState;
15
+ target: Optional<PoolState>;
16
+ launcher_coin: Coin;
17
+ launcher_id: bytes32;
18
+ p2_singleton_puzzle_hash: bytes32;
19
+ current_inner: Program;
20
+ tip_singleton_coin_id: bytes32;
21
+ singleton_block_height: uint32;
22
+ };
@@ -1,2 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,43 +1,43 @@
1
- import { G2Element, Optional, uint32, uint64, uint8 } from "../types/_python_types_";
2
- import { bytes32 } from "../types/blockchain_format/sized_bytes";
3
- import { ProofOfSpace } from "../types/blockchain_format/proof_of_space";
4
- import { PoolTarget } from "../types/blockchain_format/pool_target";
5
- export declare type NewSignagePoint = {
6
- challenge_hash: bytes32;
7
- challenge_chain_sp: bytes32;
8
- reward_chain_sp: bytes32;
9
- difficulty: uint64;
10
- sub_slot_iters: uint64;
11
- signage_point_index: uint8;
12
- };
13
- export declare type DeclareProofOfSpace = {
14
- challenge_hash: bytes32;
15
- challenge_chain_sp: bytes32;
16
- signage_point_index: uint8;
17
- reward_chain_sp: bytes32;
18
- proof_of_space: ProofOfSpace;
19
- challenge_chain_sp_signature: G2Element;
20
- reward_chain_sp_signature: G2Element;
21
- farmer_puzzle_hash: bytes32;
22
- pool_target: Optional<PoolTarget>;
23
- pool_signature: Optional<G2Element>;
24
- };
25
- export declare type RequestSignedValues = {
26
- quality_string: bytes32;
27
- foliage_block_data_hash: bytes32;
28
- foliage_transaction_block_hash: bytes32;
29
- };
30
- export declare type FarmingInfo = {
31
- challenge_hash: bytes32;
32
- sp_hash: bytes32;
33
- timestamp: uint64;
34
- passed: uint32;
35
- proofs: uint32;
36
- total_plots: uint32;
37
- lookup_time: uint64;
38
- };
39
- export declare type SignedValues = {
40
- quality_string: bytes32;
41
- foliage_block_data_signature: G2Element;
42
- foliage_transaction_block_signature: G2Element;
43
- };
1
+ import { G2Element, Optional, uint32, uint64, uint8 } from "../types/_python_types_";
2
+ import { bytes32 } from "../types/blockchain_format/sized_bytes";
3
+ import { ProofOfSpace } from "../types/blockchain_format/proof_of_space";
4
+ import { PoolTarget } from "../types/blockchain_format/pool_target";
5
+ export declare type NewSignagePoint = {
6
+ challenge_hash: bytes32;
7
+ challenge_chain_sp: bytes32;
8
+ reward_chain_sp: bytes32;
9
+ difficulty: uint64;
10
+ sub_slot_iters: uint64;
11
+ signage_point_index: uint8;
12
+ };
13
+ export declare type DeclareProofOfSpace = {
14
+ challenge_hash: bytes32;
15
+ challenge_chain_sp: bytes32;
16
+ signage_point_index: uint8;
17
+ reward_chain_sp: bytes32;
18
+ proof_of_space: ProofOfSpace;
19
+ challenge_chain_sp_signature: G2Element;
20
+ reward_chain_sp_signature: G2Element;
21
+ farmer_puzzle_hash: bytes32;
22
+ pool_target: Optional<PoolTarget>;
23
+ pool_signature: Optional<G2Element>;
24
+ };
25
+ export declare type RequestSignedValues = {
26
+ quality_string: bytes32;
27
+ foliage_block_data_hash: bytes32;
28
+ foliage_transaction_block_hash: bytes32;
29
+ };
30
+ export declare type FarmingInfo = {
31
+ challenge_hash: bytes32;
32
+ sp_hash: bytes32;
33
+ timestamp: uint64;
34
+ passed: uint32;
35
+ proofs: uint32;
36
+ total_plots: uint32;
37
+ lookup_time: uint64;
38
+ };
39
+ export declare type SignedValues = {
40
+ quality_string: bytes32;
41
+ foliage_block_data_signature: G2Element;
42
+ foliage_transaction_block_signature: G2Element;
43
+ };
@@ -1,2 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,12 +1,12 @@
1
- import { G1Element, Optional, str, uint64, uint8 } from "../types/_python_types_";
2
- import { bytes32 } from "../types/blockchain_format/sized_bytes";
3
- export declare type Plot = {
4
- filename: str;
5
- size: uint8;
6
- plot_id: bytes32;
7
- pool_public_key: Optional<G1Element>;
8
- pool_contract_puzzle_hash: Optional<bytes32>;
9
- plot_public_key: G1Element;
10
- file_size: uint64;
11
- time_modified: uint64;
12
- };
1
+ import { G1Element, Optional, str, uint64, uint8 } from "../types/_python_types_";
2
+ import { bytes32 } from "../types/blockchain_format/sized_bytes";
3
+ export declare type Plot = {
4
+ filename: str;
5
+ size: uint8;
6
+ plot_id: bytes32;
7
+ pool_public_key: Optional<G1Element>;
8
+ pool_contract_puzzle_hash: Optional<bytes32>;
9
+ plot_public_key: G1Element;
10
+ file_size: uint64;
11
+ time_modified: uint64;
12
+ };
@@ -1,2 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,93 +1,93 @@
1
- import { bool, G1Element, G2Element, Optional, str, uint16, uint32, uint64, uint8 } from "../types/_python_types_";
2
- import { bytes32 } from "../types/blockchain_format/sized_bytes";
3
- import { ProofOfSpace } from "../types/blockchain_format/proof_of_space";
4
- export declare const PoolErrorCode: {
5
- REVERTED_SIGNAGE_POINT: number;
6
- TOO_LATE: number;
7
- NOT_FOUND: number;
8
- INVALID_PROOF: number;
9
- PROOF_NOT_GOOD_ENOUGH: number;
10
- INVALID_DIFFICULTY: number;
11
- INVALID_SIGNATURE: number;
12
- SERVER_EXCEPTION: number;
13
- INVALID_P2_SINGLETON_PUZZLE_HASH: number;
14
- FARMER_NOT_KNOWN: number;
15
- FARMER_ALREADY_KNOWN: number;
16
- INVALID_AUTHENTICATION_TOKEN: number;
17
- INVALID_PAYOUT_INSTRUCTIONS: number;
18
- INVALID_SINGLETON: number;
19
- DELAY_TIME_TOO_SHORT: number;
20
- REQUEST_FAILED: number;
21
- };
22
- export declare type AuthenticationPayload = {
23
- method_name: str;
24
- launcher_id: bytes32;
25
- target_puzzle_hash: bytes32;
26
- authentication_token: uint64;
27
- };
28
- export declare type GetPoolInfoResponse = {
29
- name: str;
30
- logo_url: str;
31
- minimum_difficulty: uint64;
32
- relative_lock_height: uint32;
33
- protocol_version: str;
34
- fee: str;
35
- description: str;
36
- target_puzzle_hash: bytes32;
37
- authentication_token_timeout: uint8;
38
- };
39
- export declare type PostPartialPayload = {
40
- launcher_id: bytes32;
41
- authentication_token: uint64;
42
- proof_of_space: ProofOfSpace;
43
- sp_hash: bytes32;
44
- end_of_sub_slot: bool;
45
- harvester_id: bytes32;
46
- };
47
- export declare type PostPartialRequest = {
48
- payload: PostPartialPayload;
49
- aggregate_signature: G2Element;
50
- };
51
- export declare type PostPartialResponse = {
52
- new_difficulty: uint64;
53
- };
54
- export declare type GetFarmerResponse = {
55
- authentication_public_key: G1Element;
56
- payout_instructions: str;
57
- current_difficulty: uint64;
58
- current_points: uint64;
59
- };
60
- export declare type PostFarmerPayload = {
61
- launcher_id: bytes32;
62
- authentication_token: uint64;
63
- authentication_public_key: G1Element;
64
- payout_instructions: str;
65
- suggested_difficulty: Optional<uint64>;
66
- };
67
- export declare type PostFarmerRequest = {
68
- payload: PostFarmerPayload;
69
- signature: G2Element;
70
- };
71
- export declare type PostFarmerResponse = {
72
- welcome_message: str;
73
- };
74
- export declare type PutFarmerPayload = {
75
- launcher_id: bytes32;
76
- authentication_token: uint64;
77
- authentication_public_key: Optional<G1Element>;
78
- payout_instructions: Optional<str>;
79
- suggested_difficulty: Optional<uint64>;
80
- };
81
- export declare type PutFarmerRequest = {
82
- payload: PutFarmerPayload;
83
- signature: G2Element;
84
- };
85
- export declare type PutFarmerResponse = {
86
- authentication_public_key: Optional<bool>;
87
- payout_instructions: Optional<bool>;
88
- suggested_difficulty: Optional<bool>;
89
- };
90
- export declare type ErrorResponse = {
91
- error_code: uint16;
92
- error_message: Optional<str>;
93
- };
1
+ import { bool, G1Element, G2Element, Optional, str, uint16, uint32, uint64, uint8 } from "../types/_python_types_";
2
+ import { bytes32 } from "../types/blockchain_format/sized_bytes";
3
+ import { ProofOfSpace } from "../types/blockchain_format/proof_of_space";
4
+ export declare const PoolErrorCode: {
5
+ REVERTED_SIGNAGE_POINT: number;
6
+ TOO_LATE: number;
7
+ NOT_FOUND: number;
8
+ INVALID_PROOF: number;
9
+ PROOF_NOT_GOOD_ENOUGH: number;
10
+ INVALID_DIFFICULTY: number;
11
+ INVALID_SIGNATURE: number;
12
+ SERVER_EXCEPTION: number;
13
+ INVALID_P2_SINGLETON_PUZZLE_HASH: number;
14
+ FARMER_NOT_KNOWN: number;
15
+ FARMER_ALREADY_KNOWN: number;
16
+ INVALID_AUTHENTICATION_TOKEN: number;
17
+ INVALID_PAYOUT_INSTRUCTIONS: number;
18
+ INVALID_SINGLETON: number;
19
+ DELAY_TIME_TOO_SHORT: number;
20
+ REQUEST_FAILED: number;
21
+ };
22
+ export declare type AuthenticationPayload = {
23
+ method_name: str;
24
+ launcher_id: bytes32;
25
+ target_puzzle_hash: bytes32;
26
+ authentication_token: uint64;
27
+ };
28
+ export declare type GetPoolInfoResponse = {
29
+ name: str;
30
+ logo_url: str;
31
+ minimum_difficulty: uint64;
32
+ relative_lock_height: uint32;
33
+ protocol_version: str;
34
+ fee: str;
35
+ description: str;
36
+ target_puzzle_hash: bytes32;
37
+ authentication_token_timeout: uint8;
38
+ };
39
+ export declare type PostPartialPayload = {
40
+ launcher_id: bytes32;
41
+ authentication_token: uint64;
42
+ proof_of_space: ProofOfSpace;
43
+ sp_hash: bytes32;
44
+ end_of_sub_slot: bool;
45
+ harvester_id: bytes32;
46
+ };
47
+ export declare type PostPartialRequest = {
48
+ payload: PostPartialPayload;
49
+ aggregate_signature: G2Element;
50
+ };
51
+ export declare type PostPartialResponse = {
52
+ new_difficulty: uint64;
53
+ };
54
+ export declare type GetFarmerResponse = {
55
+ authentication_public_key: G1Element;
56
+ payout_instructions: str;
57
+ current_difficulty: uint64;
58
+ current_points: uint64;
59
+ };
60
+ export declare type PostFarmerPayload = {
61
+ launcher_id: bytes32;
62
+ authentication_token: uint64;
63
+ authentication_public_key: G1Element;
64
+ payout_instructions: str;
65
+ suggested_difficulty: Optional<uint64>;
66
+ };
67
+ export declare type PostFarmerRequest = {
68
+ payload: PostFarmerPayload;
69
+ signature: G2Element;
70
+ };
71
+ export declare type PostFarmerResponse = {
72
+ welcome_message: str;
73
+ };
74
+ export declare type PutFarmerPayload = {
75
+ launcher_id: bytes32;
76
+ authentication_token: uint64;
77
+ authentication_public_key: Optional<G1Element>;
78
+ payout_instructions: Optional<str>;
79
+ suggested_difficulty: Optional<uint64>;
80
+ };
81
+ export declare type PutFarmerRequest = {
82
+ payload: PutFarmerPayload;
83
+ signature: G2Element;
84
+ };
85
+ export declare type PutFarmerResponse = {
86
+ authentication_public_key: Optional<bool>;
87
+ payout_instructions: Optional<bool>;
88
+ suggested_difficulty: Optional<bool>;
89
+ };
90
+ export declare type ErrorResponse = {
91
+ error_code: uint16;
92
+ error_message: Optional<str>;
93
+ };
@@ -1,21 +1,21 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PoolErrorCode = void 0;
4
- exports.PoolErrorCode = {
5
- REVERTED_SIGNAGE_POINT: 1,
6
- TOO_LATE: 2,
7
- NOT_FOUND: 3,
8
- INVALID_PROOF: 4,
9
- PROOF_NOT_GOOD_ENOUGH: 5,
10
- INVALID_DIFFICULTY: 6,
11
- INVALID_SIGNATURE: 7,
12
- SERVER_EXCEPTION: 8,
13
- INVALID_P2_SINGLETON_PUZZLE_HASH: 9,
14
- FARMER_NOT_KNOWN: 10,
15
- FARMER_ALREADY_KNOWN: 11,
16
- INVALID_AUTHENTICATION_TOKEN: 12,
17
- INVALID_PAYOUT_INSTRUCTIONS: 13,
18
- INVALID_SINGLETON: 14,
19
- DELAY_TIME_TOO_SHORT: 15,
20
- REQUEST_FAILED: 16,
21
- };
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PoolErrorCode = void 0;
4
+ exports.PoolErrorCode = {
5
+ REVERTED_SIGNAGE_POINT: 1,
6
+ TOO_LATE: 2,
7
+ NOT_FOUND: 3,
8
+ INVALID_PROOF: 4,
9
+ PROOF_NOT_GOOD_ENOUGH: 5,
10
+ INVALID_DIFFICULTY: 6,
11
+ INVALID_SIGNATURE: 7,
12
+ SERVER_EXCEPTION: 8,
13
+ INVALID_P2_SINGLETON_PUZZLE_HASH: 9,
14
+ FARMER_NOT_KNOWN: 10,
15
+ FARMER_ALREADY_KNOWN: 11,
16
+ INVALID_AUTHENTICATION_TOKEN: 12,
17
+ INVALID_PAYOUT_INSTRUCTIONS: 13,
18
+ INVALID_SINGLETON: 14,
19
+ DELAY_TIME_TOO_SHORT: 15,
20
+ REQUEST_FAILED: 16,
21
+ };
@@ -1 +1 @@
1
- export declare type NodeType = 1 | 2 | 3 | 4 | 5 | 6 | 7;
1
+ export declare type NodeType = 1 | 2 | 3 | 4 | 5 | 6 | 7;
@@ -1,2 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +1 @@
1
- export declare type Chain = 1 | 2 | 3 | 4;
1
+ export declare type Chain = 1 | 2 | 3 | 4;
@@ -1,2 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,22 +1,22 @@
1
- export declare type G1Element = string;
2
- export declare type G2Element = string;
3
- export declare type PrivateKey = string;
4
- export declare type bytes = string;
5
- export declare type int = number;
6
- export declare type int8 = number;
7
- export declare type uint8 = number;
8
- export declare type int16 = number;
9
- export declare type uint16 = number;
10
- export declare type int32 = number;
11
- export declare type uint32 = number;
12
- export declare type int64 = number | bigint;
13
- export declare type uint64 = number | bigint;
14
- export declare type uint128 = number | bigint;
15
- export declare type int512 = number | bigint;
16
- export declare type float = number;
17
- export declare type str = string;
18
- export declare type bool = boolean;
19
- export declare type True = true;
20
- export declare type False = false;
21
- export declare type None = null;
22
- export declare type Optional<T> = T | None;
1
+ export declare type G1Element = string;
2
+ export declare type G2Element = string;
3
+ export declare type PrivateKey = string;
4
+ export declare type bytes = string;
5
+ export declare type int = number;
6
+ export declare type int8 = number;
7
+ export declare type uint8 = number;
8
+ export declare type int16 = number;
9
+ export declare type uint16 = number;
10
+ export declare type int32 = number;
11
+ export declare type uint32 = number;
12
+ export declare type int64 = number | bigint;
13
+ export declare type uint64 = number | bigint;
14
+ export declare type uint128 = number | bigint;
15
+ export declare type int512 = number | bigint;
16
+ export declare type float = number;
17
+ export declare type str = string;
18
+ export declare type bool = boolean;
19
+ export declare type True = true;
20
+ export declare type False = false;
21
+ export declare type None = null;
22
+ export declare type Optional<T> = T | None;
@@ -1,2 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +1,4 @@
1
- import { bytes100 } from "./sized_bytes";
2
- export declare type ClassgroupElement = {
3
- data: bytes100;
4
- };
1
+ import { bytes100 } from "./sized_bytes";
2
+ export declare type ClassgroupElement = {
3
+ data: bytes100;
4
+ };
@@ -1,2 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,11 +1,11 @@
1
- import { bytes32 } from "./sized_bytes";
2
- import { uint64 } from "../_python_types_";
3
- /**
4
- * The actual definition of `Coin` type was moved to https://github.com/Chia-Network/chia_rs/blob/main/wheel/src/coin.rs
5
- * from chia-blockchain@1.5.1
6
- */
7
- export declare type Coin = {
8
- parent_coin_info: bytes32;
9
- puzzle_hash: bytes32;
10
- amount: uint64;
11
- };
1
+ import { bytes32 } from "./sized_bytes";
2
+ import { uint64 } from "../_python_types_";
3
+ /**
4
+ * The actual definition of `Coin` type was moved to https://github.com/Chia-Network/chia_rs/blob/main/wheel/src/coin.rs
5
+ * from chia-blockchain@1.5.1
6
+ */
7
+ export declare type Coin = {
8
+ parent_coin_info: bytes32;
9
+ puzzle_hash: bytes32;
10
+ amount: uint64;
11
+ };
@@ -1,2 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,35 +1,35 @@
1
- import { PoolTarget } from "./pool_target";
2
- import { G2Element, Optional, uint64 } from "../_python_types_";
3
- import { Coin } from "./coin";
4
- import { bytes32 } from "./sized_bytes";
5
- export declare type Foliage = {
6
- prev_block_hash: bytes32;
7
- reward_block_hash: bytes32;
8
- foliage_block_data: FoliageBlockData;
9
- foliage_block_data_signature: G2Element;
10
- foliage_transaction_block_hash: Optional<bytes32>;
11
- foliage_transaction_block_signature: Optional<G2Element>;
12
- };
13
- export declare type FoliageBlockData = {
14
- unfinished_reward_block_hash: bytes32;
15
- pool_target: PoolTarget;
16
- pool_signature: Optional<G2Element>;
17
- farmer_reward_puzzle_hash: bytes32;
18
- extension_data: bytes32;
19
- };
20
- export declare type FoliageTransactionBlock = {
21
- prev_transaction_block_hash: bytes32;
22
- timestamp: uint64;
23
- filter_hash: bytes32;
24
- additions_root: bytes32;
25
- removals_root: bytes32;
26
- transactions_info_hash: bytes32;
27
- };
28
- export declare type TransactionsInfo = {
29
- generator_root: bytes32;
30
- generator_refs_root: bytes32;
31
- aggregated_signature: G2Element;
32
- fees: uint64;
33
- cost: uint64;
34
- reward_claims_incorporated: Coin[];
35
- };
1
+ import { PoolTarget } from "./pool_target";
2
+ import { G2Element, Optional, uint64 } from "../_python_types_";
3
+ import { Coin } from "./coin";
4
+ import { bytes32 } from "./sized_bytes";
5
+ export declare type Foliage = {
6
+ prev_block_hash: bytes32;
7
+ reward_block_hash: bytes32;
8
+ foliage_block_data: FoliageBlockData;
9
+ foliage_block_data_signature: G2Element;
10
+ foliage_transaction_block_hash: Optional<bytes32>;
11
+ foliage_transaction_block_signature: Optional<G2Element>;
12
+ };
13
+ export declare type FoliageBlockData = {
14
+ unfinished_reward_block_hash: bytes32;
15
+ pool_target: PoolTarget;
16
+ pool_signature: Optional<G2Element>;
17
+ farmer_reward_puzzle_hash: bytes32;
18
+ extension_data: bytes32;
19
+ };
20
+ export declare type FoliageTransactionBlock = {
21
+ prev_transaction_block_hash: bytes32;
22
+ timestamp: uint64;
23
+ filter_hash: bytes32;
24
+ additions_root: bytes32;
25
+ removals_root: bytes32;
26
+ transactions_info_hash: bytes32;
27
+ };
28
+ export declare type TransactionsInfo = {
29
+ generator_root: bytes32;
30
+ generator_refs_root: bytes32;
31
+ aggregated_signature: G2Element;
32
+ fees: uint64;
33
+ cost: uint64;
34
+ reward_claims_incorporated: Coin[];
35
+ };
@@ -1,2 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +1,6 @@
1
- import { bytes32 } from "./sized_bytes";
2
- import { uint32 } from "../_python_types_";
3
- export declare type PoolTarget = {
4
- puzzle_hash: bytes32;
5
- max_height: uint32;
6
- };
1
+ import { bytes32 } from "./sized_bytes";
2
+ import { uint32 } from "../_python_types_";
3
+ export declare type PoolTarget = {
4
+ puzzle_hash: bytes32;
5
+ max_height: uint32;
6
+ };
@@ -1,2 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +1 @@
1
- export declare type Program = unknown;
1
+ export declare type Program = unknown;
@@ -1,2 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });