Skip to content

Commit

Permalink
Deploy Protocolink contracts to Polygon zkEVM Chain
Browse files Browse the repository at this point in the history
  • Loading branch information
zodahu committed Jul 24, 2024
1 parent 8ca8dd5 commit bb09d5d
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions script/DeployPolygonZkevm.s.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import {DeployRouter} from './DeployRouter.s.sol';

contract DeployPolygonZkevm is DeployRouter {
address public constant DEPLOYER = 0xBcb909975715DC8fDe643EE44b89e3FD6A35A259;
address public constant OWNER = 0xbdb7b12B5D87bc041DB0a21bFCDA22516d378531;
address public constant PAUSER = 0x2A57fA8Ec5681a7A96f6070ee360BfD85dFC5bd4;
address public constant DEFAULT_COLLECTOR = 0xFB20753f85f89be6F42D228667D70e62D1Ba5f75;
address public constant CREATE3_FACTORY = 0xFa3e9a110E6975ec868E9ed72ac6034eE4255B64;

/// @notice Set up deploy parameters and deploy contracts whose `deployedAddress` equals `UNDEPLOYED`.
function setUp() external {
routerConfig = RouterConfig({
deployedAddress: 0xDec80E988F4baF43be69c13711453013c212feA8,
wrappedNative: 0x4F9A0e7FD2Bf6067db6994CF12E4495Df938E6e9,
permit2: 0x000000000022D473030F116dDEE9F6B43aC78BA3,
deployer: DEPLOYER,
owner: OWNER,
pauser: PAUSER,
defaultCollector: DEFAULT_COLLECTOR,
signer: 0xffFf5a88840FF1f168E163ACD771DFb292164cFA,
feeRate: 20
});
}

function _run() internal override {
// router
_deployRouter(CREATE3_FACTORY);
}
}

0 comments on commit bb09d5d

Please sign in to comment.