diff --git a/packages/worker-api/src/interface.ts b/packages/worker-api/src/interface.ts index 3c229e45..64af01e8 100644 --- a/packages/worker-api/src/interface.ts +++ b/packages/worker-api/src/interface.ts @@ -4,7 +4,6 @@ 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; @@ -12,7 +11,7 @@ export interface IWorker extends WebSocketAsPromised { keyring: () => Keyring | undefined; createType: (apiType: string, obj?: any) => any; open: () => Promise; - encrypt: (data: Uint8Array, inputEndian?: BN.Endianness, outputEndian?: BN.Endianness) => Promise> + encrypt: (data: Uint8Array) => Promise> registry: () => TypeRegistry }