From 4174aabe14863d24777ce8bac7182aeb75492b56 Mon Sep 17 00:00:00 2001 From: byounggul kwon <49632556+kwon528@users.noreply.github.com> Date: Thu, 30 Nov 2023 13:51:12 +0900 Subject: [PATCH] Add SetFeeTable event log in bmc --- bmc/contracts/BMCManagement.sol | 1 + bmc/contracts/interfaces/IBMCManagement.sol | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/bmc/contracts/BMCManagement.sol b/bmc/contracts/BMCManagement.sol index b10264f..1aa2401 100644 --- a/bmc/contracts/BMCManagement.sol +++ b/bmc/contracts/BMCManagement.sol @@ -440,6 +440,7 @@ contract BMCManagement is IBMCManagement, IOwnerManager, ICCManagement, Initiali _removeFee(_dst[i]); } } + emit SetFeeTable(_dst, _value); } function getFeeTable( diff --git a/bmc/contracts/interfaces/IBMCManagement.sol b/bmc/contracts/interfaces/IBMCManagement.sol index 592aec0..69ed64b 100644 --- a/bmc/contracts/interfaces/IBMCManagement.sol +++ b/bmc/contracts/interfaces/IBMCManagement.sol @@ -233,4 +233,12 @@ interface IBMCManagement { ) external view returns ( int256 ); + + /** + @notice (EventLog) Logs the event that handle the fee table + @dev The tracker monitors this event. + @param _dst String[] ( List of BTP Network Address of the destination BMC ) + @param _value Integer[][] ( List of lists of relay fees in the path including return path ) + */ + event SetFeeTable(string[] _dst, uint256[][] _value); }