mirror of
https://github.com/datahaven-xyz/datahaven
synced 2026-05-24 01:38:32 +00:00
## Summary - Import `pallet-proxy-genesis-companion` from Moonbeam to enable proxy account configuration at genesis time - Configure the pallet in all runtimes (mainnet, stagenet, testnet) with pallet index 106 - Add `Serialize`/`Deserialize` derives to `ProxyType` enum to satisfy `MaybeSerializeDeserialize` bounds - Include mock runtime and unit tests adapted for polkadot-stable2412-6 This pallet extends `pallet-proxy` with genesis configuration support, allowing proxy relationships to be established at chain genesis rather than requiring extrinsic calls after launch. ### Key adaptations from Moonbeam The pallet was modified to work with the DataHaven SDK version (polkadot-stable2412-6): - Removed `BlockNumberProvider` associated type constraint (not present in this version of pallet-proxy) - Uses `frame_system::pallet_prelude::BlockNumberFor<T>` directly for delay parameter - Uses `MaybeSerializeDeserialize` trait bound for `ProxyType` --------- Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com> Co-authored-by: Ahmad Kaouk <56095276+ahmadkaouk@users.noreply.github.com> Co-authored-by: Ahmad Kaouk <ahmadkaouk.93@gmail.com> |
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.toml | ||