I hereby claim:
- I am caffeinum on github.
- I am caffeinum (https://keybase.io/caffeinum) on keybase.
- I have a public key ASBvoq7v8fAoze8SlVQuWhuYEG2niXFWG3IdSD8o7J7NlQo
To claim this, I am signing this object:
| pragma solidity ^0.4.23; | |
| import './SafeMath.sol'; | |
| contract EthToSmthSwaps { | |
| using SafeMath for uint; | |
| address public owner; | |
| address public ratingContractAddress; |
| 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; |
| pragma solidity ^0.4.23; | |
| contract AtomicSwap { | |
| uint256 SafeTime = 3 hours; // atomic swap timeOut | |
| struct Swap { | |
| bytes32 secret; | |
| bytes32 secretHash; |
| const bitcoin = require('bitcoinjs-lib') // version @3.3.2, ver4 won't work | |
| const request = require('request-promise-native') | |
| const net = process.env.NETWORK === 'testnet' | |
| ? bitcoin.networks.testnet | |
| : bitcoin.networks.bitcoin | |
| const API = net === bitcoin.networks.testnet | |
| ? `https://test-insight.swap.online/insight-api` | |
| : `https://insight.bitpay.com/api` |
I hereby claim:
To claim this, I am signing this object:
| // A. So we have a React component | |
| // B. that is a modal popup | |
| // C. it has two buttons: Apply and Cancel | |
| // D. when you press cancel, it hides itself | |
| // E. when you press Apply, the function callback | |
| // F. that was passed through props, is called | |
| // G. Also, popup can draw inherited HTML fetched from props.children | |
| // H. Bonus question! It looks wrong. | |
| // Please add the dark overlay over background, and make the buttons more in style with the rest of the project |
| // SPDX-License-Identifier: MIT | |
| /** This example code is designed to quickly deploy an example contract using Remix. | |
| * If you have never used Remix, try our example walkthrough: https://docs.chain.link/docs/example-walkthrough | |
| * You will need testnet ETH and LINK. | |
| * - Kovan ETH faucet: https://faucet.kovan.network/ | |
| * - Kovan LINK faucet: https://kovan.chain.link/ | |
| */ | |
| pragma solidity ^0.6.0; |
| // for https://cloudflare-ipfs.com/ipfs/Qmf3ysov9xRpBJwuCwAGmWT99UwGPV3bjoSo2uQEpfPBWK/pictures listing | |
| const LENGTH = 5000 | |
| // MANUALLY select temp1 as a <tbody> OR: | |
| const tbody = document.querySelector('tbody') | |
| const arr = Array(LENGTH + 1).fill(null).reduce((acc, _, index) => [...acc, tbody.children.item(index)], []) | |
| // LENGTH can be longer than the number of elements, so we filter null |
| // SPDX-License-Identifier: MIT | |
| pragma solidity ^0.8.0; | |
| import "../utils/Context.sol"; | |
| /** | |
| * @dev Contract module which provides a basic access control mechanism, where | |
| * there is an account (an owner) that can be granted exclusive access to | |
| * specific functions. |