I want to create a proxy / router contract that stores
- addresses of other contracts
- function names of other contracts functionality and
- accepted parameters in these contracts.
- ID for each contract
the proxy contract itself will have an AddContract and RemoveContract that adds these parameters to the registry.
Then I want to be able to use this same contract to proxy calls to other contracts. So if somebody calls a smart contract with ID XYZ, with a function myFunction("Here", "is", 123) it would be routed to the address and function of that defined contract under the same ID.
I would like to be able to add contracts after the original proxy creation too and modify them.
Any ideas on how to go about this?