[faucet] add new error message when no utxo available

This commit is contained in:
nymkappa 2024-12-22 22:40:35 +08:00
parent ddcf745722
commit c9b9485313
No known key found for this signature in database
GPG Key ID: 92358FC85D9645DE
2 changed files with 2 additions and 1 deletions

View File

@ -24,7 +24,7 @@ export class FaucetComponent implements OnInit, OnDestroy {
min: number; // minimum amount to request at once (in sats)
max: number; // maximum amount to request at once
address?: string; // faucet address
code: 'ok' | 'faucet_not_available' | 'faucet_maximum_reached' | 'faucet_too_soon';
code: 'ok' | 'faucet_not_available' | 'faucet_maximum_reached' | 'faucet_too_soon' | 'faucet_not_available_no_utxo';
} | null = null;
faucetForm: FormGroup;

View File

@ -26,6 +26,7 @@ export const MempoolErrors = {
'unauthorized': `You are not authorized to do this`,
'faucet_too_soon': `You cannot request any more coins right now. Try again later.`,
'faucet_not_available': `The faucet is not available right now. Try again later.`,
'faucet_not_available_no_utxo': `The faucet is not available right now. Please try again once a new block has been mined.`,
'faucet_maximum_reached': `You are not allowed to request more coins`,
'faucet_address_not_allowed': `You cannot use this address`,
'faucet_below_minimum': `Requested amount is too small`,