Skip to content

Commit

Permalink
Merge branch 'master' of github.com:bitgreen/bitgreen-node into devel…
Browse files Browse the repository at this point in the history
…op-to-master
  • Loading branch information
abhath-labs committed Apr 27, 2023
2 parents 0f39165 + ab98a1b commit 78a2c92
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pallets/dex/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// This code is licensed under MIT license (see LICENSE.txt for details)
use frame_support::{
parameter_types,
traits::{AsEnsureOriginWithArg, ConstU32, Contains, Everything, GenesisBuild, Nothing},
traits::{AsEnsureOriginWithArg, ConstU32, Everything, GenesisBuild, Nothing},
PalletId,
};
use frame_system as system;
Expand Down
25 changes: 25 additions & 0 deletions runtime/rococo/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -684,6 +684,31 @@ impl pallet_identity::Config for Runtime {
type WeightInfo = ();
}

parameter_types! {
// Minimum 4 CENTS/byte
pub const BasicDeposit: Balance = deposit(1, 258);
pub const FieldDeposit: Balance = deposit(0, 66);
pub const SubAccountDeposit: Balance = deposit(1, 53);
pub const MaxSubAccounts: u32 = 100;
pub const MaxAdditionalFields: u32 = 100;
pub const MaxRegistrars: u32 = 20;
}

impl pallet_identity::Config for Runtime {
type RuntimeEvent = RuntimeEvent;
type Currency = Balances;
type BasicDeposit = BasicDeposit;
type FieldDeposit = FieldDeposit;
type SubAccountDeposit = SubAccountDeposit;
type MaxSubAccounts = MaxSubAccounts;
type MaxAdditionalFields = MaxAdditionalFields;
type MaxRegistrars = MaxRegistrars;
type Slashed = Treasury;
type ForceOrigin = EnsureRoot<AccountId>;
type RegistrarOrigin = EnsureRoot<AccountId>;
type WeightInfo = ();
}

// Prints debug output of the `contracts` pallet to stdout if the node is
// started with `-lruntime::contracts=debug`.
pub const CONTRACTS_DEBUG_OUTPUT: bool = true;
Expand Down

0 comments on commit 78a2c92

Please sign in to comment.