Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Adapter
    • UniverseRegistryAdapter

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 }>

  • findUniverseByCreationTransaction(transactionHash: string): Promise<undefined | UniverseInfo>
  • getChainId(): Promise<ChainId>
  • Returns Promise<ChainId>

  • isUniverseOwner(universeId: BigNumberish, accountId: AccountId): Promise<boolean>
  • Returns true if the universe owner is the supplied account address.

    Parameters

    • universeId: BigNumberish

      The universe ID.

    • accountId: AccountId

      The expected owner account.

    Returns Promise<boolean>

  • isUniverseWizard(contract: AccountId): Promise<boolean>
  • optionalAccountIdToAddress(accountId?: AccountId): undefined | string
  • Parameters

    • Optional accountId: AccountId

    Returns undefined | string

  • registerUniversePaymentToken(universeId: BigNumberish, paymentToken: AccountId): Promise<ContractTransaction>
  • Registers new payment token for universe.

    Parameters

    • universeId: BigNumberish

      Universe ID.

    • paymentToken: AccountId

      Payment token.

    Returns Promise<ContractTransaction>

  • removeUniversePaymentToken(universeId: BigNumberish, paymentToken: AccountId): Promise<ContractTransaction>
  • Removes payment token from universe.

    Parameters

    • universeId: BigNumberish

      Universe ID.

    • paymentToken: AccountId

      Payment token.

    Returns Promise<ContractTransaction>

  • setUniverseName(universeId: BigNumberish, name: string): Promise<ContractTransaction>
  • Updates the universe name.

    Parameters

    • universeId: BigNumberish

      The universe ID.

    • name: string

      The universe name to set.

    Returns Promise<ContractTransaction>

  • setUniverseTokenBaseURI(baseURI: string): Promise<ContractTransaction>
  • universeInfo(universeId: BigNumberish): Promise<UniverseInfo>
  • universeToken(): Promise<AssetType>
  • universeTokenBaseURI(): Promise<string>

Generated using TypeDoc