-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f2db1bf
commit 9d863b9
Showing
6 changed files
with
855 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule modular-contracts
added at
112f9e
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// SPDX-License-Identifier: Apache-2.0 | ||
pragma solidity ^0.8.22; | ||
|
||
import { ModularCore } from "lib/modular-contracts/src/ModularCore.sol"; | ||
import { Initializable } from "lib/solady/src/utils/Initializable.sol"; | ||
|
||
contract ModularPaymentsGateway is ModularCore, Initializable { | ||
constructor() { | ||
_disableInitializers(); | ||
} | ||
|
||
function initialize( | ||
address _owner, | ||
address[] memory _extensions, | ||
bytes[] memory _extensionInstallData | ||
) external payable { | ||
_initializeOwner(_owner); | ||
|
||
// Install and initialize extensions | ||
require(_extensions.length == _extensionInstallData.length); | ||
for (uint256 i = 0; i < _extensions.length; i++) { | ||
_installExtension(_extensions[i], _extensionInstallData[i]); | ||
} | ||
} | ||
|
||
function getSupportedCallbackFunctions() | ||
public | ||
pure | ||
override | ||
returns (SupportedCallbackFunction[] memory supportedCallbackFunctions) | ||
{} | ||
} |
Oops, something went wrong.