bfsprocess

bfsprocess module 1. Description ​ An instance of a process, through which modules can be imported and used in applications, such as "bfs", "channel" and other modules. 2. Method import<T extends ImportNames>(name: T):Module<T> Parameter Description -name: module name Return value type Module<T> 3

evt

evt module 1. Description ​ Based on Ctx event triggers, it encapsulates event triggers that meet a variety of needs. 2. Class Ctx: Event Trigger Method post(data: T): void; Description: trigger event attach<L extends BFS.Evt.Listener<T>(listener: L): L -Description: Bind an event const ctx = new Ctx(); ctx.attach((name:string)=>

bfs

bfs module 1. Description ​Encapsulates the methods exposed by the BFS system. 2. Method openBrl(brl: string): PromiseLike<BFS.Channel.Port | undefined> Parameter Description brl: Open path of the application Return Value: Port used for duplex communication between two applications import "@bfs/bfchain-runtime-typings"; const bfs =

openBrl

openBrl 1. Description ​ Used to open an application. 2. Method openBrl(brl: string): PromiseLike<BFS.Channel.Port | undefined>; Parameter Description -brl: application open path Return Value: Port used for duplex communication between two applications import "@bfs/bfchain-runtime-typings"; const bfs = bfsprocess.import("bfs"); (async (