Open in app

Sign In

Write

Sign In

Solidity Foundry Opcodes Security
Solidity Foundry Opcodes Security

327 Followers

Home

About

Pinned

Learn Opcodes

Learn EVM Opcodes I Would you like to learn what bytecode and opcode are ? Welcome ! If you want to improve yourself in the field of security in Solidity language, you should definitely learn the opcodes. In this serie, I will try to explain the basics of opcodes in detail. Learn EVM Opcodes II It’s time to…

Solidity

2 min read

Learn Opcodes
Learn Opcodes
Solidity

2 min read


Pinned

Learn Foundry

Foundry I Foundry basics. Foundry II Selfdestruct function Foundry III OverFlow situation Foundry IV DelegateCall Foundry V Reentrancy Foundry VI assertEq Foundry VII Inspect Associate Professor Engin YILMAZ (VeriDelisi)

Foundry

1 min read

Learn Foundry
Learn Foundry
Foundry

1 min read


Pinned

Learn Solidity

Solidity Tutorial Public | Internal | External | Private Functions in Solidity Public | Internal | External | Private Functions II in Solidity Msg.Sender Account | Contract Account in Solidity Pure and View Functions in Solidity Arrays in Solidity Virtual Override functions in Solidity Interface in Solidity Interface in Solidity…

Solidity

1 min read

Learn Solidity
Learn Solidity
Solidity

1 min read


9 hours ago

Solidity Encode and Decode

A smart contract consists of variables that store information and functions that perform actions. Basically, some functions are private and can only be accessed from within the contract, while others are public and can be accessed from outside the contract. (Others are external and internal) This means that applications and…

Solidity

3 min read

Solidity Encode and Decode
Solidity Encode and Decode
Solidity

3 min read


1 day ago

Call the variable or function from other contract

We try to call other contract function(or variable) from our contract. We learn all the concept about this issue. Firstly you need to learn the visibility in solidity We have two main contracts and each of them assigns one price value to price variable. contract PriceOracle1 {…

Solidity Tutorial

3 min read

Call the variable or function from other contract
Call the variable or function from other contract
Solidity Tutorial

3 min read


2 days ago

Foundry Inspect Code

How many slots do we need ? Explain your calculation! We have 6 different uint variable in solidity programming and each of them has different byte sizes. Logic is simple “every uint8 variable is equal to 1 byte” uint8 : 1 bytes uint16: 2 bytes uint32 : 4 bytes uint64 : 8 bytes uint128 : 16 bytes uint256 : 32 bytes We start our code:

Foundry

2 min read

Foundry Inspect Code
Foundry Inspect Code
Foundry

2 min read


May 5

Foundry VI

We try to use assert equal, less than and greater than expressions for testing our values in solidity code. DSTest We import assert from DSTest Dappsys Test (DSTest for short) provides basic logging and assertion functionality. It is included in the Forge Standard Library. To get access to the functions, import…

Foundry

2 min read

Foundry VI
Foundry VI
Foundry

2 min read


Apr 10

Learn YUL II

In Solidity, the shl and shr commands have the same meaning as in the Yul language. These operators are used to shift the bits of a binary number to the left or right, respectively. Such operations can be useful when working with binary data or performing certain calculations. …

Yul

3 min read

Learn YUL II
Learn YUL II
Yul

3 min read


Apr 7

Learn YUL I

We write “VivaMexicoCabrones” to the memory space with our opcodes and Yul codes. let greet := "VivaMexicoCabrones" Store the string offset in mem[0x00] This is an ABI requirement, 0x20 must be stored at any chosen offset. mstore(0x00, 0x20) Store the length of the string mstore(0x20, 0x12) // 0x12 = 18, length of "VivaMexicoCabrones". Store the string in memory mstore(0x40, greet) Returns the bytes from memory

Yul

2 min read

Learn YUL I
Learn YUL I
Yul

2 min read


Apr 6

Learn EVM Opcodes XI

Mapping storage in solidity ! To get slot index of the mapping’s value under it is given the key. Thank you Jesper! We know that x variable is in the slot 0. What do you think on finding key and value variables in storage ? Mapping includes key and…

Solidity

3 min read

Learn EVM Opcodes XI
Learn EVM Opcodes XI
Solidity

3 min read

Solidity Foundry Opcodes Security

Solidity Foundry Opcodes Security

327 Followers

.sol

Following
  • SlowMist

    SlowMist

  • Onur Dayıbaşı

    Onur Dayıbaşı

  • Monetary Policy Institute Blog

    Monetary Policy Institute Blog

  • Av. Elif Hilal Umucu

    Av. Elif Hilal Umucu

  • Mert Erkal

    Mert Erkal

See all (125)

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech