Skip to content

Commit

Permalink
Merge pull request #564 from lidofinance/feat/adi-ethereum
Browse files Browse the repository at this point in the history
Add a.DI CrossChainController event
  • Loading branch information
katamarinaki authored Jun 20, 2024
2 parents ab3edc5 + 48f077d commit 4b32edc
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion l2-bridge-ethereum/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ export const ARBITRUM_GATEWAY_SET_EVENT =
export const LINEA_CUSTOM_CONTRACT_SET_EVENT =
"event CustomContractSet(address indexed nativeToken, address indexed customContract, address indexed setBy);";

export const BSC_L1_CROSS_CHAIN_CONTROLLER =
"0x93559892D3C7F66DE4570132d68b69BD3c369A7C";

export const L1_ERC20_TOKEN_GATEWAYS = [
{
name: "Arbitrum",
Expand Down Expand Up @@ -602,6 +605,22 @@ const SCROLL_L1_GATEWAY_ROUTER_EVENTS = [
},
];

const BSC_L1_CROSS_CHAIN_CONTROLLER_EVENTS = [
{
address: BSC_L1_CROSS_CHAIN_CONTROLLER,
event:
"event SenderUpdated(address indexed sender, bool indexed isApproved)",
alertId: "BSC-ADI-APPROVED-SENDER-UPDATED",
name: "🚨🚨🚨 BSC a.DI: Approved sender changed",
description: (args: Result) =>
args.isApproved
? `Address ${args.sender} was set as an approved sender`
: `Address ${args.sender} was removed from the approved senders list`,
severity: FindingSeverity.Critical,
type: FindingType.Info,
},
];

export const THIRD_PARTY_PROXY_EVENTS: EventOfNotice[] =
ARBITRUM_L1_GATEWAY_ROUTER_PROXY_EVENTS.concat(
OPTIMISM_L1_CROSS_DOMAIN_MESSENGER_EVENTS,
Expand All @@ -613,7 +632,8 @@ export const THIRD_PARTY_PROXY_EVENTS: EventOfNotice[] =
.concat(SCROLL_L1_MESSENGER_PROXY_EVENTS)
.concat(SCROLL_L1_MESSENGER_EVENTS)
.concat(SCROLL_L1_GATEWAY_ROUTER_PROXY_EVENTS)
.concat(SCROLL_L1_GATEWAY_ROUTER_EVENTS);
.concat(SCROLL_L1_GATEWAY_ROUTER_EVENTS)
.concat(BSC_L1_CROSS_CHAIN_CONTROLLER_EVENTS);

export const L1_BRIDGE_EVENTS: EventOfNotice[] = L1_ERC20_TOKEN_GATEWAYS.map(
(gw) => {
Expand Down

0 comments on commit 4b32edc

Please sign in to comment.