Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Adapter
    • ListingManagerAdapter

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

  • assetListingCount(asset: AssetType): Promise<BigNumber>
  • Returns the number of currently registered listings for the particular original asset.

    Parameters

    • asset: AssetType

      Original asset reference.

    Returns Promise<BigNumber>

  • assetListings(asset: AssetType, offset: BigNumberish, limit: BigNumberish): Promise<Listing[]>
  • Returns the paginated list of currently registered listings for the particular original asset.

    Parameters

    • asset: AssetType

      Original asset reference.

    • offset: BigNumberish

      Starting index.

    • limit: BigNumberish

      Max number of items.

    Returns Promise<Listing[]>

  • 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

  • disableListing(listingId: BigNumberish): Promise<ContractTransaction>
  • Marks the asset as being delisted. This operation in irreversible. After delisting, the asset can only be withdrawn when it has no active rentals.

    Parameters

    • listingId: BigNumberish

      Listing ID.

    Returns Promise<ContractTransaction>

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

  • findListingByCreationTransaction(transactionHash: string): Promise<null | Listing>
  • findListingIdByCreationTransaction(transactionHash: string): Promise<null | BigNumber>
  • Retrieves the listing ID from creation transaction.

    Parameters

    • transactionHash: string

    Returns Promise<null | BigNumber>

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

  • listing(listingId: BigNumberish): Promise<Listing>
  • listingCount(): Promise<BigNumber>
  • listings(offset: BigNumberish, limit: BigNumberish): Promise<Listing[]>
  • Returns the paginated list of currently registered listings.

    Parameters

    • offset: BigNumberish

      Starting index.

    • limit: BigNumberish

      Max number of items.

    Returns Promise<Listing[]>

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

    • Optional accountId: AccountId

    Returns undefined | string

  • pauseListing(listingId: BigNumberish): Promise<ContractTransaction>
  • Puts the listing on pause.

    Parameters

    • listingId: BigNumberish

      Listing ID.

    Returns Promise<ContractTransaction>

  • unpauseListing(listingId: BigNumberish): Promise<ContractTransaction>
  • userListingCount(lister: AccountId): Promise<BigNumber>
  • Returns the number of currently registered listings for the particular lister account.

    Parameters

    • lister: AccountId

      Lister account ID.

    Returns Promise<BigNumber>

  • userListings(lister: AccountId, offset: BigNumberish, limit: BigNumberish): Promise<Listing[]>
  • Returns the paginated list of currently registered listings for the particular lister account.

    Parameters

    • lister: AccountId

      Lister account ID.

    • offset: BigNumberish

      Starting index.

    • limit: BigNumberish

      Max number of items.

    Returns Promise<Listing[]>

  • withdrawListingAssets(listingId: BigNumberish): Promise<ContractTransaction>
  • Returns the asset back to the lister.

    Parameters

    • listingId: BigNumberish

      Listing ID.

    Returns Promise<ContractTransaction>

Generated using TypeDoc