Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
bridgecontract
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
movabridge
bridgecontract
Commits
965d1ac8
Commit
965d1ac8
authored
Nov 20, 2025
by
vicotor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update event
parent
6a2ff743
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
bridge.sol
contracts/bridge.sol
+8
-5
No files found.
contracts/bridge.sol
View file @
965d1ac8
...
@@ -169,9 +169,9 @@ contract Bridge is Initializable, OwnableUpgradeable, UUPSUpgradeable {
...
@@ -169,9 +169,9 @@ contract Bridge is Initializable, OwnableUpgradeable, UUPSUpgradeable {
* @param receiveToken 接收代币地址
* @param receiveToken 接收代币地址
*/
*/
event TransferOut(
event TransferOut(
uint256 outId,
uint256
indexed
outId,
uint256 fromChainID,
uint256
indexed
fromChainID,
address sender,
address
indexed
sender,
address token,
address token,
uint256 amount,
uint256 amount,
uint256 fee,
uint256 fee,
...
@@ -232,8 +232,11 @@ contract Bridge is Initializable, OwnableUpgradeable, UUPSUpgradeable {
...
@@ -232,8 +232,11 @@ contract Bridge is Initializable, OwnableUpgradeable, UUPSUpgradeable {
uint256 amount
uint256 amount
);
);
/// @dev Event for swap configuration change.
event SwapConfigChanged(address indexed fromToken, address indexed toToken, address indexed swap, address[] path);
/// @dev 代币配置变更事件
/// @dev 代币配置变更事件
event TokenConfigChanged(address indexed token, uint256 indexed toChainID, bool enabled);
event Token
Out
ConfigChanged(address indexed token, uint256 indexed toChainID, bool enabled);
/// @dev 金库地址变更事件
/// @dev 金库地址变更事件
event TreasuryChanged(address indexed oldTreasury, address indexed newTreasury);
event TreasuryChanged(address indexed oldTreasury, address indexed newTreasury);
...
@@ -384,7 +387,7 @@ contract Bridge is Initializable, OwnableUpgradeable, UUPSUpgradeable {
...
@@ -384,7 +387,7 @@ contract Bridge is Initializable, OwnableUpgradeable, UUPSUpgradeable {
isTokenSupportedOut[toChainID][token] = false;
isTokenSupportedOut[toChainID][token] = false;
}
}
emit TokenConfigChanged(token, toChainID, config.enabled);
emit Token
Out
ConfigChanged(token, toChainID, config.enabled);
}
}
/**
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment