Skip to content

Fix/smc api refactoring#1209

Open
alzinchenko wants to merge 15 commits into
developfrom
fix/smc-api-refactoring
Open

Fix/smc api refactoring#1209
alzinchenko wants to merge 15 commits into
developfrom
fix/smc-api-refactoring

Conversation

@alzinchenko

Copy link
Copy Markdown
Collaborator
  • moved the business logic from the SmcApi controller to the service;
  • used StringUtils instead of Strings;
  • renamed the ComplexKey class to ThreeValuesKey;
  • added Range interface and implementation to represent boundaries of something;
  • added query objects (ContractQuery, ContractEventQuery) for filtering smart-contracts and contract events;
  • moved Sort and Range files to utils module;

@AndrewBoyarsky AndrewBoyarsky left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests required for SmcContractServiceImpl new methods

Comment thread apl-utils/src/main/java/com/apollocurrency/aplwallet/apl/util/api/Sort.java Outdated
Comment thread apl-utils/src/main/java/com/apollocurrency/aplwallet/apl/util/api/Sort.java Outdated
Comment thread apl-utils/src/main/java/com/apollocurrency/aplwallet/apl/util/api/Range.java Outdated
@AndrewBoyarsky

Copy link
Copy Markdown
Collaborator

@alzinchenko Still required unit tests for SmcContractService new methods

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants