Skip to content

Commit

Permalink
chore: create a discoverable view of the tags sent to vouch
Browse files Browse the repository at this point in the history
  • Loading branch information
twilson63 committed May 21, 2024
1 parent b038cba commit f201f7d
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions server/lib/send-message.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,17 @@ const key = JSON.parse(fs.readFileSync(process.env.WALLET, 'utf-8'))
export async function sendMessage({ address, transaction, username, value }) {
console.log('SEND TO AOS: ')
const processId = process.env.VOUCH_DAO_PROCESS_ID || 'L1CWfW_LAWA7UY_zf9CFwbnt3wLuVMEueylFi_1YACo'
const tags = [
{ name: 'Data-Protocol', value: 'Vouch' },
{ name: 'Vouch-For', value: address },
{ name: 'Method', value: 'X' },
{ name: 'Confidence-Value', value: String(value) + '-USD' },
{ name: 'Identifier', value: username }
];
console.log("tags: ", tags)
const messageId = await message({
process: processId,
tags: [
{ name: 'Data-Protocol', value: 'Vouch' },
{ name: 'Vouch-For', value: address },
{ name: 'Method', value: 'X' },
{ name: 'Confidence-Value', value: String(value) + '-USD' },
{ name: 'Identifier', value: username }
],
tags,
signer: createDataItemSigner(key)
})
const res = await result({
Expand Down

0 comments on commit f201f7d

Please sign in to comment.