Skip to content

Bifrost v0.25.0#2076

Open
SunTiebing wants to merge 17 commits into
developfrom
v0.25.0
Open

Bifrost v0.25.0#2076
SunTiebing wants to merge 17 commits into
developfrom
v0.25.0

Conversation

@SunTiebing
Copy link
Copy Markdown
Member

No description provided.

SunTiebing and others added 17 commits April 3, 2026 15:17
# Conflicts:
#	Cargo.lock
#	node/cli/Cargo.toml
#	runtime/bifrost-kusama/src/lib.rs
#	runtime/bifrost-paseo/src/lib.rs
#	runtime/bifrost-polkadot/src/lib.rs
# Conflicts:
#	Cargo.lock
#	node/cli/Cargo.toml
#	runtime/bifrost-kusama/src/lib.rs
#	runtime/bifrost-paseo/src/lib.rs
#	runtime/bifrost-polkadot/src/lib.rs
* Bifrost v0.24.0

* fix: reduce minimum selected candidates to 4 (#1990)

* fix: reduce minimum selected candidates from 5 to 4

* Restore mack file

* Optimize primitives (#1992)

* refactor: optimize traits

* refactor: optimize constants

* fix: update on-chain release build configuration to disable logging

* Fixed slpx relayer fee (#1998)

* Fixed slpx relayer fee

* Add test_handle_hyperbridge_oracle

* [skip ci]:Update Makefile to use production profile for builds and enhance snapshot creation commands with additional pallets for Kusama and Paseo runtimes. (#1994)

Co-authored-by: AresCui <arescui@bifrost.io>

* fix: 🐛 redeem_commission (#1985)

* fix: 🐛 redeem_commission

* Update pallets/bb-bnc/src/tests.rs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update pallets/bb-bnc/src/lib.rs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update pallets/bb-bnc/src/tests.rs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update pallets/bb-bnc/src/tests.rs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update pallets/bb-bnc/src/tests.rs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* fix: 🐛 test

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* refactor: replace XChainSender with BifrostSlpx for asset transfers a… (#1989)

* refactor: replace XChainSender with BifrostSlpx for asset transfers and add hyperbridge oracle handling

* fix Copilot instructions

* fix code review: BifrostSlpx splits type

* fix: fix hyperbridge oracle Weight handling

* Fix/bifrost farming (#1988)

* fix: 🐛 gauge_new_value

* feat: 🎸 farming migration

* fix: 🐛 fmt

* fix: 🐛 clippy

* fix: 🐛 test

* Update pallets/farming/src/lib.rs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update pallets/farming/src/rewards.rs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update pallets/farming/src/lib.rs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* fix: 🐛 u128 try_from U256

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* fix: 🐛 clouds_to_vebnc (#1991)

* fix: 🐛 clouds_to_vebnc

* Update pallets/clouds-convert/src/lib.rs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update pallets/clouds-convert/src/tests.rs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* fix: 🐛 check-all

* fix: 🐛 coplit

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Retire unused staking management (#1987)

* chore: remove MOVR and GLMR references and related storage entries

* chore: remove ASTR references and related storage entries

* fix code review: 1、Restore the mistakenly deleted code

* fix code review: 2、Add data migration

* fix code review: 3、Fixed coding sequence

* make format

* feat: 🎸 add MinRemainingLockBlocks (#1986)

* feat: 🎸 add MinRemainingLockBlocks

* Update pallets/bb-bnc/src/lib.rs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* add_async_mint_with_channel_id (#2008)

* add_async_mint_with_channel_id

* Add some check

* Fix conflicts

* Fix conflicts

* fix: simplify arithmetic (#2012)

* fix: 🐛 gauge_new_value

* feat: 🎸 farming migration

* fix: 🐛 fmt

* fix: 🐛 clippy

* fix: 🐛 test

* Update pallets/farming/src/lib.rs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update pallets/farming/src/rewards.rs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update pallets/farming/src/lib.rs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* fix: 🐛 u128 try_from U256

* fix: simplify arithmetic

* fix: pass ci

---------

Co-authored-by: yooml <ymlll0508@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* feat: upgrade storage version to 7 and migrate ledger entries (#2019)

* Slpv2 integration test (#2013)

* test: rename slp_v2_general_xcm_executor to slp_v2_general_xcm_executor_polkadot_asset_hub and update fee configuration

* test: refactor slp_v2_transfer_to and slp_v2_general_xcm_executor for asset hub integration

* test: add integration tests for slp_v2_general_xcm_executor with asset hub

* fix: update success handling in message queue and increase max call data length

* refactor: split currency definitions by polkadot and kusama features (#1993)

* refactor: split currency definitions by polkadot and kusama features

* chore: fix clippy error by renaming currency module

* fix: fix make clippy errors

* fix: address multiple review comments

* fix: resolve conflicts

* fix: pass ci

* refactor: reorder modules, move ETH to polkadot, remove unused_variables, simplify logic

* fix: copilot's suggestion

* fix: remove CLOUD to avoid token id collision

---------

Co-authored-by: Edwin <lark930@gmail.com>

* fix: update command execution to include shared trie cache and adjust mock XCM imports (#2035)

* Resolve slpv2 conflicts (#2045)

* Upgrade polkadot-sdk version (#2027)

* Upgrade polkadot-sdk version

* Upgrade runtime version

* fix ci

* build(deps): bump keccak from 0.1.4 to 0.1.6 (#2028)

Bumps [keccak](https://github.com/RustCrypto/sponges) from 0.1.4 to 0.1.6.
- [Commits](RustCrypto/sponges@keccak/v0.1.4...keccak-v0.1.6)

---
updated-dependencies:
- dependency-name: keccak
  dependency-version: 0.1.6
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump time from 0.3.36 to 0.3.47 (#2018)

Bumps [time](https://github.com/time-rs/time) from 0.3.36 to 0.3.47.
- [Release notes](https://github.com/time-rs/time/releases)
- [Changelog](https://github.com/time-rs/time/blob/main/CHANGELOG.md)
- [Commits](time-rs/time@v0.3.36...v0.3.47)

---
updated-dependencies:
- dependency-name: time
  dependency-version: 0.3.47
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bifrost v0.23.3 (#2032)

* Bifrost v0.23.2

* feat: 🎸 modify to VtokenMinting::convert_to_vtoken (#2023)

* feat: 🎸 modify to VtokenMinting::convert_to_vtoken

* fix: 🐛 clippy

* feat: add bifrost-slp-v2 module with general XCM staking support (#2025)

* feat: add bifrost-slp-v2 module with general XCM staking support

* feat: refactor staking protocol handling and rename polkadot.rs to common_type.rs

* feat: enhance staking protocol support for Polkadot with conditional compilation

* feat: remove conditional compilation for Polkadot in do_notify_astar_dapp_staking

* fix code review

* feat: rename mock files and update parachain ID for Kusama

* style: format benchmark test suite implementation for better readability

* Bifrost v0.23.3

* feat: increase MaxCallDataLength to 512 (#2037)

* feat: increase MaxCallDataLength to 512

* feat: increase call data length to 512 in slp_v2 module

* Fix/currency conversion (#2039)

* fix: 🐛 copilot

* fix: 🐛 slp-v2

* fix: 🐛 nit

* fix: update autogenerated weights for bifrost_slp_v2 to reflect new b… (#2038)

* fix: update autogenerated weights for bifrost_slp_v2 to reflect new benchmarking parameters

* fix: remove bifrost_slp_v2 from benchmarking configuration

* fix: update autogenerated weights comment for bifrost_slp_v2

* [skip ci]update denpendence for  protobuf-compiler (#2040)

Co-authored-by: AresCui <arescui@bifrost.io>

---------

Co-authored-by: yooml <ymlll0508@gmail.com>
Co-authored-by: 战神西红柿 <34213033+TomatoAres@users.noreply.github.com>
Co-authored-by: AresCui <arescui@bifrost.io>

* refactor: clean up imports and formatting in common_type.rs, impls.rs, and lib.rs

* refactor: reorganize imports and remove unused code in impls.rs, lib.rs, and bifrost_slp_v2.rs

* refactor: add SlpxOperator type and remove unused ledger check in lib.rs

* refactor: increase call_data BoundedVec size from 256 to 512 in slp_v2.rs

* fix pr-review

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: NingBo Wang <2536935847@qq.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: yooml <ymlll0508@gmail.com>
Co-authored-by: 战神西红柿 <34213033+TomatoAres@users.noreply.github.com>
Co-authored-by: AresCui <arescui@bifrost.io>

* Adapt vtokenvoting for slpv2 (#2046)

* adapt vTokenVoting for SLPv2

* Upgrade polkadot-sdk version (#2027)

* Upgrade polkadot-sdk version

* Upgrade runtime version

* fix ci

* build(deps): bump keccak from 0.1.4 to 0.1.6 (#2028)

Bumps [keccak](https://github.com/RustCrypto/sponges) from 0.1.4 to 0.1.6.
- [Commits](RustCrypto/sponges@keccak/v0.1.4...keccak-v0.1.6)

---
updated-dependencies:
- dependency-name: keccak
  dependency-version: 0.1.6
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump time from 0.3.36 to 0.3.47 (#2018)

Bumps [time](https://github.com/time-rs/time) from 0.3.36 to 0.3.47.
- [Release notes](https://github.com/time-rs/time/releases)
- [Changelog](https://github.com/time-rs/time/blob/main/CHANGELOG.md)
- [Commits](time-rs/time@v0.3.36...v0.3.47)

---
updated-dependencies:
- dependency-name: time
  dependency-version: 0.3.47
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bifrost v0.23.3 (#2032)

* Bifrost v0.23.2

* feat: 🎸 modify to VtokenMinting::convert_to_vtoken (#2023)

* feat: 🎸 modify to VtokenMinting::convert_to_vtoken

* fix: 🐛 clippy

* feat: add bifrost-slp-v2 module with general XCM staking support (#2025)

* feat: add bifrost-slp-v2 module with general XCM staking support

* feat: refactor staking protocol handling and rename polkadot.rs to common_type.rs

* feat: enhance staking protocol support for Polkadot with conditional compilation

* feat: remove conditional compilation for Polkadot in do_notify_astar_dapp_staking

* fix code review

* feat: rename mock files and update parachain ID for Kusama

* style: format benchmark test suite implementation for better readability

* Bifrost v0.23.3

* feat: increase MaxCallDataLength to 512 (#2037)

* feat: increase MaxCallDataLength to 512

* feat: increase call data length to 512 in slp_v2 module

* Fix/currency conversion (#2039)

* fix: 🐛 copilot

* fix: 🐛 slp-v2

* fix: 🐛 nit

* fix: update autogenerated weights for bifrost_slp_v2 to reflect new b… (#2038)

* fix: update autogenerated weights for bifrost_slp_v2 to reflect new benchmarking parameters

* fix: remove bifrost_slp_v2 from benchmarking configuration

* fix: update autogenerated weights comment for bifrost_slp_v2

* [skip ci]update denpendence for  protobuf-compiler (#2040)

Co-authored-by: AresCui <arescui@bifrost.io>

---------

Co-authored-by: yooml <ymlll0508@gmail.com>
Co-authored-by: 战神西红柿 <34213033+TomatoAres@users.noreply.github.com>
Co-authored-by: AresCui <arescui@bifrost.io>

* refactor: clean up imports and formatting in common_type.rs, impls.rs, and lib.rs

* refactor: reorganize imports and remove unused code in impls.rs, lib.rs, and bifrost_slp_v2.rs

* refactor: add SlpxOperator type and remove unused ledger check in lib.rs

* refactor: improve ledger handling and reorganize imports in impls.rs and lib.rs

* refactor: increase call_data BoundedVec size from 256 to 512 in slp_v2.rs

* refactor: update chain_id type from ChainId to u32 and adjust related functions

* fix pr-review

* fix pr-review

* refactor: update derivative_index and adjust add_delegator parameters in benchmarking

* refactor: simplify return types in staking functions

* refactor: remove unused import in impls.rs

* refactor: remove unlocking field from various structs and tests

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: NingBo Wang <2536935847@qq.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: yooml <ymlll0508@gmail.com>
Co-authored-by: 战神西红柿 <34213033+TomatoAres@users.noreply.github.com>
Co-authored-by: AresCui <arescui@bifrost.io>

* Add hyperbridge check (#2042)

* Add hyperbridge check

* Fix ci

* Fix ci

* Add test

* feat: remove exchange rate limit and related storage (#2003)

* feat: remove slp-v2 exchange rate limit and related storage

* style: format imports

* feat: implement burn fee logic for XCM transactions (#2036)

* feat: implement burn fee logic for XCM transactions

* feat: update fee burn logic for XCM transactions

* refactor: remove unused feature flag and add FeeAccount type for Bifrost

* refactor: remove unused imports and add FeeAccount type in mock runtimes

* Global vtoken rate logic optimization (#2007)

* feat: Change exchange rate check logic and update weight calculations

* test: change test token from kusama to polkadot

* feat: update benchmarking to use Polkadot token

* feat: implement migration to remove storage and fix some review problem

* fix compile with runtime benchmarks feature (#2048)

* Add retry redeem (#2041)

* Add retry redeem

* Fix ci

* fix some warning

* fix compile with runtime benchmarks feature

* update weight and add some tests

* Fix ci

* fix: 🐛 general_xcm_executor (#2026)

* feat: 🎸 support vbnc

* fix: 🐛 clippy

* fix: 🐛 call_data_slice.is_empty

* Slpv2 with vwl vbl (#2034)

* feat: add ValidatorBoostList functionality for staking protocols

* feat: implement ValidatorBoostList functionality and add related tests

* feat: add test for adding to validator boost list functionality

* feat: add tests for removing and cleaning outdated entries in validator boost list

* feat: add benchmarking functions for validator boost list management

* fix: correct spelling of 'boost' in validator boost list functions and documentation

* feat: add sp_std::vec import to lib.rs for vector usage

* feat: add functions for managing validator boost list in SlpV2

* refactor: reorganize imports in polkadot_tests.rs for clarity

* refactor: reorder imports in polkadot_tests.rs for improved organization

* feat: add migration support for GeneralXCM ledger in v2

* feat: add EthereumStakingLedger support for Polkadot feature in v2

* fix:fix benchmarks (#2033)

* fix: fix benchmarks

* chore: remove redundency

* Change test params to polkadot (#2049)

* feat: Change exchange rate check logic and update weight calculations

* test: change test token from kusama to polkadot

* feat: update benchmarking to use Polkadot token

* feat: implement migration to remove storage and fix some review problem

* feat: change test params from Kusama to Polkadot assets

* test: update test parameters to include VGLMR

* Remove slp (#2050)

* refactor: remove bifrost_slp pallet

* feat: add SlpV1 to V2 migration support in bifrost-kusama

* feat: add MaxLengthLimit parameter

* feat: rename SlpV1MigrationToV2 to SlpV2StorageV1MigrationToV2

* Fix try runtime (#2057)

* feat: add StakingProtocol enum for enhanced staking support

* refactor: remove unused old ledger structures and related code

* [skip ci]add migration translation log

* Add try state and intergrity test (#2055)

* feat: implement integrity tests and state validation for various pallets

* refactor: remove unused variables & format code

* test: remove unused integrity test function and related imports

* refactor: 💡 asset id convert trait (#2011)

* refactor: 💡 asset id convert trait

* feat: 🎸 add LPToken2

* fix: 🐛 nit

* feat: 🎸 add LpToken2Generate

* fix: 🐛 clippy

* fix: 🐛 ExistentialDeposits add LPToken2 match

* fix: 🐛 ExistentialDeposits for other runtime

* fix: 🐛 copilot

* fix: 🐛 generate_lp_asset_id

* feat: 🎸 add register_lptoken2_metadata

* fix: 🐛 use symbol

* feat: 🎸 all runtime

* fix: 🐛 nit

* fix: 🐛 nit

* fix: 🐛 merge v0.24

* fix: 🐛 check-all

* feat: update dependencies (#2047)

* feat: update dependencies and improve configuration for orml-xtokens integration

* feat: add bifrost-slp-v2 to Cargo.lock and mark RelayCall as dead code

* feat: update integration test dependencies to stable2512

* feat: add Solidity toolchain installation to CI build

* feat: skip pallet revive fixtures in CI build

* feat: add max_block_range parameter for log queries

* feat: add max_block_range parameter for log queries

* update Cargo.lock

* update Cargo.lock

* refactor: remove unused log imports and replace logging with println in XCM functions

* fix tests

---------

Co-authored-by: hqwangningbo <2536935847@qq.com>

* Refactor/currencies (#2009)

* refactor: 💡 use fungibles

* fix: 🐛 clippy

* fix: 🐛 nit

* fix: 🐛 copilot

* fix: 🐛 clippy

* fix: 🐛 dust account

* fix: 🐛 test-all

* fix: 🐛 nit

* fix: 🐛 conflict

* fix: 🐛 nit

* fix: 🐛 clippy

* Remove slp and slpv2 add set ledger (#2059)

* Remove slp and slpv2 add set ledger

* Fix ci

* Fix some bugs

* feat: add genesis configuration and integration tests for vtoken voting (#2058)

* feat: update dependencies and improve configuration for orml-xtokens integration

* feat: add bifrost-slp-v2 to Cargo.lock and mark RelayCall as dead code

* feat: update integration test dependencies to stable2512

* feat: add Solidity toolchain installation to CI build

* feat: skip pallet revive fixtures in CI build

* feat: add max_block_range parameter for log queries

* feat: add max_block_range parameter for log queries

* update Cargo.lock

* update Cargo.lock

* refactor: remove unused log imports and replace logging with println in XCM functions

* feat: add genesis configuration and integration tests for vtoken voting

* Adjust the order of polkadot-call

* Comment on the vtoken_voting integration test

* fix tests

* add allow(dead_code) to kusama call

* adapt slpv2 StakingLedger

---------

Co-authored-by: hqwangningbo <2536935847@qq.com>

* Wave migration (#2060)

* fix: 🐛 clouds-convert

* fix: 🐛 nit

* fix: 🐛 nit

* fix: 🐛 rename

* fix: 🐛 fmt

* fix: 🐛 fmt

* fix: 🐛 test-all

* fix: 🐛 test

* fix: 🐛 nit

* fix: 🐛 nit

* feat: modify authoring_duration from 1500ms to 2000ms. (#2061)

* chore: add log dependency and update CI workflow to check Cargo.lock synchronization (#2065)

Co-authored-by: AresCui <arescui@bifrost.io>

* fix vtokenVoting blackNumber (#2066)

* remove #[allow(clippy::useless_conversion)] (#2067)

* Fix/wave migration (#2063)

* feat: 🎸 add migrate_pairs_batch

* fix: 🐛 fmt

* fix: 🐛 Cargo.lock

* fix: enable rocksdb

* Revert "feat: 🎸 add migrate_pairs_batch"

This reverts commit 0270852.

* Revert "Wave migration (#2060)"

This reverts commit cb61c4b.

* fix: 🐛 nit

---------

Co-authored-by: AresCui <arescui@bifrost.io>

* optimize vtokenVoting storage

* fix: Cargo.lock (#2069)

Co-authored-by: AresCui <arescui@bifrost.io>

* fix lp-token2 (#2070)

* fix lp-token2

* fix test

* fix: use storage_alias for try-runtime ConfigurationByStakingProtocol pre_upgrade count (#2071)

* fix: 🐛 change entrance_account_free_balance (#2072)

* fix: 🐛 change entrance_account_free_balance

* fix: 🐛 test

* fix: 🐛 clippyt

* fix: 🐛 event

* fix: 🐛 nit

* fix: 🐛 benchmark

* fix: 🐛 test

* fix: missing dependencies (#2075)

Co-authored-by: arescui <arescui@bifrost.io>

* Refactor `unvote` to directly remove empty voting entries

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Edwin <lark930@gmail.com>
Co-authored-by: damian.lu <wsteth@outlook.com>
Co-authored-by: NingBo Wang <2536935847@qq.com>
Co-authored-by: 战神西红柿 <34213033+TomatoAres@users.noreply.github.com>
Co-authored-by: AresCui <arescui@bifrost.io>
Co-authored-by: yooml <ymlll0508@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: MJLNSN <96321798+MJLNSN@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bifrost v0.24.0

* fix: reduce minimum selected candidates to 4 (#1990)

* fix: reduce minimum selected candidates from 5 to 4

* Restore mack file

* Optimize primitives (#1992)

* refactor: optimize traits

* refactor: optimize constants

* fix: update on-chain release build configuration to disable logging

* Fixed slpx relayer fee (#1998)

* Fixed slpx relayer fee

* Add test_handle_hyperbridge_oracle

* [skip ci]:Update Makefile to use production profile for builds and enhance snapshot creation commands with additional pallets for Kusama and Paseo runtimes. (#1994)

Co-authored-by: AresCui <arescui@bifrost.io>

* fix: 🐛 redeem_commission (#1985)

* fix: 🐛 redeem_commission

* Update pallets/bb-bnc/src/tests.rs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update pallets/bb-bnc/src/lib.rs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update pallets/bb-bnc/src/tests.rs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update pallets/bb-bnc/src/tests.rs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update pallets/bb-bnc/src/tests.rs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* fix: 🐛 test

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* refactor: replace XChainSender with BifrostSlpx for asset transfers a… (#1989)

* refactor: replace XChainSender with BifrostSlpx for asset transfers and add hyperbridge oracle handling

* fix Copilot instructions

* fix code review: BifrostSlpx splits type

* fix: fix hyperbridge oracle Weight handling

* Fix/bifrost farming (#1988)

* fix: 🐛 gauge_new_value

* feat: 🎸 farming migration

* fix: 🐛 fmt

* fix: 🐛 clippy

* fix: 🐛 test

* Update pallets/farming/src/lib.rs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update pallets/farming/src/rewards.rs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update pallets/farming/src/lib.rs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* fix: 🐛 u128 try_from U256

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* fix: 🐛 clouds_to_vebnc (#1991)

* fix: 🐛 clouds_to_vebnc

* Update pallets/clouds-convert/src/lib.rs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update pallets/clouds-convert/src/tests.rs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* fix: 🐛 check-all

* fix: 🐛 coplit

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Retire unused staking management (#1987)

* chore: remove MOVR and GLMR references and related storage entries

* chore: remove ASTR references and related storage entries

* fix code review: 1、Restore the mistakenly deleted code

* fix code review: 2、Add data migration

* fix code review: 3、Fixed coding sequence

* make format

* feat: 🎸 add MinRemainingLockBlocks (#1986)

* feat: 🎸 add MinRemainingLockBlocks

* Update pallets/bb-bnc/src/lib.rs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* add_async_mint_with_channel_id (#2008)

* add_async_mint_with_channel_id

* Add some check

* Fix conflicts

* Fix conflicts

* fix: simplify arithmetic (#2012)

* fix: 🐛 gauge_new_value

* feat: 🎸 farming migration

* fix: 🐛 fmt

* fix: 🐛 clippy

* fix: 🐛 test

* Update pallets/farming/src/lib.rs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update pallets/farming/src/rewards.rs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update pallets/farming/src/lib.rs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* fix: 🐛 u128 try_from U256

* fix: simplify arithmetic

* fix: pass ci

---------

Co-authored-by: yooml <ymlll0508@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* feat: upgrade storage version to 7 and migrate ledger entries (#2019)

* Slpv2 integration test (#2013)

* test: rename slp_v2_general_xcm_executor to slp_v2_general_xcm_executor_polkadot_asset_hub and update fee configuration

* test: refactor slp_v2_transfer_to and slp_v2_general_xcm_executor for asset hub integration

* test: add integration tests for slp_v2_general_xcm_executor with asset hub

* fix: update success handling in message queue and increase max call data length

* refactor: split currency definitions by polkadot and kusama features (#1993)

* refactor: split currency definitions by polkadot and kusama features

* chore: fix clippy error by renaming currency module

* fix: fix make clippy errors

* fix: address multiple review comments

* fix: resolve conflicts

* fix: pass ci

* refactor: reorder modules, move ETH to polkadot, remove unused_variables, simplify logic

* fix: copilot's suggestion

* fix: remove CLOUD to avoid token id collision

---------

Co-authored-by: Edwin <lark930@gmail.com>

* fix: update command execution to include shared trie cache and adjust mock XCM imports (#2035)

* Resolve slpv2 conflicts (#2045)

* Upgrade polkadot-sdk version (#2027)

* Upgrade polkadot-sdk version

* Upgrade runtime version

* fix ci

* build(deps): bump keccak from 0.1.4 to 0.1.6 (#2028)

Bumps [keccak](https://github.com/RustCrypto/sponges) from 0.1.4 to 0.1.6.
- [Commits](RustCrypto/sponges@keccak/v0.1.4...keccak-v0.1.6)

---
updated-dependencies:
- dependency-name: keccak
  dependency-version: 0.1.6
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump time from 0.3.36 to 0.3.47 (#2018)

Bumps [time](https://github.com/time-rs/time) from 0.3.36 to 0.3.47.
- [Release notes](https://github.com/time-rs/time/releases)
- [Changelog](https://github.com/time-rs/time/blob/main/CHANGELOG.md)
- [Commits](time-rs/time@v0.3.36...v0.3.47)

---
updated-dependencies:
- dependency-name: time
  dependency-version: 0.3.47
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bifrost v0.23.3 (#2032)

* Bifrost v0.23.2

* feat: 🎸 modify to VtokenMinting::convert_to_vtoken (#2023)

* feat: 🎸 modify to VtokenMinting::convert_to_vtoken

* fix: 🐛 clippy

* feat: add bifrost-slp-v2 module with general XCM staking support (#2025)

* feat: add bifrost-slp-v2 module with general XCM staking support

* feat: refactor staking protocol handling and rename polkadot.rs to common_type.rs

* feat: enhance staking protocol support for Polkadot with conditional compilation

* feat: remove conditional compilation for Polkadot in do_notify_astar_dapp_staking

* fix code review

* feat: rename mock files and update parachain ID for Kusama

* style: format benchmark test suite implementation for better readability

* Bifrost v0.23.3

* feat: increase MaxCallDataLength to 512 (#2037)

* feat: increase MaxCallDataLength to 512

* feat: increase call data length to 512 in slp_v2 module

* Fix/currency conversion (#2039)

* fix: 🐛 copilot

* fix: 🐛 slp-v2

* fix: 🐛 nit

* fix: update autogenerated weights for bifrost_slp_v2 to reflect new b… (#2038)

* fix: update autogenerated weights for bifrost_slp_v2 to reflect new benchmarking parameters

* fix: remove bifrost_slp_v2 from benchmarking configuration

* fix: update autogenerated weights comment for bifrost_slp_v2

* [skip ci]update denpendence for  protobuf-compiler (#2040)

Co-authored-by: AresCui <arescui@bifrost.io>

---------

Co-authored-by: yooml <ymlll0508@gmail.com>
Co-authored-by: 战神西红柿 <34213033+TomatoAres@users.noreply.github.com>
Co-authored-by: AresCui <arescui@bifrost.io>

* refactor: clean up imports and formatting in common_type.rs, impls.rs, and lib.rs

* refactor: reorganize imports and remove unused code in impls.rs, lib.rs, and bifrost_slp_v2.rs

* refactor: add SlpxOperator type and remove unused ledger check in lib.rs

* refactor: increase call_data BoundedVec size from 256 to 512 in slp_v2.rs

* fix pr-review

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: NingBo Wang <2536935847@qq.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: yooml <ymlll0508@gmail.com>
Co-authored-by: 战神西红柿 <34213033+TomatoAres@users.noreply.github.com>
Co-authored-by: AresCui <arescui@bifrost.io>

* Adapt vtokenvoting for slpv2 (#2046)

* adapt vTokenVoting for SLPv2

* Upgrade polkadot-sdk version (#2027)

* Upgrade polkadot-sdk version

* Upgrade runtime version

* fix ci

* build(deps): bump keccak from 0.1.4 to 0.1.6 (#2028)

Bumps [keccak](https://github.com/RustCrypto/sponges) from 0.1.4 to 0.1.6.
- [Commits](RustCrypto/sponges@keccak/v0.1.4...keccak-v0.1.6)

---
updated-dependencies:
- dependency-name: keccak
  dependency-version: 0.1.6
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump time from 0.3.36 to 0.3.47 (#2018)

Bumps [time](https://github.com/time-rs/time) from 0.3.36 to 0.3.47.
- [Release notes](https://github.com/time-rs/time/releases)
- [Changelog](https://github.com/time-rs/time/blob/main/CHANGELOG.md)
- [Commits](time-rs/time@v0.3.36...v0.3.47)

---
updated-dependencies:
- dependency-name: time
  dependency-version: 0.3.47
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bifrost v0.23.3 (#2032)

* Bifrost v0.23.2

* feat: 🎸 modify to VtokenMinting::convert_to_vtoken (#2023)

* feat: 🎸 modify to VtokenMinting::convert_to_vtoken

* fix: 🐛 clippy

* feat: add bifrost-slp-v2 module with general XCM staking support (#2025)

* feat: add bifrost-slp-v2 module with general XCM staking support

* feat: refactor staking protocol handling and rename polkadot.rs to common_type.rs

* feat: enhance staking protocol support for Polkadot with conditional compilation

* feat: remove conditional compilation for Polkadot in do_notify_astar_dapp_staking

* fix code review

* feat: rename mock files and update parachain ID for Kusama

* style: format benchmark test suite implementation for better readability

* Bifrost v0.23.3

* feat: increase MaxCallDataLength to 512 (#2037)

* feat: increase MaxCallDataLength to 512

* feat: increase call data length to 512 in slp_v2 module

* Fix/currency conversion (#2039)

* fix: 🐛 copilot

* fix: 🐛 slp-v2

* fix: 🐛 nit

* fix: update autogenerated weights for bifrost_slp_v2 to reflect new b… (#2038)

* fix: update autogenerated weights for bifrost_slp_v2 to reflect new benchmarking parameters

* fix: remove bifrost_slp_v2 from benchmarking configuration

* fix: update autogenerated weights comment for bifrost_slp_v2

* [skip ci]update denpendence for  protobuf-compiler (#2040)

Co-authored-by: AresCui <arescui@bifrost.io>

---------

Co-authored-by: yooml <ymlll0508@gmail.com>
Co-authored-by: 战神西红柿 <34213033+TomatoAres@users.noreply.github.com>
Co-authored-by: AresCui <arescui@bifrost.io>

* refactor: clean up imports and formatting in common_type.rs, impls.rs, and lib.rs

* refactor: reorganize imports and remove unused code in impls.rs, lib.rs, and bifrost_slp_v2.rs

* refactor: add SlpxOperator type and remove unused ledger check in lib.rs

* refactor: improve ledger handling and reorganize imports in impls.rs and lib.rs

* refactor: increase call_data BoundedVec size from 256 to 512 in slp_v2.rs

* refactor: update chain_id type from ChainId to u32 and adjust related functions

* fix pr-review

* fix pr-review

* refactor: update derivative_index and adjust add_delegator parameters in benchmarking

* refactor: simplify return types in staking functions

* refactor: remove unused import in impls.rs

* refactor: remove unlocking field from various structs and tests

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: NingBo Wang <2536935847@qq.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: yooml <ymlll0508@gmail.com>
Co-authored-by: 战神西红柿 <34213033+TomatoAres@users.noreply.github.com>
Co-authored-by: AresCui <arescui@bifrost.io>

* Add hyperbridge check (#2042)

* Add hyperbridge check

* Fix ci

* Fix ci

* Add test

* feat: remove exchange rate limit and related storage (#2003)

* feat: remove slp-v2 exchange rate limit and related storage

* style: format imports

* feat: implement burn fee logic for XCM transactions (#2036)

* feat: implement burn fee logic for XCM transactions

* feat: update fee burn logic for XCM transactions

* refactor: remove unused feature flag and add FeeAccount type for Bifrost

* refactor: remove unused imports and add FeeAccount type in mock runtimes

* Global vtoken rate logic optimization (#2007)

* feat: Change exchange rate check logic and update weight calculations

* test: change test token from kusama to polkadot

* feat: update benchmarking to use Polkadot token

* feat: implement migration to remove storage and fix some review problem

* fix compile with runtime benchmarks feature (#2048)

* Add retry redeem (#2041)

* Add retry redeem

* Fix ci

* fix some warning

* fix compile with runtime benchmarks feature

* update weight and add some tests

* Fix ci

* fix: 🐛 general_xcm_executor (#2026)

* feat: 🎸 support vbnc

* fix: 🐛 clippy

* fix: 🐛 call_data_slice.is_empty

* Slpv2 with vwl vbl (#2034)

* feat: add ValidatorBoostList functionality for staking protocols

* feat: implement ValidatorBoostList functionality and add related tests

* feat: add test for adding to validator boost list functionality

* feat: add tests for removing and cleaning outdated entries in validator boost list

* feat: add benchmarking functions for validator boost list management

* fix: correct spelling of 'boost' in validator boost list functions and documentation

* feat: add sp_std::vec import to lib.rs for vector usage

* feat: add functions for managing validator boost list in SlpV2

* refactor: reorganize imports in polkadot_tests.rs for clarity

* refactor: reorder imports in polkadot_tests.rs for improved organization

* feat: add migration support for GeneralXCM ledger in v2

* feat: add EthereumStakingLedger support for Polkadot feature in v2

* fix:fix benchmarks (#2033)

* fix: fix benchmarks

* chore: remove redundency

* Change test params to polkadot (#2049)

* feat: Change exchange rate check logic and update weight calculations

* test: change test token from kusama to polkadot

* feat: update benchmarking to use Polkadot token

* feat: implement migration to remove storage and fix some review problem

* feat: change test params from Kusama to Polkadot assets

* test: update test parameters to include VGLMR

* Remove slp (#2050)

* refactor: remove bifrost_slp pallet

* feat: add SlpV1 to V2 migration support in bifrost-kusama

* feat: add MaxLengthLimit parameter

* feat: rename SlpV1MigrationToV2 to SlpV2StorageV1MigrationToV2

* Fix try runtime (#2057)

* feat: add StakingProtocol enum for enhanced staking support

* refactor: remove unused old ledger structures and related code

* [skip ci]add migration translation log

* Add try state and intergrity test (#2055)

* feat: implement integrity tests and state validation for various pallets

* refactor: remove unused variables & format code

* test: remove unused integrity test function and related imports

* remove PolkadotStaking and EthereumStaking type in slpv2

* adapt benchmarking

* refactor: 💡 asset id convert trait (#2011)

* refactor: 💡 asset id convert trait

* feat: 🎸 add LPToken2

* fix: 🐛 nit

* feat: 🎸 add LpToken2Generate

* fix: 🐛 clippy

* fix: 🐛 ExistentialDeposits add LPToken2 match

* fix: 🐛 ExistentialDeposits for other runtime

* fix: 🐛 copilot

* fix: 🐛 generate_lp_asset_id

* feat: 🎸 add register_lptoken2_metadata

* fix: 🐛 use symbol

* feat: 🎸 all runtime

* fix: 🐛 nit

* fix: 🐛 nit

* fix: 🐛 merge v0.24

* fix: 🐛 check-all

* feat: update dependencies (#2047)

* feat: update dependencies and improve configuration for orml-xtokens integration

* feat: add bifrost-slp-v2 to Cargo.lock and mark RelayCall as dead code

* feat: update integration test dependencies to stable2512

* feat: add Solidity toolchain installation to CI build

* feat: skip pallet revive fixtures in CI build

* feat: add max_block_range parameter for log queries

* feat: add max_block_range parameter for log queries

* update Cargo.lock

* update Cargo.lock

* refactor: remove unused log imports and replace logging with println in XCM functions

* fix tests

---------

Co-authored-by: hqwangningbo <2536935847@qq.com>

* adapt test

* Refactor/currencies (#2009)

* refactor: 💡 use fungibles

* fix: 🐛 clippy

* fix: 🐛 nit

* fix: 🐛 copilot

* fix: 🐛 clippy

* fix: 🐛 dust account

* fix: 🐛 test-all

* fix: 🐛 nit

* fix: 🐛 conflict

* fix: 🐛 nit

* fix: 🐛 clippy

* Remove slp and slpv2 add set ledger (#2059)

* Remove slp and slpv2 add set ledger

* Fix ci

* Fix some bugs

* remove ensure_parameter_correct fn

* feat: add genesis configuration and integration tests for vtoken voting (#2058)

* feat: update dependencies and improve configuration for orml-xtokens integration

* feat: add bifrost-slp-v2 to Cargo.lock and mark RelayCall as dead code

* feat: update integration test dependencies to stable2512

* feat: add Solidity toolchain installation to CI build

* feat: skip pallet revive fixtures in CI build

* feat: add max_block_range parameter for log queries

* feat: add max_block_range parameter for log queries

* update Cargo.lock

* update Cargo.lock

* refactor: remove unused log imports and replace logging with println in XCM functions

* feat: add genesis configuration and integration tests for vtoken voting

* Adjust the order of polkadot-call

* Comment on the vtoken_voting integration test

* fix tests

* add allow(dead_code) to kusama call

* adapt slpv2 StakingLedger

---------

Co-authored-by: hqwangningbo <2536935847@qq.com>

* Wave migration (#2060)

* fix: 🐛 clouds-convert

* fix: 🐛 nit

* fix: 🐛 nit

* fix: 🐛 rename

* fix: 🐛 fmt

* fix: 🐛 fmt

* fix: 🐛 test-all

* fix: 🐛 test

* fix: 🐛 nit

* fix: 🐛 nit

* feat: modify authoring_duration from 1500ms to 2000ms. (#2061)

* chore: add log dependency and update CI workflow to check Cargo.lock synchronization (#2065)

Co-authored-by: AresCui <arescui@bifrost.io>

* fix vtokenVoting blackNumber (#2066)

* remove #[allow(clippy::useless_conversion)] (#2067)

* Fix/wave migration (#2063)

* feat: 🎸 add migrate_pairs_batch

* fix: 🐛 fmt

* fix: 🐛 Cargo.lock

* fix: enable rocksdb

* Revert "feat: 🎸 add migrate_pairs_batch"

This reverts commit 0270852.

* Revert "Wave migration (#2060)"

This reverts commit cb61c4b.

* fix: 🐛 nit

---------

Co-authored-by: AresCui <arescui@bifrost.io>

* fix: Cargo.lock (#2069)

Co-authored-by: AresCui <arescui@bifrost.io>

* fix lp-token2 (#2070)

* fix lp-token2

* fix test

* fix: use storage_alias for try-runtime ConfigurationByStakingProtocol pre_upgrade count (#2071)

* fix: 🐛 change entrance_account_free_balance (#2072)

* fix: 🐛 change entrance_account_free_balance

* fix: 🐛 test

* fix: 🐛 clippyt

* fix: 🐛 event

* fix: 🐛 nit

* fix: 🐛 benchmark

* fix: 🐛 test

* fix: missing dependencies (#2075)

Co-authored-by: arescui <arescui@bifrost.io>

* Resolve conflicts

* feat(migration): implement storage migration from v2 to v3 and remove Ethereum staking

* feat(migration): add DelegatorIndex and Validators counts in pre and post migration logs

* feat(migration): add Ethereum proxy staking initialization in v3 migration

* Remove optional flag from hex-literal dependency

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Edwin <lark930@gmail.com>
Co-authored-by: damian.lu <wsteth@outlook.com>
Co-authored-by: NingBo Wang <2536935847@qq.com>
Co-authored-by: 战神西红柿 <34213033+TomatoAres@users.noreply.github.com>
Co-authored-by: AresCui <arescui@bifrost.io>
Co-authored-by: yooml <ymlll0508@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: MJLNSN <96321798+MJLNSN@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
# Conflicts:
#	Cargo.lock
#	node/cli/Cargo.toml
#	runtime/bifrost-kusama/src/lib.rs
#	runtime/bifrost-paseo/src/lib.rs
#	runtime/bifrost-polkadot/src/lib.rs
* feat: enhance reward distribution with new claim options and ratios

* feat: add claim option parameter to set_incentive function

* feat: add ClaimOption parameter to extrinsic call in benchmarking

* feat: update weights for reward distribution and enhance performance metrics

* feat: enhance reward claiming mechanism with new claim options and increase max positions

* feat: add atomic update for token pool and vtoken issuance with exchange rate check

* Roll back the code submitted with an error

* refactor: improve reward distribution logic and simplify calculations

* refactor: define type alias for active position in reward distribution

* refactor: enhance reward distribution calculation and improve error handling

* refactor: implement minting of vToken rewards and update reward claim logic

* fix pre-review

* refactor: implement fixed minimum for reward addition and increase amount logic

* refactor: update reward claim structure and enhance reward calculation logic

* refactor: replace fixed minimum with configurable increase amount for reward distribution

* refactor: update autogenerated weights and optimize function execution times

* refactor: add configurable minimum increase amount for reward distribution
Co-authored-by: arescui <arescui@bifrost.io>
* add: try-runtime ci

* fix: try-kusama-runtime-upgrade-snap-disable-mbm snap file name

* refactor: streamline snapshot creation scripts by introducing a common function

- Replaced individual snapshot creation logic in Kusama, Paseo, and Polkadot scripts with a shared function in create-runtime-snapshot-common.sh.
- Updated usage instructions to include an additional RPC_URI parameter for improved flexibility.
- Enhanced error handling for runtime file checks and pallet extraction.

* chore: remove temporary branch configuration from try-runtime CI workflow

* fix: slack webhook url

---------

Co-authored-by: arescui <arescui@bifrost.io>
* feat: add USDT token management and swap functionality

* Remove OraclePriceProvider and add migration for DollarStandardInfo to v2

* roll back the code

* feat: enhance USDT swap functionality with new error handling and bounded swap path

* feat: add default hook iteration limit and update buyback logic to respect it
Co-authored-by: arescui <arescui@bifrost.io>
* feat: introduce cross-chain risk control pallet with benchmarks and tests

* feat: add bifrost cross-chain risk control module with configuration parameters

* feat: integrate risk control handling in asset deposit process

* feat: implement inbound risk control handling in asset deposit process

* feat: add risk control module and integrate with asset transfer processes

* fix: improve formatting of balance conversion in ISMP module

* feat: enhance risk configuration validation and error handling in risk control module
…2115)

* refactor: update reward calculation logic and parameters for locking periods

* fix pr-review
…2120)

* fix: add validation for zero proportion and update migration logic

* fix clippy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants