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 allow list #968

Merged
merged 63 commits into from
Dec 21, 2023
Merged

Precompile events allow list #968

merged 63 commits into from
Dec 21, 2023

Conversation

abi87
Copy link
Contributor

@abi87 abi87 commented Oct 25, 2023

Why this should be merged

Adds event to allow list functions.

How this works

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

event RoleSet(uint256 indexed role, address indexed account, address indexed sender, uint256 oldRole);

Increases total gas cost by 2131 (base event gas, 4 topics gas, 32-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>
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/contract_deployer_allow_list.ts Outdated Show resolved Hide resolved
contracts/test/tx_allow_list.ts Outdated Show resolved Hide resolved
precompile/allowlist/role.go Show resolved Hide resolved
precompile/allowlist/test_allowlist.go Outdated Show resolved Hide resolved
ceyonur and others added 3 commits December 19, 2023 10:49
Co-authored-by: Darioush Jalali <darioush.jalali@avalabs.org>
Signed-off-by: Ceyhun Onur <ceyhunonur54@gmail.com>
Co-authored-by: Darioush Jalali <darioush.jalali@avalabs.org>
Signed-off-by: Ceyhun Onur <ceyhunonur54@gmail.com>
darioush
darioush previously approved these changes Dec 19, 2023
contracts/contracts/interfaces/IAllowList.sol Show resolved Hide resolved
precompile/allowlist/event.go Show resolved Hide resolved
precompile/allowlist/allowlist.go Outdated Show resolved Hide resolved
@ceyonur ceyonur disabled auto-merge December 21, 2023 16:04
@ceyonur ceyonur merged commit e2615ac into master Dec 21, 2023
8 checks passed
@ceyonur ceyonur deleted the precompile-events-allow-list branch December 21, 2023 16:05
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.

Add events to existing precompiles
4 participants