febo / pinocchio

Create Solana programs with no dependencies attached
Apache License 2.0
92 stars 19 forks source link

Add `Sysvar` trait #1

Closed febo closed 2 months ago

febo commented 2 months ago

Problem

While pinocchio currently includes syscalls to access sysvars, sysvar types are not present.

Solution

This PR adds a Sysvar trait to represent sysvar data and provides a scaffolding macro to define getters.