stamp-labs / stamp

Avatars for web3
https://stamp.fyi
MIT License
83 stars 21 forks source link

feat: add testnet support to snapshot resolver #308

Closed wa0x6e closed 3 weeks ago

wa0x6e commented 3 weeks ago

Closes https://github.com/snapshot-labs/workflow/issues/220

This PR adds support for testnet on the snapshot resolver (user-avatar, user-cover, space-cover, space-avatar)

This PR introduces a new address format (NETWORK:ADDRESS), e.g. s:ens.eth or s-tn:0x91FD2c8d24767db4Ece7069AA27832ffaf8590f3, while still be backward compatible with the previous ADDRESS format

How to test

Note

This is the first step of a refactoring process.

In a later PR, the space-sx resolver will be merge into this one, and the network prefix will allow targeting the network API, and avoid polling all onchain api on each call