mirror of
https://github.com/luxfi/bridge.git
synced 2026-09-24 00:26:46 +00:00
added: slog stuffs
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -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);
|
||||
}
|
||||
}
|
||||
@@ -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!,
|
||||
|
||||
@@ -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);
|
||||
});
|
||||
Reference in New Issue
Block a user