src/blockchain/pledges.js
/**
   * create a new donation for the `to` pledge
   *
   * @param {object} transferInfo
   */
create a new donation for the `to` pledge
@param {object} transferInfo
create a new donation for the ` to ` pledge @param { object } transferInfo
async function createToDonation(transferInfo) {
    const mutation = await createToDonationMutation(transferInfo);
    const donation = await createDonation(
      mutation,
      transferInfo.initialTransfer,
      isOlderThenAMin(transferInfo.ts),
    );
    handleDonationConversationAndEmail(app, donation);
    return donation;
  }
async function createToDonation ( transferInfo ) { const mutation = await createToDonationMutation ( transferInfo ) ; const donation = await createDonation ( mutation , transferInfo . initialTransfer , isOlderThenAMin ( transferInfo . ts ) , ) ; handleDonationConversationAndEmail ( app , donation ) ; return donation ; }
create a new donation for the `to` pledge
 @param {object} transferInfo
create a new donation for the ` to ` pledge @param { object } transferInfo
// if tx is older then 1 min, set retry = true to instantly create the donation if necessary