Skip to main content

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 NameParametersDescription
MetacallResultaddress indexed bundler, address indexed user, bool solverSuccessful, bool disbursementSuccessful, uint256 ethPaidToBundler, uint256 netGasSurchargeEmitted 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 NameParametersDescription
Redeemaddress indexed owner, uint256 amountEmitted when a user redeems bonded tokens.
Transferaddress indexed from, address indexed to, uint256 amountStandard ERC20 transfer event.
Approvaladdress indexed owner, address indexed spender, uint256 amountStandard 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 NameParametersDescription
SolverTxResultaddress indexed solverTo, address indexed solverFrom, bool executed, bool success, uint256 resultEmitted 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 NameParametersDescription
ExecutionEnvironmentCreatedaddress indexed user, address indexed executionEnvironmentEmitted when a new execution environment is created for a user.
// Factory events
event ExecutionEnvironmentCreated(address indexed user, address indexed executionEnvironment);

Surcharge Events

Event NameParametersDescription
SurchargeWithdrawnaddress to, uint256 amountEmitted when a surcharge is withdrawn to a specified address.
SurchargeRecipientTransferStartedaddress currentRecipient, address newRecipientEmitted when a transfer of the surcharge recipient is initiated.
SurchargeRecipientTransferredaddress newRecipientEmitted 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 NameParametersDescription
GovernanceTransferStartedaddress indexed previousGovernance, address indexed newGovernanceEmitted when a governance transfer process is initiated.
GovernanceTransferredaddress indexed previousGovernance, address indexed newGovernanceEmitted 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 NameParametersDescription
NewDAppSignatoryaddress indexed control, address indexed governance, address indexed signatory, uint32 callConfigEmitted when a new signatory is added to a dApp's governance.
RemovedDAppSignatoryaddress indexed control, address indexed governance, address indexed signatory, uint32 callConfigEmitted when an existing signatory is removed from a dApp's governance.
DAppGovernanceChangedaddress indexed control, address indexed oldGovernance, address indexed newGovernance, uint32 callConfigEmitted when the governance authority of a dApp is changed.
DAppDisabledaddress indexed control, address indexed governance, uint32 callConfigEmitted 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.