github hashgraph/hedera-mirror-node v0.45.0

latest releases: v0.118.0, v0.117.1, v0.118.0-rc1...
2 years ago

The mirror node now captures the full history of changes that occur to accounts and contracts over time. Prior to this, the mirror node would only maintain the current state of a Hedera entity. With this change, all create, update and delete transaction that occur for an entity will cause a snapshot to be created to represent how it appeared at each of those points in time. This information can be used to query the API for an entity at a particular consensus timestamp in the past.

Currently, this historical lookup option is only supported on the contracts REST API. For example, you can now search for /api/v1/contracts/0.0.1000?timestamp=lte:1609480800 to see the state of the contract 0.0.1000 on January 1st, 2021. Related to contracts, we added new acceptance tests for contract related APIs. The design document was updated to detail new APIs that we are proposing to implement. Those changes are also detailed in Hedera Improvement Proposals (HIPs) for contract results and contract execution logs REST APIs. Please take a look and let us know if you have any feedback.

On the CitusDB front, we continue to make progress. All of our reference tables are now removed in favor of database or application enums. This should help improve performance and streamline the database migration. We've updated our test harness to use the latest version of CitusDB that uses PostgreSQL 14. Finally, we now create distributed tables with entity IDs used as distribution columns for partitioning and co-locate them with other tables as appropriate.

The Rosetta API also saw some improvements including the ability to create accounts online in /construction/submit. An issue with token balance reconciliation was also addressed.

Enhancements

  • Update Contract gas and Transaction memo set logic (0.45) #2897
  • Support CryptoCreateTransaction in Rosetta #2875
  • Rosetta support CryptoCreateTransaction in Construction API #2860
  • Populate contract and entity history #2840
  • Entity table distribution columns #2839
  • Update smart contract design w support for additional APIs #2838
  • Bump node to the latest LTS v16.13.0 #2829
  • Rename TransactionTypeEnum to TransactionType #2827
  • Add a ROSETTA_CLI_VERSION env variable #2807
  • Bump versions for v0.45.0-SNAPSHOT #2801
  • Refactor PgCopy to BatchPersister #2796
  • Remove transaction types table #2791
  • Contract and File acceptance tests #2790
  • Add NotifyingTopicListener Support for Citus w PG 14 #2771
  • Citus: Upgrade to PG 14 #2769
  • Smart contract acceptance tests #2729
  • Research alternative contract APIs #2721
  • Populate entity history #2687
  • Citus: Adopt entity_id distribution key across entity related tables #2680
  • Replace reference tables with enums #1968

Bug Fixes

  • Shorten AccountCreateTransaction memo length (0.45) #2891
  • Fix rosetta token balance reconciliation for deleted account #2859
  • Remove V1.46.4 migration #2834
  • Remove contract.parent_id #2833
  • Fix accounts query missing balance info with publickey filter #2828
  • Fix obtainer ID not being set on contract deletion #2805
  • Set contract obtainerId on ContractDelete #2804
  • Fix rosetta get genesis balance script #2803
  • Rosetta fails in non fungible token balance reconciliation #2802
  • Rosetta fails on fungible token balance reconciliation for deleted accounts #2793
  • accounts query filtered by publickey may show incorrect balance #2759

Dependency Upgrades

  • Bump commons-beanutils from 1.7.0 to 1.9.4 in /hedera-mirror-importer #2866
  • Bump eslint-config-prettier from 6.15.0 to 8.3.0 in /hedera-mirror-rest #2865
  • Bump aws-sdk from 2.1024.0 to 2.1029.0 in /hedera-mirror-rest #2864
  • Bump eslint-plugin-prettier from 3.4.1 to 4.0.0 in /hedera-mirror-rest #2858
  • Bump github.com/lib/pq from 1.10.3 to 1.10.4 in /hedera-mirror-rosetta #2857
  • Bump gorm.io/driver/postgres from 1.2.1 to 1.2.2 in /hedera-mirror-rosetta #2856
  • Bump gorm.io/gorm from 1.22.2 to 1.22.3 in /hedera-mirror-rosetta #2855
  • Bump eslint-plugin-import from 2.25.2 to 2.25.3 in /hedera-mirror-rest #2852
  • Bump software.amazon.awssdk:bom from 2.17.76 to 2.17.81 #2851
  • Bump testcontainers from 7.22.0 to 7.23.0 in /hedera-mirror-rest #2850
  • Bump docker-maven-plugin from 0.37.0 to 0.38.0 #2849
  • Bump prom-client from 13.2.0 to 14.0.1 in /hedera-mirror-rest #2848
  • Bump grpc.version from 1.42.0 to 1.42.1 #2847
  • Bump nodemon from 2.0.14 to 2.0.15 in /hedera-mirror-rest #2846
  • Bump dependency-check-maven from 6.3.1 to 6.5.0 #2845
  • Bump eslint-config-airbnb-base from 14.2.1 to 15.0.0 in /hedera-mirror-rest #2844
  • Bump http-errors from 1.8.0 to 1.8.1 in /hedera-mirror-rest/monitoring/monitor_apis #2842
  • Bump nodemon from 2.0.14 to 2.0.15 in /hedera-mirror-rest/monitoring/monitor_apis #2841
  • Bump eslint-plugin-jest from 25.2.3 to 25.2.4 in /hedera-mirror-rest #2824
  • Bump aws-sdk from 2.1018.0 to 2.1024.0 in /hedera-mirror-rest #2823
  • Bump github.com/coinbase/rosetta-sdk-go from 0.7.0 to 0.7.1 in /hedera-mirror-rosetta #2820
  • Bump github.com/hashgraph/hedera-sdk-go/v2 from 2.3.0 to 2.4.0 in /hedera-mirror-rosetta #2819
  • Bump mathjs from 9.5.1 to 10.0.0 in /hedera-mirror-rest #2818
  • Bump sinon from 11.1.2 to 12.0.1 in /hedera-mirror-rest #2817
  • Bump testcontainers from 7.21.0 to 7.22.0 in /hedera-mirror-rest #2816
  • Bump vertx-pg-client from 4.2.0 to 4.2.1 #2815
  • Bump eslint-plugin-jest from 25.2.2 to 25.2.3 in /hedera-mirror-rest #2813
  • Bump software.amazon.awssdk:bom from 2.17.71 to 2.17.76 #2812
  • Bump grpc.version from 1.41.0 to 1.42.0 #2811
  • Bump mathjs from 9.5.1 to 10.0.0 in /hedera-mirror-rest/monitoring/monitor_apis #2809

Contributors

We'd like to thank all the contributors who worked on this release!

Don't miss a new hedera-mirror-node release

NewReleases is sending notifications on new releases.