Skip to content

Commit

Permalink
Init hangzhounet scaffold
Browse files Browse the repository at this point in the history
  • Loading branch information
Groxan committed Nov 22, 2021
1 parent cd1e83b commit 4b4bc3b
Show file tree
Hide file tree
Showing 33 changed files with 572 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Tzkt.Sync/Protocols/Handlers/Proto11/Activation/ProtoActivator.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.Json;
using System.Threading.Tasks;
using Tzkt.Data.Models;

namespace Tzkt.Sync.Protocols.Proto11
{
class ProtoActivator : Proto10.ProtoActivator
{
public ProtoActivator(ProtocolHandler proto) : base(proto) { }

protected override void UpgradeParameters(Protocol protocol, Protocol prev) { }
protected override Task MigrateContext(AppState state) => Task.CompletedTask;
protected override Task RevertContext(AppState state) => Task.CompletedTask;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
namespace Tzkt.Sync.Protocols.Proto11
{
class BakerCycleCommit : Proto6.BakerCycleCommit
{
public BakerCycleCommit(ProtocolHandler protocol) : base(protocol) { }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
namespace Tzkt.Sync.Protocols.Proto11
{
class BakingRightsCommit : Proto10.BakingRightsCommit
{
public BakingRightsCommit(ProtocolHandler protocol) : base(protocol) { }
}
}
7 changes: 7 additions & 0 deletions Tzkt.Sync/Protocols/Handlers/Proto11/Commits/BigMapCommit.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
namespace Tzkt.Sync.Protocols.Proto11
{
class BigMapCommit : Proto1.BigMapCommit
{
public BigMapCommit(ProtocolHandler protocol) : base(protocol) { }
}
}
7 changes: 7 additions & 0 deletions Tzkt.Sync/Protocols/Handlers/Proto11/Commits/BlockCommit.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
namespace Tzkt.Sync.Protocols.Proto11
{
class BlockCommit : Proto10.BlockCommit
{
public BlockCommit(ProtocolHandler protocol) : base(protocol) { }
}
}
7 changes: 7 additions & 0 deletions Tzkt.Sync/Protocols/Handlers/Proto11/Commits/CycleCommit.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
namespace Tzkt.Sync.Protocols.Proto11
{
class CycleCommit : Proto1.CycleCommit
{
public CycleCommit(ProtocolHandler protocol) : base(protocol) { }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
namespace Tzkt.Sync.Protocols.Proto11
{
class DeactivationCommit : Proto2.DeactivationCommit
{
public DeactivationCommit(ProtocolHandler protocol) : base(protocol) { }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
namespace Tzkt.Sync.Protocols.Proto11
{
class DelegatorCycleCommit : Proto3.DelegatorCycleCommit
{
public DelegatorCycleCommit(ProtocolHandler protocol) : base(protocol) { }
}
}
7 changes: 7 additions & 0 deletions Tzkt.Sync/Protocols/Handlers/Proto11/Commits/FreezerCommit.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
namespace Tzkt.Sync.Protocols.Proto11
{
class FreezerCommit : Proto9.FreezerCommit
{
public FreezerCommit(ProtocolHandler protocol) : base(protocol) { }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
namespace Tzkt.Sync.Protocols.Proto11
{
class ActivationsCommit : Proto5.ActivationsCommit
{
public ActivationsCommit(ProtocolHandler protocol) : base(protocol) { }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
namespace Tzkt.Sync.Protocols.Proto11
{
class BallotsCommit : Proto3.BallotsCommit
{
public BallotsCommit(ProtocolHandler protocol) : base(protocol) { }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
namespace Tzkt.Sync.Protocols.Proto11
{
class DelegationsCommit : Proto1.DelegationsCommit
{
public DelegationsCommit(ProtocolHandler protocol) : base(protocol) { }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
namespace Tzkt.Sync.Protocols.Proto11
{
class DoubleBakingCommit : Proto2.DoubleBakingCommit
{
public DoubleBakingCommit(ProtocolHandler protocol) : base(protocol) { }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
namespace Tzkt.Sync.Protocols.Proto11
{
class DoubleEndorsingCommit : Proto4.DoubleEndorsingCommit
{
public DoubleEndorsingCommit(ProtocolHandler protocol) : base(protocol) { }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
namespace Tzkt.Sync.Protocols.Proto11
{
class EndorsementsCommit : Proto1.EndorsementsCommit
{
public EndorsementsCommit(ProtocolHandler protocol) : base(protocol) { }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
namespace Tzkt.Sync.Protocols.Proto11
{
class NonceRevelationsCommit : Proto1.NonceRevelationsCommit
{
public NonceRevelationsCommit(ProtocolHandler protocol) : base(protocol) { }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
namespace Tzkt.Sync.Protocols.Proto11
{
class OriginationsCommit : Proto5.OriginationsCommit
{
public OriginationsCommit(ProtocolHandler protocol) : base(protocol) { }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
namespace Tzkt.Sync.Protocols.Proto11
{
class ProposalsCommit : Proto3.ProposalsCommit
{
public ProposalsCommit(ProtocolHandler protocol) : base(protocol) { }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
namespace Tzkt.Sync.Protocols.Proto11
{
class RevealsCommit : Proto1.RevealsCommit
{
public RevealsCommit(ProtocolHandler protocol) : base(protocol) { }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
namespace Tzkt.Sync.Protocols.Proto11
{
class TransactionsCommit : Proto5.TransactionsCommit
{
public TransactionsCommit(ProtocolHandler protocol) : base(protocol) { }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
namespace Tzkt.Sync.Protocols.Proto11
{
class RevelationPenaltyCommit : Proto9.RevelationPenaltyCommit
{
public RevelationPenaltyCommit(ProtocolHandler protocol) : base(protocol) { }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
namespace Tzkt.Sync.Protocols.Proto11
{
class SnapshotBalanceCommit : Proto9.SnapshotBalanceCommit
{
public SnapshotBalanceCommit(ProtocolHandler protocol) : base(protocol) { }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
namespace Tzkt.Sync.Protocols.Proto11
{
class SoftwareCommit : Proto5.SoftwareCommit
{
public SoftwareCommit(ProtocolHandler protocol) : base(protocol) { }
}
}
7 changes: 7 additions & 0 deletions Tzkt.Sync/Protocols/Handlers/Proto11/Commits/StateCommit.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
namespace Tzkt.Sync.Protocols.Proto11
{
class StateCommit : Proto1.StateCommit
{
public StateCommit(ProtocolHandler protocol) : base(protocol) { }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
namespace Tzkt.Sync.Protocols.Proto11
{
class StatisticsCommit : Proto1.StatisticsCommit
{
public StatisticsCommit(ProtocolHandler protocol) : base(protocol) { }
}
}
7 changes: 7 additions & 0 deletions Tzkt.Sync/Protocols/Handlers/Proto11/Commits/SubsidyCommit.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
namespace Tzkt.Sync.Protocols.Proto11
{
class SubsidyCommit : Proto10.SubsidyCommit
{
public SubsidyCommit(ProtocolHandler protocol) : base(protocol) { }
}
}
7 changes: 7 additions & 0 deletions Tzkt.Sync/Protocols/Handlers/Proto11/Commits/VotingCommit.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
namespace Tzkt.Sync.Protocols.Proto11
{
class VotingCommit : Proto8.VotingCommit
{
public VotingCommit(ProtocolHandler protocol) : base(protocol) { }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
namespace Tzkt.Sync.Protocols.Proto11
{
class Diagnostics : Proto10.Diagnostics
{
public Diagnostics(ProtocolHandler handler) : base(handler) { }
}
}
Loading

0 comments on commit 4b4bc3b

Please sign in to comment.