Skip to content

Commit

Permalink
feat: update & refactor precompiles (#1100)
Browse files Browse the repository at this point in the history
* feat: `assets-erc20` update

* feat: repalce utils to utils_v2 in workspace cargo

* feat: update dapp staking precompile for utils v2

* feat: update sr25519

* feat: update ecdsa

* feat: update xvm

* feat: update xcm/xtokens

* fix: integration tests

* feat: remove old utils

* feat: update astar runtime

* fix: cargo fmt

* feat: update local runtime

* feat: update shiden & shibuya runtime

* fix: format

* fix: license

* fix: clippy

* feat: apply code suggestions

* fix: typos

* feat: update unified accounts PR

* feat: code suggesions

* feat: remove blacklist genesis hack

* feat: review comments
  • Loading branch information
ashutoshvarma authored Dec 18, 2023
1 parent 253eea3 commit ae668a0
Show file tree
Hide file tree
Showing 154 changed files with 2,278 additions and 6,035 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
uses: actions-rs/[email protected]
with:
version: 0.22.0
args: '--workspace -e astar-collator xcm-tools local-runtime shibuya-runtime shiden-runtime astar-runtime integration-tests --exclude-files vendor/* bin/* runtime/* tests/* **/mock.rs **/weights.rs precompiles/utils_v2/*'
args: '--workspace -e astar-collator xcm-tools local-runtime shibuya-runtime shiden-runtime astar-runtime integration-tests --exclude-files vendor/* bin/* runtime/* tests/* **/mock.rs **/weights.rs precompiles/utils/*'
out-type: Xml

- name: Code Coverage Summary Report
Expand Down
54 changes: 11 additions & 43 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,6 @@ assets-chain-extension-types = { path = "./chain-extensions/types/assets", defau
unified-accounts-chain-extension-types = { path = "./chain-extensions/types/unified-accounts", default-features = false }

precompile-utils = { path = "./precompiles/utils", default-features = false }
precompile-utils-v2 = { path = "./precompiles/utils_v2", default-features = false }

local-runtime = { path = "./runtime/local", default-features = false }
shibuya-runtime = { path = "./runtime/shibuya", default-features = false }
Expand Down
1 change: 0 additions & 1 deletion bin/collator/src/parachain/chain_spec/astar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ fn make_genesis(
// We need _some_ code inserted at the precompile address so that
// the evm will actually call the address.
accounts: Precompiles::used_addresses()
.filter(|addr| !Precompiles::is_blacklisted(addr))
.map(|addr| {
(
addr,
Expand Down
1 change: 0 additions & 1 deletion bin/collator/src/parachain/chain_spec/shiden.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ fn make_genesis(
// We need _some_ code inserted at the precompile address so that
// the evm will actually call the address.
accounts: Precompiles::used_addresses()
.filter(|addr| !Precompiles::is_blacklisted(addr))
.map(|addr| {
(
addr,
Expand Down
2 changes: 1 addition & 1 deletion precompiles/assets-erc20/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ log = { workspace = true }
num_enum = { workspace = true }
slices = { workspace = true }

precompile-utils = { workspace = true }
precompile-utils = { workspace = true, default-features = false }

# Substrate
frame-support = { workspace = true }
Expand Down
Loading

0 comments on commit ae668a0

Please sign in to comment.