- Видео 58
- Просмотров 239 004
Reanblock
Добавлен 1 авг 2019
Learn to become a professional full stack Blockchain developer at reanblock.com
Hashing in Blockchains (SHA256. keccak256)
This video explains hashing in blockchains and focuses on the Ethereum blockchin use of keccak256 hash function. We explain what hashing is and what it is used for and then dive into some tools and examples!
Feel free to donate and help me to buy a coffee or even a new MacBook pro! ;)
BTC: bc1q3fddwnufucdkpqz6fzj03xsskaqjxv8dag90x2
ETH: 0x67cC81389f44c0B980F93dc003300a31aD5dadA2
Many thanks everyone and I appreciate your support in any way!
Feel free to donate and help me to buy a coffee or even a new MacBook pro! ;)
BTC: bc1q3fddwnufucdkpqz6fzj03xsskaqjxv8dag90x2
ETH: 0x67cC81389f44c0B980F93dc003300a31aD5dadA2
Many thanks everyone and I appreciate your support in any way!
Просмотров: 197
Видео
Blockchain Basics Introduction
Просмотров 1116 месяцев назад
In this video I walk through the basics of a blockchain, what it is at a high level and how it operates. This is the first in a series of video tutorials that will explore the concepts of Blockchain technology! Feel free to donate and help me to buy a coffee or even a new MacBook pro! ;) BTC: bc1q3fddwnufucdkpqz6fzj03xsskaqjxv8dag90x2 ETH: 0x67cC81389f44c0B980F93dc003300a31aD5dadA2 Many thanks ...
Rust CosmWasm smart contracts - JSON Schema generator and best practices
Просмотров 1309 месяцев назад
In this tutorial, we will learn how to develop a Rust binary to generate and export a JSON schema file for our CosmWasm smart contract as well as some other best practices to follow. Enjoy! Useful links: CosmWasm book: book.cosmwasm.com/index.html cw-template; github.com/CosmWasm/cw-template cw-optimizoor: github.com/mandrean/cw-optimizoor Awesome CosmWasm: github.com/CosmWasm/awesome-cosmwasm ...
Rust CosmWasm - managing funds and transfer coins in smart contracts
Просмотров 1809 месяцев назад
In this tutorial, we will learn how to manage funds and transfer value in smart contracts. Useful links: CosmWasm book: book.cosmwasm.com/index.html cw-template; github.com/CosmWasm/cw-template cw-optimizoor: github.com/mandrean/cw-optimizoor Awesome CosmWasm: github.com/CosmWasm/awesome-cosmwasm wasmd: github.com/CosmWasm/wasmd If you like this video please like and subscribe. I'll be producin...
Rust CosmWasm State Management and Multitest
Просмотров 589 месяцев назад
In this tutorial, we will learn how to use multitest and manage state in Rust CosmWasm smart contracts. Useful links: CosmWasm book: book.cosmwasm.com/index.html cw-template; github.com/CosmWasm/cw-template cw-optimizoor: github.com/mandrean/cw-optimizoor Awesome CosmWasm: github.com/CosmWasm/awesome-cosmwasm wasmd: github.com/CosmWasm/wasmd If you like this video please like and subscribe. I'l...
Rust CosmWasm Query Entry Points Tutorial
Просмотров 899 месяцев назад
In this tutorial, we will learn how to build and test a new query entry point in our Rust CosmWasm smart contract. Useful links: CosmWasm book: book.cosmwasm.com/index.html cw-template; github.com/CosmWasm/cw-template cw-optimizoor: github.com/mandrean/cw-optimizoor Awesome CosmWasm: github.com/CosmWasm/awesome-cosmwasm wasmd: github.com/CosmWasm/wasmd If you like this video please like and sub...
Rust CosmWasm Tutorial Videos - Introduction to CosmWasm
Просмотров 2689 месяцев назад
In this tutorial, we run though the basics of setting up a new CosmWasm Rust based smart contract! We will also learn about CosmWasm smart contract entry points. Essentially we are going to manually build out, step by step, what the cw-template provides. By building this foundation manually we are able to get a deeper understanding of the foundations of Rust based CosmWasm smart contracts. Usef...
Rust WebAssembly WASM Tutorial - build a WASM Module using Rust
Просмотров 6259 месяцев назад
Learn to build a basic Rust WASM module using wasm-pack, cargo, Rust and Javascript. This tutorial is very basic and is intended only to get you started with Rust based WASM modules. It is an intermediary step between learning Rust programming (see earlier videos) and learning CosmWasm (see next videos in series). This tutorial ( your own motivation to dive deeper, learn Rust programming, WASM ...
Rust Programming Tutorial Videos - build a cli grep utility!
Просмотров 1579 месяцев назад
In this video we cover how to run though some of the core foundational concepts in Rust to build a new Cli tool. Some of the concepts that are used in this tutorial are: functions, ownership, structs, enums and pattern matching, crates, collections, error handling, conditions & loops, generic types, traits and unit tests! There is a lot to cover so enjoy the ride! 00:00:37 Introduction 00:03:57...
Rust Programming Tutorial Videos - Introduction to Rust
Просмотров 2109 месяцев назад
Rust Programming Tutorial - Introduction to Rust - installation, hello world and build a cli game! In this video we cover how to install Rust, how to use Cargo, how to create and compile a new Rust program and how to build a simple guessing game cli application. 00:01:04 Introduction 00:02:00 Installation 00:05:00 Hello World! 00:08:30 Hello Cargo! 00:14:50 Guessing game - Rust cli program Usef...
Yul Fallback Function Interface
Просмотров 13010 месяцев назад
Tutorial which outlines a contract that is almost entirely written in Yul and is interacted with via an interface contract that calls into the fallback function (written in Yul). Useful Links: github.com/reanblock/screencasts/blob/main/10-introduction-to-yul/ Feel free to donate and help me to buy a coffee or even a new MacBook pro! ;) BTC: bc1q3fddwnufucdkpqz6fzj03xsskaqjxv8dag90x2 ETH: 0x67cC...
Transfer value to another account using Yul
Просмотров 11710 месяцев назад
Tutorial explaining how to send value from a contract to an EOA using both Solidity and Yul. Enjoy! Useful Links: github.com/reanblock/screencasts/blob/main/10-introduction-to-yul/ Feel free to donate and help me to buy a coffee or even a new MacBook pro! ;) BTC: bc1q3fddwnufucdkpqz6fzj03xsskaqjxv8dag90x2 ETH: 0x67cC81389f44c0B980F93dc003300a31aD5dadA2 Many thanks everyone and I appreciate your...
Calling other contracts using staticcall in Yul
Просмотров 21910 месяцев назад
Tutorial explaining calldata and how to call external contracts using staticcall in Yul. Useful Links: github.com/reanblock/screencasts/blob/main/10-introduction-to-yul/ Feel free to donate and help me to buy a coffee or even a new MacBook pro! ;) BTC: bc1q3fddwnufucdkpqz6fzj03xsskaqjxv8dag90x2 ETH: 0x67cC81389f44c0B980F93dc003300a31aD5dadA2 Many thanks everyone and I appreciate your support in...
Logging events in Yul
Просмотров 14010 месяцев назад
Tutorial example showing how to use Yul to log events! You can think of this as a 'Yul Log' :) Useful Links: github.com/reanblock/screencasts/blob/main/10-introduction-to-yul/ Feel free to donate and help me to buy a coffee or even a new MacBook pro! ;) BTC: bc1q3fddwnufucdkpqz6fzj03xsskaqjxv8dag90x2 ETH: 0x67cC81389f44c0B980F93dc003300a31aD5dadA2 Many thanks everyone and I appreciate your supp...
Using return, revert & keccak256 in Yul
Просмотров 233Год назад
Tutorial all about using return, revert & keccak256 statements in Yul Useful Links: github.com/reanblock/screencasts/blob/main/10-introduction-to-yul/ Feel free to donate and help me to buy a coffee or even a new MacBook pro! ;) BTC: bc1q3fddwnufucdkpqz6fzj03xsskaqjxv8dag90x2 ETH: 0x67cC81389f44c0B980F93dc003300a31aD5dadA2 Many thanks everyone and I appreciate your support in any way!
Basics of working with the free memory pointer via Yul
Просмотров 249Год назад
Basics of working with the free memory pointer via Yul
Working with memory in Yul (mstore & mstore8)
Просмотров 240Год назад
Working with memory in Yul (mstore & mstore8)
Write to a packed storage variable in Yul
Просмотров 298Год назад
Write to a packed storage variable in Yul
Managing storage slots and data using Yul Assembly in a Solidity Smart Contract
Просмотров 1 тыс.Год назад
Managing storage slots and data using Yul Assembly in a Solidity Smart Contract
Solidity Assembly Programming in Yul
Просмотров 1,9 тыс.Год назад
Solidity Assembly Programming in Yul
Indexing Smart Contract Events using The Graph Liquity Subgraph DeFi Protocol
Просмотров 322Год назад
Indexing Smart Contract Events using The Graph Liquity Subgraph DeFi Protocol
Deploy a dApp to Point Network Alpha Testnet
Просмотров 2032 года назад
Deploy a dApp to Point Network Alpha Testnet
Build and Deploy Decentralized Apps in Point Network
Просмотров 3332 года назад
Build and Deploy Decentralized Apps in Point Network
Liquity Price Feed Oracle design using Chainlink and Tellor
Просмотров 4292 года назад
Liquity Price Feed Oracle design using Chainlink and Tellor
Stability Pools & Liquidation process in the Liquity DeFi Protocol
Просмотров 1 тыс.2 года назад
Stability Pools & Liquidation process in the Liquity DeFi Protocol
DeFi StableCoin Borrowing Platform with 0% interest - a technical dive into Liquity Protocol!
Просмотров 7132 года назад
DeFi StableCoin Borrowing Platform with 0% interest - a technical dive into Liquity Protocol!
can you please tell if this smart contract can transfer coins from one user to another directly using a blockchain
we will multiply by 29byte to get complete 256-bit to store vale at certain postion?
You ought to define terms such as ultima ratio. It means "as a last resort". You know what those terms mean, but the uninitiated do not.
only 1/3 of the TVL locked up as of today...
Cool! Great content
You deserve a comment and a great thank you for your great teaching skills!
Elite content as always!
🏃 "PromoSM"
Always read any of these codes you find on youtube. If it has import IPFS. Or has a return to 0x....(wallet addess) beware you it may not even be annarbitrage contract their showing you how to build but a contract that your loading up with "gas" fees when in reality you would never need .2 bnb for gas on smartchain their really having you send your money to a contract that forwards your money to their wallet. This guy obviously has no clue what hes talking about and I wouldnt even attempt building anything this guy shows me.
He's my Blockchain Guru
more lesson please , Thank you
Really well done video.
Pls can you teach how to install the cosmwasm from scratch?
That was insanely well explained! Your videos should be played during school classes covering blockchain technology.
Thank you so much!
Is it possible to call an API on off chain backend once the funds are transferred successfully? For example, the user buys an in-app purchase by sending some funds to the admin using this smart contract and passing their id and other data as input parameters. The contract then informs off chain backend via API call of the transaction. Or is there a better secure alternative?
Thank you for your question. Yes, off chain integration is possible by monitoring on chain events and responding to them.
$:docker compose run --rm freqtrade new-config --config user_data/config.json $:freqtrade trade --config config_examples/config_freqai.example.json --strategy FreqaiExampleStrategy --freqaimodel LightGBMRegressor --strategy-path freqtrade/templates I run these 2 commands on Docker but don't know how they are related to each other. Please explain to me how freqtradeAI impacts the main stream. pls
Took me so long to find this info 🤦🏿♂️🤦🏿♂️
lol hardest thing to watch but hilarious
Im sorry, you have explained it clearly in the video. I posted the comment before watching till the end. Its clarified now. Thanks!
Amazing video, thank you.
Very good content.. I got a doubt here. 0x2 is one byte, correct? I'm debugging these mstore operations as follows: mstore(0x0, 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff) mstore(0x0, 0x2) mstore(0x1, 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff) And the memory state is as below. Why did it clear out the one byte 0x2 stored at 0x0?
0x2 is a 'nibble' (4 bits) also known as a 'hex digit'.
@@Reanblock Thanks for the quick reply! what I meant to ask was about mstore operation putting leading zeros and so the nibble 0x2 gets stored at the last byte. And so the third mstore clears out 0x2 at the last byte. I had posted the doubt before watching till the end. You have nicely explained it at the end.
@NawaqavouRugbyAcademy 0 seconds ago I am using FREQ trade and my first month, 60 trade and then 2 trades got force no trade to bring to 60/2, and that 2 beging force not to trade leaves me with 2 red or no profit trade and it seems they have been blocking my later trades that are doing well and could not be loaded to the list complete trade, can you advise what has happened or what can I do to unglog it so it can keep ticking over to complete trade list, as it has been blocked to receive up trade for the last 3 days. thank you.
great ... do more tutorials on this
Thank you sir!
Careful! People need to understand the “redemption” process in troves which can happen anytime by another user if not monitoring your CR %. This happens regardless if your trove is above 110%. It has nothing to do with automated liquidation. Basically if you are among the lowest collateralized ratio in the troves list someone else can payoff your loan (partial or fully). You’re not loosing $ in terms of value. But you basically sold your ETH at current market price. So if your plan was to take a loan (interest free) to perhaps payoff a high interest rate credit card or car loan for example, and don’t want to sell your ETH so you can wait for price to increase (i.e. over next 6 months or) if you think in bull market or perhaps buy more ETH if prices fall and bump up your collateralized ratio. You have to manage your CR daily and your CR is actually much more than 150% to be safe. It can be over 390% to be safe. Check out Dune Analytics liquify redemption/collateral site to see what the “safe level” is. dune.com/Move37/liquity-redemptions-collateral-level-tracker. It sucks there is no way to have a 24 hour window before someone can redeem against you (i.e. through smart contract logic) where someone starts a redemption against you but you have time to bump up your ratio to cancel it. Having said that, perhaps if your savvy you can use GraphLinq.io protocol to automate your ratio bumps daily to solve this to make sure your not at the top of risky troves.
I discovered your channel back in early 2021 during the last bullrun, I was trying to learn to code to better understand smart contracts and avoid honeypots and scams. I watched all your videos and learned a ton! Your channel is criminally underrated and I just want you to know that your content is top notch and you're doing an amazing job! Big love from Morocco brother!
Thank you so much! Appreciate your kind comment!
This is amazing, why don’t people use Yul more? Thanks for video very relaxing voice.
Probably because Solidity is easier to understand - but, agreed, Yul is awesome and does the job more efficiently than Solidity!
Promo'SM
Golden content, thanks. I just followed you on twitter.
Thanks for following! Appreciated!
I really like your ability to simplify this concepts. You made it easy for the to understand. I just followed you on twitter.
Thank you so much!
Thanks for the nice lecture, would you please create a yul playlist?
Sure, I will, good idea!
Thank you!
How can we do deep copy of array in Yul ? (Not just the pointer )
Assuming the array is already in memory then use mload to copy the entire array contents to the stack and then mstore that value starting at the current free memory pointer (remember to update the free memory pointer at the end). Its worth testing this out using Remix, of course!
Your video has helped me , Thanks Would be great if you could help in this task I am trying to solve some gas optimization quests on node guardians... Task : implement a simple function copying a bytes memory array in most gas efficient way using inline assembly here is my code, which is not working and not efficient // SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.19; abstract contract Challenge { /** * @notice Returns a copy of the given array in a gas efficient way. * @dev This contract will be called internally. * @param array The array to copy. * @return copy The copied array. */ function copyArray(bytes memory array) internal pure returns (bytes memory copy) { assembly { let length := mload(array) copy := mload(0x40) mstore(0x40, add(copy, add(32, mul(length, 32)))) mstore(copy, length) if gt(length, 0) { let src := add(array, 32) let dst := add(copy, 32) let end := add(src, mul(length, 32)) for { } lt(src, end) { } { mstore(dst, mload(src)) src := add(src, 32) dst := add(dst, 32) } } } //return copy; } }
Many thanks for your comment.. I will be producing some video tutorials on smart contract gas efficiency in the near future.
Thank you to the blogger for sharing. Your videos have taught me how to use Freqtrade and develop my own strategies. The blogger's Freqtrade series of videos are really great. Also, may I ask a question: How can I view the report of a live trading strategy? Similar to the report generated during backtesting. Thank you.
Thank you for your kind words! I suggest checking the Freqtrade docs for diving deeper!
must watch video and to practice for all solidity devs. thanks for this video
You nailed it man, specially the Bitwise shifting and masking part of the video.
Really good explained! Thanks for your time!
👏 thank you sir
This is really good information, but I have very hard time understanding what you are saying. I found myself going back multiple times because I couldn't understand the words you are saying. Could you try pronouncing vowels a a bit stronger?
I used to hate going into assembly at school, this assembly is much better.
I think it's mathematically improbable, but since the private key is just a large random integer, what happens when someone generates the same private which has been previously generated and has some funds in it? If the latter person immediately gains access to the existing public addresses associated with the private key as well? Or will the last person not be able to gain access since his private key will be associated with a different set of public addresses?
It is technically possible but mathematically improbable to generate the same private key twice. Hypothetically, if you did generate a private key that was already being used by someone else then when you add that to your wallet you will have access to the funds belonging to that wallet (obviously not ideal which is why it is unlikely to ever happen!).
Extremely useful. Thank you so much! Really helped me to understand better the gas mechanism.
This video is a few days away from 3 years old, and currently only has 2974 views! 🤯
Is it possible to enter with open price as backtesting doing? Because for me it's enter on next candle with the same enter price as it was triggered.
MUCH better than some of the tutorials than I've seen from the more "popular" Freqtrade Channels. Please do moar. Thank you.
Thank you so much John!
Thank you
So educational! Your deep presentation is clever ! Thanks 🙏
You state that block.timestamp gives the EVM execution time. Are you sure ? I thought that block.timestamp returned the time when the block was mined. It has nothing to do with the current execution time. Please check and confirm. Thank you.
Thank you for your comment. For the purpose of testing in this screencast the block timestamp can be considered the same thing - meaning it is the time the block was mined which I consider to be also the time that the function was processed.
Perfect video, thank you