Type Definition pallet_payment::pallet::Payment
source · pub type Payment<T: Config> = StorageDoubleMap<_GeneratedPrefixForStoragePayment<T>, Blake2_128Concat, T::AccountId, Blake2_128Concat, T::AccountId, PaymentDetail<T>>;
Expand description
Payments created by a user, this method of storageDoubleMap is chosen since there is no usecase for listing payments by provider/currency. The payment will only be referenced by the creator in any transaction of interest. The storage map keys are the creator and the recipient, this also ensures that for any (sender,recipient) combo, only a single payment is active. The history of payment is not stored.