chia-agent 16.1.4 → 16.1.5
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
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [16.1.5]
|
|
4
|
+
### Fixed
|
|
5
|
+
- Added missing `create_block_generator` to the Full Node RPC API
|
|
6
|
+
- Fixed CHIP-0029 response typing by discriminating `TXEndpointRequest` variants
|
|
7
|
+
|
|
3
8
|
## [16.1.4]
|
|
4
9
|
### Fixed
|
|
5
10
|
- Fixed `TGetCoinRecordsByPuzzleHashesRequest` type definition
|
|
@@ -1935,6 +1940,10 @@ daemon.sendMessage(destination, get_block_record_by_height_command, data);
|
|
|
1935
1940
|
Initial release.
|
|
1936
1941
|
|
|
1937
1942
|
<!-- [Unreleased]: https://github.com/Chia-Mine/chia-agent/compare/v0.0.1...v0.0.2 -->
|
|
1943
|
+
[16.1.5]: https://github.com/Chia-Mine/chia-agent/compare/v16.1.4...v16.1.5
|
|
1944
|
+
[16.1.4]: https://github.com/Chia-Mine/chia-agent/compare/v16.1.3...v16.1.4
|
|
1945
|
+
[16.1.3]: https://github.com/Chia-Mine/chia-agent/compare/v16.1.2...v16.1.3
|
|
1946
|
+
[16.1.2]: https://github.com/Chia-Mine/chia-agent/compare/v16.1.1...v16.1.2
|
|
1938
1947
|
[16.1.1]: https://github.com/Chia-Mine/chia-agent/compare/v16.1.0...v16.1.1
|
|
1939
1948
|
[16.1.0]: https://github.com/Chia-Mine/chia-agent/compare/v16.0.2...v16.1.0
|
|
1940
1949
|
[16.0.2]: https://github.com/Chia-Mine/chia-agent/compare/v16.0.1...v16.0.2
|
|
@@ -1,18 +1,23 @@
|
|
|
1
|
-
import { bool, str, True } from "../types/_python_types_";
|
|
1
|
+
import { bool, False, str, True } from "../types/_python_types_";
|
|
2
2
|
import { TXConfigLoader, TXEndpointForCompat } from "../wallet/util/tx_config";
|
|
3
3
|
import { ConditionValidTimes } from "../wallet/conditions";
|
|
4
4
|
import { UnsignedTransaction } from "../wallet/signer_protocol";
|
|
5
|
-
import {
|
|
6
|
-
export type
|
|
7
|
-
wallet_type
|
|
5
|
+
import { ExtraCondition, TranslationLayerKey } from "./util";
|
|
6
|
+
export type TXEndpointRequestBase = {
|
|
7
|
+
wallet_type?: str;
|
|
8
8
|
extra_conditions?: ExtraCondition[];
|
|
9
9
|
push?: bool;
|
|
10
10
|
merge_spends?: bool;
|
|
11
11
|
sign?: bool;
|
|
12
12
|
translation?: TranslationLayerKey;
|
|
13
|
-
} &
|
|
13
|
+
} & TXConfigLoader & TXEndpointForCompat & Partial<ConditionValidTimes>;
|
|
14
|
+
export type TXEndpointRequest = TXEndpointRequestBase & ({
|
|
15
|
+
"CHIP-0029": True;
|
|
16
|
+
} | {
|
|
17
|
+
"CHIP-0029"?: False;
|
|
18
|
+
});
|
|
14
19
|
export type CHIP0029UnsignedTransaction<T extends TXEndpointRequest> = T extends {
|
|
15
|
-
"CHIP-0029"
|
|
20
|
+
"CHIP-0029": True;
|
|
16
21
|
} ? str[] : UnsignedTransaction[];
|
|
17
22
|
export type TxeResp<Req extends TXEndpointRequest, Res> = {
|
|
18
23
|
unsigned_transactions: CHIP0029UnsignedTransaction<Req>;
|
|
@@ -13,6 +13,9 @@ import { SignagePoint } from "../../chia/full_node/signage_point";
|
|
|
13
13
|
import { CoinSpend } from "../../chia_rs/chia-protocol/coin_spend";
|
|
14
14
|
import { CoinSpendWithConditions } from "../../chia/types/coin_spend";
|
|
15
15
|
import { CLVMCost } from "../../chia/types/clvm_cost";
|
|
16
|
+
import { Program } from "../../chia_rs/chia-protocol/program";
|
|
17
|
+
import { Coin } from "../../chia/types/blockchain_format/coin";
|
|
18
|
+
import { G2Element } from "../../chia_rs/chia-bls/lib";
|
|
16
19
|
import { GetMessageType, ResType } from "../../types";
|
|
17
20
|
import { TDaemon } from "../../../daemon/index";
|
|
18
21
|
export declare const chia_full_node_service = "chia_full_node";
|
|
@@ -102,6 +105,18 @@ export type TGetBlockRecordResponse = {
|
|
|
102
105
|
};
|
|
103
106
|
export type WsGetBlockRecordMessage = GetMessageType<chia_full_node_service, get_block_record_command, TGetBlockRecordResponse>;
|
|
104
107
|
export declare function get_block_record<T extends TRPCAgent | TDaemon>(agent: T, data: TGetBlockRecordRequest): Promise<ResType<T, TGetBlockRecordResponse, WsGetBlockRecordMessage>>;
|
|
108
|
+
export declare const create_block_generator_command = "create_block_generator";
|
|
109
|
+
export type create_block_generator_command = typeof create_block_generator_command;
|
|
110
|
+
export type TCreateBlockGeneratorResponse = {
|
|
111
|
+
generator: Program;
|
|
112
|
+
refs: uint32[];
|
|
113
|
+
additions: Coin[];
|
|
114
|
+
removals: Coin[];
|
|
115
|
+
sig: G2Element;
|
|
116
|
+
cost: uint64;
|
|
117
|
+
};
|
|
118
|
+
export type WsCreateBlockGeneratorMessage = GetMessageType<chia_full_node_service, create_block_generator_command, TCreateBlockGeneratorResponse>;
|
|
119
|
+
export declare function create_block_generator<T extends TRPCAgent | TDaemon>(agent: T): Promise<ResType<T, TCreateBlockGeneratorResponse, WsCreateBlockGeneratorMessage>>;
|
|
105
120
|
export declare const get_block_records_command = "get_block_records";
|
|
106
121
|
export type get_block_records_command = typeof get_block_records_command;
|
|
107
122
|
export type TGetBlockRecordsRequest = {
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.reorg_blocks_command = exports.revert_blocks_command = exports.get_all_puzzle_hashes_command = exports.get_all_coins_command = exports.get_farming_ph_command = exports.get_auto_farming_command = exports.set_auto_farming_command = exports.farm_block_command = exports.get_all_blocks_command = exports.get_fee_estimate_command = exports.get_mempool_items_by_coin_name_command = exports.get_mempool_item_by_tx_id_command = exports.get_all_mempool_items_command = exports.get_all_mempool_tx_ids_command = exports.get_puzzle_and_solution_command = exports.push_tx_command = exports.get_coin_records_by_hint_command = exports.get_coin_records_by_parent_ids_command = exports.get_coin_records_by_names_command = exports.get_coin_record_by_name_command = exports.get_coin_records_by_puzzle_hashes_command = exports.get_coin_records_by_puzzle_hash_command = exports.get_recent_signage_point_or_eos_command = exports.get_initial_freeze_period_command_of_full_node = exports.get_aggsig_additional_data_command = exports.get_additions_and_removals_command = exports.get_network_space_command = exports.get_unfinished_block_headers_command = exports.get_block_spends_with_conditions_command = exports.get_block_spends_command = exports.get_block_records_command = exports.get_block_record_command = exports.get_block_record_by_height_command = exports.get_block_count_metrics_command = exports.get_blocks_command = exports.get_block_command = exports.get_blockchain_state_command = exports.chia_full_node_service = void 0;
|
|
3
|
+
exports.reorg_blocks_command = exports.revert_blocks_command = exports.get_all_puzzle_hashes_command = exports.get_all_coins_command = exports.get_farming_ph_command = exports.get_auto_farming_command = exports.set_auto_farming_command = exports.farm_block_command = exports.get_all_blocks_command = exports.get_fee_estimate_command = exports.get_mempool_items_by_coin_name_command = exports.get_mempool_item_by_tx_id_command = exports.get_all_mempool_items_command = exports.get_all_mempool_tx_ids_command = exports.get_puzzle_and_solution_command = exports.push_tx_command = exports.get_coin_records_by_hint_command = exports.get_coin_records_by_parent_ids_command = exports.get_coin_records_by_names_command = exports.get_coin_record_by_name_command = exports.get_coin_records_by_puzzle_hashes_command = exports.get_coin_records_by_puzzle_hash_command = exports.get_recent_signage_point_or_eos_command = exports.get_initial_freeze_period_command_of_full_node = exports.get_aggsig_additional_data_command = exports.get_additions_and_removals_command = exports.get_network_space_command = exports.get_unfinished_block_headers_command = exports.get_block_spends_with_conditions_command = exports.get_block_spends_command = exports.get_block_records_command = exports.create_block_generator_command = exports.get_block_record_command = exports.get_block_record_by_height_command = exports.get_block_count_metrics_command = exports.get_blocks_command = exports.get_block_command = exports.get_blockchain_state_command = exports.chia_full_node_service = void 0;
|
|
4
4
|
exports.get_blockchain_state = get_blockchain_state;
|
|
5
5
|
exports.get_block = get_block;
|
|
6
6
|
exports.get_blocks = get_blocks;
|
|
7
7
|
exports.get_block_count_metrics = get_block_count_metrics;
|
|
8
8
|
exports.get_block_record_by_height = get_block_record_by_height;
|
|
9
9
|
exports.get_block_record = get_block_record;
|
|
10
|
+
exports.create_block_generator = create_block_generator;
|
|
10
11
|
exports.get_block_records = get_block_records;
|
|
11
12
|
exports.get_block_spends = get_block_spends;
|
|
12
13
|
exports.get_block_spends_with_conditions = get_block_spends_with_conditions;
|
|
@@ -63,6 +64,10 @@ exports.get_block_record_command = "get_block_record";
|
|
|
63
64
|
async function get_block_record(agent, data) {
|
|
64
65
|
return agent.sendMessage(exports.chia_full_node_service, exports.get_block_record_command, data);
|
|
65
66
|
}
|
|
67
|
+
exports.create_block_generator_command = "create_block_generator";
|
|
68
|
+
async function create_block_generator(agent) {
|
|
69
|
+
return agent.sendMessage(exports.chia_full_node_service, exports.create_block_generator_command);
|
|
70
|
+
}
|
|
66
71
|
exports.get_block_records_command = "get_block_records";
|
|
67
72
|
async function get_block_records(agent, data) {
|
|
68
73
|
return agent.sendMessage(exports.chia_full_node_service, exports.get_block_records_command, data);
|
package/api/rpc/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { RpcFarmerMessage } from "./farmer/index";
|
|
2
2
|
export { chia_farmer_service, RpcFarmerMessage, TGetRewardTargetRequest, TGetRewardTargetResponse, get_reward_targets, TGetSignagePointRequest, TGetSignagePointResponse, get_signage_point, TGetSignagePointsResponse, get_signage_points, TSetRewardTargetRequest, TSetRewardTargetResponse, set_reward_targets, TGetHarvestersResponse, get_harvesters, TGetHarvestersSummaryResponse, get_harvesters_summary, TGetHarvesterPlotsValidRequest, TGetHarvesterPlotsValidResponse, get_harvester_plots_valid, TGetHarvesterPlotsInvalidRequest, TGetHarvesterPlotsInvalidResponse, get_harvester_plots_invalid, TGetHarvesterPlotsKeysMissingRequest, TGetHarvesterPlotsKeysMissingResponse, get_harvester_plots_keys_missing, TGetHarvesterPlotsDuplicatesRequest, TGetHarvesterPlotsDuplicatesResponse, get_harvester_plots_duplicates, TSetPayoutInstructionsRequest, TSetPayoutInstructionsResponse, set_pool_payout_instructions, TGetPoolStateResponse, get_pool_state, TGetPoolLinkRequest, TGetPoolLinkResponse, get_pool_login_link, } from "./farmer/index";
|
|
3
3
|
import type { RpcFullNodeMessage } from "./full_node/index";
|
|
4
|
-
export { chia_full_node_service, TGetAdditionsAndRemovalsRequest, TGetAdditionsAndRemovalsResponse, get_additions_and_removals, TGetAggsigAdditionalDataResponse, get_aggsig_additional_data, TGetAllMempoolItemsResponse, get_all_mempool_items, TGetAllMempoolTxIdsResponse, get_all_mempool_tx_ids, TGetMempoolItemsByCoinNameRequest, TGetMempoolItemsByCoinNameResponse, get_mempool_items_by_coin_name, TGetBlockRecordByHeightRequest, TGetBlockRecordByHeightResponse, get_block_record_by_height, TGetBlockRecordRequest, TGetBlockRecordResponse, get_block_record, TGetBlockRecordsRequest, TGetBlockRecordsResponse, get_block_records, TGetBlockSpendsRequest, TGetBlockSpendsResponse, get_block_spends, TGetBlockSpendsWithConditionsRequest, TGetBlockSpendsWithConditionsResponse, get_block_spends_with_conditions, TGetBlockRequest, TGetBlockResponse, get_block, TGetBlockchainStateResponse, get_blockchain_state, TGetBlocksRequest, TGetBlocksResponse, get_blocks, TGetBlockCountMetricsResponse, get_block_count_metrics, TGetRecentSignagePointOrEOSCommandRequest, TGetRecentSignagePointOrEOSCommandResponse, get_recent_signage_point_or_eos, TGetCoinRecordsByNamesRequest, TGetCoinRecordsByNamesResponse, get_coin_records_by_names, TGetCoinRecordByNameRequest, TGetCoinRecordByNameResponse, get_coin_record_by_name, TGetCoinRecordsByPuzzleHashRequest, TGetCoinRecordsByPuzzleHashResponse, get_coin_records_by_puzzle_hash, TGetCoinRecordsByPuzzleHashesRequest, TGetCoinRecordsByPuzzleHashesResponse, get_coin_records_by_puzzle_hashes, TGetCoinRecordsByParentIdsRequest, TGetCoinRecordsByParentIdsResponse, get_coin_records_by_parent_ids, TGetCoinRecordsByHintRequest, TGetCoinRecordsByHintResponse, get_coin_records_by_hint, TGetInitialFreezePeriodResponseOfFullNode, get_initial_freeze_period_of_full_node, TGetMempoolItemByTxIdRequest, TGetMempoolItemByTxIdResponse, get_mempool_item_by_tx_id, TGetNetworkSpaceRequest, TGetNetworkSpaceResponse, get_network_space, TGetUnfinishedBlockHeadersResponse, get_unfinished_block_headers, TPushTxRequest, TPushTxResponse, push_tx, TGetPuzzleAndSolutionRequest, TGetPuzzleAndSolutionResponse, get_puzzle_and_solution, TGetFeeEstimateRequest, TGetFeeEstimateResponse, get_fee_estimate, TGetAllBlocksResponse, get_all_blocks, TFarmBlockRequest, TFarmBlockResponse, farm_block, TSetAutoFarmingRequest, TSetAutoFarmingResponse, set_auto_farming, TGetAutoFarmingResponse, get_auto_farming, TGetFarmingPhResponse, get_farming_ph, TGetAllCoinsRequest, TGetAllCoinsResponse, get_all_coins, TGetAllPuzzleHashesResponse, get_all_puzzle_hashes, TRevertBlocksRequest, TRevertBlocksResponse, revert_blocks, TReorgBlocksRequest, TReorgBlocksResponse, reorg_blocks, } from "./full_node/index";
|
|
4
|
+
export { chia_full_node_service, TGetAdditionsAndRemovalsRequest, TGetAdditionsAndRemovalsResponse, get_additions_and_removals, TGetAggsigAdditionalDataResponse, get_aggsig_additional_data, TGetAllMempoolItemsResponse, get_all_mempool_items, TGetAllMempoolTxIdsResponse, get_all_mempool_tx_ids, TGetMempoolItemsByCoinNameRequest, TGetMempoolItemsByCoinNameResponse, get_mempool_items_by_coin_name, TCreateBlockGeneratorResponse, create_block_generator, TGetBlockRecordByHeightRequest, TGetBlockRecordByHeightResponse, get_block_record_by_height, TGetBlockRecordRequest, TGetBlockRecordResponse, get_block_record, TGetBlockRecordsRequest, TGetBlockRecordsResponse, get_block_records, TGetBlockSpendsRequest, TGetBlockSpendsResponse, get_block_spends, TGetBlockSpendsWithConditionsRequest, TGetBlockSpendsWithConditionsResponse, get_block_spends_with_conditions, TGetBlockRequest, TGetBlockResponse, get_block, TGetBlockchainStateResponse, get_blockchain_state, TGetBlocksRequest, TGetBlocksResponse, get_blocks, TGetBlockCountMetricsResponse, get_block_count_metrics, TGetRecentSignagePointOrEOSCommandRequest, TGetRecentSignagePointOrEOSCommandResponse, get_recent_signage_point_or_eos, TGetCoinRecordsByNamesRequest, TGetCoinRecordsByNamesResponse, get_coin_records_by_names, TGetCoinRecordByNameRequest, TGetCoinRecordByNameResponse, get_coin_record_by_name, TGetCoinRecordsByPuzzleHashRequest, TGetCoinRecordsByPuzzleHashResponse, get_coin_records_by_puzzle_hash, TGetCoinRecordsByPuzzleHashesRequest, TGetCoinRecordsByPuzzleHashesResponse, get_coin_records_by_puzzle_hashes, TGetCoinRecordsByParentIdsRequest, TGetCoinRecordsByParentIdsResponse, get_coin_records_by_parent_ids, TGetCoinRecordsByHintRequest, TGetCoinRecordsByHintResponse, get_coin_records_by_hint, TGetInitialFreezePeriodResponseOfFullNode, get_initial_freeze_period_of_full_node, TGetMempoolItemByTxIdRequest, TGetMempoolItemByTxIdResponse, get_mempool_item_by_tx_id, TGetNetworkSpaceRequest, TGetNetworkSpaceResponse, get_network_space, TGetUnfinishedBlockHeadersResponse, get_unfinished_block_headers, TPushTxRequest, TPushTxResponse, push_tx, TGetPuzzleAndSolutionRequest, TGetPuzzleAndSolutionResponse, get_puzzle_and_solution, TGetFeeEstimateRequest, TGetFeeEstimateResponse, get_fee_estimate, TGetAllBlocksResponse, get_all_blocks, TFarmBlockRequest, TFarmBlockResponse, farm_block, TSetAutoFarmingRequest, TSetAutoFarmingResponse, set_auto_farming, TGetAutoFarmingResponse, get_auto_farming, TGetFarmingPhResponse, get_farming_ph, TGetAllCoinsRequest, TGetAllCoinsResponse, get_all_coins, TGetAllPuzzleHashesResponse, get_all_puzzle_hashes, TRevertBlocksRequest, TRevertBlocksResponse, revert_blocks, TReorgBlocksRequest, TReorgBlocksResponse, reorg_blocks, } from "./full_node/index";
|
|
5
5
|
import type { RpcHarvesterMessage } from "./harvester/index";
|
|
6
6
|
export { chia_harvester_service, TAddPlotDirectoryRequest, TAddPlotDirectoryResponse, add_plot_directory, TDeletePlotRequest, TDeletePlotResponse, delete_plot, TGetPlotDirectoriesResponse, get_plot_directories, TGetPlotsResponse, get_plots, TRefreshPlotsResponse, refresh_plots, TRemovePlotDirectoryRequest, TRemovePlotDirectoryResponse, remove_plot_directory, TGetHarvesterConfigResponse, get_harvester_config, TUpdateHarvesterConfigRequest, TUpdateHarvesterConfigResponse, update_harvester_config, } from "./harvester/index";
|
|
7
7
|
import type { RpcWalletMessage } from "./wallet/index";
|
package/api/rpc/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.
|
|
7
|
-
exports.reset_log_level = exports.set_log_level = exports.get_log_level = exports.healthz = exports.get_version = exports.get_routes = exports.stop_node = exports.close_connection = exports.open_connection = exports.get_connections = exports.get_network_info = exports.chia_common_service = exports.get_peer_counts = exports.get_ips_after_timestamp = exports.chia_crawler_service = exports.verify_proof = exports.get_proof = exports.clear_pending_roots = exports.check_plugins = exports.get_sync_status_dl = exports.cancel_offer_dl = exports.verify_offer = exports.take_offer_dl = exports.make_offer = exports.add_missing_files = exports.get_root_history = exports.get_kv_diff = exports.subscriptions = exports.remove_subscriptions = exports.get_mirrors = exports.delete_mirror = exports.add_mirror = exports.unsubscribe = exports.subscribe = exports.insert = void 0;
|
|
3
|
+
exports.get_all_coins = exports.get_farming_ph = exports.get_auto_farming = exports.set_auto_farming = exports.farm_block = exports.get_all_blocks = exports.get_fee_estimate = exports.get_puzzle_and_solution = exports.push_tx = exports.get_unfinished_block_headers = exports.get_network_space = exports.get_mempool_item_by_tx_id = exports.get_initial_freeze_period_of_full_node = exports.get_coin_records_by_hint = exports.get_coin_records_by_parent_ids = exports.get_coin_records_by_puzzle_hashes = exports.get_coin_records_by_puzzle_hash = exports.get_coin_record_by_name = exports.get_coin_records_by_names = exports.get_recent_signage_point_or_eos = exports.get_block_count_metrics = exports.get_blocks = exports.get_blockchain_state = exports.get_block = exports.get_block_spends_with_conditions = exports.get_block_spends = exports.get_block_records = exports.get_block_record = exports.get_block_record_by_height = exports.create_block_generator = exports.get_mempool_items_by_coin_name = exports.get_all_mempool_tx_ids = exports.get_all_mempool_items = exports.get_aggsig_additional_data = exports.get_additions_and_removals = exports.chia_full_node_service = exports.get_pool_login_link = exports.get_pool_state = exports.set_pool_payout_instructions = exports.get_harvester_plots_duplicates = exports.get_harvester_plots_keys_missing = exports.get_harvester_plots_invalid = exports.get_harvester_plots_valid = exports.get_harvesters_summary = exports.get_harvesters = exports.set_reward_targets = exports.get_signage_points = exports.get_signage_point = exports.get_reward_targets = exports.chia_farmer_service = void 0;
|
|
4
|
+
exports.did_create_attest = exports.did_get_wallet_name = exports.did_set_wallet_name = exports.delete_key = exports.set_wallet_resync_on_startup = exports.delete_all_keys = exports.nft_transfer_bulk = exports.nft_set_did_bulk = exports.nft_mint_bulk = exports.nft_calculate_royalties = exports.combine_coins = exports.split_coins = exports.get_transaction_memo = exports.verify_signature = exports.sign_message_by_id = exports.sign_message_by_address = exports.send_notification = exports.delete_notifications = exports.get_notifications = exports.extend_derivation_index = exports.get_current_derivation_index = exports.select_coins = exports.delete_unconfirmed_transactions = exports.create_signed_transaction = exports.create_offer_for_ids = exports.create_new_wallet = exports.check_offer_validity = exports.cat_spend = exports.cat_set_name = exports.cat_asset_id_to_name = exports.get_stray_cats = exports.cat_get_name = exports.cat_get_asset_id = exports.cancel_offers = exports.cancel_offer = exports.add_rate_limited_funds = exports.add_key = exports.chia_wallet_service = exports.update_harvester_config = exports.get_harvester_config = exports.remove_plot_directory = exports.refresh_plots = exports.get_plots = exports.get_plot_directories = exports.delete_plot = exports.add_plot_directory = exports.chia_harvester_service = exports.reorg_blocks = exports.revert_blocks = exports.get_all_puzzle_hashes = void 0;
|
|
5
|
+
exports.pw_join_pool = exports.push_transactions = exports.push_tx_wallet = exports.log_in = exports.get_wallets = exports.get_wallet_balances = exports.get_wallet_balance = exports.get_transactions = exports.get_transaction = exports.get_transaction_count = exports.get_sync_status = exports.get_public_keys = exports.get_private_key = exports.get_next_address = exports.get_offer_summary = exports.get_offers_count = exports.get_offer = exports.get_logged_in_fingerprint = exports.get_initial_freeze_period_of_wallet = exports.get_height_info = exports.get_farmed_amount = exports.get_cat_list = exports.get_all_offers = exports.generate_mnemonic = exports.get_auto_claim = exports.set_auto_claim = exports.get_timestamp_for_height = exports.nft_add_uri = exports.nft_get_info = exports.nft_transfer_nft = exports.nft_set_nft_status = exports.nft_get_wallets_with_dids = exports.nft_get_wallet_did = exports.nft_get_by_did = exports.nft_set_nft_did = exports.nft_get_nfts = exports.nft_count_nfts = exports.nft_mint_nft = exports.did_update_metadata = exports.did_update_recovery_ids = exports.did_spend = exports.did_recovery_spend = exports.did_get_metadata = exports.did_get_recovery_list = exports.did_get_pubkey = exports.did_get_current_coin_info = exports.did_get_information_needed_for_recovery = exports.did_get_did = exports.did_transfer_did = exports.did_create_backup_file = void 0;
|
|
6
|
+
exports.get_roots = exports.get_local_root = exports.get_root = exports.get_ancestors = exports.get_keys_values = exports.get_keys = exports.get_value = exports.submit_all_pending_roots = exports.submit_pending_root = exports.multistore_batch_update = exports.batch_update = exports.get_owned_stores = exports.create_data_store = exports.wallet_log_in = exports.chia_data_layer_service = exports.execute_signing_instructions = exports.submit_transactions = exports.apply_signatures = exports.gather_signing_info = exports.crcat_approve_pending = exports.vc_revoke = exports.vc_get_proofs_for_root = exports.vc_add_proofs = exports.vc_spend = exports.vc_get_list = exports.vc_get = exports.vc_mint = exports.dl_verify_proof = exports.dl_delete_mirror = exports.dl_new_mirror = exports.dl_get_mirrors = exports.dl_owned_singletons = exports.dl_history = exports.dl_update_multiple = exports.dl_update_root = exports.dl_singletons_by_root = exports.dl_latest_singleton = exports.dl_stop_tracking = exports.dl_track_new = exports.create_new_dl = exports.take_offer = exports.get_coin_records = exports.spend_clawback_coins = exports.send_transaction_multi = exports.send_transaction = exports.send_clawback_transaction = exports.rl_set_user_info = exports.pw_status = exports.pw_absorb_rewards = exports.pw_self_pool = void 0;
|
|
7
|
+
exports.reset_log_level = exports.set_log_level = exports.get_log_level = exports.healthz = exports.get_version = exports.get_routes = exports.stop_node = exports.close_connection = exports.open_connection = exports.get_connections = exports.get_network_info = exports.chia_common_service = exports.get_peer_counts = exports.get_ips_after_timestamp = exports.chia_crawler_service = exports.verify_proof = exports.get_proof = exports.clear_pending_roots = exports.check_plugins = exports.get_sync_status_dl = exports.cancel_offer_dl = exports.verify_offer = exports.take_offer_dl = exports.make_offer = exports.add_missing_files = exports.get_root_history = exports.get_kv_diff = exports.subscriptions = exports.remove_subscriptions = exports.get_mirrors = exports.delete_mirror = exports.add_mirror = exports.unsubscribe = exports.subscribe = exports.insert = exports.delete_key_dl = void 0;
|
|
8
8
|
var index_1 = require("./farmer/index");
|
|
9
9
|
Object.defineProperty(exports, "chia_farmer_service", { enumerable: true, get: function () { return index_1.chia_farmer_service; } });
|
|
10
10
|
Object.defineProperty(exports, "get_reward_targets", { enumerable: true, get: function () { return index_1.get_reward_targets; } });
|
|
@@ -27,6 +27,7 @@ Object.defineProperty(exports, "get_aggsig_additional_data", { enumerable: true,
|
|
|
27
27
|
Object.defineProperty(exports, "get_all_mempool_items", { enumerable: true, get: function () { return index_2.get_all_mempool_items; } });
|
|
28
28
|
Object.defineProperty(exports, "get_all_mempool_tx_ids", { enumerable: true, get: function () { return index_2.get_all_mempool_tx_ids; } });
|
|
29
29
|
Object.defineProperty(exports, "get_mempool_items_by_coin_name", { enumerable: true, get: function () { return index_2.get_mempool_items_by_coin_name; } });
|
|
30
|
+
Object.defineProperty(exports, "create_block_generator", { enumerable: true, get: function () { return index_2.create_block_generator; } });
|
|
30
31
|
Object.defineProperty(exports, "get_block_record_by_height", { enumerable: true, get: function () { return index_2.get_block_record_by_height; } });
|
|
31
32
|
Object.defineProperty(exports, "get_block_record", { enumerable: true, get: function () { return index_2.get_block_record; } });
|
|
32
33
|
Object.defineProperty(exports, "get_block_records", { enumerable: true, get: function () { return index_2.get_block_records; } });
|
|
@@ -356,10 +356,9 @@ export type TSendTransactionMultiResponse = {
|
|
|
356
356
|
transaction: TransactionRecordConvenience;
|
|
357
357
|
transaction_id: TransactionRecordConvenience["name"];
|
|
358
358
|
transactions: TransactionRecordConvenience[];
|
|
359
|
-
unsigned_transactions: UnsignedTransaction[];
|
|
360
359
|
};
|
|
361
|
-
export type WsSendTransactionMultiMessage = GetMessageType<chia_wallet_service, send_transaction_multi_command,
|
|
362
|
-
export declare function send_transaction_multi<T extends TRPCAgent | TDaemon>(agent: T, data:
|
|
360
|
+
export type WsSendTransactionMultiMessage<R> = GetMessageType<chia_wallet_service, send_transaction_multi_command, R>;
|
|
361
|
+
export declare function send_transaction_multi<T extends TRPCAgent | TDaemon, D extends TSendTransactionMultiRequest>(agent: T, data: D): Promise<ResType<T, TxeResp<D, TSendTransactionMultiResponse>, WsSendTransactionMultiMessage<TxeResp<D, TSendTransactionMultiResponse>>>>;
|
|
363
362
|
export declare const spend_clawback_coins_command = "spend_clawback_coins";
|
|
364
363
|
export type spend_clawback_coins_command = typeof spend_clawback_coins_command;
|
|
365
364
|
export type TSpendClawbackCoinsRequest = {
|