Skip to content

Commit

Permalink
chore: initialize [ubiquity#1](ubiquity#979)
Browse files Browse the repository at this point in the history
  • Loading branch information
kingsley-einstein committed Dec 17, 2024
1 parent 6f3b3e0 commit eeae3d6
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions packages/contracts/src/traps/ProtocolTrap.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
pragma solidity ^0.8.0;

contract ProtocolTrap {
struct CollectOutput {
bool triggerResponse;
}

function collect() external view returns (bytes memory) {
return abi.encode(CollectOutput({triggerResponse: true})); // Logic to be modified
}

function shouldRespond(
bytes[] calldata data
) external pure returns (bool, bytes memory) {
return (true, bytes(""));
}
}

0 comments on commit eeae3d6

Please sign in to comment.