Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Adapter
    • WarperWizardAdapterV1

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

  • alterWarperTaxTerms(warper: AssetType, newTaxTermsParams: TaxTermsStruct): Promise<ContractTransaction>
  • Change warper tax terms.

    Parameters

    • warper: AssetType

      Warper reference.

    • newTaxTermsParams: TaxTermsStruct

      New warper tax terms params.

    Returns Promise<ContractTransaction>

  • assetIdToAddress(assetId: AssetId): string
  • Parameters

    • assetId: AssetId

    Returns string

  • assetTypeToAddress(assetType: AssetType): string
  • Parameters

    • assetType: AssetType

    Returns string

  • createWarperFromPresetAndRegister(taxTerms: TaxTermsStruct, registrationParams: WarperRegistrationParamsStruct, presetId: BytesLike, initData: BytesLike): Promise<ContractTransaction>
  • Creates and registers a new warper from a preset.

    Parameters

    • taxTerms: TaxTermsStruct

      Warper tax terms.

    • registrationParams: WarperRegistrationParamsStruct

      Warper registration params.

    • presetId: BytesLike

      Name of the warper preset ID.

    • initData: BytesLike

      Warper init data.

    Returns Promise<ContractTransaction>

  • decodeAgreementTerms(params: AgreementTermsStruct): AgreementTerms
  • Parameters

    • params: AgreementTermsStruct

    Returns AgreementTerms

  • decodeAsset(asset: AssetStructOutput): Asset
  • Parameters

    • asset: AssetStructOutput

    Returns Asset

  • deregisterWarper(warper: AssetType): Promise<ContractTransaction>
  • Deletes warper registration information. All current rental agreements with the warper will stay intact, but the new rentals won't be possible.

    Parameters

    • warper: AssetType

      Warper reference.

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

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

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

    • Optional accountId: AccountId

    Returns undefined | string

  • registerExistingWarper(warper: AssetType, taxTerms: TaxTermsStruct, registrationParams: WarperRegistrationParamsStruct): Promise<ContractTransaction>
  • Registers a new warper. The warper must be deployed and configured prior to registration, since it becomes available for renting immediately.

    Parameters

    • warper: AssetType

      Warper reference.

    • taxTerms: TaxTermsStruct

      Warper tax terms.

    • registrationParams: WarperRegistrationParamsStruct

      Warper registration params.

    Returns Promise<ContractTransaction>

Generated using TypeDoc