Skip to content

Commit

Permalink
chore: chainid => clientChainId
Browse files Browse the repository at this point in the history
  • Loading branch information
adu-web3 committed Dec 3, 2024
1 parent 8a6c0be commit d912215
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions src/storage/UTXOGatewayStorage.sol
Original file line number Diff line number Diff line change
Expand Up @@ -216,12 +216,14 @@ contract UTXOGatewayStorage {

/**
* @dev Emitted when a stake message is executed
* @param chainId The chain ID of the client chain, should not violate the layerzero chain id
* @param clientChainId The chain ID of the client chain, should not violate the layerzero chain id
* @param nonce The nonce of the stake message
* @param exocoreAddress The Exocore address of the depositor
* @param amount The amount deposited(delegated)
*/
event StakeMsgExecuted(ClientChainID indexed chainId, uint64 nonce, address indexed exocoreAddress, uint256 amount);
event StakeMsgExecuted(
ClientChainID indexed clientChainId, uint64 nonce, address indexed exocoreAddress, uint256 amount
);

/**
* @dev Emitted when a transaction is processed
Expand All @@ -231,15 +233,15 @@ contract UTXOGatewayStorage {

/**
* @dev Emitted when a deposit is completed
* @param srcChainId The source chain ID
* @param clientChainId The client chain ID
* @param txTag The txid + vout-index
* @param depositorExoAddr The depositor's Exocore address
* @param depositorClientChainAddr The depositor's client chain address
* @param amount The amount deposited
* @param updatedBalance The updated balance after deposit
*/
event DepositCompleted(
ClientChainID indexed srcChainId,
ClientChainID indexed clientChainId,
bytes txTag,
address indexed depositorExoAddr,
bytes depositorClientChainAddr,
Expand All @@ -250,14 +252,14 @@ contract UTXOGatewayStorage {
/**
* @dev Emitted when a principal withdrawal is requested
* @param requestId The unique identifier for the withdrawal request
* @param srcChainId The source chain ID
* @param clientChainId The client chain ID
* @param withdrawerExoAddr The withdrawer's Exocore address
* @param withdrawerClientChainAddr The withdrawer's client chain address
* @param amount The amount to withdraw
* @param updatedBalance The updated balance after withdrawal request
*/
event WithdrawPrincipalRequested(
ClientChainID indexed srcChainId,
ClientChainID indexed clientChainId,
uint64 indexed requestId,
address indexed withdrawerExoAddr,
bytes withdrawerClientChainAddr,
Expand All @@ -268,14 +270,14 @@ contract UTXOGatewayStorage {
/**
* @dev Emitted when a reward withdrawal is requested
* @param requestId The unique identifier for the withdrawal request
* @param srcChainId The source chain ID
* @param clientChainId The client chain ID
* @param withdrawerExoAddr The withdrawer's Exocore address
* @param withdrawerClientChainAddr The withdrawer's client chain address
* @param amount The amount to withdraw
* @param updatedBalance The updated balance after withdrawal request
*/
event WithdrawRewardRequested(
ClientChainID indexed srcChainId,
ClientChainID indexed clientChainId,
uint64 indexed requestId,
address indexed withdrawerExoAddr,
bytes withdrawerClientChainAddr,
Expand All @@ -285,15 +287,15 @@ contract UTXOGatewayStorage {

/**
* @dev Emitted when a principal withdrawal is completed
* @param srcChainId The source chain ID
* @param clientChainId The client chain ID
* @param requestId The unique identifier for the withdrawal request
* @param withdrawerExoAddr The withdrawer's Exocore address
* @param withdrawerClientChainAddr The withdrawer's client chain address
* @param amount The amount withdrawn
* @param updatedBalance The updated balance after withdrawal
*/
event WithdrawPrincipalCompleted(
ClientChainID indexed srcChainId,
ClientChainID indexed clientChainId,
bytes32 indexed requestId,
address indexed withdrawerExoAddr,
bytes withdrawerClientChainAddr,
Expand All @@ -303,15 +305,15 @@ contract UTXOGatewayStorage {

/**
* @dev Emitted when a reward withdrawal is completed
* @param srcChainId The source chain ID
* @param clientChainId The client chain ID
* @param requestId The unique identifier for the withdrawal request
* @param withdrawerExoAddr The withdrawer's Exocore address
* @param withdrawerClientChainAddr The withdrawer's client chain address
* @param amount The amount withdrawn
* @param updatedBalance The updated balance after withdrawal
*/
event WithdrawRewardCompleted(
ClientChainID indexed srcChainId,
ClientChainID indexed clientChainId,
bytes32 indexed requestId,
address indexed withdrawerExoAddr,
bytes withdrawerClientChainAddr,
Expand Down Expand Up @@ -354,11 +356,11 @@ contract UTXOGatewayStorage {

/**
* @dev Emitted when an address is registered
* @param chainId The chain ID of the client chain, should not violate the layerzero chain id
* @param clientChainId The client chain ID
* @param depositor The depositor's address
* @param exocoreAddress The corresponding Exocore address
*/
event AddressRegistered(ClientChainID indexed chainId, bytes depositor, address indexed exocoreAddress);
event AddressRegistered(ClientChainID indexed clientChainId, bytes depositor, address indexed exocoreAddress);

/**
* @dev Emitted when a new witness is added
Expand Down

0 comments on commit d912215

Please sign in to comment.