Merge pull request #5080 from mempool/nymkappa/faucet-polish

[faucet] polish code and UX - Move Twitter login component into FOSS
This commit is contained in:
wiz
2024-05-19 08:25:08 +09:00
committed by GitHub
10 changed files with 215 additions and 147 deletions

View File

@@ -161,7 +161,7 @@ export class ServicesApiServices {
}
getFaucetStatus$() {
return this.httpClient.get<{ address?: string, access: boolean, min: number, user_max: number, user_requests: number }>(`${SERVICES_API_PREFIX}/testnet4/faucet/status`, { responseType: 'json' });
return this.httpClient.get<{ address?: string, min: number, max: number, code: 'ok' | 'faucet_not_available' | 'faucet_maximum_reached' | 'faucet_too_soon'}>(`${SERVICES_API_PREFIX}/testnet4/faucet/status`, { responseType: 'json' });
}
requestTestnet4Coins$(address: string, sats: number) {