0:10 - and 1:30 - or 2:49 - xor 4:27 - not 5:28 - shift left 6:53 - shift right 8:13 - Remix demo 10:05 - Code challenge - get last N bits 13:33 - Get last N bits using mod Code solidity-by-example.org/bitwise/ Take a course www.smartcontract.engineer/
Very interesting indeed. Now, a newbie question: I have studied quite a few contracts and I cannot figure where these operations may be needed. Any example, please?
Can you please give me an update on IERC20 please? I made a code that uses IERC20, but I put everything in correctly. I made the IERC20 code. And I have imported it in, and have used it in my code, but it is underlined red? I just don’t get why that is happening.
@@zacharysnyder3905 should give you some error if you hover? did you implement all the methods and the function signatures match? Or is the error from sollint?
@@alex-dk2rj I don’t think so, but I have just deleted the IERC20 code. Now, I have just turned it into events that have indexed variables in them. Here is a sharing for what I mean: contract ________ { event Deposit (address indexed sender, uint amount); event Submit (address indexed txId); event Approve (address indexed owner, uint indexed txId); event Revoke (address indexed owner, uint indexed txId); event Execute (uint indexed txId); } Do you see where I am going with this? I think it will just be less complicated for me, so I don’t have to do a lot more work.
0:10 - and
1:30 - or
2:49 - xor
4:27 - not
5:28 - shift left
6:53 - shift right
8:13 - Remix demo
10:05 - Code challenge - get last N bits
13:33 - Get last N bits using mod
Code
solidity-by-example.org/bitwise/
Take a course
www.smartcontract.engineer/
Simple ,to the point and amazing content.
It's so clear, thanks!
You are on fire!
Thank you so much for these videos ❤
Thanks for this top content
Just know that you are awesome!
Interesting, It is totally new for me. Thanks a lot!
8:32 think you meant to type 11 😬
Nice catch
Very interesting indeed. Now, a newbie question: I have studied quite a few contracts and I cannot figure where these operations may be needed. Any example, please?
github.com/Uniswap/v3-core/blob/main/contracts/libraries/TickBitmap.sol
@@smartcontractprogrammer or to solve Gatekeeper One from Ethernaut 😃Thank you for your videos.
Can you please give me an update on IERC20 please? I made a code that uses IERC20, but I put everything in correctly. I made the IERC20 code. And I have imported it in, and have used it in my code, but it is underlined red? I just don’t get why that is happening.
What’s the error
@@alex-dk2rj It’s just underlining the IERC20 red. But, I don’t get what the error is. So, I am just going to put the things in the code to fix it.
@@zacharysnyder3905 should give you some error if you hover? did you implement all the methods and the function signatures match? Or is the error from sollint?
@@alex-dk2rj I don’t think so, but I have just deleted the IERC20 code. Now, I have just turned it into events that have indexed variables in them. Here is a sharing for what I mean:
contract ________ {
event Deposit (address indexed sender, uint amount);
event Submit (address indexed txId);
event Approve (address indexed owner, uint indexed txId);
event Revoke (address indexed owner, uint indexed txId);
event Execute (uint indexed txId);
}
Do you see where I am going with this? I think it will just be less complicated for me, so I don’t have to do a lot more work.
@@zacharysnyder3905 not exactly sure what you’re trying to do but did you import the IERC20 interface properly?
thank you
can you make video on banchor v2 protocol which reduces the impermanent loss
no, I heard they temporary stopped their impermanent loss protection