Snapshot uses the Gnosis "Delegate Registry" contract here: https://github.com/gnosis/delegate-registry
The contract is deployed on this address: 0x469788fE6E9E9681C6ebF3bF78e7Fd26Fc015446 (Also available on Rinkeby and Kovan at the same address)
Delegations are stored on this subgraph: https://thegraph.com/explorer/subgraph/snapshot-labs/snapshot
A delegation voting strategy must be added to the Snapshot space before delegated votes will be counted. You can use the with-delegation strategy.
- 2.Enter the address you want to delegate to.
- 3.To limit the delegation to a specific space, tap the on switch button and enter the space key (example:
balancer.eth) you want your delegation to take effect on. If no space is selected, the effect will take place for all spaces.
- 4.Click confirm to save your delegation.
You need to call the
setDelegatemethod with the space id as the first argument (space id is its ENS domain name, for example fabien.eth), and the address of the delegate as the second argument.
Here is an example of integration in a Solidity contract:
- Binance Smart Chain
- Gnosis Chain
- Matic (Polygon)