This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { ethers } from 'ethers' | |
import { connect } from '@aragon/connect' | |
const ACCOUNT = '0xf76604Ce7e7F0134a5310bCfc9C34cAEddf15873' | |
const targetAddress = '0x5d3a536e4d6dbd6114cc1ead35777bab948e3643' // cDAI | |
const targetSignature = | |
'function approve(address spender, uint256 amount) external returns (bool)' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Ethereum Fundamental Concepts | |
- [Intro to Ethereum](https://ethereum.org/en/developers/docs/intro-to-ethereum/) | |
- [Accounts](https://ethereum.org/en/developers/docs/accounts/) | |
- [Blocks](https://ethereum.org/en/developers/docs/blocks/) | |
- [Transactions](https://ethereum.org/en/developers/docs/transactions/) | |
- [Blockchain demo](https://andersbrownworth.com/blockchain/) | |
## eth.build** | |
- [Playground](https://eth.build) | |
- [Video tutorials](https://www.youtube.com/playlist?list=PLJz1HruEnenCXH7KW7wBCEBnBLOVkiqIi) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"type": "chrome", | |
"request": "launch", | |
"name": "Brave", | |
"runtimeExecutable": "/Applications/Brave Browser.app/Contents/MacOS/Brave Browser", | |
"userDataDir": true, | |
"url": "http://localhost:3000", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"type": "node", | |
"request": "launch", | |
"name": "hardhat test", | |
"skipFiles": ["<node_internals>/**"], | |
"runtimeExecutable": "${workspaceFolder}/packages/hardhat/node_modules/.bin/hardhat", | |
"args": ["test", "--network", "localhost"], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// Use IntelliSense to learn about possible attributes. | |
// Hover to view descriptions of existing attributes. | |
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"type": "pwa-node", | |
"request": "launch", | |
"name": "Launch Program", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import hre, { ethers } from 'hardhat'; | |
import { BigNumber, Contract } from 'ethers'; | |
import { expect } from 'chai'; | |
const gardenHolder = '0x5b0F8D8f47E3fDF7eE1c337AbCA19dBba98524e6'; | |
const gardenVoters = [ | |
'0x6120f29ccb5b1DDaa5a747235F257Ef6cB47970F', | |
'0xc89000E12C600b12D6e61a535cD3fedd4ac1eeC4', | |
'0xa328500Eab25698b8b146D195F35f5b26C93AAEe', | |
]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"merkleRoot": "0x47c52ef48ec180964d648c3783e0b02202f16211392b986fbe2627f021657f2b", | |
"tokenTotal": "0xbdbc41e0348b300000", | |
"claims": { | |
"0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC": { | |
"index": 0, | |
"amount": "0x3635c9adc5dea00000", | |
"proof": [ | |
"0x11079118024000df209172a1af6eb7a9ea4e5b2bd6e2760481566ce6bee3e0cd", | |
"0xf46478da86f39b5d4f0af753bbc54ab402404b5ed5369f359e8fb24268b12edc" |
OlderNewer