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

chore: chainid => clientChainId #131

Merged
merged 1 commit into from
Dec 6, 2024
Merged
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
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
Loading