A Plug Snapshot Template to use with PeerMe DAO smart contracts.
Contains a snapshot script for ESDT holders and a pluggable smart contract to feed PeerMe DAOs with members' voting power information.
Set the current network name in interaction/snippets.sh
:
NETWORK_NAME="devnet" # devnet, testnet, mainnet
Generate admin keys:
Don't forget to fill the admin account with some EGLD to cover transaction & deployment fees.
. ./interaction/snippets.sh && generateAdminKeys
Deploy the plug smart contract:
. ./interaction/snippets.sh && deploy
Set a the Itheum ESDT ID for snapshot:
. ./interaction/snippets.sh && setItheumTokenId YOURTOKEN-123456
Set a the Itheum Trailblazer NFT ID for snapshot:
. ./interaction/snippets.sh && setTrailblazerNftId YOURNFT-123456-01
Register ESDT holder snapshot:
npm install
ts-node ./snapshot/register-snapshot.ts devnet
For more details and how to integrate, please refer to our Documentation.