Skip to content

refactor: create donation form on admin panel #2143

@divine-comedian

Description

@divine-comedian

currently the form on the admin panel is missing fields that would allow an admin to successfully insert a donation into the dapp. It also has unnecessary fields cluttering the view that we can remove.

this would allow us to finally insert donations into the dapp as an admin (hopefully) and remove the burden of devs needing to manually insert donations to the db. decluttering unecessary fields from the form will allow admins to fill the required data easier and prevent clerical mistakes.

FIELDS TO ADD TO FORM:

  • network id*
  • from wallet address*
  • to wallet address*
  • createdAt
  • user id
  • project id*
  • currency symbol*
  • tx hash*
  • token address*

FIELDS TO REMOVE FROM FORM:

  • block number
  • origin
  • verify error message
  • recurring donation id
  • contact email
  • onramper tx status
  • onramper id
  • referrer wallet
  • referral start timestamp
  • virtual period start
  • virtual period end
  • relevant donation tx hash
  • import date

AC

  1. create onchain transaction outside of giveth app from donor address to legitimate project address
  2. add required tx details to create donation form - tx hash, from address, to address, token address, currency, amount, usd value, project id, user id, network id

result: the donation should be eventually verified and inserted into the DB and show on project donation table and user donation table

Metadata

Metadata

Labels

No labels
No labels

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions