Skip to content

Commit

Permalink
chore: update mainnet to use v1.0.3 deployment (snapshot-labs/sx-subg…
Browse files Browse the repository at this point in the history
…raph#45)

* chore: update mainnet to use v1.0.3 deployment

Also rewinded start blocks so we don't rescan blocks that won't have
spaces with new master space created (new start blocks are blocks
at which master space contract was deployed).

* chore: bump version to 0.0.21
  • Loading branch information
Sekhmet authored Jan 11, 2024
1 parent 99161eb commit 70bc9a2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 16 deletions.
10 changes: 5 additions & 5 deletions apps/subgraph-api/networks.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,31 @@
"mainnet": {
"ProxyFactory": {
"address": "0x4b4f7f64be813ccc66aefc3bfce2baa01188631c",
"startBlock": 18426159
"startBlock": 18962278
}
},
"goerli": {
"ProxyFactory": {
"address": "0x4b4f7f64be813ccc66aefc3bfce2baa01188631c",
"startBlock": 9405311
"startBlock": 9893638
}
},
"sepolia": {
"ProxyFactory": {
"address": "0x4b4f7f64be813ccc66aefc3bfce2baa01188631c",
"startBlock": 3961351
"startBlock": 4519171
}
},
"matic": {
"ProxyFactory": {
"address": "0x4b4f7f64be813ccc66aefc3bfce2baa01188631c",
"startBlock": 45499032
"startBlock": 50858232
}
},
"arbitrum-one": {
"ProxyFactory": {
"address": "0x4b4f7f64be813ccc66aefc3bfce2baa01188631c",
"startBlock": 114776723
"startBlock": 157825417
}
},
"linea-testnet": {
Expand Down
2 changes: 1 addition & 1 deletion apps/subgraph-api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sx-subgraph",
"version": "0.0.20",
"version": "0.0.21",
"scripts": {
"codegen": "graph codegen",
"build": "graph build",
Expand Down
16 changes: 6 additions & 10 deletions apps/subgraph-api/src/mapping.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {Address, BigDecimal, BigInt, Bytes, dataSource } from '@graphprotocol/graph-ts'
import { Address, BigDecimal, BigInt, Bytes, dataSource } from '@graphprotocol/graph-ts'
import { ProxyDeployed } from '../generated/ProxyFactory/ProxyFactory'
import { AvatarExecutionStrategy } from '../generated/ProxyFactory/AvatarExecutionStrategy'
import { TimelockExecutionStrategy } from '../generated/ProxyFactory/TimelockExecutionStrategy'
Expand Down Expand Up @@ -33,15 +33,11 @@ import {
import { Space, ExecutionStrategy, ExecutionHash, Proposal, Vote, User } from '../generated/schema'
import { updateStrategiesParsedMetadata, updateProposalValidationStrategy } from './helpers'

let MASTER_SPACE = Address.fromString('0xC3031A7d3326E47D49BfF9D374d74f364B29CE4D')
let MASTER_SIMPLE_QUORUM_AVATAR = Address.fromString('0xecE4f6b01a2d7FF5A9765cA44162D453fC455e42')
let MASTER_SIMPLE_QUORUM_TIMELOCK = Address.fromString('0xf2A1C2f2098161af98b2Cc7E382AB7F3ba86Ebc4')

if (dataSource.network() == 'mainnet') {
MASTER_SPACE = Address.fromString('0xd9c46d5420434355d0E5Ca3e3cCb20cE7A533964')
MASTER_SIMPLE_QUORUM_AVATAR = Address.fromString('0x3813f3d97Aa2F80e3aF625605A31206e067FB2e5')
MASTER_SIMPLE_QUORUM_TIMELOCK = Address.fromString('0x3813f3d97Aa2F80e3aF625605A31206e067FB2e5')
}
const MASTER_SPACE = Address.fromString('0xC3031A7d3326E47D49BfF9D374d74f364B29CE4D')
const MASTER_SIMPLE_QUORUM_AVATAR = Address.fromString('0xecE4f6b01a2d7FF5A9765cA44162D453fC455e42')
const MASTER_SIMPLE_QUORUM_TIMELOCK = Address.fromString(
'0xf2A1C2f2098161af98b2Cc7E382AB7F3ba86Ebc4'
)

export function handleProxyDeployed(event: ProxyDeployed): void {
if (event.params.implementation.equals(MASTER_SPACE)) {
Expand Down

0 comments on commit 70bc9a2

Please sign in to comment.