Skip to content

FirmaChain/firmachain-faucet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FirmaChain Testnet/Devnet Faucet

image

Website : https://faucet-testnet.firmachain.dev/

FirmaChain Faucet is a web service to obtain coins in testnet and devnet environments.

The coin provided should be used only for testing purposes. Also, we are not responsible for issues related to testnet/devnet coin.

WARNING: The coin obtained through faucet is not compatible with the coin of mainnet and has no value.

How to bulid Firma-Faucet

1. Install and Run

npm install
npm start:local

2. Create .env.local for mnemonic of faucet

FAUCET_MNEMONIC='twist real vast bronze phrase impose million equip claim flight scatter embark nation thumb easy mother walk income talent better lesson horse arrest any'

3. Google reCAPTHA configration

Add site_key to .env.local (RECAPTCHA_SITEKEY)

RECAPTCHA_SITEKEY=8as9dfaasAAAKEflsefjJPk8wHPL4yGg6AHzfDh-

# Disable reCAPTCHA

// line - 129
const reCaptchaSiteKey = process.env.REACT_APP_RECAPTCHA_SITEKEY;

// line - 218
const activateSendProcess = () => {
    if(sendAddressInput === ''){
        handleAlertOpen('Please fill in Address', 5000, 'error');
        return;
    }

    if(sendAddressInput === nftMode.enable){
        OptionActions.setNftMode(true);
        return;
    } else if(sendAddressInput === nftMode.disable){
        OptionActions.setNftMode(false);
        return;
    }
    
    // line - 232
    // setOpenRecaptcha() => sendAddress()
    setOpenRecaptcha(true);
}

// line - 367
{openRecaptcha &&
    <ReCaptchaBox>
        <ReCAPTCHA 
            style={{ display: "inline-block", height: '35px'}}
            theme="light"
            sitekey={reCaptchaSiteKey}
            onChange={handleRecaptcha}
        />
    </ReCaptchaBox>
}