Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

NODE-65, deps: polkadot sdk migration #36

Merged
merged 53 commits into from
Jan 20, 2024

Conversation

dnjscksdn98
Copy link
Collaborator

@dnjscksdn98 dnjscksdn98 commented Jan 12, 2024

Description

This PR contains major changes occurred by polkadot-sdk@v1.3.0

Native Changes

  • update crate features and versions
  • remove native precompile-utils (migrated to frontier's precompile-utils)
  • remove native account (migrated to frontier's fp-account)

Substrate Changes

v1.0.0

v1.1.0

v1.2.0

v1.3.0

Frontier Changes

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Something else (simple changes that are not related to existing functionality or others)

Checklist

  • I have selected the correct base branch.
  • I have performed a self-review of my own code.
  • I have made corresponding changes to the documentation.
  • I have made new test codes regarding to my changes.
  • I have no personal secrets or credentials described on my changes.
  • I have run cargo-clippy and linted my code.
  • My changes generate no new warnings.
  • My changes passed the existing test codes.
  • My changes are able to compile.

@dnjscksdn98 dnjscksdn98 added dependencies Pull requests that update a dependency file release Release a new version labels Jan 12, 2024
@dnjscksdn98 dnjscksdn98 self-assigned this Jan 12, 2024
@dnjscksdn98 dnjscksdn98 force-pushed the NODE-65-deps/polkadot-sdk-migration branch from 2fd9be3 to 8881b43 Compare January 12, 2024 08:22
@dnjscksdn98 dnjscksdn98 added the do not merge This pull request should not be merged yet label Jan 12, 2024
@dnjscksdn98 dnjscksdn98 marked this pull request as ready for review January 12, 2024 08:50
@dnjscksdn98 dnjscksdn98 removed the do not merge This pull request should not be merged yet label Jan 16, 2024
@dnjscksdn98 dnjscksdn98 merged commit fd813f1 into pre-v1.3.0 Jan 20, 2024
@dnjscksdn98 dnjscksdn98 deleted the NODE-65-deps/polkadot-sdk-migration branch January 22, 2024 03:45
dnjscksdn98 added a commit that referenced this pull request Feb 6, 2024
* NODE-79, bifrost pallets improvements (#34)

* NODE-79, feature: migrate to standard storage version for bfc-staking

* NODE-79, feature: migrate to use new standard storage version for `bfc-offences`, `bfc-utility`, `relay-manager`.

* NODE-79, refactor: replace `OrderedSet` with `BTreeMap` & `BTreeSet`

* NODE-79, refactor: calculate translate weight info

* NODE-79, refactor: Remove redundant code

* NODE-79, refactor: Remove panic point in `bfc-staking` as much as possible

* NODE-79, refactor: use btree set in `SelectedCandidates`, `SelectedFullCandidates`, `SelectedBasicCandidates`, `CachedSelectedCandidates`

* NODE-79, refactor: remove unnecessary path prefix

* NODE-79, refactor: remove unnecessary reverse

* NODE-79, refactor: migrate `CandidatePool` to use BoundedBTreeMap

* NODE-79, refactor: kill storage `MinTotalSelected`

* NODE-79, refactor: remove unnecessary path prefix

* NODE-79, fix: typo

* NODE-79, refactor: use iter_mut

* NODE-79, chore: remove deadcode

* NODE-79, refactor: use mutate

* NODE-79, refactor: clone in small range

* NODE-79, refactor: no need to be complicate

* NODE-79, refactor: use getter

* NODE-79, fix: should use take instead get

* NODE-79, refactor: remove dead code

* NODE-79, refactor: no need to be complicated

* NODE-79, refactor: use getter

* NODE-79, refactor: `relay-manager`

* NODE-79, refactor: .

* NODE-79, refactor: remove redundant

* NODE-79, fix: revert message

* NODE-79, refactor: `bfc-staking`

* NODE-79, refactor: `relay-manager`

* NODE-79, refactor: move under util methods

* NODE-79, refactor: impl From<Offence> for EvmOffence

* NODE-79, refactor: reduce getter call

* NODE-79, refactor: remove unnecessary clone

* NODE-79, refactor: `Nominator.initial_nominations` type to BTreeMap

* NODE-79, refactor: .

* NODE-79, chore: remove dead code

* NODE-79, fix:

* NODE-79, fix:

* NODE-79, test: fit into new storage format

* NODE-79, fix: modify if exists else insert

* NODE-79, refactor: remove dead code

* NODE-79, fix: condition check on OnRuntimeUpgrade

* NODE-79, chore: comment

* NODE-79, fix: remove duplicate translate in migrations

* NODE-65, deps: polkadot sdk migration (#36)

* NODE-64, deps: upgrade to bifrost-polkadot-v1.3.0

* NODE-64, chore: use

* NODE-64, chore: remove precompile utils

* NODE-64, chore: replace to

* NODE-64, chore: move  to

* NODE-65, chore: apply block number prelude to precompiles

* NODE-65, chore: add hold/freeze reasons to

* NODE-65, chore: remove hold identifier from

* NODE-65, chore: add  to

* NODE-65, chore: add AllowMultipleBlocksPerSlot to pallet_aura

* NODE-65, chore: add new types to pallet_treasury

* NODE-65, chore: make pallet_preimage use Consideration

* NODE-65, chore: add missing generic type to GenesisConfig

* NODE-65, chore: update pallet_preimage

* NODE-65, chore: add IdentityInformation to pallet_identity

* NODE-65, chore: remove MaxPeerDataEncodingSize from pallet_im_online

* NODE-65, chore: add SuicideQuickClearLimit to pallet_evm

* NODE-65, feat: implement GenesisBuilder runtime api

* NODE-65, chore: rename Index to Nonce

* NODE-65, chore: specify txpool feature to fc_rpc

* NODE-65, fix: pending runtime api for pending state

* NODE-65, chore: Removal of execution strategies

* NODE-65, chore: Set StateBackend::Transaction to PrefixedMemoryDB

* NODE-65, chore: Modular block request handler

* NODE-65, chore: implement eth_call state override

* NODE-65, fix: resolve service.rs compile errors

* NODE-65, fix: replace to RuntimeGenesisConfig in chain_spec

* NODE-65, chore: add missing clone()

* NODE-65, chore: remove native runtime version api

* NODE-65, fix: replace to fp-account

* NODE-65, fix: remove RuntimeFreezeReason and sort imports

* NODE-65, chore: remove unneccessary self imports

* NODE-65, fix: rollback cherry-picked EthereumRuntimeRPCApi changes

* NODE-65, fix: add missing evm features

* NODE-65, deps: release v1.3.0

* NODE-65, fix: remove unused params

* NODE-65, fix: use correct crate features

* NODE-65, fix: remove std feature on pallet GenesisConfig Default impl

* NODE-65, test: replace deprecated storage

* NODE-65, test: estimated gas should be correct

* NODE-65, test: split runtime tests

* NODE-65, test: check balance consistancy

* NODE-65, test: check balance consistancy (2)

* NODE-65, feat: Only use substrate-wasm-builder when std feature is enabled

* NODE-65, deps: update Cargo.lock

* NODE-65, fix: resolve imports

* NODE-65, fix: update runtime tests

* NODE-65, fix: handle runtime test failures

* NODE-65, deps: update node packages

* NODE-65, deps: update Cargo.lock

* NODE-65, fix: remove test config

* NODE-84, chore: bifrost-frontier/pull/12 (#37)

* NODE-65, test: bifrost-frontier/pull/12 test code

---------

Co-authored-by: Min-seong Kwon <kwonarseus@gmail.com>

* NODE-78, fix: delayed relayer address update (#38)

* NODE-64, deps: upgrade to bifrost-polkadot-v1.3.0

* NODE-65, fix: pending runtime api for pending state

* NODE-65, chore: implement eth_call state override

* NODE-65, test: split runtime tests

* NODE-65, fix: update runtime tests

* NODE-65, fix: handle runtime test failures

* NODE-65, fix: remove test config

* NODE-78, feat: use delayed relayer sets

* NODE-78, feat: handle relayer sets on round update

* NODE-78, fix: add verifications on scheduling leaves

* NODE-78, test: add basic set relayer tests

* NODE-78, test: add advanced tests

* NODE-78, feat: add constraints to set_controller

* NODE-78, feat: add constraints to set_validator_commission

* NODE-78, chore: expect replacement will always succeed

* NODE-78, chore: add missing string docs

* NODE-78, fix: round update must be priorly set

* NODE-78, chore: add missing string docs

* NODE-78, fix: remove redundant state checks

* deps: increase runtime version

* test: update live runtime tests

---------

Co-authored-by: Min-seong Kwon <kwonarseus@gmail.com>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
dependencies Pull requests that update a dependency file release Release a new version
Development

Successfully merging this pull request may close these issues.

2 participants