chia-agent 12.0.1 → 12.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +30 -0
- package/README.md +3 -3
- package/api/chia/types/mempool_item.d.ts +9 -1
- package/api/chia/util/misc.d.ts +5 -0
- package/api/chia/util/misc.js +2 -0
- package/api/chia/wallet/puzzles/clawback/metadata.d.ts +13 -0
- package/api/chia/wallet/puzzles/clawback/metadata.js +2 -0
- package/api/chia/wallet/transaction_record.d.ts +7 -0
- package/api/chia/wallet/util/quality_filter.d.ts +22 -0
- package/api/chia/wallet/util/quality_filter.js +2 -0
- package/api/chia/wallet/util/wallet_types.d.ts +22 -12
- package/api/chia/wallet/util/wallet_types.js +6 -1
- package/api/chia/wallet/vc_wallet/vc_drivers.d.ts +16 -0
- package/api/chia/wallet/vc_wallet/vc_drivers.js +2 -0
- package/api/chia/wallet/vc_wallet/vc_store.d.ts +6 -0
- package/api/chia/wallet/vc_wallet/vc_store.js +2 -0
- package/api/chia/wallet/wallet_coin_record.d.ts +25 -0
- package/api/chia/wallet/wallet_coin_record.js +2 -0
- package/api/chia/wallet/wallet_coin_store.d.ts +19 -0
- package/api/chia/wallet/wallet_coin_store.js +2 -0
- package/api/rpc/index.d.ts +1 -1
- package/api/rpc/index.js +15 -3
- package/api/rpc/wallet/index.d.ts +158 -10
- package/api/rpc/wallet/index.js +89 -6
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,34 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [12.1.0]
|
|
4
|
+
### Changed
|
|
5
|
+
- [Wallet RPC API](./src/api/rpc/wallet)
|
|
6
|
+
- [`get_transactions`](./src/api/rpc/wallet/README.md#get_transactionsagent-params)
|
|
7
|
+
- Added `type_filter` to request parameter
|
|
8
|
+
- Added `confirmed` to request parameter
|
|
9
|
+
- Added `metadata` for each `transactions` in a response
|
|
10
|
+
- [`get_transaction_count`](./src/api/rpc/wallet/README.md#get_transaction_countagent-params)
|
|
11
|
+
- Added `type_filter` to request parameter
|
|
12
|
+
- Added `confirmed` to request parameter
|
|
13
|
+
- [`send_transaction`](./src/api/rpc/wallet/README.md#send_transactionagent-params)
|
|
14
|
+
- Added `puzzle_decorator` to request parameter
|
|
15
|
+
- [`did_get_info`](./src/api/rpc/wallet/README.md#did_get_infoagent-params)
|
|
16
|
+
- Added `did_id` to response
|
|
17
|
+
### Added
|
|
18
|
+
- [Wallet RPC API](./src/api/rpc/wallet)
|
|
19
|
+
- [`set_auto_claim`](./src/api/rpc/wallet/README.md#set_auto_claimagent-params)
|
|
20
|
+
- [`get_auto_claim`](./src/api/rpc/wallet/README.md#get_auto_claimagent-params)
|
|
21
|
+
- [`get_wallet_balances`](./src/api/rpc/wallet/README.md#get_wallet_balancesagent-params)
|
|
22
|
+
- [`spend_clawback_coins`](./src/api/rpc/wallet/README.md#spend_clawback_coinsagent-params)
|
|
23
|
+
- [`get_coin_records`](./src/api/rpc/wallet/README.md#get_coin_recordsagent-params)
|
|
24
|
+
- [`vc_mint`](./src/api/rpc/wallet/README.md#vc_mintagent-params)
|
|
25
|
+
- [`vc_get`](./src/api/rpc/wallet/README.md#vc_getagent-params)
|
|
26
|
+
- [`vc_get_list`](./src/api/rpc/wallet/README.md#vc_get_listagent-params)
|
|
27
|
+
- [`vc_spend`](./src/api/rpc/wallet/README.md#vc_spendagent-params)
|
|
28
|
+
- [`vc_add_proofs`](./src/api/rpc/wallet/README.md#vc_add_proofsagent-params)
|
|
29
|
+
- [`vc_get_proofs_for_root`](./src/api/rpc/wallet/README.md#vc_get_proofs_for_rootagent-params)
|
|
30
|
+
- [`vc_revoke`](./src/api/rpc/wallet/README.md#vc_revokeagent-params)
|
|
31
|
+
|
|
3
32
|
## [12.0.1]
|
|
4
33
|
### Changed
|
|
5
34
|
- Replace the npm module `json-bigint` to `@chiamine/json-bigint`.
|
|
@@ -1017,6 +1046,7 @@ daemon.sendMessage(destination, get_block_record_by_height_command, data);
|
|
|
1017
1046
|
Initial release.
|
|
1018
1047
|
|
|
1019
1048
|
<!-- [Unreleased]: https://github.com/Chia-Mine/chia-agent/compare/v0.0.1...v0.0.2 -->
|
|
1049
|
+
[12.1.0]: https://github.com/Chia-Mine/chia-agent/compare/v12.0.1...v12.1.0
|
|
1020
1050
|
[12.0.1]: https://github.com/Chia-Mine/chia-agent/compare/v12.0.0...v12.0.1
|
|
1021
1051
|
[12.0.0]: https://github.com/Chia-Mine/chia-agent/compare/v11.1.1...v12.0.0
|
|
1022
1052
|
[11.1.1]: https://github.com/Chia-Mine/chia-agent/compare/v11.1.0...v11.1.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 `chia 1.8.
|
|
5
|
+
Supports all RPC/Websocket API available at `chia 1.8.2`.
|
|
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,8 +22,8 @@ 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/
|
|
25
|
+
- [`f0764f27defa865fd4ccc28756195e535adc6bd9`](https://github.com/Chia-Network/chia-blockchain/tree/f0764f27defa865fd4ccc28756195e535adc6bd9) of [chia-blockchain 1.8.2](https://github.com/Chia-Network/chia-blockchain)
|
|
26
|
+
- [Diff to the main branch of chia-blockchain](https://github.com/Chia-Network/chia-blockchain/compare/f0764f27defa865fd4ccc28756195e535adc6bd9...main)
|
|
27
27
|
- [`6c1c7ecd2ed7307760d1673dc2b1057f22e08fd5`](https://github.com/Chia-Network/pool-reference/tree/6c1c7ecd2ed7307760d1673dc2b1057f22e08fd5) of [pool-reference](https://github.com/Chia-Network/pool-reference)
|
|
28
28
|
- [Diff to the main branch of pool-reference](https://github.com/Chia-Network/pool-reference/compare/6c1c7ecd2ed7307760d1673dc2b1057f22e08fd5...main)
|
|
29
29
|
|
|
@@ -2,7 +2,14 @@ import { SpendBundle } from "./spend_bundle";
|
|
|
2
2
|
import { Coin } from "./blockchain_format/coin";
|
|
3
3
|
import { bytes32 } from "./blockchain_format/sized_bytes";
|
|
4
4
|
import { NPCResult } from "../consensus/cost_calculator";
|
|
5
|
-
import { Optional, uint32, uint64 } from "./_python_types_";
|
|
5
|
+
import { bool, Optional, uint32, uint64 } from "./_python_types_";
|
|
6
|
+
import { CoinSpend } from "./coin_spend";
|
|
7
|
+
export declare type BundleCoinSpend = {
|
|
8
|
+
coin_spend: CoinSpend;
|
|
9
|
+
eligible_for_dedup: bool;
|
|
10
|
+
additions: Coin[];
|
|
11
|
+
cost: Optional<uint64>;
|
|
12
|
+
};
|
|
6
13
|
export declare type MempoolItem = {
|
|
7
14
|
spend_bundle: SpendBundle;
|
|
8
15
|
fee: uint64;
|
|
@@ -12,6 +19,7 @@ export declare type MempoolItem = {
|
|
|
12
19
|
assert_height: Optional<uint32>;
|
|
13
20
|
assert_before_height: Optional<uint32>;
|
|
14
21
|
assert_before_seconds: Optional<uint64>;
|
|
22
|
+
bundle_coin_spends: Record<bytes32, BundleCoinSpend>;
|
|
15
23
|
};
|
|
16
24
|
export declare type MempoolItemInJsonDict = {
|
|
17
25
|
spend_bundle: SpendBundle;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { bool, uint16, uint64 } from "../../../types/_python_types_";
|
|
2
|
+
import { bytes32 } from "../../../types/blockchain_format/sized_bytes";
|
|
3
|
+
export declare type AutoClaimSettings = {
|
|
4
|
+
enabled: bool;
|
|
5
|
+
tx_fee: uint64;
|
|
6
|
+
min_amount: uint64;
|
|
7
|
+
batch_size: uint16;
|
|
8
|
+
};
|
|
9
|
+
export declare type ClawbackMetadata = {
|
|
10
|
+
time_lock: uint64;
|
|
11
|
+
sender_puzzle_hash: bytes32;
|
|
12
|
+
recipient_puzzle_hash: bytes32;
|
|
13
|
+
};
|
|
@@ -2,6 +2,7 @@ import { bool, bytes, Optional, str, uint32, uint64, uint8 } from "../types/_pyt
|
|
|
2
2
|
import { SpendBundle } from "../types/spend_bundle";
|
|
3
3
|
import { Coin } from "../types/blockchain_format/coin";
|
|
4
4
|
import { bytes32 } from "../types/blockchain_format/sized_bytes";
|
|
5
|
+
import { ClawbackMetadata } from "./puzzles/clawback/metadata";
|
|
5
6
|
export declare type TransactionRecord = {
|
|
6
7
|
confirmed_at_height: uint32;
|
|
7
8
|
created_at_time: uint64;
|
|
@@ -24,3 +25,9 @@ export declare type TransactionRecordConvenience = {
|
|
|
24
25
|
to_address: str;
|
|
25
26
|
memos: Record<str, str>;
|
|
26
27
|
} & TransactionRecord;
|
|
28
|
+
export declare type TransactionRecordConvenienceWithMetadata = {
|
|
29
|
+
metadata: ClawbackMetadata & {
|
|
30
|
+
coin_id: str;
|
|
31
|
+
spent: bool;
|
|
32
|
+
};
|
|
33
|
+
} & TransactionRecordConvenience;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { uint32, uint64, uint8 } from "../../types/_python_types_";
|
|
2
|
+
import { bytes32 } from "../../types/blockchain_format/sized_bytes";
|
|
3
|
+
export declare type TransactionTypeFilter = {
|
|
4
|
+
values: uint8[];
|
|
5
|
+
mode: uint8;
|
|
6
|
+
};
|
|
7
|
+
export declare type HashFilter = {
|
|
8
|
+
values: bytes32[];
|
|
9
|
+
mode: uint8;
|
|
10
|
+
};
|
|
11
|
+
export declare type AmountFilter = {
|
|
12
|
+
values: uint64[];
|
|
13
|
+
mode: uint8;
|
|
14
|
+
};
|
|
15
|
+
export declare type UInt32Range = {
|
|
16
|
+
start: uint32;
|
|
17
|
+
stop: uint32;
|
|
18
|
+
};
|
|
19
|
+
export declare type UInt64Range = {
|
|
20
|
+
start: uint64;
|
|
21
|
+
stop: uint64;
|
|
22
|
+
};
|
|
@@ -1,14 +1,24 @@
|
|
|
1
|
+
import { uint32, uint8 } from "../../types/_python_types_";
|
|
1
2
|
export declare const WalletType: {
|
|
2
|
-
STANDARD_WALLET:
|
|
3
|
-
ATOMIC_SWAP:
|
|
4
|
-
AUTHORIZED_PAYEE:
|
|
5
|
-
MULTI_SIG:
|
|
6
|
-
CUSTODY:
|
|
7
|
-
CAT:
|
|
8
|
-
RECOVERABLE:
|
|
9
|
-
DECENTRALIZED_ID:
|
|
10
|
-
POOLING_WALLET:
|
|
11
|
-
NFT:
|
|
12
|
-
DATA_LAYER:
|
|
13
|
-
DATA_LAYER_OFFER:
|
|
3
|
+
readonly STANDARD_WALLET: 0;
|
|
4
|
+
readonly ATOMIC_SWAP: 2;
|
|
5
|
+
readonly AUTHORIZED_PAYEE: 3;
|
|
6
|
+
readonly MULTI_SIG: 4;
|
|
7
|
+
readonly CUSTODY: 5;
|
|
8
|
+
readonly CAT: 6;
|
|
9
|
+
readonly RECOVERABLE: 7;
|
|
10
|
+
readonly DECENTRALIZED_ID: 8;
|
|
11
|
+
readonly POOLING_WALLET: 9;
|
|
12
|
+
readonly NFT: 10;
|
|
13
|
+
readonly DATA_LAYER: 11;
|
|
14
|
+
readonly DATA_LAYER_OFFER: 12;
|
|
15
|
+
readonly VC: 13;
|
|
16
|
+
};
|
|
17
|
+
export declare const CoinType: {
|
|
18
|
+
readonly NORMAL: 0;
|
|
19
|
+
readonly CLAWBACK: 1;
|
|
20
|
+
};
|
|
21
|
+
export declare type StreamableWalletIdentifier = {
|
|
22
|
+
id: uint32;
|
|
23
|
+
type: uint8;
|
|
14
24
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WalletType = void 0;
|
|
3
|
+
exports.CoinType = exports.WalletType = void 0;
|
|
4
4
|
exports.WalletType = {
|
|
5
5
|
// # Wallet Types
|
|
6
6
|
STANDARD_WALLET: 0,
|
|
@@ -16,4 +16,9 @@ exports.WalletType = {
|
|
|
16
16
|
NFT: 10,
|
|
17
17
|
DATA_LAYER: 11,
|
|
18
18
|
DATA_LAYER_OFFER: 12,
|
|
19
|
+
VC: 13,
|
|
20
|
+
};
|
|
21
|
+
exports.CoinType = {
|
|
22
|
+
NORMAL: 0,
|
|
23
|
+
CLAWBACK: 1,
|
|
19
24
|
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { bytes32 } from "../../types/blockchain_format/sized_bytes";
|
|
2
|
+
import { Optional } from "../../types/_python_types_";
|
|
3
|
+
import { LineageProof } from "../lineage_proof";
|
|
4
|
+
import { Coin } from "../../types/blockchain_format/coin";
|
|
5
|
+
export declare type VCLineageProof = LineageProof & {
|
|
6
|
+
parent_proof_hash: Optional<bytes32>;
|
|
7
|
+
};
|
|
8
|
+
export declare type VerifiedCredential = {
|
|
9
|
+
coin: Coin;
|
|
10
|
+
singleton_lineage_proof: LineageProof;
|
|
11
|
+
eml_lineage_proof: VCLineageProof;
|
|
12
|
+
launcher_id: bytes32;
|
|
13
|
+
inner_puzzle_hash: bytes32;
|
|
14
|
+
proof_provider: bytes32;
|
|
15
|
+
proof_hash: Optional<bytes32>;
|
|
16
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { bool, int, Optional, str, uint32 } from "../types/_python_types_";
|
|
2
|
+
import { Coin } from "../types/blockchain_format/coin";
|
|
3
|
+
import { CoinType, StreamableWalletIdentifier, WalletType } from "./util/wallet_types";
|
|
4
|
+
import { VersionBlob } from "../util/misc";
|
|
5
|
+
import { ClawbackMetadata } from "./puzzles/clawback/metadata";
|
|
6
|
+
export declare type WalletCoinRecord = {
|
|
7
|
+
coin: Coin;
|
|
8
|
+
confirmed_block_height: uint32;
|
|
9
|
+
spent_block_height: uint32;
|
|
10
|
+
spent: bool;
|
|
11
|
+
coinbase: bool;
|
|
12
|
+
wallet_type: typeof WalletType[keyof typeof WalletType];
|
|
13
|
+
wallet_id: int;
|
|
14
|
+
coin_type: typeof CoinType[keyof typeof CoinType];
|
|
15
|
+
metadata: Optional<VersionBlob>;
|
|
16
|
+
};
|
|
17
|
+
export declare type WalletCoinRecordWithMetadata = WalletCoinRecord & {
|
|
18
|
+
id: str;
|
|
19
|
+
type: typeof CoinType[keyof typeof CoinType];
|
|
20
|
+
wallet_identifier: StreamableWalletIdentifier;
|
|
21
|
+
metadata: ClawbackMetadata;
|
|
22
|
+
confirmed_height: uint32;
|
|
23
|
+
spent_height: uint32;
|
|
24
|
+
coinbase: bool;
|
|
25
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { bool, Optional, uint32, uint8 } from "../types/_python_types_";
|
|
2
|
+
import { AmountFilter, HashFilter, UInt32Range, UInt64Range } from "./util/quality_filter";
|
|
3
|
+
export declare type GetCoinRecords = {
|
|
4
|
+
offset: uint32;
|
|
5
|
+
limit: uint32;
|
|
6
|
+
wallet_id: Optional<uint32>;
|
|
7
|
+
wallet_type: Optional<uint8>;
|
|
8
|
+
coin_type: Optional<uint8>;
|
|
9
|
+
coin_id_filter: Optional<HashFilter>;
|
|
10
|
+
puzzle_hash_filter: Optional<HashFilter>;
|
|
11
|
+
parent_coin_id_filter: Optional<HashFilter>;
|
|
12
|
+
amount_filter: Optional<AmountFilter>;
|
|
13
|
+
amount_range: Optional<UInt64Range>;
|
|
14
|
+
confirmed_range: Optional<UInt32Range>;
|
|
15
|
+
spent_range: Optional<UInt32Range>;
|
|
16
|
+
order: uint8;
|
|
17
|
+
reverse: bool;
|
|
18
|
+
include_total_count: bool;
|
|
19
|
+
};
|
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, TGetPlotDirectoriesRequest, TGetPlotDirectoriesResponse, get_plot_directories, TGetPlotsRequest, TGetPlotsResponse, get_plots, TRefreshPlotsRequest, TRefreshPlotsResponse, refresh_plots, TRemovePlotDirectoryRequest, TRemovePlotDirectoryResponse, remove_plot_directory, } from "./harvester/index";
|
|
7
7
|
import type { RpcWalletMessage } from "./wallet/index";
|
|
8
|
-
export { chia_wallet_service, TAddKeyRequest, TAddKeyResponse, add_key, TAddRateLimitedFundsRequest, TAddRateLimitedFundsResponse, add_rate_limited_funds, TAdditions, TCancelOfferRequest, TCancelOfferResponse, cancel_offer, TCancelOffersRequest, TCancelOffersResponse, cancel_offers, TCatGetAssetIdRequest, TCatGetAssetIdResponse, cat_get_asset_id, TCatGetNameRequest, TCatGetNameResponse, cat_get_name, TGetStrayCatsResponse, get_stray_cats, TCatAssetIdToNameRequest, TCatAssetIdToNameResponse, cat_asset_id_to_name, TCatSetNameRequest, TCatSetNameResponse, cat_set_name, TCatSpendRequest, TCatSpendResponse, cat_spend, TCheckOfferValidityRequest, TCheckOfferValidityResponse, check_offer_validity, TCreateNewWalletRequest, TCreateNewWalletResponse, create_new_wallet, TCreateOfferForIdsRequest, TCreateOfferForIdsResponse, create_offer_for_ids, TCreateSignedTransactionRequest, TCreateSignedTransactionResponse, create_signed_transaction, TDeleteUnconfirmedTransactionsRequest, TDeleteUnconfirmedTransactionsResponse, delete_unconfirmed_transactions, TSelectCoinsRequest, TSelectCoinsResponse, select_coins, TGetCurrentDerivationIndexResponse, get_current_derivation_index, TExtendDerivationIndexRequest, TExtendDerivationIndexResponse, extend_derivation_index, TGetNotificationsRequest, TGetNotificationsResponse, get_notifications, TDeleteNotificationsRequest, TDeleteNotificationsResponse, delete_notifications, TSendNotificationRequest, TSendNotificationResponse, send_notification, TSignMessageByAddressRequest, TSignMessageByAddressResponse, sign_message_by_address, TSignMessageByIdRequest, TSignMessageByIdResponse, sign_message_by_id, TVerifySignatureRequest, TVerifySignatureResponse, verify_signature, TGetTransactionMemoRequest, TGetTransactionMemoResponse, get_transaction_memo, TNftCalculateRoyaltiesRequest, TNftCalculateRoyaltiesResponse, nft_calculate_royalties, TNftMintBulkRequest, TNftMintBulkResponse, nft_mint_bulk, TNftSetDidBulkRequest, TNftSetDidBulkResponse, nft_set_did_bulk, TNftTransferBulkRequest, TNftTransferBulkResponse, nft_transfer_bulk, TCreate_New_CAT_WalletRequest, TCreate_New_CAT_WalletResponse, TCreate_New_DID_WalletRequest, TCreate_New_DID_WalletResponse, TCreate_New_RL_WalletRequest, TCreate_New_RL_WalletResponse, TDeleteAllKeysRequest, TDeleteAllKeysResponse, delete_all_keys, TSetWalletResyncOnStartupRequest, TSetWalletResyncOnStartupResponse, set_wallet_resync_on_startup, TDeleteKeyRequest, TDeleteKeyResponse, delete_key, TDidSetWalletNameRequest, TDidSetWalletNameResponse, did_set_wallet_name, TDidGetWalletNameRequest, TDidGetWalletNameResponse, did_get_wallet_name, TDidCreateAttestRequest, TDidCreateAttestResponse, did_create_attest, TDidCreateBackupFileRequest, TDidCreateBackupFileResponse, did_create_backup_file, TDidTransferDidRequest, TDidTransferDidResponse, did_transfer_did, TDidGetDidRequest, TDidGetDidResponse, did_get_did, TDidGetInformationNeededForRecoveryRequest, TDidGetInformationNeededForRecoveryResponse, did_get_information_needed_for_recovery, TDidGetCurrentCoinInfoRequest, TDidGetCurrentCoinInfoResponse, did_get_current_coin_info, TDidGetPubkeyRequest, TDidGetPubkeyResponse, did_get_pubkey, TDidGetRecoveryListRequest, TDidGetRecoveryListResponse, did_get_recovery_list, TDidGetMetadataRequest, TDidGetMetadataResponse, did_get_metadata, TDidRecoverySpendRequest, TDidRecoverySpendResponse, did_recovery_spend, TDidSpendRequest, TDidSpendResponse, did_spend, TDidUpdateRecoveryIdsRequest, TDidUpdateRecoveryIdsResponse, did_update_recovery_ids, TDidUpdateMetadataRequest, TDidUpdateMetadataResponse, did_update_metadata, TNftMintNftRequest, TNftMintNftResponse, nft_mint_nft, TNftCountNftsRequest, TNftCountNftsResponse, nft_count_nfts, TNftGetNftsRequest, TNftGetNftsResponse, nft_get_nfts, TNftSetNftDidRequest, TNftSetNftDidResponse, nft_set_nft_did, TNftGetByDidRequest, TNftGetByDidResponse, nft_get_by_did, TNftGetWalletDidRequest, TNftGetWalletDidResponse, nft_get_wallet_did, TNftGetWalletsWithDidsResponse, nft_get_wallets_with_dids, TNftSetNftStatusRequest, TNftSetNftStatusResponse, nft_set_nft_status, TNftTransferNftRequest, TNftTransferNftResponse, nft_transfer_nft, TNftGetInfoRequest, TNftGetInfoResponse, nft_get_info, TNftAddUriRequest, TNftAddUriResponse, nft_add_uri, TFarmBlockRequest, TFarmBlockResponse, farm_block, TGetTimestampForHeightResponse, get_timestamp_for_height, TGenerateMnemonicRequest, TGenerateMnemonicResponse, generate_mnemonic, TGetAllOffersRequest, TGetAllOffersResponse, get_all_offers, TGetCatListResponse, get_cat_list, TGetFarmedAmountRequest, TGetFarmedAmountResponse, get_farmed_amount, TGetHeightInfoRequest, TGetHeightInfoResponse, get_height_info, TGetInitialFreezePeriodRequestOfWallet, TGetInitialFreezePeriodResponseOfWallet, get_initial_freeze_period_of_wallet, TGetLoggedInFingerprintResponse, get_logged_in_fingerprint, TGetOfferRequest, TGetOfferResponse, get_offer, TGetOffersCountResponse, get_offers_count, TGetOfferSummaryRequest, TGetOfferSummaryResponse, get_offer_summary, TGetNetworkInfoRequestOfWallet, TGetNetworkInfoResponseOfWallet, get_network_info_of_wallet, TGetNextAddressRequest, TGetNextAddressResponse, get_next_address, TGetPrivateKeyRequest, TGetPrivateKeyResponse, get_private_key, TGetPublicKeysRequest, TGetPublicKeysResponse, get_public_keys, TGetSyncStatusRequest, TGetSyncStatusResponse, get_sync_status, TGetTransactionCountRequest, TGetTransactionCountResponse, get_transaction_count, TGetTransactionRequest, TGetTransactionResponse, get_transaction, TGetTransactionsRequest, TGetTransactionsResponse, get_transactions, TGetWalletBalanceRequest, TGetWalletBalanceResponse, get_wallet_balance, TGetWalletsRequest, TGetWalletsResponse, get_wallets, TLoginRequest, TLoginResponse, log_in, TPushTxRequest as TPushTxRequestOfWallet, TPushTxResponse as TPushTxResponseOfWallet, push_tx as push_tx_wallet, TPushTransactionsRequest, TPushTransactionsResponse, push_transactions, TPwJoinPoolRequest, TPwJoinPoolResponse, pw_join_pool, TPwSelfPoolRequest, TPwSelfPoolResponse, pw_self_pool, TPwAbsorbRewardsRequest, TPwAbsorbRewardsResponse, pw_absorb_rewards, TPwStatusRequest, TPwStatusResponse, pw_status, TRlSetUserInfoRequest, TRlSetUserInfoResponse, rl_set_user_info, TSendClawbackTransactionRequest, TSendClawbackTransactionResponse, send_clawback_transaction, TSendTransactionRequest, TSendTransactionResponse, send_transaction, TSendTransactionMultiRequest, TSendTransactionMultiResponse, send_transaction_multi, TTakeOfferRequest, TTakeOfferResponse, take_offer, TCreateNewDlRequest, TCreateNewDlResponse, create_new_dl, TDlTrackNewRequest, TDlTrackNewResponse, dl_track_new, TDlStopTrackingRequest, TDlStopTrackingResponse, dl_stop_tracking, TDlLatestSingletonRequest, TDlLatestSingletonResponse, dl_latest_singleton, TDlSingletonsByRootRequest, TDlSingletonsByRootResponse, dl_singletons_by_root, TDlUpdateRootRequest, TDlUpdateRootResponse, dl_update_root, TDlUpdateMultipleRequest, TDlUpdateMultipleResponse, dl_update_multiple, TDlHistoryRequest, TDlHistoryResponse, dl_history, TDlOwnedSingletonsResponse, dl_owned_singletons, TDlGetMirrorsRequest, TDlGetMirrorsResponse, dl_get_mirrors, TDlNewMirrorRequest, TDlNewMirrorResponse, dl_new_mirror, TDlDeleteMirrorRequest, TDlDeleteMirrorResponse, dl_delete_mirror, } from "./wallet/index";
|
|
8
|
+
export { chia_wallet_service, TAddKeyRequest, TAddKeyResponse, add_key, TAddRateLimitedFundsRequest, TAddRateLimitedFundsResponse, add_rate_limited_funds, TAdditions, TCancelOfferRequest, TCancelOfferResponse, cancel_offer, TCancelOffersRequest, TCancelOffersResponse, cancel_offers, TCatGetAssetIdRequest, TCatGetAssetIdResponse, cat_get_asset_id, TCatGetNameRequest, TCatGetNameResponse, cat_get_name, TGetStrayCatsResponse, get_stray_cats, TCatAssetIdToNameRequest, TCatAssetIdToNameResponse, cat_asset_id_to_name, TCatSetNameRequest, TCatSetNameResponse, cat_set_name, TCatSpendRequest, TCatSpendResponse, cat_spend, TCheckOfferValidityRequest, TCheckOfferValidityResponse, check_offer_validity, TCreateNewWalletRequest, TCreateNewWalletResponse, create_new_wallet, TCreateOfferForIdsRequest, TCreateOfferForIdsResponse, create_offer_for_ids, TCreateSignedTransactionRequest, TCreateSignedTransactionResponse, create_signed_transaction, TDeleteUnconfirmedTransactionsRequest, TDeleteUnconfirmedTransactionsResponse, delete_unconfirmed_transactions, TSelectCoinsRequest, TSelectCoinsResponse, select_coins, TGetCurrentDerivationIndexResponse, get_current_derivation_index, TExtendDerivationIndexRequest, TExtendDerivationIndexResponse, extend_derivation_index, TGetNotificationsRequest, TGetNotificationsResponse, get_notifications, TDeleteNotificationsRequest, TDeleteNotificationsResponse, delete_notifications, TSendNotificationRequest, TSendNotificationResponse, send_notification, TSignMessageByAddressRequest, TSignMessageByAddressResponse, sign_message_by_address, TSignMessageByIdRequest, TSignMessageByIdResponse, sign_message_by_id, TVerifySignatureRequest, TVerifySignatureResponse, verify_signature, TGetTransactionMemoRequest, TGetTransactionMemoResponse, get_transaction_memo, TNftCalculateRoyaltiesRequest, TNftCalculateRoyaltiesResponse, nft_calculate_royalties, TNftMintBulkRequest, TNftMintBulkResponse, nft_mint_bulk, TNftSetDidBulkRequest, TNftSetDidBulkResponse, nft_set_did_bulk, TNftTransferBulkRequest, TNftTransferBulkResponse, nft_transfer_bulk, TCreate_New_CAT_WalletRequest, TCreate_New_CAT_WalletResponse, TCreate_New_DID_WalletRequest, TCreate_New_DID_WalletResponse, TCreate_New_RL_WalletRequest, TCreate_New_RL_WalletResponse, TDeleteAllKeysRequest, TDeleteAllKeysResponse, delete_all_keys, TSetWalletResyncOnStartupRequest, TSetWalletResyncOnStartupResponse, set_wallet_resync_on_startup, TDeleteKeyRequest, TDeleteKeyResponse, delete_key, TDidSetWalletNameRequest, TDidSetWalletNameResponse, did_set_wallet_name, TDidGetWalletNameRequest, TDidGetWalletNameResponse, did_get_wallet_name, TDidCreateAttestRequest, TDidCreateAttestResponse, did_create_attest, TDidCreateBackupFileRequest, TDidCreateBackupFileResponse, did_create_backup_file, TDidTransferDidRequest, TDidTransferDidResponse, did_transfer_did, TDidGetDidRequest, TDidGetDidResponse, did_get_did, TDidGetInformationNeededForRecoveryRequest, TDidGetInformationNeededForRecoveryResponse, did_get_information_needed_for_recovery, TDidGetCurrentCoinInfoRequest, TDidGetCurrentCoinInfoResponse, did_get_current_coin_info, TDidGetPubkeyRequest, TDidGetPubkeyResponse, did_get_pubkey, TDidGetRecoveryListRequest, TDidGetRecoveryListResponse, did_get_recovery_list, TDidGetMetadataRequest, TDidGetMetadataResponse, did_get_metadata, TDidRecoverySpendRequest, TDidRecoverySpendResponse, did_recovery_spend, TDidSpendRequest, TDidSpendResponse, did_spend, TDidUpdateRecoveryIdsRequest, TDidUpdateRecoveryIdsResponse, did_update_recovery_ids, TDidUpdateMetadataRequest, TDidUpdateMetadataResponse, did_update_metadata, TNftMintNftRequest, TNftMintNftResponse, nft_mint_nft, TNftCountNftsRequest, TNftCountNftsResponse, nft_count_nfts, TNftGetNftsRequest, TNftGetNftsResponse, nft_get_nfts, TNftSetNftDidRequest, TNftSetNftDidResponse, nft_set_nft_did, TNftGetByDidRequest, TNftGetByDidResponse, nft_get_by_did, TNftGetWalletDidRequest, TNftGetWalletDidResponse, nft_get_wallet_did, TNftGetWalletsWithDidsResponse, nft_get_wallets_with_dids, TNftSetNftStatusRequest, TNftSetNftStatusResponse, nft_set_nft_status, TNftTransferNftRequest, TNftTransferNftResponse, nft_transfer_nft, TNftGetInfoRequest, TNftGetInfoResponse, nft_get_info, TNftAddUriRequest, TNftAddUriResponse, nft_add_uri, TFarmBlockRequest, TFarmBlockResponse, farm_block, TGetTimestampForHeightResponse, get_timestamp_for_height, TSetAutoClaimRequest, TSetAutoClaimResponse, set_auto_claim, TGetAutoClaimResponse, get_auto_claim, TGenerateMnemonicRequest, TGenerateMnemonicResponse, generate_mnemonic, TGetAllOffersRequest, TGetAllOffersResponse, get_all_offers, TGetCatListResponse, get_cat_list, TGetFarmedAmountRequest, TGetFarmedAmountResponse, get_farmed_amount, TGetHeightInfoRequest, TGetHeightInfoResponse, get_height_info, TGetInitialFreezePeriodRequestOfWallet, TGetInitialFreezePeriodResponseOfWallet, get_initial_freeze_period_of_wallet, TGetLoggedInFingerprintResponse, get_logged_in_fingerprint, TGetOfferRequest, TGetOfferResponse, get_offer, TGetOffersCountResponse, get_offers_count, TGetOfferSummaryRequest, TGetOfferSummaryResponse, get_offer_summary, TGetNetworkInfoRequestOfWallet, TGetNetworkInfoResponseOfWallet, get_network_info_of_wallet, TGetNextAddressRequest, TGetNextAddressResponse, get_next_address, TGetPrivateKeyRequest, TGetPrivateKeyResponse, get_private_key, TGetPublicKeysRequest, TGetPublicKeysResponse, get_public_keys, TGetSyncStatusRequest, TGetSyncStatusResponse, get_sync_status, TGetTransactionCountRequest, TGetTransactionCountResponse, get_transaction_count, TGetTransactionRequest, TGetTransactionResponse, get_transaction, TGetTransactionsRequest, TGetTransactionsResponse, get_transactions, TGetWalletBalanceRequest, TGetWalletBalanceResponse, get_wallet_balance, 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, 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, } from "./wallet/index";
|
|
9
9
|
import type { RpcDataLayerMessage } from "./data_layer/index";
|
|
10
10
|
export { chia_data_layer_service, TCreateDataStoreRequest, TCreateDataStoreResponse, create_data_store, TGetOwnedStoresResponse, get_owned_stores, TBatchUpdateRequest, TBatchUpdateResponse, batch_update, TGetValueRequest, TGetValueResponse, get_value, TGetKeysRequest, TGetKeysResponse, get_keys, TGetKeysValuesRequest, TGetKeysValuesResponse, get_keys_values, TGetAncestorsRequest, TGetAncestorsResponse, get_ancestors, TGetRootRequest, TGetRootResponse, get_root, TGetLocalRootRequest, TGetLocalRootResponse, get_local_root, TGetRootsRequest, TGetRootsResponse, get_roots, TDeleteKeyRequest as TDeleteKeyDLRequest, TDeleteKeyResponse as TDeleteKeyDLResponse, delete_key as delete_key_dl, TInsertRequest, TInsertResponse, insert, TSubscribeRequest, TSubscribeResponse, subscribe, TUnsubscribeRequest, TUnsubscribeResponse, unsubscribe, TAddMirrorRequest, TAddMirrorResponse, add_mirror, TDeleteMirrorRequest, TDeleteMirrorResponse, delete_mirror, TGetMirrorsRequest, TGetMirrorsResponse, get_mirrors, TRemoveSubscriptionsRequest, TRemoveSubscriptionsResponse, remove_subscriptions, TSubscriptionsResponse, subscriptions, TGetKvDiffRequest, TGetKvDiffResponse, get_kv_diff, TGetRootHistoryRequest, TGetRootHistoryResponse, get_root_history, TAddMissingFilesRequest, TAddMissingFilesResponse, add_missing_files, TMakeOfferRequest, TMakeOfferResponse, make_offer, TTakeOfferRequest as TTakeOfferRequestDL, TTakeOfferResponse as TTakeOfferResponseDL, take_offer as take_offer_dl, TVerifyOfferRequest, TVerifyOfferResponse, verify_offer, TCancelOfferRequest as TCancelOfferRequestDL, TCancelOfferResponse as TCancelOfferResponseDL, cancel_offer as cancel_offer_dl, TGetSyncStatusRequest as TGetSyncStatusRequestDL, TGetSyncStatusResponse as TGetSyncStatusResponseDL, get_sync_status as get_sync_status_dl, TCheckPluginsResponse, check_plugins, } from "./data_layer/index";
|
|
11
11
|
import type { RpcCrawlerMessage } from "./crawler/index";
|
package/api/rpc/index.js
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.reorg_blocks = exports.revert_blocks = exports.get_all_puzzle_hashes = exports.get_all_coins = exports.get_farming_ph = exports.get_auto_farming = exports.set_auto_farming = exports.farm_block_fullnode = exports.get_all_blocks = exports.get_fee_estimate = exports.get_puzzle_and_solution = exports.push_tx = exports.get_unfinished_block_headers = exports.get_network_space = exports.get_network_info_of_full_node = exports.get_mempool_item_by_tx_id = exports.get_initial_freeze_period_of_full_node = exports.get_coin_records_by_hint = exports.get_coin_records_by_parent_ids = exports.get_coin_records_by_puzzle_hashes = exports.get_coin_records_by_puzzle_hash = exports.get_coin_record_by_name = exports.get_coin_records_by_names = exports.get_recent_signage_point_or_eos = exports.get_block_count_metrics = exports.get_blocks = exports.get_blockchain_state = exports.get_block = exports.get_block_spends = exports.get_block_records = exports.get_block_record = exports.get_block_record_by_height = exports.get_all_mempool_tx_ids = exports.get_all_mempool_items = exports.get_additions_and_removals = exports.chia_full_node_service = exports.get_pool_login_link = exports.get_pool_state = exports.set_pool_payout_instructions = exports.get_harvester_plots_duplicates = exports.get_harvester_plots_keys_missing = exports.get_harvester_plots_invalid = exports.get_harvester_plots_valid = exports.get_harvesters_summary = exports.get_harvesters = exports.set_reward_targets = exports.get_signage_points = exports.get_signage_point = exports.get_reward_targets = exports.chia_farmer_service = void 0;
|
|
4
4
|
exports.did_get_recovery_list = exports.did_get_pubkey = exports.did_get_current_coin_info = exports.did_get_information_needed_for_recovery = exports.did_get_did = exports.did_transfer_did = exports.did_create_backup_file = exports.did_create_attest = exports.did_get_wallet_name = exports.did_set_wallet_name = exports.delete_key = exports.set_wallet_resync_on_startup = exports.delete_all_keys = exports.nft_transfer_bulk = exports.nft_set_did_bulk = exports.nft_mint_bulk = exports.nft_calculate_royalties = exports.get_transaction_memo = exports.verify_signature = exports.sign_message_by_id = exports.sign_message_by_address = exports.send_notification = exports.delete_notifications = exports.get_notifications = exports.extend_derivation_index = exports.get_current_derivation_index = exports.select_coins = exports.delete_unconfirmed_transactions = exports.create_signed_transaction = exports.create_offer_for_ids = exports.create_new_wallet = exports.check_offer_validity = exports.cat_spend = exports.cat_set_name = exports.cat_asset_id_to_name = exports.get_stray_cats = exports.cat_get_name = exports.cat_get_asset_id = exports.cancel_offers = exports.cancel_offer = exports.add_rate_limited_funds = exports.add_key = exports.chia_wallet_service = exports.remove_plot_directory = exports.refresh_plots = exports.get_plots = exports.get_plot_directories = exports.delete_plot = exports.add_plot_directory = exports.chia_harvester_service = void 0;
|
|
5
|
-
exports.
|
|
6
|
-
exports.
|
|
7
|
-
exports.healthz = void 0;
|
|
5
|
+
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 = exports.get_next_address = exports.get_network_info_of_wallet = exports.get_offer_summary = exports.get_offers_count = exports.get_offer = exports.get_logged_in_fingerprint = exports.get_initial_freeze_period_of_wallet = exports.get_height_info = exports.get_farmed_amount = exports.get_cat_list = exports.get_all_offers = exports.generate_mnemonic = exports.get_auto_claim = exports.set_auto_claim = exports.get_timestamp_for_height = exports.farm_block = exports.nft_add_uri = exports.nft_get_info = exports.nft_transfer_nft = exports.nft_set_nft_status = exports.nft_get_wallets_with_dids = exports.nft_get_wallet_did = exports.nft_get_by_did = exports.nft_set_nft_did = exports.nft_get_nfts = exports.nft_count_nfts = exports.nft_mint_nft = exports.did_update_metadata = exports.did_update_recovery_ids = exports.did_spend = exports.did_recovery_spend = exports.did_get_metadata = void 0;
|
|
6
|
+
exports.verify_offer = exports.take_offer_dl = exports.make_offer = exports.add_missing_files = exports.get_root_history = exports.get_kv_diff = exports.subscriptions = exports.remove_subscriptions = exports.get_mirrors = exports.delete_mirror = exports.add_mirror = exports.unsubscribe = exports.subscribe = exports.insert = exports.delete_key_dl = exports.get_roots = exports.get_local_root = exports.get_root = exports.get_ancestors = exports.get_keys_values = exports.get_keys = exports.get_value = exports.batch_update = exports.get_owned_stores = exports.create_data_store = exports.chia_data_layer_service = exports.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_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 = void 0;
|
|
7
|
+
exports.healthz = exports.get_routes = exports.stop_node = exports.close_connection = exports.open_connection = exports.get_connections = exports.chia_common_service = exports.get_peer_counts = exports.get_ips_after_timestamp = exports.chia_crawler_service = exports.check_plugins = exports.get_sync_status_dl = exports.cancel_offer_dl = 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; } });
|
|
@@ -127,6 +127,8 @@ Object.defineProperty(exports, "nft_get_info", { enumerable: true, get: function
|
|
|
127
127
|
Object.defineProperty(exports, "nft_add_uri", { enumerable: true, get: function () { return index_4.nft_add_uri; } });
|
|
128
128
|
Object.defineProperty(exports, "farm_block", { enumerable: true, get: function () { return index_4.farm_block; } });
|
|
129
129
|
Object.defineProperty(exports, "get_timestamp_for_height", { enumerable: true, get: function () { return index_4.get_timestamp_for_height; } });
|
|
130
|
+
Object.defineProperty(exports, "set_auto_claim", { enumerable: true, get: function () { return index_4.set_auto_claim; } });
|
|
131
|
+
Object.defineProperty(exports, "get_auto_claim", { enumerable: true, get: function () { return index_4.get_auto_claim; } });
|
|
130
132
|
Object.defineProperty(exports, "generate_mnemonic", { enumerable: true, get: function () { return index_4.generate_mnemonic; } });
|
|
131
133
|
Object.defineProperty(exports, "get_all_offers", { enumerable: true, get: function () { return index_4.get_all_offers; } });
|
|
132
134
|
Object.defineProperty(exports, "get_cat_list", { enumerable: true, get: function () { return index_4.get_cat_list; } });
|
|
@@ -146,6 +148,7 @@ Object.defineProperty(exports, "get_transaction_count", { enumerable: true, get:
|
|
|
146
148
|
Object.defineProperty(exports, "get_transaction", { enumerable: true, get: function () { return index_4.get_transaction; } });
|
|
147
149
|
Object.defineProperty(exports, "get_transactions", { enumerable: true, get: function () { return index_4.get_transactions; } });
|
|
148
150
|
Object.defineProperty(exports, "get_wallet_balance", { enumerable: true, get: function () { return index_4.get_wallet_balance; } });
|
|
151
|
+
Object.defineProperty(exports, "get_wallet_balances", { enumerable: true, get: function () { return index_4.get_wallet_balances; } });
|
|
149
152
|
Object.defineProperty(exports, "get_wallets", { enumerable: true, get: function () { return index_4.get_wallets; } });
|
|
150
153
|
Object.defineProperty(exports, "log_in", { enumerable: true, get: function () { return index_4.log_in; } });
|
|
151
154
|
Object.defineProperty(exports, "push_tx_wallet", { enumerable: true, get: function () { return index_4.push_tx; } });
|
|
@@ -158,6 +161,8 @@ Object.defineProperty(exports, "rl_set_user_info", { enumerable: true, get: func
|
|
|
158
161
|
Object.defineProperty(exports, "send_clawback_transaction", { enumerable: true, get: function () { return index_4.send_clawback_transaction; } });
|
|
159
162
|
Object.defineProperty(exports, "send_transaction", { enumerable: true, get: function () { return index_4.send_transaction; } });
|
|
160
163
|
Object.defineProperty(exports, "send_transaction_multi", { enumerable: true, get: function () { return index_4.send_transaction_multi; } });
|
|
164
|
+
Object.defineProperty(exports, "spend_clawback_coins", { enumerable: true, get: function () { return index_4.spend_clawback_coins; } });
|
|
165
|
+
Object.defineProperty(exports, "get_coin_records", { enumerable: true, get: function () { return index_4.get_coin_records; } });
|
|
161
166
|
Object.defineProperty(exports, "take_offer", { enumerable: true, get: function () { return index_4.take_offer; } });
|
|
162
167
|
Object.defineProperty(exports, "create_new_dl", { enumerable: true, get: function () { return index_4.create_new_dl; } });
|
|
163
168
|
Object.defineProperty(exports, "dl_track_new", { enumerable: true, get: function () { return index_4.dl_track_new; } });
|
|
@@ -171,6 +176,13 @@ Object.defineProperty(exports, "dl_owned_singletons", { enumerable: true, get: f
|
|
|
171
176
|
Object.defineProperty(exports, "dl_get_mirrors", { enumerable: true, get: function () { return index_4.dl_get_mirrors; } });
|
|
172
177
|
Object.defineProperty(exports, "dl_new_mirror", { enumerable: true, get: function () { return index_4.dl_new_mirror; } });
|
|
173
178
|
Object.defineProperty(exports, "dl_delete_mirror", { enumerable: true, get: function () { return index_4.dl_delete_mirror; } });
|
|
179
|
+
Object.defineProperty(exports, "vc_mint", { enumerable: true, get: function () { return index_4.vc_mint; } });
|
|
180
|
+
Object.defineProperty(exports, "vc_get", { enumerable: true, get: function () { return index_4.vc_get; } });
|
|
181
|
+
Object.defineProperty(exports, "vc_get_list", { enumerable: true, get: function () { return index_4.vc_get_list; } });
|
|
182
|
+
Object.defineProperty(exports, "vc_spend", { enumerable: true, get: function () { return index_4.vc_spend; } });
|
|
183
|
+
Object.defineProperty(exports, "vc_add_proofs", { enumerable: true, get: function () { return index_4.vc_add_proofs; } });
|
|
184
|
+
Object.defineProperty(exports, "vc_get_proofs_for_root", { enumerable: true, get: function () { return index_4.vc_get_proofs_for_root; } });
|
|
185
|
+
Object.defineProperty(exports, "vc_revoke", { enumerable: true, get: function () { return index_4.vc_revoke; } });
|
|
174
186
|
var index_5 = require("./data_layer/index");
|
|
175
187
|
Object.defineProperty(exports, "chia_data_layer_service", { enumerable: true, get: function () { return index_5.chia_data_layer_service; } });
|
|
176
188
|
Object.defineProperty(exports, "create_data_store", { enumerable: true, get: function () { return index_5.create_data_store; } });
|
|
@@ -2,7 +2,7 @@ import { WalletInfo } from "../../chia/wallet/wallet_info";
|
|
|
2
2
|
import { Coin } from "../../chia/types/blockchain_format/coin";
|
|
3
3
|
import { bool, bytes, False, int, None, Optional, str, True, uint16, uint32, uint64, uint8 } from "../../chia/types/_python_types_";
|
|
4
4
|
import { bytes32 } from "../../chia/types/blockchain_format/sized_bytes";
|
|
5
|
-
import { TransactionRecord, TransactionRecordConvenience } from "../../chia/wallet/transaction_record";
|
|
5
|
+
import { TransactionRecord, TransactionRecordConvenience, TransactionRecordConvenienceWithMetadata } from "../../chia/wallet/transaction_record";
|
|
6
6
|
import { SpendBundle } from "../../chia/types/spend_bundle";
|
|
7
7
|
import { TRPCAgent } from "../../../rpc";
|
|
8
8
|
import { PoolWalletInfo } from "../../chia/pools/pool_wallet_info";
|
|
@@ -17,6 +17,11 @@ import { TDaemon } from "../../../daemon/index";
|
|
|
17
17
|
import { CoinRecord } from "../../chia/types/coin_record";
|
|
18
18
|
import { SigningMode } from "../../chia/types/signing_mode";
|
|
19
19
|
import { Balance } from "../../chia/wallet/wallet_node";
|
|
20
|
+
import { AutoClaimSettings } from "../../chia/wallet/puzzles/clawback/metadata";
|
|
21
|
+
import { GetCoinRecords } from "../../chia/wallet/wallet_coin_store";
|
|
22
|
+
import { WalletCoinRecordWithMetadata } from "../../chia/wallet/wallet_coin_record";
|
|
23
|
+
import { VCRecord } from "../../chia/wallet/vc_wallet/vc_store";
|
|
24
|
+
import { TransactionTypeFilter } from "../../chia/wallet/util/quality_filter";
|
|
20
25
|
export declare const chia_wallet_service = "chia_wallet";
|
|
21
26
|
export declare type chia_wallet_service = typeof chia_wallet_service;
|
|
22
27
|
export declare const log_in_command = "log_in";
|
|
@@ -183,6 +188,17 @@ export declare type TGetTimestampForHeightResponse = {
|
|
|
183
188
|
};
|
|
184
189
|
export declare type WsGetTimestampForHeightMessage = GetMessageType<chia_wallet_service, get_timestamp_for_height_command, TGetTimestampForHeightResponse>;
|
|
185
190
|
export declare function get_timestamp_for_height<T extends TRPCAgent | TDaemon>(agent: T): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetTimestampForHeightResponse, WsGetTimestampForHeightMessage>>;
|
|
191
|
+
export declare const set_auto_claim_command = "set_auto_claim";
|
|
192
|
+
export declare type set_auto_claim_command = typeof set_auto_claim_command;
|
|
193
|
+
export declare type TSetAutoClaimRequest = AutoClaimSettings;
|
|
194
|
+
export declare type TSetAutoClaimResponse = AutoClaimSettings;
|
|
195
|
+
export declare type WsSetAutoClaimMessage = GetMessageType<chia_wallet_service, set_auto_claim_command, TSetAutoClaimResponse>;
|
|
196
|
+
export declare function set_auto_claim<T extends TRPCAgent | TDaemon>(agent: T, data: TSetAutoClaimRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, AutoClaimSettings, WsSetAutoClaimMessage>>;
|
|
197
|
+
export declare const get_auto_claim_command = "get_auto_claim";
|
|
198
|
+
export declare type get_auto_claim_command = typeof get_auto_claim_command;
|
|
199
|
+
export declare type TGetAutoClaimResponse = AutoClaimSettings;
|
|
200
|
+
export declare type WsGetAutoClaimMessage = GetMessageType<chia_wallet_service, get_auto_claim_command, TGetAutoClaimResponse>;
|
|
201
|
+
export declare function get_auto_claim<T extends TRPCAgent | TDaemon>(agent: T): Promise<import("../../../rpc").ErrorResponse | ResType<T, AutoClaimSettings, WsGetAutoClaimMessage>>;
|
|
186
202
|
export declare const get_initial_freeze_period_command_of_wallet = "get_initial_freeze_period";
|
|
187
203
|
export declare type get_initial_freeze_period_command_of_wallet = typeof get_initial_freeze_period_command_of_wallet;
|
|
188
204
|
export declare type TGetInitialFreezePeriodRequestOfWallet = {};
|
|
@@ -330,21 +346,32 @@ export declare type TCreateNewWalletRequest = TCreate_New_CAT_WalletRequest | TC
|
|
|
330
346
|
export declare type TCreateNewWalletResponse = TCreate_New_CAT_WalletResponse | TCreate_New_RL_WalletResponse | TCreate_New_DID_WalletResponse | TCreate_New_NFT_WalletResponse | TCreate_New_Pool_WalletResponse | TCreateWalletErrorResponse;
|
|
331
347
|
export declare type WsCreateNewWalletMessage = GetMessageType<chia_wallet_service, create_new_wallet_command, TCreateNewWalletResponse>;
|
|
332
348
|
export declare function create_new_wallet<T extends TRPCAgent | TDaemon>(agent: T, data: TCreateNewWalletRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TCreateNewWalletResponse, WsCreateNewWalletMessage>>;
|
|
349
|
+
export declare type WalletBalance = Balance & {
|
|
350
|
+
wallet_id: uint32;
|
|
351
|
+
wallet_type: int;
|
|
352
|
+
fingerprint?: int;
|
|
353
|
+
asset_id?: str;
|
|
354
|
+
};
|
|
333
355
|
export declare const get_wallet_balance_command = "get_wallet_balance";
|
|
334
356
|
export declare type get_wallet_balance_command = typeof get_wallet_balance_command;
|
|
335
357
|
export declare type TGetWalletBalanceRequest = {
|
|
336
358
|
wallet_id: int;
|
|
337
359
|
};
|
|
338
360
|
export declare type TGetWalletBalanceResponse = {
|
|
339
|
-
wallet_balance:
|
|
340
|
-
wallet_id: uint32;
|
|
341
|
-
wallet_type: int;
|
|
342
|
-
fingerprint?: int;
|
|
343
|
-
asset_id?: str;
|
|
344
|
-
};
|
|
361
|
+
wallet_balance: WalletBalance;
|
|
345
362
|
};
|
|
346
363
|
export declare type WsGetWalletBalanceMessage = GetMessageType<chia_wallet_service, get_wallet_balance_command, TGetWalletBalanceResponse>;
|
|
347
364
|
export declare function get_wallet_balance<T extends TRPCAgent | TDaemon>(agent: T, data: TGetWalletBalanceRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetWalletBalanceResponse, WsGetWalletBalanceMessage>>;
|
|
365
|
+
export declare const get_wallet_balances_command = "get_wallet_balances";
|
|
366
|
+
export declare type get_wallet_balances_command = typeof get_wallet_balances_command;
|
|
367
|
+
export declare type TGetWalletBalancesRequest = {
|
|
368
|
+
wallet_ids: int[];
|
|
369
|
+
};
|
|
370
|
+
export declare type TGetWalletBalancesResponse = {
|
|
371
|
+
wallet_balances: Record<uint32, WalletBalance>;
|
|
372
|
+
};
|
|
373
|
+
export declare type WsGetWalletBalancesMessage = GetMessageType<chia_wallet_service, get_wallet_balances_command, TGetWalletBalancesResponse>;
|
|
374
|
+
export declare function get_wallet_balances<T extends TRPCAgent | TDaemon>(agent: T, data: TGetWalletBalancesRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetWalletBalancesResponse, WsGetWalletBalancesMessage>>;
|
|
348
375
|
export declare const get_transaction_command = "get_transaction";
|
|
349
376
|
export declare type get_transaction_command = typeof get_transaction_command;
|
|
350
377
|
export declare type TGetTransactionRequest = {
|
|
@@ -365,9 +392,11 @@ export declare type TGetTransactionsRequest = {
|
|
|
365
392
|
sort_key?: str;
|
|
366
393
|
reverse?: bool;
|
|
367
394
|
to_address?: str;
|
|
395
|
+
type_filter?: TransactionTypeFilter;
|
|
396
|
+
confirmed?: bool;
|
|
368
397
|
};
|
|
369
398
|
export declare type TGetTransactionsResponse = {
|
|
370
|
-
transactions:
|
|
399
|
+
transactions: TransactionRecordConvenienceWithMetadata[];
|
|
371
400
|
wallet_id: int;
|
|
372
401
|
};
|
|
373
402
|
export declare type WsGetTransactionsMessage = GetMessageType<chia_wallet_service, get_transactions_command, TGetTransactionsResponse>;
|
|
@@ -396,6 +425,10 @@ export declare type TSendTransactionRequest = {
|
|
|
396
425
|
max_coin_amount?: uint64;
|
|
397
426
|
exclude_coin_amounts?: uint64[];
|
|
398
427
|
exclude_coin_ids?: str[];
|
|
428
|
+
puzzle_decorator?: Array<{
|
|
429
|
+
decorator: str;
|
|
430
|
+
clawback_timelock?: uint64;
|
|
431
|
+
}>;
|
|
399
432
|
reuse_puzhash?: bool;
|
|
400
433
|
};
|
|
401
434
|
export declare type TSendTransactionResponse = {
|
|
@@ -435,10 +468,34 @@ export declare type TSendTransactionMultiResponse = {
|
|
|
435
468
|
};
|
|
436
469
|
export declare type WsSendTransactionMultiMessage = GetMessageType<chia_wallet_service, send_transaction_multi_command, TSendTransactionMultiResponse>;
|
|
437
470
|
export declare function send_transaction_multi<T extends TRPCAgent | TDaemon>(agent: T, data: TSendTransactionMultiRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TSendTransactionMultiResponse, WsSendTransactionMultiMessage>>;
|
|
471
|
+
export declare const spend_clawback_coins_command = "spend_clawback_coins";
|
|
472
|
+
export declare type spend_clawback_coins_command = typeof spend_clawback_coins_command;
|
|
473
|
+
export declare type TSpendClawbackCoinsRequest = {
|
|
474
|
+
coin_ids: str[];
|
|
475
|
+
fee?: uint64;
|
|
476
|
+
batch_size: int;
|
|
477
|
+
};
|
|
478
|
+
export declare type TSpendClawbackCoinsResponse = {
|
|
479
|
+
success: True;
|
|
480
|
+
transaction_ids: str[];
|
|
481
|
+
};
|
|
482
|
+
export declare type WsSpendClawbackCoinsMessage = GetMessageType<chia_wallet_service, spend_clawback_coins_command, TSpendClawbackCoinsResponse>;
|
|
483
|
+
export declare function spend_clawback_coins<T extends TRPCAgent | TDaemon>(agent: T, data: TSpendClawbackCoinsRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TSpendClawbackCoinsResponse, WsSpendClawbackCoinsMessage>>;
|
|
484
|
+
export declare const get_coin_records_command = "get_coin_records";
|
|
485
|
+
export declare type get_coin_records_command = typeof get_coin_records_command;
|
|
486
|
+
export declare type TGetCoinRecordsRequest = GetCoinRecords;
|
|
487
|
+
export declare type TGetCoinRecordsResponse = {
|
|
488
|
+
coin_records: WalletCoinRecordWithMetadata[];
|
|
489
|
+
total_count: uint32 | None;
|
|
490
|
+
};
|
|
491
|
+
export declare type WsGetCoinRecordsMessage = GetMessageType<chia_wallet_service, get_coin_records_command, TGetCoinRecordsResponse>;
|
|
492
|
+
export declare function get_coin_records<T extends TRPCAgent | TDaemon>(agent: T, data: TGetCoinRecordsRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetCoinRecordsResponse, WsGetCoinRecordsMessage>>;
|
|
438
493
|
export declare const get_transaction_count_command = "get_transaction_count";
|
|
439
494
|
export declare type get_transaction_count_command = typeof get_transaction_count_command;
|
|
440
495
|
export declare type TGetTransactionCountRequest = {
|
|
441
496
|
wallet_id: int;
|
|
497
|
+
type_filter?: TransactionTypeFilter;
|
|
498
|
+
confirmed?: bool;
|
|
442
499
|
};
|
|
443
500
|
export declare type TGetTransactionCountResponse = {
|
|
444
501
|
count: int;
|
|
@@ -1096,6 +1153,7 @@ export declare type TDidGetInfoResponse = {
|
|
|
1096
1153
|
error: str;
|
|
1097
1154
|
} | {
|
|
1098
1155
|
success: True;
|
|
1156
|
+
did_id: str;
|
|
1099
1157
|
latest_coin: str;
|
|
1100
1158
|
p2_address: str;
|
|
1101
1159
|
public_key: str;
|
|
@@ -1648,5 +1706,95 @@ export declare type TDlDeleteMirrorResponse = {
|
|
|
1648
1706
|
};
|
|
1649
1707
|
export declare type WsDlDeleteMirrorMessage = GetMessageType<chia_wallet_service, dl_delete_mirror_command, TDlDeleteMirrorResponse>;
|
|
1650
1708
|
export declare function dl_delete_mirror<T extends TRPCAgent | TDaemon>(agent: T, data: TDlDeleteMirrorRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TDlDeleteMirrorResponse, WsDlDeleteMirrorMessage>>;
|
|
1651
|
-
export declare type
|
|
1652
|
-
|
|
1709
|
+
export declare type VCMint = {
|
|
1710
|
+
did_id: str;
|
|
1711
|
+
target_address: Optional<str>;
|
|
1712
|
+
fee: uint64;
|
|
1713
|
+
};
|
|
1714
|
+
export declare const vc_mint_command = "vc_mint";
|
|
1715
|
+
export declare type vc_mint_command = typeof vc_mint_command;
|
|
1716
|
+
export declare type TVcMintRequest = VCMint;
|
|
1717
|
+
export declare type TVcMintResponse = {
|
|
1718
|
+
vc_record: VCRecord;
|
|
1719
|
+
transactions: TransactionRecordConvenience[];
|
|
1720
|
+
};
|
|
1721
|
+
export declare type WsVcMintMessage = GetMessageType<chia_wallet_service, vc_mint_command, TVcMintResponse>;
|
|
1722
|
+
export declare function vc_mint<T extends TRPCAgent | TDaemon>(agent: T, data: TVcMintRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TVcMintResponse, WsVcMintMessage>>;
|
|
1723
|
+
export declare type VCGet = {
|
|
1724
|
+
vc_id: bytes32;
|
|
1725
|
+
};
|
|
1726
|
+
export declare const vc_get_command = "vc_get";
|
|
1727
|
+
export declare type vc_get_command = typeof vc_get_command;
|
|
1728
|
+
export declare type TVcGetRequest = VCGet;
|
|
1729
|
+
export declare type TVcGetResponse = {
|
|
1730
|
+
vc_record: VCRecord | None;
|
|
1731
|
+
};
|
|
1732
|
+
export declare type WsVcGetMessage = GetMessageType<chia_wallet_service, vc_get_command, TVcGetResponse>;
|
|
1733
|
+
export declare function vc_get<T extends TRPCAgent | TDaemon>(agent: T, data: TVcGetRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TVcGetResponse, WsVcGetMessage>>;
|
|
1734
|
+
export declare type VcGetList = {
|
|
1735
|
+
start: uint32;
|
|
1736
|
+
end: uint32;
|
|
1737
|
+
};
|
|
1738
|
+
export declare const vc_get_list_command = "vc_get_list";
|
|
1739
|
+
export declare type vc_get_list_command = typeof vc_get_list_command;
|
|
1740
|
+
export declare type TVcGetListRequest = VcGetList;
|
|
1741
|
+
export declare type TVcGetListResponse = {
|
|
1742
|
+
vc_records: Array<VCRecord & {
|
|
1743
|
+
coin_id: str;
|
|
1744
|
+
}>;
|
|
1745
|
+
proofs: Record<str, Record<str, str> | None>;
|
|
1746
|
+
};
|
|
1747
|
+
export declare type WsVcGetListMessage = GetMessageType<chia_wallet_service, vc_get_list_command, TVcGetListResponse>;
|
|
1748
|
+
export declare function vc_get_list<T extends TRPCAgent | TDaemon>(agent: T, data: TVcGetListRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TVcGetListResponse, WsVcGetListMessage>>;
|
|
1749
|
+
export declare type VcSpend = {
|
|
1750
|
+
vc_id: bytes32;
|
|
1751
|
+
new_puzhash: Optional<bytes32>;
|
|
1752
|
+
new_proof_hash: Optional<bytes32>;
|
|
1753
|
+
provider_inner_puzhash: Optional<bytes32>;
|
|
1754
|
+
fee: uint64;
|
|
1755
|
+
reuse_puzhash: Optional<bool>;
|
|
1756
|
+
};
|
|
1757
|
+
export declare const vc_spend_command = "vc_spend";
|
|
1758
|
+
export declare type vc_spend_command = typeof vc_spend_command;
|
|
1759
|
+
export declare type TVcSpendRequest = VcSpend;
|
|
1760
|
+
export declare type TVcSpendResponse = {
|
|
1761
|
+
transactions: TransactionRecordConvenience[];
|
|
1762
|
+
};
|
|
1763
|
+
export declare type WsVcSpendMessage = GetMessageType<chia_wallet_service, vc_spend_command, TVcSpendResponse>;
|
|
1764
|
+
export declare function vc_spend<T extends TRPCAgent | TDaemon>(agent: T, data: TVcSpendRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TVcSpendResponse, WsVcSpendMessage>>;
|
|
1765
|
+
export declare const vc_add_proofs_command = "vc_add_proofs";
|
|
1766
|
+
export declare type vc_add_proofs_command = typeof vc_add_proofs_command;
|
|
1767
|
+
export declare type TVcAddProofsRequest = {
|
|
1768
|
+
proofs: {
|
|
1769
|
+
key_value_pairs: Record<str, str>;
|
|
1770
|
+
};
|
|
1771
|
+
};
|
|
1772
|
+
export declare type TVcAddProofsResponse = {};
|
|
1773
|
+
export declare type WsVcAddProofsMessage = GetMessageType<chia_wallet_service, vc_add_proofs_command, TVcAddProofsResponse>;
|
|
1774
|
+
export declare function vc_add_proofs<T extends TRPCAgent | TDaemon>(agent: T, data: TVcAddProofsRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TVcAddProofsResponse, WsVcAddProofsMessage>>;
|
|
1775
|
+
export declare type VCGetProofsForRoot = {
|
|
1776
|
+
root: bytes32;
|
|
1777
|
+
};
|
|
1778
|
+
export declare const vc_get_proofs_for_root_command = "vc_get_proofs_for_root";
|
|
1779
|
+
export declare type vc_get_proofs_for_root_command = typeof vc_get_proofs_for_root_command;
|
|
1780
|
+
export declare type TVcGetProofsForRootRequest = VCGetProofsForRoot;
|
|
1781
|
+
export declare type TVcGetProofsForRootResponse = {
|
|
1782
|
+
proofs: Record<str, str>;
|
|
1783
|
+
};
|
|
1784
|
+
export declare type WsVcGetProofsForRootMessage = GetMessageType<chia_wallet_service, vc_get_proofs_for_root_command, TVcGetProofsForRootResponse>;
|
|
1785
|
+
export declare function vc_get_proofs_for_root<T extends TRPCAgent | TDaemon>(agent: T, data: TVcGetProofsForRootRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TVcGetProofsForRootResponse, WsVcGetProofsForRootMessage>>;
|
|
1786
|
+
export declare type VcRevoke = {
|
|
1787
|
+
vc_parent_id: bytes32;
|
|
1788
|
+
fee: uint64;
|
|
1789
|
+
reuse_puzhash: Optional<bool>;
|
|
1790
|
+
};
|
|
1791
|
+
export declare const vc_revoke_command = "vc_revoke";
|
|
1792
|
+
export declare type vc_revoke_command = typeof vc_revoke_command;
|
|
1793
|
+
export declare type TVcRevokeRequest = VcRevoke;
|
|
1794
|
+
export declare type TVcRevokeResponse = {
|
|
1795
|
+
transactions: TransactionRecordConvenience[];
|
|
1796
|
+
};
|
|
1797
|
+
export declare type WsVcRevokeMessage = GetMessageType<chia_wallet_service, vc_revoke_command, TVcRevokeResponse>;
|
|
1798
|
+
export declare function vc_revoke<T extends TRPCAgent | TDaemon>(agent: T, data: TVcRevokeRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TVcRevokeResponse, WsVcRevokeMessage>>;
|
|
1799
|
+
export declare type RpcWalletMessage = TAddKeyResponse | TAddRateLimitedFundsResponse | TCancelOfferResponse | TCancelOffersResponse | TCatGetAssetIdResponse | TCatGetNameResponse | TGetStrayCatsResponse | TCatAssetIdToNameResponse | TCatSetNameResponse | TCatSpendResponse | TCheckOfferValidityResponse | TCreateNewWalletResponse | TCreateOfferForIdsResponse | TCreateSignedTransactionResponse | TDeleteUnconfirmedTransactionsResponse | TSelectCoinsResponse | TGetSpendableCoinsResponse | TGetCoinRecordsByNamesResponse | TGetCurrentDerivationIndexResponse | TExtendDerivationIndexResponse | TGetNotificationsResponse | TDeleteNotificationsResponse | TSendNotificationResponse | TSignMessageByAddressResponse | TSignMessageByIdResponse | TVerifySignatureResponse | TGetTransactionMemoResponse | TNftCalculateRoyaltiesResponse | TNftMintBulkResponse | TNftSetDidBulkResponse | TNftTransferBulkResponse | TDeleteAllKeysResponse | TSetWalletResyncOnStartupResponse | TDeleteKeyResponse | TCheckDeleteKeyResponse | TDidSetWalletNameResponse | TDidGetWalletNameResponse | TDidCreateAttestResponse | TDidCreateBackupFileResponse | TDidTransferDidResponse | TDidMessageSpendResponse | TDidGetInfoResponse | TDidFindLostDidResponse | TDidGetDidResponse | TDidGetInformationNeededForRecoveryResponse | TDidGetCurrentCoinInfoResponse | TDidGetPubkeyResponse | TDidGetRecoveryListResponse | TDidGetMetadataResponse | TDidRecoverySpendResponse | TDidSpendResponse | TDidUpdateRecoveryIdsResponse | TDidUpdateMetadataResponse | TNftMintNftResponse | TNftCountNftsResponse | TNftGetNftsResponse | TNftSetNftDidResponse | TNftGetByDidResponse | TNftGetWalletDidResponse | TNftGetWalletsWithDidsResponse | TNftSetNftStatusResponse | TNftTransferNftResponse | TNftGetInfoResponse | TNftAddUriResponse | TFarmBlockResponse | TGetTimestampForHeightResponse | TSetAutoClaimResponse | TGetAutoClaimResponse | TGenerateMnemonicResponse | TGetAllOffersResponse | TGetCatListResponse | TGetFarmedAmountResponse | TGetHeightInfoResponse | TGetInitialFreezePeriodResponseOfWallet | TGetLoggedInFingerprintResponse | TGetOfferResponse | TGetOffersCountResponse | TGetOfferSummaryResponse | TGetNetworkInfoResponseOfWallet | 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 | TVcMintResponse | TVcGetResponse | TVcGetListResponse | TVcSpendResponse | TVcAddProofsResponse | TVcGetProofsForRootResponse | TVcRevokeResponse;
|
|
1800
|
+
export declare type RpcWalletMessageOnWs = WsAddKeyMessage | WsAddRateLimitedFundsMessage | WsCancelOfferMessage | WsCancelOffersMessage | WsCatGetAssetIdMessage | WsCatGetNameMessage | WsGetStrayCatsMessage | WsCatAssetIdToNameMessage | WsCatSetNameMessage | WsCatSpendMessage | WsCheckOfferValidityMessage | WsCreateNewWalletMessage | WsCreateOfferForIdsMessage | WsCreateSignedTransactionMessage | WsDeleteUnconfirmedTransactionsMessage | WsSelectCoinsMessage | WsGetSpendableCoinsMessage | WsGetCoinRecordsByNamesMessage | WsGetCurrentDerivationIndexMessage | WsExtendDerivationIndexMessage | WsGetNotificationsMessage | WsDeleteNotificationsMessage | WsSendNotificationMessage | WsSignMessageByAddressMessage | WsSignMessageByIdMessage | WsVerifySignatureMessage | WsGetTransactionMemoMessage | WsNftCalculateRoyaltiesMessage | WsNftMintBulkMessage | WsNftSetDidBulkMessage | WsNftTransferBulkMessage | WsDeleteAllKeysMessage | WsSetWalletResyncOnStartupMessage | WsDeleteKeyMessage | WsCheckDeleteKeyMessage | WsDidSetWalletNameMessage | WsDidGetWalletNameMessage | WsDidCreateAttestMessage | WsDidCreateBackupFileMessage | WsDidTransferDidMessage | WsDidMessageSpendMessage | WsDidGetInfoMessage | WsDidFindLostDidMessage | WsDidGetDidMessage | WsDidGetInformationNeededForRecoveryMessage | WsDidGetCurrentCoinInfoMessage | WsDidGetPubkeyMessage | WsDidGetRecoveryListMessage | WsDidGetMetadataMessage | WsDidRecoverySpendMessage | WsDidSpendMessage | WsDidUpdateRecoveryIdsMessage | WsDidUpdateMetadataMessage | WsNftMintNftMessage | WsNftCountNftsMessage | WsNftGetNftsMessage | WsNftSetNftDidMessage | WsNftGetByDidMessage | WsNftGetWalletDidMessage | WsNftGetWalletsWithDidsMessage | WsNftSetNftStatusMessage | WsNftTransferNftMessage | WsNftGetInfoMessage | WsNftAddUriMessage | WsFarmBlockMessage | WsGetTimestampForHeightMessage | WsSetAutoClaimMessage | WsGetAutoClaimMessage | WsGenerateMnemonicMessage | WsGetAllOffersMessage | WsGetCatListMessage | WsGetFarmedAmountMessage | WsGetHeightInfoMessage | WsGetInitialFreezePeriodMessageOfWallet | WsGetLoggedInFingerprintMessage | WsGetOfferMessage | WsGetOffersCountMessage | WsGetOfferSummaryMessage | WsGetNetworkInfoMessageOfWallet | WsGetNextAddressMessage | WsGetPrivateKeyMessage | WsGetPublicKeysMessage | WsGetSyncStatusMessage | WsGetTransactionMessage | WsGetTransactionCountMessage | WsGetTransactionsMessage | WsGetWalletBalanceMessage | WsGetWalletBalancesMessage | WsGetWalletsMessage | WsLoginMessage | WsPushTxMessageOfWallet | WsPushTransactionsMessage | WsPwJoinPoolMessage | WsPwSelfPoolMessage | WsPwAbsorbRewardsMessage | WsPwStatusMessage | WsRlSetUserInfoMessage | WsSendClawbackTransactionMessage | WsSendTransactionMessage | WsSendTransactionMultiMessage | WsSpendClawbackCoinsMessage | WsGetCoinRecordsMessage | WsTakeOfferMessage | WsCreateNewDlMessage | WsDlTrackNewMessage | WsDlStopTrackingMessage | WsDlLatestSingletonMessage | WsDlSingletonsByRootMessage | WsDlUpdateRootMessage | WsDlUpdateMultipleMessage | WsDlHistoryMessage | WsDlOwnedSingletonsMessage | WsDlGetMirrorsMessage | WsDlNewMirrorMessage | WsDlDeleteMirrorMessage | WsVcMintMessage | WsVcGetMessage | WsVcGetListMessage | WsVcSpendMessage | WsVcAddProofsMessage | WsVcGetProofsForRootMessage | WsVcRevokeMessage;
|
package/api/rpc/wallet/index.js
CHANGED
|
@@ -9,11 +9,11 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
13
|
-
exports.
|
|
14
|
-
exports.
|
|
15
|
-
exports.
|
|
16
|
-
exports.dl_delete_mirror = exports.dl_delete_mirror_command = exports.dl_new_mirror = exports.dl_new_mirror_command = exports.dl_get_mirrors = exports.dl_get_mirrors_command = exports.dl_owned_singletons = exports.dl_owned_singletons_command = exports.dl_history = exports.dl_history_command = exports.dl_update_multiple = exports.dl_update_multiple_command = exports.dl_update_root = exports.dl_update_root_command = exports.dl_singletons_by_root = exports.dl_singletons_by_root_command = exports.dl_latest_singleton = exports.dl_latest_singleton_command = exports.dl_stop_tracking = exports.dl_stop_tracking_command = exports.dl_track_new = void 0;
|
|
12
|
+
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_network_info_of_wallet = exports.get_network_info_command_of_wallet = exports.get_initial_freeze_period_of_wallet = exports.get_initial_freeze_period_command_of_wallet = exports.get_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.farm_block = exports.farm_block_command = exports.push_transactions = exports.push_transactions_command = exports.push_tx = exports.push_tx_command = exports.get_height_info = exports.get_height_info_command = exports.get_sync_status = exports.get_sync_status_command = exports.set_wallet_resync_on_startup = exports.set_wallet_resync_on_startup_command = exports.delete_all_keys = exports.delete_all_keys_command = exports.check_delete_key = exports.check_delete_key_command = exports.delete_key = exports.delete_key_command = exports.add_key = exports.add_key_command = exports.generate_mnemonic = exports.generate_mnemonic_command = exports.get_private_key = exports.get_private_key_command = exports.get_public_keys = exports.get_public_keys_command = exports.get_logged_in_fingerprint = exports.get_logged_in_fingerprint_command = exports.log_in = exports.log_in_command = exports.chia_wallet_service = void 0;
|
|
13
|
+
exports.cat_asset_id_to_name_command = exports.cat_set_name = exports.cat_set_name_command = exports.get_cat_list = exports.get_cat_list_command = exports.sign_message_by_id = exports.sign_message_by_id_command = exports.sign_message_by_address = exports.sign_message_by_address_command = exports.get_transaction_memo = exports.get_transaction_memo_command = exports.verify_signature = exports.verify_signature_command = exports.send_notification = exports.send_notification_command = exports.delete_notifications = exports.delete_notifications_command = exports.get_notifications = exports.get_notifications_command = exports.extend_derivation_index = exports.extend_derivation_index_command = exports.get_current_derivation_index = exports.get_current_derivation_index_command = exports.get_coin_records_by_names = exports.get_coin_records_by_names_command = exports.get_spendable_coins = exports.get_spendable_coins_command = exports.select_coins = exports.select_coins_command = exports.delete_unconfirmed_transactions = exports.delete_unconfirmed_transactions_command = exports.create_signed_transaction = exports.create_signed_transaction_command = exports.get_farmed_amount = exports.get_farmed_amount_command = exports.get_transaction_count = exports.get_transaction_count_command = exports.get_coin_records = exports.get_coin_records_command = exports.spend_clawback_coins = exports.spend_clawback_coins_command = exports.send_transaction_multi = exports.send_transaction_multi_command = exports.send_transaction = exports.send_transaction_command = exports.get_next_address = exports.get_next_address_command = exports.get_transactions = exports.get_transactions_command = exports.get_transaction = 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.pw_join_pool_command = exports.add_rate_limited_funds = exports.add_rate_limited_funds_command = exports.send_clawback_transaction = exports.send_clawback_transaction_command = exports.rl_set_user_info = exports.rl_set_user_info_command = exports.nft_mint_bulk = exports.nft_mint_bulk_command = exports.nft_calculate_royalties = exports.nft_calculate_royalties_command = exports.nft_add_uri = exports.nft_add_uri_command = exports.nft_get_info = exports.nft_get_info_command = exports.nft_transfer_nft = exports.nft_transfer_nft_command = exports.nft_set_nft_status = exports.nft_set_nft_status_command = exports.nft_get_wallets_with_dids = exports.nft_get_wallets_with_dids_command = exports.nft_get_wallet_did = exports.nft_get_wallet_did_command = exports.nft_get_by_did = exports.nft_get_by_did_command = exports.nft_transfer_bulk = exports.nft_transfer_bulk_command = exports.nft_set_did_bulk = exports.nft_set_did_bulk_command = exports.nft_set_nft_did = exports.nft_set_nft_did_command = exports.nft_get_nfts = exports.nft_get_nfts_command = exports.nft_count_nfts = exports.nft_count_nfts_command = exports.nft_mint_nft = exports.nft_mint_nft_command = exports.did_transfer_did = exports.did_transfer_did_command = exports.did_find_lost_did = 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.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_delete_mirror = exports.dl_delete_mirror_command = exports.dl_new_mirror = exports.dl_new_mirror_command = exports.dl_get_mirrors = exports.dl_get_mirrors_command = exports.dl_owned_singletons = exports.dl_owned_singletons_command = exports.dl_history = exports.dl_history_command = exports.dl_update_multiple = exports.dl_update_multiple_command = exports.dl_update_root = exports.dl_update_root_command = exports.dl_singletons_by_root = exports.dl_singletons_by_root_command = exports.dl_latest_singleton = exports.dl_latest_singleton_command = exports.dl_stop_tracking = exports.dl_stop_tracking_command = exports.dl_track_new = 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 = void 0;
|
|
17
17
|
exports.chia_wallet_service = "chia_wallet";
|
|
18
18
|
// # Key management
|
|
19
19
|
exports.log_in_command = "log_in";
|
|
@@ -129,6 +129,20 @@ function get_timestamp_for_height(agent) {
|
|
|
129
129
|
});
|
|
130
130
|
}
|
|
131
131
|
exports.get_timestamp_for_height = get_timestamp_for_height;
|
|
132
|
+
exports.set_auto_claim_command = "set_auto_claim";
|
|
133
|
+
function set_auto_claim(agent, data) {
|
|
134
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
135
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.set_auto_claim_command, data);
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
exports.set_auto_claim = set_auto_claim;
|
|
139
|
+
exports.get_auto_claim_command = "get_auto_claim";
|
|
140
|
+
function get_auto_claim(agent) {
|
|
141
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
142
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.get_auto_claim_command);
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
exports.get_auto_claim = get_auto_claim;
|
|
132
146
|
exports.get_initial_freeze_period_command_of_wallet = "get_initial_freeze_period";
|
|
133
147
|
function get_initial_freeze_period_of_wallet(agent) {
|
|
134
148
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -158,7 +172,6 @@ function create_new_wallet(agent, data) {
|
|
|
158
172
|
});
|
|
159
173
|
}
|
|
160
174
|
exports.create_new_wallet = create_new_wallet;
|
|
161
|
-
// # Wallet
|
|
162
175
|
exports.get_wallet_balance_command = "get_wallet_balance";
|
|
163
176
|
function get_wallet_balance(agent, data) {
|
|
164
177
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -166,6 +179,13 @@ function get_wallet_balance(agent, data) {
|
|
|
166
179
|
});
|
|
167
180
|
}
|
|
168
181
|
exports.get_wallet_balance = get_wallet_balance;
|
|
182
|
+
exports.get_wallet_balances_command = "get_wallet_balances";
|
|
183
|
+
function get_wallet_balances(agent, data) {
|
|
184
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
185
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.get_wallet_balances_command, data);
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
exports.get_wallet_balances = get_wallet_balances;
|
|
169
189
|
exports.get_transaction_command = "get_transaction";
|
|
170
190
|
function get_transaction(agent, data) {
|
|
171
191
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -201,6 +221,20 @@ function send_transaction_multi(agent, data) {
|
|
|
201
221
|
});
|
|
202
222
|
}
|
|
203
223
|
exports.send_transaction_multi = send_transaction_multi;
|
|
224
|
+
exports.spend_clawback_coins_command = "spend_clawback_coins";
|
|
225
|
+
function spend_clawback_coins(agent, data) {
|
|
226
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
227
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.spend_clawback_coins_command, data);
|
|
228
|
+
});
|
|
229
|
+
}
|
|
230
|
+
exports.spend_clawback_coins = spend_clawback_coins;
|
|
231
|
+
exports.get_coin_records_command = "get_coin_records";
|
|
232
|
+
function get_coin_records(agent, data) {
|
|
233
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
234
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.get_coin_records_command, data);
|
|
235
|
+
});
|
|
236
|
+
}
|
|
237
|
+
exports.get_coin_records = get_coin_records;
|
|
204
238
|
exports.get_transaction_count_command = "get_transaction_count";
|
|
205
239
|
function get_transaction_count(agent, data) {
|
|
206
240
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -794,3 +828,52 @@ function dl_delete_mirror(agent, data) {
|
|
|
794
828
|
});
|
|
795
829
|
}
|
|
796
830
|
exports.dl_delete_mirror = dl_delete_mirror;
|
|
831
|
+
exports.vc_mint_command = "vc_mint";
|
|
832
|
+
function vc_mint(agent, data) {
|
|
833
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
834
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.vc_mint_command, data);
|
|
835
|
+
});
|
|
836
|
+
}
|
|
837
|
+
exports.vc_mint = vc_mint;
|
|
838
|
+
exports.vc_get_command = "vc_get";
|
|
839
|
+
function vc_get(agent, data) {
|
|
840
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
841
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.vc_get_command, data);
|
|
842
|
+
});
|
|
843
|
+
}
|
|
844
|
+
exports.vc_get = vc_get;
|
|
845
|
+
exports.vc_get_list_command = "vc_get_list";
|
|
846
|
+
function vc_get_list(agent, data) {
|
|
847
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
848
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.vc_get_list_command, data);
|
|
849
|
+
});
|
|
850
|
+
}
|
|
851
|
+
exports.vc_get_list = vc_get_list;
|
|
852
|
+
exports.vc_spend_command = "vc_spend";
|
|
853
|
+
function vc_spend(agent, data) {
|
|
854
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
855
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.vc_spend_command, data);
|
|
856
|
+
});
|
|
857
|
+
}
|
|
858
|
+
exports.vc_spend = vc_spend;
|
|
859
|
+
exports.vc_add_proofs_command = "vc_add_proofs";
|
|
860
|
+
function vc_add_proofs(agent, data) {
|
|
861
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
862
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.vc_add_proofs_command, data);
|
|
863
|
+
});
|
|
864
|
+
}
|
|
865
|
+
exports.vc_add_proofs = vc_add_proofs;
|
|
866
|
+
exports.vc_get_proofs_for_root_command = "vc_get_proofs_for_root";
|
|
867
|
+
function vc_get_proofs_for_root(agent, data) {
|
|
868
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
869
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.vc_get_proofs_for_root_command, data);
|
|
870
|
+
});
|
|
871
|
+
}
|
|
872
|
+
exports.vc_get_proofs_for_root = vc_get_proofs_for_root;
|
|
873
|
+
exports.vc_revoke_command = "vc_revoke";
|
|
874
|
+
function vc_revoke(agent, data) {
|
|
875
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
876
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.vc_revoke_command, data);
|
|
877
|
+
});
|
|
878
|
+
}
|
|
879
|
+
exports.vc_revoke = vc_revoke;
|