Skip to content
This repository was archived by the owner on Jan 18, 2023. It is now read-only.

Commit 40facc6

Browse files
committed
Add more deployment addresses and set up studio deploys
1 parent 6ff97d0 commit 40facc6

File tree

3 files changed

+41
-4
lines changed

3 files changed

+41
-4
lines changed

.gitignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,6 @@ build/
3535
# Hardhat cache
3636
cache/
3737

38-
# Generated subgraph manifest
39-
subgraph.yaml
38+
# Generated subgraph manifest and addresses
39+
subgraph.yaml
40+
addresses.ts

README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,18 @@ Requirements:
1313

1414
Steps:
1515

16-
1. `git clone https://github.com/Desert-Defi/set-protocol-v2-subgraph.git && cd set-protocol-v2-subgraph`
16+
1. `git clone https://github.com/SetProtocol/set-protocol-v2-subgraph.git && cd set-protocol-v2-subgraph`
1717
2. `yarn install`
1818
3. `yarn gen-deployment <NETWORK_NAME>` hardhat or mainnet
19-
4. (If deploying to hosted service) `yarn graph auth https://api.thegraph.com/deploy/ <ACCESS_TOKEN>`
19+
4a. (If deploying to hosted service) `yarn graph auth https://api.thegraph.com/deploy/ <ACCESS_TOKEN>`
20+
21+
Using Graph Subgraph Studio
22+
1. `graph auth --studio <API KEY>` (see more at https://thegraph.com/studio/subgraph/set-protocol-v2/)
23+
2. `yarn gen-deployment <NETWORK_NAME>` hardhat or mainnet or matic or staging-mainnet
24+
3. `cp generated/addresses.ts .` Copy generated addresses file to root location
25+
3. `graph codegen && graph build`
26+
4. `graph deploy --studio set-protocol-v2` for mainnet or `graph deploy --studio set-protocol-v2-matic` for Matic/Polygon or `graph deploy --studio set-protocol-v2-staging` for staging mainnet
27+
2028

2129
## Commands
2230

deployments.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,33 @@
2727
"StreamingFeeModule": "0xdc688d29394a3f1e6f1e5100862776691afaf3d2",
2828
"NavIssuanceModule": "0xb7c9b454221e26880eb9c3101b3295ca7d8279ef",
2929
"TradeModule": "0x59adefa01843c627ba5d6aa350292b4b7ccae67a"
30+
},
31+
"matic": {
32+
"network": "matic",
33+
"startBlock": 0,
34+
"Controller": "0x75FBBDEAfE23a48c0736B2731b956b7a03aDcfB2",
35+
"SetTokenCreator": "0x14f0321be5e581abF9d5BC76260bf015Dc04C53d",
36+
"IntegrationRegistry": "0x4c4C649455c6433dC48ff1571C9e50aC58f0CeFA",
37+
"PriceOracle": "0x9378Ad514c00E4869656eE27b634d852DD48feAD",
38+
"SetValuer": "0x3700414Bb6716FcD8B14344fb10DDd91FdEA59eC",
39+
"BasicIssuanceModule": "0x38E5462BBE6A72F79606c1A0007468aA4334A92b",
40+
"StreamingFeeModule": "0x8440f6a2c42118bed0D6E6A89Bf170ffd13e21c0",
41+
"TradeModule": "0xd04AabadEd11e92Fefcd92eEdbBC81b184CdAc82"
42+
},
43+
"staging-mainnet": {
44+
"network": "mainnet",
45+
"startBlock": 10830495,
46+
"Controller": "0xF1B12A7b1f0AF744ED21eEC7d3E891C48Fd3c329",
47+
"SetTokenCreator": "0x026d25C2B70Ddbb8D759f1f38d6fD6e23b60B6DF",
48+
"IntegrationRegistry": "0x3e8939a2ab27D79a21Ed86EF56bba62d82Db0C2D",
49+
"PriceOracle": "0xFF31e9ACBc9D42B4F964F54f9752D2F74E4aCF1C",
50+
"SetValuer": "0x6f4D1397C15C8AB6Ea218f80f397AcB71835654F",
51+
"BasicIssuanceModule": "0x508910aA6fF3D029Dc358dD0f775877A355BA35B",
52+
"StreamingFeeModule": "0x3D8d14b7eFb8e342189ee14c3d40dCe005EB901B",
53+
"NavIssuanceModule": "0x442577CAc11DB91284d042D084AE0D142D36EEdF",
54+
"TradeModule": "0x45D67b9dbEA9bd51ED2B67832addEAF839628fAa",
55+
"WrapModule": "0x67eddd251E914a7a1a19bDa09295A28cc328dEFE",
56+
"SingleIndexModuleDPI": "0x53ea895f0c152eea8b103092d3a1327fe53b580a",
57+
"GovernanceModule": "0x2944B59B2214eE6d3649Ca53A0648F6548B94F86"
3058
}
3159
}

0 commit comments

Comments
 (0)