feat: Send Vouches to Vouch DAO for AO
MichaelBuhler opened this issue · comments
Value Statement
As a Vouch X user, I want Vouch X to vouch for my wallet address on Vouch DAO on AO so that the AO community will trust me.
Acceptance Criteria
- When the OAuth flow/callback from X is successfully completed, Vouch X will send an
"Action" = "Vouch"
message to the Vouch DAO on AO process. @permaweb/aoconnect
will be used to dispatch the AO message to the Vouch DAO on AO process.- Vouch X will use its
process.env.WALLET
for signing the message. - Vouch X's wallet address will be added as a service on Vouch DAO for AO, so that the vouch action is successful.
Assumptions
The existing functionality using Irys nodes to read and write vouches to and from Arweave will be retained and not modified.
Blockers
- I don't know how
hyper-async
works, so I may need to study up on this.
Dependencies
Resource links were added to aop v0.3 re: hyper-async and ADTs
Clarification on bullet 1:
When Action = Vouch is passed it will include the walletAdress of the user requesting to be Vouched, correct?
async ADTs - https://blog.hyper.io/introduction-to-async-adt/
ZOD - https://blog.hyper.io/using-zod-to-parse-function-schemas/
Functional ADTs - https://blog.hyper.io/functional-recursion/