subscribeBalances method

Future<void> subscribeBalances(
  1. String chain,
  2. String address,
  3. dynamic callback(
    1. Map
    )
)

Implementation

Future<void> subscribeBalances(
    String chain, String address, Function(Map) callback) async {
  assert(_runner != null, 'bridge not init');
  final msgChannel = '${chain}BridgeTokenBalances$address';
  final code =
      'bridge.subscribeBalances("$chain", "$address", "$msgChannel")';
  _runner?.subscribeMessage(code, msgChannel, callback);
}