Skip to content

Commit

Permalink
Merge pull request #6 from permaweb/twilson63/feat-vouch-x-add-confid…
Browse files Browse the repository at this point in the history
…ence-3

chore: create a discoverable view of the tags sent to vouch
  • Loading branch information
twilson63 authored May 21, 2024
2 parents 3fd7b1a + f201f7d commit 95c0fe1
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 95c0fe1

Please sign in to comment.