chia-agent 10.1.0 → 11.0.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 +147 -48
- package/README.md +5 -5
- package/api/chia/types/blockchain_format/program.d.ts +0 -2
- package/api/chia/types/blockchain_format/serialized_program.d.ts +2 -0
- package/api/chia/types/blockchain_format/serialized_program.js +2 -0
- package/api/chia/types/coin_spend.d.ts +1 -1
- package/api/chia/types/full_block.d.ts +1 -1
- package/api/chia/types/mempool_item.d.ts +9 -2
- package/api/chia/wallet/nft_wallet/nft_info.d.ts +1 -0
- package/api/rpc/full_node/index.d.ts +101 -9
- package/api/rpc/full_node/index.js +65 -1
- package/api/rpc/index.d.ts +2 -2
- package/api/rpc/index.js +17 -4
- package/api/rpc/wallet/index.d.ts +56 -2
- package/api/rpc/wallet/index.js +26 -5
- package/api/ws/farmer/index.d.ts +13 -3
- package/api/ws/farmer/index.js +32 -3
- package/api/ws/harvester/index.d.ts +14 -4
- package/api/ws/harvester/index.js +27 -1
- package/api/ws/index.d.ts +3 -3
- package/api/ws/index.js +10 -4
- package/api/ws/wallet/index.d.ts +33 -15
- package/api/ws/wallet/index.js +40 -11
- package/package.json +1 -1
package/api/rpc/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
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, TGetSignagePointsRequest, TGetSignagePointsResponse, get_signage_points, TSetRewardTargetRequest, TSetRewardTargetResponse, set_reward_targets, TGetHarvestersRequest, 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, TGetPoolStateRequest, 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, TGetAllMempoolItemsRequest, TGetAllMempoolItemsResponse, get_all_mempool_items, TGetAllMempoolTxIdsRequest, TGetAllMempoolTxIdsResponse, get_all_mempool_tx_ids, TGetBlockRecordByHeightRequest, TGetBlockRecordByHeightResponse, get_block_record_by_height, TGetBlockRecordRequest, TGetBlockRecordResponse, get_block_record, TGetBlockRecordsRequest, TGetBlockRecordsResponse, get_block_records, TGetBlockSpendsRequest, TGetBlockSpendsResponse, get_block_spends, TGetBlockRequest, TGetBlockResponse, get_block, TGetBlockchainStateRequest, 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, TGetInitialFreezePeriodRequestOfFullNode, TGetInitialFreezePeriodResponseOfFullNode, get_initial_freeze_period_of_full_node, TGetMempoolItemByTxIdRequest, TGetMempoolItemByTxIdResponse, get_mempool_item_by_tx_id, TGetNetworkInfoRequestOfFullNode, TGetNetworkInfoResponseOfFullNode, get_network_info_of_full_node, TGetNetworkSpaceRequest, TGetNetworkSpaceResponse, get_network_space, TGetUnfinishedBlockHeadersRequest, TGetUnfinishedBlockHeadersResponse, get_unfinished_block_headers, TPushTxRequest, TPushTxResponse, push_tx, TGetPuzzleAndSolutionRequest, TGetPuzzleAndSolutionResponse, get_puzzle_and_solution, TGetFeeEstimateRequest, TGetFeeEstimateResponse, get_fee_estimate, } from "./full_node/index";
|
|
4
|
+
export { chia_full_node_service, TGetAdditionsAndRemovalsRequest, TGetAdditionsAndRemovalsResponse, get_additions_and_removals, TGetAllMempoolItemsRequest, TGetAllMempoolItemsResponse, get_all_mempool_items, TGetAllMempoolTxIdsRequest, TGetAllMempoolTxIdsResponse, get_all_mempool_tx_ids, TGetBlockRecordByHeightRequest, TGetBlockRecordByHeightResponse, get_block_record_by_height, TGetBlockRecordRequest, TGetBlockRecordResponse, get_block_record, TGetBlockRecordsRequest, TGetBlockRecordsResponse, get_block_records, TGetBlockSpendsRequest, TGetBlockSpendsResponse, get_block_spends, TGetBlockRequest, TGetBlockResponse, get_block, TGetBlockchainStateRequest, 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, TGetInitialFreezePeriodRequestOfFullNode, TGetInitialFreezePeriodResponseOfFullNode, get_initial_freeze_period_of_full_node, TGetMempoolItemByTxIdRequest, TGetMempoolItemByTxIdResponse, get_mempool_item_by_tx_id, TGetNetworkInfoRequestOfFullNode, TGetNetworkInfoResponseOfFullNode, get_network_info_of_full_node, TGetNetworkSpaceRequest, TGetNetworkSpaceResponse, get_network_space, TGetUnfinishedBlockHeadersRequest, 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 as TFarmBlockFullNodeRequest, TFarmBlockResponse as TFarmBlockFullNodeResponse, farm_block as farm_block_fullnode, 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, TGetPlotDirectoriesRequest, TGetPlotDirectoriesResponse, get_plot_directories, TGetPlotsRequest, TGetPlotsResponse, get_plots, TRefreshPlotsRequest, TRefreshPlotsResponse, refresh_plots, TRemovePlotDirectoryRequest, TRemovePlotDirectoryResponse, remove_plot_directory, } from "./harvester/index";
|
|
7
7
|
import type { RpcWalletMessage } from "./wallet/index";
|
|
8
|
-
export { chia_wallet_service, TAddKeyRequest, TAddKeyResponse, add_key, TAddRateLimitedFundsRequest, TAddRateLimitedFundsResponse, add_rate_limited_funds, TAdditions, TCancelOfferRequest, TCancelOfferResponse, cancel_offer, TCancelOffersRequest, TCancelOffersResponse, cancel_offers, TCatGetAssetIdRequest, TCatGetAssetIdResponse, cat_get_asset_id, TCatGetNameRequest, TCatGetNameResponse, cat_get_name, TGetStrayCatsResponse, get_stray_cats, TCatAssetIdToNameRequest, TCatAssetIdToNameResponse, cat_asset_id_to_name, TCatSetNameRequest, TCatSetNameResponse, cat_set_name, TCatSpendRequest, TCatSpendResponse, cat_spend, TCheckOfferValidityRequest, TCheckOfferValidityResponse, check_offer_validity, TCreateNewWalletRequest, TCreateNewWalletResponse, create_new_wallet, TCreateOfferForIdsRequest, TCreateOfferForIdsResponse, create_offer_for_ids, TCreateSignedTransactionRequest, TCreateSignedTransactionResponse, create_signed_transaction, TDeleteUnconfirmedTransactionsRequest, TDeleteUnconfirmedTransactionsResponse, delete_unconfirmed_transactions, TSelectCoinsRequest, TSelectCoinsResponse, select_coins, TGetCurrentDerivationIndexResponse, get_current_derivation_index, TExtendDerivationIndexRequest, TExtendDerivationIndexResponse, extend_derivation_index, TGetNotificationsRequest, TGetNotificationsResponse, get_notifications, TDeleteNotificationsRequest, TDeleteNotificationsResponse, delete_notifications, TSendNotificationRequest, TSendNotificationResponse, send_notification, TSignMessageByAddressRequest, TSignMessageByAddressResponse, sign_message_by_address, TSignMessageByIdRequest, TSignMessageByIdResponse, sign_message_by_id, TNftCalculateRoyaltiesRequest, TNftCalculateRoyaltiesResponse, nft_calculate_royalties, TNftMintBulkRequest, TNftMintBulkResponse, nft_mint_bulk, TNftSetDidBulkRequest, TNftSetDidBulkResponse, nft_set_did_bulk, TNftTransferBulkRequest, TNftTransferBulkResponse, nft_transfer_bulk, TCreate_New_CAT_WalletRequest, TCreate_New_CAT_WalletResponse, TCreate_New_DID_WalletRequest, TCreate_New_DID_WalletResponse, TCreate_New_RL_WalletRequest, TCreate_New_RL_WalletResponse, TDeleteAllKeysRequest, TDeleteAllKeysResponse, delete_all_keys, TDeleteKeyRequest, TDeleteKeyResponse, delete_key, TDidSetWalletNameRequest, TDidSetWalletNameResponse, did_set_wallet_name, TDidGetWalletNameRequest, TDidGetWalletNameResponse, did_get_wallet_name, TDidCreateAttestRequest, TDidCreateAttestResponse, did_create_attest, TDidCreateBackupFileRequest, TDidCreateBackupFileResponse, did_create_backup_file, TDidTransferDidRequest, TDidTransferDidResponse, did_transfer_did, TDidGetDidRequest, TDidGetDidResponse, did_get_did, TDidGetInformationNeededForRecoveryRequest, TDidGetInformationNeededForRecoveryResponse, did_get_information_needed_for_recovery, TDidGetCurrentCoinInfoRequest, TDidGetCurrentCoinInfoResponse, did_get_current_coin_info, TDidGetPubkeyRequest, TDidGetPubkeyResponse, did_get_pubkey, TDidGetRecoveryListRequest, TDidGetRecoveryListResponse, did_get_recovery_list, TDidGetMetadataRequest, TDidGetMetadataResponse, did_get_metadata, TDidRecoverySpendRequest, TDidRecoverySpendResponse, did_recovery_spend, TDidSpendRequest, TDidSpendResponse, did_spend, TDidUpdateRecoveryIdsRequest, TDidUpdateRecoveryIdsResponse, did_update_recovery_ids, TDidUpdateMetadataRequest, TDidUpdateMetadataResponse, did_update_metadata, TNftMintNftRequest, TNftMintNftResponse, nft_mint_nft, TNftGetNftsRequest, TNftGetNftsResponse, nft_get_nfts, TNftSetNftDidRequest, TNftSetNftDidResponse, nft_set_nft_did, TNftGetByDidRequest, TNftGetByDidResponse, nft_get_by_did, TNftGetWalletDidRequest, TNftGetWalletDidResponse, nft_get_wallet_did, TNftGetWalletsWithDidsResponse, nft_get_wallets_with_dids, TNftSetNftStatusRequest, TNftSetNftStatusResponse, nft_set_nft_status, TNftTransferNftRequest, TNftTransferNftResponse, nft_transfer_nft, TNftGetInfoRequest, TNftGetInfoResponse, nft_get_info, TNftAddUriRequest, TNftAddUriResponse, nft_add_uri, TFarmBlockRequest, TFarmBlockResponse, farm_block, TGetTimestampForHeightResponse, get_timestamp_for_height, TGenerateMnemonicRequest, TGenerateMnemonicResponse, generate_mnemonic, TGetAllOffersRequest, TGetAllOffersResponse, get_all_offers, TGetCatListResponse, get_cat_list, TGetFarmedAmountRequest, TGetFarmedAmountResponse, get_farmed_amount, TGetHeightInfoRequest, TGetHeightInfoResponse, get_height_info, TGetInitialFreezePeriodRequestOfWallet, TGetInitialFreezePeriodResponseOfWallet, get_initial_freeze_period_of_wallet, TGetLoggedInFingerprintResponse, get_logged_in_fingerprint, TGetOfferRequest, TGetOfferResponse, get_offer, TGetOffersCountResponse, get_offers_count, TGetOfferSummaryRequest, TGetOfferSummaryResponse, get_offer_summary, TGetNetworkInfoRequestOfWallet, TGetNetworkInfoResponseOfWallet, get_network_info_of_wallet, TGetNextAddressRequest, TGetNextAddressResponse, get_next_address, TGetPrivateKeyRequest, TGetPrivateKeyResponse, get_private_key, TGetPublicKeysRequest, TGetPublicKeysResponse, get_public_keys, TGetSyncStatusRequest, TGetSyncStatusResponse, get_sync_status, TGetTransactionCountRequest, TGetTransactionCountResponse, get_transaction_count, TGetTransactionRequest, TGetTransactionResponse, get_transaction, TGetTransactionsRequest, TGetTransactionsResponse, get_transactions, TGetWalletBalanceRequest, TGetWalletBalanceResponse, get_wallet_balance, TGetWalletsRequest, TGetWalletsResponse, get_wallets, TLoginRequest, TLoginResponse, log_in, TPushTxRequest as TPushTxRequestOfWallet, TPushTxResponse as TPushTxResponseOfWallet, push_tx as push_tx_wallet, TPushTransactionsRequest, TPushTransactionsResponse, push_transactions, TPwJoinPoolRequest, TPwJoinPoolResponse, pw_join_pool, TPwSelfPoolRequest, TPwSelfPoolResponse, pw_self_pool, TPwAbsorbRewardsRequest, TPwAbsorbRewardsResponse, pw_absorb_rewards, TPwStatusRequest, TPwStatusResponse, pw_status, TRlSetUserInfoRequest, TRlSetUserInfoResponse, rl_set_user_info, TSendClawbackTransactionRequest, TSendClawbackTransactionResponse, send_clawback_transaction, TSendTransactionRequest, TSendTransactionResponse, send_transaction, TSendTransactionMultiRequest, TSendTransactionMultiResponse, send_transaction_multi, TTakeOfferRequest, TTakeOfferResponse, take_offer, TCreateNewDlRequest, TCreateNewDlResponse, create_new_dl, TDlTrackNewRequest, TDlTrackNewResponse, dl_track_new, TDlStopTrackingRequest, TDlStopTrackingResponse, dl_stop_tracking, TDlLatestSingletonRequest, TDlLatestSingletonResponse, dl_latest_singleton, TDlSingletonsByRootRequest, TDlSingletonsByRootResponse, dl_singletons_by_root, TDlUpdateRootRequest, TDlUpdateRootResponse, dl_update_root, TDlUpdateMultipleRequest, TDlUpdateMultipleResponse, dl_update_multiple, TDlHistoryRequest, TDlHistoryResponse, dl_history, TDlOwnedSingletonsResponse, dl_owned_singletons, TDlGetMirrorsRequest, TDlGetMirrorsResponse, dl_get_mirrors, TDlNewMirrorRequest, TDlNewMirrorResponse, dl_new_mirror, TDlDeleteMirrorRequest, TDlDeleteMirrorResponse, dl_delete_mirror, } from "./wallet/index";
|
|
8
|
+
export { chia_wallet_service, TAddKeyRequest, TAddKeyResponse, add_key, TAddRateLimitedFundsRequest, TAddRateLimitedFundsResponse, add_rate_limited_funds, TAdditions, TCancelOfferRequest, TCancelOfferResponse, cancel_offer, TCancelOffersRequest, TCancelOffersResponse, cancel_offers, TCatGetAssetIdRequest, TCatGetAssetIdResponse, cat_get_asset_id, TCatGetNameRequest, TCatGetNameResponse, cat_get_name, TGetStrayCatsResponse, get_stray_cats, TCatAssetIdToNameRequest, TCatAssetIdToNameResponse, cat_asset_id_to_name, TCatSetNameRequest, TCatSetNameResponse, cat_set_name, TCatSpendRequest, TCatSpendResponse, cat_spend, TCheckOfferValidityRequest, TCheckOfferValidityResponse, check_offer_validity, TCreateNewWalletRequest, TCreateNewWalletResponse, create_new_wallet, TCreateOfferForIdsRequest, TCreateOfferForIdsResponse, create_offer_for_ids, TCreateSignedTransactionRequest, TCreateSignedTransactionResponse, create_signed_transaction, TDeleteUnconfirmedTransactionsRequest, TDeleteUnconfirmedTransactionsResponse, delete_unconfirmed_transactions, TSelectCoinsRequest, TSelectCoinsResponse, select_coins, TGetCurrentDerivationIndexResponse, get_current_derivation_index, TExtendDerivationIndexRequest, TExtendDerivationIndexResponse, extend_derivation_index, TGetNotificationsRequest, TGetNotificationsResponse, get_notifications, TDeleteNotificationsRequest, TDeleteNotificationsResponse, delete_notifications, TSendNotificationRequest, TSendNotificationResponse, send_notification, TSignMessageByAddressRequest, TSignMessageByAddressResponse, sign_message_by_address, TSignMessageByIdRequest, TSignMessageByIdResponse, sign_message_by_id, TVerifySignatureRequest, TVerifySignatureResponse, verify_signature, TGetTransactionMemoRequest, TGetTransactionMemoResponse, get_transaction_memo, TNftCalculateRoyaltiesRequest, TNftCalculateRoyaltiesResponse, nft_calculate_royalties, TNftMintBulkRequest, TNftMintBulkResponse, nft_mint_bulk, TNftSetDidBulkRequest, TNftSetDidBulkResponse, nft_set_did_bulk, TNftTransferBulkRequest, TNftTransferBulkResponse, nft_transfer_bulk, TCreate_New_CAT_WalletRequest, TCreate_New_CAT_WalletResponse, TCreate_New_DID_WalletRequest, TCreate_New_DID_WalletResponse, TCreate_New_RL_WalletRequest, TCreate_New_RL_WalletResponse, TDeleteAllKeysRequest, TDeleteAllKeysResponse, delete_all_keys, TSetWalletResyncOnStartupRequest, TSetWalletResyncOnStartupResponse, set_wallet_resync_on_startup, TDeleteKeyRequest, TDeleteKeyResponse, delete_key, TDidSetWalletNameRequest, TDidSetWalletNameResponse, did_set_wallet_name, TDidGetWalletNameRequest, TDidGetWalletNameResponse, did_get_wallet_name, TDidCreateAttestRequest, TDidCreateAttestResponse, did_create_attest, TDidCreateBackupFileRequest, TDidCreateBackupFileResponse, did_create_backup_file, TDidTransferDidRequest, TDidTransferDidResponse, did_transfer_did, TDidGetDidRequest, TDidGetDidResponse, did_get_did, TDidGetInformationNeededForRecoveryRequest, TDidGetInformationNeededForRecoveryResponse, did_get_information_needed_for_recovery, TDidGetCurrentCoinInfoRequest, TDidGetCurrentCoinInfoResponse, did_get_current_coin_info, TDidGetPubkeyRequest, TDidGetPubkeyResponse, did_get_pubkey, TDidGetRecoveryListRequest, TDidGetRecoveryListResponse, did_get_recovery_list, TDidGetMetadataRequest, TDidGetMetadataResponse, did_get_metadata, TDidRecoverySpendRequest, TDidRecoverySpendResponse, did_recovery_spend, TDidSpendRequest, TDidSpendResponse, did_spend, TDidUpdateRecoveryIdsRequest, TDidUpdateRecoveryIdsResponse, did_update_recovery_ids, TDidUpdateMetadataRequest, TDidUpdateMetadataResponse, did_update_metadata, TNftMintNftRequest, TNftMintNftResponse, nft_mint_nft, TNftCountNftsRequest, TNftCountNftsResponse, nft_count_nfts, TNftGetNftsRequest, TNftGetNftsResponse, nft_get_nfts, TNftSetNftDidRequest, TNftSetNftDidResponse, nft_set_nft_did, TNftGetByDidRequest, TNftGetByDidResponse, nft_get_by_did, TNftGetWalletDidRequest, TNftGetWalletDidResponse, nft_get_wallet_did, TNftGetWalletsWithDidsResponse, nft_get_wallets_with_dids, TNftSetNftStatusRequest, TNftSetNftStatusResponse, nft_set_nft_status, TNftTransferNftRequest, TNftTransferNftResponse, nft_transfer_nft, TNftGetInfoRequest, TNftGetInfoResponse, nft_get_info, TNftAddUriRequest, TNftAddUriResponse, nft_add_uri, TFarmBlockRequest, TFarmBlockResponse, farm_block, TGetTimestampForHeightResponse, get_timestamp_for_height, TGenerateMnemonicRequest, TGenerateMnemonicResponse, generate_mnemonic, TGetAllOffersRequest, TGetAllOffersResponse, get_all_offers, TGetCatListResponse, get_cat_list, TGetFarmedAmountRequest, TGetFarmedAmountResponse, get_farmed_amount, TGetHeightInfoRequest, TGetHeightInfoResponse, get_height_info, TGetInitialFreezePeriodRequestOfWallet, TGetInitialFreezePeriodResponseOfWallet, get_initial_freeze_period_of_wallet, TGetLoggedInFingerprintResponse, get_logged_in_fingerprint, TGetOfferRequest, TGetOfferResponse, get_offer, TGetOffersCountResponse, get_offers_count, TGetOfferSummaryRequest, TGetOfferSummaryResponse, get_offer_summary, TGetNetworkInfoRequestOfWallet, TGetNetworkInfoResponseOfWallet, get_network_info_of_wallet, TGetNextAddressRequest, TGetNextAddressResponse, get_next_address, TGetPrivateKeyRequest, TGetPrivateKeyResponse, get_private_key, TGetPublicKeysRequest, TGetPublicKeysResponse, get_public_keys, TGetSyncStatusRequest, TGetSyncStatusResponse, get_sync_status, TGetTransactionCountRequest, TGetTransactionCountResponse, get_transaction_count, TGetTransactionRequest, TGetTransactionResponse, get_transaction, TGetTransactionsRequest, TGetTransactionsResponse, get_transactions, TGetWalletBalanceRequest, TGetWalletBalanceResponse, get_wallet_balance, TGetWalletsRequest, TGetWalletsResponse, get_wallets, TLoginRequest, TLoginResponse, log_in, TPushTxRequest as TPushTxRequestOfWallet, TPushTxResponse as TPushTxResponseOfWallet, push_tx as push_tx_wallet, TPushTransactionsRequest, TPushTransactionsResponse, push_transactions, TPwJoinPoolRequest, TPwJoinPoolResponse, pw_join_pool, TPwSelfPoolRequest, TPwSelfPoolResponse, pw_self_pool, TPwAbsorbRewardsRequest, TPwAbsorbRewardsResponse, pw_absorb_rewards, TPwStatusRequest, TPwStatusResponse, pw_status, TRlSetUserInfoRequest, TRlSetUserInfoResponse, rl_set_user_info, TSendClawbackTransactionRequest, TSendClawbackTransactionResponse, send_clawback_transaction, TSendTransactionRequest, TSendTransactionResponse, send_transaction, TSendTransactionMultiRequest, TSendTransactionMultiResponse, send_transaction_multi, TTakeOfferRequest, TTakeOfferResponse, take_offer, TCreateNewDlRequest, TCreateNewDlResponse, create_new_dl, TDlTrackNewRequest, TDlTrackNewResponse, dl_track_new, TDlStopTrackingRequest, TDlStopTrackingResponse, dl_stop_tracking, TDlLatestSingletonRequest, TDlLatestSingletonResponse, dl_latest_singleton, TDlSingletonsByRootRequest, TDlSingletonsByRootResponse, dl_singletons_by_root, TDlUpdateRootRequest, TDlUpdateRootResponse, dl_update_root, TDlUpdateMultipleRequest, TDlUpdateMultipleResponse, dl_update_multiple, TDlHistoryRequest, TDlHistoryResponse, dl_history, TDlOwnedSingletonsResponse, dl_owned_singletons, TDlGetMirrorsRequest, TDlGetMirrorsResponse, dl_get_mirrors, TDlNewMirrorRequest, TDlNewMirrorResponse, dl_new_mirror, TDlDeleteMirrorRequest, TDlDeleteMirrorResponse, dl_delete_mirror, } from "./wallet/index";
|
|
9
9
|
import type { RpcDataLayerMessage } from "./data_layer/index";
|
|
10
10
|
export { chia_data_layer_service, TCreateDataStoreRequest, TCreateDataStoreResponse, create_data_store, TGetOwnedStoresResponse, get_owned_stores, TBatchUpdateRequest, TBatchUpdateResponse, batch_update, TGetValueRequest, TGetValueResponse, get_value, TGetKeysRequest, TGetKeysResponse, get_keys, TGetKeysValuesRequest, TGetKeysValuesResponse, get_keys_values, TGetAncestorsRequest, TGetAncestorsResponse, get_ancestors, TGetRootRequest, TGetRootResponse, get_root, TGetLocalRootRequest, TGetLocalRootResponse, get_local_root, TGetRootsRequest, TGetRootsResponse, get_roots, TDeleteKeyRequest as TDeleteKeyDLRequest, TDeleteKeyResponse as TDeleteKeyDLResponse, delete_key as delete_key_dl, TInsertRequest, TInsertResponse, insert, TSubscribeRequest, TSubscribeResponse, subscribe, TUnsubscribeRequest, TUnsubscribeResponse, unsubscribe, TAddMirrorRequest, TAddMirrorResponse, add_mirror, TDeleteMirrorRequest, TDeleteMirrorResponse, delete_mirror, TGetMirrorsRequest, TGetMirrorsResponse, get_mirrors, TRemoveSubscriptionsRequest, TRemoveSubscriptionsResponse, remove_subscriptions, TSubscriptionsResponse, subscriptions, TGetKvDiffRequest, TGetKvDiffResponse, get_kv_diff, TGetRootHistoryRequest, TGetRootHistoryResponse, get_root_history, TAddMissingFilesRequest, TAddMissingFilesResponse, add_missing_files, TMakeOfferRequest, TMakeOfferResponse, make_offer, TTakeOfferRequest as TTakeOfferRequestDL, TTakeOfferResponse as TTakeOfferResponseDL, take_offer as take_offer_dl, TVerifyOfferRequest, TVerifyOfferResponse, verify_offer, TCancelOfferRequest as TCancelOfferRequestDL, TCancelOfferResponse as TCancelOfferResponseDL, cancel_offer as cancel_offer_dl, TGetSyncStatusRequest as TGetSyncStatusRequestDL, TGetSyncStatusResponse as TGetSyncStatusResponseDL, get_sync_status as get_sync_status_dl, } from "./data_layer/index";
|
|
11
11
|
import type { RpcCrawlerMessage } from "./crawler/index";
|
package/api/rpc/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.healthz = exports.get_routes = exports.stop_node = exports.close_connection = exports.open_connection = exports.get_connections = exports.chia_common_service = exports.get_peer_counts = exports.get_ips_after_timestamp = exports.chia_crawler_service = 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 = exports.get_roots = exports.get_local_root = exports.get_root = exports.get_ancestors = exports.get_keys_values = exports.get_keys = exports.get_value = exports.batch_update = exports.get_owned_stores = exports.create_data_store = void 0;
|
|
3
|
+
exports.reorg_blocks = exports.revert_blocks = exports.get_all_puzzle_hashes = exports.get_all_coins = exports.get_farming_ph = exports.get_auto_farming = exports.set_auto_farming = exports.farm_block_fullnode = 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_network_info_of_full_node = 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 = exports.get_block_records = exports.get_block_record = exports.get_block_record_by_height = exports.get_all_mempool_tx_ids = exports.get_all_mempool_items = 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_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 = 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.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.remove_plot_directory = exports.refresh_plots = exports.get_plots = exports.get_plot_directories = exports.delete_plot = exports.add_plot_directory = exports.chia_harvester_service = void 0;
|
|
5
|
+
exports.take_offer = 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 = exports.pw_join_pool = exports.push_transactions = exports.push_tx_wallet = exports.log_in = exports.get_wallets = 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_network_info_of_wallet = 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_timestamp_for_height = exports.farm_block = 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 = void 0;
|
|
6
|
+
exports.healthz = exports.get_routes = exports.stop_node = exports.close_connection = exports.open_connection = exports.get_connections = exports.chia_common_service = exports.get_peer_counts = exports.get_ips_after_timestamp = exports.chia_crawler_service = 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 = exports.get_roots = exports.get_local_root = exports.get_root = exports.get_ancestors = exports.get_keys_values = exports.get_keys = exports.get_value = exports.batch_update = exports.get_owned_stores = exports.create_data_store = exports.chia_data_layer_service = 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 = void 0;
|
|
7
7
|
var index_1 = require("./farmer/index");
|
|
8
8
|
Object.defineProperty(exports, "chia_farmer_service", { enumerable: true, get: function () { return index_1.chia_farmer_service; } });
|
|
9
9
|
Object.defineProperty(exports, "get_reward_targets", { enumerable: true, get: function () { return index_1.get_reward_targets; } });
|
|
@@ -47,6 +47,15 @@ Object.defineProperty(exports, "get_unfinished_block_headers", { enumerable: tru
|
|
|
47
47
|
Object.defineProperty(exports, "push_tx", { enumerable: true, get: function () { return index_2.push_tx; } });
|
|
48
48
|
Object.defineProperty(exports, "get_puzzle_and_solution", { enumerable: true, get: function () { return index_2.get_puzzle_and_solution; } });
|
|
49
49
|
Object.defineProperty(exports, "get_fee_estimate", { enumerable: true, get: function () { return index_2.get_fee_estimate; } });
|
|
50
|
+
Object.defineProperty(exports, "get_all_blocks", { enumerable: true, get: function () { return index_2.get_all_blocks; } });
|
|
51
|
+
Object.defineProperty(exports, "farm_block_fullnode", { enumerable: true, get: function () { return index_2.farm_block; } });
|
|
52
|
+
Object.defineProperty(exports, "set_auto_farming", { enumerable: true, get: function () { return index_2.set_auto_farming; } });
|
|
53
|
+
Object.defineProperty(exports, "get_auto_farming", { enumerable: true, get: function () { return index_2.get_auto_farming; } });
|
|
54
|
+
Object.defineProperty(exports, "get_farming_ph", { enumerable: true, get: function () { return index_2.get_farming_ph; } });
|
|
55
|
+
Object.defineProperty(exports, "get_all_coins", { enumerable: true, get: function () { return index_2.get_all_coins; } });
|
|
56
|
+
Object.defineProperty(exports, "get_all_puzzle_hashes", { enumerable: true, get: function () { return index_2.get_all_puzzle_hashes; } });
|
|
57
|
+
Object.defineProperty(exports, "revert_blocks", { enumerable: true, get: function () { return index_2.revert_blocks; } });
|
|
58
|
+
Object.defineProperty(exports, "reorg_blocks", { enumerable: true, get: function () { return index_2.reorg_blocks; } });
|
|
50
59
|
var index_3 = require("./harvester/index");
|
|
51
60
|
Object.defineProperty(exports, "chia_harvester_service", { enumerable: true, get: function () { return index_3.chia_harvester_service; } });
|
|
52
61
|
Object.defineProperty(exports, "add_plot_directory", { enumerable: true, get: function () { return index_3.add_plot_directory; } });
|
|
@@ -80,11 +89,14 @@ Object.defineProperty(exports, "delete_notifications", { enumerable: true, get:
|
|
|
80
89
|
Object.defineProperty(exports, "send_notification", { enumerable: true, get: function () { return index_4.send_notification; } });
|
|
81
90
|
Object.defineProperty(exports, "sign_message_by_address", { enumerable: true, get: function () { return index_4.sign_message_by_address; } });
|
|
82
91
|
Object.defineProperty(exports, "sign_message_by_id", { enumerable: true, get: function () { return index_4.sign_message_by_id; } });
|
|
92
|
+
Object.defineProperty(exports, "verify_signature", { enumerable: true, get: function () { return index_4.verify_signature; } });
|
|
93
|
+
Object.defineProperty(exports, "get_transaction_memo", { enumerable: true, get: function () { return index_4.get_transaction_memo; } });
|
|
83
94
|
Object.defineProperty(exports, "nft_calculate_royalties", { enumerable: true, get: function () { return index_4.nft_calculate_royalties; } });
|
|
84
95
|
Object.defineProperty(exports, "nft_mint_bulk", { enumerable: true, get: function () { return index_4.nft_mint_bulk; } });
|
|
85
96
|
Object.defineProperty(exports, "nft_set_did_bulk", { enumerable: true, get: function () { return index_4.nft_set_did_bulk; } });
|
|
86
97
|
Object.defineProperty(exports, "nft_transfer_bulk", { enumerable: true, get: function () { return index_4.nft_transfer_bulk; } });
|
|
87
98
|
Object.defineProperty(exports, "delete_all_keys", { enumerable: true, get: function () { return index_4.delete_all_keys; } });
|
|
99
|
+
Object.defineProperty(exports, "set_wallet_resync_on_startup", { enumerable: true, get: function () { return index_4.set_wallet_resync_on_startup; } });
|
|
88
100
|
Object.defineProperty(exports, "delete_key", { enumerable: true, get: function () { return index_4.delete_key; } });
|
|
89
101
|
Object.defineProperty(exports, "did_set_wallet_name", { enumerable: true, get: function () { return index_4.did_set_wallet_name; } });
|
|
90
102
|
Object.defineProperty(exports, "did_get_wallet_name", { enumerable: true, get: function () { return index_4.did_get_wallet_name; } });
|
|
@@ -102,6 +114,7 @@ Object.defineProperty(exports, "did_spend", { enumerable: true, get: function ()
|
|
|
102
114
|
Object.defineProperty(exports, "did_update_recovery_ids", { enumerable: true, get: function () { return index_4.did_update_recovery_ids; } });
|
|
103
115
|
Object.defineProperty(exports, "did_update_metadata", { enumerable: true, get: function () { return index_4.did_update_metadata; } });
|
|
104
116
|
Object.defineProperty(exports, "nft_mint_nft", { enumerable: true, get: function () { return index_4.nft_mint_nft; } });
|
|
117
|
+
Object.defineProperty(exports, "nft_count_nfts", { enumerable: true, get: function () { return index_4.nft_count_nfts; } });
|
|
105
118
|
Object.defineProperty(exports, "nft_get_nfts", { enumerable: true, get: function () { return index_4.nft_get_nfts; } });
|
|
106
119
|
Object.defineProperty(exports, "nft_set_nft_did", { enumerable: true, get: function () { return index_4.nft_set_nft_did; } });
|
|
107
120
|
Object.defineProperty(exports, "nft_get_by_did", { enumerable: true, get: function () { return index_4.nft_get_by_did; } });
|
|
@@ -123,6 +123,16 @@ export declare type TDeleteAllKeysResponse = {} | {
|
|
|
123
123
|
};
|
|
124
124
|
export declare type WsDeleteAllKeysMessage = GetMessageType<chia_wallet_service, delete_all_keys_command, TDeleteAllKeysResponse>;
|
|
125
125
|
export declare function delete_all_keys<T extends TRPCAgent | TDaemon>(agent: T): Promise<import("../../../rpc").ErrorResponse | ResType<T, TDeleteAllKeysResponse, WsDeleteAllKeysMessage>>;
|
|
126
|
+
export declare const set_wallet_resync_on_startup_command = "set_wallet_resync_on_startup";
|
|
127
|
+
export declare type set_wallet_resync_on_startup_command = typeof set_wallet_resync_on_startup_command;
|
|
128
|
+
export declare type TSetWalletResyncOnStartupRequest = {
|
|
129
|
+
enable?: bool;
|
|
130
|
+
};
|
|
131
|
+
export declare type TSetWalletResyncOnStartupResponse = {
|
|
132
|
+
success: True;
|
|
133
|
+
};
|
|
134
|
+
export declare type WsSetWalletResyncOnStartupMessage = GetMessageType<chia_wallet_service, set_wallet_resync_on_startup_command, TSetWalletResyncOnStartupResponse>;
|
|
135
|
+
export declare function set_wallet_resync_on_startup<T extends TRPCAgent | TDaemon>(agent: T): Promise<import("../../../rpc").ErrorResponse | ResType<T, TSetWalletResyncOnStartupResponse, WsSetWalletResyncOnStartupMessage>>;
|
|
126
136
|
export declare const get_sync_status_command = "get_sync_status";
|
|
127
137
|
export declare type get_sync_status_command = typeof get_sync_status_command;
|
|
128
138
|
export declare type TGetSyncStatusRequest = {};
|
|
@@ -392,6 +402,7 @@ export declare type TSendTransactionRequest = {
|
|
|
392
402
|
max_coin_amount?: uint64;
|
|
393
403
|
exclude_coin_amounts?: uint64[];
|
|
394
404
|
exclude_coin_ids?: str[];
|
|
405
|
+
reuse_puzhash?: bool;
|
|
395
406
|
};
|
|
396
407
|
export declare type TSendTransactionResponse = {
|
|
397
408
|
transaction: TransactionRecordConvenience;
|
|
@@ -615,11 +626,24 @@ export declare type TVerifySignatureResponse = {
|
|
|
615
626
|
};
|
|
616
627
|
export declare type WsVerifySignatureMessage = GetMessageType<chia_wallet_service, verify_signature_command, TVerifySignatureResponse>;
|
|
617
628
|
export declare function verify_signature<T extends TRPCAgent | TDaemon>(agent: T, data: TVerifySignatureRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TVerifySignatureResponse, WsVerifySignatureMessage>>;
|
|
629
|
+
export declare const get_transaction_memo_command = "get_transaction_memo";
|
|
630
|
+
export declare type get_transaction_memo_command = typeof get_transaction_memo_command;
|
|
631
|
+
export declare type TGetTransactionMemoRequest = {
|
|
632
|
+
transaction_id: str;
|
|
633
|
+
};
|
|
634
|
+
export declare type TGetTransactionMemoResponse = {
|
|
635
|
+
[transaction_id: string]: {
|
|
636
|
+
[coin_id: string]: string[];
|
|
637
|
+
};
|
|
638
|
+
};
|
|
639
|
+
export declare type WsGetTransactionMemoMessage = GetMessageType<chia_wallet_service, get_transaction_memo_command, TGetTransactionMemoResponse>;
|
|
640
|
+
export declare function get_transaction_memo<T extends TRPCAgent | TDaemon>(agent: T, data: TGetTransactionMemoRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetTransactionMemoResponse, WsGetTransactionMemoMessage>>;
|
|
618
641
|
export declare const sign_message_by_address_command = "sign_message_by_address";
|
|
619
642
|
export declare type sign_message_by_address_command = typeof sign_message_by_address_command;
|
|
620
643
|
export declare type TSignMessageByAddressRequest = {
|
|
621
644
|
address: str;
|
|
622
645
|
message: str;
|
|
646
|
+
is_hex?: bool;
|
|
623
647
|
};
|
|
624
648
|
export declare type TSignMessageByAddressResponse = {
|
|
625
649
|
success: True;
|
|
@@ -634,6 +658,7 @@ export declare type sign_message_by_id_command = typeof sign_message_by_id_comma
|
|
|
634
658
|
export declare type TSignMessageByIdRequest = {
|
|
635
659
|
id: str;
|
|
636
660
|
message: str;
|
|
661
|
+
is_hex?: bool;
|
|
637
662
|
};
|
|
638
663
|
export declare type TSignMessageByIdResponse = {
|
|
639
664
|
success: False;
|
|
@@ -713,6 +738,7 @@ export declare type TCatSpendRequest = {
|
|
|
713
738
|
max_coin_amount?: uint64;
|
|
714
739
|
exclude_coin_amounts?: uint64[];
|
|
715
740
|
exclude_coin_ids?: str[];
|
|
741
|
+
reuse_puzhash?: bool;
|
|
716
742
|
};
|
|
717
743
|
export declare type TCatSpendResponse = {
|
|
718
744
|
transaction: TransactionRecordConvenience;
|
|
@@ -741,6 +767,7 @@ export declare type TCreateOfferForIdsRequest = {
|
|
|
741
767
|
min_coin_amount?: uint64;
|
|
742
768
|
max_coin_amount?: uint64;
|
|
743
769
|
solver?: Record<str, any>;
|
|
770
|
+
reuse_puzhash?: bool;
|
|
744
771
|
};
|
|
745
772
|
export declare type TCreateOfferForIdsResponse = {
|
|
746
773
|
offer: str;
|
|
@@ -784,6 +811,7 @@ export declare type TTakeOfferRequest = {
|
|
|
784
811
|
min_coin_amount?: uint64;
|
|
785
812
|
max_coin_amount?: uint64;
|
|
786
813
|
solver?: Record<str, any>;
|
|
814
|
+
reuse_puzhash?: bool;
|
|
787
815
|
};
|
|
788
816
|
export declare type TTakeOfferResponse = {
|
|
789
817
|
trade_record: TradeRecordConvenience;
|
|
@@ -886,6 +914,7 @@ export declare type TDidUpdateRecoveryIdsRequest = {
|
|
|
886
914
|
wallet_id: uint32;
|
|
887
915
|
new_list: str[];
|
|
888
916
|
num_verifications_required?: uint64;
|
|
917
|
+
reuse_puzhash?: bool;
|
|
889
918
|
};
|
|
890
919
|
export declare type TDidUpdateRecoveryIdsResponse = {
|
|
891
920
|
success: bool;
|
|
@@ -898,6 +927,7 @@ export declare type TDidUpdateMetadataRequest = {
|
|
|
898
927
|
wallet_id: uint32;
|
|
899
928
|
metadata?: Record<str, str>;
|
|
900
929
|
fee?: uint64;
|
|
930
|
+
reuse_puzhash?: bool;
|
|
901
931
|
};
|
|
902
932
|
export declare type TDidUpdateMetadataResponse = {
|
|
903
933
|
success: True;
|
|
@@ -1077,6 +1107,7 @@ export declare type TDidGetInfoResponse = {
|
|
|
1077
1107
|
metadata: Record<str, str>;
|
|
1078
1108
|
launcher_id: str;
|
|
1079
1109
|
full_puzzle: str;
|
|
1110
|
+
solution: any;
|
|
1080
1111
|
hints: str[];
|
|
1081
1112
|
};
|
|
1082
1113
|
export declare type WsDidGetInfoMessage = GetMessageType<chia_wallet_service, did_get_info_command, TDidGetInfoResponse>;
|
|
@@ -1102,6 +1133,7 @@ export declare type TDidTransferDidRequest = {
|
|
|
1102
1133
|
inner_address: str;
|
|
1103
1134
|
fee?: uint64;
|
|
1104
1135
|
with_recovery_info?: bool;
|
|
1136
|
+
reuse_puzhash?: bool;
|
|
1105
1137
|
};
|
|
1106
1138
|
export declare type TDidTransferDidResponse = {
|
|
1107
1139
|
success: True;
|
|
@@ -1127,6 +1159,7 @@ export declare type TNftMintNftRequest = {
|
|
|
1127
1159
|
fee?: uint64;
|
|
1128
1160
|
did_id?: str;
|
|
1129
1161
|
royalty_percentage?: uint16;
|
|
1162
|
+
reuse_puzhash?: bool;
|
|
1130
1163
|
};
|
|
1131
1164
|
export declare type TNftMintNftResponse = {
|
|
1132
1165
|
wallet_id: uint32;
|
|
@@ -1136,6 +1169,21 @@ export declare type TNftMintNftResponse = {
|
|
|
1136
1169
|
};
|
|
1137
1170
|
export declare type WsNftMintNftMessage = GetMessageType<chia_wallet_service, nft_mint_nft_command, TNftMintNftResponse>;
|
|
1138
1171
|
export declare function nft_mint_nft<T extends TRPCAgent | TDaemon>(agent: T, data: TNftMintNftRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TNftMintNftResponse, WsNftMintNftMessage>>;
|
|
1172
|
+
export declare const nft_count_nfts_command = "nft_count_nfts";
|
|
1173
|
+
export declare type nft_count_nfts_command = typeof nft_count_nfts_command;
|
|
1174
|
+
export declare type TNftCountNftsRequest = {
|
|
1175
|
+
wallet_id: uint32;
|
|
1176
|
+
};
|
|
1177
|
+
export declare type TNftCountNftsResponse = {
|
|
1178
|
+
success: False;
|
|
1179
|
+
error: str;
|
|
1180
|
+
} | {
|
|
1181
|
+
wallet_id: uint32;
|
|
1182
|
+
success: True;
|
|
1183
|
+
count: int;
|
|
1184
|
+
};
|
|
1185
|
+
export declare type WsNftCountNftsMessage = GetMessageType<chia_wallet_service, nft_count_nfts_command, TNftCountNftsResponse>;
|
|
1186
|
+
export declare function nft_count_nfts<T extends TRPCAgent | TDaemon>(agent: T, data: TNftCountNftsRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TNftCountNftsResponse, WsNftCountNftsMessage>>;
|
|
1139
1187
|
export declare const nft_get_nfts_command = "nft_get_nfts";
|
|
1140
1188
|
export declare type nft_get_nfts_command = typeof nft_get_nfts_command;
|
|
1141
1189
|
export declare type TNftGetNftsRequest = {
|
|
@@ -1158,6 +1206,7 @@ export declare type TNftSetNftDidRequest = {
|
|
|
1158
1206
|
did_id?: str;
|
|
1159
1207
|
nft_coin_id: str;
|
|
1160
1208
|
fee?: uint64;
|
|
1209
|
+
reuse_puzhash?: bool;
|
|
1161
1210
|
};
|
|
1162
1211
|
export declare type TNftSetNftDidResponse = {
|
|
1163
1212
|
wallet_id: uint32;
|
|
@@ -1178,6 +1227,7 @@ export declare type TNftSetDidBulkRequest = {
|
|
|
1178
1227
|
}>;
|
|
1179
1228
|
did_id?: str;
|
|
1180
1229
|
fee?: uint64;
|
|
1230
|
+
reuse_puzhash?: bool;
|
|
1181
1231
|
};
|
|
1182
1232
|
export declare type TNftSetDidBulkResponse = {
|
|
1183
1233
|
success: False;
|
|
@@ -1199,6 +1249,7 @@ export declare type TNftTransferBulkRequest = {
|
|
|
1199
1249
|
}>;
|
|
1200
1250
|
target_address: str;
|
|
1201
1251
|
fee?: uint64;
|
|
1252
|
+
reuse_puzhash?: bool;
|
|
1202
1253
|
};
|
|
1203
1254
|
export declare type TNftTransferBulkResponse = {
|
|
1204
1255
|
success: False;
|
|
@@ -1267,6 +1318,7 @@ export declare type TNftTransferNftRequest = {
|
|
|
1267
1318
|
target_address: str;
|
|
1268
1319
|
nft_coin_id: str;
|
|
1269
1320
|
fee?: uint64;
|
|
1321
|
+
reuse_puzhash?: bool;
|
|
1270
1322
|
};
|
|
1271
1323
|
export declare type TNftTransferNftResponse = {
|
|
1272
1324
|
success: True;
|
|
@@ -1302,6 +1354,7 @@ export declare type TNftAddUriRequest = {
|
|
|
1302
1354
|
key: str;
|
|
1303
1355
|
nft_coin_id: str;
|
|
1304
1356
|
fee?: uint64;
|
|
1357
|
+
reuse_puzhash?: bool;
|
|
1305
1358
|
};
|
|
1306
1359
|
export declare type TNftAddUriResponse = {
|
|
1307
1360
|
success: True;
|
|
@@ -1357,6 +1410,7 @@ export declare type TNftMintBulkRequest = {
|
|
|
1357
1410
|
did_lineage_parent?: str;
|
|
1358
1411
|
mint_from_did?: bool;
|
|
1359
1412
|
fee?: uint64;
|
|
1413
|
+
reuse_puzhash?: bool;
|
|
1360
1414
|
};
|
|
1361
1415
|
export declare type TNftMintBulkResponse = {
|
|
1362
1416
|
success: False;
|
|
@@ -1596,5 +1650,5 @@ export declare type TDlDeleteMirrorResponse = {
|
|
|
1596
1650
|
};
|
|
1597
1651
|
export declare type WsDlDeleteMirrorMessage = GetMessageType<chia_wallet_service, dl_delete_mirror_command, TDlDeleteMirrorResponse>;
|
|
1598
1652
|
export declare function dl_delete_mirror<T extends TRPCAgent | TDaemon>(agent: T, data: TDlDeleteMirrorRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TDlDeleteMirrorResponse, WsDlDeleteMirrorMessage>>;
|
|
1599
|
-
export declare type RpcWalletMessage = TAddKeyResponse | TAddRateLimitedFundsResponse | TCancelOfferResponse | TCancelOffersResponse | TCatGetAssetIdResponse | TCatGetNameResponse | TGetStrayCatsResponse | TCatAssetIdToNameResponse | TCatSetNameResponse | TCatSpendResponse | TCheckOfferValidityResponse | TCreateNewWalletResponse | TCreateOfferForIdsResponse | TCreateSignedTransactionResponse | TDeleteUnconfirmedTransactionsResponse | TSelectCoinsResponse | TGetSpendableCoinsResponse | TGetCoinRecordsByNamesResponse | TGetCurrentDerivationIndexResponse | TExtendDerivationIndexResponse | TGetNotificationsResponse | TDeleteNotificationsResponse | TSendNotificationResponse | TSignMessageByAddressResponse | TSignMessageByIdResponse | TVerifySignatureResponse | TNftCalculateRoyaltiesResponse | TNftMintBulkResponse | TNftSetDidBulkResponse |
|
|
1600
|
-
export declare type RpcWalletMessageOnWs = WsAddKeyMessage | WsAddRateLimitedFundsMessage | WsCancelOfferMessage | WsCancelOffersMessage | WsCatGetAssetIdMessage | WsCatGetNameMessage | WsGetStrayCatsMessage | WsCatAssetIdToNameMessage | WsCatSetNameMessage | WsCatSpendMessage | WsCheckOfferValidityMessage | WsCreateNewWalletMessage | WsCreateOfferForIdsMessage | WsCreateSignedTransactionMessage | WsDeleteUnconfirmedTransactionsMessage | WsSelectCoinsMessage | WsGetSpendableCoinsMessage | WsGetCoinRecordsByNamesMessage | WsGetCurrentDerivationIndexMessage | WsExtendDerivationIndexMessage | WsGetNotificationsMessage | WsDeleteNotificationsMessage | WsSendNotificationMessage | WsSignMessageByAddressMessage | WsSignMessageByIdMessage | WsVerifySignatureMessage | WsNftCalculateRoyaltiesMessage | WsNftMintBulkMessage | WsNftSetDidBulkMessage | WsNftTransferBulkMessage | WsDeleteAllKeysMessage | WsDeleteKeyMessage | WsCheckDeleteKeyMessage | WsDidSetWalletNameMessage | WsDidGetWalletNameMessage | WsDidCreateAttestMessage | WsDidCreateBackupFileMessage | WsDidTransferDidMessage | WsDidMessageSpendMessage | WsDidGetInfoMessage | WsDidFindLostDidMessage | WsDidGetDidMessage | WsDidGetInformationNeededForRecoveryMessage | WsDidGetCurrentCoinInfoMessage | WsDidGetPubkeyMessage | WsDidGetRecoveryListMessage | WsDidGetMetadataMessage | WsDidRecoverySpendMessage | WsDidSpendMessage | WsDidUpdateRecoveryIdsMessage | WsDidUpdateMetadataMessage | WsNftMintNftMessage | WsNftGetNftsMessage | WsNftSetNftDidMessage | WsNftGetByDidMessage | WsNftGetWalletDidMessage | WsNftGetWalletsWithDidsMessage | WsNftSetNftStatusMessage | WsNftTransferNftMessage | WsNftGetInfoMessage | WsNftAddUriMessage | WsFarmBlockMessage | WsGetTimestampForHeightMessage | WsGenerateMnemonicMessage | WsGetAllOffersMessage | WsGetCatListMessage | WsGetFarmedAmountMessage | WsGetHeightInfoMessage | WsGetInitialFreezePeriodMessageOfWallet | WsGetLoggedInFingerprintMessage | WsGetOfferMessage | WsGetOffersCountMessage | WsGetOfferSummaryMessage | WsGetNetworkInfoMessageOfWallet | WsGetNextAddressMessage | WsGetPrivateKeyMessage | WsGetPublicKeysMessage | WsGetSyncStatusMessage | WsGetTransactionMessage | WsGetTransactionCountMessage | WsGetTransactionsMessage | WsGetWalletBalanceMessage | WsGetWalletsMessage | WsLoginMessage | WsPushTxMessageOfWallet | WsPushTransactionsMessage | WsPwJoinPoolMessage | WsPwSelfPoolMessage | WsPwAbsorbRewardsMessage | WsPwStatusMessage | WsRlSetUserInfoMessage | WsSendClawbackTransactionMessage | WsSendTransactionMessage | WsSendTransactionMultiMessage | WsTakeOfferMessage | WsCreateNewDlMessage | WsDlTrackNewMessage | WsDlStopTrackingMessage | WsDlLatestSingletonMessage | WsDlSingletonsByRootMessage | WsDlUpdateRootMessage | WsDlUpdateMultipleMessage | WsDlHistoryMessage | WsDlOwnedSingletonsMessage | WsDlGetMirrorsMessage | WsDlNewMirrorMessage | WsDlDeleteMirrorMessage;
|
|
1653
|
+
export declare type RpcWalletMessage = TAddKeyResponse | TAddRateLimitedFundsResponse | TCancelOfferResponse | TCancelOffersResponse | TCatGetAssetIdResponse | TCatGetNameResponse | TGetStrayCatsResponse | TCatAssetIdToNameResponse | TCatSetNameResponse | TCatSpendResponse | TCheckOfferValidityResponse | TCreateNewWalletResponse | TCreateOfferForIdsResponse | TCreateSignedTransactionResponse | TDeleteUnconfirmedTransactionsResponse | TSelectCoinsResponse | TGetSpendableCoinsResponse | TGetCoinRecordsByNamesResponse | TGetCurrentDerivationIndexResponse | TExtendDerivationIndexResponse | TGetNotificationsResponse | TDeleteNotificationsResponse | TSendNotificationResponse | TSignMessageByAddressResponse | TSignMessageByIdResponse | TVerifySignatureResponse | TGetTransactionMemoResponse | TNftCalculateRoyaltiesResponse | TNftMintBulkResponse | TNftSetDidBulkResponse | TNftTransferBulkResponse | TDeleteAllKeysResponse | TSetWalletResyncOnStartupResponse | TDeleteKeyResponse | TCheckDeleteKeyResponse | TDidSetWalletNameResponse | TDidGetWalletNameResponse | TDidCreateAttestResponse | TDidCreateBackupFileResponse | TDidTransferDidResponse | TDidMessageSpendResponse | TDidGetInfoResponse | TDidFindLostDidResponse | TDidGetDidResponse | TDidGetInformationNeededForRecoveryResponse | TDidGetCurrentCoinInfoResponse | TDidGetPubkeyResponse | TDidGetRecoveryListResponse | TDidGetMetadataResponse | TDidRecoverySpendResponse | TDidSpendResponse | TDidUpdateRecoveryIdsResponse | TDidUpdateMetadataResponse | TNftMintNftResponse | TNftCountNftsResponse | TNftGetNftsResponse | TNftSetNftDidResponse | TNftGetByDidResponse | TNftGetWalletDidResponse | TNftGetWalletsWithDidsResponse | TNftSetNftStatusResponse | TNftTransferNftResponse | TNftGetInfoResponse | TNftAddUriResponse | TFarmBlockResponse | TGetTimestampForHeightResponse | TGenerateMnemonicResponse | TGetAllOffersResponse | TGetCatListResponse | TGetFarmedAmountResponse | TGetHeightInfoResponse | TGetInitialFreezePeriodResponseOfWallet | TGetLoggedInFingerprintResponse | TGetOfferResponse | TGetOffersCountResponse | TGetOfferSummaryResponse | TGetNetworkInfoResponseOfWallet | TGetNextAddressResponse | TGetPrivateKeyResponse | TGetPublicKeysResponse | TGetSyncStatusResponse | TGetTransactionResponse | TGetTransactionCountResponse | TGetTransactionsResponse | TGetWalletBalanceResponse | TGetWalletsResponse | TLoginResponse | TPushTxResponseOfWallet | TPushTransactionsResponse | TPwJoinPoolResponse | TPwSelfPoolResponse | TPwAbsorbRewardsResponse | TPwStatusResponse | TRlSetUserInfoResponse | TSendClawbackTransactionResponse | TSendTransactionResponse | TSendTransactionMultiResponse | TTakeOfferResponse | TCreateNewDlResponse | TDlTrackNewResponse | TDlStopTrackingResponse | TDlLatestSingletonResponse | TDlSingletonsByRootResponse | TDlUpdateRootResponse | TDlUpdateMultipleResponse | TDlHistoryResponse | TDlOwnedSingletonsResponse | TDlGetMirrorsResponse | TDlNewMirrorResponse | TDlDeleteMirrorResponse;
|
|
1654
|
+
export declare type RpcWalletMessageOnWs = WsAddKeyMessage | WsAddRateLimitedFundsMessage | WsCancelOfferMessage | WsCancelOffersMessage | WsCatGetAssetIdMessage | WsCatGetNameMessage | WsGetStrayCatsMessage | WsCatAssetIdToNameMessage | WsCatSetNameMessage | WsCatSpendMessage | WsCheckOfferValidityMessage | WsCreateNewWalletMessage | WsCreateOfferForIdsMessage | WsCreateSignedTransactionMessage | WsDeleteUnconfirmedTransactionsMessage | WsSelectCoinsMessage | WsGetSpendableCoinsMessage | WsGetCoinRecordsByNamesMessage | WsGetCurrentDerivationIndexMessage | WsExtendDerivationIndexMessage | WsGetNotificationsMessage | WsDeleteNotificationsMessage | WsSendNotificationMessage | WsSignMessageByAddressMessage | WsSignMessageByIdMessage | WsVerifySignatureMessage | WsGetTransactionMemoMessage | WsNftCalculateRoyaltiesMessage | WsNftMintBulkMessage | WsNftSetDidBulkMessage | WsNftTransferBulkMessage | WsDeleteAllKeysMessage | WsSetWalletResyncOnStartupMessage | WsDeleteKeyMessage | WsCheckDeleteKeyMessage | WsDidSetWalletNameMessage | WsDidGetWalletNameMessage | WsDidCreateAttestMessage | WsDidCreateBackupFileMessage | WsDidTransferDidMessage | WsDidMessageSpendMessage | WsDidGetInfoMessage | WsDidFindLostDidMessage | WsDidGetDidMessage | WsDidGetInformationNeededForRecoveryMessage | WsDidGetCurrentCoinInfoMessage | WsDidGetPubkeyMessage | WsDidGetRecoveryListMessage | WsDidGetMetadataMessage | WsDidRecoverySpendMessage | WsDidSpendMessage | WsDidUpdateRecoveryIdsMessage | WsDidUpdateMetadataMessage | WsNftMintNftMessage | WsNftCountNftsMessage | WsNftGetNftsMessage | WsNftSetNftDidMessage | WsNftGetByDidMessage | WsNftGetWalletDidMessage | WsNftGetWalletsWithDidsMessage | WsNftSetNftStatusMessage | WsNftTransferNftMessage | WsNftGetInfoMessage | WsNftAddUriMessage | WsFarmBlockMessage | WsGetTimestampForHeightMessage | WsGenerateMnemonicMessage | WsGetAllOffersMessage | WsGetCatListMessage | WsGetFarmedAmountMessage | WsGetHeightInfoMessage | WsGetInitialFreezePeriodMessageOfWallet | WsGetLoggedInFingerprintMessage | WsGetOfferMessage | WsGetOffersCountMessage | WsGetOfferSummaryMessage | WsGetNetworkInfoMessageOfWallet | WsGetNextAddressMessage | WsGetPrivateKeyMessage | WsGetPublicKeysMessage | WsGetSyncStatusMessage | WsGetTransactionMessage | WsGetTransactionCountMessage | WsGetTransactionsMessage | WsGetWalletBalanceMessage | WsGetWalletsMessage | WsLoginMessage | WsPushTxMessageOfWallet | WsPushTransactionsMessage | WsPwJoinPoolMessage | WsPwSelfPoolMessage | WsPwAbsorbRewardsMessage | WsPwStatusMessage | WsRlSetUserInfoMessage | WsSendClawbackTransactionMessage | WsSendTransactionMessage | WsSendTransactionMultiMessage | WsTakeOfferMessage | WsCreateNewDlMessage | WsDlTrackNewMessage | WsDlStopTrackingMessage | WsDlLatestSingletonMessage | WsDlSingletonsByRootMessage | WsDlUpdateRootMessage | WsDlUpdateMultipleMessage | WsDlHistoryMessage | WsDlOwnedSingletonsMessage | WsDlGetMirrorsMessage | WsDlNewMirrorMessage | WsDlDeleteMirrorMessage;
|
package/api/rpc/wallet/index.js
CHANGED
|
@@ -9,11 +9,11 @@ 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.
|
|
14
|
-
exports.
|
|
15
|
-
exports.
|
|
16
|
-
exports.dl_delete_mirror = exports.dl_delete_mirror_command = exports.dl_new_mirror = exports.dl_new_mirror_command = exports.dl_get_mirrors = 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 = void 0;
|
|
12
|
+
exports.send_transaction_command = exports.get_next_address = exports.get_next_address_command = exports.get_transactions = exports.get_transactions_command = exports.get_transaction = exports.get_transaction_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_network_info_of_wallet = exports.get_network_info_command_of_wallet = exports.get_initial_freeze_period_of_wallet = exports.get_initial_freeze_period_command_of_wallet = exports.get_timestamp_for_height = exports.get_timestamp_for_height_command = exports.farm_block = exports.farm_block_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.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 = 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.send_transaction_multi = exports.send_transaction_multi_command = exports.send_transaction = void 0;
|
|
14
|
+
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 = 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 = void 0;
|
|
15
|
+
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 = 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.did_transfer_did = exports.did_transfer_did_command = exports.did_find_lost_did = void 0;
|
|
16
|
+
exports.dl_delete_mirror = exports.dl_delete_mirror_command = exports.dl_new_mirror = exports.dl_new_mirror_command = exports.dl_get_mirrors = 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 = void 0;
|
|
17
17
|
exports.chia_wallet_service = "chia_wallet";
|
|
18
18
|
// # Key management
|
|
19
19
|
exports.log_in_command = "log_in";
|
|
@@ -79,6 +79,13 @@ function delete_all_keys(agent) {
|
|
|
79
79
|
});
|
|
80
80
|
}
|
|
81
81
|
exports.delete_all_keys = delete_all_keys;
|
|
82
|
+
exports.set_wallet_resync_on_startup_command = "set_wallet_resync_on_startup";
|
|
83
|
+
function set_wallet_resync_on_startup(agent) {
|
|
84
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
85
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.set_wallet_resync_on_startup_command);
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
exports.set_wallet_resync_on_startup = set_wallet_resync_on_startup;
|
|
82
89
|
// # Wallet node
|
|
83
90
|
exports.get_sync_status_command = "get_sync_status";
|
|
84
91
|
function get_sync_status(agent) {
|
|
@@ -285,6 +292,13 @@ function verify_signature(agent, data) {
|
|
|
285
292
|
});
|
|
286
293
|
}
|
|
287
294
|
exports.verify_signature = verify_signature;
|
|
295
|
+
exports.get_transaction_memo_command = "get_transaction_memo";
|
|
296
|
+
function get_transaction_memo(agent, data) {
|
|
297
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
298
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.get_transaction_memo_command, data);
|
|
299
|
+
});
|
|
300
|
+
}
|
|
301
|
+
exports.get_transaction_memo = get_transaction_memo;
|
|
288
302
|
exports.sign_message_by_address_command = "sign_message_by_address";
|
|
289
303
|
function sign_message_by_address(agent, data) {
|
|
290
304
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -548,6 +562,13 @@ function nft_mint_nft(agent, data) {
|
|
|
548
562
|
});
|
|
549
563
|
}
|
|
550
564
|
exports.nft_mint_nft = nft_mint_nft;
|
|
565
|
+
exports.nft_count_nfts_command = "nft_count_nfts";
|
|
566
|
+
function nft_count_nfts(agent, data) {
|
|
567
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
568
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.nft_count_nfts_command, data);
|
|
569
|
+
});
|
|
570
|
+
}
|
|
571
|
+
exports.nft_count_nfts = nft_count_nfts;
|
|
551
572
|
exports.nft_get_nfts_command = "nft_get_nfts";
|
|
552
573
|
function nft_get_nfts(agent, data) {
|
|
553
574
|
return __awaiter(this, void 0, void 0, function* () {
|
package/api/ws/farmer/index.d.ts
CHANGED
|
@@ -67,7 +67,17 @@ export declare type TSubmittedPartialBroadCast = {
|
|
|
67
67
|
};
|
|
68
68
|
export declare type WsSubmittedPartialMessage = GetMessageType<chia_farmer_service, submitted_partial_command, TSubmittedPartialBroadCast>;
|
|
69
69
|
export declare function on_submitted_partial(daemon: TDaemon, callback: (e: WsSubmittedPartialMessage) => unknown): Promise<() => void>;
|
|
70
|
-
export declare
|
|
71
|
-
export declare type
|
|
72
|
-
export declare type
|
|
70
|
+
export declare const add_connection_command = "add_connection";
|
|
71
|
+
export declare type add_connection_command = typeof add_connection_command;
|
|
72
|
+
export declare type TAddConnectionBroadCast = {};
|
|
73
|
+
export declare type WsAddConnectionMessage = GetMessageType<chia_farmer_service, add_connection_command, TAddConnectionBroadCast>;
|
|
74
|
+
export declare function on_add_connection(daemon: TDaemon, callback: (e: WsAddConnectionMessage) => unknown): Promise<() => void>;
|
|
75
|
+
export declare const close_connection_command = "close_connection";
|
|
76
|
+
export declare type close_connection_command = typeof close_connection_command;
|
|
77
|
+
export declare type TCloseConnectionBroadCast = {};
|
|
78
|
+
export declare type WsCloseConnectionMessage = GetMessageType<chia_farmer_service, close_connection_command, TCloseConnectionBroadCast>;
|
|
79
|
+
export declare function on_close_connection(daemon: TDaemon, callback: (e: WsCloseConnectionMessage) => unknown): Promise<() => void>;
|
|
80
|
+
export declare type WsFarmerMessage = WsGetConnectionFarmerMessage | WsNewFarmingInfoMessage | WsNewSignagePointMessage | WsHarvesterUpdateMessage | WsHarvesterRemovedMessage | WsProofMessage | WsSubmittedPartialMessage | WsAddConnectionMessage | WsCloseConnectionMessage;
|
|
81
|
+
export declare type chia_farmer_commands = get_connections_command | new_farming_info_command | new_signage_point_command | harvester_update_command | harvester_removed_command | proof_command | submitted_partial_command | add_connection_command | close_connection_command;
|
|
82
|
+
export declare type TChiaFarmerBroadcast = TGetConnectionsBroadCast | TNewFarmingInfoBroadCast | TNewSignagePointBroadCast | THarvesterUpdateBroadCast | THarvesterRemovedBroadCast | TProofBroadCast | TSubmittedPartialBroadCast | TAddConnectionBroadCast | TCloseConnectionBroadCast;
|
|
73
83
|
export declare function on_message_from_farmer(daemon: TDaemon, callback: (e: WsFarmerMessage) => unknown): Promise<() => void>;
|
package/api/ws/farmer/index.js
CHANGED
|
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.on_message_from_farmer = exports.on_submitted_partial = exports.submitted_partial_command = exports.on_proof = exports.proof_command = exports.on_harvester_removed = exports.harvester_removed_command = exports.on_harvester_update = exports.harvester_update_command = exports.on_new_signage_point = exports.new_signage_point_command = exports.on_new_farming_info = exports.new_farming_info_command = exports.on_get_connections = exports.get_connections_command = exports.chia_farmer_service = void 0;
|
|
12
|
+
exports.on_message_from_farmer = exports.on_close_connection = exports.close_connection_command = exports.on_add_connection = exports.add_connection_command = exports.on_submitted_partial = exports.submitted_partial_command = exports.on_proof = exports.proof_command = exports.on_harvester_removed = exports.harvester_removed_command = exports.on_harvester_update = exports.harvester_update_command = exports.on_new_signage_point = exports.new_signage_point_command = exports.on_new_farming_info = exports.new_farming_info_command = exports.on_get_connections = exports.get_connections_command = exports.chia_farmer_service = void 0;
|
|
13
13
|
const types_1 = require("../../types");
|
|
14
14
|
exports.chia_farmer_service = "chia_farmer";
|
|
15
15
|
exports.get_connections_command = "get_connections";
|
|
@@ -93,7 +93,7 @@ exports.on_proof = on_proof;
|
|
|
93
93
|
exports.submitted_partial_command = "submitted_partial";
|
|
94
94
|
function on_submitted_partial(daemon, callback) {
|
|
95
95
|
return __awaiter(this, void 0, void 0, function* () {
|
|
96
|
-
yield daemon.subscribe(types_1.
|
|
96
|
+
yield daemon.subscribe(types_1.metrics_service);
|
|
97
97
|
const messageListener = (e) => {
|
|
98
98
|
if (e.origin === exports.chia_farmer_service && e.command === exports.submitted_partial_command) {
|
|
99
99
|
callback(e);
|
|
@@ -103,9 +103,38 @@ function on_submitted_partial(daemon, callback) {
|
|
|
103
103
|
});
|
|
104
104
|
}
|
|
105
105
|
exports.on_submitted_partial = on_submitted_partial;
|
|
106
|
+
exports.add_connection_command = "add_connection";
|
|
107
|
+
function on_add_connection(daemon, callback) {
|
|
108
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
109
|
+
yield daemon.subscribe(types_1.metrics_service);
|
|
110
|
+
const messageListener = (e) => {
|
|
111
|
+
if (e.origin === exports.chia_farmer_service && e.command === exports.add_connection_command) {
|
|
112
|
+
callback(e);
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
return daemon.addMessageListener(exports.chia_farmer_service, messageListener);
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
exports.on_add_connection = on_add_connection;
|
|
119
|
+
exports.close_connection_command = "close_connection";
|
|
120
|
+
function on_close_connection(daemon, callback) {
|
|
121
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
122
|
+
yield daemon.subscribe(types_1.metrics_service);
|
|
123
|
+
const messageListener = (e) => {
|
|
124
|
+
if (e.origin === exports.chia_farmer_service && e.command === exports.close_connection_command) {
|
|
125
|
+
callback(e);
|
|
126
|
+
}
|
|
127
|
+
};
|
|
128
|
+
return daemon.addMessageListener(exports.chia_farmer_service, messageListener);
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
exports.on_close_connection = on_close_connection;
|
|
106
132
|
function on_message_from_farmer(daemon, callback) {
|
|
107
133
|
return __awaiter(this, void 0, void 0, function* () {
|
|
108
|
-
yield
|
|
134
|
+
yield Promise.all([
|
|
135
|
+
daemon.subscribe(types_1.wallet_ui_service),
|
|
136
|
+
daemon.subscribe(types_1.metrics_service),
|
|
137
|
+
]);
|
|
109
138
|
const messageListener = (e) => {
|
|
110
139
|
if (e.origin === exports.chia_farmer_service) {
|
|
111
140
|
callback(e);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Plot } from "../../chia/harvester/harvester";
|
|
2
2
|
import { TDaemon } from "../../../daemon/index";
|
|
3
3
|
import { GetMessageType, TConnectionGeneral } from "../../types";
|
|
4
|
-
import { float, int, str } from "../../chia/types/_python_types_";
|
|
4
|
+
import { float, int, None, str } from "../../chia/types/_python_types_";
|
|
5
5
|
export declare const chia_harvester_service = "chia_harvester";
|
|
6
6
|
export declare type chia_harvester_service = typeof chia_harvester_service;
|
|
7
7
|
export declare const get_connections_command = "get_connections";
|
|
@@ -31,7 +31,17 @@ export declare type TFarmingInfoBroadCast = {
|
|
|
31
31
|
};
|
|
32
32
|
export declare type WsFarmingInfoMessage = GetMessageType<chia_harvester_service, farming_info_command, TFarmingInfoBroadCast>;
|
|
33
33
|
export declare function on_farming_info(daemon: TDaemon, callback: (e: GetMessageType<chia_harvester_service, farming_info_command, TFarmingInfoBroadCast>) => unknown): Promise<() => void>;
|
|
34
|
-
export declare
|
|
35
|
-
export declare type
|
|
36
|
-
export declare type
|
|
34
|
+
export declare const add_connection_command = "add_connection";
|
|
35
|
+
export declare type add_connection_command = typeof add_connection_command;
|
|
36
|
+
export declare type TAddConnectionBroadCast = None;
|
|
37
|
+
export declare type WsAddConnectionMessage = GetMessageType<chia_harvester_service, add_connection_command, TAddConnectionBroadCast>;
|
|
38
|
+
export declare function on_add_connection(daemon: TDaemon, callback: (e: GetMessageType<chia_harvester_service, add_connection_command, TAddConnectionBroadCast>) => unknown): Promise<() => void>;
|
|
39
|
+
export declare const close_connection_command = "close_connection";
|
|
40
|
+
export declare type close_connection_command = typeof close_connection_command;
|
|
41
|
+
export declare type TCloseConnectionBroadCast = None;
|
|
42
|
+
export declare type WsCloseConnectionMessage = GetMessageType<chia_harvester_service, close_connection_command, TCloseConnectionBroadCast>;
|
|
43
|
+
export declare function on_close_connection(daemon: TDaemon, callback: (e: GetMessageType<chia_harvester_service, close_connection_command, TCloseConnectionBroadCast>) => unknown): Promise<() => void>;
|
|
44
|
+
export declare type WsHarvesterMessage = WsGetConnectionsHarvesterMessage | WsGetPlotsMessage | WsFarmingInfoMessage | WsAddConnectionMessage | WsCloseConnectionMessage;
|
|
45
|
+
export declare type chia_harvester_commands = get_plots_command | farming_info_command | add_connection_command | close_connection_command | get_connections_command;
|
|
46
|
+
export declare type TChiaHarvesterBroadcast = TGetPlotsBroadCast | TFarmingInfoBroadCast | TAddConnectionBroadCast | TCloseConnectionBroadCast | TGetConnectionsBroadCast;
|
|
37
47
|
export declare function on_message_from_harvester(daemon: TDaemon, callback: (e: WsHarvesterMessage) => unknown): Promise<() => void>;
|
|
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.on_message_from_harvester = exports.on_farming_info = exports.farming_info_command = exports.on_get_plots = exports.get_plots_command = exports.on_get_connections = exports.get_connections_command = exports.chia_harvester_service = void 0;
|
|
12
|
+
exports.on_message_from_harvester = exports.on_close_connection = exports.close_connection_command = exports.on_add_connection = exports.add_connection_command = exports.on_farming_info = exports.farming_info_command = exports.on_get_plots = exports.get_plots_command = exports.on_get_connections = exports.get_connections_command = exports.chia_harvester_service = void 0;
|
|
13
13
|
const types_1 = require("../../types");
|
|
14
14
|
exports.chia_harvester_service = "chia_harvester";
|
|
15
15
|
exports.get_connections_command = "get_connections";
|
|
@@ -51,6 +51,32 @@ function on_farming_info(daemon, callback) {
|
|
|
51
51
|
});
|
|
52
52
|
}
|
|
53
53
|
exports.on_farming_info = on_farming_info;
|
|
54
|
+
exports.add_connection_command = "add_connection";
|
|
55
|
+
function on_add_connection(daemon, callback) {
|
|
56
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
57
|
+
yield daemon.subscribe(types_1.metrics_service);
|
|
58
|
+
const messageListener = (e) => {
|
|
59
|
+
if (e.origin === exports.chia_harvester_service && e.command === exports.add_connection_command) {
|
|
60
|
+
callback(e);
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
return daemon.addMessageListener(exports.chia_harvester_service, messageListener);
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
exports.on_add_connection = on_add_connection;
|
|
67
|
+
exports.close_connection_command = "close_connection";
|
|
68
|
+
function on_close_connection(daemon, callback) {
|
|
69
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
70
|
+
yield daemon.subscribe(types_1.metrics_service);
|
|
71
|
+
const messageListener = (e) => {
|
|
72
|
+
if (e.origin === exports.chia_harvester_service && e.command === exports.close_connection_command) {
|
|
73
|
+
callback(e);
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
return daemon.addMessageListener(exports.chia_harvester_service, messageListener);
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
exports.on_close_connection = on_close_connection;
|
|
54
80
|
function on_message_from_harvester(daemon, callback) {
|
|
55
81
|
return __awaiter(this, void 0, void 0, function* () {
|
|
56
82
|
yield daemon.subscribe(types_1.wallet_ui_service);
|