Skip to content

IWarperWizardV1

IWarperWizardV1

CouldNotDetectWarperTaxTerms

error CouldNotDetectWarperTaxTerms(bytes4 taxStrategyId, uint256 universeId, address warperAddress)

Is thrown when Warper Tax Terms cannot be detected.

Name Type Description
taxStrategyId bytes4 Tax Strategy ID.
universeId uint256 Universe ID.
warperAddress address Warper address.

registerWarper

function registerWarper(address existingWarperAddress, struct ITaxTermsRegistry.TaxTerms universeWarperTaxTerms, struct IWarperManager.WarperRegistrationParams warperRegistrationParams, bytes32 warperPresetId, bytes warperInitData) external returns (address deployedWarperAddress)

Does a registration of Warper. Step 1. deploy Warper from a preset (if no `existingWarperAddress` is provided); Step 2. register deployed Warper; Step 3. define Warper Tax Terms in Universe;

Name Type Description
existingWarperAddress address Already deployed Warper address.
universeWarperTaxTerms struct ITaxTermsRegistry.TaxTerms Tax Terms for Warper in Universe.
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
deployedWarperAddress address Deployed Warper address (new or existing one)

deregisterWarper

function deregisterWarper(address warperAddress) external

Deregisters Warper and removes its Tax Terms.

Name Type Description
warperAddress address address of Warper to deregister.

alterWarperTaxTerms

function alterWarperTaxTerms(address warperAddress, struct ITaxTermsRegistry.TaxTerms newUniverseWarperTaxTerms) external

Alters Warper's Tax Terms.

Name Type Description
warperAddress address address of Warper to alter Tax Terms for.
newUniverseWarperTaxTerms struct ITaxTermsRegistry.TaxTerms New Tax Terms for Warper in Universe.