This repository was archived by the owner on Dec 27, 2022. It is now read-only.

Description
Describe the bug
When using the new packages, you have to use async imports for everything at a higher level than the utils module, i.e. everything except for the types package.
In order to keep the sdk as strongly typed as possible this means:
export interface IBrowserNode extends INodeService {
channelProvider: IRpcChannelProvider | undefined;
connect(config: BrowserNodeSignerConfig): Promise<IBrowserNode>;
init(params: { signature?: string; signer?: string }): Promise<void>;
}
getConfig(): Promise<NodeResponses.GetConfig>;
withdrawRetry(
params: OptionalPublicIdentifier<NodeParams.WithdrawRetry>,
): Promise<Result<NodeResponses.WithdrawRetry, VectorError>>;
addTransactionToCommitment(
params: OptionalPublicIdentifier<NodeParams.AddTransactionToCommitment>,
): Promise<Result<void, VectorError>>;
After doing this, make sure to update the sdk package