Skip to content

Commit

Permalink
fix: 🐛 redefine system pool id (#1421)
Browse files Browse the repository at this point in the history
* fix: 🐛 redefine system pool id

* fix: 🐛 auto_notify_reward

* refactor: 💡 rename to bb-bnc

* style: 💄 clippy

* fix: 🐛 rename error

* refactor: 💡 rm BbBNCPalletId

* fix: 🐛 UserFarmingPool bound limit
  • Loading branch information
yooml authored Sep 11, 2024
1 parent 7bcc93f commit b26c6bc
Show file tree
Hide file tree
Showing 51 changed files with 905 additions and 920 deletions.
140 changes: 70 additions & 70 deletions Cargo.lock

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

8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ members = [
"pallets/system-maker",
"pallets/fee-share",
"pallets/parachain-staking",
"pallets/ve-minting",
"pallets/bb-bnc",
"pallets/stable-pool",
"pallets/lend-market",
"pallets/prices",
Expand All @@ -53,7 +53,7 @@ bifrost-flexible-fee-rpc = { path = "pallets/flexible-fee/rpc" }
bifrost-rpc = { path = "node/rpc" }
bifrost-salp-rpc = { path = "pallets/salp/rpc" }
bifrost-stable-pool-rpc = { path = "pallets/stable-pool/rpc" }
bifrost-ve-minting-rpc = { path = "pallets/ve-minting/rpc" }
bb-bnc-rpc = { path = "pallets/bb-bnc/rpc" }
lend-market-rpc = { path = "pallets/lend-market/rpc" }
bifrost-vtoken-minting-rpc = { path = "pallets/vtoken-minting/rpc" }

Expand Down Expand Up @@ -89,8 +89,8 @@ bifrost-system-maker = { path = "pallets/system-maker", defaul
bifrost-system-staking = { path = "pallets/system-staking", default-features = false }
bifrost-token-issuer = { path = "pallets/token-issuer", default-features = false }
bifrost-vbnc-convert = { path = "pallets/vbnc-convert", default-features = false }
bifrost-ve-minting = { path = "pallets/ve-minting", default-features = false }
bifrost-ve-minting-rpc-runtime-api = { path = "pallets/ve-minting/rpc/runtime-api", default-features = false }
bb-bnc = { path = "pallets/bb-bnc", default-features = false }
bb-bnc-rpc-runtime-api = { path = "pallets/bb-bnc/rpc/runtime-api", default-features = false }
bifrost-vesting = { path = "pallets/vesting", default-features = false }
bifrost-vsbond-auction = { path = "pallets/vsbond-auction", default-features = false }
bifrost-vstoken-conversion = { path = "pallets/vstoken-conversion", default-features = false }
Expand Down
4 changes: 2 additions & 2 deletions node/rpc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ bifrost-salp-rpc = { workspace = true }
bifrost-salp-rpc-runtime-api = { workspace = true }
bifrost-farming-rpc = { workspace = true }
bifrost-farming-rpc-runtime-api = { workspace = true }
bifrost-ve-minting-rpc = { workspace = true }
bifrost-ve-minting-rpc-runtime-api = { workspace = true }
bb-bnc-rpc = { workspace = true }
bb-bnc-rpc-runtime-api = { workspace = true }
bifrost-stable-pool-rpc = { workspace = true }
bifrost-stable-pool-rpc-runtime-api = { workspace = true }
lend-market-rpc = { workspace = true }
Expand Down
8 changes: 4 additions & 4 deletions node/rpc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@

use std::sync::Arc;

use bb_bnc_rpc::{BbBNCRpc, BbBNCRpcApiServer};
use bb_bnc_rpc_runtime_api::BbBNCRuntimeApi;
use bifrost_farming_rpc::{FarmingRpc, FarmingRpcApiServer};
use bifrost_farming_rpc_runtime_api::FarmingRuntimeApi;
use bifrost_flexible_fee_rpc::{FeeRpcApiServer, FlexibleFeeRpc};
Expand All @@ -43,8 +45,6 @@ use bifrost_salp_rpc::{SalpRpc, SalpRpcApiServer};
use bifrost_salp_rpc_runtime_api::SalpRuntimeApi;
use bifrost_stable_pool_rpc::{StablePoolRpc, StablePoolRpcApiServer};
use bifrost_stable_pool_rpc_runtime_api::StablePoolRuntimeApi;
use bifrost_ve_minting_rpc::{VeMintingRpc, VeMintingRpcApiServer};
use bifrost_ve_minting_rpc_runtime_api::VeMintingRuntimeApi;
use bifrost_vtoken_minting_rpc::{VtokenMintingRpc, VtokenMintingRpcApiServer};
use bifrost_vtoken_minting_rpc_runtime_api::VtokenMintingRuntimeApi;
use futures::channel::mpsc;
Expand Down Expand Up @@ -152,7 +152,7 @@ where
C::Api: FarmingRuntimeApi<Block, AccountId, PoolId, CurrencyId>,
C::Api: FeeRuntimeApi<Block, AccountId>,
C::Api: SalpRuntimeApi<Block, ParaId, AccountId>,
C::Api: VeMintingRuntimeApi<Block, AccountId>,
C::Api: BbBNCRuntimeApi<Block, AccountId>,
C::Api: LendMarketApi<Block, AccountId, Balance>,
C::Api: VtokenMintingRuntimeApi<Block, CurrencyId>,
C::Api: ZenlinkProtocolRuntimeApi<Block, AccountId, AssetId>,
Expand All @@ -169,7 +169,7 @@ where
module.merge(FarmingRpc::new(client.clone()).into_rpc())?;
module.merge(FlexibleFeeRpc::new(client.clone()).into_rpc())?;
module.merge(SalpRpc::new(client.clone()).into_rpc())?;
module.merge(VeMintingRpc::new(client.clone()).into_rpc())?;
module.merge(BbBNCRpc::new(client.clone()).into_rpc())?;
module.merge(ZenlinkProtocol::new(client.clone()).into_rpc())?;
module.merge(StablePoolRpc::new(client.clone()).into_rpc())?;
module.merge(LendMarket::new(client.clone()).into_rpc())?;
Expand Down
2 changes: 1 addition & 1 deletion node/service/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ fp-rpc = { workspace = true, features = ["default"] }
bifrost-flexible-fee-rpc-runtime-api = { workspace = true }
bifrost-salp-rpc-runtime-api = { workspace = true }
bifrost-farming-rpc-runtime-api = { workspace = true }
bifrost-ve-minting-rpc-runtime-api = { workspace = true }
bb-bnc-rpc-runtime-api = { workspace = true }

[features]
default = [ "std" ]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "bifrost-ve-minting"
name = "bb-bnc"
version = "0.8.0"
authors = ["Kadokura <ymlll0508@gmail.com>"]
edition = "2021"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "bifrost-ve-minting-rpc"
name = "bb-bnc-rpc"
version = "0.8.0"
authors = ["Kadokura <ymlll0508@gmail.com>"]
edition = "2021"
Expand All @@ -14,4 +14,4 @@ sp-blockchain = { workspace = true }
sp-core = { workspace = true }
sp-rpc = { workspace = true }
bifrost-primitives = { workspace = true }
bifrost-ve-minting-rpc-runtime-api = { workspace = true }
bb-bnc-rpc-runtime-api = { workspace = true }
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "bifrost-ve-minting-rpc-runtime-api"
name = "bb-bnc-rpc-runtime-api"
version = "0.8.0"
authors = ["Kadokura <ymlll0508@gmail.com>"]
edition = "2021"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ use sp_api::decl_runtime_apis;
use sp_core::U256;

decl_runtime_apis! {
pub trait VeMintingRuntimeApi<AccountId> where
pub trait BbBNCRuntimeApi<AccountId> where
AccountId: Codec,
BlockNumber: Codec,
{
Expand Down
Loading

0 comments on commit b26c6bc

Please sign in to comment.