Giter Club home page Giter Club logo

client's Introduction

Anti-Scam Realtime Alert System

This is a dapp built on NOS platform for alerting users before they send any asset to a flagged address

The testnet build is deployed on separate repository - here

Prerequisites

  • Copy contract from ./contracts/contract.py to <nos-local>/contracts folder
  • Run nos-local shell
  • Build the contract in shell
open wallet ./neo-privnet.wallet
build /smart-contracts/contract.py
import contract /smart-contracts/contract.avm 0710 05 True False
  • Retrieve the script hash - check the hash should be the same as in ./src/components/NOSActions/index.jsx

Getting started

Access Local Build

Now that your script is built, run the dapp

  • Run nos-client
  • Build the dapp - yarn start
  • Navigate to localhost:1234 to run the dapp

Access TestNet Build(No smart contract deployment needed)

  • In NOS Client settings, change the Selected Network to nOSNet
  • Navigate to nos://antiscam.neo

Purpose

The purpose of this dapp is to alert the user before he sends an asset to a flagged address

Dapp-UI Description

There is a form to start with - input address(or select from dropdown of favorites) to send asset(for now GAS is implemented asset can be selected from dropdown) Once the address is input and the focus is moved out of the address box, following data is displayed related to the address:

  • Whether the address is favorited by you(the owner address)
  • Whether the address is flagged by you(the owner address)
  • Number of times the address is flagged(overall)
  • Comments added by you(if any) by anyone

There are a set of buttons to perform certain action on the address as well:

  • Flag/unflag/Check Flag address
  • Favorite/unfavorite/Check Favorite address
  • Add comments

After every invoke action, there is a delay to confirm the block. So, wait for another block to check whether your action has been performed. For example - if you flag an address, wait for another block to check if the address has been flagged.

Check whether the address has been flagged and decide whether you want to send the asset to it or not. "Address is secure" text is an assurance that no one has flagged that address and it is secure to send asset to that address.

Once you decide to send asset(GAS for now selected from dropdown), input the amount and press the submit button. You will get an alert with confirmation

Todo

Feedbacks are welcome.

This project is licensed under the terms of the MIT license.

client's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.