- Make a new project on Overleaf.
- In the share menu, copy the link from "Clone with git"
- On your computer:
- use
cd
to navigate to where you want to put your project
- use
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
pragma solidity ^0.4.16; | |
contract Token { | |
bytes32 public standard; | |
bytes32 public name; | |
bytes32 public symbol; | |
uint256 public totalSupply; | |
uint8 public decimals; | |
bool public allowTransactions; | |
mapping (address => uint256) public balanceOf; |
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
pragma solidity >=0.6.0 <0.8.0; | |
contract Token { | |
} |
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
pragma solidity >=0.6.0 <0.8.0; | |
contract Token { | |
mapping (address => uint256) private _balances; | |
uint256 private _totalSupply; | |
string private _name; |
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
pragma solidity >=0.6.0 <0.8.0; | |
// SPDX-License-Identifier: MIT" | |
contract Token { | |
mapping (address => uint256) private _balances; | |
uint256 private _totalSupply; | |
string private _name; | |
string private _symbol; | |
uint256 private _decimals; | |
uint256 private theTotalSupply; | |
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
/** | |
* @title CrosschainLoans | |
* @author BlitsLabs (www.blits.net) | |
*/ | |
pragma solidity 0.6.0; | |
interface ERC20 { | |
/** | |
* @dev Returns the amount of tokens in existence. |
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
/** | |
* @title CrosschainLoans | |
* @author BlitsLabs (www.blits.net) | |
*/ | |
pragma solidity 0.6.0; | |
interface ERC20 { | |
/** | |
* @dev Returns the amount of tokens in existence. |
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
pragma solidity ^0.5.10; | |
import './InterestRateModel.sol'; | |
contract DAIInterestRateModel is IInterestRateModel { | |
using SafeMath for uint256; | |
bool public isInterestRateModel = true; | |
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
pragma solidity ^0.5.10; | |
import './InterestRateModel.sol'; | |
contract DAIInterestRateModel is IInterestRateModel { | |
using SafeMath for uint256; | |
bool public isInterestRateModel = true; | |
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
pragma solidity ^0.5.10; | |
import './InterestRateModel.sol'; | |
contract DAIInterestRateModel is IInterestRateModel { | |
using SafeMath for uint256; | |
bool public isInterestRateModel = true; | |