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.
- package/CHANGELOG.md +252 -3
- package/LICENSE +1 -1
- package/README.md +7 -5
- package/agent/index.d.ts +1 -1
- package/api/chia/consensus/block_record.d.ts +1 -32
- package/api/chia/consensus/blockchain.d.ts +2 -1
- package/api/chia/consensus/cost_calculator.d.ts +1 -1
- package/api/chia/data_layer/data_layer_util.d.ts +16 -16
- package/api/chia/data_layer/data_layer_wallet.d.ts +4 -3
- package/api/chia/farmer/farmer.d.ts +1 -1
- package/api/chia/full_node/signage_point.d.ts +1 -1
- package/api/chia/harvester/harvester.d.ts +1 -1
- package/api/chia/plot-sync/receiver.d.ts +2 -2
- package/api/chia/plotters/bladebit.d.ts +1 -1
- package/api/chia/plotters/chiapos.d.ts +1 -1
- package/api/chia/plotters/maxmax.d.ts +1 -1
- package/api/chia/plotting/util.d.ts +3 -3
- package/api/chia/pools/pool_config.d.ts +1 -1
- package/api/chia/pools/pool_wallet_info.d.ts +2 -4
- package/api/chia/protocols/farmer_protocol.d.ts +8 -8
- package/api/chia/protocols/harvester_protocol.d.ts +1 -1
- package/api/chia/protocols/pool_protocol.d.ts +13 -13
- package/api/chia/rpc/util.d.ts +14 -0
- package/api/chia/rpc/wallet_request_types.d.ts +46 -3
- package/api/chia/server/outbound_message.d.ts +1 -1
- package/api/chia/timelord/types.d.ts +1 -1
- package/api/chia/types/_python_types_.d.ts +22 -22
- package/api/chia/types/blockchain_format/classgroup.d.ts +1 -4
- package/api/chia/types/blockchain_format/coin.d.ts +1 -11
- package/api/chia/types/blockchain_format/foliage.d.ts +1 -35
- package/api/chia/types/blockchain_format/pool_target.d.ts +1 -6
- package/api/chia/types/blockchain_format/program.d.ts +1 -1
- package/api/chia/types/blockchain_format/proof_of_space.d.ts +1 -10
- package/api/chia/types/blockchain_format/reward_chain_block.d.ts +1 -30
- package/api/chia/types/blockchain_format/sized_bytes.d.ts +7 -7
- package/api/chia/types/blockchain_format/slots.d.ts +1 -24
- package/api/chia/types/blockchain_format/sub_epoch_summary.d.ts +1 -9
- package/api/chia/types/blockchain_format/vdf.d.ts +1 -13
- package/api/chia/types/clvm_cost.d.ts +1 -1
- package/api/chia/types/coin_record.d.ts +2 -2
- package/api/chia/types/coin_spend.d.ts +3 -8
- package/api/chia/types/condition_opcode.d.ts +1 -1
- package/api/chia/types/condition_with_args.d.ts +1 -1
- package/api/chia/types/end_of_slot_bundle.d.ts +1 -8
- package/api/chia/types/full_block.d.ts +1 -20
- package/api/chia/types/mempool_item.d.ts +3 -3
- package/api/chia/types/mojos.d.ts +1 -1
- package/api/chia/types/signing_mode.d.ts +6 -6
- package/api/chia/types/spend_bundle.d.ts +1 -1
- package/api/chia/types/spend_bundle_condition.d.ts +1 -26
- package/api/chia/types/unfinished_block.d.ts +1 -0
- package/api/chia/types/unfinished_header_block.d.ts +1 -1
- package/api/chia/util/keychain.d.ts +2 -2
- package/api/chia/util/misc.d.ts +1 -1
- package/api/chia/wallet/cat_wallet/cat_constants.d.ts +1 -1
- package/api/chia/wallet/conditions.d.ts +2 -2
- package/api/chia/wallet/dao_wallet/dao_info.d.ts +5 -5
- package/api/chia/wallet/dao_wallet/dao_wallet.d.ts +3 -3
- package/api/chia/wallet/lineage_proof.d.ts +1 -1
- package/api/chia/wallet/nft_wallet/nft_info.d.ts +1 -1
- package/api/chia/wallet/notification_store.d.ts +1 -1
- package/api/chia/wallet/puzzle_drivers.d.ts +2 -2
- package/api/chia/wallet/puzzles/clawback/metadata.d.ts +2 -2
- package/api/chia/wallet/signer_protocol.d.ts +54 -0
- package/api/chia/wallet/signer_protocol.js +2 -0
- package/api/chia/wallet/trade_record.d.ts +3 -3
- package/api/chia/wallet/transaction_record.d.ts +4 -4
- package/api/chia/wallet/util/quality_filter.d.ts +5 -5
- package/api/chia/wallet/util/tx_config.d.ts +4 -11
- package/api/chia/wallet/util/wallet_types.d.ts +1 -1
- package/api/chia/wallet/vc_wallet/vc_drivers.d.ts +2 -2
- package/api/chia/wallet/vc_wallet/vc_store.d.ts +1 -1
- package/api/chia/wallet/wallet_coin_record.d.ts +2 -2
- package/api/chia/wallet/wallet_coin_store.d.ts +1 -1
- package/api/chia/wallet/wallet_info.d.ts +2 -2
- package/api/chia/wallet/wallet_node.d.ts +1 -1
- package/api/chia_rs/chia-bls/public_key.d.ts +2 -0
- package/api/chia_rs/chia-bls/public_key.js +2 -0
- package/api/chia_rs/chia-consensus/gen/owned_conditions.d.ts +36 -0
- package/api/chia_rs/chia-consensus/gen/owned_conditions.js +2 -0
- package/api/chia_rs/chia-protocol/block_record.d.ts +32 -0
- package/api/chia_rs/chia-protocol/block_record.js +2 -0
- package/api/chia_rs/chia-protocol/classgroup.d.ts +4 -0
- package/api/chia_rs/chia-protocol/classgroup.js +2 -0
- package/api/chia_rs/chia-protocol/coin.d.ts +7 -0
- package/api/chia_rs/chia-protocol/coin.js +2 -0
- package/api/chia_rs/chia-protocol/coin_spend.d.ts +7 -0
- package/api/chia_rs/chia-protocol/coin_spend.js +2 -0
- package/api/chia_rs/chia-protocol/end_of_sub_slot_bundle.d.ts +8 -0
- package/api/chia_rs/chia-protocol/end_of_sub_slot_bundle.js +2 -0
- package/api/chia_rs/chia-protocol/foliage.d.ts +35 -0
- package/api/chia_rs/chia-protocol/foliage.js +2 -0
- package/api/chia_rs/chia-protocol/fullblock.d.ts +20 -0
- package/api/chia_rs/chia-protocol/fullblock.js +2 -0
- package/api/chia_rs/chia-protocol/pool_target.d.ts +6 -0
- package/api/chia_rs/chia-protocol/pool_target.js +2 -0
- package/api/chia_rs/chia-protocol/program.d.ts +2 -0
- package/api/chia_rs/chia-protocol/program.js +2 -0
- package/api/chia_rs/chia-protocol/proof_of_space.d.ts +10 -0
- package/api/chia_rs/chia-protocol/proof_of_space.js +2 -0
- package/api/chia_rs/chia-protocol/reward_chain_block.d.ts +30 -0
- package/api/chia_rs/chia-protocol/reward_chain_block.js +2 -0
- package/api/chia_rs/chia-protocol/slots.d.ts +24 -0
- package/api/chia_rs/chia-protocol/slots.js +2 -0
- package/api/chia_rs/chia-protocol/sub_epoch_summary.d.ts +9 -0
- package/api/chia_rs/chia-protocol/sub_epoch_summary.js +2 -0
- package/api/chia_rs/chia-protocol/unfinished_block.d.ts +17 -0
- package/api/chia_rs/chia-protocol/unfinished_block.js +2 -0
- package/api/chia_rs/chia-protocol/vdf.d.ts +13 -0
- package/api/chia_rs/chia-protocol/vdf.js +2 -0
- package/api/{chia/pool/store.d.ts → pool-reference/pool/record.d.ts} +5 -5
- package/api/pool-reference/pool/record.js +2 -0
- package/api/rpc/common/index.d.ts +34 -24
- package/api/rpc/common/index.js +8 -1
- package/api/rpc/crawler/index.d.ts +10 -10
- package/api/rpc/data_layer/index.d.ts +208 -134
- package/api/rpc/data_layer/index.js +23 -2
- package/api/rpc/farmer/index.d.ts +52 -55
- package/api/rpc/full_node/index.d.ts +140 -154
- package/api/rpc/full_node/index.js +2 -9
- package/api/rpc/harvester/index.d.ts +31 -34
- package/api/rpc/index.d.ts +7 -7
- package/api/rpc/index.js +13 -9
- package/api/rpc/pool/index.d.ts +13 -13
- package/api/rpc/wallet/index.d.ts +747 -641
- package/api/rpc/wallet/index.js +27 -20
- package/api/types.d.ts +4 -3
- package/api/types.js +2 -1
- package/api/ws/chia_plots_create/index.d.ts +7 -7
- package/api/ws/crawler/index.d.ts +9 -9
- package/api/ws/daemon/index.d.ts +198 -166
- package/api/ws/daemon/index.js +17 -3
- package/api/ws/farmer/index.d.ts +34 -34
- package/api/ws/full_node/index.d.ts +28 -17
- package/api/ws/full_node/index.js +14 -1
- package/api/ws/harvester/index.d.ts +19 -19
- package/api/ws/index.d.ts +3 -3
- package/api/ws/index.js +5 -2
- package/api/ws/timelord/index.d.ts +14 -14
- package/api/ws/wallet/index.d.ts +22 -22
- package/bin/cli.js +3 -3
- package/config/index.d.ts +1 -1
- package/config/index.js +3 -3
- package/daemon/connection.js +9 -10
- package/daemon/index.d.ts +6 -6
- package/daemon/index.js +21 -21
- package/index.js +5 -1
- package/logger.d.ts +3 -3
- package/package.json +3 -3
- package/rpc/index.d.ts +6 -4
- package/rpc/index.js +29 -29
- package/api/chia/types/blockchain_format/serialized_program.d.ts +0 -2
- /package/api/chia/{pool/store.js → rpc/util.js} +0 -0
- /package/api/chia/types/{blockchain_format/serialized_program.js → unfinished_block.js} +0 -0
|
@@ -14,11 +14,10 @@ import { CLVMCost } from "../../chia/types/clvm_cost";
|
|
|
14
14
|
import { GetMessageType, ResType } from "../../types";
|
|
15
15
|
import { TDaemon } from "../../../daemon/index";
|
|
16
16
|
export declare const chia_full_node_service = "chia_full_node";
|
|
17
|
-
export
|
|
17
|
+
export type chia_full_node_service = typeof chia_full_node_service;
|
|
18
18
|
export declare const get_blockchain_state_command = "get_blockchain_state";
|
|
19
|
-
export
|
|
20
|
-
export
|
|
21
|
-
export declare type TGetBlockchainStateResponse = {
|
|
19
|
+
export type get_blockchain_state_command = typeof get_blockchain_state_command;
|
|
20
|
+
export type TGetBlockchainStateResponse = {
|
|
22
21
|
blockchain_state: {
|
|
23
22
|
peak: Optional<BlockRecord>;
|
|
24
23
|
genesis_challenge_initialized: bool;
|
|
@@ -43,157 +42,146 @@ export declare type TGetBlockchainStateResponse = {
|
|
|
43
42
|
node_id: str;
|
|
44
43
|
};
|
|
45
44
|
};
|
|
46
|
-
export
|
|
45
|
+
export type WsGetBlockchainStateMessage = GetMessageType<chia_full_node_service, get_blockchain_state_command, TGetBlockchainStateResponse>;
|
|
47
46
|
export declare function get_blockchain_state<T extends TRPCAgent | TDaemon>(agent: T): Promise<ResType<T, TGetBlockchainStateResponse, WsGetBlockchainStateMessage>>;
|
|
48
47
|
export declare const get_block_command = "get_block";
|
|
49
|
-
export
|
|
50
|
-
export
|
|
48
|
+
export type get_block_command = typeof get_block_command;
|
|
49
|
+
export type TGetBlockRequest = {
|
|
51
50
|
header_hash: str;
|
|
52
51
|
};
|
|
53
|
-
export
|
|
52
|
+
export type TGetBlockResponse = {
|
|
54
53
|
block: FullBlock;
|
|
55
54
|
};
|
|
56
|
-
export
|
|
55
|
+
export type WsGetBlockMessage = GetMessageType<chia_full_node_service, get_block_command, TGetBlockResponse>;
|
|
57
56
|
export declare function get_block<T extends TRPCAgent | TDaemon>(agent: T, data: TGetBlockRequest): Promise<ResType<T, TGetBlockResponse, WsGetBlockMessage>>;
|
|
58
57
|
export declare const get_blocks_command = "get_blocks";
|
|
59
|
-
export
|
|
60
|
-
export
|
|
58
|
+
export type get_blocks_command = typeof get_blocks_command;
|
|
59
|
+
export type TGetBlocksRequest = {
|
|
61
60
|
start: int;
|
|
62
61
|
end: int;
|
|
63
62
|
exclude_header_hash?: bool;
|
|
64
63
|
exclude_reorged?: bool;
|
|
65
64
|
};
|
|
66
|
-
export
|
|
65
|
+
export type TGetBlocksResponse = {
|
|
67
66
|
blocks: FullBlock[] | Array<FullBlock & {
|
|
68
67
|
header_hash: str;
|
|
69
68
|
}>;
|
|
70
69
|
};
|
|
71
|
-
export
|
|
70
|
+
export type WsGetBlocksMessage = GetMessageType<chia_full_node_service, get_blocks_command, TGetBlocksResponse>;
|
|
72
71
|
export declare function get_blocks<T extends TRPCAgent | TDaemon>(agent: T, data: TGetBlocksRequest): Promise<ResType<T, TGetBlocksResponse, WsGetBlocksMessage>>;
|
|
73
72
|
export declare const get_block_count_metrics_command = "get_block_count_metrics";
|
|
74
|
-
export
|
|
75
|
-
export
|
|
73
|
+
export type get_block_count_metrics_command = typeof get_block_count_metrics_command;
|
|
74
|
+
export type TGetBlockCountMetricsResponse = {
|
|
76
75
|
metrics: {
|
|
77
76
|
"compact_blocks": int;
|
|
78
77
|
"uncompact_blocks": int;
|
|
79
78
|
"hint_count": int;
|
|
80
79
|
};
|
|
81
80
|
};
|
|
82
|
-
export
|
|
81
|
+
export type WsGetBlockCountMetricsMessage = GetMessageType<chia_full_node_service, get_block_count_metrics_command, TGetBlockCountMetricsResponse>;
|
|
83
82
|
export declare function get_block_count_metrics<T extends TRPCAgent | TDaemon>(agent: T): Promise<ResType<T, TGetBlockCountMetricsResponse, WsGetBlockCountMetricsMessage>>;
|
|
84
83
|
export declare const get_block_record_by_height_command = "get_block_record_by_height";
|
|
85
|
-
export
|
|
86
|
-
export
|
|
84
|
+
export type get_block_record_by_height_command = typeof get_block_record_by_height_command;
|
|
85
|
+
export type TGetBlockRecordByHeightRequest = {
|
|
87
86
|
height: int;
|
|
88
87
|
};
|
|
89
|
-
export
|
|
88
|
+
export type TGetBlockRecordByHeightResponse = {
|
|
90
89
|
block_record: Optional<BlockRecord>;
|
|
91
90
|
};
|
|
92
|
-
export
|
|
91
|
+
export type WsGetBlockRecordByHeightMessage = GetMessageType<chia_full_node_service, get_block_record_by_height_command, TGetBlockRecordByHeightResponse>;
|
|
93
92
|
export declare function get_block_record_by_height<T extends TRPCAgent | TDaemon>(agent: T, data: TGetBlockRecordByHeightRequest): Promise<ResType<T, TGetBlockRecordByHeightResponse, WsGetBlockRecordByHeightMessage>>;
|
|
94
93
|
export declare const get_block_record_command = "get_block_record";
|
|
95
|
-
export
|
|
96
|
-
export
|
|
94
|
+
export type get_block_record_command = typeof get_block_record_command;
|
|
95
|
+
export type TGetBlockRecordRequest = {
|
|
97
96
|
header_hash: str;
|
|
98
97
|
};
|
|
99
|
-
export
|
|
98
|
+
export type TGetBlockRecordResponse = {
|
|
100
99
|
block_record: BlockRecord;
|
|
101
100
|
};
|
|
102
|
-
export
|
|
101
|
+
export type WsGetBlockRecordMessage = GetMessageType<chia_full_node_service, get_block_record_command, TGetBlockRecordResponse>;
|
|
103
102
|
export declare function get_block_record<T extends TRPCAgent | TDaemon>(agent: T, data: TGetBlockRecordRequest): Promise<ResType<T, TGetBlockRecordResponse, WsGetBlockRecordMessage>>;
|
|
104
103
|
export declare const get_block_records_command = "get_block_records";
|
|
105
|
-
export
|
|
106
|
-
export
|
|
104
|
+
export type get_block_records_command = typeof get_block_records_command;
|
|
105
|
+
export type TGetBlockRecordsRequest = {
|
|
107
106
|
start: int;
|
|
108
107
|
end: int;
|
|
109
108
|
};
|
|
110
|
-
export
|
|
109
|
+
export type TGetBlockRecordsResponse = {
|
|
111
110
|
block_records: BlockRecord[];
|
|
112
111
|
};
|
|
113
|
-
export
|
|
112
|
+
export type WsGetBlockRecordsMessage = GetMessageType<chia_full_node_service, get_block_records_command, TGetBlockRecordsResponse>;
|
|
114
113
|
export declare function get_block_records<T extends TRPCAgent | TDaemon>(agent: T, data: TGetBlockRecordsRequest): Promise<ResType<T, TGetBlockRecordsResponse, WsGetBlockRecordsMessage>>;
|
|
115
114
|
export declare const get_block_spends_command = "get_block_spends";
|
|
116
|
-
export
|
|
117
|
-
export
|
|
115
|
+
export type get_block_spends_command = typeof get_block_spends_command;
|
|
116
|
+
export type TGetBlockSpendsRequest = {
|
|
118
117
|
header_hash: str;
|
|
119
118
|
};
|
|
120
|
-
export
|
|
119
|
+
export type TGetBlockSpendsResponse = {
|
|
121
120
|
block_spends: CoinSpend[];
|
|
122
121
|
};
|
|
123
|
-
export
|
|
122
|
+
export type WsGetBlockSpendsMessage = GetMessageType<chia_full_node_service, get_block_spends_command, TGetBlockSpendsResponse>;
|
|
124
123
|
export declare function get_block_spends<T extends TRPCAgent | TDaemon>(agent: T, data: TGetBlockSpendsRequest): Promise<ResType<T, TGetBlockSpendsResponse, WsGetBlockSpendsMessage>>;
|
|
125
124
|
export declare const get_block_spends_with_conditions_command = "get_block_spends_with_conditions";
|
|
126
|
-
export
|
|
127
|
-
export
|
|
125
|
+
export type get_block_spends_with_conditions_command = typeof get_block_spends_with_conditions_command;
|
|
126
|
+
export type TGetBlockSpendsWithConditionsRequest = {
|
|
128
127
|
header_hash: str;
|
|
129
128
|
};
|
|
130
|
-
export
|
|
129
|
+
export type TGetBlockSpendsWithConditionsResponse = {
|
|
131
130
|
block_spends_with_conditions: CoinSpendWithConditions[];
|
|
132
131
|
};
|
|
133
|
-
export
|
|
132
|
+
export type WsGetBlockSpendsWithConditionsMessage = GetMessageType<chia_full_node_service, get_block_spends_with_conditions_command, TGetBlockSpendsWithConditionsResponse>;
|
|
134
133
|
export declare function get_block_spends_with_conditions<T extends TRPCAgent | TDaemon>(agent: T, data: TGetBlockSpendsWithConditionsRequest): Promise<ResType<T, TGetBlockSpendsWithConditionsResponse, WsGetBlockSpendsWithConditionsMessage>>;
|
|
135
134
|
export declare const get_unfinished_block_headers_command = "get_unfinished_block_headers";
|
|
136
|
-
export
|
|
137
|
-
export
|
|
138
|
-
export declare type TGetUnfinishedBlockHeadersResponse = {
|
|
135
|
+
export type get_unfinished_block_headers_command = typeof get_unfinished_block_headers_command;
|
|
136
|
+
export type TGetUnfinishedBlockHeadersResponse = {
|
|
139
137
|
headers: UnfinishedHeaderBlock[];
|
|
140
138
|
};
|
|
141
|
-
export
|
|
139
|
+
export type WsGetUnfinishedBlockHeadersMessage = GetMessageType<chia_full_node_service, get_unfinished_block_headers_command, TGetUnfinishedBlockHeadersResponse>;
|
|
142
140
|
export declare function get_unfinished_block_headers<T extends TRPCAgent | TDaemon>(agent: T): Promise<ResType<T, TGetUnfinishedBlockHeadersResponse, WsGetUnfinishedBlockHeadersMessage>>;
|
|
143
141
|
export declare const get_network_space_command = "get_network_space";
|
|
144
|
-
export
|
|
145
|
-
export
|
|
142
|
+
export type get_network_space_command = typeof get_network_space_command;
|
|
143
|
+
export type TGetNetworkSpaceRequest = {
|
|
146
144
|
newer_block_header_hash: str;
|
|
147
145
|
older_block_header_hash: str;
|
|
148
146
|
};
|
|
149
|
-
export
|
|
147
|
+
export type TGetNetworkSpaceResponse = {
|
|
150
148
|
space: uint128;
|
|
151
149
|
};
|
|
152
|
-
export
|
|
150
|
+
export type WsGetNetworkSpaceMessage = GetMessageType<chia_full_node_service, get_network_space_command, TGetNetworkSpaceResponse>;
|
|
153
151
|
export declare function get_network_space<T extends TRPCAgent | TDaemon>(agent: T, data: TGetNetworkSpaceRequest): Promise<ResType<T, TGetNetworkSpaceResponse, WsGetNetworkSpaceMessage>>;
|
|
154
152
|
export declare const get_additions_and_removals_command = "get_additions_and_removals";
|
|
155
|
-
export
|
|
156
|
-
export
|
|
153
|
+
export type get_additions_and_removals_command = typeof get_additions_and_removals_command;
|
|
154
|
+
export type TGetAdditionsAndRemovalsRequest = {
|
|
157
155
|
header_hash: str;
|
|
158
156
|
};
|
|
159
|
-
export
|
|
157
|
+
export type TGetAdditionsAndRemovalsResponse = {
|
|
160
158
|
additions: CoinRecordBackwardCompatible[];
|
|
161
159
|
removals: CoinRecordBackwardCompatible[];
|
|
162
160
|
};
|
|
163
|
-
export
|
|
161
|
+
export type WsGetAdditionsAndRemovalsMessage = GetMessageType<chia_full_node_service, get_additions_and_removals_command, TGetAdditionsAndRemovalsResponse>;
|
|
164
162
|
export declare function get_additions_and_removals<T extends TRPCAgent | TDaemon>(agent: T, data: TGetAdditionsAndRemovalsRequest): Promise<ResType<T, TGetAdditionsAndRemovalsResponse, WsGetAdditionsAndRemovalsMessage>>;
|
|
165
163
|
export declare const get_aggsig_additional_data_command = "get_aggsig_additional_data";
|
|
166
|
-
export
|
|
167
|
-
export
|
|
164
|
+
export type get_aggsig_additional_data_command = typeof get_aggsig_additional_data_command;
|
|
165
|
+
export type TGetAggsigAdditionalDataResponse = {
|
|
168
166
|
additional_data: str;
|
|
169
167
|
};
|
|
170
|
-
export
|
|
168
|
+
export type WsGetAggsigAdditionalDataMessage = GetMessageType<chia_full_node_service, get_aggsig_additional_data_command, TGetAggsigAdditionalDataResponse>;
|
|
171
169
|
export declare function get_aggsig_additional_data<T extends TRPCAgent | TDaemon>(agent: T): Promise<ResType<T, TGetAggsigAdditionalDataResponse, WsGetAggsigAdditionalDataMessage>>;
|
|
172
170
|
export declare const get_initial_freeze_period_command_of_full_node = "get_initial_freeze_period";
|
|
173
|
-
export
|
|
174
|
-
export
|
|
175
|
-
export declare type TGetInitialFreezePeriodResponseOfFullNode = {
|
|
171
|
+
export type get_initial_freeze_period_command_of_full_node = typeof get_initial_freeze_period_command_of_full_node;
|
|
172
|
+
export type TGetInitialFreezePeriodResponseOfFullNode = {
|
|
176
173
|
INITIAL_FREEZE_END_TIMESTAMP: uint64;
|
|
177
174
|
};
|
|
178
|
-
export
|
|
175
|
+
export type WsGetInitialFreezePeriodMessageOfFullNode = GetMessageType<chia_full_node_service, get_initial_freeze_period_command_of_full_node, TGetInitialFreezePeriodResponseOfFullNode>;
|
|
179
176
|
export declare function get_initial_freeze_period_of_full_node<T extends TRPCAgent | TDaemon>(agent: T): Promise<ResType<T, TGetInitialFreezePeriodResponseOfFullNode, WsGetInitialFreezePeriodMessageOfFullNode>>;
|
|
180
|
-
export declare const get_network_info_command_of_full_node = "get_network_info";
|
|
181
|
-
export declare type get_network_info_command_of_full_node = typeof get_network_info_command_of_full_node;
|
|
182
|
-
export declare type TGetNetworkInfoRequestOfFullNode = {};
|
|
183
|
-
export declare type TGetNetworkInfoResponseOfFullNode = {
|
|
184
|
-
network_name: str;
|
|
185
|
-
network_prefix: str;
|
|
186
|
-
};
|
|
187
|
-
export declare type WsGetNetworkInfoMessageOfFullNode = GetMessageType<chia_full_node_service, get_network_info_command_of_full_node, TGetNetworkInfoResponseOfFullNode>;
|
|
188
|
-
export declare function get_network_info_of_full_node<T extends TRPCAgent | TDaemon>(agent: T): Promise<ResType<T, TGetNetworkInfoResponseOfFullNode, WsGetNetworkInfoMessageOfFullNode>>;
|
|
189
177
|
export declare const get_recent_signage_point_or_eos_command = "get_recent_signage_point_or_eos";
|
|
190
|
-
export
|
|
191
|
-
export
|
|
178
|
+
export type get_recent_signage_point_or_eos_command = typeof get_recent_signage_point_or_eos_command;
|
|
179
|
+
export type TGetRecentSignagePointOrEOSCommandRequest = {
|
|
192
180
|
challenge_hash: str;
|
|
193
181
|
} | {
|
|
194
182
|
sp_hash: str;
|
|
195
183
|
};
|
|
196
|
-
export
|
|
184
|
+
export type TGetRecentSignagePointOrEOSCommandResponse = {
|
|
197
185
|
eos: EndOfSubSlotBundle;
|
|
198
186
|
time_received: float;
|
|
199
187
|
reverted: bool;
|
|
@@ -202,151 +190,149 @@ export declare type TGetRecentSignagePointOrEOSCommandResponse = {
|
|
|
202
190
|
time_received: float;
|
|
203
191
|
reverted: bool;
|
|
204
192
|
};
|
|
205
|
-
export
|
|
193
|
+
export type WsGetRecentSignagePointOrEOSCommandMessage = GetMessageType<chia_full_node_service, get_recent_signage_point_or_eos_command, TGetRecentSignagePointOrEOSCommandResponse>;
|
|
206
194
|
export declare function get_recent_signage_point_or_eos<T extends TRPCAgent | TDaemon>(agent: T, data: TGetRecentSignagePointOrEOSCommandRequest): Promise<ResType<T, TGetRecentSignagePointOrEOSCommandResponse, WsGetRecentSignagePointOrEOSCommandMessage>>;
|
|
207
195
|
export declare const get_coin_records_by_puzzle_hash_command = "get_coin_records_by_puzzle_hash";
|
|
208
|
-
export
|
|
209
|
-
export
|
|
196
|
+
export type get_coin_records_by_puzzle_hash_command = typeof get_coin_records_by_puzzle_hash_command;
|
|
197
|
+
export type TGetCoinRecordsByPuzzleHashRequest = {
|
|
210
198
|
puzzle_hash: str;
|
|
211
199
|
start_height: uint32;
|
|
212
200
|
end_height: uint32;
|
|
213
201
|
include_spent_coins: bool;
|
|
214
202
|
};
|
|
215
|
-
export
|
|
203
|
+
export type TGetCoinRecordsByPuzzleHashResponse = {
|
|
216
204
|
coin_records: CoinRecordBackwardCompatible[];
|
|
217
205
|
};
|
|
218
|
-
export
|
|
206
|
+
export type WsGetCoinRecordsByPuzzleHashMessage = GetMessageType<chia_full_node_service, get_coin_records_by_puzzle_hash_command, TGetCoinRecordsByPuzzleHashResponse>;
|
|
219
207
|
export declare function get_coin_records_by_puzzle_hash<T extends TRPCAgent | TDaemon>(agent: T, data: TGetCoinRecordsByPuzzleHashRequest): Promise<ResType<T, TGetCoinRecordsByPuzzleHashResponse, WsGetCoinRecordsByPuzzleHashMessage>>;
|
|
220
208
|
export declare const get_coin_records_by_puzzle_hashes_command = "get_coin_records_by_puzzle_hashes";
|
|
221
|
-
export
|
|
222
|
-
export
|
|
209
|
+
export type get_coin_records_by_puzzle_hashes_command = typeof get_coin_records_by_puzzle_hashes_command;
|
|
210
|
+
export type TGetCoinRecordsByPuzzleHashesRequest = {
|
|
223
211
|
puzzle_hashes: str[];
|
|
224
212
|
start_height: uint32;
|
|
225
213
|
end_height: uint32;
|
|
226
214
|
include_spent_coins: bool;
|
|
227
215
|
};
|
|
228
|
-
export
|
|
216
|
+
export type TGetCoinRecordsByPuzzleHashesResponse = {
|
|
229
217
|
coin_records: CoinRecordBackwardCompatible[];
|
|
230
218
|
};
|
|
231
|
-
export
|
|
219
|
+
export type WsGetCoinRecordsByPuzzleHashesMessage = GetMessageType<chia_full_node_service, get_coin_records_by_puzzle_hashes_command, TGetCoinRecordsByPuzzleHashesResponse>;
|
|
232
220
|
export declare function get_coin_records_by_puzzle_hashes<T extends TRPCAgent | TDaemon>(agent: T, data: TGetCoinRecordsByPuzzleHashesRequest): Promise<ResType<T, TGetCoinRecordsByPuzzleHashesResponse, WsGetCoinRecordsByPuzzleHashesMessage>>;
|
|
233
221
|
export declare const get_coin_record_by_name_command = "get_coin_record_by_name";
|
|
234
|
-
export
|
|
235
|
-
export
|
|
222
|
+
export type get_coin_record_by_name_command = typeof get_coin_record_by_name_command;
|
|
223
|
+
export type TGetCoinRecordByNameRequest = {
|
|
236
224
|
name: str;
|
|
237
225
|
};
|
|
238
|
-
export
|
|
226
|
+
export type TGetCoinRecordByNameResponse = {
|
|
239
227
|
coin_record: CoinRecordBackwardCompatible;
|
|
240
228
|
};
|
|
241
|
-
export
|
|
229
|
+
export type WsGetCoinRecordByNameMessage = GetMessageType<chia_full_node_service, get_coin_record_by_name_command, TGetCoinRecordByNameResponse>;
|
|
242
230
|
export declare function get_coin_record_by_name<T extends TRPCAgent | TDaemon>(agent: T, data: TGetCoinRecordByNameRequest): Promise<ResType<T, TGetCoinRecordByNameResponse, WsGetCoinRecordByNameMessage>>;
|
|
243
231
|
export declare const get_coin_records_by_names_command = "get_coin_records_by_names";
|
|
244
|
-
export
|
|
245
|
-
export
|
|
232
|
+
export type get_coin_records_by_names_command = typeof get_coin_records_by_names_command;
|
|
233
|
+
export type TGetCoinRecordsByNamesRequest = {
|
|
246
234
|
names: str[];
|
|
247
235
|
start_height?: uint32;
|
|
248
236
|
end_height?: uint32;
|
|
249
237
|
include_spent_coins?: bool;
|
|
250
238
|
};
|
|
251
|
-
export
|
|
239
|
+
export type TGetCoinRecordsByNamesResponse = {
|
|
252
240
|
coin_records: CoinRecordBackwardCompatible[];
|
|
253
241
|
};
|
|
254
|
-
export
|
|
242
|
+
export type WsGetCoinRecordsByNamesMessage = GetMessageType<chia_full_node_service, get_coin_records_by_names_command, TGetCoinRecordsByNamesResponse>;
|
|
255
243
|
export declare function get_coin_records_by_names<T extends TRPCAgent | TDaemon>(agent: T, data: TGetCoinRecordsByNamesRequest): Promise<ResType<T, TGetCoinRecordsByNamesResponse, WsGetCoinRecordsByNamesMessage>>;
|
|
256
244
|
export declare const get_coin_records_by_parent_ids_command = "get_coin_records_by_parent_ids";
|
|
257
|
-
export
|
|
258
|
-
export
|
|
245
|
+
export type get_coin_records_by_parent_ids_command = typeof get_coin_records_by_parent_ids_command;
|
|
246
|
+
export type TGetCoinRecordsByParentIdsRequest = {
|
|
259
247
|
parent_ids: str[];
|
|
260
248
|
start_height?: uint32;
|
|
261
249
|
end_height?: uint32;
|
|
262
250
|
include_spent_coins?: bool;
|
|
263
251
|
};
|
|
264
|
-
export
|
|
252
|
+
export type TGetCoinRecordsByParentIdsResponse = {
|
|
265
253
|
coin_records: CoinRecordBackwardCompatible[];
|
|
266
254
|
};
|
|
267
|
-
export
|
|
255
|
+
export type WsGetCoinRecordsByParentIdsMessage = GetMessageType<chia_full_node_service, get_coin_records_by_parent_ids_command, TGetCoinRecordsByParentIdsResponse>;
|
|
268
256
|
export declare function get_coin_records_by_parent_ids<T extends TRPCAgent | TDaemon>(agent: T, data: TGetCoinRecordsByParentIdsRequest): Promise<ResType<T, TGetCoinRecordsByParentIdsResponse, WsGetCoinRecordsByParentIdsMessage>>;
|
|
269
257
|
export declare const get_coin_records_by_hint_command = "get_coin_records_by_hint";
|
|
270
|
-
export
|
|
271
|
-
export
|
|
258
|
+
export type get_coin_records_by_hint_command = typeof get_coin_records_by_hint_command;
|
|
259
|
+
export type TGetCoinRecordsByHintRequest = {
|
|
272
260
|
hint: str;
|
|
273
261
|
start_height?: uint32;
|
|
274
262
|
end_height?: uint32;
|
|
275
263
|
include_spent_coins?: bool;
|
|
276
264
|
};
|
|
277
|
-
export
|
|
265
|
+
export type TGetCoinRecordsByHintResponse = {
|
|
278
266
|
coin_records: CoinRecordBackwardCompatible[];
|
|
279
267
|
};
|
|
280
|
-
export
|
|
268
|
+
export type WsGetCoinRecordsByHintMessage = GetMessageType<chia_full_node_service, get_coin_records_by_hint_command, TGetCoinRecordsByHintResponse>;
|
|
281
269
|
export declare function get_coin_records_by_hint<T extends TRPCAgent | TDaemon>(agent: T, data: TGetCoinRecordsByHintRequest): Promise<ResType<T, TGetCoinRecordsByHintResponse, WsGetCoinRecordsByHintMessage>>;
|
|
282
270
|
export declare const push_tx_command = "push_tx";
|
|
283
|
-
export
|
|
284
|
-
export
|
|
271
|
+
export type push_tx_command = typeof push_tx_command;
|
|
272
|
+
export type TPushTxRequest = {
|
|
285
273
|
spend_bundle: SpendBundle;
|
|
286
274
|
};
|
|
287
|
-
export
|
|
275
|
+
export type TPushTxResponse = {
|
|
288
276
|
status: str;
|
|
289
277
|
};
|
|
290
|
-
export
|
|
278
|
+
export type WsPushTxMessage = GetMessageType<chia_full_node_service, push_tx_command, TPushTxResponse>;
|
|
291
279
|
export declare function push_tx<T extends TRPCAgent | TDaemon>(agent: T, data: TPushTxRequest): Promise<ResType<T, TPushTxResponse, WsPushTxMessage>>;
|
|
292
280
|
export declare const get_puzzle_and_solution_command = "get_puzzle_and_solution";
|
|
293
|
-
export
|
|
294
|
-
export
|
|
281
|
+
export type get_puzzle_and_solution_command = typeof get_puzzle_and_solution_command;
|
|
282
|
+
export type TGetPuzzleAndSolutionRequest = {
|
|
295
283
|
coin_id: str;
|
|
296
284
|
height: uint32;
|
|
297
285
|
};
|
|
298
|
-
export
|
|
286
|
+
export type TGetPuzzleAndSolutionResponse = {
|
|
299
287
|
coin_solution: CoinSpend;
|
|
300
288
|
};
|
|
301
|
-
export
|
|
289
|
+
export type WsGetPuzzleAndSolutionMessage = GetMessageType<chia_full_node_service, get_puzzle_and_solution_command, TGetPuzzleAndSolutionResponse>;
|
|
302
290
|
export declare function get_puzzle_and_solution<T extends TRPCAgent | TDaemon>(agent: T, data: TGetPuzzleAndSolutionRequest): Promise<ResType<T, TGetPuzzleAndSolutionResponse, WsGetPuzzleAndSolutionMessage>>;
|
|
303
291
|
export declare const get_all_mempool_tx_ids_command = "get_all_mempool_tx_ids";
|
|
304
|
-
export
|
|
305
|
-
export
|
|
306
|
-
export declare type TGetAllMempoolTxIdsResponse = {
|
|
292
|
+
export type get_all_mempool_tx_ids_command = typeof get_all_mempool_tx_ids_command;
|
|
293
|
+
export type TGetAllMempoolTxIdsResponse = {
|
|
307
294
|
tx_ids: bytes32[];
|
|
308
295
|
};
|
|
309
|
-
export
|
|
296
|
+
export type WsGetAllMempoolTxIdsMessage = GetMessageType<chia_full_node_service, get_all_mempool_tx_ids_command, TGetAllMempoolTxIdsResponse>;
|
|
310
297
|
export declare function get_all_mempool_tx_ids<T extends TRPCAgent | TDaemon>(agent: T): Promise<ResType<T, TGetAllMempoolTxIdsResponse, WsGetAllMempoolTxIdsMessage>>;
|
|
311
298
|
export declare const get_all_mempool_items_command = "get_all_mempool_items";
|
|
312
|
-
export
|
|
313
|
-
export
|
|
314
|
-
export declare type TGetAllMempoolItemsResponse = {
|
|
299
|
+
export type get_all_mempool_items_command = typeof get_all_mempool_items_command;
|
|
300
|
+
export type TGetAllMempoolItemsResponse = {
|
|
315
301
|
mempool_items: Record<string, MempoolItemInJsonDict>;
|
|
316
302
|
};
|
|
317
|
-
export
|
|
303
|
+
export type WsGetAllMempoolItemsMessage = GetMessageType<chia_full_node_service, get_all_mempool_items_command, TGetAllMempoolItemsResponse>;
|
|
318
304
|
export declare function get_all_mempool_items<T extends TRPCAgent | TDaemon>(agent: T): Promise<ResType<T, TGetAllMempoolItemsResponse, WsGetAllMempoolItemsMessage>>;
|
|
319
305
|
export declare const get_mempool_item_by_tx_id_command = "get_mempool_item_by_tx_id";
|
|
320
|
-
export
|
|
321
|
-
export
|
|
306
|
+
export type get_mempool_item_by_tx_id_command = typeof get_mempool_item_by_tx_id_command;
|
|
307
|
+
export type TGetMempoolItemByTxIdRequest = {
|
|
322
308
|
tx_id: str;
|
|
323
309
|
include_pending?: bool;
|
|
324
310
|
};
|
|
325
|
-
export
|
|
311
|
+
export type TGetMempoolItemByTxIdResponse = {
|
|
326
312
|
mempool_item: MempoolItemInJsonDict;
|
|
327
313
|
};
|
|
328
|
-
export
|
|
314
|
+
export type WsGetMempoolItemByTxIdMessage = GetMessageType<chia_full_node_service, get_mempool_item_by_tx_id_command, TGetMempoolItemByTxIdResponse>;
|
|
329
315
|
export declare function get_mempool_item_by_tx_id<T extends TRPCAgent | TDaemon>(agent: T, data: TGetMempoolItemByTxIdRequest): Promise<ResType<T, TGetMempoolItemByTxIdResponse, WsGetMempoolItemByTxIdMessage>>;
|
|
330
316
|
export declare const get_mempool_items_by_coin_name_command = "get_mempool_items_by_coin_name";
|
|
331
|
-
export
|
|
332
|
-
export
|
|
317
|
+
export type get_mempool_items_by_coin_name_command = typeof get_mempool_items_by_coin_name_command;
|
|
318
|
+
export type TGetMempoolItemsByCoinNameRequest = {
|
|
333
319
|
coin_name: str;
|
|
334
320
|
};
|
|
335
|
-
export
|
|
321
|
+
export type TGetMempoolItemsByCoinNameResponse = {
|
|
336
322
|
mempool_items: MempoolItemInJsonDict[];
|
|
337
323
|
};
|
|
338
|
-
export
|
|
324
|
+
export type WsGetMempoolItemsByCoinNameMessage = GetMessageType<chia_full_node_service, get_mempool_items_by_coin_name_command, TGetMempoolItemsByCoinNameResponse>;
|
|
339
325
|
export declare function get_mempool_items_by_coin_name<T extends TRPCAgent | TDaemon>(agent: T, data: TGetMempoolItemsByCoinNameRequest): Promise<ResType<T, TGetMempoolItemsByCoinNameResponse, WsGetMempoolItemsByCoinNameMessage>>;
|
|
340
326
|
export declare const get_fee_estimate_command = "get_fee_estimate";
|
|
341
|
-
export
|
|
342
|
-
export
|
|
327
|
+
export type get_fee_estimate_command = typeof get_fee_estimate_command;
|
|
328
|
+
export type TGetFeeEstimateRequest = {
|
|
343
329
|
spend_bundle?: SpendBundle;
|
|
344
330
|
cost?: uint64;
|
|
345
331
|
spend_type?: "send_xch_transaction" | "cat_spend" | "take_offer" | "cancel_offer" | "nft_set_nft_did" | "nft_transfer_nft" | "create_new_pool_wallet" | "pw_absorb_rewards" | "create_new_did_wallet";
|
|
346
332
|
spend_count?: uint64;
|
|
347
333
|
target_times: int[];
|
|
348
334
|
};
|
|
349
|
-
export
|
|
335
|
+
export type TGetFeeEstimateResponse = {
|
|
350
336
|
estimates: uint64[];
|
|
351
337
|
target_times: int[];
|
|
352
338
|
current_fee_rate: uint64;
|
|
@@ -363,100 +349,100 @@ export declare type TGetFeeEstimateResponse = {
|
|
|
363
349
|
fee_rate_last_block: float;
|
|
364
350
|
last_tx_block_height: int;
|
|
365
351
|
};
|
|
366
|
-
export
|
|
352
|
+
export type WsGetFeeEstimateMessage = GetMessageType<chia_full_node_service, get_fee_estimate_command, TGetFeeEstimateResponse>;
|
|
367
353
|
export declare function get_fee_estimate<T extends TRPCAgent | TDaemon>(agent: T, data: TGetFeeEstimateRequest): Promise<ResType<T, TGetFeeEstimateResponse, WsGetFeeEstimateMessage>>;
|
|
368
354
|
export declare const get_all_blocks_command = "get_all_blocks";
|
|
369
|
-
export
|
|
370
|
-
export
|
|
355
|
+
export type get_all_blocks_command = typeof get_all_blocks_command;
|
|
356
|
+
export type TGetAllBlocksResponse = {
|
|
371
357
|
blocks: FullBlock[];
|
|
372
358
|
success: bool;
|
|
373
359
|
};
|
|
374
|
-
export
|
|
360
|
+
export type WsGetAllBlocksMessage = GetMessageType<chia_full_node_service, get_all_blocks_command, TGetAllBlocksResponse>;
|
|
375
361
|
export declare function get_all_blocks<T extends TRPCAgent | TDaemon>(agent: T): Promise<ResType<T, TGetAllBlocksResponse, WsGetAllBlocksMessage>>;
|
|
376
362
|
export declare const farm_block_command = "farm_block";
|
|
377
|
-
export
|
|
378
|
-
export
|
|
363
|
+
export type farm_block_command = typeof farm_block_command;
|
|
364
|
+
export type TFarmBlockRequest = {
|
|
379
365
|
address: str;
|
|
380
366
|
guarantee_tx_block?: bool;
|
|
381
367
|
blocks?: int;
|
|
382
368
|
};
|
|
383
|
-
export
|
|
369
|
+
export type TFarmBlockResponse = {
|
|
384
370
|
new_peak_height: int;
|
|
385
371
|
success: bool;
|
|
386
372
|
};
|
|
387
|
-
export
|
|
373
|
+
export type WsFarmBlockMessage = GetMessageType<chia_full_node_service, farm_block_command, TFarmBlockResponse>;
|
|
388
374
|
export declare function farm_block<T extends TRPCAgent | TDaemon>(agent: T, data: TFarmBlockRequest): Promise<ResType<T, TFarmBlockResponse, WsFarmBlockMessage>>;
|
|
389
375
|
export declare const set_auto_farming_command = "set_auto_farming";
|
|
390
|
-
export
|
|
391
|
-
export
|
|
376
|
+
export type set_auto_farming_command = typeof set_auto_farming_command;
|
|
377
|
+
export type TSetAutoFarmingRequest = {
|
|
392
378
|
auto_farm: bool;
|
|
393
379
|
};
|
|
394
|
-
export
|
|
380
|
+
export type TSetAutoFarmingResponse = {
|
|
395
381
|
auto_farm_enabled: bool;
|
|
396
382
|
success: bool;
|
|
397
383
|
};
|
|
398
|
-
export
|
|
384
|
+
export type WsSetAutoFarmingMessage = GetMessageType<chia_full_node_service, set_auto_farming_command, TSetAutoFarmingResponse>;
|
|
399
385
|
export declare function set_auto_farming<T extends TRPCAgent | TDaemon>(agent: T, data: TSetAutoFarmingRequest): Promise<ResType<T, TSetAutoFarmingResponse, WsSetAutoFarmingMessage>>;
|
|
400
386
|
export declare const get_auto_farming_command = "get_auto_farming";
|
|
401
|
-
export
|
|
402
|
-
export
|
|
387
|
+
export type get_auto_farming_command = typeof get_auto_farming_command;
|
|
388
|
+
export type TGetAutoFarmingResponse = {
|
|
403
389
|
new_peak_height: uint64;
|
|
404
390
|
success: bool;
|
|
405
391
|
};
|
|
406
|
-
export
|
|
392
|
+
export type WsGetAutoFarmingMessage = GetMessageType<chia_full_node_service, get_auto_farming_command, TGetAutoFarmingResponse>;
|
|
407
393
|
export declare function get_auto_farming<T extends TRPCAgent | TDaemon>(agent: T): Promise<ResType<T, TGetAutoFarmingResponse, WsGetAutoFarmingMessage>>;
|
|
408
394
|
export declare const get_farming_ph_command = "get_farming_ph";
|
|
409
|
-
export
|
|
410
|
-
export
|
|
395
|
+
export type get_farming_ph_command = typeof get_farming_ph_command;
|
|
396
|
+
export type TGetFarmingPhResponse = {
|
|
411
397
|
puzzle_hash: str;
|
|
412
398
|
success: bool;
|
|
413
399
|
};
|
|
414
|
-
export
|
|
400
|
+
export type WsGetFarmingPhMessage = GetMessageType<chia_full_node_service, get_farming_ph_command, TGetFarmingPhResponse>;
|
|
415
401
|
export declare function get_farming_ph<T extends TRPCAgent | TDaemon>(agent: T): Promise<ResType<T, TGetFarmingPhResponse, WsGetFarmingPhMessage>>;
|
|
416
402
|
export declare const get_all_coins_command = "get_all_coins";
|
|
417
|
-
export
|
|
418
|
-
export
|
|
403
|
+
export type get_all_coins_command = typeof get_all_coins_command;
|
|
404
|
+
export type TGetAllCoinsRequest = {
|
|
419
405
|
include_spent_coins?: bool;
|
|
420
406
|
};
|
|
421
|
-
export
|
|
407
|
+
export type TGetAllCoinsResponse = {
|
|
422
408
|
coin_records: CoinRecord[];
|
|
423
409
|
success: bool;
|
|
424
410
|
};
|
|
425
|
-
export
|
|
411
|
+
export type WsGetAllCoinsMessage = GetMessageType<chia_full_node_service, get_all_coins_command, TGetAllCoinsResponse>;
|
|
426
412
|
export declare function get_all_coins<T extends TRPCAgent | TDaemon>(agent: T, data: TGetAllCoinsRequest): Promise<ResType<T, TGetAllCoinsResponse, WsGetAllCoinsMessage>>;
|
|
427
413
|
export declare const get_all_puzzle_hashes_command = "get_all_puzzle_hashes";
|
|
428
|
-
export
|
|
429
|
-
export
|
|
414
|
+
export type get_all_puzzle_hashes_command = typeof get_all_puzzle_hashes_command;
|
|
415
|
+
export type TGetAllPuzzleHashesResponse = {
|
|
430
416
|
puzzle_hashes: Record<bytes32, [uint128, int]>;
|
|
431
417
|
success: bool;
|
|
432
418
|
};
|
|
433
|
-
export
|
|
419
|
+
export type WsGetAllPuzzleHashesMessage = GetMessageType<chia_full_node_service, get_all_puzzle_hashes_command, TGetAllPuzzleHashesResponse>;
|
|
434
420
|
export declare function get_all_puzzle_hashes<T extends TRPCAgent | TDaemon>(agent: T): Promise<ResType<T, TGetAllPuzzleHashesResponse, WsGetAllPuzzleHashesMessage>>;
|
|
435
421
|
export declare const revert_blocks_command = "revert_blocks";
|
|
436
|
-
export
|
|
437
|
-
export
|
|
422
|
+
export type revert_blocks_command = typeof revert_blocks_command;
|
|
423
|
+
export type TRevertBlocksRequest = {
|
|
438
424
|
num_of_blocks?: int;
|
|
439
425
|
delete_all_blocks?: bool;
|
|
440
426
|
};
|
|
441
|
-
export
|
|
427
|
+
export type TRevertBlocksResponse = {
|
|
442
428
|
new_peak_height: int;
|
|
443
429
|
success: bool;
|
|
444
430
|
};
|
|
445
|
-
export
|
|
431
|
+
export type WsRevertBlocksMessage = GetMessageType<chia_full_node_service, revert_blocks_command, TRevertBlocksResponse>;
|
|
446
432
|
export declare function revert_blocks<T extends TRPCAgent | TDaemon>(agent: T, data: TRevertBlocksRequest): Promise<ResType<T, TRevertBlocksResponse, WsRevertBlocksMessage>>;
|
|
447
433
|
export declare const reorg_blocks_command = "reorg_blocks";
|
|
448
|
-
export
|
|
449
|
-
export
|
|
434
|
+
export type reorg_blocks_command = typeof reorg_blocks_command;
|
|
435
|
+
export type TReorgBlocksRequest = {
|
|
450
436
|
num_of_blocks_to_rev?: int;
|
|
451
437
|
num_of_new_blocks?: int;
|
|
452
438
|
revert_all_blocks?: bool;
|
|
453
439
|
random_seed?: str;
|
|
454
440
|
};
|
|
455
|
-
export
|
|
441
|
+
export type TReorgBlocksResponse = {
|
|
456
442
|
new_peak_height: int;
|
|
457
443
|
success: bool;
|
|
458
444
|
};
|
|
459
|
-
export
|
|
445
|
+
export type WsReorgBlocksMessage = GetMessageType<chia_full_node_service, reorg_blocks_command, TReorgBlocksResponse>;
|
|
460
446
|
export declare function reorg_blocks<T extends TRPCAgent | TDaemon>(agent: T, data: TReorgBlocksRequest): Promise<ResType<T, TReorgBlocksResponse, WsReorgBlocksMessage>>;
|
|
461
|
-
export
|
|
462
|
-
export
|
|
447
|
+
export type RpcFullNodeMessage = TGetAdditionsAndRemovalsResponse | TGetAggsigAdditionalDataResponse | TGetAllMempoolItemsResponse | TGetAllMempoolTxIdsResponse | TGetBlockResponse | TGetBlockRecordByHeightResponse | TGetBlockRecordResponse | TGetBlockRecordsResponse | TGetBlockSpendsResponse | TGetBlockSpendsWithConditionsResponse | TGetBlockchainStateResponse | TGetBlocksResponse | TGetBlockCountMetricsResponse | TGetRecentSignagePointOrEOSCommandResponse | TGetCoinRecordByNameResponse | TGetCoinRecordsByNamesResponse | TGetCoinRecordsByPuzzleHashResponse | TGetCoinRecordsByPuzzleHashesResponse | TGetCoinRecordsByParentIdsResponse | TGetCoinRecordsByHintResponse | TGetInitialFreezePeriodResponseOfFullNode | TGetMempoolItemByTxIdResponse | TGetMempoolItemsByCoinNameResponse | TGetNetworkSpaceResponse | TGetUnfinishedBlockHeadersResponse | TPushTxResponse | TGetPuzzleAndSolutionResponse | TGetFeeEstimateResponse | TGetAllBlocksResponse | TFarmBlockResponse | TSetAutoFarmingResponse | TGetAutoFarmingResponse | TGetFarmingPhResponse | TGetAllCoinsResponse | TGetAllPuzzleHashesResponse | TRevertBlocksResponse | TReorgBlocksResponse;
|
|
448
|
+
export type RpcFullNodeMessageOnWs = WsGetAdditionsAndRemovalsMessage | WsGetAggsigAdditionalDataMessage | WsGetAllMempoolItemsMessage | WsGetAllMempoolTxIdsMessage | WsGetBlockMessage | WsGetBlockRecordByHeightMessage | WsGetBlockRecordMessage | WsGetBlockRecordsMessage | WsGetBlockSpendsMessage | WsGetBlockSpendsWithConditionsMessage | WsGetBlockchainStateMessage | WsGetBlocksMessage | WsGetBlockCountMetricsMessage | WsGetRecentSignagePointOrEOSCommandMessage | WsGetCoinRecordByNameMessage | WsGetCoinRecordsByNamesMessage | WsGetCoinRecordsByPuzzleHashMessage | WsGetCoinRecordsByPuzzleHashesMessage | WsGetCoinRecordsByParentIdsMessage | WsGetCoinRecordsByHintMessage | WsGetInitialFreezePeriodMessageOfFullNode | WsGetMempoolItemByTxIdMessage | WsGetMempoolItemsByCoinNameMessage | WsGetNetworkSpaceMessage | WsGetUnfinishedBlockHeadersMessage | WsPushTxMessage | WsGetPuzzleAndSolutionMessage | WsGetFeeEstimateMessage | WsGetAllBlocksMessage | WsFarmBlockMessage | WsSetAutoFarmingMessage | WsGetAutoFarmingMessage | WsGetFarmingPhMessage | WsGetAllCoinsMessage | WsGetAllPuzzleHashesMessage | WsRevertBlocksMessage | WsReorgBlocksMessage;
|
|
@@ -9,8 +9,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.get_all_mempool_tx_ids_command = exports.get_puzzle_and_solution = exports.get_puzzle_and_solution_command = exports.push_tx = exports.push_tx_command = exports.get_coin_records_by_hint = exports.get_coin_records_by_hint_command = exports.get_coin_records_by_parent_ids = exports.get_coin_records_by_parent_ids_command = exports.get_coin_records_by_names = exports.get_coin_records_by_names_command = exports.get_coin_record_by_name = exports.get_coin_record_by_name_command = exports.get_coin_records_by_puzzle_hashes = exports.get_coin_records_by_puzzle_hashes_command = exports.get_coin_records_by_puzzle_hash = exports.get_coin_records_by_puzzle_hash_command = exports.get_recent_signage_point_or_eos = exports.get_recent_signage_point_or_eos_command = exports.
|
|
13
|
-
exports.reorg_blocks = exports.reorg_blocks_command = exports.revert_blocks = exports.revert_blocks_command = exports.get_all_puzzle_hashes = exports.get_all_puzzle_hashes_command = exports.get_all_coins = exports.get_all_coins_command = exports.get_farming_ph = exports.get_farming_ph_command = exports.get_auto_farming = exports.get_auto_farming_command = exports.set_auto_farming = exports.set_auto_farming_command = exports.farm_block = exports.farm_block_command = exports.get_all_blocks = exports.get_all_blocks_command = exports.get_fee_estimate = exports.get_fee_estimate_command = exports.get_mempool_items_by_coin_name = exports.get_mempool_items_by_coin_name_command = exports.get_mempool_item_by_tx_id = exports.get_mempool_item_by_tx_id_command = exports.get_all_mempool_items =
|
|
12
|
+
exports.get_all_mempool_items_command = exports.get_all_mempool_tx_ids = exports.get_all_mempool_tx_ids_command = exports.get_puzzle_and_solution = exports.get_puzzle_and_solution_command = exports.push_tx = exports.push_tx_command = exports.get_coin_records_by_hint = exports.get_coin_records_by_hint_command = exports.get_coin_records_by_parent_ids = exports.get_coin_records_by_parent_ids_command = exports.get_coin_records_by_names = exports.get_coin_records_by_names_command = exports.get_coin_record_by_name = exports.get_coin_record_by_name_command = exports.get_coin_records_by_puzzle_hashes = exports.get_coin_records_by_puzzle_hashes_command = exports.get_coin_records_by_puzzle_hash = exports.get_coin_records_by_puzzle_hash_command = exports.get_recent_signage_point_or_eos = exports.get_recent_signage_point_or_eos_command = exports.get_initial_freeze_period_of_full_node = exports.get_initial_freeze_period_command_of_full_node = exports.get_aggsig_additional_data = exports.get_aggsig_additional_data_command = exports.get_additions_and_removals = exports.get_additions_and_removals_command = exports.get_network_space = exports.get_network_space_command = exports.get_unfinished_block_headers = exports.get_unfinished_block_headers_command = exports.get_block_spends_with_conditions = exports.get_block_spends_with_conditions_command = exports.get_block_spends = exports.get_block_spends_command = exports.get_block_records = exports.get_block_records_command = exports.get_block_record = exports.get_block_record_command = exports.get_block_record_by_height = exports.get_block_record_by_height_command = exports.get_block_count_metrics = exports.get_block_count_metrics_command = exports.get_blocks = exports.get_blocks_command = exports.get_block = exports.get_block_command = exports.get_blockchain_state = exports.get_blockchain_state_command = exports.chia_full_node_service = void 0;
|
|
13
|
+
exports.reorg_blocks = exports.reorg_blocks_command = exports.revert_blocks = exports.revert_blocks_command = exports.get_all_puzzle_hashes = exports.get_all_puzzle_hashes_command = exports.get_all_coins = exports.get_all_coins_command = exports.get_farming_ph = exports.get_farming_ph_command = exports.get_auto_farming = exports.get_auto_farming_command = exports.set_auto_farming = exports.set_auto_farming_command = exports.farm_block = exports.farm_block_command = exports.get_all_blocks = exports.get_all_blocks_command = exports.get_fee_estimate = exports.get_fee_estimate_command = exports.get_mempool_items_by_coin_name = exports.get_mempool_items_by_coin_name_command = exports.get_mempool_item_by_tx_id = exports.get_mempool_item_by_tx_id_command = exports.get_all_mempool_items = void 0;
|
|
14
14
|
exports.chia_full_node_service = "chia_full_node";
|
|
15
15
|
exports.get_blockchain_state_command = "get_blockchain_state";
|
|
16
16
|
function get_blockchain_state(agent) {
|
|
@@ -110,13 +110,6 @@ function get_initial_freeze_period_of_full_node(agent) {
|
|
|
110
110
|
});
|
|
111
111
|
}
|
|
112
112
|
exports.get_initial_freeze_period_of_full_node = get_initial_freeze_period_of_full_node;
|
|
113
|
-
exports.get_network_info_command_of_full_node = "get_network_info";
|
|
114
|
-
function get_network_info_of_full_node(agent) {
|
|
115
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
116
|
-
return agent.sendMessage(exports.chia_full_node_service, exports.get_network_info_command_of_full_node);
|
|
117
|
-
});
|
|
118
|
-
}
|
|
119
|
-
exports.get_network_info_of_full_node = get_network_info_of_full_node;
|
|
120
113
|
exports.get_recent_signage_point_or_eos_command = "get_recent_signage_point_or_eos";
|
|
121
114
|
function get_recent_signage_point_or_eos(agent, data) {
|
|
122
115
|
return __awaiter(this, void 0, void 0, function* () {
|