addCoinByShare static method

Future<DataResult> addCoinByShare(
  1. int type,
  2. String? param
)

Implementation

static Future<DataResult> addCoinByShare(int type, String? param) async {
  Map other = {'type': type, 'param': param};
  var res = await BaseDao.fromBaseEncrypt(other, Address.addCoinByShare());
  if (res.result) {
    var entity = TokenEntity.fromJson(res.data);
    return DataResult(entity, true);
  }
  return res;
}