Xiangan He
@xBalbinus
Followers
618
Following
2K
Media
104
Statuses
271
i like building apps and securing them.
Boston
Joined January 2021
proud to have been part of building this
0
0
2
Something like this works: `keccak256(abi.encode(uint256(keccak256("<yourContractHere>")) - 1)) & ~bytes32(uint256(0xff))`
0
0
0
Insane smart contract storage hack: if you're writing a storage contract for an upgradeable contract, one thing you can do is positioning your storage slot to avoid the first 256 bits to avoid slot collision issues
2
0
0
Learned something new about Ponder today: when you go to prod using Ponder, Ponder's default tables goes from 'public' to a SHA hash of the deployment instance. If you have a @DrizzleORM database, you'd need to point it at the right Ponder table name.
0
0
1
You can define a schema and feed it to the input and output builder on the backend to give your frontend an easy time integrating. See the example with an endpoint to create a merkle root below.
0
0
1
I really like typesafe code: did you know that you can infer the input and output type information from your tRPC endpoints via. `inferProcedureOutput`? tRPC endpoints work with zod schemas under the hood, so it's easy to get for each of your queries!
1
0
2
Application onboarding flow where you text with the mascot. App is @AEL , design by @ARKconclave
2
1
14
Today I learned: When it comes to databases, storage is limited but compute can be scaled. Especially useful for when you're considering scaling request volume or call size.
0
0
2
Probably one of the most unique onboarding flows I had worked on. app: @AEL design by @ARKconclave
0
0
2
Hackery application wallet generation screen, part of a login flow. Design by @arkicelandllc App is @AEL
0
0
1
@ARKconclave @AEL Basics of how to: - A component for a text bubble (and an image beside it) - The text input component I posted about a few days ago - Double-bracketed button component - Absolutely-positioned background ASCII decorators.
0
0
0
Did you know: push is better than pull when it comes to at-scale token distribution?
1
0
0
Jokes aside though, wishing everyone a happy weekend. Let me know if I can be there for you in your journey!
0
0
0
When life gives you lemons, ship error-handling in your login component.
2
0
1
It then aggregates these using a harmonic mean with bias correction to yield a near-optimal cardinality estimate with sublinear memory (≈1.04/√m accuracy).
0
0
0