Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Adapter
    • WarperManagerAdapter

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>

  • isWarperAdmin(warper: AssetType, account: AccountId): Promise<boolean>
  • Checks whether account is the warper admin.

    Parameters

    • warper: AssetType

      Warper reference.

    • account: AccountId

      Admin account ID.

    Returns Promise<boolean>

    True if the account is the admin of the warper and false otherwise.

  • metahub(): Promise<AccountId>
  • optionalAccountIdToAddress(accountId?: AccountId): undefined | string
  • Parameters

    • Optional accountId: AccountId

    Returns undefined | string

  • pauseWarper(warper: AssetType): Promise<ContractTransaction>
  • Puts the warper on pause.

    Parameters

    • warper: AssetType

      Warper reference.

    Returns Promise<ContractTransaction>

  • setWarperController(warpers: AssetType[], controller: AccountId): Promise<ContractTransaction>
  • Sets the new controller address for one or multiple registered warpers.

    Parameters

    • warpers: AssetType[]

      List of warpers.

    • controller: AccountId

      Controller account ID.

    Returns Promise<ContractTransaction>

  • universeAssetWarperCount(universeId: BigNumberish, asset: AssetType): Promise<BigNumber>
  • Returns the number of warpers associated with the particular original asset.

    Parameters

    • universeId: BigNumberish
    • asset: AssetType

      Original asset reference.

    Returns Promise<BigNumber>

    Warper count.

  • universeAssetWarpers(universeId: BigNumberish, asset: AssetType, offset: BigNumberish, limit: BigNumberish): Promise<RegisteredWarper[]>
  • Returns the list of warpers belonging to the particular asset in universe.

    Parameters

    • universeId: BigNumberish

      The universe ID.

    • asset: AssetType

      Original asset reference.

    • offset: BigNumberish

      Starting index.

    • limit: BigNumberish

      Max number of items.

    Returns Promise<RegisteredWarper[]>

  • universeWarperCount(universeId: BigNumberish): Promise<BigNumber>
  • Returns the number of warpers belonging to the particular universe.

    Parameters

    • universeId: BigNumberish

      The universe ID.

    Returns Promise<BigNumber>

    Warper count.

  • universeWarpers(universeId: BigNumberish, offset: BigNumberish, limit: BigNumberish): Promise<RegisteredWarper[]>
  • Returns the list of warpers belonging to the particular universe.

    Parameters

    • universeId: BigNumberish

      The universe ID.

    • offset: BigNumberish

      Starting index.

    • limit: BigNumberish

      Max number of items.

    Returns Promise<RegisteredWarper[]>

  • unpauseWarper(warper: AssetType): Promise<ContractTransaction>
  • Lifts the warper pause.

    Parameters

    • warper: AssetType

      Warper reference.

    Returns Promise<ContractTransaction>

  • warperController(warper: AssetType): Promise<AccountId>
  • Returns warper controller account ID.

    Parameters

    • warper: AssetType

      Warper reference.

    Returns Promise<AccountId>

Generated using TypeDoc