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

feat: create gmp tracker event interface #186

Merged
merged 23 commits into from
Oct 15, 2024
Merged
Changes from 6 commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
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
33 changes: 33 additions & 0 deletions contracts/interfaces/IAxelarGMPTransfer.sol
npty marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
* @title IAxelarGMPTransfer
* @dev Interface for tracking asset value transfers using General Message Passing (GMP) calls in the Axelar Network.
* This interface defines an event that should be emitted when a GMP transfer occurs,
* allowing for standardized volume tracking across different implementations.
*/
interface IAxelarGMPTransfer {
canhtrinh marked this conversation as resolved.
Show resolved Hide resolved
/**
* @dev Emitted when a GMP transfer occurs, providing details for volume tracking.
* @param sender The address of the caller that initiated the transfer on the source chain.
* @param sourceChain The Axelar chain identifier of the source chain.
* @param destinationChain The Axelar chain identifier of the destination chain.
* @param destinationAddress The address of the contract on the destination chain that receives the transfer.
* @param recipientAddress The address of the final recipient of the transferred assets on the destination chain.
* @param tokenAddress The address of the token contract on the source chain.
* @param amount The amount (in atomic units) of tokens transferred.
* @param decimals The number of decimal places for the token.
*/
event AxelarGMPTransfer(
canhtrinh marked this conversation as resolved.
Show resolved Hide resolved
npty marked this conversation as resolved.
Show resolved Hide resolved
npty marked this conversation as resolved.
Show resolved Hide resolved
address indexed sender,
string sourceChain,
string destinationChain,
string destinationContractAddress,
bytes recipient,
npty marked this conversation as resolved.
Show resolved Hide resolved
address token,
npty marked this conversation as resolved.
Show resolved Hide resolved
uint256 amount,
uint256 decimals
canhtrinh marked this conversation as resolved.
Show resolved Hide resolved
);
}
Loading