Interface IRegistryModule

interface IRegistryModule {
    getCatalystCrosschainInterface(address, version, options?): Promise<string>;
    getCatalystVaultDescriber(address, options?): Promise<string>;
    getCatalystVaultFactory(address, options?): Promise<string>;
    getCatalystVaultTemplate(address, vaultType, options?): Promise<string>;
    getDeployBlock(address): Promise<number>;
    getDescriberVersion(address, options?): Promise<string>;
    getVaultDescriber(address, version, options?): Promise<string>;
    getVaultDescribers(address, options?): Promise<string[]>;
    hasCatalystDeployment(address, options?): Promise<boolean>;
}

Methods

  • Get the current version Catalyst cross chain interface.

    Parameters

    • address: string

      address to check for registry

    • version: CCIVersion

      The Catalyst version. Is 1 indexed.

    • Optional options: TransactionOptions

      transaction modification options

    Returns Promise<string>

    current version cross chain interface from registry

  • Given a vault describer, returns the catalyst version. Returns 0 if address is not a CatalystDescriber. It might be that get_vault_describer(get_describer_version(catalystDescriber)) != catalystDescriber, since when a describer is updated it doesn't delete the index.

    Parameters

    • address: string

      The address of the catalyst describer

    • Optional options: TransactionOptions

      transaction modification options

    Returns Promise<string>

    The catalyst version of the given describer

  • Given a Catalyst version, returns the current vault describer. Returns address(0) if no describer exists.

    Parameters

    • address: string

      address to check for registry

    • version: BigNumberish

      The Catalyst version. Is 1 indexed.

    • Optional options: TransactionOptions

      transaction modification options

    Returns Promise<string>

    The address of the vault describer

  • Check if the given chain has a valid Catalyst deployment.

    Parameters

    • address: string

      address to check for registry

    • Optional options: TransactionOptions

      transaction modification options

    Returns Promise<boolean>

    a boolean indicating if the Catalyst registry is deployed at a known address