-
Notifications
You must be signed in to change notification settings - Fork 241
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
705 additions
and
67 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
subgraphs/renzo/protocols/renzo/config/deployments/renzo-arbitrum/configurations.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 5 additions & 1 deletion
6
subgraphs/renzo/protocols/renzo/config/deployments/renzo-base/configurations.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
subgraphs/renzo/protocols/renzo/config/deployments/renzo-blast-mainnet/configurations.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 5 additions & 1 deletion
6
subgraphs/renzo/protocols/renzo/config/deployments/renzo-bsc/configurations.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 5 additions & 1 deletion
6
subgraphs/renzo/protocols/renzo/config/deployments/renzo-mode/configurations.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,130 @@ | ||
/* 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 = "base"; | ||
|
||
/////////////////////////////////////////////////////////////////////////// | ||
///////////////////// 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("0x8cfe327cec66d1c090dd72bd0ff11d690c33a2eb", 2910568), | ||
new OracleContract("0x6bded42c6da8fbf0d2ba55b2fa120c5e0c8d7891", 2631217), | ||
]; | ||
|
||
/////////////////////////////////////////////////////////////////////////// | ||
/////////////////////////// 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(6); | ||
|
||
export const ETH_ADDRESS = constants.NULL.TYPE_ADDRESS; | ||
export const WETH_ADDRESS = Address.fromString( | ||
"0x4200000000000000000000000000000000000006" | ||
); | ||
export const USDC_ADDRESS = Address.fromString( | ||
"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913" | ||
); | ||
|
||
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; | ||
} | ||
} |
Oops, something went wrong.