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
// SPDX-License-Identifier: GPL-3.0-or-later | |
pragma solidity 0.8.6; | |
import {IERC20} from "../../external/interface/IERC20.sol"; | |
/** | |
* @title ERC20Upgrader | |
* @author MirrorXYZ | |
* @notice This contract allows swapping a legacy ERC20 token for an upgraded one. | |
*/ |
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
//SPDX-License-Identifier: GPL-3.0-or-later | |
pragma solidity 0.6.8; | |
pragma experimental ABIEncoderV2; | |
import {ERC721} from "@openzeppelin/contracts/token/ERC721/ERC721.sol"; | |
/** | |
* @title ZoraColdieAuctionReference | |
* @author Graeme (@strangechances) from MirrorXYZ | |
* |
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
//SPDX-License-Identifier: GPL-3.0-or-later | |
pragma solidity 0.6.8; | |
pragma experimental ABIEncoderV2; | |
import {ERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol"; | |
import { | |
ReentrancyGuard | |
} from "@openzeppelin/contracts/utils/ReentrancyGuard.sol"; | |
import {SafeMath} from "@openzeppelin/contracts/math/SafeMath.sol"; |
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
<html> | |
<style type="text/css"> | |
#recent-avatars-container img { | |
width: 64px; | |
height: 64px; | |
margin: 5px; | |
} | |
#cropped-image-preview img { | |
border: 1px solid #ccc; |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<meta | |
name="viewport" | |
content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0" | |
/> | |
<script type="module"> | |
window.process = { env: { NODE_ENV: "development" } }; |
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
export interface Entity { | |
id: string; | |
forSale: boolean, | |
price: number, | |
// A list of components | |
components: Component[], | |
} | |
export interface Component { | |
// STUB. |
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
/********************* | |
* Setup Dharma.js * | |
*********************/ | |
// Instantiate Dharma | |
const dharma = new Dharma(); | |
/***************** | |
* Repay a Loan * | |
*****************/ |
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
/********************* | |
* Setup Dharma.js * | |
*********************/ | |
// Import Dharma from Dharma.js | |
import Dharma from "@dharmaprotocol/dharma.js"; | |
// Import BigNumber.js version 5.0.0, for wrapping numbers before sending to blockchain. | |
import * as BigNumber from "bignumber.js"; | |
// Instantiate Dharma |
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
/********************* | |
* Setup Dharma.js * | |
*********************/ | |
// Import Dharma from Dharma.js | |
import Dharma from "@dharmaprotocol/dharma.js"; | |
// Import BigNumber.js version 5.0.0, which we will use when posting numbers to the blockchain. | |
import * as BigNumber from "bignumber.js"; |
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
/******************** | |
* Setup Dharma.js * | |
*******************/ | |
// Instantiate Dharma | |
const dharma = new Dharma(); | |
/******************** | |
* Mint an ERC721 * | |
*******************/ |
NewerOlder