Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Adapter
    • ListingWizardAdapterV1

Index

Constructors

Properties

addressTranslator: AddressTranslator
contractResolver: ContractResolver

Methods

  • DOMAIN_SEPARATOR(): Promise<string>
  • Returns the domain separator used in the encoding of the signature for permit, as defined by EIP712.

    Returns Promise<string>

  • 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

  • createListingWithTerms(universeId: BigNumberish, assetListingParams: AssetListingParams, listingTerms: ListingTermsStruct): Promise<ContractTransaction>
  • Creates new asset listing.

    Parameters

    • universeId: BigNumberish

      Universe ID.

    • assetListingParams: AssetListingParams

      Listing params.

    • listingTerms: ListingTermsStruct

      Listing terms.

    Returns Promise<ContractTransaction>

  • decodeAgreementTerms(params: AgreementTermsStruct): AgreementTerms
  • Parameters

    • params: AgreementTermsStruct

    Returns AgreementTerms

  • decodeAsset(asset: AssetStructOutput): Asset
  • Parameters

    • asset: AssetStructOutput

    Returns Asset

  • delegatedCreateListingWithTerms(universeId: BigNumberish, assetListingParams: AssetListingParams, listingTerms: ListingTermsStruct, delegatedListingSignature: BytesLike): Promise<ContractTransaction>
  • Creates new asset listing (delegated).

    Parameters

    • universeId: BigNumberish

      Universe ID.

    • assetListingParams: AssetListingParams

      Listing params.

    • listingTerms: ListingTermsStruct

      Listing terms.

    • delegatedListingSignature: BytesLike

      Delegated Listing ECDSA signature ABI encoded (v,r,s)(uint8, bytes32, bytes32).

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

  • estimateCreateListingWithTerms(universeId: BigNumberish, assetListingParams: AssetListingParams, listingTerms: ListingTermsStruct): Promise<BigNumber>
  • Estimates the gas amount needed for creating new asset listing.

    Parameters

    • universeId: BigNumberish

      Universe ID.

    • assetListingParams: AssetListingParams

      Listing params.

    • listingTerms: ListingTermsStruct

      Listing terms.

    Returns Promise<BigNumber>

  • estimateDelegatedCreateListingWithTerms(universeId: BigNumberish, assetListingParams: AssetListingParams, listingTerms: ListingTermsStruct, delegatedListingSignature: BytesLike): Promise<BigNumber>
  • Estimates the gas amount needed for creating new asset listing (delegated).

    Parameters

    • universeId: BigNumberish

      Universe ID.

    • assetListingParams: AssetListingParams

      Listing params.

    • listingTerms: ListingTermsStruct

      Listing terms.

    • delegatedListingSignature: BytesLike

      Delegated Listing ECDSA signature ABI encoded (v,r,s)(uint8, bytes32, bytes32).

    Returns Promise<BigNumber>

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

  • getDelegatedListingCurrentNonce(lister: AccountId): Promise<BigNumber>
  • Get the current nonce of lister for delegated listing.

    Parameters

    • lister: AccountId

      Lister account ID.

    Returns Promise<BigNumber>

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

    • Optional accountId: AccountId

    Returns undefined | string

  • verifyDelegatedListingSignature(signer: AccountId, signature: BytesLike, nonce?: BigNumber): Promise<boolean>
  • Verify delegated listing signature.

    Parameters

    • signer: AccountId

      Signers account ID.

    • signature: BytesLike

      Typed data signature (EIP712).

    • Optional nonce: BigNumber

    Returns Promise<boolean>

    True if signature is valid.

Generated using TypeDoc