Skip to content

Commit

Permalink
Merge branch 'master' into lido-fix-tvl
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruv-chauhan committed Jun 19, 2024
2 parents 0ffdcea + d8640f1 commit 41fdb69
Show file tree
Hide file tree
Showing 141 changed files with 38,156 additions and 24 deletions.
102 changes: 85 additions & 17 deletions deployment/deployment.json
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@
"status": "prod",
"versions": {
"schema": "3.1.0",
"subgraph": "1.4.0",
"subgraph": "1.4.1",
"methodology": "1.1.0"
},
"files": {
Expand Down Expand Up @@ -669,7 +669,7 @@
},
"decentralized-network": {
"slug": "seamless-protocol-base",
"query-id": "todo"
"query-id": "2u4mWUV4xS19ef1MbnxZHWLLMwdPxtVifH46JbonXwXP"
}
}
}
Expand Down Expand Up @@ -2135,7 +2135,7 @@
},
"decentralized-network": {
"slug": "moonwell-base",
"query-id": "todo"
"query-id": "33ex1ExmYQtwGVwri1AP3oMFPGSce6YbocBP7fWbsBrg"
}
}
}
Expand Down Expand Up @@ -2426,7 +2426,7 @@
"status": "prod",
"versions": {
"schema": "3.1.0",
"subgraph": "1.1.0",
"subgraph": "2.2.3",
"methodology": "1.0.0"
},
"files": {
Expand Down Expand Up @@ -2712,7 +2712,7 @@
"status": "prod",
"versions": {
"schema": "1.3.0",
"subgraph": "1.0.2",
"subgraph": "1.1.0",
"methodology": "1.0.0"
},
"files": {
Expand Down Expand Up @@ -3503,7 +3503,7 @@
},
"decentralized-network": {
"slug": "morpho-aave-v3-ethereum",
"query-id": "TODO"
"query-id": "FKe6ANnWmGPE6hajGLoTgPrVF2jYPHiRu2Jwcg9ZmG9A"
}
}
}
Expand Down Expand Up @@ -7798,7 +7798,7 @@
"status": "prod",
"versions": {
"schema": "1.4.0",
"subgraph": "1.0.3",
"subgraph": "1.0.4",
"methodology": "1.0.0"
},
"services": {
Expand Down Expand Up @@ -10465,6 +10465,40 @@
}
}
},
"stader": {
"schema": "generic",
"base": "stader",
"protocol": "stader",
"project": "stader",
"deployments": {
"stader-ethereum": {
"network": "mainnet",
"status": "prod",
"versions": {
"schema": "3.0.0",
"subgraph": "1.0.0",
"methodology": "1.0.0"
},
"files": {
"template": "stader.template.yaml"
},
"options": {
"prepare:yaml": true,
"prepare:constants": false
},
"services": {
"hosted-service": {
"slug": "stader-ethereum",
"query-id": "stader-ethereum"
},
"decentralized-network": {
"slug": "stader-ethereum",
"query-id": "2RLAUqUMvGGFygtuJfmTyeo62zFSJswDZSRMTcu28fSa"
}
}
}
}
},
"etherfi": {
"schema": "generic",
"base": "etherfi",
Expand Down Expand Up @@ -10493,7 +10527,7 @@
},
"decentralized-network": {
"slug": "etherfi-ethereum",
"query-id": "TODO"
"query-id": "GPwCNqJ5aroTtkk48Y57pBjFHVkeYmMzmBpE1a7WF7Hc"
}
}
}
Expand Down Expand Up @@ -10527,7 +10561,7 @@
},
"decentralized-network": {
"slug": "frax-ether-staking-ethereum",
"query-id": "TODO"
"query-id": "FeKHrGeNxVctN6EeAhba2Kv78xNxuEhbRKNECLfVH8z2"
}
}
},
Expand All @@ -10553,7 +10587,7 @@
},
"decentralized-network": {
"slug": "frax-ether-staking-arbitrum",
"query-id": "TODO"
"query-id": "FSafXUhkuwqARZNNe82isspkjQJcPK2PrSjQLvNXuakU"
}
}
},
Expand All @@ -10579,7 +10613,7 @@
},
"decentralized-network": {
"slug": "frax-ether-staking-bsc",
"query-id": "TODO"
"query-id": "A113zHKpiXzugLyKDVknAxjQ6qFSPQwfiGK7rjiuqbcq"
}
}
},
Expand All @@ -10605,7 +10639,7 @@
},
"decentralized-network": {
"slug": "frax-ether-staking-fantom",
"query-id": "TODO"
"query-id": "Ba52AgUJfCmWQpBJEwRvygC45iGr9uqnrehpymN2Xmx4"
}
}
},
Expand All @@ -10631,7 +10665,7 @@
},
"decentralized-network": {
"slug": "frax-ether-staking-moonbeam",
"query-id": "TODO"
"query-id": "FhaAErF9146bnqJsQD34zPHNC11quKTuk9HBA7RdGrjz"
}
}
},
Expand All @@ -10657,7 +10691,7 @@
},
"decentralized-network": {
"slug": "frax-ether-staking-optimism",
"query-id": "TODO"
"query-id": "G9nDvQw6S7LkzNxj7oGFZUsahe3ebpAtEww716kWkfZd"
}
}
},
Expand All @@ -10683,7 +10717,7 @@
},
"decentralized-network": {
"slug": "frax-ether-staking-polygon",
"query-id": "TODO"
"query-id": "FMkrjPgSyGm2UBFrMqpJVwWgGHLek8U39W1M4R9TfP1T"
}
}
}
Expand Down Expand Up @@ -10717,7 +10751,7 @@
},
"decentralized-network": {
"slug": "mantle-staked-eth-ethereum",
"query-id": "todo"
"query-id": "VVKZagj4XUyamqXysVBniarN8HMz87DnwkTChuXH18Z"
}
}
}
Expand Down Expand Up @@ -10751,7 +10785,41 @@
},
"decentralized-network": {
"slug": "swell-liquid-staking-ethereum",
"query-id": "todo"
"query-id": "F8nUFWAC9vE1gHcUj5ZHXSt53eXo9vRqf2SuCcYVs93S"
}
}
}
}
},
"puffer-finance": {
"schema": "generic",
"base": "puffer-finance",
"protocol": "puffer-finance",
"project": "puffer-finance",
"deployments": {
"puffer-finance-ethereum": {
"network": "ethereum",
"status": "prod",
"versions": {
"schema": "3.0.0",
"subgraph": "1.0.0",
"methodology": "1.0.0"
},
"files": {
"template": "puffer.finance.template.yaml"
},
"options": {
"prepare:yaml": true,
"prepare:constants": false
},
"services": {
"hosted-service": {
"slug": "puffer-finance-ethereum",
"query-id": "puffer-finance-ethereum"
},
"decentralized-network": {
"slug": "puffer-finance-ethereum",
"query-id": "F8nUFWAC9vE1gHcUj5ZHXSt53eXo9vRqf2SuCcYVs93S"
}
}
}
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
},
"scripts": {
"prettier": "prettier --loglevel silent --write \"**/*.{md,jsx,tsx,ts,json,html,css,js}\"",
"prettier-write": "prettier --write",
"prettier-check": "prettier --check",
"lint:fix": "npx eslint --fix --max-warnings 0",
"lint": "npx eslint",
Expand Down
3 changes: 3 additions & 0 deletions subgraphs/_reference_/src/prices/common/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import * as BSC from "../config/bsc";
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";
Expand Down Expand Up @@ -105,6 +106,8 @@ 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();
}

return new TEMPLATE.config();
Expand Down
131 changes: 131 additions & 0 deletions subgraphs/_reference_/src/prices/config/blast.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
/* eslint-disable @typescript-eslint/no-unused-vars */
import * as constants from "../common/constants";
import { Address, BigInt, ethereum } from "@graphprotocol/graph-ts";
import { Configurations, OracleConfig, OracleContract } from "../common/types";

export const NETWORK_STRING = "blast-mainnet";

///////////////////////////////////////////////////////////////////////////
///////////////////// CALCULATIONS/ORACLE CONTRACT ////////////////////////
///////////////////////////////////////////////////////////////////////////

export const YEARN_LENS_CONTRACT_ADDRESS = new OracleContract();
export const CHAIN_LINK_CONTRACT_ADDRESS = new OracleContract();
export const AAVE_ORACLE_CONTRACT_ADDRESS = new OracleContract();
export const SUSHISWAP_CALCULATIONS_ADDRESS = new OracleContract();

///////////////////////////////////////////////////////////////////////////
///////////////////////////// CURVE CONTRACT //////////////////////////////
///////////////////////////////////////////////////////////////////////////

export const CURVE_CALCULATIONS_ADDRESS = new OracleContract();

export const CURVE_REGISTRY_ADDRESSES: OracleContract[] = [];

///////////////////////////////////////////////////////////////////////////
/////////////////////////// UNISWAP FORKS CONTRACT ////////////////////////
///////////////////////////////////////////////////////////////////////////

export const UNISWAP_FORKS_ROUTER_ADDRESSES: OracleContract[] = [
new OracleContract("0x98994a9a7a2570367554589189dc9772241650f6", 157110), // Thruster v2 Router1
new OracleContract("0x44889b52b71e60de6ed7de82e2939fcc52fb2b4e", 157501), // Thruster v2 Router2
new OracleContract("0x54cf3d259a06601b5bc45f61a16443ed5404dd64", 285726), // Sushiswap v2 Router02
];

///////////////////////////////////////////////////////////////////////////
/////////////////////////// BLACKLISTED TOKENS ////////////////////////////
///////////////////////////////////////////////////////////////////////////

export const YEARN_LENS_BLACKLIST: Address[] = [];
export const AAVE_ORACLE_BLACKLIST: Address[] = [];
export const CURVE_CALCULATIONS_BLACKSLIST: Address[] = [];
export const SUSHI_CALCULATIONS_BLACKSLIST: Address[] = [];

///////////////////////////////////////////////////////////////////////////
//////////////////////////// HARDCODED STABLES ////////////////////////////
///////////////////////////////////////////////////////////////////////////

export const HARDCODED_STABLES: Address[] = [];

///////////////////////////////////////////////////////////////////////////
///////////////////////////////// HELPERS /////////////////////////////////
///////////////////////////////////////////////////////////////////////////

export const USDC_TOKEN_DECIMALS = BigInt.fromI32(18);

export const ETH_ADDRESS = constants.NULL.TYPE_ADDRESS;
export const WETH_ADDRESS = Address.fromString(
"0x4300000000000000000000000000000000000004"
);
export const USDC_ADDRESS = Address.fromString(
"0x4300000000000000000000000000000000000003"
);

export class config implements Configurations {
network(): string {
return NETWORK_STRING;
}

yearnLens(): OracleContract {
return YEARN_LENS_CONTRACT_ADDRESS;
}
chainLink(): OracleContract {
return CHAIN_LINK_CONTRACT_ADDRESS;
}
yearnLensBlacklist(): Address[] {
return YEARN_LENS_BLACKLIST;
}

aaveOracle(): OracleContract {
return AAVE_ORACLE_CONTRACT_ADDRESS;
}
aaveOracleBlacklist(): Address[] {
return AAVE_ORACLE_BLACKLIST;
}

curveCalculations(): OracleContract {
return CURVE_CALCULATIONS_ADDRESS;
}
curveCalculationsBlacklist(): Address[] {
return CURVE_CALCULATIONS_BLACKSLIST;
}

sushiCalculations(): OracleContract {
return SUSHISWAP_CALCULATIONS_ADDRESS;
}
sushiCalculationsBlacklist(): Address[] {
return SUSHI_CALCULATIONS_BLACKSLIST;
}

uniswapForks(): OracleContract[] {
return UNISWAP_FORKS_ROUTER_ADDRESSES;
}
curveRegistry(): OracleContract[] {
return CURVE_REGISTRY_ADDRESSES;
}

hardcodedStables(): Address[] {
return HARDCODED_STABLES;
}

ethAddress(): Address {
return ETH_ADDRESS;
}
wethAddress(): Address {
return WETH_ADDRESS;
}
usdcAddress(): Address {
return USDC_ADDRESS;
}

usdcTokenDecimals(): BigInt {
return USDC_TOKEN_DECIMALS;
}

getOracleOverride(
tokenAddr: Address | null,
block: ethereum.Block | null
): OracleConfig | null {
return null;
}
}
3 changes: 0 additions & 3 deletions subgraphs/ellipsis-finance/src/common/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ import { Address, BigDecimal, BigInt } from "@graphprotocol/graph-ts";

export const PROTOCOL_NAME = "Ellipsis Finance";
export const PROTOCOL_SLUG = "ellipses-finance";
export const PROTOCOL_SCHEMA_VERSION = "1.3.0";
export const PROTOCOL_SUBGRAPH_VERSION = "1.0.1";
export const PROTOCOL_METHODOLOGY_VERSION = "1.0.0";

////////////////////////
///// Schema Enums /////
Expand Down
Loading

0 comments on commit 41fdb69

Please sign in to comment.