Skip to content

Hold chain api connection at the top level in the IndexerClient in @sdk #35

@royvardhan

Description

@royvardhan

Ref: #29 (comment)

We are currently using getChain function inside client.ts whenever we need hyperbridge methods, this triggers substrateChain.connect(). We could hold the connections in the top level in the client and use it instead, maintaining proper initialisation of the connection and cleanup.

We can also then use these connection instances in our tests.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions