Skip to content

Commit

Permalink
Free minters (#251)
Browse files Browse the repository at this point in the history
* ONLY_FREE_MINTERS

* Updates readme with free minter addresses

* Deploy script fix

* Removes paid minter addresses

* Missing interfaceIds

* Apply suggestions from code review

Co-authored-by: Vignesh Hirudayakanth <vigneshkanth@gmail.com>
  • Loading branch information
gigamesh and vigneshka committed Sep 21, 2022
1 parent 2bf6e58 commit 7c16c80
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 14 deletions.
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,15 @@ Sound Protocol is a generalized platform for flexible and efficient creation of

## Deployments

Deployed on goerli & mainnet:
Permissionless zero-fee deployments on Goerli testnet and Mainnet:

| Contract | Address |
|---|---|
| `SoundFeeRegistry` | 0x8f921211c9771baeb648ac7becb322a540298a4b |
| `GoldenEggMetadata` | 0x3ca50e8da8c3d359fc934aea0161f5346ccb62a1
| `FixedPriceSignatureMinter` | 0xc47306699611fc4c84744dcd7f458938b829506a
| `MerkleDropMinter` | 0xeae422887230c0ffb91fd8f708f5fdd354c92f2f
| `RangeEditionMinter` | 0x65c25fadd9b88df5c8c101a3b99a5d614b708596
| `EditionMaxMinter` | 0xb1e015816c823f556d1eb921042bb09ed41db8a7
| `FixedPriceSignatureMinter` | 0xc8ae7e42e834bc11c906d01726e55571a0620158
| `MerkleDropMinter` | 0xda4b6fbb85918700e5ee91f6ce3cc2148af02912
| `RangeEditionMinter` | 0x4552f8b70a72a8ea1084bf7b7ba50f10f2f9daa7
| `EditionMaxMinter` | 0x5e5d50ea70c9a1b6ed64506f121b094156b8fd20
| `SoundEditionV1` | 0x8cfbfae570d673864cd61e1e4543eb7874ca35c2
| `SoundCreatorV1` | 0xaef3e8c8723d9c31863be8de54df2668ef7c4b89

Expand Down
20 changes: 12 additions & 8 deletions script/solidity/Deploy.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,29 @@ import { RangeEditionMinter } from "@modules/RangeEditionMinter.sol";
import { EditionMaxMinter } from "@modules/EditionMaxMinter.sol";

contract Deploy is Script {
uint16 private constant PLATFORM_FEE_BPS = 500;
address OWNER = vm.envAddress("OWNER");
bool private ONLY_MINTERS = vm.envBool("ONLY_MINTERS");
uint16 private PLATFORM_FEE_BPS = uint16(vm.envUint("PLATFORM_FEE_BPS"));
address private OWNER = vm.envAddress("OWNER");

function run() external {
vm.startBroadcast();

// Deploy the SoundFeeRegistry
// Deploy registry and transfer ownership to given owner
SoundFeeRegistry soundFeeRegistry = new SoundFeeRegistry(OWNER, PLATFORM_FEE_BPS);

// Make the gnosis safe the owner of SoundFeeRegistry
soundFeeRegistry.transferOwnership(OWNER);

// Deploy modules
new GoldenEggMetadata();

// Deploy minter modules
new FixedPriceSignatureMinter(soundFeeRegistry);
new MerkleDropMinter(soundFeeRegistry);
new RangeEditionMinter(soundFeeRegistry);
new EditionMaxMinter(soundFeeRegistry);

// If only deploying minters, we're done.
if (ONLY_MINTERS) return;

// Deploy golden egg module
new GoldenEggMetadata();

// Deploy edition implementation (& initialize it for security)
SoundEditionV1 editionImplementation = new SoundEditionV1();
editionImplementation.initialize(
Expand Down

0 comments on commit 7c16c80

Please sign in to comment.