TUI

BFS-TUI Data Transfer Protocol [BTP] 1. Basic description The role of the agreement It is used by BFS to tell TUI how to display content, and TUI to tell BFS what instructions to execute. Message description character set: utf8 Basic format dataHeader-dataBody-dataEnd dataHeader header information dataBody data body dataEnd data end information

WebViewActivity

@bfs/lib-webview-activity 1. Description ​ Used to build 2. Method createAcivity(activityName: string, ActivityCtor: AC = (DomActivity as unknown) as AC) is used to create a page instance Parameter Description activityName: page name ActivityCtor: page constructor Return Value: Port for duplex communication 3. WebViewAcivity class Method op

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 (

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 =

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)=>

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

Grpc

Grpc The PC node provides the interface call method of grpc. Through the officially defined .proto file and the compiled proto.js and proto.d.ts, users can call the open grpc interface to interact with the node according to the parameter specification. Currently, we have supported: Win10 64-bit and Windows Server2008+ operating system Linux ope

Consensus incentive mechanism

Consensus incentive mechanism The consensus incentive mechanism is an incentive measure for miners who provide services such as computing power, network, storage, verification and packaging for the BFChain network, as well as an incentive measure for all address accounts that provide computing power, network and storage for participating in the BFC