added: slog stuffs

This commit is contained in:
venuswhispers
2025-01-15 09:11:47 -06:00
parent 6758b29f8c
commit 45a507252e
8 changed files with 115 additions and 190 deletions
File diff suppressed because it is too large Load Diff
+34
View File
@@ -0,0 +1,34 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
/**
███████╗██╗ ██████╗ ██████╗
██╔════╝██║ ██╔═══██╗██╔════╝
███████╗██║ ██║ ██║██║ ███╗
╚════██║██║ ██║ ██║██║ ██║
███████║███████╗╚██████╔╝╚██████╔╝
╚══════╝╚══════╝ ╚═════╝ ╚═════╝
*/
import "../ERC20B.sol";
contract SLOG is ERC20B {
string public constant _name = "Slog";
string public constant _symbol = "SLOG";
constructor() ERC20B(_name, _symbol) {
_mint(msg.sender, 1000000000 * 10 ** decimals());
}
function decimals() public view virtual override returns (uint8) {
return 6;
}
function mint(address account, uint256 amount) public {
_mint(account, amount);
}
function burn(address account, uint256 amount) public {
_burn(account, amount);
}
}
+1
View File
@@ -133,6 +133,7 @@ const config: HardhatUserConfig = {
baseSepolia: process.env.BASESCAN_API_KEY!,
lux: "your API key", // Leave empty if not applicable
luxTestnet: "your API key", // Leave empty if not applicable
zoo: "your API key", // Leave empty if not applicable
// main nets
polygon: process.env.POLYGONSCAN_API_KEY!,
mainnet: process.env.ETHERSCAN_API_KEY!,
+15
View File
@@ -0,0 +1,15 @@
import { ethers } from "hardhat";
async function main() {
/////SLOG
const _signer = await ethers.getContractFactory("SLOG");
const token = await _signer.deploy();
console.log("SLOG address:", await token.getAddress());
}
main()
.then(() => process.exit(0))
.catch((error) => {
console.error(error);
process.exit(1);
});