Skip to content

log more#973

Draft
adhusson wants to merge 15 commits into
hermes/ecrecover-authorizer-signer-event-1780397877from
log-more
Draft

log more#973
adhusson wants to merge 15 commits into
hermes/ecrecover-authorizer-signer-event-1780397877from
log-more

Conversation

@adhusson

@adhusson adhusson commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

ended up logging the whole offer to avoid 2 events

@adhusson adhusson requested review from MathisGD and QGarchery June 22, 2026 14:56
Comment thread src/libraries/EventsLib.sol Outdated
event UpdatePosition(bytes32 indexed id_, address indexed user, uint256 creditDecrease, uint256 pendingFeeDecrease, uint256 accruedFee);
event MarketCreated(Market market, bytes32 indexed id_);
event Take(address caller, bytes32 indexed id_, uint256 units, address indexed taker, address indexed maker, bool offerIsBuy, bytes32 group, uint256 buyerAssets, uint256 sellerAssets, uint256 consumed, uint256 buyerPendingFeeIncrease, uint256 sellerPendingFeeDecrease, uint256 buyerCreditIncrease, uint256 sellerCreditDecrease, address receiver, address payer);
event Take(address caller, bytes32 indexed id_, uint256 units, address indexed taker, Offer offer, uint256 buyerAssets, uint256 sellerAssets, uint256 consumed, uint256 buyerPendingFeeIncrease, uint256 sellerPendingFeeDecrease, uint256 buyerCreditIncrease, uint256 sellerCreditDecrease, address receiver, address payer, address takerCallback);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do you add takerCallback?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would log ratifier and ratifierData instead (see #966)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's in the context of this discussion where the model is "reconstruct function calls from events".

Btw there are 2 ways to go

  • before i updated this PR: log everything except bytes because they can be long, but then i had to have 2 events because of certora compilation.
  • after i updated this PR: just log everything. So 1 event now works.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(but all this logging seems to be hard for certora)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would log ratifier and ratifierData instead (see #966)

agree, i forgot about ratifierData (ratifier is logged)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants