forked from cerc-io/laconic-faucet
Update package name and cosmjs dependencies #1
@@ -1,6 +1,5 @@
|
||||
[upstream]
|
||||
rpcEndpoint = "http://localhost:26657"
|
||||
chainId = "zenith-localtestnet"
|
||||
denom = "znt"
|
||||
prefix = "zenith"
|
||||
gasPrice = "1"
|
||||
|
||||
+1
-2
@@ -18,7 +18,6 @@ const FAUCET_DATA_TTL = 86400000; // 24 hrs
|
||||
interface Config {
|
||||
upstream: {
|
||||
rpcEndpoint: string
|
||||
chainId: string
|
||||
denom: string
|
||||
prefix: string
|
||||
gasPrice: string
|
||||
@@ -67,7 +66,7 @@ async function main (): Promise<void> {
|
||||
|
||||
try {
|
||||
const txHash = await sendTokens(config, accountAddress, String(config.server.transferAmount));
|
||||
console.log(`Sent tokens to address: ${accountAddress}, txHash: ${txHash}`);
|
||||
console.log(`Sent ${config.server.transferAmount}${config.upstream.denom} to address: ${accountAddress}, txHash: ${txHash}`);
|
||||
|
||||
// Update rate limit
|
||||
await faucetDataStore.set(faucetStoreKey, (BigInt(amountSentToAddress) + BigInt(config.server.transferAmount)).toString(), FAUCET_DATA_TTL);
|
||||
|
||||
Reference in New Issue
Block a user