implement "CostManager functionalty"
main goal are make the hook for couple of methods in factory and produced instance to make additional management mechanism
Requirements:factory can:
setup initial CostManager address
fill renounceOverrideCostmanager address's list to prevent changing or override CoastManager in instances
call overrideCostManager(instance, newCostManager) and override cost manager address in certain instance
in Instance:
shoud be method overrideCostManager for factory owner(or instance deployer if instance was deployed manually) method should execute only if address instance not in renounceOverrideCostmanager list
need to organize common method or by operation byte in first params or make bytes calldata and parse it in costmanager!!!
Summary: to change costmanager address can be changed only by owner factory
suggested methods for injecting Costmanager external calls:
method to inject
params
CommunityFactory:produce(
address hook,
string memory name,
string memory symbol
)
address hook,
string memory name,
string memory symbol
implement "CostManager functionalty" main goal are make the hook for couple of methods in factory and produced instance to make additional management mechanism
Requirements: factory can:
in Instance:
suggested methods for injecting Costmanager external calls:
For all can be called costmanager hook