chia-agent 4.0.0 → 7.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +157 -0
- package/README.md +9 -9
- package/api/chia/consensus/cost_calculator.d.ts +2 -2
- package/api/chia/farmer/farmer.d.ts +1 -0
- package/api/chia/harvester/harvester.d.ts +2 -3
- package/api/chia/plot-sync/receiver.d.ts +22 -0
- package/api/chia/{types/condition_with_args.js → plot-sync/receiver.js} +0 -0
- package/api/chia/protocols/harvester_protocol.d.ts +0 -5
- package/api/chia/types/spend_bundle_condition.d.ts +18 -0
- package/api/chia/types/{name_puzzle_condition.js → spend_bundle_condition.js} +0 -0
- package/api/chia/wallet/nft_wallet/nft_info.d.ts +23 -0
- package/api/chia/wallet/nft_wallet/nft_info.js +2 -0
- package/api/chia/wallet/puzzle_drivers.d.ts +6 -0
- package/api/chia/wallet/puzzle_drivers.js +2 -0
- package/api/chia/wallet/trade_record.d.ts +3 -0
- package/api/chia/wallet/util/wallet_types.d.ts +2 -1
- package/api/chia/wallet/util/wallet_types.js +2 -1
- package/api/rpc/farmer/index.d.ts +83 -10
- package/api/rpc/farmer/index.js +36 -1
- package/api/rpc/full_node/index.d.ts +21 -8
- package/api/rpc/full_node/index.js +14 -1
- package/api/rpc/index.d.ts +9 -9
- package/api/rpc/index.js +31 -3
- package/api/rpc/wallet/index.d.ts +308 -30
- package/api/rpc/wallet/index.js +137 -9
- package/api/ws/farmer/index.d.ts +32 -9
- package/api/ws/farmer/index.js +44 -5
- package/api/ws/harvester/index.d.ts +13 -2
- package/api/ws/harvester/index.js +14 -1
- package/api/ws/index.d.ts +6 -6
- package/api/ws/index.js +7 -3
- package/index.d.ts +2 -0
- package/package.json +1 -1
- package/api/chia/types/condition_opcodes.d.ts +0 -20
- package/api/chia/types/condition_opcodes.js +0 -31
- package/api/chia/types/condition_with_args.d.ts +0 -6
- package/api/chia/types/name_puzzle_condition.d.ts +0 -8
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { WalletInfo } from "../../chia/wallet/wallet_info";
|
|
2
2
|
import { Coin } from "../../chia/types/blockchain_format/coin";
|
|
3
|
-
import { bool, bytes, False, int, Optional, str, True, uint128, uint32, uint64, uint8 } from "../../chia/types/_python_types_";
|
|
3
|
+
import { bool, bytes, False, int, Optional, str, True, uint128, uint16, uint32, uint64, uint8 } from "../../chia/types/_python_types_";
|
|
4
4
|
import { bytes32 } from "../../chia/types/blockchain_format/sized_bytes";
|
|
5
5
|
import { TransactionRecord, TransactionRecordConvenience } from "../../chia/wallet/transaction_record";
|
|
6
6
|
import { SpendBundle } from "../../chia/types/spend_bundle";
|
|
@@ -8,6 +8,8 @@ import { TRPCAgent } from "../../../rpc";
|
|
|
8
8
|
import { PoolWalletInfo } from "../../chia/pools/pool_wallet_info";
|
|
9
9
|
import { TradeRecordConvenience } from "../../chia/wallet/trade_record";
|
|
10
10
|
import { CAT } from "../../chia/wallet/cat_wallet/cat_constants";
|
|
11
|
+
import { TDriverDict } from "../../chia/wallet/puzzle_drivers";
|
|
12
|
+
import { NFTInfo } from "../../chia/wallet/nft_wallet/nft_info";
|
|
11
13
|
export declare const chia_wallet_service = "chia_wallet";
|
|
12
14
|
export declare type chia_wallet_service = typeof chia_wallet_service;
|
|
13
15
|
export declare const log_in_command = "log_in";
|
|
@@ -89,6 +91,7 @@ export declare const check_delete_key_command = "check_delete_key";
|
|
|
89
91
|
export declare type check_delete_key_command = typeof check_delete_key_command;
|
|
90
92
|
export declare type TCheckDeleteKeyRequest = {
|
|
91
93
|
fingerprint: int;
|
|
94
|
+
max_ph_to_search?: int;
|
|
92
95
|
};
|
|
93
96
|
export declare type TCheckDeleteKeyResponse = {
|
|
94
97
|
fingerprint: int;
|
|
@@ -152,11 +155,14 @@ export declare type TGetNetworkInfoResponseOfWallet = {
|
|
|
152
155
|
export declare function get_network_info_of_wallet(agent: TRPCAgent): Promise<TGetNetworkInfoResponseOfWallet>;
|
|
153
156
|
export declare const get_wallets_command = "get_wallets";
|
|
154
157
|
export declare type get_wallets_command = typeof get_wallets_command;
|
|
155
|
-
export declare type TGetWalletsRequest = {
|
|
158
|
+
export declare type TGetWalletsRequest = {
|
|
159
|
+
type?: int;
|
|
160
|
+
include_data?: bool;
|
|
161
|
+
};
|
|
156
162
|
export declare type TGetWalletsResponse = {
|
|
157
163
|
wallets: WalletInfo[];
|
|
158
164
|
};
|
|
159
|
-
export declare function get_wallets(agent: TRPCAgent): Promise<TGetWalletsResponse>;
|
|
165
|
+
export declare function get_wallets(agent: TRPCAgent, data: TGetWalletsRequest): Promise<TGetWalletsResponse>;
|
|
160
166
|
export declare type TCreate_New_CAT_WalletRequest = {
|
|
161
167
|
fee?: uint64;
|
|
162
168
|
wallet_type: "cat_wallet";
|
|
@@ -204,11 +210,13 @@ export declare type TCreate_New_DID_WalletRequest = {
|
|
|
204
210
|
backup_dids: str[];
|
|
205
211
|
num_of_backup_ids_needed: uint64;
|
|
206
212
|
amount: int;
|
|
213
|
+
metadata?: Record<str, str>;
|
|
214
|
+
wallet_name?: str;
|
|
207
215
|
} | {
|
|
208
216
|
fee?: uint64;
|
|
209
217
|
wallet_type: "did_wallet";
|
|
210
218
|
did_type: "recovery";
|
|
211
|
-
|
|
219
|
+
backup_data: str;
|
|
212
220
|
};
|
|
213
221
|
export declare type TCreate_New_DID_WalletResponse = {
|
|
214
222
|
success: True;
|
|
@@ -227,6 +235,17 @@ export declare type TCreate_New_DID_WalletResponse = {
|
|
|
227
235
|
backup_dids: bytes[];
|
|
228
236
|
num_verifications_required: uint64;
|
|
229
237
|
};
|
|
238
|
+
export declare type TCreate_New_NFT_WalletRequest = {
|
|
239
|
+
fee?: uint64;
|
|
240
|
+
wallet_type: "nft_wallet";
|
|
241
|
+
did_id?: str;
|
|
242
|
+
name?: str;
|
|
243
|
+
};
|
|
244
|
+
export declare type TCreate_New_NFT_WalletResponse = {
|
|
245
|
+
success: True;
|
|
246
|
+
type: uint8;
|
|
247
|
+
wallet_id: uint32;
|
|
248
|
+
};
|
|
230
249
|
export declare type TCreate_New_Pool_WalletRequest = {
|
|
231
250
|
fee?: uint64;
|
|
232
251
|
wallet_type: "pool_wallet";
|
|
@@ -254,8 +273,8 @@ export declare type TCreate_New_Pool_WalletResponse = {
|
|
|
254
273
|
};
|
|
255
274
|
export declare const create_new_wallet_command = "create_new_wallet";
|
|
256
275
|
export declare type create_new_wallet_command = typeof create_new_wallet_command;
|
|
257
|
-
export declare type TCreateNewWalletRequest = TCreate_New_CAT_WalletRequest | TCreate_New_RL_WalletRequest | TCreate_New_DID_WalletRequest | TCreate_New_Pool_WalletRequest;
|
|
258
|
-
export declare type TCreateNewWalletResponse = TCreate_New_CAT_WalletResponse | TCreate_New_RL_WalletResponse | TCreate_New_DID_WalletResponse | TCreate_New_Pool_WalletResponse;
|
|
276
|
+
export declare type TCreateNewWalletRequest = TCreate_New_CAT_WalletRequest | TCreate_New_RL_WalletRequest | TCreate_New_DID_WalletRequest | TCreate_New_NFT_WalletRequest | TCreate_New_Pool_WalletRequest;
|
|
277
|
+
export declare type TCreateNewWalletResponse = TCreate_New_CAT_WalletResponse | TCreate_New_RL_WalletResponse | TCreate_New_DID_WalletResponse | TCreate_New_NFT_WalletResponse | TCreate_New_Pool_WalletResponse;
|
|
259
278
|
export declare function create_new_wallet(agent: TRPCAgent, data: TCreateNewWalletRequest): Promise<TCreateNewWalletResponse>;
|
|
260
279
|
export declare const get_wallet_balance_command = "get_wallet_balance";
|
|
261
280
|
export declare type get_wallet_balance_command = typeof get_wallet_balance_command;
|
|
@@ -397,6 +416,22 @@ export declare type TDeleteUnconfirmedTransactionsRequest = {
|
|
|
397
416
|
};
|
|
398
417
|
export declare type TDeleteUnconfirmedTransactionsResponse = {};
|
|
399
418
|
export declare function delete_unconfirmed_transactions(agent: TRPCAgent, data: TDeleteUnconfirmedTransactionsRequest): Promise<TDeleteUnconfirmedTransactionsResponse>;
|
|
419
|
+
export declare const select_coins_command = "select_coins";
|
|
420
|
+
export declare type select_coins_command = typeof select_coins_command;
|
|
421
|
+
export declare type TSelectCoinsRequest = {
|
|
422
|
+
amount: uint64;
|
|
423
|
+
wallet_id: uint32;
|
|
424
|
+
};
|
|
425
|
+
export declare type TSelectCoinsResponse = {
|
|
426
|
+
coins: Coin[];
|
|
427
|
+
};
|
|
428
|
+
export declare function select_coins(agent: TRPCAgent, data: TSelectCoinsRequest): Promise<TSelectCoinsResponse>;
|
|
429
|
+
export declare const get_cat_list_command = "get_cat_list";
|
|
430
|
+
export declare type get_cat_list_command = typeof get_cat_list_command;
|
|
431
|
+
export declare type TGetCatListResponse = {
|
|
432
|
+
cat_list: CAT[];
|
|
433
|
+
};
|
|
434
|
+
export declare function get_cat_list(agent: TRPCAgent): Promise<TGetCatListResponse>;
|
|
400
435
|
export declare const cat_set_name_command = "cat_set_name";
|
|
401
436
|
export declare type cat_set_name_command = typeof cat_set_name_command;
|
|
402
437
|
export declare type TCatSetNameRequest = {
|
|
@@ -427,6 +462,17 @@ export declare type TCatGetNameResponse = {
|
|
|
427
462
|
name: str;
|
|
428
463
|
};
|
|
429
464
|
export declare function cat_get_name(agent: TRPCAgent, data: TCatGetNameRequest): Promise<TCatGetNameResponse>;
|
|
465
|
+
export declare const get_stray_cats_command = "get_stray_cats";
|
|
466
|
+
export declare type get_stray_cats_command = typeof get_stray_cats_command;
|
|
467
|
+
export declare type TGetStrayCatsResponse = {
|
|
468
|
+
stray_cats: Array<{
|
|
469
|
+
asset_id: str;
|
|
470
|
+
name: str;
|
|
471
|
+
first_seen_height: int;
|
|
472
|
+
sender_puzzle_hash: str;
|
|
473
|
+
}>;
|
|
474
|
+
};
|
|
475
|
+
export declare function get_stray_cats(agent: TRPCAgent): Promise<TGetStrayCatsResponse>;
|
|
430
476
|
export declare const cat_spend_command = "cat_spend";
|
|
431
477
|
export declare type cat_spend_command = typeof cat_spend_command;
|
|
432
478
|
export declare type TCatSpendRequest = {
|
|
@@ -457,6 +503,7 @@ export declare type TCreateOfferForIdsRequest = {
|
|
|
457
503
|
offer: Record<int, int>;
|
|
458
504
|
fee?: uint64;
|
|
459
505
|
validate_only?: bool;
|
|
506
|
+
driver_dict?: TDriverDict;
|
|
460
507
|
};
|
|
461
508
|
export declare type TCreateOfferForIdsResponse = {
|
|
462
509
|
offer: str;
|
|
@@ -473,6 +520,7 @@ export declare type TGetOfferSummaryResponse = {
|
|
|
473
520
|
offered: Record<str, int>;
|
|
474
521
|
requested: Record<str, int>;
|
|
475
522
|
fees: int;
|
|
523
|
+
infos: TDriverDict;
|
|
476
524
|
};
|
|
477
525
|
};
|
|
478
526
|
export declare function get_offer_summary(agent: TRPCAgent, data: TGetOfferSummaryRequest): Promise<TGetOfferSummaryResponse>;
|
|
@@ -540,16 +588,35 @@ export declare type TCancelOfferRequest = {
|
|
|
540
588
|
};
|
|
541
589
|
export declare type TCancelOfferResponse = {};
|
|
542
590
|
export declare function cancel_offer(agent: TRPCAgent, data: TCancelOfferRequest): Promise<TCancelOfferResponse>;
|
|
543
|
-
export declare const
|
|
544
|
-
export declare type
|
|
545
|
-
export declare type
|
|
546
|
-
|
|
591
|
+
export declare const did_set_wallet_name_command = "did_set_wallet_name";
|
|
592
|
+
export declare type did_set_wallet_name_command = typeof did_set_wallet_name_command;
|
|
593
|
+
export declare type TDidSetWalletNameRequest = {
|
|
594
|
+
wallet_id: uint32;
|
|
595
|
+
name: str;
|
|
547
596
|
};
|
|
548
|
-
export declare
|
|
597
|
+
export declare type TDidSetWalletNameResponse = {
|
|
598
|
+
success: True;
|
|
599
|
+
wallet_id: uint32;
|
|
600
|
+
} | {
|
|
601
|
+
success: False;
|
|
602
|
+
error: str;
|
|
603
|
+
};
|
|
604
|
+
export declare function did_set_wallet_name(agent: TRPCAgent, data: TDidSetWalletNameRequest): Promise<TDidSetWalletNameResponse>;
|
|
605
|
+
export declare const did_get_wallet_name_command = "did_get_wallet_name";
|
|
606
|
+
export declare type did_get_wallet_name_command = typeof did_get_wallet_name_command;
|
|
607
|
+
export declare type TDidGetWalletNameRequest = {
|
|
608
|
+
wallet_id: uint32;
|
|
609
|
+
};
|
|
610
|
+
export declare type TDidGetWalletNameResponse = {
|
|
611
|
+
success: True;
|
|
612
|
+
wallet_id: uint32;
|
|
613
|
+
name: str;
|
|
614
|
+
};
|
|
615
|
+
export declare function did_get_wallet_name(agent: TRPCAgent, data: TDidGetWalletNameRequest): Promise<TDidGetWalletNameResponse>;
|
|
549
616
|
export declare const did_update_recovery_ids_command = "did_update_recovery_ids";
|
|
550
617
|
export declare type did_update_recovery_ids_command = typeof did_update_recovery_ids_command;
|
|
551
618
|
export declare type TDidUpdateRecoveryIdsRequest = {
|
|
552
|
-
wallet_id:
|
|
619
|
+
wallet_id: uint32;
|
|
553
620
|
new_list: str[];
|
|
554
621
|
num_verifications_required?: uint64;
|
|
555
622
|
};
|
|
@@ -557,6 +624,22 @@ export declare type TDidUpdateRecoveryIdsResponse = {
|
|
|
557
624
|
success: bool;
|
|
558
625
|
};
|
|
559
626
|
export declare function did_update_recovery_ids(agent: TRPCAgent, data: TDidUpdateRecoveryIdsRequest): Promise<TDidUpdateRecoveryIdsResponse>;
|
|
627
|
+
export declare const did_update_metadata_command = "did_update_metadata";
|
|
628
|
+
export declare type did_update_metadata_command = typeof did_update_metadata_command;
|
|
629
|
+
export declare type TDidUpdateMetadataRequest = {
|
|
630
|
+
wallet_id: uint32;
|
|
631
|
+
metadata?: Record<str, str>;
|
|
632
|
+
fee?: uint64;
|
|
633
|
+
};
|
|
634
|
+
export declare type TDidUpdateMetadataResponse = {
|
|
635
|
+
success: True;
|
|
636
|
+
wallet_id: uint32;
|
|
637
|
+
spend_bundle: SpendBundle;
|
|
638
|
+
} | {
|
|
639
|
+
success: False;
|
|
640
|
+
error: str;
|
|
641
|
+
};
|
|
642
|
+
export declare function did_update_metadata(agent: TRPCAgent, data: TDidUpdateMetadataRequest): Promise<TDidUpdateMetadataResponse>;
|
|
560
643
|
export declare const did_spend_command = "did_spend";
|
|
561
644
|
export declare type did_spend_command = typeof did_spend_command;
|
|
562
645
|
export declare type TDidSpendRequest = {
|
|
@@ -570,21 +653,21 @@ export declare function did_spend(agent: TRPCAgent, data: TDidSpendRequest): Pro
|
|
|
570
653
|
export declare const did_get_pubkey_command = "did_get_pubkey";
|
|
571
654
|
export declare type did_get_pubkey_command = typeof did_get_pubkey_command;
|
|
572
655
|
export declare type TDidGetPubkeyRequest = {
|
|
573
|
-
wallet_id:
|
|
656
|
+
wallet_id: uint32;
|
|
574
657
|
};
|
|
575
658
|
export declare type TDidGetPubkeyResponse = {
|
|
576
659
|
success: bool;
|
|
577
|
-
pubkey:
|
|
660
|
+
pubkey: str;
|
|
578
661
|
};
|
|
579
662
|
export declare function did_get_pubkey(agent: TRPCAgent): Promise<TDidGetPubkeyResponse>;
|
|
580
663
|
export declare const did_get_did_command = "did_get_did";
|
|
581
664
|
export declare type did_get_did_command = typeof did_get_did_command;
|
|
582
665
|
export declare type TDidGetDidRequest = {
|
|
583
|
-
wallet_id:
|
|
666
|
+
wallet_id: uint32;
|
|
584
667
|
};
|
|
585
668
|
export declare type TDidGetDidResponse = {
|
|
586
669
|
success: bool;
|
|
587
|
-
wallet_id:
|
|
670
|
+
wallet_id: uint32;
|
|
588
671
|
my_did: str;
|
|
589
672
|
coin_id?: bytes32;
|
|
590
673
|
};
|
|
@@ -592,39 +675,53 @@ export declare function did_get_did(agent: TRPCAgent, data: TDidGetDidRequest):
|
|
|
592
675
|
export declare const did_recovery_spend_command = "did_recovery_spend";
|
|
593
676
|
export declare type did_recovery_spend_command = typeof did_recovery_spend_command;
|
|
594
677
|
export declare type TDidRecoverySpendRequest = {
|
|
595
|
-
wallet_id:
|
|
596
|
-
|
|
678
|
+
wallet_id: uint32;
|
|
679
|
+
attest_data: str[];
|
|
597
680
|
pubkey?: str;
|
|
598
681
|
puzhash?: str;
|
|
599
682
|
};
|
|
600
683
|
export declare type TDidRecoverySpendResponse = {
|
|
601
|
-
success:
|
|
684
|
+
success: True;
|
|
685
|
+
spend_bundle: SpendBundle;
|
|
686
|
+
} | {
|
|
687
|
+
success: False;
|
|
602
688
|
};
|
|
603
689
|
export declare function did_recovery_spend(agent: TRPCAgent, data: TDidRecoverySpendRequest): Promise<TDidRecoverySpendResponse>;
|
|
604
690
|
export declare const did_get_recovery_list_command = "did_get_recovery_list";
|
|
605
691
|
export declare type did_get_recovery_list_command = typeof did_get_recovery_list_command;
|
|
606
692
|
export declare type TDidGetRecoveryListRequest = {
|
|
607
|
-
wallet_id:
|
|
693
|
+
wallet_id: uint32;
|
|
608
694
|
};
|
|
609
695
|
export declare type TDidGetRecoveryListResponse = {
|
|
610
696
|
success: bool;
|
|
611
|
-
wallet_id:
|
|
612
|
-
|
|
697
|
+
wallet_id: uint32;
|
|
698
|
+
recovery_list: str[];
|
|
613
699
|
num_required: uint64;
|
|
614
700
|
};
|
|
615
701
|
export declare function did_get_recovery_list(agent: TRPCAgent, data: TDidGetRecoveryListRequest): Promise<TDidGetRecoveryListResponse>;
|
|
702
|
+
export declare const did_get_metadata_command = "did_get_metadata";
|
|
703
|
+
export declare type did_get_metadata_command = typeof did_get_metadata_command;
|
|
704
|
+
export declare type TDidGetMetadataRequest = {
|
|
705
|
+
wallet_id: uint32;
|
|
706
|
+
};
|
|
707
|
+
export declare type TDidGetMetadataResponse = {
|
|
708
|
+
success: True;
|
|
709
|
+
wallet_id: uint32;
|
|
710
|
+
metadata: Record<str, str>;
|
|
711
|
+
};
|
|
712
|
+
export declare function did_get_metadata(agent: TRPCAgent, data: TDidGetMetadataRequest): Promise<TDidGetMetadataResponse>;
|
|
616
713
|
export declare const did_create_attest_command = "did_create_attest";
|
|
617
714
|
export declare type did_create_attest_command = typeof did_create_attest_command;
|
|
618
715
|
export declare type TDidCreateAttestRequest = {
|
|
619
|
-
wallet_id:
|
|
716
|
+
wallet_id: uint32;
|
|
620
717
|
coin_name: str;
|
|
621
718
|
puzhash: str;
|
|
622
|
-
filename: str;
|
|
623
719
|
};
|
|
624
720
|
export declare type TDidCreateAttestResponse = {
|
|
625
721
|
success: True;
|
|
626
722
|
message_spend_bundle: str;
|
|
627
723
|
info: [str, str, uint64];
|
|
724
|
+
attest_data: str;
|
|
628
725
|
} | {
|
|
629
726
|
success: False;
|
|
630
727
|
};
|
|
@@ -632,11 +729,11 @@ export declare function did_create_attest(agent: TRPCAgent, data: TDidCreateAtte
|
|
|
632
729
|
export declare const did_get_information_needed_for_recovery_command = "did_get_information_needed_for_recovery";
|
|
633
730
|
export declare type did_get_information_needed_for_recovery_command = typeof did_get_information_needed_for_recovery_command;
|
|
634
731
|
export declare type TDidGetInformationNeededForRecoveryRequest = {
|
|
635
|
-
wallet_id:
|
|
732
|
+
wallet_id: uint32;
|
|
636
733
|
};
|
|
637
734
|
export declare type TDidGetInformationNeededForRecoveryResponse = {
|
|
638
735
|
success: bool;
|
|
639
|
-
wallet_id:
|
|
736
|
+
wallet_id: uint32;
|
|
640
737
|
my_did: str;
|
|
641
738
|
coin_name: str;
|
|
642
739
|
newpuzhash: Optional<bytes32>;
|
|
@@ -644,17 +741,197 @@ export declare type TDidGetInformationNeededForRecoveryResponse = {
|
|
|
644
741
|
backup_dids: bytes[];
|
|
645
742
|
};
|
|
646
743
|
export declare function did_get_information_needed_for_recovery(agent: TRPCAgent, data: TDidGetInformationNeededForRecoveryRequest): Promise<TDidGetInformationNeededForRecoveryResponse>;
|
|
744
|
+
export declare const did_get_current_coin_info_command = "did_get_current_coin_info";
|
|
745
|
+
export declare type did_get_current_coin_info_command = typeof did_get_current_coin_info_command;
|
|
746
|
+
export declare type TDidGetCurrentCoinInfoRequest = {
|
|
747
|
+
wallet_id: uint32;
|
|
748
|
+
};
|
|
749
|
+
export declare type TDidGetCurrentCoinInfoResponse = {
|
|
750
|
+
success: True;
|
|
751
|
+
wallet_id: uint32;
|
|
752
|
+
my_did: str;
|
|
753
|
+
did_parent: bytes32;
|
|
754
|
+
did_innerpuz: bytes32;
|
|
755
|
+
did_amount: uint64;
|
|
756
|
+
};
|
|
757
|
+
export declare function did_get_current_coin_info(agent: TRPCAgent, data: TDidGetCurrentCoinInfoRequest): Promise<TDidGetCurrentCoinInfoResponse>;
|
|
647
758
|
export declare const did_create_backup_file_command = "did_create_backup_file";
|
|
648
759
|
export declare type did_create_backup_file_command = typeof did_create_backup_file_command;
|
|
649
760
|
export declare type TDidCreateBackupFileRequest = {
|
|
650
|
-
wallet_id:
|
|
651
|
-
filename: str;
|
|
761
|
+
wallet_id: uint32;
|
|
652
762
|
};
|
|
653
763
|
export declare type TDidCreateBackupFileResponse = {
|
|
654
|
-
wallet_id:
|
|
655
|
-
success:
|
|
764
|
+
wallet_id: uint32;
|
|
765
|
+
success: True;
|
|
766
|
+
backup_data: str;
|
|
656
767
|
};
|
|
657
768
|
export declare function did_create_backup_file(agent: TRPCAgent, data: TDidCreateBackupFileRequest): Promise<TDidCreateBackupFileResponse>;
|
|
769
|
+
export declare const did_transfer_did_command = "did_transfer_did";
|
|
770
|
+
export declare type did_transfer_did_command = typeof did_transfer_did_command;
|
|
771
|
+
export declare type TDidTransferDidRequest = {
|
|
772
|
+
wallet_id: uint32;
|
|
773
|
+
inner_address: str;
|
|
774
|
+
fee?: uint64;
|
|
775
|
+
with_recovery_info?: bool;
|
|
776
|
+
};
|
|
777
|
+
export declare type TDidTransferDidResponse = {
|
|
778
|
+
success: True;
|
|
779
|
+
transaction: TransactionRecordConvenience;
|
|
780
|
+
transaction_id: bytes32;
|
|
781
|
+
};
|
|
782
|
+
export declare function did_transfer_did(agent: TRPCAgent, data: TDidTransferDidRequest): Promise<TDidTransferDidResponse>;
|
|
783
|
+
export declare const nft_mint_nft_command = "nft_mint_nft";
|
|
784
|
+
export declare type nft_mint_nft_command = typeof nft_mint_nft_command;
|
|
785
|
+
export declare type TNftMintNftRequest = {
|
|
786
|
+
wallet_id: uint32;
|
|
787
|
+
royalty_address?: str;
|
|
788
|
+
target_address?: str;
|
|
789
|
+
uris: str[];
|
|
790
|
+
meta_uris: str[];
|
|
791
|
+
license_uris: str[];
|
|
792
|
+
hash: str;
|
|
793
|
+
series_number: uint64;
|
|
794
|
+
series_total: uint64;
|
|
795
|
+
meta_hash?: str;
|
|
796
|
+
license_hash?: str;
|
|
797
|
+
fee?: uint64;
|
|
798
|
+
did_id?: str;
|
|
799
|
+
royalty_percentage?: uint16;
|
|
800
|
+
};
|
|
801
|
+
export declare type TNftMintNftResponse = {
|
|
802
|
+
wallet_id: uint32;
|
|
803
|
+
success: True;
|
|
804
|
+
spend_bundle: SpendBundle;
|
|
805
|
+
};
|
|
806
|
+
export declare function nft_mint_nft(agent: TRPCAgent, data: TNftMintNftRequest): Promise<TNftMintNftResponse>;
|
|
807
|
+
export declare const nft_get_nfts_command = "nft_get_nfts";
|
|
808
|
+
export declare type nft_get_nfts_command = typeof nft_get_nfts_command;
|
|
809
|
+
export declare type TNftGetNftsRequest = {
|
|
810
|
+
wallet_id: uint32;
|
|
811
|
+
};
|
|
812
|
+
export declare type TNftGetNftsResponse = {
|
|
813
|
+
wallet_id: uint32;
|
|
814
|
+
success: True;
|
|
815
|
+
nft_list: NFTInfo[];
|
|
816
|
+
};
|
|
817
|
+
export declare function nft_get_nfts(agent: TRPCAgent, data: TNftGetNftsRequest): Promise<TNftGetNftsResponse>;
|
|
818
|
+
export declare const nft_set_nft_did_command = "nft_set_nft_did";
|
|
819
|
+
export declare type nft_set_nft_did_command = typeof nft_set_nft_did_command;
|
|
820
|
+
export declare type TNftSetNftDidRequest = {
|
|
821
|
+
wallet_id: uint32;
|
|
822
|
+
did_id: str;
|
|
823
|
+
nft_coin_id: str;
|
|
824
|
+
fee?: uint64;
|
|
825
|
+
};
|
|
826
|
+
export declare type TNftSetNftDidResponse = {
|
|
827
|
+
wallet_id: uint32;
|
|
828
|
+
success: True;
|
|
829
|
+
spend_bundle: SpendBundle;
|
|
830
|
+
} | {
|
|
831
|
+
success: False;
|
|
832
|
+
error: str;
|
|
833
|
+
};
|
|
834
|
+
export declare function nft_set_nft_did(agent: TRPCAgent, data: TNftSetNftDidRequest): Promise<TNftSetNftDidResponse>;
|
|
835
|
+
export declare const nft_get_by_did_command = "nft_get_by_did";
|
|
836
|
+
export declare type nft_get_by_did_command = typeof nft_get_by_did_command;
|
|
837
|
+
export declare type TNftGetByDidRequest = {
|
|
838
|
+
did_id?: str;
|
|
839
|
+
};
|
|
840
|
+
export declare type TNftGetByDidResponse = {
|
|
841
|
+
wallet_id: uint32;
|
|
842
|
+
success: True;
|
|
843
|
+
} | {
|
|
844
|
+
success: False;
|
|
845
|
+
error: str;
|
|
846
|
+
};
|
|
847
|
+
export declare function nft_get_by_did(agent: TRPCAgent, data: TNftGetByDidRequest): Promise<TNftGetByDidResponse>;
|
|
848
|
+
export declare const nft_get_wallet_did_command = "nft_get_wallet_did";
|
|
849
|
+
export declare type nft_get_wallet_did_command = typeof nft_get_wallet_did_command;
|
|
850
|
+
export declare type TNftGetWalletDidRequest = {
|
|
851
|
+
wallet_id: uint32;
|
|
852
|
+
};
|
|
853
|
+
export declare type TNftGetWalletDidResponse = {
|
|
854
|
+
did_id: Optional<str>;
|
|
855
|
+
success: True;
|
|
856
|
+
} | {
|
|
857
|
+
success: False;
|
|
858
|
+
error: str;
|
|
859
|
+
};
|
|
860
|
+
export declare function nft_get_wallet_did(agent: TRPCAgent, data: TNftGetWalletDidRequest): Promise<TNftGetWalletDidResponse>;
|
|
861
|
+
export declare const nft_get_wallets_with_dids_command = "nft_get_wallets_with_dids";
|
|
862
|
+
export declare type nft_get_wallets_with_dids_command = typeof nft_get_wallets_with_dids_command;
|
|
863
|
+
export declare type TNftGetWalletsWithDidsResponse = {
|
|
864
|
+
success: True;
|
|
865
|
+
nft_wallets: Array<{
|
|
866
|
+
wallet_id: uint32;
|
|
867
|
+
did_id: str;
|
|
868
|
+
did_wallet_id: uint32;
|
|
869
|
+
}>;
|
|
870
|
+
};
|
|
871
|
+
export declare function nft_get_wallets_with_dids(agent: TRPCAgent): Promise<TNftGetWalletsWithDidsResponse>;
|
|
872
|
+
export declare const nft_set_nft_status_command = "nft_set_nft_status";
|
|
873
|
+
export declare type nft_set_nft_status_command = typeof nft_set_nft_status_command;
|
|
874
|
+
export declare type TNftSetNftStatusRequest = {
|
|
875
|
+
wallet_id: uint32;
|
|
876
|
+
coin_id: str;
|
|
877
|
+
in_transaction: bool;
|
|
878
|
+
};
|
|
879
|
+
export declare type TNftSetNftStatusResponse = {
|
|
880
|
+
success: True;
|
|
881
|
+
} | {
|
|
882
|
+
success: False;
|
|
883
|
+
error: str;
|
|
884
|
+
};
|
|
885
|
+
export declare function nft_set_nft_status(agent: TRPCAgent, data: TNftSetNftStatusRequest): Promise<TNftSetNftStatusResponse>;
|
|
886
|
+
export declare const nft_transfer_nft_command = "nft_transfer_nft";
|
|
887
|
+
export declare type nft_transfer_nft_command = typeof nft_transfer_nft_command;
|
|
888
|
+
export declare type TNftTransferNftRequest = {
|
|
889
|
+
wallet_id: uint32;
|
|
890
|
+
target_address: str;
|
|
891
|
+
nft_coin_id: str;
|
|
892
|
+
fee?: uint64;
|
|
893
|
+
};
|
|
894
|
+
export declare type TNftTransferNftResponse = {
|
|
895
|
+
success: True;
|
|
896
|
+
wallet_id: uint32;
|
|
897
|
+
spend_bundle: SpendBundle;
|
|
898
|
+
} | {
|
|
899
|
+
success: False;
|
|
900
|
+
error: str;
|
|
901
|
+
};
|
|
902
|
+
export declare function nft_transfer_nft(agent: TRPCAgent, data: TNftTransferNftRequest): Promise<TNftTransferNftResponse>;
|
|
903
|
+
export declare const nft_get_info_command = "nft_get_info";
|
|
904
|
+
export declare type nft_get_info_command = typeof nft_get_info_command;
|
|
905
|
+
export declare type TNftGetInfoRequest = {
|
|
906
|
+
coin_id: str;
|
|
907
|
+
latest?: bool;
|
|
908
|
+
};
|
|
909
|
+
export declare type TNftGetInfoResponse = {
|
|
910
|
+
success: True;
|
|
911
|
+
nft_info: NFTInfo;
|
|
912
|
+
} | {
|
|
913
|
+
success: False;
|
|
914
|
+
error: str;
|
|
915
|
+
};
|
|
916
|
+
export declare function nft_get_info(agent: TRPCAgent, data: TNftGetInfoRequest): Promise<TNftGetInfoResponse>;
|
|
917
|
+
export declare const nft_add_uri_command = "nft_add_uri";
|
|
918
|
+
export declare type nft_add_uri_command = typeof nft_add_uri_command;
|
|
919
|
+
export declare type TNftAddUriRequest = {
|
|
920
|
+
wallet_id: uint32;
|
|
921
|
+
uri: str;
|
|
922
|
+
key: str;
|
|
923
|
+
nft_coin_id: str;
|
|
924
|
+
fee?: uint64;
|
|
925
|
+
};
|
|
926
|
+
export declare type TNftAddUriResponse = {
|
|
927
|
+
success: True;
|
|
928
|
+
wallet_id: uint32;
|
|
929
|
+
spend_bundle: SpendBundle;
|
|
930
|
+
} | {
|
|
931
|
+
success: False;
|
|
932
|
+
error: str;
|
|
933
|
+
};
|
|
934
|
+
export declare function nft_add_uri(agent: TRPCAgent, data: TNftAddUriRequest): Promise<TNftAddUriResponse>;
|
|
658
935
|
export declare const rl_set_user_info_command = "rl_set_user_info";
|
|
659
936
|
export declare type rl_set_user_info_command = typeof rl_set_user_info_command;
|
|
660
937
|
export declare type TRlSetUserInfoRequest = {
|
|
@@ -730,6 +1007,7 @@ export declare type pw_absorb_rewards_command = typeof pw_absorb_rewards_command
|
|
|
730
1007
|
export declare type TPwAbsorbRewardsRequest = {
|
|
731
1008
|
wallet_id: uint32;
|
|
732
1009
|
fee?: uint64;
|
|
1010
|
+
max_spends_in_tx?: int;
|
|
733
1011
|
};
|
|
734
1012
|
export declare type TPwAbsorbRewardsResponse = {
|
|
735
1013
|
state: PoolWalletInfo;
|