New answers tagged assembly
0
An approximation to abi.encodeWithSignature is abi.encodePacked(bytes4(keccak256(signature)), abi.encode(parameters...))
You can save 0x3df02124 as byte4 variable in your contract and use an adaptation of the code above:
bytes4 functionSig = 0x3df02124
abi.encodePacked(functionSig, abi.encode(parameters...))
2
Uniswap protocol is developed in Solidity, and you can find two main building blocks:
uniswap-v2-core: Core smart contracts, essentially with the Factory, Pair and ERC20, together with a number of interfaces and libraries.
uniswap-v2-periphery: additional smart contracts to interact with the Core ones. They simplify the process of doing swaps or adding/...
Top 50 recent answers are included
Related Tags
assembly × 158solidity × 114
contract-development × 26
evm × 24
contract-design × 15
contract-deployment × 14
bytes × 10
remix × 9
delegatecall × 9
opcode × 8
memory × 6
solc × 5
calldata × 5
contract-invocation × 4
go-ethereum × 3
gas × 3
storage × 3
bytecode × 3
returndata × 3
transactions × 2
addresses × 2
arrays × 2
mapping × 2
abi × 2
out-of-gas × 2