Skip to content

Commit

Permalink
Add spark-lend on gnosis (#2396)
Browse files Browse the repository at this point in the history
  • Loading branch information
krzkaczor authored Oct 11, 2023
1 parent f26842a commit 1853190
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 2 deletions.
22 changes: 22 additions & 0 deletions deployment/deployment.json
Original file line number Diff line number Diff line change
Expand Up @@ -3646,6 +3646,28 @@
"query-id": "GbKdmBe4ycCYCQLQSjqGg6UHYoYfbyJyq5WrG35pv1si"
}
}
},
"spark-lend-gnosis": {
"network": "gnosis",
"status": "prod",
"versions": {
"schema": "3.1.0",
"subgraph": "2.0.5",
"methodology": "1.0.0"
},
"files": {
"template": "spark.lend.template.yaml"
},
"options": {
"prepare:yaml": true,
"prepare:constants": false
},
"services": {
"hosted-service": {
"slug": "spark-lend-gnosis",
"query-id": "spark-lend-gnosis"
}
}
}
}
},
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"network": "gnosis",
"factory": {
"startBlock": "29817453",
"address": "0xA98DaCB3fC964A6A0d2ce3B77294241585EAbA6d"
},
"lendingPoolConfigurator": {
"startBlock": "29817457",
"address": "0x2Fc8823E1b967D474b47Ae0aD041c2ED562ab588"
},
"lendingPool": {
"startBlock": "29817457",
"address": "0x2Dae5307c5E3FD1CF5A72Cb6F698f915860607e0"
},
"RewardsController": {
"address": "0x0000000000000000000000000000000000000000",
"startBlock": "29817457"
},
"graftEnabled": false,
"subgraphId": "",
"graftStartBlock": ""
}
5 changes: 5 additions & 0 deletions subgraphs/aave-forks/protocols/spark-lend/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ export function getNetworkSpecificConstant(): NetworkSpecificConstant {
Address.fromString("0x03cfa0c4622ff84e50e75062683f44c9587e6cc1"),
Network.MAINNET
);
} else if (equalsIgnoreCase(network, Network.GNOSIS)) {
return new NetworkSpecificConstant(
Address.fromString("0xa98dacb3fc964a6a0d2ce3b77294241585eaba6d"),
Network.GNOSIS,
);
} else {
log.critical("[getNetworkSpecificConstant] Unsupported network: {}", [
network,
Expand Down
2 changes: 1 addition & 1 deletion subgraphs/aave-forks/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export namespace Network {
export const OPTIMISM = "OPTIMISM";
export const OSMOSIS = "OSMOSIS";
export const MATIC = "MATIC"; // aka Polygon
export const XDAI = "XDAI"; // aka Gnosis Chain
export const GNOSIS = "GNOSIS"; // aka xDAI

export const METIS = "ANDROMEDA";
export const BASE = "BASE";
Expand Down
2 changes: 1 addition & 1 deletion subgraphs/aave-forks/src/sdk/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export namespace Network {
export const OPTIMISM = "OPTIMISM";
export const OSMOSIS = "OSMOSIS";
export const MATIC = "MATIC"; // aka Polygon
export const XDAI = "XDAI"; // aka Gnosis Chain
export const GNOSIS = "GNOSIS"; // aka xDAI
}

export namespace ProtocolType {
Expand Down

0 comments on commit 1853190

Please sign in to comment.