Closed smol-ninja closed 4 months ago
I think there are a few inconsistencies among the events emitted. So I decided to make rules for them.
streamId
asset
sender
recipient
Here is the revised version:
event AdjustFlowStream( uint256 indexed streamId, uint128 amountOwed, uint128 newRatePerSecond, uint128 oldRatePerSecond ); event CreateFlowStream( uint256 indexed streamId, IERC20 asset, address indexed recipient, address indexed sender, uint40 lastTimeUpdate, uint128 ratePerSecond ); event DepositFlowStream( uint256 indexed streamId, IERC20 indexed asset, address indexed funder, uint128 depositAmount ); event PauseFlowStream( uint256 indexed streamId, IERC20 asset, address recipient, address sender, uint128 amountOwed ); event RefundFromFlowStream( uint256 indexed streamId, IERC20 indexed asset, address indexed sender, uint128 refundAmount ); event RestartFlowStream( uint256 indexed streamId, IERC20 asset, address recipient, address sender, uint128 ratePerSecond ); event WithdrawFromFlowStream( uint256 indexed streamId, IERC20 indexed asset, address indexed to, uint128 withdrawnAmount );
RFC @andreivladbrg.
I think there are a few inconsistencies among the events emitted. So I decided to make rules for them.
Rules
streamId
andasset
as the first two entries.streamId
must always be indexed so that it can be used to track down actions for that stream Id.asset
must be indexed.sender
andrecipient
indexed.Here is the revised version:
RFC @andreivladbrg.