Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Adapter
    • ListingTermsRegistryAdapter

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

  • areRegisteredListingTerms(listingTermsId: BigNumberish): Promise<boolean>
  • areRegisteredListingTermsWithParams(listingTermsId: BigNumberish, queryParams: ListingTermsQueryParams): Promise<boolean>
  • 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 }>

  • findListingTermsByCreationTransaction(transactionHash: string): Promise<null | ListingTermsInfo>
  • findListingTermsIdByCreationTransaction(transactionHash: string): Promise<null | BigNumber>
  • getChainId(): Promise<ChainId>
  • Returns Promise<ChainId>

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

    • Optional accountId: AccountId

    Returns undefined | string

  • registerGlobalListingTerms(listingId: BigNumberish, listingTerms: ListingTermsStruct): Promise<ContractTransaction>
  • Registers global listing terms.

    Parameters

    • listingId: BigNumberish

      Listing ID.

    • listingTerms: ListingTermsStruct

      Listing terms.

    Returns Promise<ContractTransaction>

  • registerUniverseListingTerms(listingId: BigNumberish, universeId: BigNumberish, listingTerms: ListingTermsStruct): Promise<ContractTransaction>
  • Registers universe listing terms.

    Parameters

    • listingId: BigNumberish

      Listing ID.

    • universeId: BigNumberish

      Universe ID.

    • listingTerms: ListingTermsStruct

    Returns Promise<ContractTransaction>

  • registerWarperListingTerms(listingId: BigNumberish, warper: AssetType, listingTerms: ListingTermsStruct): Promise<ContractTransaction>
  • Registers warper listing terms.

    Parameters

    • listingId: BigNumberish

      Listing ID.

    • warper: AssetType

      Warper reference.

    • listingTerms: ListingTermsStruct

      Listing terms.

    Returns Promise<ContractTransaction>

  • removeGlobalListingTerms(listingId: BigNumberish, listingTermsId: BigNumberish): Promise<ContractTransaction>
  • Removes global listing terms.

    Parameters

    • listingId: BigNumberish

      Listing ID.

    • listingTermsId: BigNumberish

      Listing Terms ID.

    Returns Promise<ContractTransaction>

  • removeUniverseListingTerms(listingId: BigNumberish, universeId: BigNumberish, listingTermsId: BigNumberish): Promise<ContractTransaction>
  • Removes universe listing terms.

    Parameters

    • listingId: BigNumberish

      Listing ID.

    • universeId: BigNumberish

      Universe ID.

    • listingTermsId: BigNumberish

      Listing Terms ID.

    Returns Promise<ContractTransaction>

  • removeWarperListingTerms(listingId: BigNumberish, warper: AssetType, listingTermsId: BigNumberish): Promise<ContractTransaction>
  • Removes warper listing terms.

    Parameters

    • listingId: BigNumberish

      Listing ID.

    • warper: AssetType

      Warper reference.

    • listingTermsId: BigNumberish

      Listing Terms ID.

    Returns Promise<ContractTransaction>

Generated using TypeDoc