Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Adapter
    • UniverseWizardAdapterV1

Index

Constructors

Properties

addressTranslator: AddressTranslator
contractResolver: ContractResolver

Methods

  • accountIdToAddress(accountId: AccountId): string
  • Parameters

    • accountId: AccountId

    Returns string

  • addressToAccountId(address: string): AccountId
  • Parameters

    • address: string

    Returns AccountId

  • addressToAssetType(address: string, namespace: string): AssetType
  • Parameters

    • address: string
    • namespace: string

    Returns AssetType

  • assetIdToAddress(assetId: AssetId): string
  • Parameters

    • assetId: AssetId

    Returns string

  • assetTypeToAddress(assetType: AssetType): string
  • Parameters

    • assetType: AssetType

    Returns string

  • decodeAgreementTerms(params: AgreementTermsStruct): AgreementTerms
  • Parameters

    • params: AgreementTermsStruct

    Returns AgreementTerms

  • decodeAsset(asset: AssetStructOutput): Asset
  • Parameters

    • asset: AssetStructOutput

    Returns Asset

  • encodeAsset(asset: Asset): AssetStruct
  • Parameters

    Returns AssetStruct

  • erc20AssetMetadata(assetType: AssetType): Promise<{ decimals: number; name: string; symbol: string }>
  • Parameters

    • assetType: AssetType

    Returns Promise<{ decimals: number; name: string; symbol: string }>

  • getChainId(): Promise<ChainId>
  • Returns Promise<ChainId>

  • optionalAccountIdToAddress(accountId?: AccountId): undefined | string
  • Parameters

    • Optional accountId: AccountId

    Returns undefined | string

  • setupUniverse(universeParams: UniverseParams): Promise<ContractTransaction>
  • Creates new Universe. This includes minting new universe NFT, where the caller of this method becomes the universe owner.

    Parameters

    Returns Promise<ContractTransaction>

  • setupUniverseAndCreateWarperFromPresetAndRegister(universeParams: UniverseParams, warperTaxTerms: TaxTermsStruct, warperRegistrationParams: WarperRegistrationParamsStruct, warperPresetId: BytesLike, warperInitData: BytesLike): Promise<ContractTransaction>
  • Creates a new Universe, deploys and registers a new Warper.

    Parameters

    • universeParams: UniverseParams

      The universe properties & initial configuration params.

    • warperTaxTerms: TaxTermsStruct

      Warper tax terms.

    • warperRegistrationParams: WarperRegistrationParamsStruct

      Warper registration params.

    • warperPresetId: BytesLike

      Warper preset ID.

    • warperInitData: BytesLike

      Warper init data.

    Returns Promise<ContractTransaction>

  • setupUniverseAndRegisterExistingWarper(universeParams: UniverseParams, warper: AssetType, warperTaxTerms: TaxTermsStruct, warperRegistrationParams: WarperRegistrationParamsStruct): Promise<ContractTransaction>
  • Creates new Universe and registers existing Warper.

    Parameters

    • universeParams: UniverseParams

      The universe properties & initial configuration params.

    • warper: AssetType

      Warper reference.

    • warperTaxTerms: TaxTermsStruct

      Warper tax terms.

    • warperRegistrationParams: WarperRegistrationParamsStruct

      Warper registration params.

    Returns Promise<ContractTransaction>

Generated using TypeDoc