Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
AlphaGamingArcade committed Oct 12, 2024
1 parent 2bef930 commit 9100bb1
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 1 deletion.
21 changes: 21 additions & 0 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions resources/aga-chain-spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"id": "aga",
"chainType": "Live",
"bootNodes": [],
"chainId": 171,
"telemetryEndpoints": null,
"protocolId": "aga",
"properties": {
Expand Down
1 change: 1 addition & 0 deletions runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ frame-system-benchmarking = { git = "https://github.com/paritytech/polkadot-sdk.

# The pallet in this template.
pallet-template = { path = "../pallets/template", default-features = false }
pallet-xbridge = { path = "../pallets/xbridge", default-features = false }

[build-dependencies]
substrate-wasm-builder = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-v1.9.0", optional = true }
Expand Down
10 changes: 9 additions & 1 deletion runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
// `spec_version`, and `authoring_version` are the same between Wasm and native.
// This value is set to 100 to notify Polkadot-JS App (https://polkadot.js.org/apps) to use
// the compatible custom types.
spec_version: 105,
spec_version: 106,
impl_version: 1,
apis: RUNTIME_API_VERSIONS,
transaction_version: 1,
Expand Down Expand Up @@ -312,6 +312,13 @@ impl pallet_template::Config for Runtime {
type WeightInfo = pallet_template::weights::SubstrateWeight<Runtime>;
}

impl pallet_xbridge::Config for Runtime {
type RuntimeEvent = RuntimeEvent;
type RuntimeCall = RuntimeCall;
type WeightInfo = pallet_xbridge::weights::SubstrateWeight<Runtime>;
type Currency = Balances;
}

impl pallet_utility::Config for Runtime {
type RuntimeEvent = RuntimeEvent;
type RuntimeCall = RuntimeCall;
Expand All @@ -337,6 +344,7 @@ construct_runtime!(
Utility: pallet_utility = 12,
Authorship: pallet_authorship = 13,
Contracts: pallet_contracts = 14,
XBridge: pallet_xbridge = 15,
}
);

Expand Down

0 comments on commit 9100bb1

Please sign in to comment.