Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hdev 977 contract addresses #58

Draft
wants to merge 19 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/dist
/dist
node_modules/
3 changes: 3 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
registry=https://registry.npmjs.org/
always-auth=true
[email protected]
Binary file not shown.
29 changes: 29 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@halodao/halodao-contract-addresses",
"version": "1.0.24",
"version": "1.0.25-beta-y",
"description": "List of HaloDAO contract addresses across all chains",
"repository": "https://github.com/HaloDAO/halodao-contract-addresses",
"author": "HaloDAO Dev",
Expand All @@ -11,6 +11,10 @@
"/dist"
],
"scripts": {
"npm-publish": "tsc && npm publish --access public"
"npm-publish": "tsc && npm publish --access public",
"build": "tsc"
},
"devDependencies": {
"typescript": "^4.9.5"
}
}
1 change: 1 addition & 0 deletions src/arb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const tokens = {
USDC: '0xff970a61a04b1ca14834a43f5de4533ebddb5cc8',
fxPHP: '0x3d147cD9aC957B2a5F968dE9d1c6B9d0872286a0',
EURS: '0xD22a58f79e9481D1a88e00c343885A588b34b68B',
BAL: '0x040d1EdC9569d4Bab2D15287Dc5A4F10F56a56B8', // Balancer governance token
fakeUSDC: '0x9cFf4A10b6Fb163a4DF369AaFed9d95838222ca6', // fake mintable token
fakeFxPHP: '0x03612728266b82EF5dB751fbf15ea7F1370502eE', // fake mintable token
fakeXSGD: '0x6d934DcbA7F8e89713b4334147c03e76f30CE094', // fake mintable token
Expand Down
218 changes: 171 additions & 47 deletions src/goerli.ts
Original file line number Diff line number Diff line change
@@ -1,35 +1,74 @@
import { AddressCollection, ZERO_ADDRESS } from './types'

const tokens = {
USDC: '0xB32EcEb4f6B5e840Fe0e4ff127D7761D13a4C092',
XSGD: '0xb4a183d38F754D83AA97810D80FC5BaCCd5c8441',
EURS: '0x2b1c6c85a1dB4b5CF9C4d4662d0556E5daBcf626',
USDT: '0x9FDc4881Ce3eE888A7D3162A8AccFB3875437B34',
DAI: '0x7421F1bAb6d1D82c2f854B464Ecd81e0288F3550',
'bb-a-usd': '0x7CCB99E3DBeF941a062E0da1b0d7635bdCFafB01', // balancer ComposableStablePool
'bb-a-USDC': '0x0595D1Df64279ddB51F1bdC405Fe2D0b4Cc86681', // balancer USDC:aUSDC AaveLinearPool
'bb-a-DAI': '0x5cEA6A84eD13590ED14903925Fa1A73c36297d99', // balancer DAI:aDAI AaveLinearPool
'bb-a-USDT': '0xeFD681A82970AC5d980b9B2D40499735e7BF3F1F', // balancer USDT:aUSDT AaveLinearPool
balUSDC: '0xe0C9275E44Ea80eF17579d33c55136b7DA269aEb', // balancer USDC token
balDAI: '0x8c9e6c40d3402480ACE624730524fACC5482798c', // balancer DAI token
balUSDT: '0x1f1f156E0317167c11Aa412E3d1435ea29Dc3cCE' // balancer USDT token
// Xave tokens
XSGD: '0xb4a183d38F754D83AA97810D80FC5BaCCd5c8441', // Xave mock XSGD
EURS: '0x2b1c6c85a1dB4b5CF9C4d4662d0556E5daBcf626', // Xave mock EURS

// Balancer tokens
BAL: '0xfA8449189744799aD2AcE7e0EBAC8BB7575eff47', // Balancer governance token
USDC: '0xe0C9275E44Ea80eF17579d33c55136b7DA269aEb', // Balancer USDC token
USDT: '0x1f1f156E0317167c11Aa412E3d1435ea29Dc3cCE', // Balancer USDT token
DAI: '0x8c9e6c40d3402480ACE624730524fACC5482798c', // Balancer DAI token
'bb-a-usd': '0x7CCB99E3DBeF941a062E0da1b0d7635bdCFafB01', // Balancer ComposableStablePool
'bb-a-USDC': '0x0595D1Df64279ddB51F1bdC405Fe2D0b4Cc86681', // Balancer USDC:aUSDC AaveLinearPool
'bb-a-DAI': '0x5cEA6A84eD13590ED14903925Fa1A73c36297d99', // Balancer DAI:aDAI AaveLinearPool
'bb-a-USDT': '0xeFD681A82970AC5d980b9B2D40499735e7BF3F1F' // Balancer USDT:aUSDT AaveLinearPool
}

const fxPools = {
LP_XSGD_USDC: '0x5886F7BFCC5D61CD4Ad0DC34e72DEFa2c85dE104',
LP_EURS_USDC: '0x1fbA91Ce46d2453e2d461b1a0FcF76588a07fE41',
'LP_XSGD_bb-a-usd': '0xeDdd595eFDc678781AF03F54BEc3373964C5fA10'
LP_XSGD_USDC: '0x8233CDcD08ccA2718065740e5EF767294361a05a',
LP_EURS_USDC: '0x3F3557C7dCa644F6F5d6074FF560a8856155f632',
'LP_XSGD_bb-a-usd': '0xF93AC32926574F67F112182ad95F8359c42715Da',
'LP_EURS_bb-a-usd': '0x83b630DBF3e90cF0b69dd4029c3d49AF7E48c355'
}

const fxPoolIds = {
const poolIds = {
XSGD_USDC:
'0x5886f7bfcc5d61cd4ad0dc34e72defa2c85de1040002000000000000000002e9',
'0x8233cdcd08cca2718065740e5ef767294361a05a00020000000000000000067b',
EURS_USDC:
'0x1fba91ce46d2453e2d461b1a0fcf76588a07fe410002000000000000000003af',
'0x3f3557c7dca644f6f5d6074ff560a8856155f63200020000000000000000066e',
'XSGD_bb-a-usd':
'0xeddd595efdc678781af03f54bec3373964c5fa10000200000000000000000560'
'0xf93ac32926574f67f112182ad95f8359c42715da00020000000000000000067c',
'EURS_bb-a-usd':
'0x83b630dbf3e90cf0b69dd4029c3d49af7e48c35500020000000000000000067d',
'bb-a-usd':
'0x7ccb99e3dbef941a062e0da1b0d7635bdcfafb0100000000000000000000054a',
'bb-a-USDC':
'0x0595d1df64279ddb51f1bdc405fe2d0b4cc8668100000000000000000000005c',
'bb-a-DAI':
'0x5cea6a84ed13590ed14903925fa1a73c36297d9900000000000000000000005d',
'bb-a-USDT':
'0xefd681a82970ac5d980b9b2d40499735e7bf3f1f00000000000000000000005e'
}

const bbausdPoolTokens = [
tokens.USDC,
tokens.DAI,
tokens.USDT,
tokens['bb-a-USDC'],
tokens['bb-a-DAI'],
tokens['bb-a-USDT']
]

const bbausdSubpools = [
{
address: tokens['bb-a-USDC'],
poolId: poolIds['bb-a-USDC'],
assets: [tokens.USDC]
},
{
address: tokens['bb-a-DAI'],
poolId: poolIds['bb-a-DAI'],
assets: [tokens.DAI]
},
{
address: tokens['bb-a-USDT'],
poolId: poolIds['bb-a-USDT'],
assets: [tokens.USDT]
}
]

const addresses: AddressCollection = {
protocol: {
XAV: '0x4f2157aE2661e4312B8F2E458705fA5a9aeb3D46',
Expand All @@ -46,29 +85,31 @@ const addresses: AddressCollection = {
pools: {
all: fxPools,
genesis: [],

enabled: [
{
assets: [tokens.XSGD, tokens.USDC],
address: fxPools.LP_XSGD_USDC,
poolId: fxPoolIds.XSGD_USDC
poolId: poolIds.XSGD_USDC
},
{
assets: [tokens.EURS, tokens.USDC],
address: fxPools.LP_EURS_USDC,
poolId: fxPoolIds.EURS_USDC
poolId: poolIds.EURS_USDC
},
{
assets: [tokens.XSGD, tokens['bb-a-usd']],
address: fxPools['LP_XSGD_bb-a-usd'],
poolId: fxPoolIds['XSGD_bb-a-usd'],
poolTokens: [
tokens.balUSDC,
tokens.balDAI,
tokens.balUSDT,
tokens['bb-a-USDC'],
tokens['bb-a-DAI'],
tokens['bb-a-USDT']
]
poolId: poolIds['XSGD_bb-a-usd'],
poolTokens: bbausdPoolTokens,
subPools: bbausdSubpools
},
{
assets: [tokens.EURS, tokens['bb-a-usd']],
address: fxPools['LP_EURS_bb-a-usd'],
poolId: poolIds['EURS_bb-a-usd'],
poolTokens: bbausdPoolTokens,
subPools: bbausdSubpools
}
],
disabled: []
Expand All @@ -79,28 +120,27 @@ const addresses: AddressCollection = {
swapLibrary: '0x9875C5C44C10e24AEa48C422f819c5c8f933701D',
oracles: {
USDC: '0xAb5c49580294Aff77670F839ea425f5b78ab3Ae7', // Chainklink official USDC/USD oracle
XSGD: '0x3E58d34C8cf108897b1296eF462AD18522f7e122', // mock XSGD/USD oracle
XSGD: '0xebFF09c20a4de756cA86bF13E8878AeA795Bd6A7', // Xave mock XSGD/USD oracle
EURS: '0x44390589104C9164407A0E0562a9DBe6C24A0E05', // Chainklink official EURS/USD oracle
USDT: '0xAb5c49580294Aff77670F839ea425f5b78ab3Ae7', // no USDT on Chainlink goerli, reusing USDC instead
DAI: '0x0d79df66BE487753B02D015Fb622DED7f0E9798d', // Chainklink official DAI/USD oracle
'bb-a-usd': '0x9Db0c4Bf8e8CDf42D8C611019a0ee291a60C70E2' // Xave's ComposableBoostedPoolUsdRate oracle
'bb-a-usd': '0xA76dC5048F80D2f2974754D292B09a441ea60EcA' // Xave's ComposableBoostedPoolOracle
},
assimilators: {
XSGD_USD: '0x4013e4d132692D1c99233345d06Aa13AB9133D95',
EURS_USD: '0x096337250551Ae6E4Bf423Ab5204415777553F80',
USDC_USD: '0x82670155e38CA77Bcefbb098940D3222A3283fdb',
'bb-a-usd_USD': '0x605C0707cf604A48819F055B09C4e11DbC0C99ED',
'XSGD_bb-a-usd_USD': '0x27526bD0E4Fb7D342ac81F7362f40f0e9Ebd011a'
USDC_USD: '0x75deB02b7B5631395c3DFD6F8027a9C8Ce95103e',
XSGD_USD: '0xae76A9D5C56A8547a3dF9C074ed6F5Da634831fb',
EURS_USD: '0xc7B5Bc5dcAA1534b0aA38cFC19e8c15bb023a164',
'bb-a-usd_USD': '0x35247C932ECF5898d2eFBb462146067B889bAaF8',
'XSGD_bb-a-usd_USD': '0xD98A5Bdb5fA8E2feC69391397EB6b8D9d73428bf',
'EURS_bb-a-usd_USD': '0x80FCFC519d0AaE7B3aAa97a9dB454eB416c67473'
},
balancerProtocolFeeCollector: '0xce88686553686DA562CE7Cea497CE749DA109f9F'
},
tokens,
lendingMarket: {
protocol: {
lendingPoolAddressesProvider:
'0x4D7e44c5262B61817cA7bDD8E0Bd5748C5890131',
lendingPoolAddressesProviderRegistry:
'0x651a4C20f46F29CaC490A12111CfD76bab4EfE39',
lendingPoolAddressesProvider: '0x4D7e44c5262B61817cA7bDD8E0Bd5748C5890131',
lendingPoolAddressesProviderRegistry: '0x651a4C20f46F29CaC490A12111CfD76bab4EfE39',
reserveLogic: '0x04a12215189F3aeEd6D04DE8b9d0AEf839CE7764',
genericLogic: '0x609208B2E016fB4B61C0191beEAfF73e2CafCF1E',
validationLogic: '0xFc8A694B1d44e52b85FC13032264dc9029183dF9',
Expand All @@ -109,20 +149,17 @@ const addresses: AddressCollection = {
lendingPoolProxy: '0x6af3B5f7d7f4BE05C3dF360A3b573A7FB93E719B',
lendingPoolConfiguratorImpl: '0x8F8791d44dcad03fec2995482CDfA9C69784f31c',
lendingPoolConfigurator: '0x497fD821B014880c575aC98A23d9926f5148800E',
stableAndVariableTokensHelper:
'0x34305916713a0F9070f51dBcf5db945c4A3Ee48c',
stableAndVariableTokensHelper: '0x34305916713a0F9070f51dBcf5db945c4A3Ee48c',
aTokensAndRatesHelper: '0xE3C2280f8d1af58443b487040521a9D923d6fda5',
aaveOracle: '0x5d82ae79F6AF94C0159abf44034a2295aDd5C749',
lendingRateOracle: '0xF403e0dD1A955f72eA8c9b6998D375f66C9E0957',
aaveProtocolDataProvider: '0x79D52081eCa24468fe471b22c763bdbFf02FAC3c',
stableDebtToken: '0x10eF9F05455bf85683f032E5f79301bBE7e40758',
variableDebtToken: '0x87B2418E4DFEC74Bcba9453C7C8e63c6FA7E350b',
aToken: '0x5533a2e3Db531a89b25D1ed3c6a1Baa584eEc319',
defaultReserveInterestRateStrategy:
'0x890D23Be36B81a1388FeCF3ca0FBC05709eD90a2',
defaultReserveInterestRateStrategy: '0x890D23Be36B81a1388FeCF3ca0FBC05709eD90a2',
wethGateway: '0x7CcA8EBFac13a6176C49369727e2Eb0a8c95812e',
lendingPoolCollateralManager:
'0x6cdb26b79716eE42944dfA1B6a9D90b56bc16B6B',
lendingPoolCollateralManager: '0x6cdb26b79716eE42944dfA1B6a9D90b56bc16B6B',
walletBalanceProvider: '0xED0506376035b1E1d84a8fc345D91800F9a88361',
rnbwIncentivesController: '0x1669Fd5a3cf5cB806F9e401d08849B976d878fCc',
treasury: '0x0E944C65261EdD33e228A920A7846B0cf5c50a45',
Expand All @@ -143,6 +180,93 @@ const addresses: AddressCollection = {
},
variableDebtTokens: {},
wrappedNativeToken: '0xB4FBF271143F4FBf7B91A5ded31805e42b2208d6'
},
ammV3: {
vault: '0xBA12222222228d8Ba445958a75a0704d566BF2C8',
pools: {
embeddedAssets: [
tokens.DAI,
tokens.USDC,
tokens.USDT
],
enabled: [
{
assets: [tokens.XSGD, tokens['bb-a-usd']],
address: fxPools['LP_XSGD_bb-a-usd'],
poolId: poolIds['XSGD_bb-a-usd']
},
{
assets: [tokens.EURS, tokens['bb-a-usd']],
address: fxPools['LP_EURS_bb-a-usd'],
poolId: poolIds['EURS_bb-a-usd']
},
],
linearPools: [
{
// underlyingToken: tokens.USDC,
address: tokens['bb-a-USDC'],
poolId: poolIds['bb-a-USDC'],
assets: [tokens.USDC]
},
{
// underlyingToken: tokens.DAI,
address: tokens['bb-a-DAI'],
poolId: poolIds['bb-a-DAI'],
assets: [tokens.DAI]
},
{
// underlyingToken: tokens.USDT,
address: tokens['bb-a-USDT'],
poolId: poolIds['bb-a-USDT'],
assets: [tokens.USDT]
}
],
'bb-a-usd': {
address: tokens['bb-a-usd'],
poolId: poolIds['bb-a-usd'],
assets: [
tokens['bb-a-DAI'],
tokens['bb-a-USDC'],
tokens['bb-a-USDT'],
]
},
fxPools: [
{
assets: [tokens.XSGD, tokens.USDC],
address: fxPools.LP_XSGD_USDC,
poolId: poolIds.XSGD_USDC
},
{
assets: [tokens.EURS, tokens.USDC],
address: fxPools.LP_EURS_USDC,
poolId: poolIds.EURS_USDC
},
],
fxMetaPools: [
{
assets: [tokens.XSGD, tokens['bb-a-usd']],
address: fxPools['LP_XSGD_bb-a-usd'],
poolId: poolIds['XSGD_bb-a-usd'],
},
{
assets: [tokens.EURS, tokens['bb-a-usd']],
address: fxPools['LP_EURS_bb-a-usd'],
poolId: poolIds['EURS_bb-a-usd'],
},
],
tokensWithConnectingPath: [
tokens.XSGD,
tokens.EURS,
],
// tokensWithNoDirectPath: [
// tokens.EURS,
// ],
tokensWithDirectPath: [
tokens.DAI,
tokens.USDC,
tokens.USDT,
]
}
}
}

Expand Down
10 changes: 8 additions & 2 deletions src/mainnet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const tokens = {
TCAD: '0x00000100F2A2bd000715001920eB70D229700085',
TGBP: '0x00000000441378008EA67F4284A57932B1c000a5',
DAI: '0x6B175474E89094C44Da98b954EedeAC495271d0F',
BAL: '0xba100000625a3754423978a60c9317c58a424e3D', // Balancer governance token
fakeUSDC: '0x7558f7F023d676841ab118D4637a68943e650196', // fake mintable token
fakeXSGD: '0x3E58d34C8cf108897b1296eF462AD18522f7e122', // fake mintable token
fakeFxPHP: '0x02510A18068B57B010b4CBc2E02D8CE5cCBdf8F5' // fake mintable token
Expand Down Expand Up @@ -102,7 +103,10 @@ const addresses: AddressCollection = {
{
assets: [tokens.EURS, tokens.USDC],
address: fxPools.LP_EURS_USDC,
poolId: fxPoolIds.EURS_USDC
poolId: fxPoolIds.EURS_USDC,
gauges: {
main: '0xB381D8923feff930b7AaeDF9563f1496ce0aCe36' // LiquidityGauge
}
}
],
disabled: []
Expand All @@ -118,7 +122,9 @@ const addresses: AddressCollection = {
EURS: '0xb49f677943BC038e9857d61E7d053CaA2C1734C1',
DAI: '0xAed0c38402a5d19df6E4c03F4E2DceD6e29c1ee9'
},
balancerProtocolFeeCollector: '0xce88686553686DA562CE7Cea497CE749DA109f9F'
balancerProtocolFeeCollector: '0xce88686553686DA562CE7Cea497CE749DA109f9F',
balancerGaugeController: '0xC128468b7Ce63eA702C1f104D55A2566b13D3ABD',
balancerTokenAdmin: '0xf302f9F50958c5593770FDf4d4812309fF77414f'
},
tokens,
lendingMarket: {
Expand Down
Loading