diff --git a/dapps/teller-network/config.js b/dapps/teller-network/config.js index 3c53c5f..877c4ae 100644 --- a/dapps/teller-network/config.js +++ b/dapps/teller-network/config.js @@ -26,7 +26,7 @@ const ERC20_ABI = [ module.exports = { from: { email: "noreply@teller.exchange", - name: "Teller Network" + name: "Teller" }, templates: { subscribe: "sign-up.md", @@ -80,6 +80,19 @@ module.exports = { index: "seller", template: "escrow-paid.md" }, + "escrow-released": { + ABI: { + name: "Released", + type: "event", + inputs: [ + { indexed: true, name: "escrowId", type: "uint256" }, + { indexed: true, name: "seller", type: "address" } + ] + }, + index: "buyer", + filter: async (web3, returnValues) => !returnValues.isDispute, + template: "escrow-released.md" + }, "dispute-release-buyer": { // Dispute won by the buyer ABI: { diff --git a/dapps/teller-network/escrow-creation.md b/dapps/teller-network/escrow-creation.md index 55a567e..f9f1b57 100644 --- a/dapps/teller-network/escrow-creation.md +++ b/dapps/teller-network/escrow-creation.md @@ -1,7 +1,4 @@ --- -subject: New trade! +subject: New trade request --- -A buyer is interested in your offer -EscrowId:{{escrowId}} -Buyer Address: {{buyer}} -OfferId: {{offerId}} \ No newline at end of file +Someone opened a trade with you. Open teller to proceed the [trade](https://status-im.github.io/status-teller-network/build/#/escrow/{{escrowId}}) diff --git a/dapps/teller-network/escrow-funded.md b/dapps/teller-network/escrow-funded.md index 98ba78f..e2df103 100644 --- a/dapps/teller-network/escrow-funded.md +++ b/dapps/teller-network/escrow-funded.md @@ -1,5 +1,4 @@ --- -subject: Escrow funded! +subject: Escrow funded --- -### Your trade has been funded. -Proceed to make the payment. \ No newline at end of file +[Escrow](https://status-im.github.io/status-teller-network/build/#/escrow/{{escrowId}}) was successfully funded by seller. Open teller to proceed the trade. \ No newline at end of file diff --git a/dapps/teller-network/escrow-paid.md b/dapps/teller-network/escrow-paid.md index bc15c31..b961513 100644 --- a/dapps/teller-network/escrow-paid.md +++ b/dapps/teller-network/escrow-paid.md @@ -1,5 +1,4 @@ --- -subject: Escrow has been paid! +subject: Money is on its way to you --- -### Your trade has been paid by the buyer. -Verify you have received the payment and release the funds. \ No newline at end of file +Buyer stated that money has been sent. Verify if you have received the payment and release funds from the [escrow](https://status-im.github.io/status-teller-network/build/#/escrow/{{escrowId}}. Note that money might still be on its way, but don't hesitate to contact the buyer for further info about the payment. \ No newline at end of file diff --git a/dapps/teller-network/escrow-released.md b/dapps/teller-network/escrow-released.md new file mode 100644 index 0000000..ba27f44 --- /dev/null +++ b/dapps/teller-network/escrow-released.md @@ -0,0 +1,4 @@ +--- +subject: Trade completed +--- +Trade has been successfully completed. Enjoy your crypto.