From eeae3d61960ddc0cc82e0414114dc530e9ce1ac8 Mon Sep 17 00:00:00 2001 From: Kingsley Victor Date: Tue, 17 Dec 2024 20:43:42 +0100 Subject: [PATCH] chore: initialize [#1](https://github.com/ubiquity/ubiquity-dollar/issues/979) --- packages/contracts/src/traps/ProtocolTrap.sol | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 packages/contracts/src/traps/ProtocolTrap.sol diff --git a/packages/contracts/src/traps/ProtocolTrap.sol b/packages/contracts/src/traps/ProtocolTrap.sol new file mode 100644 index 000000000..895f0568b --- /dev/null +++ b/packages/contracts/src/traps/ProtocolTrap.sol @@ -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("")); + } +}