Updating email templates

This commit is contained in:
Richard Ramos 2019-12-19 18:02:22 -04:00
parent 9f24d7069d
commit b3e51b988a
5 changed files with 24 additions and 12 deletions

View File

@ -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: {

View File

@ -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}}
Someone opened a trade with you. Open teller to proceed the [trade](https://status-im.github.io/status-teller-network/build/#/escrow/{{escrowId}})

View File

@ -1,5 +1,4 @@
---
subject: Escrow funded!
subject: Escrow funded
---
### Your trade has been funded.
Proceed to make the payment.
[Escrow](https://status-im.github.io/status-teller-network/build/#/escrow/{{escrowId}}) was successfully funded by seller. Open teller to proceed the trade.

View File

@ -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.
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.

View File

@ -0,0 +1,4 @@
---
subject: Trade completed
---
Trade has been successfully completed. Enjoy your crypto.