Security researchers often explain how to prevent signature malleability in your contracts, but do you know how to test for it while building? It’s actually quite simple, and here’s how to do it in Foundry.
For the theory behind this code, subscribe to @designpatternsc – a new article is coming soon!
How to master #Chainlink CCIP and Add It to Your CV by
@designpatternsc
(bookmark for later) 🧵
1) Following the top-down approach, try transferring some amount of tokens between blockchains of your choice using
@transporter_io
There’s also testnet version available at https://t.co/Ca8siUHcua
2) You should always start with Official Chainlink Documentation, that’s your “book” to learn everything about CCIP
- https://t.co/YV9RhzOGUA
3) Familiarize yourself with basic CCIP terminology and architecture, then deploy a simple CCIP Sender and Receiver contracts
- https://t.co/yaJuKdvO5y
- https://t.co/HYQhDV8hli
4) Play around with CCIP Explorer. Monitor your messages in real-time and analyze the information available.
- https://t.co/dt9gzR2fAK
5) Learn how to transfer tokens from a smart contract
- https://t.co/6H7xsA7Vx5
6) Transfer USDC with Data
- https://t.co/EQcMnOQePW
7) Master the DefensiveExample Pattern and from now on use it as a default way to receive arbitrary data
- https://t.co/m8LVCDCZx6
Optionally, this part of CCIP Masterclass #2 can be helpful:
- https://t.co/ltkM7huOqH
8) Send arbitrary data with the Acknowledgment of the Receipt
- https://t.co/2MkFkwZruG
9) Then deep dive into the CCIP Architecture
- https://t.co/RfWjuJGNhz
And understand CCIP message processing:
- https://t.co/ISXH5nWQWu
This guide can also be really helpful:
- https://t.co/iUkVT5Z0bM
10) After that, go through CCIP Masterclasses (you already covered some chapters)
Masterclass #1
- https://t.co/OJ492eWbck
- https://t.co/XlyBBDW4XD
11) Masterclass #2 (Cross-chain staking)
- https://t.co/1HJSqQHDYr
- https://t.co/1rJk7y5ydw
12) Masterclass #3 (Creating cross-chain NFT)
- https://t.co/1wV0HmmEao
- https://t.co/Ja8bDVlOtx
13) Masterclass #4 (Cross-chain DeFi with USDC and Compound V3)
- https://t.co/LFux5UI4oE
- https://t.co/nxtGcCgHz4
14) Then learn how to simulate CCIP messages locally using chainlink-local
- https://t.co/e0eJnGQDYi
15) You can see a quick demo of chainlink-local here
- https://t.co/hADWBfBpG4
16) Also check out the chainlink-local documentation:
- https://t.co/R1ZqULvNUD
And tutorial playlist on YouTube:
- https://t.co/nuOmlGyhaK
17) Practice writing tests with chianlink-local.
For example, write a test for the https://t.co/URrngSOOmn project.
In the test you must:
- Create an instance of CCIPLocalSimulator.sol smart contract
- Call the configuration() function to get Router contract address
- Create instances of CrossChainNameServiceRegister, CrossChainNameServiceReceiver and CrossChainNameServiceLookup smart contracts and call enableChain() function where needed
- Call the register() function and provide “alice.ccns” and Alice’s EOA address as function arguments.
- Call the lookup() function and provide “alice.ccns” as a function argument. Assert that the returned address is Alice’s EOA address.
18) More practice:
Following the https://t.co/376RY19CUL guide, measure the gas consumption of the ccipReceive function. Once you have the number, increase it by 10% and provide as gasLimit parameter of the transferUsdc function instead of the currently hard-coded 500.000 (see https://t.co/CRlUc5iuCK)
19) Learn some debugging tips & tricks
- https://t.co/zqTGNlcOGU
20) And finally, make sure you answer the 15 CCIP interview questions from the picture
Congratulations, you are now a CCIP expert and can list it as a skill on your CV! 🥳
The latest issue of the Smart Contract Design Patterns newsletter is out!
In this one, we are talking about the Commit-Reveal Scheme.
Read it here:
https://t.co/tOqJ14hAxk
Can you guess which design pattern we're covering in today's article on @designpatternsc from this diagram?
You have until 7 AM PDT, when the newsletter is published
The latest issue of the Smart Contract Design Patterns newsletter is out!
In this one, we are talking about the Sentinel Pattern.
Read it here:
https://t.co/gImF4pVeGw
@andrej_dev would have to be one of the most technically capable Crypto DevRel Engineers in the space. If you're a Solidity developer or Crypto DevRel, suggest checking out his new blog on Smart Contract Design Patterns, where he'll be regularly digging deep on all things smart contract design, patterns and architecture.
If you checked your inbox earlier today, you saw the first article from the Smart Contract Design Patterns series is out!
It provides insights into writing smart contracts that integrate arbitrary ERC-20 tokens.
Read it here: https://t.co/f6oIk7xCSn
Hello, world!
Smart Contract Design Patterns is your go-to newsletter for insights on Solidity and EVM design patterns.
🗓️ First issue drops tomorrow at 10 AM ET.
Subscribe now at https://t.co/h7Od9JGalC.