Offchain Approval with ERC20 Permit and Ethers.js

  Рет қаралды 9,863

Smart Contract Programmer

Smart Contract Programmer

Күн бұрын

Пікірлер: 27
@smartcontractprogrammer
@smartcontractprogrammer 2 жыл бұрын
0:00 - Intro 0:26 - ERC20 permit 3:07 - Test script 4:13 - Write ERC20 token contract 5:44 - Back to writing test 7:05 - What message to sign for permit? 9:04 - Finish up the test script 9:48 - Execute test Take a course www.smartcontract.engineer/
@mohamadhammoud4326
@mohamadhammoud4326 2 жыл бұрын
I'm so grateful for this channel. Please may you have a video regarding meta transactions?
@meka4996
@meka4996 Жыл бұрын
Amazing man! Thanks
@cypherarts1291
@cypherarts1291 2 жыл бұрын
@Smart Contract Programmer where do I define the contract owner pays for the transfers?
@adamstraus6677
@adamstraus6677 2 жыл бұрын
You're a homie
@leonardman5935
@leonardman5935 Жыл бұрын
so who is the new owner of the token, the contract owner of vault or it is only staying in this contract vault?
@cypherarts1291
@cypherarts1291 2 жыл бұрын
one word: wow!
@jjmorosr
@jjmorosr Жыл бұрын
sos un capo!!!
@reoyamanaka7566
@reoyamanaka7566 Жыл бұрын
Amazing video. Could you please make a frontend tutorial that integrates this? Thanks so much
@veliea5160
@veliea5160 2 жыл бұрын
Why Uniswap ERC721Permit.sol permit function is calling `_approve` at the end. you say we avoid calling approve if we use permit
@hackerhubnft7675
@hackerhubnft7675 2 жыл бұрын
Some contracts have a bool parameter allowed. Why is that ?
@mangola-x8u
@mangola-x8u 2 жыл бұрын
How is it offline transaction? How does OpenSea payment system work for bidding? In above example it looked we have clubbed transferFrom and approve together is some way? Am i understanding it right?
@smartcontractprogrammer
@smartcontractprogrammer 2 жыл бұрын
How is it offline transaction? Permit replaces approve. Approve must be called by owner of token (msg.sender) Permit can be called by anyone if they have the signature from the owner n above example it looked we have clubbed transferFrom and approve together is some way? Am i understanding it right? Correct. It can also be modified to be called by anyone. permit(owner, spender, amount, signature) transferFrom(owner, spender, amount)
@DeadBabyFoetus
@DeadBabyFoetus 2 жыл бұрын
Awesome! Video suggestion: Which contract is msg.sender when performing calls/ delegate call :)
@afeem7605
@afeem7605 2 жыл бұрын
hey man, could you share resource for learning hyperledger fabric if you have any? would really appreciate it:)
@CoderGaming
@CoderGaming 2 жыл бұрын
Hi.! Thank you for this quality educational videos. I learned a lot from your videos. I just wanted to request you to make video about Gas Station Network (GSN). Thank once again 👍
@eduardobenitez6376
@eduardobenitez6376 2 жыл бұрын
A later implementation that the Vault would need is to know how many tokens belong to each person that has depositedWithPermit? Great Vid!
@smartcontractprogrammer
@smartcontractprogrammer 2 жыл бұрын
Video about vault is already published
@faranahmadk7401
@faranahmadk7401 8 ай бұрын
@@smartcontractprogrammer please guide. I can't find that vault video. Thanks
@chenghung3407
@chenghung3407 2 жыл бұрын
is permit function also needed to be written in the ERC20 token contract?
@smartcontractprogrammer
@smartcontractprogrammer 2 жыл бұрын
no, it's not part of ERC20 standard
@善哥-j6v
@善哥-j6v 2 жыл бұрын
the signature only require a deadline and amount,is this mean 1 signature can use in all erc20_permit token?
@billamazing6527
@billamazing6527 2 жыл бұрын
usdt & usdc not support erc20, is there any way use permit to send them?
@rickdev
@rickdev 2 жыл бұрын
In which scenario will we use this vault with depositWithPermit? it's a nice implementation detail but I can't understand where this will fit
@smartcontractprogrammer
@smartcontractprogrammer 2 жыл бұрын
deposit - 2 transcations (approve and deposit) depositWithPermit - 1 transaction (no approve, replaced by permit)
@Michael.A.Grinstead
@Michael.A.Grinstead 2 жыл бұрын
Gas optimisation
Constant Sum Automated Market Maker | Solidity 0.8
32:16
Smart Contract Programmer
Рет қаралды 8 М.
Players vs Pitch 🤯
00:26
LE FOOT EN VIDÉO
Рет қаралды 127 МЛН
МЕНЯ УКУСИЛ ПАУК #shorts
00:23
Паша Осадчий
Рет қаралды 4 МЛН
这是自救的好办法 #路飞#海贼王
00:43
路飞与唐舞桐
Рет қаралды 135 МЛН
How to send ETH and transfer ERC20 token with ethersJs
34:14
CodeWithJoe
Рет қаралды 4,5 М.
Time Lock | Solidity 0.8
21:09
Smart Contract Programmer
Рет қаралды 15 М.
I tried 8 different Postgres ORMs
9:46
Beyond Fireship
Рет қаралды 435 М.
EthersJS Providers VS Signers - A Deep Dive | JavaScript & EthersJS
5:09
ERC20 Permit() Playground
50:39
Austin Griffith
Рет қаралды 4,3 М.
Deploy your Smart Contracts with Hardhat | Moralis API | React
20:28
Moralis for Developers
Рет қаралды 4,4 М.
Crowd Fund | Solidity 0.8
20:58
Smart Contract Programmer
Рет қаралды 13 М.
Sign Message with Ethers.js and Verify with Solidity Contract
12:39
Smart Contract Programmer
Рет қаралды 10 М.
Players vs Pitch 🤯
00:26
LE FOOT EN VIDÉO
Рет қаралды 127 МЛН