chia-agent 14.0.0 → 14.1.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 (114) hide show
  1. package/CHANGELOG.md +132 -3
  2. package/LICENSE +1 -1
  3. package/README.md +5 -5
  4. package/agent/index.d.ts +1 -1
  5. package/api/chia/consensus/block_record.d.ts +1 -1
  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 +2 -2
  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/pool/{store.d.ts → record.d.ts} +1 -1
  19. package/api/chia/pools/pool_config.d.ts +1 -1
  20. package/api/chia/pools/pool_wallet_info.d.ts +2 -2
  21. package/api/chia/protocols/farmer_protocol.d.ts +8 -8
  22. package/api/chia/protocols/harvester_protocol.d.ts +1 -1
  23. package/api/chia/protocols/pool_protocol.d.ts +13 -13
  24. package/api/chia/rpc/util.d.ts +12 -0
  25. package/api/chia/rpc/util.js +2 -0
  26. package/api/chia/rpc/wallet_request_types.d.ts +2 -2
  27. package/api/chia/server/outbound_message.d.ts +1 -1
  28. package/api/chia/timelord/types.d.ts +1 -1
  29. package/api/chia/types/_python_types_.d.ts +22 -22
  30. package/api/chia/types/blockchain_format/classgroup.d.ts +1 -1
  31. package/api/chia/types/blockchain_format/coin.d.ts +1 -1
  32. package/api/chia/types/blockchain_format/foliage.d.ts +4 -4
  33. package/api/chia/types/blockchain_format/pool_target.d.ts +1 -1
  34. package/api/chia/types/blockchain_format/program.d.ts +1 -1
  35. package/api/chia/types/blockchain_format/proof_of_space.d.ts +1 -1
  36. package/api/chia/types/blockchain_format/reward_chain_block.d.ts +2 -2
  37. package/api/chia/types/blockchain_format/serialized_program.d.ts +1 -1
  38. package/api/chia/types/blockchain_format/sized_bytes.d.ts +7 -7
  39. package/api/chia/types/blockchain_format/slots.d.ts +4 -4
  40. package/api/chia/types/blockchain_format/sub_epoch_summary.d.ts +1 -1
  41. package/api/chia/types/blockchain_format/vdf.d.ts +2 -2
  42. package/api/chia/types/clvm_cost.d.ts +1 -1
  43. package/api/chia/types/coin_record.d.ts +2 -2
  44. package/api/chia/types/coin_spend.d.ts +2 -2
  45. package/api/chia/types/condition_opcode.d.ts +1 -1
  46. package/api/chia/types/condition_with_args.d.ts +1 -1
  47. package/api/chia/types/end_of_slot_bundle.d.ts +1 -1
  48. package/api/chia/types/full_block.d.ts +5 -1
  49. package/api/chia/types/mempool_item.d.ts +3 -3
  50. package/api/chia/types/mojos.d.ts +1 -1
  51. package/api/chia/types/signing_mode.d.ts +6 -6
  52. package/api/chia/types/spend_bundle.d.ts +1 -1
  53. package/api/chia/types/spend_bundle_condition.d.ts +2 -2
  54. package/api/chia/types/unfinished_header_block.d.ts +1 -1
  55. package/api/chia/util/keychain.d.ts +2 -2
  56. package/api/chia/util/misc.d.ts +1 -1
  57. package/api/chia/wallet/cat_wallet/cat_constants.d.ts +1 -1
  58. package/api/chia/wallet/conditions.d.ts +2 -2
  59. package/api/chia/wallet/dao_wallet/dao_info.d.ts +5 -5
  60. package/api/chia/wallet/dao_wallet/dao_wallet.d.ts +3 -3
  61. package/api/chia/wallet/lineage_proof.d.ts +1 -1
  62. package/api/chia/wallet/nft_wallet/nft_info.d.ts +1 -1
  63. package/api/chia/wallet/notification_store.d.ts +1 -1
  64. package/api/chia/wallet/puzzle_drivers.d.ts +2 -2
  65. package/api/chia/wallet/puzzles/clawback/metadata.d.ts +2 -2
  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/rpc/common/index.d.ts +32 -24
  78. package/api/rpc/common/index.js +8 -1
  79. package/api/rpc/crawler/index.d.ts +10 -10
  80. package/api/rpc/data_layer/index.d.ts +169 -129
  81. package/api/rpc/data_layer/index.js +9 -2
  82. package/api/rpc/farmer/index.d.ts +52 -55
  83. package/api/rpc/full_node/index.d.ts +140 -154
  84. package/api/rpc/full_node/index.js +2 -9
  85. package/api/rpc/harvester/index.d.ts +31 -34
  86. package/api/rpc/index.d.ts +7 -7
  87. package/api/rpc/index.js +7 -7
  88. package/api/rpc/pool/index.d.ts +13 -13
  89. package/api/rpc/wallet/index.d.ts +642 -635
  90. package/api/rpc/wallet/index.js +6 -13
  91. package/api/types.d.ts +3 -3
  92. package/api/ws/chia_plots_create/index.d.ts +7 -7
  93. package/api/ws/crawler/index.d.ts +9 -9
  94. package/api/ws/daemon/index.d.ts +159 -154
  95. package/api/ws/daemon/index.js +9 -2
  96. package/api/ws/farmer/index.d.ts +34 -34
  97. package/api/ws/full_node/index.d.ts +17 -17
  98. package/api/ws/harvester/index.d.ts +19 -19
  99. package/api/ws/index.d.ts +2 -2
  100. package/api/ws/index.js +2 -1
  101. package/api/ws/timelord/index.d.ts +14 -14
  102. package/api/ws/wallet/index.d.ts +22 -22
  103. package/bin/cli.js +3 -3
  104. package/config/index.d.ts +1 -1
  105. package/config/index.js +3 -3
  106. package/daemon/connection.js +9 -10
  107. package/daemon/index.d.ts +6 -6
  108. package/daemon/index.js +21 -21
  109. package/index.js +5 -1
  110. package/logger.d.ts +3 -3
  111. package/package.json +3 -3
  112. package/rpc/index.d.ts +6 -4
  113. package/rpc/index.js +29 -29
  114. /package/api/chia/pool/{store.js → record.js} +0 -0
@@ -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,4 @@
1
1
  import { bytes100 } from "./sized_bytes";
2
- export declare type ClassgroupElement = {
2
+ export type ClassgroupElement = {
3
3
  data: bytes100;
4
4
  };
@@ -4,7 +4,7 @@ import { uint64 } from "../_python_types_";
4
4
  * The actual definition of `Coin` type was moved to https://github.com/Chia-Network/chia_rs/blob/main/wheel/src/coin.rs
5
5
  * from chia-blockchain@1.5.1
6
6
  */
7
- export declare type Coin = {
7
+ export type Coin = {
8
8
  parent_coin_info: bytes32;
9
9
  puzzle_hash: bytes32;
10
10
  amount: uint64;
@@ -2,7 +2,7 @@ import { PoolTarget } from "./pool_target";
2
2
  import { G2Element, Optional, uint64 } from "../_python_types_";
3
3
  import { Coin } from "./coin";
4
4
  import { bytes32 } from "./sized_bytes";
5
- export declare type Foliage = {
5
+ export type Foliage = {
6
6
  prev_block_hash: bytes32;
7
7
  reward_block_hash: bytes32;
8
8
  foliage_block_data: FoliageBlockData;
@@ -10,14 +10,14 @@ export declare type Foliage = {
10
10
  foliage_transaction_block_hash: Optional<bytes32>;
11
11
  foliage_transaction_block_signature: Optional<G2Element>;
12
12
  };
13
- export declare type FoliageBlockData = {
13
+ export type FoliageBlockData = {
14
14
  unfinished_reward_block_hash: bytes32;
15
15
  pool_target: PoolTarget;
16
16
  pool_signature: Optional<G2Element>;
17
17
  farmer_reward_puzzle_hash: bytes32;
18
18
  extension_data: bytes32;
19
19
  };
20
- export declare type FoliageTransactionBlock = {
20
+ export type FoliageTransactionBlock = {
21
21
  prev_transaction_block_hash: bytes32;
22
22
  timestamp: uint64;
23
23
  filter_hash: bytes32;
@@ -25,7 +25,7 @@ export declare type FoliageTransactionBlock = {
25
25
  removals_root: bytes32;
26
26
  transactions_info_hash: bytes32;
27
27
  };
28
- export declare type TransactionsInfo = {
28
+ export type TransactionsInfo = {
29
29
  generator_root: bytes32;
30
30
  generator_refs_root: bytes32;
31
31
  aggregated_signature: G2Element;
@@ -1,6 +1,6 @@
1
1
  import { bytes32 } from "./sized_bytes";
2
2
  import { uint32 } from "../_python_types_";
3
- export declare type PoolTarget = {
3
+ export type PoolTarget = {
4
4
  puzzle_hash: bytes32;
5
5
  max_height: uint32;
6
6
  };
@@ -1 +1 @@
1
- export declare type Program = unknown;
1
+ export type Program = unknown;
@@ -1,6 +1,6 @@
1
1
  import { bytes32 } from "./sized_bytes";
2
2
  import { bytes, G1Element, Optional, uint8 } from "../_python_types_";
3
- export declare type ProofOfSpace = {
3
+ export type ProofOfSpace = {
4
4
  challenge: bytes32;
5
5
  pool_public_key: Optional<G1Element>;
6
6
  pool_contract_puzzle_hash: Optional<bytes32>;
@@ -2,7 +2,7 @@ import { ProofOfSpace } from "./proof_of_space";
2
2
  import { VDFInfo } from "./vdf";
3
3
  import { bool, G2Element, Optional, uint128, uint32, uint8 } from "../_python_types_";
4
4
  import { bytes32 } from "./sized_bytes";
5
- export declare type RewardChainBlockUnfinished = {
5
+ export type RewardChainBlockUnfinished = {
6
6
  total_iters: uint128;
7
7
  signage_point_index: uint8;
8
8
  pos_ss_cc_challenge_hash: bytes32;
@@ -12,7 +12,7 @@ export declare type RewardChainBlockUnfinished = {
12
12
  reward_chain_sp_vdf: Optional<VDFInfo>;
13
13
  reward_chain_sp_signature: G2Element;
14
14
  };
15
- export declare type RewardChainBlock = {
15
+ export type RewardChainBlock = {
16
16
  weight: uint128;
17
17
  height: uint32;
18
18
  total_iters: uint128;
@@ -1,2 +1,2 @@
1
1
  import { str } from "../_python_types_";
2
- export declare type SerializedProgram = str;
2
+ export type SerializedProgram = str;
@@ -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,23 +1,23 @@
1
1
  import { VDFInfo, VDFProof } from "./vdf";
2
2
  import { bytes32 } from "./sized_bytes";
3
3
  import { Optional, uint64, uint8 } from "../_python_types_";
4
- export declare type ChallengeChainSubSlot = {
4
+ export type ChallengeChainSubSlot = {
5
5
  challenge_chain_end_of_slot_vdf: VDFInfo;
6
6
  infused_challenge_chain_sub_slot_hash: Optional<bytes32>;
7
7
  subepoch_summary_hash: Optional<bytes32>;
8
8
  new_sub_slot_iters: Optional<uint64>;
9
9
  new_difficulty: Optional<uint64>;
10
10
  };
11
- export declare type InfusedChallengeChainSubSlot = {
11
+ export type InfusedChallengeChainSubSlot = {
12
12
  infused_challenge_chain_end_of_slot_vdf: VDFInfo;
13
13
  };
14
- export declare type RewardChainSubSlot = {
14
+ export type RewardChainSubSlot = {
15
15
  end_of_slot_vdf: VDFInfo;
16
16
  challenge_chain_sub_slot_hash: bytes32;
17
17
  infused_challenge_chain_sub_slot_hash: Optional<bytes32>;
18
18
  deficit: uint8;
19
19
  };
20
- export declare type SubSlotProofs = {
20
+ export type SubSlotProofs = {
21
21
  challenge_chain_slot_proof: VDFProof;
22
22
  infused_challenge_chain_slot_proof: Optional<VDFProof>;
23
23
  reward_chain_slot_proof: VDFProof;
@@ -1,6 +1,6 @@
1
1
  import { bytes32 } from "./sized_bytes";
2
2
  import { Optional, uint64, uint8 } from "../_python_types_";
3
- export declare type SubEpochSummary = {
3
+ export type SubEpochSummary = {
4
4
  prev_subepoch_summary_hash: bytes32;
5
5
  reward_chain_hash: bytes32;
6
6
  num_blocks_overflow: uint8;
@@ -1,12 +1,12 @@
1
1
  import { ClassgroupElement } from "./classgroup";
2
2
  import { bytes32 } from "./sized_bytes";
3
3
  import { bool, bytes, uint64, uint8 } from "../_python_types_";
4
- export declare type VDFInfo = {
4
+ export type VDFInfo = {
5
5
  challenge: bytes32;
6
6
  number_of_iterations: uint64;
7
7
  output: ClassgroupElement;
8
8
  };
9
- export declare type VDFProof = {
9
+ export type VDFProof = {
10
10
  witness_type: uint8;
11
11
  witness: bytes;
12
12
  normalized_to_identity: bool;
@@ -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,12 @@
1
1
  import { Coin } from "./blockchain_format/coin";
2
2
  import { SerializedProgram } from "./blockchain_format/serialized_program";
3
3
  import { ConditionWithArgs } from "./condition_with_args";
4
- export declare type CoinSpend = {
4
+ export type CoinSpend = {
5
5
  coin: Coin;
6
6
  puzzle_reveal: SerializedProgram;
7
7
  solution: SerializedProgram;
8
8
  };
9
- export declare type CoinSpendWithConditions = {
9
+ export type CoinSpendWithConditions = {
10
10
  coin_spend: CoinSpend;
11
11
  conditions: ConditionWithArgs[];
12
12
  };
@@ -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,6 +1,6 @@
1
1
  import { ChallengeChainSubSlot, InfusedChallengeChainSubSlot, RewardChainSubSlot, SubSlotProofs } from "./blockchain_format/slots";
2
2
  import { Optional } from "./_python_types_";
3
- export declare type EndOfSubSlotBundle = {
3
+ export type EndOfSubSlotBundle = {
4
4
  challenge_chain: ChallengeChainSubSlot;
5
5
  infused_challenge_chain: Optional<InfusedChallengeChainSubSlot>;
6
6
  reward_chain: RewardChainSubSlot;
@@ -4,7 +4,11 @@ import { VDFProof } from "./blockchain_format/vdf";
4
4
  import { Foliage, FoliageTransactionBlock, TransactionsInfo } from "./blockchain_format/foliage";
5
5
  import { Optional, uint32 } from "./_python_types_";
6
6
  import { SerializedProgram } from "./blockchain_format/serialized_program";
7
- export declare type FullBlock = {
7
+ /**
8
+ * The actual definition of `FullBlock` type was moved to https://github.com/Chia-Network/chia_rs/blob/main/crates/chia-protocol/src/fullblock.rs
9
+ * from chia-blockchain@2.3.0
10
+ */
11
+ export type FullBlock = {
8
12
  finished_sub_slots: EndOfSubSlotBundle[];
9
13
  reward_chain_block: RewardChainBlock;
10
14
  challenge_chain_sp_proof: Optional<VDFProof>;
@@ -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
  };
@@ -4,7 +4,7 @@ import { bytes, Optional, uint32, uint64 } from "./_python_types_";
4
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
5
  * from chia-blockchain@1.5.1
6
6
  */
7
- export declare type Spend = {
7
+ export type Spend = {
8
8
  coin_id: bytes32;
9
9
  puzzle_hash: bytes32;
10
10
  height_relative: Optional<uint32>;
@@ -16,7 +16,7 @@ export declare type Spend = {
16
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
17
  * from chia-blockchain@1.5.1
18
18
  */
19
- export declare type SpendBundleConditions = {
19
+ export type SpendBundleConditions = {
20
20
  spends: Spend[];
21
21
  reserve_fee: uint64;
22
22
  height_absolute: uint32;
@@ -3,7 +3,7 @@ import { VDFProof } from "./blockchain_format/vdf";
3
3
  import { Foliage, FoliageTransactionBlock } from "./blockchain_format/foliage";
4
4
  import { bytes, Optional } from "./_python_types_";
5
5
  import { RewardChainBlockUnfinished } from "./blockchain_format/reward_chain_block";
6
- export declare type UnfinishedHeaderBlock = {
6
+ export type UnfinishedHeaderBlock = {
7
7
  finished_sub_slots: EndOfSubSlotBundle[];
8
8
  reward_chain_block: RewardChainBlockUnfinished;
9
9
  challenge_chain_sp_proof: Optional<VDFProof>;
@@ -1,10 +1,10 @@
1
1
  import { bytes, G1Element, PrivateKey, Optional, str, uint32 } from "../types/_python_types_";
2
- export declare type KeyDataSecrets = {
2
+ export type KeyDataSecrets = {
3
3
  mnemonic: str[];
4
4
  entropy: bytes;
5
5
  private_key: PrivateKey;
6
6
  };
7
- export declare type KeyData = {
7
+ export type KeyData = {
8
8
  fingerprint: uint32;
9
9
  public_key: G1Element;
10
10
  label: Optional<str>;
@@ -1,5 +1,5 @@
1
1
  import { bytes, uint16 } from "../types/_python_types_";
2
- export declare type VersionBlob = {
2
+ export type VersionBlob = {
3
3
  version: uint16;
4
4
  blob: bytes;
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import { str } from "../../types/_python_types_";
2
- export declare type CAT = {
2
+ export type CAT = {
3
3
  asset_id: str;
4
4
  name: str;
5
5
  symbol: str;
@@ -1,6 +1,6 @@
1
1
  import { Optional, str, uint32, uint64 } from "../types/_python_types_";
2
- export declare type Condition = Record<str, any>;
3
- export declare type ConditionValidTimes = {
2
+ export type Condition = Record<str, any>;
3
+ export type ConditionValidTimes = {
4
4
  min_secs_since_created: Optional<uint64>;
5
5
  min_time: Optional<uint64>;
6
6
  min_blocks_since_created: Optional<uint32>;
@@ -3,7 +3,7 @@ import { bytes32 } from "../../types/blockchain_format/sized_bytes";
3
3
  import { Program } from "../../types/blockchain_format/program";
4
4
  import { Coin } from "../../types/blockchain_format/coin";
5
5
  import { LineageProof } from "../lineage_proof";
6
- export declare type ProposalInfo = {
6
+ export type ProposalInfo = {
7
7
  proposal_id: bytes32;
8
8
  inner_puzzle: Program;
9
9
  amount_voted: uint64;
@@ -12,10 +12,10 @@ export declare type ProposalInfo = {
12
12
  current_innerpuz: Optional<Program>;
13
13
  timer_coin: Optional<Coin>;
14
14
  singleton_block_height: uint32;
15
- passed: Optional<bool>;
16
- closed: Optional<bool>;
15
+ passed: bool;
16
+ closed: bool;
17
17
  };
18
- export declare type DAOInfo = {
18
+ export type DAOInfo = {
19
19
  treasury_id: bytes32;
20
20
  cat_wallet_id: uint32;
21
21
  dao_cat_wallet_id: uint32;
@@ -28,7 +28,7 @@ export declare type DAOInfo = {
28
28
  assets: Array<Optional<bytes32>>;
29
29
  current_height: uint64;
30
30
  };
31
- export declare type DAORules = {
31
+ export type DAORules = {
32
32
  proposal_timelock: uint64;
33
33
  soft_close_length: uint64;
34
34
  attendance_required: uint64;
@@ -1,6 +1,6 @@
1
1
  import { bool, bytes, int, None } from "../../types/_python_types_";
2
2
  import { Program } from "../../types/blockchain_format/program";
3
- export declare type ProposalState = {
3
+ export type ProposalState = {
4
4
  total_votes_needed: int;
5
5
  yes_votes_needed: int;
6
6
  blocks_needed: int;
@@ -8,7 +8,7 @@ export declare type ProposalState = {
8
8
  closable: bool;
9
9
  closed: bool | None;
10
10
  };
11
- export declare type ParsedProposalSpend = {
11
+ export type ParsedProposalSpend = {
12
12
  state: ProposalState;
13
13
  proposal_type: "s";
14
14
  proposed_puzzle_reveal: Program;
@@ -24,7 +24,7 @@ export declare type ParsedProposalSpend = {
24
24
  }>;
25
25
  }>;
26
26
  };
27
- export declare type ParsedProposalUpdate = {
27
+ export type ParsedProposalUpdate = {
28
28
  state: ProposalState;
29
29
  proposal_type: "u";
30
30
  dao_rules: unknown;
@@ -1,6 +1,6 @@
1
1
  import { Optional, uint64 } from "../types/_python_types_";
2
2
  import { bytes32 } from "../types/blockchain_format/sized_bytes";
3
- export declare type LineageProof = {
3
+ export type LineageProof = {
4
4
  parent_name: Optional<bytes32>;
5
5
  inner_puzzle_hash: Optional<bytes32>;
6
6
  amount: Optional<uint64>;
@@ -1,6 +1,6 @@
1
1
  import { bool, bytes, Optional, str, uint16, uint32, uint64 } from "../../types/_python_types_";
2
2
  import { bytes32 } from "../../types/blockchain_format/sized_bytes";
3
- export declare type NFTInfo = {
3
+ export type NFTInfo = {
4
4
  nft_id: str;
5
5
  launcher_id: bytes32;
6
6
  nft_coin_id: bytes32;
@@ -1,6 +1,6 @@
1
1
  import { bytes, uint32, uint64 } from "../types/_python_types_";
2
2
  import { bytes32 } from "../types/blockchain_format/sized_bytes";
3
- export declare type Notification = {
3
+ export type Notification = {
4
4
  id: bytes32;
5
5
  message: bytes;
6
6
  amount: uint64;
@@ -1,6 +1,6 @@
1
1
  import { str } from "../types/_python_types_";
2
- export declare type TDriverDictValue = {
2
+ export type TDriverDictValue = {
3
3
  type: str;
4
4
  also?: TDriverDict;
5
5
  } & Record<str, any>;
6
- export declare type TDriverDict = Record<str, TDriverDictValue>;
6
+ export type TDriverDict = Record<str, TDriverDictValue>;
@@ -1,12 +1,12 @@
1
1
  import { bool, uint16, uint64 } from "../../../types/_python_types_";
2
2
  import { bytes32 } from "../../../types/blockchain_format/sized_bytes";
3
- export declare type AutoClaimSettings = {
3
+ export type AutoClaimSettings = {
4
4
  enabled: bool;
5
5
  tx_fee: uint64;
6
6
  min_amount: uint64;
7
7
  batch_size: uint16;
8
8
  };
9
- export declare type ClawbackMetadata = {
9
+ export type ClawbackMetadata = {
10
10
  time_lock: uint64;
11
11
  sender_puzzle_hash: bytes32;
12
12
  recipient_puzzle_hash: bytes32;
@@ -3,7 +3,7 @@ import { Coin } from "../types/blockchain_format/coin";
3
3
  import { bytes32 } from "../types/blockchain_format/sized_bytes";
4
4
  import { TDriverDict } from "./puzzle_drivers";
5
5
  import { ConditionValidTimes } from "./conditions";
6
- export declare type TradeRecordOld = {
6
+ export type TradeRecordOld = {
7
7
  confirmed_at_index: uint32;
8
8
  accepted_at_time: Optional<uint64>;
9
9
  created_at_time: uint64;
@@ -16,10 +16,10 @@ export declare type TradeRecordOld = {
16
16
  status: uint32;
17
17
  sent_to: Array<[str, uint8, Optional<str>]>;
18
18
  };
19
- export declare type TradeRecord = TradeRecordOld & {
19
+ export type TradeRecord = TradeRecordOld & {
20
20
  valid_times: ConditionValidTimes;
21
21
  };
22
- export declare type TradeRecordConvenience = {
22
+ export type TradeRecordConvenience = {
23
23
  status: str;
24
24
  summary: {
25
25
  offered: Record<str, int>;
@@ -4,7 +4,7 @@ import { Coin } from "../types/blockchain_format/coin";
4
4
  import { bytes32 } from "../types/blockchain_format/sized_bytes";
5
5
  import { ClawbackMetadata } from "./puzzles/clawback/metadata";
6
6
  import { ConditionValidTimes } from "./conditions";
7
- export declare type TransactionRecordOld = {
7
+ export type TransactionRecordOld = {
8
8
  confirmed_at_height: uint32;
9
9
  created_at_time: uint64;
10
10
  to_puzzle_hash: bytes32;
@@ -22,14 +22,14 @@ export declare type TransactionRecordOld = {
22
22
  name: bytes32;
23
23
  memos: Array<[bytes32, bytes[]]>;
24
24
  };
25
- export declare type TransactionRecord = TransactionRecordOld & {
25
+ export type TransactionRecord = TransactionRecordOld & {
26
26
  valid_times: ConditionValidTimes;
27
27
  };
28
- export declare type TransactionRecordConvenience = {
28
+ export type TransactionRecordConvenience = {
29
29
  to_address: str;
30
30
  memos: Record<str, str>;
31
31
  } & TransactionRecord;
32
- export declare type TransactionRecordConvenienceWithMetadata = {
32
+ export type TransactionRecordConvenienceWithMetadata = {
33
33
  metadata: ClawbackMetadata & {
34
34
  coin_id: str;
35
35
  spent: bool;
@@ -1,22 +1,22 @@
1
1
  import { uint32, uint64, uint8 } from "../../types/_python_types_";
2
2
  import { bytes32 } from "../../types/blockchain_format/sized_bytes";
3
- export declare type TransactionTypeFilter = {
3
+ export type TransactionTypeFilter = {
4
4
  values: uint8[];
5
5
  mode: uint8;
6
6
  };
7
- export declare type HashFilter = {
7
+ export type HashFilter = {
8
8
  values: bytes32[];
9
9
  mode: uint8;
10
10
  };
11
- export declare type AmountFilter = {
11
+ export type AmountFilter = {
12
12
  values: uint64[];
13
13
  mode: uint8;
14
14
  };
15
- export declare type UInt32Range = {
15
+ export type UInt32Range = {
16
16
  start: uint32;
17
17
  stop: uint32;
18
18
  };
19
- export declare type UInt64Range = {
19
+ export type UInt64Range = {
20
20
  start: uint64;
21
21
  stop: uint64;
22
22
  };
@@ -1,24 +1,17 @@
1
- import { bool, int, Optional, str, uint64 } from "../../types/_python_types_";
1
+ import { bool, Optional, uint64 } from "../../types/_python_types_";
2
2
  import { bytes32 } from "../../types/blockchain_format/sized_bytes";
3
- import { Condition } from "../conditions";
4
- export declare type CoinSelectionConfigLoader = {
3
+ export type CoinSelectionConfigLoader = {
5
4
  min_coin_amount?: Optional<uint64>;
6
5
  max_coin_amount?: Optional<uint64>;
7
6
  excluded_coin_amounts?: Optional<uint64[]>;
8
7
  excluded_coin_ids?: Optional<bytes32[]>;
9
8
  };
10
- export declare type TxEndpointForCompat = {
9
+ export type TXEndpointForCompat = {
11
10
  exclude_coin_ids?: Optional<bytes32[]>;
12
11
  exclude_coin_amounts?: Optional<uint64[]>;
13
12
  exclude_coins?: Optional<bytes32[]>;
14
13
  excluded_coins?: Optional<bytes32[]>;
15
14
  };
16
- export declare type TxConfigLoader = CoinSelectionConfigLoader & {
15
+ export type TXConfigLoader = CoinSelectionConfigLoader & {
17
16
  reuse_puzhash?: Optional<bool>;
18
17
  };
19
- export declare type TxEndpoint = TxConfigLoader & TxEndpointForCompat & {
20
- extra_conditions?: Array<{
21
- opcode: str | int;
22
- args: Condition;
23
- }>;
24
- };