@swapkit/helpers 4.0.7 → 4.0.9
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/dist/index.cjs +2 -2
- package/dist/index.cjs.map +4 -4
- package/dist/index.js +2 -2
- package/dist/index.js.map +4 -4
- package/dist/types/modules/swapKitError.d.ts +611 -608
- package/dist/types/modules/swapKitError.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -1,334 +1,237 @@
|
|
|
1
|
+
/** biome-ignore-all assist/source/useSortedKeys: its sorted by type */
|
|
1
2
|
declare const errorCodes: {
|
|
2
|
-
readonly api_v2_invalid_method_key_hash: 60003;
|
|
3
|
-
/**
|
|
4
|
-
* SwapKit API
|
|
5
|
-
*/
|
|
6
|
-
readonly api_v2_invalid_response: 60001;
|
|
7
|
-
readonly api_v2_server_error: 60002;
|
|
8
|
-
readonly chainflip_broker_fund_invalid_address: 30107;
|
|
9
|
-
readonly chainflip_broker_fund_only_flip_supported: 30106;
|
|
10
|
-
/**
|
|
11
|
-
* Chainflip - Broker
|
|
12
|
-
*/
|
|
13
|
-
readonly chainflip_broker_invalid_params: 30101;
|
|
14
|
-
readonly chainflip_broker_recipient_error: 30102;
|
|
15
|
-
readonly chainflip_broker_register: 30103;
|
|
16
|
-
readonly chainflip_broker_tx_error: 30104;
|
|
17
|
-
readonly chainflip_broker_withdraw: 30105;
|
|
18
|
-
/**
|
|
19
|
-
* Chainflip
|
|
20
|
-
*/
|
|
21
|
-
readonly chainflip_channel_error: 30001;
|
|
22
|
-
readonly chainflip_unknown_asset: 30002;
|
|
23
|
-
readonly core_approve_asset_address_or_from_not_found: 10004;
|
|
24
|
-
readonly core_approve_asset_target_invalid: 10007;
|
|
25
|
-
readonly core_chain_halted: 10010;
|
|
26
3
|
/**
|
|
27
4
|
* Core
|
|
28
5
|
*/
|
|
29
6
|
readonly core_estimated_max_spendable_chain_not_supported: 10001;
|
|
30
|
-
readonly core_explorer_unsupported_chain: 10008;
|
|
31
7
|
readonly core_extend_error: 10002;
|
|
32
8
|
readonly core_inbound_data_not_found: 10003;
|
|
9
|
+
readonly core_approve_asset_address_or_from_not_found: 10004;
|
|
33
10
|
readonly core_plugin_not_found: 10005;
|
|
34
11
|
readonly core_plugin_swap_not_found: 10006;
|
|
35
|
-
readonly
|
|
36
|
-
readonly
|
|
37
|
-
readonly
|
|
12
|
+
readonly core_approve_asset_target_invalid: 10007;
|
|
13
|
+
readonly core_explorer_unsupported_chain: 10008;
|
|
14
|
+
readonly core_verify_message_not_supported: 10009;
|
|
15
|
+
readonly core_chain_halted: 10010;
|
|
16
|
+
/**
|
|
17
|
+
* Core - Wallet
|
|
18
|
+
*/
|
|
19
|
+
readonly core_wallet_connection_not_found: 10101;
|
|
20
|
+
readonly core_wallet_ctrl_not_installed: 10102;
|
|
21
|
+
readonly core_wallet_evmwallet_not_installed: 10103;
|
|
22
|
+
readonly core_wallet_walletconnect_not_installed: 10104;
|
|
23
|
+
readonly core_wallet_keystore_not_installed: 10105;
|
|
24
|
+
readonly core_wallet_ledger_not_installed: 10106;
|
|
25
|
+
readonly core_wallet_trezor_not_installed: 10107;
|
|
26
|
+
readonly core_wallet_keplr_not_installed: 10108;
|
|
27
|
+
readonly core_wallet_okx_not_installed: 10109;
|
|
28
|
+
readonly core_wallet_keepkey_not_installed: 10110;
|
|
29
|
+
readonly core_wallet_talisman_not_installed: 10111;
|
|
30
|
+
readonly core_wallet_not_keypair_wallet: 10112;
|
|
31
|
+
readonly core_wallet_sign_message_not_supported: 10113;
|
|
32
|
+
readonly core_wallet_connection_failed: 10114;
|
|
38
33
|
/**
|
|
39
34
|
* Core - Swap
|
|
40
35
|
*/
|
|
41
36
|
readonly core_swap_invalid_params: 10201;
|
|
42
|
-
readonly core_swap_quote_mode_not_supported: 10208;
|
|
43
37
|
readonly core_swap_route_not_complete: 10202;
|
|
38
|
+
readonly core_swap_asset_not_recognized: 10203;
|
|
39
|
+
readonly core_swap_contract_not_found: 10204;
|
|
44
40
|
readonly core_swap_route_transaction_not_found: 10205;
|
|
41
|
+
readonly core_swap_contract_not_supported: 10206;
|
|
45
42
|
readonly core_swap_transaction_error: 10207;
|
|
46
|
-
readonly
|
|
47
|
-
readonly core_transaction_add_liquidity_base_address: 10306;
|
|
48
|
-
readonly core_transaction_add_liquidity_base_error: 10307;
|
|
49
|
-
readonly core_transaction_add_liquidity_invalid_params: 10305;
|
|
50
|
-
readonly core_transaction_create_liquidity_asset_error: 10303;
|
|
51
|
-
readonly core_transaction_create_liquidity_base_error: 10302;
|
|
52
|
-
readonly core_transaction_create_liquidity_invalid_params: 10304;
|
|
43
|
+
readonly core_swap_quote_mode_not_supported: 10208;
|
|
53
44
|
/**
|
|
54
45
|
* Core - Transaction
|
|
55
46
|
*/
|
|
56
47
|
readonly core_transaction_deposit_error: 10301;
|
|
57
|
-
readonly
|
|
48
|
+
readonly core_transaction_create_liquidity_base_error: 10302;
|
|
49
|
+
readonly core_transaction_create_liquidity_asset_error: 10303;
|
|
50
|
+
readonly core_transaction_create_liquidity_invalid_params: 10304;
|
|
51
|
+
readonly core_transaction_add_liquidity_invalid_params: 10305;
|
|
52
|
+
readonly core_transaction_add_liquidity_base_address: 10306;
|
|
53
|
+
readonly core_transaction_add_liquidity_base_error: 10307;
|
|
54
|
+
readonly core_transaction_add_liquidity_asset_error: 10308;
|
|
55
|
+
readonly core_transaction_withdraw_error: 10309;
|
|
56
|
+
readonly core_transaction_deposit_to_pool_error: 10310;
|
|
58
57
|
readonly core_transaction_deposit_insufficient_funds_error: 10311;
|
|
58
|
+
readonly core_transaction_deposit_gas_error: 10312;
|
|
59
|
+
readonly core_transaction_invalid_sender_address: 10313;
|
|
59
60
|
readonly core_transaction_deposit_server_error: 10314;
|
|
60
|
-
readonly
|
|
61
|
+
readonly core_transaction_user_rejected: 10315;
|
|
61
62
|
readonly core_transaction_failed: 10316;
|
|
62
63
|
readonly core_transaction_invalid_recipient_address: 10317;
|
|
63
|
-
readonly core_transaction_invalid_sender_address: 10313;
|
|
64
|
-
readonly core_transaction_user_rejected: 10315;
|
|
65
|
-
readonly core_transaction_withdraw_error: 10309;
|
|
66
|
-
readonly core_verify_message_not_supported: 10009;
|
|
67
|
-
readonly core_wallet_connection_failed: 10114;
|
|
68
64
|
/**
|
|
69
|
-
*
|
|
65
|
+
* Wallets - General
|
|
70
66
|
*/
|
|
71
|
-
readonly
|
|
72
|
-
readonly
|
|
73
|
-
readonly
|
|
74
|
-
readonly
|
|
75
|
-
readonly
|
|
76
|
-
readonly
|
|
77
|
-
readonly
|
|
78
|
-
readonly core_wallet_not_keypair_wallet: 10112;
|
|
79
|
-
readonly core_wallet_okx_not_installed: 10109;
|
|
80
|
-
readonly core_wallet_sign_message_not_supported: 10113;
|
|
81
|
-
readonly core_wallet_talisman_not_installed: 10111;
|
|
82
|
-
readonly core_wallet_trezor_not_installed: 10107;
|
|
83
|
-
readonly core_wallet_walletconnect_not_installed: 10104;
|
|
84
|
-
readonly helpers_chain_not_supported: 70009;
|
|
85
|
-
readonly helpers_failed_to_switch_network: 70007;
|
|
86
|
-
readonly helpers_invalid_asset_identifier: 70005;
|
|
87
|
-
readonly helpers_invalid_asset_url: 70004;
|
|
88
|
-
readonly helpers_invalid_identifier: 70003;
|
|
89
|
-
readonly helpers_invalid_memo_type: 70006;
|
|
67
|
+
readonly wallet_connection_rejected_by_user: 20001;
|
|
68
|
+
readonly wallet_missing_api_key: 20002;
|
|
69
|
+
readonly wallet_chain_not_supported: 20003;
|
|
70
|
+
readonly wallet_missing_params: 20004;
|
|
71
|
+
readonly wallet_provider_not_found: 20005;
|
|
72
|
+
readonly wallet_failed_to_add_or_switch_network: 20006;
|
|
73
|
+
readonly wallet_locked: 20007;
|
|
90
74
|
/**
|
|
91
|
-
*
|
|
75
|
+
* Wallets - Ledger
|
|
92
76
|
*/
|
|
93
|
-
readonly
|
|
94
|
-
readonly
|
|
95
|
-
readonly
|
|
96
|
-
readonly
|
|
97
|
-
readonly
|
|
77
|
+
readonly wallet_ledger_connection_error: 20101;
|
|
78
|
+
readonly wallet_ledger_connection_claimed: 20102;
|
|
79
|
+
readonly wallet_ledger_get_address_error: 20103;
|
|
80
|
+
readonly wallet_ledger_device_not_found: 20104;
|
|
81
|
+
readonly wallet_ledger_device_locked: 20105;
|
|
82
|
+
readonly wallet_ledger_transport_error: 20106;
|
|
83
|
+
readonly wallet_ledger_public_key_error: 20107;
|
|
84
|
+
readonly wallet_ledger_derivation_path_error: 20108;
|
|
85
|
+
readonly wallet_ledger_signing_error: 20109;
|
|
86
|
+
readonly wallet_ledger_app_not_open: 20110;
|
|
87
|
+
readonly wallet_ledger_invalid_response: 20111;
|
|
88
|
+
readonly wallet_ledger_method_not_supported: 20112;
|
|
89
|
+
readonly wallet_ledger_invalid_params: 20113;
|
|
90
|
+
readonly wallet_ledger_invalid_signature: 20114;
|
|
91
|
+
readonly wallet_ledger_no_provider: 20115;
|
|
92
|
+
readonly wallet_ledger_pubkey_not_found: 20116;
|
|
93
|
+
readonly wallet_ledger_transport_not_defined: 20117;
|
|
94
|
+
readonly wallet_ledger_webusb_not_supported: 20118;
|
|
95
|
+
readonly wallet_ledger_chain_not_supported: 20119;
|
|
96
|
+
readonly wallet_ledger_invalid_asset: 20120;
|
|
97
|
+
readonly wallet_ledger_invalid_account: 20121;
|
|
98
|
+
readonly wallet_ledger_address_not_found: 20122;
|
|
99
|
+
readonly wallet_ledger_failed_to_get_address: 20123;
|
|
98
100
|
/**
|
|
99
|
-
*
|
|
101
|
+
* Wallets - Phantom
|
|
100
102
|
*/
|
|
101
|
-
readonly
|
|
103
|
+
readonly wallet_phantom_not_found: 20201;
|
|
102
104
|
/**
|
|
103
|
-
*
|
|
105
|
+
* Wallets - Ctrl
|
|
104
106
|
*/
|
|
105
|
-
readonly
|
|
106
|
-
readonly
|
|
107
|
-
readonly
|
|
108
|
-
readonly
|
|
109
|
-
readonly plugin_near_transfer_failed: 41005;
|
|
110
|
-
readonly thorchain_asset_is_not_tcy: 40003;
|
|
107
|
+
readonly wallet_ctrl_not_found: 20301;
|
|
108
|
+
readonly wallet_ctrl_send_transaction_no_address: 20302;
|
|
109
|
+
readonly wallet_ctrl_contract_address_not_provided: 20303;
|
|
110
|
+
readonly wallet_ctrl_asset_not_defined: 20304;
|
|
111
111
|
/**
|
|
112
|
-
*
|
|
112
|
+
* Wallets - WalletConnect
|
|
113
113
|
*/
|
|
114
|
-
readonly
|
|
115
|
-
readonly
|
|
116
|
-
readonly
|
|
114
|
+
readonly wallet_walletconnect_project_id_not_specified: 20401;
|
|
115
|
+
readonly wallet_walletconnect_connection_not_established: 20402;
|
|
116
|
+
readonly wallet_walletconnect_namespace_not_supported: 20403;
|
|
117
|
+
readonly wallet_walletconnect_chain_not_supported: 20404;
|
|
118
|
+
readonly wallet_walletconnect_invalid_method: 20405;
|
|
119
|
+
readonly wallet_walletconnect_method_not_supported: 20406;
|
|
117
120
|
/**
|
|
118
|
-
*
|
|
121
|
+
* Wallets - Trezor
|
|
119
122
|
*/
|
|
120
|
-
readonly
|
|
121
|
-
readonly
|
|
122
|
-
readonly
|
|
123
|
-
readonly
|
|
123
|
+
readonly wallet_trezor_failed_to_sign_transaction: 20501;
|
|
124
|
+
readonly wallet_trezor_derivation_path_not_supported: 20502;
|
|
125
|
+
readonly wallet_trezor_failed_to_get_address: 20503;
|
|
126
|
+
readonly wallet_trezor_transport_error: 20504;
|
|
127
|
+
readonly wallet_trezor_method_not_supported: 20505;
|
|
124
128
|
/**
|
|
125
|
-
*
|
|
129
|
+
* Wallets - Talisman
|
|
126
130
|
*/
|
|
127
|
-
readonly
|
|
128
|
-
readonly
|
|
129
|
-
readonly toolbox_cosmos_invalid_params: 50103;
|
|
130
|
-
readonly toolbox_cosmos_no_signer: 50104;
|
|
131
|
-
readonly toolbox_cosmos_not_supported: 50105;
|
|
132
|
-
readonly toolbox_cosmos_signer_not_defined: 50106;
|
|
133
|
-
readonly toolbox_cosmos_validate_address_prefix_not_found: 50107;
|
|
134
|
-
readonly toolbox_cosmos_verify_signature_no_pubkey: 50108;
|
|
131
|
+
readonly wallet_talisman_not_enabled: 20601;
|
|
132
|
+
readonly wallet_talisman_not_found: 20602;
|
|
135
133
|
/**
|
|
136
|
-
*
|
|
134
|
+
* Wallets - Polkadot
|
|
137
135
|
*/
|
|
138
|
-
readonly
|
|
139
|
-
readonly toolbox_evm_error_sending_transaction: 50202;
|
|
140
|
-
readonly toolbox_evm_gas_estimation_error: 50203;
|
|
141
|
-
readonly toolbox_evm_invalid_gas_asset_address: 50204;
|
|
142
|
-
readonly toolbox_evm_invalid_params: 50205;
|
|
143
|
-
readonly toolbox_evm_invalid_transaction: 50206;
|
|
144
|
-
readonly toolbox_evm_no_abi_fragment: 50207;
|
|
145
|
-
readonly toolbox_evm_no_contract_address: 50208;
|
|
146
|
-
readonly toolbox_evm_no_fee_data: 50209;
|
|
147
|
-
readonly toolbox_evm_no_from_address: 50210;
|
|
148
|
-
readonly toolbox_evm_no_gas_price: 50211;
|
|
149
|
-
readonly toolbox_evm_no_signer: 50213;
|
|
150
|
-
readonly toolbox_evm_no_signer_address: 50212;
|
|
151
|
-
readonly toolbox_evm_no_to_address: 50214;
|
|
152
|
-
readonly toolbox_evm_not_supported: 50215;
|
|
153
|
-
readonly toolbox_evm_provider_not_eip1193_compatible: 50216;
|
|
154
|
-
readonly toolbox_near_access_key_error: 90605;
|
|
155
|
-
readonly toolbox_near_balance_failed: 90608;
|
|
156
|
-
readonly toolbox_near_empty_batch: 90607;
|
|
157
|
-
readonly toolbox_near_invalid_address: 90602;
|
|
158
|
-
readonly toolbox_near_invalid_amount: 90603;
|
|
159
|
-
readonly toolbox_near_invalid_gas_params: 90612;
|
|
160
|
-
readonly toolbox_near_invalid_name: 90609;
|
|
161
|
-
readonly toolbox_near_missing_contract_address: 90610;
|
|
162
|
-
readonly toolbox_near_no_account: 90611;
|
|
163
|
-
readonly toolbox_near_no_rpc_url: 90606;
|
|
136
|
+
readonly wallet_polkadot_not_found: 20701;
|
|
164
137
|
/**
|
|
165
|
-
*
|
|
138
|
+
* Wallets - Radix
|
|
166
139
|
*/
|
|
167
|
-
readonly
|
|
168
|
-
readonly
|
|
140
|
+
readonly wallet_radix_not_found: 20801;
|
|
141
|
+
readonly wallet_radix_transaction_failed: 20802;
|
|
142
|
+
readonly wallet_radix_invalid_manifest: 20803;
|
|
143
|
+
readonly wallet_radix_method_not_supported: 20804;
|
|
144
|
+
readonly wallet_radix_no_account: 20805;
|
|
169
145
|
/**
|
|
170
|
-
*
|
|
146
|
+
* Wallets - KeepKey
|
|
171
147
|
*/
|
|
172
|
-
readonly
|
|
148
|
+
readonly wallet_keepkey_not_found: 20901;
|
|
149
|
+
readonly wallet_keepkey_asset_not_defined: 20902;
|
|
150
|
+
readonly wallet_keepkey_contract_address_not_provided: 20903;
|
|
151
|
+
readonly wallet_keepkey_send_transaction_no_address: 20904;
|
|
152
|
+
readonly wallet_keepkey_derivation_path_error: 20905;
|
|
153
|
+
readonly wallet_keepkey_signing_error: 20906;
|
|
154
|
+
readonly wallet_keepkey_transport_error: 20907;
|
|
155
|
+
readonly wallet_keepkey_unsupported_chain: 20908;
|
|
156
|
+
readonly wallet_keepkey_invalid_response: 20909;
|
|
157
|
+
readonly wallet_keepkey_chain_not_supported: 20910;
|
|
158
|
+
readonly wallet_keepkey_signer_not_found: 20911;
|
|
159
|
+
readonly wallet_keepkey_no_accounts: 20912;
|
|
160
|
+
readonly wallet_keepkey_method_not_supported: 20913;
|
|
161
|
+
readonly wallet_keepkey_invalid_params: 20914;
|
|
162
|
+
readonly wallet_keepkey_config_not_found: 20915;
|
|
163
|
+
readonly wallet_keepkey_no_provider: 20916;
|
|
164
|
+
readonly wallet_keepkey_account_not_found: 20917;
|
|
173
165
|
/**
|
|
174
|
-
*
|
|
166
|
+
* Wallets - BitKeep/BitGet
|
|
175
167
|
*/
|
|
176
|
-
readonly
|
|
177
|
-
readonly
|
|
178
|
-
readonly
|
|
168
|
+
readonly wallet_bitkeep_not_found: 21001;
|
|
169
|
+
readonly wallet_bitkeep_failed_to_switch_network: 21002;
|
|
170
|
+
readonly wallet_bitkeep_no_accounts: 21003;
|
|
179
171
|
/**
|
|
180
|
-
*
|
|
181
|
-
*/
|
|
182
|
-
readonly toolbox_ripple_get_balance_error: 50701;
|
|
183
|
-
readonly toolbox_ripple_rpc_not_configured: 50702;
|
|
184
|
-
readonly toolbox_ripple_signer_not_found: 50703;
|
|
185
|
-
readonly toolbox_solana_fee_estimation_failed: 50402;
|
|
186
|
-
/**
|
|
187
|
-
* Toolboxes - Solana
|
|
188
|
-
*/
|
|
189
|
-
readonly toolbox_solana_no_signer: 50401;
|
|
190
|
-
/**
|
|
191
|
-
* Toolboxes - Substrate
|
|
192
|
-
*/
|
|
193
|
-
readonly toolbox_substrate_not_supported: 50501;
|
|
194
|
-
readonly toolbox_tron_allowance_check_failed: 50809;
|
|
195
|
-
readonly toolbox_tron_approve_failed: 50807;
|
|
196
|
-
readonly toolbox_tron_fee_estimation_failed: 50805;
|
|
197
|
-
readonly toolbox_tron_invalid_token_contract: 50808;
|
|
198
|
-
readonly toolbox_tron_invalid_token_identifier: 50802;
|
|
199
|
-
/**
|
|
200
|
-
* Toolboxes - Tron
|
|
172
|
+
* Wallets - Exodus
|
|
201
173
|
*/
|
|
202
|
-
readonly
|
|
203
|
-
readonly
|
|
204
|
-
readonly
|
|
205
|
-
readonly
|
|
174
|
+
readonly wallet_exodus_sign_transaction_error: 21101;
|
|
175
|
+
readonly wallet_exodus_not_found: 21102;
|
|
176
|
+
readonly wallet_exodus_no_address: 21103;
|
|
177
|
+
readonly wallet_exodus_request_canceled: 21104;
|
|
178
|
+
readonly wallet_exodus_signature_canceled: 21105;
|
|
179
|
+
readonly wallet_exodus_failed_to_switch_network: 21106;
|
|
180
|
+
readonly wallet_exodus_chain_not_supported: 21107;
|
|
181
|
+
readonly wallet_exodus_instance_missing: 21108;
|
|
206
182
|
/**
|
|
207
|
-
*
|
|
183
|
+
* Wallets - OneKey
|
|
208
184
|
*/
|
|
209
|
-
readonly
|
|
210
|
-
readonly
|
|
211
|
-
readonly toolbox_utxo_insufficient_balance: 50303;
|
|
212
|
-
readonly toolbox_utxo_invalid_address: 50304;
|
|
213
|
-
readonly toolbox_utxo_invalid_params: 50305;
|
|
214
|
-
readonly toolbox_utxo_invalid_transaction: 50306;
|
|
215
|
-
readonly toolbox_utxo_no_signer: 50307;
|
|
216
|
-
readonly toolbox_utxo_not_supported: 50308;
|
|
217
|
-
readonly wallet_bitkeep_failed_to_switch_network: 21002;
|
|
218
|
-
readonly wallet_bitkeep_no_accounts: 21003;
|
|
185
|
+
readonly wallet_onekey_not_found: 21201;
|
|
186
|
+
readonly wallet_onekey_sign_transaction_error: 21202;
|
|
219
187
|
/**
|
|
220
|
-
* Wallets -
|
|
188
|
+
* Wallets - OKX
|
|
221
189
|
*/
|
|
222
|
-
readonly
|
|
223
|
-
readonly
|
|
224
|
-
readonly
|
|
225
|
-
readonly
|
|
226
|
-
readonly wallet_coinbase_no_accounts: 21704;
|
|
190
|
+
readonly wallet_okx_not_found: 21301;
|
|
191
|
+
readonly wallet_okx_chain_not_supported: 21302;
|
|
192
|
+
readonly wallet_okx_failed_to_switch_network: 21303;
|
|
193
|
+
readonly wallet_okx_no_accounts: 21304;
|
|
227
194
|
/**
|
|
228
|
-
* Wallets -
|
|
195
|
+
* Wallets - Keplr
|
|
229
196
|
*/
|
|
230
|
-
readonly
|
|
197
|
+
readonly wallet_keplr_not_found: 21401;
|
|
198
|
+
readonly wallet_keplr_chain_not_supported: 21402;
|
|
199
|
+
readonly wallet_keplr_signer_not_found: 21403;
|
|
200
|
+
readonly wallet_keplr_no_accounts: 21404;
|
|
231
201
|
/**
|
|
232
|
-
* Wallets -
|
|
202
|
+
* Wallets - Cosmostation
|
|
233
203
|
*/
|
|
234
|
-
readonly
|
|
204
|
+
readonly wallet_cosmostation_not_found: 21501;
|
|
235
205
|
readonly wallet_cosmostation_chain_not_supported: 21502;
|
|
236
206
|
readonly wallet_cosmostation_evm_provider_not_found: 21503;
|
|
237
207
|
readonly wallet_cosmostation_keplr_provider_not_found: 21504;
|
|
238
208
|
readonly wallet_cosmostation_no_accounts: 21505;
|
|
239
209
|
readonly wallet_cosmostation_no_evm_accounts: 21506;
|
|
240
210
|
readonly wallet_cosmostation_no_evm_address: 21507;
|
|
211
|
+
readonly wallet_cosmostation_signer_not_found: 21508;
|
|
241
212
|
/**
|
|
242
|
-
* Wallets -
|
|
213
|
+
* Wallets - XDefi
|
|
243
214
|
*/
|
|
244
|
-
readonly
|
|
245
|
-
readonly
|
|
246
|
-
readonly wallet_ctrl_asset_not_defined: 20304;
|
|
247
|
-
readonly wallet_ctrl_contract_address_not_provided: 20303;
|
|
215
|
+
readonly wallet_xdefi_not_found: 21601;
|
|
216
|
+
readonly wallet_xdefi_chain_not_supported: 21602;
|
|
248
217
|
/**
|
|
249
|
-
* Wallets -
|
|
218
|
+
* Wallets - Coinbase
|
|
250
219
|
*/
|
|
251
|
-
readonly
|
|
252
|
-
readonly
|
|
220
|
+
readonly wallet_coinbase_not_found: 21701;
|
|
221
|
+
readonly wallet_coinbase_chain_not_supported: 21702;
|
|
222
|
+
readonly wallet_coinbase_method_not_supported: 21703;
|
|
223
|
+
readonly wallet_coinbase_no_accounts: 21704;
|
|
253
224
|
/**
|
|
254
225
|
* Wallets - EVM Extensions
|
|
255
226
|
*/
|
|
256
227
|
readonly wallet_evm_extensions_failed_to_switch_network: 21801;
|
|
257
228
|
readonly wallet_evm_extensions_no_provider: 21802;
|
|
258
229
|
readonly wallet_evm_extensions_not_found: 21803;
|
|
259
|
-
readonly wallet_exodus_chain_not_supported: 21107;
|
|
260
|
-
readonly wallet_exodus_failed_to_switch_network: 21106;
|
|
261
|
-
readonly wallet_exodus_instance_missing: 21108;
|
|
262
|
-
readonly wallet_exodus_no_address: 21103;
|
|
263
|
-
readonly wallet_exodus_not_found: 21102;
|
|
264
|
-
readonly wallet_exodus_request_canceled: 21104;
|
|
265
|
-
/**
|
|
266
|
-
* Wallets - Exodus
|
|
267
|
-
*/
|
|
268
|
-
readonly wallet_exodus_sign_transaction_error: 21101;
|
|
269
|
-
readonly wallet_exodus_signature_canceled: 21105;
|
|
270
|
-
readonly wallet_failed_to_add_or_switch_network: 20006;
|
|
271
|
-
readonly wallet_keepkey_account_not_found: 20917;
|
|
272
|
-
readonly wallet_keepkey_asset_not_defined: 20902;
|
|
273
|
-
readonly wallet_keepkey_chain_not_supported: 20910;
|
|
274
|
-
readonly wallet_keepkey_config_not_found: 20915;
|
|
275
|
-
readonly wallet_keepkey_contract_address_not_provided: 20903;
|
|
276
|
-
readonly wallet_keepkey_derivation_path_error: 20905;
|
|
277
|
-
readonly wallet_keepkey_invalid_params: 20914;
|
|
278
|
-
readonly wallet_keepkey_invalid_response: 20909;
|
|
279
|
-
readonly wallet_keepkey_method_not_supported: 20913;
|
|
280
|
-
readonly wallet_keepkey_no_accounts: 20912;
|
|
281
|
-
readonly wallet_keepkey_no_provider: 20916;
|
|
282
|
-
/**
|
|
283
|
-
* Wallets - KeepKey
|
|
284
|
-
*/
|
|
285
|
-
readonly wallet_keepkey_not_found: 20901;
|
|
286
|
-
readonly wallet_keepkey_send_transaction_no_address: 20904;
|
|
287
|
-
readonly wallet_keepkey_signer_not_found: 20911;
|
|
288
|
-
readonly wallet_keepkey_signing_error: 20906;
|
|
289
|
-
readonly wallet_keepkey_transport_error: 20907;
|
|
290
|
-
readonly wallet_keepkey_unsupported_chain: 20908;
|
|
291
|
-
readonly wallet_keplr_chain_not_supported: 21402;
|
|
292
|
-
readonly wallet_keplr_no_accounts: 21404;
|
|
293
|
-
/**
|
|
294
|
-
* Wallets - Keplr
|
|
295
|
-
*/
|
|
296
|
-
readonly wallet_keplr_not_found: 21401;
|
|
297
|
-
readonly wallet_keplr_signer_not_found: 21403;
|
|
298
230
|
/**
|
|
299
231
|
* Wallets - Keystore
|
|
300
232
|
*/
|
|
301
233
|
readonly wallet_keystore_invalid_password: 21901;
|
|
302
234
|
readonly wallet_keystore_unsupported_version: 21902;
|
|
303
|
-
readonly wallet_ledger_address_not_found: 20122;
|
|
304
|
-
readonly wallet_ledger_app_not_open: 20110;
|
|
305
|
-
readonly wallet_ledger_chain_not_supported: 20119;
|
|
306
|
-
readonly wallet_ledger_connection_claimed: 20102;
|
|
307
|
-
/**
|
|
308
|
-
* Wallets - Ledger
|
|
309
|
-
*/
|
|
310
|
-
readonly wallet_ledger_connection_error: 20101;
|
|
311
|
-
readonly wallet_ledger_derivation_path_error: 20108;
|
|
312
|
-
readonly wallet_ledger_device_locked: 20105;
|
|
313
|
-
readonly wallet_ledger_device_not_found: 20104;
|
|
314
|
-
readonly wallet_ledger_failed_to_get_address: 20123;
|
|
315
|
-
readonly wallet_ledger_get_address_error: 20103;
|
|
316
|
-
readonly wallet_ledger_invalid_account: 20121;
|
|
317
|
-
readonly wallet_ledger_invalid_asset: 20120;
|
|
318
|
-
readonly wallet_ledger_invalid_params: 20113;
|
|
319
|
-
readonly wallet_ledger_invalid_response: 20111;
|
|
320
|
-
readonly wallet_ledger_invalid_signature: 20114;
|
|
321
|
-
readonly wallet_ledger_method_not_supported: 20112;
|
|
322
|
-
readonly wallet_ledger_no_provider: 20115;
|
|
323
|
-
readonly wallet_ledger_pubkey_not_found: 20116;
|
|
324
|
-
readonly wallet_ledger_public_key_error: 20107;
|
|
325
|
-
readonly wallet_ledger_signing_error: 20109;
|
|
326
|
-
readonly wallet_ledger_transport_error: 20106;
|
|
327
|
-
readonly wallet_ledger_transport_not_defined: 20117;
|
|
328
|
-
readonly wallet_ledger_webusb_not_supported: 20118;
|
|
329
|
-
readonly wallet_locked: 20007;
|
|
330
|
-
readonly wallet_missing_api_key: 20002;
|
|
331
|
-
readonly wallet_missing_params: 20004;
|
|
332
235
|
/**
|
|
333
236
|
* Wallets - Near Extensions
|
|
334
237
|
*/
|
|
@@ -336,412 +239,413 @@ declare const errorCodes: {
|
|
|
336
239
|
readonly wallet_near_extensions_no_provider: 22002;
|
|
337
240
|
readonly wallet_near_extensions_not_found: 22003;
|
|
338
241
|
readonly wallet_near_method_not_supported: 22003;
|
|
339
|
-
readonly wallet_okx_chain_not_supported: 21302;
|
|
340
|
-
readonly wallet_okx_failed_to_switch_network: 21303;
|
|
341
|
-
readonly wallet_okx_no_accounts: 21304;
|
|
342
242
|
/**
|
|
343
|
-
* Wallets -
|
|
243
|
+
* Wallets - Vultisig
|
|
344
244
|
*/
|
|
345
|
-
readonly
|
|
245
|
+
readonly wallet_vultisig_not_found: 22101;
|
|
246
|
+
readonly wallet_vultisig_contract_address_not_provided: 22102;
|
|
247
|
+
readonly wallet_vultisig_asset_not_defined: 22103;
|
|
248
|
+
readonly wallet_vultisig_send_transaction_no_address: 22104;
|
|
346
249
|
/**
|
|
347
|
-
* Wallets -
|
|
250
|
+
* Wallets - Xaman
|
|
348
251
|
*/
|
|
349
|
-
readonly
|
|
350
|
-
readonly
|
|
252
|
+
readonly wallet_xaman_not_configured: 23001;
|
|
253
|
+
readonly wallet_xaman_not_connected: 23002;
|
|
254
|
+
readonly wallet_xaman_auth_failed: 23003;
|
|
255
|
+
readonly wallet_xaman_connection_failed: 23004;
|
|
256
|
+
readonly wallet_xaman_transaction_failed: 23005;
|
|
257
|
+
readonly wallet_xaman_monitoring_failed: 23006;
|
|
351
258
|
/**
|
|
352
|
-
*
|
|
259
|
+
* Chainflip
|
|
353
260
|
*/
|
|
354
|
-
readonly
|
|
261
|
+
readonly chainflip_channel_error: 30001;
|
|
262
|
+
readonly chainflip_unknown_asset: 30002;
|
|
355
263
|
/**
|
|
356
|
-
*
|
|
264
|
+
* Chainflip - Broker
|
|
357
265
|
*/
|
|
358
|
-
readonly
|
|
359
|
-
readonly
|
|
360
|
-
readonly
|
|
361
|
-
readonly
|
|
362
|
-
readonly
|
|
266
|
+
readonly chainflip_broker_invalid_params: 30101;
|
|
267
|
+
readonly chainflip_broker_recipient_error: 30102;
|
|
268
|
+
readonly chainflip_broker_register: 30103;
|
|
269
|
+
readonly chainflip_broker_tx_error: 30104;
|
|
270
|
+
readonly chainflip_broker_withdraw: 30105;
|
|
271
|
+
readonly chainflip_broker_fund_only_flip_supported: 30106;
|
|
272
|
+
readonly chainflip_broker_fund_invalid_address: 30107;
|
|
363
273
|
/**
|
|
364
|
-
*
|
|
274
|
+
* THORChain
|
|
365
275
|
*/
|
|
366
|
-
readonly
|
|
367
|
-
readonly
|
|
276
|
+
readonly thorchain_chain_halted: 40001;
|
|
277
|
+
readonly thorchain_trading_halted: 40002;
|
|
278
|
+
readonly thorchain_asset_is_not_tcy: 40003;
|
|
368
279
|
/**
|
|
369
|
-
*
|
|
280
|
+
* THORChain - Swap
|
|
370
281
|
*/
|
|
371
|
-
readonly
|
|
372
|
-
readonly
|
|
373
|
-
readonly
|
|
374
|
-
readonly
|
|
282
|
+
readonly thorchain_swapin_router_required: 40101;
|
|
283
|
+
readonly thorchain_swapin_vault_required: 40102;
|
|
284
|
+
readonly thorchain_swapin_memo_required: 40103;
|
|
285
|
+
readonly thorchain_swapin_token_required: 40104;
|
|
286
|
+
readonly thorchain_preferred_asset_payout_required: 40105;
|
|
375
287
|
/**
|
|
376
|
-
*
|
|
288
|
+
* Toolboxes - Cosmos
|
|
377
289
|
*/
|
|
378
|
-
readonly
|
|
379
|
-
readonly
|
|
380
|
-
readonly
|
|
381
|
-
readonly
|
|
382
|
-
readonly
|
|
290
|
+
readonly toolbox_cosmos_account_not_found: 50101;
|
|
291
|
+
readonly toolbox_cosmos_invalid_fee: 50102;
|
|
292
|
+
readonly toolbox_cosmos_invalid_params: 50103;
|
|
293
|
+
readonly toolbox_cosmos_no_signer: 50104;
|
|
294
|
+
readonly toolbox_cosmos_not_supported: 50105;
|
|
295
|
+
readonly toolbox_cosmos_signer_not_defined: 50106;
|
|
296
|
+
readonly toolbox_cosmos_validate_address_prefix_not_found: 50107;
|
|
297
|
+
readonly toolbox_cosmos_verify_signature_no_pubkey: 50108;
|
|
383
298
|
/**
|
|
384
|
-
*
|
|
299
|
+
* Toolboxes - EVM
|
|
385
300
|
*/
|
|
386
|
-
readonly
|
|
387
|
-
readonly
|
|
388
|
-
readonly
|
|
389
|
-
readonly
|
|
390
|
-
readonly
|
|
391
|
-
readonly
|
|
392
|
-
readonly
|
|
301
|
+
readonly toolbox_evm_error_estimating_gas_limit: 50201;
|
|
302
|
+
readonly toolbox_evm_error_sending_transaction: 50202;
|
|
303
|
+
readonly toolbox_evm_gas_estimation_error: 50203;
|
|
304
|
+
readonly toolbox_evm_invalid_gas_asset_address: 50204;
|
|
305
|
+
readonly toolbox_evm_invalid_params: 50205;
|
|
306
|
+
readonly toolbox_evm_invalid_transaction: 50206;
|
|
307
|
+
readonly toolbox_evm_no_abi_fragment: 50207;
|
|
308
|
+
readonly toolbox_evm_no_contract_address: 50208;
|
|
309
|
+
readonly toolbox_evm_no_fee_data: 50209;
|
|
310
|
+
readonly toolbox_evm_no_from_address: 50210;
|
|
311
|
+
readonly toolbox_evm_no_gas_price: 50211;
|
|
312
|
+
readonly toolbox_evm_no_signer_address: 50212;
|
|
313
|
+
readonly toolbox_evm_no_signer: 50213;
|
|
314
|
+
readonly toolbox_evm_no_to_address: 50214;
|
|
315
|
+
readonly toolbox_evm_not_supported: 50215;
|
|
316
|
+
readonly toolbox_evm_provider_not_eip1193_compatible: 50216;
|
|
393
317
|
/**
|
|
394
|
-
*
|
|
318
|
+
* Toolboxes - UTXO
|
|
395
319
|
*/
|
|
396
|
-
readonly
|
|
397
|
-
readonly
|
|
398
|
-
readonly
|
|
399
|
-
readonly
|
|
320
|
+
readonly toolbox_utxo_api_error: 50301;
|
|
321
|
+
readonly toolbox_utxo_broadcast_failed: 50302;
|
|
322
|
+
readonly toolbox_utxo_insufficient_balance: 50303;
|
|
323
|
+
readonly toolbox_utxo_invalid_address: 50304;
|
|
324
|
+
readonly toolbox_utxo_invalid_params: 50305;
|
|
325
|
+
readonly toolbox_utxo_invalid_transaction: 50306;
|
|
326
|
+
readonly toolbox_utxo_no_signer: 50307;
|
|
327
|
+
readonly toolbox_utxo_not_supported: 50308;
|
|
400
328
|
/**
|
|
401
|
-
*
|
|
329
|
+
* Toolboxes - Solana
|
|
402
330
|
*/
|
|
403
|
-
readonly
|
|
404
|
-
readonly
|
|
405
|
-
readonly wallet_xaman_transaction_failed: 23005;
|
|
406
|
-
readonly wallet_xdefi_chain_not_supported: 21602;
|
|
331
|
+
readonly toolbox_solana_no_signer: 50401;
|
|
332
|
+
readonly toolbox_solana_fee_estimation_failed: 50402;
|
|
407
333
|
/**
|
|
408
|
-
*
|
|
334
|
+
* Toolboxes - Substrate
|
|
409
335
|
*/
|
|
410
|
-
readonly
|
|
336
|
+
readonly toolbox_substrate_not_supported: 50501;
|
|
337
|
+
readonly toolbox_substrate_transfer_error: 50502;
|
|
338
|
+
/**
|
|
339
|
+
* Toolboxes - Radix
|
|
340
|
+
*/
|
|
341
|
+
readonly toolbox_radix_method_not_supported: 50601;
|
|
342
|
+
/**
|
|
343
|
+
* Toolboxes - Ripple
|
|
344
|
+
*/
|
|
345
|
+
readonly toolbox_ripple_get_balance_error: 50701;
|
|
346
|
+
readonly toolbox_ripple_rpc_not_configured: 50702;
|
|
347
|
+
readonly toolbox_ripple_signer_not_found: 50703;
|
|
348
|
+
readonly toolbox_ripple_asset_not_supported: 50704;
|
|
349
|
+
readonly toolbox_ripple_broadcast_error: 50705;
|
|
350
|
+
/**
|
|
351
|
+
* Toolboxes - Tron
|
|
352
|
+
*/
|
|
353
|
+
readonly toolbox_tron_no_signer: 50801;
|
|
354
|
+
readonly toolbox_tron_invalid_token_identifier: 50802;
|
|
355
|
+
readonly toolbox_tron_token_transfer_failed: 50803;
|
|
356
|
+
readonly toolbox_tron_transaction_creation_failed: 50804;
|
|
357
|
+
readonly toolbox_tron_fee_estimation_failed: 50805;
|
|
358
|
+
readonly toolbox_tron_trongrid_api_error: 50806;
|
|
359
|
+
readonly toolbox_tron_approve_failed: 50807;
|
|
360
|
+
readonly toolbox_tron_invalid_token_contract: 50808;
|
|
361
|
+
readonly toolbox_tron_allowance_check_failed: 50809;
|
|
362
|
+
/**
|
|
363
|
+
* Toolboxes - Near
|
|
364
|
+
*/
|
|
365
|
+
readonly toolbox_near_no_signer: 90601;
|
|
366
|
+
readonly toolbox_near_invalid_address: 90602;
|
|
367
|
+
readonly toolbox_near_invalid_amount: 90603;
|
|
368
|
+
readonly toolbox_near_transfer_failed: 90604;
|
|
369
|
+
readonly toolbox_near_access_key_error: 90605;
|
|
370
|
+
readonly toolbox_near_no_rpc_url: 90606;
|
|
371
|
+
readonly toolbox_near_empty_batch: 90607;
|
|
372
|
+
readonly toolbox_near_balance_failed: 90608;
|
|
373
|
+
readonly toolbox_near_invalid_name: 90609;
|
|
374
|
+
readonly toolbox_near_missing_contract_address: 90610;
|
|
375
|
+
readonly toolbox_near_no_account: 90611;
|
|
376
|
+
readonly toolbox_near_invalid_gas_params: 90612;
|
|
377
|
+
/**
|
|
378
|
+
* Toolboxes - General
|
|
379
|
+
*/
|
|
380
|
+
readonly toolbox_not_supported: 59901;
|
|
381
|
+
/**
|
|
382
|
+
* NEAR Plugin
|
|
383
|
+
*/
|
|
384
|
+
readonly plugin_near_invalid_name: 41001;
|
|
385
|
+
readonly plugin_near_no_connection: 41002;
|
|
386
|
+
readonly plugin_near_name_unavailable: 41003;
|
|
387
|
+
readonly plugin_near_registration_failed: 41004;
|
|
388
|
+
readonly plugin_near_transfer_failed: 41005;
|
|
389
|
+
/**
|
|
390
|
+
* SwapKit API
|
|
391
|
+
*/
|
|
392
|
+
readonly api_v2_invalid_response: 60001;
|
|
393
|
+
readonly api_v2_server_error: 60002;
|
|
394
|
+
readonly api_v2_invalid_method_key_hash: 60003;
|
|
395
|
+
/**
|
|
396
|
+
* Helpers
|
|
397
|
+
*/
|
|
398
|
+
readonly helpers_invalid_number_different_decimals: 70001;
|
|
399
|
+
readonly helpers_invalid_number_of_years: 70002;
|
|
400
|
+
readonly helpers_invalid_identifier: 70003;
|
|
401
|
+
readonly helpers_invalid_asset_url: 70004;
|
|
402
|
+
readonly helpers_invalid_asset_identifier: 70005;
|
|
403
|
+
readonly helpers_invalid_memo_type: 70006;
|
|
404
|
+
readonly helpers_failed_to_switch_network: 70007;
|
|
405
|
+
readonly helpers_not_found_provider: 70008;
|
|
406
|
+
readonly helpers_chain_not_supported: 70009;
|
|
407
|
+
readonly helpers_invalid_params: 70010;
|
|
408
|
+
readonly helpers_invalid_response: 70011;
|
|
409
|
+
/**
|
|
410
|
+
* Anything else
|
|
411
|
+
*/
|
|
412
|
+
readonly not_implemented: 99999;
|
|
411
413
|
};
|
|
412
414
|
export type ErrorKeys = keyof typeof errorCodes;
|
|
413
415
|
export declare class SwapKitError extends Error {
|
|
414
416
|
static ErrorCode: {
|
|
415
|
-
readonly api_v2_invalid_method_key_hash: 60003;
|
|
416
|
-
/**
|
|
417
|
-
* SwapKit API
|
|
418
|
-
*/
|
|
419
|
-
readonly api_v2_invalid_response: 60001;
|
|
420
|
-
readonly api_v2_server_error: 60002;
|
|
421
|
-
readonly chainflip_broker_fund_invalid_address: 30107;
|
|
422
|
-
readonly chainflip_broker_fund_only_flip_supported: 30106;
|
|
423
|
-
/**
|
|
424
|
-
* Chainflip - Broker
|
|
425
|
-
*/
|
|
426
|
-
readonly chainflip_broker_invalid_params: 30101;
|
|
427
|
-
readonly chainflip_broker_recipient_error: 30102;
|
|
428
|
-
readonly chainflip_broker_register: 30103;
|
|
429
|
-
readonly chainflip_broker_tx_error: 30104;
|
|
430
|
-
readonly chainflip_broker_withdraw: 30105;
|
|
431
|
-
/**
|
|
432
|
-
* Chainflip
|
|
433
|
-
*/
|
|
434
|
-
readonly chainflip_channel_error: 30001;
|
|
435
|
-
readonly chainflip_unknown_asset: 30002;
|
|
436
|
-
readonly core_approve_asset_address_or_from_not_found: 10004;
|
|
437
|
-
readonly core_approve_asset_target_invalid: 10007;
|
|
438
|
-
readonly core_chain_halted: 10010;
|
|
439
417
|
/**
|
|
440
418
|
* Core
|
|
441
419
|
*/
|
|
442
420
|
readonly core_estimated_max_spendable_chain_not_supported: 10001;
|
|
443
|
-
readonly core_explorer_unsupported_chain: 10008;
|
|
444
421
|
readonly core_extend_error: 10002;
|
|
445
422
|
readonly core_inbound_data_not_found: 10003;
|
|
423
|
+
readonly core_approve_asset_address_or_from_not_found: 10004;
|
|
446
424
|
readonly core_plugin_not_found: 10005;
|
|
447
425
|
readonly core_plugin_swap_not_found: 10006;
|
|
448
|
-
readonly
|
|
449
|
-
readonly
|
|
450
|
-
readonly
|
|
426
|
+
readonly core_approve_asset_target_invalid: 10007;
|
|
427
|
+
readonly core_explorer_unsupported_chain: 10008;
|
|
428
|
+
readonly core_verify_message_not_supported: 10009;
|
|
429
|
+
readonly core_chain_halted: 10010;
|
|
430
|
+
/**
|
|
431
|
+
* Core - Wallet
|
|
432
|
+
*/
|
|
433
|
+
readonly core_wallet_connection_not_found: 10101;
|
|
434
|
+
readonly core_wallet_ctrl_not_installed: 10102;
|
|
435
|
+
readonly core_wallet_evmwallet_not_installed: 10103;
|
|
436
|
+
readonly core_wallet_walletconnect_not_installed: 10104;
|
|
437
|
+
readonly core_wallet_keystore_not_installed: 10105;
|
|
438
|
+
readonly core_wallet_ledger_not_installed: 10106;
|
|
439
|
+
readonly core_wallet_trezor_not_installed: 10107;
|
|
440
|
+
readonly core_wallet_keplr_not_installed: 10108;
|
|
441
|
+
readonly core_wallet_okx_not_installed: 10109;
|
|
442
|
+
readonly core_wallet_keepkey_not_installed: 10110;
|
|
443
|
+
readonly core_wallet_talisman_not_installed: 10111;
|
|
444
|
+
readonly core_wallet_not_keypair_wallet: 10112;
|
|
445
|
+
readonly core_wallet_sign_message_not_supported: 10113;
|
|
446
|
+
readonly core_wallet_connection_failed: 10114;
|
|
451
447
|
/**
|
|
452
448
|
* Core - Swap
|
|
453
449
|
*/
|
|
454
450
|
readonly core_swap_invalid_params: 10201;
|
|
455
|
-
readonly core_swap_quote_mode_not_supported: 10208;
|
|
456
451
|
readonly core_swap_route_not_complete: 10202;
|
|
452
|
+
readonly core_swap_asset_not_recognized: 10203;
|
|
453
|
+
readonly core_swap_contract_not_found: 10204;
|
|
457
454
|
readonly core_swap_route_transaction_not_found: 10205;
|
|
455
|
+
readonly core_swap_contract_not_supported: 10206;
|
|
458
456
|
readonly core_swap_transaction_error: 10207;
|
|
459
|
-
readonly
|
|
460
|
-
readonly core_transaction_add_liquidity_base_address: 10306;
|
|
461
|
-
readonly core_transaction_add_liquidity_base_error: 10307;
|
|
462
|
-
readonly core_transaction_add_liquidity_invalid_params: 10305;
|
|
463
|
-
readonly core_transaction_create_liquidity_asset_error: 10303;
|
|
464
|
-
readonly core_transaction_create_liquidity_base_error: 10302;
|
|
465
|
-
readonly core_transaction_create_liquidity_invalid_params: 10304;
|
|
457
|
+
readonly core_swap_quote_mode_not_supported: 10208;
|
|
466
458
|
/**
|
|
467
459
|
* Core - Transaction
|
|
468
460
|
*/
|
|
469
461
|
readonly core_transaction_deposit_error: 10301;
|
|
470
|
-
readonly
|
|
462
|
+
readonly core_transaction_create_liquidity_base_error: 10302;
|
|
463
|
+
readonly core_transaction_create_liquidity_asset_error: 10303;
|
|
464
|
+
readonly core_transaction_create_liquidity_invalid_params: 10304;
|
|
465
|
+
readonly core_transaction_add_liquidity_invalid_params: 10305;
|
|
466
|
+
readonly core_transaction_add_liquidity_base_address: 10306;
|
|
467
|
+
readonly core_transaction_add_liquidity_base_error: 10307;
|
|
468
|
+
readonly core_transaction_add_liquidity_asset_error: 10308;
|
|
469
|
+
readonly core_transaction_withdraw_error: 10309;
|
|
470
|
+
readonly core_transaction_deposit_to_pool_error: 10310;
|
|
471
471
|
readonly core_transaction_deposit_insufficient_funds_error: 10311;
|
|
472
|
+
readonly core_transaction_deposit_gas_error: 10312;
|
|
473
|
+
readonly core_transaction_invalid_sender_address: 10313;
|
|
472
474
|
readonly core_transaction_deposit_server_error: 10314;
|
|
473
|
-
readonly
|
|
475
|
+
readonly core_transaction_user_rejected: 10315;
|
|
474
476
|
readonly core_transaction_failed: 10316;
|
|
475
477
|
readonly core_transaction_invalid_recipient_address: 10317;
|
|
476
|
-
readonly core_transaction_invalid_sender_address: 10313;
|
|
477
|
-
readonly core_transaction_user_rejected: 10315;
|
|
478
|
-
readonly core_transaction_withdraw_error: 10309;
|
|
479
|
-
readonly core_verify_message_not_supported: 10009;
|
|
480
|
-
readonly core_wallet_connection_failed: 10114;
|
|
481
478
|
/**
|
|
482
|
-
*
|
|
479
|
+
* Wallets - General
|
|
483
480
|
*/
|
|
484
|
-
readonly
|
|
485
|
-
readonly
|
|
486
|
-
readonly
|
|
487
|
-
readonly
|
|
488
|
-
readonly
|
|
489
|
-
readonly
|
|
490
|
-
readonly
|
|
491
|
-
readonly core_wallet_not_keypair_wallet: 10112;
|
|
492
|
-
readonly core_wallet_okx_not_installed: 10109;
|
|
493
|
-
readonly core_wallet_sign_message_not_supported: 10113;
|
|
494
|
-
readonly core_wallet_talisman_not_installed: 10111;
|
|
495
|
-
readonly core_wallet_trezor_not_installed: 10107;
|
|
496
|
-
readonly core_wallet_walletconnect_not_installed: 10104;
|
|
497
|
-
readonly helpers_chain_not_supported: 70009;
|
|
498
|
-
readonly helpers_failed_to_switch_network: 70007;
|
|
499
|
-
readonly helpers_invalid_asset_identifier: 70005;
|
|
500
|
-
readonly helpers_invalid_asset_url: 70004;
|
|
501
|
-
readonly helpers_invalid_identifier: 70003;
|
|
502
|
-
readonly helpers_invalid_memo_type: 70006;
|
|
481
|
+
readonly wallet_connection_rejected_by_user: 20001;
|
|
482
|
+
readonly wallet_missing_api_key: 20002;
|
|
483
|
+
readonly wallet_chain_not_supported: 20003;
|
|
484
|
+
readonly wallet_missing_params: 20004;
|
|
485
|
+
readonly wallet_provider_not_found: 20005;
|
|
486
|
+
readonly wallet_failed_to_add_or_switch_network: 20006;
|
|
487
|
+
readonly wallet_locked: 20007;
|
|
503
488
|
/**
|
|
504
|
-
*
|
|
489
|
+
* Wallets - Ledger
|
|
505
490
|
*/
|
|
506
|
-
readonly
|
|
507
|
-
readonly
|
|
508
|
-
readonly
|
|
509
|
-
readonly
|
|
510
|
-
readonly
|
|
491
|
+
readonly wallet_ledger_connection_error: 20101;
|
|
492
|
+
readonly wallet_ledger_connection_claimed: 20102;
|
|
493
|
+
readonly wallet_ledger_get_address_error: 20103;
|
|
494
|
+
readonly wallet_ledger_device_not_found: 20104;
|
|
495
|
+
readonly wallet_ledger_device_locked: 20105;
|
|
496
|
+
readonly wallet_ledger_transport_error: 20106;
|
|
497
|
+
readonly wallet_ledger_public_key_error: 20107;
|
|
498
|
+
readonly wallet_ledger_derivation_path_error: 20108;
|
|
499
|
+
readonly wallet_ledger_signing_error: 20109;
|
|
500
|
+
readonly wallet_ledger_app_not_open: 20110;
|
|
501
|
+
readonly wallet_ledger_invalid_response: 20111;
|
|
502
|
+
readonly wallet_ledger_method_not_supported: 20112;
|
|
503
|
+
readonly wallet_ledger_invalid_params: 20113;
|
|
504
|
+
readonly wallet_ledger_invalid_signature: 20114;
|
|
505
|
+
readonly wallet_ledger_no_provider: 20115;
|
|
506
|
+
readonly wallet_ledger_pubkey_not_found: 20116;
|
|
507
|
+
readonly wallet_ledger_transport_not_defined: 20117;
|
|
508
|
+
readonly wallet_ledger_webusb_not_supported: 20118;
|
|
509
|
+
readonly wallet_ledger_chain_not_supported: 20119;
|
|
510
|
+
readonly wallet_ledger_invalid_asset: 20120;
|
|
511
|
+
readonly wallet_ledger_invalid_account: 20121;
|
|
512
|
+
readonly wallet_ledger_address_not_found: 20122;
|
|
513
|
+
readonly wallet_ledger_failed_to_get_address: 20123;
|
|
511
514
|
/**
|
|
512
|
-
*
|
|
515
|
+
* Wallets - Phantom
|
|
513
516
|
*/
|
|
514
|
-
readonly
|
|
517
|
+
readonly wallet_phantom_not_found: 20201;
|
|
515
518
|
/**
|
|
516
|
-
*
|
|
519
|
+
* Wallets - Ctrl
|
|
517
520
|
*/
|
|
518
|
-
readonly
|
|
519
|
-
readonly
|
|
520
|
-
readonly
|
|
521
|
-
readonly
|
|
522
|
-
readonly plugin_near_transfer_failed: 41005;
|
|
523
|
-
readonly thorchain_asset_is_not_tcy: 40003;
|
|
521
|
+
readonly wallet_ctrl_not_found: 20301;
|
|
522
|
+
readonly wallet_ctrl_send_transaction_no_address: 20302;
|
|
523
|
+
readonly wallet_ctrl_contract_address_not_provided: 20303;
|
|
524
|
+
readonly wallet_ctrl_asset_not_defined: 20304;
|
|
524
525
|
/**
|
|
525
|
-
*
|
|
526
|
+
* Wallets - WalletConnect
|
|
526
527
|
*/
|
|
527
|
-
readonly
|
|
528
|
-
readonly
|
|
529
|
-
readonly
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
readonly thorchain_swapin_router_required: 40101;
|
|
534
|
-
readonly thorchain_swapin_token_required: 40104;
|
|
535
|
-
readonly thorchain_swapin_vault_required: 40102;
|
|
536
|
-
readonly thorchain_trading_halted: 40002;
|
|
537
|
-
/**
|
|
538
|
-
* Toolboxes - Cosmos
|
|
539
|
-
*/
|
|
540
|
-
readonly toolbox_cosmos_account_not_found: 50101;
|
|
541
|
-
readonly toolbox_cosmos_invalid_fee: 50102;
|
|
542
|
-
readonly toolbox_cosmos_invalid_params: 50103;
|
|
543
|
-
readonly toolbox_cosmos_no_signer: 50104;
|
|
544
|
-
readonly toolbox_cosmos_not_supported: 50105;
|
|
545
|
-
readonly toolbox_cosmos_signer_not_defined: 50106;
|
|
546
|
-
readonly toolbox_cosmos_validate_address_prefix_not_found: 50107;
|
|
547
|
-
readonly toolbox_cosmos_verify_signature_no_pubkey: 50108;
|
|
548
|
-
/**
|
|
549
|
-
* Toolboxes - EVM
|
|
550
|
-
*/
|
|
551
|
-
readonly toolbox_evm_error_estimating_gas_limit: 50201;
|
|
552
|
-
readonly toolbox_evm_error_sending_transaction: 50202;
|
|
553
|
-
readonly toolbox_evm_gas_estimation_error: 50203;
|
|
554
|
-
readonly toolbox_evm_invalid_gas_asset_address: 50204;
|
|
555
|
-
readonly toolbox_evm_invalid_params: 50205;
|
|
556
|
-
readonly toolbox_evm_invalid_transaction: 50206;
|
|
557
|
-
readonly toolbox_evm_no_abi_fragment: 50207;
|
|
558
|
-
readonly toolbox_evm_no_contract_address: 50208;
|
|
559
|
-
readonly toolbox_evm_no_fee_data: 50209;
|
|
560
|
-
readonly toolbox_evm_no_from_address: 50210;
|
|
561
|
-
readonly toolbox_evm_no_gas_price: 50211;
|
|
562
|
-
readonly toolbox_evm_no_signer: 50213;
|
|
563
|
-
readonly toolbox_evm_no_signer_address: 50212;
|
|
564
|
-
readonly toolbox_evm_no_to_address: 50214;
|
|
565
|
-
readonly toolbox_evm_not_supported: 50215;
|
|
566
|
-
readonly toolbox_evm_provider_not_eip1193_compatible: 50216;
|
|
567
|
-
readonly toolbox_near_access_key_error: 90605;
|
|
568
|
-
readonly toolbox_near_balance_failed: 90608;
|
|
569
|
-
readonly toolbox_near_empty_batch: 90607;
|
|
570
|
-
readonly toolbox_near_invalid_address: 90602;
|
|
571
|
-
readonly toolbox_near_invalid_amount: 90603;
|
|
572
|
-
readonly toolbox_near_invalid_gas_params: 90612;
|
|
573
|
-
readonly toolbox_near_invalid_name: 90609;
|
|
574
|
-
readonly toolbox_near_missing_contract_address: 90610;
|
|
575
|
-
readonly toolbox_near_no_account: 90611;
|
|
576
|
-
readonly toolbox_near_no_rpc_url: 90606;
|
|
528
|
+
readonly wallet_walletconnect_project_id_not_specified: 20401;
|
|
529
|
+
readonly wallet_walletconnect_connection_not_established: 20402;
|
|
530
|
+
readonly wallet_walletconnect_namespace_not_supported: 20403;
|
|
531
|
+
readonly wallet_walletconnect_chain_not_supported: 20404;
|
|
532
|
+
readonly wallet_walletconnect_invalid_method: 20405;
|
|
533
|
+
readonly wallet_walletconnect_method_not_supported: 20406;
|
|
577
534
|
/**
|
|
578
|
-
*
|
|
535
|
+
* Wallets - Trezor
|
|
579
536
|
*/
|
|
580
|
-
readonly
|
|
581
|
-
readonly
|
|
537
|
+
readonly wallet_trezor_failed_to_sign_transaction: 20501;
|
|
538
|
+
readonly wallet_trezor_derivation_path_not_supported: 20502;
|
|
539
|
+
readonly wallet_trezor_failed_to_get_address: 20503;
|
|
540
|
+
readonly wallet_trezor_transport_error: 20504;
|
|
541
|
+
readonly wallet_trezor_method_not_supported: 20505;
|
|
582
542
|
/**
|
|
583
|
-
*
|
|
543
|
+
* Wallets - Talisman
|
|
584
544
|
*/
|
|
585
|
-
readonly
|
|
545
|
+
readonly wallet_talisman_not_enabled: 20601;
|
|
546
|
+
readonly wallet_talisman_not_found: 20602;
|
|
586
547
|
/**
|
|
587
|
-
*
|
|
548
|
+
* Wallets - Polkadot
|
|
588
549
|
*/
|
|
589
|
-
readonly
|
|
590
|
-
readonly toolbox_ripple_asset_not_supported: 50704;
|
|
591
|
-
readonly toolbox_ripple_broadcast_error: 50705;
|
|
550
|
+
readonly wallet_polkadot_not_found: 20701;
|
|
592
551
|
/**
|
|
593
|
-
*
|
|
552
|
+
* Wallets - Radix
|
|
594
553
|
*/
|
|
595
|
-
readonly
|
|
596
|
-
readonly
|
|
597
|
-
readonly
|
|
598
|
-
readonly
|
|
554
|
+
readonly wallet_radix_not_found: 20801;
|
|
555
|
+
readonly wallet_radix_transaction_failed: 20802;
|
|
556
|
+
readonly wallet_radix_invalid_manifest: 20803;
|
|
557
|
+
readonly wallet_radix_method_not_supported: 20804;
|
|
558
|
+
readonly wallet_radix_no_account: 20805;
|
|
599
559
|
/**
|
|
600
|
-
*
|
|
560
|
+
* Wallets - KeepKey
|
|
601
561
|
*/
|
|
602
|
-
readonly
|
|
562
|
+
readonly wallet_keepkey_not_found: 20901;
|
|
563
|
+
readonly wallet_keepkey_asset_not_defined: 20902;
|
|
564
|
+
readonly wallet_keepkey_contract_address_not_provided: 20903;
|
|
565
|
+
readonly wallet_keepkey_send_transaction_no_address: 20904;
|
|
566
|
+
readonly wallet_keepkey_derivation_path_error: 20905;
|
|
567
|
+
readonly wallet_keepkey_signing_error: 20906;
|
|
568
|
+
readonly wallet_keepkey_transport_error: 20907;
|
|
569
|
+
readonly wallet_keepkey_unsupported_chain: 20908;
|
|
570
|
+
readonly wallet_keepkey_invalid_response: 20909;
|
|
571
|
+
readonly wallet_keepkey_chain_not_supported: 20910;
|
|
572
|
+
readonly wallet_keepkey_signer_not_found: 20911;
|
|
573
|
+
readonly wallet_keepkey_no_accounts: 20912;
|
|
574
|
+
readonly wallet_keepkey_method_not_supported: 20913;
|
|
575
|
+
readonly wallet_keepkey_invalid_params: 20914;
|
|
576
|
+
readonly wallet_keepkey_config_not_found: 20915;
|
|
577
|
+
readonly wallet_keepkey_no_provider: 20916;
|
|
578
|
+
readonly wallet_keepkey_account_not_found: 20917;
|
|
603
579
|
/**
|
|
604
|
-
*
|
|
580
|
+
* Wallets - BitKeep/BitGet
|
|
605
581
|
*/
|
|
606
|
-
readonly
|
|
607
|
-
readonly
|
|
608
|
-
readonly
|
|
609
|
-
readonly toolbox_tron_fee_estimation_failed: 50805;
|
|
610
|
-
readonly toolbox_tron_invalid_token_contract: 50808;
|
|
611
|
-
readonly toolbox_tron_invalid_token_identifier: 50802;
|
|
582
|
+
readonly wallet_bitkeep_not_found: 21001;
|
|
583
|
+
readonly wallet_bitkeep_failed_to_switch_network: 21002;
|
|
584
|
+
readonly wallet_bitkeep_no_accounts: 21003;
|
|
612
585
|
/**
|
|
613
|
-
*
|
|
586
|
+
* Wallets - Exodus
|
|
614
587
|
*/
|
|
615
|
-
readonly
|
|
616
|
-
readonly
|
|
617
|
-
readonly
|
|
618
|
-
readonly
|
|
588
|
+
readonly wallet_exodus_sign_transaction_error: 21101;
|
|
589
|
+
readonly wallet_exodus_not_found: 21102;
|
|
590
|
+
readonly wallet_exodus_no_address: 21103;
|
|
591
|
+
readonly wallet_exodus_request_canceled: 21104;
|
|
592
|
+
readonly wallet_exodus_signature_canceled: 21105;
|
|
593
|
+
readonly wallet_exodus_failed_to_switch_network: 21106;
|
|
594
|
+
readonly wallet_exodus_chain_not_supported: 21107;
|
|
595
|
+
readonly wallet_exodus_instance_missing: 21108;
|
|
619
596
|
/**
|
|
620
|
-
*
|
|
597
|
+
* Wallets - OneKey
|
|
621
598
|
*/
|
|
622
|
-
readonly
|
|
623
|
-
readonly
|
|
624
|
-
readonly toolbox_utxo_insufficient_balance: 50303;
|
|
625
|
-
readonly toolbox_utxo_invalid_address: 50304;
|
|
626
|
-
readonly toolbox_utxo_invalid_params: 50305;
|
|
627
|
-
readonly toolbox_utxo_invalid_transaction: 50306;
|
|
628
|
-
readonly toolbox_utxo_no_signer: 50307;
|
|
629
|
-
readonly toolbox_utxo_not_supported: 50308;
|
|
630
|
-
readonly wallet_bitkeep_failed_to_switch_network: 21002;
|
|
631
|
-
readonly wallet_bitkeep_no_accounts: 21003;
|
|
599
|
+
readonly wallet_onekey_not_found: 21201;
|
|
600
|
+
readonly wallet_onekey_sign_transaction_error: 21202;
|
|
632
601
|
/**
|
|
633
|
-
* Wallets -
|
|
602
|
+
* Wallets - OKX
|
|
634
603
|
*/
|
|
635
|
-
readonly
|
|
636
|
-
readonly
|
|
637
|
-
readonly
|
|
638
|
-
readonly
|
|
639
|
-
readonly wallet_coinbase_no_accounts: 21704;
|
|
604
|
+
readonly wallet_okx_not_found: 21301;
|
|
605
|
+
readonly wallet_okx_chain_not_supported: 21302;
|
|
606
|
+
readonly wallet_okx_failed_to_switch_network: 21303;
|
|
607
|
+
readonly wallet_okx_no_accounts: 21304;
|
|
640
608
|
/**
|
|
641
|
-
* Wallets -
|
|
609
|
+
* Wallets - Keplr
|
|
642
610
|
*/
|
|
643
|
-
readonly
|
|
611
|
+
readonly wallet_keplr_not_found: 21401;
|
|
612
|
+
readonly wallet_keplr_chain_not_supported: 21402;
|
|
613
|
+
readonly wallet_keplr_signer_not_found: 21403;
|
|
614
|
+
readonly wallet_keplr_no_accounts: 21404;
|
|
644
615
|
/**
|
|
645
|
-
* Wallets -
|
|
616
|
+
* Wallets - Cosmostation
|
|
646
617
|
*/
|
|
647
|
-
readonly
|
|
618
|
+
readonly wallet_cosmostation_not_found: 21501;
|
|
648
619
|
readonly wallet_cosmostation_chain_not_supported: 21502;
|
|
649
620
|
readonly wallet_cosmostation_evm_provider_not_found: 21503;
|
|
650
621
|
readonly wallet_cosmostation_keplr_provider_not_found: 21504;
|
|
651
622
|
readonly wallet_cosmostation_no_accounts: 21505;
|
|
652
623
|
readonly wallet_cosmostation_no_evm_accounts: 21506;
|
|
653
624
|
readonly wallet_cosmostation_no_evm_address: 21507;
|
|
625
|
+
readonly wallet_cosmostation_signer_not_found: 21508;
|
|
654
626
|
/**
|
|
655
|
-
* Wallets -
|
|
627
|
+
* Wallets - XDefi
|
|
656
628
|
*/
|
|
657
|
-
readonly
|
|
658
|
-
readonly
|
|
659
|
-
readonly wallet_ctrl_asset_not_defined: 20304;
|
|
660
|
-
readonly wallet_ctrl_contract_address_not_provided: 20303;
|
|
629
|
+
readonly wallet_xdefi_not_found: 21601;
|
|
630
|
+
readonly wallet_xdefi_chain_not_supported: 21602;
|
|
661
631
|
/**
|
|
662
|
-
* Wallets -
|
|
632
|
+
* Wallets - Coinbase
|
|
663
633
|
*/
|
|
664
|
-
readonly
|
|
665
|
-
readonly
|
|
634
|
+
readonly wallet_coinbase_not_found: 21701;
|
|
635
|
+
readonly wallet_coinbase_chain_not_supported: 21702;
|
|
636
|
+
readonly wallet_coinbase_method_not_supported: 21703;
|
|
637
|
+
readonly wallet_coinbase_no_accounts: 21704;
|
|
666
638
|
/**
|
|
667
639
|
* Wallets - EVM Extensions
|
|
668
640
|
*/
|
|
669
641
|
readonly wallet_evm_extensions_failed_to_switch_network: 21801;
|
|
670
642
|
readonly wallet_evm_extensions_no_provider: 21802;
|
|
671
643
|
readonly wallet_evm_extensions_not_found: 21803;
|
|
672
|
-
readonly wallet_exodus_chain_not_supported: 21107;
|
|
673
|
-
readonly wallet_exodus_failed_to_switch_network: 21106;
|
|
674
|
-
readonly wallet_exodus_instance_missing: 21108;
|
|
675
|
-
readonly wallet_exodus_no_address: 21103;
|
|
676
|
-
readonly wallet_exodus_not_found: 21102;
|
|
677
|
-
readonly wallet_exodus_request_canceled: 21104;
|
|
678
|
-
/**
|
|
679
|
-
* Wallets - Exodus
|
|
680
|
-
*/
|
|
681
|
-
readonly wallet_exodus_sign_transaction_error: 21101;
|
|
682
|
-
readonly wallet_exodus_signature_canceled: 21105;
|
|
683
|
-
readonly wallet_failed_to_add_or_switch_network: 20006;
|
|
684
|
-
readonly wallet_keepkey_account_not_found: 20917;
|
|
685
|
-
readonly wallet_keepkey_asset_not_defined: 20902;
|
|
686
|
-
readonly wallet_keepkey_chain_not_supported: 20910;
|
|
687
|
-
readonly wallet_keepkey_config_not_found: 20915;
|
|
688
|
-
readonly wallet_keepkey_contract_address_not_provided: 20903;
|
|
689
|
-
readonly wallet_keepkey_derivation_path_error: 20905;
|
|
690
|
-
readonly wallet_keepkey_invalid_params: 20914;
|
|
691
|
-
readonly wallet_keepkey_invalid_response: 20909;
|
|
692
|
-
readonly wallet_keepkey_method_not_supported: 20913;
|
|
693
|
-
readonly wallet_keepkey_no_accounts: 20912;
|
|
694
|
-
readonly wallet_keepkey_no_provider: 20916;
|
|
695
|
-
/**
|
|
696
|
-
* Wallets - KeepKey
|
|
697
|
-
*/
|
|
698
|
-
readonly wallet_keepkey_not_found: 20901;
|
|
699
|
-
readonly wallet_keepkey_send_transaction_no_address: 20904;
|
|
700
|
-
readonly wallet_keepkey_signer_not_found: 20911;
|
|
701
|
-
readonly wallet_keepkey_signing_error: 20906;
|
|
702
|
-
readonly wallet_keepkey_transport_error: 20907;
|
|
703
|
-
readonly wallet_keepkey_unsupported_chain: 20908;
|
|
704
|
-
readonly wallet_keplr_chain_not_supported: 21402;
|
|
705
|
-
readonly wallet_keplr_no_accounts: 21404;
|
|
706
|
-
/**
|
|
707
|
-
* Wallets - Keplr
|
|
708
|
-
*/
|
|
709
|
-
readonly wallet_keplr_not_found: 21401;
|
|
710
|
-
readonly wallet_keplr_signer_not_found: 21403;
|
|
711
644
|
/**
|
|
712
645
|
* Wallets - Keystore
|
|
713
646
|
*/
|
|
714
647
|
readonly wallet_keystore_invalid_password: 21901;
|
|
715
648
|
readonly wallet_keystore_unsupported_version: 21902;
|
|
716
|
-
readonly wallet_ledger_address_not_found: 20122;
|
|
717
|
-
readonly wallet_ledger_app_not_open: 20110;
|
|
718
|
-
readonly wallet_ledger_chain_not_supported: 20119;
|
|
719
|
-
readonly wallet_ledger_connection_claimed: 20102;
|
|
720
|
-
/**
|
|
721
|
-
* Wallets - Ledger
|
|
722
|
-
*/
|
|
723
|
-
readonly wallet_ledger_connection_error: 20101;
|
|
724
|
-
readonly wallet_ledger_derivation_path_error: 20108;
|
|
725
|
-
readonly wallet_ledger_device_locked: 20105;
|
|
726
|
-
readonly wallet_ledger_device_not_found: 20104;
|
|
727
|
-
readonly wallet_ledger_failed_to_get_address: 20123;
|
|
728
|
-
readonly wallet_ledger_get_address_error: 20103;
|
|
729
|
-
readonly wallet_ledger_invalid_account: 20121;
|
|
730
|
-
readonly wallet_ledger_invalid_asset: 20120;
|
|
731
|
-
readonly wallet_ledger_invalid_params: 20113;
|
|
732
|
-
readonly wallet_ledger_invalid_response: 20111;
|
|
733
|
-
readonly wallet_ledger_invalid_signature: 20114;
|
|
734
|
-
readonly wallet_ledger_method_not_supported: 20112;
|
|
735
|
-
readonly wallet_ledger_no_provider: 20115;
|
|
736
|
-
readonly wallet_ledger_pubkey_not_found: 20116;
|
|
737
|
-
readonly wallet_ledger_public_key_error: 20107;
|
|
738
|
-
readonly wallet_ledger_signing_error: 20109;
|
|
739
|
-
readonly wallet_ledger_transport_error: 20106;
|
|
740
|
-
readonly wallet_ledger_transport_not_defined: 20117;
|
|
741
|
-
readonly wallet_ledger_webusb_not_supported: 20118;
|
|
742
|
-
readonly wallet_locked: 20007;
|
|
743
|
-
readonly wallet_missing_api_key: 20002;
|
|
744
|
-
readonly wallet_missing_params: 20004;
|
|
745
649
|
/**
|
|
746
650
|
* Wallets - Near Extensions
|
|
747
651
|
*/
|
|
@@ -749,78 +653,177 @@ export declare class SwapKitError extends Error {
|
|
|
749
653
|
readonly wallet_near_extensions_no_provider: 22002;
|
|
750
654
|
readonly wallet_near_extensions_not_found: 22003;
|
|
751
655
|
readonly wallet_near_method_not_supported: 22003;
|
|
752
|
-
readonly wallet_okx_chain_not_supported: 21302;
|
|
753
|
-
readonly wallet_okx_failed_to_switch_network: 21303;
|
|
754
|
-
readonly wallet_okx_no_accounts: 21304;
|
|
755
656
|
/**
|
|
756
|
-
* Wallets -
|
|
657
|
+
* Wallets - Vultisig
|
|
757
658
|
*/
|
|
758
|
-
readonly
|
|
659
|
+
readonly wallet_vultisig_not_found: 22101;
|
|
660
|
+
readonly wallet_vultisig_contract_address_not_provided: 22102;
|
|
661
|
+
readonly wallet_vultisig_asset_not_defined: 22103;
|
|
662
|
+
readonly wallet_vultisig_send_transaction_no_address: 22104;
|
|
759
663
|
/**
|
|
760
|
-
* Wallets -
|
|
664
|
+
* Wallets - Xaman
|
|
761
665
|
*/
|
|
762
|
-
readonly
|
|
763
|
-
readonly
|
|
666
|
+
readonly wallet_xaman_not_configured: 23001;
|
|
667
|
+
readonly wallet_xaman_not_connected: 23002;
|
|
668
|
+
readonly wallet_xaman_auth_failed: 23003;
|
|
669
|
+
readonly wallet_xaman_connection_failed: 23004;
|
|
670
|
+
readonly wallet_xaman_transaction_failed: 23005;
|
|
671
|
+
readonly wallet_xaman_monitoring_failed: 23006;
|
|
764
672
|
/**
|
|
765
|
-
*
|
|
673
|
+
* Chainflip
|
|
766
674
|
*/
|
|
767
|
-
readonly
|
|
675
|
+
readonly chainflip_channel_error: 30001;
|
|
676
|
+
readonly chainflip_unknown_asset: 30002;
|
|
768
677
|
/**
|
|
769
|
-
*
|
|
678
|
+
* Chainflip - Broker
|
|
770
679
|
*/
|
|
771
|
-
readonly
|
|
772
|
-
readonly
|
|
773
|
-
readonly
|
|
774
|
-
readonly
|
|
775
|
-
readonly
|
|
680
|
+
readonly chainflip_broker_invalid_params: 30101;
|
|
681
|
+
readonly chainflip_broker_recipient_error: 30102;
|
|
682
|
+
readonly chainflip_broker_register: 30103;
|
|
683
|
+
readonly chainflip_broker_tx_error: 30104;
|
|
684
|
+
readonly chainflip_broker_withdraw: 30105;
|
|
685
|
+
readonly chainflip_broker_fund_only_flip_supported: 30106;
|
|
686
|
+
readonly chainflip_broker_fund_invalid_address: 30107;
|
|
776
687
|
/**
|
|
777
|
-
*
|
|
688
|
+
* THORChain
|
|
778
689
|
*/
|
|
779
|
-
readonly
|
|
780
|
-
readonly
|
|
690
|
+
readonly thorchain_chain_halted: 40001;
|
|
691
|
+
readonly thorchain_trading_halted: 40002;
|
|
692
|
+
readonly thorchain_asset_is_not_tcy: 40003;
|
|
781
693
|
/**
|
|
782
|
-
*
|
|
694
|
+
* THORChain - Swap
|
|
783
695
|
*/
|
|
784
|
-
readonly
|
|
785
|
-
readonly
|
|
786
|
-
readonly
|
|
787
|
-
readonly
|
|
696
|
+
readonly thorchain_swapin_router_required: 40101;
|
|
697
|
+
readonly thorchain_swapin_vault_required: 40102;
|
|
698
|
+
readonly thorchain_swapin_memo_required: 40103;
|
|
699
|
+
readonly thorchain_swapin_token_required: 40104;
|
|
700
|
+
readonly thorchain_preferred_asset_payout_required: 40105;
|
|
788
701
|
/**
|
|
789
|
-
*
|
|
702
|
+
* Toolboxes - Cosmos
|
|
790
703
|
*/
|
|
791
|
-
readonly
|
|
792
|
-
readonly
|
|
793
|
-
readonly
|
|
794
|
-
readonly
|
|
795
|
-
readonly
|
|
704
|
+
readonly toolbox_cosmos_account_not_found: 50101;
|
|
705
|
+
readonly toolbox_cosmos_invalid_fee: 50102;
|
|
706
|
+
readonly toolbox_cosmos_invalid_params: 50103;
|
|
707
|
+
readonly toolbox_cosmos_no_signer: 50104;
|
|
708
|
+
readonly toolbox_cosmos_not_supported: 50105;
|
|
709
|
+
readonly toolbox_cosmos_signer_not_defined: 50106;
|
|
710
|
+
readonly toolbox_cosmos_validate_address_prefix_not_found: 50107;
|
|
711
|
+
readonly toolbox_cosmos_verify_signature_no_pubkey: 50108;
|
|
796
712
|
/**
|
|
797
|
-
*
|
|
713
|
+
* Toolboxes - EVM
|
|
798
714
|
*/
|
|
799
|
-
readonly
|
|
800
|
-
readonly
|
|
801
|
-
readonly
|
|
802
|
-
readonly
|
|
803
|
-
readonly
|
|
804
|
-
readonly
|
|
805
|
-
readonly
|
|
715
|
+
readonly toolbox_evm_error_estimating_gas_limit: 50201;
|
|
716
|
+
readonly toolbox_evm_error_sending_transaction: 50202;
|
|
717
|
+
readonly toolbox_evm_gas_estimation_error: 50203;
|
|
718
|
+
readonly toolbox_evm_invalid_gas_asset_address: 50204;
|
|
719
|
+
readonly toolbox_evm_invalid_params: 50205;
|
|
720
|
+
readonly toolbox_evm_invalid_transaction: 50206;
|
|
721
|
+
readonly toolbox_evm_no_abi_fragment: 50207;
|
|
722
|
+
readonly toolbox_evm_no_contract_address: 50208;
|
|
723
|
+
readonly toolbox_evm_no_fee_data: 50209;
|
|
724
|
+
readonly toolbox_evm_no_from_address: 50210;
|
|
725
|
+
readonly toolbox_evm_no_gas_price: 50211;
|
|
726
|
+
readonly toolbox_evm_no_signer_address: 50212;
|
|
727
|
+
readonly toolbox_evm_no_signer: 50213;
|
|
728
|
+
readonly toolbox_evm_no_to_address: 50214;
|
|
729
|
+
readonly toolbox_evm_not_supported: 50215;
|
|
730
|
+
readonly toolbox_evm_provider_not_eip1193_compatible: 50216;
|
|
806
731
|
/**
|
|
807
|
-
*
|
|
732
|
+
* Toolboxes - UTXO
|
|
808
733
|
*/
|
|
809
|
-
readonly
|
|
810
|
-
readonly
|
|
811
|
-
readonly
|
|
812
|
-
readonly
|
|
734
|
+
readonly toolbox_utxo_api_error: 50301;
|
|
735
|
+
readonly toolbox_utxo_broadcast_failed: 50302;
|
|
736
|
+
readonly toolbox_utxo_insufficient_balance: 50303;
|
|
737
|
+
readonly toolbox_utxo_invalid_address: 50304;
|
|
738
|
+
readonly toolbox_utxo_invalid_params: 50305;
|
|
739
|
+
readonly toolbox_utxo_invalid_transaction: 50306;
|
|
740
|
+
readonly toolbox_utxo_no_signer: 50307;
|
|
741
|
+
readonly toolbox_utxo_not_supported: 50308;
|
|
813
742
|
/**
|
|
814
|
-
*
|
|
743
|
+
* Toolboxes - Solana
|
|
815
744
|
*/
|
|
816
|
-
readonly
|
|
817
|
-
readonly
|
|
818
|
-
readonly wallet_xaman_transaction_failed: 23005;
|
|
819
|
-
readonly wallet_xdefi_chain_not_supported: 21602;
|
|
745
|
+
readonly toolbox_solana_no_signer: 50401;
|
|
746
|
+
readonly toolbox_solana_fee_estimation_failed: 50402;
|
|
820
747
|
/**
|
|
821
|
-
*
|
|
748
|
+
* Toolboxes - Substrate
|
|
822
749
|
*/
|
|
823
|
-
readonly
|
|
750
|
+
readonly toolbox_substrate_not_supported: 50501;
|
|
751
|
+
readonly toolbox_substrate_transfer_error: 50502;
|
|
752
|
+
/**
|
|
753
|
+
* Toolboxes - Radix
|
|
754
|
+
*/
|
|
755
|
+
readonly toolbox_radix_method_not_supported: 50601;
|
|
756
|
+
/**
|
|
757
|
+
* Toolboxes - Ripple
|
|
758
|
+
*/
|
|
759
|
+
readonly toolbox_ripple_get_balance_error: 50701;
|
|
760
|
+
readonly toolbox_ripple_rpc_not_configured: 50702;
|
|
761
|
+
readonly toolbox_ripple_signer_not_found: 50703;
|
|
762
|
+
readonly toolbox_ripple_asset_not_supported: 50704;
|
|
763
|
+
readonly toolbox_ripple_broadcast_error: 50705;
|
|
764
|
+
/**
|
|
765
|
+
* Toolboxes - Tron
|
|
766
|
+
*/
|
|
767
|
+
readonly toolbox_tron_no_signer: 50801;
|
|
768
|
+
readonly toolbox_tron_invalid_token_identifier: 50802;
|
|
769
|
+
readonly toolbox_tron_token_transfer_failed: 50803;
|
|
770
|
+
readonly toolbox_tron_transaction_creation_failed: 50804;
|
|
771
|
+
readonly toolbox_tron_fee_estimation_failed: 50805;
|
|
772
|
+
readonly toolbox_tron_trongrid_api_error: 50806;
|
|
773
|
+
readonly toolbox_tron_approve_failed: 50807;
|
|
774
|
+
readonly toolbox_tron_invalid_token_contract: 50808;
|
|
775
|
+
readonly toolbox_tron_allowance_check_failed: 50809;
|
|
776
|
+
/**
|
|
777
|
+
* Toolboxes - Near
|
|
778
|
+
*/
|
|
779
|
+
readonly toolbox_near_no_signer: 90601;
|
|
780
|
+
readonly toolbox_near_invalid_address: 90602;
|
|
781
|
+
readonly toolbox_near_invalid_amount: 90603;
|
|
782
|
+
readonly toolbox_near_transfer_failed: 90604;
|
|
783
|
+
readonly toolbox_near_access_key_error: 90605;
|
|
784
|
+
readonly toolbox_near_no_rpc_url: 90606;
|
|
785
|
+
readonly toolbox_near_empty_batch: 90607;
|
|
786
|
+
readonly toolbox_near_balance_failed: 90608;
|
|
787
|
+
readonly toolbox_near_invalid_name: 90609;
|
|
788
|
+
readonly toolbox_near_missing_contract_address: 90610;
|
|
789
|
+
readonly toolbox_near_no_account: 90611;
|
|
790
|
+
readonly toolbox_near_invalid_gas_params: 90612;
|
|
791
|
+
/**
|
|
792
|
+
* Toolboxes - General
|
|
793
|
+
*/
|
|
794
|
+
readonly toolbox_not_supported: 59901;
|
|
795
|
+
/**
|
|
796
|
+
* NEAR Plugin
|
|
797
|
+
*/
|
|
798
|
+
readonly plugin_near_invalid_name: 41001;
|
|
799
|
+
readonly plugin_near_no_connection: 41002;
|
|
800
|
+
readonly plugin_near_name_unavailable: 41003;
|
|
801
|
+
readonly plugin_near_registration_failed: 41004;
|
|
802
|
+
readonly plugin_near_transfer_failed: 41005;
|
|
803
|
+
/**
|
|
804
|
+
* SwapKit API
|
|
805
|
+
*/
|
|
806
|
+
readonly api_v2_invalid_response: 60001;
|
|
807
|
+
readonly api_v2_server_error: 60002;
|
|
808
|
+
readonly api_v2_invalid_method_key_hash: 60003;
|
|
809
|
+
/**
|
|
810
|
+
* Helpers
|
|
811
|
+
*/
|
|
812
|
+
readonly helpers_invalid_number_different_decimals: 70001;
|
|
813
|
+
readonly helpers_invalid_number_of_years: 70002;
|
|
814
|
+
readonly helpers_invalid_identifier: 70003;
|
|
815
|
+
readonly helpers_invalid_asset_url: 70004;
|
|
816
|
+
readonly helpers_invalid_asset_identifier: 70005;
|
|
817
|
+
readonly helpers_invalid_memo_type: 70006;
|
|
818
|
+
readonly helpers_failed_to_switch_network: 70007;
|
|
819
|
+
readonly helpers_not_found_provider: 70008;
|
|
820
|
+
readonly helpers_chain_not_supported: 70009;
|
|
821
|
+
readonly helpers_invalid_params: 70010;
|
|
822
|
+
readonly helpers_invalid_response: 70011;
|
|
823
|
+
/**
|
|
824
|
+
* Anything else
|
|
825
|
+
*/
|
|
826
|
+
readonly not_implemented: 99999;
|
|
824
827
|
};
|
|
825
828
|
constructor(errorOrErrorKey: ErrorKeys | {
|
|
826
829
|
errorKey: ErrorKeys;
|