@@ -138,19 +138,19 @@ parameter_types! {
138138 pub UnvestedFundsAllowedWithdrawReasons : WithdrawReasons =
139139 WithdrawReasons :: except( WithdrawReasons :: TRANSFER | WithdrawReasons :: RESERVE ) ;
140140 /// Deposits per byte
141- pub const ByteDeposit : Balance = deposit ( 0 , 1 ) ;
141+ pub const ByteDeposit : Balance = 0 ;
142142 /// Index Pallet. Deposit taken for an account index
143- pub const IndicesDeposit : Balance = deposit ( 1 , MAX_INDICES_BYTE_LENGTH ) ;
143+ pub const IndicesDeposit : Balance = 0 ;
144144 /// CType Pallet. Per byte fee for a ctype.
145- pub const CtypeFee : Balance = MILLI_KILT ;
145+ pub const CtypeFee : Balance = 0 ;
146146}
147147
148148pub mod attestation {
149149 use super :: * ;
150150
151151 /// The size is checked in the runtime by a test.
152152 pub const MAX_ATTESTATION_BYTE_LENGTH : u32 = 179 ;
153- pub const ATTESTATION_DEPOSIT : Balance = deposit ( 2 , MAX_ATTESTATION_BYTE_LENGTH ) ;
153+ pub const ATTESTATION_DEPOSIT : Balance = 0 ;
154154
155155 parameter_types ! {
156156 pub const MaxDelegatedAttestations : u32 = 1000 ;
@@ -163,11 +163,8 @@ pub mod bonded_coins {
163163
164164 /// The size is checked in the runtime by a test.
165165 pub const MAX_POOL_BYTE_LENGTH : u32 = 987 ;
166- pub const BASE_DEPOSIT : Balance = deposit ( 1 , MAX_POOL_BYTE_LENGTH ) ;
167- const ASSET_ID_BYTE_LENGTH : u32 = 8 ;
168- /// https://github.com/paritytech/polkadot-sdk/blob/master/substrate/frame/assets/src/types.rs#L188
169- const ASSET_METADATA_BYTE_LENGTH : u32 = 26 ;
170- pub const DEPOSIT_PER_CURRENCY : Balance = deposit ( 1 , ASSET_ID_BYTE_LENGTH + ( 2 * ASSET_METADATA_BYTE_LENGTH ) ) ;
166+ pub const BASE_DEPOSIT : Balance = 0 ;
167+ pub const DEPOSIT_PER_CURRENCY : Balance = 0 ;
171168 pub const MAX_CURRENCIES : u32 = 50 ;
172169 pub const MAX_DENOMINATION : u8 = 15 ;
173170 pub const MAX_STRING_LENGTH : u32 = crate :: constants:: bonded_assets:: STRING_LIMIT ;
@@ -210,7 +207,7 @@ pub mod delegation {
210207
211208 use super :: * ;
212209
213- pub const DELEGATION_DEPOSIT : Balance = KILT ;
210+ pub const DELEGATION_DEPOSIT : Balance = 0 ;
214211 pub const MAX_SIGNATURE_BYTE_LENGTH : u16 = 64 ;
215212 pub const MAX_PARENT_CHECKS : u32 = 5 ;
216213 pub const MAX_REVOCATIONS : u32 = 5 ;
@@ -224,7 +221,7 @@ pub mod delegation {
224221 pub const MaxRemovals : u32 = MAX_REMOVALS ;
225222 #[ derive( Clone , TypeInfo ) ]
226223 pub const MaxChildren : u32 = MAX_CHILDREN ;
227- pub const DelegationDeposit : Balance = DELEGATION_DEPOSIT ;
224+ pub const DelegationDeposit : Balance = 0 ;
228225 }
229226}
230227
@@ -241,7 +238,7 @@ pub mod dip_provider {
241238 pub const MAX_LINKED_ACCOUNTS : u32 = 10 ;
242239 // Commitment are 32-byte hashes.
243240 pub const MAX_COMMITMENT_BYTE_LENGTH : u32 = 32 ;
244- pub const COMMITMENT_DEPOSIT : Balance = deposit ( 1 , MAX_COMMITMENT_BYTE_LENGTH ) ;
241+ pub const COMMITMENT_DEPOSIT : Balance = 0 ;
245242}
246243
247244pub mod staking {
@@ -404,8 +401,8 @@ pub mod multisig {
404401
405402 parameter_types ! {
406403 pub const MaxSignitors : u32 = 64 ;
407- pub const DepositBase : Balance = DEPOSIT_STORAGE_ITEM ;
408- pub const DepositFactor : Balance = DEPOSIT_STORAGE_BYTE ;
404+ pub const DepositBase : Balance = 0 ;
405+ pub const DepositFactor : Balance = 0 ;
409406 }
410407}
411408
@@ -441,11 +438,11 @@ pub mod did {
441438 + MAX_NUMBER_OF_URLS_PER_SERVICE * MAX_SERVICE_URL_LENGTH
442439 + 8 ;
443440
444- pub const DID_BASE_DEPOSIT : Balance = 2 * KILT ;
445- pub const KEY_DEPOSIT : Balance = deposit ( 0 , MAX_KEY_LENGTH ) ;
446- pub const SERVICE_ENDPOINT_DEPOSIT : Balance = deposit ( 1 , MAX_SERVICE_ENDPOINT_BYTE_LENGTH ) ;
441+ pub const DID_BASE_DEPOSIT : Balance = 0 ;
442+ pub const KEY_DEPOSIT : Balance = 0 ;
443+ pub const SERVICE_ENDPOINT_DEPOSIT : Balance = 0 ;
447444
448- pub const DID_FEE : Balance = 50 * MILLI_KILT ;
445+ pub const DID_FEE : Balance = 0 ;
449446 pub const MAX_KEY_AGREEMENT_KEYS : u32 = 10 ;
450447 // This has been reduced from the previous 100, but it might still need
451448 // fine-tuning depending on our needs.
@@ -488,7 +485,7 @@ pub mod did_lookup {
488485
489486 /// The size is checked in the runtime by a test.
490487 pub const MAX_CONNECTION_BYTE_LENGTH : u32 = 80 ;
491- pub const DID_CONNECTION_DEPOSIT : Balance = deposit ( 1 , MAX_CONNECTION_BYTE_LENGTH ) ;
488+ pub const DID_CONNECTION_DEPOSIT : Balance = 0 ;
492489
493490 parameter_types ! {
494491 pub const DidLookupDeposit : Balance = DID_CONNECTION_DEPOSIT ;
@@ -516,12 +513,12 @@ pub mod proxy {
516513
517514 parameter_types ! {
518515 // One storage item; key size 32, value size 8; .
519- pub const ProxyDepositBase : Balance = deposit ( 1 , 8 ) ;
516+ pub const ProxyDepositBase : Balance = 0 ;
520517 // Additional storage item size of 33 bytes.
521- pub const ProxyDepositFactor : Balance = deposit ( 0 , 33 ) ;
518+ pub const ProxyDepositFactor : Balance = 0 ;
522519 pub const MaxProxies : u16 = 10 ;
523- pub const AnnouncementDepositBase : Balance = deposit ( 1 , 8 ) ;
524- pub const AnnouncementDepositFactor : Balance = deposit ( 0 , 66 ) ;
520+ pub const AnnouncementDepositBase : Balance = 0 ;
521+ pub const AnnouncementDepositFactor : Balance = 0 ;
525522 pub const MaxPending : u16 = 10 ;
526523 }
527524}
@@ -534,30 +531,7 @@ pub mod web3_names {
534531
535532 /// The size is checked in the runtime by a test.
536533 pub const MAX_NAME_BYTE_LENGTH : u32 = 121 ;
537- pub const DEPOSIT : Balance = deposit ( 2 , MAX_NAME_BYTE_LENGTH ) ;
538-
539- parameter_types ! {
540- pub const Web3NameDeposit : Balance = DEPOSIT ;
541- pub const MinNameLength : u32 = MIN_LENGTH ;
542- pub const MaxNameLength : u32 = MAX_LENGTH ;
543- }
544- }
545-
546- pub mod dot_names {
547- use super :: * ;
548-
549- const MIN_NAME_LENGTH : u32 = 3 ;
550- const MAX_NAME_LENGTH : u32 = 28 ;
551-
552- pub const DOT_NAME_SUFFIX : & str = ".dot" ;
553- #[ allow( clippy:: as_conversions) ]
554- pub const MIN_LENGTH : u32 = MIN_NAME_LENGTH + DOT_NAME_SUFFIX . len ( ) as u32 ;
555- #[ allow( clippy:: as_conversions) ]
556- pub const MAX_LENGTH : u32 = MAX_NAME_LENGTH + DOT_NAME_SUFFIX . len ( ) as u32 ;
557-
558- /// The size is checked in the runtime by a test.
559- pub const MAX_NAME_BYTE_LENGTH : u32 = 121 ;
560- pub const DEPOSIT : Balance = deposit ( 2 , MAX_NAME_BYTE_LENGTH ) ;
534+ pub const DEPOSIT : Balance = 0 ;
561535
562536 parameter_types ! {
563537 pub const Web3NameDeposit : Balance = DEPOSIT ;
@@ -569,7 +543,7 @@ pub mod dot_names {
569543pub mod preimage {
570544 use super :: * ;
571545 parameter_types ! {
572- pub const PreimageBaseDeposit : Balance = deposit ( 2 , 64 ) ;
546+ pub const PreimageBaseDeposit : Balance = 0 ;
573547 }
574548}
575549
@@ -583,7 +557,7 @@ pub mod tips {
583557 pub const MaximumReasonLength : u32 = MAXIMUM_REASON_LENGTH ;
584558 pub const TipCountdown : BlockNumber = DAYS ;
585559 pub const TipFindersFee : Percent = Percent :: from_percent( 0 ) ;
586- pub const TipReportDepositBase : Balance = deposit ( 1 , 1 ) ;
560+ pub const TipReportDepositBase : Balance = 1 ;
587561 pub const MaxTipAmount : Balance = 100_000 * KILT ;
588562 }
589563}
@@ -608,7 +582,7 @@ pub mod public_credentials {
608582 /// The size is checked in the runtime by a test.
609583 pub const MAX_PUBLIC_CREDENTIAL_STORAGE_LENGTH : u32 = 419 ;
610584 // Each credential would have a different deposit, so no multiplier here
611- pub const PUBLIC_CREDENTIAL_DEPOSIT : Balance = deposit ( 1 , MAX_PUBLIC_CREDENTIAL_STORAGE_LENGTH ) ;
585+ pub const PUBLIC_CREDENTIAL_DEPOSIT : Balance = 0 ;
612586
613587 parameter_types ! {
614588 pub const Deposit : Balance = PUBLIC_CREDENTIAL_DEPOSIT ;
0 commit comments