polymorpher / one-wallet

1wallet | Modulo OTP Wallet - unconventional keyless, non-custodial wallet secured by Google Authenticator. EVM-compatible, smart contract operated, with composable security.
https://1wallet.crazy.one
Apache License 2.0
111 stars 48 forks source link

Alert (backend) #256

Open polymorpher opened 2 years ago

polymorpher commented 2 years ago

Following the introduction of user accounts in https://github.com/polymorpher/one-wallet/issues/190 (optional to users) and the synchronization feature in https://github.com/polymorpher/one-wallet/issues/255, another major benefit the user would get (by providing their real email) is they can receive alerts for critical operations occurred on their wallets.

For example, the user may want to receive an alert when funds leave their wallets, or alerts marked with high-priority, if the daily spending limit of one of their their wallets is raised (or decreased), or in case of staking, when their stakes are undelegated. Timely alerts could give the user ample time to prevent hacking, or to stop/mitigate unintended uses of the wallets (e.g. sent more money than they intended)

For implementation, we could start with a simple backend with SendGrid enabled, that continuously monitor events emitted from wallet addresses that enabled the alert service. Whenever an event that meets the user-selected criteria is triggered, an email should be sent to the user. Users should be able set their own criteria after username/password authentication using the frontend UI. The UI component will be discussed in a separate issue.

polymorpher commented 9 months ago

User system implemented in https://github.com/polymorpher/one-wallet/pull/362