ThorchainLiquidityProvider.deserialize constructor

ThorchainLiquidityProvider.deserialize(
  1. List<int> bytes
)

Implementation

factory ThorchainLiquidityProvider.deserialize(List<int> bytes) {
  final decode = CosmosProtocolBuffer.decode(bytes);
  return ThorchainLiquidityProvider(
      asset: ThorchainAsset.deserialize(decode.getField(1)),
      runeAddress: decode.getField(2),
      assetAddress: decode.getField(3),
      lastAddHeight: decode.getField(4),
      lastWithdrawHeight: decode.getField(5),
      units: BigInt.parse(decode.getField(6)),
      pendingRune: BigInt.parse(decode.getField(7)),
      pendingAsset: BigInt.parse(decode.getField(8)),
      pendingTxId: decode.getField(9),
      runeDepositValue: BigInt.parse(decode.getField(10)),
      assetDepositValue: BigInt.parse(decode.getField(11)));
}