From ca7d2f94856cb8740088cebd219099f76b4957cf Mon Sep 17 00:00:00 2001 From: Sha3n Date: Thu, 6 Jul 2023 19:24:54 +0800 Subject: [PATCH 1/3] [R4R] - {0.4.2}: fix dtl sync data bug (#1258) (#1260) fix dtl sync data bug (#1258) Co-authored-by: Shijiang Guo Co-authored-by: Raymond <6427270+wukongcheng@users.noreply.github.com> --- .../data-transport-layer/src/services/da-ingestion/service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/data-transport-layer/src/services/da-ingestion/service.ts b/packages/data-transport-layer/src/services/da-ingestion/service.ts index 9bba0ed48..bb579a185 100644 --- a/packages/data-transport-layer/src/services/da-ingestion/service.ts +++ b/packages/data-transport-layer/src/services/da-ingestion/service.ts @@ -420,7 +420,7 @@ export class DaIngestionService extends BaseService { let origin = null if (batchTx['TxMeta']['queueIndex'] != null) { const latestEnqueue = await this.state.db.getLatestEnqueue() - if (latestEnqueue.index > batchTx['TxMeta']['queueIndex']) { + if (latestEnqueue.index >= batchTx['TxMeta']['queueIndex']) { this.logger.info('get queue index from da and l1(EigenLayer)', { lastestEnqueue: latestEnqueue.index, queueIndex: batchTx['TxMeta']['queueIndex'], From 039af023c6cabaa5a10f553d1be1c9347eac2882 Mon Sep 17 00:00:00 2001 From: sha3n Date: Mon, 10 Jul 2023 17:40:07 +0800 Subject: [PATCH 2/3] changelog-v0.4.2 --- CHANGELOG.md | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index c9374ebd5..51fd35119 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,49 @@ # Changelog +## [v0.4.2](https://github.com/mantlenetworkio/mantle/commits/v0.4.2) - 2023-07-10 + +### Features +- Gas Oracle + - Add additional sources for exchange rates and optimize the calculation method for token ratio([#1014](https://github.com/mantlenetworkio/mantle/pull/1014),[#1108](https://github.com/mantlenetworkio/mantle/pull/1108)) + - Improve metrics monitoring([#1102](https://github.com/mantlenetworkio/mantle/pull/1102)) + - Added a strategy of real-time adjustment of layer1 overhead based on rollup capacity, to obtain a lower tx fee experience([#926](https://github.com/mantlenetworkio/mantle/pull/926)) +- L2 Fee Calculation + - Support L2 fee collection, optimize the method for setting L2 gas price and allow for floating within a certain range([#1144](https://github.com/mantlenetworkio/mantle/pull/1144)) +- Upgrade Framework + - Enhance the upgrade framework of l2geth to support management of upgrade heights across different networks([#1007](https://github.com/mantlenetworkio/mantle/pull/1007)) +- Batch Submitter + - Expose Tss expected response with metric data, enrich handle logics for unexpected case, enrich control workflow([#1107](https://github.com/mantlenetworkio/mantle/pull/1107)) +- L2geth + - Support debug api debug_traceCall([#940](https://github.com/mantlenetworkio/mantle/pull/940)) + +### Bug Fixes +- Fix issues of missing permission verification in contract([#1118](https://github.com/mantlenetworkio/mantle/pull/1118)) +- Fix issues of unreasonable contract naming convention([#1095](https://github.com/mantlenetworkio/mantle/pull/1095)) +- Fix smart contract related bugs in audit reports([#1043](https://github.com/mantlenetworkio/mantle/pull/1043), [#1138](https://github.com/mantlenetworkio/mantle/pull/1138)) +- Adjust checking strategies for staker staking of MantleDa contracts([#1120](https://github.com/mantlenetworkio/mantle/pull/1120), [#1103](https://github.com/mantlenetworkio/mantle/pull/1103)) +- Code optimization for batch-submitter, dtl and mt-batcher([#1063](https://github.com/mantlenetworkio/mantle/pull/1063), [#1045](https://github.com/mantlenetworkio/mantle/pull/1045), [#1043](https://github.com/mantlenetworkio/mantle/pull/1043)) +- Add permission verification to tss http api([#854](https://github.com/mantlenetworkio/mantle/pull/854)) +- Fixed the issue in the process of generating the aggregate public key([#1196](https://github.com/mantlenetworkio/mantle/pull/1196)) +- Resolved a bug in the TSS node where block retrieval failed during verification([#1196](https://github.com/mantlenetworkio/mantle/pull/1196)) +- Enhance the documentation for Mantle([#1190](https://github.com/mantlenetworkio/mantle/pull/1190)) +- Optimize the configuration for deploying TSS staking([#1157](https://github.com/mantlenetworkio/mantle/pull/1157)) +- Address and resolve the bug in the DTL Datastore([#1164](https://github.com/mantlenetworkio/mantle/pull/1164)) +- Improve the resolution of DTL transaction status([#1163](https://github.com/mantlenetworkio/mantle/pull/1163)) +- Enhance the measurement of parameterized gasUsed within GasOracle system([#1185](https://github.com/mantlenetworkio/mantle/pull/1185)) +- Incorporate mainnet deployment into the implementation configration directory([#1166](https://github.com/mantlenetworkio/mantle/pull/1166)) +- Upgrade the @mantleio/contracts package version to new release([#1155](https://github.com/mantlenetworkio/mantle/pull/1155)) +- Fixed a bug in DTL data synchronization, ensuring accurate and reliable data transfer, resolving data inconsistency issues([#1258](https://github.com/mantlenetworkio/mantle/pull/1258), [#1250](https://github.com/mantlenetworkio/mantle/pull/1250)) +- Updated the link for Optimism repository, providing an up-to-date and relevant resource([#1255](https://github.com/mantlenetworkio/mantle/pull/1255)) +- Removed outdated description in README, streamlining and improving clarity in the documentation([#1252](https://github.com/mantlenetworkio/mantle/pull/1252)) +- Fixed the contract logic in BVM_EigenDataLayrChain, updated the deployment process for EigenDataLayrChain([#1215](https://github.com/mantlenetworkio/mantle/pull/1215), [#1223](https://github.com/mantlenetworkio/mantle/pull/1223)) +- Updated the addresses for mainnet contracts in SDK, ensuring accurate and reliable contract interactions([#1247](https://github.com/mantlenetworkio/mantle/pull/1247)) +- Bugfix and upgrade for the DA tool, resolving issues and improving functionality([#1240](https://github.com/mantlenetworkio/mantle/pull/1240)) +- Updated gasoracle metrics by adjusting the metrics port configuration([#1246](https://github.com/mantlenetworkio/mantle/pull/1246)) +- Bugfix for transaction receipt unmarshaling, resolving issues related to data processing([#1236](https://github.com/mantlenetworkio/mantle/pull/1236)) +- Hotfix for verifer sync range, addressing synchronization issues and improving data consistency([#1213](https://github.com/mantlenetworkio/mantle/pull/1213)) +- Fixed the contract logic in BVM_EigenDataLayrChain, improving functionality and resolving issues([#1203](https://github.com/mantlenetworkio/mantle/pull/1203)) + + ## [v0.4.2-beta.0](https://github.com/mantlenetworkio/mantle/commits/v0.4.2-beta.0) - 2023-06-30 ### Bug Fixes From 7a5a53d09384269829f23d6f2fc7cb587fe89b44 Mon Sep 17 00:00:00 2001 From: sha3n Date: Mon, 10 Jul 2023 18:06:02 +0800 Subject: [PATCH 3/3] update v0.4.2 change log --- CHANGELOG.md | 30 ++++++++++++++++++------------ 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 51fd35119..69ed8744d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ - Add additional sources for exchange rates and optimize the calculation method for token ratio([#1014](https://github.com/mantlenetworkio/mantle/pull/1014),[#1108](https://github.com/mantlenetworkio/mantle/pull/1108)) - Improve metrics monitoring([#1102](https://github.com/mantlenetworkio/mantle/pull/1102)) - Added a strategy of real-time adjustment of layer1 overhead based on rollup capacity, to obtain a lower tx fee experience([#926](https://github.com/mantlenetworkio/mantle/pull/926)) + - Enhance the measurement of parameterized gasUsed within GasOracle system([#1185](https://github.com/mantlenetworkio/mantle/pull/1185)) - L2 Fee Calculation - Support L2 fee collection, optimize the method for setting L2 gas price and allow for floating within a certain range([#1144](https://github.com/mantlenetworkio/mantle/pull/1144)) - Upgrade Framework @@ -15,28 +16,33 @@ - Expose Tss expected response with metric data, enrich handle logics for unexpected case, enrich control workflow([#1107](https://github.com/mantlenetworkio/mantle/pull/1107)) - L2geth - Support debug api debug_traceCall([#940](https://github.com/mantlenetworkio/mantle/pull/940)) +- DA + - Adjust checking strategies for staker staking of MantleDa contracts([#1120](https://github.com/mantlenetworkio/mantle/pull/1120), [#1103](https://github.com/mantlenetworkio/mantle/pull/1103)) + - Code optimization for batch-submitter, dtl and mt-batcher([#1063](https://github.com/mantlenetworkio/mantle/pull/1063), [#1045](https://github.com/mantlenetworkio/mantle/pull/1045), [#1043](https://github.com/mantlenetworkio/mantle/pull/1043)) +- TSS + - Add permission verification to tss http api([#854](https://github.com/mantlenetworkio/mantle/pull/854)) + - Optimize the configuration for deploying TSS staking([#1157](https://github.com/mantlenetworkio/mantle/pull/1157)) +- DTL + - Improve the resolution of DTL transaction status([#1163](https://github.com/mantlenetworkio/mantle/pull/1163)) +- Packages + - Updated the addresses for mainnet contracts in SDK, ensuring accurate and reliable contract interactions([#1247](https://github.com/mantlenetworkio/mantle/pull/1247)) + - Upgrade the @mantleio/contracts package version to new release([#1155](https://github.com/mantlenetworkio/mantle/pull/1155)) +- Documents + - Enhance the documentation for Mantle([#1190](https://github.com/mantlenetworkio/mantle/pull/1190)) + - Removed outdated description in README, streamlining and improving clarity in the documentation([#1252](https://github.com/mantlenetworkio/mantle/pull/1252)) + - Updated the link for Optimism repository, providing an up-to-date and relevant resource([#1255](https://github.com/mantlenetworkio/mantle/pull/1255)) +- Configurations + - Incorporate mainnet deployment into the implementation configration directory([#1166](https://github.com/mantlenetworkio/mantle/pull/1166)) ### Bug Fixes - Fix issues of missing permission verification in contract([#1118](https://github.com/mantlenetworkio/mantle/pull/1118)) - Fix issues of unreasonable contract naming convention([#1095](https://github.com/mantlenetworkio/mantle/pull/1095)) - Fix smart contract related bugs in audit reports([#1043](https://github.com/mantlenetworkio/mantle/pull/1043), [#1138](https://github.com/mantlenetworkio/mantle/pull/1138)) -- Adjust checking strategies for staker staking of MantleDa contracts([#1120](https://github.com/mantlenetworkio/mantle/pull/1120), [#1103](https://github.com/mantlenetworkio/mantle/pull/1103)) -- Code optimization for batch-submitter, dtl and mt-batcher([#1063](https://github.com/mantlenetworkio/mantle/pull/1063), [#1045](https://github.com/mantlenetworkio/mantle/pull/1045), [#1043](https://github.com/mantlenetworkio/mantle/pull/1043)) -- Add permission verification to tss http api([#854](https://github.com/mantlenetworkio/mantle/pull/854)) - Fixed the issue in the process of generating the aggregate public key([#1196](https://github.com/mantlenetworkio/mantle/pull/1196)) - Resolved a bug in the TSS node where block retrieval failed during verification([#1196](https://github.com/mantlenetworkio/mantle/pull/1196)) -- Enhance the documentation for Mantle([#1190](https://github.com/mantlenetworkio/mantle/pull/1190)) -- Optimize the configuration for deploying TSS staking([#1157](https://github.com/mantlenetworkio/mantle/pull/1157)) - Address and resolve the bug in the DTL Datastore([#1164](https://github.com/mantlenetworkio/mantle/pull/1164)) -- Improve the resolution of DTL transaction status([#1163](https://github.com/mantlenetworkio/mantle/pull/1163)) -- Enhance the measurement of parameterized gasUsed within GasOracle system([#1185](https://github.com/mantlenetworkio/mantle/pull/1185)) -- Incorporate mainnet deployment into the implementation configration directory([#1166](https://github.com/mantlenetworkio/mantle/pull/1166)) -- Upgrade the @mantleio/contracts package version to new release([#1155](https://github.com/mantlenetworkio/mantle/pull/1155)) - Fixed a bug in DTL data synchronization, ensuring accurate and reliable data transfer, resolving data inconsistency issues([#1258](https://github.com/mantlenetworkio/mantle/pull/1258), [#1250](https://github.com/mantlenetworkio/mantle/pull/1250)) -- Updated the link for Optimism repository, providing an up-to-date and relevant resource([#1255](https://github.com/mantlenetworkio/mantle/pull/1255)) -- Removed outdated description in README, streamlining and improving clarity in the documentation([#1252](https://github.com/mantlenetworkio/mantle/pull/1252)) - Fixed the contract logic in BVM_EigenDataLayrChain, updated the deployment process for EigenDataLayrChain([#1215](https://github.com/mantlenetworkio/mantle/pull/1215), [#1223](https://github.com/mantlenetworkio/mantle/pull/1223)) -- Updated the addresses for mainnet contracts in SDK, ensuring accurate and reliable contract interactions([#1247](https://github.com/mantlenetworkio/mantle/pull/1247)) - Bugfix and upgrade for the DA tool, resolving issues and improving functionality([#1240](https://github.com/mantlenetworkio/mantle/pull/1240)) - Updated gasoracle metrics by adjusting the metrics port configuration([#1246](https://github.com/mantlenetworkio/mantle/pull/1246)) - Bugfix for transaction receipt unmarshaling, resolving issues related to data processing([#1236](https://github.com/mantlenetworkio/mantle/pull/1236))