Skip to content

Commit

Permalink
Merge pull request #63 from metagov/specUpdates
Browse files Browse the repository at this point in the history
Propose standard event & minimal reg contract
  • Loading branch information
ipatka authored Apr 27, 2023
2 parents cefaeff + ecf8fe5 commit 60fd739
Show file tree
Hide file tree
Showing 22 changed files with 23,101 additions and 495 deletions.
7,261 changes: 7,261 additions & 0 deletions Implementations/Subgraph/daostar/abis/EIP4824Index.json

Large diffs are not rendered by default.

7,647 changes: 7,371 additions & 276 deletions Implementations/Subgraph/daostar/abis/EIP4824Registration.json

Large diffs are not rendered by default.

7,052 changes: 6,990 additions & 62 deletions Implementations/Subgraph/daostar/abis/EIP4824RegistrationSummoner.json

Large diffs are not rendered by default.

Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,268 @@
[
{
"inputs": [],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [],
"name": "EIP4824InterfaceNotSupported",
"type": "error"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "daoAddress",
"type": "address"
}
],
"name": "DAOURIRegistered",
"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": "REGISTRATION_ROLE",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"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"
}
],
"name": "logRegistration",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "daoAddress",
"type": "address"
}
],
"name": "logRegistrationPermissioned",
"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": "bytes4",
"name": "interfaceId",
"type": "bytes4"
}
],
"name": "supportsInterface",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,20 @@
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "string",
"name": "daoURI",
"type": "string"
},
{
"indexed": false,
"internalType": "address",
"name": "daoAddress",
"type": "address"
},
{
"indexed": false,
"internalType": "string",
"name": "daoURI",
"type": "string"
}
],
"name": "NewURI",
"name": "DAOURIUpdate",
"type": "event"
},
{
Expand Down Expand Up @@ -219,6 +219,11 @@
"internalType": "string",
"name": "daoURI_",
"type": "string"
},
{
"internalType": "address",
"name": "_eip4824Index",
"type": "address"
}
],
"name": "initialize",
Expand All @@ -237,6 +242,11 @@
"internalType": "string",
"name": "daoURI_",
"type": "string"
},
{
"internalType": "address",
"name": "_eip4824Index",
"type": "address"
}
],
"name": "initialize",
Expand Down
24 changes: 12 additions & 12 deletions Implementations/Subgraph/daostar/build/subgraph.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,30 @@ features:
templates:
- name: EIP4824Registration
kind: ethereum/contract
network: mainnet
network: goerli
source:
abi: EIP4824Registration
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
file: EIP4824RegistrationSummoner/EIP4824RegistrationSummoner.wasm
file: EIP4824Index/EIP4824Index.wasm
entities:
- Registration
abis:
- name: EIP4824Registration
file: EIP4824Registration/abis/EIP4824Registration.json
eventHandlers:
- event: NewURI(string,address)
- event: DAOURIUpdate(address,string)
handler: handleNewURI
dataSources:
- kind: ethereum
name: EIP4824RegistrationSummoner
network: mainnet
name: EIP4824Index
network: goerli
source:
abi: EIP4824RegistrationSummoner
address: "0x37dF3fC47C1c3A2acaFd2Dad9c1C00090a8655Bc"
startBlock: 16084997
abi: EIP4824Index
address: "0xd8f49391ba81942d40c26a50f8ca63cdca6fb3da"
startBlock: 8901481
mapping:
kind: ethereum/events
apiVersion: 0.0.6
Expand All @@ -38,9 +38,9 @@ dataSources:
- NewRegistration
- RegistrationInstance
abis:
- name: EIP4824RegistrationSummoner
file: EIP4824RegistrationSummoner/abis/EIP4824RegistrationSummoner.json
- name: EIP4824Index
file: EIP4824Index/abis/EIP4824Index.json
eventHandlers:
- event: NewRegistration(indexed address,string,address)
- event: DAOURIRegistered(address)
handler: handleNewRegistration
file: EIP4824RegistrationSummoner/EIP4824RegistrationSummoner.wasm
file: EIP4824Index/EIP4824Index.wasm
Loading

0 comments on commit 60fd739

Please sign in to comment.