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
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.0; | |
import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; | |
import "@openzeppelin/contracts/utils/math/SafeMath.sol"; | |
contract TaxableToken is ERC20 { | |
using SafeMath for uint256; | |
uint256 private constant TOKEN_DECIMALS = 18; |
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
const constants = { | |
minecraftVersionManifest: | |
"https://launchermeta.mojang.com/mc/game/version_manifest_v2.json", | |
forgeVersionMeta: | |
"https://maven.minecraftforge.net/net/minecraftforge/forge/maven-metadata.xml", | |
fabricLoaderVersions: "https://meta.fabricmc.net/v2/versions/loader", | |
fabricSupportedVersions: "https://meta.fabricmc.net/v2/versions/game", | |
}; | |
export default constants; |
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
from mako.lookup import TemplateLookup | |
class View: | |
def __init__(self): | |
self.lookup = TemplateLookup('./templates') | |
def index(self, data): | |
template = self.lookup.get_template('index.mako') | |
return template.render(**data) |