Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Adapter
    • RentingManagerAdapter

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

  • collectionRentedValue(warpedCollectionId: BytesLike, renter: AccountId): Promise<BigNumber>
  • Returns token amount from specific collection rented by particular account.

    Parameters

    • warpedCollectionId: BytesLike

      Warped collection ID.

    • renter: AccountId

      Renter account ID.

    Returns Promise<BigNumber>

  • 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

  • userRentalAgreements(renter: AccountId, offset: BigNumberish, limit: BigNumberish): Promise<RentalAgreement[]>
  • Returns the paginated list of currently registered rental agreements for particular renter account.

    Parameters

    • renter: AccountId

      Renter account ID.

    • offset: BigNumberish

      Starting index.

    • limit: BigNumberish

      Max number of items.

    Returns Promise<RentalAgreement[]>

  • userRentalCount(renter: AccountId): Promise<BigNumber>
  • Returns the number of currently registered rental agreements for particular renter account.

    Parameters

    • renter: AccountId

      Renter account ID.

    Returns Promise<BigNumber>

    Rental agreement count.

Generated using TypeDoc