|
|
|
@ -1,3 +1,5 @@ |
|
|
|
|
import { objMap } from '../../utils/objects'; |
|
|
|
|
|
|
|
|
|
import mainnet from './mainnet.json'; |
|
|
|
|
import test from './test.json'; |
|
|
|
|
import testnet2 from './testnet2.json'; |
|
|
|
@ -7,3 +9,18 @@ export const environments = { |
|
|
|
|
testnet2, |
|
|
|
|
mainnet, |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
// Export developer-relevant addresses
|
|
|
|
|
export const hyperlaneCoreAddresses = objMap( |
|
|
|
|
{ ...testnet2, ...mainnet }, |
|
|
|
|
(_chain, addresses) => ({ |
|
|
|
|
outbox: addresses.outbox.proxy, |
|
|
|
|
connectionManager: addresses.connectionManager, |
|
|
|
|
interchainGasPaymaster: addresses.interchainGasPaymaster.proxy, |
|
|
|
|
inboxes: objMap( |
|
|
|
|
// @ts-ignore
|
|
|
|
|
addresses.inboxes, |
|
|
|
|
(_remoteChain, inboxAddresses) => inboxAddresses.inbox.proxy, |
|
|
|
|
), |
|
|
|
|
}), |
|
|
|
|
); |
|
|
|
|