feat(types): Phase 2/3 prep — 3 custom Charon pallet traits v0.0.3
Day 1 unblock surface extended con custom pallet traits para Phase 2-3 work all Substrate-free (no Substrate deps pulled yet, that's Phase 1.2). ## New trait surface (origin-chain-types::pallets) ### OriginProvenance (Phase 2.1, CHN-7) - attest_validator_signed: institutional/Foundation wallet attestation - batch_attest: bounded 64-item batch (Pi 5 block-weight aware) - provenance_exists: cheap duplicate-check query (no full fetch) ### OriginFees (Phase 2.4, CHN-8) - fee_for_extrinsic: storage-aware fee computation (uses tier_assertion) - estimate_fee: pure off-chain RPC dry-run helper - burn_basis_points: per-operation burn rate canonical (CHN-2 matrix) ### OriginValidatorEconomy (Phase 3.5, CHN-3) - distribute_rewards: epoch-based pro-rata desde 40% Ecosystem Pool - slash_validator: SlashReason taxonomy canonical - validator_commission_bps: nominator delegation read ### SlashReason enum - Downtime | DoubleSign | Equivocation | TierFraud - TierFraud variant enforces Inmutable #16 anti-clasista ON-CHAIN ## Workspace stats - 46 tests passing (was 44, +3 SlashReason serde + distinctness + inmutable_16 enforcement) - Build release clean - origin-chain-runtime re-exports extended Refs: CHN-3/7/8, Phase 2.1/2.4/3.5 of CHARON_ROADMAP_V1, Inmutable #16 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
2f47654418
commit
13db9a0698
4 files changed
+217
-1
No files matched your search
@@ -39,7 +39,8 @@
|
||||
pub use origin_chain_types::{
|
||||
AccountId, AssetAttestation, AssetHash, AssetQualityTier, BridgeDestination, ChainBridge,
|
||||
ChainError, FeeCalculator, ForeignTxId, GovernanceProposal, HardwareTier, Ogc, OgcLedger,
|
||||
OperationKind, ProposalId, ProvenanceLedger, Signature, Vote, VoteStance,
|
||||
OperationKind, OriginFees, OriginProvenance, OriginValidatorEconomy, ProposalId,
|
||||
ProvenanceLedger, Signature, SlashReason, Vote, VoteStance,
|
||||
};
|
||||
|
||||
/// Canonical runtime configuration. Substrate `Config` traits implement when
|
||||
|
||||
Reference in new issue
Block a user