AtlasEvents
The AtlasEvents
contract defines a comprehensive set of events emitted by various components of the Atlas Protocol. These events facilitate monitoring, logging, and reacting to significant actions and state changes within the protocol.
Metacall Events
Event Name | Parameters | Description |
---|---|---|
MetacallResult | address indexed bundler, address indexed user, bool solverSuccessful, bool disbursementSuccessful, uint256 ethPaidToBundler, uint256 netGasSurcharge | Emitted upon completion of a metacall, indicating success and financial details. |
// Metacall
event MetacallResult(
address indexed bundler,
address indexed user,
bool solverSuccessful,
bool disbursementSuccessful,
uint256 ethPaidToBundler,
uint256 netGasSurcharge
);
AtlETH Events
Event Name | Parameters | Description |
---|---|---|
Redeem | address indexed owner, uint256 amount | Emitted when a user redeems bonded tokens. |
Transfer | address indexed from, address indexed to, uint256 amount | Standard ERC20 transfer event. |
Approval | address indexed owner, address indexed spender, uint256 amount | Standard ERC20 approval event. |
// AtlETH
event Bond(address indexed owner, uint256 amount);
event Unbond(address indexed owner, uint256 amount, uint256 earliestAvailable);
event Redeem(address indexed owner, uint256 amount);
event Transfer(address indexed from, address indexed to, uint256 amount);
event Approval(address indexed owner, address indexed spender, uint256 amount);
Escrow Events
Event Name | Parameters | Description |
---|---|---|
SolverTxResult | address indexed solverTo, address indexed solverFrom, bool executed, bool success, uint256 result | Emitted upon the result of a solver's transaction. |
// Escrow events
event SolverTxResult(
address indexed solverTo, address indexed solverFrom, bool executed, bool success, uint256 result
);
Factory Events
Event Name | Parameters | Description |
---|---|---|
ExecutionEnvironmentCreated | address indexed user, address indexed executionEnvironment | Emitted when a new execution environment is created for a user. |
// Factory events
event ExecutionEnvironmentCreated(address indexed user, address indexed executionEnvironment);
Surcharge Events
Event Name | Parameters | Description |
---|---|---|
SurchargeWithdrawn | address to, uint256 amount | Emitted when a surcharge is withdrawn to a specified address. |
SurchargeRecipientTransferStarted | address currentRecipient, address newRecipient | Emitted when a transfer of the surcharge recipient is initiated. |
SurchargeRecipientTransferred | address newRecipient | Emitted upon successful transfer of the surcharge recipient. |
// Surcharge events
event SurchargeWithdrawn(address to, uint256 amount);
event SurchargeRecipientTransferStarted(address currentRecipient, address newRecipient);
event SurchargeRecipientTransferred(address newRecipient);
DAppControl Events
Event Name | Parameters | Description |
---|---|---|
GovernanceTransferStarted | address indexed previousGovernance, address indexed newGovernance | Emitted when a governance transfer process is initiated. |
GovernanceTransferred | address indexed previousGovernance, address indexed newGovernance | Emitted upon successful transfer of governance authority. |
// DAppControl events
event GovernanceTransferStarted(address indexed previousGovernance, address indexed newGovernance);
event GovernanceTransferred(address indexed previousGovernance, address indexed newGovernance);
DAppIntegration Events
Event Name | Parameters | Description |
---|---|---|
NewDAppSignatory | address indexed control, address indexed governance, address indexed signatory, uint32 callConfig | Emitted when a new signatory is added to a dApp's governance. |
RemovedDAppSignatory | address indexed control, address indexed governance, address indexed signatory, uint32 callConfig | Emitted when an existing signatory is removed from a dApp's governance. |
DAppGovernanceChanged | address indexed control, address indexed oldGovernance, address indexed newGovernance, uint32 callConfig | Emitted when the governance authority of a dApp is changed. |
DAppDisabled | address indexed control, address indexed governance, uint32 callConfig | Emitted when a dApp is disabled within the Atlas Protocol. |
// DAppIntegration events
event NewDAppSignatory(
address indexed control, address indexed governance, address indexed signatory, uint32 callConfig
);
event RemovedDAppSignatory(
address indexed control, address indexed governance, address indexed signatory, uint32 callConfig
);
### Usage Notes
- **Event Monitoring**: Developers and users can listen to these events to track and respond to actions within the protocol, enabling real-time monitoring and analytics.
- **Integration**: When building applications or services that interact with the Atlas Protocol, subscribing to relevant events ensures synchronization with protocol state changes.
- **Debugging and Auditing**: Events provide a transparent log of operations, aiding in debugging issues and performing security audits.