Example smart contract that uses the Satellite Contract to access Storage Proofs data.
For easier integration, you can add the Satellite contract as a dependency and use its interfaces inside your smart contract.To do that using Foundry, you should first install it using:
Copy
forge install HerodotusDev/satellite
and then we recommend configuring a remapping inside your foundry.toml file:
Copy
remappings = [ # Your other remappings go here "@HerodotusDev/satellite/=lib/satellite/",]
Or if you are using NPM (e.g. with Hardhat), you can just install it using:
Then you can use the Satellite contract in your smart contract.Here is an example code snippet of a contract which gives voting power to the account based on its historical balance.