chia-agent 19.0.0 → 19.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +47 -0
- package/README.md +5 -5
- package/api/chia/rpc/wallet_request_types.d.ts +10 -2
- package/api/chia/rpc/wallet_rpc_api.d.ts +4 -0
- package/api/chia/types/mempool_item.d.ts +5 -2
- package/api/chia/wallet/util/tx_config.d.ts +2 -0
- package/api/chia/wallet/util/wallet_types.d.ts +1 -0
- package/api/chia/wallet/util/wallet_types.js +1 -0
- package/api/{chia/types → chia_rs/chia-protocol}/coin_record.d.ts +3 -3
- package/api/rpc/full_node/index.d.ts +1 -1
- package/api/rpc/index.d.ts +1 -1
- package/api/rpc/index.js +6 -4
- package/api/rpc/wallet/index.d.ts +51 -15
- package/api/rpc/wallet/index.js +12 -2
- package/package.json +1 -1
- package/api/chia/consensus/cost_calculator.d.ts +0 -7
- package/api/chia/consensus/cost_calculator.js +0 -2
- /package/api/{chia/types → chia_rs/chia-protocol}/coin_record.js +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,50 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [19.2.0]
|
|
4
|
+
Support for [`chia-blockchain@2.7.1`](https://github.com/Chia-Network/chia-blockchain/releases/tag/2.7.1)
|
|
5
|
+
|
|
6
|
+
### Added
|
|
7
|
+
- New Wallet RPC API [`get_puzzle_and_solution`](./src/api/rpc/wallet/README.md#get_puzzle_and_solutionagent-params)
|
|
8
|
+
- exported as `get_puzzle_and_solution_of_wallet` from `chia-agent/api/rpc`
|
|
9
|
+
(the Full Node RPC API of the same name keeps the plain export)
|
|
10
|
+
- `get_height_info`
|
|
11
|
+
- New optional request parameter `use_peak_height`
|
|
12
|
+
- Response now includes `latest_timestamp`, `is_transaction_block` and `prev_transaction_block_height`
|
|
13
|
+
- `CoinSelectionConfig`: new optional `included_coin_ids` and `primary_coin` request fields,
|
|
14
|
+
accepted by all transaction endpoints as well as `select_coins` and `get_spendable_coins`
|
|
15
|
+
- New optional `allow_unsynced` request field on all transaction endpoints,
|
|
16
|
+
`select_coins`, `get_spendable_coins` and `get_coin_records_by_names`
|
|
17
|
+
- All transaction endpoint responses now include `sync_status`
|
|
18
|
+
(`0=SYNCED, 1=SLIGHTLY_BEHIND, 2=LONG_SYNC, 3=DISCONNECTED`)
|
|
19
|
+
|
|
20
|
+
### Changed
|
|
21
|
+
- Synchronized with `chia_rs@0.42.1` (no type definition changes were required)
|
|
22
|
+
- Several integer fields were widened from `uint16` to `uint32` upstream
|
|
23
|
+
(`get_transaction_count.count`, `get_offers_count` counters, `nft_set_did_bulk` / `nft_transfer_bulk` `tx_num`,
|
|
24
|
+
`nft_mint_bulk` `mint_number_start` / `mint_total`, `get_all_offers` `start` / `end`)
|
|
25
|
+
- `get_height_info` now sends its request body (previously the optional request object was ignored)
|
|
26
|
+
- Removed `chia/consensus/cost_calculator` to match chia-blockchain 2.7.1, which deleted
|
|
27
|
+
`chia/consensus/cost_calculator.py`
|
|
28
|
+
- The `NPCResult` type it held moved to `chia/types/mempool_item` (its only consumer); import it
|
|
29
|
+
from there instead of `chia-agent/api/chia/consensus/cost_calculator`
|
|
30
|
+
- Corrected the mempool `npc_result` field name from `error` to `Error` to match the wire
|
|
31
|
+
- Relocated `CoinRecord` / `CoinRecordBackwardCompatible` from `chia/types/coin_record` to
|
|
32
|
+
`chia_rs/chia-protocol/coin_record`, reflecting that `CoinRecord` moved into `chia_rs` upstream
|
|
33
|
+
(chia-blockchain deleted `chia/types/coin_record.py` in 2.6.0). The type shape is unchanged; only
|
|
34
|
+
the import path changed (`chia-agent/api/chia_rs/chia-protocol/coin_record`)
|
|
35
|
+
|
|
36
|
+
## [19.1.0]
|
|
37
|
+
Support for [`chia-blockchain@2.7.0`](https://github.com/Chia-Network/chia-blockchain/releases/tag/2.7.0)
|
|
38
|
+
|
|
39
|
+
### Added
|
|
40
|
+
- Remote Wallet support (introduced in chia-blockchain 2.7.0)
|
|
41
|
+
- New Wallet RPC API [`register_remote_coins`](./src/api/rpc/wallet/README.md#register_remote_coinsagent-params)
|
|
42
|
+
- `create_new_wallet` now accepts `wallet_type: "remote_wallet"` (with optional `name`)
|
|
43
|
+
- `WalletType`: added `REMOTE: 205`
|
|
44
|
+
|
|
45
|
+
### Changed
|
|
46
|
+
- Synchronized with `chia_rs@0.41.1` (no type definition changes were required)
|
|
47
|
+
|
|
3
48
|
## [19.0.0]
|
|
4
49
|
Support for [`chia-blockchain@2.6.1`](https://github.com/Chia-Network/chia-blockchain/releases/tag/2.6.1)
|
|
5
50
|
|
|
@@ -2070,6 +2115,8 @@ daemon.sendMessage(destination, get_block_record_by_height_command, data);
|
|
|
2070
2115
|
Initial release.
|
|
2071
2116
|
|
|
2072
2117
|
<!-- [Unreleased]: https://github.com/Chia-Mine/chia-agent/compare/v0.0.1...v0.0.2 -->
|
|
2118
|
+
[19.2.0]: https://github.com/Chia-Mine/chia-agent/compare/v19.1.0...v19.2.0
|
|
2119
|
+
[19.1.0]: https://github.com/Chia-Mine/chia-agent/compare/v19.0.0...v19.1.0
|
|
2073
2120
|
[19.0.0]: https://github.com/Chia-Mine/chia-agent/compare/v18.0.0...v19.0.0
|
|
2074
2121
|
[18.0.0]: https://github.com/Chia-Mine/chia-agent/compare/v17.0.0...v18.0.0
|
|
2075
2122
|
[17.0.0]: https://github.com/Chia-Mine/chia-agent/compare/v16.1.6...v17.0.0
|
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
[](https://badge.fury.io/js/chia-agent) [](https://opensource.org/licenses/MIT)
|
|
3
3
|
|
|
4
4
|
chia rpc/websocket client library for NodeJS.
|
|
5
|
-
Supports all RPC/Websocket API available at `2.
|
|
5
|
+
Supports all RPC/Websocket API available at `2.7.1` of [`chia-blockchain`](https://github.com/Chia-Network/chia-blockchain/).
|
|
6
6
|
\(If you need previous version, search for the corresponding release [here](https://github.com/Chia-Mine/chia-agent/releases)\)
|
|
7
7
|
|
|
8
8
|
you can develop your own nodejs script with `chia-agent` to:
|
|
@@ -22,10 +22,10 @@ yarn add chia-agent
|
|
|
22
22
|
|
|
23
23
|
## Compatibility
|
|
24
24
|
This code is compatible with:
|
|
25
|
-
- [`
|
|
26
|
-
- [Diff to the main branch of chia-blockchain](https://github.com/Chia-Network/chia-blockchain/compare/
|
|
27
|
-
- [`
|
|
28
|
-
- [Diff to the main branch of chia_rs](https://github.com/Chia-Network/chia_rs/compare/
|
|
25
|
+
- [`560a4ab7a96b619bafd4efd5aa2f2e5c8cffea67`](https://github.com/Chia-Network/chia-blockchain/tree/560a4ab7a96b619bafd4efd5aa2f2e5c8cffea67) of [chia-blockchain 2.7.1](https://github.com/Chia-Network/chia-blockchain)
|
|
26
|
+
- [Diff to the main branch of chia-blockchain](https://github.com/Chia-Network/chia-blockchain/compare/560a4ab7a96b619bafd4efd5aa2f2e5c8cffea67...main)
|
|
27
|
+
- [`746c6888b685fec4827aacb942803022842ffe71`](https://github.com/Chia-Network/chia_rs/tree/746c6888b685fec4827aacb942803022842ffe71) of [chia_rs 0.42.1](https://github.com/Chia-Network/chia_rs)
|
|
28
|
+
- [Diff to the main branch of chia_rs](https://github.com/Chia-Network/chia_rs/compare/746c6888b685fec4827aacb942803022842ffe71...main)
|
|
29
29
|
- [`ef49150171cc243b09c0e5d5cb27f2249ffa3793`](https://github.com/Chia-Network/pool-reference/tree/ef49150171cc243b09c0e5d5cb27f2249ffa3793) of [pool-reference](https://github.com/Chia-Network/pool-reference)
|
|
30
30
|
- [Diff to the main branch of pool-reference](https://github.com/Chia-Network/pool-reference/compare/ef49150171cc243b09c0e5d5cb27f2249ffa3793...main)
|
|
31
31
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { bool, Optional, str } from "../types/_python_types_";
|
|
2
2
|
import { PrivateKey } from "../../chia_rs/chia-bls/secret_key";
|
|
3
3
|
import { G1Element } from "../../chia_rs/chia-bls/lib";
|
|
4
|
-
import { uint16, uint32, uint64 } from "../../chia_rs/wheel/python/sized_ints";
|
|
4
|
+
import { int, uint16, uint32, uint64 } from "../../chia_rs/wheel/python/sized_ints";
|
|
5
5
|
import { bytes32 } from "../../chia_rs/wheel/python/sized_bytes";
|
|
6
6
|
import { Notification } from "../wallet/notification_store";
|
|
7
7
|
import { SignedTransaction, SigningInstructions, SigningResponse, Spend, UnsignedTransaction } from "../wallet/signer_protocol";
|
|
@@ -73,12 +73,15 @@ export type ExecuteSigningInstructionsResponseCHIP0029 = {
|
|
|
73
73
|
export type TransactionEndpointRequest = {
|
|
74
74
|
fee: uint64;
|
|
75
75
|
push?: bool;
|
|
76
|
+
allow_unsynced?: bool;
|
|
76
77
|
};
|
|
77
78
|
export type TransactionEndpointResponse = {
|
|
79
|
+
sync_status: int;
|
|
78
80
|
unsigned_transactions: UnsignedTransaction[];
|
|
79
81
|
transactions: TransactionRecord[];
|
|
80
82
|
};
|
|
81
83
|
export type TransactionEndpointResponseCHIP0029 = {
|
|
84
|
+
sync_status: int;
|
|
82
85
|
unsigned_transactions: str[];
|
|
83
86
|
transactions: TransactionRecord[];
|
|
84
87
|
};
|
|
@@ -235,9 +238,14 @@ export type GetSyncStatusResponse = {
|
|
|
235
238
|
syncing: bool;
|
|
236
239
|
genesis_initialized: bool;
|
|
237
240
|
};
|
|
238
|
-
export type GetHeightInfo =
|
|
241
|
+
export type GetHeightInfo = {
|
|
242
|
+
use_peak_height?: bool;
|
|
243
|
+
} & Marshall;
|
|
239
244
|
export type GetHeightInfoResponse = {
|
|
240
245
|
height: uint32;
|
|
246
|
+
latest_timestamp: uint64;
|
|
247
|
+
is_transaction_block: Optional<bool>;
|
|
248
|
+
prev_transaction_block_height: Optional<uint32>;
|
|
241
249
|
};
|
|
242
250
|
export type PushTX = {
|
|
243
251
|
spend_bundle: WalletSpendBundle | str;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { bool, False, str, True } from "../types/_python_types_";
|
|
2
|
+
import { int } from "../../chia_rs/wheel/python/sized_ints";
|
|
2
3
|
import { TXConfigLoader, TXEndpointForCompat } from "../wallet/util/tx_config";
|
|
3
4
|
import { ConditionValidTimes } from "../wallet/conditions";
|
|
4
5
|
import { UnsignedTransaction } from "../wallet/signer_protocol";
|
|
@@ -10,6 +11,7 @@ export type TXEndpointRequestBase = {
|
|
|
10
11
|
merge_spends?: bool;
|
|
11
12
|
sign?: bool;
|
|
12
13
|
translation?: TranslationLayerKey;
|
|
14
|
+
allow_unsynced?: bool;
|
|
13
15
|
} & TXConfigLoader & TXEndpointForCompat & Partial<ConditionValidTimes>;
|
|
14
16
|
export type TXEndpointRequest = TXEndpointRequestBase & ({
|
|
15
17
|
"CHIP-0029": True;
|
|
@@ -19,6 +21,8 @@ export type TXEndpointRequest = TXEndpointRequestBase & ({
|
|
|
19
21
|
export type CHIP0029UnsignedTransaction<T extends TXEndpointRequest> = T extends {
|
|
20
22
|
"CHIP-0029": True;
|
|
21
23
|
} ? str[] : UnsignedTransaction[];
|
|
24
|
+
export type SyncStatus = 0 | 1 | 2 | 3;
|
|
22
25
|
export type TxeResp<Req extends TXEndpointRequest, Res> = {
|
|
23
26
|
unsigned_transactions: CHIP0029UnsignedTransaction<Req>;
|
|
27
|
+
sync_status: SyncStatus | int;
|
|
24
28
|
} & Res;
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { Coin } from "./blockchain_format/coin";
|
|
2
2
|
import { bytes32 } from "../../chia_rs/wheel/python/sized_bytes";
|
|
3
|
-
import { NPCResult } from "../consensus/cost_calculator";
|
|
4
3
|
import { bool, Optional } from "./_python_types_";
|
|
5
|
-
import { uint32, uint64 } from "../../chia_rs/wheel/python/sized_ints";
|
|
4
|
+
import { uint16, uint32, uint64 } from "../../chia_rs/wheel/python/sized_ints";
|
|
6
5
|
import { CoinSpend } from "../../chia_rs/chia-protocol/coin_spend";
|
|
7
6
|
import { SpendBundle } from "../../chia_rs/chia-protocol/spend_bundle";
|
|
8
7
|
import { SpendBundleConditions } from "../../chia_rs/chia-consensus/owned_conditions";
|
|
8
|
+
export type NPCResult = {
|
|
9
|
+
Error: Optional<uint16>;
|
|
10
|
+
conds: Optional<SpendBundleConditions>;
|
|
11
|
+
};
|
|
9
12
|
export type UnspentLineageInfo = {
|
|
10
13
|
coin_id: bytes32;
|
|
11
14
|
parent_id: bytes32;
|
|
@@ -6,6 +6,8 @@ export type CoinSelectionConfigLoader = {
|
|
|
6
6
|
max_coin_amount?: Optional<uint64>;
|
|
7
7
|
excluded_coin_amounts?: Optional<uint64[]>;
|
|
8
8
|
excluded_coin_ids?: Optional<bytes32[]>;
|
|
9
|
+
included_coin_ids?: Optional<bytes32[]>;
|
|
10
|
+
primary_coin?: Optional<bytes32>;
|
|
9
11
|
};
|
|
10
12
|
export type TXEndpointForCompat = {
|
|
11
13
|
exclude_coin_ids?: Optional<bytes32[]>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Coin } from "./
|
|
2
|
-
import { bool } from "
|
|
3
|
-
import { uint32, uint64 } from "
|
|
1
|
+
import { Coin } from "./coin";
|
|
2
|
+
import { bool } from "../../chia/types/_python_types_";
|
|
3
|
+
import { uint32, uint64 } from "../wheel/python/sized_ints";
|
|
4
4
|
export type CoinRecord = {
|
|
5
5
|
coin: Coin;
|
|
6
6
|
confirmed_block_index: uint32;
|
|
@@ -3,7 +3,7 @@ import { BlockRecord } from "../../chia_rs/chia-protocol/block_record";
|
|
|
3
3
|
import { bool, float, Optional, str } from "../../chia/types/_python_types_";
|
|
4
4
|
import { int, uint128, uint32, uint64 } from "../../chia_rs/wheel/python/sized_ints";
|
|
5
5
|
import { UnfinishedHeaderBlock } from "../../chia/types/unfinished_header_block";
|
|
6
|
-
import { CoinRecord, CoinRecordBackwardCompatible } from "../../chia/
|
|
6
|
+
import { CoinRecord, CoinRecordBackwardCompatible } from "../../chia_rs/chia-protocol/coin_record";
|
|
7
7
|
import { SpendBundle } from "../../chia_rs/chia-protocol/spend_bundle";
|
|
8
8
|
import { bytes32 } from "../../chia_rs/wheel/python/sized_bytes";
|
|
9
9
|
import { MempoolItemInJsonDict } from "../../chia/types/mempool_item";
|
package/api/rpc/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export { chia_full_node_service, TGetAdditionsAndRemovalsRequest, TGetAdditionsA
|
|
|
5
5
|
import type { RpcHarvesterMessage } from "./harvester/index";
|
|
6
6
|
export { chia_harvester_service, TAddPlotDirectoryRequest, TAddPlotDirectoryResponse, add_plot_directory, TDeletePlotRequest, TDeletePlotResponse, delete_plot, TGetPlotDirectoriesResponse, get_plot_directories, TGetPlotsResponse, get_plots, TRefreshPlotsResponse, refresh_plots, TRemovePlotDirectoryRequest, TRemovePlotDirectoryResponse, remove_plot_directory, TGetHarvesterConfigResponse, get_harvester_config, TUpdateHarvesterConfigRequest, TUpdateHarvesterConfigResponse, update_harvester_config, } from "./harvester/index";
|
|
7
7
|
import type { RpcWalletMessage } from "./wallet/index";
|
|
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, TSplitCoinsRequest, TSplitCoinsResponse, split_coins, TCombineCoinsRequest, TCombineCoinsResponse, combine_coins, 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, 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, TDidCreateBackupFileRequest, TDidCreateBackupFileResponse, did_create_backup_file, TDidTransferDidRequest, TDidTransferDidResponse, did_transfer_did, TDidGetDidRequest, TDidGetDidResponse, did_get_did, TDidGetCurrentCoinInfoRequest, TDidGetCurrentCoinInfoResponse, did_get_current_coin_info, TDidGetPubkeyRequest, TDidGetPubkeyResponse, did_get_pubkey, TDidGetMetadataRequest, TDidGetMetadataResponse, did_get_metadata, TDidSpendRequest, TDidSpendResponse, did_spend, 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, TGetTimestampForHeightResponse, get_timestamp_for_height, TSetAutoClaimRequest, TSetAutoClaimResponse, set_auto_claim, TGetAutoClaimResponse, get_auto_claim, TGenerateMnemonicResponse, generate_mnemonic, TGetAllOffersRequest, TGetAllOffersResponse, get_all_offers, TGetCatListResponse, get_cat_list, TGetFarmedAmountResponse, get_farmed_amount, TGetHeightInfoResponse, get_height_info, 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, TGetNextAddressRequest, TGetNextAddressResponse, get_next_address, TGetPrivateKeyRequest, TGetPrivateKeyResponse, get_private_key, TGetPublicKeysResponse, get_public_keys, TGetSyncStatusResponse, get_sync_status, TGetTransactionCountRequest, TGetTransactionCountResponse, get_transaction_count, TGetTransactionRequest, TGetTransactionResponse, get_transaction, TGetTransactionsRequest, TGetTransactionsResponse, get_transactions, TGetWalletBalanceRequest, TGetWalletBalanceResponse, get_wallet_balance, TGetWalletBalancesRequest, TGetWalletBalancesResponse, get_wallet_balances, 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, TSpendClawbackCoinsRequest, TSpendClawbackCoinsResponse, spend_clawback_coins, TGetCoinRecordsRequest, TGetCoinRecordsResponse, get_coin_records, 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, TDlVerifyProofRequest, TDlVerifyProofResponse, dl_verify_proof, TVcMintRequest, TVcMintResponse, vc_mint, TVcGetRequest, TVcGetResponse, vc_get, TVcGetListRequest, TVcGetListResponse, vc_get_list, TVcSpendRequest, TVcSpendResponse, vc_spend, TVcAddProofsRequest, TVcAddProofsResponse, vc_add_proofs, TVcGetProofsForRootRequest, TVcGetProofsForRootResponse, vc_get_proofs_for_root, TVcRevokeRequest, TVcRevokeResponse, vc_revoke, TCrcatApprovePendingRequest, TCrcatApprovePendingResponse, crcat_approve_pending, TGatherSigningInfoRequest, TGatherSigningInfoResponse, gather_signing_info, TApplySignaturesRequest, TApplySignaturesResponse, apply_signatures, TSubmitTransactionsRequest, TSubmitTransactionsResponse, submit_transactions, TExecuteSigningInstructionsRequest, TExecuteSigningInstructionsResponse, execute_signing_instructions, } 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, TRegisterRemoteCoinsRequest, TRegisterRemoteCoinsResponse, register_remote_coins, 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, TSplitCoinsRequest, TSplitCoinsResponse, split_coins, TCombineCoinsRequest, TCombineCoinsResponse, combine_coins, 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, 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, TDidCreateBackupFileRequest, TDidCreateBackupFileResponse, did_create_backup_file, TDidTransferDidRequest, TDidTransferDidResponse, did_transfer_did, TDidGetDidRequest, TDidGetDidResponse, did_get_did, TDidGetCurrentCoinInfoRequest, TDidGetCurrentCoinInfoResponse, did_get_current_coin_info, TDidGetPubkeyRequest, TDidGetPubkeyResponse, did_get_pubkey, TDidGetMetadataRequest, TDidGetMetadataResponse, did_get_metadata, TDidSpendRequest, TDidSpendResponse, did_spend, 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, TGetTimestampForHeightResponse, get_timestamp_for_height, TSetAutoClaimRequest, TSetAutoClaimResponse, set_auto_claim, TGetAutoClaimResponse, get_auto_claim, TGenerateMnemonicResponse, generate_mnemonic, TGetAllOffersRequest, TGetAllOffersResponse, get_all_offers, TGetCatListResponse, get_cat_list, TGetFarmedAmountResponse, get_farmed_amount, TGetHeightInfoResponse, get_height_info, 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, TGetNextAddressRequest, TGetNextAddressResponse, get_next_address, TGetPrivateKeyRequest, TGetPrivateKeyResponse, get_private_key, TGetPublicKeysResponse, get_public_keys, TGetSyncStatusResponse, get_sync_status, TGetTransactionCountRequest, TGetTransactionCountResponse, get_transaction_count, TGetTransactionRequest, TGetTransactionResponse, get_transaction, TGetTransactionsRequest, TGetTransactionsResponse, get_transactions, TGetWalletBalanceRequest, TGetWalletBalanceResponse, get_wallet_balance, TGetWalletBalancesRequest, TGetWalletBalancesResponse, get_wallet_balances, TGetWalletsRequest, TGetWalletsResponse, get_wallets, TLoginRequest, TLoginResponse, log_in, TPushTxRequest as TPushTxRequestOfWallet, TPushTxResponse as TPushTxResponseOfWallet, push_tx as push_tx_wallet, TGetPuzzleAndSolutionRequest as TGetPuzzleAndSolutionRequestOfWallet, TGetPuzzleAndSolutionResponse as TGetPuzzleAndSolutionResponseOfWallet, get_puzzle_and_solution as get_puzzle_and_solution_of_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, TSpendClawbackCoinsRequest, TSpendClawbackCoinsResponse, spend_clawback_coins, TGetCoinRecordsRequest, TGetCoinRecordsResponse, get_coin_records, 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, TDlVerifyProofRequest, TDlVerifyProofResponse, dl_verify_proof, TVcMintRequest, TVcMintResponse, vc_mint, TVcGetRequest, TVcGetResponse, vc_get, TVcGetListRequest, TVcGetListResponse, vc_get_list, TVcSpendRequest, TVcSpendResponse, vc_spend, TVcAddProofsRequest, TVcAddProofsResponse, vc_add_proofs, TVcGetProofsForRootRequest, TVcGetProofsForRootResponse, vc_get_proofs_for_root, TVcRevokeRequest, TVcRevokeResponse, vc_revoke, TCrcatApprovePendingRequest, TCrcatApprovePendingResponse, crcat_approve_pending, TGatherSigningInfoRequest, TGatherSigningInfoResponse, gather_signing_info, TApplySignaturesRequest, TApplySignaturesResponse, apply_signatures, TSubmitTransactionsRequest, TSubmitTransactionsResponse, submit_transactions, TExecuteSigningInstructionsRequest, TExecuteSigningInstructionsResponse, execute_signing_instructions, } from "./wallet/index";
|
|
9
9
|
import type { RpcDataLayerMessage } from "./data_layer/index";
|
|
10
10
|
export { chia_data_layer_service, TWalletLogInRequest, TWalletLogInResponse, wallet_log_in, TCreateDataStoreRequest, TCreateDataStoreResponse, create_data_store, TGetOwnedStoresResponse, get_owned_stores, TBatchUpdateRequest, TBatchUpdateResponse, batch_update, TMultistoreBatchUpdateRequest, TMultistoreBatchUpdateResponse, multistore_batch_update, TSubmitPendingRootResponse, TSubmitPendingRootRequest, submit_pending_root, TSubmitAllPendingRootsRequest, TSubmitAllPendingRootsResponse, submit_all_pending_roots, 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, TCheckPluginsResponse, check_plugins, TClearPendingRootsRequest, TClearPendingRootsResponse, clear_pending_roots, TGetProofRequest, TGetProofResponse, get_proof, TVerifyProofRequest, TVerifyProofResponse, verify_proof, } from "./data_layer/index";
|
|
11
11
|
import type { RpcCrawlerMessage } from "./crawler/index";
|
package/api/rpc/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.get_all_coins = exports.get_farming_ph = exports.get_auto_farming = exports.set_auto_farming = exports.farm_block = exports.get_all_blocks = exports.get_fee_estimate = exports.get_puzzle_and_solution = exports.push_tx = exports.get_unfinished_block_headers = exports.get_network_space = exports.get_mempool_item_by_tx_id = exports.get_initial_freeze_period_of_full_node = exports.get_coin_records_by_hint = exports.get_coin_records_by_parent_ids = exports.get_coin_records_by_puzzle_hashes = exports.get_coin_records_by_puzzle_hash = exports.get_coin_record_by_name = exports.get_coin_records_by_names = exports.get_recent_signage_point_or_eos = exports.get_block_count_metrics = exports.get_blocks = exports.get_blockchain_state = exports.get_block = exports.get_block_spends_with_conditions = exports.get_block_spends = exports.get_block_records = exports.get_block_record = exports.get_block_record_by_height = exports.create_block_generator = exports.get_mempool_items_by_coin_name = exports.get_all_mempool_tx_ids = exports.get_all_mempool_items = exports.get_aggsig_additional_data = exports.get_additions_and_removals = exports.chia_full_node_service = exports.get_pool_login_link = exports.get_pool_state = exports.set_pool_payout_instructions = exports.get_harvester_plots_duplicates = exports.get_harvester_plots_keys_missing = exports.get_harvester_plots_invalid = exports.get_harvester_plots_valid = exports.get_harvesters_summary = exports.get_harvesters = exports.set_reward_targets = exports.get_signage_points = exports.get_signage_point = exports.get_reward_targets = exports.chia_farmer_service = void 0;
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.
|
|
7
|
-
exports.reset_log_level = exports.set_log_level = exports.get_log_level = exports.healthz = exports.get_version = exports.get_routes = exports.stop_node = exports.close_connection = exports.open_connection = exports.get_connections = exports.get_network_info = exports.chia_common_service = exports.get_state = exports.chia_solver_service = exports.get_peer_counts = exports.get_ips_after_timestamp = exports.chia_crawler_service = exports.verify_proof = exports.get_proof = exports.clear_pending_roots = exports.check_plugins = exports.get_sync_status_dl = exports.cancel_offer_dl = exports.verify_offer = exports.take_offer_dl = exports.make_offer = exports.add_missing_files = exports.get_root_history = exports.get_kv_diff = exports.subscriptions = exports.remove_subscriptions = exports.get_mirrors = exports.delete_mirror = void 0;
|
|
4
|
+
exports.did_get_wallet_name = exports.did_set_wallet_name = exports.delete_key = exports.set_wallet_resync_on_startup = exports.delete_all_keys = exports.nft_transfer_bulk = exports.nft_set_did_bulk = exports.nft_mint_bulk = exports.nft_calculate_royalties = exports.combine_coins = exports.split_coins = exports.get_transaction_memo = exports.verify_signature = exports.sign_message_by_id = exports.sign_message_by_address = exports.send_notification = exports.delete_notifications = exports.get_notifications = exports.extend_derivation_index = exports.get_current_derivation_index = exports.select_coins = exports.delete_unconfirmed_transactions = exports.create_signed_transaction = exports.create_offer_for_ids = exports.register_remote_coins = exports.create_new_wallet = exports.check_offer_validity = exports.cat_spend = exports.cat_set_name = exports.cat_asset_id_to_name = exports.get_stray_cats = exports.cat_get_name = exports.cat_get_asset_id = exports.cancel_offers = exports.cancel_offer = exports.add_rate_limited_funds = exports.add_key = exports.chia_wallet_service = exports.update_harvester_config = exports.get_harvester_config = exports.remove_plot_directory = exports.refresh_plots = exports.get_plots = exports.get_plot_directories = exports.delete_plot = exports.add_plot_directory = exports.chia_harvester_service = exports.reorg_blocks = exports.revert_blocks = exports.get_all_puzzle_hashes = void 0;
|
|
5
|
+
exports.pw_status = exports.pw_absorb_rewards = exports.pw_self_pool = exports.pw_join_pool = exports.push_transactions = exports.get_puzzle_and_solution_of_wallet = exports.push_tx_wallet = exports.log_in = exports.get_wallets = exports.get_wallet_balances = exports.get_wallet_balance = exports.get_transactions = exports.get_transaction = exports.get_transaction_count = exports.get_sync_status = exports.get_public_keys = exports.get_private_key = exports.get_next_address = exports.get_offer_summary = exports.get_offers_count = exports.get_offer = exports.get_logged_in_fingerprint = exports.get_initial_freeze_period_of_wallet = exports.get_height_info = exports.get_farmed_amount = exports.get_cat_list = exports.get_all_offers = exports.generate_mnemonic = exports.get_auto_claim = exports.set_auto_claim = exports.get_timestamp_for_height = exports.nft_add_uri = exports.nft_get_info = exports.nft_transfer_nft = exports.nft_set_nft_status = exports.nft_get_wallets_with_dids = exports.nft_get_wallet_did = exports.nft_get_by_did = exports.nft_set_nft_did = exports.nft_get_nfts = exports.nft_count_nfts = exports.nft_mint_nft = exports.did_update_metadata = exports.did_spend = exports.did_get_metadata = exports.did_get_pubkey = exports.did_get_current_coin_info = exports.did_get_did = exports.did_transfer_did = exports.did_create_backup_file = void 0;
|
|
6
|
+
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.submit_all_pending_roots = exports.submit_pending_root = exports.multistore_batch_update = exports.batch_update = exports.get_owned_stores = exports.create_data_store = exports.wallet_log_in = exports.chia_data_layer_service = exports.execute_signing_instructions = exports.submit_transactions = exports.apply_signatures = exports.gather_signing_info = exports.crcat_approve_pending = exports.vc_revoke = exports.vc_get_proofs_for_root = exports.vc_add_proofs = exports.vc_spend = exports.vc_get_list = exports.vc_get = exports.vc_mint = exports.dl_verify_proof = exports.dl_delete_mirror = exports.dl_new_mirror = exports.dl_get_mirrors = exports.dl_owned_singletons = exports.dl_history = exports.dl_update_multiple = exports.dl_update_root = exports.dl_singletons_by_root = exports.dl_latest_singleton = exports.dl_stop_tracking = exports.dl_track_new = exports.create_new_dl = exports.take_offer = exports.get_coin_records = exports.spend_clawback_coins = exports.send_transaction_multi = exports.send_transaction = exports.send_clawback_transaction = exports.rl_set_user_info = void 0;
|
|
7
|
+
exports.reset_log_level = exports.set_log_level = exports.get_log_level = exports.healthz = exports.get_version = exports.get_routes = exports.stop_node = exports.close_connection = exports.open_connection = exports.get_connections = exports.get_network_info = exports.chia_common_service = exports.get_state = exports.chia_solver_service = exports.get_peer_counts = exports.get_ips_after_timestamp = exports.chia_crawler_service = exports.verify_proof = exports.get_proof = exports.clear_pending_roots = exports.check_plugins = exports.get_sync_status_dl = exports.cancel_offer_dl = exports.verify_offer = exports.take_offer_dl = exports.make_offer = exports.add_missing_files = exports.get_root_history = exports.get_kv_diff = exports.subscriptions = exports.remove_subscriptions = exports.get_mirrors = exports.delete_mirror = exports.add_mirror = exports.unsubscribe = void 0;
|
|
8
8
|
var index_1 = require("./farmer/index");
|
|
9
9
|
Object.defineProperty(exports, "chia_farmer_service", { enumerable: true, get: function () { return index_1.chia_farmer_service; } });
|
|
10
10
|
Object.defineProperty(exports, "get_reward_targets", { enumerable: true, get: function () { return index_1.get_reward_targets; } });
|
|
@@ -84,6 +84,7 @@ Object.defineProperty(exports, "cat_set_name", { enumerable: true, get: function
|
|
|
84
84
|
Object.defineProperty(exports, "cat_spend", { enumerable: true, get: function () { return index_4.cat_spend; } });
|
|
85
85
|
Object.defineProperty(exports, "check_offer_validity", { enumerable: true, get: function () { return index_4.check_offer_validity; } });
|
|
86
86
|
Object.defineProperty(exports, "create_new_wallet", { enumerable: true, get: function () { return index_4.create_new_wallet; } });
|
|
87
|
+
Object.defineProperty(exports, "register_remote_coins", { enumerable: true, get: function () { return index_4.register_remote_coins; } });
|
|
87
88
|
Object.defineProperty(exports, "create_offer_for_ids", { enumerable: true, get: function () { return index_4.create_offer_for_ids; } });
|
|
88
89
|
Object.defineProperty(exports, "create_signed_transaction", { enumerable: true, get: function () { return index_4.create_signed_transaction; } });
|
|
89
90
|
Object.defineProperty(exports, "delete_unconfirmed_transactions", { enumerable: true, get: function () { return index_4.delete_unconfirmed_transactions; } });
|
|
@@ -152,6 +153,7 @@ Object.defineProperty(exports, "get_wallet_balances", { enumerable: true, get: f
|
|
|
152
153
|
Object.defineProperty(exports, "get_wallets", { enumerable: true, get: function () { return index_4.get_wallets; } });
|
|
153
154
|
Object.defineProperty(exports, "log_in", { enumerable: true, get: function () { return index_4.log_in; } });
|
|
154
155
|
Object.defineProperty(exports, "push_tx_wallet", { enumerable: true, get: function () { return index_4.push_tx; } });
|
|
156
|
+
Object.defineProperty(exports, "get_puzzle_and_solution_of_wallet", { enumerable: true, get: function () { return index_4.get_puzzle_and_solution; } });
|
|
155
157
|
Object.defineProperty(exports, "push_transactions", { enumerable: true, get: function () { return index_4.push_transactions; } });
|
|
156
158
|
Object.defineProperty(exports, "pw_join_pool", { enumerable: true, get: function () { return index_4.pw_join_pool; } });
|
|
157
159
|
Object.defineProperty(exports, "pw_self_pool", { enumerable: true, get: function () { return index_4.pw_self_pool; } });
|
|
@@ -15,7 +15,7 @@ import { SingletonRecord } from "../../chia/data_layer/singleton_record";
|
|
|
15
15
|
import { TPushTxResponseOfWallet } from "../index";
|
|
16
16
|
import { GetMessageType, ResType } from "../../types";
|
|
17
17
|
import { TDaemon } from "../../../daemon/index";
|
|
18
|
-
import { CoinRecord } from "../../chia/
|
|
18
|
+
import { CoinRecord } from "../../chia_rs/chia-protocol/coin_record";
|
|
19
19
|
import { SigningMode } from "../../chia/types/signing_mode";
|
|
20
20
|
import { Balance } from "../../chia/wallet/wallet_node";
|
|
21
21
|
import { AutoClaimSettings, AutoClaimSettingsCHIP0029 } from "../../chia/wallet/puzzles/clawback/metadata";
|
|
@@ -246,13 +246,24 @@ export type TCreate_New_Pool_WalletResponse = {
|
|
|
246
246
|
launcher_id: str;
|
|
247
247
|
p2_singleton_puzzle_hash: str;
|
|
248
248
|
};
|
|
249
|
+
export type TCreate_New_Remote_WalletRequest = {
|
|
250
|
+
fee?: uint64;
|
|
251
|
+
wallet_type: "remote_wallet";
|
|
252
|
+
name?: str;
|
|
253
|
+
};
|
|
254
|
+
export type TCreate_New_Remote_WalletResponse = {
|
|
255
|
+
success: True;
|
|
256
|
+
type: "REMOTE";
|
|
257
|
+
wallet_id: uint32;
|
|
258
|
+
transactions: TransactionRecordConvenience[];
|
|
259
|
+
};
|
|
249
260
|
export declare const create_new_wallet_command = "create_new_wallet";
|
|
250
261
|
export type create_new_wallet_command = typeof create_new_wallet_command;
|
|
251
262
|
export type TCreateNewWalletRequestWithTx = TCreate_New_CAT_WalletRequest | TCreate_New_Pool_WalletRequest;
|
|
252
|
-
export type TCreateNewWalletRequestWithoutTx = TCreate_New_DID_WalletRequest | TCreate_New_NFT_WalletRequest;
|
|
263
|
+
export type TCreateNewWalletRequestWithoutTx = TCreate_New_DID_WalletRequest | TCreate_New_NFT_WalletRequest | TCreate_New_Remote_WalletRequest;
|
|
253
264
|
export type TCreateNewWalletRequest = (TCreateNewWalletRequestWithTx | TCreateNewWalletRequestWithoutTx) & TXEndpointRequest;
|
|
254
|
-
export type TCreateNewWalletResponse = TCreate_New_CAT_WalletResponse | TCreate_New_DID_WalletResponse | TCreate_New_NFT_WalletResponse | TCreate_New_Pool_WalletResponse;
|
|
255
|
-
export type GetCreateNewWalletResponse<REQ extends TCreateNewWalletRequest> = REQ extends TCreate_New_CAT_WalletRequest ? TCreate_New_CAT_WalletResponse : REQ extends TCreate_New_DID_WalletRequest ? REQ extends TCreateNewDidWalletRequestNew ? TCreateNewDidWalletResponseNew : TCreateNewDidWalletResponseRecovery : REQ extends TCreate_New_NFT_WalletRequest ? TCreate_New_NFT_WalletResponse : TCreate_New_Pool_WalletResponse;
|
|
265
|
+
export type TCreateNewWalletResponse = TCreate_New_CAT_WalletResponse | TCreate_New_DID_WalletResponse | TCreate_New_NFT_WalletResponse | TCreate_New_Pool_WalletResponse | TCreate_New_Remote_WalletResponse;
|
|
266
|
+
export type GetCreateNewWalletResponse<REQ extends TCreateNewWalletRequest> = REQ extends TCreate_New_CAT_WalletRequest ? TCreate_New_CAT_WalletResponse : REQ extends TCreate_New_DID_WalletRequest ? REQ extends TCreateNewDidWalletRequestNew ? TCreateNewDidWalletResponseNew : TCreateNewDidWalletResponseRecovery : REQ extends TCreate_New_NFT_WalletRequest ? TCreate_New_NFT_WalletResponse : REQ extends TCreate_New_Remote_WalletRequest ? TCreate_New_Remote_WalletResponse : TCreate_New_Pool_WalletResponse;
|
|
256
267
|
export type WsCreateNewWalletMessage<R> = GetMessageType<chia_wallet_service, create_new_wallet_command, R>;
|
|
257
268
|
export declare function create_new_wallet<T extends TRPCAgent | TDaemon, D extends TCreateNewWalletRequest>(agent: T, data: D): Promise<ResType<T, D extends TCreateNewWalletRequestWithTx ? TxeResp<D, GetCreateNewWalletResponse<D>> : GetCreateNewWalletResponse<D>, WsCreateNewWalletMessage<D extends TCreateNewWalletRequestWithTx ? TxeResp<D, GetCreateNewWalletResponse<D>> : GetCreateNewWalletResponse<D>>>>;
|
|
258
269
|
export type WalletBalance = Balance & {
|
|
@@ -390,7 +401,7 @@ export type TGetTransactionCountRequest = {
|
|
|
390
401
|
confirmed?: bool;
|
|
391
402
|
};
|
|
392
403
|
export type TGetTransactionCountResponse = {
|
|
393
|
-
count:
|
|
404
|
+
count: uint32;
|
|
394
405
|
wallet_id: int;
|
|
395
406
|
};
|
|
396
407
|
export type WsGetTransactionCountMessage = GetMessageType<chia_wallet_service, get_transaction_count_command, TGetTransactionCountResponse>;
|
|
@@ -462,6 +473,7 @@ export type TSelectCoinsRequest = {
|
|
|
462
473
|
wallet_id: uint32;
|
|
463
474
|
exclude_coins?: Optional<Coin[]>;
|
|
464
475
|
excluded_coins?: Optional<Coin[]>;
|
|
476
|
+
allow_unsynced?: bool;
|
|
465
477
|
} & TXConfigLoader;
|
|
466
478
|
export type TSelectCoinsResponse = {
|
|
467
479
|
coins: Coin[];
|
|
@@ -477,6 +489,9 @@ export type TGetSpendableCoinsRequest = {
|
|
|
477
489
|
excluded_coin_amounts?: Optional<uint64[]>;
|
|
478
490
|
excluded_coins?: Coin[];
|
|
479
491
|
excluded_coin_ids?: str[];
|
|
492
|
+
included_coin_ids?: str[];
|
|
493
|
+
primary_coin?: str;
|
|
494
|
+
allow_unsynced?: bool;
|
|
480
495
|
};
|
|
481
496
|
export type TGetSpendableCoinsResponse = {
|
|
482
497
|
confirmed_records: CoinRecord[];
|
|
@@ -492,6 +507,7 @@ export type TGetCoinRecordsByNamesRequest = {
|
|
|
492
507
|
start_height?: uint32;
|
|
493
508
|
end_height?: uint32;
|
|
494
509
|
include_spent_coins?: bool;
|
|
510
|
+
allow_unsynced?: bool;
|
|
495
511
|
};
|
|
496
512
|
export type TGetCoinRecordsByNamesResponse = {
|
|
497
513
|
coin_records: CoinRecord[];
|
|
@@ -806,8 +822,8 @@ export declare function get_offer<T extends TRPCAgent | TDaemon>(agent: T, data:
|
|
|
806
822
|
export declare const get_all_offers_command = "get_all_offers";
|
|
807
823
|
export type get_all_offers_command = typeof get_all_offers_command;
|
|
808
824
|
export type TGetAllOffersRequest = {
|
|
809
|
-
start?:
|
|
810
|
-
end?:
|
|
825
|
+
start?: uint32;
|
|
826
|
+
end?: uint32;
|
|
811
827
|
exclude_my_offers?: bool;
|
|
812
828
|
exclude_taken_offers?: bool;
|
|
813
829
|
include_completed?: bool;
|
|
@@ -824,9 +840,9 @@ export declare function get_all_offers<T extends TRPCAgent | TDaemon>(agent: T,
|
|
|
824
840
|
export declare const get_offers_count_command = "get_offers_count";
|
|
825
841
|
export type get_offers_count_command = typeof get_offers_count_command;
|
|
826
842
|
export type TGetOffersCountResponse = {
|
|
827
|
-
total:
|
|
828
|
-
my_offers_count:
|
|
829
|
-
taken_offers_count:
|
|
843
|
+
total: uint32;
|
|
844
|
+
my_offers_count: uint32;
|
|
845
|
+
taken_offers_count: uint32;
|
|
830
846
|
};
|
|
831
847
|
export type WsGetOffersCountMessage = GetMessageType<chia_wallet_service, get_offers_count_command, TGetOffersCountResponse>;
|
|
832
848
|
export declare function get_offers_count<T extends TRPCAgent | TDaemon>(agent: T): Promise<ResType<T, TGetOffersCountResponse, WsGetOffersCountMessage>>;
|
|
@@ -1148,7 +1164,7 @@ export type TNftSetDidBulkResponse = {
|
|
|
1148
1164
|
success: True;
|
|
1149
1165
|
wallet_id: uint32[];
|
|
1150
1166
|
spend_bundle: WalletSpendBundle;
|
|
1151
|
-
tx_num:
|
|
1167
|
+
tx_num: uint32;
|
|
1152
1168
|
transactions: TransactionRecordConvenience[];
|
|
1153
1169
|
signing_responses?: str[];
|
|
1154
1170
|
};
|
|
@@ -1171,7 +1187,7 @@ export type TNftTransferBulkResponse = {
|
|
|
1171
1187
|
success: True;
|
|
1172
1188
|
wallet_id: uint32[];
|
|
1173
1189
|
spend_bundle: WalletSpendBundle;
|
|
1174
|
-
tx_num:
|
|
1190
|
+
tx_num: uint32;
|
|
1175
1191
|
transactions: TransactionRecordConvenience[];
|
|
1176
1192
|
signing_responses?: str[];
|
|
1177
1193
|
};
|
|
@@ -1316,8 +1332,8 @@ export type TNftMintBulkRequest = {
|
|
|
1316
1332
|
license_hash?: str;
|
|
1317
1333
|
}>;
|
|
1318
1334
|
target_list?: str[];
|
|
1319
|
-
mint_number_start?:
|
|
1320
|
-
mint_total?:
|
|
1335
|
+
mint_number_start?: uint32;
|
|
1336
|
+
mint_total?: uint32;
|
|
1321
1337
|
xch_coins?: Coin[];
|
|
1322
1338
|
xch_change_target?: str;
|
|
1323
1339
|
new_innerpuzhash?: str;
|
|
@@ -1671,4 +1687,24 @@ export type TExecuteSigningInstructionsRequest = ExecuteSigningInstructions | Ex
|
|
|
1671
1687
|
export type TExecuteSigningInstructionsResponse = ExecuteSigningInstructionsResponse | ExecuteSigningInstructionsResponseCHIP0029;
|
|
1672
1688
|
export type WsExecuteSigningInstructionsMessage<R> = GetMessageType<chia_wallet_service, execute_signing_instructions_command, R>;
|
|
1673
1689
|
export declare function execute_signing_instructions<T extends TRPCAgent | TDaemon, D extends TExecuteSigningInstructionsRequest>(agent: T, data: D): Promise<ResType<T, D extends ExecuteSigningInstructionsCHIP0029 ? ExecuteSigningInstructionsResponseCHIP0029 : ExecuteSigningInstructionsResponse, WsExecuteSigningInstructionsMessage<D extends ExecuteSigningInstructionsCHIP0029 ? ExecuteSigningInstructionsResponseCHIP0029 : ExecuteSigningInstructionsResponse>>>;
|
|
1674
|
-
export
|
|
1690
|
+
export declare const get_puzzle_and_solution_command = "get_puzzle_and_solution";
|
|
1691
|
+
export type get_puzzle_and_solution_command = typeof get_puzzle_and_solution_command;
|
|
1692
|
+
export type TGetPuzzleAndSolutionRequest = {
|
|
1693
|
+
coin_name: str;
|
|
1694
|
+
};
|
|
1695
|
+
export type TGetPuzzleAndSolutionResponse = {
|
|
1696
|
+
puzzle_reveal: str;
|
|
1697
|
+
solution: str;
|
|
1698
|
+
};
|
|
1699
|
+
export type WsGetPuzzleAndSolutionMessage = GetMessageType<chia_wallet_service, get_puzzle_and_solution_command, TGetPuzzleAndSolutionResponse>;
|
|
1700
|
+
export declare function get_puzzle_and_solution<T extends TRPCAgent | TDaemon>(agent: T, data: TGetPuzzleAndSolutionRequest): Promise<ResType<T, TGetPuzzleAndSolutionResponse, WsGetPuzzleAndSolutionMessage>>;
|
|
1701
|
+
export declare const register_remote_coins_command = "register_remote_coins";
|
|
1702
|
+
export type register_remote_coins_command = typeof register_remote_coins_command;
|
|
1703
|
+
export type TRegisterRemoteCoinsRequest = {
|
|
1704
|
+
wallet_id: uint32;
|
|
1705
|
+
coin_ids: str[];
|
|
1706
|
+
};
|
|
1707
|
+
export type TRegisterRemoteCoinsResponse = Record<string, never>;
|
|
1708
|
+
export type WsRegisterRemoteCoinsMessage = GetMessageType<chia_wallet_service, register_remote_coins_command, TRegisterRemoteCoinsResponse>;
|
|
1709
|
+
export declare function register_remote_coins<T extends TRPCAgent | TDaemon>(agent: T, data: TRegisterRemoteCoinsRequest): Promise<ResType<T, TRegisterRemoteCoinsResponse, WsRegisterRemoteCoinsMessage>>;
|
|
1710
|
+
export type RpcWalletMessage = TGetPuzzleAndSolutionResponse | TRegisterRemoteCoinsResponse | 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 | TSplitCoinsResponse | TCombineCoinsResponse | TNftCalculateRoyaltiesResponse | TNftMintBulkResponse | TNftSetDidBulkResponse | TNftTransferBulkResponse | TDeleteAllKeysResponse | TSetWalletResyncOnStartupResponse | TDeleteKeyResponse | TCheckDeleteKeyResponse | TDidSetWalletNameResponse | TDidGetWalletNameResponse | TDidCreateBackupFileResponse | TDidTransferDidResponse | TDidMessageSpendResponse | TDidGetInfoResponse | TDidFindLostDidResponse | TDidGetDidResponse | TDidGetCurrentCoinInfoResponse | TDidGetPubkeyResponse | TDidGetMetadataResponse | TDidSpendResponse | TDidUpdateMetadataResponse | TNftMintNftResponse | TNftCountNftsResponse | TNftGetNftsResponse | TNftSetNftDidResponse | TNftGetByDidResponse | TNftGetWalletDidResponse | TNftGetWalletsWithDidsResponse | TNftSetNftStatusResponse | TNftTransferNftResponse | TNftGetInfoResponse | TNftAddUriResponse | TGetTimestampForHeightResponse | TSetAutoClaimResponse | TGetAutoClaimResponse | TGenerateMnemonicResponse | TGetAllOffersResponse | TGetCatListResponse | TGetFarmedAmountResponse | TGetHeightInfoResponse | TGetInitialFreezePeriodResponseOfWallet | TGetLoggedInFingerprintResponse | TGetOfferResponse | TGetOffersCountResponse | TGetOfferSummaryResponse | TGetNextAddressResponse | TGetPrivateKeyResponse | TGetPublicKeysResponse | TGetSyncStatusResponse | TGetTransactionResponse | TGetTransactionCountResponse | TGetTransactionsResponse | TGetWalletBalanceResponse | TGetWalletBalancesResponse | TGetWalletsResponse | TLoginResponse | TPushTxResponseOfWallet | TPushTransactionsResponse | TPwJoinPoolResponse | TPwSelfPoolResponse | TPwAbsorbRewardsResponse | TPwStatusResponse | TRlSetUserInfoResponse | TSendClawbackTransactionResponse | TSendTransactionResponse | TSendTransactionMultiResponse | TSpendClawbackCoinsResponse | TGetCoinRecordsResponse | TTakeOfferResponse | TCreateNewDlResponse | TDlTrackNewResponse | TDlStopTrackingResponse | TDlLatestSingletonResponse | TDlSingletonsByRootResponse | TDlUpdateRootResponse | TDlUpdateMultipleResponse | TDlHistoryResponse | TDlOwnedSingletonsResponse | TDlGetMirrorsResponse | TDlNewMirrorResponse | TDlDeleteMirrorResponse | TDlVerifyProofResponse | TVcMintResponse | TVcGetResponse | TVcGetListResponse | TVcSpendResponse | TVcAddProofsResponse | TVcGetProofsForRootResponse | TVcRevokeResponse | TCrcatApprovePendingResponse | TGatherSigningInfoResponse | TApplySignaturesResponse | TSubmitTransactionsResponse | TExecuteSigningInstructionsResponse;
|
package/api/rpc/wallet/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.cat_set_name_command = exports.get_cat_list_command = exports.sign_message_by_id_command = exports.sign_message_by_address_command = exports.combine_coins_command = exports.split_coins_command = exports.get_transaction_memo_command = exports.verify_signature_command = exports.send_notification_command = exports.delete_notifications_command = exports.get_notifications_command = exports.extend_derivation_index_command = exports.get_current_derivation_index_command = exports.get_coin_records_by_names_command = exports.get_spendable_coins_command = exports.select_coins_command = exports.delete_unconfirmed_transactions_command = exports.create_signed_transaction_command = exports.get_farmed_amount_command = exports.get_transaction_count_command = exports.get_coin_records_command = exports.spend_clawback_coins_command = exports.send_transaction_multi_command = exports.send_transaction_command = exports.get_next_address_command = exports.get_transactions_command = exports.get_transaction_command = exports.get_wallet_balances_command = exports.get_wallet_balance_command = exports.create_new_wallet_command = exports.get_wallets_command = exports.get_initial_freeze_period_command_of_wallet = exports.get_auto_claim_command = exports.set_auto_claim_command = exports.get_timestamp_for_height_command = exports.push_transactions_command = exports.push_tx_command = exports.get_height_info_command = exports.get_sync_status_command = exports.set_wallet_resync_on_startup_command = exports.delete_all_keys_command = exports.check_delete_key_command = exports.delete_key_command = exports.add_key_command = exports.generate_mnemonic_command = exports.get_private_key_command = exports.get_public_keys_command = exports.get_logged_in_fingerprint_command = exports.log_in_command = exports.chia_wallet_service = void 0;
|
|
4
4
|
exports.create_new_dl_command = exports.pw_status_command = exports.pw_absorb_rewards_command = exports.pw_self_pool_command = exports.pw_join_pool_command = exports.add_rate_limited_funds_command = exports.send_clawback_transaction_command = exports.rl_set_user_info_command = exports.nft_mint_bulk_command = exports.nft_calculate_royalties_command = exports.nft_add_uri_command = exports.nft_get_info_command = exports.nft_transfer_nft_command = exports.nft_set_nft_status_command = exports.nft_get_wallets_with_dids_command = exports.nft_get_wallet_did_command = exports.nft_get_by_did_command = exports.nft_transfer_bulk_command = exports.nft_set_did_bulk_command = exports.nft_set_nft_did_command = exports.nft_get_nfts_command = exports.nft_count_nfts_command = exports.nft_mint_nft_command = exports.did_transfer_did_command = exports.did_find_lost_did_command = exports.did_get_info_command = exports.did_message_spend_command = exports.did_create_backup_file_command = exports.did_get_current_coin_info_command = exports.did_get_metadata_command = exports.did_get_did_command = exports.did_get_pubkey_command = exports.did_spend_command = exports.did_update_metadata_command = exports.did_get_wallet_name_command = exports.did_set_wallet_name_command = exports.cancel_offers_command = exports.cancel_offer_command = exports.get_offers_count_command = exports.get_all_offers_command = exports.get_offer_command = exports.take_offer_command = exports.check_offer_validity_command = exports.get_offer_summary_command = exports.create_offer_for_ids_command = exports.cat_get_asset_id_command = exports.cat_spend_command = exports.get_stray_cats_command = exports.cat_get_name_command = exports.cat_asset_id_to_name_command = void 0;
|
|
5
|
-
exports.execute_signing_instructions_command = exports.submit_transactions_command = exports.apply_signatures_command = exports.gather_signing_info_command = exports.crcat_approve_pending_command = exports.vc_revoke_command = exports.vc_get_proofs_for_root_command = exports.vc_add_proofs_command = exports.vc_spend_command = exports.vc_get_list_command = exports.vc_get_command = exports.vc_mint_command = exports.dl_verify_proof_command = exports.dl_delete_mirror_command = exports.dl_new_mirror_command = exports.dl_get_mirrors_command = exports.dl_owned_singletons_command = exports.dl_history_command = exports.dl_update_multiple_command = exports.dl_update_root_command = exports.dl_singletons_by_root_command = exports.dl_latest_singleton_command = exports.dl_stop_tracking_command = exports.dl_track_new_command = void 0;
|
|
5
|
+
exports.register_remote_coins_command = exports.get_puzzle_and_solution_command = exports.execute_signing_instructions_command = exports.submit_transactions_command = exports.apply_signatures_command = exports.gather_signing_info_command = exports.crcat_approve_pending_command = exports.vc_revoke_command = exports.vc_get_proofs_for_root_command = exports.vc_add_proofs_command = exports.vc_spend_command = exports.vc_get_list_command = exports.vc_get_command = exports.vc_mint_command = exports.dl_verify_proof_command = exports.dl_delete_mirror_command = exports.dl_new_mirror_command = exports.dl_get_mirrors_command = exports.dl_owned_singletons_command = exports.dl_history_command = exports.dl_update_multiple_command = exports.dl_update_root_command = exports.dl_singletons_by_root_command = exports.dl_latest_singleton_command = exports.dl_stop_tracking_command = exports.dl_track_new_command = void 0;
|
|
6
6
|
exports.log_in = log_in;
|
|
7
7
|
exports.get_logged_in_fingerprint = get_logged_in_fingerprint;
|
|
8
8
|
exports.get_public_keys = get_public_keys;
|
|
@@ -126,6 +126,8 @@ exports.gather_signing_info = gather_signing_info;
|
|
|
126
126
|
exports.apply_signatures = apply_signatures;
|
|
127
127
|
exports.submit_transactions = submit_transactions;
|
|
128
128
|
exports.execute_signing_instructions = execute_signing_instructions;
|
|
129
|
+
exports.get_puzzle_and_solution = get_puzzle_and_solution;
|
|
130
|
+
exports.register_remote_coins = register_remote_coins;
|
|
129
131
|
exports.chia_wallet_service = "chia_wallet";
|
|
130
132
|
// # Key management
|
|
131
133
|
exports.log_in_command = "log_in";
|
|
@@ -175,7 +177,7 @@ async function get_sync_status(agent, data) {
|
|
|
175
177
|
}
|
|
176
178
|
exports.get_height_info_command = "get_height_info";
|
|
177
179
|
async function get_height_info(agent, data) {
|
|
178
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.get_height_info_command);
|
|
180
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.get_height_info_command, data);
|
|
179
181
|
}
|
|
180
182
|
exports.push_tx_command = "push_tx";
|
|
181
183
|
async function push_tx(agent, data) {
|
|
@@ -628,3 +630,11 @@ exports.execute_signing_instructions_command = "execute_signing_instructions";
|
|
|
628
630
|
async function execute_signing_instructions(agent, data) {
|
|
629
631
|
return agent.sendMessage(exports.chia_wallet_service, exports.execute_signing_instructions_command, data);
|
|
630
632
|
}
|
|
633
|
+
exports.get_puzzle_and_solution_command = "get_puzzle_and_solution";
|
|
634
|
+
async function get_puzzle_and_solution(agent, data) {
|
|
635
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.get_puzzle_and_solution_command, data);
|
|
636
|
+
}
|
|
637
|
+
exports.register_remote_coins_command = "register_remote_coins";
|
|
638
|
+
async function register_remote_coins(agent, data) {
|
|
639
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.register_remote_coins_command, data);
|
|
640
|
+
}
|
package/package.json
CHANGED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { SpendBundleConditions } from "../../chia_rs/chia-consensus/owned_conditions";
|
|
2
|
-
import { Optional } from "../types/_python_types_";
|
|
3
|
-
import { uint16 } from "../../chia_rs/wheel/python/sized_ints";
|
|
4
|
-
export type NPCResult = {
|
|
5
|
-
error: Optional<uint16>;
|
|
6
|
-
conds: Optional<SpendBundleConditions>;
|
|
7
|
-
};
|
|
File without changes
|