I have authored this a while ago, however decided not to move it further last call watching that new solidity upgrade promises at some point to have generics, and lack of generics was major friction in adapting this proposal by many whom I spoke with.
Im less enaged with solidity nowdays, but would love to finalize this. Can anyone suggest or perhaps PR in to ERCs (happy to add as co-author) how best to align it with future of Solidity capabilities?
Ideally, we want to get rid of needs to do fragile abi.encode abi.decode for calldatas and instead define generic types that can be compile / runtime validated.
I think something like this standard would be fairly easy to do in Core.
You can take a look at the extensions example in the playground and see if the hooks it uses somewhat match.
I need to get a bit more familiar with ERC-7746, to say for sure though.
It seems very doable, basically your library already demonstrates Stacked within contract, the ERC I’m more then open to modify to make work for cross-contract stacking.
One question regards gas though, what will be match (hook)gas efficiency compared to abi.decode() now?