I have been a bit out of control lately. I’ve been drinking a lot of beer. Missus and I went through two cases, thirty total in three days, and I wound up going to the store at eight-thirty last night to stock back up. I’ve been in hangover city this morning and have finally decided it’s time to get up. Missus is in bed, she called out.
My first mistake, as always, is buying beer in the first place. I haven’t worked out at all this week except for a run on Monday. I almost went for a jog yesterday afternoon since the weather was cool, but I had eaten a big lunch and was worried I wouldn’t be able to finish. I haven’t lifted in a week probably.
I don’t know why I drink. I know I get triggered if Missus drinks, but I’m not really sure why. FOMO, I guess. I don’t think I get stressed out and say man, I really need a drink, I just do it, mechanically. I know I’m poisoning myself, slowly, and the effect on my pocketbook is probably significant as well. I’ve probably spent seventy dollars this week and we’ve still got the weekend.
Maybe I am stressed out more than I tell myself. Programming is hard, and trying to work on coding projects with a beer in my hand, gulp gulp gulp. My Perpetual funding is flat this week, glug glug glug. Kids are being PITAs, you get it.
I’m not quite sure what I’m going to do today. I started working though some Solana developer tutorials, so I’ll probably work on one of those. I keep banging my head around this problem of transaction history, and I’m not even sure I’m looking at it properly.
The problem I’m looking at is ultimately about Serum market history, but I’ve chunked down to something more base, namely the state of a Solana program account at a particular point in time. The hello world contract is an example that I’m probably going to delve into. It’s basically a greeter contract. You call it, it responds with “hello”, and increments a counter variable that you can query to find the value. Ultimately, I want to be able to look back at a particular transaction in the past when the contract was called and determine what the state of the counter variable was. Ethereum explorers will show the internal state change, but I don’t think such a thing exists on Solana. I haven’t been able to find it.
But maybe I’m overthinking it. Even with this inability, I may still be able to determine the state of a particular contract by going back and replaying it’s history from genesis. I just don’t have the tools yet. I’m just scratching the surface on the Solana API, I’m nowhere near the point of being able to go back and retrieve every transaction that touched a pubkey, let alone parsing Serum’s instructions. So I’ve got to attack the problem on several fronts. It’s a huge technical problem, and I understand so little of it right now.
It’s no wonder I’m stressed.