-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #350 from luxfi/feat/bridge2
added: trump and zeekay tokens
- Loading branch information
Showing
6 changed files
with
179 additions
and
0 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.20; | ||
|
||
/** | ||
████████╗██████╗ ██╗ ██╗███╗ ███╗██████╗ | ||
╚══██╔══╝██╔══██╗██║ ██║████╗ ████║██╔══██╗ | ||
██║ ██████╔╝██║ ██║██╔████╔██║██████╔╝ | ||
██║ ██╔══██╗██║ ██║██║╚██╔╝██║██╔═══╝ | ||
██║ ██║ ██║╚██████╔╝██║ ╚═╝ ██║██║ | ||
╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ | ||
*/ | ||
|
||
import "../ERC20B.sol"; | ||
|
||
contract TRUMP is ERC20B { | ||
string public constant _name = "OFFICIAL TRUMP"; | ||
string public constant _symbol = "TRUMP"; | ||
|
||
constructor() ERC20B(_name, _symbol) {} | ||
|
||
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); | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.20; | ||
|
||
/** | ||
███████╗ | ||
╚══███╔╝ | ||
███╔╝ | ||
███╔╝ | ||
███████╗ | ||
╚══════╝ | ||
*/ | ||
|
||
import "../ERC20B.sol"; | ||
|
||
contract Z is ERC20B { | ||
string public constant _name = "Z"; | ||
string public constant _symbol = "Z"; | ||
|
||
constructor() ERC20B(_name, _symbol) {} | ||
|
||
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); | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { ethers } from "hardhat"; | ||
|
||
async function main() { | ||
/////TRUMP | ||
const _signer = await ethers.getContractFactory("TRUMP"); | ||
const token = await _signer.deploy(); | ||
console.log("TRUMP address:", await token.getAddress()); | ||
} | ||
|
||
main() | ||
.then(() => process.exit(0)) | ||
.catch((error) => { | ||
console.error(error); | ||
process.exit(1); | ||
}); |