diff --git a/packages/horizon/contracts/data-service/interfaces/IDataServiceRescuable.sol b/packages/horizon/contracts/data-service/interfaces/IDataServiceRescuable.sol index 07e97ee8c..67026f2d4 100644 --- a/packages/horizon/contracts/data-service/interfaces/IDataServiceRescuable.sol +++ b/packages/horizon/contracts/data-service/interfaces/IDataServiceRescuable.sol @@ -11,6 +11,10 @@ import { IDataService } from "./IDataService.sol"; interface IDataServiceRescuable is IDataService { /** * @notice Emitted when tokens are rescued from the contract. + * @param from The address initiating the rescue + * @param to The address receiving the rescued tokens + * @param token The address of the token being rescued + * @param tokens The amount of tokens rescued */ event TokensRescued(address indexed from, address indexed to, address token, uint256 tokens); diff --git a/packages/horizon/contracts/interfaces/IPaymentsEscrow.sol b/packages/horizon/contracts/interfaces/IPaymentsEscrow.sol index 40394900f..cae2558e7 100644 --- a/packages/horizon/contracts/interfaces/IPaymentsEscrow.sol +++ b/packages/horizon/contracts/interfaces/IPaymentsEscrow.sol @@ -38,9 +38,15 @@ interface IPaymentsEscrow { * @notice Emitted when a payer authorizes a collector to collect funds * @param payer The address of the payer * @param collector The address of the collector - * @param allowance The number of tokens the collector is allowed to collect + * @param addedAllowance The amount of tokens added to the collector's allowance + * @param newTotalAllowance The new total allowance after addition */ - event AuthorizedCollector(address indexed payer, address indexed collector, uint256 allowance); + event AuthorizedCollector( + address indexed payer, + address indexed collector, + uint256 addedAllowance, + uint256 newTotalAllowance + ); /** * @notice Emitted when a payer thaws a collector diff --git a/packages/horizon/contracts/payments/PaymentsEscrow.sol b/packages/horizon/contracts/payments/PaymentsEscrow.sol index 4b76e2bc6..0c775cd47 100644 --- a/packages/horizon/contracts/payments/PaymentsEscrow.sol +++ b/packages/horizon/contracts/payments/PaymentsEscrow.sol @@ -82,7 +82,7 @@ contract PaymentsEscrow is Initializable, MulticallUpgradeable, GraphDirectory, require(allowance != 0, PaymentsEscrowInvalidZeroTokens()); Collector storage collector = authorizedCollectors[msg.sender][collector_]; collector.allowance += allowance; - emit AuthorizedCollector(msg.sender, collector_, collector.allowance); + emit AuthorizedCollector(msg.sender, collector_, allowance, collector.allowance); } /**