-
Notifications
You must be signed in to change notification settings - Fork 22
/
CMTAT_STANDALONE.sol
37 lines (33 loc) · 1.21 KB
/
CMTAT_STANDALONE.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//SPDX-License-Identifier: MPL-2.0
pragma solidity ^0.8.20;
import "./modules/CMTAT_BASE.sol";
/**
* @title CMTAT version for a standalone deployment (without proxy)
*/
contract CMTAT_STANDALONE is CMTAT_BASE {
/**
* @notice Contract version for standalone deployment
* @param forwarderIrrevocable address of the forwarder, required for the gasless support
* @param admin address of the admin of contract (Access Control)
* @param ERC20Attributes_ ERC20 name, symbol and decimals
* @param baseModuleAttributes_ tokenId, terms, information
* @param engines_ external contract
*/
/// @custom:oz-upgrades-unsafe-allow constructor
constructor(
address forwarderIrrevocable,
address admin,
ICMTATConstructor.ERC20Attributes memory ERC20Attributes_,
ICMTATConstructor.BaseModuleAttributes memory baseModuleAttributes_,
ICMTATConstructor.Engine memory engines_
) MetaTxModule(forwarderIrrevocable) {
// Initialize the contract to avoid front-running
// Warning : do not initialize the proxy
initialize(
admin,
ERC20Attributes_,
baseModuleAttributes_,
engines_
);
}
}