Skip to content

Sovereign accounts and EVM system layer#76

Merged
dmitrylavrenov merged 11 commits intolocked/release-polkadot-v1.1.0from
evm-system
Oct 19, 2023
Merged

Sovereign accounts and EVM system layer#76
dmitrylavrenov merged 11 commits intolocked/release-polkadot-v1.1.0from
evm-system

Conversation

@dmitrylavrenov
Copy link

No description provided.

@dmitrylavrenov dmitrylavrenov changed the title Support own system logic Support soverign system logic Oct 12, 2023
@dmitrylavrenov dmitrylavrenov changed the title Support soverign system logic Support sovereign system logic Oct 12, 2023
@MOZGIII MOZGIII changed the title Support sovereign system logic Sovereign accounts and supporting system Oct 12, 2023
@MOZGIII MOZGIII changed the title Sovereign accounts and supporting system Sovereign accounts and EVM system Oct 12, 2023
@MOZGIII MOZGIII changed the title Sovereign accounts and EVM system Sovereign accounts and EVM system layer Oct 12, 2023
Copy link

@MOZGIII MOZGIII left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

dmitrylavrenov and others added 10 commits October 19, 2023 11:32
* Add initial impl of evm-system

* Check account existence

* Improve creation account logic

* Add new line

* Add default implementations

* Add mock

* Use DispatchResult instead of custom enums

* Basic create account tests

* Add simple tests with remove account and nonce update

* Remove default implementations for OnNewAccount and OnKilledAccount

* Add mock objects for OnNewAccount and OnKilledAccount

* Use mock logic in tests

* Some tests improvements

* Add docs to tests

* Check events in tests
Add try-runtime feature at pallet-evm-system
…stem` (#68)

Use sp_std library to add FromStr trait for tests at pallet-evm-system
Rename FullAccount into Account at pallet-evm-system
* Fix try_mutate_exists logic

* Add tests

* Fix AccountData type at mock

* Remove redundant mock expectations

* Add comments for new tests

* More explicitly handle (none,false) case

* Rename some_data back to maybe_account_data

* Add data changes for try_mutate_exists_fails_without_changes test

* Add try_mutate_exists_account_not_created test

* Add assert_noop to check state chages

* Return success for try_mutate_exists_account_not_created test
@dmitrylavrenov dmitrylavrenov merged commit a935d8a into locked/release-polkadot-v1.1.0 Oct 19, 2023
@dmitrylavrenov dmitrylavrenov deleted the evm-system branch October 19, 2023 08:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants