From 7ceaf0da0947d77fb9ecfd01cb94ed68d85925fd Mon Sep 17 00:00:00 2001 From: Maxim Urschumzew Date: Mon, 11 Nov 2024 11:59:07 +0100 Subject: [PATCH] Run prettier. --- bouncer/tests/broker_level_screening.ts | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/bouncer/tests/broker_level_screening.ts b/bouncer/tests/broker_level_screening.ts index 0cb0646c993..5662bcc1025 100644 --- a/bouncer/tests/broker_level_screening.ts +++ b/bouncer/tests/broker_level_screening.ts @@ -2,7 +2,13 @@ import { randomBytes } from 'crypto'; import { InternalAsset } from '@chainflip/cli'; import { ExecutableTest } from '../shared/executable_test'; import { sendBtcWithConfirmations } from '../shared/send_btc'; -import { newAddress, sleep, handleSubstrateError, brokerMutex, hexStringToBytesArray } from '../shared/utils'; +import { + newAddress, + sleep, + handleSubstrateError, + brokerMutex, + hexStringToBytesArray, +} from '../shared/utils'; import { getChainflipApi, observeEvent } from '../shared/utils/substrate'; import Keyring from '../polkadot/keyring'; import { requestNewSwap } from '../shared/perform_swap'; @@ -159,7 +165,7 @@ async function brokerLevelScreeningTestScenario( doBoost: boolean, refundAddress: string, waitBeforeReport: number, - reportFunction: (txId: string) => Promise + reportFunction: (txId: string) => Promise, ): Promise { const destinationAddressForUsdc = await newAssetAddress('Usdc'); const refundParameters: FillOrKillParamsX128 = { @@ -202,7 +208,9 @@ async function main() { testBrokerLevelScreening.log('Testing broker level screening with no boost...'); let btcRefundAddress = await newAssetAddress('Btc'); - await brokerLevelScreeningTestScenario('0.2', false, btcRefundAddress, 0, (txId) => setTxRiskScore(txId, 9.0)); + await brokerLevelScreeningTestScenario('0.2', false, btcRefundAddress, 0, (txId) => + setTxRiskScore(txId, 9.0), + ); await observeEvent('bitcoinIngressEgress:TaintedTransactionRejected').event; if (!(await observeBtcAddressBalanceChange(btcRefundAddress))) { @@ -217,7 +225,9 @@ async function main() { ); btcRefundAddress = await newAssetAddress('Btc'); - await brokerLevelScreeningTestScenario('0.2', true, btcRefundAddress, 0, (txId) => setTxRiskScore(txId, 9.0)); + await brokerLevelScreeningTestScenario('0.2', true, btcRefundAddress, 0, (txId) => + setTxRiskScore(txId, 9.0), + ); await observeEvent('bitcoinIngressEgress:TaintedTransactionRejected').event; if (!(await observeBtcAddressBalanceChange(btcRefundAddress))) { @@ -237,7 +247,9 @@ async function main() { MILLI_SECS_PER_BLOCK * 2, // we submit the extrinsic manually in order to ensure that even though it definitely arrives, // the transaction is refunded because the extrinsic is submitted too late. - async (txId) => {await submitTxAsTainted(txId);} + async (txId) => { + await submitTxAsTainted(txId); + }, ); await observeEvent('bitcoinIngressEgress:DepositFinalised', {