Skip to content

Commit

Permalink
Merge branch 'master' into renzo-protocol-subgraph
Browse files Browse the repository at this point in the history
  • Loading branch information
harsh9200 authored Jun 23, 2024
2 parents 177b71a + c4e6a9c commit 84a64c0
Show file tree
Hide file tree
Showing 57 changed files with 21,509 additions and 11 deletions.
240 changes: 240 additions & 0 deletions deployment/deployment.json
Original file line number Diff line number Diff line change
Expand Up @@ -675,6 +675,246 @@
}
}
},
"kinza-finance": {
"schema": "lending",
"base": "aave-forks",
"protocol": "kinza-finance",
"project": "kinza-finance",
"deployments": {
"kinza-finance-bsc": {
"network": "bsc",
"status": "prod",
"versions": {
"schema": "3.1.0",
"subgraph": "1.0.0",
"methodology": "1.0.0"
},
"files": {
"template": "kinza.finance.template.yaml"
},
"options": {
"prepare:yaml": true,
"prepare:constants": false
},
"services": {
"hosted-service": {
"slug": "kinza-finance-bsc",
"query-id": "kinza-finance-bsc"
},
"decentralized-network": {
"slug": "kinza-finance-bsc",
"query-id": "todo"
}
}
}
}
},
"seismic": {
"schema": "lending",
"base": "aave-forks",
"protocol": "seismic",
"project": "seismic",
"deployments": {
"seismic-blast": {
"network": "blast-mainnet",
"status": "prod",
"versions": {
"schema": "3.1.0",
"subgraph": "1.0.0",
"methodology": "1.0.0"
},
"files": {
"template": "seismic.template.yaml"
},
"options": {
"prepare:yaml": true,
"prepare:constants": false
},
"services": {
"hosted-service": {
"slug": "seismic-blast",
"query-id": "seismic-blast"
},
"decentralized-network": {
"slug": "seismic-blast",
"query-id": "todo"
}
}
}
}
},
"pac-finance": {
"schema": "lending",
"base": "aave-forks",
"protocol": "pac-finance",
"project": "pac-finance",
"deployments": {
"pac-finance-blast": {
"network": "blast-mainnet",
"status": "prod",
"versions": {
"schema": "3.1.0",
"subgraph": "1.0.0",
"methodology": "1.0.0"
},
"files": {
"template": "pac.finance.template.yaml"
},
"options": {
"prepare:yaml": true,
"prepare:constants": false
},
"services": {
"hosted-service": {
"slug": "pac-finance-blast",
"query-id": "pac-finance-blast"
},
"decentralized-network": {
"slug": "pac-finance-blast",
"query-id": "todo"
}
}
}
}
},
"zerolend": {
"schema": "lending",
"base": "aave-forks",
"protocol": "zerolend",
"project": "zerolend",
"deployments": {
"zerolend-ethereum": {
"network": "ethereum",
"status": "prod",
"versions": {
"schema": "3.1.0",
"subgraph": "1.0.0",
"methodology": "1.0.0"
},
"files": {
"template": "zerolend.template.yaml"
},
"options": {
"prepare:yaml": true,
"prepare:constants": false
},
"services": {
"hosted-service": {
"slug": "zerolend-ethereum",
"query-id": "zerolend-ethereum"
},
"decentralized-network": {
"slug": "zerolend-ethereum",
"query-id": "todo"
}
}
},
"zerolend-blast": {
"network": "blast-mainnet",
"status": "prod",
"versions": {
"schema": "3.1.0",
"subgraph": "1.0.0",
"methodology": "1.0.0"
},
"files": {
"template": "zerolend.template.yaml"
},
"options": {
"prepare:yaml": true,
"prepare:constants": false
},
"services": {
"hosted-service": {
"slug": "zerolend-blast",
"query-id": "zerolend-blast"
},
"decentralized-network": {
"slug": "zerolend-blast",
"query-id": "todo"
}
}
},
"zerolend-zksync-era": {
"network": "zksync-era",
"status": "prod",
"versions": {
"schema": "3.1.0",
"subgraph": "1.0.0",
"methodology": "1.0.0"
},
"files": {
"template": "zerolend.template.yaml"
},
"options": {
"prepare:yaml": true,
"prepare:constants": false
},
"services": {
"hosted-service": {
"slug": "zerolend-zksync-era",
"query-id": "zerolend-zksync-era"
},
"decentralized-network": {
"slug": "zerolend-zksync-era",
"query-id": "todo"
}
}
},
"zerolend-linea": {
"network": "linea",
"status": "prod",
"versions": {
"schema": "3.1.0",
"subgraph": "1.0.0",
"methodology": "1.0.0"
},
"files": {
"template": "zerolend.template.yaml"
},
"options": {
"prepare:yaml": true,
"prepare:constants": false
},
"services": {
"hosted-service": {
"slug": "zerolend-linea",
"query-id": "zerolend-linea"
},
"decentralized-network": {
"slug": "zerolend-linea",
"query-id": "todo"
}
}
},
"zerolend-xlayer": {
"network": "xlayer-mainnet",
"status": "prod",
"versions": {
"schema": "3.1.0",
"subgraph": "1.0.0",
"methodology": "1.0.0"
},
"files": {
"template": "zerolend.template.yaml"
},
"options": {
"prepare:yaml": true,
"prepare:constants": false
},
"services": {
"hosted-service": {
"slug": "zerolend-xlayer",
"query-id": "zerolend-xlayer"
},
"decentralized-network": {
"slug": "zerolend-xlayer",
"query-id": "todo"
}
}
}
}
},
"alpaca-finance-lending": {
"schema": "lending",
"base": "alpaca-finance-lending",
Expand Down
18 changes: 18 additions & 0 deletions subgraphs/_reference_/src/prices/common/utils.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
import * as BSC from "../config/bsc";
import * as BASE from "../config/base";
import * as MODE from "../config/mode";
import * as CELO from "../config/celo";
import * as FUSE from "../config/fuse";
import * as XDAI from "../config/gnosis";
import * as BLAST from "../config/blast";
import * as CRONOS from "../config/cronos";
import * as AURORA from "../config/aurora";
import * as FANTOM from "../config/fantom";
import * as SCROLL from "../config/scroll";
import * as POLYGON from "../config/polygon";
import * as MAINNET from "../config/mainnet";
import * as HARMONY from "../config/harmony";
import * as MOONBEAM from "../config/moonbeam";
import * as OPTIMISM from "../config/optimism";
import * as AVALANCHE from "../config/avalanche";
import * as ARBITRUM_ONE from "../config/arbitrum";
import * as ZKSYNC_ERA from "../config/zksync_era";
import * as POLYGON_ZKEVM from "../config/polygon_zkevm";

import { Configurations, CustomPriceType } from "./types";
import * as constants from "./constants";
Expand Down Expand Up @@ -105,6 +111,18 @@ export function getConfig(): Configurations {
return new CELO.config();
} else if (network == FUSE.NETWORK_STRING) {
return new FUSE.config();
} else if (network == BLAST.NETWORK_STRING) {
return new BLAST.config();
} else if (network == BASE.NETWORK_STRING) {
return new BASE.config();
} else if (network == MODE.NETWORK_STRING) {
return new MODE.config();
} else if (network == POLYGON_ZKEVM.NETWORK_STRING) {
return new POLYGON_ZKEVM.config();
} else if (network == SCROLL.NETWORK_STRING) {
return new SCROLL.config();
} else if (network == ZKSYNC_ERA.NETWORK_STRING) {
return new ZKSYNC_ERA.config();
}

return new TEMPLATE.config();
Expand Down
Loading

0 comments on commit 84a64c0

Please sign in to comment.