following up on my last post about unpacking solana account data in rust, we also need to do the same on the ts side. so, i created a codec for our struct using solana/kit - gill — this handles pack/unpack easily using the latest solana typescript sdk.
lich.sol
lich.sol10.7. klo 00.16
after defining pdas in our Pinocchio programs, we need a simple and safe way to unpack raw solana account data on the client side into the structs we defined. so, i usually implement a small trait in my sdk for each state that handles its deserialization cleanly and safely.
1,25K