DPG Accounts is an open-source solution by Kolektivo Labs built on Safe{Core} Protocol that creates native accounts for EVM-compatable Blockchain ecosystems and dApps to engage active users and reward meaningful participation.
Updating badges metadata
- cd utils/badges-metadata
- Edit badges.json
- npm run pin-file (Need to param in .env the pinata api key)
- Copy hash to utils/badges-metadata/src/generate-uris.js
- npm run generate-uris
- cd ../..
- cd packages/smart-contracts
- forge compile
- Copy the badges-with-uris.json to smart-contracts folder and/or change the badges.json depending the use (badges.sjon for some badges update or add and the other for full update)
- Use the UpdatesBadges (for all badges) or DeployNewBadges (for new badges or single badge updating) e.g for SA: BADGES_ADDRESS=0x03e2c563cf77e3Cdc0b7663cEE117dA14ea60848 forge script script/DeployNewBadges.s.sol --rpc-url optimism --account --broadcast
Account is the keystore file SA Staging BADGES_ADDRESS=0xbC24012488BFCFe44875a139299595879c43C2CD forge script script/DeployNewBadges.s.sol --rpc-url optimism --account pp-pk --broadcast SA prod BADGES_ADDRESS=0x03e2c563cf77e3Cdc0b7663cEE117dA14ea60848 forge script script/DeployNewBadges.s.sol --rpc-url optimism --account pp-pk --broadcast