near_sdk::env
pub fn created_receipts() -> Vec<Receipt>
Accessing receipts created by the contract. Only available in unit tests.