Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Readme #29

Merged
merged 4 commits into from
Jan 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 53 additions & 1 deletion Implementations/API/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Currently supported DAOs and frameworks:
| Moloch v2 | Yes | Yes | No | Mainnet, Gnosis Chain, Optimism, Rinkeby |
| Moloch v3 | Yes | Yes | Yes | Mainnet, Gnosis Chain, Optimism, Rinkeby |
| DAOStack | Yes | Yes | No | Mainnet |
| Aave | Yes | Yes | No | Mainnet |
| Aave | No | Yes | No | Mainnet |
| Safe | Yes | Yes | Yes | Mainnet |


Expand Down Expand Up @@ -298,6 +298,58 @@ function setDaoUri(string memory _newUri) external minionOnly;

## Aave

*This reference implementation has not been finalized. It is pending changes to reflect the most recent version of the DAO standard.*

### Proposals URI

Demo endpoint: `https://maj79gmufj.execute-api.us-east-1.amazonaws.com/aave/proposals/1/0xec568fffba86c094cf06b22134b23074dfe2252c`

Demo response:


```jsx
{
"@context": {
"@vocab": "http://daostar.org/"
},
"type": "Aave governance v2",
"name": "0xec568fffba86c094cf06b22134b23074dfe2252c",
"proposals": [
{
"id": "0",
"type": "proposal",
"status": "Executed",
"contentURI": "Na"
},
{
"id": "1",
"type": "proposal",
"status": "Executed",
"contentURI": "Na"
},
{
"id": "10",
"type": "proposal",
"status": "Executed",
"contentURI": "https://governance.aave.com/t/aave-protocol-v1-v2-migration-tool-and-transition-plan/2053"
},
{
"id": "100",
"type": "proposal",
"status": "Executed",
"contentURI": "https://governance.aave.com/t/proposal-to-add-maticx-to-aave-v3-polygon-market/7995"
},
{
"id": "101",
"type": "proposal",
"status": "Executed",
"contentURI": "https://governance.aave.com/t/arc-re-enabling-eth-borrowing-post-merge/9657"
}
]
}
```


## DAOStack

## Gnosis Safe
Expand Down
1 change: 1 addition & 0 deletions Implementations/Subgraph/daostar-dev
Submodule daostar-dev added at 573a94
315 changes: 315 additions & 0 deletions Implementations/Subgraph/daostar/abis/EIP4824Registration.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,315 @@
[
{
"inputs": [],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [],
"name": "AlreadyInitialized",
"type": "error"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "string",
"name": "daoURI",
"type": "string"
},
{
"indexed": false,
"internalType": "address",
"name": "daoAddress",
"type": "address"
}
],
"name": "NewURI",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
},
{
"indexed": true,
"internalType": "bytes32",
"name": "previousAdminRole",
"type": "bytes32"
},
{
"indexed": true,
"internalType": "bytes32",
"name": "newAdminRole",
"type": "bytes32"
}
],
"name": "RoleAdminChanged",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
},
{
"indexed": true,
"internalType": "address",
"name": "account",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "sender",
"type": "address"
}
],
"name": "RoleGranted",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
},
{
"indexed": true,
"internalType": "address",
"name": "account",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "sender",
"type": "address"
}
],
"name": "RoleRevoked",
"type": "event"
},
{
"inputs": [],
"name": "DEFAULT_ADMIN_ROLE",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "MANAGER_ROLE",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "daoURI",
"outputs": [
{
"internalType": "string",
"name": "daoURI_",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
}
],
"name": "getRoleAdmin",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
},
{
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "grantRole",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
},
{
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "hasRole",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_daoAddress",
"type": "address"
},
{
"internalType": "address",
"name": "_manager",
"type": "address"
},
{
"internalType": "string",
"name": "daoURI_",
"type": "string"
}
],
"name": "initialize",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_daoAddress",
"type": "address"
},
{
"internalType": "string",
"name": "daoURI_",
"type": "string"
}
],
"name": "initialize",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
},
{
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "renounceRole",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
},
{
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "revokeRole",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "daoURI_",
"type": "string"
}
],
"name": "setURI",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes4",
"name": "interfaceId",
"type": "bytes4"
}
],
"name": "supportsInterface",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
}
]
Loading