Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions contracts/interfaces/ISocket.sol
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ interface ISocket {
*/
event AppGatewayCallRequested(
bytes32 triggerId,
bytes32 appGatewayId,
address switchboard,
address plug,
bytes overrides,
Expand Down
10 changes: 1 addition & 9 deletions contracts/protocol/payload-delivery/FeesManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -179,15 +179,7 @@ contract FeesManager is FeesManagerStorage, Initializable, Ownable, AddressResol

// check signature
bytes32 digest = keccak256(
abi.encode(
depositTo_,
chainSlug_,
token_,
amount,
address(this),
evmxSlug,
signatureNonce_
)
abi.encode(depositTo_, chainSlug_, token_, amount, address(this), evmxSlug)
);

if (_recoverSigner(digest, signature_) != owner()) revert InvalidWatcherSignature();
Expand Down
1 change: 1 addition & 0 deletions contracts/protocol/socket/Socket.sol
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ contract Socket is SocketUtils {
triggerId = _encodeTriggerId();
emit AppGatewayCallRequested(
triggerId,
plugConfig.appGatewayId,
plugConfig.switchboard,
plug_,
// gets the overrides from the plug
Expand Down
2 changes: 1 addition & 1 deletion contracts/protocol/utils/common/Structs.sol
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ struct PlugConfig {
//trigger:
struct TriggerParams {
bytes32 triggerId;
bytes32 params;
bytes32 overrides;
address plug;
bytes32 appGatewayId;
uint32 chainSlug;
Expand Down
1 change: 1 addition & 0 deletions src/enums.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export enum Events {
ExecutionFailed = "ExecutionFailed",
PlugConnected = "PlugConnected",
AppGatewayCallRequested = "AppGatewayCallRequested",
AppGatewayCallFailed = "AppGatewayCallFailed",

// FeesPlug
FeesDeposited = "FeesDeposited",
Expand Down
1 change: 1 addition & 0 deletions src/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export const feesPlugEvents = [Events.FeesDeposited];

export const watcherPrecompileEvents = [
Events.CalledAppGateway,
Events.AppGatewayCallFailed,
Events.RequestSubmitted,
Events.QueryRequested,
Events.FinalizeRequested,
Expand Down
3 changes: 1 addition & 2 deletions test/DeliveryHelper.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,7 @@ contract DeliveryHelperTest is SetupTest {
fees_.token,
fees_.amount,
address(feesManager),
evmxSlug,
signatureNonce
evmxSlug
)
);

Expand Down
4 changes: 3 additions & 1 deletion test/Inbox.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ contract TriggerTest is DeliveryHelperTest {

event AppGatewayCallRequested(
bytes32 triggerId,
bytes32 appGatewayId,
address switchboard,
address plug,
bytes overrides,
Expand Down Expand Up @@ -78,6 +79,7 @@ contract TriggerTest is DeliveryHelperTest {
vm.expectEmit(true, true, true, true);
emit AppGatewayCallRequested(
triggerId,
_encodeAppGatewayId(address(gateway)),
address(arbConfig.switchboard),
address(counter),
bytes(""),
Expand All @@ -92,7 +94,7 @@ contract TriggerTest is DeliveryHelperTest {
appGatewayId: _encodeAppGatewayId(address(gateway)),
plug: address(counter),
payload: payload,
params: bytes32(0)
overrides: bytes32(0)
});

bytes memory watcherSignature = _createWatcherSignature(
Expand Down
1 change: 1 addition & 0 deletions test/mock/MockSocket.sol
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ contract MockSocket is ISocket {
triggerId = _encodeTriggerId(plugConfig.appGatewayId);
emit AppGatewayCallRequested(
triggerId,
plugConfig.appGatewayId,
address(plugConfig.switchboard__),
msg.sender,
overrides,
Expand Down