readylayerone | solana technical weekly

1.8K posts

readylayerone | solana technical weekly banner
readylayerone | solana technical weekly

readylayerone | solana technical weekly

@readylayerone

open to new roles 👋 | writing a weekly newsletter on engineering work on @solana (see pinned post)

เข้าร่วม Kasım 2023
527 กำลังติดตาม719 ผู้ติดตาม
Soju 燒酒 | Meteora
internet capital markets has an adverse selection problem. founders who raise from crypto, raise from crypto because they have no other choice. the best founders don't need us yet. @BedrockFndn is trying to change that by improving the economics for tokenholders. enter the Takeover Clause. anyone can redeem the equity held with Bedrock by accumulating 30% of a token's circulating supply and paying a premium to buy out the rest of the holders. what this means in practice: even under-performing tokens have a floor. someone who believes in the underlying business can take it private — which improves the odds for everyone holding on-chain. Bedrock, and by extension @MeteoraAG, aims to be a valuable custodian of equity. if we can add real value to founders, more of them will come on-chain to raise. the goal: let VCs have the adverse selection problem. not us.
English
13
3
32
973
readylayerone | solana technical weekly รีทวีตแล้ว
Noah 🎈
Noah 🎈@redacted_noah·
It's been about a year, so I think it'd be fun to look back and see which of these complaints has been solved. 1. IDL infrastructure is even more of a mess now. There's now two sources of truth, the original PDA and now a metadata program. Unfortunately, the metadata program was built without first class support for IDL versioning. So, next time IDLs change major versions, expect more pain. 2. Parsing historical programs given the lack of IDL versioning/history is still a problem now, and with the added metadata program it's now slightly worse. 3. The read layer has improved substantially. Most rpc providers heavily index gPA, so it's not as bad (still bad). Indexers have gotten unbelievably reliable now, such that I trust running an entire UI off of indexed data. It's heavier, you have devops costs, but at least it works and you can customize to your heart's content. 4. Running an API powered by indexers is still somewhat pricey 5. Transaction sending and landing is more or less solved. I haven't had to think about this in months. Smooth as butter. 6. Anchor has gotten faster and they've fixed a lot of the issues that blow out memory. There's still a lot of improvements to be made here, and new frameworks/anchor v2 are coming. 7. CPI depth limit is set to be increased. So this will not be an issue for much longer. 8. TX size limits are set to be increased. So this will not be an issue for much longer. 9. Rent costs have gone down because SOL price shit the bed. Yay? They are also going to actually cut rent costs soon™ 10. All of the cNFT issues described still exist. These have mostly been solved by just not using cNFTs. Use core or token metadata nfts instead. 11. Errors have, for the most part, gotten better. There are still quite a few useless errors, though. 12. All of the top wallets are still closed source. No progress made there, and seems like no one cares. 13. Rust anchor client still sucks. 14. Explorers still have issues, but thanks to claude I built my own that solves most of the issues (explorer.chewing.glass) 15. The base RPC spec still sucks, but if you're okay with vendor lock-in, Helius has a ton of useful APIs. Transaction history. Ability to only fetch accounts that have changed since a given slot. Etc. 16. I actually haven't had a dependency hell issue in a few months, I also haven't upgraded anything. Maybe it's getting better? 17. I haven't had issues with preflight disabled transactions in a while. Not sure if they fixed these issues, or I just started simulating more often. 18. Running programs on a cron is largely fixed. I wrote tuktuk for this, and it's been running reliably for almost a year. Largely things seem to be getting better. I've noticed that a lot of the pain goes away if you shove all of your solana-related stuff into an API, and use that API from your various clients web2 style. You can leverage indexers for complex queries. You can change your program and IDLs without breaking all clients. You can record your own transaction history. Etc. I always had a dream that blockchain dev was a way to avoid devops costs and burden by running everything on decentralized infrastructure. We seem to have moved far from this ideal, web3 is just web2 with another kind of database. Doesn't look great for protocols outliving their parent companies, but as we've seen that almost never happens anyway.
Noah 🎈@redacted_noah

As requested, all my current complaints in no particular order: 1. Uploaded IDL on-chain management is a mess. It has no versioning history, and when IDLs have breaking changes (like anchor 0.30+) all old clients currently looking at the on-chain IDL break. Why can't I lock a client to an IDL major version? Why is every IDL producer slightly different? Anchor, shank, etc should all produce the same thing. Published IDLs are wonderful in that I can add an account that's referenced by a has_one or PDA without breaking existing TS clients. But they need proper versioning. 2. Related to 1, since there's no IDL history, parsing historic transactions on Solana is impossible. Contract endpoints change, IDLs change, there's no history of it. 3. Read layer. The read layer sucks. You can do a lot to structure your program code to optimize for point-queries using PDAs as a kind of index. Like a crappy redis. But the second you need to do list queries ("get me all governance proposals with this tag") you're hosed. gPA is a terrible thing to use. That means you need an indexer! 4. Indexers. I have spent literal years wrestling with indexing on Solana, trying to get it so you catch every anchor record and insert it into postgres. *Finally* I have a solution that works, thanks to @streamingfastio. But even one stream is ~$500/month. Not really accessible to a dev trying things out in their spare time. Fine for Helium. 5. Transaction sending and landing. This is arguably the ONE thing a blockchain should be good at. Why am I talking to like 5-10 different people to find the optimum way to restructure my tx builder+sender every 3 weeks? Prio fees, stake weight QoS, compute limits, jito, lookup tables, transaction vs VersionedTransaction (the most ugly interface ever in both ts and rust). There's just so much to unpack here. Wrap it all up and throw it in a black box I don't ever have to look at again. Please. 6. Anchor performance. Anchor hogs a bunch of memory, newest versions init_if_needed almost always causes it to blow the heap. It also uses a bunch of CUs. It's the most used framework for smart contracts, let's pour all the resources we have into making it better. Native solana code is seriously so ugly to read it's a security hazard. There's no reason anchor, which is all pretty macros, can't be made to be just as fast. 7. CPI call depth limit. It's arbitrary, and low. Sometimes for composability you need more. CPIs are also super expensive. @blockiosaurus has some nice posts on why composability is a lie. 8. Tx size limits. This is actually the least of my problems, I can almost always find a way to work around this. 9. Rent is TOO DAMN HIGH. Sol is mooning, so rent is getting crazy high. I work for a company with funding, so it's not an issue for me. But if I were trying to do Solana in my spare time, $3000 to deploy a smart contract is ridiculous. 10. cNFTs continue to cause issues. If you need to mint a cNFT, then do something with that cNFT, you need to wait for the cNFT to be indexed so you can get its proof so you can construct the subsequent transaction _doing_ something with that cNFT. Huge headache. I wish Core NFTs had existed when we migrated helium, I would have used those instead. 11. Errors. Solana errors are notoriously unhelpful. #L277" target="_blank" rel="nofollow noopener">github.com/anza-xyz/agave…. This entire list should tell you which account the error came from. This is actively being worked on by Solana devrel. 12. Wallets. Of the top 3 wallets (Phantom, Solflare, Backpack) none of them are open source. One is source available, but usually pretty out of date. Wtf. 13. Rust clients suck. Using things like anchor from typescript are a breeze, because there's dynamic account resolution of has_one's and PDAs. Every time I have to use rust, it's like going back to the stone age. 14. Explorers suck. Why am I still using explorer.solana.com? Because it's the only one that consistently doesn't have broken IDL parsing, and has all the information that I need, and works with localnet devnet and mainnet. But it's notably missing things like seeing all txs on a program and filtering by instruction type. 15. The base RPC spec is missing tons of functionality. For one, it sucks at priority fees. Second, it's missing read level functionality enterprise web apps usually make use of, like incremental updates. I shouldn't need to waste data refetching accounts if they haven't changed. But there's no way to say "getMultipleAccounts that have changed past block x" 16. Dependency hell. ALWAYS with the dependency hell. Semver is never followed, especially on rust clients. So upgrading dependencies is always a nightmare. 17. Error handling when you turn off preflight checks is horrendous. Often times, if you've messed up the tx (too large, don't have enough sol, etc) it'll just hang forever. Hanging forever has to be the least desirable outcome for anything. 18. No ability to easily run txs at a specified time/on a schedule without deploying your own workers/crons. RIP clockwork (dw, I'm building a solution to this) I'm sure there's more, but my build finished to it's back to work. This is just top of mind.

English
8
8
77
19.8K
@tobeycodes
@tobeycodes@tobeycodes·
what sandbox are you using for apps with separate frontend, backend, postgres, redis, etc?
English
1
0
0
80
readylayerone | solana technical weekly รีทวีตแล้ว
LE◎ - sol/acc
LE◎ - sol/acc@L0STE_·
Imagining being so clueless to not understand that this is a "trojan horse". Standard rails are still very important when you interact with governments and other traditional partners. People using stablecoins for the back-office and see the simplicity will change the rest.
Stacy Muur@stacy_muur

Crypto projects are now bragging about rolling out SWIFT transfers for stablecoins. If you can’t see what’s wrong with that, I can’t help you.

English
2
4
22
1.5K
@tobeycodes
@tobeycodes@tobeycodes·
> “Duplication is far cheaper than the wrong abstraction.” I still see a lot of engineers creating abstraction too early and end up regretting it later. In the age of agents, I think we should double down on duplication. It's far easier and safer for agents to refactor duplication than a bad abstraction
English
2
0
1
59
readylayerone | solana technical weekly รีทวีตแล้ว
Dean 利迪恩 (⚛️,🐱) | sbpf/acc
after years of battling the inertia of core dev centralization, today, i had the privilege of becoming the first independent core contributor to write, implement and activate a feature on solana mainnet. here's to many more of us smashing the duopoly! 🍾 explorer.solana.com/address/rent6i…
English
34
24
242
7.3K
hersh
hersh@harsh4786·
i just see tokens website as another way to enhance distribution. didn’t think much on it tbh.
English
1
0
5
318
kdot | bulk
kdot | bulk@kdotcrypto·
I will never grow tired of this UI
kdot | bulk tweet media
English
44
10
128
3.2K
Soju 燒酒 | Meteora
I actually don’t think it’s a bad idea In the past, foundation focused on “number of builders or projects” in many of their initiatives (colosseum, superteam) In fact, we should have a “watermark”, or minimum requirement, which is the foundation product in that vertical, and to compete you have to be better than that watermark this way we can actually have high quality apps that people use, instead of endless graveyards of security-risks for the chain and more Foundation should build an AMM so I have less competition
English
4
8
8
1.3K
Dean 利迪恩 (⚛️,🐱) | sbpf/acc
believe it or not, if you’re a blockchain foundation, it’s actually totally fine to not waste years of runway copying existing ecosystem products and midcurving them to death.
English
16
14
91
7.2K
hersh
hersh@harsh4786·
remember solana stack exchange?
English
1
0
9
516
readylayerone | solana technical weekly
@italoacasas @tokens Probably a more institution-friendly way of packaging assets on Solana Not sure if that makes any sense. But it's convenient to show PE for example that you can now trade gold or the S&P500 onchain if you have a link showing them everything with the right branding
English
0
0
6
877
italo
italo@italoacasas·
So I'm struggling to understand how the foundation's @tokens project actually makes sense. There are already a bunch of apps showing tokens + serving them through an API, including one from jupiter itself, so we are now competing?
English
28
1
109
24.1K