This file contains hidden or 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
pragma solidity ^0.4.23; | |
contract AtomicSwap { | |
uint256 SafeTime = 3 hours; // atomic swap timeOut | |
struct Swap { | |
bytes32 secret; | |
bytes32 secretHash; |
This file contains hidden or 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
pragma solidity ^0.4.23; | |
// ---------------------------------------------------------------------------- | |
// Safe maths from OpenZeppelin | |
// ---------------------------------------------------------------------------- | |
library SafeMath { | |
function mul(uint256 a, uint256 b) internal pure returns(uint256) { | |
uint256 c = a * b; | |
assert(a == 0 || c / a == b); | |
return c; |
This file contains hidden or 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
pragma solidity ^0.4.23; | |
import './SafeMath.sol'; | |
contract EthToSmthSwaps { | |
using SafeMath for uint; | |
address public owner; | |
address public ratingContractAddress; |
NewerOlder