Skip to content

Commit

Permalink
Additional updates for mainnet3
Browse files Browse the repository at this point in the history
  • Loading branch information
yorhodes committed Oct 24, 2023
1 parent 00086a0 commit 31b306c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion typescript/infra/config/environments/mainnet3/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export const core: ChainMap<CoreConfig> = objMap(owners, (local, owner) => {
const requiredHook: ProtocolFeeHookConfig = {
type: HookType.PROTOCOL_FEE,
maxProtocolFee: ethers.utils.parseUnits('1', 'gwei'), // 1 gwei of native token
protocolFee: BigNumber.from(1), // 1 wei
protocolFee: BigNumber.from(0), // 0 wei
beneficiary: owner,
owner,
};
Expand Down
10 changes: 8 additions & 2 deletions typescript/infra/config/environments/mainnet3/owners.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ChainMap } from '@hyperlane-xyz/sdk';
import { Address } from '@hyperlane-xyz/utils';
import { Address, objMap } from '@hyperlane-xyz/utils';

export const owners: ChainMap<Address> = {
const safes: ChainMap<Address> = {
celo: '0x1DE69322B55AC7E0999F8e7738a1428C8b130E4d',
ethereum: '0x12C5AB61Fe17dF9c65739DBa73dF294708f78d23',
avalanche: '0xDF9B28B76877f1b1B4B8a11526Eb7D8D7C49f4f3',
Expand All @@ -13,3 +13,9 @@ export const owners: ChainMap<Address> = {
gnosis: '0x36b0AA0e7d04e7b825D7E409FEa3c9A3d57E4C22',
solana: 'EzppBFV2taxWw8kEjxNYvby6q7W1biJEqwP3iC7YgRe3',
};

// export const owners = safes;

// temporarily keep ownership on deployer key
const deployer = '0xa7ECcdb9Be08178f896c26b7BbD8C3D4E844d9Ba';
export const owners = objMap(safes, (_, __) => deployer);
2 changes: 1 addition & 1 deletion typescript/infra/fork.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ fi
if [ "$ENVIRONMENT" == "testnet3" ]; then
FORK_CHAIN="goerli"
RPC_URL="https://goerli.infura.io/v3/9aa3d95b3bc440fa88ea12eaa4456161"
elif [ "$ENVIRONMENT" == "mainnet2" ]; then
elif [ "$ENVIRONMENT" == "mainnet3" ]; then
FORK_CHAIN="arbitrum"
RPC_URL="https://rpc.ankr.com/arbitrum"
else
Expand Down

0 comments on commit 31b306c

Please sign in to comment.