Skip to content

Commit

Permalink
nft text
Browse files Browse the repository at this point in the history
  • Loading branch information
mejango committed Jun 22, 2023
1 parent 16d7872 commit b3ba616
Show file tree
Hide file tree
Showing 12 changed files with 13,035 additions and 12,879 deletions.
12 changes: 9 additions & 3 deletions contracts/DefifaTokenUriResolver.sol
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,15 @@ contract DefifaTokenUriResolver is IDefifaTokenUriResolver, IJB721TokenUriResolv
uint256 _totalMinted = _tier.initialQuantity - _tier.remainingQuantity;

if (_gamePhase == DefifaGamePhase.MINT) {
_rarityText = string(abi.encodePacked(_totalMinted.toString(), " minted so far"));
_rarityText = string(
abi.encodePacked(_totalMinted.toString(), _totalMinted == 1 ? " card so far" : " cards so far")
);
} else {
_rarityText = string(abi.encodePacked(_totalMinted.toString(), " in existence"));
_rarityText = string(
abi.encodePacked(
_totalMinted.toString(), _totalMinted == 1 ? " card in existence" : " cards in existence"
)
);
}

if (_gamePhase == DefifaGamePhase.SCORING || _gamePhase == DefifaGamePhase.COMPLETE) {
Expand Down Expand Up @@ -175,7 +181,7 @@ contract DefifaTokenUriResolver is IDefifaTokenUriResolver, IJB721TokenUriResolv
_gameId.toString(),
" | POT: ",
_potText,
" | MINTS: ",
" | CARDS: ",
_delegate.store().totalSupplyOf(address(_delegate)).toString(),
"</text>",
'<text x="10" y="50" style="font-size:16px; font-family: Capsules-500; font-weight:500; fill: #ed017c;">',
Expand Down
7,162 changes: 3,581 additions & 3,581 deletions out/DefifaDelegate.sol/DefifaDelegate.json

Large diffs are not rendered by default.

2,640 changes: 1,320 additions & 1,320 deletions out/DefifaDeployer.sol/DefifaDeployer.json

Large diffs are not rendered by default.

788 changes: 394 additions & 394 deletions out/DefifaGovernor.sol/DefifaGovernor.json

Large diffs are not rendered by default.

Loading

0 comments on commit b3ba616

Please sign in to comment.