Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberhorsey committed May 8, 2023
1 parent 934015b commit 100658b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
14 changes: 7 additions & 7 deletions packages/protocol/test/genesis/GenerateGenesis.g.sol
Original file line number Diff line number Diff line change
Expand Up @@ -56,18 +56,18 @@ contract TestGenerateGenesis is Test, AddressResolver {

function testAddressManager() public {
AddressManager addressManager = AddressManager(
getPredeployedContractAddress("ProxiedAddressManager")
getPredeployedContractAddress("AddressManagerProxy")
);

assertEq(owner, addressManager.owner());

checkSavedAddress(addressManager, "ProxiedBridge", "bridge");
checkSavedAddress(addressManager, "ProxiedTokenVault", "token_vault");
checkSavedAddress(addressManager, "ProxiedEtherVault", "ether_vault");
checkSavedAddress(addressManager, "ProxiedTaikoL2", "taiko");
checkSavedAddress(addressManager, "BridgeProxy", "bridge");
checkSavedAddress(addressManager, "TokenVaultProxy", "token_vault");
checkSavedAddress(addressManager, "EtherVaultProxy", "ether_vault");
checkSavedAddress(addressManager, "TaikoL2Proxy", "taiko");
checkSavedAddress(
addressManager,
"ProxiedSignalService",
"SignalServiceProxy",
"signal_service"
);
}
Expand Down Expand Up @@ -156,7 +156,7 @@ contract TestGenerateGenesis is Test, AddressResolver {

function testTokenVault() public {
address tokenVaultAddress = getPredeployedContractAddress(
"ProxiedTokenVault"
"TokenVaultProxy"
);
address bridgeAddress = getPredeployedContractAddress("BridgeProxy");

Expand Down
20 changes: 10 additions & 10 deletions packages/protocol/utils/generate_genesis/taikoL2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -270,19 +270,19 @@ async function generateContractConfigs(
[chainId]: {
[ethers.utils.hexlify(
ethers.utils.toUtf8Bytes("taiko")
)]: addressMap.ProxiedTaikoL2,
)]: addressMap.TaikoL2Proxy,
[ethers.utils.hexlify(
ethers.utils.toUtf8Bytes("bridge")
)]: addressMap.ProxiedBridge,
)]: addressMap.BridgeProxy,
[ethers.utils.hexlify(
ethers.utils.toUtf8Bytes("token_vault")
)]: addressMap.ProxiedTokenVault,
)]: addressMap.TokenVaultProxy,
[ethers.utils.hexlify(
ethers.utils.toUtf8Bytes("ether_vault")
)]: addressMap.ProxiedEtherVault,
)]: addressMap.EtherVaultProxy,
[ethers.utils.hexlify(
ethers.utils.toUtf8Bytes("signal_service")
)]: addressMap.ProxiedSignalService,
)]: addressMap.SignalServiceProxy,
},
},
},
Expand Down Expand Up @@ -353,7 +353,7 @@ async function generateContractConfigs(
// OwnableUpgradeable
_owner: contractOwner,
// AddressResolver
_addressManager: addressMap.ProxiedAddressManager,
_addressManager: addressMap.AddressManagerProxy,
// Bridge
_state: {},
},
Expand Down Expand Up @@ -381,7 +381,7 @@ async function generateContractConfigs(
// OwnableUpgradeable
_owner: contractOwner,
// AddressResolver
_addressManager: addressMap.ProxiedAddressManager,
_addressManager: addressMap.AddressManagerProxy,
},
},
TokenVaultProxy: {
Expand All @@ -407,10 +407,10 @@ async function generateContractConfigs(
// OwnableUpgradeable
_owner: contractOwner,
// AddressResolver
_addressManager: addressMap.ProxiedAddressManager,
_addressManager: addressMap.AddressManagerProxy,
// EtherVault
// Authorize L2 bridge
_authorizedAddrs: { [`${addressMap.ProxiedBridge}`]: true },
_authorizedAddrs: { [`${addressMap.BridgeProxy}`]: true },
},
},
EtherVaultProxy: {
Expand Down Expand Up @@ -438,7 +438,7 @@ async function generateContractConfigs(
// OwnableUpgradeable
_owner: contractOwner,
// AddressResolver
_addressManager: addressMap.ProxiedAddressManager,
_addressManager: addressMap.AddressManagerProxy,
},
},
SignalServiceProxy: {
Expand Down

0 comments on commit 100658b

Please sign in to comment.