From 5a472c53b7cbc32fd797419ee16bc2ec897cf455 Mon Sep 17 00:00:00 2001 From: James Duncombe Date: Tue, 5 Mar 2024 13:53:49 +0000 Subject: [PATCH] Adds Fast forwardable facet. --- contracts/fast/FastForwardableFacet.sol | 18 ++++++++++++++++++ tasks/fast.ts | 3 ++- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 contracts/fast/FastForwardableFacet.sol diff --git a/contracts/fast/FastForwardableFacet.sol b/contracts/fast/FastForwardableFacet.sol new file mode 100644 index 00000000..9be5b8b9 --- /dev/null +++ b/contracts/fast/FastForwardableFacet.sol @@ -0,0 +1,18 @@ +// SPDX-License-Identifier: MIT +pragma solidity 0.8.10; + +import "../common/AHasForwarder.sol"; +import "./lib/AFastFacet.sol"; + +/** + * @title The Fast forwardable contract. + * @notice The Fast Forwardable facet is in charge of "gasless transactions". + */ +contract FastForwardableFacet is AFastFacet, AHasForwarder { + /// AHasForwarder implementation. + + // For now the forwarder manager is an issuer. + function isValidForwarderManager(address who) internal view override(AHasForwarder) returns (bool) { + return _isIssuerMember(who); + } +} diff --git a/tasks/fast.ts b/tasks/fast.ts index 5213e633..47c9a09a 100644 --- a/tasks/fast.ts +++ b/tasks/fast.ts @@ -210,8 +210,9 @@ const FAST_FACETS = [ "FastTokenFacet", "FastHistoryFacet", "FastFrontendFacet", + "FastForwardableFacet", "FastDistributionsFacet", - "FastCrowdfundsFacet", + "FastCrowdfundsFacet" ]; interface FastDeployParams { readonly governor: string;