CompileするとABIとOpcodeがもらえる!
ABI - Frontendと繋げるJSON形式
Opcode - EVMを動かすためのコード > It is related to gas fee.
What is Opcode?
When we compile the solidity code using the solc compiler, it will translate our code into bytecode, something only the EVM can understand.
EVM is a virtual machine which places between OS and application layer to mitigate OS dependency.
<aside> 💡 application > EVM > OS e.g) Uniswap > EVM > Ethereum
</aside>
EVM bytecode👇
6080604052348015600f57600080fd5b5060878061001e600039600
0f3fe6080604052348015600f57600080fd5b5060043610602857600
03560e01c8063037a417c14602d575b600080fd5b60336049565b60
40518082815260200191505060405180910390f35b60006001905090
56fea265627a7a7230582050d33093e20eb388eec760ca84ba30ec42
dadbdeb8edf5cd8b261e89b8d4279264736f6c634300050a0032
All smart contract source codes is compiled into two formats, by the Ethereum Virtual Machine (EVM)
・Application Binary Interface (ABI): a communication layer between solidity and Javascript, in JSON format ・Bytecode: the low-level machine language that gets executed by the EVM