diff --git a/apps/firebase/scripts/cli.ts b/apps/firebase/scripts/cli.ts index 84ecdb61c..4d1e1e2bd 100644 --- a/apps/firebase/scripts/cli.ts +++ b/apps/firebase/scripts/cli.ts @@ -13,7 +13,7 @@ yargs 'deploy:functions', 'Deploy Project firebase functions', (x) => x, - () => deployFunctions() + () => deployFunctions(), ) .command( 'accounts:get', @@ -24,7 +24,7 @@ yargs description: 'Name of network', demandOption: true, }), - (args) => printAccounts(args.net) + (args) => printAccounts(args.net), ) .command( 'accounts:clear', @@ -35,7 +35,7 @@ yargs description: 'Name of network', demandOption: true, }), - (args) => clearAccounts(args.net) + (args) => clearAccounts(args.net), ) .command( 'accounts:add
', @@ -56,7 +56,7 @@ yargs description: 'Address. Format 0x...', }) .demand(['pk', 'address']), - (args) => addAccount(args.net, args.pk, args.address) + (args) => addAccount(args.net, args.pk, args.address), ) .command( 'faucet:request ', @@ -73,7 +73,7 @@ yargs description: 'Address', demand: true, }), - (args) => enqueueFundRequest(args.net, args.to) + (args) => enqueueFundRequest(args.net, args.to), ) .command( 'config:get', @@ -83,7 +83,7 @@ yargs type: 'string', description: 'Name of network', }), - (args) => printConfig(args.net) + (args) => printConfig(args.net), ) .command( 'config:set', @@ -144,7 +144,7 @@ yargs if (args.deploy) { deployFunctions() } - } + }, ).argv function setConfig(network: string, config: Partial) { @@ -157,13 +157,13 @@ function setConfig(network: string, config: Partial) { setIfPresent('authenticated_gold_amount', config.authenticatedGoldAmount), setIfPresent( 'authenticated_stable_amount', - config.authenticatedStableAmount + config.authenticatedStableAmount, ), setIfPresent('big_faucet_safe_address', config.bigFaucetSafeAddress), setIfPresent('big_faucet_safe_amount', config.bigFaucetSafeAmount), setIfPresent( 'big_faucet_safe_stables_amount', - config.bigFaucetSafeStablesAmount + config.bigFaucetSafeStablesAmount, ), ].join(' ') execSync(`yarn firebase functions:config:set ${variables}`, { @@ -222,6 +222,6 @@ function deployFunctions() { `yarn firebase deploy --only functions:faucetRequestProcessor,functions:bigFaucetFunder,functions:topUp`, { stdio: 'inherit', - } + }, ) } diff --git a/apps/firebase/scripts/transfer-funds.ts b/apps/firebase/scripts/transfer-funds.ts index ccdedb68f..b7fd620e7 100644 --- a/apps/firebase/scripts/transfer-funds.ts +++ b/apps/firebase/scripts/transfer-funds.ts @@ -41,7 +41,7 @@ yargs console.error('Failed') console.error(err) } - } + }, ).argv async function transferFunds(args: { @@ -91,7 +91,7 @@ async function transferFunds(args: { console.log('receipt', await tx?.sendAndWaitForReceipt()) } await retryAsync(transferHelper, 3, [], 500) - }) + }), ) } diff --git a/apps/firebase/src/celo-adapter.ts b/apps/firebase/src/celo-adapter.ts index 81348a662..fcef9e8af 100644 --- a/apps/firebase/src/celo-adapter.ts +++ b/apps/firebase/src/celo-adapter.ts @@ -49,7 +49,7 @@ export class CeloAdapter { async transferGold( to: string, - amount: string + amount: string, ): Promise> { const goldToken = await this.kit.contracts.getGoldToken() return goldToken.transfer(to, amount) @@ -68,7 +68,7 @@ export class CeloAdapter { await this.kit.celoTokens.forStableCeloToken(async (info) => { try { const stableToken = await this.kit.celoTokens.getWrapper( - info.symbol as StableToken + info.symbol as StableToken, ) const faucetBalance = await stableToken.balanceOf(this.defaultAddress) const MIN_BALANCE_IN_WEI = '25000000000000000000000' // 25K @@ -81,7 +81,7 @@ export class CeloAdapter { if (mento) { const allowanceTxObj = await mento.increaseTradingAllowance( stableToken.address, - amount + amount, ) const allowanceTx = await this.signer.sendTransaction(allowanceTxObj) @@ -90,14 +90,14 @@ export class CeloAdapter { const quoteAmountOut = await mento.getAmountOut( stableToken.address, celoContractAddress, - amount + amount, ) const expectedAmountOut = quoteAmountOut.mul(99).div(100) // allow 1% slippage from quote const swapTxObj = await mento.swapIn( stableToken.address, celoContractAddress, amount, - expectedAmountOut + expectedAmountOut, ) const swapTx = await this.signer.sendTransaction(swapTxObj) return swapTx.wait() @@ -105,7 +105,7 @@ export class CeloAdapter { // Remove block once Broker contract issues are sorted out console.info('Using exchange contract for extra stables conversion') const exchangeContract = await this.kit.contracts.getContract( - info.exchangeContract + info.exchangeContract, ) const [quote] = await Promise.all([ @@ -117,7 +117,7 @@ export class CeloAdapter { const tx = exchangeContract.sellStable( amount, - quote.multipliedBy(0.99).integerValue(BigNumber.ROUND_UP) + quote.multipliedBy(0.99).integerValue(BigNumber.ROUND_UP), ) return tx.sendAndWaitForReceipt() } @@ -135,7 +135,7 @@ export class CeloAdapter { async transferStableTokens( to: string, amount: string, - alwaysTransfer: boolean = false + alwaysTransfer: boolean = false, ) { const mento = this.mento if (!mento && this.useMento) { @@ -146,7 +146,7 @@ export class CeloAdapter { return this.kit.celoTokens.forStableCeloToken( async (info: StableTokenInfo) => { const token = await this.kit.celoTokens.getWrapper( - info.symbol as StableToken + info.symbol as StableToken, ) const [faucetBalance, recipientBalance] = await Promise.all([ token.balanceOf(this.defaultAddress), @@ -158,21 +158,21 @@ export class CeloAdapter { const realAmount = this.fadeOutAmount( recipientBalance, amount, - alwaysTransfer + alwaysTransfer, ) if (realAmount.eq(0)) { console.info( `skipping ${ info.symbol - } for ${to} balance already ${recipientBalance.toString()}` + } for ${to} balance already ${recipientBalance.toString()}`, ) return false } console.info( `sending ${to} ${realAmount.toString()}${ info.symbol - }. Balance ${recipientBalance.toString()}` + }. Balance ${recipientBalance.toString()}`, ) if (faucetBalance.isLessThanOrEqualTo(realAmount)) { @@ -180,22 +180,22 @@ export class CeloAdapter { const quoteAmountIn = await mento.getAmountIn( celoToken.address, stableTokenAddr, - realAmount.toString() + realAmount.toString(), ) console.info( - `swap quote ${quoteAmountIn.toString()} for ${realAmount.toString()} ` + `swap quote ${quoteAmountIn.toString()} for ${realAmount.toString()} `, ) const maxCeloToTrade = quoteAmountIn.div(100).mul(103).toString() // 3% slippage await this.increaseAllowanceIfNeeded( new BigNumber(maxCeloToTrade), - info + info, ) const swapTxObj = await mento.swapOut( celoToken.address, stableTokenAddr, realAmount.toString(), - maxCeloToTrade.toString() + maxCeloToTrade.toString(), ) console.info('swap TX', swapTxObj) await this.signer.sendTransaction(swapTxObj) @@ -203,7 +203,7 @@ export class CeloAdapter { // Remove block once Broker contract issues are sorted out console.info('Using exchange contract for token swaps') const exchangeContract = await this.kit.contracts.getContract( - info.exchangeContract + info.exchangeContract, ) // this surprised me but if you want to send CELO and receive an Amount of stable, quoteGoldBuy is the function to call not quoteStableBuy @@ -214,7 +214,7 @@ export class CeloAdapter { .integerValue(BigNumber.ROUND_UP) await this.increaseAllowanceIfNeeded( maxCeloToTrade as unknown as BigNumber, - info + info, ) await exchangeContract @@ -224,7 +224,7 @@ export class CeloAdapter { } return token.transfer(to, realAmount.toString()) - } + }, ) } @@ -240,13 +240,13 @@ export class CeloAdapter { const allowance = await celoERC20Wrapper.allowance( this.defaultAddress, - brokerContractAddress + brokerContractAddress, ) if (allowance.isLessThanOrEqualTo(amount)) { // multiply by 10 so we don't have to be setting this for every transaction const allowanceTxObj = await mento.increaseTradingAllowance( celoERC20Wrapper.address, - amount.multipliedBy(10).integerValue(BigNumber.ROUND_UP).toString() + amount.multipliedBy(10).integerValue(BigNumber.ROUND_UP).toString(), ) const allowanceTx = await this.signer.sendTransaction(allowanceTxObj) const allowanceReceipt = await allowanceTx.wait() @@ -257,18 +257,18 @@ export class CeloAdapter { // Remove block once Broker contract issues are sorted out console.info('Increasing allowance with exchance contract') const exchangeContractAddress = await this.kit.registry.addressFor( - info.exchangeContract + info.exchangeContract, ) const allowance = await celoERC20Wrapper.allowance( this.defaultAddress, - exchangeContractAddress + exchangeContractAddress, ) if (allowance.isLessThanOrEqualTo(amount)) { // multiply by 10 so we don't have to be setting this for every transaction const transaction = celoERC20Wrapper.increaseAllowance( exchangeContractAddress, - amount.multipliedBy(10).integerValue(BigNumber.ROUND_UP) + amount.multipliedBy(10).integerValue(BigNumber.ROUND_UP), ) const receipt = await transaction.sendAndWaitForReceipt() console.log('increasedAllowance', receipt.transactionHash) @@ -281,7 +281,7 @@ export class CeloAdapter { tempWallet: string, amount: string, expirySeconds: number, - minAttestations: number + minAttestations: number, ): Promise> { const escrow = await this.kit.contracts.getEscrow() const stableToken = await this.kit.contracts.getStableToken() @@ -293,21 +293,21 @@ export class CeloAdapter { amount, expirySeconds, tempWallet, - minAttestations + minAttestations, ) } async getDollarsBalance( - accountAddress: string = this.defaultAddress + accountAddress: string = this.defaultAddress, ): Promise { const stableToken = await this.kit.contracts.getStableToken() return stableToken.balanceOf( - accountAddress + accountAddress, ) as unknown as Promise } async getGoldBalance( - accountAddress: string = this.defaultAddress + accountAddress: string = this.defaultAddress, ): Promise { const goldToken = await this.kit.contracts.getGoldToken() return goldToken.balanceOf(accountAddress) as unknown as Promise @@ -322,7 +322,7 @@ export class CeloAdapter { fadeOutAmount( recipientBalance: BigNumber, amount: string, - useGivenAmount: boolean + useGivenAmount: boolean, ) { const nextAmount = new BigNumber(amount) @@ -330,19 +330,19 @@ export class CeloAdapter { return nextAmount } else if ( recipientBalance.isGreaterThan( - HUNDRED_IN_WIE.multipliedBy(75).dividedBy(100) + HUNDRED_IN_WIE.multipliedBy(75).dividedBy(100), ) ) { return new BigNumber(0) } else if ( recipientBalance.isGreaterThan( - HUNDRED_IN_WIE.multipliedBy(50).dividedBy(100) + HUNDRED_IN_WIE.multipliedBy(50).dividedBy(100), ) ) { return nextAmount.dividedBy(4) } else if ( recipientBalance.isGreaterThan( - HUNDRED_IN_WIE.multipliedBy(25).dividedBy(100) + HUNDRED_IN_WIE.multipliedBy(25).dividedBy(100), ) ) { return nextAmount.dividedBy(2) diff --git a/apps/firebase/src/database-helper.ts b/apps/firebase/src/database-helper.ts index 764ac4d5c..deebcdbfd 100644 --- a/apps/firebase/src/database-helper.ts +++ b/apps/firebase/src/database-helper.ts @@ -51,7 +51,7 @@ enum RequestedTokenSet { export async function processRequest( snap: DataSnapshot, pool: AccountPool, - config: NetworkConfig + config: NetworkConfig, ) { const request = snap.val() as RequestRecord if (request.status !== RequestStatus.Pending) { @@ -60,7 +60,7 @@ export async function processRequest( await snap.ref.update({ status: RequestStatus.Working }) console.info( - `req(${snap.key}): Started working on ${request.type} request for:${request.beneficiary}` + `req(${snap.key}): Started working on ${request.type} request for:${request.beneficiary}`, ) try { @@ -112,14 +112,14 @@ export async function fundBigFaucet(pool: AccountPool, config: NetworkConfig) { sendCelo, 4, [celo, config.bigFaucetSafeAddress, config.bigFaucetSafeAmount], - 2500 + 2500, ), sendStableTokens( celo, config.bigFaucetSafeAddress, config.bigFaucetSafeStablesAmount, true, - snap + snap, ), ]) }) @@ -130,7 +130,7 @@ export async function fundBigFaucet(pool: AccountPool, config: NetworkConfig) { export async function topUpWithCEuros( pool: AccountPool, - config: NetworkConfig + config: NetworkConfig, ) { try { return await pool.doWithAccount(async (account) => { @@ -161,13 +161,13 @@ async function sendCelo(celo: CeloAdapter, to: string, amountInWei: string) { function buildHandleFaucet( request: RequestRecord, snap: DataSnapshot, - config: NetworkConfig + config: NetworkConfig, ) { return async (account: AccountRecord) => { const { nodeUrl } = config const { goldAmount, stableAmount } = getSendAmounts( request.authLevel, - config + config, ) const celo = new CeloAdapter({ nodeUrl, pk: account.pk }) await celo.init() @@ -183,8 +183,8 @@ function buildHandleFaucet( sendGold, 3, [celo, request.beneficiary, goldAmount, snap], - 500 - ) + 500, + ), ) } @@ -194,7 +194,7 @@ function buildHandleFaucet( request.tokens === undefined ) { ops.push( - sendStableTokens(celo, request.beneficiary, stableAmount, false, snap) + sendStableTokens(celo, request.beneficiary, stableAmount, false, snap), ) } @@ -204,7 +204,7 @@ function buildHandleFaucet( function getSendAmounts( authLevel: AuthLevel, - config: NetworkConfig + config: NetworkConfig, ): { goldAmount: string; stableAmount: string } { switch (authLevel) { case undefined: @@ -225,7 +225,7 @@ async function sendGold( celo: CeloAdapter, address: Address, amount: string, - snap: DataSnapshot + snap: DataSnapshot, ) { const token = await celo.kit.contracts.getGoldToken() @@ -236,7 +236,7 @@ async function sendGold( console.info( `req(${ snap.key - }): Sending ${actualAmount.toString()} celo to ${address} (balance ${recipientBalance.toString()})` + }): Sending ${actualAmount.toString()} celo to ${address} (balance ${recipientBalance.toString()})`, ) if (actualAmount.eq(0)) { console.info(`req(${snap.key}): CELO Transaction SKIPPED`) @@ -254,22 +254,22 @@ async function sendStableTokens( address: Address, amount: string, alwaysUseFullAmount: boolean, // when false if the recipient already has a sizeable balance the amount will gradually be reduced to zero - snap: DataSnapshot | { key: string; ref?: undefined } + snap: DataSnapshot | { key: string; ref?: undefined }, ) { const tokenTxs = await celo.transferStableTokens( address, amount, - alwaysUseFullAmount + alwaysUseFullAmount, ) const sendTxHelper = async ( symbol: string, - tx: CeloTransactionObject + tx: CeloTransactionObject, ) => { const txReceipt = await tx.sendAndWaitForReceipt() const txHash = txReceipt.transactionHash console.log( - `req(${snap.key}): ${symbol} Transaction Sent. txhash:${txHash}` + `req(${snap.key}): ${symbol} Transaction Sent. txhash:${txHash}`, ) if (snap.ref) { await snap.ref.update({ txHash }) @@ -286,17 +286,17 @@ async function sendStableTokens( } catch (e) { // Log that one transfer failed. if error is not caught it looks like all failed console.log( - `req(${snap.key}): tx=>${tx} ${symbol} Transaction Failed. ${e}` + `req(${snap.key}): tx=>${tx} ${symbol} Transaction Failed. ${e}`, ) } - }) + }), ) } function withTimeout( timeout: number, fn: () => Promise, - onTimeout?: () => A | Promise + onTimeout?: () => A | Promise, ): Promise { return new Promise((resolve, reject) => { let timeoutHandler: NodeJS.Timeout | null = setTimeout(() => { @@ -346,7 +346,7 @@ export class AccountPool { getAccountTimeoutMS: 10 * SECOND, retryWaitMS: 3000, actionTimeoutMS: 50 * SECOND, - } + }, ) { // is empty. } @@ -368,7 +368,7 @@ export class AccountPool { } async doWithAccount( - action: (account: AccountRecord) => Promise + action: (account: AccountRecord) => Promise, ): Promise { const accountSnap = await this.tryLockAccountWithRetries() if (!accountSnap) { @@ -382,7 +382,7 @@ export class AccountPool { await action(accountSnap.val()) return ActionResult.Ok }, - () => ActionResult.ActionTimeout + () => ActionResult.ActionTimeout, ) } finally { await accountSnap.child('locked').ref.set(false) @@ -414,12 +414,12 @@ export class AccountPool { const account = await withTimeout( this.options.getAccountTimeoutMS, loop, - onTimeout + onTimeout, ) if (account) { console.info( - `LockAccount: ${account.val().address} (after ${retries - 1} retries)` + `LockAccount: ${account.val().address} (after ${retries - 1} retries)`, ) } else { console.warn(`LockAccount: Failed`) diff --git a/apps/firebase/src/index.ts b/apps/firebase/src/index.ts index 91f1d4979..fc1459dde 100644 --- a/apps/firebase/src/index.ts +++ b/apps/firebase/src/index.ts @@ -45,7 +45,7 @@ export const bigFaucetFunder = functions.pubsub }) console.log( - `Big drip running on ${context.resource.name} with ${config.bigFaucetSafeAmount} CELO + ${config.bigFaucetSafeStablesAmount} cStables for ${config.bigFaucetSafeAddress}` + `Big drip running on ${context.resource.name} with ${config.bigFaucetSafeAmount} CELO + ${config.bigFaucetSafeStablesAmount} cStables for ${config.bigFaucetSafeAddress}`, ) await fundBigFaucet(pool, config) }) diff --git a/apps/firebase/src/metrics.ts b/apps/firebase/src/metrics.ts index 4ba7d6412..3f7119b18 100644 --- a/apps/firebase/src/metrics.ts +++ b/apps/firebase/src/metrics.ts @@ -43,7 +43,7 @@ function noBlockingSendEntry(entryData: Record) { export function logExecutionResult( snapKey: string | null, - result: ExecutionResult + result: ExecutionResult, ) { noBlockingSendEntry({ event: 'celo/faucet/result', diff --git a/apps/firebase/src/utils.ts b/apps/firebase/src/utils.ts index 672ea84c3..beb0722a8 100644 --- a/apps/firebase/src/utils.ts +++ b/apps/firebase/src/utils.ts @@ -1,6 +1,6 @@ export function withTimeLog( name: string, - f: (...args: any[]) => Promise + f: (...args: any[]) => Promise, ) { return async (...args: Parameters): Promise => { try { @@ -14,7 +14,7 @@ export function withTimeLog( export async function runWithTimeLog( name: string, - f: () => Promise + f: () => Promise, ): Promise { try { console.time(name) diff --git a/apps/web/components/faucet-status.tsx b/apps/web/components/faucet-status.tsx index d22842880..3346b9cef 100644 --- a/apps/web/components/faucet-status.tsx +++ b/apps/web/components/faucet-status.tsx @@ -33,7 +33,7 @@ export const FaucetStatus: FC = ({ setTimeout(reset, 2_000) } }, - [reset] + [reset], ) useEffect(() => { diff --git a/apps/web/components/request-form.tsx b/apps/web/components/request-form.tsx index b87efaf3e..c1047d775 100644 --- a/apps/web/components/request-form.tsx +++ b/apps/web/components/request-form.tsx @@ -74,7 +74,7 @@ export const RequestForm: FC = ({ isOutOfCELO, network }) => { setKey(result.key) } }, - [inputRef, executeRecaptcha, skipStables] + [inputRef, executeRecaptcha, skipStables], ) const onInvalid = useCallback((event: FormEvent) => { diff --git a/apps/web/components/setup-button.tsx b/apps/web/components/setup-button.tsx index ed153de0a..993fd8e28 100644 --- a/apps/web/components/setup-button.tsx +++ b/apps/web/components/setup-button.tsx @@ -37,8 +37,8 @@ export const SetupButton: FC = ({ network }) => { provider.request({ method: 'wallet_watchAsset', params, - }) - ) + }), + ), ) } catch (e: any) { console.error(e) @@ -81,20 +81,23 @@ interface TokenParams { } const chainTokenParams = Object.keys(tokens).reduce< Record ->((params, network) => { - params[network as Network] = tokens[network as Network].map( - ({ symbol, address }) => ({ - type: 'ERC20', - options: { - address, - symbol, - decimals: 18, - image: `https://reserve.mento.org/assets/tokens/${symbol}.svg`, // A string url of the token logo - }, - }) - ) - return params -}, {} as Record) +>( + (params, network) => { + params[network as Network] = tokens[network as Network].map( + ({ symbol, address }) => ({ + type: 'ERC20', + options: { + address, + symbol, + decimals: 18, + image: `https://reserve.mento.org/assets/tokens/${symbol}.svg`, // A string url of the token logo + }, + }), + ) + return params + }, + {} as Record, +) interface EthProvider { request: (a: { method: string; params?: unknown }) => Promise @@ -105,11 +108,11 @@ interface EthProvider { off(eventName: string | symbol, listener: (...args: any[]) => void): this addListener( eventName: string | symbol, - listener: (...args: any[]) => void + listener: (...args: any[]) => void, ): this removeListener( eventName: string | symbol, - listener: (...args: any[]) => void + listener: (...args: any[]) => void, ): this removeAllListeners(event?: string | symbol): this } diff --git a/apps/web/pages/[chain].tsx b/apps/web/pages/[chain].tsx index 31567f803..32085386f 100644 --- a/apps/web/pages/[chain].tsx +++ b/apps/web/pages/[chain].tsx @@ -111,7 +111,7 @@ function capitalize(word: string) { export default Home export const getServerSideProps: GetServerSideProps = async ( - context + context, ) => { const network = context.query.chain if (typeof network !== 'string' || !networks.includes(network)) { diff --git a/apps/web/pages/api/faucet.ts b/apps/web/pages/api/faucet.ts index 7aa306f3d..5c89988fc 100644 --- a/apps/web/pages/api/faucet.ts +++ b/apps/web/pages/api/faucet.ts @@ -13,7 +13,7 @@ import { sendRequest } from 'utils/firebase-serverside' export default async function handler( req: NextApiRequest, - res: NextApiResponse + res: NextApiResponse, ) { let authLevel = AuthLevel.none try { @@ -42,7 +42,7 @@ export default async function handler( beneficiary, skipStables, network, - authLevel + authLevel, ) res.status(200).json({ status: RequestStatus.Pending, key }) } catch (error) { @@ -55,7 +55,7 @@ export default async function handler( } else { console.error( 'Faucet Failed due to Recaptcha', - captchaResponse['error-codes'] + captchaResponse['error-codes'], ) res.status(401).json({ status: RequestStatus.Failed, diff --git a/apps/web/utils/captcha-verify.ts b/apps/web/utils/captcha-verify.ts index ee5d1e24f..b0072dcaf 100644 --- a/apps/web/utils/captcha-verify.ts +++ b/apps/web/utils/captcha-verify.ts @@ -17,7 +17,7 @@ interface RecaptchaResponse { } export async function captchaVerify( - captchaToken: string + captchaToken: string, ): Promise { const result = await fetch(CAPTCHA_URL, { method: 'POST', @@ -25,7 +25,7 @@ export async function captchaVerify( 'Content-Type': 'application/x-www-form-urlencoded', }, body: `secret=${encodeURIComponent( - process.env.RECAPTCHA_SECRET as string + process.env.RECAPTCHA_SECRET as string, )}&response=${encodeURIComponent(captchaToken)}`, }) diff --git a/apps/web/utils/firebase-client.ts b/apps/web/utils/firebase-client.ts index 24ea1548c..bcfe06b9e 100644 --- a/apps/web/utils/firebase-client.ts +++ b/apps/web/utils/firebase-client.ts @@ -24,10 +24,10 @@ async function getDB(): Promise { export async function subscribeRequest( key: string, onChange: (record: RequestRecord) => void, - network: Network + network: Network, ) { const ref: firebase.database.Reference = (await getDB()).ref( - `${network}/requests/${key}` + `${network}/requests/${key}`, ) const listener = ref.on('value', (snap) => { diff --git a/apps/web/utils/firebase-serverside.ts b/apps/web/utils/firebase-serverside.ts index b9ace131f..e467a9d0d 100644 --- a/apps/web/utils/firebase-serverside.ts +++ b/apps/web/utils/firebase-serverside.ts @@ -46,7 +46,7 @@ export async function sendRequest( beneficiary: Address, skipStables: boolean, network: Network, - authLevel: AuthLevel + authLevel: AuthLevel, ) { const newRequest: RequestRecord = { beneficiary, diff --git a/package.json b/package.json index 73507a723..54c02307d 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "devDependencies": { "eslint": "^8.37.0", "husky": "^8.0.0", - "prettier": "^2.8.7" + "prettier": "^3.0.0" }, "resolutions": { "vm2": "^3.9.17" diff --git a/yarn.lock b/yarn.lock index fe72b3b45..0b2e3a993 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7704,10 +7704,10 @@ prelude-ls@~1.1.2: resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54" integrity sha512-ESF23V4SKG6lVSGZgYNpbsiaAkdab6ZgOxe52p7+Kid3W3u3bxR4Vfd/o21dmN7jSt0IwgZ4v5MUd26FEtXE9w== -prettier@^2.8.7: - version "2.8.8" - resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.8.8.tgz#e8c5d7e98a4305ffe3de2e1fc4aca1a71c28b1da" - integrity sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q== +prettier@^3.0.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.1.0.tgz#c6d16474a5f764ea1a4a373c593b779697744d5e" + integrity sha512-TQLvXjq5IAibjh8EpBIkNKxO749UEWABoiIZehEPiY4GNpVdhaFKqSTu+QrlU6D2dPAfubRmtJTi4K4YkQ5eXw== pretty-format@^3.8.0: version "3.8.0"