Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9349b16
commit 24e5ae3
Showing
5 changed files
with
27 additions
and
147 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,12 @@ | ||
// SPDX-License-Identifier: Apache-2.0 | ||
pragma solidity ^0.8.7; | ||
|
||
import "./SoulBoundToken.sol"; | ||
import "./tokens/SBT.sol"; | ||
|
||
contract SoulBoundCreditReport is SoulBoundToken { | ||
contract SoulBoundCreditReport is SBT { | ||
constructor( | ||
address owner, | ||
address soulLinker, | ||
string memory baseTokenURI | ||
) | ||
SoulBoundToken( | ||
owner, | ||
soulLinker, | ||
"Masa Credit Report", | ||
"MCR", | ||
baseTokenURI | ||
) | ||
{} | ||
) SBT(owner, soulLinker, "Masa Credit Report", "MCR", baseTokenURI) {} | ||
} |
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 |
---|---|---|
@@ -1,18 +1,18 @@ | ||
// SPDX-License-Identifier: Apache-2.0 | ||
pragma solidity ^0.8.7; | ||
|
||
import "./SoulBoundToken.sol"; | ||
import "./tokens/SBT.sol"; | ||
|
||
contract SoulBoundIdentity is SoulBoundToken { | ||
contract SoulBoundIdentity is SBT { | ||
constructor( | ||
address owner, | ||
address soulLinker, | ||
string memory baseTokenURI | ||
) SoulBoundToken(owner, soulLinker, "Masa Identity", "MID", baseTokenURI) {} | ||
) SBT(owner, soulLinker, "Masa Identity", "MID", baseTokenURI) {} | ||
|
||
function mint(address to) public override { | ||
function mint(address to) public override returns (uint256) { | ||
require(balanceOf(to) < 1, "Soulbound identity already created!"); | ||
|
||
super.mint(to); | ||
return super.mint(to); | ||
} | ||
} |
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 was deleted.
Oops, something went wrong.
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