Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SetFeeTable event log in bmc #17

Merged
merged 1 commit into from
Dec 6, 2023
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
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);
}