-
Notifications
You must be signed in to change notification settings - Fork 32
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
0c29ae2
commit 3e3985b
Showing
8 changed files
with
5,532 additions
and
1 deletion.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Submodule solady
updated
54 files
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.16; | ||
|
||
import "./TestPlus.sol"; | ||
import { SoundCreatorV1 } from "@core/SoundCreatorV1.sol"; | ||
import { ISoundEditionV2_1, SoundEditionV2_1 } from "@core/SoundEditionV2_1.sol"; | ||
|
||
contract TestConfigV2 is TestPlus { | ||
uint256 internal _salt; | ||
|
||
SoundCreatorV1 soundCreator; | ||
|
||
function setUp() public virtual { | ||
soundCreator = new SoundCreatorV1(address(new SoundEditionV2_1())); | ||
} | ||
|
||
function createSoundEdition(ISoundEditionV2_1.EditionInitialization memory init) public returns (SoundEditionV2_1) { | ||
bytes memory initData = abi.encodeWithSelector(SoundEditionV2_1.initialize.selector, init); | ||
|
||
address[] memory contracts; | ||
bytes[] memory data; | ||
|
||
soundCreator.createSoundAndMints(bytes32(++_salt), initData, contracts, data); | ||
(address addr, ) = soundCreator.soundEditionAddress(address(this), bytes32(_salt)); | ||
return SoundEditionV2_1(addr); | ||
} | ||
|
||
function genericEditionInitialization() public view returns (ISoundEditionV2_1.EditionInitialization memory init) { | ||
init.fundingRecipient = address(this); | ||
init.tierCreations = new ISoundEditionV2_1.TierCreation[](1); | ||
} | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.