-
Notifications
You must be signed in to change notification settings - Fork 0
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 #122 from open-format/feature/ERC721-badge-contract
Feature: ERC721 badge contract
- Loading branch information
Showing
13 changed files
with
1,031 additions
and
19 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@openformat/contracts": minor | ||
--- | ||
|
||
added ERC721Badge contract, updated ERC721FactoryFacet to add tokenURI on initialize |
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,27 @@ | ||
// SPDX-License-Identifier: BUSL-1.1 | ||
pragma solidity ^0.8.16; | ||
|
||
import "forge-std/Script.sol"; | ||
import {Utils} from "scripts/utils/Utils.sol"; | ||
import {ERC721Badge} from "src/tokens/ERC721/ERC721Badge.sol"; | ||
import {Globals} from "src/globals/Globals.sol"; | ||
|
||
string constant CONTRACT_NAME = "ERC721Badge"; | ||
bytes32 constant implementationId = "Badge"; | ||
|
||
contract Deploy is Script, Utils { | ||
function run() external { | ||
uint256 deployerPrivateKey = vm.envUint("PRIVATE_KEY"); | ||
vm.startBroadcast(deployerPrivateKey); | ||
|
||
// deploy | ||
ERC721Badge erc721Badge = new ERC721Badge(false); | ||
|
||
// add to globals | ||
Globals(getContractDeploymentAddress("Globals")).setERC721Implementation(implementationId, address(erc721Badge)); | ||
|
||
vm.stopBroadcast(); | ||
|
||
exportContractDeployment(CONTRACT_NAME, address(erc721Badge), block.number); | ||
} | ||
} |
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
Oops, something went wrong.