Can we create a HD-Wallet-Contract with a transfer()
-method for specific business-logic and make it inheritable or shareable for sub wallets?
Let's say we have this HD-Wallet and sum sub wallets that were created dynamically for our needs:
+ 0xHDWALLET
- 0xsubwallet1
- 0xsubwallet2
- 0xsubwallet3
The HDWallet has a wallet-contract with a transfer()
-method (and many other business logic implemented).
So, if one would send some Ether to 0xHDWALLET
it would pass the transfer()
-method of 0xHDWALLET
-Contract.
But if someone would send some Ether to 0xsubwallet1
or 0xsubwallet2
, can we implement this wallet contract this way, that these payments would also went through the transfer()
-method of the parent 0xHDWALLET
without to deploy new contracts with each new sub wallet?