chia-agent 14.0.0 → 14.2.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 (154) hide show
  1. package/CHANGELOG.md +252 -3
  2. package/LICENSE +1 -1
  3. package/README.md +7 -5
  4. package/agent/index.d.ts +1 -1
  5. package/api/chia/consensus/block_record.d.ts +1 -32
  6. package/api/chia/consensus/blockchain.d.ts +2 -1
  7. package/api/chia/consensus/cost_calculator.d.ts +1 -1
  8. package/api/chia/data_layer/data_layer_util.d.ts +16 -16
  9. package/api/chia/data_layer/data_layer_wallet.d.ts +4 -3
  10. package/api/chia/farmer/farmer.d.ts +1 -1
  11. package/api/chia/full_node/signage_point.d.ts +1 -1
  12. package/api/chia/harvester/harvester.d.ts +1 -1
  13. package/api/chia/plot-sync/receiver.d.ts +2 -2
  14. package/api/chia/plotters/bladebit.d.ts +1 -1
  15. package/api/chia/plotters/chiapos.d.ts +1 -1
  16. package/api/chia/plotters/maxmax.d.ts +1 -1
  17. package/api/chia/plotting/util.d.ts +3 -3
  18. package/api/chia/pools/pool_config.d.ts +1 -1
  19. package/api/chia/pools/pool_wallet_info.d.ts +2 -4
  20. package/api/chia/protocols/farmer_protocol.d.ts +8 -8
  21. package/api/chia/protocols/harvester_protocol.d.ts +1 -1
  22. package/api/chia/protocols/pool_protocol.d.ts +13 -13
  23. package/api/chia/rpc/util.d.ts +14 -0
  24. package/api/chia/rpc/wallet_request_types.d.ts +46 -3
  25. package/api/chia/server/outbound_message.d.ts +1 -1
  26. package/api/chia/timelord/types.d.ts +1 -1
  27. package/api/chia/types/_python_types_.d.ts +22 -22
  28. package/api/chia/types/blockchain_format/classgroup.d.ts +1 -4
  29. package/api/chia/types/blockchain_format/coin.d.ts +1 -11
  30. package/api/chia/types/blockchain_format/foliage.d.ts +1 -35
  31. package/api/chia/types/blockchain_format/pool_target.d.ts +1 -6
  32. package/api/chia/types/blockchain_format/program.d.ts +1 -1
  33. package/api/chia/types/blockchain_format/proof_of_space.d.ts +1 -10
  34. package/api/chia/types/blockchain_format/reward_chain_block.d.ts +1 -30
  35. package/api/chia/types/blockchain_format/sized_bytes.d.ts +7 -7
  36. package/api/chia/types/blockchain_format/slots.d.ts +1 -24
  37. package/api/chia/types/blockchain_format/sub_epoch_summary.d.ts +1 -9
  38. package/api/chia/types/blockchain_format/vdf.d.ts +1 -13
  39. package/api/chia/types/clvm_cost.d.ts +1 -1
  40. package/api/chia/types/coin_record.d.ts +2 -2
  41. package/api/chia/types/coin_spend.d.ts +3 -8
  42. package/api/chia/types/condition_opcode.d.ts +1 -1
  43. package/api/chia/types/condition_with_args.d.ts +1 -1
  44. package/api/chia/types/end_of_slot_bundle.d.ts +1 -8
  45. package/api/chia/types/full_block.d.ts +1 -20
  46. package/api/chia/types/mempool_item.d.ts +3 -3
  47. package/api/chia/types/mojos.d.ts +1 -1
  48. package/api/chia/types/signing_mode.d.ts +6 -6
  49. package/api/chia/types/spend_bundle.d.ts +1 -1
  50. package/api/chia/types/spend_bundle_condition.d.ts +1 -26
  51. package/api/chia/types/unfinished_block.d.ts +1 -0
  52. package/api/chia/types/unfinished_header_block.d.ts +1 -1
  53. package/api/chia/util/keychain.d.ts +2 -2
  54. package/api/chia/util/misc.d.ts +1 -1
  55. package/api/chia/wallet/cat_wallet/cat_constants.d.ts +1 -1
  56. package/api/chia/wallet/conditions.d.ts +2 -2
  57. package/api/chia/wallet/dao_wallet/dao_info.d.ts +5 -5
  58. package/api/chia/wallet/dao_wallet/dao_wallet.d.ts +3 -3
  59. package/api/chia/wallet/lineage_proof.d.ts +1 -1
  60. package/api/chia/wallet/nft_wallet/nft_info.d.ts +1 -1
  61. package/api/chia/wallet/notification_store.d.ts +1 -1
  62. package/api/chia/wallet/puzzle_drivers.d.ts +2 -2
  63. package/api/chia/wallet/puzzles/clawback/metadata.d.ts +2 -2
  64. package/api/chia/wallet/signer_protocol.d.ts +54 -0
  65. package/api/chia/wallet/signer_protocol.js +2 -0
  66. package/api/chia/wallet/trade_record.d.ts +3 -3
  67. package/api/chia/wallet/transaction_record.d.ts +4 -4
  68. package/api/chia/wallet/util/quality_filter.d.ts +5 -5
  69. package/api/chia/wallet/util/tx_config.d.ts +4 -11
  70. package/api/chia/wallet/util/wallet_types.d.ts +1 -1
  71. package/api/chia/wallet/vc_wallet/vc_drivers.d.ts +2 -2
  72. package/api/chia/wallet/vc_wallet/vc_store.d.ts +1 -1
  73. package/api/chia/wallet/wallet_coin_record.d.ts +2 -2
  74. package/api/chia/wallet/wallet_coin_store.d.ts +1 -1
  75. package/api/chia/wallet/wallet_info.d.ts +2 -2
  76. package/api/chia/wallet/wallet_node.d.ts +1 -1
  77. package/api/chia_rs/chia-bls/public_key.d.ts +2 -0
  78. package/api/chia_rs/chia-bls/public_key.js +2 -0
  79. package/api/chia_rs/chia-consensus/gen/owned_conditions.d.ts +36 -0
  80. package/api/chia_rs/chia-consensus/gen/owned_conditions.js +2 -0
  81. package/api/chia_rs/chia-protocol/block_record.d.ts +32 -0
  82. package/api/chia_rs/chia-protocol/block_record.js +2 -0
  83. package/api/chia_rs/chia-protocol/classgroup.d.ts +4 -0
  84. package/api/chia_rs/chia-protocol/classgroup.js +2 -0
  85. package/api/chia_rs/chia-protocol/coin.d.ts +7 -0
  86. package/api/chia_rs/chia-protocol/coin.js +2 -0
  87. package/api/chia_rs/chia-protocol/coin_spend.d.ts +7 -0
  88. package/api/chia_rs/chia-protocol/coin_spend.js +2 -0
  89. package/api/chia_rs/chia-protocol/end_of_sub_slot_bundle.d.ts +8 -0
  90. package/api/chia_rs/chia-protocol/end_of_sub_slot_bundle.js +2 -0
  91. package/api/chia_rs/chia-protocol/foliage.d.ts +35 -0
  92. package/api/chia_rs/chia-protocol/foliage.js +2 -0
  93. package/api/chia_rs/chia-protocol/fullblock.d.ts +20 -0
  94. package/api/chia_rs/chia-protocol/fullblock.js +2 -0
  95. package/api/chia_rs/chia-protocol/pool_target.d.ts +6 -0
  96. package/api/chia_rs/chia-protocol/pool_target.js +2 -0
  97. package/api/chia_rs/chia-protocol/program.d.ts +2 -0
  98. package/api/chia_rs/chia-protocol/program.js +2 -0
  99. package/api/chia_rs/chia-protocol/proof_of_space.d.ts +10 -0
  100. package/api/chia_rs/chia-protocol/proof_of_space.js +2 -0
  101. package/api/chia_rs/chia-protocol/reward_chain_block.d.ts +30 -0
  102. package/api/chia_rs/chia-protocol/reward_chain_block.js +2 -0
  103. package/api/chia_rs/chia-protocol/slots.d.ts +24 -0
  104. package/api/chia_rs/chia-protocol/slots.js +2 -0
  105. package/api/chia_rs/chia-protocol/sub_epoch_summary.d.ts +9 -0
  106. package/api/chia_rs/chia-protocol/sub_epoch_summary.js +2 -0
  107. package/api/chia_rs/chia-protocol/unfinished_block.d.ts +17 -0
  108. package/api/chia_rs/chia-protocol/unfinished_block.js +2 -0
  109. package/api/chia_rs/chia-protocol/vdf.d.ts +13 -0
  110. package/api/chia_rs/chia-protocol/vdf.js +2 -0
  111. package/api/{chia/pool/store.d.ts → pool-reference/pool/record.d.ts} +5 -5
  112. package/api/pool-reference/pool/record.js +2 -0
  113. package/api/rpc/common/index.d.ts +34 -24
  114. package/api/rpc/common/index.js +8 -1
  115. package/api/rpc/crawler/index.d.ts +10 -10
  116. package/api/rpc/data_layer/index.d.ts +208 -134
  117. package/api/rpc/data_layer/index.js +23 -2
  118. package/api/rpc/farmer/index.d.ts +52 -55
  119. package/api/rpc/full_node/index.d.ts +140 -154
  120. package/api/rpc/full_node/index.js +2 -9
  121. package/api/rpc/harvester/index.d.ts +31 -34
  122. package/api/rpc/index.d.ts +7 -7
  123. package/api/rpc/index.js +13 -9
  124. package/api/rpc/pool/index.d.ts +13 -13
  125. package/api/rpc/wallet/index.d.ts +747 -641
  126. package/api/rpc/wallet/index.js +27 -20
  127. package/api/types.d.ts +4 -3
  128. package/api/types.js +2 -1
  129. package/api/ws/chia_plots_create/index.d.ts +7 -7
  130. package/api/ws/crawler/index.d.ts +9 -9
  131. package/api/ws/daemon/index.d.ts +198 -166
  132. package/api/ws/daemon/index.js +17 -3
  133. package/api/ws/farmer/index.d.ts +34 -34
  134. package/api/ws/full_node/index.d.ts +28 -17
  135. package/api/ws/full_node/index.js +14 -1
  136. package/api/ws/harvester/index.d.ts +19 -19
  137. package/api/ws/index.d.ts +3 -3
  138. package/api/ws/index.js +5 -2
  139. package/api/ws/timelord/index.d.ts +14 -14
  140. package/api/ws/wallet/index.d.ts +22 -22
  141. package/bin/cli.js +3 -3
  142. package/config/index.d.ts +1 -1
  143. package/config/index.js +3 -3
  144. package/daemon/connection.js +9 -10
  145. package/daemon/index.d.ts +6 -6
  146. package/daemon/index.js +21 -21
  147. package/index.js +5 -1
  148. package/logger.d.ts +3 -3
  149. package/package.json +3 -3
  150. package/rpc/index.d.ts +6 -4
  151. package/rpc/index.js +29 -29
  152. package/api/chia/types/blockchain_format/serialized_program.d.ts +0 -2
  153. /package/api/chia/{pool/store.js → rpc/util.js} +0 -0
  154. /package/api/chia/types/{blockchain_format/serialized_program.js → unfinished_block.js} +0 -0
@@ -6,19 +6,19 @@ import { ClassgroupElement } from "../types/blockchain_format/classgroup";
6
6
  import { ChallengeChainSubSlot, RewardChainSubSlot } from "../types/blockchain_format/slots";
7
7
  import { FoliageBlockData, FoliageTransactionBlock } from "../types/blockchain_format/foliage";
8
8
  import { RewardChainBlockUnfinished } from "../types/blockchain_format/reward_chain_block";
9
- export declare type SPSubSlotSourceData = {
9
+ export type SPSubSlotSourceData = {
10
10
  cc_sub_slot: ChallengeChainSubSlot;
11
11
  rc_sub_slot: RewardChainSubSlot;
12
12
  };
13
- export declare type SPVDFSourceData = {
13
+ export type SPVDFSourceData = {
14
14
  cc_vdf: ClassgroupElement;
15
15
  rc_vdf: ClassgroupElement;
16
16
  };
17
- export declare type SignagePointSourceData = {
17
+ export type SignagePointSourceData = {
18
18
  sub_slot_data: Optional<SPSubSlotSourceData>;
19
19
  vdf_data: Optional<SPVDFSourceData>;
20
20
  };
21
- export declare type NewSignagePoint = {
21
+ export type NewSignagePoint = {
22
22
  challenge_hash: bytes32;
23
23
  challenge_chain_sp: bytes32;
24
24
  reward_chain_sp: bytes32;
@@ -28,7 +28,7 @@ export declare type NewSignagePoint = {
28
28
  peak_height: uint32;
29
29
  sp_source_data: Optional<SignagePointSourceData>;
30
30
  };
31
- export declare type DeclareProofOfSpace = {
31
+ export type DeclareProofOfSpace = {
32
32
  challenge_hash: bytes32;
33
33
  challenge_chain_sp: bytes32;
34
34
  signage_point_index: uint8;
@@ -41,7 +41,7 @@ export declare type DeclareProofOfSpace = {
41
41
  pool_signature: Optional<G2Element>;
42
42
  include_signature_source_data: bool;
43
43
  };
44
- export declare type RequestSignedValues = {
44
+ export type RequestSignedValues = {
45
45
  quality_string: bytes32;
46
46
  foliage_block_data_hash: bytes32;
47
47
  foliage_transaction_block_hash: bytes32;
@@ -49,7 +49,7 @@ export declare type RequestSignedValues = {
49
49
  foliage_transaction_block_data: Optional<FoliageTransactionBlock>;
50
50
  rc_block_unfinished: Optional<RewardChainBlockUnfinished>;
51
51
  };
52
- export declare type FarmingInfo = {
52
+ export type FarmingInfo = {
53
53
  challenge_hash: bytes32;
54
54
  sp_hash: bytes32;
55
55
  timestamp: uint64;
@@ -58,7 +58,7 @@ export declare type FarmingInfo = {
58
58
  total_plots: uint32;
59
59
  lookup_time: uint64;
60
60
  };
61
- export declare type SignedValues = {
61
+ export type SignedValues = {
62
62
  quality_string: bytes32;
63
63
  foliage_block_data_signature: G2Element;
64
64
  foliage_transaction_block_signature: G2Element;
@@ -1,6 +1,6 @@
1
1
  import { G1Element, Optional, str, uint64, uint8 } from "../types/_python_types_";
2
2
  import { bytes32 } from "../types/blockchain_format/sized_bytes";
3
- export declare type Plot = {
3
+ export type Plot = {
4
4
  filename: str;
5
5
  size: uint8;
6
6
  plot_id: bytes32;
@@ -19,13 +19,13 @@ export declare const PoolErrorCode: {
19
19
  DELAY_TIME_TOO_SHORT: number;
20
20
  REQUEST_FAILED: number;
21
21
  };
22
- export declare type AuthenticationPayload = {
22
+ export type AuthenticationPayload = {
23
23
  method_name: str;
24
24
  launcher_id: bytes32;
25
25
  target_puzzle_hash: bytes32;
26
26
  authentication_token: uint64;
27
27
  };
28
- export declare type GetPoolInfoResponse = {
28
+ export type GetPoolInfoResponse = {
29
29
  name: str;
30
30
  logo_url: str;
31
31
  minimum_difficulty: uint64;
@@ -36,7 +36,7 @@ export declare type GetPoolInfoResponse = {
36
36
  target_puzzle_hash: bytes32;
37
37
  authentication_token_timeout: uint8;
38
38
  };
39
- export declare type PostPartialPayload = {
39
+ export type PostPartialPayload = {
40
40
  launcher_id: bytes32;
41
41
  authentication_token: uint64;
42
42
  proof_of_space: ProofOfSpace;
@@ -44,50 +44,50 @@ export declare type PostPartialPayload = {
44
44
  end_of_sub_slot: bool;
45
45
  harvester_id: bytes32;
46
46
  };
47
- export declare type PostPartialRequest = {
47
+ export type PostPartialRequest = {
48
48
  payload: PostPartialPayload;
49
49
  aggregate_signature: G2Element;
50
50
  };
51
- export declare type PostPartialResponse = {
51
+ export type PostPartialResponse = {
52
52
  new_difficulty: uint64;
53
53
  };
54
- export declare type GetFarmerResponse = {
54
+ export type GetFarmerResponse = {
55
55
  authentication_public_key: G1Element;
56
56
  payout_instructions: str;
57
57
  current_difficulty: uint64;
58
58
  current_points: uint64;
59
59
  };
60
- export declare type PostFarmerPayload = {
60
+ export type PostFarmerPayload = {
61
61
  launcher_id: bytes32;
62
62
  authentication_token: uint64;
63
63
  authentication_public_key: G1Element;
64
64
  payout_instructions: str;
65
65
  suggested_difficulty: Optional<uint64>;
66
66
  };
67
- export declare type PostFarmerRequest = {
67
+ export type PostFarmerRequest = {
68
68
  payload: PostFarmerPayload;
69
69
  signature: G2Element;
70
70
  };
71
- export declare type PostFarmerResponse = {
71
+ export type PostFarmerResponse = {
72
72
  welcome_message: str;
73
73
  };
74
- export declare type PutFarmerPayload = {
74
+ export type PutFarmerPayload = {
75
75
  launcher_id: bytes32;
76
76
  authentication_token: uint64;
77
77
  authentication_public_key: Optional<G1Element>;
78
78
  payout_instructions: Optional<str>;
79
79
  suggested_difficulty: Optional<uint64>;
80
80
  };
81
- export declare type PutFarmerRequest = {
81
+ export type PutFarmerRequest = {
82
82
  payload: PutFarmerPayload;
83
83
  signature: G2Element;
84
84
  };
85
- export declare type PutFarmerResponse = {
85
+ export type PutFarmerResponse = {
86
86
  authentication_public_key: Optional<bool>;
87
87
  payout_instructions: Optional<bool>;
88
88
  suggested_difficulty: Optional<bool>;
89
89
  };
90
- export declare type ErrorResponse = {
90
+ export type ErrorResponse = {
91
91
  error_code: uint16;
92
92
  error_message: Optional<str>;
93
93
  };
@@ -0,0 +1,14 @@
1
+ import { bool, int, str } from "../types/_python_types_";
2
+ import { Condition, ConditionValidTimes } from "../wallet/conditions";
3
+ import { TXConfigLoader, TXEndpointForCompat } from "../wallet/util/tx_config";
4
+ export type ExtraCondition = {
5
+ opcode: str | int;
6
+ args: Condition;
7
+ };
8
+ export type TXEndpointRequest = {
9
+ wallet_type: str;
10
+ extra_conditions?: ExtraCondition[];
11
+ push?: bool;
12
+ "CHIP-0029"?: bool;
13
+ sign?: bool;
14
+ } & TXConfigLoader & TXEndpointForCompat & Partial<ConditionValidTimes>;
@@ -1,11 +1,54 @@
1
- import { uint32 } from "../types/_python_types_";
1
+ import { bool, str, True, uint32 } from "../types/_python_types_";
2
2
  import { bytes32 } from "../types/blockchain_format/sized_bytes";
3
3
  import { Notification } from "../wallet/notification_store";
4
- export declare type GetNotifications = {
4
+ import { SignedTransaction, SigningInstructions, SigningResponse, Spend } from "../wallet/signer_protocol";
5
+ export type GetNotifications = {
5
6
  ids?: bytes32[];
6
7
  start?: uint32;
7
8
  end?: uint32;
9
+ "CHIP-0029": bool;
8
10
  };
9
- export declare type GetNotificationsResponse = {
11
+ export type GetNotificationsResponse = {
10
12
  notifications: Notification[];
11
13
  };
14
+ export type GatherSigningInfo = {
15
+ spends: Spend[];
16
+ };
17
+ export type GatherSigningInfoCHIP0029 = {
18
+ "CHIP-0029": True;
19
+ spends: str[];
20
+ };
21
+ export type GatherSigningInfoResponse = {
22
+ signing_instructions: SigningInstructions;
23
+ };
24
+ export type GatherSigningInfoResponseCHIP0029 = {
25
+ signing_instructions: str;
26
+ };
27
+ export type ApplySignatures = {
28
+ spends: Spend[];
29
+ signing_responses: SigningResponse[];
30
+ };
31
+ export type ApplySignaturesCHIP0029 = {
32
+ "CHIP-0029": True;
33
+ spends: str[];
34
+ signing_responses: str[];
35
+ };
36
+ export type ApplySignaturesResponse = {
37
+ signed_transactions: SignedTransaction[];
38
+ };
39
+ export type ApplySignaturesResponseCHIP0029 = {
40
+ signed_transactions: str[];
41
+ };
42
+ export type SubmitTransactions = {
43
+ signed_transactions: SignedTransaction[];
44
+ };
45
+ export type SubmitTransactionsCHIP0029 = {
46
+ "CHIP-0029": True;
47
+ signed_transactions: str[];
48
+ };
49
+ export type SubmitTransactionsResponse = {
50
+ mempool_ids: bytes32[];
51
+ };
52
+ export type SubmitTransactionsResponseCHIP0029 = {
53
+ mempool_ids: str[];
54
+ };
@@ -1 +1 @@
1
- export declare type NodeType = 1 | 2 | 3 | 4 | 5 | 6 | 7;
1
+ export type NodeType = 1 | 2 | 3 | 4 | 5 | 6 | 7;
@@ -1 +1 @@
1
- export declare type Chain = 1 | 2 | 3 | 4;
1
+ export type Chain = 1 | 2 | 3 | 4;
@@ -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 type G1Element = string;
2
+ export type G2Element = string;
3
+ export type PrivateKey = string;
4
+ export type bytes = string;
5
+ export type int = number;
6
+ export type int8 = number;
7
+ export type uint8 = number;
8
+ export type int16 = number;
9
+ export type uint16 = number;
10
+ export type int32 = number;
11
+ export type uint32 = number;
12
+ export type int64 = number | bigint;
13
+ export type uint64 = number | bigint;
14
+ export type uint128 = number | bigint;
15
+ export type int512 = number | bigint;
16
+ export type float = number;
17
+ export type str = string;
18
+ export type bool = boolean;
19
+ export type True = true;
20
+ export type False = false;
21
+ export type None = null;
22
+ export type Optional<T> = T | None;
@@ -1,4 +1 @@
1
- import { bytes100 } from "./sized_bytes";
2
- export declare type ClassgroupElement = {
3
- data: bytes100;
4
- };
1
+ export type { ClassgroupElement } from "../../../chia_rs/chia-protocol/classgroup";
@@ -1,11 +1 @@
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
+ export { Coin } from "../../../chia_rs/chia-protocol/coin";
@@ -1,35 +1 @@
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
+ export type { Foliage, FoliageBlockData, FoliageTransactionBlock, TransactionsInfo, } from "../../../chia_rs/chia-protocol/foliage";
@@ -1,6 +1 @@
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
+ export type { PoolTarget } from "../../../chia_rs/chia-protocol/pool_target";
@@ -1 +1 @@
1
- export declare type Program = unknown;
1
+ export type Program = unknown;
@@ -1,10 +1 @@
1
- import { bytes32 } from "./sized_bytes";
2
- import { bytes, G1Element, Optional, uint8 } from "../_python_types_";
3
- export declare type ProofOfSpace = {
4
- challenge: bytes32;
5
- pool_public_key: Optional<G1Element>;
6
- pool_contract_puzzle_hash: Optional<bytes32>;
7
- plot_public_key: G1Element;
8
- size: uint8;
9
- proof: bytes;
10
- };
1
+ export type { ProofOfSpace } from "../../../chia_rs/chia-protocol/proof_of_space";
@@ -1,30 +1 @@
1
- import { ProofOfSpace } from "./proof_of_space";
2
- import { VDFInfo } from "./vdf";
3
- import { bool, G2Element, Optional, uint128, uint32, uint8 } from "../_python_types_";
4
- import { bytes32 } from "./sized_bytes";
5
- export declare type RewardChainBlockUnfinished = {
6
- total_iters: uint128;
7
- signage_point_index: uint8;
8
- pos_ss_cc_challenge_hash: bytes32;
9
- proof_of_space: ProofOfSpace;
10
- challenge_chain_sp_vdf: Optional<VDFInfo>;
11
- challenge_chain_sp_signature: G2Element;
12
- reward_chain_sp_vdf: Optional<VDFInfo>;
13
- reward_chain_sp_signature: G2Element;
14
- };
15
- export declare type RewardChainBlock = {
16
- weight: uint128;
17
- height: uint32;
18
- total_iters: uint128;
19
- signage_point_index: uint8;
20
- pos_ss_cc_challenge_hash: bytes32;
21
- proof_of_space: ProofOfSpace;
22
- challenge_chain_sp_vdf: Optional<VDFInfo>;
23
- challenge_chain_sp_signature: G2Element;
24
- challenge_chain_ip_vdf: VDFInfo;
25
- reward_chain_sp_vdf: Optional<VDFInfo>;
26
- reward_chain_sp_signature: G2Element;
27
- reward_chain_ip_vdf: VDFInfo;
28
- infused_challenge_chain_ip_vdf: Optional<VDFInfo>;
29
- is_transaction_block: bool;
30
- };
1
+ export type { RewardChainBlockUnfinished, RewardChainBlock, } from "../../../chia_rs/chia-protocol/reward_chain_block";
@@ -1,8 +1,8 @@
1
1
  import { str } from "../_python_types_";
2
- export declare type bytes4 = str;
3
- export declare type bytes8 = str;
4
- export declare type bytes32 = str;
5
- export declare type bytes48 = str;
6
- export declare type bytes96 = str;
7
- export declare type bytes100 = str;
8
- export declare type bytes480 = str;
2
+ export type bytes4 = str;
3
+ export type bytes8 = str;
4
+ export type bytes32 = str;
5
+ export type bytes48 = str;
6
+ export type bytes96 = str;
7
+ export type bytes100 = str;
8
+ export type bytes480 = str;
@@ -1,24 +1 @@
1
- import { VDFInfo, VDFProof } from "./vdf";
2
- import { bytes32 } from "./sized_bytes";
3
- import { Optional, uint64, uint8 } from "../_python_types_";
4
- export declare type ChallengeChainSubSlot = {
5
- challenge_chain_end_of_slot_vdf: VDFInfo;
6
- infused_challenge_chain_sub_slot_hash: Optional<bytes32>;
7
- subepoch_summary_hash: Optional<bytes32>;
8
- new_sub_slot_iters: Optional<uint64>;
9
- new_difficulty: Optional<uint64>;
10
- };
11
- export declare type InfusedChallengeChainSubSlot = {
12
- infused_challenge_chain_end_of_slot_vdf: VDFInfo;
13
- };
14
- export declare type RewardChainSubSlot = {
15
- end_of_slot_vdf: VDFInfo;
16
- challenge_chain_sub_slot_hash: bytes32;
17
- infused_challenge_chain_sub_slot_hash: Optional<bytes32>;
18
- deficit: uint8;
19
- };
20
- export declare type SubSlotProofs = {
21
- challenge_chain_slot_proof: VDFProof;
22
- infused_challenge_chain_slot_proof: Optional<VDFProof>;
23
- reward_chain_slot_proof: VDFProof;
24
- };
1
+ export type { ChallengeChainSubSlot, InfusedChallengeChainSubSlot, RewardChainSubSlot, SubSlotProofs, } from "../../../chia_rs/chia-protocol/slots";
@@ -1,9 +1 @@
1
- import { bytes32 } from "./sized_bytes";
2
- import { Optional, uint64, uint8 } from "../_python_types_";
3
- export declare type SubEpochSummary = {
4
- prev_subepoch_summary_hash: bytes32;
5
- reward_chain_hash: bytes32;
6
- num_blocks_overflow: uint8;
7
- new_difficulty: Optional<uint64>;
8
- new_sub_slot_iters: Optional<uint64>;
9
- };
1
+ export type { SubEpochSummary } from "../../../chia_rs/chia-protocol/sub_epoch_summary";
@@ -1,13 +1 @@
1
- import { ClassgroupElement } from "./classgroup";
2
- import { bytes32 } from "./sized_bytes";
3
- import { bool, bytes, uint64, uint8 } from "../_python_types_";
4
- export declare type VDFInfo = {
5
- challenge: bytes32;
6
- number_of_iterations: uint64;
7
- output: ClassgroupElement;
8
- };
9
- export declare type VDFProof = {
10
- witness_type: uint8;
11
- witness: bytes;
12
- normalized_to_identity: bool;
13
- };
1
+ export type { VDFProof, VDFInfo } from "../../../chia_rs/chia-protocol/vdf";
@@ -1,2 +1,2 @@
1
1
  import { uint64 } from "./_python_types_";
2
- export declare type CLVMCost = uint64;
2
+ export type CLVMCost = uint64;
@@ -1,12 +1,12 @@
1
1
  import { Coin } from "./blockchain_format/coin";
2
2
  import { bool, uint32, uint64 } from "./_python_types_";
3
- export declare type CoinRecord = {
3
+ export type CoinRecord = {
4
4
  coin: Coin;
5
5
  confirmed_block_index: uint32;
6
6
  spent_block_index: uint32;
7
7
  coinbase: bool;
8
8
  timestamp: uint64;
9
9
  };
10
- export declare type CoinRecordBackwardCompatible = CoinRecord & {
10
+ export type CoinRecordBackwardCompatible = CoinRecord & {
11
11
  spent: bool;
12
12
  };
@@ -1,12 +1,7 @@
1
- import { Coin } from "./blockchain_format/coin";
2
- import { SerializedProgram } from "./blockchain_format/serialized_program";
3
1
  import { ConditionWithArgs } from "./condition_with_args";
4
- export declare type CoinSpend = {
5
- coin: Coin;
6
- puzzle_reveal: SerializedProgram;
7
- solution: SerializedProgram;
8
- };
9
- export declare type CoinSpendWithConditions = {
2
+ import { CoinSpend } from "../../chia_rs/chia-protocol/coin_spend";
3
+ export { CoinSpend } from "../../chia_rs/chia-protocol/coin_spend";
4
+ export type CoinSpendWithConditions = {
10
5
  coin_spend: CoinSpend;
11
6
  conditions: ConditionWithArgs[];
12
7
  };
@@ -1,2 +1,2 @@
1
1
  import { str } from "./_python_types_";
2
- export declare type ConditionOpcode = str;
2
+ export type ConditionOpcode = str;
@@ -1,6 +1,6 @@
1
1
  import { bytes } from "./_python_types_";
2
2
  import { ConditionOpcode } from "./condition_opcode";
3
- export declare type ConditionWithArgs = {
3
+ export type ConditionWithArgs = {
4
4
  opcode: ConditionOpcode;
5
5
  vars: bytes[];
6
6
  };
@@ -1,8 +1 @@
1
- import { ChallengeChainSubSlot, InfusedChallengeChainSubSlot, RewardChainSubSlot, SubSlotProofs } from "./blockchain_format/slots";
2
- import { Optional } from "./_python_types_";
3
- export declare type EndOfSubSlotBundle = {
4
- challenge_chain: ChallengeChainSubSlot;
5
- infused_challenge_chain: Optional<InfusedChallengeChainSubSlot>;
6
- reward_chain: RewardChainSubSlot;
7
- proofs: SubSlotProofs;
8
- };
1
+ export type { EndOfSubSlotBundle } from "../../chia_rs/chia-protocol/end_of_sub_slot_bundle";
@@ -1,20 +1 @@
1
- import { EndOfSubSlotBundle } from "./end_of_slot_bundle";
2
- import { RewardChainBlock } from "./blockchain_format/reward_chain_block";
3
- import { VDFProof } from "./blockchain_format/vdf";
4
- import { Foliage, FoliageTransactionBlock, TransactionsInfo } from "./blockchain_format/foliage";
5
- import { Optional, uint32 } from "./_python_types_";
6
- import { SerializedProgram } from "./blockchain_format/serialized_program";
7
- export declare type FullBlock = {
8
- finished_sub_slots: EndOfSubSlotBundle[];
9
- reward_chain_block: RewardChainBlock;
10
- challenge_chain_sp_proof: Optional<VDFProof>;
11
- challenge_chain_ip_proof: VDFProof;
12
- reward_chain_sp_proof: Optional<VDFProof>;
13
- reward_chain_ip_proof: VDFProof;
14
- infused_challenge_chain_ip_proof: Optional<VDFProof>;
15
- foliage: Foliage;
16
- foliage_transaction_block: Optional<FoliageTransactionBlock>;
17
- transactions_info: Optional<TransactionsInfo>;
18
- transactions_generator: Optional<SerializedProgram>;
19
- transactions_generator_ref_list: uint32[];
20
- };
1
+ export type { FullBlock } from "../../chia_rs/chia-protocol/fullblock";
@@ -4,14 +4,14 @@ import { bytes32 } from "./blockchain_format/sized_bytes";
4
4
  import { NPCResult } from "../consensus/cost_calculator";
5
5
  import { bool, Optional, uint32, uint64 } from "./_python_types_";
6
6
  import { CoinSpend } from "./coin_spend";
7
- export declare type BundleCoinSpend = {
7
+ export type BundleCoinSpend = {
8
8
  coin_spend: CoinSpend;
9
9
  eligible_for_dedup: bool;
10
10
  eligible_for_fast_forward: bool;
11
11
  additions: Coin[];
12
12
  cost: Optional<uint64>;
13
13
  };
14
- export declare type MempoolItem = {
14
+ export type MempoolItem = {
15
15
  spend_bundle: SpendBundle;
16
16
  fee: uint64;
17
17
  npc_result: NPCResult;
@@ -22,7 +22,7 @@ export declare type MempoolItem = {
22
22
  assert_before_seconds: Optional<uint64>;
23
23
  bundle_coin_spends: Record<bytes32, BundleCoinSpend>;
24
24
  };
25
- export declare type MempoolItemInJsonDict = {
25
+ export type MempoolItemInJsonDict = {
26
26
  spend_bundle: SpendBundle;
27
27
  fee: uint64;
28
28
  npc_result: NPCResult;
@@ -1,2 +1,2 @@
1
1
  import { uint64 } from "./_python_types_";
2
- export declare type Mojos = uint64;
2
+ export type Mojos = uint64;
@@ -1,6 +1,6 @@
1
- export declare type CHIP_0002 = "BLS_SIG_BLS12381G2_XMD:SHA-256_SSWU_RO_AUG:CHIP-0002_";
2
- export declare type CHIP_0002_HEX_INPUT = "BLS_SIG_BLS12381G2_XMD:SHA-256_SSWU_RO_AUG:CHIP-0002_HEX";
3
- export declare type BLS_MESSAGE_AUGMENTATION_UTF8_INPUT = "BLS_SIG_BLS12381G2_XMD:SHA-256_SSWU_RO_AUG:utf8input_";
4
- export declare type BLS_MESSAGE_AUGMENTATION_HEX_INPUT = "BLS_SIG_BLS12381G2_XMD:SHA-256_SSWU_RO_AUG:hexinput_";
5
- export declare type CHIP_0002_P2_DELEGATED_CONDITIONS = "BLS_SIG_BLS12381G2_XMD:SHA-256_SSWU_RO_AUG:CHIP-0002_P2_DELEGATED_PUZZLE";
6
- export declare type SigningMode = CHIP_0002 | CHIP_0002_HEX_INPUT | BLS_MESSAGE_AUGMENTATION_UTF8_INPUT | BLS_MESSAGE_AUGMENTATION_HEX_INPUT | CHIP_0002_P2_DELEGATED_CONDITIONS;
1
+ export type CHIP_0002 = "BLS_SIG_BLS12381G2_XMD:SHA-256_SSWU_RO_AUG:CHIP-0002_";
2
+ export type CHIP_0002_HEX_INPUT = "BLS_SIG_BLS12381G2_XMD:SHA-256_SSWU_RO_AUG:CHIP-0002_HEX";
3
+ export type BLS_MESSAGE_AUGMENTATION_UTF8_INPUT = "BLS_SIG_BLS12381G2_XMD:SHA-256_SSWU_RO_AUG:utf8input_";
4
+ export type BLS_MESSAGE_AUGMENTATION_HEX_INPUT = "BLS_SIG_BLS12381G2_XMD:SHA-256_SSWU_RO_AUG:hexinput_";
5
+ export type CHIP_0002_P2_DELEGATED_CONDITIONS = "BLS_SIG_BLS12381G2_XMD:SHA-256_SSWU_RO_AUG:CHIP-0002_P2_DELEGATED_PUZZLE";
6
+ export type SigningMode = CHIP_0002 | CHIP_0002_HEX_INPUT | BLS_MESSAGE_AUGMENTATION_UTF8_INPUT | BLS_MESSAGE_AUGMENTATION_HEX_INPUT | CHIP_0002_P2_DELEGATED_CONDITIONS;
@@ -1,6 +1,6 @@
1
1
  import { G2Element } from "./_python_types_";
2
2
  import { CoinSpend } from "./coin_spend";
3
- export declare type SpendBundle = {
3
+ export type SpendBundle = {
4
4
  coin_spends: CoinSpend[];
5
5
  aggregated_signature: G2Element;
6
6
  };
@@ -1,26 +1 @@
1
- import { bytes32, bytes48 } from "./blockchain_format/sized_bytes";
2
- import { bytes, Optional, uint32, uint64 } from "./_python_types_";
3
- /**
4
- * The actual definition of `Spend` type was moved to https://github.com/Chia-Network/chia_rs/blob/main/wheel/src/run_generator.rs
5
- * from chia-blockchain@1.5.1
6
- */
7
- export declare type Spend = {
8
- coin_id: bytes32;
9
- puzzle_hash: bytes32;
10
- height_relative: Optional<uint32>;
11
- seconds_relative: uint64;
12
- create_coin: Array<[bytes32, uint64, bytes]>;
13
- agg_sig_me: Array<[bytes48, bytes]>;
14
- };
15
- /**
16
- * The actual definition of `SpendBundleConditions` type was moved to https://github.com/Chia-Network/chia_rs/blob/main/wheel/src/run_generator.rs
17
- * from chia-blockchain@1.5.1
18
- */
19
- export declare type SpendBundleConditions = {
20
- spends: Spend[];
21
- reserve_fee: uint64;
22
- height_absolute: uint32;
23
- seconds_absolute: uint64;
24
- agg_sig_unsafe: Array<[bytes48, bytes]>;
25
- cost: uint64;
26
- };
1
+ export { SpendBundleConditions } from "../../chia_rs/chia-consensus/gen/owned_conditions";
@@ -0,0 +1 @@
1
+ export type { UnfinishedBlock } from "../../chia_rs/chia-protocol/unfinished_block";