Wrong Way To Write an Upgradeable Proxy - Transparent Upgradeable Proxy - Part 1 | Solidity 0.8

  Рет қаралды 8,905

Smart Contract Programmer

Smart Contract Programmer

Күн бұрын

Пікірлер: 23
@_sky_3123
@_sky_3123 2 жыл бұрын
Before watching the video, I already knew about the issues you were going to have with the BuggyProxy contract. But you explained it so simply that I still feel like I learned something. Thanks, really informative.
@smartcontractprogrammer
@smartcontractprogrammer 2 жыл бұрын
0:00 - Intro 1:15 - Code proxy contract (wrong way) 5:09 - Deploy the contracts 8:19 - Summary Code solidity-by-example.org/app/upgradeable-proxy/ OpenZeppelin Implementation github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/proxy/transparent/TransparentUpgradeableProxy.sol Take a course www.smartcontract.engineer/
@chenghung3407
@chenghung3407 2 жыл бұрын
can't wait to watch the upcoming video.😁
@solar2361
@solar2361 2 жыл бұрын
Thank you so much. I literally wanted to learn about this topic.
@MrCoreyTexas
@MrCoreyTexas 4 ай бұрын
So I followed along with my remix, and ran inc and saw that the implementation address had 1 added to it. Then I ran inc a second time and expected it to go up by 1 again. It did not! I was boggled until I understood what's going on. There's no contract at that address + 1, so something is failing internally, even though the transaction seems to have gone through with no problem.
@n7esi
@n7esi 28 күн бұрын
I love this. Same case here😅
@meka4996
@meka4996 Жыл бұрын
Amazing! Thanks
@web3escola
@web3escola 2 жыл бұрын
I learned a lot with your videos, thx! I just didn't understand why you need to implement the receive function since it will be called only when msg.data is empty.
@smartcontractprogrammer
@smartcontractprogrammer 2 жыл бұрын
implementation contract may contain some code inside receive()
@vitock1
@vitock1 Жыл бұрын
Hi :) Thanks for nice video! I am curious, doesn't it the Proxy keep the state, not the implementation contract? Actually, this is the benefit when just upgrading the implementation, you gonna still have the memory (data) from all the funds/transactions/etc. ?
@smartcontractprogrammer
@smartcontractprogrammer Жыл бұрын
proxy keeps the state, implementation executes the code. Proxy is like the database that stores data. Implementation is like the web app that executes code
@vitock1
@vitock1 Жыл бұрын
@@smartcontractprogrammer yeah, that is what I know, but why then the admin and the implementation addresses are instantiated in the Counter V1 and V2? I thought that somehow the V1 and V2 add to the state of the Proxy somehow. However, it will most likely clear out when see the other parts of the proxies.
@itsmaahi695
@itsmaahi695 2 жыл бұрын
I want to learn smart contract development.Thanku brother😘
@farrukhodinaev2139
@farrukhodinaev2139 Жыл бұрын
Hi! I love your videos and am learning a lot from them. Can you explain if possible what is the purpose behind setting interface of CountV1 at the address of the proxy at 6:09?
@eugenionull9758
@eugenionull9758 2 жыл бұрын
Nice!
@MrKampla
@MrKampla 2 жыл бұрын
Great content! Are you planning to make a video about diamond pattern?
@smartcontractprogrammer
@smartcontractprogrammer 2 жыл бұрын
Sure once I get a chance to use or review code using a diamond pattern
@itsmaahi695
@itsmaahi695 2 жыл бұрын
Love u bro
@clintonfelix
@clintonfelix 2 жыл бұрын
@Smartcontract Programmer, Can you pls show how to implement proxy algorithmic stablecoin
@smartcontractprogrammer
@smartcontractprogrammer 2 жыл бұрын
no that's too broad topic
@clintonfelix
@clintonfelix 2 жыл бұрын
@@smartcontractprogrammer okay. Thank you for your response. Please if you can kindly recommend Any material to point me in the right direction about how to go about it? I would deeply appreciate.
@dbsjaks_56888
@dbsjaks_56888 2 жыл бұрын
I know that maybe it's asking too much, but it would be perfect if you did tutorials on Substrate(Ink!), or CosmWasm in Rust in the future. I do not know in all KZbin or any site in general that explains things better than you
@smartcontractprogrammer
@smartcontractprogrammer 2 жыл бұрын
I might make videos on CosmWasm
Return Data From Fallback - Transparent Upgradeable Proxy - Part 2 | Solidity 0.8
9:47
Write to Any Slot - Transparent Upgradeable Proxy - Part 3 | Solidity 0.8
13:40
Smart Contract Programmer
Рет қаралды 5 М.
How To Choose Mac N Cheese Date Night.. 🧀
00:58
Jojo Sim
Рет қаралды 98 МЛН
Мама у нас строгая
00:20
VAVAN
Рет қаралды 11 МЛН
Long Nails 💅🏻 #shorts
00:50
Mr DegrEE
Рет қаралды 17 МЛН
УДИВИЛ ВСЕХ СВОИМ УХОДОМ!😳 #shorts
00:49
HARD_MMA
Рет қаралды 3,5 МЛН
Deploying More Efficient Upgradeable Contracts
40:54
OpenZeppelin
Рет қаралды 25 М.
Read Only Reentrancy | Hack Solidity (0.8)
19:55
Smart Contract Programmer
Рет қаралды 12 М.
Proxy Admin - Transparent Upgradeable Proxy - Part 5 | Solidity 0.8
12:03
Smart Contract Programmer
Рет қаралды 5 М.
Minimal Proxy Contract | Solidity (0.7)
10:00
Smart Contract Programmer
Рет қаралды 15 М.
Upgradable Smart Contracts - UUPS Proxy tutorial
22:49
Shobhit (Web3 Club)
Рет қаралды 11 М.
How Smart Contract Proxies Work (Developer Focused)
5:25
Kerman Kohli
Рет қаралды 11 М.
Smart Contract Upgradeability 101 | 5 Upgradeability Methods
40:18
Uncut Gem: Mastering the Diamond Proxy Pattern [Advanced Proxy Pattern]
27:24
Jesper Kristensen (jtk.eth)
Рет қаралды 4,6 М.
Open Zeppelin Upgradeable Contracts
14:14
Smart Contract Programmer
Рет қаралды 37 М.
Create Diamond Contracts In Your Browser Using Remix And Louper
14:36
What The Func? w/ Ed Zynda
Рет қаралды 3,7 М.
Today's Console Pick 🔥
0:11
Gleb POV
Рет қаралды 1,4 МЛН
купила SAMSUNG Z FLIP 6 🎀 и вот что получилось
0:47
Глюк на моем iPhone 16 Pro Max
0:26
ТЕХНОБЛОГ ГУБАРЕВ СЕРГЕЙ
Рет қаралды 1,4 МЛН