Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Adapter
    • TaxTermsRegistryAdapter

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

  • areRegisteredProtocolGlobalTaxTerms(taxStrategyId: BytesLike): Promise<boolean>
  • Checks registration of protocol global tax terms.

    Parameters

    • taxStrategyId: BytesLike

      Tax strategy ID.

    Returns Promise<boolean>

  • areRegisteredProtocolUniverseTaxTerms(universeId: BigNumberish, taxStrategyId: BytesLike): Promise<boolean>
  • Checks registration of protocol universe tax terms.

    Parameters

    • universeId: BigNumberish

      Universe ID.

    • taxStrategyId: BytesLike

      Tax strategy ID.

    Returns Promise<boolean>

  • areRegisteredProtocolWarperTaxTerms(warper: AssetType, taxStrategyId: BytesLike): Promise<boolean>
  • Checks registration of global protocol warper tax terms.

    Parameters

    • warper: AssetType

      Warper reference.

    • taxStrategyId: BytesLike

      Tax strategy ID.

    Returns Promise<boolean>

  • areRegisteredUniverseLocalTaxTerms(universeId: BigNumberish, taxStrategyId: BytesLike): Promise<boolean>
  • Checks registration of universe local tax terms.

    Parameters

    • universeId: BigNumberish

      Universe ID.

    • taxStrategyId: BytesLike

      Tax strategy ID.

    Returns Promise<boolean>

  • areRegisteredUniverseWarperTaxTerms(universeId: BigNumberish, warper: AssetType, taxStrategyId: BytesLike): Promise<boolean>
  • Checks registration of universe warper tax terms.

    Parameters

    • universeId: BigNumberish

      Universe ID.

    • warper: AssetType

      Warper reference.

    • taxStrategyId: BytesLike

      Tax strategy ID.

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

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

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

    • Optional accountId: AccountId

    Returns undefined | string

  • registerProtocolGlobalTaxTerms(taxTerms: TaxTermsStruct): Promise<ContractTransaction>
  • registerProtocolUniverseTaxTerms(universeId: BigNumberish, taxTerms: TaxTermsStruct): Promise<ContractTransaction>
  • Registers protocol universe tax terms.

    Parameters

    • universeId: BigNumberish

      Universe ID.

    • taxTerms: TaxTermsStruct

      Tax terms.

    Returns Promise<ContractTransaction>

  • registerProtocolWarperTaxTerms(warper: AssetType, taxTerms: TaxTermsStruct): Promise<ContractTransaction>
  • Registers protocol warper tax terms.

    Parameters

    • warper: AssetType

      Warper reference.

    • taxTerms: TaxTermsStruct

      Tax terms.

    Returns Promise<ContractTransaction>

  • registerUniverseLocalTaxTerms(universeId: BigNumberish, taxTerms: TaxTermsStruct): Promise<ContractTransaction>
  • Registers universe local tax terms.

    Parameters

    • universeId: BigNumberish

      Universe ID.

    • taxTerms: TaxTermsStruct

      Tax terms.

    Returns Promise<ContractTransaction>

  • registerUniverseWarperTaxTerms(universeId: BigNumberish, warper: AssetType, taxTerms: TaxTermsStruct): Promise<ContractTransaction>
  • Registers universe warper tax terms.

    Parameters

    • universeId: BigNumberish

      Universe ID.

    • warper: AssetType

      Warper reference.

    • taxTerms: TaxTermsStruct

      Tax terms.

    Returns Promise<ContractTransaction>

  • removeProtocolGlobalTaxTerms(taxStrategyId: BytesLike): Promise<ContractTransaction>
  • Removes protocol global tax terms.

    Parameters

    • taxStrategyId: BytesLike

      Tax strategy ID.

    Returns Promise<ContractTransaction>

  • removeProtocolUniverseTaxTerms(universeId: BigNumberish, taxStrategyId: BytesLike): Promise<ContractTransaction>
  • Removes protocol universe tax terms.

    Parameters

    • universeId: BigNumberish

      Universe ID.

    • taxStrategyId: BytesLike

      Tax strategy ID.

    Returns Promise<ContractTransaction>

  • removeProtocolWarperTaxTerms(warper: AssetType, taxStrategyId: BytesLike): Promise<ContractTransaction>
  • Removes protocol warper tax terms.

    Parameters

    • warper: AssetType

      Warper reference.

    • taxStrategyId: BytesLike

      Tax strategy ID.

    Returns Promise<ContractTransaction>

  • removeUniverseLocalTaxTerms(universeId: BigNumberish, taxStrategyId: BytesLike): Promise<ContractTransaction>
  • Removes universe local tax terms.

    Parameters

    • universeId: BigNumberish

      Universe ID.

    • taxStrategyId: BytesLike

      Tax strategy ID.

    Returns Promise<ContractTransaction>

  • removeUniverseWarperTaxTerms(universeId: BigNumberish, warper: AssetType, taxStrategyId: BytesLike): Promise<ContractTransaction>
  • Removes universe warper tax terms.

    Parameters

    • universeId: BigNumberish

      Universe ID.

    • warper: AssetType

      Warper reference.

    • taxStrategyId: BytesLike

      Tax strategy ID.

    Returns Promise<ContractTransaction>

Generated using TypeDoc