Skip to content

Commit

Permalink
Update traits for octopus-appchain
Browse files Browse the repository at this point in the history
  • Loading branch information
en committed Jul 18, 2022
1 parent 1b31694 commit 2b809c8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
11 changes: 6 additions & 5 deletions Cargo.lock

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

4 changes: 2 additions & 2 deletions node/src/chain_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use appchain_barnacle_runtime::{
};
use beefy_primitives::crypto::AuthorityId as BeefyId;
use pallet_im_online::sr25519::AuthorityId as ImOnlineId;
use pallet_octopus_appchain::AuthorityId as OctopusId;
use pallet_octopus_appchain::sr25519::AuthorityId as OctopusId;
use sc_chain_spec::ChainSpecExtension;
use sc_service::ChainType;
use serde::{Deserialize, Serialize};
Expand Down Expand Up @@ -232,7 +232,7 @@ fn testnet_genesis(
beefy: Default::default(),
octopus_appchain: OctopusAppchainConfig {
anchor_contract: "octopus-anchor.testnet".to_string(),
asset_id_by_name: vec![("usdn.testnet".to_string(), 0)],
asset_id_by_token_id: vec![("usdn.testnet".to_string(), 0)],
validators,
premined_amount: 1024 * DOLLARS,
},
Expand Down
7 changes: 4 additions & 3 deletions runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ pub struct OctopusAppCrypto;
impl frame_system::offchain::AppCrypto<<Signature as Verify>::Signer, Signature>
for OctopusAppCrypto
{
type RuntimeAppPublic = pallet_octopus_appchain::AuthorityId;
type RuntimeAppPublic = pallet_octopus_appchain::sr25519::AuthorityId;
type GenericSignature = sp_core::sr25519::Signature;
type GenericPublic = sp_core::sr25519::Public;
}
Expand All @@ -594,7 +594,8 @@ parameter_types! {
}

impl pallet_octopus_appchain::Config for Runtime {
type AuthorityId = OctopusAppCrypto;
type AuthorityId = pallet_octopus_appchain::sr25519::AuthorityId;
type AppCrypto = OctopusAppCrypto;
type Event = Event;
type Call = Call;
type PalletId = OctopusAppchainPalletId;
Expand All @@ -608,7 +609,7 @@ impl pallet_octopus_appchain::Config for Runtime {
type Assets = OctopusAssets;
type AssetBalance = AssetBalance;
type AssetId = AssetId;
type AssetIdByName = OctopusAppchain;
type AssetIdByTokenId = OctopusAppchain;
type GracePeriod = GracePeriod;
type UnsignedPriority = UnsignedPriority;
type RequestEventLimit = RequestEventLimit;
Expand Down

0 comments on commit 2b809c8

Please sign in to comment.