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
@@ -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;
@@ -0,0 +1,54 @@
1
+ import { bytes, str, uint64 } from "../types/_python_types_";
2
+ import { bytes32 } from "../types/blockchain_format/sized_bytes";
3
+ import { Program } from "../types/blockchain_format/program";
4
+ export type Coin = {
5
+ parent_coin_id: bytes32;
6
+ puzzle_hash: bytes32;
7
+ amount: uint64;
8
+ };
9
+ export type Spend = {
10
+ coin: Coin;
11
+ puzzle: Program;
12
+ solution: Program;
13
+ };
14
+ export type TransactionInfo = {
15
+ spends: Spend[];
16
+ };
17
+ export type SigningTarget = {
18
+ fingerprint: bytes;
19
+ message: bytes;
20
+ hook: bytes32;
21
+ };
22
+ export type SumHint = {
23
+ fingerprints: bytes[];
24
+ synthetic_offset: bytes;
25
+ final_pubkey: bytes;
26
+ };
27
+ export type PathHint = {
28
+ root_fingerprint: bytes;
29
+ path: uint64[];
30
+ };
31
+ export type KeyHints = {
32
+ sum_hints: SumHint[];
33
+ path_hints: PathHint[];
34
+ };
35
+ export type SigningInstructions = {
36
+ key_hints: KeyHints;
37
+ targets: SigningTarget[];
38
+ };
39
+ export type UnsignedTransaction = {
40
+ transaction_info: TransactionInfo;
41
+ signing_instructions: SigningInstructions;
42
+ };
43
+ export type SigningResponse = {
44
+ signature: bytes;
45
+ hook: bytes32;
46
+ };
47
+ export type Signature = {
48
+ type: str;
49
+ signature: bytes;
50
+ };
51
+ export type SignedTransaction = {
52
+ transaction_info: TransactionInfo;
53
+ signatures: Signature[];
54
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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
- };
@@ -23,7 +23,7 @@ export declare const CoinType: {
23
23
  readonly CRCAT_PENDING: 2;
24
24
  readonly CRCAT: 3;
25
25
  };
26
- export declare type StreamableWalletIdentifier = {
26
+ export type StreamableWalletIdentifier = {
27
27
  id: uint32;
28
28
  type: uint8;
29
29
  };
@@ -2,10 +2,10 @@ import { bytes32 } from "../../types/blockchain_format/sized_bytes";
2
2
  import { Optional } from "../../types/_python_types_";
3
3
  import { LineageProof } from "../lineage_proof";
4
4
  import { Coin } from "../../types/blockchain_format/coin";
5
- export declare type VCLineageProof = LineageProof & {
5
+ export type VCLineageProof = LineageProof & {
6
6
  parent_proof_hash: Optional<bytes32>;
7
7
  };
8
- export declare type VerifiedCredential = {
8
+ export type VerifiedCredential = {
9
9
  coin: Coin;
10
10
  singleton_lineage_proof: LineageProof;
11
11
  eml_lineage_proof: VCLineageProof;
@@ -1,6 +1,6 @@
1
1
  import { uint32 } from "../../types/_python_types_";
2
2
  import { VerifiedCredential } from "./vc_drivers";
3
- export declare type VCRecord = {
3
+ export type VCRecord = {
4
4
  vc: VerifiedCredential;
5
5
  confirmed_at_height: uint32;
6
6
  };
@@ -3,7 +3,7 @@ import { Coin } from "../types/blockchain_format/coin";
3
3
  import { CoinType, StreamableWalletIdentifier, WalletType } from "./util/wallet_types";
4
4
  import { VersionBlob } from "../util/misc";
5
5
  import { ClawbackMetadata } from "./puzzles/clawback/metadata";
6
- export declare type WalletCoinRecord = {
6
+ export type WalletCoinRecord = {
7
7
  coin: Coin;
8
8
  confirmed_block_height: uint32;
9
9
  spent_block_height: uint32;
@@ -14,7 +14,7 @@ export declare type WalletCoinRecord = {
14
14
  coin_type: typeof CoinType[keyof typeof CoinType];
15
15
  metadata: Optional<VersionBlob>;
16
16
  };
17
- export declare type WalletCoinRecordWithMetadata = WalletCoinRecord & {
17
+ export type WalletCoinRecordWithMetadata = WalletCoinRecord & {
18
18
  id: str;
19
19
  type: typeof CoinType[keyof typeof CoinType];
20
20
  wallet_identifier: StreamableWalletIdentifier;
@@ -1,6 +1,6 @@
1
1
  import { bool, Optional, uint32, uint8 } from "../types/_python_types_";
2
2
  import { AmountFilter, HashFilter, UInt32Range, UInt64Range } from "./util/quality_filter";
3
- export declare type GetCoinRecords = {
3
+ export type GetCoinRecords = {
4
4
  offset: uint32;
5
5
  limit: uint32;
6
6
  wallet_id: Optional<uint32>;
@@ -1,10 +1,10 @@
1
1
  import { str, uint32, uint8 } from "../types/_python_types_";
2
- export declare type WalletInfo = {
2
+ export type WalletInfo = {
3
3
  id: uint32;
4
4
  name: str;
5
5
  type: uint8;
6
6
  data: str;
7
7
  };
8
- export declare type WalletInfoBackup = {
8
+ export type WalletInfoBackup = {
9
9
  wallet_list: WalletInfo[];
10
10
  };
@@ -1,5 +1,5 @@
1
1
  import { uint128, uint32, uint64 } from "../types/_python_types_";
2
- export declare type Balance = {
2
+ export type Balance = {
3
3
  confirmed_wallet_balance: uint128;
4
4
  unconfirmed_wallet_balance: uint128;
5
5
  spendable_balance: uint128;
@@ -0,0 +1,2 @@
1
+ import { G1Element } from "../../chia/types/_python_types_";
2
+ export type PublicKey = G1Element;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,36 @@
1
+ import { bytes, Optional, uint128, uint32, uint64 } from "../../../chia/types/_python_types_";
2
+ import { bytes32 } from "../../../chia/types/blockchain_format/sized_bytes";
3
+ import { PublicKey } from "../../chia-bls/public_key";
4
+ export type Spend = {
5
+ coin_id: bytes32;
6
+ parent_id: bytes32;
7
+ puzzle_hash: bytes32;
8
+ coin_amount: uint64;
9
+ height_relative: Optional<uint32>;
10
+ seconds_relative: Optional<uint64>;
11
+ before_height_relative: Optional<uint32>;
12
+ before_seconds_relative: Optional<uint64>;
13
+ birth_height: Optional<uint32>;
14
+ birth_seconds: Optional<uint64>;
15
+ create_coin: Array<[bytes32, uint64, Optional<bytes>]>;
16
+ agg_sig_me: Array<[PublicKey, bytes]>;
17
+ agg_sig_parent: Array<[PublicKey, bytes]>;
18
+ agg_sig_puzzle: Array<[PublicKey, bytes]>;
19
+ agg_sig_amount: Array<[PublicKey, bytes]>;
20
+ agg_sig_puzzle_amount: Array<[PublicKey, bytes]>;
21
+ agg_sig_parent_amount: Array<[PublicKey, bytes]>;
22
+ agg_sig_parent_puzzle: Array<[PublicKey, bytes]>;
23
+ flags: uint32;
24
+ };
25
+ export type SpendBundleConditions = {
26
+ spends: Spend[];
27
+ reserve_fee: uint64;
28
+ height_absolute: uint32;
29
+ seconds_absolute: uint64;
30
+ before_height_absolute: Optional<uint32>;
31
+ before_seconds_absolute: Optional<uint64>;
32
+ agg_sig_unsafe: Array<[PublicKey, bytes]>;
33
+ cost: uint64;
34
+ removal_amount: uint128;
35
+ addition_amount: uint128;
36
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,32 @@
1
+ import { bytes32 } from "../../chia/types/blockchain_format/sized_bytes";
2
+ import { bool, Optional, uint128, uint32, uint64, uint8 } from "../../chia/types/_python_types_";
3
+ import { ClassgroupElement } from "./classgroup";
4
+ import { Coin } from "./coin";
5
+ import { SubEpochSummary } from "./sub_epoch_summary";
6
+ export type BlockRecord = {
7
+ header_hash: bytes32;
8
+ prev_hash: bytes32;
9
+ height: uint32;
10
+ weight: uint128;
11
+ total_iters: uint128;
12
+ signage_point_index: uint8;
13
+ challenge_vdf_output: ClassgroupElement;
14
+ infused_challenge_vdf_output: Optional<ClassgroupElement>;
15
+ reward_infusion_new_challenge: bytes32;
16
+ challenge_block_info_hash: bytes32;
17
+ sub_slot_iters: uint64;
18
+ pool_puzzle_hash: bytes32;
19
+ farmer_puzzle_hash: bytes32;
20
+ required_iters: uint64;
21
+ deficit: uint8;
22
+ overflow: bool;
23
+ prev_transaction_block_height: uint32;
24
+ timestamp: Optional<uint64>;
25
+ prev_transaction_block_hash: Optional<bytes32>;
26
+ fees: Optional<uint64>;
27
+ reward_claims_incorporated: Optional<Coin[]>;
28
+ finished_challenge_slot_hashes: Optional<bytes32[]>;
29
+ finished_infused_challenge_slot_hashes: Optional<bytes32[]>;
30
+ finished_reward_slot_hashes: Optional<bytes32[]>;
31
+ sub_epoch_summary_included: Optional<SubEpochSummary>;
32
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ import { bytes100 } from "../../chia/types/blockchain_format/sized_bytes";
2
+ export type ClassgroupElement = {
3
+ data: bytes100;
4
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ import { bytes32 } from "../../chia/types/blockchain_format/sized_bytes";
2
+ import { uint64 } from "../../chia/types/_python_types_";
3
+ export type Coin = {
4
+ parent_coin_info: bytes32;
5
+ puzzle_hash: bytes32;
6
+ amount: uint64;
7
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ import { Coin } from "./coin";
2
+ import { Program } from "./program";
3
+ export type CoinSpend = {
4
+ coin: Coin;
5
+ puzzle_reveal: Program;
6
+ solution: Program;
7
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ import { Optional } from "../../chia/types/_python_types_";
2
+ import { ChallengeChainSubSlot, InfusedChallengeChainSubSlot, RewardChainSubSlot, SubSlotProofs } from "./slots";
3
+ export type EndOfSubSlotBundle = {
4
+ challenge_chain: ChallengeChainSubSlot;
5
+ infused_challenge_chain: Optional<InfusedChallengeChainSubSlot>;
6
+ reward_chain: RewardChainSubSlot;
7
+ proofs: SubSlotProofs;
8
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,35 @@
1
+ import { bytes32 } from "../../chia/types/blockchain_format/sized_bytes";
2
+ import { G2Element, Optional, uint64 } from "../../chia/types/_python_types_";
3
+ import { PoolTarget } from "./pool_target";
4
+ import { Coin } from "./coin";
5
+ export 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 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 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 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
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,20 @@
1
+ import { Optional, uint32 } from "../../chia/types/_python_types_";
2
+ import { EndOfSubSlotBundle } from "./end_of_sub_slot_bundle";
3
+ import { RewardChainBlock } from "./reward_chain_block";
4
+ import { VDFProof } from "./vdf";
5
+ import { Foliage, FoliageTransactionBlock, TransactionsInfo } from "./foliage";
6
+ import { Program } from "./program";
7
+ export 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<Program>;
19
+ transactions_generator_ref_list: uint32[];
20
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ import { bytes32 } from "../../chia/types/blockchain_format/sized_bytes";
2
+ import { uint32 } from "../../chia/types/_python_types_";
3
+ export type PoolTarget = {
4
+ puzzle_hash: bytes32;
5
+ max_height: uint32;
6
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ import { bytes } from "../../chia/types/_python_types_";
2
+ export type Program = bytes;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });