chia-agent 13.2.0-beta.0 → 13.2.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/api/chia/consensus/block_record.d.ts +32 -32
- package/api/chia/consensus/block_record.js +2 -2
- package/api/chia/consensus/blockchain.d.ts +1 -1
- package/api/chia/consensus/blockchain.js +2 -2
- package/api/chia/consensus/cost_calculator.d.ts +7 -7
- package/api/chia/consensus/cost_calculator.js +2 -2
- package/api/chia/data_layer/data_layer_util.d.ts +49 -49
- package/api/chia/data_layer/data_layer_util.js +2 -2
- package/api/chia/data_layer/data_layer_wallet.d.ts +21 -21
- package/api/chia/data_layer/data_layer_wallet.js +2 -2
- package/api/chia/farmer/farmer.d.ts +26 -26
- package/api/chia/farmer/farmer.js +3 -3
- package/api/chia/farmer/farmer_api.js +2 -2
- package/api/chia/full_node/signage_point.d.ts +8 -8
- package/api/chia/full_node/signage_point.js +2 -2
- package/api/chia/harvester/harvester.d.ts +13 -13
- package/api/chia/harvester/harvester.js +2 -2
- package/api/chia/harvester/harvester_api.js +2 -2
- package/api/chia/plot-sync/receiver.d.ts +25 -25
- package/api/chia/plot-sync/receiver.js +2 -2
- package/api/chia/plotters/bladebit.d.ts +10 -10
- package/api/chia/plotters/bladebit.js +4 -4
- package/api/chia/plotters/chiapos.d.ts +7 -7
- package/api/chia/plotters/chiapos.js +4 -4
- package/api/chia/plotters/maxmax.d.ts +8 -8
- package/api/chia/plotters/maxmax.js +4 -4
- package/api/chia/plotting/util.d.ts +3 -3
- package/api/chia/plotting/util.js +2 -2
- package/api/chia/pool/store.d.ts +17 -17
- package/api/chia/pool/store.js +2 -2
- package/api/chia/pools/pool_config.d.ts +10 -10
- package/api/chia/pools/pool_config.js +2 -2
- package/api/chia/pools/pool_wallet_info.d.ts +22 -22
- package/api/chia/pools/pool_wallet_info.js +2 -2
- package/api/chia/protocols/farmer_protocol.d.ts +43 -43
- package/api/chia/protocols/farmer_protocol.js +2 -2
- package/api/chia/protocols/harvester_protocol.d.ts +12 -12
- package/api/chia/protocols/harvester_protocol.js +2 -2
- package/api/chia/protocols/pool_protocol.d.ts +93 -93
- package/api/chia/protocols/pool_protocol.js +21 -21
- package/api/chia/server/outbound_message.d.ts +1 -1
- package/api/chia/server/outbound_message.js +2 -2
- package/api/chia/timelord/types.d.ts +1 -1
- package/api/chia/timelord/types.js +2 -2
- package/api/chia/types/_python_types_.d.ts +22 -22
- package/api/chia/types/_python_types_.js +2 -2
- package/api/chia/types/blockchain_format/classgroup.d.ts +4 -4
- package/api/chia/types/blockchain_format/classgroup.js +2 -2
- package/api/chia/types/blockchain_format/coin.d.ts +11 -11
- package/api/chia/types/blockchain_format/coin.js +2 -2
- package/api/chia/types/blockchain_format/foliage.d.ts +35 -35
- package/api/chia/types/blockchain_format/foliage.js +2 -2
- package/api/chia/types/blockchain_format/pool_target.d.ts +6 -6
- package/api/chia/types/blockchain_format/pool_target.js +2 -2
- package/api/chia/types/blockchain_format/program.d.ts +1 -1
- package/api/chia/types/blockchain_format/program.js +2 -2
- package/api/chia/types/blockchain_format/proof_of_space.d.ts +10 -10
- package/api/chia/types/blockchain_format/proof_of_space.js +2 -2
- package/api/chia/types/blockchain_format/reward_chain_block.d.ts +30 -30
- package/api/chia/types/blockchain_format/reward_chain_block.js +2 -2
- package/api/chia/types/blockchain_format/serialized_program.d.ts +2 -2
- package/api/chia/types/blockchain_format/serialized_program.js +2 -2
- package/api/chia/types/blockchain_format/sized_bytes.d.ts +8 -8
- package/api/chia/types/blockchain_format/sized_bytes.js +2 -2
- package/api/chia/types/blockchain_format/slots.d.ts +24 -24
- package/api/chia/types/blockchain_format/slots.js +2 -2
- package/api/chia/types/blockchain_format/sub_epoch_summary.d.ts +9 -9
- package/api/chia/types/blockchain_format/sub_epoch_summary.js +2 -2
- package/api/chia/types/blockchain_format/vdf.d.ts +13 -13
- package/api/chia/types/blockchain_format/vdf.js +2 -2
- package/api/chia/types/clvm_cost.d.ts +2 -2
- package/api/chia/types/clvm_cost.js +2 -2
- package/api/chia/types/coin_record.d.ts +12 -12
- package/api/chia/types/coin_record.js +2 -2
- package/api/chia/types/coin_spend.d.ts +7 -7
- package/api/chia/types/coin_spend.js +2 -2
- package/api/chia/types/coin_spend_with_conditions.d.ts +6 -6
- package/api/chia/types/coin_spend_with_conditions.js +2 -2
- package/api/chia/types/condition_opcode.d.ts +2 -2
- package/api/chia/types/condition_opcode.js +2 -2
- package/api/chia/types/condition_with_args.d.ts +6 -6
- package/api/chia/types/condition_with_args.js +2 -2
- package/api/chia/types/end_of_slot_bundle.d.ts +8 -8
- package/api/chia/types/end_of_slot_bundle.js +2 -2
- package/api/chia/types/full_block.d.ts +20 -20
- package/api/chia/types/full_block.js +2 -2
- package/api/chia/types/mempool_item.d.ts +32 -32
- package/api/chia/types/mempool_item.js +2 -2
- package/api/chia/types/mojos.d.ts +2 -2
- package/api/chia/types/mojos.js +2 -2
- package/api/chia/types/signing_mode.d.ts +4 -4
- package/api/chia/types/signing_mode.js +2 -2
- package/api/chia/types/spend_bundle.d.ts +6 -6
- package/api/chia/types/spend_bundle.js +2 -2
- package/api/chia/types/spend_bundle_condition.d.ts +26 -26
- package/api/chia/types/spend_bundle_condition.js +2 -2
- package/api/chia/types/unfinished_header_block.d.ts +14 -14
- package/api/chia/types/unfinished_header_block.js +2 -2
- package/api/chia/util/keychain.d.ts +12 -12
- package/api/chia/util/keychain.js +2 -2
- package/api/chia/util/misc.d.ts +5 -5
- package/api/chia/util/misc.js +2 -2
- package/api/chia/wallet/cat_wallet/cat_constants.d.ts +6 -6
- package/api/chia/wallet/cat_wallet/cat_constants.js +2 -2
- package/api/chia/wallet/conditions.d.ts +12 -12
- package/api/chia/wallet/conditions.js +2 -2
- package/api/chia/wallet/lineage_proof.d.ts +7 -7
- package/api/chia/wallet/lineage_proof.js +2 -2
- package/api/chia/wallet/nft_wallet/nft_info.d.ts +28 -28
- package/api/chia/wallet/nft_wallet/nft_info.js +2 -2
- package/api/chia/wallet/puzzle_drivers.d.ts +6 -6
- package/api/chia/wallet/puzzle_drivers.js +2 -2
- package/api/chia/wallet/puzzles/clawback/metadata.d.ts +13 -13
- package/api/chia/wallet/puzzles/clawback/metadata.js +2 -2
- package/api/chia/wallet/trade_record.d.ts +31 -31
- package/api/chia/wallet/trade_record.js +3 -3
- package/api/chia/wallet/transaction_record.d.ts +37 -37
- package/api/chia/wallet/transaction_record.js +2 -2
- package/api/chia/wallet/util/quality_filter.d.ts +22 -22
- package/api/chia/wallet/util/quality_filter.js +2 -2
- package/api/chia/wallet/util/tx_config.d.ts +24 -24
- package/api/chia/wallet/util/tx_config.js +2 -2
- package/api/chia/wallet/util/wallet_types.d.ts +27 -27
- package/api/chia/wallet/util/wallet_types.js +27 -27
- package/api/chia/wallet/vc_wallet/vc_drivers.d.ts +16 -16
- package/api/chia/wallet/vc_wallet/vc_drivers.js +2 -2
- package/api/chia/wallet/vc_wallet/vc_store.d.ts +6 -6
- package/api/chia/wallet/vc_wallet/vc_store.js +2 -2
- package/api/chia/wallet/wallet_coin_record.d.ts +25 -25
- package/api/chia/wallet/wallet_coin_record.js +2 -2
- package/api/chia/wallet/wallet_coin_store.d.ts +19 -19
- package/api/chia/wallet/wallet_coin_store.js +2 -2
- package/api/chia/wallet/wallet_info.d.ts +10 -10
- package/api/chia/wallet/wallet_info.js +2 -2
- package/api/chia/wallet/wallet_node.d.ts +10 -10
- package/api/chia/wallet/wallet_node.js +2 -2
- package/api/rpc/common/index.d.ts +61 -61
- package/api/rpc/common/index.js +55 -55
- package/api/rpc/crawler/index.d.ts +35 -35
- package/api/rpc/crawler/index.js +27 -27
- package/api/rpc/data_layer/index.d.ts +357 -357
- package/api/rpc/data_layer/index.js +224 -224
- package/api/rpc/farmer/index.d.ts +183 -183
- package/api/rpc/farmer/index.js +104 -104
- package/api/rpc/full_node/index.d.ts +456 -456
- package/api/rpc/full_node/index.js +274 -274
- package/api/rpc/harvester/index.d.ts +87 -87
- package/api/rpc/harvester/index.js +69 -69
- package/api/rpc/index.d.ts +15 -15
- package/api/rpc/index.js +234 -234
- package/api/rpc/pool/index.d.ts +32 -32
- package/api/rpc/pool/index.js +48 -48
- package/api/rpc/wallet/index.d.ts +1788 -1788
- package/api/rpc/wallet/index.js +886 -886
- package/api/types.d.ts +28 -28
- package/api/types.js +5 -5
- package/api/ws/chia_plots_create/index.d.ts +17 -17
- package/api/ws/chia_plots_create/index.js +38 -38
- package/api/ws/crawler/index.d.ts +28 -28
- package/api/ws/crawler/index.js +40 -40
- package/api/ws/daemon/index.d.ts +608 -608
- package/api/ws/daemon/index.js +282 -282
- package/api/ws/farmer/index.d.ts +93 -93
- package/api/ws/farmer/index.js +159 -159
- package/api/ws/full_node/index.d.ts +79 -79
- package/api/ws/full_node/index.js +78 -78
- package/api/ws/harvester/index.d.ts +47 -47
- package/api/ws/harvester/index.js +91 -91
- package/api/ws/index.d.ts +17 -17
- package/api/ws/index.js +94 -94
- package/api/ws/timelord/index.d.ts +43 -43
- package/api/ws/timelord/index.js +66 -66
- package/api/ws/wallet/index.d.ts +69 -69
- package/api/ws/wallet/index.js +108 -108
- package/bin/cli.d.ts +2 -2
- package/bin/cli.js +81 -81
- package/config/index.d.ts +39 -39
- package/config/index.js +95 -95
- package/daemon/connection.d.ts +6 -6
- package/daemon/connection.js +49 -49
- package/daemon/index.d.ts +61 -61
- package/daemon/index.js +292 -292
- package/index.d.ts +4 -4
- package/index.js +16 -16
- package/logger.d.ts +22 -22
- package/logger.js +77 -77
- package/package.json +1 -1
- package/rpc/index.d.ts +59 -57
- package/rpc/index.js +262 -255
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,14 @@
|
|
|
4
4
|
### Added
|
|
5
5
|
- [FullNode RPC API](./src/api/rpc/full_node)
|
|
6
6
|
- [`get_block_spends_with_conditions`](./src/api/rpc/full_node/README.md#get_block_spends_with_conditionsagent-params)
|
|
7
|
+
### Changed
|
|
8
|
+
- [RPC Agent](./src/rpc)
|
|
9
|
+
- Allow to specify `host` / `port` on instantiating `RPCAgent` when `protocol` is not specified.
|
|
10
|
+
```typescript
|
|
11
|
+
const agent = new RPCAgent({host: 'example.com', port: 8444, service: 'full_node', configPath: '...'});
|
|
12
|
+
```
|
|
13
|
+
### Fixed
|
|
14
|
+
- Typo in SpendBundle: `cons_spends` renamed to `coin_spends`
|
|
7
15
|
|
|
8
16
|
## [13.1.0]
|
|
9
17
|
### Added
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { bytes32 } from "../types/blockchain_format/sized_bytes";
|
|
2
|
-
import { ClassgroupElement } from "../types/blockchain_format/classgroup";
|
|
3
|
-
import { Coin } from "../types/blockchain_format/coin";
|
|
4
|
-
import { SubEpochSummary } from "../types/blockchain_format/sub_epoch_summary";
|
|
5
|
-
import { bool, Optional, uint128, uint32, uint64, uint8 } from "../types/_python_types_";
|
|
6
|
-
export declare 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
|
-
};
|
|
1
|
+
import { bytes32 } from "../types/blockchain_format/sized_bytes";
|
|
2
|
+
import { ClassgroupElement } from "../types/blockchain_format/classgroup";
|
|
3
|
+
import { Coin } from "../types/blockchain_format/coin";
|
|
4
|
+
import { SubEpochSummary } from "../types/blockchain_format/sub_epoch_summary";
|
|
5
|
+
import { bool, Optional, uint128, uint32, uint64, uint8 } from "../types/_python_types_";
|
|
6
|
+
export declare 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
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare type ReceiveBlockResult = 1 | 2 | 3 | 4 | 5;
|
|
1
|
+
export declare type ReceiveBlockResult = 1 | 2 | 3 | 4 | 5;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { SpendBundleConditions } from "../types/spend_bundle_condition";
|
|
2
|
-
import { Optional, uint16, uint64 } from "../types/_python_types_";
|
|
3
|
-
export declare type NPCResult = {
|
|
4
|
-
error: Optional<uint16>;
|
|
5
|
-
conds: Optional<SpendBundleConditions>;
|
|
6
|
-
cost: uint64;
|
|
7
|
-
};
|
|
1
|
+
import { SpendBundleConditions } from "../types/spend_bundle_condition";
|
|
2
|
+
import { Optional, uint16, uint64 } from "../types/_python_types_";
|
|
3
|
+
export declare type NPCResult = {
|
|
4
|
+
error: Optional<uint16>;
|
|
5
|
+
conds: Optional<SpendBundleConditions>;
|
|
6
|
+
cost: uint64;
|
|
7
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
import { int, Optional, str } from "../types/_python_types_";
|
|
2
|
-
import { bytes32 } from "../types/blockchain_format/sized_bytes";
|
|
3
|
-
export declare type KeyValueMarshalled = {
|
|
4
|
-
key: str;
|
|
5
|
-
value: str;
|
|
6
|
-
};
|
|
7
|
-
export declare type OfferStoreMarshalled = {
|
|
8
|
-
store_id: str;
|
|
9
|
-
inclusions: KeyValueMarshalled[];
|
|
10
|
-
};
|
|
11
|
-
export declare type StoreProofsMarshalled = {
|
|
12
|
-
store_id: str;
|
|
13
|
-
proofs: ProofMarshalled[];
|
|
14
|
-
};
|
|
15
|
-
export declare type ProofMarshalled = {
|
|
16
|
-
key: str;
|
|
17
|
-
value: str;
|
|
18
|
-
node_hash: str;
|
|
19
|
-
layers: LayerMarshalled[];
|
|
20
|
-
};
|
|
21
|
-
export declare type LayerMarshalled = {
|
|
22
|
-
other_hash_side: "left" | "right";
|
|
23
|
-
other_hash: str;
|
|
24
|
-
combined_hash: str;
|
|
25
|
-
};
|
|
26
|
-
export declare type OfferMarshalled = {
|
|
27
|
-
trade_id: str;
|
|
28
|
-
offer: str;
|
|
29
|
-
taker: OfferStoreMarshalled[];
|
|
30
|
-
maker: StoreProofsMarshalled[];
|
|
31
|
-
};
|
|
32
|
-
export declare type SyncStatus = {
|
|
33
|
-
root_hash: bytes32;
|
|
34
|
-
generation: int;
|
|
35
|
-
target_root_hash: bytes32;
|
|
36
|
-
target_generation: int;
|
|
37
|
-
};
|
|
38
|
-
export declare type PluginStatusMarshalled = {
|
|
39
|
-
plugin_status: {
|
|
40
|
-
uploaders: Record<str, Record<str, any>>;
|
|
41
|
-
downloaders: Record<str, Record<str, any>>;
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
|
-
export declare type RootMarshalled = {
|
|
45
|
-
tree_id: str;
|
|
46
|
-
node_hash: Optional<str>;
|
|
47
|
-
generation: int;
|
|
48
|
-
status: int;
|
|
49
|
-
};
|
|
1
|
+
import { int, Optional, str } from "../types/_python_types_";
|
|
2
|
+
import { bytes32 } from "../types/blockchain_format/sized_bytes";
|
|
3
|
+
export declare type KeyValueMarshalled = {
|
|
4
|
+
key: str;
|
|
5
|
+
value: str;
|
|
6
|
+
};
|
|
7
|
+
export declare type OfferStoreMarshalled = {
|
|
8
|
+
store_id: str;
|
|
9
|
+
inclusions: KeyValueMarshalled[];
|
|
10
|
+
};
|
|
11
|
+
export declare type StoreProofsMarshalled = {
|
|
12
|
+
store_id: str;
|
|
13
|
+
proofs: ProofMarshalled[];
|
|
14
|
+
};
|
|
15
|
+
export declare type ProofMarshalled = {
|
|
16
|
+
key: str;
|
|
17
|
+
value: str;
|
|
18
|
+
node_hash: str;
|
|
19
|
+
layers: LayerMarshalled[];
|
|
20
|
+
};
|
|
21
|
+
export declare type LayerMarshalled = {
|
|
22
|
+
other_hash_side: "left" | "right";
|
|
23
|
+
other_hash: str;
|
|
24
|
+
combined_hash: str;
|
|
25
|
+
};
|
|
26
|
+
export declare type OfferMarshalled = {
|
|
27
|
+
trade_id: str;
|
|
28
|
+
offer: str;
|
|
29
|
+
taker: OfferStoreMarshalled[];
|
|
30
|
+
maker: StoreProofsMarshalled[];
|
|
31
|
+
};
|
|
32
|
+
export declare type SyncStatus = {
|
|
33
|
+
root_hash: bytes32;
|
|
34
|
+
generation: int;
|
|
35
|
+
target_root_hash: bytes32;
|
|
36
|
+
target_generation: int;
|
|
37
|
+
};
|
|
38
|
+
export declare type PluginStatusMarshalled = {
|
|
39
|
+
plugin_status: {
|
|
40
|
+
uploaders: Record<str, Record<str, any>>;
|
|
41
|
+
downloaders: Record<str, Record<str, any>>;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
export declare type RootMarshalled = {
|
|
45
|
+
tree_id: str;
|
|
46
|
+
node_hash: Optional<str>;
|
|
47
|
+
generation: int;
|
|
48
|
+
status: int;
|
|
49
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { bytes32 } from "../types/blockchain_format/sized_bytes";
|
|
2
|
-
import { bool, str, uint32, uint64 } from "../types/_python_types_";
|
|
3
|
-
import { LineageProof } from "../wallet/lineage_proof";
|
|
4
|
-
export declare type SingletonRecord = {
|
|
5
|
-
coin_id: bytes32;
|
|
6
|
-
launcher_id: bytes32;
|
|
7
|
-
root: bytes32;
|
|
8
|
-
inner_puzzle_hash: bytes32;
|
|
9
|
-
confirmed: bool;
|
|
10
|
-
confirmed_at_height: uint32;
|
|
11
|
-
lineage_proof: LineageProof;
|
|
12
|
-
generation: uint32;
|
|
13
|
-
timestamp: uint64;
|
|
14
|
-
};
|
|
15
|
-
export declare type Mirror = {
|
|
16
|
-
coin_id: str;
|
|
17
|
-
launcher_id: str;
|
|
18
|
-
amount: uint64;
|
|
19
|
-
urls: str[];
|
|
20
|
-
ours: bool;
|
|
21
|
-
};
|
|
1
|
+
import { bytes32 } from "../types/blockchain_format/sized_bytes";
|
|
2
|
+
import { bool, str, uint32, uint64 } from "../types/_python_types_";
|
|
3
|
+
import { LineageProof } from "../wallet/lineage_proof";
|
|
4
|
+
export declare type SingletonRecord = {
|
|
5
|
+
coin_id: bytes32;
|
|
6
|
+
launcher_id: bytes32;
|
|
7
|
+
root: bytes32;
|
|
8
|
+
inner_puzzle_hash: bytes32;
|
|
9
|
+
confirmed: bool;
|
|
10
|
+
confirmed_at_height: uint32;
|
|
11
|
+
lineage_proof: LineageProof;
|
|
12
|
+
generation: uint32;
|
|
13
|
+
timestamp: uint64;
|
|
14
|
+
};
|
|
15
|
+
export declare type Mirror = {
|
|
16
|
+
coin_id: str;
|
|
17
|
+
launcher_id: str;
|
|
18
|
+
amount: uint64;
|
|
19
|
+
urls: str[];
|
|
20
|
+
ours: bool;
|
|
21
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { float, int, str, uint32, uint64, uint8 } from "../types/_python_types_";
|
|
2
|
-
import { PoolWalletConfig } from "../pools/pool_config";
|
|
3
|
-
import { ErrorResponse } from "../protocols/pool_protocol";
|
|
4
|
-
export declare type PoolState = {
|
|
5
|
-
points_found_since_start: int;
|
|
6
|
-
points_found_24h: Array<[uint32, uint64]>;
|
|
7
|
-
points_acknowledged_since_start: int;
|
|
8
|
-
points_acknowledged_24h: Array<[uint32, uint64]>;
|
|
9
|
-
valid_partials_since_start: int;
|
|
10
|
-
valid_partials_24h: Array<[uint32, uint64]>;
|
|
11
|
-
invalid_partials_since_start: int;
|
|
12
|
-
invalid_partials_24h: Array<[uint32, uint64]>;
|
|
13
|
-
stale_partials_since_start: int;
|
|
14
|
-
stale_partials_24h: Array<[uint32, uint64]>;
|
|
15
|
-
missing_partials_since_start: int;
|
|
16
|
-
missing_partials_24h: Array<[uint32, uint64]>;
|
|
17
|
-
next_farmer_update: float;
|
|
18
|
-
next_pool_info_update: float;
|
|
19
|
-
current_points: uint64;
|
|
20
|
-
current_difficulty: uint64;
|
|
21
|
-
pool_errors_24h: Array<[uint32, ErrorResponse]>;
|
|
22
|
-
authentication_token_timeout: uint8;
|
|
23
|
-
pool_config: PoolWalletConfig;
|
|
24
|
-
p2_singleton_puzzle_hash: str;
|
|
25
|
-
plot_count: int;
|
|
26
|
-
};
|
|
1
|
+
import { float, int, str, uint32, uint64, uint8 } from "../types/_python_types_";
|
|
2
|
+
import { PoolWalletConfig } from "../pools/pool_config";
|
|
3
|
+
import { ErrorResponse } from "../protocols/pool_protocol";
|
|
4
|
+
export declare type PoolState = {
|
|
5
|
+
points_found_since_start: int;
|
|
6
|
+
points_found_24h: Array<[uint32, uint64]>;
|
|
7
|
+
points_acknowledged_since_start: int;
|
|
8
|
+
points_acknowledged_24h: Array<[uint32, uint64]>;
|
|
9
|
+
valid_partials_since_start: int;
|
|
10
|
+
valid_partials_24h: Array<[uint32, uint64]>;
|
|
11
|
+
invalid_partials_since_start: int;
|
|
12
|
+
invalid_partials_24h: Array<[uint32, uint64]>;
|
|
13
|
+
stale_partials_since_start: int;
|
|
14
|
+
stale_partials_24h: Array<[uint32, uint64]>;
|
|
15
|
+
missing_partials_since_start: int;
|
|
16
|
+
missing_partials_24h: Array<[uint32, uint64]>;
|
|
17
|
+
next_farmer_update: float;
|
|
18
|
+
next_pool_info_update: float;
|
|
19
|
+
current_points: uint64;
|
|
20
|
+
current_difficulty: uint64;
|
|
21
|
+
pool_errors_24h: Array<[uint32, ErrorResponse]>;
|
|
22
|
+
authentication_token_timeout: uint8;
|
|
23
|
+
pool_config: PoolWalletConfig;
|
|
24
|
+
p2_singleton_puzzle_hash: str;
|
|
25
|
+
plot_count: int;
|
|
26
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
// depends: rpc_response in get_plots, by: get_plots of Farmer API
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
// depends: rpc_response in get_plots, by: get_plots of Farmer API
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// dependency: pool_state_dict, by: get_pool_state of Farmer RPC API
|
|
1
|
+
"use strict";
|
|
2
|
+
// dependency: pool_state_dict, by: get_pool_state of Farmer RPC API
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { VDFInfo, VDFProof } from "../types/blockchain_format/vdf";
|
|
2
|
-
import { Optional } from "../types/_python_types_";
|
|
3
|
-
export declare type SignagePoint = {
|
|
4
|
-
cc_vdf: Optional<VDFInfo>;
|
|
5
|
-
cc_proof: Optional<VDFProof>;
|
|
6
|
-
rc_vdf: Optional<VDFInfo>;
|
|
7
|
-
rc_proof: Optional<VDFProof>;
|
|
8
|
-
};
|
|
1
|
+
import { VDFInfo, VDFProof } from "../types/blockchain_format/vdf";
|
|
2
|
+
import { Optional } from "../types/_python_types_";
|
|
3
|
+
export declare type SignagePoint = {
|
|
4
|
+
cc_vdf: Optional<VDFInfo>;
|
|
5
|
+
cc_proof: Optional<VDFProof>;
|
|
6
|
+
rc_vdf: Optional<VDFInfo>;
|
|
7
|
+
rc_proof: Optional<VDFProof>;
|
|
8
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { bytes, G1Element, int, Optional, str } from "../types/_python_types_";
|
|
2
|
-
import { bytes32 } from "../types/blockchain_format/sized_bytes";
|
|
3
|
-
export declare type Plot = {
|
|
4
|
-
filename: str;
|
|
5
|
-
size: int;
|
|
6
|
-
plot_id: bytes;
|
|
7
|
-
pool_public_key: Optional<G1Element>;
|
|
8
|
-
pool_contract_puzzle_hash: Optional<bytes32>;
|
|
9
|
-
plot_public_key: G1Element;
|
|
10
|
-
file_size: int;
|
|
11
|
-
time_modified: int;
|
|
12
|
-
compression_level: int;
|
|
13
|
-
};
|
|
1
|
+
import { bytes, G1Element, int, Optional, str } from "../types/_python_types_";
|
|
2
|
+
import { bytes32 } from "../types/blockchain_format/sized_bytes";
|
|
3
|
+
export declare type Plot = {
|
|
4
|
+
filename: str;
|
|
5
|
+
size: int;
|
|
6
|
+
plot_id: bytes;
|
|
7
|
+
pool_public_key: Optional<G1Element>;
|
|
8
|
+
pool_contract_puzzle_hash: Optional<bytes32>;
|
|
9
|
+
plot_public_key: G1Element;
|
|
10
|
+
file_size: int;
|
|
11
|
+
time_modified: int;
|
|
12
|
+
compression_level: int;
|
|
13
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// dependency: request_plots, by: get_plots of Farmer API
|
|
1
|
+
"use strict";
|
|
2
|
+
// dependency: request_plots, by: get_plots of Farmer API
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { bytes32 } from "../types/blockchain_format/sized_bytes";
|
|
2
|
-
import { bool, float, int, None, Optional, str, uint32 } from "../types/_python_types_";
|
|
3
|
-
import { Plot } from "../protocols/harvester_protocol";
|
|
4
|
-
import { HarvestingMode } from "../plotting/util";
|
|
5
|
-
export declare type MayBeSummary<S, O> = S extends true ? int : O;
|
|
6
|
-
export declare type Receiver<SUMMARY extends boolean = false> = {
|
|
7
|
-
connection: {
|
|
8
|
-
node_id: bytes32;
|
|
9
|
-
host: str;
|
|
10
|
-
port: int;
|
|
11
|
-
};
|
|
12
|
-
plots: MayBeSummary<SUMMARY, Plot[]>;
|
|
13
|
-
failed_to_open_filenames: MayBeSummary<SUMMARY, str[]>;
|
|
14
|
-
no_key_filenames: MayBeSummary<SUMMARY, str[]>;
|
|
15
|
-
duplicates: MayBeSummary<SUMMARY, str[]>;
|
|
16
|
-
total_plot_size: int;
|
|
17
|
-
total_effective_plot_size: int;
|
|
18
|
-
syncing: {
|
|
19
|
-
initial: bool;
|
|
20
|
-
plot_files_processed: uint32;
|
|
21
|
-
plot_files_total: uint32;
|
|
22
|
-
} | None;
|
|
23
|
-
last_sync_time: Optional<float>;
|
|
24
|
-
harvesting_mode: Optional<HarvestingMode>;
|
|
25
|
-
};
|
|
1
|
+
import { bytes32 } from "../types/blockchain_format/sized_bytes";
|
|
2
|
+
import { bool, float, int, None, Optional, str, uint32 } from "../types/_python_types_";
|
|
3
|
+
import { Plot } from "../protocols/harvester_protocol";
|
|
4
|
+
import { HarvestingMode } from "../plotting/util";
|
|
5
|
+
export declare type MayBeSummary<S, O> = S extends true ? int : O;
|
|
6
|
+
export declare type Receiver<SUMMARY extends boolean = false> = {
|
|
7
|
+
connection: {
|
|
8
|
+
node_id: bytes32;
|
|
9
|
+
host: str;
|
|
10
|
+
port: int;
|
|
11
|
+
};
|
|
12
|
+
plots: MayBeSummary<SUMMARY, Plot[]>;
|
|
13
|
+
failed_to_open_filenames: MayBeSummary<SUMMARY, str[]>;
|
|
14
|
+
no_key_filenames: MayBeSummary<SUMMARY, str[]>;
|
|
15
|
+
duplicates: MayBeSummary<SUMMARY, str[]>;
|
|
16
|
+
total_plot_size: int;
|
|
17
|
+
total_effective_plot_size: int;
|
|
18
|
+
syncing: {
|
|
19
|
+
initial: bool;
|
|
20
|
+
plot_files_processed: uint32;
|
|
21
|
+
plot_files_total: uint32;
|
|
22
|
+
} | None;
|
|
23
|
+
last_sync_time: Optional<float>;
|
|
24
|
+
harvesting_mode: Optional<HarvestingMode>;
|
|
25
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { bool, str } from "../types/_python_types_";
|
|
2
|
-
export declare const display_name = "BladeBit Plotter";
|
|
3
|
-
export declare type bladebit_install_info = {
|
|
4
|
-
display_name: typeof display_name;
|
|
5
|
-
version?: str;
|
|
6
|
-
installed: bool;
|
|
7
|
-
can_install?: bool;
|
|
8
|
-
bladebit_memory_warning?: str;
|
|
9
|
-
cuda_support: bool;
|
|
10
|
-
};
|
|
1
|
+
import { bool, str } from "../types/_python_types_";
|
|
2
|
+
export declare const display_name = "BladeBit Plotter";
|
|
3
|
+
export declare type bladebit_install_info = {
|
|
4
|
+
display_name: typeof display_name;
|
|
5
|
+
version?: str;
|
|
6
|
+
installed: bool;
|
|
7
|
+
can_install?: bool;
|
|
8
|
+
bladebit_memory_warning?: str;
|
|
9
|
+
cuda_support: bool;
|
|
10
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.display_name = void 0;
|
|
4
|
-
exports.display_name = "BladeBit Plotter";
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.display_name = void 0;
|
|
4
|
+
exports.display_name = "BladeBit Plotter";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { bool, str } from "../types/_python_types_";
|
|
2
|
-
export declare const display_name = "Chia Proof of Space";
|
|
3
|
-
export declare type chiapos_install_info = {
|
|
4
|
-
display_name: typeof display_name;
|
|
5
|
-
version: str;
|
|
6
|
-
installed: bool;
|
|
7
|
-
};
|
|
1
|
+
import { bool, str } from "../types/_python_types_";
|
|
2
|
+
export declare const display_name = "Chia Proof of Space";
|
|
3
|
+
export declare type chiapos_install_info = {
|
|
4
|
+
display_name: typeof display_name;
|
|
5
|
+
version: str;
|
|
6
|
+
installed: bool;
|
|
7
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.display_name = void 0;
|
|
4
|
-
exports.display_name = "Chia Proof of Space";
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.display_name = void 0;
|
|
4
|
+
exports.display_name = "Chia Proof of Space";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { bool, str } from "../types/_python_types_";
|
|
2
|
-
export declare const display_name = "madMAx Plotter";
|
|
3
|
-
export declare type madmax_install_info = {
|
|
4
|
-
display_name: typeof display_name;
|
|
5
|
-
version?: str;
|
|
6
|
-
installed: bool;
|
|
7
|
-
can_install?: bool;
|
|
8
|
-
};
|
|
1
|
+
import { bool, str } from "../types/_python_types_";
|
|
2
|
+
export declare const display_name = "madMAx Plotter";
|
|
3
|
+
export declare type madmax_install_info = {
|
|
4
|
+
display_name: typeof display_name;
|
|
5
|
+
version?: str;
|
|
6
|
+
installed: bool;
|
|
7
|
+
can_install?: bool;
|
|
8
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.display_name = void 0;
|
|
4
|
-
exports.display_name = "madMAx Plotter";
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.display_name = void 0;
|
|
4
|
+
exports.display_name = "madMAx Plotter";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare type CPU_HARVESTING = 1;
|
|
2
|
-
export declare type GPU_HARVESTING = 2;
|
|
3
|
-
export declare type HarvestingMode = CPU_HARVESTING | GPU_HARVESTING;
|
|
1
|
+
export declare type CPU_HARVESTING = 1;
|
|
2
|
+
export declare type GPU_HARVESTING = 2;
|
|
3
|
+
export declare type HarvestingMode = CPU_HARVESTING | GPU_HARVESTING;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/api/chia/pool/store.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { bytes32 } from "../types/blockchain_format/sized_bytes";
|
|
2
|
-
import { bool, G1Element, str, uint64 } from "../types/_python_types_";
|
|
3
|
-
import { CoinSpend } from "../types/coin_spend";
|
|
4
|
-
import { PoolState } from "../pools/pool_wallet_info";
|
|
5
|
-
export declare type FarmerRecord = {
|
|
6
|
-
launcher_id: bytes32;
|
|
7
|
-
p2_singleton_puzzle_hash: bytes32;
|
|
8
|
-
delay_time: uint64;
|
|
9
|
-
delay_puzzle_hash: bytes32;
|
|
10
|
-
authentication_public_key: G1Element;
|
|
11
|
-
singleton_tip: CoinSpend;
|
|
12
|
-
singleton_tip_state: PoolState;
|
|
13
|
-
points: uint64;
|
|
14
|
-
difficulty: uint64;
|
|
15
|
-
payout_instructions: str;
|
|
16
|
-
is_pool_member: bool;
|
|
17
|
-
};
|
|
1
|
+
import { bytes32 } from "../types/blockchain_format/sized_bytes";
|
|
2
|
+
import { bool, G1Element, str, uint64 } from "../types/_python_types_";
|
|
3
|
+
import { CoinSpend } from "../types/coin_spend";
|
|
4
|
+
import { PoolState } from "../pools/pool_wallet_info";
|
|
5
|
+
export declare type FarmerRecord = {
|
|
6
|
+
launcher_id: bytes32;
|
|
7
|
+
p2_singleton_puzzle_hash: bytes32;
|
|
8
|
+
delay_time: uint64;
|
|
9
|
+
delay_puzzle_hash: bytes32;
|
|
10
|
+
authentication_public_key: G1Element;
|
|
11
|
+
singleton_tip: CoinSpend;
|
|
12
|
+
singleton_tip_state: PoolState;
|
|
13
|
+
points: uint64;
|
|
14
|
+
difficulty: uint64;
|
|
15
|
+
payout_instructions: str;
|
|
16
|
+
is_pool_member: bool;
|
|
17
|
+
};
|
package/api/chia/pool/store.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { G1Element, str } from "../types/_python_types_";
|
|
2
|
-
import { bytes32 } from "../types/blockchain_format/sized_bytes";
|
|
3
|
-
export declare type PoolWalletConfig = {
|
|
4
|
-
launcher_id: bytes32;
|
|
5
|
-
pool_url: str;
|
|
6
|
-
payout_instructions: str;
|
|
7
|
-
target_puzzle_hash: bytes32;
|
|
8
|
-
p2_singleton_puzzle_hash: bytes32;
|
|
9
|
-
owner_public_key: G1Element;
|
|
10
|
-
};
|
|
1
|
+
import { G1Element, str } from "../types/_python_types_";
|
|
2
|
+
import { bytes32 } from "../types/blockchain_format/sized_bytes";
|
|
3
|
+
export declare type PoolWalletConfig = {
|
|
4
|
+
launcher_id: bytes32;
|
|
5
|
+
pool_url: str;
|
|
6
|
+
payout_instructions: str;
|
|
7
|
+
target_puzzle_hash: bytes32;
|
|
8
|
+
p2_singleton_puzzle_hash: bytes32;
|
|
9
|
+
owner_public_key: G1Element;
|
|
10
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|