forked from makerdao/optimism-dai-bridge
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request makerdao#9 from OasisDEX/kk/escrow
- Loading branch information
Showing
11 changed files
with
876 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
pragma solidity >0.5.0 <0.8.0; | ||
pragma experimental ABIEncoderV2; | ||
|
||
/** | ||
ONLY PURPOSE OF THIS FILE IS TO FORCE HARDHAT TO COMPILE CONTRACT FROM @eth-optmism/contracts. | ||
*/ | ||
|
||
import { | ||
OVM_L1CrossDomainMessenger | ||
} from '@eth-optimism/contracts/build/contracts/OVM/bridge/messaging/OVM_L1CrossDomainMessenger.sol'; | ||
import { | ||
OVM_L2CrossDomainMessenger | ||
} from '@eth-optimism/contracts/build/contracts/OVM/bridge/messaging/OVM_L2CrossDomainMessenger.sol'; | ||
|
||
contract OVM_L1CrossDomainMessengerLocal is OVM_L1CrossDomainMessenger {} | ||
|
||
contract OVM_L2CrossDomainMessengerLocal is OVM_L2CrossDomainMessenger { | ||
constructor(address _libAddressManager) public OVM_L2CrossDomainMessenger(_libAddressManager) {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { ethers } from 'hardhat' | ||
export const makeHexString = (byte: string, len: number): string => { | ||
return '0x' + byte.repeat(len) | ||
} | ||
|
||
export const makeAddress = (byte: string): string => { | ||
return makeHexString(byte, 20) | ||
} | ||
|
||
export const MAX_UINT256 = ethers.BigNumber.from(2).pow(256).sub(1) | ||
export const ZERO_ADDRESS = makeAddress('00') | ||
export const NON_ZERO_ADDRESS = makeAddress('11') | ||
|
||
export function q18(n: number) { | ||
return ethers.BigNumber.from(10).pow(18).mul(n).toString() | ||
} |
Oops, something went wrong.