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
package/api/rpc/wallet/index.js
CHANGED
|
@@ -9,12 +9,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
13
|
-
exports.cat_asset_id_to_name_command = exports.cat_set_name = exports.cat_set_name_command = exports.get_cat_list = exports.get_cat_list_command = exports.sign_message_by_id = exports.sign_message_by_id_command = exports.sign_message_by_address = exports.sign_message_by_address_command = exports.get_transaction_memo = exports.get_transaction_memo_command = exports.verify_signature = exports.verify_signature_command = exports.send_notification = exports.send_notification_command = exports.delete_notifications = exports.delete_notifications_command = exports.get_notifications = exports.get_notifications_command = exports.extend_derivation_index = exports.extend_derivation_index_command = exports.get_current_derivation_index = exports.get_current_derivation_index_command = exports.get_coin_records_by_names = exports.get_coin_records_by_names_command = exports.get_spendable_coins = exports.get_spendable_coins_command = exports.select_coins = exports.select_coins_command = exports.delete_unconfirmed_transactions = exports.delete_unconfirmed_transactions_command = exports.create_signed_transaction = exports.create_signed_transaction_command = exports.get_farmed_amount = exports.get_farmed_amount_command = exports.get_transaction_count = exports.get_transaction_count_command = exports.get_coin_records = exports.get_coin_records_command = exports.spend_clawback_coins = exports.spend_clawback_coins_command = exports.send_transaction_multi = exports.send_transaction_multi_command = exports.send_transaction = exports.send_transaction_command = exports.get_next_address =
|
|
14
|
-
exports.did_get_information_needed_for_recovery_command = exports.did_create_attest = exports.did_create_attest_command = exports.did_get_metadata = exports.did_get_metadata_command = exports.did_get_recovery_list = exports.did_get_recovery_list_command = exports.did_recovery_spend = exports.did_recovery_spend_command = exports.did_get_did = exports.did_get_did_command = exports.did_get_pubkey = exports.did_get_pubkey_command = exports.did_spend = exports.did_spend_command = exports.did_update_metadata = exports.did_update_metadata_command = exports.did_update_recovery_ids = exports.did_update_recovery_ids_command = exports.did_get_wallet_name = exports.did_get_wallet_name_command = exports.did_set_wallet_name = exports.did_set_wallet_name_command = exports.cancel_offers = exports.cancel_offers_command = exports.cancel_offer = exports.cancel_offer_command = exports.get_offers_count = exports.get_offers_count_command = exports.get_all_offers = exports.get_all_offers_command = exports.get_offer = exports.get_offer_command = exports.take_offer = exports.take_offer_command = exports.check_offer_validity = exports.check_offer_validity_command = exports.get_offer_summary = exports.get_offer_summary_command = exports.create_offer_for_ids = exports.create_offer_for_ids_command = exports.cat_get_asset_id = exports.cat_get_asset_id_command = exports.cat_spend = exports.cat_spend_command = exports.get_stray_cats =
|
|
15
|
-
exports.nft_set_did_bulk_command = exports.nft_set_nft_did = exports.nft_set_nft_did_command = exports.nft_get_nfts = exports.nft_get_nfts_command = exports.nft_count_nfts = exports.nft_count_nfts_command = exports.nft_mint_nft = exports.nft_mint_nft_command = exports.dao_free_coins_from_finished_proposals = exports.dao_free_coins_from_finished_proposals_command = exports.dao_close_proposal = exports.dao_close_proposal_command = exports.dao_parse_proposal = exports.dao_parse_proposal_command = exports.dao_vote_on_proposal = exports.dao_vote_on_proposal_command = exports.dao_create_proposal = exports.dao_create_proposal_command = exports.dao_exit_lockup = exports.dao_exit_lockup_command = exports.dao_get_proposal_state = exports.dao_get_proposal_state_command = exports.dao_get_proposals = exports.dao_get_proposals_command = exports.dao_send_to_lockup = exports.dao_send_to_lockup_command = exports.dao_get_rules = exports.dao_get_rules_command = exports.dao_get_treasury_id = exports.dao_get_treasury_id_command = exports.dao_get_treasury_balance = exports.dao_get_treasury_balance_command = exports.dao_add_funds_to_treasury = exports.dao_add_funds_to_treasury_command = exports.dao_adjust_filter_level = exports.dao_adjust_filter_level_command = exports.did_transfer_did = exports.did_transfer_did_command = exports.did_find_lost_did = exports.did_find_lost_did_command = exports.did_get_info = exports.did_get_info_command = exports.did_message_spend = exports.did_message_spend_command = exports.did_create_backup_file =
|
|
16
|
-
exports.dl_history_command = exports.dl_update_multiple = exports.dl_update_multiple_command = exports.dl_update_root = exports.dl_update_root_command = exports.dl_singletons_by_root = exports.dl_singletons_by_root_command = exports.dl_latest_singleton = exports.dl_latest_singleton_command = exports.dl_stop_tracking = exports.dl_stop_tracking_command = exports.dl_track_new = exports.dl_track_new_command = exports.create_new_dl = exports.create_new_dl_command = exports.pw_status = exports.pw_status_command = exports.pw_absorb_rewards = exports.pw_absorb_rewards_command = exports.pw_self_pool = exports.pw_self_pool_command = exports.pw_join_pool = exports.pw_join_pool_command = exports.add_rate_limited_funds = exports.add_rate_limited_funds_command = exports.send_clawback_transaction = exports.send_clawback_transaction_command = exports.rl_set_user_info = exports.rl_set_user_info_command = exports.nft_mint_bulk = exports.nft_mint_bulk_command = exports.nft_calculate_royalties = exports.nft_calculate_royalties_command = exports.nft_add_uri = exports.nft_add_uri_command = exports.nft_get_info = exports.nft_get_info_command = exports.nft_transfer_nft = exports.nft_transfer_nft_command = exports.nft_set_nft_status = exports.nft_set_nft_status_command = exports.nft_get_wallets_with_dids = exports.nft_get_wallets_with_dids_command = exports.nft_get_wallet_did = exports.nft_get_wallet_did_command = exports.nft_get_by_did =
|
|
17
|
-
exports.crcat_approve_pending = exports.crcat_approve_pending_command = exports.vc_revoke = exports.vc_revoke_command = exports.vc_get_proofs_for_root = exports.vc_get_proofs_for_root_command = exports.vc_add_proofs = exports.vc_add_proofs_command = exports.vc_spend = exports.vc_spend_command = exports.vc_get_list = exports.vc_get_list_command = exports.vc_get = exports.vc_get_command = exports.vc_mint = exports.vc_mint_command = exports.dl_verify_proof = exports.dl_verify_proof_command = exports.dl_delete_mirror = exports.dl_delete_mirror_command = exports.dl_new_mirror = exports.dl_new_mirror_command = exports.dl_get_mirrors =
|
|
12
|
+
exports.get_next_address_command = exports.get_transactions = exports.get_transactions_command = exports.get_transaction = exports.get_transaction_command = exports.get_wallet_balances = exports.get_wallet_balances_command = exports.get_wallet_balance = exports.get_wallet_balance_command = exports.create_new_wallet = exports.create_new_wallet_command = exports.get_wallets = exports.get_wallets_command = exports.get_initial_freeze_period_of_wallet = exports.get_initial_freeze_period_command_of_wallet = exports.get_auto_claim = exports.get_auto_claim_command = exports.set_auto_claim = exports.set_auto_claim_command = exports.get_timestamp_for_height = exports.get_timestamp_for_height_command = exports.push_transactions = exports.push_transactions_command = exports.push_tx = exports.push_tx_command = exports.get_height_info = exports.get_height_info_command = exports.get_sync_status = exports.get_sync_status_command = exports.set_wallet_resync_on_startup = exports.set_wallet_resync_on_startup_command = exports.delete_all_keys = exports.delete_all_keys_command = exports.check_delete_key = exports.check_delete_key_command = exports.delete_key = exports.delete_key_command = exports.add_key = exports.add_key_command = exports.generate_mnemonic = exports.generate_mnemonic_command = exports.get_private_key = exports.get_private_key_command = exports.get_public_keys = exports.get_public_keys_command = exports.get_logged_in_fingerprint = exports.get_logged_in_fingerprint_command = exports.log_in = exports.log_in_command = exports.chia_wallet_service = void 0;
|
|
13
|
+
exports.get_stray_cats_command = exports.cat_get_name = exports.cat_get_name_command = exports.cat_asset_id_to_name = exports.cat_asset_id_to_name_command = exports.cat_set_name = exports.cat_set_name_command = exports.get_cat_list = exports.get_cat_list_command = exports.sign_message_by_id = exports.sign_message_by_id_command = exports.sign_message_by_address = exports.sign_message_by_address_command = exports.get_transaction_memo = exports.get_transaction_memo_command = exports.verify_signature = exports.verify_signature_command = exports.send_notification = exports.send_notification_command = exports.delete_notifications = exports.delete_notifications_command = exports.get_notifications = exports.get_notifications_command = exports.extend_derivation_index = exports.extend_derivation_index_command = exports.get_current_derivation_index = exports.get_current_derivation_index_command = exports.get_coin_records_by_names = exports.get_coin_records_by_names_command = exports.get_spendable_coins = exports.get_spendable_coins_command = exports.select_coins = exports.select_coins_command = exports.delete_unconfirmed_transactions = exports.delete_unconfirmed_transactions_command = exports.create_signed_transaction = exports.create_signed_transaction_command = exports.get_farmed_amount = exports.get_farmed_amount_command = exports.get_transaction_count = exports.get_transaction_count_command = exports.get_coin_records = exports.get_coin_records_command = exports.spend_clawback_coins = exports.spend_clawback_coins_command = exports.send_transaction_multi = exports.send_transaction_multi_command = exports.send_transaction = exports.send_transaction_command = exports.get_next_address = void 0;
|
|
14
|
+
exports.did_create_backup_file_command = exports.did_get_current_coin_info = exports.did_get_current_coin_info_command = exports.did_get_information_needed_for_recovery = exports.did_get_information_needed_for_recovery_command = exports.did_create_attest = exports.did_create_attest_command = exports.did_get_metadata = exports.did_get_metadata_command = exports.did_get_recovery_list = exports.did_get_recovery_list_command = exports.did_recovery_spend = exports.did_recovery_spend_command = exports.did_get_did = exports.did_get_did_command = exports.did_get_pubkey = exports.did_get_pubkey_command = exports.did_spend = exports.did_spend_command = exports.did_update_metadata = exports.did_update_metadata_command = exports.did_update_recovery_ids = exports.did_update_recovery_ids_command = exports.did_get_wallet_name = exports.did_get_wallet_name_command = exports.did_set_wallet_name = exports.did_set_wallet_name_command = exports.cancel_offers = exports.cancel_offers_command = exports.cancel_offer = exports.cancel_offer_command = exports.get_offers_count = exports.get_offers_count_command = exports.get_all_offers = exports.get_all_offers_command = exports.get_offer = exports.get_offer_command = exports.take_offer = exports.take_offer_command = exports.check_offer_validity = exports.check_offer_validity_command = exports.get_offer_summary = exports.get_offer_summary_command = exports.create_offer_for_ids = exports.create_offer_for_ids_command = exports.cat_get_asset_id = exports.cat_get_asset_id_command = exports.cat_spend = exports.cat_spend_command = exports.get_stray_cats = void 0;
|
|
15
|
+
exports.nft_get_by_did_command = exports.nft_transfer_bulk = exports.nft_transfer_bulk_command = exports.nft_set_did_bulk = exports.nft_set_did_bulk_command = exports.nft_set_nft_did = exports.nft_set_nft_did_command = exports.nft_get_nfts = exports.nft_get_nfts_command = exports.nft_count_nfts = exports.nft_count_nfts_command = exports.nft_mint_nft = exports.nft_mint_nft_command = exports.dao_free_coins_from_finished_proposals = exports.dao_free_coins_from_finished_proposals_command = exports.dao_close_proposal = exports.dao_close_proposal_command = exports.dao_parse_proposal = exports.dao_parse_proposal_command = exports.dao_vote_on_proposal = exports.dao_vote_on_proposal_command = exports.dao_create_proposal = exports.dao_create_proposal_command = exports.dao_exit_lockup = exports.dao_exit_lockup_command = exports.dao_get_proposal_state = exports.dao_get_proposal_state_command = exports.dao_get_proposals = exports.dao_get_proposals_command = exports.dao_send_to_lockup = exports.dao_send_to_lockup_command = exports.dao_get_rules = exports.dao_get_rules_command = exports.dao_get_treasury_id = exports.dao_get_treasury_id_command = exports.dao_get_treasury_balance = exports.dao_get_treasury_balance_command = exports.dao_add_funds_to_treasury = exports.dao_add_funds_to_treasury_command = exports.dao_adjust_filter_level = exports.dao_adjust_filter_level_command = exports.did_transfer_did = exports.did_transfer_did_command = exports.did_find_lost_did = exports.did_find_lost_did_command = exports.did_get_info = exports.did_get_info_command = exports.did_message_spend = exports.did_message_spend_command = exports.did_create_backup_file = void 0;
|
|
16
|
+
exports.dl_get_mirrors_command = exports.dl_owned_singletons = exports.dl_owned_singletons_command = exports.dl_history = exports.dl_history_command = exports.dl_update_multiple = exports.dl_update_multiple_command = exports.dl_update_root = exports.dl_update_root_command = exports.dl_singletons_by_root = exports.dl_singletons_by_root_command = exports.dl_latest_singleton = exports.dl_latest_singleton_command = exports.dl_stop_tracking = exports.dl_stop_tracking_command = exports.dl_track_new = exports.dl_track_new_command = exports.create_new_dl = exports.create_new_dl_command = exports.pw_status = exports.pw_status_command = exports.pw_absorb_rewards = exports.pw_absorb_rewards_command = exports.pw_self_pool = exports.pw_self_pool_command = exports.pw_join_pool = exports.pw_join_pool_command = exports.add_rate_limited_funds = exports.add_rate_limited_funds_command = exports.send_clawback_transaction = exports.send_clawback_transaction_command = exports.rl_set_user_info = exports.rl_set_user_info_command = exports.nft_mint_bulk = exports.nft_mint_bulk_command = exports.nft_calculate_royalties = exports.nft_calculate_royalties_command = exports.nft_add_uri = exports.nft_add_uri_command = exports.nft_get_info = exports.nft_get_info_command = exports.nft_transfer_nft = exports.nft_transfer_nft_command = exports.nft_set_nft_status = exports.nft_set_nft_status_command = exports.nft_get_wallets_with_dids = exports.nft_get_wallets_with_dids_command = exports.nft_get_wallet_did = exports.nft_get_wallet_did_command = exports.nft_get_by_did = void 0;
|
|
17
|
+
exports.submit_transactions = exports.submit_transactions_command = exports.apply_signatures = exports.apply_signatures_command = exports.gather_signing_info = exports.gather_signing_info_command = exports.crcat_approve_pending = exports.crcat_approve_pending_command = exports.vc_revoke = exports.vc_revoke_command = exports.vc_get_proofs_for_root = exports.vc_get_proofs_for_root_command = exports.vc_add_proofs = exports.vc_add_proofs_command = exports.vc_spend = exports.vc_spend_command = exports.vc_get_list = exports.vc_get_list_command = exports.vc_get = exports.vc_get_command = exports.vc_mint = exports.vc_mint_command = exports.dl_verify_proof = exports.dl_verify_proof_command = exports.dl_delete_mirror = exports.dl_delete_mirror_command = exports.dl_new_mirror = exports.dl_new_mirror_command = exports.dl_get_mirrors = void 0;
|
|
18
18
|
exports.chia_wallet_service = "chia_wallet";
|
|
19
19
|
// # Key management
|
|
20
20
|
exports.log_in_command = "log_in";
|
|
@@ -116,13 +116,6 @@ function push_transactions(agent, data) {
|
|
|
116
116
|
});
|
|
117
117
|
}
|
|
118
118
|
exports.push_transactions = push_transactions;
|
|
119
|
-
exports.farm_block_command = "farm_block";
|
|
120
|
-
function farm_block(agent, data) {
|
|
121
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
122
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.farm_block_command, data);
|
|
123
|
-
});
|
|
124
|
-
}
|
|
125
|
-
exports.farm_block = farm_block;
|
|
126
119
|
exports.get_timestamp_for_height_command = "get_timestamp_for_height";
|
|
127
120
|
function get_timestamp_for_height(agent) {
|
|
128
121
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -151,13 +144,6 @@ function get_initial_freeze_period_of_wallet(agent) {
|
|
|
151
144
|
});
|
|
152
145
|
}
|
|
153
146
|
exports.get_initial_freeze_period_of_wallet = get_initial_freeze_period_of_wallet;
|
|
154
|
-
exports.get_network_info_command_of_wallet = "get_network_info";
|
|
155
|
-
function get_network_info_of_wallet(agent) {
|
|
156
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
157
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.get_network_info_command_of_wallet);
|
|
158
|
-
});
|
|
159
|
-
}
|
|
160
|
-
exports.get_network_info_of_wallet = get_network_info_of_wallet;
|
|
161
147
|
// # Wallet management
|
|
162
148
|
exports.get_wallets_command = "get_wallets";
|
|
163
149
|
function get_wallets(agent, data) {
|
|
@@ -991,3 +977,24 @@ function crcat_approve_pending(agent, data) {
|
|
|
991
977
|
});
|
|
992
978
|
}
|
|
993
979
|
exports.crcat_approve_pending = crcat_approve_pending;
|
|
980
|
+
exports.gather_signing_info_command = "gather_signing_info";
|
|
981
|
+
function gather_signing_info(agent, data) {
|
|
982
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
983
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.gather_signing_info_command, data);
|
|
984
|
+
});
|
|
985
|
+
}
|
|
986
|
+
exports.gather_signing_info = gather_signing_info;
|
|
987
|
+
exports.apply_signatures_command = "apply_signatures";
|
|
988
|
+
function apply_signatures(agent, data) {
|
|
989
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
990
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.apply_signatures_command, data);
|
|
991
|
+
});
|
|
992
|
+
}
|
|
993
|
+
exports.apply_signatures = apply_signatures;
|
|
994
|
+
exports.submit_transactions_command = "submit_transactions";
|
|
995
|
+
function submit_transactions(agent, data) {
|
|
996
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
997
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.submit_transactions_command, data);
|
|
998
|
+
});
|
|
999
|
+
}
|
|
1000
|
+
exports.submit_transactions = submit_transactions;
|
package/api/types.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { float, int, str, uint16 } from "./chia/types/_python_types_";
|
|
|
3
3
|
import { bytes32 } from "./chia/types/blockchain_format/sized_bytes";
|
|
4
4
|
import { TRPCAgent } from "../rpc/index";
|
|
5
5
|
import { TDaemon } from "../daemon/index";
|
|
6
|
-
export
|
|
6
|
+
export type GetMessageType<O extends string, C extends string, D> = {
|
|
7
7
|
origin: O;
|
|
8
8
|
command: C;
|
|
9
9
|
ack: boolean;
|
|
@@ -11,10 +11,11 @@ export declare type GetMessageType<O extends string, C extends string, D> = {
|
|
|
11
11
|
request_id: string;
|
|
12
12
|
destination: string;
|
|
13
13
|
};
|
|
14
|
-
export
|
|
14
|
+
export type ResType<T extends TRPCAgent | TDaemon, A, D> = T extends TDaemon ? D : A;
|
|
15
15
|
export declare const wallet_ui_service = "wallet_ui";
|
|
16
16
|
export declare const metrics_service = "metrics";
|
|
17
|
-
export declare
|
|
17
|
+
export declare const unfinished_block_info_service = "unfinished_block_info";
|
|
18
|
+
export type TConnectionGeneral = {
|
|
18
19
|
type: NodeType;
|
|
19
20
|
local_port: int;
|
|
20
21
|
peer_host: str;
|
package/api/types.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.metrics_service = exports.wallet_ui_service = void 0;
|
|
3
|
+
exports.unfinished_block_info_service = exports.metrics_service = exports.wallet_ui_service = void 0;
|
|
4
4
|
exports.wallet_ui_service = "wallet_ui";
|
|
5
5
|
exports.metrics_service = "metrics";
|
|
6
|
+
exports.unfinished_block_info_service = "unfinished_block_info";
|
|
@@ -2,16 +2,16 @@ import { TPlotQueue } from "../daemon/index";
|
|
|
2
2
|
import { TDaemon } from "../../../daemon/index";
|
|
3
3
|
import { GetMessageType } from "../../types";
|
|
4
4
|
export declare const chia_plotter_service = "chia_plotter";
|
|
5
|
-
export
|
|
5
|
+
export type chia_plotter_service = typeof chia_plotter_service;
|
|
6
6
|
export declare const state_changed_command_of_plots = "state_changed";
|
|
7
|
-
export
|
|
8
|
-
export
|
|
7
|
+
export type state_changed_command_of_plots = typeof state_changed_command_of_plots;
|
|
8
|
+
export type TStateChangedBroadCastOfPlots = {
|
|
9
9
|
state: "log_changed" | "state_changed";
|
|
10
10
|
queue: TPlotQueue[];
|
|
11
11
|
};
|
|
12
|
-
export
|
|
12
|
+
export type WsStateChangedPlotsMessage = GetMessageType<chia_plotter_service, state_changed_command_of_plots, TStateChangedBroadCastOfPlots>;
|
|
13
13
|
export declare function on_state_changed_of_plots(daemon: TDaemon, callback: (e: WsStateChangedPlotsMessage) => unknown): Promise<() => void>;
|
|
14
|
-
export
|
|
15
|
-
export
|
|
16
|
-
export
|
|
14
|
+
export type WsPlotsMessage = WsStateChangedPlotsMessage;
|
|
15
|
+
export type chia_plots_create_commands = state_changed_command_of_plots;
|
|
16
|
+
export type TChiaPlotsCreateBroadcast = TStateChangedBroadCastOfPlots;
|
|
17
17
|
export declare function on_message_from_chia_plots_create(daemon: TDaemon, callback: (e: WsPlotsMessage) => unknown): Promise<() => void>;
|
|
@@ -3,8 +3,8 @@ import { int, str, uint64 } from "../../chia/types/_python_types_";
|
|
|
3
3
|
import { TDaemon } from "../../../daemon/index";
|
|
4
4
|
import { GetMessageType } from "../../types";
|
|
5
5
|
export declare const chia_crawler_service = "chia_crawler";
|
|
6
|
-
export
|
|
7
|
-
export
|
|
6
|
+
export type chia_crawler_service = typeof chia_crawler_service;
|
|
7
|
+
export type TPeerCounts = {
|
|
8
8
|
total_last_5_days: int;
|
|
9
9
|
reliable_nodes: int;
|
|
10
10
|
ipv4_last_5_days: bytes32;
|
|
@@ -12,17 +12,17 @@ export declare type TPeerCounts = {
|
|
|
12
12
|
versions: Record<str, int>;
|
|
13
13
|
};
|
|
14
14
|
export declare const loaded_initial_peers_command = "loaded_initial_peers";
|
|
15
|
-
export
|
|
16
|
-
export
|
|
15
|
+
export type loaded_initial_peers_command = typeof loaded_initial_peers_command;
|
|
16
|
+
export type TLoadedInitialPeersBroadCast = {
|
|
17
17
|
peer_counts: TPeerCounts;
|
|
18
18
|
};
|
|
19
|
-
export
|
|
19
|
+
export type WsLoadedInitialPeersMessage = GetMessageType<chia_crawler_service, loaded_initial_peers_command, TLoadedInitialPeersBroadCast>;
|
|
20
20
|
export declare function on_loaded_initial_peers(daemon: TDaemon, callback: (e: WsLoadedInitialPeersMessage) => unknown): Promise<() => void>;
|
|
21
21
|
export declare const crawl_batch_completed_command = "crawl_batch_completed";
|
|
22
|
-
export
|
|
23
|
-
export
|
|
22
|
+
export type crawl_batch_completed_command = typeof crawl_batch_completed_command;
|
|
23
|
+
export type TCrawlBatchCompletedBroadCast = {
|
|
24
24
|
peer_counts: TPeerCounts;
|
|
25
25
|
};
|
|
26
|
-
export
|
|
26
|
+
export type WsCrawlBatchCompletedMessage = GetMessageType<chia_crawler_service, crawl_batch_completed_command, TCrawlBatchCompletedBroadCast>;
|
|
27
27
|
export declare function on_crawl_batch_completed(daemon: TDaemon, callback: (e: WsCrawlBatchCompletedMessage) => unknown): Promise<() => void>;
|
|
28
|
-
export
|
|
28
|
+
export type WsCrawlerMessage = WsLoadedInitialPeersMessage | WsCrawlBatchCompletedMessage;
|