const jsBridge = (window as any).jsBridge
const _jsBridge = new jsBridge()

export const sign = (params: any, fn?: Function) => _jsBridge.sign(params, fn)
export const scanQRCode = (params: any, fn?: Function) => _jsBridge.scanQRCode(params, fn)
export const getCurrentBTYAddress = (params: any, fn?: Function) => _jsBridge.getCurrentBTYAddress(params, fn)