Skip to content

Commit

Permalink
[worker] remove unnecessary endinanness function args from interface
Browse files Browse the repository at this point in the history
  • Loading branch information
clangenb committed May 2, 2024
1 parent f1b93ad commit c495bd8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/worker-api/src/interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,14 @@ import {Keyring} from "@polkadot/keyring";
import type {u8} from "@polkadot/types-codec";
import type {TypeRegistry, Vec} from "@polkadot/types";
import type {RegistryTypes} from "@polkadot/types/types";
import BN from "bn.js";

export interface IWorker extends WebSocketAsPromised {
rsCount: number;
rqStack: string[];
keyring: () => Keyring | undefined;
createType: (apiType: string, obj?: any) => any;
open: () => Promise<Event>;
encrypt: (data: Uint8Array, inputEndian?: BN.Endianness, outputEndian?: BN.Endianness) => Promise<Vec<u8>>
encrypt: (data: Uint8Array) => Promise<Vec<u8>>
registry: () => TypeRegistry
}

Expand Down

0 comments on commit c495bd8

Please sign in to comment.