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

Precompile events - Fee Config #967

Merged
merged 56 commits into from
Dec 21, 2023
Merged

Precompile events - Fee Config #967

merged 56 commits into from
Dec 21, 2023

Conversation

abi87
Copy link
Contributor

@abi87 abi87 commented Oct 23, 2023

Why this should be merged

Adds event to set fee config function.

How this works

Adds new Event to ABI and regenerated with the precompile generation tool.

event FeeConfigChanged(address indexed sender, FeeConfig oldFeeConfig, FeeConfig newFeeConfig);

Increases total gas cost by 45221 (base event gas, reading old fee config from statedb, 2 topics gas, 512-byte unindexed data)

How this was tested

Added UT and hardhat tests.

How is this documented

Will be documented with other Durango changes

ceyonur and others added 30 commits September 6, 2023 16:31
* override network upgrades

* genesis network upgrades defaults

* fix conflicts

* Update plugin/evm/vm.go
Co-authored-by: Darioush Jalali <darioush.jalali@avalabs.org>
Signed-off-by: Ceyhun Onur <ceyhunonur54@gmail.com>
Co-authored-by: aaronbuchwald <aaron.buchwald56@gmail.com>
Signed-off-by: Ceyhun Onur <ceyhunonur54@gmail.com>
@ceyonur ceyonur marked this pull request as ready for review December 12, 2023 22:20
@ceyonur ceyonur added this to the v0.5.11 milestone Dec 14, 2023
contracts/test/fee_manager.ts Outdated Show resolved Hide resolved
precompile/contracts/feemanager/contract.go Show resolved Hide resolved
precompile/contracts/feemanager/contract.go Outdated Show resolved Hide resolved
precompile/contracts/feemanager/contract.go Outdated Show resolved Hide resolved
precompile/contracts/feemanager/contract_test.go Outdated Show resolved Hide resolved
precompile/contracts/feemanager/contract_test.go Outdated Show resolved Hide resolved
precompile/contracts/feemanager/event.go Outdated Show resolved Hide resolved
ceyonur and others added 7 commits December 15, 2023 17:26
Signed-off-by: Ceyhun Onur <ceyhun.onur@avalabs.org>
Co-authored-by: aaronbuchwald <aaron.buchwald56@gmail.com>
Signed-off-by: Ceyhun Onur <ceyhunonur54@gmail.com>
Base automatically changed from precompile-events-template to master December 18, 2023 18:14
@ceyonur ceyonur enabled auto-merge (squash) December 18, 2023 23:37
contracts/test/fee_manager.ts Outdated Show resolved Hide resolved
contracts/test/fee_manager.ts Show resolved Hide resolved
precompile/contracts/feemanager/contract_test.go Outdated Show resolved Hide resolved
ceyonur and others added 3 commits December 19, 2023 10:30
Co-authored-by: Darioush Jalali <darioush.jalali@avalabs.org>
Signed-off-by: Ceyhun Onur <ceyhunonur54@gmail.com>
@ceyonur ceyonur merged commit 42dbc62 into master Dec 21, 2023
8 checks passed
@ceyonur ceyonur deleted the precompile-events-fee-config branch December 21, 2023 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Status: Backlog 🗄
Development

Successfully merging this pull request may close these issues.

4 participants