Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RegistryV2Adapter<T>

Type parameters

Hierarchy

  • ContractService<T>
    • RegistryV2Adapter

Implements

  • RegistryAdapter

Index

Constructors

  • Type parameters

    • T: 1 | 10 | 250 | 1337 | 42161

    Parameters

    • chainId: T
    • ctx: Context
    • addressProvider: AddressProvider<T>

    Returns RegistryV2Adapter<T>

Properties

addressProvider: AddressProvider<T>
chainId: 1 | 10 | 250 | 1337 | 42161
ctx: Context
events: Emittery<Record<string, unknown>, Record<string, unknown> & OmnipresentEventData, never>
abi: string[] = ...
contractId: ContractAddressId = ContractAddressId.adapter_registry_v2

Accessors

  • get contract(): Promise<WrappedContract>

Methods

  • _getContract(abi: string[], contractId: ContractAddressId, ctx: Context): Promise<WrappedContract>
  • Parameters

    • abi: string[]
    • contractId: ContractAddressId
    • ctx: Context

    Returns Promise<WrappedContract>

  • assetsDynamic(addresses?: string[], overrides?: CallOverrides): Promise<VaultDynamic[]>
  • Get the dynamic part of Vault assets.

    Parameters

    • Optional addresses: string[]

      filter, if not provided all assets are returned

    • overrides: CallOverrides = {}

    Returns Promise<VaultDynamic[]>

    dynamic

  • assetsStatic(addresses?: string[], overrides?: CallOverrides): Promise<VaultStatic[]>
  • Get the static part of Vault assets.

    Parameters

    • Optional addresses: string[]

      filter, if not provided all assets are returned

    • overrides: CallOverrides = {}

    Returns Promise<VaultStatic[]>

    static

  • positionsOf(address: string, addresses?: string[], overrides?: CallOverrides): Promise<Position[]>
  • Get all Vault asset positions for a particular address.

    Parameters

    • address: string
    • Optional addresses: string[]

      filter, if not provided all positions are returned

    • overrides: CallOverrides = {}

    Returns Promise<Position[]>

  • tokens(overrides?: CallOverrides): Promise<string[]>
  • Get all Vault underlying token addresses.

    Parameters

    • overrides: CallOverrides = {}

    Returns Promise<string[]>

Generated using TypeDoc