Giveth integration in EVMcrispr

EVMcrispr v0.10.0

We released EVMcrispr v0.10.0, “collective wisdom,” with a new UI, a Script Library, and a way to share scripts with IPFS links. You can read the full release notes here, although in this post we will focus on the new Giveth module commands.

They are three: donate, initiate-givbacks, and finalize-givbacks.

donate <projectSlug> <amount> <token>

We can use the donate command to send any token to any project in Giveth on both the mainnet and gnosis chains.

We deployed a GivethDonationRelayer that will keep track of the donations made through EVMcrispr, so in the future, they may receive givbacks if the community finds it fitting.

You can see all the donations in the events of the contract deployed in each chain: mainnet and gnosis.

Example:

switch gnosis
set $token.tokenlist https://tokens.honeyswap.org
load giveth
exec @token(WXDAI) deposit() --value 60e18
giveth:donate giveth-house 60e18 @token(WXDAI)

These scripts can be shared easily with the new IPFS links:

https://evmcrispr.com/#/terminal/QmY5UGuZo2pAwWoSoGMo27LeRyigNkxHTWAvy2eskYe1mK

We expect Aragon DAOs and Gnosis Safes to use this new donate command, as sometimes it is difficult for those to use the Giveth frontend.

initiate-givbacks <ipfsHash> [--relayer <relayerAddr>]

This command will create a vote on the nrGIV DAO to distribute the current round givbacks through the GIVbacks relayer (code). In the IPFS hash there is the JSON with the addresses and amounts that will receive the givbacks.

Example using retroactive givbacks information:

load giveth
giveth initiate-givbacks QmYYpntQPV3CSeCGKUZSYK2ET6czvrwqtDQdzopoqUwws1

finalize-givbacks <ipfsHash> [--relayer <relayerAddr>]

This command will execute the batch of token distributions once the nrGIV DAO has executed the vote. The arguments are the same as in the previous command.

Example:

load giveth
giveth finalize-givbacks QmYYpntQPV3CSeCGKUZSYK2ET6czvrwqtDQdzopoqUwws1

The new module is already being used for easing the givbacks distribution process.

We are glad to contribute to the Giveth ecosystem and thankful for the support received from the DAO. Thank you all for sponsoring the “collective wisdom” release.

1 Like