-
Notifications
You must be signed in to change notification settings - Fork 75
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
HTS precompile token key management tests #464
Conversation
Signed-off-by: Ivo Yankov <[email protected]>
Signed-off-by: Ivo Yankov <[email protected]>
Signed-off-by: Ivo Yankov <[email protected]>
Signed-off-by: Ivo Yankov <[email protected]> # Conflicts: # packages/server/tests/acceptance/htsPrecompile.spec.ts # packages/server/tests/contracts/HederaTokenService.sol # packages/server/tests/contracts/IHederaTokenService.sol
Signed-off-by: Ivo Yankov <[email protected]>
Signed-off-by: Ivo Yankov <[email protected]>
Signed-off-by: Nana Essilfie-Conduah <[email protected]>
# Conflicts: # packages/server/tests/acceptance/htsPrecompile.spec.ts # packages/server/tests/contracts/BaseHTS.json # packages/server/tests/contracts/BaseHTS.sol # packages/server/tests/contracts/HederaTokenService.json # packages/server/tests/contracts/HederaTokenService.sol # packages/server/tests/contracts/IHederaTokenService.json # packages/server/tests/contracts/IHederaTokenService.sol
Signed-off-by: Ivo Yankov <[email protected]>
Codecov ReportBase: 76.67% // Head: 76.88% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #464 +/- ##
==========================================
+ Coverage 76.67% 76.88% +0.20%
==========================================
Files 12 12
Lines 926 943 +17
Branches 145 149 +4
==========================================
+ Hits 710 725 +15
- Misses 164 169 +5
+ Partials 52 49 -3
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
Signed-off-by: Ivo Yankov <[email protected]>
Signed-off-by: Ivo Yankov <[email protected]>
Signed-off-by: Ivo Yankov <[email protected]>
# Conflicts: # packages/server/tests/contracts/BaseHTS.json
Signed-off-by: Ivo Yankov <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LG
Please update PR descriptions
Signed-off-by: Ivo Yankov <[email protected]>
# Conflicts: # packages/server/tests/acceptance/htsPrecompile.spec.ts # packages/server/tests/contracts/BaseHTS.json # packages/server/tests/contracts/BaseHTS.sol # packages/server/tests/contracts/HederaTokenService.sol # packages/server/tests/contracts/IHederaTokenService.sol
Signed-off-by: Ivo Yankov <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LG
# Conflicts: # packages/server/tests/acceptance/htsPrecompile.spec.ts # packages/server/tests/contracts/BaseHTS.json # packages/server/tests/contracts/BaseHTS.sol # packages/server/tests/contracts/IHederaTokenService.json # packages/server/tests/contracts/IHederaTokenService.sol
Signed-off-by: Ivo Yankov <[email protected]>
The HTS Precompile tests in their current state are very unstable and require a refactor. The bytecode of |
Signed-off-by: Ivo Yankov <[email protected]>
Signed-off-by: Ivo Yankov <[email protected]>
Signed-off-by: Ivo Yankov <[email protected]>
Signed-off-by: Ivo Yankov <[email protected]>
package.json
Outdated
@@ -25,6 +25,7 @@ | |||
"acceptancetest:erc20": "ts-mocha packages/server/tests/acceptance/index.spec.ts -g '@erc20' --exit", | |||
"acceptancetest:htsprecompile": "ts-mocha packages/server/tests/acceptance/index.spec.ts -g '@htsprecompile' --exit", | |||
"acceptancetest:htsprecompilev1": "ts-mocha packages/server/tests/acceptance/index.spec.ts -g '@htsprecompilev1' --exit", | |||
"acceptancetest:htsprecompilev2": "ts-mocha packages/server/tests/acceptance/index.spec.ts -g '@htsprecompilev2' --exit", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the -g flag is a grep and thus -g '@htsprecompile'
will match three acceptance tests (acceptancetest:htsprecompile, acceptancetest:htsprecompilev1, acceptancetest:htsprecompilev2).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's not use a v2 as it gives a different meaning
Provided suggestions
Signed-off-by: Ivo Yankov <[email protected]>
Signed-off-by: Ivo Yankov <[email protected]>
Signed-off-by: Ivo Yankov <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some contract function dupes to fix
Signed-off-by: Ivo Yankov <[email protected]>
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LG
|
||
import "./TokenCreate.sol"; | ||
|
||
contract TokenContractContract is TokenCreate { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can fix this later
contract TokenContractContract is TokenCreate { | |
contract TokenCreateContract is TokenCreate { |
Description:
Adds tests for
getTokenKey
andupdateTokenKeys
.Applies changes from PR #524
Adds a new acceptance test suite -
htsPrecompile_v2
in order to reduce the size ofBaseHTS.sol
so that the bytecode doesn't exceed 24kb.Related issue(s):
Fixes #409
Fixes #521
Notes for reviewer:
Checklist