Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ListingConfiguratorPresetFactoryAdapter

Hierarchy

  • Adapter
    • ListingConfiguratorPresetFactoryAdapter

Index

Constructors

Properties

addressTranslator: AddressTranslator
contractResolver: ContractResolver

Methods

  • accountIdToAddress(accountId: AccountId): string
  • Parameters

    • accountId: AccountId

    Returns string

  • addPreset(presetId: BytesLike, implementation: AccountId): Promise<ContractTransaction>
  • 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

  • deployPreset(presetId: BytesLike, initData: BytesLike): Promise<ContractTransaction>
  • Deploys a new listing configurator from the given preset.

    Parameters

    • presetId: BytesLike

      Preset ID (to deploy from).

    • initData: BytesLike

      Initialization payload.

    Returns Promise<ContractTransaction>

  • disablePreset(presetId: BytesLike): Promise<ContractTransaction>
  • enablePreset(presetId: BytesLike): 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 }>

  • findListingConfiguratorByDeploymentTransaction(transactionHash: string): Promise<undefined | AccountId>
  • getChainId(): Promise<ChainId>
  • Returns Promise<ChainId>

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

    • Optional accountId: AccountId

    Returns undefined | string

  • presetEnabled(presetId: BytesLike): Promise<boolean>
  • removePreset(presetId: BytesLike): Promise<ContractTransaction>

Generated using TypeDoc