Crates.io | pallet-dotchip |
lib.rs | pallet-dotchip |
version | 1.0.2 |
source | src |
created_at | 2021-03-26 02:01:59.49401 |
updated_at | 2021-04-01 04:05:19.045841 |
description | chip money pallet for polkadot games |
homepage | https://github.com/xtony77/pallet-dotchip |
repository | https://github.com/xtony77/pallet-dotchip |
max_upload_size | |
id | 373627 |
size | 11,927 |
chip money pallet for polkadot games
runtime/Cargo.toml
[dependencies]
...
// Add this code
pallet-dotchip = { default-features = false, version = '1.0.0' }
[features]
default = ['std']
runtime-benchmarks = [
...
]
std = [
...
// Add this code
'pallet-dotchip/std'
]
runtime/src/lib.rs
// Add this code
impl pallet-dotchip::Config for Runtime {
type Event = Event;
type Currency = Balances;
}
construct_runtime!(
pub enum Runtime where
Block = Block,
NodeBlock = opaque::Block,
UncheckedExtrinsic = UncheckedExtrinsic
{
...
// Add this code
DotChip: pallet-dotchip::{Module, Call, Storage, Event<T>},
}
);
cargo test