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: update events #384

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
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
6 changes: 6 additions & 0 deletions .changeset/brave-wombats-end.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@fuel-bridge/solidity-contracts': minor
'@fuel-bridge/fungible-token': minor
---

upgrade events in L1 and L2 contracts
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,14 @@ pub struct DepositEvent {
pub amount: u64,
pub from: b256,
pub to: Identity,
pub token_id: b256
}

pub struct WithdrawalEvent {
pub amount: u64,
pub from: Identity,
pub to: b256,
pub token_id: b256
}

pub struct ClaimRefundEvent {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ impl Bridge for Contract {
to: to,
from: sender,
amount: amount,
token_id
});
}

Expand Down Expand Up @@ -455,6 +456,7 @@ fn _process_deposit(message_data: DepositMessage, msg_idx: u64) {
to: message_data.to,
from: message_data.from,
amount: amount,
token_id: message_data.token_id
});
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ contract FuelMessagePortalV3 is FuelMessagePortalV2 {
using FuelBlockHeaderLiteLib for FuelBlockHeaderLite;

/// @dev Emitted when fuel chain state is emitted
event FuelChainStateUpdated(address indexed sender, address indexed oldValue, address indexed newValue);
event FuelChainStateUpdated(address sender, address indexed oldValue, address indexed newValue);

/// @dev Emitted when rate limit is reset
event ResetRateLimit(uint256 amount);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ contract FuelERC20GatewayV4 is
error RateLimitExceeded();

/// @dev Emitted when tokens are deposited from Ethereum to Fuel
event Deposit(bytes32 indexed sender, address indexed tokenAddress, uint256 amount);
event Deposit(bytes32 sender, address indexed tokenAddress, uint256 amount);

/// @dev Emitted when tokens are withdrawn from Fuel to Ethereum
event Withdrawal(bytes32 indexed recipient, address indexed tokenAddress, uint256 amount);
event Withdrawal(bytes32 recipient, address indexed tokenAddress, uint256 amount);

/// @dev Emitted when rate limit is reset
event RateLimitUpdated(address indexed tokenAddress, uint256 amount);
Expand Down
Loading