chia-agent 14.3.3 → 14.4.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 +55 -0
- package/README.md +7 -7
- package/api/chia/rpc/util.d.ts +1 -1
- package/api/chia/rpc/wallet_request_types.d.ts +82 -2
- package/api/chia/wallet/dao_wallet/dao_wallet.d.ts +6 -2
- package/api/chia/wallet/transaction_record.d.ts +2 -2
- package/api/chia/wallet/wallet_spend_bundle.d.ts +2 -0
- package/api/chia/wallet/wallet_spend_bundle.js +2 -0
- package/api/chia_rs/chia-consensus/gen/owned_conditions.d.ts +2 -2
- package/api/rpc/full_node/index.js +1 -0
- package/api/rpc/index.d.ts +1 -1
- package/api/rpc/index.js +6 -4
- package/api/rpc/wallet/index.d.ts +59 -88
- package/api/rpc/wallet/index.js +20 -5
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,59 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [14.4.0]
|
|
4
|
+
### Changed
|
|
5
|
+
- Updated npm dependencies
|
|
6
|
+
- `ws` to 8.18.0 from 8.17.0
|
|
7
|
+
- `@types/ws` to 8.5.12 from 8.5.10
|
|
8
|
+
- Changed the response type of `spend_bundle` for some Wallet RPC API to `WalletSpendBundle` from `SpendBundle`.
|
|
9
|
+
(Currently `WalletSpendBundle` is equivalent to `SpendBundle`)
|
|
10
|
+
- [`nft_mint_bulk`](./src/api/rpc/wallet/README.md#nft_mint_bulkagent-params)
|
|
11
|
+
- [`nft_set_did_bulk`](./src/api/rpc/wallet/README.md#nft_set_did_bulkagent-params)
|
|
12
|
+
- [`nft_transfer_bulk`](./src/api/rpc/wallet/README.md#nft_transfer_bulkagent-params)
|
|
13
|
+
- [`did_update_metadata`](./src/api/rpc/wallet/README.md#did_update_metadataagent-params)
|
|
14
|
+
- [`did_message_spend`](./src/api/rpc/wallet/README.md#did_message_spendagent-params)
|
|
15
|
+
- [`nft_mint_nft`](./src/api/rpc/wallet/README.md#nft_mint_nftagent-params)
|
|
16
|
+
- [`nft_set_nft_did`](./src/api/rpc/wallet/README.md#nft_set_nft_didagent-params)
|
|
17
|
+
- [`nft_transfer_nft`](./src/api/rpc/wallet/README.md#nft_transfer_nftagent-params)
|
|
18
|
+
- [`nft_add_uri`](./src/api/rpc/wallet/README.md#nft_add_uriagent-params)
|
|
19
|
+
- [`log_in`](./src/api/rpc/wallet/README.md#log_inagent-params)
|
|
20
|
+
- Changed the type of `fingerprint` request/response properties to `uint32` from `int`
|
|
21
|
+
- [`get_logged_in_fingerprint`](./src/api/rpc/wallet/README.md#get_logged_in_fingerprintagent)
|
|
22
|
+
- Changed the type of `fingerprint` response properties to `uint32` from `int`
|
|
23
|
+
- [`get_public_keys`](./src/api/rpc/wallet/README.md#get_public_keysagent)
|
|
24
|
+
- Made response type of `public_key_fingerprints` optional and `uint32[]`
|
|
25
|
+
- [`get_private_key`](./src/api/rpc/wallet/README.md#get_private_keyagent-params)
|
|
26
|
+
- Dropped one of the possible response type where its `success` property is `False`.
|
|
27
|
+
- [`add_key`](./src/api/rpc/wallet/README.md#add_keyagent-params)
|
|
28
|
+
- Dropped one of the possible response type where its `success` property is `False`.
|
|
29
|
+
- Changed the type of `fingerprint` response properties to `uint32` from `int`
|
|
30
|
+
- [`delete_key`](./src/api/rpc/wallet/README.md#delete_keyagent-params)
|
|
31
|
+
- Changed the type of `fingerprint` request properties to `uint32` from `int`
|
|
32
|
+
- [`check_delete_key`](./src/api/rpc/wallet/README.md#check_delete_keyagent-params)
|
|
33
|
+
- Changed the type of `fingerprint` request/response properties to `uint32` from `int`
|
|
34
|
+
- Changed the type of `max_ph_to_search` request properties to `uint32?` from `int?`
|
|
35
|
+
- [`delete_all_keys`](./src/api/rpc/wallet/README.md#delete_all_keysagent)
|
|
36
|
+
- Dropped one of the possible response type where its `success` property is `False`.
|
|
37
|
+
- [`push_transactions`](./src/api/rpc/wallet/README.md#push_transactionsagent-params)
|
|
38
|
+
- Added `TXEndpointRequest` to request
|
|
39
|
+
- Removed `sign` request property
|
|
40
|
+
- Added `fee` request property
|
|
41
|
+
- [`select_coins`](./src/api/rpc/wallet/README.md#select_coinsagent-params)
|
|
42
|
+
- `CoinSelectionConfigLoader` was replaced by `TXConfigLoader`
|
|
43
|
+
- [`dl_owned_singletons`](./src/api/rpc/wallet/README.md#dl_owned_singletonsagent-params)
|
|
44
|
+
- Added error response
|
|
45
|
+
- Updated the type of `spend_bundle` in [`TransactionRecordOld`](./src/api/chia/wallet/transaction_record.ts) to `WalletSpendBundle` from `SpendBundle`
|
|
46
|
+
- Renamed `Spend` to [`SpendConditions`](./src/api/chia_rs/chia-consensus/gen/owned_conditions.ts)
|
|
47
|
+
### Removed
|
|
48
|
+
- Removed document of `get_initial_freeze_period` (Wallet/FullNode RPC API) since it was removed in `chia-blockchain@2.4.4`
|
|
49
|
+
### Added
|
|
50
|
+
- [New Wallet RPC API](./src/api/rpc/wallet)
|
|
51
|
+
- [`split_coins`](./src/api/rpc/wallet/README.md#split_coinsagent-params)
|
|
52
|
+
- [`combine_coins`](./src/api/rpc/wallet/README.md#combine_coinsagent-params)
|
|
53
|
+
### Fixed
|
|
54
|
+
- Fixed `dao_rules` property was set [unknown](./src/api/chia/wallet/dao_wallet/dao_wallet.ts). (`unknown` -> `DAORules`)
|
|
55
|
+
- Fixed missing types in [`ParsedProposalSpend`](./src/api/chia/wallet/dao_wallet/dao_wallet.ts)
|
|
56
|
+
|
|
3
57
|
## [14.3.3]
|
|
4
58
|
### Changed
|
|
5
59
|
- The default service name which [`Daemon`](./src/daemon/index.ts) client tries to register is now `wallet_ui`.
|
|
@@ -1720,6 +1774,7 @@ daemon.sendMessage(destination, get_block_record_by_height_command, data);
|
|
|
1720
1774
|
Initial release.
|
|
1721
1775
|
|
|
1722
1776
|
<!-- [Unreleased]: https://github.com/Chia-Mine/chia-agent/compare/v0.0.1...v0.0.2 -->
|
|
1777
|
+
[14.4.0]: https://github.com/Chia-Mine/chia-agent/compare/v14.3.3...v14.4.0
|
|
1723
1778
|
[14.3.3]: https://github.com/Chia-Mine/chia-agent/compare/v14.3.2...v14.3.3
|
|
1724
1779
|
[14.3.2]: https://github.com/Chia-Mine/chia-agent/compare/v14.3.1...v14.3.2
|
|
1725
1780
|
[14.3.1]: https://github.com/Chia-Mine/chia-agent/compare/v14.3.0...v14.3.1
|
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.4.
|
|
5
|
+
Supports all RPC/Websocket API available at `2.4.4` 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,12 +22,12 @@ 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 pool-reference](https://github.com/Chia-Network/pool-reference/compare/
|
|
29
|
-
- [`
|
|
30
|
-
- [Diff to the main branch of chia_rs](https://github.com/Chia-Network/chia_rs/compare/
|
|
25
|
+
- [`39739520211670d398173f87cd1e97c755274195`](https://github.com/Chia-Network/chia-blockchain/tree/39739520211670d398173f87cd1e97c755274195) of [chia-blockchain 2.4.4](https://github.com/Chia-Network/chia-blockchain)
|
|
26
|
+
- [Diff to the main branch of chia-blockchain](https://github.com/Chia-Network/chia-blockchain/compare/39739520211670d398173f87cd1e97c755274195...main)
|
|
27
|
+
- [`54fffb4968364640b4f5dd18d586821e67eaa631`](https://github.com/Chia-Network/pool-reference/tree/54fffb4968364640b4f5dd18d586821e67eaa631) of [pool-reference](https://github.com/Chia-Network/pool-reference)
|
|
28
|
+
- [Diff to the main branch of pool-reference](https://github.com/Chia-Network/pool-reference/compare/54fffb4968364640b4f5dd18d586821e67eaa631...main)
|
|
29
|
+
- [`c6cd98f637f07e60f68203c4c27b8cf3a559ae9b`](https://github.com/Chia-Network/chia_rs/tree/c6cd98f637f07e60f68203c4c27b8cf3a559ae9b) of [chia_rs 0.14.0](https://github.com/Chia-Network/chia_rs)
|
|
30
|
+
- [Diff to the main branch of chia_rs](https://github.com/Chia-Network/chia_rs/compare/c6cd98f637f07e60f68203c4c27b8cf3a559ae9b...main)
|
|
31
31
|
|
|
32
32
|
## API
|
|
33
33
|
There are 2 kinds of APIs in chia.
|
package/api/chia/rpc/util.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { bool, str, uint32 } from "../types/_python_types_";
|
|
1
|
+
import { bool, G1Element, Optional, PrivateKey, str, uint16, uint32, uint64 } from "../types/_python_types_";
|
|
2
2
|
import { bytes32 } from "../types/blockchain_format/sized_bytes";
|
|
3
3
|
import { Notification } from "../wallet/notification_store";
|
|
4
|
-
import { SignedTransaction, SigningInstructions, SigningResponse, Spend } from "../wallet/signer_protocol";
|
|
4
|
+
import { SignedTransaction, SigningInstructions, SigningResponse, Spend, UnsignedTransaction } from "../wallet/signer_protocol";
|
|
5
5
|
import { Marshall } from "./util";
|
|
6
|
+
import { TransactionRecord } from "../wallet/transaction_record";
|
|
6
7
|
export type GetNotifications = {
|
|
7
8
|
ids?: bytes32[];
|
|
8
9
|
start?: uint32;
|
|
@@ -63,3 +64,82 @@ export type ExecuteSigningInstructionsResponse = {
|
|
|
63
64
|
export type ExecuteSigningInstructionsResponseCHIP0029 = {
|
|
64
65
|
signing_responses: str[];
|
|
65
66
|
};
|
|
67
|
+
export type TransactionEndpointRequest = {
|
|
68
|
+
fee: uint64;
|
|
69
|
+
push?: bool;
|
|
70
|
+
};
|
|
71
|
+
export type TransactionEndpointResponse = {
|
|
72
|
+
unsigned_transactions: UnsignedTransaction[];
|
|
73
|
+
transactions: TransactionRecord[];
|
|
74
|
+
};
|
|
75
|
+
export type TransactionEndpointResponseCHIP0029 = {
|
|
76
|
+
unsigned_transactions: str[];
|
|
77
|
+
transactions: str[];
|
|
78
|
+
};
|
|
79
|
+
export type SplitCoins = TransactionEndpointRequest & {
|
|
80
|
+
wallet_id: uint32;
|
|
81
|
+
number_of_coins: uint16;
|
|
82
|
+
amount_per_coin: uint64;
|
|
83
|
+
target_coin_id: bytes32;
|
|
84
|
+
} & Marshall;
|
|
85
|
+
export type SplitCoinsResponse = TransactionEndpointResponse;
|
|
86
|
+
export type SplitCoinsResponseCHIP0029 = TransactionEndpointResponseCHIP0029;
|
|
87
|
+
export type CombineCoins = TransactionEndpointRequest & {
|
|
88
|
+
wallet_id: uint32;
|
|
89
|
+
number_of_coins: uint16;
|
|
90
|
+
largest_first: bool;
|
|
91
|
+
target_coin_ids: bytes32[];
|
|
92
|
+
target_coin_amount?: uint64;
|
|
93
|
+
coin_num_limit: uint16;
|
|
94
|
+
} & Marshall;
|
|
95
|
+
export type CombineCoinsResponse = TransactionEndpointResponse;
|
|
96
|
+
export type CombineCoinsResponseCHIP0029 = TransactionEndpointResponseCHIP0029;
|
|
97
|
+
export type LogIn = {
|
|
98
|
+
fingerprint: uint32;
|
|
99
|
+
};
|
|
100
|
+
export type LogInResponse = {
|
|
101
|
+
fingerprint: uint32;
|
|
102
|
+
};
|
|
103
|
+
export type GetLoggedInFingerprintResponse = {
|
|
104
|
+
fingerprint: Optional<uint32>;
|
|
105
|
+
};
|
|
106
|
+
export type GetPublicKeysResponse = {
|
|
107
|
+
keyring_is_locked: bool;
|
|
108
|
+
public_key_fingerprints?: uint32[];
|
|
109
|
+
};
|
|
110
|
+
export type GetPrivateKeyRequest = {
|
|
111
|
+
fingerprint: uint32;
|
|
112
|
+
};
|
|
113
|
+
export type GetPrivateKeyFormat = {
|
|
114
|
+
fingerprint: uint32;
|
|
115
|
+
sk: PrivateKey;
|
|
116
|
+
pk: G1Element;
|
|
117
|
+
farmer_pk: G1Element;
|
|
118
|
+
pool_pk: G1Element;
|
|
119
|
+
seed: Optional<str>;
|
|
120
|
+
};
|
|
121
|
+
export type GetPrivateKeyResponse = {
|
|
122
|
+
private_key: GetPrivateKeyFormat;
|
|
123
|
+
};
|
|
124
|
+
export type GenerateMnemonicResponse = {
|
|
125
|
+
mnemonic: str[];
|
|
126
|
+
};
|
|
127
|
+
export type AddKeyRequest = {
|
|
128
|
+
mnemonic: str[];
|
|
129
|
+
};
|
|
130
|
+
export type AddKeyResponse = {
|
|
131
|
+
fingerprint: uint32;
|
|
132
|
+
};
|
|
133
|
+
export type DeleteKeyRequest = {
|
|
134
|
+
fingerprint: uint32;
|
|
135
|
+
};
|
|
136
|
+
export type CheckDeleteKeyRequest = {
|
|
137
|
+
fingerprint: uint32;
|
|
138
|
+
max_ph_to_search?: uint32;
|
|
139
|
+
};
|
|
140
|
+
export type CheckDeleteKeyResponse = {
|
|
141
|
+
fingerprint: uint32;
|
|
142
|
+
used_for_farmer_rewards: bool;
|
|
143
|
+
used_for_pool_rewards: bool;
|
|
144
|
+
wallet_balance: bool;
|
|
145
|
+
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { bool, bytes, int, None } from "../../types/_python_types_";
|
|
2
2
|
import { Program } from "../../types/blockchain_format/program";
|
|
3
|
+
import { DAORules } from "./dao_info";
|
|
3
4
|
export type ProposalState = {
|
|
4
5
|
total_votes_needed: int;
|
|
5
6
|
yes_votes_needed: int;
|
|
@@ -23,9 +24,12 @@ export type ParsedProposalSpend = {
|
|
|
23
24
|
amount: int;
|
|
24
25
|
}>;
|
|
25
26
|
}>;
|
|
26
|
-
}
|
|
27
|
+
} & ({
|
|
28
|
+
mint_amount: int;
|
|
29
|
+
new_cat_puzhash: bytes;
|
|
30
|
+
} | object);
|
|
27
31
|
export type ParsedProposalUpdate = {
|
|
28
32
|
state: ProposalState;
|
|
29
33
|
proposal_type: "u";
|
|
30
|
-
dao_rules:
|
|
34
|
+
dao_rules: DAORules;
|
|
31
35
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { bool, bytes, Optional, str, uint32, uint64, uint8 } from "../types/_python_types_";
|
|
2
|
-
import { SpendBundle } from "../types/spend_bundle";
|
|
3
2
|
import { Coin } from "../types/blockchain_format/coin";
|
|
4
3
|
import { bytes32 } from "../types/blockchain_format/sized_bytes";
|
|
5
4
|
import { ClawbackMetadata } from "./puzzles/clawback/metadata";
|
|
6
5
|
import { ConditionValidTimes } from "./conditions";
|
|
6
|
+
import { WalletSpendBundle } from "./wallet_spend_bundle";
|
|
7
7
|
export type TransactionRecordOld = {
|
|
8
8
|
confirmed_at_height: uint32;
|
|
9
9
|
created_at_time: uint64;
|
|
@@ -12,7 +12,7 @@ export type TransactionRecordOld = {
|
|
|
12
12
|
fee_amount: uint64;
|
|
13
13
|
confirmed: bool;
|
|
14
14
|
sent: uint32;
|
|
15
|
-
spend_bundle: Optional<
|
|
15
|
+
spend_bundle: Optional<WalletSpendBundle>;
|
|
16
16
|
additions: Coin[];
|
|
17
17
|
removals: Coin[];
|
|
18
18
|
wallet_id: uint32;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { bytes, Optional, uint128, uint32, uint64 } from "../../../chia/types/_python_types_";
|
|
2
2
|
import { bytes32 } from "../../../chia/types/blockchain_format/sized_bytes";
|
|
3
3
|
import { PublicKey } from "../../chia-bls/public_key";
|
|
4
|
-
export type
|
|
4
|
+
export type SpendConditions = {
|
|
5
5
|
coin_id: bytes32;
|
|
6
6
|
parent_id: bytes32;
|
|
7
7
|
puzzle_hash: bytes32;
|
|
@@ -23,7 +23,7 @@ export type Spend = {
|
|
|
23
23
|
flags: uint32;
|
|
24
24
|
};
|
|
25
25
|
export type SpendBundleConditions = {
|
|
26
|
-
spends:
|
|
26
|
+
spends: SpendConditions[];
|
|
27
27
|
reserve_fee: uint64;
|
|
28
28
|
height_absolute: uint32;
|
|
29
29
|
seconds_absolute: uint64;
|
|
@@ -103,6 +103,7 @@ function get_aggsig_additional_data(agent) {
|
|
|
103
103
|
});
|
|
104
104
|
}
|
|
105
105
|
exports.get_aggsig_additional_data = get_aggsig_additional_data;
|
|
106
|
+
// This API was removed in `chia-blockchain@2.4.4`. Will be removed from `chia-agent` in the future.
|
|
106
107
|
exports.get_initial_freeze_period_command_of_full_node = "get_initial_freeze_period";
|
|
107
108
|
function get_initial_freeze_period_of_full_node(agent) {
|
|
108
109
|
return __awaiter(this, void 0, void 0, function* () {
|
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, TNftCalculateRoyaltiesRequest, TNftCalculateRoyaltiesResponse, nft_calculate_royalties, TNftMintBulkRequest, TNftMintBulkResponse, nft_mint_bulk, TNftSetDidBulkRequest, TNftSetDidBulkResponse, nft_set_did_bulk, TNftTransferBulkRequest, TNftTransferBulkResponse, nft_transfer_bulk, TCreate_New_CAT_WalletRequest, TCreate_New_CAT_WalletResponse, TCreate_New_DID_WalletRequest, TCreate_New_DID_WalletResponse, TCreate_New_DAO_WalletRequest, TCreate_New_DAO_WalletResponse,
|
|
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, TCreate_New_DAO_WalletRequest, TCreate_New_DAO_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, TDidCreateAttestRequest, TDidCreateAttestResponse, did_create_attest, TDidCreateBackupFileRequest, TDidCreateBackupFileResponse, did_create_backup_file, TDidTransferDidRequest, TDidTransferDidResponse, did_transfer_did, TDidGetDidRequest, TDidGetDidResponse, did_get_did, TDidGetInformationNeededForRecoveryRequest, TDidGetInformationNeededForRecoveryResponse, did_get_information_needed_for_recovery, TDidGetCurrentCoinInfoRequest, TDidGetCurrentCoinInfoResponse, did_get_current_coin_info, TDidGetPubkeyRequest, TDidGetPubkeyResponse, did_get_pubkey, TDidGetRecoveryListRequest, TDidGetRecoveryListResponse, did_get_recovery_list, TDidGetMetadataRequest, TDidGetMetadataResponse, did_get_metadata, TDidRecoverySpendRequest, TDidRecoverySpendResponse, did_recovery_spend, TDidSpendRequest, TDidSpendResponse, did_spend, TDidUpdateRecoveryIdsRequest, TDidUpdateRecoveryIdsResponse, did_update_recovery_ids, TDidUpdateMetadataRequest, TDidUpdateMetadataResponse, did_update_metadata, TDaoAdjustFilterLevelRequest, TDaoAdjustFilterLevelResponse, dao_adjust_filter_level, TDaoAddFundsToTreasuryRequest, TDaoAddFundsToTreasuryResponse, dao_add_funds_to_treasury, TDaoGetTreasuryBalanceRequest, TDaoGetTreasuryBalanceResponse, dao_get_treasury_balance, TDaoGetTreasuryIdRequest, TDaoGetTreasuryIdResponse, dao_get_treasury_id, TDaoGetRulesRequest, TDaoGetRulesResponse, dao_get_rules, TDaoSendToLockupRequest, TDaoSendToLockupResponse, dao_send_to_lockup, TDaoGetProposalsRequest, TDaoGetProposalsResponse, dao_get_proposals, TDaoGetProposalStateRequest, TDaoGetProposalStateResponse, dao_get_proposal_state, TDaoExitLockupRequest, TDaoExitLockupResponse, dao_exit_lockup, TDaoCreateProposalRequest, TDaoCreateProposalResponse, dao_create_proposal, TDaoVoteOnProposalRequest, TDaoVoteOnProposalResponse, dao_vote_on_proposal, TDaoParseProposalRequest, TDaoParseProposalResponse, dao_parse_proposal, TDaoCloseProposalRequest, TDaoCloseProposalResponse, dao_close_proposal, TDaoFreeCoinsFromFinishedProposalsRequest, TDaoFreeCoinsFromFinishedProposalsResponse, dao_free_coins_from_finished_proposals, 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";
|
|
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_puzzle_hashes = 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.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.healthz = exports.get_version = exports.get_routes = exports.stop_node = exports.close_connection = exports.open_connection = exports.get_connections = exports.get_network_info = exports.chia_common_service = exports.get_peer_counts = exports.get_ips_after_timestamp = exports.chia_crawler_service = exports.verify_proof = exports.get_proof = exports.clear_pending_roots = exports.check_plugins = exports.get_sync_status_dl = exports.cancel_offer_dl = exports.verify_offer = exports.take_offer_dl = exports.make_offer = exports.add_missing_files = exports.get_root_history = exports.get_kv_diff = exports.subscriptions = exports.remove_subscriptions = exports.get_mirrors = exports.delete_mirror = exports.add_mirror = exports.unsubscribe = exports.subscribe = exports.insert = exports.delete_key_dl = 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 = void 0;
|
|
4
|
+
exports.did_create_backup_file = exports.did_create_attest = exports.did_get_wallet_name = exports.did_set_wallet_name = exports.delete_key = exports.set_wallet_resync_on_startup = exports.delete_all_keys = exports.nft_transfer_bulk = exports.nft_set_did_bulk = exports.nft_mint_bulk = exports.nft_calculate_royalties = exports.combine_coins = exports.split_coins = exports.get_transaction_memo = exports.verify_signature = exports.sign_message_by_id = exports.sign_message_by_address = exports.send_notification = exports.delete_notifications = exports.get_notifications = exports.extend_derivation_index = exports.get_current_derivation_index = exports.select_coins = exports.delete_unconfirmed_transactions = exports.create_signed_transaction = exports.create_offer_for_ids = exports.create_new_wallet = exports.check_offer_validity = exports.cat_spend = exports.cat_set_name = exports.cat_asset_id_to_name = exports.get_stray_cats = exports.cat_get_name = exports.cat_get_asset_id = exports.cancel_offers = exports.cancel_offer = exports.add_rate_limited_funds = exports.add_key = exports.chia_wallet_service = exports.update_harvester_config = exports.get_harvester_config = exports.remove_plot_directory = exports.refresh_plots = exports.get_plots = exports.get_plot_directories = exports.delete_plot = exports.add_plot_directory = exports.chia_harvester_service = exports.reorg_blocks = exports.revert_blocks = void 0;
|
|
5
|
+
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.dao_free_coins_from_finished_proposals = exports.dao_close_proposal = exports.dao_parse_proposal = exports.dao_vote_on_proposal = exports.dao_create_proposal = exports.dao_exit_lockup = exports.dao_get_proposal_state = exports.dao_get_proposals = exports.dao_send_to_lockup = exports.dao_get_rules = exports.dao_get_treasury_id = exports.dao_get_treasury_balance = exports.dao_add_funds_to_treasury = exports.dao_adjust_filter_level = exports.did_update_metadata = exports.did_update_recovery_ids = exports.did_spend = exports.did_recovery_spend = exports.did_get_metadata = exports.did_get_recovery_list = exports.did_get_pubkey = exports.did_get_current_coin_info = exports.did_get_information_needed_for_recovery = exports.did_get_did = exports.did_transfer_did = void 0;
|
|
6
|
+
exports.wallet_log_in = exports.chia_data_layer_service = exports.execute_signing_instructions = exports.submit_transactions = exports.apply_signatures = exports.gather_signing_info = exports.crcat_approve_pending = exports.vc_revoke = exports.vc_get_proofs_for_root = exports.vc_add_proofs = exports.vc_spend = exports.vc_get_list = exports.vc_get = exports.vc_mint = exports.dl_verify_proof = exports.dl_delete_mirror = exports.dl_new_mirror = exports.dl_get_mirrors = exports.dl_owned_singletons = exports.dl_history = exports.dl_update_multiple = exports.dl_update_root = exports.dl_singletons_by_root = exports.dl_latest_singleton = exports.dl_stop_tracking = exports.dl_track_new = exports.create_new_dl = exports.take_offer = exports.get_coin_records = exports.spend_clawback_coins = exports.send_transaction_multi = exports.send_transaction = exports.send_clawback_transaction = exports.rl_set_user_info = exports.pw_status = exports.pw_absorb_rewards = exports.pw_self_pool = exports.pw_join_pool = exports.push_transactions = exports.push_tx_wallet = exports.log_in = exports.get_wallets = exports.get_wallet_balances = exports.get_wallet_balance = exports.get_transactions = exports.get_transaction = exports.get_transaction_count = exports.get_sync_status = exports.get_public_keys = exports.get_private_key = void 0;
|
|
7
|
+
exports.healthz = exports.get_version = exports.get_routes = exports.stop_node = exports.close_connection = exports.open_connection = exports.get_connections = exports.get_network_info = exports.chia_common_service = exports.get_peer_counts = exports.get_ips_after_timestamp = exports.chia_crawler_service = exports.verify_proof = exports.get_proof = exports.clear_pending_roots = exports.check_plugins = exports.get_sync_status_dl = exports.cancel_offer_dl = exports.verify_offer = exports.take_offer_dl = exports.make_offer = exports.add_missing_files = exports.get_root_history = exports.get_kv_diff = exports.subscriptions = exports.remove_subscriptions = exports.get_mirrors = exports.delete_mirror = exports.add_mirror = exports.unsubscribe = exports.subscribe = exports.insert = exports.delete_key_dl = 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 = 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; } });
|
|
@@ -96,6 +96,8 @@ Object.defineProperty(exports, "sign_message_by_address", { enumerable: true, ge
|
|
|
96
96
|
Object.defineProperty(exports, "sign_message_by_id", { enumerable: true, get: function () { return index_4.sign_message_by_id; } });
|
|
97
97
|
Object.defineProperty(exports, "verify_signature", { enumerable: true, get: function () { return index_4.verify_signature; } });
|
|
98
98
|
Object.defineProperty(exports, "get_transaction_memo", { enumerable: true, get: function () { return index_4.get_transaction_memo; } });
|
|
99
|
+
Object.defineProperty(exports, "split_coins", { enumerable: true, get: function () { return index_4.split_coins; } });
|
|
100
|
+
Object.defineProperty(exports, "combine_coins", { enumerable: true, get: function () { return index_4.combine_coins; } });
|
|
99
101
|
Object.defineProperty(exports, "nft_calculate_royalties", { enumerable: true, get: function () { return index_4.nft_calculate_royalties; } });
|
|
100
102
|
Object.defineProperty(exports, "nft_mint_bulk", { enumerable: true, get: function () { return index_4.nft_mint_bulk; } });
|
|
101
103
|
Object.defineProperty(exports, "nft_set_did_bulk", { enumerable: true, get: function () { return index_4.nft_set_did_bulk; } });
|
|
@@ -22,117 +22,65 @@ import { GetCoinRecords } from "../../chia/wallet/wallet_coin_store";
|
|
|
22
22
|
import { WalletCoinRecordWithMetadata } from "../../chia/wallet/wallet_coin_record";
|
|
23
23
|
import { VCRecord } from "../../chia/wallet/vc_wallet/vc_store";
|
|
24
24
|
import { TransactionTypeFilter } from "../../chia/wallet/util/quality_filter";
|
|
25
|
-
import {
|
|
25
|
+
import { TXConfigLoader } from "../../chia/wallet/util/tx_config";
|
|
26
26
|
import { ConditionValidTimes } from "../../chia/wallet/conditions";
|
|
27
27
|
import { DAOInfo, DAORules, ProposalInfo } from "../../chia/wallet/dao_wallet/dao_info";
|
|
28
28
|
import { ParsedProposalSpend, ParsedProposalUpdate, ProposalState } from "../../chia/wallet/dao_wallet/dao_wallet";
|
|
29
29
|
import { DLProof, VerifyProofResponse } from "../../chia/data_layer/data_layer_util";
|
|
30
|
-
import { GetNotifications, GetNotificationsResponse, GatherSigningInfo, GatherSigningInfoCHIP0029, GatherSigningInfoResponse, GatherSigningInfoResponseCHIP0029, ApplySignatures, ApplySignaturesCHIP0029, ApplySignaturesResponse, ApplySignaturesResponseCHIP0029, SubmitTransactions, SubmitTransactionsCHIP0029, SubmitTransactionsResponse, SubmitTransactionsResponseCHIP0029, ExecuteSigningInstructionsCHIP0029, ExecuteSigningInstructionsResponseCHIP0029, ExecuteSigningInstructionsResponse, ExecuteSigningInstructions } from "../../chia/rpc/wallet_request_types";
|
|
30
|
+
import { GetNotifications, GetNotificationsResponse, GatherSigningInfo, GatherSigningInfoCHIP0029, GatherSigningInfoResponse, GatherSigningInfoResponseCHIP0029, ApplySignatures, ApplySignaturesCHIP0029, ApplySignaturesResponse, ApplySignaturesResponseCHIP0029, SubmitTransactions, SubmitTransactionsCHIP0029, SubmitTransactionsResponse, SubmitTransactionsResponseCHIP0029, ExecuteSigningInstructionsCHIP0029, ExecuteSigningInstructionsResponseCHIP0029, ExecuteSigningInstructionsResponse, ExecuteSigningInstructions, SplitCoins, SplitCoinsResponse, SplitCoinsResponseCHIP0029, CombineCoinsResponse, CombineCoins, CombineCoinsResponseCHIP0029, LogIn, LogInResponse, GetLoggedInFingerprintResponse, GetPublicKeysResponse, GetPrivateKeyRequest, GetPrivateKeyResponse, GenerateMnemonicResponse, AddKeyRequest, AddKeyResponse, DeleteKeyRequest, CheckDeleteKeyRequest, CheckDeleteKeyResponse } from "../../chia/rpc/wallet_request_types";
|
|
31
31
|
import { TXEndpointRequest, TxeResp } from "../../chia/rpc/util";
|
|
32
32
|
import { SigningResponse, UnsignedTransaction } from "../../chia/wallet/signer_protocol";
|
|
33
|
+
import { WalletSpendBundle } from "../../chia/wallet/wallet_spend_bundle";
|
|
33
34
|
export declare const chia_wallet_service = "chia_wallet";
|
|
34
35
|
export type chia_wallet_service = typeof chia_wallet_service;
|
|
35
36
|
export declare const log_in_command = "log_in";
|
|
36
37
|
export type log_in_command = typeof log_in_command;
|
|
37
|
-
export type TLoginRequest =
|
|
38
|
-
|
|
39
|
-
};
|
|
40
|
-
export type TLoginResponse = {
|
|
41
|
-
fingerprint: int;
|
|
42
|
-
} | {
|
|
43
|
-
success: False;
|
|
44
|
-
error: "Unknown Error";
|
|
45
|
-
};
|
|
38
|
+
export type TLoginRequest = LogIn;
|
|
39
|
+
export type TLoginResponse = LogInResponse;
|
|
46
40
|
export type WsLoginMessage = GetMessageType<chia_wallet_service, log_in_command, TLoginResponse>;
|
|
47
|
-
export declare function log_in<T extends TRPCAgent | TDaemon>(agent: T, data: TLoginRequest): Promise<ResType<T,
|
|
41
|
+
export declare function log_in<T extends TRPCAgent | TDaemon>(agent: T, data: TLoginRequest): Promise<ResType<T, LogInResponse, WsLoginMessage>>;
|
|
48
42
|
export declare const get_logged_in_fingerprint_command = "get_logged_in_fingerprint";
|
|
49
43
|
export type get_logged_in_fingerprint_command = typeof get_logged_in_fingerprint_command;
|
|
50
|
-
export type TGetLoggedInFingerprintResponse =
|
|
51
|
-
fingerprint: Optional<int>;
|
|
52
|
-
};
|
|
44
|
+
export type TGetLoggedInFingerprintResponse = GetLoggedInFingerprintResponse;
|
|
53
45
|
export type WsGetLoggedInFingerprintMessage = GetMessageType<chia_wallet_service, get_logged_in_fingerprint_command, TGetLoggedInFingerprintResponse>;
|
|
54
|
-
export declare function get_logged_in_fingerprint<T extends TRPCAgent | TDaemon>(agent: T): Promise<ResType<T,
|
|
46
|
+
export declare function get_logged_in_fingerprint<T extends TRPCAgent | TDaemon>(agent: T): Promise<ResType<T, GetLoggedInFingerprintResponse, WsGetLoggedInFingerprintMessage>>;
|
|
55
47
|
export declare const get_public_keys_command = "get_public_keys";
|
|
56
48
|
export type get_public_keys_command = typeof get_public_keys_command;
|
|
57
|
-
export type TGetPublicKeysResponse =
|
|
58
|
-
public_key_fingerprints: int[];
|
|
59
|
-
} | {
|
|
60
|
-
keyring_is_locked: True;
|
|
61
|
-
};
|
|
49
|
+
export type TGetPublicKeysResponse = GetPublicKeysResponse;
|
|
62
50
|
export type WsGetPublicKeysMessage = GetMessageType<chia_wallet_service, get_public_keys_command, TGetPublicKeysResponse>;
|
|
63
|
-
export declare function get_public_keys<T extends TRPCAgent | TDaemon>(agent: T): Promise<ResType<T,
|
|
51
|
+
export declare function get_public_keys<T extends TRPCAgent | TDaemon>(agent: T): Promise<ResType<T, GetPublicKeysResponse, WsGetPublicKeysMessage>>;
|
|
64
52
|
export declare const get_private_key_command = "get_private_key";
|
|
65
53
|
export type get_private_key_command = typeof get_private_key_command;
|
|
66
|
-
export type TGetPrivateKeyRequest =
|
|
67
|
-
|
|
68
|
-
};
|
|
69
|
-
export type TGetPrivateKeyResponse = {
|
|
70
|
-
private_key: {
|
|
71
|
-
fingerprint: int;
|
|
72
|
-
sk: str;
|
|
73
|
-
pk: str;
|
|
74
|
-
farmer_pk: str;
|
|
75
|
-
pool_pk: str;
|
|
76
|
-
seed: Optional<str>;
|
|
77
|
-
};
|
|
78
|
-
} | {
|
|
79
|
-
success: False;
|
|
80
|
-
private_key: {
|
|
81
|
-
fingerprint: int;
|
|
82
|
-
};
|
|
83
|
-
};
|
|
54
|
+
export type TGetPrivateKeyRequest = GetPrivateKeyRequest;
|
|
55
|
+
export type TGetPrivateKeyResponse = GetPrivateKeyResponse;
|
|
84
56
|
export type WsGetPrivateKeyMessage = GetMessageType<chia_wallet_service, get_private_key_command, TGetPrivateKeyResponse>;
|
|
85
|
-
export declare function get_private_key<T extends TRPCAgent | TDaemon>(agent: T, data: TGetPrivateKeyRequest): Promise<ResType<T,
|
|
57
|
+
export declare function get_private_key<T extends TRPCAgent | TDaemon>(agent: T, data: TGetPrivateKeyRequest): Promise<ResType<T, GetPrivateKeyResponse, WsGetPrivateKeyMessage>>;
|
|
86
58
|
export declare const generate_mnemonic_command = "generate_mnemonic";
|
|
87
59
|
export type generate_mnemonic_command = typeof generate_mnemonic_command;
|
|
88
|
-
export type TGenerateMnemonicResponse =
|
|
89
|
-
mnemonic: str[];
|
|
90
|
-
};
|
|
60
|
+
export type TGenerateMnemonicResponse = GenerateMnemonicResponse;
|
|
91
61
|
export type WsGenerateMnemonicMessage = GetMessageType<chia_wallet_service, generate_mnemonic_command, TGenerateMnemonicResponse>;
|
|
92
|
-
export declare function generate_mnemonic<T extends TRPCAgent | TDaemon>(agent: T): Promise<ResType<T,
|
|
62
|
+
export declare function generate_mnemonic<T extends TRPCAgent | TDaemon>(agent: T): Promise<ResType<T, GenerateMnemonicResponse, WsGenerateMnemonicMessage>>;
|
|
93
63
|
export declare const add_key_command = "add_key";
|
|
94
64
|
export type add_key_command = typeof add_key_command;
|
|
95
|
-
export type TAddKeyRequest =
|
|
96
|
-
|
|
97
|
-
};
|
|
98
|
-
export type TAddKeyResponse = {
|
|
99
|
-
success: false;
|
|
100
|
-
error: str;
|
|
101
|
-
word?: unknown;
|
|
102
|
-
} | {
|
|
103
|
-
fingerprint: int;
|
|
104
|
-
};
|
|
65
|
+
export type TAddKeyRequest = AddKeyRequest;
|
|
66
|
+
export type TAddKeyResponse = AddKeyResponse;
|
|
105
67
|
export type WsAddKeyMessage = GetMessageType<chia_wallet_service, add_key_command, TAddKeyResponse>;
|
|
106
|
-
export declare function add_key<T extends TRPCAgent | TDaemon>(agent: T, data: TAddKeyRequest): Promise<ResType<T,
|
|
68
|
+
export declare function add_key<T extends TRPCAgent | TDaemon>(agent: T, data: TAddKeyRequest): Promise<ResType<T, AddKeyResponse, WsAddKeyMessage>>;
|
|
107
69
|
export declare const delete_key_command = "delete_key";
|
|
108
70
|
export type delete_key_command = typeof delete_key_command;
|
|
109
|
-
export type TDeleteKeyRequest =
|
|
110
|
-
fingerprint: int;
|
|
111
|
-
};
|
|
71
|
+
export type TDeleteKeyRequest = DeleteKeyRequest;
|
|
112
72
|
export type TDeleteKeyResponse = Record<string, never>;
|
|
113
73
|
export type WsDeleteKeyMessage = GetMessageType<chia_wallet_service, delete_key_command, TDeleteKeyResponse>;
|
|
114
74
|
export declare function delete_key<T extends TRPCAgent | TDaemon>(agent: T, data: TDeleteKeyRequest): Promise<ResType<T, TDeleteKeyResponse, WsDeleteKeyMessage>>;
|
|
115
75
|
export declare const check_delete_key_command = "check_delete_key";
|
|
116
76
|
export type check_delete_key_command = typeof check_delete_key_command;
|
|
117
|
-
export type TCheckDeleteKeyRequest =
|
|
118
|
-
|
|
119
|
-
max_ph_to_search?: int;
|
|
120
|
-
};
|
|
121
|
-
export type TCheckDeleteKeyResponse = {
|
|
122
|
-
fingerprint: int;
|
|
123
|
-
used_for_farmer_rewards: bool;
|
|
124
|
-
used_for_pool_rewards: bool;
|
|
125
|
-
wallet_balance: bool;
|
|
126
|
-
};
|
|
77
|
+
export type TCheckDeleteKeyRequest = CheckDeleteKeyRequest;
|
|
78
|
+
export type TCheckDeleteKeyResponse = CheckDeleteKeyResponse;
|
|
127
79
|
export type WsCheckDeleteKeyMessage = GetMessageType<chia_wallet_service, check_delete_key_command, TCheckDeleteKeyResponse>;
|
|
128
|
-
export declare function check_delete_key<T extends TRPCAgent | TDaemon>(agent: T, data: TCheckDeleteKeyRequest): Promise<ResType<T,
|
|
80
|
+
export declare function check_delete_key<T extends TRPCAgent | TDaemon>(agent: T, data: TCheckDeleteKeyRequest): Promise<ResType<T, CheckDeleteKeyResponse, WsCheckDeleteKeyMessage>>;
|
|
129
81
|
export declare const delete_all_keys_command = "delete_all_keys";
|
|
130
82
|
export type delete_all_keys_command = typeof delete_all_keys_command;
|
|
131
|
-
export type
|
|
132
|
-
export type TDeleteAllKeysResponse = Record<string, never> | {
|
|
133
|
-
success: False;
|
|
134
|
-
error: str;
|
|
135
|
-
};
|
|
83
|
+
export type TDeleteAllKeysResponse = Record<string, never>;
|
|
136
84
|
export type WsDeleteAllKeysMessage = GetMessageType<chia_wallet_service, delete_all_keys_command, TDeleteAllKeysResponse>;
|
|
137
85
|
export declare function delete_all_keys<T extends TRPCAgent | TDaemon>(agent: T): Promise<ResType<T, TDeleteAllKeysResponse, WsDeleteAllKeysMessage>>;
|
|
138
86
|
export declare const set_wallet_resync_on_startup_command = "set_wallet_resync_on_startup";
|
|
@@ -173,8 +121,8 @@ export declare const push_transactions_command = "push_transactions";
|
|
|
173
121
|
export type push_transactions_command = typeof push_transactions_command;
|
|
174
122
|
export type TPushTransactionsRequest = {
|
|
175
123
|
transactions: Array<TransactionRecordConvenience | str>;
|
|
176
|
-
|
|
177
|
-
};
|
|
124
|
+
fee?: uint64;
|
|
125
|
+
} & TXEndpointRequest;
|
|
178
126
|
export type TPushTransactionsResponse = Record<string, never>;
|
|
179
127
|
export type WsPushTransactionsMessage = GetMessageType<chia_wallet_service, push_transactions_command, TPushTransactionsResponse>;
|
|
180
128
|
export declare function push_transactions<T extends TRPCAgent | TDaemon>(agent: T, data: TPushTransactionsRequest): Promise<ResType<T, TPushTransactionsResponse, WsPushTransactionsMessage>>;
|
|
@@ -544,7 +492,7 @@ export type TSelectCoinsRequest = {
|
|
|
544
492
|
wallet_id: uint32;
|
|
545
493
|
exclude_coins?: Optional<Coin[]>;
|
|
546
494
|
excluded_coins?: Optional<Coin[]>;
|
|
547
|
-
} &
|
|
495
|
+
} & TXConfigLoader;
|
|
548
496
|
export type TSelectCoinsResponse = {
|
|
549
497
|
coins: Coin[];
|
|
550
498
|
};
|
|
@@ -657,6 +605,26 @@ export type TGetTransactionMemoResponse = {
|
|
|
657
605
|
};
|
|
658
606
|
export type WsGetTransactionMemoMessage = GetMessageType<chia_wallet_service, get_transaction_memo_command, TGetTransactionMemoResponse>;
|
|
659
607
|
export declare function get_transaction_memo<T extends TRPCAgent | TDaemon>(agent: T, data: TGetTransactionMemoRequest): Promise<ResType<T, TGetTransactionMemoResponse, WsGetTransactionMemoMessage>>;
|
|
608
|
+
export declare const split_coins_command = "split_coins";
|
|
609
|
+
export type split_coins_command = typeof split_coins_command;
|
|
610
|
+
export type TSplitCoinsRequest = SplitCoins & TXEndpointRequest;
|
|
611
|
+
export type TSplitCoinsResponse = SplitCoinsResponse | SplitCoinsResponseCHIP0029;
|
|
612
|
+
export type WsSplitCoinsMessage<R> = GetMessageType<chia_wallet_service, split_coins_command, R>;
|
|
613
|
+
export declare function split_coins<T extends TRPCAgent | TDaemon, D extends TSplitCoinsRequest>(agent: T, data: D): Promise<ResType<T, TxeResp<D, D extends {
|
|
614
|
+
"CHIP-0029": true;
|
|
615
|
+
} ? import("../../chia/rpc/wallet_request_types").TransactionEndpointResponse : import("../../chia/rpc/wallet_request_types").TransactionEndpointResponseCHIP0029>, WsSplitCoinsMessage<TxeResp<D, D extends {
|
|
616
|
+
"CHIP-0029": true;
|
|
617
|
+
} ? import("../../chia/rpc/wallet_request_types").TransactionEndpointResponse : import("../../chia/rpc/wallet_request_types").TransactionEndpointResponseCHIP0029>>>>;
|
|
618
|
+
export declare const combine_coins_command = "combine_coins";
|
|
619
|
+
export type combine_coins_command = typeof combine_coins_command;
|
|
620
|
+
export type TCombineCoinsRequest = CombineCoins & TXEndpointRequest;
|
|
621
|
+
export type TCombineCoinsResponse = CombineCoinsResponse | CombineCoinsResponseCHIP0029;
|
|
622
|
+
export type WsCombineCoinsMessage<R> = GetMessageType<chia_wallet_service, combine_coins_command, R>;
|
|
623
|
+
export declare function combine_coins<T extends TRPCAgent | TDaemon, D extends TCombineCoinsRequest>(agent: T, data: D): Promise<ResType<T, TxeResp<D, D extends {
|
|
624
|
+
"CHIP-0029": true;
|
|
625
|
+
} ? TCombineCoinsResponse : import("../../chia/rpc/wallet_request_types").TransactionEndpointResponseCHIP0029>, WsCombineCoinsMessage<TxeResp<D, D extends {
|
|
626
|
+
"CHIP-0029": true;
|
|
627
|
+
} ? TCombineCoinsResponse : import("../../chia/rpc/wallet_request_types").TransactionEndpointResponseCHIP0029>>>>;
|
|
660
628
|
export declare const sign_message_by_address_command = "sign_message_by_address";
|
|
661
629
|
export type sign_message_by_address_command = typeof sign_message_by_address_command;
|
|
662
630
|
export type TSignMessageByAddressRequest = {
|
|
@@ -960,7 +928,7 @@ export type TDidUpdateMetadataRequest = {
|
|
|
960
928
|
export type TDidUpdateMetadataResponse = {
|
|
961
929
|
success: True;
|
|
962
930
|
wallet_id: uint32;
|
|
963
|
-
spend_bundle:
|
|
931
|
+
spend_bundle: WalletSpendBundle;
|
|
964
932
|
transactions: TransactionRecordConvenience[];
|
|
965
933
|
signing_responses?: str[];
|
|
966
934
|
} | {
|
|
@@ -1119,7 +1087,7 @@ export type TDidMessageSpendRequest = {
|
|
|
1119
1087
|
} & TXEndpointRequest;
|
|
1120
1088
|
export type TDidMessageSpendResponse = {
|
|
1121
1089
|
success: True;
|
|
1122
|
-
spend_bundle:
|
|
1090
|
+
spend_bundle: WalletSpendBundle;
|
|
1123
1091
|
transactions: TransactionRecordConvenience[];
|
|
1124
1092
|
signing_responses?: str[];
|
|
1125
1093
|
};
|
|
@@ -1435,7 +1403,7 @@ export type TNftMintNftRequest = {
|
|
|
1435
1403
|
export type TNftMintNftResponse = {
|
|
1436
1404
|
wallet_id: uint32;
|
|
1437
1405
|
success: True;
|
|
1438
|
-
spend_bundle:
|
|
1406
|
+
spend_bundle: WalletSpendBundle;
|
|
1439
1407
|
nft_id: Optional<str>;
|
|
1440
1408
|
transactions: TransactionRecordConvenience[];
|
|
1441
1409
|
signing_responses?: str[];
|
|
@@ -1483,7 +1451,7 @@ export type TNftSetNftDidRequest = {
|
|
|
1483
1451
|
export type TNftSetNftDidResponse = {
|
|
1484
1452
|
wallet_id: uint32;
|
|
1485
1453
|
success: True;
|
|
1486
|
-
spend_bundle:
|
|
1454
|
+
spend_bundle: WalletSpendBundle;
|
|
1487
1455
|
transactions: TransactionRecordConvenience[];
|
|
1488
1456
|
signing_responses?: str[];
|
|
1489
1457
|
} | {
|
|
@@ -1508,7 +1476,7 @@ export type TNftSetDidBulkResponse = {
|
|
|
1508
1476
|
} | {
|
|
1509
1477
|
success: True;
|
|
1510
1478
|
wallet_id: uint32[];
|
|
1511
|
-
spend_bundle:
|
|
1479
|
+
spend_bundle: WalletSpendBundle;
|
|
1512
1480
|
tx_num: int;
|
|
1513
1481
|
transactions: TransactionRecordConvenience[];
|
|
1514
1482
|
signing_responses?: str[];
|
|
@@ -1531,7 +1499,7 @@ export type TNftTransferBulkResponse = {
|
|
|
1531
1499
|
} | {
|
|
1532
1500
|
success: True;
|
|
1533
1501
|
wallet_id: uint32[];
|
|
1534
|
-
spend_bundle:
|
|
1502
|
+
spend_bundle: WalletSpendBundle;
|
|
1535
1503
|
tx_num: int;
|
|
1536
1504
|
transactions: TransactionRecordConvenience[];
|
|
1537
1505
|
signing_responses?: str[];
|
|
@@ -1598,7 +1566,7 @@ export type TNftTransferNftRequest = {
|
|
|
1598
1566
|
export type TNftTransferNftResponse = {
|
|
1599
1567
|
success: True;
|
|
1600
1568
|
wallet_id: uint32;
|
|
1601
|
-
spend_bundle:
|
|
1569
|
+
spend_bundle: WalletSpendBundle;
|
|
1602
1570
|
transactions: TransactionRecordConvenience[];
|
|
1603
1571
|
signing_responses?: str[];
|
|
1604
1572
|
} | {
|
|
@@ -1634,7 +1602,7 @@ export type TNftAddUriRequest = {
|
|
|
1634
1602
|
export type TNftAddUriResponse = {
|
|
1635
1603
|
success: True;
|
|
1636
1604
|
wallet_id: uint32;
|
|
1637
|
-
spend_bundle:
|
|
1605
|
+
spend_bundle: WalletSpendBundle;
|
|
1638
1606
|
transactions: TransactionRecordConvenience[];
|
|
1639
1607
|
signing_responses?: str[];
|
|
1640
1608
|
};
|
|
@@ -1693,7 +1661,7 @@ export type TNftMintBulkResponse = {
|
|
|
1693
1661
|
error: str;
|
|
1694
1662
|
} | {
|
|
1695
1663
|
success: True;
|
|
1696
|
-
spend_bundle:
|
|
1664
|
+
spend_bundle: WalletSpendBundle;
|
|
1697
1665
|
nft_id_list: str[];
|
|
1698
1666
|
transactions: TransactionRecordConvenience[];
|
|
1699
1667
|
signing_responses?: str[];
|
|
@@ -1903,6 +1871,9 @@ export type dl_owned_singletons_command = typeof dl_owned_singletons_command;
|
|
|
1903
1871
|
export type TDlOwnedSingletonsResponse = {
|
|
1904
1872
|
singletons: SingletonRecord[];
|
|
1905
1873
|
count: int;
|
|
1874
|
+
} | {
|
|
1875
|
+
success: False;
|
|
1876
|
+
error: str;
|
|
1906
1877
|
};
|
|
1907
1878
|
export type WsDlOwnedSingletonsMessage = GetMessageType<chia_wallet_service, dl_owned_singletons_command, TDlOwnedSingletonsResponse>;
|
|
1908
1879
|
export declare function dl_owned_singletons<T extends TRPCAgent | TDaemon>(agent: T): Promise<ResType<T, TDlOwnedSingletonsResponse, WsDlOwnedSingletonsMessage>>;
|
|
@@ -2078,4 +2049,4 @@ export type TExecuteSigningInstructionsRequest = ExecuteSigningInstructions | Ex
|
|
|
2078
2049
|
export type TExecuteSigningInstructionsResponse = ExecuteSigningInstructionsResponse | ExecuteSigningInstructionsResponseCHIP0029;
|
|
2079
2050
|
export type WsExecuteSigningInstructionsMessage<R> = GetMessageType<chia_wallet_service, execute_signing_instructions_command, R>;
|
|
2080
2051
|
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>>>;
|
|
2081
|
-
export 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 | TDaoAdjustFilterLevelResponse | TDaoAddFundsToTreasuryResponse | TDaoGetTreasuryBalanceResponse | TDaoGetTreasuryIdResponse | TDaoGetRulesResponse | TDaoSendToLockupResponse | TDaoGetProposalsResponse | TDaoGetProposalStateResponse | TDaoExitLockupResponse | TDaoCreateProposalResponse | TDaoVoteOnProposalResponse | TDaoParseProposalResponse | TDaoCloseProposalResponse | TDaoFreeCoinsFromFinishedProposalsResponse | 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;
|
|
2052
|
+
export 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 | TSplitCoinsResponse | TCombineCoinsResponse | 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 | TDaoAdjustFilterLevelResponse | TDaoAddFundsToTreasuryResponse | TDaoGetTreasuryBalanceResponse | TDaoGetTreasuryIdResponse | TDaoGetRulesResponse | TDaoSendToLockupResponse | TDaoGetProposalsResponse | TDaoGetProposalStateResponse | TDaoExitLockupResponse | TDaoCreateProposalResponse | TDaoVoteOnProposalResponse | TDaoParseProposalResponse | TDaoCloseProposalResponse | TDaoFreeCoinsFromFinishedProposalsResponse | 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
|
@@ -10,11 +10,11 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.get_next_address_command = exports.get_transactions = exports.get_transactions_command = exports.get_transaction = exports.get_transaction_command = exports.get_wallet_balances = exports.get_wallet_balances_command = exports.get_wallet_balance = exports.get_wallet_balance_command = exports.create_new_wallet = exports.create_new_wallet_command = exports.get_wallets = exports.get_wallets_command = exports.get_initial_freeze_period_of_wallet = exports.get_initial_freeze_period_command_of_wallet = exports.get_auto_claim = exports.get_auto_claim_command = exports.set_auto_claim = exports.set_auto_claim_command = exports.get_timestamp_for_height = exports.get_timestamp_for_height_command = exports.push_transactions = exports.push_transactions_command = exports.push_tx = exports.push_tx_command = exports.get_height_info = exports.get_height_info_command = exports.get_sync_status = exports.get_sync_status_command = exports.set_wallet_resync_on_startup = exports.set_wallet_resync_on_startup_command = exports.delete_all_keys = exports.delete_all_keys_command = exports.check_delete_key = exports.check_delete_key_command = exports.delete_key = exports.delete_key_command = exports.add_key = exports.add_key_command = exports.generate_mnemonic = exports.generate_mnemonic_command = exports.get_private_key = exports.get_private_key_command = exports.get_public_keys = exports.get_public_keys_command = exports.get_logged_in_fingerprint = exports.get_logged_in_fingerprint_command = exports.log_in = exports.log_in_command = exports.chia_wallet_service = void 0;
|
|
13
|
-
exports.
|
|
14
|
-
exports.
|
|
15
|
-
exports.
|
|
16
|
-
exports.
|
|
17
|
-
exports.execute_signing_instructions = exports.execute_signing_instructions_command = exports.submit_transactions = exports.submit_transactions_command = exports.apply_signatures = exports.apply_signatures_command = exports.gather_signing_info = exports.gather_signing_info_command = exports.crcat_approve_pending = exports.crcat_approve_pending_command = exports.vc_revoke = exports.vc_revoke_command = exports.vc_get_proofs_for_root = exports.vc_get_proofs_for_root_command = exports.vc_add_proofs = exports.vc_add_proofs_command = exports.vc_spend = exports.vc_spend_command = exports.vc_get_list = exports.vc_get_list_command = exports.vc_get = exports.vc_get_command = exports.vc_mint = exports.vc_mint_command = exports.dl_verify_proof = exports.dl_verify_proof_command = exports.dl_delete_mirror = exports.dl_delete_mirror_command = exports.dl_new_mirror = exports.dl_new_mirror_command = exports.dl_get_mirrors = void 0;
|
|
13
|
+
exports.cat_asset_id_to_name_command = exports.cat_set_name = exports.cat_set_name_command = exports.get_cat_list = exports.get_cat_list_command = exports.sign_message_by_id = exports.sign_message_by_id_command = exports.sign_message_by_address = exports.sign_message_by_address_command = exports.combine_coins = exports.combine_coins_command = exports.split_coins = exports.split_coins_command = exports.get_transaction_memo = exports.get_transaction_memo_command = exports.verify_signature = exports.verify_signature_command = exports.send_notification = exports.send_notification_command = exports.delete_notifications = exports.delete_notifications_command = exports.get_notifications = exports.get_notifications_command = exports.extend_derivation_index = exports.extend_derivation_index_command = exports.get_current_derivation_index = exports.get_current_derivation_index_command = exports.get_coin_records_by_names = exports.get_coin_records_by_names_command = exports.get_spendable_coins = exports.get_spendable_coins_command = exports.select_coins = exports.select_coins_command = exports.delete_unconfirmed_transactions = exports.delete_unconfirmed_transactions_command = exports.create_signed_transaction = exports.create_signed_transaction_command = exports.get_farmed_amount = exports.get_farmed_amount_command = exports.get_transaction_count = exports.get_transaction_count_command = exports.get_coin_records = exports.get_coin_records_command = exports.spend_clawback_coins = exports.spend_clawback_coins_command = exports.send_transaction_multi = exports.send_transaction_multi_command = exports.send_transaction = exports.send_transaction_command = exports.get_next_address = void 0;
|
|
14
|
+
exports.did_get_information_needed_for_recovery_command = exports.did_create_attest = exports.did_create_attest_command = exports.did_get_metadata = exports.did_get_metadata_command = exports.did_get_recovery_list = exports.did_get_recovery_list_command = exports.did_recovery_spend = exports.did_recovery_spend_command = exports.did_get_did = exports.did_get_did_command = exports.did_get_pubkey = exports.did_get_pubkey_command = exports.did_spend = exports.did_spend_command = exports.did_update_metadata = exports.did_update_metadata_command = exports.did_update_recovery_ids = exports.did_update_recovery_ids_command = exports.did_get_wallet_name = exports.did_get_wallet_name_command = exports.did_set_wallet_name = exports.did_set_wallet_name_command = exports.cancel_offers = exports.cancel_offers_command = exports.cancel_offer = exports.cancel_offer_command = exports.get_offers_count = exports.get_offers_count_command = exports.get_all_offers = exports.get_all_offers_command = exports.get_offer = exports.get_offer_command = exports.take_offer = exports.take_offer_command = exports.check_offer_validity = exports.check_offer_validity_command = exports.get_offer_summary = exports.get_offer_summary_command = exports.create_offer_for_ids = exports.create_offer_for_ids_command = exports.cat_get_asset_id = exports.cat_get_asset_id_command = exports.cat_spend = exports.cat_spend_command = exports.get_stray_cats = exports.get_stray_cats_command = exports.cat_get_name = exports.cat_get_name_command = exports.cat_asset_id_to_name = void 0;
|
|
15
|
+
exports.nft_set_did_bulk_command = exports.nft_set_nft_did = exports.nft_set_nft_did_command = exports.nft_get_nfts = exports.nft_get_nfts_command = exports.nft_count_nfts = exports.nft_count_nfts_command = exports.nft_mint_nft = exports.nft_mint_nft_command = exports.dao_free_coins_from_finished_proposals = exports.dao_free_coins_from_finished_proposals_command = exports.dao_close_proposal = exports.dao_close_proposal_command = exports.dao_parse_proposal = exports.dao_parse_proposal_command = exports.dao_vote_on_proposal = exports.dao_vote_on_proposal_command = exports.dao_create_proposal = exports.dao_create_proposal_command = exports.dao_exit_lockup = exports.dao_exit_lockup_command = exports.dao_get_proposal_state = exports.dao_get_proposal_state_command = exports.dao_get_proposals = exports.dao_get_proposals_command = exports.dao_send_to_lockup = exports.dao_send_to_lockup_command = exports.dao_get_rules = exports.dao_get_rules_command = exports.dao_get_treasury_id = exports.dao_get_treasury_id_command = exports.dao_get_treasury_balance = exports.dao_get_treasury_balance_command = exports.dao_add_funds_to_treasury = exports.dao_add_funds_to_treasury_command = exports.dao_adjust_filter_level = exports.dao_adjust_filter_level_command = exports.did_transfer_did = exports.did_transfer_did_command = exports.did_find_lost_did = exports.did_find_lost_did_command = exports.did_get_info = exports.did_get_info_command = exports.did_message_spend = exports.did_message_spend_command = exports.did_create_backup_file = 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 = void 0;
|
|
16
|
+
exports.dl_history_command = exports.dl_update_multiple = exports.dl_update_multiple_command = exports.dl_update_root = exports.dl_update_root_command = exports.dl_singletons_by_root = exports.dl_singletons_by_root_command = exports.dl_latest_singleton = exports.dl_latest_singleton_command = exports.dl_stop_tracking = exports.dl_stop_tracking_command = exports.dl_track_new = exports.dl_track_new_command = exports.create_new_dl = exports.create_new_dl_command = exports.pw_status = exports.pw_status_command = exports.pw_absorb_rewards = exports.pw_absorb_rewards_command = exports.pw_self_pool = exports.pw_self_pool_command = exports.pw_join_pool = exports.pw_join_pool_command = exports.add_rate_limited_funds = exports.add_rate_limited_funds_command = exports.send_clawback_transaction = exports.send_clawback_transaction_command = exports.rl_set_user_info = exports.rl_set_user_info_command = exports.nft_mint_bulk = exports.nft_mint_bulk_command = exports.nft_calculate_royalties = exports.nft_calculate_royalties_command = exports.nft_add_uri = exports.nft_add_uri_command = exports.nft_get_info = exports.nft_get_info_command = exports.nft_transfer_nft = exports.nft_transfer_nft_command = exports.nft_set_nft_status = exports.nft_set_nft_status_command = exports.nft_get_wallets_with_dids = exports.nft_get_wallets_with_dids_command = exports.nft_get_wallet_did = exports.nft_get_wallet_did_command = exports.nft_get_by_did = exports.nft_get_by_did_command = exports.nft_transfer_bulk = exports.nft_transfer_bulk_command = exports.nft_set_did_bulk = void 0;
|
|
17
|
+
exports.execute_signing_instructions = exports.execute_signing_instructions_command = exports.submit_transactions = exports.submit_transactions_command = exports.apply_signatures = exports.apply_signatures_command = exports.gather_signing_info = exports.gather_signing_info_command = exports.crcat_approve_pending = exports.crcat_approve_pending_command = exports.vc_revoke = exports.vc_revoke_command = exports.vc_get_proofs_for_root = exports.vc_get_proofs_for_root_command = exports.vc_add_proofs = exports.vc_add_proofs_command = exports.vc_spend = exports.vc_spend_command = exports.vc_get_list = exports.vc_get_list_command = exports.vc_get = exports.vc_get_command = exports.vc_mint = exports.vc_mint_command = exports.dl_verify_proof = exports.dl_verify_proof_command = exports.dl_delete_mirror = exports.dl_delete_mirror_command = exports.dl_new_mirror = exports.dl_new_mirror_command = exports.dl_get_mirrors = exports.dl_get_mirrors_command = exports.dl_owned_singletons = exports.dl_owned_singletons_command = exports.dl_history = void 0;
|
|
18
18
|
exports.chia_wallet_service = "chia_wallet";
|
|
19
19
|
// # Key management
|
|
20
20
|
exports.log_in_command = "log_in";
|
|
@@ -137,6 +137,7 @@ function get_auto_claim(agent) {
|
|
|
137
137
|
});
|
|
138
138
|
}
|
|
139
139
|
exports.get_auto_claim = get_auto_claim;
|
|
140
|
+
// This API was removed in `chia-blockchain@2.4.4`. Will be removed from `chia-agent` in the future.
|
|
140
141
|
exports.get_initial_freeze_period_command_of_wallet = "get_initial_freeze_period";
|
|
141
142
|
function get_initial_freeze_period_of_wallet(agent) {
|
|
142
143
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -320,6 +321,20 @@ function get_transaction_memo(agent, data) {
|
|
|
320
321
|
});
|
|
321
322
|
}
|
|
322
323
|
exports.get_transaction_memo = get_transaction_memo;
|
|
324
|
+
exports.split_coins_command = "split_coins";
|
|
325
|
+
function split_coins(agent, data) {
|
|
326
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
327
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.split_coins_command, data);
|
|
328
|
+
});
|
|
329
|
+
}
|
|
330
|
+
exports.split_coins = split_coins;
|
|
331
|
+
exports.combine_coins_command = "combine_coins";
|
|
332
|
+
function combine_coins(agent, data) {
|
|
333
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
334
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.combine_coins_command, data);
|
|
335
|
+
});
|
|
336
|
+
}
|
|
337
|
+
exports.combine_coins = combine_coins;
|
|
323
338
|
exports.sign_message_by_address_command = "sign_message_by_address";
|
|
324
339
|
function sign_message_by_address(agent, data) {
|
|
325
340
|
return __awaiter(this, void 0, void 0, function* () {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "chia-agent",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.4.0",
|
|
4
4
|
"author": "ChiaMineJP <admin@chiamine.jp>",
|
|
5
5
|
"description": "chia rpc/websocket client library",
|
|
6
6
|
"license": "MIT",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@chiamine/json-bigint": "^1.0.3",
|
|
30
|
-
"ws": "^8.
|
|
30
|
+
"ws": "^8.18.0",
|
|
31
31
|
"yaml": "^2.4.2"
|
|
32
32
|
}
|
|
33
33
|
}
|