The Smart contract and the state variables are stored in the blockchain, let us say during deployment of a smart contract the state variable and smart contracts are stored in the block 1, and in future the state variables are changed by a some transaction, will the variable in the block 1 gets changed ? (If so it will disapprove immutability of the blockchain), or will it create a new block with new state variables and code, then it will be a kind of versioning of smart contracts but it is obvious it is not true.
How does the variable is stored in the blockchain?
What happens when a state variable is changed ?, is changes made to the block where the smart contract is first deployed or new block is created with a smart contract with new value ? or new block is created which just has the transaction history(ie. Value of A changed to 10), if then can I get an Transaction History?
What information is present in the transaction, when an request to change the variable state is place ( only the variable change or the whole smart contract with new values)