ckb_cli_plugin_protocol/
method.rs

1pub const QUIT: &str = "quit";
2pub const GET_CONFIG: &str = "get_config";
3pub const READ_PASSWORD: &str = "read_password";
4pub const PRINT_STDOUT: &str = "print_stdout";
5pub const PRINT_STDERR: &str = "print_stderr";
6pub const RPC_URL_CHANGED: &str = "rpc_url_changed";
7pub const SUB_COMMAND: &str = "sub_command";
8
9pub const CALLBACK_PREFIX: &str = "callback_";
10pub const CALLBACK_SEND_TRANSACTION: &str = "callback_send_transaction";
11
12pub const RPC_PREFIX: &str = "rpc_";
13pub const RPC_GET_BLOCK: &str = "rpc_get_block";
14pub const RPC_GET_BLOCK_BY_NUMBER: &str = "rpc_get_block_by_number";
15pub const RPC_GET_BLOCK_HASH: &str = "rpc_get_block_hash";
16
17pub const INDEXER_PREFIX: &str = "indexer_";
18pub const INDEXER_TIP_HEADER: &str = "indexer_tip_header";
19pub const INDEXER_LAST_HEADER: &str = "indexer_last_header";
20pub const INDEXER_GET_CAPACITY: &str = "indexer_get_capacity";
21pub const INDEXER_GET_LIVE_CELLS: &str = "indexer_get_live_cells";
22pub const INDEXER_GET_TOPN: &str = "indexer_get_topn";
23pub const INDEXER_GET_INDEXER_INFO: &str = "indexer_get_indexer_info";
24pub const INDEXER_ANY: &str = "indexer_any";
25
26pub const KEYSTORE_PREFIX: &str = "keystore_";
27pub const KEYSTORE_LIST_ACCOUNT: &str = "keystore_list_account";
28pub const KEYSTORE_HAS_ACCOUNT: &str = "keystore_has_account";
29pub const KEYSTORE_CREATE_ACCOUNT: &str = "keystore_create_account";
30pub const KEYSTORE_UPDATE_PASSWORD: &str = "keystore_update_password";
31pub const KEYSTORE_IMPORT: &str = "keystore_import";
32pub const KEYSTORE_IMPORT_ACCOUNT: &str = "keystore_import_account";
33pub const KEYSTORE_EXPORT: &str = "keystore_export";
34pub const KEYSTORE_SIGN: &str = "keystore_sign";
35pub const KEYSTORE_EXTENDED_PUBKEY: &str = "keystore_extended_pubkey";
36pub const KEYSTORE_DERIVED_KEY_SET: &str = "keystore_derived_key_set";
37pub const KEYSTORE_DERIVED_KEY_SET_BY_INDEX: &str = "keystore_derived_key_set_by_index";
38pub const KEYSTORE_ANY: &str = "keystore_any";