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

Bifrost v0.12.1 #1342

Merged
merged 39 commits into from
Aug 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
cd8b066
Bifrost v0.12.0
SunTiebing Jul 1, 2024
c5a4109
remove old migrations
SunTiebing Jul 2, 2024
21a0270
Fix vtokenVoting.removeDelegatorVote (#1288)
SunTiebing Jul 3, 2024
6b6e302
Merge branch 'develop' into v0.12.0
ark930 Jul 3, 2024
db4044b
Merge branch 'develop' into v0.12.0
ark930 Jul 4, 2024
9c022a0
Merge branch 'develop' into v0.12.0
ark930 Jul 5, 2024
55ecaec
Add metadata hash (#1299)
yooml Jul 10, 2024
01e0a8e
refactor: 💡 update MaxTurnout and whitelisted_caller track (#1304)
yooml Jul 12, 2024
8e45b7f
Allow to receive and send Ethereum assets (#1305)
hqwangningbo Jul 12, 2024
5ec6201
Disable supplement_fee_reserve (#1306)
hqwangningbo Jul 15, 2024
e4d88b9
Remove call_switchgear and add tx_pause (#1308)
hqwangningbo Jul 15, 2024
5307f58
Optimize flexible fee (#1307)
hqwangningbo Jul 16, 2024
9728d3d
feat: 🎸 add market-bond
yooml Jul 17, 2024
ae7b059
fix: 🐛 test-all
yooml Jul 17, 2024
9ba9adf
Merge pull request #1309 from bifrost-finance/market-bond
SunTiebing Jul 19, 2024
86b608f
fix: 🐛 try-runtime
yooml Jul 19, 2024
74888e7
Add the channel_id field to the Minted event
SunTiebing Jul 19, 2024
ea87f16
Merge pull request #1311 from bifrost-finance/feat/add-mint-event-cha…
SunTiebing Jul 19, 2024
c56611a
Upgrade to polkadot-v1.13.0 (#1312)
SunTiebing Jul 23, 2024
8b6d4d4
Use github dependencies (#1314)
hqwangningbo Jul 24, 2024
9e37e32
Fix flexible_fee TransferTo (#1315)
hqwangningbo Jul 24, 2024
14da5c8
Fix generate_genesis_state (#1317)
hqwangningbo Jul 26, 2024
3d2b540
Optimize oracle (#1318)
yooml Jul 29, 2024
0888a54
Add some tests for ve-minting
MJLNSN Jul 30, 2024
ae833cb
Add some tests for ve-minting
MJLNSN Jul 30, 2024
e7810fd
Integrate evm (#1319)
hqwangningbo Jul 30, 2024
3f569ff
Fix try-runtime (#1323)
hqwangningbo Aug 1, 2024
581acc1
Fix manual seal
hqwangningbo Aug 1, 2024
e712a90
Fix manual seal (#1324)
hqwangningbo Aug 1, 2024
f31060a
fix: 🐛 fellowship collective data (#1325)
yooml Aug 1, 2024
18f05b8
Merge remote-tracking branch 'origin/v0.12.0' into fix_manual_seal
Wsteth Aug 1, 2024
3d2e2f2
fix: add parachain mock inherent data provider
Wsteth Aug 2, 2024
f0eb01e
Fix ethereum transfer fee (#1328)
hqwangningbo Aug 2, 2024
8a233e2
Merge pull request #1326 from bifrost-finance/fix_manual_seal
Wsteth Aug 2, 2024
21ca1ca
Add evm genesis migration (#1338)
hqwangningbo Aug 6, 2024
87b499c
Bump version to 0.12.1
ark930 Aug 6, 2024
3d8a5d2
Update Cargo.lock
ark930 Aug 6, 2024
edbd052
Fix migration (#1341)
hqwangningbo Aug 7, 2024
68d008e
Fix conflicts
hqwangningbo Aug 7, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.lock

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

2 changes: 1 addition & 1 deletion node/cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "bifrost-cli"
version = "0.12.0"
version = "0.12.1"
authors = ["Liebi Technologies <bifrost@liebi.com>"]
description = "Bifrost Parachain Node"
build = "build.rs"
Expand Down
1 change: 1 addition & 0 deletions node/service/res/bifrost-kusama.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
},
"relayChain": "kusama",
"paraId": 2001,
"evmSince": 1,
"consensusEngine": null,
"codeSubstitutes": {},
"genesis": {
Expand Down
1 change: 1 addition & 0 deletions node/service/res/bifrost-polkadot.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
},
"relayChain": "polkadot",
"paraId": 2030,
"evmSince": 5795196,
"codeSubstitutes": {},
"genesis": {
"raw": {
Expand Down
3 changes: 2 additions & 1 deletion runtime/bifrost-polkadot/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: create_runtime_str!("bifrost_polkadot"),
impl_name: create_runtime_str!("bifrost_polkadot"),
authoring_version: 0,
spec_version: 12000,
spec_version: 12001,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 1,
Expand Down Expand Up @@ -1896,6 +1896,7 @@ pub mod migrations {
Runtime,
governance::fellowship::FellowshipCollectiveInstance,
>,
crate::migration::genesis_evm_storage::GenesisEVMStorage,
);
}

Expand Down
20 changes: 20 additions & 0 deletions runtime/bifrost-polkadot/src/migration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -398,3 +398,23 @@ pub mod opengov {
}
}
}

pub mod genesis_evm_storage {
use crate::{Runtime, Weight};
use frame_support::traits::OnRuntimeUpgrade;
use pallet_dynamic_fee::MinGasPrice;
use pallet_evm_chain_id::ChainId;
use primitive_types::U256;

pub struct GenesisEVMStorage;

impl OnRuntimeUpgrade for GenesisEVMStorage {
fn on_runtime_upgrade() -> Weight {
let evm_id: u64 = 996u64;
let min_gas_fee: U256 = U256::from(560174200u64);
ChainId::<Runtime>::put(evm_id);
MinGasPrice::<Runtime>::put(min_gas_fee);
<Runtime as frame_system::Config>::DbWeight::get().reads_writes(0, 2)
}
}
}