diff --git a/Circles.Index.CirclesV2.StandardTreasury/LogParser.cs b/Circles.Index.CirclesV2.StandardTreasury/LogParser.cs index 1406415..d74e047 100644 --- a/Circles.Index.CirclesV2.StandardTreasury/LogParser.cs +++ b/Circles.Index.CirclesV2.StandardTreasury/LogParser.cs @@ -174,44 +174,45 @@ private GroupRedeem GroupRedeem(Block block, TxReceipt receipt, LogEntry log, in private IEnumerable GroupRedeemCollateralReturn(Block block, TxReceipt receipt, LogEntry log, int logIndex) { - string groupAddress = "0x" + log.Topics[1].ToString().Substring(Consts.AddressEmptyBytesPrefixLength); - string toAddress = "0x" + log.Topics[2].ToString().Substring(Consts.AddressEmptyBytesPrefixLength); - - int offset = 0; - int idsLength = (int)new BigInteger(log.Data.Slice(offset, 32).ToArray()); - offset += 32; - - List ids = new List(); - for (int i = 0; i < idsLength; i++) - { - ids.Add(new UInt256(log.Data.Slice(offset, 32), true)); - offset += 32; - } - - int valuesLength = (int)new BigInteger(log.Data.Slice(offset, 32).ToArray()); - offset += 32; - - List values = new List(); - for (int i = 0; i < valuesLength; i++) - { - values.Add(new UInt256(log.Data.Slice(offset, 32), true)); - offset += 32; - } - - for (int i = 0; i < idsLength; i++) - { - yield return new GroupRedeemCollateralReturn( - block.Number, - (long)block.Timestamp, - receipt.Index, - logIndex, - receipt.TxHash!.ToString(), - i, - groupAddress, - toAddress, - ids[i], - values[i]); - } + // string groupAddress = "0x" + log.Topics[1].ToString().Substring(Consts.AddressEmptyBytesPrefixLength); + // string toAddress = "0x" + log.Topics[2].ToString().Substring(Consts.AddressEmptyBytesPrefixLength); + // + // int offset = 0; + // int idsLength = (int)new BigInteger(log.Data.Slice(offset, 32).ToArray()); + // offset += 32; + // + // List ids = new List(); + // for (int i = 0; i < idsLength; i++) + // { + // ids.Add(new UInt256(log.Data.Slice(offset, 32), true)); + // offset += 32; + // } + // + // int valuesLength = (int)new BigInteger(log.Data.Slice(offset, 32).ToArray()); + // offset += 32; + // + // List values = new List(); + // for (int i = 0; i < valuesLength; i++) + // { + // values.Add(new UInt256(log.Data.Slice(offset, 32), true)); + // offset += 32; + // } + // + // for (int i = 0; i < idsLength; i++) + // { + // yield return new GroupRedeemCollateralReturn( + // block.Number, + // (long)block.Timestamp, + // receipt.Index, + // logIndex, + // receipt.TxHash!.ToString(), + // i, + // groupAddress, + // toAddress, + // ids[i], + // values[i]); + // } + yield break; // Don't index right now. } private IEnumerable GroupRedeemCollateralBurn(Block block, TxReceipt receipt, diff --git a/Circles.Index/Circles.Index.csproj b/Circles.Index/Circles.Index.csproj index 5c6d315..e36777a 100644 --- a/Circles.Index/Circles.Index.csproj +++ b/Circles.Index/Circles.Index.csproj @@ -8,8 +8,8 @@ Daniel Janz (Gnosis Service GmbH) Gnosis Service GmbH Circles - 1.11.3 - 1.11.3 + 1.11.3-GroupRedeemCollateralReturn-hotfix + 1.11.3-GroupRedeemCollateralReturn-hotfix