Based on the Vault Registry specification.
Run cargo build
from the root folder of this directory.
Run cargo test
from the root folder of this directory.
To add this pallet to your runtime, simply include the following to your runtime's Cargo.toml
file:
[dependencies.btc-relay]
default_features = false
git = '../creates/vault-registry'
Update your runtime's std
feature to include this pallet:
std = [
# --snip--
'vault-registry/std',
]
You should implement it's trait like so:
/// Used for test_module
impl vault_registry::Config for Runtime {
type RuntimeEvent = RuntimeEvent;
type WeightInfo = ();
}
and include it in your construct_runtime!
macro:
VaultRegistry: vault_registry::{Module, Call, Config<T>, Storage, Event<T>},
You can view the reference docs for this pallet by running:
cargo doc --open