I extracted opcodes from an already existing and deployed smart contract and I would like to know if it is possible to deploy an exact copy of this contract from its opcodes?
My extracted opcodes looks like this :
0x0, push1, 0x80 0x2, push1, 0x40 0x4, mstore, 0x5, push1, 0x4 0x7, calldatasize, 0x8, lt, 0x9, push2, 0x7f 0xc, jumpi, 0xd, push1, 0x0 0xf, calldataload, 0x10, push1, 0xe0 0x12, shr, 0x13, dup1, ...
I'm not looking for an alternative (e.g. deploying from bytecode or reverse engineering to source code) but really to deploy from these opcodes. Is that even possible? Or the lowest level possible is inline assembly with Yul?
I'm assuming there is no constructor in the source code. If I manage to deploy this code and send to it the right data (functions and parameters, let's say I have the ABI), will it behave exactly like the already deployed contract I got these opcodes from?