Skip to content

Commit

Permalink
Merge pull request #17 from icon-project/bgkwon-BDT-829
Browse files Browse the repository at this point in the history
Add SetFeeTable event log in bmc
  • Loading branch information
kwon528 authored Dec 6, 2023
2 parents c5d6f1b + 4174aab commit 218b105
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions bmc/contracts/BMCManagement.sol
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,7 @@ contract BMCManagement is IBMCManagement, IOwnerManager, ICCManagement, Initiali
_removeFee(_dst[i]);
}
}
emit SetFeeTable(_dst, _value);
}

function getFeeTable(
Expand Down
8 changes: 8 additions & 0 deletions bmc/contracts/interfaces/IBMCManagement.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit 218b105

Please sign in to comment.