Skip to content

GeneralGuildWizardV1

GeneralGuildWizardV1

_dacContract

contract IDelegatedAccessControl _dacContract

DAC contract instance.

onlyCallerIsLister

modifier onlyCallerIsLister(struct Listings.Params params)

constructor

constructor(address dac, address metahub) public

listWithTermsForUniverse

function listWithTermsForUniverse(contract GeneralGuildPreset preset, struct Assets.Asset[] assets, struct Listings.Params params, uint32 maxLockPeriod, bool immediatePayout, uint256 universeId, struct IGeneralGuildWizardV1.ListingTermsPack[] terms) external

Creates new listing and fill in listing terms on universe level. Emits an {ListingCreated, UniverseListingTermsRegistered} events.

Name Type Description
preset contract GeneralGuildPreset General Guild Preset based Listing Configurator.
assets struct Assets.Asset[] Assets to be listed.
params struct Listings.Params Listing params.
maxLockPeriod uint32 The maximum amount of time the original asset owner can wait before getting the asset back.
immediatePayout bool Indicates whether the rental fee must be transferred to the lister on every renting. * If FALSE, the rental fees get accumulated until withdrawn manually.
universeId uint256 Universe ID.
terms struct IGeneralGuildWizardV1.ListingTermsPack[] Listing terms on universe level. * Makes possible to run this {assets} only within this universe.

contractKey

function contractKey() external pure returns (bytes4)

Returns implemented contract key.

Name Type Description
[0] bytes4 Contract key;

supportsInterface

function supportsInterface(bytes4 interfaceId) public view returns (bool)

_Returns true if this contract implements the interface defined by `interfaceId`. See the corresponding https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] to learn more about how these ids are created.

This function call must use less than 30 000 gas._

_dac

function _dac() internal view virtual returns (contract IDelegatedAccessControl)