Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Adapter
    • RentingWizardAdapterV1

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

  • decodeAgreementTerms(params: AgreementTermsStruct): AgreementTerms
  • Parameters

    • params: AgreementTermsStruct

    Returns AgreementTerms

  • decodeAsset(asset: AssetStructOutput): Asset
  • Parameters

    • asset: AssetStructOutput

    Returns Asset

  • delegatedRent(params: RentingParams, delegatedRentSignature: BytesLike): Promise<ContractTransaction>
  • Performs renting operation (delegated).

    Parameters

    • params: RentingParams

      Renting parameters.

    • delegatedRentSignature: BytesLike

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

  • estimateDelegatedRent(params: RentingParams, delegatedRentSignature: BytesLike): Promise<BigNumber>
  • Estimates the gas amount needed for performing renting operation (delegated).

    Parameters

    • params: RentingParams

      Renting parameters.

    • delegatedRentSignature: BytesLike

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

    Returns Promise<BigNumber>

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

  • getDelegatedRentCurrentNonce(renter: AccountId): Promise<BigNumber>
  • Get the current nonce of renter for delegated rent.

    Parameters

    • renter: AccountId

      Renter account ID.

    Returns Promise<BigNumber>

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

    • Optional accountId: AccountId

    Returns undefined | string

  • verifyDelegatedRentSignature(signer: AccountId, signature: BytesLike, nonce?: BigNumber): Promise<boolean>
  • Verify delegated renting 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