Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions packages/bridge-monitor/src/service/process.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ export const handleFailedStatus = async (bridgeParams: BridgeParams) => {
],
});

Discord.getInstance().initialize();
await Discord.getInstance().sendMessageWitForReady(
"FATAL",
`FAILED status ${bridgeParams.bridgeGuidTransaction.guid} cleared: ${receipt.hash}`,
);

return {
clearedAt: new Date(),
clearMessageTxHash: receipt.hash,
Expand Down
2 changes: 1 addition & 1 deletion packages/bridge-monitor/src/service/submit.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export const submitWithRetry = async (
maxPriorityFeePerGas,
};

const provider = new ethers.JsonRpcProvider(l1Client.transport.url);
const provider = new ethers.JsonRpcProvider(l1Client.transport.transports[0].value.url);
const signer = new ethers.Wallet(
toHex(walletClientData.account.getHdKey().privateKey!),
provider,
Expand Down
2 changes: 1 addition & 1 deletion packages/deposit-analyzer/scripts/replay-messenger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const submitTx = async (

const { currentNonce } = await getNonce(l1Client, walletL1ClientData.account.address);

const provider = new ethers.JsonRpcProvider(l1Client.transport.url);
const provider = new ethers.JsonRpcProvider(l1Client.transport.transports[0].value.url);
const signer = new ethers.Wallet(
toHex(walletL1ClientData.account.getHdKey().privateKey!),
provider,
Expand Down
2 changes: 1 addition & 1 deletion packages/deposit-analyzer/src/service/submit.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export const submitRelayDepositsWithRetry = async (
maxPriorityFeePerGas,
};

const provider = new ethers.JsonRpcProvider(l1Client.transport.url);
const provider = new ethers.JsonRpcProvider(l1Client.transport.transports[0].value.url);
const signer = new ethers.Wallet(
toHex(walletClientData.account.getHdKey().privateKey!),
provider,
Expand Down
2 changes: 1 addition & 1 deletion packages/messenger-relayer/src/service/submit.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ export const submitMessageToScroll = async (
gasLimit: RELAYER_FIXED_GAS_LIMIT,
};

const provider = new ethers.JsonRpcProvider(l1Client.transport.url);
const provider = new ethers.JsonRpcProvider(l1Client.transport.transports[0].value.url);
const signer = new ethers.Wallet(
toHex(walletClientData.account.getHdKey().privateKey!),
provider,
Expand Down
2 changes: 1 addition & 1 deletion packages/mint-executor/src/service/mint.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export const submitMintWithRetry = async (
maxPriorityFeePerGas,
};

const provider = new ethers.JsonRpcProvider(l1Client.transport.url);
const provider = new ethers.JsonRpcProvider(l1Client.transport.transports[0].value.url);
const signer = new ethers.Wallet(
toHex(walletClientData.account.getHdKey().privateKey!),
provider,
Expand Down
2 changes: 1 addition & 1 deletion packages/mint-executor/src/service/transfer.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export const submitMintWithRetry = async (
maxPriorityFeePerGas,
};

const provider = new ethers.JsonRpcProvider(l1Client.transport.url);
const provider = new ethers.JsonRpcProvider(l1Client.transport.transports[0].value.url);
const signer = new ethers.Wallet(
toHex(walletClientData.account.getHdKey().privateKey!),
provider,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ export const submitRelayMessagesToL2MockMessengerWithRetry = async (
gasPrice,
};

const provider = new ethers.JsonRpcProvider(l2Client.transport.url);
const provider = new ethers.JsonRpcProvider(l2Client.transport.transports[0].value.url);
const signer = new ethers.Wallet(config.MOCK_MESSENGER_PRIVATE_KEY, provider);
const contract = MockL2ScrollMessenger__factory.connect(
contractCallParams.contractAddress,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ export const submitMessageToScroll = async (
maxPriorityFeePerGas,
};

const provider = new ethers.JsonRpcProvider(l1Client.transport.url);
const provider = new ethers.JsonRpcProvider(l1Client.transport.transports[0].value.url);
const signer = new ethers.Wallet(config.MOCK_MESSENGER_PRIVATE_KEY, provider);
toHex;
const contract = MockL1ScrollMessenger__factory.connect(
Expand Down
4 changes: 2 additions & 2 deletions packages/shared/src/blockchain/ethersCalculate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const getEthersScrollMaxGasMultiplier = async (
publicClient: PublicClient,
multiplier: number,
) => {
const provider = new ethers.JsonRpcProvider(publicClient.transport.url);
const provider = new ethers.JsonRpcProvider(publicClient.transport.transports[0].value.url);

const [block, feeData] = await Promise.all([provider.getBlock("latest"), provider.getFeeData()]);
const baseGasPrice = getGasPrice(block, feeData);
Expand All @@ -55,7 +55,7 @@ const getGasPrice = (block: Block | null, feeData: FeeData) => {
};

export const getEthersMaxGasMultiplier = async (publicClient: PublicClient, multiplier: number) => {
const provider = new ethers.JsonRpcProvider(publicClient.transport.url);
const provider = new ethers.JsonRpcProvider(publicClient.transport.transports[0].value.url);
const feeData = await provider.getFeeData();
const { gasPrice, maxFeePerGas, maxPriorityFeePerGas } = calculateAdjustedGasPrices(
multiplier,
Expand Down