@gretzke's avatar

Daniel

@gretzke

Software Engineering Lead - Smart Contracts @0xPolygon

4 Posts
7 Replies
6 Following
8 Followers
0 Mirrors


@gretzke's avatar
Daniel
@gretzke
@buttrfly.lens trying out the mobile app, the mobile wallet connection with MetaMask doesn't work. Perhaps this will help you: https://github.com/rainbow-me/rainbowkit/issues/746
0 Comments
2 Likes
0 Mirrors

@gretzke's avatar
Daniel
@gretzke
Yesterday we participated in MatchboxDAOs 0xMonaco Battle of Titans! We as part of the Polygon team took 2nd place against 12 opponents. In the end we lost to Uniswap by…
0 Comments
0 Likes
0 Mirrors

@gretzke's avatar
Daniel
@gretzke
TIL writing threads on Lenster is hard
0 Comments
0 Likes
0 Mirrors

@gretzke's avatar
Daniel
@gretzke
2/5 Especially when working with cross chain applications (e.g., bridges) a Solidity dev might more often than not work with arbitrary data that can be parsed into multiple different data structures,…
0 Comments
0 Likes
0 Mirrors

@gretzke's avatar
Daniel
@gretzke
3/5 The smart contract does not know what kind of data it's working with. Parsing this data can pose a challenge. Bytes memory cannot index ranges effectively and can't be sliced…
0 Comments
0 Likes
0 Mirrors

@gretzke's avatar
Daniel
@gretzke
4/5 TypedMemView manipulates the stack, instead of the memory itself, making it a lot more flexible and cheaper to use. It can slice and index arbitrary ranges on the stack without…
0 Comments
0 Likes
0 Mirrors

@gretzke's avatar
Daniel
@gretzke
5/5 My repo demonstrates a POC of a bridge contract that can handle ERC20 and NFT transfers, as well as make arbitrary smart contract calls. Using the TypedMemView library, the smart…
0 Comments
0 Likes
0 Mirrors

@gretzke's avatar
Daniel
@gretzke
1/5 Working with arbitrary data (bytes) and parsing it on chain in Solidity can be a pain. There is a little known library called TypedMemView that makes working with this type…
7 Comments
0 Likes
0 Mirrors