Skip to content

IUniverseWizardV1

IUniverseWizardV1

setupUniverse

function setupUniverse(struct IUniverseRegistry.UniverseParams universeParams) external returns (uint256 universeId)

Does a setup of universe.

Name Type Description
universeParams struct IUniverseRegistry.UniverseParams Universe registration params.
Name Type Description
universeId uint256 Universe ID.

setupUniverseAndWarper

function setupUniverseAndWarper(struct IUniverseRegistry.UniverseParams universeParams, struct ITaxTermsRegistry.TaxTerms universeWarperTaxTerms, address existingWarperAddress, struct IWarperManager.WarperRegistrationParams warperRegistrationParams, bytes32 warperPresetId, bytes warperInitData) external returns (uint256 universeId, address deployedWarperAddress)

Does a setup of universe. Step 1. create universe; Step 2. deploy warper from a preset (if no `existingWarperAddress` is provided); Step 3. register deployed warper; Step 4. define Warper Tax Terms;

Name Type Description
universeParams struct IUniverseRegistry.UniverseParams Universe registration params.
universeWarperTaxTerms struct ITaxTermsRegistry.TaxTerms Tax terms for Warper in Universe.
existingWarperAddress address Already deployed Warper address.
warperRegistrationParams struct IWarperManager.WarperRegistrationParams Not fully filled (without universeId) Warper registration params.
warperPresetId bytes32 Warper Preset ID.
warperInitData bytes Bytes with Warper constructor params.
Name Type Description
universeId uint256 Universe ID.
deployedWarperAddress address Deployed Warper address (new or existing one).