method ScProvider.prototype.onimport { ScProvider } from "https://deno.land/x/polkadot@0.2.14/rpc-provider/mod.ts"; on(type: ProviderInterfaceEmitted, sub: ProviderInterfaceEmitCb): () => voidParameterstype: ProviderInterfaceEmittedsub: ProviderInterfaceEmitCbReturns() => void