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

NODE-65, deps: polkadot sdk migration #36

Merged
merged 53 commits into from
Jan 20, 2024
Merged
Changes from 1 commit
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
98ecf69
NODE-64, deps: upgrade to bifrost-polkadot-v1.3.0
dnjscksdn98 Dec 22, 2023
e52dd03
NODE-64, chore: use
dnjscksdn98 Dec 22, 2023
f0ef82f
NODE-64, chore: remove precompile utils
dnjscksdn98 Dec 22, 2023
e9a4e5a
NODE-64, chore: replace to
dnjscksdn98 Dec 22, 2023
8dd3423
NODE-64, chore: move to
dnjscksdn98 Dec 22, 2023
479a4d9
NODE-65, chore: apply block number prelude to precompiles
dnjscksdn98 Dec 22, 2023
bc9b0b0
NODE-65, chore: add hold/freeze reasons to
dnjscksdn98 Dec 22, 2023
ff6424d
NODE-65, chore: remove hold identifier from
dnjscksdn98 Dec 22, 2023
087352e
NODE-65, chore: add to
dnjscksdn98 Dec 22, 2023
12d2de3
NODE-65, chore: add AllowMultipleBlocksPerSlot to pallet_aura
dnjscksdn98 Dec 22, 2023
3f24b2e
NODE-65, chore: add new types to pallet_treasury
dnjscksdn98 Dec 22, 2023
35349ea
NODE-65, chore: make pallet_preimage use Consideration
dnjscksdn98 Dec 22, 2023
89ce574
NODE-65, chore: add missing generic type to GenesisConfig
dnjscksdn98 Dec 22, 2023
c63180d
NODE-65, chore: update pallet_preimage
dnjscksdn98 Dec 27, 2023
10b26db
NODE-65, chore: add IdentityInformation to pallet_identity
dnjscksdn98 Dec 27, 2023
cff0013
NODE-65, chore: remove MaxPeerDataEncodingSize from pallet_im_online
dnjscksdn98 Dec 27, 2023
c8a22e4
NODE-65, chore: add SuicideQuickClearLimit to pallet_evm
dnjscksdn98 Dec 27, 2023
680d5a3
NODE-65, feat: implement GenesisBuilder runtime api
dnjscksdn98 Dec 27, 2023
ab2ef53
NODE-65, chore: rename Index to Nonce
dnjscksdn98 Dec 27, 2023
3a975b7
NODE-65, chore: specify txpool feature to fc_rpc
dnjscksdn98 Dec 27, 2023
bbfcaed
NODE-65, fix: pending runtime api for pending state
dnjscksdn98 Dec 27, 2023
e0bc423
NODE-65, chore: Removal of execution strategies
dnjscksdn98 Dec 27, 2023
f3d922b
NODE-65, chore: Set StateBackend::Transaction to PrefixedMemoryDB
dnjscksdn98 Dec 27, 2023
4da002b
NODE-65, chore: Modular block request handler
dnjscksdn98 Dec 27, 2023
0da8074
NODE-65, chore: implement eth_call state override
dnjscksdn98 Dec 27, 2023
98a8a17
NODE-65, fix: resolve service.rs compile errors
dnjscksdn98 Dec 27, 2023
fc0d609
NODE-65, fix: replace to RuntimeGenesisConfig in chain_spec
dnjscksdn98 Dec 27, 2023
5a16af4
NODE-65, chore: add missing clone()
dnjscksdn98 Dec 27, 2023
c90b0e3
NODE-65, chore: remove native runtime version api
dnjscksdn98 Dec 27, 2023
705d7ca
NODE-65, fix: replace to fp-account
dnjscksdn98 Dec 28, 2023
1d888e2
NODE-65, fix: remove RuntimeFreezeReason and sort imports
dnjscksdn98 Dec 28, 2023
68328cb
NODE-65, chore: remove unneccessary self imports
dnjscksdn98 Dec 28, 2023
cc2b2f5
NODE-65, fix: rollback cherry-picked EthereumRuntimeRPCApi changes
dnjscksdn98 Dec 28, 2023
75d3d5c
NODE-65, fix: add missing evm features
dnjscksdn98 Jan 2, 2024
2617a80
NODE-65, deps: release v1.3.0
dnjscksdn98 Jan 2, 2024
f888264
NODE-65, fix: remove unused params
dnjscksdn98 Jan 2, 2024
31a505b
NODE-65, fix: use correct crate features
dnjscksdn98 Jan 3, 2024
0f44c0e
NODE-65, fix: remove std feature on pallet GenesisConfig Default impl
dnjscksdn98 Jan 3, 2024
6c4e544
NODE-65, test: replace deprecated storage
dnjscksdn98 Jan 3, 2024
47ba133
NODE-65, test: estimated gas should be correct
dnjscksdn98 Jan 4, 2024
13798e6
NODE-65, test: split runtime tests
dnjscksdn98 Jan 4, 2024
dd89d01
NODE-65, test: check balance consistancy
dnjscksdn98 Jan 5, 2024
fa722b4
NODE-65, test: check balance consistancy (2)
dnjscksdn98 Jan 5, 2024
109355d
NODE-65, feat: Only use substrate-wasm-builder when std feature is en…
dnjscksdn98 Jan 5, 2024
b24d9a9
NODE-65, deps: update Cargo.lock
dnjscksdn98 Jan 5, 2024
d8890a6
NODE-65, fix: resolve imports
dnjscksdn98 Jan 10, 2024
901587a
NODE-65, fix: update runtime tests
dnjscksdn98 Jan 11, 2024
35cdedf
NODE-65, fix: handle runtime test failures
dnjscksdn98 Jan 11, 2024
5be907f
NODE-65, deps: update node packages
dnjscksdn98 Jan 11, 2024
8881b43
NODE-65, deps: update Cargo.lock
dnjscksdn98 Jan 12, 2024
246a981
NODE-65, fix: remove test config
dnjscksdn98 Jan 12, 2024
07b5283
NODE-84, chore: bifrost-frontier/pull/12 (#37)
alstjd0921 Jan 18, 2024
121659e
NODE-65, test: bifrost-frontier/pull/12 test code
alstjd0921 Jan 19, 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
Prev Previous commit
Next Next commit
NODE-65, fix: use correct crate features
dnjscksdn98 committed Jan 12, 2024
commit 31a505bb8a749e7b5e0eff81c0474374565c14ef
3 changes: 1 addition & 2 deletions pallets/bfc-staking/Cargo.toml
Original file line number Diff line number Diff line change
@@ -10,7 +10,7 @@ repository = { workspace = true }

[dependencies]
log = { workspace = true }
serde = { workspace = true, optional = true }
serde = { workspace = true, features = ["std"] }
substrate-fixed = { workspace = true }

# Substrate
@@ -51,7 +51,6 @@ std = [
"pallet-im-online/std",
"pallet-relay-manager/std",
"pallet-bfc-offences/std",
"serde",
"sp-runtime/std",
"sp-std/std",
"sp-staking/std",
30 changes: 25 additions & 5 deletions pallets/bfc-staking/src/inflation.rs
Original file line number Diff line number Diff line change
@@ -5,7 +5,6 @@ use crate::{
BalanceOf,
};

#[cfg(feature = "std")]
use serde::{Deserialize, Serialize};

use parity_scale_codec::{Decode, Encode, MaxEncodedLen};
@@ -29,9 +28,19 @@ pub fn rounds_per_year<T: Config>() -> u32 {
BLOCKS_PER_YEAR / blocks_per_round
}

#[cfg_attr(feature = "std", derive(Serialize, Deserialize))]
#[derive(
Eq, PartialEq, Clone, Copy, Encode, Decode, Default, RuntimeDebug, MaxEncodedLen, TypeInfo,
Eq,
PartialEq,
Clone,
Copy,
Encode,
Decode,
Default,
RuntimeDebug,
MaxEncodedLen,
TypeInfo,
Serialize,
Deserialize,
)]
/// A data structure that represents a certain range in three possible values
pub struct Range<T> {
@@ -97,8 +106,19 @@ pub fn round_issuance_range<T: Config>(round_inflation: Range<Perbill>) -> Range
}
}

#[cfg_attr(feature = "std", derive(Serialize, Deserialize))]
#[derive(Eq, PartialEq, Clone, Encode, Decode, Default, RuntimeDebug, TypeInfo, MaxEncodedLen)]
#[derive(
Eq,
PartialEq,
Clone,
Encode,
Decode,
Default,
RuntimeDebug,
TypeInfo,
MaxEncodedLen,
Serialize,
Deserialize,
)]
/// The information about the staking inflation for this network
pub struct InflationInfo<Balance> {
/// Staking expectations
1 change: 1 addition & 0 deletions precompiles/bfc-staking/Cargo.toml
Original file line number Diff line number Diff line change
@@ -49,6 +49,7 @@ std = [
"frame-support/std",
"frame-system/std",
"pallet-bfc-staking/std",
"pallet-evm/std",
"bp-staking/std",
"precompile-utils/std",
"sp-core/std",
2 changes: 1 addition & 1 deletion runtime/dev/Cargo.toml
Original file line number Diff line number Diff line change
@@ -74,7 +74,7 @@ pallet-evm = { workspace = true, features = ["forbid-evm-reentrancy"] }
pallet-ethereum = { workspace = true, features = ["forbid-evm-reentrancy"] }
pallet-base-fee = { workspace = true }
fp-self-contained = { workspace = true, features = ["serde"] }
fp-evm = { workspace = true }
fp-evm = { workspace = true, features = ["serde"] }
fp-rpc = { workspace = true }
fp-rpc-debug = { workspace = true }
fp-rpc-txpool = { workspace = true }
2 changes: 1 addition & 1 deletion runtime/mainnet/Cargo.toml
Original file line number Diff line number Diff line change
@@ -74,7 +74,7 @@ pallet-evm = { workspace = true, features = ["forbid-evm-reentrancy"] }
pallet-ethereum = { workspace = true, features = ["forbid-evm-reentrancy"] }
pallet-base-fee = { workspace = true }
fp-self-contained = { workspace = true, features = ["serde"] }
fp-evm = { workspace = true }
fp-evm = { workspace = true, features = ["serde"] }
fp-rpc = { workspace = true }
fp-rpc-debug = { workspace = true }
fp-rpc-txpool = { workspace = true }
2 changes: 1 addition & 1 deletion runtime/testnet/Cargo.toml
Original file line number Diff line number Diff line change
@@ -74,7 +74,7 @@ pallet-evm = { workspace = true, features = ["forbid-evm-reentrancy"] }
pallet-ethereum = { workspace = true, features = ["forbid-evm-reentrancy"] }
pallet-base-fee = { workspace = true }
fp-self-contained = { workspace = true, features = ["serde"] }
fp-evm = { workspace = true }
fp-evm = { workspace = true, features = ["serde"] }
fp-rpc = { workspace = true }
fp-rpc-debug = { workspace = true }
fp-rpc-txpool = { workspace = true }