コード例 #1
0
ファイル: DelegatorCycleCommit.cs プロジェクト: rjumawan/tzkt
        public static async Task <DelegatorCycleCommit> Revert(ProtocolHandler proto)
        {
            var commit = new DelegatorCycleCommit(proto);
            await commit.Revert();

            return(commit);
        }
コード例 #2
0
ファイル: DelegatorCycleCommit.cs プロジェクト: rjumawan/tzkt
        public static async Task <DelegatorCycleCommit> Apply(ProtocolHandler proto, Block block, List <Account> accounts)
        {
            var commit = new DelegatorCycleCommit(proto)
            {
                Block = block, BootstrapedAccounts = accounts
            };
            await commit.Apply();

            return(commit);
        }