Skip to content

Commit

Permalink
oak-issue-30 (#66)
Browse files Browse the repository at this point in the history
* Upgrade for Control pallet

* Update dependency

* Allow utility call through xcm

* Add SovereignAccountOf

* More refactor

* Add FeeProvider config

* Allow xcm to config base_fee

* Remove unused

* Move config to outbound queue

* Update dependency

* Make RegisterCallIndex runtime const

* Use Treasury account to collect fees

* Remove unused const

* Add configs

* Clean dependencies

* Update dependencies

* Add estimate rpc

* Add runtime api

* runtime api for compute_fee_reward

* Use TreasuryAccount more specific

* Cleanup

* Update rococo runtime

* update

* Update weights

* Fix for smoke test

* Update rococo runtime

* Update for inbound MessageConverter

* update benchmarking logic in cumulus

* Chore

* Some polish

---------

Co-authored-by: Vincent Geddes <vincent.geddes@hey.com>
  • Loading branch information
yrong and vgeddes authored Oct 18, 2023
1 parent ebf1040 commit 9feea84
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions Cargo.lock

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

5 changes: 4 additions & 1 deletion parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,10 @@ use xcm_config::{
XcmOriginToTransactDispatchOrigin,
};

use crate::xcm_config::RelayLocation;
use bp_parachains::SingleParaStoredHeaderDataBuilder;
use bp_runtime::HeaderId;
use snowbridge_router_primitives::inbound::MessageToXcm;

#[cfg(any(feature = "std", test))]
pub use sp_runtime::BuildStorage;
Expand Down Expand Up @@ -586,6 +588,7 @@ impl pallet_bridge_relayers::Config for Runtime {
parameter_types! {
pub const Reward: u128 = 10;
pub const GatewayAddress: H160 = H160(EthereumGatewayAddress::get());
pub const CreateAssetCall: [u8;2] = [53, 0];
}

#[cfg(feature = "runtime-benchmarks")]
Expand All @@ -608,6 +611,7 @@ impl snowbridge_inbound_queue::Config for Runtime {
type GatewayAddress = GatewayAddress;
#[cfg(feature = "runtime-benchmarks")]
type Helper = Runtime;
type MessageConverter = MessageToXcm<CreateAssetCall>;
}


Expand Down Expand Up @@ -1124,7 +1128,6 @@ impl_runtime_apis! {
impl cumulus_pallet_session_benchmarking::Config for Runtime {}

use xcm::latest::prelude::*;
use xcm_config::RelayLocation;

impl pallet_xcm_benchmarks::Config for Runtime {
type XcmConfig = xcm_config::XcmConfig;
Expand Down

0 comments on commit 9feea84

Please sign in to comment.