Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reviews for AElf.Kernel.SmartContract #2409

Merged
merged 2 commits into from
Feb 18, 2020
Merged

reviews for AElf.Kernel.SmartContract #2409

merged 2 commits into from
Feb 18, 2020

Conversation

loning
Copy link
Contributor

@loning loning commented Feb 18, 2020

No description provided.

@todo
Copy link

todo bot commented Feb 18, 2020

rename to GrpcCrossChainNodePlugin

//TODO: rename to GrpcCrossChainNodePlugin
public class GrpcNodePlugin : INodePlugin
{
private readonly IGrpcServePlugin _grpcServePlugin;


This comment was generated by todo based on a TODO comment in c0a9236 in #2409. cc @AElfProject.

@todo
Copy link

todo bot commented Feb 18, 2020

if TransactionExecutedEventData is only for Debug, TransactionExecutedEventData should also wrap in #DEBUG

//TODO: if TransactionExecutedEventData is only for Debug, TransactionExecutedEventData should also wrap in #DEBUG
public class TransactionExecutedEventData
{
public TransactionTrace TransactionTrace { get; set; }


This comment was generated by todo based on a TODO comment in c0a9236 in #2409. cc @AElfProject.

@todo
Copy link

todo bot commented Feb 18, 2020

a service should not mange status. what's this class for?

//TODO: a service should not mange status. what's this class for?
private bool _isTransactionPackable = true;
public void EnableTransactionPacking()


This comment was generated by todo based on a TODO comment in c0a9236 in #2409. cc @AElfProject.

@todo
Copy link

todo bot commented Feb 18, 2020

if you are a CalculateAlgorithmService, why do you need to care about fork? one class does one thing

//TODO: if you are a CalculateAlgorithmService, why do you need to care about fork? one class does one thing
void RemoveForkCache(List<BlockIndex> blockIndexes);
void SetIrreversedCache(List<BlockIndex> blockIndexes);
Task<long> CalculateAsync(int count);


This comment was generated by todo based on a TODO comment in c0a9236 in #2409. cc @AElfProject.

@todo
Copy link

todo bot commented Feb 18, 2020

we only need one strategy to calculate tx, read, write ... resources.

//TODO: we only need one strategy to calculate tx, read, write ... resources.
public interface ICalculateTxCostStrategy : ICalculateCostStrategy
{


This comment was generated by todo based on a TODO comment in c0a9236 in #2409. cc @AElfProject.

@todo
Copy link

todo bot commented Feb 18, 2020

it looks not OOP

//TODO: it looks not OOP
void InitParameter(IDictionary<string, int> param);
IDictionary<string, int> GetParameterDic();
int FunctionTypeEnum { get; }


This comment was generated by todo based on a TODO comment in c0a9236 in #2409. cc @AElfProject.

@todo
Copy link

todo bot commented Feb 18, 2020

@todo
Copy link

todo bot commented Feb 18, 2020

is still in use?

//TODO: is still in use?
public class DeployContractAddressForkCacheHandler : IForkCacheHandler, ITransientDependency
{
private readonly IDeployedContractAddressProvider _deployedContractAddressProvider;


This comment was generated by todo based on a TODO comment in c0a9236 in #2409. cc @AElfProject.

@loning loning merged commit f30dac7 into dev Feb 18, 2020
@todo
Copy link

todo bot commented Feb 18, 2020

why in a SmartContract package, you put a Token class? if you create a door, can put a clock on the door,

//TODO: why in a SmartContract package, you put a Token class? if you create a door, can put a clock on the door,
//And tell people, "I don't care about whether you need a clock or not, but I MADE the clock inside the door?"
public class AvailableTokenInfoInCache
{
public string TokenSymbol { get; set; }


This comment was generated by todo based on a TODO comment in c0a9236 in #2409. cc @AElfProject.

@todo
Copy link

todo bot commented Feb 18, 2020

if you new a class, why not pass parameters by constructor? you know the type of calWayDic[func.PieceKey], but why don't you use strong signature?

//TODO: if you new a class, why not pass parameters by constructor? you know the type of calWayDic[func.PieceKey], but why don't you use strong signature?
calWayDic[func.PieceKey].InitParameter(funDicToLowerKey);
}
_cacheCacheProvider.SetPieceWiseFunctionToNormalCache(calWayDic);


This comment was generated by todo based on a TODO comment in c0a9236 in #2409. cc @AElfProject.

@delete-merged-branch delete-merged-branch bot deleted the review/loning-20200216 branch February 18, 2020 20:56
@todo
Copy link

todo bot commented Feb 18, 2020

a service should not mange status. what's this class for?

//TODO: a service should not mange status. what's this class for?
private bool _isTransactionPackable = true;
public void EnableTransactionPacking()


This comment was generated by todo based on a TODO comment in 40ce8b3 in #2409. cc @AElfProject.

@todo
Copy link

todo bot commented Feb 18, 2020

is still in use?

//TODO: is still in use?
public class DeployContractAddressForkCacheHandler : IForkCacheHandler, ITransientDependency
{
private readonly IDeployedContractAddressProvider _deployedContractAddressProvider;


This comment was generated by todo based on a TODO comment in 40ce8b3 in #2409. cc @AElfProject.

@todo
Copy link

todo bot commented Feb 18, 2020

why in a SmartContract package, you put a Token class? if you create a door, can put a clock on the door,

//TODO: why in a SmartContract package, you put a Token class? if you create a door, can put a clock on the door,
//And tell people, "I don't care about whether you need a clock or not, but I MADE the clock inside the door?"
public class AvailableTokenInfoInCache
{
public string TokenSymbol { get; set; }


This comment was generated by todo based on a TODO comment in 40ce8b3 in #2409. cc @AElfProject.

@todo
Copy link

todo bot commented Feb 18, 2020

if you new a class, why not pass parameters by constructor? you know the type of calWayDic[func.PieceKey], but why don't you use strong signature?

//TODO: if you new a class, why not pass parameters by constructor? you know the type of calWayDic[func.PieceKey], but why don't you use strong signature?
calWayDic[func.PieceKey].InitParameter(funDicToLowerKey);
}
_cacheCacheProvider.SetPieceWiseFunctionToNormalCache(calWayDic);


This comment was generated by todo based on a TODO comment in 40ce8b3 in #2409. cc @AElfProject.

@AppVeyorBot
Copy link

Build AElf 1.0.0.6200 failed (commit c0acf98328 by @loning)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants