I'm looking for a way to modify/upgrade my deployed contract functions while keeping the state untouched. is there an example somewhere on doing this?
If you're talking about EVM contracts, then there are several examples on how to write an upgradable smart contract. From OpenZepplin.
If you're talking about WASM contracts, then I don't believe there's any example as such yet.