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

HIP - 367 #2997

Merged
merged 62 commits into from
Mar 29, 2022
Merged

HIP - 367 #2997

merged 62 commits into from
Mar 29, 2022

Conversation

anighanta
Copy link
Contributor

@anighanta anighanta commented Mar 16, 2022

Description:

Replaces PR #2934 which was merged before starting the 0.25.0 dev cycle.

Related issue(s):
HIP - 367
Fixes #2917

Notes for reviewer:

Checklist

  • Documented (Code comments, README, etc.)
  • Tested (unit, integration, etc.)

Signed-off-by: anighanta <anirudh.ghanta@hedera.com>
Signed-off-by: anighanta <anirudh.ghanta@hedera.com>
Signed-off-by: anighanta <anirudh.ghanta@hedera.com>
Signed-off-by: anighanta <anirudh.ghanta@hedera.com>
Signed-off-by: anighanta <anirudh.ghanta@hedera.com>
Signed-off-by: anighanta <anirudh.ghanta@hedera.com>
Signed-off-by: anighanta <anirudh.ghanta@hedera.com>
Signed-off-by: anighanta <anirudh.ghanta@hedera.com>
…y should only return the next 1000 assocaitions

Signed-off-by: anighanta <anirudh.ghanta@hedera.com>
Signed-off-by: anighanta <anirudh.ghanta@hedera.com>
Signed-off-by: anighanta <anirudh.ghanta@hedera.com>
Signed-off-by: anighanta <anirudh.ghanta@hedera.com>
Signed-off-by: anighanta <anirudh.ghanta@hedera.com>
…hing anymore

Signed-off-by: anighanta <anirudh.ghanta@hedera.com>
…in the getInfo query on an account/contract where n is dynamic prop

Signed-off-by: anighanta <anirudh.ghanta@hedera.com>
Signed-off-by: anighanta <anirudh.ghanta@hedera.com>
Signed-off-by: anighanta <anirudh.ghanta@hedera.com>
Signed-off-by: anighanta <anirudh.ghanta@hedera.com>
Signed-off-by: anighanta <anirudh.ghanta@hedera.com>
Signed-off-by: anighanta <anirudh.ghanta@hedera.com>
…ntil the next release

Signed-off-by: anighanta <anirudh.ghanta@hedera.com>
Signed-off-by: anighanta <anirudh.ghanta@hedera.com>
…here and during migrations update the links in MapValuedLinkedList

Signed-off-by: anighanta <anirudh.ghanta@hedera.com>
…List

Signed-off-by: anighanta <anirudh.ghanta@hedera.com>
…ve1000LimitOnTokenAssociations

Signed-off-by: anighanta <anirudh.ghanta@hedera.com>
…edLinkedList

Signed-off-by: anighanta <anirudh.ghanta@hedera.com>
…ons limited by the setting tokens.maxPerAccount

Signed-off-by: anighanta <anirudh.ghanta@hedera.com>
…o use tokenRelations from a instaed of loading it again

Signed-off-by: anighanta <anirudh.ghanta@hedera.com>
anighanta and others added 15 commits March 8, 2022 15:44
Signed-off-by: anighanta <anirudh.ghanta@hedera.com>
…lance is zero

Signed-off-by: anighanta <anirudh.ghanta@hedera.com>
…ing relationships for dissociation

Signed-off-by: anighanta <anirudh.ghanta@hedera.com>
Signed-off-by: anighanta <anirudh.ghanta@hedera.com>
Signed-off-by: anighanta <anirudh.ghanta@hedera.com>
)

* Use June 10, 2022 system entity expiry to simplify DevOps workflows

Signed-off-by: tinker-michaelj <michael.tinker@hedera.com>

* Remove gRPC intermediary from `EvmFnResult` construction (#2954)

* Initial commit with EvmFnResultBench

Signed-off-by: tinker-michaelj <michael.tinker@hedera.com>

* Disable CI for now

Signed-off-by: tinker-michaelj <michael.tinker@hedera.com>

* Re-enable CI

Signed-off-by: tinker-michaelj <michael.tinker@hedera.com>

* Avoid gRPC intermediary in creating ExpirableTxnRecord w/ call result

Signed-off-by: tinker-michaelj <michael.tinker@hedera.com>

* Fix code smells

Signed-off-by: tinker-michaelj <michael.tinker@hedera.com>

* Include benchmarks directory in build image

Signed-off-by: tinker-michaelj <michael.tinker@hedera.com>

* Remove duplicate code

Signed-off-by: tinker-michaelj <michael.tinker@hedera.com>

* Uncomment EETs

Signed-off-by: tinker-michaelj <michael.tinker@hedera.com>

* Fix approve/allowance issue with INFINITE supply type fungible tokens (#2956)

* Fix approve/allowance issue with INFINITE supply type fungible tokens

Signed-off-by: Stoyan Panayotov <stoyan.panayotov@limechain.tech>

* Fix unit tests for approve/adjust allowance checks

Signed-off-by: Stoyan Panayotov <stoyan.panayotov@limechain.tech>

* Remove all `FCOneToManyRelation` use and update EETs to only verify NOT… (#2962)

* Remove all FCOneToManyRelation use and update EETs to only verify NOT_SUPPORTED

Signed-off-by: tinker-michaelj <michael.tinker@hedera.com>

* Fix unit test

Signed-off-by: tinker-michaelj <michael.tinker@hedera.com>

* Fix code smells

Signed-off-by: tinker-michaelj <michael.tinker@hedera.com>

* Remove unused tokens.nfts.areQueriesEnabled property, MerkleUniqueTokenId class

Signed-off-by: tinker-michaelj <michael.tinker@hedera.com>

* Bump crypto from 22.1.0 to 22.1.1 (#2930)

* Bump log4j.version from 2.17.1 to 2.17.2 (#2931)

* Update maven version in Dockerfile - 3.8.4 is missing from https://dlcdn.apache.org/maven/maven-3/ (#2975)

Signed-off-by: Stoyan Panayotov <stoyan.panayotov@limechain.tech>

* Back `AliasManager` with `FCHashMap` from `StateMetadata` (#2969)

* Remove unnecessary StateAccessor wrapper

Signed-off-by: tinker-michaelj <michael.tinker@hedera.com>

* Add the aliases FCHashMap<ByteString, EntityNum> to state metadata and MutableStateChildren

Signed-off-by: tinker-michaelj <michael.tinker@hedera.com>

* Switch to FCHashMap in AliasManager

Signed-off-by: tinker-michaelj <michael.tinker@hedera.com>

* Use separate AliasManager in StateChildrenSigMetadataLookup

Signed-off-by: tinker-michaelj <michael.tinker@hedera.com>

* Eliminate unnecessary use of TokenStore in StateView

Signed-off-by: tinker-michaelj <michael.tinker@hedera.com>

* Use different maven download link

Signed-off-by: tinker-michaelj <michael.tinker@hedera.com>

* Fix unit tests

Signed-off-by: tinker-michaelj <michael.tinker@hedera.com>

* Address reviewer comments

Signed-off-by: tinker-michaelj <michael.tinker@hedera.com>

* Fix StateModule.provideWorkingAliases() signature

Signed-off-by: tinker-michaelj <michael.tinker@hedera.com>

* Use receiver (not sender address) to infer expiry of just-created contract (#2967)

* Intermezzo

Signed-off-by: tinker-michaelj <michael.tinker@hedera.com>

* Intermezzo

Signed-off-by: tinker-michaelj <michael.tinker@hedera.com>

* Disable CI for now

Signed-off-by: tinker-michaelj <michael.tinker@hedera.com>

* Reenable CI

Signed-off-by: tinker-michaelj <michael.tinker@hedera.com>

* Uncomment suites

Signed-off-by: tinker-michaelj <michael.tinker@hedera.com>

* Fix javadoc, code smells

Signed-off-by: tinker-michaelj <michael.tinker@hedera.com>

* Remove the intermediary TransferList for converting to CurrencyAdjustments (#2966)

* initial commit

Signed-off-by: Neeharika-Sompalli <neeharika.sompalli@hedera.com>

* fix a few tests

Signed-off-by: Neeharika-Sompalli <neeharika.sompalli@hedera.com>

* fix a few tests

Signed-off-by: Neeharika-Sompalli <neeharika.sompalli@hedera.com>

* fix sonar smells

Signed-off-by: Neeharika-Sompalli <neeharika.sompalli@hedera.com>

* add benchmark

Signed-off-by: Neeharika-Sompalli <neeharika.sompalli@hedera.com>

* add benchmark

Signed-off-by: Neeharika-Sompalli <neeharika.sompalli@hedera.com>

* use static constant

Signed-off-by: Neeharika-Sompalli <neeharika.sompalli@hedera.com>

* update benchmark to have purging adjustments

Signed-off-by: Neeharika-Sompalli <neeharika.sompalli@hedera.com>

* update changes array size to 10

Signed-off-by: Neeharika-Sompalli <neeharika.sompalli@hedera.com>

* change to modify in place

Signed-off-by: Neeharika-Sompalli <neeharika.sompalli@hedera.com>

* fix tests

Signed-off-by: Neeharika-Sompalli <neeharika.sompalli@hedera.com>

* Use different maven download link

Signed-off-by: tinker-michaelj <michael.tinker@hedera.com>

* address review comments

Signed-off-by: Neeharika-Sompalli <neeharika.sompalli@hedera.com>

* reset tracker every invocation

Signed-off-by: Neeharika-Sompalli <neeharika.sompalli@hedera.com>

* fix sonar smells

Signed-off-by: Neeharika-Sompalli <neeharika.sompalli@hedera.com>

* remove `numHbarBalancesChangedSoFar` pased to `CurrencyAdjustments`

Signed-off-by: Neeharika-Sompalli <neeharika.sompalli@hedera.com>

* ALWAYS copy the arrays passed into `CurrencyAdjustments` to avoid problems

Signed-off-by: Neeharika-Sompalli <neeharika.sompalli@hedera.com>

Co-authored-by: tinker-michaelj <michael.tinker@hedera.com>

* Add fee to record, expiry to new account in `AutoCreationLogic` (#2979)

* Add fee to record, expiry to new account in AutoCreationLogic

Signed-off-by: tinker-michaelj <michael.tinker@hedera.com>

* Stabilize CI

Signed-off-by: tinker-michaelj <michael.tinker@hedera.com>

* Fix all but one unit test 😓

Signed-off-by: tinker-michaelj <michael.tinker@hedera.com>

* Intermezzo

Signed-off-by: tinker-michaelj <michael.tinker@hedera.com>

* Fix unit test

Signed-off-by: tinker-michaelj <michael.tinker@hedera.com>

* Fix all unit tests, remove dead code

Signed-off-by: tinker-michaelj <michael.tinker@hedera.com>

* Fix code smells

Signed-off-by: tinker-michaelj <michael.tinker@hedera.com>

Co-authored-by: Stoyan Panayotov <stoyan.panayotov@limechain.tech>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Neeha <52669918+Neeharika-Sompalli@users.noreply.github.com>
Signed-off-by: anighanta <anirudh.ghanta@hedera.com>
Signed-off-by: tinker-michaelj <michael.tinker@hedera.com>
Signed-off-by: tinker-michaelj <michael.tinker@hedera.com>
Signed-off-by: tinker-michaelj <michael.tinker@hedera.com>
Signed-off-by: tinker-michaelj <michael.tinker@hedera.com>
@github-actions
Copy link

github-actions bot commented Mar 16, 2022

E2E Tests Results

    3 files  ±0      3 suites  ±0   1h 6m 11s ⏱️ + 2m 31s
    7 tests ±0      7 ✔️ ±0  0 💤 ±0  0 ±0 
236 runs   - 1  236 ✔️  - 1  0 💤 ±0  0 ±0 

Results for commit 00d13aa. ± Comparison against base commit ae3db58.

♻️ This comment has been updated with latest results.

Signed-off-by: anighanta <anirudh.ghanta@hedera.com>
Signed-off-by: anighanta <anirudh.ghanta@hedera.com>
@codecov
Copy link

codecov bot commented Mar 28, 2022

Codecov Report

Merging #2997 (00d13aa) into master (ae3db58) will increase coverage by 0.01%.
The diff coverage is 96.48%.

@@             Coverage Diff              @@
##             master    #2997      +/-   ##
============================================
+ Coverage     96.22%   96.24%   +0.01%     
+ Complexity    10433    10413      -20     
============================================
  Files           723      721       -2     
  Lines         28871    28890      +19     
  Branches       3063     3068       +5     
============================================
+ Hits          27781    27804      +23     
+ Misses          520      507      -13     
- Partials        570      579       +9     
Impacted Files Coverage Δ
...java/com/hedera/services/ledger/TransferLogic.java 91.91% <ø> (ø)
...dera/services/ledger/backing/BackingTokenRels.java 94.73% <ø> (ø)
...a/com/hedera/services/store/tokens/TokenStore.java 80.76% <ø> (ø)
...vices/txns/crypto/CryptoCreateTransitionLogic.java 95.08% <ø> (-0.24%) ⬇️
...vices/txns/crypto/CryptoUpdateTransitionLogic.java 96.25% <ø> (-0.14%) ⬇️
...ces/state/exports/SignedStateBalancesExporter.java 95.72% <80.00%> (-0.95%) ⬇️
...n/java/com/hedera/services/store/models/Token.java 96.33% <84.61%> (-0.59%) ⬇️
...vices/fees/calculation/utils/OpUsageCtxHelper.java 95.61% <86.66%> (-3.49%) ⬇️
...a/services/state/expiry/renewal/RenewalHelper.java 96.62% <94.11%> (+0.66%) ⬆️
...dera/services/state/merkle/MerkleAccountState.java 97.87% <94.44%> (+0.16%) ⬆️
... and 49 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ae3db58...00d13aa. Read the comment docs.

Signed-off-by: anighanta <anirudh.ghanta@hedera.com>
Copy link
Collaborator

@tinker-michaelj tinker-michaelj left a comment

Choose a reason for hiding this comment

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

LGTM

@anighanta anighanta merged commit 6c62b3d into master Mar 29, 2022
@anighanta anighanta deleted the 02917-M-HIP367 branch March 29, 2022 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants