Skip to content

Commit

Permalink
Merge pull request #465 from HausDAO/feature/deploy-sepolia-base
Browse files Browse the repository at this point in the history
Feature/deploy sepolia base
  • Loading branch information
skuhlmann authored Jan 17, 2024
2 parents 4bf0f40 + d8fcb14 commit 84ac554
Show file tree
Hide file tree
Showing 14 changed files with 916 additions and 269 deletions.
4 changes: 4 additions & 0 deletions apps/moloch-v3-subgraph/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ The v3 subgraph currently supports goerli. It's deployed here: https://api.thegr
`nx run moloch-v3-subgraph:generate-config --network=optimism`
`nx run moloch-v3-subgraph:generate-config --network=arbitrum-one`
`nx run moloch-v3-subgraph:generate-config --network=matic`
`nx run moloch-v3-subgraph:generate-config --network=sepolia`
`nx run moloch-v3-subgraph:generate-config --network=base`

Supported Networks:

Expand All @@ -34,6 +36,7 @@ To generate subgraph code, run the following command:
`nx run moloch-v3-subgraph:graph-deploy --name=hausdao/daohaus-v3-optimism --network=optimism`
`nx run moloch-v3-subgraph:graph-deploy --name=hausdao/daohaus-v3-arbitrum --network=arbitrum-one`
`nx run moloch-v3-subgraph:graph-deploy --name=hausdao/daohaus-v3-polygon --network=matic`
`nx run moloch-v3-subgraph:graph-deploy --name=hausdao/daohaus-v3-sepolia --network=sepolia`

### mainnet and gnosis chain deployment to studio

Expand All @@ -43,6 +46,7 @@ To generate subgraph code, run the following command:
todo: get this nx command running with a version:
`nx run moloch-v3-subgraph:graph-deploy-studio --name=daohaus-v3 --network=mainnet`
`nx run moloch-v3-subgraph:graph-deploy-studio --name=daohaus-v3-gnosis --network=gnosis`
`nx run moloch-v3-subgraph:graph-deploy-studio --name=daohaus-v3-base --network=base`

_These require installing the graph cli locally and auth tokens for deployment to the hosted service or studio subgraphs_
`npm install -g @graphprotocol/graph-cli`
Expand Down
84 changes: 84 additions & 0 deletions apps/moloch-v3-subgraph/manifests/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -317,4 +317,88 @@ module.exports.config = {
},
],
},
sepolia: {
dataSources: [
{
name: 'baalSummoner-v2.0.0',
template: 'baal-summoner-2.0.0-ds.yaml',
address: '0xB2B3909661552942AE1115E9Fc99dF0BC93d71d0',
startBlock: 4816767,
},
{
name: 'vaultSummoner',
template: 'vault-summoner-ds.yaml',
address: '0x763f5c2E59f997A6cC48Bf1228aBf61325244702',
startBlock: 4816767,
},
{
name: 'poster',
template: 'poster-ds.yaml',
address: '0x000000000000cd17345801aa8147b8d3950260ff',
startBlock: 4816767,
},
{
name: 'tributeMinion-v1.0.0',
template: 'tribute-minion-ds.yaml',
address: '0xdb4D89F2199b9Cf451B7Ff4bdC94b1c96De4bdD0',
startBlock: 4816767,
},
],
templates: [
{
name: 'baalTemplate',
template: 'baal-template.yaml',
},
{
name: 'sharesTemplate',
template: 'shares-template.yaml',
},
{
name: 'lootTemplate',
template: 'loot-template.yaml',
},
],
},
base: {
dataSources: [
{
name: 'baalSummoner-v2.0.0',
template: 'baal-summoner-2.0.0-ds.yaml',
address: '0x22e0382194AC1e9929E023bBC2fD2BA6b778E098',
startBlock: 7428979,
},
{
name: 'vaultSummoner',
template: 'vault-summoner-ds.yaml',
address: '0x2eF2fC8a18A914818169eFa183db480d31a90c5D',
startBlock: 7428979,
},
{
name: 'poster',
template: 'poster-ds.yaml',
address: '0x000000000000cd17345801aa8147b8d3950260ff',
startBlock: 7428979,
},
{
name: 'tributeMinion-v1.0.0',
template: 'tribute-minion-ds.yaml',
address: '0x00768B047f73D88b6e9c14bcA97221d6E179d468',
startBlock: 7428979,
},
],
templates: [
{
name: 'baalTemplate',
template: 'baal-template.yaml',
},
{
name: 'sharesTemplate',
template: 'shares-template.yaml',
},
{
name: 'lootTemplate',
template: 'loot-template.yaml',
},
],
},
};
2 changes: 1 addition & 1 deletion apps/moloch-v3-subgraph/manifests/header.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
specVersion: 0.0.2
specVersion: 0.0.5
description: DAOHaus V3 Subgraph
repository: https://github.com/hausdao/daohaus-v3-subgraph-sandbox
schema:
Expand Down
102 changes: 39 additions & 63 deletions apps/moloch-v3-subgraph/subgraph.yaml
Original file line number Diff line number Diff line change
@@ -1,69 +1,67 @@
specVersion: 0.0.4
specVersion: 0.0.5
description: DAOHaus V3 Subgraph
repository: https://github.com/hausdao/daohaus-v3-subgraph-sandbox
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: BaalSummoner
network: gnosis
name: BaalSummonerV2
network: base
source:
address: '0xf020a55794DB5e065692F86a0Eb82197850a09b9'
abi: BaalSummoner
startBlock: 24659969
address: '0x22e0382194AC1e9929E023bBC2fD2BA6b778E098'
abi: BaalSummonerV2
startBlock: 7428979
mapping:
kind: ethereum/events
apiVersion: 0.0.6
apiVersion: 0.0.5
language: wasm/assemblyscript
entities:
- Dao
abis:
- name: BaalSummoner
file: ./abis/BaalSummoner.json
- name: BaalSummonerV2
file: ./abis/BaalSummoner2.0.0.json
- name: Erc20
file: ./abis/Erc20.json
eventHandlers:
- event: >-
SummonBaal(indexed address,indexed address,indexed
address,address,bool)
handler: handleSummonBaal
address,address,address,uint256)
handler: handleSummonBaalV2
- event: DaoReferral(bytes32,address)
handler: handleDaoReferral
file: ./src/baal-summoner-mapping.ts
- kind: ethereum/contract
name: BaalSummonerV2
network: gnosis
name: VaultSummoner
network: base
source:
address: '0x7e988A9db2F8597735fc68D21060Daed948a3e8C'
abi: BaalSummonerV2
startBlock: 25109196
address: '0x2eF2fC8a18A914818169eFa183db480d31a90c5D'
abi: VaultSummoner
startBlock: 7428979
mapping:
kind: ethereum/events
apiVersion: 0.0.6
apiVersion: 0.0.5
language: wasm/assemblyscript
entities:
- Dao
abis:
- name: BaalSummonerV2
file: ./abis/BaalSummoner2.0.0.json
- name: Erc20
file: ./abis/Erc20.json
- name: VaultSummoner
file: ./abis/VaultSummoner.json
eventHandlers:
- event: >-
SummonBaal(indexed address,indexed address,indexed
address,address,address,uint256)
handler: handleSummonBaalV2
- event: DaoReferral(bytes32,address)
handler: handleDaoReferral
file: ./src/baal-summoner-mapping.ts
- event: SetVault((uint256,bool,address,address,string))
handler: handleSetVault
- event: SetDelegate(address,address)
handler: handleSetVaultDelegate
file: ./src/vault-summoner-mapping.ts
- kind: ethereum/contract
name: Poster
network: gnosis
network: base
source:
address: '0x000000000000cd17345801aa8147b8d3950260ff'
abi: Poster
startBlock: 24659969
startBlock: 7428979
mapping:
kind: ethereum/events
apiVersion: 0.0.6
apiVersion: 0.0.5
language: wasm/assemblyscript
entities:
- Post
Expand All @@ -77,14 +75,14 @@ dataSources:
file: ./src/poster-mapping.ts
- kind: ethereum/contract
name: TributeMinion
network: gnosis
network: base
source:
address: '0x5c17BFBaB751C5ddF1Ff267acF8fF919537F39Cf'
address: '0x00768B047f73D88b6e9c14bcA97221d6E179d468'
abi: TributeMinion
startBlock: 24659969
startBlock: 7428979
mapping:
kind: ethereum/events
apiVersion: 0.0.6
apiVersion: 0.0.5
language: wasm/assemblyscript
entities:
- Proposal
Expand All @@ -99,37 +97,15 @@ dataSources:
- event: TributeProposal(indexed address,address,uint256,address,uint256)
handler: handleTributeProposal
file: ./src/tribute-minion-mapping.ts
- kind: ethereum/contract
name: VaultSummoner
network: gnosis
source:
address: '0x594E630efbe8dbd810c168e3878817a4094bB312'
abi: VaultSummoner
startBlock: 25109199
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- Dao
abis:
- name: VaultSummoner
file: ./abis/VaultSummoner.json
eventHandlers:
- event: SetVault((uint256,bool,address,address,string))
handler: handleSetVault
- event: SetDelegate(address,address)
handler: handleSetVaultDelegate
file: ./src/vault-summoner-mapping.ts
templates:
- kind: ethereum/contract
name: BaalTemplate
network: gnosis
network: base
source:
abi: Baal
mapping:
kind: ethereum/events
apiVersion: 0.0.6
apiVersion: 0.0.5
language: wasm/assemblyscript
file: ./src/baal-mapping.ts
entities:
Expand Down Expand Up @@ -173,12 +149,12 @@ templates:
handler: handleLockManager
- kind: ethereum/contract
name: SharesTemplate
network: gnosis
network: base
source:
abi: Shares
mapping:
kind: ethereum/events
apiVersion: 0.0.6
apiVersion: 0.0.5
language: wasm/assemblyscript
file: ./src/token-mapping.ts
entities:
Expand All @@ -196,12 +172,12 @@ templates:
handler: handleSharesTransfer
- kind: ethereum/contract
name: LootTemplate
network: gnosis
network: base
source:
abi: Loot
mapping:
kind: ethereum/events
apiVersion: 0.0.6
apiVersion: 0.0.5
language: wasm/assemblyscript
file: ./src/token-mapping.ts
entities:
Expand Down
35 changes: 35 additions & 0 deletions apps/summon-safe/src/utils/modules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,13 @@ export const MODULES: Record<string, ModuleTemplate> = {
},
'0x89': {},
'0xa4b1': {},
'0xaa36a7': {
moduleFactory: {
address: '0xD858ce60102BCEa272a6FA36B2E1770877B8Fa45',
singletonAddress: '0x7c1Db931F804271E39b04E68221b71Ca94E9AFa5',
},
},
// '0x2105': {},
},
params: [
{
Expand Down Expand Up @@ -178,6 +185,13 @@ export const MODULES: Record<string, ModuleTemplate> = {
},
'0x89': {},
'0xa4b1': {},
'0xaa36a7': {
moduleFactory: {
address: '0xD858ce60102BCEa272a6FA36B2E1770877B8Fa45',
singletonAddress: '0x85C60D0674e161B7f9d1d40A2A46e4b788E7F057',
},
},
// '0x2105': {},
},
params: [
{
Expand Down Expand Up @@ -263,6 +277,13 @@ export const MODULES: Record<string, ModuleTemplate> = {
},
'0x89': {},
'0xa4b1': {},
'0xaa36a7': {
moduleFactory: {
address: '0xD858ce60102BCEa272a6FA36B2E1770877B8Fa45',
singletonAddress: '0x15f06a6dB8eC8D79Eaa49659210C1c58975a4056',
},
},
// '0x2105': {},
},
params: [
{
Expand Down Expand Up @@ -341,6 +362,13 @@ export const MODULES: Record<string, ModuleTemplate> = {
},
'0x89': {},
'0xa4b1': {},
'0xaa36a7': {
moduleFactory: {
address: '0xD858ce60102BCEa272a6FA36B2E1770877B8Fa45',
singletonAddress: '0x226E0601aa8b8CC34519c76Be00A7a6a8a4d97d2',
},
},
// '0x2105': {},
},
params: [
{
Expand Down Expand Up @@ -415,6 +443,13 @@ export const MODULES: Record<string, ModuleTemplate> = {
},
'0x89': {},
'0xa4b1': {},
'0xaa36a7': {
moduleFactory: {
address: '0xD858ce60102BCEa272a6FA36B2E1770877B8Fa45',
singletonAddress: '0x0C7F0fC0ddb95d7099ED97c10A2DE549c03E39F9',
},
},
// '0x2105': {},
},
params: [
{
Expand Down
Loading

0 comments on commit 84ac554

Please sign in to comment.