chia-agent 10.1.0 → 11.1.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.
@@ -1,6 +1,6 @@
1
1
  import { WalletInfo } from "../../chia/wallet/wallet_info";
2
2
  import { Coin } from "../../chia/types/blockchain_format/coin";
3
- import { bool, bytes, False, int, None, Optional, str, True, uint128, uint16, uint32, uint64, uint8 } from "../../chia/types/_python_types_";
3
+ import { bool, bytes, False, int, None, Optional, str, True, uint16, uint32, uint64, uint8 } from "../../chia/types/_python_types_";
4
4
  import { bytes32 } from "../../chia/types/blockchain_format/sized_bytes";
5
5
  import { TransactionRecord, TransactionRecordConvenience } from "../../chia/wallet/transaction_record";
6
6
  import { SpendBundle } from "../../chia/types/spend_bundle";
@@ -16,6 +16,7 @@ import { GetMessageType, ResType } from "../../types";
16
16
  import { TDaemon } from "../../../daemon/index";
17
17
  import { CoinRecord } from "../../chia/types/coin_record";
18
18
  import { SigningMode } from "../../chia/types/signing_mode";
19
+ import { Balance } from "../../chia/wallet/wallet_node";
19
20
  export declare const chia_wallet_service = "chia_wallet";
20
21
  export declare type chia_wallet_service = typeof chia_wallet_service;
21
22
  export declare const log_in_command = "log_in";
@@ -123,6 +124,16 @@ export declare type TDeleteAllKeysResponse = {} | {
123
124
  };
124
125
  export declare type WsDeleteAllKeysMessage = GetMessageType<chia_wallet_service, delete_all_keys_command, TDeleteAllKeysResponse>;
125
126
  export declare function delete_all_keys<T extends TRPCAgent | TDaemon>(agent: T): Promise<import("../../../rpc").ErrorResponse | ResType<T, TDeleteAllKeysResponse, WsDeleteAllKeysMessage>>;
127
+ export declare const set_wallet_resync_on_startup_command = "set_wallet_resync_on_startup";
128
+ export declare type set_wallet_resync_on_startup_command = typeof set_wallet_resync_on_startup_command;
129
+ export declare type TSetWalletResyncOnStartupRequest = {
130
+ enable?: bool;
131
+ };
132
+ export declare type TSetWalletResyncOnStartupResponse = {
133
+ success: True;
134
+ };
135
+ export declare type WsSetWalletResyncOnStartupMessage = GetMessageType<chia_wallet_service, set_wallet_resync_on_startup_command, TSetWalletResyncOnStartupResponse>;
136
+ export declare function set_wallet_resync_on_startup<T extends TRPCAgent | TDaemon>(agent: T): Promise<import("../../../rpc").ErrorResponse | ResType<T, TSetWalletResyncOnStartupResponse, WsSetWalletResyncOnStartupMessage>>;
126
137
  export declare const get_sync_status_command = "get_sync_status";
127
138
  export declare type get_sync_status_command = typeof get_sync_status_command;
128
139
  export declare type TGetSyncStatusRequest = {};
@@ -325,15 +336,8 @@ export declare type TGetWalletBalanceRequest = {
325
336
  wallet_id: int;
326
337
  };
327
338
  export declare type TGetWalletBalanceResponse = {
328
- wallet_balance: {
339
+ wallet_balance: Balance & {
329
340
  wallet_id: uint32;
330
- confirmed_wallet_balance: uint128;
331
- unconfirmed_wallet_balance: uint128;
332
- spendable_balance: uint128;
333
- pending_change: uint64;
334
- max_send_amount: uint64;
335
- unspent_coin_count: int;
336
- pending_coin_removal_count: int;
337
341
  wallet_type: int;
338
342
  fingerprint?: int;
339
343
  asset_id?: str;
@@ -392,6 +396,7 @@ export declare type TSendTransactionRequest = {
392
396
  max_coin_amount?: uint64;
393
397
  exclude_coin_amounts?: uint64[];
394
398
  exclude_coin_ids?: str[];
399
+ reuse_puzhash?: bool;
395
400
  };
396
401
  export declare type TSendTransactionResponse = {
397
402
  transaction: TransactionRecordConvenience;
@@ -615,11 +620,24 @@ export declare type TVerifySignatureResponse = {
615
620
  };
616
621
  export declare type WsVerifySignatureMessage = GetMessageType<chia_wallet_service, verify_signature_command, TVerifySignatureResponse>;
617
622
  export declare function verify_signature<T extends TRPCAgent | TDaemon>(agent: T, data: TVerifySignatureRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TVerifySignatureResponse, WsVerifySignatureMessage>>;
623
+ export declare const get_transaction_memo_command = "get_transaction_memo";
624
+ export declare type get_transaction_memo_command = typeof get_transaction_memo_command;
625
+ export declare type TGetTransactionMemoRequest = {
626
+ transaction_id: str;
627
+ };
628
+ export declare type TGetTransactionMemoResponse = {
629
+ [transaction_id: string]: {
630
+ [coin_id: string]: string[];
631
+ };
632
+ };
633
+ export declare type WsGetTransactionMemoMessage = GetMessageType<chia_wallet_service, get_transaction_memo_command, TGetTransactionMemoResponse>;
634
+ export declare function get_transaction_memo<T extends TRPCAgent | TDaemon>(agent: T, data: TGetTransactionMemoRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetTransactionMemoResponse, WsGetTransactionMemoMessage>>;
618
635
  export declare const sign_message_by_address_command = "sign_message_by_address";
619
636
  export declare type sign_message_by_address_command = typeof sign_message_by_address_command;
620
637
  export declare type TSignMessageByAddressRequest = {
621
638
  address: str;
622
639
  message: str;
640
+ is_hex?: bool;
623
641
  };
624
642
  export declare type TSignMessageByAddressResponse = {
625
643
  success: True;
@@ -634,6 +652,7 @@ export declare type sign_message_by_id_command = typeof sign_message_by_id_comma
634
652
  export declare type TSignMessageByIdRequest = {
635
653
  id: str;
636
654
  message: str;
655
+ is_hex?: bool;
637
656
  };
638
657
  export declare type TSignMessageByIdResponse = {
639
658
  success: False;
@@ -713,6 +732,10 @@ export declare type TCatSpendRequest = {
713
732
  max_coin_amount?: uint64;
714
733
  exclude_coin_amounts?: uint64[];
715
734
  exclude_coin_ids?: str[];
735
+ reuse_puzhash?: bool;
736
+ extra_delta?: int;
737
+ tail_reveal?: str;
738
+ tail_solution?: str;
716
739
  };
717
740
  export declare type TCatSpendResponse = {
718
741
  transaction: TransactionRecordConvenience;
@@ -741,6 +764,7 @@ export declare type TCreateOfferForIdsRequest = {
741
764
  min_coin_amount?: uint64;
742
765
  max_coin_amount?: uint64;
743
766
  solver?: Record<str, any>;
767
+ reuse_puzhash?: bool;
744
768
  };
745
769
  export declare type TCreateOfferForIdsResponse = {
746
770
  offer: str;
@@ -784,6 +808,7 @@ export declare type TTakeOfferRequest = {
784
808
  min_coin_amount?: uint64;
785
809
  max_coin_amount?: uint64;
786
810
  solver?: Record<str, any>;
811
+ reuse_puzhash?: bool;
787
812
  };
788
813
  export declare type TTakeOfferResponse = {
789
814
  trade_record: TradeRecordConvenience;
@@ -886,6 +911,7 @@ export declare type TDidUpdateRecoveryIdsRequest = {
886
911
  wallet_id: uint32;
887
912
  new_list: str[];
888
913
  num_verifications_required?: uint64;
914
+ reuse_puzhash?: bool;
889
915
  };
890
916
  export declare type TDidUpdateRecoveryIdsResponse = {
891
917
  success: bool;
@@ -898,6 +924,7 @@ export declare type TDidUpdateMetadataRequest = {
898
924
  wallet_id: uint32;
899
925
  metadata?: Record<str, str>;
900
926
  fee?: uint64;
927
+ reuse_puzhash?: bool;
901
928
  };
902
929
  export declare type TDidUpdateMetadataResponse = {
903
930
  success: True;
@@ -1077,6 +1104,7 @@ export declare type TDidGetInfoResponse = {
1077
1104
  metadata: Record<str, str>;
1078
1105
  launcher_id: str;
1079
1106
  full_puzzle: str;
1107
+ solution: any;
1080
1108
  hints: str[];
1081
1109
  };
1082
1110
  export declare type WsDidGetInfoMessage = GetMessageType<chia_wallet_service, did_get_info_command, TDidGetInfoResponse>;
@@ -1102,6 +1130,7 @@ export declare type TDidTransferDidRequest = {
1102
1130
  inner_address: str;
1103
1131
  fee?: uint64;
1104
1132
  with_recovery_info?: bool;
1133
+ reuse_puzhash?: bool;
1105
1134
  };
1106
1135
  export declare type TDidTransferDidResponse = {
1107
1136
  success: True;
@@ -1127,6 +1156,7 @@ export declare type TNftMintNftRequest = {
1127
1156
  fee?: uint64;
1128
1157
  did_id?: str;
1129
1158
  royalty_percentage?: uint16;
1159
+ reuse_puzhash?: bool;
1130
1160
  };
1131
1161
  export declare type TNftMintNftResponse = {
1132
1162
  wallet_id: uint32;
@@ -1136,6 +1166,21 @@ export declare type TNftMintNftResponse = {
1136
1166
  };
1137
1167
  export declare type WsNftMintNftMessage = GetMessageType<chia_wallet_service, nft_mint_nft_command, TNftMintNftResponse>;
1138
1168
  export declare function nft_mint_nft<T extends TRPCAgent | TDaemon>(agent: T, data: TNftMintNftRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TNftMintNftResponse, WsNftMintNftMessage>>;
1169
+ export declare const nft_count_nfts_command = "nft_count_nfts";
1170
+ export declare type nft_count_nfts_command = typeof nft_count_nfts_command;
1171
+ export declare type TNftCountNftsRequest = {
1172
+ wallet_id: uint32;
1173
+ };
1174
+ export declare type TNftCountNftsResponse = {
1175
+ success: False;
1176
+ error: str;
1177
+ } | {
1178
+ wallet_id: uint32;
1179
+ success: True;
1180
+ count: int;
1181
+ };
1182
+ export declare type WsNftCountNftsMessage = GetMessageType<chia_wallet_service, nft_count_nfts_command, TNftCountNftsResponse>;
1183
+ export declare function nft_count_nfts<T extends TRPCAgent | TDaemon>(agent: T, data: TNftCountNftsRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TNftCountNftsResponse, WsNftCountNftsMessage>>;
1139
1184
  export declare const nft_get_nfts_command = "nft_get_nfts";
1140
1185
  export declare type nft_get_nfts_command = typeof nft_get_nfts_command;
1141
1186
  export declare type TNftGetNftsRequest = {
@@ -1158,6 +1203,7 @@ export declare type TNftSetNftDidRequest = {
1158
1203
  did_id?: str;
1159
1204
  nft_coin_id: str;
1160
1205
  fee?: uint64;
1206
+ reuse_puzhash?: bool;
1161
1207
  };
1162
1208
  export declare type TNftSetNftDidResponse = {
1163
1209
  wallet_id: uint32;
@@ -1178,6 +1224,7 @@ export declare type TNftSetDidBulkRequest = {
1178
1224
  }>;
1179
1225
  did_id?: str;
1180
1226
  fee?: uint64;
1227
+ reuse_puzhash?: bool;
1181
1228
  };
1182
1229
  export declare type TNftSetDidBulkResponse = {
1183
1230
  success: False;
@@ -1199,6 +1246,7 @@ export declare type TNftTransferBulkRequest = {
1199
1246
  }>;
1200
1247
  target_address: str;
1201
1248
  fee?: uint64;
1249
+ reuse_puzhash?: bool;
1202
1250
  };
1203
1251
  export declare type TNftTransferBulkResponse = {
1204
1252
  success: False;
@@ -1267,6 +1315,7 @@ export declare type TNftTransferNftRequest = {
1267
1315
  target_address: str;
1268
1316
  nft_coin_id: str;
1269
1317
  fee?: uint64;
1318
+ reuse_puzhash?: bool;
1270
1319
  };
1271
1320
  export declare type TNftTransferNftResponse = {
1272
1321
  success: True;
@@ -1302,6 +1351,7 @@ export declare type TNftAddUriRequest = {
1302
1351
  key: str;
1303
1352
  nft_coin_id: str;
1304
1353
  fee?: uint64;
1354
+ reuse_puzhash?: bool;
1305
1355
  };
1306
1356
  export declare type TNftAddUriResponse = {
1307
1357
  success: True;
@@ -1357,6 +1407,7 @@ export declare type TNftMintBulkRequest = {
1357
1407
  did_lineage_parent?: str;
1358
1408
  mint_from_did?: bool;
1359
1409
  fee?: uint64;
1410
+ reuse_puzhash?: bool;
1360
1411
  };
1361
1412
  export declare type TNftMintBulkResponse = {
1362
1413
  success: False;
@@ -1544,6 +1595,7 @@ export declare function dl_update_multiple<T extends TRPCAgent | TDaemon>(agent:
1544
1595
  export declare const dl_history_command = "dl_history";
1545
1596
  export declare type dl_history_command = typeof dl_history_command;
1546
1597
  export declare type TDlHistoryRequest = {
1598
+ launcher_id: str;
1547
1599
  min_generation?: uint32;
1548
1600
  max_generation?: uint32;
1549
1601
  num_results?: uint32;
@@ -1596,5 +1648,5 @@ export declare type TDlDeleteMirrorResponse = {
1596
1648
  };
1597
1649
  export declare type WsDlDeleteMirrorMessage = GetMessageType<chia_wallet_service, dl_delete_mirror_command, TDlDeleteMirrorResponse>;
1598
1650
  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 | TNftTransferBulkRequest | TNftTransferBulkResponse | TDeleteAllKeysResponse | TDeleteKeyResponse | TCheckDeleteKeyResponse | TDidSetWalletNameResponse | TDidGetWalletNameResponse | TDidCreateAttestResponse | TDidCreateBackupFileResponse | TDidTransferDidResponse | TDidMessageSpendResponse | TDidGetInfoResponse | TDidFindLostDidResponse | TDidGetDidResponse | TDidGetInformationNeededForRecoveryResponse | TDidGetCurrentCoinInfoResponse | TDidGetPubkeyResponse | TDidGetRecoveryListResponse | TDidGetMetadataResponse | TDidRecoverySpendResponse | TDidSpendResponse | TDidUpdateRecoveryIdsResponse | TDidUpdateMetadataResponse | TNftMintNftResponse | 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;
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;
1651
+ 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;
1652
+ 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;
@@ -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.send_transaction_multi_command = exports.send_transaction = 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.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.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 = 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.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 = void 0;
14
- exports.nft_mint_nft_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 = 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 = void 0;
15
- 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 = 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_mint_nft = 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 = 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* () {
@@ -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 type WsFarmerMessage = WsGetConnectionFarmerMessage | WsNewFarmingInfoMessage | WsNewSignagePointMessage | WsHarvesterUpdateMessage | WsHarvesterRemovedMessage | WsProofMessage | WsSubmittedPartialMessage;
71
- 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;
72
- export declare type TChiaFarmerBroadcast = TGetConnectionsBroadCast | TNewFarmingInfoBroadCast | TNewSignagePointBroadCast | THarvesterUpdateBroadCast | THarvesterRemovedBroadCast | TProofBroadCast | TSubmittedPartialBroadCast;
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>;
@@ -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.wallet_ui_service);
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 daemon.subscribe(types_1.wallet_ui_service);
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 type WsHarvesterMessage = WsGetConnectionsHarvesterMessage | WsGetPlotsMessage | WsFarmingInfoMessage;
35
- export declare type chia_harvester_commands = get_plots_command | farming_info_command | get_connections_command;
36
- export declare type TChiaHarvesterBroadcast = TGetPlotsBroadCast | TFarmingInfoBroadCast | TGetConnectionsBroadCast;
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);
package/api/ws/index.d.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  import type { WsFarmerMessage } from "./farmer/index";
2
- export { chia_farmer_service, TChiaFarmerBroadcast, TGetConnectionsBroadCast as TGetConnectionsFarmerBroadCast, TNewSignagePointBroadCast, TNewFarmingInfoBroadCast, THarvesterUpdateBroadCast, THarvesterRemovedBroadCast, TProofBroadCast, TSubmittedPartialBroadCast, on_message_from_farmer, on_get_connections as on_get_connections_farmer, on_new_farming_info, on_new_signage_point, on_harvester_update, on_harvester_removed, on_proof, on_submitted_partial, } from "./farmer/index";
2
+ export { chia_farmer_service, TChiaFarmerBroadcast, TGetConnectionsBroadCast as TGetConnectionsFarmerBroadCast, TNewSignagePointBroadCast, TNewFarmingInfoBroadCast, THarvesterUpdateBroadCast, THarvesterRemovedBroadCast, TProofBroadCast, TSubmittedPartialBroadCast, TAddConnectionBroadCast, TCloseConnectionBroadCast, on_message_from_farmer, on_get_connections as on_get_connections_farmer, on_new_farming_info, on_new_signage_point, on_harvester_update, on_harvester_removed, on_proof, on_submitted_partial, on_add_connection, on_close_connection, } from "./farmer/index";
3
3
  import type { WsFullNodeMessage } from "./full_node/index";
4
4
  export { chia_full_node_service, TChiaFullNodeBroadcast, TGetConnectionsBroadCast as TGetConnectionsFullNodeBroadCast, TGetBlockchainStateBroadCast, TBlockBroadCast, TSignagePointBroadCast, on_message_from_full_node, on_get_connections as on_get_connections_full_node, on_get_blockchain_state, on_block, on_signage_point, } from "./full_node/index";
5
5
  import type { WsHarvesterMessage } from "./harvester/index";
6
- export { chia_harvester_service, TGetConnectionsBroadCast as TGetConnectionsHarvesterBroadCast, TChiaHarvesterBroadcast, TGetPlotsBroadCast, TFarmingInfoBroadCast, on_message_from_harvester, on_get_connections as on_get_connections_harvester, on_get_plots, on_farming_info, } from "./harvester/index";
6
+ export { chia_harvester_service, TGetConnectionsBroadCast as TGetConnectionsHarvesterBroadCast, TChiaHarvesterBroadcast, TGetPlotsBroadCast, TFarmingInfoBroadCast, TAddConnectionBroadCast as TAddConnectionHarvesterBroadCast, TCloseConnectionBroadCast as TCloseConnectionHarvesterBroadCast, on_message_from_harvester, on_get_connections as on_get_connections_harvester, on_get_plots, on_farming_info, on_add_connection as on_add_connection_harvester, on_close_connection as on_close_connection_harvester, } from "./harvester/index";
7
7
  import type { WsWalletMessage } from "./wallet/index";
8
- export { chia_wallet_service, TGetConnectionsBroadCast as TGetConnectionsWalletBroadCast, TSyncChangedBroadCastOfWallet, TStateChangedBroadCastOfWallet, TCoinAddedBroadCastOfWallet, TChiaWalletBroadcast, on_get_connections as on_get_connections_wallet, on_sync_changed_of_wallet, on_state_changed_of_wallet, on_coin_added_of_wallet, on_message_from_wallet, } from "./wallet/index";
8
+ export { chia_wallet_service, TGetConnectionsBroadCast as TGetConnectionsWalletBroadCast, TSyncChangedBroadCast, TStateChangedBroadCastOfWallet, TCoinAddedBroadCast, TChiaWalletBroadcast, on_get_connections as on_get_connections_wallet, on_sync_changed, on_state_changed_of_wallet, on_coin_added, on_add_connection as on_add_connection_wallet, on_close_connection as on_close_connection_wallet, on_message_from_wallet, } from "./wallet/index";
9
9
  import type { WsPlotsMessage } from "./chia_plots_create/index";
10
10
  export { chia_plotter_service, state_changed_command_of_plots, TStateChangedBroadCastOfPlots, on_state_changed_of_plots, } from "./chia_plots_create/index";
11
11
  import type { WsCrawlerMessage } from "./crawler/index";
package/api/ws/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.add_private_key = exports.is_running = exports.running_services = exports.get_plotters = exports.get_version = exports.get_status = exports.exit = exports.stop_plotting = exports.stop_service = exports.start_plotting = exports.start_service = exports.register_service = exports.daemon_service = exports.on_new_peak = exports.on_skipping_peak = exports.on_new_compact_proof = exports.on_finished_pot = exports.chia_timelord_service = exports.on_crawl_batch_completed = exports.on_loaded_initial_peers = exports.chia_crawler_service = exports.on_state_changed_of_plots = exports.state_changed_command_of_plots = exports.chia_plotter_service = exports.on_message_from_wallet = exports.on_coin_added_of_wallet = exports.on_state_changed_of_wallet = exports.on_sync_changed_of_wallet = exports.on_get_connections_wallet = exports.chia_wallet_service = exports.on_farming_info = exports.on_get_plots = exports.on_get_connections_harvester = exports.on_message_from_harvester = exports.chia_harvester_service = exports.on_signage_point = exports.on_block = exports.on_get_blockchain_state = exports.on_get_connections_full_node = exports.on_message_from_full_node = exports.chia_full_node_service = exports.on_submitted_partial = exports.on_proof = exports.on_harvester_removed = exports.on_harvester_update = exports.on_new_signage_point = exports.on_new_farming_info = exports.on_get_connections_farmer = exports.on_message_from_farmer = exports.chia_farmer_service = void 0;
4
- exports.validate_keyring_passphrase = exports.ping = exports.notify_keyring_migration_completed = exports.remove_keyring_passphrase = exports.set_keyring_passphrase = exports.migrate_keyring = exports.unlock_keyring = exports.keyring_status = exports.on_keyring_status_changed = exports.is_keyring_locked = exports.delete_label = exports.set_label = exports.get_keys = exports.get_key = exports.get_key_for_fingerprint = exports.get_first_private_key = exports.get_all_private_keys = exports.delete_key_by_fingerprint = exports.delete_all_keys = exports.check_keys = void 0;
3
+ exports.exit = exports.stop_plotting = exports.stop_service = exports.start_plotting = exports.start_service = exports.register_service = exports.daemon_service = exports.on_new_peak = exports.on_skipping_peak = exports.on_new_compact_proof = exports.on_finished_pot = exports.chia_timelord_service = exports.on_crawl_batch_completed = exports.on_loaded_initial_peers = exports.chia_crawler_service = exports.on_state_changed_of_plots = exports.state_changed_command_of_plots = exports.chia_plotter_service = exports.on_message_from_wallet = exports.on_close_connection_wallet = exports.on_add_connection_wallet = exports.on_coin_added = exports.on_state_changed_of_wallet = exports.on_sync_changed = exports.on_get_connections_wallet = exports.chia_wallet_service = exports.on_close_connection_harvester = exports.on_add_connection_harvester = exports.on_farming_info = exports.on_get_plots = exports.on_get_connections_harvester = exports.on_message_from_harvester = exports.chia_harvester_service = exports.on_signage_point = exports.on_block = exports.on_get_blockchain_state = exports.on_get_connections_full_node = exports.on_message_from_full_node = exports.chia_full_node_service = exports.on_close_connection = exports.on_add_connection = exports.on_submitted_partial = exports.on_proof = exports.on_harvester_removed = exports.on_harvester_update = exports.on_new_signage_point = exports.on_new_farming_info = exports.on_get_connections_farmer = exports.on_message_from_farmer = exports.chia_farmer_service = void 0;
4
+ exports.validate_keyring_passphrase = exports.ping = exports.notify_keyring_migration_completed = exports.remove_keyring_passphrase = exports.set_keyring_passphrase = exports.migrate_keyring = exports.unlock_keyring = exports.keyring_status = exports.on_keyring_status_changed = exports.is_keyring_locked = exports.delete_label = exports.set_label = exports.get_keys = exports.get_key = exports.get_key_for_fingerprint = exports.get_first_private_key = exports.get_all_private_keys = exports.delete_key_by_fingerprint = exports.delete_all_keys = exports.check_keys = exports.add_private_key = exports.is_running = exports.running_services = exports.get_plotters = exports.get_version = exports.get_status = void 0;
5
5
  var index_1 = require("./farmer/index");
6
6
  Object.defineProperty(exports, "chia_farmer_service", { enumerable: true, get: function () { return index_1.chia_farmer_service; } });
7
7
  Object.defineProperty(exports, "on_message_from_farmer", { enumerable: true, get: function () { return index_1.on_message_from_farmer; } });
@@ -12,6 +12,8 @@ Object.defineProperty(exports, "on_harvester_update", { enumerable: true, get: f
12
12
  Object.defineProperty(exports, "on_harvester_removed", { enumerable: true, get: function () { return index_1.on_harvester_removed; } });
13
13
  Object.defineProperty(exports, "on_proof", { enumerable: true, get: function () { return index_1.on_proof; } });
14
14
  Object.defineProperty(exports, "on_submitted_partial", { enumerable: true, get: function () { return index_1.on_submitted_partial; } });
15
+ Object.defineProperty(exports, "on_add_connection", { enumerable: true, get: function () { return index_1.on_add_connection; } });
16
+ Object.defineProperty(exports, "on_close_connection", { enumerable: true, get: function () { return index_1.on_close_connection; } });
15
17
  var index_2 = require("./full_node/index");
16
18
  Object.defineProperty(exports, "chia_full_node_service", { enumerable: true, get: function () { return index_2.chia_full_node_service; } });
17
19
  Object.defineProperty(exports, "on_message_from_full_node", { enumerable: true, get: function () { return index_2.on_message_from_full_node; } });
@@ -25,12 +27,16 @@ Object.defineProperty(exports, "on_message_from_harvester", { enumerable: true,
25
27
  Object.defineProperty(exports, "on_get_connections_harvester", { enumerable: true, get: function () { return index_3.on_get_connections; } });
26
28
  Object.defineProperty(exports, "on_get_plots", { enumerable: true, get: function () { return index_3.on_get_plots; } });
27
29
  Object.defineProperty(exports, "on_farming_info", { enumerable: true, get: function () { return index_3.on_farming_info; } });
30
+ Object.defineProperty(exports, "on_add_connection_harvester", { enumerable: true, get: function () { return index_3.on_add_connection; } });
31
+ Object.defineProperty(exports, "on_close_connection_harvester", { enumerable: true, get: function () { return index_3.on_close_connection; } });
28
32
  var index_4 = require("./wallet/index");
29
33
  Object.defineProperty(exports, "chia_wallet_service", { enumerable: true, get: function () { return index_4.chia_wallet_service; } });
30
34
  Object.defineProperty(exports, "on_get_connections_wallet", { enumerable: true, get: function () { return index_4.on_get_connections; } });
31
- Object.defineProperty(exports, "on_sync_changed_of_wallet", { enumerable: true, get: function () { return index_4.on_sync_changed_of_wallet; } });
35
+ Object.defineProperty(exports, "on_sync_changed", { enumerable: true, get: function () { return index_4.on_sync_changed; } });
32
36
  Object.defineProperty(exports, "on_state_changed_of_wallet", { enumerable: true, get: function () { return index_4.on_state_changed_of_wallet; } });
33
- Object.defineProperty(exports, "on_coin_added_of_wallet", { enumerable: true, get: function () { return index_4.on_coin_added_of_wallet; } });
37
+ Object.defineProperty(exports, "on_coin_added", { enumerable: true, get: function () { return index_4.on_coin_added; } });
38
+ Object.defineProperty(exports, "on_add_connection_wallet", { enumerable: true, get: function () { return index_4.on_add_connection; } });
39
+ Object.defineProperty(exports, "on_close_connection_wallet", { enumerable: true, get: function () { return index_4.on_close_connection; } });
34
40
  Object.defineProperty(exports, "on_message_from_wallet", { enumerable: true, get: function () { return index_4.on_message_from_wallet; } });
35
41
  var index_5 = require("./chia_plots_create/index");
36
42
  Object.defineProperty(exports, "chia_plotter_service", { enumerable: true, get: function () { return index_5.chia_plotter_service; } });