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

chore: add partial addresses for goerli #60

Merged
merged 1 commit into from
Oct 12, 2022
Merged
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
1 change: 1 addition & 0 deletions artifacts/goerli/addresses/AAVE.address.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = '0x1111111111111111111111111111111111111111'
1 change: 1 addition & 0 deletions artifacts/goerli/addresses/BFactory.address.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = "0xD9CBc14d76079244513D10d71EcC53cB4C75Dcf8";
1 change: 1 addition & 0 deletions artifacts/goerli/addresses/BPool.address.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = "0x0000000000000000000000000000000000000000";
1 change: 1 addition & 0 deletions artifacts/goerli/addresses/BPoolWETH.address.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = "0x0000000000000000000000000000000000000000";
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = "0xa0bB4714D9E7E277A904c253b5a7BF8B0B435d4E";
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = "0x94B8F6467945E9F436a478f74e8c8838bd93F9d0";
1 change: 1 addition & 0 deletions artifacts/goerli/addresses/DAI.address.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = "0xb11d7CCe40D2b30759A79798E0B4d921FB72bbEA";
1 change: 1 addition & 0 deletions artifacts/goerli/addresses/DebtLockerFactory.address.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = "0x167051Fe3c5EeE005F444518eE21678Bbd0d0E65";
1 change: 1 addition & 0 deletions artifacts/goerli/addresses/DebtLockerV2.address.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = "0x04422257e1e0E97B4369e5532D4A7a6df6470CAb";
1 change: 1 addition & 0 deletions artifacts/goerli/addresses/DebtLockerV2Factory.address.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = "0x3adfF5De2e715C7A0576A174be900ded5FbD4075";
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = "0xfCDd6690307A1E5997Ee7e27aC969eF7287fD486";
1 change: 1 addition & 0 deletions artifacts/goerli/addresses/DebtLockerV3.address.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = "0x350e3185A7E8adE88833bA204e33E468c4254D55";
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = "0x358D32aFEE1d7781ADa10f31FD024646c631E0Bc";
1 change: 1 addition & 0 deletions artifacts/goerli/addresses/FeeManager.address.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = "0x0000000000000000000000000000000000000000";
1 change: 1 addition & 0 deletions artifacts/goerli/addresses/FundingLockerFactory.address.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = "0xD6c077Db8E8e33890953471691acbbbb199E3a73";
1 change: 1 addition & 0 deletions artifacts/goerli/addresses/LINK.address.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = '0x1111111111111111111111111111111111111111'
1 change: 1 addition & 0 deletions artifacts/goerli/addresses/LateFeeCalc.address.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = "0x5EE6c2775b073a17298eE0Ca5f0DCEed751EE6FC";
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = "0xA67783F4bfde43AdfAe214F3E0cfd1F7E6acFfaE";
1 change: 1 addition & 0 deletions artifacts/goerli/addresses/LoanFactory.address.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = "0x3b4d7120c510F1a83f2d5a3B53B91eb7472D8c0f";
1 change: 1 addition & 0 deletions artifacts/goerli/addresses/LoanLib.address.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = "0xfc7622498FB5a039a495c831Fb0de79607Cf8E6E";
1 change: 1 addition & 0 deletions artifacts/goerli/addresses/LoanManager.address.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = "0x0000000000000000000000000000000000000000";
1 change: 1 addition & 0 deletions artifacts/goerli/addresses/LoanManagerFactory.address.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = "0x0000000000000000000000000000000000000000";
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = "0x0000000000000000000000000000000000000000";
1 change: 1 addition & 0 deletions artifacts/goerli/addresses/LoanV2.address.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = "0x87c3f9d0232a00344ecB8671262221FDaBd52680";
1 change: 1 addition & 0 deletions artifacts/goerli/addresses/LoanV2Factory.address.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = "0x77D86632d2629a7C28CB0C811ba3C7244d4fC726";
1 change: 1 addition & 0 deletions artifacts/goerli/addresses/LoanV2Initializer.address.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = "0xcF09Aa73Ab88eF0E384BaD47AAAEfAee44a78280";
1 change: 1 addition & 0 deletions artifacts/goerli/addresses/LoanV2Refinancer.address.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = "0x0000000000000000000000000000000000000000";
1 change: 1 addition & 0 deletions artifacts/goerli/addresses/LoanV3.address.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = "0x2708a93Ec38D33465fccfD4b5D2269c17b886013";
1 change: 1 addition & 0 deletions artifacts/goerli/addresses/LoanV3Factory.address.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = "0x0000000000000000000000000000000000000000";
1 change: 1 addition & 0 deletions artifacts/goerli/addresses/LoanV3Initializer.address.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = "0x7c5dc32DE8a89f5E51b9FC85273C759307b231A4";
1 change: 1 addition & 0 deletions artifacts/goerli/addresses/LoanV3Refinancer.address.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = "0x0000000000000000000000000000000000000000";
1 change: 1 addition & 0 deletions artifacts/goerli/addresses/LoanV4.address.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = "0x0000000000000000000000000000000000000000";
1 change: 1 addition & 0 deletions artifacts/goerli/addresses/LoanV4Initializer.address.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = "0x0000000000000000000000000000000000000000";
1 change: 1 addition & 0 deletions artifacts/goerli/addresses/MapleGlobals.address.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = "0xDF6682678b838fDB2F40cD4390CD7BD0C9f1767c";
1 change: 1 addition & 0 deletions artifacts/goerli/addresses/MapleGlobalsV2.address.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = "0x0000000000000000000000000000000000000000";
1 change: 1 addition & 0 deletions artifacts/goerli/addresses/MapleToken.address.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = "0x07032C7d4061aa8401CE3b0A9ecd43A645d8fC0C";
1 change: 1 addition & 0 deletions artifacts/goerli/addresses/MapleTreasury.address.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = "0xfB7E15227b1e26355C7110a21C3C0fb78f94e866";
1 change: 1 addition & 0 deletions artifacts/goerli/addresses/MplRewardsFactory.address.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = "0x77eAb884d817F888bbA5DFdA4B1436D677880c5F";
1 change: 1 addition & 0 deletions artifacts/goerli/addresses/NonTransparentProxy.address.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = "0x0000000000000000000000000000000000000000";
1 change: 1 addition & 0 deletions artifacts/goerli/addresses/PoolDeployer.address.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = "0x0000000000000000000000000000000000000000";
1 change: 1 addition & 0 deletions artifacts/goerli/addresses/PoolFactory.address.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = "0xdbF55A819dCe9349F7f907c2Db4F733eE98A5Ed9";
1 change: 1 addition & 0 deletions artifacts/goerli/addresses/PoolLib.address.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = "0xB6eBbe5C68cC3aEbFbc356bF6d15a6540236Df05";
1 change: 1 addition & 0 deletions artifacts/goerli/addresses/PoolManager.address.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = "0x0000000000000000000000000000000000000000";
1 change: 1 addition & 0 deletions artifacts/goerli/addresses/PoolManagerFactory.address.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = "0x0000000000000000000000000000000000000000";
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = "0x0000000000000000000000000000000000000000";
1 change: 1 addition & 0 deletions artifacts/goerli/addresses/PremiumCalc.address.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = "0xC7E9b1c18dCd0cA99d3c54f79091B0929dF09929";
1 change: 1 addition & 0 deletions artifacts/goerli/addresses/PriceOracleAAVE.address.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = '0x1111111111111111111111111111111111111111'
1 change: 1 addition & 0 deletions artifacts/goerli/addresses/PriceOracleLINK.address.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = '0x1111111111111111111111111111111111111111'
1 change: 1 addition & 0 deletions artifacts/goerli/addresses/PriceOracleUSDC.address.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = '0x1111111111111111111111111111111111111111'
1 change: 1 addition & 0 deletions artifacts/goerli/addresses/PriceOracleWBTC.address.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = '0x1111111111111111111111111111111111111111'
1 change: 1 addition & 0 deletions artifacts/goerli/addresses/PriceOracleWETH.address.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = '0x1111111111111111111111111111111111111111'
1 change: 1 addition & 0 deletions artifacts/goerli/addresses/RepaymentCalc.address.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = "0x23Cb9052b6D80879f98119A04D3dC6b6Af38a07a";
1 change: 1 addition & 0 deletions artifacts/goerli/addresses/StakeLockerFactory.address.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = "0x81f2A2E2916acfB7C51Ee0A2891b6e3D9c8FdfFc";
1 change: 1 addition & 0 deletions artifacts/goerli/addresses/USDC.address.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = "0x0b5A5F8C399E7B69b6F2dBB1B778905712d32e3A";
1 change: 1 addition & 0 deletions artifacts/goerli/addresses/UniswapV2Router02.address.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = "0x1111111111111111111111111111111111111111";
1 change: 1 addition & 0 deletions artifacts/goerli/addresses/Util.address.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = "0x39F54C898292848EB0BBa738e56cF22baf6Ff801";
1 change: 1 addition & 0 deletions artifacts/goerli/addresses/WBTC.address.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = "0x1893bC3e3bb1406fd5532bb5Bd6AB3660F085c91";
1 change: 1 addition & 0 deletions artifacts/goerli/addresses/WETH9.address.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = "0x684d113887DDea41d9c82ad7b6C1fd2EcF9eC3FE";
1 change: 1 addition & 0 deletions artifacts/goerli/addresses/WithdrawalManager.address.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = "0x0000000000000000000000000000000000000000";
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = "0x0000000000000000000000000000000000000000";
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = "0x0000000000000000000000000000000000000000";
1 change: 1 addition & 0 deletions artifacts/goerli/addresses/xMPL.address.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = "0x0000000000000000000000000000000000000000";
5 changes: 5 additions & 0 deletions artifacts/goerli/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"network": "goerli",
"blockheight": 0,
"date": "2022-10-12"
}
2 changes: 1 addition & 1 deletion scripts/build-addresses.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
and ensure that all addresses have been updated or added accurately.
*/

const build = (project = 'mainnet') => {
const build = (project = 'goerli') => {
const addresses = {
manifest: require(`../artifacts/${project}/manifest.json`),
// Pool v1 Factories
Expand Down
64 changes: 64 additions & 0 deletions src/addresses/goerli.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
export default {
AAVE: '0x1111111111111111111111111111111111111111',
BFactory: '0xD9CBc14d76079244513D10d71EcC53cB4C75Dcf8',
BPool: '0x0000000000000000000000000000000000000000',
BPoolWETH: '0x0000000000000000000000000000000000000000',
CollateralLockerFactory: '0x94B8F6467945E9F436a478f74e8c8838bd93F9d0',
DAI: '0xb11d7CCe40D2b30759A79798E0B4d921FB72bbEA',
DebtLockerFactory: '0x167051Fe3c5EeE005F444518eE21678Bbd0d0E65',
DebtLockerV2: '0x04422257e1e0E97B4369e5532D4A7a6df6470CAb',
DebtLockerV2Factory: '0x3adfF5De2e715C7A0576A174be900ded5FbD4075',
DebtLockerV2Initializer: '0xfCDd6690307A1E5997Ee7e27aC969eF7287fD486',
DebtLockerV3: '0x350e3185A7E8adE88833bA204e33E468c4254D55',
DebtLockerV3Initializer: '0x358D32aFEE1d7781ADa10f31FD024646c631E0Bc',
FeeManager: '0x0000000000000000000000000000000000000000',
FundingLockerFactory: '0xD6c077Db8E8e33890953471691acbbbb199E3a73',
LINK: '0x1111111111111111111111111111111111111111',
LateFeeCalc: '0x5EE6c2775b073a17298eE0Ca5f0DCEed751EE6FC',
LiquidityLockerFactory: '0xA67783F4bfde43AdfAe214F3E0cfd1F7E6acFfaE',
LoanFactory: '0x3b4d7120c510F1a83f2d5a3B53B91eb7472D8c0f',
LoanLib: '0xfc7622498FB5a039a495c831Fb0de79607Cf8E6E',
LoanManager: '0x0000000000000000000000000000000000000000',
LoanManagerFactory: '0x0000000000000000000000000000000000000000',
LoanManagerInitializer: '0x0000000000000000000000000000000000000000',
LoanV2: '0x87c3f9d0232a00344ecB8671262221FDaBd52680',
LoanV2Factory: '0x77D86632d2629a7C28CB0C811ba3C7244d4fC726',
LoanV2Initializer: '0xcF09Aa73Ab88eF0E384BaD47AAAEfAee44a78280',
LoanV2Refinancer: '0x0000000000000000000000000000000000000000',
LoanV3: '0x2708a93Ec38D33465fccfD4b5D2269c17b886013',
LoanV3Initializer: '0x7c5dc32DE8a89f5E51b9FC85273C759307b231A4',
LoanV3Refinancer: '0x0000000000000000000000000000000000000000',
LoanV4: '0x0000000000000000000000000000000000000000',
LoanV4Initializer: '0x0000000000000000000000000000000000000000',
LoanV4Refinancer: '0x0000000000000000000000000000000000000000',
MapleGlobals: '0xDF6682678b838fDB2F40cD4390CD7BD0C9f1767c',
MapleGlobalsV2: '0x0000000000000000000000000000000000000000',
MapleToken: '0x07032C7d4061aa8401CE3b0A9ecd43A645d8fC0C',
MapleTreasury: '0xfB7E15227b1e26355C7110a21C3C0fb78f94e866',
MplRewardsFactory: '0x77eAb884d817F888bbA5DFdA4B1436D677880c5F',
NonTransparentProxy: '0x0000000000000000000000000000000000000000',
PoolDeployer: '0x0000000000000000000000000000000000000000',
PoolFactory: '0xdbF55A819dCe9349F7f907c2Db4F733eE98A5Ed9',
PoolLib: '0xB6eBbe5C68cC3aEbFbc356bF6d15a6540236Df05',
PoolManager: '0x0000000000000000000000000000000000000000',
PoolManagerFactory: '0x0000000000000000000000000000000000000000',
PoolManagerInitializer: '0x0000000000000000000000000000000000000000',
PremiumCalc: '0xC7E9b1c18dCd0cA99d3c54f79091B0929dF09929',
PriceOracleAAVE: '0x1111111111111111111111111111111111111111',
PriceOracleLINK: '0x1111111111111111111111111111111111111111',
PriceOracleUSDC: '0x1111111111111111111111111111111111111111',
PriceOracleWBTC: '0x1111111111111111111111111111111111111111',
PriceOracleWETH: '0x1111111111111111111111111111111111111111',
RepaymentCalc: '0x23Cb9052b6D80879f98119A04D3dC6b6Af38a07a',
StakeLockerFactory: '0x81f2A2E2916acfB7C51Ee0A2891b6e3D9c8FdfFc',
USDC: '0x0b5A5F8C399E7B69b6F2dBB1B778905712d32e3A',
UniswapV2Router02: '0x1111111111111111111111111111111111111111',
Util: '0x39F54C898292848EB0BBa738e56cF22baf6Ff801',
WBTC: '0x1893bC3e3bb1406fd5532bb5Bd6AB3660F085c91',
WETH9: '0x684d113887DDea41d9c82ad7b6C1fd2EcF9eC3FE',
WithdrawalManager: '0x0000000000000000000000000000000000000000',
WithdrawalManagerFactory: '0x0000000000000000000000000000000000000000',
WithdrawalManagerInitializer: '0x0000000000000000000000000000000000000000',
xMPL: '0x0000000000000000000000000000000000000000',
manifest: { network: 'goerli', blockheight: 0, date: '2022-10-12' }
}
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import * as withdrawalManagerImports from './typechain/withdrawalManager'
import * as environmentMocksImports from './typechain/environmentMocks'

// Addresses
import goerliAddresses from './addresses/goerli'
import goerliDevAddresses from './addresses/goerli-dev'
import rinkebyAddresses from './addresses/rinkeby'
import rinkebyDevAddresses from './addresses/rinkeby-dev'
Expand Down Expand Up @@ -184,7 +185,7 @@ type MapleAddressMapping = {
}

const addresses: Record<string, MapleAddressMapping> = {
goerli: goerliDevAddresses, // TODO - deploy goerli-prod
goerli: goerliAddresses,
'goerli-dev': goerliDevAddresses,
rinkeby: rinkebyAddresses,
'rinkeby-dev': rinkebyDevAddresses,
Expand Down