@@ -19,7 +19,10 @@ use codec::{Decode, Encode};
1919use polkadot_sdk_frame:: {
2020 deps:: frame_support,
2121 prelude:: {
22- fungible:: { Dust , Inspect , InspectHold , Mutate , MutateHold , Unbalanced , UnbalancedHold } ,
22+ fungible:: {
23+ hold:: DoneSlash , Balanced , BalancedHold , Dust , Inspect , InspectHold , Mutate ,
24+ MutateHold , Unbalanced , UnbalancedHold ,
25+ } ,
2326 DepositConsequence , DispatchError , DispatchResult , Fortitude , Preservation , Provenance ,
2427 WithdrawConsequence , Zero ,
2528 } ,
@@ -40,10 +43,31 @@ pub struct NoCurrency<AccountId, HoldReason = ()>(
4043 core:: marker:: PhantomData < ( AccountId , HoldReason ) > ,
4144) ;
4245
46+ impl < AccountId , HoldReason > Balanced < AccountId > for NoCurrency < AccountId , HoldReason >
47+ where
48+ HoldReason : Encode + Decode + TypeInfo + ' static ,
49+ {
50+ type OnDropDebt = ( ) ;
51+ type OnDropCredit = ( ) ;
52+ }
53+
54+ impl < AccountId , HoldReason > BalancedHold < AccountId > for NoCurrency < AccountId , HoldReason > where
55+ HoldReason : Encode + Decode + TypeInfo + ' static
56+ {
57+ }
58+
59+ impl < AccountId , HoldReason , Balance > DoneSlash < HoldReason , AccountId , Balance >
60+ for NoCurrency < AccountId , HoldReason >
61+ where
62+ Balance : Sized ,
63+ HoldReason : Encode + Decode + TypeInfo + ' static ,
64+ {
65+ }
66+
4367impl < AccountId , HoldReason : Encode + Decode + TypeInfo + ' static > Inspect < AccountId >
4468 for NoCurrency < AccountId , HoldReason >
4569{
46- type Balance = u128 ;
70+ type Balance = u64 ;
4771
4872 fn total_issuance ( ) -> Self :: Balance {
4973 Zero :: zero ( )
0 commit comments