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

Remove all FCOneToManyRelation use and update EETs to only verify NOT… #2962

Merged
merged 4 commits into from
Mar 10, 2022

Conversation

tinker-michaelj
Copy link
Collaborator

Description:

< moment of silence >

tinker-michaelj added 2 commits March 10, 2022 11:45
…_SUPPORTED

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

codecov bot commented Mar 10, 2022

Codecov Report

Merging #2962 (3a3b47f) into master (abfdeb2) will decrease coverage by 0.03%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #2962      +/-   ##
============================================
- Coverage     96.16%   96.13%   -0.04%     
+ Complexity    10523    10310     -213     
============================================
  Files           731      718      -13     
  Lines         29217    28668     -549     
  Branches       3089     3029      -60     
============================================
- Hits          28096    27559     -537     
  Misses          530      530              
+ Partials        591      579      -12     
Impacted Files Coverage Δ
...c/main/java/com/hedera/services/ServicesState.java 98.30% <ø> (-0.03%) ⬇️
.../hedera/services/context/MutableStateChildren.java 96.47% <ø> (-0.70%) ⬇️
...hedera/services/context/init/ServicesInitFlow.java 100.00% <ø> (ø)
...services/context/init/StoreInitializationFlow.java 100.00% <ø> (ø)
.../hedera/services/context/primitives/StateView.java 96.11% <ø> (+0.71%) ⬆️
...rvices/context/properties/BootstrapProperties.java 98.46% <ø> (-0.01%) ⬇️
...rvices/fees/calculation/token/TokenFeesModule.java 100.00% <ø> (ø)
...era/services/ledger/AccountsCommitInterceptor.java 95.00% <ø> (ø)
...java/com/hedera/services/ledger/EntityChanges.java 100.00% <ø> (ø)
.../java/com/hedera/services/ledger/LedgerModule.java 100.00% <ø> (ø)
... and 17 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 abfdeb2...3a3b47f. Read the comment docs.

@github-actions
Copy link

github-actions bot commented Mar 10, 2022

E2E Tests Results

    3 files  ±0      3 suites  ±0   1h 1m 57s ⏱️ + 5m 28s
    7 tests ±0      7 ✔️ ±0  0 💤 ±0  0 ±0 
235 runs  ±0  235 ✔️ ±0  0 💤 ±0  0 ±0 

Results for commit 3a3b47f. ± Comparison against base commit abfdeb2.

♻️ This comment has been updated with latest results.

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

Signed-off-by: tinker-michaelj <michael.tinker@hedera.com>
@tinker-michaelj tinker-michaelj merged commit ac8741f into master Mar 10, 2022
@tinker-michaelj tinker-michaelj deleted the permanent-sans-fcotmr branch March 10, 2022 22:59
anighanta pushed a commit that referenced this pull request Mar 15, 2022
)

* 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>
anighanta added a commit that referenced this pull request Mar 16, 2022
* initial commit

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

* port away from MerkleAccountTokens

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

* feature complete.. need unit tests

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

* address code smells

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

* fix HTSPrecompiledContract with the right assocationLogic

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

* add unit tests

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

* add more unit tests

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

* eet for demo

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

* remove assocaition limit on token per account and getAccountInfo query should only return the next 1000 assocaitions

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

* comment out irrelevant specs

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

* handle empty ids array

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

* remove irrelevant unit tests

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

* only persist the tokenIdsIndex on the acutal getInfo query

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

* add a limit of 1 token association to prove the limit doenst mean a thing anymore

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

* make account getInfo query only return the first n token association in the getInfo query on an account/contract where n is dynamic prop

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

* address code smells

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

* remove dead code

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

* add more unit tests

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

* add even more unit tests

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

* remove irrelevant eet specs

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

* add back the deleted MerkleAccountTokens for backward compatibility until the next release

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

* update the MerkleAccount back to having tokens but dont use them anywhere and during migrations update the links in MapValuedLinkedList

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

* add unit test for migration of MerkleAccountTokens to mapValuedLinkedList

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

* fixed the euqality check for migrating MerkleAccountTokens to mapValuedLinkedList

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

* add asserts to getInfo for validating we only give out tokenAssocaitions limited by the setting tokens.maxPerAccount

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

* remove commented out irrelavent tests and fix dissocaition workflow to use tokenRelations from a  instaed of loading it again

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

* address review comments

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

* resolve code smells

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

* initial commit

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

* skip vlaidating zero token balances on account delete transaction

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

* add missing imports

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

* use MerkleAccount getter instead of MerkleAccountState ones

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

* update zeroBalance token assocaitions count on burn, mint and wipe actions as well

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

* added unit tests

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

* fix failing unit tests

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

* added back the token balance check on crypotDelete transaction

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

* add unit test coverage on servicesState

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

* only decrement numZeroBalance when dissociating if the association balance is zero

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

* move updating the association and zeroBalance counter to before updating relationships for dissociation

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

* fix comparing alias address

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

* address review comments

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

* Resolve merge conflicts, maximize reuse of `doBoundedIteration()` (#2984)

* 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>

* Add javadoc and unit tests

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

* Remove unnecessary object creation in doBoundedIteration

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

* Be more idiomatic

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

* Remove dead code

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

Co-authored-by: Michael Tinker <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>
rjuang pushed a commit that referenced this pull request Mar 23, 2022
…OT… (#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>
Signed-off-by: Ray Juang <radford.juang@hedera.com>
rjuang pushed a commit that referenced this pull request Mar 23, 2022
* initial commit

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

* port away from MerkleAccountTokens

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

* feature complete.. need unit tests

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

* address code smells

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

* fix HTSPrecompiledContract with the right assocationLogic

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

* add unit tests

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

* add more unit tests

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

* eet for demo

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

* remove assocaition limit on token per account and getAccountInfo query should only return the next 1000 assocaitions

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

* comment out irrelevant specs

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

* handle empty ids array

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

* remove irrelevant unit tests

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

* only persist the tokenIdsIndex on the acutal getInfo query

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

* add a limit of 1 token association to prove the limit doenst mean a thing anymore

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

* make account getInfo query only return the first n token association in the getInfo query on an account/contract where n is dynamic prop

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

* address code smells

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

* remove dead code

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

* add more unit tests

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

* add even more unit tests

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

* remove irrelevant eet specs

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

* add back the deleted MerkleAccountTokens for backward compatibility until the next release

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

* update the MerkleAccount back to having tokens but dont use them anywhere and during migrations update the links in MapValuedLinkedList

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

* add unit test for migration of MerkleAccountTokens to mapValuedLinkedList

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

* fixed the euqality check for migrating MerkleAccountTokens to mapValuedLinkedList

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

* add asserts to getInfo for validating we only give out tokenAssocaitions limited by the setting tokens.maxPerAccount

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

* remove commented out irrelavent tests and fix dissocaition workflow to use tokenRelations from a  instaed of loading it again

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

* address review comments

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

* resolve code smells

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

* initial commit

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

* skip vlaidating zero token balances on account delete transaction

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

* add missing imports

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

* use MerkleAccount getter instead of MerkleAccountState ones

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

* update zeroBalance token assocaitions count on burn, mint and wipe actions as well

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

* added unit tests

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

* fix failing unit tests

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

* added back the token balance check on crypotDelete transaction

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

* add unit test coverage on servicesState

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

* only decrement numZeroBalance when dissociating if the association balance is zero

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

* move updating the association and zeroBalance counter to before updating relationships for dissociation

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

* fix comparing alias address

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

* address review comments

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

* Resolve merge conflicts, maximize reuse of `doBoundedIteration()` (#2984)

* 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>

* Add javadoc and unit tests

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

* Remove unnecessary object creation in doBoundedIteration

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

* Be more idiomatic

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

* Remove dead code

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

Co-authored-by: Michael Tinker <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>
rjuang pushed a commit that referenced this pull request Mar 23, 2022
…OT… (#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>
Signed-off-by: Ray Juang <radford.juang@hedera.com>
rjuang pushed a commit that referenced this pull request Mar 23, 2022
* initial commit

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

* port away from MerkleAccountTokens

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

* feature complete.. need unit tests

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

* address code smells

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

* fix HTSPrecompiledContract with the right assocationLogic

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

* add unit tests

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

* add more unit tests

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

* eet for demo

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

* remove assocaition limit on token per account and getAccountInfo query should only return the next 1000 assocaitions

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

* comment out irrelevant specs

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

* handle empty ids array

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

* remove irrelevant unit tests

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

* only persist the tokenIdsIndex on the acutal getInfo query

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

* add a limit of 1 token association to prove the limit doenst mean a thing anymore

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

* make account getInfo query only return the first n token association in the getInfo query on an account/contract where n is dynamic prop

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

* address code smells

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

* remove dead code

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

* add more unit tests

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

* add even more unit tests

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

* remove irrelevant eet specs

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

* add back the deleted MerkleAccountTokens for backward compatibility until the next release

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

* update the MerkleAccount back to having tokens but dont use them anywhere and during migrations update the links in MapValuedLinkedList

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

* add unit test for migration of MerkleAccountTokens to mapValuedLinkedList

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

* fixed the euqality check for migrating MerkleAccountTokens to mapValuedLinkedList

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

* add asserts to getInfo for validating we only give out tokenAssocaitions limited by the setting tokens.maxPerAccount

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

* remove commented out irrelavent tests and fix dissocaition workflow to use tokenRelations from a  instaed of loading it again

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

* address review comments

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

* resolve code smells

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

* initial commit

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

* skip vlaidating zero token balances on account delete transaction

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

* add missing imports

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

* use MerkleAccount getter instead of MerkleAccountState ones

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

* update zeroBalance token assocaitions count on burn, mint and wipe actions as well

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

* added unit tests

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

* fix failing unit tests

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

* added back the token balance check on crypotDelete transaction

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

* add unit test coverage on servicesState

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

* only decrement numZeroBalance when dissociating if the association balance is zero

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

* move updating the association and zeroBalance counter to before updating relationships for dissociation

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

* fix comparing alias address

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

* address review comments

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

* Resolve merge conflicts, maximize reuse of `doBoundedIteration()` (#2984)

* 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>

* Add javadoc and unit tests

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

* Remove unnecessary object creation in doBoundedIteration

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

* Be more idiomatic

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

* Remove dead code

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

Co-authored-by: Michael Tinker <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: Ray Juang <radford.juang@hedera.com>
rjuang pushed a commit that referenced this pull request Mar 23, 2022
…OT… (#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>
rjuang pushed a commit that referenced this pull request Mar 23, 2022
* initial commit

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

* port away from MerkleAccountTokens

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

* feature complete.. need unit tests

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

* address code smells

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

* fix HTSPrecompiledContract with the right assocationLogic

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

* add unit tests

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

* add more unit tests

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

* eet for demo

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

* remove assocaition limit on token per account and getAccountInfo query should only return the next 1000 assocaitions

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

* comment out irrelevant specs

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

* handle empty ids array

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

* remove irrelevant unit tests

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

* only persist the tokenIdsIndex on the acutal getInfo query

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

* add a limit of 1 token association to prove the limit doenst mean a thing anymore

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

* make account getInfo query only return the first n token association in the getInfo query on an account/contract where n is dynamic prop

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

* address code smells

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

* remove dead code

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

* add more unit tests

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

* add even more unit tests

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

* remove irrelevant eet specs

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

* add back the deleted MerkleAccountTokens for backward compatibility until the next release

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

* update the MerkleAccount back to having tokens but dont use them anywhere and during migrations update the links in MapValuedLinkedList

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

* add unit test for migration of MerkleAccountTokens to mapValuedLinkedList

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

* fixed the euqality check for migrating MerkleAccountTokens to mapValuedLinkedList

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

* add asserts to getInfo for validating we only give out tokenAssocaitions limited by the setting tokens.maxPerAccount

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

* remove commented out irrelavent tests and fix dissocaition workflow to use tokenRelations from a  instaed of loading it again

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

* address review comments

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

* resolve code smells

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

* initial commit

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

* skip vlaidating zero token balances on account delete transaction

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

* add missing imports

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

* use MerkleAccount getter instead of MerkleAccountState ones

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

* update zeroBalance token assocaitions count on burn, mint and wipe actions as well

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

* added unit tests

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

* fix failing unit tests

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

* added back the token balance check on crypotDelete transaction

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

* add unit test coverage on servicesState

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

* only decrement numZeroBalance when dissociating if the association balance is zero

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

* move updating the association and zeroBalance counter to before updating relationships for dissociation

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

* fix comparing alias address

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

* address review comments

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

* Resolve merge conflicts, maximize reuse of `doBoundedIteration()` (#2984)

* 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>

* Add javadoc and unit tests

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

* Remove unnecessary object creation in doBoundedIteration

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

* Be more idiomatic

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

* Remove dead code

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

Co-authored-by: Michael Tinker <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>
anighanta added a commit that referenced this pull request Mar 29, 2022
* initial commit

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

* port away from MerkleAccountTokens

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

* feature complete.. need unit tests

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

* address code smells

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

* fix HTSPrecompiledContract with the right assocationLogic

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

* add unit tests

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

* add more unit tests

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

* eet for demo

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

* remove assocaition limit on token per account and getAccountInfo query should only return the next 1000 assocaitions

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

* comment out irrelevant specs

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

* handle empty ids array

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

* remove irrelevant unit tests

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

* only persist the tokenIdsIndex on the acutal getInfo query

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

* add a limit of 1 token association to prove the limit doenst mean a thing anymore

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

* make account getInfo query only return the first n token association in the getInfo query on an account/contract where n is dynamic prop

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

* address code smells

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

* remove dead code

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

* add more unit tests

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

* add even more unit tests

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

* remove irrelevant eet specs

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

* add back the deleted MerkleAccountTokens for backward compatibility until the next release

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

* update the MerkleAccount back to having tokens but dont use them anywhere and during migrations update the links in MapValuedLinkedList

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

* add unit test for migration of MerkleAccountTokens to mapValuedLinkedList

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

* fixed the euqality check for migrating MerkleAccountTokens to mapValuedLinkedList

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

* add asserts to getInfo for validating we only give out tokenAssocaitions limited by the setting tokens.maxPerAccount

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

* remove commented out irrelavent tests and fix dissocaition workflow to use tokenRelations from a  instaed of loading it again

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

* address review comments

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

* resolve code smells

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

* initial commit

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

* skip vlaidating zero token balances on account delete transaction

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

* add missing imports

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

* use MerkleAccount getter instead of MerkleAccountState ones

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

* update zeroBalance token assocaitions count on burn, mint and wipe actions as well

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

* added unit tests

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

* fix failing unit tests

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

* added back the token balance check on crypotDelete transaction

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

* add unit test coverage on servicesState

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

* only decrement numZeroBalance when dissociating if the association balance is zero

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

* move updating the association and zeroBalance counter to before updating relationships for dissociation

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

* fix comparing alias address

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

* address review comments

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

* Resolve merge conflicts, maximize reuse of `doBoundedIteration()` (#2984)

* 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>

* Add javadoc and unit tests

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

* Remove unnecessary object creation in doBoundedIteration

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

* Be more idiomatic

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

* Remove dead code

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

* merge master

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

* fix unit test

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

Co-authored-by: Michael Tinker <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>
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.

1 participant